blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7729b8232868cb134a2e295ce3058f8047fe5360 | f24050f9be7f089ebe97857b4d6dc67a7dda17a8 | /poetry/pozzi/python/lite_call_runtime_top.py | ce7c56220fe7521b3d4e5f2d6867c1d30028cf4b | [] | no_license | ntsourakis/regulus-python | 63bffdfbf5ba5c09e60e3d729d310edfd961d79b | 91830264e0476ccaaf7ccec83e8bb8ca32a9a4fe | refs/heads/master | 2020-04-24T10:33:49.220740 | 2019-04-29T17:11:33 | 2019-04-29T17:11:33 | 171,897,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | #!/usr/bin/python
import pozzi.python.lite_call_runtime as call_main
import os
dir_path = os.path.dirname(os.path.realpath(__file__))
# Use this to load table file from canonical place in zipfile (speech interface)
def init():
TableFile = 'call_tables.data.gz'
MatchingFile = 'robust_matching_tables.... | [
"Nikolaos.Tsourakis@unige.ch"
] | Nikolaos.Tsourakis@unige.ch |
5101714fc9c01a1ff9534e8afcec0f66f825348c | 742956eb16ebc9ec802929a3ffde7377bbdd461f | /hackbright.py | 1ab453681028f9eded0400da2822ef13a84ab553 | [] | no_license | mashikro/hb-project-tracker-flask | bb7a964d1d1be90f2f6a608f84766ad4783ad87e | 7a3fc23324d9ab2de3b3c8fc72164f32e8a6494f | refs/heads/master | 2021-06-24T14:39:31.201648 | 2019-10-24T00:53:45 | 2019-10-24T00:53:45 | 217,180,943 | 0 | 0 | null | 2021-03-20T02:01:22 | 2019-10-24T00:54:35 | Python | UTF-8 | Python | false | false | 5,311 | py | """Hackbright Project Tracker.
A front-end for a database that allows users to work with students, class
projects, and the grades students receive in class projects.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
db = SQLAlchemy()
def connect_to_db(app):
"""Connect th... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
b8db2d856d22439d7469fcfed29803ac47f6a361 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /Others/past/past202004-open/n.py | f5270ea558cfda85c4314921ba5f9252f01ad907 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 134 | py | # -*- coding: utf-8 -*-
def main():
import sys
input = sys.stdin.readline
if __name__ == '__main__':
main()
| [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
d84017fd7fe042e521b48cd24401a9e9513723e5 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/12165092.py | 401f428ce7c24c5fb7a3cddf1f6b4d44312d9daa | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/12165092.py generated: Wed, 25 Jan 2017 15:25:34
#
# Event Type: 12165092
#
# ASCII decay Descriptor: [B+ -> (D+ => K- pi+ pi+) K+ pi- ]cc
#
from Configurables import Generation
Generation().EventType = 12165092
Generation().SampleGenerationTool = "S... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
a43676dc807faaf5ff96bb4b2e5d3f8aee04c123 | 9cc3135d5fcd781c0542a905c61dc19b0ceeffef | /file_reader_line.py | 66d355dba2173774df41579cbc1cc0eb3dafa21e | [] | no_license | bkalcho/python-crash-course | 411d8af223fb6974d4f890c0f82c9e56b062359c | 8425649a2ecd5abeeb438e816400f270d937758e | refs/heads/master | 2022-09-11T13:47:56.837256 | 2022-08-23T10:04:35 | 2022-08-23T10:04:35 | 69,810,386 | 14 | 8 | null | 2022-08-23T10:04:36 | 2016-10-02T17:14:41 | Python | UTF-8 | Python | false | false | 250 | py | # Author: Bojan G. Kalicanin
# Date: 05-Oct-2016
# Program that reads file line by line and prints line by line
# on the stdout
filename = 'pi_digits.txt'
with open(filename) as file_object:
for line in file_object:
print(line.rstrip()) | [
"bojan.g.kalicanin@gmail.com"
] | bojan.g.kalicanin@gmail.com |
0316e6973b49d6d7e409eef2969a5e273989a715 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03437/s534128723.py | 39f835745095b832d314d35d1a94be11cc79a200 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from sys import stdin
import fractions
def lcm(x, y):
return (x * y) // fractions.gcd(x, y)
n,m = [int(x) for x in stdin.readline().rstrip().split()]
if lcm(n,m) == n:
print(-1)
else:
print(n)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
473f81fd11b029ce5acfd36114b5f5d320f145cd | 6c5daf5133656a33574dc2f5b62b9f1a1bdf1390 | /Elec Power Chongqing/2021/old/dataForecasting.py | fdbd4edc3a5ba2ca8971ae189ad93166be7ca73e | [] | no_license | RobinChen121/Python-Practices | 6c10b721dce3a8d2b76e190959d0940c52f0d1cc | 85bd9ad30c245dd62dc7ea837f964eaecbe24ed9 | refs/heads/master | 2023-08-31T10:08:01.613828 | 2023-08-27T14:51:46 | 2023-08-27T14:51:46 | 142,564,793 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 15 14:41:47 2021
@author: zhen chen
MIT Licence.
Python version: 3.8
Description: forecast based on the last 12 months
"""
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import statsmodels.api as sm
from statsmodels.tsa.stattools import... | [
"40953071+RobinChen121@users.noreply.github.com"
] | 40953071+RobinChen121@users.noreply.github.com |
67f5b410a9c362544f83edcb25f34d9f24d4fc1f | c83e356d265a1d294733885c373d0a4c258c2d5e | /mayan/apps/rest_api/urls.py | 43be019b07eb85024ce8607bfd3fde3f44544c10 | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/fall-2021-hw2-451-unavailable-for-legal-reasons_6YX3 | 4160809d2c96707a196b8c94ea9e4df1a119d96a | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | refs/heads/master | 2023-08-21T23:36:41.230179 | 2021-10-02T03:51:12 | 2021-10-02T03:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | from django.conf.urls import include, url
from .api_views import (
APIRoot, APIVersionRoot, BrowseableObtainAuthToken,
ProjectInformationAPIView, schema_view
)
from .literals import API_VERSION
api_version_urls = [
url(regex=r'^$', name='api_version_root', view=APIVersionRoot.as_view()),
u... | [
"79801878+Meng87@users.noreply.github.com"
] | 79801878+Meng87@users.noreply.github.com |
0a2f3cfff69d681b3500ecf3a9d62ad75e684c68 | 431a1f738b1edfba7dad8d10a6b7520d51d917cb | /Samples/UserSamples/2018/VBFConfig.py | 0f6c4d5699d172ffbfdbde1760a8050c5fd41cbf | [] | no_license | aloeliger/DatacardCreator | 5ce702e46fbb77e843b44d8fe088c2645a4a8f66 | 5c7e890276a5be079ed3b677a471c1dcadcba52d | refs/heads/master | 2022-02-26T19:52:30.563747 | 2022-02-16T20:24:48 | 2022-02-16T20:24:48 | 215,602,523 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | from Samples.SampleDefinition import Sample
from Samples.Uncertainties.UserUncertainties.TES import TESUncertainty
from Samples.Uncertainties.UserUncertainties.Signal_JES_18 import JES18Uncertainty
from Samples.Uncertainties.UserUncertainties.JER import JERUncertainty
from Samples.Uncertainties.UserUncertainties.MetRe... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
4e1002d9ce5286e189a43928b766b6ff72a4dbff | 01926621374435f7daf622f1ef04a51f94e3e883 | /litex/build/quicklogic/platform.py | fbd200cb2efd6636f27feeb7075a6e6e6f0658c1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | betrusted-io/litex | d717513e41ff6aba54ac172e886c21479aa41752 | 8109a8e91ca8321483ccc2f58bd4fed5379bbd18 | refs/heads/master | 2022-11-23T07:11:35.297128 | 2022-02-22T11:55:00 | 2022-02-22T11:55:00 | 231,203,917 | 3 | 0 | NOASSERTION | 2020-01-01T10:48:06 | 2020-01-01T10:48:05 | null | UTF-8 | Python | false | false | 1,184 | py | #
# This file is part of LiteX.
#
# Copyright (c) 2021 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
import os
from litex.build.generic_platform import GenericPlatform
from litex.build.quicklogic import common, symbiflow
# QuickLogicPlatform ------------------------------------... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
c480f46b0c551272158063ee08ae7ef47fb91801 | 6b5c67590979627a97b7d8f0d9fc131b63fa817d | /cgettext.py | 11081dd45c063fcc7fa697958c11031a104e4612 | [
"MIT"
] | permissive | eevee/cgettext | 303357e28349a6cdd906a3e5ffb2fc6889041f37 | 9efa06369c19c0631dbebbc2f45f787b4cd01eb5 | refs/heads/master | 2016-09-05T09:01:11.343350 | 2014-06-27T20:03:10 | 2014-06-27T20:03:10 | 19,359,054 | 1 | 0 | null | 2014-05-31T01:02:46 | 2014-05-01T21:56:14 | Python | UTF-8 | Python | false | false | 495 | py | try:
from _cgettext import c_parse
except ImportError:
# No C module available; just re-export the builtin
from gettext import GNUTranslations
else:
import gettext
class GNUTranslations(gettext.GNUTranslations):
def _parse(self, fp):
charset, metadata, catalog, plural = c_parse(... | [
"eevee.git@veekun.com"
] | eevee.git@veekun.com |
0467a469bfb2a1b833b93af0761a056efbc02d40 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/TRACE/FPythonCode/FTradeSheetColumnCustom.py | 7368f700f8f3f51a6c7c5f45f72afb9cdeed7e09 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py |
import acm
def get_TradeReportTransType_string_from_value(val):
'''
Accepts value for TradeReportTransType, in FIX message and returns mapped value, which needs to be displayed in tradesheet for particular column.
'''
switcher = {
"0": "New",
"1": "Cancel",
"2": "Replace",
... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
c12a2731c0266326e4342197497bdbe4b3103bbe | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KoubeiCateringOrderPayDisburseModel.py | d7684ebecee96e879c01d6568cb06e1e665fd1cf | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 4,200 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.PosOrderKey import PosOrderKey
class KoubeiCateringOrderPayDisburseModel(object):
def __init__(self):
self._auth_code = None
self._member_flag = None
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
8edff0421ebc56d61abee4a4cef9d6eef91672f0 | f6290b7b8ffb263b7f0d252a67e2c6320a4c1143 | /Binary Tree/height_of_special_binary_tree.py | 180231ea70bd5a270e62130aca6e3fd2873838a8 | [] | no_license | datAnir/GeekForGeeks-Problems | b45b0ae80053da8a1b47a2af06e688081574ef80 | c71f11d0349ed3850dfaa9c7a078ee70f67e46a1 | refs/heads/master | 2023-05-29T15:21:59.680793 | 2020-12-15T04:55:01 | 2020-12-15T04:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | '''
https://practice.geeksforgeeks.org/problems/height-of-spiral-tree/1
Given a special Binary Tree whose leaf nodes are connected to form a circular doubly linked list. Find the height of this special Binary Tree.
Example 1:
Input:
1
/ \
2 3
/ \
4 5
/
6
Output: 4
Explanation:
In ... | [
"komalbansal97@gmail.com"
] | komalbansal97@gmail.com |
91469a33a999bfea9fed7f0776edd52783522402 | b05fee086482565ef48785f2a9c57cfe2c169f68 | /part_one/6-builder_pattern/builder/director.py | 30ec18b0022359e51962b212e0ff4a289f939982 | [] | no_license | diegogcc/py-design_patterns | 76db926878d5baf9aea1f3d2f6a09f4866c3ce1e | 2b49b981f2d3514bbd02796fe9a8ec083df6bb38 | refs/heads/master | 2023-04-01T08:28:53.211024 | 2021-04-05T11:48:19 | 2021-04-05T11:48:19 | 304,145,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | class Director:
def __init__(self, builder):
self._builder = builder
def get_computer(self):
return self._builder.get_computer()
def build_computer(self):
self._builder.new_computer()
self._builder.get_case()
self._builder.build_mainboard()
self._bu... | [
"diegoc906@gmail.com"
] | diegoc906@gmail.com |
a1bab5f325d133df17fbae75ee780f703da474c6 | 482467f7875513440ccc9fb5ee5755214137e8df | /homeassistant/components/stiebel_eltron/__init__.py | 52dc2d848918bf88b821b56a49c0cb0a36338a48 | [
"Apache-2.0"
] | permissive | Watemlifts/home-assistant | fbf16d91489f9ab472b1fda928fc472f99d2b057 | 6e414983738d9495eb9e4f858e3e98e9e38869db | refs/heads/dev | 2023-07-21T06:38:40.212969 | 2023-07-15T09:33:07 | 2023-07-15T09:33:07 | 195,134,511 | 4 | 0 | Apache-2.0 | 2023-07-15T09:33:08 | 2019-07-03T22:34:49 | Python | UTF-8 | Python | false | false | 1,761 | py | """The component for STIEBEL ELTRON heat pumps with ISGWeb Modbus module."""
from datetime import timedelta
import logging
import voluptuous as vol
from homeassistant.components.modbus import (
CONF_HUB, DEFAULT_HUB, DOMAIN as MODBUS_DOMAIN)
from homeassistant.const import CONF_NAME, DEVICE_DEFAULT_NAME
from home... | [
"marhje52@kth.se"
] | marhje52@kth.se |
3333bd7d1d54e4a76c2974fe2941e952ca4dd14a | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /log-20190927/132.230.102.123-10.21.11.11/1569575419.py | 5356af5e985e01c5e1c1f9be6046d34f1addbda1 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | import functools
import typing
import string
import random
import pytest
def leap(year: int) -> bool:
"""
Args:
year: an integer
Returns:
a boolean expression
"""
if year < 1583:
return False
if year % 4 == 0: #and year % 100 == 0 and year %400 != 0:
i... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
92eb574a98ab18224e6f678efd484bebf0f75fbd | f1961c86e6da14f35c21d7235f4fc8a89fabdcad | /DailyProgrammer/DP20140226B.py | 723789a5c53f06aeb779421827eca6c15247d7f0 | [
"MIT"
] | permissive | DayGitH/Python-Challenges | d4930bdd85cd1a977d8f6192775ca956a375fcde | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | refs/heads/master | 2021-01-17T13:01:03.784523 | 2018-06-29T23:49:04 | 2018-06-29T23:49:04 | 58,497,683 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | """
[02/26/14] Challenge #150 [Intermediate] Re-emvoweler 1
https://www.reddit.com/r/dailyprogrammer/comments/1yzlde/022614_challenge_150_intermediate_reemvoweler_1/
# _(Intermediate)_: Re-emvoweler 1
In [this week's Easy
challenge](http://www.reddit.com/r/dailyprogrammer/comments/1ystvb/022414_challenge_149_easy_dis... | [
"akber91@gmail.com"
] | akber91@gmail.com |
c1a3f8a768bbde06f5bc0e63a67e80424aa23eeb | a7ded5d3d19a98e61a44189cffe3703f7938e0db | /xero_python/accounting/models/country_code.py | 20c8ef17a04040149b701b78f318d6a723c86732 | [
"MIT"
] | permissive | liseekeralbert/xero-python | dfd1076344f763d74f81f701e32600cf88bcc7b2 | d27ab1894ecd84d2a9af0ca91583593756b21ab3 | refs/heads/master | 2022-12-16T07:41:14.331308 | 2020-09-18T17:12:35 | 2020-09-18T17:12:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,889 | py | # coding: utf-8
"""
Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 2.3.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from enum impor... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
ca71ccf61df6a0176341a1941ea6e6315f5fcdf1 | e3040a2e23a856e319e02037dc6baf3882c796b9 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi | ef5fdf6e1c02d23db716ba98c8ca2592e6274dbc | [
"Apache-2.0"
] | permissive | mishin/openapi-generator | 2ed2e0739c0cc2a627c25191d5898071d9294036 | 3ed650307513d552404f3d76487f3b4844acae41 | refs/heads/master | 2023-06-10T03:01:09.612130 | 2022-10-14T08:29:15 | 2022-10-14T08:29:15 | 271,080,285 | 0 | 0 | Apache-2.0 | 2023-05-30T02:01:25 | 2020-06-09T18:29:41 | Java | UTF-8 | Python | false | false | 7,519 | pyi | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noq... | [
"noreply@github.com"
] | mishin.noreply@github.com |
f9a778bd121f5471a7545a51299c85b1ed6fe37d | 7b74696ff2ab729396cba6c203984fce5cd0ff83 | /stockmarket/migrations/0018_auto_20210310_0713.py | a92ec4772b8fef3cfc51038084147fdbfb09d35c | [
"MIT"
] | permissive | webclinic017/investtrack | e9e9a7a8caeecaceebcd79111c32b334c4e1c1d0 | 4aa204b608e99dfec3dd575e72b64a6002def3be | refs/heads/master | 2023-06-18T12:57:32.417414 | 2021-07-10T14:26:53 | 2021-07-10T14:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | # Generated by Django 3.0.7 on 2021-03-09 23:13
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('stockmarket', '0017_auto_20210307_1803'),
]
operations = [
migrations.AddField... | [
"jie.han@outlook.com"
] | jie.han@outlook.com |
01e304b264f3b7116f5df2b1b3345739a66a4d8f | 5775513b81096d77b11bfe99949e4cbd80af20d4 | /jumpingintodjango/questionsandanswers/migrations/0005_auto__add_field_question_cmpnyvisit.py | 1fa82c8c942e0a57ee34a2c78567711f91edea9b | [] | no_license | gzpgg3x/BrowsingOR | 55234ba7b785675ea6b1d6a99c083aa0885fba74 | 15d467c6cc70beece93c699f2e9728509c3ce9f3 | refs/heads/master | 2016-09-06T11:00:20.737008 | 2013-04-29T16:19:53 | 2013-04-29T16:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Question.cmpnyvisit'
db.add_column(u'questionsandanswers_question', 'cmpnyvisit',
... | [
"gzpgg3x@yahoo.com"
] | gzpgg3x@yahoo.com |
a460b11b44d5739c0f1a1c59783c8dcabe4843f2 | 02bfa3b84a5c811c3fd4c293b14b0846bd6ab3b5 | /SortingAlrorithms/QuickSort.py | 46b3cf3f67d0d478023a3d3c18746ddb48f32b9b | [] | no_license | Ronak912/Programming_Fun | 9dde0842245b62748b479924921383de07b24d16 | 2a504d0ef230d09007b8a268c356055ced5ca6c0 | refs/heads/master | 2020-04-06T03:40:52.046819 | 2020-04-03T22:25:36 | 2020-04-03T22:25:36 | 42,281,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | def quickSort(alist):
quickSortHelper(alist, 0, len(alist)-1)
def quickSortHelper(alist, first, last):
if first >= last:
return
splitpoint = partition(alist, first, last)
quickSortHelper(alist, first, splitpoint-1)
quickSortHelper(alist, splitpoint+1, last)
def partition(alist, first, l... | [
"ronak.928@gmail.com"
] | ronak.928@gmail.com |
14c5bba12db00e778ec048d589648f8d833c1e3e | 0b76e4db1f08f2d6d7b9379a884c2075f6e258c3 | /w9/G4/4.py | 8d5116ba23d233d71f26eeda927160fa5d04798e | [] | no_license | bobur554396/WD2020Spring | 244ec8b491f297646d1d37f1feeb3767b68b9180 | 2b833c9043701ebaa4d122f717c8465af8fd5677 | refs/heads/master | 2020-12-26T19:01:46.605344 | 2020-04-18T05:33:42 | 2020-04-18T05:33:42 | 237,606,624 | 1 | 6 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # Functions
def hello(request):
print('hi')
def sum(a, b):
return a + b
# c = sum(2, 3)
# print(c)
def mult(a, b=3, c=10):
return a * b * c
print(mult(2))
| [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
60a087f8c198509615937f7b2d47732ab42cbb42 | c3a6e39441d70cd632adff3ade7d7d331f702bbf | /DocxTest.py | 60456d561aed8d9ef55091e23e4315a838a4c804 | [] | no_license | Yzp109062/programming | ef81f5588b28da130d6a4c608578cbf622c50e16 | b84aee684fe39623185749e5250ffb454a302176 | refs/heads/master | 2022-11-23T01:36:18.344437 | 2020-07-28T21:37:39 | 2020-07-28T21:37:39 | 284,621,508 | 1 | 0 | null | 2020-08-03T06:28:43 | 2020-08-03T06:28:42 | null | UTF-8 | Python | false | false | 502 | py | from docx import Document
from docx.shared import Pt
document = Document("/home/wesley/Desktop/Construction/Conlanging/Daellic/Daool Lexicon Working Version Python Test.docx")
style = document.styles["Normal"]
font = style.font
font.name = "Charis SIL"
font.size = Pt(12)
p = document.add_paragraph("Test ")
p.add_ru... | [
"jazzzman627@yahoo.com"
] | jazzzman627@yahoo.com |
c59e659d909312483f20f07ec25ed071a0ab1d64 | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /.history/Code/histogram_20200204122135.py | 5d0a4eeb8d476dabb9528ff8aa4b80539dcd1d90 | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 5,137 | py | from clean_text import clean
from benchmark import bench
def tuple_hist(source):
''' Fastest - tuples are immutable. List of tuples: [('hello', 3), ('what', 4)]
Takes text. Stores each item in text, compares each item to the rest of the words in
text and keeps a running total. Used list account for no rep... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
ed7692ac1e2630e87218877cf5032e76083e7c98 | e5c3b3a044e826425dd0f783d5e38e5bfeb82626 | /diplomacy_research/proto/diplomacy_tensorflow/core/protobuf/transport_options_pb2.py | e079da40929cc5f94bf114d387992431fb51a4c9 | [
"MIT"
] | permissive | JACKHAHA363/research | 04f67f98dcd238092941725d531517ae2a4ab47f | e752f02f34936bbae904815708904cabda554b57 | refs/heads/master | 2020-09-14T23:42:32.337085 | 2019-11-22T03:36:35 | 2019-11-22T03:36:35 | 223,296,172 | 0 | 0 | null | 2019-11-22T01:15:52 | 2019-11-22T01:15:51 | null | UTF-8 | Python | false | true | 2,218 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: diplomacy_tensorflow/core/protobuf/transport_options.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
fro... | [
"pcpaquette@gmail.com"
] | pcpaquette@gmail.com |
c8da8eefa8c5d426331ac8e5cd31e22fc656e14e | 7825f583fc11716f0a7b6a90799170bdfa6cc969 | /apps/trade/models.py | fc00ed8ebcd5ba1c8bfafaa8ea5ef7538e3b19c9 | [] | no_license | dingmf/TTSX1 | ca49dc76a59e1f0e5357a40ac708487e0a32afa2 | b1bc1403114961a0830e273f14413f7421647005 | refs/heads/master | 2020-03-28T16:43:43.526808 | 2018-09-10T01:38:31 | 2018-09-10T01:38:31 | 148,722,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | from datetime import datetime
from django.db import models
from django.contrib.auth import get_user_model
from goods.models import Goods
User = get_user_model()
# Create your models here.
class ShoppingCart(models.Model):
"""
购物车
"""
user = models.ForeignKey(User, verbose_name=u"用户",on_delete=models... | [
"1175674559@qq.com"
] | 1175674559@qq.com |
8d952a384d61bfa8c0d257aa9b30e1060fa69354 | f7ff9607822bb8f347598c10d185941cf1956852 | /aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/CreateOTAStaticUpgradeJobRequest.py | 7e7ee501d6c20d1a94d5c9e4dc901b71e523ad7c | [
"Apache-2.0"
] | permissive | djzqbx001/aliyun-openapi-python-sdk | 5ca32201c578528f4b4228c7636b36c3f60a7c60 | 7d2e3c854c4d70ed341f036f5f7be0310216c303 | refs/heads/master | 2023-09-06T10:17:55.489439 | 2021-11-19T04:26:37 | 2021-11-19T04:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,658 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
5414549b6e05db7f00d8fa5cd8e78438012ca3b3 | d1db2d004f989c89d7d7b599a79be73485d15154 | /backend/home/migrations/0001_load_initial_data.py | 1d7f53afab7b8c07ccd47a313d03c168330d2153 | [] | no_license | crowdbotics-apps/dry-glitter-29203 | 79161318f4bc536b1b69e07dfc592f19f4056ce5 | ee14380afe72369a0e7306b5954885f675493020 | refs/heads/master | 2023-06-25T06:39:47.076869 | 2021-07-26T19:47:29 | 2021-07-26T19:47:29 | 389,750,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "dry-glitter-29203.botics.co"
site_params = {
"name": "Dry Glitter",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b2417e1d6d1bbde80e013a3d3c5c891f70809f47 | 38422c3edeb269926502fed31a0761aff8dd3d3b | /Si_and_InGaAs_detectors/Calibration_2Mar_2015/IGA22030TC_caldata_for_python/run_DSS-IGA22030TC_cal_data.py | 77487933e19dc4dedfd57eaf2f4694e28cecc1ca | [] | no_license | vfurtula/Alle-projekter | 2dab3ccbf7ddb6be3ee09f9f5e87085f354dd84a | da3d7c9611088043e2aea5d844f1ae6056215e04 | refs/heads/master | 2022-06-07T05:17:35.327228 | 2020-04-30T10:28:48 | 2020-04-30T10:28:48 | 260,180,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,815 | py | ## Import libraries
import matplotlib.pyplot as plt
import numpy as np
from numpy.polynomial import polynomial as P
from scipy import interpolate
## For Matplotlib fonts
from matplotlib import rc
## for LaTeX style use:
rc("text", usetex=True)
rc("font", family="serif")
###############################################... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
bab675eb57306cc67946459ee039be109cb91a15 | 810ce1c1ac47743e253171ec7541c0e431d952c2 | /standard_library/Concurrency/Subprocess/subprocess_popen.py | d43d2ee87874e36321a9f663df2059047f4a48f9 | [] | no_license | hjlarry/practise-py | 91052c25dc7ab706c6234f6d657db76667a27124 | 871e06b9652d356f55e3888f1f7ea180ac2b1954 | refs/heads/master | 2022-09-11T17:47:48.557194 | 2022-08-10T02:07:24 | 2022-08-10T02:07:24 | 136,263,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import subprocess
import io
print("一、 与进程单向通信")
print("read:")
proc = subprocess.Popen(["echo", "to stdout"], stdout=subprocess.PIPE)
# proc = subprocess.Popen(["ls", "-l"], stdout=subprocess.PIPE)
value = proc.communicate()
print(value)
stdout_value = value[0].decode("utf-8")
print(stdout_value)
print("write:")
proc... | [
"hjlarry@163.com"
] | hjlarry@163.com |
3e2a1a8413800f85f2a56ec57d1eb41f78af3a63 | 926b3c52070f6e309567c8598248fd5c57095be9 | /src/mmdeploy/mmdeploy/codebase/mmcls/models/heads/multi_label_head.py | 7a5d63375aa42db93fccdde1904c7945f465bc96 | [
"Apache-2.0"
] | permissive | fengbingchun/PyTorch_Test | 410f7cd2303707b0141d433fb9d144a961e1f4c8 | df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348 | refs/heads/master | 2023-05-23T16:42:29.711338 | 2023-03-25T11:31:43 | 2023-03-25T11:31:43 | 167,339,907 | 15 | 4 | null | 2023-03-25T11:31:45 | 2019-01-24T09:24:59 | C++ | UTF-8 | Python | false | false | 714 | py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdeploy.core import FUNCTION_REWRITER
@FUNCTION_REWRITER.register_rewriter(
func_name='mmcls.models.heads.MultiLabelClsHead.post_process')
def multi_label_cls_head__post_process(ctx, self, pred, **kwargs):
"""Rewrite `post_process` of MultiLabelClsHead for... | [
"fengbingchun@163.com"
] | fengbingchun@163.com |
090ec55ee38d15f5b51f50a928495db00fce01bc | 048c6b84e679a3e81bf7b4980ad2b4a99781b9b7 | /quantarhei/core/implementations.py | c2fb6b38c5bfa8bd44a0d92d5b3f9187fecc4b07 | [] | no_license | saayeh/quantarhei | 9b7a7c60e1325ef783bdbc9ac4b6f33a13301802 | b77a41272b7df0ccbcde2710bf04bf412c126a6f | refs/heads/master | 2020-12-07T06:29:27.954470 | 2017-09-01T21:09:45 | 2017-09-01T21:09:45 | 66,932,421 | 0 | 0 | null | 2016-08-30T10:52:11 | 2016-08-30T10:52:11 | null | UTF-8 | Python | false | false | 3,130 | py | # -*- coding: utf-8 -*-
from functools import wraps
import os
from importlib import import_module
from .managers import Manager
def implementation(package="",
taskname="",
at_runtime=False,
fallback_local=False,
always_local=False):
"""D... | [
"tmancal74@gmail.com"
] | tmancal74@gmail.com |
68bacba70b10cde713891d28ded05e5009dbe565 | 1e013dc5f0de0f61e27f2867557803a01c01f4da | /Language/python/module/pybluez/rfcomm-client.py | 87fe97bf58fe5eb0164caa0cd0eaa19a542ffacb | [] | no_license | chengyi818/kata | a2941ce8675c6e7a47169a0eae4c757d3f6f5bf9 | a7cb7ad499037bcc168aaa0eaba857b33c04ef14 | refs/heads/master | 2023-04-10T18:39:09.518433 | 2023-01-08T15:22:12 | 2023-01-08T15:22:12 | 53,040,540 | 1 | 0 | null | 2023-03-25T00:46:51 | 2016-03-03T10:06:58 | C++ | UTF-8 | Python | false | false | 193 | py | import bluetooth
server_address = "00:1A:7D:DA:71:11"
port = 1
sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
sock.connect((server_address, port))
sock.send("hello world!")
sock.close()
| [
"chengyi818@foxmail.com"
] | chengyi818@foxmail.com |
8cc11edbf4514684f0ccebeb30a0086a8925dce2 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_21649.py | 40532dcb7c23f6e6d1294bf9a3247202883f3fe7 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | # How to use regular expressions to only capture a word by itself rather than in another word?
import re
print re.subn('Co$','',"Company & Co")
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
02274a6e349253d379c133717b79435475122281 | 006ff11fd8cfd5406c6f4318f1bafa1542095f2a | /SimG4CMS/Calo/test/python/runWithGun_cfg.py | bd29197ff9ce3cb18bf543be313d6be973a0ff76 | [] | permissive | amkalsi/cmssw | 8ac5f481c7d7263741b5015381473811c59ac3b1 | ad0f69098dfbe449ca0570fbcf6fcebd6acc1154 | refs/heads/CMSSW_7_4_X | 2021-01-19T16:18:22.857382 | 2016-08-09T16:40:50 | 2016-08-09T16:40:50 | 262,608,661 | 0 | 0 | Apache-2.0 | 2020-05-09T16:10:07 | 2020-05-09T16:10:07 | null | UTF-8 | Python | false | false | 6,352 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PROD")
process.load("SimG4CMS.Calo.pythiapdt_cfi")
#process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
process.load("Geometry.CMSCommonData.cmsIdealGeometryAPD1XML_cfi")
process.load("Geo... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
f1e2287dae490a131bbd72f576a927f9b633b777 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_25/models/file_system_response.py | c255a82c3b1ae1924c1debaa8c376982be89c983 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,913 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.25
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
d4f9618477330f0db7a60c5a90a8a20f134850ae | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_360/ch27_2020_03_30_19_57_47_608648.py | c67301045edffce312884d90b151fd1e85029789 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | tem_duvida = True
while tem_duvida:
perg = input("Tem dúvidas?")
if perg != 'não':
print("Pratique mais")
else:
print('Até a próxima')
tem_duvidas = False
| [
"you@example.com"
] | you@example.com |
57a81a6f705289723249fb0b09e8a065b08ab8cf | 5fbf2adec8d7647b9aeefa51695aa3f13ee57810 | /server/util/ah_handlers.py | 455a1dd878527b50e58dde3861598691f56b2737 | [] | no_license | angelacantfly/dancedeets-monorepo | 8bb6579f6f5d30e88c8d4c0e239c6c8fed678094 | 6b7a48d91d0737010acd9e08a89d99c2c982205a | refs/heads/master | 2021-01-20T09:14:22.613044 | 2017-08-26T21:48:14 | 2017-08-26T21:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import webapp2
import app
@app.route('/_ah/start')
class StartHandler(webapp2.RequestHandler):
def get(self):
pass
@app.route('/_ah/stop')
class StopHandler(webapp2.RequestHandler):
def get(self):
pass
| [
"mlambert@gmail.com"
] | mlambert@gmail.com |
ffc1de01b564f7729799b45337e5d8ae9fbb92ee | 03330fc41b226e3b597676944b335a77f1979965 | /examples/using_xref.py | 05042801a9b20fdce5800a420dcd161fb80fed47 | [
"MIT"
] | permissive | ols3er/ezdxf | b00076742022b21118d3645685205fbdae419b38 | a01ed68ea45f25a231e470d239aefed73ab285d5 | refs/heads/master | 2020-05-29T16:57:18.235926 | 2019-02-24T03:41:09 | 2019-02-24T03:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Copyright (c) 2018 Manfred Moitzi
# License: MIT License
import ezdxf
# AutoCAD 2010 can not resolve XREFS in DXF R12 Format :-(,
ref_dwg = ezdxf.new('R2000')
ref_dwg.modelspace().add_circle(center=(5, 5), radius=2.5)
ref_dwg.header['$INSBASE'] = (5, 5, 0) # set insertion point
ref_dwg.saveas("xref_drawing.dxf")
#... | [
"mozman@gmx.at"
] | mozman@gmx.at |
3119fae3fe1aadaa71c5cae9f1576b38a7c3afc3 | f68eda51246c95597def569224f3b56d4c3700e7 | /top/api/rest/PromotionLimitdiscountGetRequest.py | 4b9ebc258b2a7047be00899b998a81697c8c960a | [
"MIT",
"BSD-3-Clause"
] | permissive | stoensin/taobao-openapi | 47de8fb29ae2d8ce47d4fce07c0ccaeaee1ef91f | 202a9df2085229838541713bd24433a90d07c7fc | refs/heads/main | 2023-07-17T02:17:51.527455 | 2021-08-25T15:08:49 | 2021-08-25T15:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | '''
Created by auto_sdk on 2018.11.10
'''
from top.api.base import RestApi
class PromotionLimitdiscountGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.end_time = None
self.limit_discount_id = None
self.page_number = None
self.star... | [
"samzong.lu@gmail.com"
] | samzong.lu@gmail.com |
c61c33ed11cd6124e71d682034e6e67551e279fc | 7d84000f2977def7118b4c93a47b9d71c4ee38f8 | /app/src/dbi.py | f5871ef0d1e50dfc9ad71010786307b81ee1d8cb | [] | no_license | tensorci/core | d405d17099987163dfc589711345ce414ace406e | 50d18bb43f73b1d5d47fefad543c2554e87a6520 | refs/heads/master | 2021-03-19T13:27:26.219591 | 2020-12-03T01:14:57 | 2020-12-03T01:14:57 | 110,917,313 | 0 | 0 | null | 2020-12-03T01:15:26 | 2017-11-16T03:20:09 | Python | UTF-8 | Python | false | false | 4,899 | py | """
Postgres Database Interface providing the following helper methods:
find_one
find_all
update
create
destroy
undestroy
delete
* Destroy-ing is the same as "soft" deleting a record...it will simply set the is_destroyed column to True
for a record. The helper methods used for querying the DB are au... | [
"benwhittle31@gmail.com"
] | benwhittle31@gmail.com |
17539ecb89461a97e039d325bef834b78d08259b | f415dd840e150a0ada86bc8b7c54f8d1c301e314 | /tests/helpers.py | 694db0ecd5e61ceb7f8490a25316267d22ec46a9 | [
"WTFPL"
] | permissive | Feuermurmel/venv_cli | 5c3680150f8c54fbbb4e5c36b3d609695b1b1104 | 87b5185d11ab4d6f66b8dd76533ab405f820ad97 | refs/heads/master | 2021-01-10T17:19:09.017138 | 2016-02-25T22:09:52 | 2016-02-25T22:09:52 | 51,231,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,678 | py | import os, subprocess, sys, contextlib, pkgutil, tempfile, pytest
class RunResult:
def __init__(self, returncode : int, stdout : str, stderr : str):
self.returncode = returncode
self.stdout = stdout
self.stderr = stderr
class Workspace:
"""
Allows executing commands and checking conditions in a temporary d... | [
"michi.schwarz@gmail.com"
] | michi.schwarz@gmail.com |
21db26de3198d180a5e39a545b3d434cfcfb9b71 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_117/ch84_2019_06_07_02_09_59_822281.py | c7e3553b0116c2d5fe47dde12a8fa2c6debf32c7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | def inverte_dicionario (dic):
dic_invert = {}
for k, v in dic_invert.items():
if v not in dic:
dic_invert = []
dic_invert.append(v)
return dic_invert | [
"you@example.com"
] | you@example.com |
3dd56adae1191d1dbd4cb5db6911e9f04756571f | 4e693506b1b69b28ae2bcf0f5eb0d30e71a5e63d | /keras_models_factory/utils.py | 61d28442735ec316350b013d4e5cab50e1268d3f | [
"MIT"
] | permissive | shadiakiki1986/keras-models-factory | 62fabc7e786bc2e7ad85f00bf41abff85df57b35 | ee4f776eea0ec2e20347105d31cf192877f386bd | refs/heads/master | 2021-01-23T16:57:34.653001 | 2017-09-19T09:22:00 | 2017-09-19T09:22:00 | 102,754,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | # https://gist.github.com/shadiakiki1986/2c293e364563492c65bffdb6122b4e92
from sklearn.preprocessing import MinMaxScaler # normalize,
min_max_scaler = MinMaxScaler()
# def myNorm3(X): return normalize(X, norm='l2', axis=0)
def myNorm3(X): return min_max_scaler.fit_transform(X)
########################################... | [
"shadiakiki1986@gmail.com"
] | shadiakiki1986@gmail.com |
bda67dea8cdb17417a447b603190fdbc5a7850d8 | 6351221d588668804e2df01936732eede4d96ed0 | /leetcode-cn/Python/232.用栈实现队列.py | 7ae75d5f682f19c9bda3328e8f390ed0abeb0c49 | [] | no_license | LogicJake/code-for-interview | 8e4ec9e24ec661a443ad42aa2496d78a1fbc8a3f | 5990b09866696c2f3e845047c755fa72553dd421 | refs/heads/master | 2021-09-20T20:19:17.118333 | 2021-09-14T13:46:30 | 2021-09-14T13:46:30 | 102,202,212 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | #
# @lc app=leetcode.cn id=232 lang=python3
#
# [232] 用栈实现队列
#
# @lc code=start
class MyQueue:
def __init__(self):
"""
Initialize your data structure here.
"""
self.stack = []
def push(self, x: int) -> None:
"""
Push element x to the back of queue.
"""
... | [
"835410808@qq.com"
] | 835410808@qq.com |
cb0d026ba9bbf7fb071cfc018eaf8538a0285a2d | 9a343c495459e79dc408a102730bcaeac7fa8886 | /blog/app01/admin.py | d1211d0bccc7fd7e1a91cb51ce105a8e53f5ca8c | [
"MIT"
] | permissive | MMingLeung/Python_Study | 62d3ae92bf6760de0804aa5792f53fb3799486a2 | 4ff1d02d2b6dd54e96f7179fa000548936b691e7 | refs/heads/master | 2022-12-27T12:53:05.186800 | 2018-03-07T04:34:36 | 2018-03-07T04:34:36 | 92,124,981 | 3 | 1 | MIT | 2021-06-10T18:35:33 | 2017-05-23T03:28:52 | JavaScript | UTF-8 | Python | false | false | 452 | py | from django.contrib import admin
from app01 import models
# Register your models here.
admin.site.register(models.UserInfo)
admin.site.register(models.Article)
admin.site.register(models.ArticleDetail)
admin.site.register(models.Article2Tag)
admin.site.register(models.Tag)
admin.site.register(models.Category)
admin.sit... | [
"mingmingleung1991@gmail.com"
] | mingmingleung1991@gmail.com |
00149d0616ecf21778b8fc9f4226f2e31c0455cf | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/container/node_pools/delete.py | 85c05b6a7ef85f44a9e6eb9c9c58a6ee068f7c38 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 4,208 | py | # -*- coding: utf-8 -*- #
# Copyright 2014 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
1b255b3ddd1df3b1b17cabceab2a798b41728384 | 164e0f43ef3ad4cb7f6b28dfdd2bfbaa66d38ce2 | /Remove_Invalid_Parentheses/Remove_Invalid_Parentheses.py | 034e14e6cc19233f7b8b6abc301cc84c82bcdc96 | [] | no_license | maoxx241/code | b217f2d10065d90f52cfa38788c99e238565b892 | 16e97ec5ee7ae9ffa69da2e001d15a86d73d2040 | refs/heads/master | 2021-07-11T14:25:35.098241 | 2020-11-25T14:01:56 | 2020-11-25T14:01:56 | 222,544,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | class Solution:
def removeInvalidParentheses(self, s: str) -> List[str]:
left = 0
right = 0
# First, we find out the number of misplaced left and right parentheses.
for char in s:
# Simply record the left one.
if char == '(':
left +... | [
"maomaoyu870@gmail.com"
] | maomaoyu870@gmail.com |
69e237230ee8790bc12d09eeeae22d58d793a7de | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binary_20200525114701.py | e8cd6e394a55474ea53bc0c4231c7e1d52b17737 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | def solution(N):
print(N)
maximumCount = 0
number = format(N,"b")
print("wow",number)
s = [str(i) for i in number]
binary = int("".join(s))
intialNumber = None
answer = []
# totalCount = 0
# totalCount = 0
print("binary",number)
for i in rang... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
80c7f0807075a35cdcec4e616e655da777916a79 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/leetcode/leetCode/Stack/225_ImplementStackusingQueues.py | 605f337ca4287019202fd4d6bbc9e42ac90b852a | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 768 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: xuezaigds@gmail.com
from collections import deque
class Stack(object):
def __init__(self):
self._queue = deque()
def push(self, x):
# Pushing to back and
# then rotating the queue until the new element is at the front
q... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
128cca6fe2e6e5e784f55a61facb0487d837a808 | 127fa3dd454434b4c7526afe161177af2e10226e | /learn/python_base/io.py | 60348faa4adbf54d5d67904473a557cd1779d9e7 | [] | no_license | lunar-r/sword-to-offer-python | 966c46a8ddcff8ce5c95697638c988d83da3beab | fab4c341486e872fb2926d1b6d50499d55e76a4a | refs/heads/master | 2023-04-18T18:57:12.126441 | 2020-11-29T09:51:23 | 2020-11-29T09:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | # -*- coding: utf-8 -*-
"""
File Name: io
Description :
Author : simon
date: 19-3-28
"""
# -- 文件基本操作
output = open(r'C:\spam', 'w') # 打开输出文件,用于写
input = open('data', 'r') # 打开输入文件,用于读。打开的方式可以为'w', 'r', 'a', 'wb', 'rb', 'ab'等
fp.read([size]) # size为读取的长度,以byte为单位
fp.readline([size]) #... | [
"2711772037@qq.com"
] | 2711772037@qq.com |
404b3dd9bf9118947a73b4b22ab44cac0e5361bd | d5e94042ac2b248b7701117a6ea941bcc862067a | /upvote/gae/modules/bit9_api/constants.py | f473708c778b50b28f70a3411e000b6fa473e0de | [
"Apache-2.0"
] | permissive | codegrande/upvote | f373105203a0595f76c29e138a18a95dc24a63df | e05d477bb13e470127b109eb8905a66a06eed5ac | refs/heads/master | 2020-03-07T19:40:47.185833 | 2019-06-20T14:35:20 | 2019-06-20T14:35:20 | 127,677,753 | 0 | 0 | null | 2018-04-01T22:49:28 | 2018-04-01T22:49:27 | null | UTF-8 | Python | false | false | 2,558 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"msuozzo@google.com"
] | msuozzo@google.com |
62dbc06cc71f3f8a7e37df306f12fd1e96d86336 | 284f2bfaabf91899211e56063026857c496965cf | /users/mixins.py | 9da8e98128b9d6e173ab42e6c559d7402fc769a5 | [] | no_license | vanessa/building-tuirer | 7b56bb9791659fcd04942d2c84a393c3c226f8c4 | 61d85df7d120387700b2e449a6fde5fb9ca7cfaa | refs/heads/master | 2022-12-11T07:25:14.174448 | 2018-08-07T05:18:29 | 2018-08-07T05:18:29 | 142,210,249 | 18 | 0 | null | 2022-12-08T02:19:48 | 2018-07-24T20:35:34 | Python | UTF-8 | Python | false | false | 706 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from users.models import User
from django.shortcuts import redirect
from django.contrib import messages
class ProfileAccessMixin(LoginRequiredMixin):
def handle_no_permission(self):
# Mostrando mensagens
messages.error(
self.re... | [
"vanessa@vinta.com.br"
] | vanessa@vinta.com.br |
5463c902b0d00d5e90378a570e33e19db4e6b638 | 31a0b0749c30ff37c3a72592387f9d8195de4bd6 | /release/ray_release/scripts/run_release_test.py | 6729c6a6630ae109dcf0bf0513abdb49074b30e0 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | longshotsyndicate/ray | 15100bad514b602a3fa39bfe205288e7bec75d90 | 3341fae573868338b665bcea8a1c4ee86b702751 | refs/heads/master | 2023-01-28T15:16:00.401509 | 2022-02-18T05:35:47 | 2022-02-18T05:35:47 | 163,961,795 | 1 | 1 | Apache-2.0 | 2023-01-14T08:01:02 | 2019-01-03T11:03:35 | Python | UTF-8 | Python | false | false | 3,840 | py | import os
import sys
from typing import Optional
import click
from ray_release.aws import maybe_fetch_api_token
from ray_release.config import (
read_and_validate_release_test_collection,
find_test,
as_smoke_test,
DEFAULT_WHEEL_WAIT_TIMEOUT,
)
from ray_release.exception import ReleaseTestCLIError, Rel... | [
"noreply@github.com"
] | longshotsyndicate.noreply@github.com |
7d59995c77d2bfd70c4e9e24e6d9add01ba90bfb | 705ca924bc63e8b324b847b21263f823219280e1 | /apps/its_login_register/migrations/0006_job.py | 6e32a697bb0da3c4dffe8fc695f96d8bda5c8dfd | [] | no_license | Komaldhall/Helping-Hand | 46a28f70045029794b0feb502db1ce3c8ba721e3 | a544b3812d3eb968233cfd28464c321f3bc997af | refs/heads/master | 2020-04-16T09:29:15.308558 | 2019-01-13T08:44:26 | 2019-01-13T08:44:26 | 165,465,986 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | # Generated by Django 2.0.7 on 2018-07-20 18:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('its_login_register', '0005_auto_20180720_1103'),
]
operations = [
migrations.CreateModel(
name=... | [
"komal.dhall7@gmail.com"
] | komal.dhall7@gmail.com |
782369aa9e5911c9a60e033e2124834fa92cff51 | 87849e7794e223214b3e40896c708d4ea17f2a12 | /tests/test_autogen_computed.py | 1144560dca5c23996719909df7610844ed7d95cb | [
"MIT"
] | permissive | novafacing/alembic | 0b6d9bfa9a66bd4883e863a6ce70a7094c9bb85b | 29ff74c2678ab73f6c5a646477c840f5cdded234 | refs/heads/master | 2021-01-14T15:21:53.344810 | 2020-02-24T06:22:46 | 2020-02-24T06:22:46 | 242,660,622 | 0 | 0 | MIT | 2020-02-24T06:13:49 | 2020-02-24T06:13:49 | null | UTF-8 | Python | false | false | 4,577 | py | import sqlalchemy as sa
from sqlalchemy import Column
from sqlalchemy import Integer
from sqlalchemy import MetaData
from sqlalchemy import Table
from alembic import testing
from alembic.testing import config
from alembic.testing import eq_
from alembic.testing import exclusions
from alembic.testing import is_
from al... | [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
a94cf976e9587529566a28af7ecc54d87fa2a67e | 733b5c3974dd135c390aedbb75ce863abfac0759 | /portal/forms.py | 92d9c7bf4f754d5a879255c286ec998952d941e0 | [] | no_license | stepin-s/electroportal | eb3ade027d548969761a9482aaddbcfb81666d0d | d8228ff77805d405f56d18537fa17dcc945cf8a6 | refs/heads/master | 2022-12-02T12:33:29.163301 | 2020-08-17T07:05:24 | 2020-08-17T07:05:24 | 284,604,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django import forms
from .models import News
from .models import Videos
class NewsForm(forms.ModelForm):
class Meta:
model = News
fields = ('title', 'text',)
class VideosForm(forms.ModelForm):
class Meta:
model = Videos
fields = ('title', 'text',) | [
"stpn.s@yandex.ru"
] | stpn.s@yandex.ru |
27c70bdc66179c2000f823081a3d97b2140bc3e8 | cf945fb7c961376bfcff37c80fe50312d4f32290 | /Books/NetworkScraping_Py3/C2_NetworkHrefScraping/E2_HrefScarpingEntry.py | 30aa204aa2cc770573683076ad0a29dac704befa | [] | no_license | lizhenQAZ/code_manage | faa1e805326cc8da8463e0f8820c9d092a04dddb | f98977d58a9febb8212652846314418bba37bfc7 | refs/heads/master | 2020-12-03T00:00:52.205238 | 2018-12-19T16:00:48 | 2018-12-19T16:00:48 | 95,968,266 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from urllib.request import urlopen
from urllib.error import HTTPError
from bs4 import BeautifulSoup
import re
url = 'https://en.wikipedia.org/wiki/Kevin_Bacon'
rex = re.compile('^(/wiki/)((?!:).)*$')
def gettitle(url_info):
try:
html = urlopen(url_info)
except HTTPError as e:
return None
... | [
"www.516960831@qq.com"
] | www.516960831@qq.com |
4693784784bb42b021025f1ca712c9ce4534686e | 50957651c54cfb3cba809eb84cf56c0cb2e2621d | /tests/cpydiff/modules_sys_stdassign.py | 096af430e4f571587577ec543a3dfb426aa26dbd | [
"MIT"
] | permissive | whyengineer/micropython-esp32 | 94d11e1f5171ea526ac5f97de60e34560b656435 | ab95d9cb19fc8cda42bf3fdecd76625ff9929c4e | refs/heads/esp32 | 2020-12-02T18:20:19.929696 | 2017-07-07T10:21:24 | 2017-07-07T10:21:24 | 96,515,880 | 4 | 0 | null | 2017-07-07T08:14:40 | 2017-07-07T08:14:39 | null | UTF-8 | Python | false | false | 223 | py | """
categories: Modules,sys
description: Override sys.stdin, sys.stdout and sys.stderr. Impossible as they are stored in read-only memory.
cause: Unknown
workaround: Unknown
"""
import sys
sys.stdin = None
print(sys.stdin)
| [
"damien.p.george@gmail.com"
] | damien.p.george@gmail.com |
20cc519f37b4cc8a0dbe3cb2c7440dd9e4437f7b | 22d6db28f14ea809fffb3afb187a1b484474713f | /azext_keyvault/mgmt/keyvault/models/__init__.py | e561ff7983d0c7bb82557cb61856036e4c53e434 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-keyvault-cli-extension | 631322637f2311b6833bc9664ef92fd77e1eade6 | a9b4a1f8a1f8e2433f83a81efe6068e3bf4537ef | refs/heads/master | 2023-06-09T18:56:46.388527 | 2023-06-02T16:18:23 | 2023-06-02T16:18:23 | 130,276,163 | 3 | 8 | MIT | 2023-06-02T16:18:24 | 2018-04-19T21:49:23 | Python | UTF-8 | Python | false | false | 4,353 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"sschaab@microsoft.com"
] | sschaab@microsoft.com |
2c0dc72ca231da4f98c7a53bddff61f3cebb751f | c1ef1f1fa94b5dbecff2ec09e94ae29a9094d82a | /study/backjoon/backjoon_2231.py | 0561b5dae7d63b7ff43bdca2e4d945e638375f74 | [] | no_license | MONKEYZ9/algorithm | cd6039a2232615e9bd40f63e2509fddf7edcede7 | 4ffde1ac47294af87152ed740962db600e0b9755 | refs/heads/main | 2023-08-14T17:01:54.792376 | 2021-10-01T06:14:55 | 2021-10-01T06:14:55 | 380,917,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | N = input()
max_N = 9*len(N)+1
ans = []
for i in range(1, max_N):
temp = 0
if int(N)-i > 0:
if len(str(int(N)-i)) >= 2:
for j in list(str(int(N)-i)):
temp += int(j)
if i == temp:
ans.append(int(N)-i)
else:
if ((int(N)-i)*2) ==... | [
"sangmin3285@gmail.com"
] | sangmin3285@gmail.com |
5a7e2ba68068192502f574cba81b2619a076de0a | 258f6619c909be6295078d34639f4ffa171257b3 | /src/edb/model/experiment/__init__.py | 6bf85c797e89e61f8a4009925a8e3d711c405148 | [] | no_license | aidanheerdegen/experimentdb | a12a168c50517c72028ab7ba231a27bda88fc05d | 8a5e77b2b489c4cba8766c8071c238586c11c0a3 | refs/heads/main | 2023-07-30T00:15:44.168950 | 2021-09-10T06:35:32 | 2021-09-10T06:35:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | from .base import Experiment
from ...utils import all_subclasses
# Import the subclasses so they're loaded
from . import accesscm, um, generic, payu
def experiment_factory(type: str, path: str) -> Experiment:
"""
Try to create a 'type' Experiment at 'path'
"""
# Each Experiment subclass has the type... | [
"scott.wales@unimelb.edu.au"
] | scott.wales@unimelb.edu.au |
4bded312dca334a10d59f07a72b4fc7556ae4dc3 | 83316f8e2be55b19d81ccee935c9cfa09ac7b0b3 | /deepaudio/speaker/models/clovaai_resnetse34l/configurations.py | 48705f3a4bafd38013ba99080910d6b4c6daef84 | [] | no_license | TrendingTechnology/deepaudio-speaker | 5769b3ed851c721a57fcc4983c5905401d50f85e | 46f4edef5957e0211b5fe82146e5ce48b1744e15 | refs/heads/main | 2023-07-05T03:39:55.224562 | 2021-08-08T08:02:12 | 2021-08-08T08:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from dataclasses import dataclass, field
from deepaudio.speaker.dataclass.configurations import DeepMMDataclass
@dataclass
class ClovaaiResnetse34lConfigs(DeepMMDataclass):
name: str = field(
default="clovaai_ecapa", metadata={"help": "Model name"}
)
embed_dim: int = field(
default=256, me... | [
"yinruiqing110@gmail.com"
] | yinruiqing110@gmail.com |
1897130bdb9a24f6cada979c2535f4bc3279dedf | d066f7fe739fb78f74ec2de8ccbfefdd4270f60f | /appimagebuilder/modules/generate/package_managers/apt/__init__.py | 7ec1d298ae9776e5b17bc702c58ca69a36ebfb00 | [
"MIT"
] | permissive | AppImageCrafters/appimage-builder | 666e75363a74f615cdb3673b3ca9d51a6d292a49 | f38699ef3644fa5409a5a262b7b6d99d6fb85db9 | refs/heads/main | 2023-08-17T06:34:54.029664 | 2023-06-03T17:51:04 | 2023-06-03T17:51:04 | 218,847,680 | 270 | 54 | MIT | 2023-09-06T17:04:18 | 2019-10-31T19:44:17 | Python | UTF-8 | Python | false | false | 751 | py | # Copyright 2021 Alexis Lopez Zubieta
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publi... | [
"contact@azubieta.net"
] | contact@azubieta.net |
8a0a9d68892f0dbac3b8e55eb69e82f1788cc05e | ba2d449486c58578581b8de7b2b6f21074be6274 | /02 Linked Lists/2-4-Partition.py | 382b61d69de5bcd3a2a3495d4d3dfa4e66b26e1c | [] | no_license | theoliao1998/Cracking-the-Coding-Interview | 4e0abef8659a0abf33e09ee78ce2f445f8b5d591 | 814b9163f68795238d17aad5b91327fbceadf49e | refs/heads/master | 2020-12-09T12:46:10.845579 | 2020-07-25T05:39:19 | 2020-07-25T05:39:19 | 233,306,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | # Partition: Write code to partition a linked list around a value x, such that all nodes less than x come
# before all nodes greater than or equal to x. If x is contained within the list, the values of x only need
# to be after the elements less than x (see below). The partition element x can appear anywhere in the
# "... | [
"theoliao1998@gmail.com"
] | theoliao1998@gmail.com |
92a0f711757a1bedc1524c74b2a79606503bc2e9 | b77cc1448ae2c68589c5ee24e1a0b1e53499e606 | /env/Lib/site-packages/celery/signals.py | a9d74096a187bdc77fcb044d3bc0c5991ad6c1e0 | [] | no_license | PregTech-c/Hrp_system | a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7 | 11d8dd3221497c536dd7df9028b9991632055b21 | refs/heads/master | 2022-10-09T07:54:49.538270 | 2018-08-21T11:12:04 | 2018-08-21T11:12:04 | 145,424,954 | 1 | 1 | null | 2022-10-01T09:48:53 | 2018-08-20T13:58:31 | JavaScript | UTF-8 | Python | false | false | 4,252 | py | # -*- coding: utf-8 -*-
"""Celery Signals.
This module defines the signals (Observer pattern) sent by
both workers and clients.
Functions can be connected to these signals, and connected
functions are called whenever a signal is called.
.. seealso::
:ref:`signals` for more information.
"""
from __future__ impor... | [
"imugabi64@yahoo.com"
] | imugabi64@yahoo.com |
1770f233133bfac4134d3c943a64c6377601bf89 | 5d0e76e3c741adc120ce753bacda1e723550f7ac | /804. Unique Morse Code Words.py | 32ec17fb4276bfed3e16e772c733fbe1447b419f | [] | no_license | GoldF15h/LeetCode | d8d9d5dedca3cce59f068b94e2edf986424efdbf | 56fcbede20e12473eaf09c9d170c86fdfefe7f87 | refs/heads/main | 2023-08-25T12:31:08.436640 | 2021-10-20T04:36:23 | 2021-10-20T04:36:23 | 392,336,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | class Solution:
def uniqueMorseRepresentations(self, words: List[str]) -> int:
morse = [".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--.."]
l = []
for cur in words :
tmp =... | [
"todsapon.singsunjit@gmail.com"
] | todsapon.singsunjit@gmail.com |
f99716fda4cb4563b8a60f98be2ac6d07ada0747 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/reaching-points/412272224.py | f83c584abb244333b9df14020e18ff100cbbc336 | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # title: reaching-points
# detail: https://leetcode.com/submissions/detail/412272224/
# datetime: Fri Oct 23 22:45:10 2020
# runtime: 20 ms
# memory: 14 MB
class Solution:
def reachingPoints(self, sx: int, sy: int, tx: int, ty: int) -> bool:
if sx == tx and sy == ty:
return True
while t... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
111b23c3006355c235c2d5856e279a4634f63d1d | 761e133170e1c34a2360d488ddca43fa40107b96 | /src/tools/MaxMa.py | c04d37033046bb1d752839b484a050412fa19f2c | [] | no_license | bjzz/StockParser | c85b7180eea7ac5fa79b320fe1ad8934513c0482 | a2dc1d2de06b78055786b956de940548bca75054 | refs/heads/master | 2023-03-18T04:54:31.487171 | 2019-09-27T09:48:28 | 2019-09-27T09:48:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | #coding:utf-8
#!/usr/bin/env python
import os
import re
import requests,time
import shutil
import sys
import threading
import time
import datetime
reload(sys)
sys.setdefaultencoding('utf-8')
rootPath = sys.path[0][0:sys.path[0].index('StockParser')]+'/StockParser'
sys.path.append(rootPath+'/src')
from common import ... | [
"you@example.com"
] | you@example.com |
1e581d0645442ece0090ccefed1d44c58c5b6f27 | 1f98ccf9ef52d3adab704676480c85fe22c9542d | /simpledb/index/planner/IndexUpdatePlanner.py | 08656dd3f154a4650f863d9049ab5e54285bdf67 | [] | no_license | 61515/simpleDB_Python | 234c671cbbf57f3e8fc5489ec4c292365085b7a8 | b6846da4a78369838f5b3c7a704de704e18f7be7 | refs/heads/master | 2023-02-22T14:07:52.660633 | 2021-01-24T02:25:40 | 2021-01-24T02:25:40 | 332,343,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,129 | py | #
# * A modification of the basic update planner.
# * It dispatches each update statement to the corresponding
# * index planner.
# * @author Edward Sciore
#
from simpledb.plan.SelectPlan import SelectPlan
from simpledb.plan.TablePlan import TablePlan
from simpledb.plan.UpdatePlanner import UpdatePlanner
class In... | [
"1632039752@qq.com"
] | 1632039752@qq.com |
3da2984b78ac4b9d85c60ceb621e0e1f35020a67 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/paddleLT/donotuse/debug/jit_export_CSPResNet.py | 223881fbcff5703f345d459931528af5ae9a9e8b | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 785 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
ocr rec_srn_head
"""
import copy
import numpy as np
import paddle
import ppdet
paddle.seed(33)
np.random.seed(33)
def randtool(dtype, low, high, shape):
"""
np random tools
"""
if dtype == "int":
r... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
ba7a076e824d53bf5d8d6cbbcd4e609c30366bbc | 650e1bea7cec90b3c88ad84a80f5134434920c68 | /larflow/Reco/test/vis_clusters.py | adebb2eeb34637224859b0f832b8b388f6ac7d34 | [] | no_license | NuTufts/larflow | 7698329f50ec7d0db2f0a715e5a9f6dc09998f55 | 1ba2b426f191704a141bb72d7675d9746538eed4 | refs/heads/master | 2023-08-31T04:35:10.251625 | 2020-09-01T01:49:33 | 2020-09-01T01:49:33 | 136,974,430 | 1 | 1 | null | 2020-09-03T03:00:40 | 2018-06-11T19:56:04 | C++ | UTF-8 | Python | false | false | 6,996 | py | from __future__ import print_function
import os,sys,argparse,json
parser = argparse.ArgumentParser("Plot Reco Clusters for Inspection")
parser.add_argument("-ll","--input-larlite",required=True,type=str,help="kpsrecomanager larlite output file")
args = parser.parse_args()
import numpy as np
import ROOT as rt
from lar... | [
"taritree.wongjirad@gmail.com"
] | taritree.wongjirad@gmail.com |
1115dc0f1240a03cd10c4c47d711092e5ac14e36 | 64764cbae8641d051c2e26c0c2283e8e626d88fb | /ecf/tbl/GLBCNO.py | 86a5dd5680a44379898071b551f23ffb7ba4d13b | [] | no_license | jazlee/csp-accounting | eb801ce902170337121a6dbe2b1382be4089ecca | 85f50f9d8defbf52e6c85f5c0fc0464101a01d03 | refs/heads/master | 2021-01-25T14:11:18.700456 | 2018-03-03T06:34:57 | 2018-03-03T06:34:57 | 123,666,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | from elixir import *
#
# G/L Batch Numbering Option
#
class GLBCNO(Entity):
GLBCNOID = Field(String(3), primary_key=True)
GLBCNONM = Field(String(32))
GLBCMINO = Field(Integer)
GLBCMXNO = Field(Integer)
GLBCLSNO = Field(Integer)
GLBCAUDT = Field(Numeric(8, 0))
GLBCAUTM = Field(Numeric(6, 0))
GL... | [
"jaimy@usg.co.id"
] | jaimy@usg.co.id |
46fe70a671b7a3d75410988284962ba930d7a7ae | 9f59d55bd8466f6f50c5bbec4725c8a073b964bd | /base/urls.py | 2533140c3f85ca26346f0e0d8f03a059d330063f | [] | no_license | youngsoul/django-todo-list | 9a88e14ba2bf305844058d6db94ffc8e11b36e5f | f1d687b72fd066a44b29d8974e6e49a094572a6d | refs/heads/master | 2023-04-11T15:08:54.400185 | 2021-04-26T00:57:14 | 2021-04-26T00:57:14 | 361,575,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | from django.urls import path
from .views import TaskList, TaskDetail, TaskCreate, TaskUpdate, TaskDelete, CustomLoginView, RegisterPage
from django.contrib.auth.views import LogoutView
urlpatterns = [
path('login/', CustomLoginView.as_view(), name='login'),
path('logout/', LogoutView.as_view(next_page='login'), ... | [
"theyoungsoul@gmail.com"
] | theyoungsoul@gmail.com |
e472a596c694aca6cb4500d419d1493f0e53bcfa | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/gen/view_models/views/lobby/mode_selector/mode_selector_wt_widget_model.py | 2378eac9b0d2e89a56f1349cd4960f6589d3ef65 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 1,185 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/mode_selector/mode_selector_wt_widget_model.py
from gui.impl.gen.view_models.views.lobby.mode_selector.mode_selector_base_widget_model import ModeSelectorBaseWidgetModel
class ModeSelectorWtWidg... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
f4021e8727f0afecf7a0bdc8479df954272d1dde | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/131/usersdata/172/37508/submittedfiles/al10.py | 8b72b71b334d840e9babcac59072316f61d2bb92 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # -*- coding: utf-8 -*-
#NÃO APAGUE A LINHA ACIMA. COMECE ABAIXO DESTA LINHA
n=int(input('digite um valor'))
i=2
d=3
while 0<n
soma=4*((i/d)*((i+2)/d))
i=i+2
d=d+2
print('%.5d'%soma) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
40960e8b4d96b9073c43ba86fde89699ce912374 | 993c6595f2d7cb2c4efae2c5264fb09008b9c7d4 | /pychallenge/pychallenge/users/migrations/0003_auto_20190123_1757.py | b1783f138089146c10d8deef5cf7e3a8b036e0c6 | [] | no_license | triump0870/pychallenge | 985af46268a0a83cb3c8a891d3ff0faf01570ef5 | c6c117b41bf981efc0acce814a5b17eec49903c6 | refs/heads/master | 2022-12-15T11:58:39.045942 | 2019-01-23T19:17:33 | 2019-01-23T19:17:33 | 167,192,119 | 1 | 0 | null | 2022-12-08T01:36:26 | 2019-01-23T13:57:47 | CSS | UTF-8 | Python | false | false | 1,032 | py | # Generated by Django 2.1.5 on 2019-01-23 17:57
from django.db import migrations, models
import django.utils.timezone
import markdownx.models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20190123_1746'),
]
operations = [
migrations.AddField(
m... | [
"b4you0870@gmail.com"
] | b4you0870@gmail.com |
3068573ee1705acd83f26145b16387a3fb624f9f | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_table.py | 64286297b4600561a077e8c45d8e6733baddfdb9 | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 784 | py | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
from h2o.utils.typechecks import assert_is_type
from h2o.frame import H2OFrame
def h2o_H2OFrame_table():
"""
Python API test: h2o.frame.H2OFrame.table(data2=None, dense=True)
Copied fr... | [
"noreply@github.com"
] | Winfredemalx54.noreply@github.com |
d3897c6338e630a1d5c705c0bc9eafc08f859249 | 0e383ccac5fdf21dc5059502b9aae26412fd6a88 | /sheaths.icmes/src/extract.py | d3de533033d78081270a6c72c86f666f948d5acf | [
"MIT"
] | permissive | jimsrc/seatos | 63c8ad99f2b5d4ae5f203cdc8f8e061948f257f4 | e775dba1a2a96ff44b837cf8d85101ccfef302b1 | refs/heads/master | 2021-01-02T08:38:51.349670 | 2017-09-01T01:59:35 | 2017-09-01T01:59:35 | 99,040,968 | 0 | 1 | null | 2017-09-01T01:59:36 | 2017-08-01T20:33:55 | Python | UTF-8 | Python | false | false | 5,572 | py | #!/usr/bin/env ipython
from pylab import *
from numpy import *
from scipy.io.netcdf import netcdf_file
from datetime import datetime, time, timedelta
#------------ shared libraries:
"""
--- antes de modificar cosas, tener en cuenta los bugs en:
'../../shared_lib/COMENTARIOS.txt'
"""
import sys
sys.path.append('../../... | [
"jimmy.ilws@gmail.com"
] | jimmy.ilws@gmail.com |
df49c2e8770f6ff76b848c7878d8f60d0083ec8f | 84566b23a26a3eeadc3d99e6ada39296759da3e6 | /ptero_auth/implementation/models/scopes.py | 3ca8e29c1c981954ec1c7c2c872f8a68d35e51f6 | [] | no_license | iferguson90/ptero-auth | 2cfd28c11add633c78ef768fede2ff04e2fe064b | 97047466387df71a8cb8ae29d955f6471540ebfe | refs/heads/master | 2021-01-22T14:39:45.335063 | 2014-08-29T20:56:25 | 2014-08-29T20:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | from .base import Base
from sqlalchemy import Column, ForeignKey, Integer, Text
from sqlalchemy import Table, PrimaryKeyConstraint
from sqlalchemy.orm import relationship
__all__ = ['Scope']
class Scope(Base):
__tablename__ = 'scope'
scope_pk = Column(Integer, primary_key=True)
value = Column(Text, ind... | [
"mark.m.burnett@gmail.com"
] | mark.m.burnett@gmail.com |
7adedccffebabc3cee9a05501b6ab85fe7b4b3e1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FXJSMM/YW_FXJSMM_SZSJ_292.py | 06e684a9bd632dff4ab6408ce3316867e466936b | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,070 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
4c6342b8a903410e1a5d3185e85c44b88365c921 | b1e52f926116286c138890ca0d86bf74433e8ee4 | /lib/SpriteLoader.py | a1063b8adea2fc0d10c23c115df455528f5701c7 | [] | no_license | topherCantrell/pixel-sign | 22f35b84bbaaf98fb143229f2df6afe0911e1bb0 | b8f1c1723f81259fc3dc3e91b275aea0215802df | refs/heads/master | 2021-07-11T16:51:31.799934 | 2020-07-22T17:36:14 | 2020-07-22T17:36:14 | 160,055,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,822 | py |
class SpriteLoader:
def __init__(self):
self.sprites = {}
with open("Sprites.txt") as f:
lines = f.readlines()
currentName = None
currentSprite = []
for line in lines:
line = line.strip()
... | [
"topherCantrell@gmail.com"
] | topherCantrell@gmail.com |
12ea1bd995b23ab1c185e7562c2fbb73ddf63694 | f8f8651ab604acc4937f8725caadaca1fb97a5e8 | /src/pytorch_lightning/plugins/precision/native_amp.py | 4df1b166ca8dd31d4fbea638d32dc81110659018 | [
"Apache-2.0"
] | permissive | neptune-ai/pytorch-lightning | ac59e746a486e07e21abae426b28e5d72812ac98 | 702014418e2ec0437e67d8bf97809edef686a02c | refs/heads/master | 2022-09-28T09:34:07.653729 | 2022-09-12T11:13:48 | 2022-09-12T11:13:48 | 229,063,811 | 1 | 1 | Apache-2.0 | 2022-09-26T03:29:49 | 2019-12-19T13:48:16 | Python | UTF-8 | Python | false | false | 5,106 | py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"noreply@github.com"
] | neptune-ai.noreply@github.com |
a7ecf43316deac0104330b55d0d997358e4b3b58 | 19bb4caf8a06868498c5b7c35c46e5e1da188548 | /simpleorm.py | 2349a3ba2db1ac9933b2255e4e709ce279b1f82a | [] | no_license | MUIC-CS/summer2017-week2-tabkeeper | 3585924534972d354c04007845e18a9b6868a48f | 68b1b989f3d8a8100b599b9a8cdb5251639aa14d | refs/heads/master | 2021-01-15T12:37:37.513496 | 2017-08-09T19:12:16 | 2017-08-09T19:12:16 | 99,653,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,478 | py | from db import get_cursor
class SimpleBean:
columns = ()
def __init__(self, *args, **kwds):
# TODO: make it set
tmp = {k: v for k, v in zip(self.columns, args)}
tmp.update(kwds)
self.__dict__ = self.filter_params(tmp)
@classmethod
def filter_params(cls, d):
re... | [
"piti118@gmail.com"
] | piti118@gmail.com |
970ed11ee3587e2517db5c3285c8aa9aff4724f4 | f36d2e601b9aa0498c68951e8a081b6ce2036116 | /modules/ip_commands.py | dfea39dfb7b8e1745dfedf9f473a43782d70fc07 | [] | no_license | jaconsta/rpi_notify | 16de79acfb916646cb0ebd4cb8bbb3a7def87c31 | e0aac512dc96eb66fb61ac13560a59e4b1929b89 | refs/heads/master | 2021-01-11T20:48:57.761601 | 2017-01-17T05:05:21 | 2017-01-17T05:05:21 | 79,190,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | """
Obtain current local IP address.
"""
import platform
import socket
import subprocess
def run_command(cmd):
"""
Execute this OS command and return the formated response.
"""
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
return err if er... | [
"constainopia@gmail.com"
] | constainopia@gmail.com |
dfc79ab2926282ff85f93564e287333570fd498b | b8ef1a5cd3856a8e9134c3313a4e23522f199df7 | /Programmers/84325_직업군 추천하기/84325_직업군 추천하기.py | 2d65ae9cecc92be4f0db236416f553f114f185dc | [] | no_license | scl2589/Algorithm_problem_solving | 910623d9675ae0219320abfd1fefc7d576027544 | 80db697cdd0180a7d4dbcfae4944d4a54191bddf | refs/heads/master | 2023-07-29T10:56:38.225206 | 2021-09-11T13:50:46 | 2021-09-11T13:50:46 | 235,363,353 | 0 | 0 | null | 2021-03-04T15:39:41 | 2020-01-21T14:36:41 | Python | UTF-8 | Python | false | false | 489 | py | def solution(table, languages, preference):
answer = ''
answer_list = []
for t in table:
lst = t.split(' ')
new = [lst[0]]
new.extend(lst[5:0:-1])
total = 0
for idx, language in enumerate(languages):
if language in new:
total += new.index(l... | [
"chaelinshin96@gmail.com"
] | chaelinshin96@gmail.com |
7c83619bbc76cacaee8fce5c49099d93ca880d70 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631572862566400_0/Python/icedingo/bff.py | 6f6a5da5564dfe239f4a6b0dd80a606d45e35cb2 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | T = int(input())
class Pair(object):
def __init__(self, a, b, ap, bp):
self.a = a
self.b = b
self.ap = ap
self.bp = bp
def get_longest(self, pairs, rev, seen):
#print('Getting longest for', self)
alen = 0
for p in self.ap:
if p == self.b:
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
32a13a3c4ef90bca8e60735e77b5dcd0de843596 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /homeassistant/components/plex/services.py | 0847583635de398594b64c383690af167bf32786 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 6,634 | py | """Services for the Plex integration."""
import json
import logging
from plexapi.exceptions import NotFound
import voluptuous as vol
from yarl import URL
from homeassistant.core import HomeAssistant, ServiceCall
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.dispatcher import async... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
061696e1fd6d7402e0460b8c2bd8cc4d09085cb6 | cce6364dd85b62782671cd8048873eede2045137 | /high/2_mergeKLists.py | 152a70aed8a7ea6300262b0c85c3284a60f19832 | [] | no_license | gmt710/leetcode_python | ed647958440f66583b8717dae7bca49c516984da | 441623afee3713506b702c5fd462c7ba84b48442 | refs/heads/master | 2020-03-28T05:11:02.851792 | 2019-04-17T09:14:51 | 2019-04-17T09:14:51 | 147,761,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
# heapq使用说明
# a为普通列表
# - heapq.heapify(a) 调整a,使得其满足最小堆
# - heapq.heappop(a) 从最小堆中弹出最小的元素
# - heapq.heappush(a,b) 向最小堆中压入新的元素
class Solution(object):
def mergeKLists(self... | [
"noreply@github.com"
] | gmt710.noreply@github.com |
aa712c04989960f93bbe5288b6a2119889c460a7 | 86e904c75d0140eea3e4169d216955e1c34801b3 | /python_test2/cloud/DB_update.py | ef46c6c42d6fecb4b51755d7aa89d1ae39675299 | [] | no_license | reharmony/cloudpython | d62f61749e5b5862d3b81e449d5154e188a14d21 | 98e033e537d763ba86d162f58d0fe8f64249a291 | refs/heads/master | 2020-04-29T16:58:55.281917 | 2019-05-15T12:11:43 | 2019-05-15T12:11:43 | 176,281,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | '''
Created on 2019. 4. 30.
@author: user
'''
import pymysql
from cloud.UI_Main import *
# 수강정보 DB에서 수정
def db_process_update(id, price):
# 1. db인증 -> 연결
con = pymysql.connect(host ='localhost', user='root',password='1234', db = 'course')
print("1. db인증 -> 연결 성공...")
print(con)
... | [
"noreply@github.com"
] | reharmony.noreply@github.com |
c59d517b4583b3b3e62c9432003fb472aceb46b2 | b1a69cd1d3ad792e8c50f2266493b586b0633168 | /repos/system_upgrade/el8toel9/actors/mariadbcheck/tests/test_mariadbcheck.py | e91345f2d56e2ee79676d33b485203afb6ec5cec | [
"Apache-2.0"
] | permissive | bmarzins/leapp-repository | aaf4c0394fd7d23ea639bd2aa8299e815ff9ba40 | e4f733297937847522ecf4b306182c2bcb293676 | refs/heads/master | 2022-05-26T06:51:34.428355 | 2022-05-04T11:39:41 | 2022-05-04T15:18:35 | 242,839,597 | 0 | 0 | Apache-2.0 | 2020-02-24T20:45:26 | 2020-02-24T20:45:25 | null | UTF-8 | Python | false | false | 2,091 | py | import pytest
from leapp import reporting
from leapp.libraries.actor.mariadbcheck import report_installed_packages
from leapp.libraries.common.testutils import create_report_mocked, CurrentActorMocked
from leapp.libraries.stdlib import api
from leapp.models import InstalledRedHatSignedRPM, RPM
def _generate_rpm_with... | [
"xstodu05@gmail.com"
] | xstodu05@gmail.com |
a075f64105d9368199759c95a39be2c79cbeb562 | 5e381364c2ab31ff3618369085afffba6caa8edb | /recipes/sdf/all/test_package/conanfile.py | f0f5021b597eea4126dc06ed8a9f8ad497bdd594 | [
"MIT"
] | permissive | CAMOBAP/conan-center-index | 16aea68a6d22da22831ba985773125e8eda08f00 | 67d57532bdad549fef3fa6cb8fcdfa86bc55e4f1 | refs/heads/master | 2023-07-30T08:58:57.285571 | 2021-10-02T14:57:54 | 2021-10-02T14:57:54 | 323,262,699 | 1 | 0 | MIT | 2021-05-29T13:37:04 | 2020-12-21T07:30:02 | Python | UTF-8 | Python | false | false | 615 | py | import os
from conans import ConanFile, CMake, tools
class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def requirements(self):
self.requires("stb/20200203")
def build(self):
cmake = CMake(self)
cmake.configure()
... | [
"noreply@github.com"
] | CAMOBAP.noreply@github.com |
ce967c34d1d8457b8429f0af4029fc82dd5382d1 | 99e57f00fcaf4469c1c1b79f2d17176aaef9a790 | /purchase_order_revision/tests/test_purchase_order_revision.py | e1e2bc27d76d6d62d40e1a89903a87294617ee1f | [] | no_license | detian08/mcl | d007ffd0e869f3bd9a8c74bc8473119901f0de2a | 32d61148326c931aca0107c3894061773f287e33 | refs/heads/master | 2022-03-23T19:36:29.608645 | 2019-12-11T10:15:50 | 2019-12-11T10:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | from odoo.tests import common
from odoo import fields
class TestPurchaseOrderRevision(common.SavepointCase):
@classmethod
def setUpClass(cls):
super(TestPurchaseOrderRevision, cls).setUpClass()
cls.partner = cls.env['res.partner'].create({
'name': 'Test partner',
})
... | [
"adarsh@prixgen.com"
] | adarsh@prixgen.com |
64c26ac7295c6f11bf94d56f120e2003ed55fb26 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /120_design_patterns/012_proxy/examples/proxy_005.py | b41f04843274d5f16824f10b2dd7bc621e24ab5d | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,773 | py | """Proxy pattern
Proxy is a structural design pattern. A proxy is a surrogate object which can
communicate with the real object (aka implementation). Whenever a method in the
surrogate is called, the surrogate simply calls the corresponding method in
the implementation. The real object is encapsulated in the surrogate... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
880fe3920c58f152896de23d4ee6ad0c457ad28d | 8766852cddd9cb02cdc57452d6d907a3b0ddcc2b | /test/goose/version.py | fedcbb6de8c5c54f44fe7bea9ef1247fc6013416 | [] | no_license | glqglq/Crawler | 24f532af305e9513dad61670eacef09081c85093 | 769397e0dc723b30955382e22fdbab6aaff35387 | refs/heads/master | 2021-01-20T01:41:34.360112 | 2017-09-15T12:55:44 | 2017-09-15T12:55:44 | 89,318,133 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # -*- coding: utf-8 -*-
"""\
This is a python port of "Goose" orignialy licensed to Gravity.com
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.
Python port was written by Xavier Grangier for Recrutae
Gravity.co... | [
"546751140@qq.com"
] | 546751140@qq.com |
0fe69463926f471c995bb00ebd8a5997679f2c6c | 55e9f3b00fc2e488597bab5225ed321c86efbd4b | /sdk/test/test_credit_line.py | 6e143a986df22cb26461a1dcdc7c013dac722df1 | [
"MIT"
] | permissive | bs-yapily/yapily-sdk-python | ad9d04c28f3d744830734c3444c1cef8215206fd | 0bba45e351b674eb655425a51190f539c4e9896f | refs/heads/master | 2020-08-26T17:18:53.156429 | 2019-10-22T11:01:16 | 2019-10-22T11:01:16 | 217,085,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # coding: utf-8
"""
Yapily API
To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501
OpenAPI spec version: 0.0.155
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __fu... | [
"systems@yapily.com"
] | systems@yapily.com |
571cc5f4406ecac2c0cd3d6bc9e1c26aef47177f | 1e64f178931f5efed25c244dce48d5014aab3a3a | /HackerRank-Algorithm/02. Implementation/004. Between Two Sets.py | 99c311611b5537bf830b4752648c328ab6cd6ed5 | [] | no_license | im876/Python-Codes | 8f672136742a447f2e8d62fe3f37b4a763787ab5 | be06e97f2fa7fb2125a899b7ff49bbe97362c7a3 | refs/heads/master | 2023-08-05T07:25:20.555054 | 2021-09-20T08:17:34 | 2021-09-20T08:17:34 | 279,281,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | input();
a=list(map(int, input().split()))
b=list(map(int, input().split()))
ans=0
for i in range(1, 101):
if all(i%x==0 for x in a) and all(x%i==0 for x in b):
ans+=1
print(ans)
| [
"noreply@github.com"
] | im876.noreply@github.com |
ef8501011cc5ff6b245c337330ba692b929dd21b | 70280955a5382d73e58395eba78c119a400f4ce7 | /aoj/itp2/6d.py | 7780d11018469786985006bb7c193acc99bec21a | [] | no_license | cohock13/atcoder | a7d0e26a10a4e58690347a2e36839c2f503a79ba | d268aa68fc96203eab94d021bd158cf84bdb00bc | refs/heads/master | 2021-01-03T00:41:31.055553 | 2020-10-27T12:28:06 | 2020-10-27T12:28:06 | 239,839,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import bisect
input()
a = list(map(int,input().split()))
for i in range(int(input())):
k = int(input())
print(bisect.bisect_left(a,k),bisect.bisect(a,k)) | [
"callout2690@gmail.com"
] | callout2690@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.