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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c6dc8195de79b31a793ca2f5dc418d94ff91f64 | b78ef082335b0a901b3f028746055fc6308990a2 | /Algorithms/Leetcode/1079 - Letter Tile Possibilities.py | 8d6c8b6e16e83f525e77681c3c51395c04c71c9d | [] | no_license | timpark0807/self-taught-swe | 1a968eab63f73cea30ef2379ffab53980743ed1a | bbfee57ae89d23cd4f4132fbb62d8931ea654a0e | refs/heads/master | 2021-08-14T23:31:14.409480 | 2021-08-10T06:36:06 | 2021-08-10T06:36:06 | 192,797,733 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | class Solution:
def numTilePossibilities(self, tiles):
letters = list(tiles)
seen = set()
answers = []
self.backtrack(letters, seen, answers, [])
return len(answers)
def backtrack(self, letters, seen, answers, curr):
if curr != [] and ''.join(list(curr)) not in a... | [
"timpark0807@gmail.com"
] | timpark0807@gmail.com |
88cd51908a2fcde82064b30f691ac7fb66f79cb6 | 1793aac7856809ed8e121955056154de50a2ae8f | /c13_o_reilly/p26_unix_match.py | 3e5073d57f190763778544e02c67d56fbb10ef3f | [] | no_license | ZpRoc/checkio | fe4af88f116f75f8197cd31d857ae5262615b6af | 126647f8971732bdf13d49092df178654dee889b | refs/heads/main | 2023-03-22T23:52:37.330312 | 2021-03-10T02:28:56 | 2021-03-10T02:28:56 | 335,871,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # ---------------------------------------------------------------- #
# Unix Match
# Filename patterns matching
# Text, parsing, string
# ---------------------------------------------------------------- #
# ---------------------------------------------------------------- #
# -----------------------------------... | [
"zheng_roc@163.com"
] | zheng_roc@163.com |
2d2887fc3228cd41ff2cbef9067eb25f091d8b7c | e06c7fd594c52425ab7fc5498c07ae14daf9578b | /api/view/locations.py | f57ce6184150065f58cbad03b00ee6c32fcfcca6 | [] | no_license | rwheeler-7864/simplenight-api | bc35560eca1e1c25092a1bcdc4af1633367413b8 | 602646911a0155df5b70991d1445c10cee18cd33 | refs/heads/master | 2023-03-12T03:10:51.516499 | 2021-02-25T20:40:44 | 2021-02-25T20:40:44 | 342,370,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | from rest_framework import viewsets
from rest_framework.decorators import action
from rest_framework.permissions import AllowAny
from rest_framework.request import Request
from api.locations import location_service
from api.view.default_view import _response
class LocationsViewSet(viewsets.ViewSet):
permission_c... | [
"randmwheeler@gmail.com"
] | randmwheeler@gmail.com |
5e383048b494ba192b302e7a04ab7666c6bad659 | 18a2e479f4edef528fa7803723822f9f5974e5f8 | /30_draft_randpart_daily_gather.py | 1e5364cb1152f4594cbcf24008706c34677a3b13 | [] | no_license | wpower12/RedditCountyBias | ee25cb870b807466ed53225471e9ac6f5eec1cd0 | 59f0b6642f20547ac129b47496ef3ca0ac135a39 | refs/heads/master | 2023-04-04T22:24:24.258295 | 2021-04-15T17:50:18 | 2021-04-15T17:50:18 | 329,438,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | import pymysql as sql
import progressbar
import rcdTools.DataCollectDaily as dc
SUB_PER_COHORT = 10
DAYS_PER_COHORT = 10
USERS_PER_COHORT = 10
conn = sql.connect(host='localhost',
user='bill',
password='password',
database='reddit_data')
iteration = 1
running = True
while running:
## SUBREDD... | [
"willpowe@gmail.com"
] | willpowe@gmail.com |
d1f2f50c322a99b743288f97107bd32c7eaa939a | b2ba670818623f8ab18162382f7394baed97b7cb | /test-data/AndroidSlicer/Passwordmaker/DD/25.py | 26311ea9e3edcae3541f35a7bb9290be9c8cf9c2 | [
"MIT"
] | permissive | hsumyatwin/ESDroid-artifact | 012c26c40537a79b255da033e7b36d78086b743a | bff082c4daeeed62ceda3d715c07643203a0b44b | refs/heads/main | 2023-04-11T19:17:33.711133 | 2022-09-30T13:40:23 | 2022-09-30T13:40:23 | 303,378,286 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | #start monkey test seedNo 0
import os;
from subprocess import Popen
from subprocess import PIPE
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage
from com.android.monkeyrunner.MonkeyDevice import takeSnapshot
from com.android.monkeyrunner.easy import EasyMonkeyDevice
from com.android.monkeyru... | [
"hsumyatwin@gmail.com"
] | hsumyatwin@gmail.com |
078016a98cfc4fe6f2ac01d5479dd26519279e0e | 4b41a76c5c366ba2daa30843acea16609b8f5da7 | /2017/15/AoC17_15_1.py | 31b59fcbdaeb1644927b75ea06ab82ab44a0bfc7 | [] | no_license | grandfoosier/AdventOfCode | c4706cfefef61e80060cca89b0433636e42bf974 | a43fdd72fe4279196252f24a4894500a4e272a5d | refs/heads/master | 2020-06-11T12:36:48.699811 | 2019-01-14T23:44:44 | 2019-01-14T23:44:44 | 75,665,958 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | class Generator(object):
def __init__(self, M, D):
self.M = M; self.D = D
def seed(self, N): self.N = N
def out(self):
self.N = (self.N * self.M) % self.D
return ("%08x" % self.N)[-4:]
d = 2147483647
A = Generator(16807, d, 4); B = Generator(48271, d, 8)
# A.seed(65); B.seed(8921)
A... | [
"noreply@github.com"
] | grandfoosier.noreply@github.com |
d37664ea85b89e9902d716dd0654767e12ad40b5 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_history_response.py | 5057cb623b64b131ade2ec4ffd4d0c934449eea7 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,646 | py | # coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ShowResourceHistoryResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_ma... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3983855edf088530d31c48a6e45d3bfb4e166c98 | 61fd2d345b92a71c29e9be60e17332b7d6179013 | /EventManagement/migrations/0008_auto_20160926_1631.py | 2e5ff46325478bccab3a1570e883abc89c41ab37 | [] | no_license | willsion/Dtop | c3285e2ec616a229416935646b49c0552f68ba09 | 82d591253424086bded3dff9bb4b74a7b5e7c521 | refs/heads/master | 2021-01-13T07:29:14.377572 | 2016-10-11T01:46:24 | 2016-10-11T01:46:24 | 71,310,645 | 1 | 0 | null | 2016-10-19T02:26:23 | 2016-10-19T02:26:23 | null | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-09-26 08:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('EventManagement', '0007_auto_20160926_1535'),
]
operations = [
migrations.Re... | [
"mzpy_1119@126.com"
] | mzpy_1119@126.com |
1b32904179892326050938867dbde6d0cb669258 | 09ae3f372d1000f118ad80874870ae420a4be66f | /scikit-learn-master/sklearn/preprocessing/base.py | 29a1bd87dc8ee0392d87294682d98a5feb6e4319 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | lqkweb/learnMLflow | 998f80c3828879b8d542125bc95c6345b8e9b29a | 13c5decaebba95b1b90f92021be35e343b4764af | refs/heads/master | 2022-10-18T06:17:23.584172 | 2019-01-18T09:51:38 | 2019-01-18T09:51:38 | 166,145,472 | 2 | 0 | Apache-2.0 | 2022-09-30T18:26:17 | 2019-01-17T02:22:29 | Python | UTF-8 | Python | false | false | 2,936 | py | """Helpers for preprocessing"""
import numpy as np
from scipy import sparse
from ..utils import check_array
from ..utils.validation import FLOAT_DTYPES
def _transform_selected(X, transform, dtype, selected="all", copy=True,
retain_order=False):
"""Apply a transform function to portion of... | [
"leiqk@dxy.cn"
] | leiqk@dxy.cn |
9fc1a0478cc1926799cda20f1e638da6df34df60 | a3a3e1298db9555eda37f8da0c74a437d897cb1f | /compiled/Python2/Euler_Problem-044.py | 001e401c08677505fac6ef8c513ff6e566121155 | [
"MIT"
] | permissive | LStepanek/Project-Euler_Befunge | 58f52254ee039ef6a5204fc65e62426c5e9d473a | f35fb2adecd737e410dee7b89b456cd61b25ce78 | refs/heads/master | 2021-01-01T17:51:52.413415 | 2017-05-03T17:23:01 | 2017-05-03T17:26:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,090 | py | #!/usr/bin/env python2
# transpiled with BefunCompile v1.1.0 (c) 2015
import sys
def td(a,b):
return ((0)if(b==0)else(a//b))
def tm(a,b):
return ((0)if(b==0)else(a%b))
s=[]
def sp():
global s
if (len(s) == 0):
return 0
return s.pop()
def sa(v):
global s
s.append(v)
def sr():
glo... | [
"mailport@mikescher.de"
] | mailport@mikescher.de |
55bc0100f96dccaae8b2b4afa737bd6e2b6f802d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02975/s867029117.py | add0ced25f576970a10a4f0ceff6408262fcb1fd | [] | 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 | 422 | py | from collections import Counter
n = int(input())
a = [int(x) for x in input().split()]
d = Counter()
for x in a:
d[x] += 1
if d[0] == n:
print('Yes')
elif len(d.keys()) == 2 and d[0] == n//3:
print('Yes' if d[0] == n//3 else 'No')
elif len(d.keys()) == 3:
p, q, r = d.keys()
if d[p] == d[q] and d[q... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
049f96a1399aa3f4596c8a725a4a7465aad57cd5 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_24/models/pod_performance_by_array_get_response.py | 2ea4555dc4aa8a9849341dac5c9556006f6e67f9 | [
"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 | 6,111 | 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.24
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 |
f4686b28ce278160234b7d3422bc31b22162de57 | 7522752dcce57932287aea367c3f37c596897056 | /python/checkio/ghosts_age.py | 47c27c69d34a6afa01588f86a4afa55ba8e34f65 | [] | no_license | gsrr/Programs | e8a63fcab6a49acdccbcb4d10f8e6c7f2de62288 | 52925dd533a1f931e81fa0b1e7deb237d284d7c4 | refs/heads/master | 2021-01-23T09:33:25.410211 | 2016-02-10T03:14:26 | 2016-02-10T03:14:26 | 13,143,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py |
# -*- coding: utf-8 -*-
#從例子看起來就是:
'''
若該number是Fibonacci number, 就拿前一數扣掉目前的number做為age
若不是的話, 就拿前一數加1做為age.
'''
import time
FibonArr = []
def createFibonArr(n):
global FibonArr
base = 10000
FibonArr.append(10000)
FibonArr.append(9999)
FibonArr.append(9997)
preFibon = 1
curFibon = 2
... | [
"jerrycheng1128@gmail.com"
] | jerrycheng1128@gmail.com |
c56ff775adfc2926100de1ced9e14e9dc8d9c225 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/test/test_print.py | a7ba39302da6cf9e3c1a11d33abf02ed3038a11f | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:05aa6cec2a4f3e10a764ff415f8d632be612ebae69d92ce150a6d1bc9de99c37
size 7766
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
d5fba800e7a84c1b08eef34db3e80dd12c422fa1 | c896b09d7172cc8560dbd7fe3388b7e19143fbd4 | /tests/single_shape/test_data_processing.py | 3c6cc391937d1a7a5b56d63dc360947764852765 | [
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-commercial-license",
"AGPL-3.0-or-later",
"AGPL-3.0-only"
] | permissive | justusschock/shapedata | e6c24ad63c04fa3ff29e050ca3e17ad09c077666 | cfe288454631dd4e59242081c52e4297fecce927 | refs/heads/master | 2020-04-19T18:13:37.587500 | 2020-02-05T14:14:38 | 2020-02-05T14:14:38 | 168,357,536 | 8 | 1 | BSD-2-Clause | 2019-05-16T11:07:11 | 2019-01-30T14:35:35 | Python | UTF-8 | Python | false | false | 704 | py | from shapedata.single_shape import SingleShapeDataProcessing
import os
import warnings
def test_data_processing():
data = SingleShapeDataProcessing.from_dir(os.path.join(os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))),
"example_files"))
assert data.samples
da... | [
"justus.schock@rwth-aachen.de"
] | justus.schock@rwth-aachen.de |
2475af52d07cc6493332273284b22c5a30fe6cc6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02985/s061514161.py | c1088dc64c0c9162493c27df1410724030b3b86a | [] | 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 | 703 | py | from collections import deque
mod = 10**9 + 7
n, k = map(int, input().split())
edges = [[]*n for _ in range(n)]
for _ in range(n-1):
a, b = map(int, input().split())
a -= 1
b -= 1
edges[a].append(b)
edges[b].append(a)
root = 0
d = deque([root])
visited = [False]*n
visited[root] = True
colored = [-1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
091be7cc8f11ee0ca9b192cce731691083899e48 | 122306a7e284774ac80c6fc381e4db2f26ea0c30 | /bin/deploy/model_copy.py | c1f50ee84cdd54ca5dcb35088c86bf40e4256902 | [
"BSD-3-Clause"
] | permissive | e-mission/e-mission-server | 4da028e34eaac32c0d27ec929f68b23905e6ca1e | 94e7478e627fa8c171323662f951c611c0993031 | refs/heads/master | 2023-09-01T06:53:33.926971 | 2023-08-15T23:39:00 | 2023-08-15T23:39:00 | 26,307,245 | 26 | 131 | BSD-3-Clause | 2023-09-14T05:08:59 | 2014-11-07T06:39:02 | Jupyter Notebook | UTF-8 | Python | false | false | 240 | py | import json
sample_path = "emission/tests//data/seed_model_from_test_data.json"
f = open(sample_path, "r")
data = json.loads(f.read())
f.close()
real_path = "./seed_model.json"
f = open(real_path, "w")
f.write(json.dumps(data))
f.close()
| [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
5a86546730bf97f9abd3dcacd1dc5764af53d7b3 | c96700961f09bbac141858d98141428d643322e8 | /homeassistant/components/aemet/__init__.py | 54c93f43a25ae9f33e0dff98a2cb6c2cbc019b85 | [
"Apache-2.0"
] | permissive | DerMetzger69/core | b3b6f30535f2e607e08dd6544e130b452f44c3a1 | 02a82d3f00c610f94d3366cc34540bdfa94a2c8e | refs/heads/dev | 2023-03-18T10:42:52.605222 | 2021-03-13T09:53:26 | 2021-03-13T09:53:26 | 345,092,595 | 1 | 0 | Apache-2.0 | 2021-03-06T13:32:49 | 2021-03-06T12:49:54 | null | UTF-8 | Python | false | false | 1,859 | py | """The AEMET OpenData component."""
import asyncio
import logging
from aemet_opendata.interface import AEMET
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
from homeassistant.core import HomeAssistant
from .const import DOMA... | [
"noreply@github.com"
] | DerMetzger69.noreply@github.com |
7bf7695ca1582200479cb2074f9c31f8a22a686f | 6ffa236a008d1cd1dc70f2c8ea0544d20ec350ee | /aries_cloudagent/messaging/actionmenu/util.py | a560ad5789542949e6bfc705400e4d1cc1877517 | [
"Apache-2.0"
] | permissive | blockpass-identity-lab/aries-fl-demo | 99e849f782dd80e729e3fe24c3af2881c5c49dca | 310b748c1ac2e814ec6f97c46ddbb9985584e0fc | refs/heads/master | 2022-07-06T18:37:16.007582 | 2020-04-23T15:48:33 | 2020-04-23T15:48:33 | 221,698,330 | 5 | 0 | Apache-2.0 | 2021-02-26T02:40:03 | 2019-11-14T12:58:58 | Python | UTF-8 | Python | false | false | 1,853 | py | """Action menu utility methods."""
from ...config.injection_context import InjectionContext
from ...storage.base import BaseStorage, StorageRecord, StorageNotFoundError
from ..responder import BaseResponder
from .messages.menu import Menu
MENU_RECORD_TYPE = "connection-action-menu"
async def retrieve_connection_men... | [
"cywolf@gmail.com"
] | cywolf@gmail.com |
823a02d696d223f8850a813472cad71fecda108a | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.0_rd=1_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=98/sched.py | 2eaba81adb1dd9db25f2adaa5406d92064c54555 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | -X FMLP -Q 0 -L 2 64 250
-X FMLP -Q 0 -L 2 58 175
-X FMLP -Q 0 -L 2 46 300
-X FMLP -Q 0 -L 2 44 200
-X FMLP -Q 1 -L 2 43 175
-X FMLP -Q 1 -L 2 42 150
-X FMLP -Q 1 -L 2 41 125
-X FMLP -Q 2 -L 1 33 125
-X FMLP -Q 2 -L 1 32 100
-X FMLP -Q 2 -L 1 29 100
-X FMLP -Q 3 -L 1 23 175
-X FMLP -Q ... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
6852be2525e6c6d38e80b76604bca27eabdfbd05 | b7086d5e907aaf983af5b8d7d6f74c4fc6e40f23 | /DarkZ/StatTools/YieldProducer.py | ed7ee4a9a243cc887b72e88431b5e626ad33c41c | [] | no_license | ahmad3213/PyNTupleProcessor | da40c596f275406f21e83e117c5b8020d6ee309c | c84fa597b132e91342226b12a74213f675c0b125 | refs/heads/master | 2023-03-29T18:59:19.454585 | 2020-09-21T21:52:25 | 2020-09-21T21:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | from Core.Module import Module
class YieldProducer(Module):
def __init__(self,name,mass_window_list,systList=[]):
self.name = name
self.mass_window_list = mass_window_list
self.systList = systList
#self.channelNames = ["4mu","4e","2e2mu","comb"]
self.channelNames = ["4mu","4... | [
"lucien1011@gmail.com"
] | lucien1011@gmail.com |
2729ebff5bce2d53aecd6157e359bbae4f59cafa | b15e5e8ca56996a34b2339b71a54b8b85724c950 | /代码/jieba分词技术举例.py | ac2488693b0942b3e8567ad842008a1230ab4e4d | [] | no_license | JMbaozi/Text-analysis | 51adffcc67ed4ea80bb1cbc4d8e6c129b2338d99 | e5394737c5119a7c9eff6201e1448bcedc3b1be0 | refs/heads/master | 2022-04-30T12:48:03.354418 | 2022-03-25T02:27:28 | 2022-03-25T02:27:28 | 217,422,637 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,929 | py | """
# encoding=utf-8
import jieba
seg_list = jieba.cut("三万六千五百零一块", cut_all=False)
print("Default Mode: " + "/ ".join(seg_list)) # 精确模式
"""
"""
# encoding=utf-8
import jieba
jieba.load_userdict("hlmdict.txt")
jieba.add_word('大荒山',freq = None,tag = None)
jieba.add_word('女娲氏',freq = None,tag = None)
jieba.add_word('无稽... | [
"l"
] | l |
096fab96c391dc22a14229e0bdae002832334c52 | d21071464bef4f3fd51e554f280418d06975a77e | /leetcode/1153. String Transforms Into Another String.py | 2b5d7049fc62a91089fa9d0c87e999c56957315b | [] | no_license | DeshErBojhaa/sports_programming | ec106dcc24e96231d447cdcac494d76a94868b2d | 96e086d4ee6169c0f83fff3819f38f32b8f17c98 | refs/heads/master | 2021-06-13T19:43:40.782021 | 2021-03-27T14:21:49 | 2021-03-27T14:21:49 | 164,201,394 | 1 | 0 | null | 2019-08-27T22:21:26 | 2019-01-05T09:39:41 | C++ | UTF-8 | Python | false | false | 379 | py | # 1153. String Transforms Into Another String
class Solution:
def canConvert(self, str1: str, str2: str) -> bool:
if str1 == str2:
return True
d = {}
for a, b in zip(str1, str2):
if a not in d:
d[a] = b
if d[a] != b:
... | [
"noreply@github.com"
] | DeshErBojhaa.noreply@github.com |
a12f06f63673f3aca5b1c00c6fe16a857adb8630 | 10b5adc3ef1821196e47967d2b89b2be82ea1f18 | /code/sort/choose_sort.py | 82181efaeffdde874249dbccfaca50fa739eb6e7 | [] | no_license | JiaXingBinggan/For_work | 4951ccb82f24c86404b1c090fd8394b765225c24 | 97cc61fefe0bedf5161687aab92fb09b0df990e2 | refs/heads/master | 2022-12-18T22:44:49.180313 | 2020-09-25T13:13:14 | 2020-09-25T13:13:14 | 282,564,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | class Solution:
def chooseSort(self, unorderedList):
'''
选择排序,其只将最大项的位置记录下来,每一趟仅交换一次
:param unorderedList:
:return:
'''
for pass_num in range(len(unorderedList) - 1, -1, -1):
max_location = 0
for i in range(pass_num + 1):
if uno... | [
"729869585@qq.com"
] | 729869585@qq.com |
1990846c598373f5731c4d0e25b329e74c9061b4 | 112c9c81d20b1fa6d4c46f2df1c2f352d8a2249f | /sdmx/exceptions.py | cae2a491f9209eb1a8fdc5e56befea2b14add06c | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | khaeru/sdmx | 910b1da621ef763f500fa8bb28c87cddadc0c9aa | 7a648fb07b78d06b766aa65978101526d393eb14 | refs/heads/main | 2023-08-17T03:24:25.527374 | 2023-08-16T12:16:53 | 2023-08-16T12:16:53 | 87,204,730 | 10 | 12 | Apache-2.0 | 2023-09-03T19:48:53 | 2017-04-04T15:38:21 | Python | UTF-8 | Python | false | false | 483 | py | from requests import HTTPError
from requests.exceptions import SSLError
__all__ = [
"HTTPError",
"ParseError",
"SSLError",
"XMLParseError",
]
class ParseError(Exception):
""":class:`~.reader.Reader` is unable to parse a message."""
class XMLParseError(Exception):
""":class:`.xml.Reader` is ... | [
"mail@paul.kishimoto.name"
] | mail@paul.kishimoto.name |
155d8ef6b398a34cdcd4e2a07a6c344d1727f792 | ef268924e126f127eadbc82a709acfdaeb505925 | /1403. Minimum Subsequence in Non-Increasing Order/1403.py | 74993af1d1e1ccc0cdcd451d5c3171a1155552a7 | [] | no_license | HappyStorm/LeetCode-OJ | e7dec57156b67886cbb57dc6401b2164eaed7476 | 8e742bc66a70900bbb7bc0bd740cec6092577a6a | refs/heads/master | 2022-08-30T11:40:57.658447 | 2022-08-09T16:59:49 | 2022-08-09T16:59:49 | 55,757,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | class Solution:
def minSubsequence(self, nums: List[int]) -> List[int]:
ans, nums = [], sorted(nums)
cur, _sum = 0, sum(nums)
while cur <= _sum:
ans.append(nums.pop())
cur += ans[-1]
_sum -= ans[-1]
return ans
| [
"gogogo753951741963@gmail.com"
] | gogogo753951741963@gmail.com |
249f58c4e17538cc3ee9ad47ce65011cc2c09cf2 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/44a9b167bda9654ce60588cf2dcee88e4bad831d-<test_apply_attach_name>-bug.py | 2a31ccb713dbd4818506343e01aa576cc026ba9e | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | def test_apply_attach_name(self):
result = self.frame.apply((lambda x: x.name))
expected = Series(self.frame.columns, index=self.frame.columns)
assert_series_equal(result, expected)
result = self.frame.apply((lambda x: x.name), axis=1)
expected = Series(self.frame.index, index=self.frame.index)
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
34b3c7ae001c8a0ccb57fc5fad68b772d2c3c744 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /b67PHXfgMwpD9rAeg_3.py | 300afd23a5128f525b83cd6f0ff7a5407d06d35c | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | """
Create a function that takes a string as an argument and returns `True` if
each letter in the string is surrounded by a plus sign. Return `False`
otherwise.
### Examples
plus_sign("+f+d+c+#+f+") ➞ True
plus_sign("+d+=3=+s+") ➞ True
plus_sign("f++d+g+8+") ➞ False
plus_sign("+s+7+f... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
900a52950a0e1774873ed52de10a6687243bb08b | 50b677eb72104d6282edfa8c45f55ef680b9a431 | /v1/kdm-manager.js | 0af0858aea25cc777cd6fbd5dec4ec0824bf8fc4 | [] | no_license | chummer5a/kdm-manager | 6a2cdf1b390c5dabdb3713ebf5358ea73c6d56d8 | 37c69a39241ebee1b4f5e8e9db05e695f2e03ea8 | refs/heads/master | 2021-01-10T23:03:17.754551 | 2016-10-10T16:40:44 | 2016-10-10T16:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | js | #!/usr/bin/env python
import sys
#
# This script renders a JS app file on demand
#
if __name__ == "__main__":
print("Content-type: text/css\n\n")
raw_file = file("media/app.js", "rb").read()
print raw_file
sys.exit()
| [
"toconnell@tyrannybelle.com"
] | toconnell@tyrannybelle.com |
9c5ac66dc16f65e773072aa208fbf5f9eefb8166 | 31bc3fdc7c2b62880f84e50893c8e3d0dfb66fa6 | /language/python_369/python_369/built_in_types/sequence_/str_/create.py | 79fa70e126f01cf3e0ee5698213578c89350bf54 | [] | no_license | tpt5cu/python-tutorial | 6e25cf0b346b8182ebc8a921efb25db65f16c144 | 5998e86165a52889faf14133b5b0d7588d637be1 | refs/heads/master | 2022-11-28T16:58:51.648259 | 2020-07-23T02:20:37 | 2020-07-23T02:20:37 | 269,521,394 | 0 | 0 | null | 2020-06-05T03:23:51 | 2020-06-05T03:23:50 | null | UTF-8 | Python | false | false | 1,539 | py | # https://realpython.com/python-string-formatting/
# https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals
# https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str
# https://stackoverflow.com/questions/27331819/whats-the-difference-between-a-character-a-code-point-a-glyph-a... | [
"uif93194@gmail.com"
] | uif93194@gmail.com |
2143bfe2f27376e3c4a543e6e500a5ec29c3acb6 | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py/orbited/config.py | b99e2552ba9aa9286c6cd7e573a7899845635690 | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:947c21ea69deeac668131461faf03067f40ca5465a810ded94f3be7de6850a32
size 4070
| [
"tushar239@gmail.com"
] | tushar239@gmail.com |
3a91929e8281c2c581601d35fbb5e10507183f52 | 8ca52d458dda5b1a557828003240942ed02e19d9 | /41_3.py | 1d4d5a23ff3fe1550cb40c82dda822f55cea4fa5 | [
"MIT"
] | permissive | rursvd/pynumerical2 | 48c8a7707c4327bfb88d0b747344cc1d71b80b69 | 4b2d33125b64a39099ac8eddef885e0ea11b237d | refs/heads/master | 2020-04-19T04:15:34.457065 | 2019-12-06T04:12:16 | 2019-12-06T04:12:16 | 167,957,944 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | from numpy import zeros
# Define abm4 funciton
def abm4(f,t0,tf,y0,n):
h = (tf - t0)/n
t = zeros(n+1)
y = zeros(n+1)
t[0] = t0
y[0] = y0
# RK4
for i in range(3):
K0 = h * f(t[i], y[i])
K1 = h * f(t[i] + h/2.0, y[i] + K0/2.0)
K2 = h * f(t[i] + h/2.0, y[i] + K1/2.0)
... | [
"noreply@github.com"
] | rursvd.noreply@github.com |
6fc167d645d3db0a6cfb071b13ca2ce7a0b52b3b | f4ad721b7158ff2605be6f7e4bde4af6e0e11364 | /vt_manager_kvm/src/python/vt_manager_kvm/communication/sfa/rspecs/elements/versions/nitosv1Lease.py | ee4f5159a0476fbf555ab0111dc5b0f761e90bf1 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | ict-felix/stack | 3fb4222a0538c0dbbe351ccc3da1bafa9ca37057 | 583ccacf067b9ae6fc1387e53eaf066b4f3c0ade | refs/heads/master | 2021-01-10T10:16:29.851916 | 2016-06-22T15:11:11 | 2016-06-22T15:11:11 | 51,439,714 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,832 | py | from vt_manager_kvm.communication.sfa.util.sfalogging import logger
from vt_manager_kvm.communication.sfa.util.xml import XpathFilter
from vt_manager_kvm.communication.sfa.util.xrn import Xrn
from vt_manager_kvm.communication.sfa.rspecs.elements.element import Element
from vt_manager_kvm.communication.sfa.rspecs.eleme... | [
"jenkins@localhost"
] | jenkins@localhost |
12e0d9daf80ccf156316332ec0d4444bd9b5627c | cee4e129e20626fd400edf251a61bb567d34287b | /app/modules/core/decorators.py | 9405be786944c186be3ad650b82862d1b12b7484 | [
"Apache-2.0"
] | permissive | nileshprasad137/silverback | ec255183d067d557aeaa30e8456325e7f99420b9 | 2e6e68dce8251a3275b987c895e6ce987c45776d | refs/heads/master | 2020-12-01T17:32:42.895795 | 2019-12-20T17:59:38 | 2019-12-20T17:59:38 | 230,712,144 | 1 | 0 | Apache-2.0 | 2019-12-29T06:26:27 | 2019-12-29T06:26:26 | null | UTF-8 | Python | false | false | 6,493 | py | # Copyright 2019 Silverbackhq
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"hello@clivern.com"
] | hello@clivern.com |
ec970d2cf4891d8130aaa4f7a35fea5f3de01572 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn13 - objektni minobot/M-17061-2321.py | 4a16430f80833c6df431f37d846cbf5b195eed6c | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,420 | py | class Minobot():
def __init__(self):
self.x=0
self.y=0
#smeri 0=desno, 1=dol, 2=levo, 3=gor
self.smer=0
self.zgodovina=[(0,0,0)]
def naprej(self, d):
if self.smer==0: self.x+=d
elif self.smer==1: self.y-=d
elif self.smer==2: self.x-=d
... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
fa05b5b661e3bea96d1294b31c5e7660ef47f866 | dfc827bf144be6edf735a8b59b000d8216e4bb00 | /CODE/Sympy/Forcings/DryStepandGaussian/withPW.py | 42fdd929c10f4463048033cea289f5817865fb7a | [] | no_license | jordanpitt3141/ALL | c5f55e2642d4c18b63b4226ddf7c8ca492c8163c | 3f35c9d8e422e9088fe096a267efda2031ba0123 | refs/heads/master | 2020-07-12T16:26:59.684440 | 2019-05-08T04:12:26 | 2019-05-08T04:12:26 | 94,275,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 14 10:38:52 2017
@author: jordan
"""
from sympy import *
from sympy.plotting import plot
def hxt(x,t,x0,h0,c,l):
nh = Piecewise(
(0,x <= (x0 + c*t) - l),
(0,x >= (x0 + c*t) + l),
(h0,True))
return nh
def uxt(x,t,x0,c,a0,a1,a2):
nu1 ... | [
"jordanpitt3141@github.com"
] | jordanpitt3141@github.com |
5c051d64d82a12f43cd6487b00d35f56fd5e79ac | 6baedc3ef128b0c1118e637834cdfd2d512cd9b3 | /tastypie_user/tests/basic_urls.py | f7c80129bc5a28a72b44b8db2264eadff24e2ff1 | [] | no_license | Tsangares/tastypie-user | 7cca6ec0b0cb1532f89def5bd9f36316b34f5357 | 002ec995c2d72d9954580275312fadc48d1a1d24 | refs/heads/master | 2020-12-30T19:57:45.262578 | 2016-07-27T00:20:28 | 2016-07-27T00:20:28 | 64,263,242 | 0 | 0 | null | 2016-07-27T00:11:17 | 2016-07-27T00:11:16 | null | UTF-8 | Python | false | false | 281 | py | #coding:utf8
from django.conf.urls import patterns, include, url
from tastypie.api import Api
from tastypie_user.resources import UserResource
v1_api = Api(api_name='v1')
v1_api.register(UserResource())
urlpatterns = patterns(
'',
url(r'^api/', include(v1_api.urls)),
)
| [
"hepochen@gmail.com"
] | hepochen@gmail.com |
3e595e01f0470ac0c1a29c602b75c6312cbce930 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2613/60770/272911.py | 4e0e833966bf85b0b5337f9325d08963dc7bdfe4 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | def solve():
n=int(input())
def solveOne():
des=int(input())
c1,c2,cur=0,0,0
res=[]
while c1<des:
cur+=1
res.append(cur)
c1+=1
for i in range(c2):
cur+=2
res.append(cur)
c1+=1
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
761c648992df279c078fddcb04854ee83de7ecfc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch19_2020_03_04_12_29_27_998230.py | 3cff36a41b429d89a268e91cc2e4757cc4684d65 | [] | 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 | 180 | py |
def lados(x, y, z):
if a == b and a == c:
print("equilátero")
elif a == b or a == c or b ==c:
print("isósceles")
else:
print("escaleno") | [
"you@example.com"
] | you@example.com |
471b12ff69c7042464a74c387b98a1821688430a | e71ebc10db20b42964dbc5162c17c13c3dc23e32 | /examples/Atari2600/DQN-gym-Music.py | 5d9300b1d8e223b7be5a28b8c114a46c719ae466 | [
"Apache-2.0"
] | permissive | pkumusic/tensorpack | 18ea1a1e9960196f7930c9b540084e543c00030b | 2b535bcdb919cbf299c81e236055e3d52d054d56 | refs/heads/master | 2021-01-10T23:01:37.136541 | 2016-11-08T21:42:44 | 2016-11-08T21:42:44 | 72,312,328 | 1 | 0 | null | 2016-10-29T22:18:57 | 2016-10-29T22:18:56 | null | UTF-8 | Python | false | false | 6,554 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# DL Project for 10807
import argparse
import os
from tensorpack.predict.common import PredictConfig
from tensorpack import *
from tensorpack.models.model_desc import ModelDesc, InputVar
from tensorpack.train.config import TrainConfig
from tensorpack.tfutils.common import *... | [
"635716260@qq.com"
] | 635716260@qq.com |
cbbc96886a8a3601f76b8cb5f74fb650fedebc88 | 187ce9d4df99208c3db0e44f3db6a3df4ce34717 | /Python/714.best-time-to-buy-and-sell-stock-with-transaction-fee.py | 668435baf3d4387e487a35af26095a21f332f620 | [] | no_license | zhoujf620/LeetCode-Practice | 5098359fbebe07ffa0d13fe40236cecf80c12507 | 8babc83cefc6722b9845f61ef5d15edc99648cb6 | refs/heads/master | 2022-09-26T21:49:59.248276 | 2022-09-21T14:33:03 | 2022-09-21T14:33:03 | 222,195,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | #
# @lc app=leetcode id=714 lang=python
#
# [714] Best Time to Buy and Sell Stock with Transaction Fee
#
# https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/description/
#
# algorithms
# Medium (52.17%)
# Likes: 1124
# Dislikes: 33
# Total Accepted: 51K
# Total Submissions: 97.5K
... | [
"zhoujf620@zju.edu.cn"
] | zhoujf620@zju.edu.cn |
0415a072db46f9e506342f2ce972e9e9568e140b | ca5288ed60ad052b56e3e0048c3f9ed284250ffc | /google/colab/patches/__init__.py | a8cc48e82811e0ca904d00f749c7da0739657362 | [
"Apache-2.0"
] | permissive | googlecolab/colabtools | 06035e1340717f714febbdbd82565def075b3876 | f73520dc61e9fdddb62ac0ab1c897d81d893113d | refs/heads/main | 2023-09-06T07:15:54.745725 | 2023-08-30T22:37:51 | 2023-08-30T22:38:16 | 110,724,756 | 1,962 | 796 | Apache-2.0 | 2023-09-14T16:10:13 | 2017-11-14T17:49:51 | Python | UTF-8 | Python | false | false | 727 | py | """Colab-specific patches for functions."""
__all__ = ['cv2_imshow', 'cv_imshow']
import cv2
from IPython import display
import PIL
def cv2_imshow(a):
"""A replacement for cv2.imshow() for use in Jupyter notebooks.
Args:
a: np.ndarray. shape (N, M) or (N, M, 1) is an NxM grayscale image. For
example,... | [
"colaboratory-team@google.com"
] | colaboratory-team@google.com |
aa1ff3c7e533c928c807bd6b0e4bae0736525a75 | 94dbd40525692416ea8100d13b03ece73ee33f7f | /kgtk/utils/convert_embeddings_format.py | 093f6c52f6198f9bf4a7cc5cc1284474b8e56aeb | [
"MIT"
] | permissive | usc-isi-i2/kgtk | 7101129ce1dde646095803429d3c751bf87ae071 | c31ba4c33d5f925fdb66a487ba2e1184c9ca4254 | refs/heads/main | 2023-08-22T06:58:22.301262 | 2023-06-29T19:55:28 | 2023-06-29T19:55:28 | 234,676,361 | 325 | 53 | MIT | 2023-06-29T19:55:30 | 2020-01-18T03:34:48 | Jupyter Notebook | UTF-8 | Python | false | false | 7,987 | py | import sys
from pathlib import Path
from kgtk.io.kgtkreader import KgtkReader, KgtkReaderOptions, KgtkReaderMode
from kgtk.exceptions import KGTKException
from typing import Tuple, Optional
from kgtk.io.kgtkwriter import KgtkWriter
WORD2VEC = 'word2vec'
GPROJECTOR = 'gprojector'
class ConvertEmbeddingsFormat(object... | [
"amandeep.s.saggu@gmail.com"
] | amandeep.s.saggu@gmail.com |
48d8978f351f9865201ec1dfa3f8eca0b6c63dc3 | 67f2c5c121842429acbb569d09548d5eecc0674a | /assembler/term.py | 5b2c37f145bcfe3bd0e1544e17fc52c91f40509c | [
"MIT"
] | permissive | paulscottrobson/next-hla-v1 | 29a56753a9e0d7e7d90e2f686d3d4dbb24550bf6 | 735e7a3e2f1208e6b8c7c2bb125ff2733e7fa93a | refs/heads/master | 2020-04-11T16:57:30.117092 | 2018-12-16T17:23:23 | 2018-12-16T17:23:23 | 161,942,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | # ***************************************************************************************
# ***************************************************************************************
#
# Name : term.py
# Author : Paul Robson (paul@robsons.org.uk)
# Date : 16th December 2018
# Purpose : Extract a term from a stream... | [
"paul@robsons.org.uk"
] | paul@robsons.org.uk |
bc5983aa09d3c821627a922acd286c8c4c280628 | 8c046cb97abb3626c53c4e276dfc1779feeaf6ce | /setup.py | 270b1c4fba3e8ff567a9aa08f1252a8ec885f040 | [
"MIT"
] | permissive | zwlyn/pyfy | 7871e4cd9d39e8f0ad23a449b498175b2337b3e7 | 909a08458b9567fa6686019fd5630ce8e5003231 | refs/heads/main | 2023-04-10T10:28:28.334173 | 2020-11-05T09:30:26 | 2020-11-05T09:30:26 | 310,176,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from setuptools import setup, find_packages
setup(
name = "py-fy",
version = "2.0.4",
keywords = ("pip", "py-fy","translate", "fy"),
description = "An Word-translation software stranslate between simple-Chinese and English",
long_description = "... | [
"1666013677@qq.com"
] | 1666013677@qq.com |
707aaacb576e895b003381a9a67c488cb0c39148 | 7aecab27c231c5207f26a1682543b0d6c5093c06 | /server/dancedeets/nlp/styles/poi_staff.py | 2c14933c1d53e223439bd3139616e9075a5b1819 | [] | no_license | mikelambert/dancedeets-monorepo | 685ed9a0258ea2f9439ae4ed47ebf68bb5f89256 | 4eff1034b9afd3417d168750ea3acfaecd20adc6 | refs/heads/master | 2022-08-10T07:16:32.427913 | 2018-04-15T22:05:58 | 2018-04-15T22:05:58 | 75,126,334 | 24 | 2 | null | 2022-07-29T22:28:45 | 2016-11-29T22:04:44 | Python | UTF-8 | Python | false | false | 3,497 | py | # -*-*- encoding: utf-8 -*-*-
from dancedeets.nlp import base_auto_classifier
from dancedeets.nlp import dance_keywords
from dancedeets.nlp import grammar
from dancedeets.nlp import style_base
Any = grammar.Any
Name = grammar.Name
connected = grammar.connected
commutative_connected = grammar.commutative_connected
PO... | [
"mlambert@gmail.com"
] | mlambert@gmail.com |
d9dfeddf3c766162eaa6ebf6ca27e9baf3b9d3ba | 50e9d86f50966ea2626c45c6a823340a2f0a7247 | /website/stocks/const.py | 695441a03a75673756c054eae428d5671b634c8e | [] | no_license | wgcgxp/zjsxzy_in_js | 82d5dd4e650fddfcf30806b45c0583a658614518 | 219195b38016279b145b9105e10f4785023d9879 | refs/heads/master | 2023-02-12T06:49:12.683902 | 2021-01-13T10:28:43 | 2021-01-13T10:28:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | # DATA_DIR = '\\\\hfm-pubshare\HFM各部门共享\Harvest嘉实全体员工\策略孵化组\多重风管分组审核\zhangyang\股票池'
DATA_DIR = '\\\\hg-pubshare\HFM各部门共享\资产配置投资研究中心\张炀\股票池'
STOCKS_LIST_FILE = '%s/股票池.xlsx'%(DATA_DIR)
INSIDE_OUTSIDE_STOCKS_FILE = '%s/细分行业龙头公司.xlsx'%(DATA_DIR)
FUND_STOCKS_FILE = '%s/基金重仓股.xlsx'%(DATA_DIR)
CONNECT_STOCKS_FILE = '%s/北向资金重... | [
"zjsxzy@gmail.com"
] | zjsxzy@gmail.com |
271e5130c602f5f24d932c201066641f173cb104 | a4d6e0c8fd2f10360f41a378256d887988234a37 | /fjord/journal/models.py | c060d0d1d3a0efeacaef91e1caa398567b9166e0 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | aokoye/fjord | 190467c0a5fe7c353dfd333b0fad5eba9f611ae9 | e1b62b583c8fdccc07bda61c3fe976a9db959b99 | refs/heads/master | 2021-01-15T11:49:35.882367 | 2015-03-03T21:53:38 | 2015-03-03T21:53:38 | 24,608,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,579 | py | from datetime import datetime, timedelta
from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
from django.db import models
from fjord.base.models import JSONObjectField
RECORD_INFO = u'info'
RECORD_ERROR = u'error'
class RecordManager(models.Manager):
@cla... | [
"willkg@mozilla.com"
] | willkg@mozilla.com |
148544d6c1ba866870d3b12cc3124c4ed5a50e2c | 81fe5fd8a5736c68c02a96f0463bdfb1b2686d95 | /tests/unit/test_partition.py | ed585759d39fda3c82e78dd63862428b87f7bc50 | [
"Apache-2.0"
] | permissive | jeffbuttars/acos-client | be77985cb4d2eb930d6c39e3c671befdde5831ef | 809ca6cb52c9564465448bf63a9ff4481e8727ec | refs/heads/master | 2020-12-24T23:38:47.172733 | 2014-07-15T22:07:59 | 2014-07-15T22:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | # Copyright 2014, Doug Wiegley, A10 Networks.
#
# 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 appli... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
03ec305a8c2796464c907a7857d55dc51464f46a | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/victorclf/sheep.py | 440f14ebcf4b2d203a48df050266749ae105662f | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
ALL_DIGITS = 2**10 - 1
def addDigitsFromNumToMap(n, digitMap):
while n > 0:
d = n % 10
digitMap = digitMap | 2**d
n /= 10
return digitMap
def isMapComplete(digitMap):
return digitMap == ALL_DIGITS
def solve(n):
if n < 1:
return "INSOMNIA"
digitMap = 0
currentN = n
while 1... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
f50aba7a1dba65eef40ef2bbff4d6a9e972b5396 | ba113c57a0fcf6baaac275f9ecf31362e83f0aaa | /linear_algebra/18_matrix_dot_product_diff_dimensions.py | fc5be0664654df84672fe2f48842ab690106bd49 | [] | no_license | Shishir-rmv/oreilly_math_fundamentals_data_science | aabc7273565fae92d542cdc683b963ac0168b565 | 9283cc50655ef40616bb93829be400cff90dfd37 | refs/heads/main | 2023-08-16T09:26:29.718212 | 2021-10-04T15:53:14 | 2021-10-04T15:53:14 | 413,713,138 | 1 | 0 | null | 2021-10-05T07:17:20 | 2021-10-05T07:17:19 | null | UTF-8 | Python | false | false | 169 | py | from numpy import array
v = array([[3, 1],
[2, 0]])
w = array([[1, 2, 0],
[3, 1, 1]])
dot_product = v.dot(w)
print(dot_product)
| [
"thomasnield@live.com"
] | thomasnield@live.com |
6aca161da9ec5847398a2930cd89ee456a28da48 | f37859eb883ffc6589f4ec8ba66dd9985849684e | /backend/icy_water_dev_20174/settings.py | 5d66b608dfe7f5c6b81a7d5488b0512eca6d2bd7 | [] | no_license | crowdbotics-apps/icy-water-dev-20174 | 97bd95faf09df9bd4edc83dd4477087d213d6256 | ee4db18152807acec6e5f4b530aab812f338f7d0 | refs/heads/master | 2023-03-20T10:37:58.843780 | 2021-03-04T21:27:45 | 2021-03-04T21:27:45 | 344,614,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,123 | py | """
Django settings for icy_water_dev_20174 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d478184abfebc687a4ec488a0ff22c70b9edde41 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_sessions_response.py | 75b03ab3c3ca6e3927fdb1a30da3f1fa939e69a6 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,226 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListSessionsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the va... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
2d869887dd805283d9ad87531e3cd300eb36e5f3 | 2b4badbedab24ed4376ab65818d0e59af6539144 | /env_workspace1/margin-softmax/function_test.py | ae183b3a9ba724c318d85df2d1c6d63b93fa5a86 | [] | no_license | matthewangbin/Python | 878d8180d12d235f8d238574414bb41edad5ceee | c9a94b4203380a06364da1f7466aafc4b141d951 | refs/heads/master | 2021-10-11T01:45:22.890144 | 2019-01-21T02:44:25 | 2019-01-21T02:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # -*- coding: utf-8 -*-
# @Time : 2018/9/14 15:08
# @Author : Matthew
# @Site :
# @File : function_test.py
# @Software: PyCharm
def strQ2B(ustring): # 全角转半角
rstring = ''
for uchar in ustring:
inside_code=ord(uchar)
if inside_code == 12288: # 全角空格直接转换
inside_code = 32
... | [
"wb2847@163.com"
] | wb2847@163.com |
3b3d89ef7e4f286a1355fd5e3e7d9b4dc937dd5a | cc9bb5470bc03d96fd89f360ca040868a773d0f1 | /timehistogram/s501_time_histogram.py | fc913e6b601d7e9619a4c16ce219e69641e36479 | [] | no_license | tomkooij/lio-project | e75f664e2a3fd6928296c1db50b7c342dfa1f2d9 | 3b2f557f974b5ae464815e025209112ef554e7dc | refs/heads/master | 2020-05-21T22:12:55.218309 | 2019-08-08T11:24:31 | 2019-08-08T11:24:31 | 24,632,133 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | """
Read data from station 501 and plot t1-t2 histogram
Goal: recreate graphs form D.Pennink 2010
t1-t2 from station 501, FULL YEAR 2010
ph1 > TRIGGER = charged particle
ph1 < TRIGGER = gamma
"""
import datetime
import tables
import sapphire.esd
import scipy.stats
import numpy as np
import matplotlib.pyplot as plt... | [
"tomkooij@tomkooij.nl"
] | tomkooij@tomkooij.nl |
a153f08aa078f70702e7678341d4a4370cdcf228 | f9a8ee37334771f37edda863db08a7dcccc9522f | /AtCoder/Practice/茶緑埋め/ACL Beginners Contest C.py | 9824c4c7387cc1d74744948c7e983b41a21c0536 | [] | no_license | shimmee/competitive-programming | 25b008ee225858b7b208c3f3ca7681e33f6c0190 | 894f0b7d557d6997789af3fcf91fe65a33619080 | refs/heads/master | 2023-06-07T13:07:17.850769 | 2021-07-05T17:20:47 | 2021-07-05T17:20:47 | 331,076,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | # ACL Beginners Contest C - Connect Cities
# URL: https://atcoder.jp/contests/abl/tasks/abl_c
# Date: 2021/02/02
# ---------- Ideas ----------
# 連結成分のグループ数を数えればいい。グループ数-1が答え
# Union-Find使う
# ------------------- Answer --------------------
#code:python
class UnionFind():
def __init__(self, n):
self.n = n
... | [
"shinmeikeita@gmail.com"
] | shinmeikeita@gmail.com |
604ee7ac9a4b18c10362a4a1fd27d71fd20045d2 | 9930f08717594022e0f7fde2a96baaa7fcfce784 | /To calculate length of the string.py | 374517037db7272c4100a7b711d85a45f353c391 | [] | no_license | dinesh5555/python_assignments | 72bd2d1cc35a92a01826536eeb4107953d8d73c7 | 33fbcbe1de8f92bd6ffe07fa66640ce1ab84a756 | refs/heads/master | 2022-11-11T18:42:41.621053 | 2020-07-03T09:12:49 | 2020-07-03T09:12:49 | 276,854,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | #!/usr/bin/env python
# coding: utf-8
# In[3]:
str = input("Enter a string: ")
count = 0
for s in str:
count = count+1
print("Length of the input string is:", count)
| [
"noreply@github.com"
] | dinesh5555.noreply@github.com |
eb30907eb5f49b5c4a6f3912396aeacd640f746d | 4bd4bacecee33cada173e427b5ecb1d758bafaad | /src/scalarizr/util/iptables.py | 94d6b1f6c781fcd1dc0ea0c68c7b7cc3fd6b21d2 | [] | no_license | kenorb-contrib/scalarizr | 3f2492b20910c42f6ab38749545fdbb79969473f | 3cc8b64d5a1b39c4cf36f5057f1a6a84a9a74c83 | refs/heads/master | 2022-11-26T10:00:58.706301 | 2017-11-02T16:41:34 | 2017-11-02T16:41:34 | 108,550,233 | 0 | 2 | null | 2020-07-24T11:05:36 | 2017-10-27T13:33:46 | Python | UTF-8 | Python | false | false | 7,747 | py | '''
Created on Jul 21, 2010
@author: Dmytro Korsakov
'''
from scalarizr.util import system2, UtilError
from scalarizr import linux
import os
import logging
LOG = logging.getLogger(__name__)
P_TCP = "tcp"
P_UDP = "udp"
P_UDPLITE = "udplite"
P_ICMP = "icmp"
P_ESP = "esp"
P_AH = "ah"
P_SCTP = "sctp"
P_ALL = "all"
PRO... | [
"kenorb@users.noreply.github.com"
] | kenorb@users.noreply.github.com |
6a6c540ce9785c1253f53ab49f99c2b68ac46a3f | 7eb61dcca9f98d077f8c497611257fa2c65ee44f | /2018 Programs/cupfill/cupfill.py | 87c3bf15448bf3af3cd39d4e010e1b40766ae4cb | [] | no_license | jasonyu0100/General-Programs | bf7d87cfae46d79a40e5b6c428e591ddc5ef4d97 | 0b3e71962159a8dadb3bca6db1c3a1ac2baf2634 | refs/heads/master | 2021-06-16T15:55:24.038897 | 2021-02-02T09:57:02 | 2021-02-02T09:57:02 | 139,376,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | maxA = 7
maxB = 5
goal = 2
possiblePaths = []
minMoves = {}
def action(a,b,goal,actions):
if a < 0 or b < 0:
return False
if (a,b) not in minMoves:
minMoves[(a,b)] = actions
elif len(minMoves[(a,b)]) < len(actions):
return False
else:
minMoves[(a,b)] = actions
if a == goal or b == goal:
possiblePaths.... | [
"jasonyu0100@gmail.com"
] | jasonyu0100@gmail.com |
3cd9e0dc765be24272981fe2bc0afcf7d5112721 | a9b0e2907079ceda6ee7ad14aa9362e1bbdb03f2 | /tests/unary_encoding_tests.py | 4ed9f94ad65548a5196ae3c0fd819f49e7b20bae | [
"Apache-2.0"
] | permissive | Yufei-Kang/plato | 93e2d1e3e2b50bda291df1ccf6394d3692064ab2 | 16b170698242b1e11677e80229c3439a9e26965a | refs/heads/main | 2023-08-28T18:10:51.604845 | 2021-10-22T13:36:54 | 2021-10-22T13:36:54 | 394,827,803 | 0 | 1 | Apache-2.0 | 2021-08-11T01:41:46 | 2021-08-11T01:41:46 | null | UTF-8 | Python | false | false | 1,782 | py | """
Unit tests for unary encoding, a local differential privacy mechanism that adds
noise to model weights or features before transmitting to the federated learning server.
"""
import unittest
import numpy as np
from plato.utils import unary_encoding
class UnaryEncodingTest(unittest.TestCase):
"""Tests for unary... | [
"bli@ece.toronto.edu"
] | bli@ece.toronto.edu |
e1f3aca2a56dc6906ab481ae206c68519dc65684 | de55001f9ffc23f0cfecc4d2c929c1e4e59b3819 | /product/migrations/0002_auto_20210225_1426.py | fb1ac7ec90ac18808267fbebd8420f9c0d535e29 | [] | no_license | OmarFateh/ecommerce | 42d986363b378809f85c332117c813d911eb2a50 | 21a5fafb1aee29cee05805d1309822b2f0ea0e92 | refs/heads/master | 2023-03-31T17:36:19.739142 | 2021-04-08T19:25:38 | 2021-04-08T19:25:38 | 355,014,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # Generated by Django 2.2 on 2021-02-25 12:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('product', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='product',
old_name='price',
new_na... | [
"66747309+OmarFateh@users.noreply.github.com"
] | 66747309+OmarFateh@users.noreply.github.com |
af713b29ab653305219c06a1f33047c6b3caa5cc | c380976b7c59dadaccabacf6b541124c967d2b5a | /.history/src/models/predict_model_20191021180146.py | 68920c54dbf98eb72bc4e0cc6e5bcf8bb4be5110 | [
"MIT"
] | permissive | bkraft4257/kaggle_titanic | b83603563b4a3c995b631e8142fe72e1730a0e2e | f29ea1773773109a867278c001dbd21a9f7b21dd | refs/heads/master | 2020-08-17T12:45:28.653402 | 2019-11-15T16:20:04 | 2019-11-15T16:20:04 | 215,667,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | import pandas as pd
import numpy as np
from IPython.display import display, Markdown
from sklearn.metrics import log_loss
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn.model_selection import cross_val_score
from sklearn import metrics
def conca... | [
"bob.kraft@infiniteleap.net"
] | bob.kraft@infiniteleap.net |
04074927b737662e2c43d73486aa4505ea8019a9 | 7afd96cffcab14f5071c6a6a41890fe815e8be79 | /api.py | e27a2a4a37e3def35d4fb0c93745b301e8a5f8ec | [] | no_license | AppointmentGuru/VuexRequests | c9ac3d11269b3df4fe1e8e8909452c77c428a347 | fa8239f4aa5b6b63aeec25afe3f7ceddf0794207 | refs/heads/master | 2021-01-19T09:03:23.281908 | 2018-11-02T09:28:55 | 2018-11-02T09:28:55 | 87,717,426 | 1 | 0 | null | 2018-01-25T16:41:45 | 2017-04-09T15:12:42 | Vue | UTF-8 | Python | false | false | 2,909 | py | import hug, random, time
from faker import Factory
from falcon import HTTP_400, HTTP_500
fake = Factory.create()
STATUS_CODES = {
100: "100 Continue",
101: "101 Switching Protocols",
102: "102 Processing",
200: "200 OK",
201: "201 Created",
202: "202 Accepted",
203: "203 Non-authoritative ... | [
"info@38.co.za"
] | info@38.co.za |
570de7e13a83461ad46693a0887b7c728e711fdb | aa4aa51465d79e0447cbe22281f0402ca95bdaa2 | /python/project/AlexNet_Keras.py | c3ebcf5f131d175a6ba14238ace2282d41b1a8a6 | [] | no_license | zuozuo12/usualProject | 2ca06bb7a1ff6f99343f1997053ba8d5a48e00a7 | 335bcef5d76d6cf0c84dd3209176089b3b07fbba | refs/heads/master | 2020-11-27T17:02:33.252884 | 2019-10-22T06:46:32 | 2019-10-22T06:46:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,825 | py | import tensorflow as tf
from tensorflow.python.keras.layers import Conv2D,MaxPool2D,Dropout,Flatten,Dense
def inference(inputs,num_classe=1000,is_training=True,dropout_keep_prob=0.5):
'''
Inference
inputs: a tensor of images
num_classes: the num of category.
is_training: set ture when it ... | [
"llfwyyx@163.com"
] | llfwyyx@163.com |
4a69bccd7b42b5d3695af923a042e0e54a07e4b6 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayCommerceSportsLessonBackstageSyncResponse.py | 9961cd264762855068b37e7b91d97383dde25433 | [
"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 | 482 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayCommerceSportsLessonBackstageSyncResponse(AlipayResponse):
def __init__(self):
super(AlipayCommerceSportsLessonBackstageSyncResponse, self).__init__()
def parse_r... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
ffb7a3b5a5e182112bde91c23e46c72395497317 | de89f51d5f904ca666a778b06831c7e0bc9457e0 | /payment/urls.py | 833c2bcf8389066c733dbdf76307d35397c836d6 | [] | no_license | Kennedy-Njeri/Brightwriter | 3ee7fe6999413a8ef0abc403dd76f82ad45d5f41 | ecb079aace588a7eb8fbda302965d18372937e2c | refs/heads/master | 2022-12-10T19:03:22.624623 | 2019-07-25T20:52:06 | 2019-07-25T20:52:06 | 184,429,912 | 0 | 0 | null | 2022-12-08T05:03:23 | 2019-05-01T14:38:14 | Python | UTF-8 | Python | false | false | 254 | py |
from django.urls import path
from . import views
urlpatterns = [
path('<int:pk>', views.payment_process, name="process"),
path('done/', views.payment_done, name="done"),
path('canceled/', views.payment_canceled, name="canceled"),
] | [
"mistakenz123@gmail.com"
] | mistakenz123@gmail.com |
ba7fa51caac306808c4951ba1818867e6db437ea | 8c51aff248eb6f463d62e934213660437c3a107b | /Lecture_note_Python/day_02/list_10.py | 9019408b03dd0369b32a70921ceea15941ed75db | [] | no_license | wonjun0901/WJ_Develop_Individually | 5f839932c189adf2b2b34f7dadbdeaa8744f8d0e | e0402f5dbdda8ae8292cace124d381e29f707183 | refs/heads/master | 2021-01-02T00:13:38.851832 | 2020-02-18T01:10:15 | 2020-02-18T01:10:15 | 239,406,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | # -*- coding: utf-8 -*-
# 리스트 내부에 저장된 요소들을 정렬하는 방법
# - sort 메소드를 사용하여 처리할 수 있음
numbers = [5,1,3,2,9,6,7,8]
print(numbers)
# 리스트 내부의 요소들을 오름차순 정렬하는 예제
# sort 메소드 사용
numbers.sort()
print(numbers)
# sort 메소드의 reverse 매개변수의 값을 True로
# 지정하여 내림차순 정렬을 수행할 수 있음
numbers.sort(reverse=True)
print(numbers)
# 리스트 변수의 reverse 메소... | [
"wonjun0901@gmail.com"
] | wonjun0901@gmail.com |
33432703d01def7cef6f075a85009fdd56882ba0 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-mrsp.0/mrsp_ut=3.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=78/params.py | 1f9142536f19ad3ffc6125426fe1eb417594e568 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.535357',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.65',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 78,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
097ef5ecaf03cae65fc13fcf38177a7f292cd4e1 | ec551303265c269bf1855fe1a30fdffe9bc894b6 | /topic4_dynamic_planning_study/0811_waysToChange/interview.py | 6aa0312120f2192bc46403734cf98373cd7d1aba | [] | no_license | GongFuXiong/leetcode | 27dbda7a5ced630ae2ae65e19d418ebbc65ae167 | f831fd9603592ae5bee3679924f962a3ebce381c | refs/heads/master | 2023-06-25T01:05:45.683510 | 2021-07-26T10:05:25 | 2021-07-26T10:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | ''' 面试题 08.11. 硬币
硬币。给定数量不限的硬币,币值为25分、10分、5分和1分,编写代码计算n分有几种表示法。(结果可能会很大,你需要将结果模上1000000007)
示例1:
输入: n = 5
输出:2
解释: 有两种方式可以凑成总金额:
5=5
5=1+1+1+1+1
示例2:
输入: n = 10
输出:4
解释: 有四种方式可以凑成总金额:
10=10
10=5+5
10=5+1+1+1+1+1
10=1+1+1+1+1+1+1+1+1+1
'''
class Solution:
... | [
"958747457@qq.com"
] | 958747457@qq.com |
6c0a4d084237c14eb86f1545fb7fbb10ebf90a20 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02677/s634954826.py | fe7cfc5cace77a99cc38b1608c9bf586cb445d92 | [] | 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 | 232 | py | import math
a, b, h,m = map(int,input().split())
h_deg = (60 * h + m) * (360 / (60*12))
m_deg = m * (360 / 60)
deg = abs(h_deg-m_deg)
rad = math.radians(deg)
c = a ** 2 + b ** 2 - 2 * a * b * math.cos(rad)
print(math.sqrt(c))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b4f4459956be2f25292c8ff73297ee8d2ddc0304 | 8a086d7aa38e270bddd978a7ac29cec7cb52b344 | /test_gcp_8_8/settings.py | f3ec86ee6f55fc01f458a85220d488a9b938e246 | [] | no_license | crowdbotics-dev/test-gcp-8-8 | 70d3b2744fb14cd34b7fc9d1d5d51b6b9e509a77 | 222e3d9599663f26acab85f32db5363dd8d9e839 | refs/heads/master | 2023-08-28T20:11:33.339043 | 2021-10-25T08:44:23 | 2021-10-25T08:44:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,811 | py | """
Django settings for test_gcp_8_8 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"engineering@crowdbotics.com"
] | engineering@crowdbotics.com |
95a2a0b6f5adae2c3d5641de782efc6e002d29d2 | eae5a4f3b5407afd34581e65c1f82a04b7a1855b | /heap/adt.py | 9e3e1f8eb4199041aeefa8bf4c08022849dca4ba | [] | no_license | hjlarry/leetcode | 184331b170ee3d3d1ae8b83a95583e73d900a01c | 54ff328131bf2ef387292f31a0e2a2c2cf612cdd | refs/heads/master | 2021-08-08T02:10:36.022242 | 2020-05-07T07:45:58 | 2020-05-07T07:45:58 | 172,198,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,816 | py | class MaxHeap:
def __init__(self, maxsize=None):
self.maxsize = maxsize or 32
self._elements = [None] * self.maxsize
self._count = 0
def __len__(self):
return self._count
def add(self, item):
if self._count >= self.maxsize:
raise Exception("full heap")
... | [
"hjlarry@163.com"
] | hjlarry@163.com |
6cb68e4c8e07aa0a90c40aae5f4def02d266a930 | 7d8b5220152b4ef4876c489d6648be56bc83c8e7 | /exercises/development/advanced/exercise_1.py | 49045a14a3f0fc47d0b7c605f4cce8cd7487148f | [
"CC-BY-4.0",
"ISC",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | comp-think/comp-think.github.io | 8f89518e7a463376b431f55fb7f495cb3019d4a5 | e48a7ecf3b1799471271e01430e089e8f8e3c68d | refs/heads/master | 2023-01-04T20:38:27.593237 | 2023-01-02T14:48:54 | 2023-01-02T14:48:54 | 157,171,226 | 52 | 22 | NOASSERTION | 2023-01-02T14:48:55 | 2018-11-12T07:11:23 | Python | UTF-8 | Python | false | false | 2,943 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Silvio Peroni <essepuntato@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
#
# THE SOFTWARE I... | [
"essepuntato@gmail.com"
] | essepuntato@gmail.com |
fe81555e1d4fc79957700c377446435804424705 | 052514e42a741be1371c74b7882f153d8056fb2c | /tutorial/settings.py | a3982bbfbf9ad8c19cffc53fc55b0ff1af356a0c | [] | no_license | zoleikha-mousavipak/tutorial | 1d1c6654bfe19bc293b7c6b03d56d670e1e9406f | bbef79a51b455cad8e342df406afb2f73cbd2234 | refs/heads/master | 2020-06-12T20:57:37.259970 | 2019-06-29T15:57:53 | 2019-06-29T15:57:53 | 194,423,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"zmpak2000@gmail.com"
] | zmpak2000@gmail.com |
ef560dbd8795f56d2d6af2242fdee943d48d5f56 | bc11e10521fa313d83011e77a2c31a0b6ed581af | /lib/rubyfox/server/data/lib/Lib/encodings/cp866.py | 518eede0adb67d4c85e94e435c85e8f824a51c7d | [
"MIT"
] | permissive | neopoly/rubyfox-server | f6f191c68dcc30b8c56d22c8209e4a69251f4f27 | 26d67687fc642111ef8d02507f2b567828bd1ebd | refs/heads/master | 2023-07-20T15:04:32.028192 | 2023-07-17T09:16:36 | 2023-07-17T09:33:20 | 6,457,322 | 3 | 4 | MIT | 2020-08-11T06:53:50 | 2012-10-30T13:06:32 | Python | UTF-8 | Python | false | false | 7,092 | py | """ Python Character Mapping Codec generated from 'CP866.TXT' with gencodec.py.
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
(c) Copyright 2000 Guido van Rossum.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,error... | [
"ps@neopoly.de"
] | ps@neopoly.de |
5efa166cf25d0fb4221bbc7c26dd5d295c38e203 | 52c3ef5ae2c86cbde6c46c7c8d225ddf165d0632 | /GBM/GBMSlidingwindows_V2/addRawMeanGlobalNorm.py | 05fa0500e35d68234d1972e2e38f7318a5c0d456 | [
"MIT"
] | permissive | joshlyman/TextureAnalysis | 7ae028584af6466cd96e207060a916611511d300 | bfbedbd53f62396fdef383408089b37e5ab511d0 | refs/heads/master | 2020-09-03T04:07:16.372160 | 2019-11-03T23:51:20 | 2019-11-03T23:51:20 | 219,382,186 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,673 | py | # updated Raw Mean and Std based on whole image normalization (Max and Min)
import os
import csv
import fnmatch
import SimpleITK
import numpy
rootDir = '/Users/yanzhexu/Desktop/Research/GBM/aCGH_whole_tumor_maps_for_Neuro-Onc_dataset'
texturesPath = '/Users/yanzhexu/Desktop/Research/Sliding box GBM/MyAlgorithm_V2/ad... | [
"yanzhexu@asu.edu"
] | yanzhexu@asu.edu |
5ecb1beb5854b4ea5f97cb54834329219457f1d9 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.8_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=25/sched.py | 39456379673b5e513262d6038623284df7dbac6f | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | -X FMLP -Q 0 -L 3 102 300
-X FMLP -Q 0 -L 3 100 400
-X FMLP -Q 0 -L 3 53 200
-X FMLP -Q 1 -L 2 47 300
-X FMLP -Q 1 -L 2 46 200
-X FMLP -Q 1 -L 2 40 200
-X FMLP -Q 2 -L 2 39 150
-X FMLP -Q 2 -L 2 39 200
-X FMLP -Q 3 -L 1 31 150
-X FMLP -Q 3 -L 1 22 250
17 150
17 200
16 150
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
1bfdc532a4f8ca1c7618fc2febf475737d4274c3 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/program/model/util/AddressLabelInfo.pyi | 47dc2479e2d7c15df523627720cb7c02b0825660 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | pyi | import ghidra.program.model.address
import ghidra.program.model.symbol
import ghidra.program.model.util
import java.lang
class AddressLabelInfo(object, java.lang.Comparable):
"""
AddressLabelInfo is a utility class for storing
an Address and a corresponding label or alias together.
"""
@over... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
59ccb3889943b1db7267ae6e01d546a994d43164 | 05083d24088bbb3bfb7cdd162c101c72e18bc3a6 | /containers/restart/component-invalid-uri.py | c1ffbc055d0bec36aefe23271f0429e6b1d50802 | [
"Apache-2.0"
] | permissive | crossbario/crossbar-examples | f5e14b62db0f14e20ab54346cd4e8c3276aa6449 | aa31d9fe3abcb4b797931356b5a2ceeac64229c3 | refs/heads/master | 2023-01-11T02:36:00.883034 | 2023-01-03T11:12:06 | 2023-01-03T11:12:06 | 28,035,551 | 100 | 122 | Apache-2.0 | 2023-01-03T11:12:07 | 2014-12-15T12:23:02 | HTML | UTF-8 | Python | false | false | 4,301 | py | import os
import threading
import txaio
txaio.use_twisted()
from txaio import make_logger
from twisted.internet.defer import inlineCallbacks
from autobahn.wamp.types import CallDetails, RegisterOptions, EventDetails, SubscribeOptions
from autobahn.twisted.wamp import ApplicationSession
from autobahn.wamp.exception i... | [
"tobias.oberstein@crossbario.com"
] | tobias.oberstein@crossbario.com |
a8a1a4dc8c8273f814e2058d488401d7146c8e5a | b0cc5ffd6cba61367ceb23acace49a2cecb51c60 | /test_appium0102/test_demo.py | 715414d6d7307f99b038b635cee0c4481a11352f | [] | no_license | tangsong41/hogwarts | eef7c4b978430ea528a55939559aeb2b843954c3 | d00091d5ea42bd57526788c4aab5f7f47ca7ae24 | refs/heads/main | 2023-02-17T01:42:48.966217 | 2021-01-12T01:51:03 | 2021-01-12T01:51:03 | 319,966,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | # -*- coding: utf-8 -*-
"""
@author:tangsong
@file: test_demo.py
@time: 2020/12/31
"""
from appium import webdriver
class testDemo:
def setup(self):
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '6.0'
desired_caps['deviceName'] = '127.... | [
"369223985@qq.com"
] | 369223985@qq.com |
d8b17d0bb37eb63334d10f716f8a6144759eaa62 | 40132307c631dccbf7aa341eb308f69389715c73 | /OLD/idmt/maya/Pluto/PlutoGun/temp/xx.py | 0af794bcc9ab3039c03a9b7d5692a0031244de61 | [] | no_license | Bn-com/myProj_octv | be77613cebc450b1fd6487a6d7bac991e3388d3f | c11f715996a435396c28ffb4c20f11f8e3c1a681 | refs/heads/master | 2023-03-25T08:58:58.609869 | 2021-03-23T11:17:13 | 2021-03-23T11:17:13 | 348,676,742 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,423 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading myuis file 'Z:/Resource/Support/Python/2.6-x64/Lib/site-packages/idmt/maya/Pluto/PlutoGun/xx.myuis'
#
# Created: Fri Dec 21 17:43:47 2012
# by: PyQt4 UI code generator 4.9.5
#
# WARNING! All changes made in this file will be lost!
from PyQt4 im... | [
"snakelonely@outlook.com"
] | snakelonely@outlook.com |
ee118db85a71932cd427bf3a4c40687623546892 | 916480ae24345193efa95df013f637e0a115653b | /web/transiq/broker/migrations/0005_auto_20180425_0052.py | 61b2758886a998f8cdd0fcbb2c8b121138260bc5 | [
"Apache-2.0"
] | permissive | manibhushan05/tms | 50e289c670e1615a067c61a051c498cdc54958df | 763fafb271ce07d13ac8ce575f2fee653cf39343 | refs/heads/master | 2022-12-11T07:59:30.297259 | 2021-09-08T03:24:59 | 2021-09-08T03:24:59 | 210,017,184 | 0 | 0 | Apache-2.0 | 2022-12-08T02:35:01 | 2019-09-21T16:23:57 | Python | UTF-8 | Python | false | false | 865 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-04-25 00:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('utils', '0015_auto_20180417_1922'),
('broker', '000... | [
"mani@myhost.local"
] | mani@myhost.local |
18b706f303d4ce45bf9432ccf2440b871ae63d13 | 86cd22354f2431087c9b3ff06188f071afb3eb72 | /1155. Number of Dice Rolls With Target Sum.py | 380fb3242114c123ec73b41c55bf224c9a13eaad | [] | no_license | tlxxzj/leetcode | 0c072a74d7e61ef4700388122f2270e46c4ac22e | 06dbf4f5b505a6a41e0d93367eedd231b611a84b | refs/heads/master | 2023-08-31T11:04:34.585532 | 2023-08-31T08:25:51 | 2023-08-31T08:25:51 | 94,386,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | class Solution:
def numRollsToTarget(self, d: int, f: int, target: int) -> int:
dp = [0]*(target+1)
dp[0] = 1
for i in range(d):
for j in range(target, i, -1):
dp[j] = 0
for k in range(1, f+1):
if j-k >=i:
... | [
"tlxxzj@qq.com"
] | tlxxzj@qq.com |
272b9d1172d3e7242c697639af070ac9d194d29b | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/201-300/week 259/2013. Detect Squares/Detect Squares.py | 2290cee67baacc45ca4bb735f9f9646d052e93a9 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | #!/usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author: wangye(Wayne)
@license: Apache Licence
@file: Detect Squares.py
@time: 2021/09/19
@contact: wang121ye@hotmail.com
@site:
@software: PyCharm
# code is far away from bugs.
"""
from typing import *
import collections
class DetectSquares:
def __ini... | [
"905317742@qq.com"
] | 905317742@qq.com |
3837b37dddc427ad588cb01cd3ec61947c588c9a | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/validators/histogram/_cumulative.py | dd8bbaddfd43ef0a0302a4293f9011148ea3c2c3 | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 1,927 | py | import _plotly_utils.basevalidators
class CumulativeValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name='cumulative', parent_name='histogram', **kwargs
):
super(CumulativeValidator, self).__init__(
plotly_name=plotly_name,
parent_... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
d3ab238fe5245288e6a1241eca69f639cc2c4041 | 133e8c9df1d1725d7d34ea4317ae3a15e26e6c66 | /pythonlearn/Class/Advanced-Features/1.1.Generator.py | b1308537310c36ef27afb0fba7b9d3e84a6223b4 | [
"Apache-2.0"
] | permissive | 425776024/Learn | dfa8b53233f019b77b7537cc340fce2a81ff4c3b | 3990e75b469225ba7b430539ef9a16abe89eb863 | refs/heads/master | 2022-12-01T06:46:49.674609 | 2020-06-01T08:17:08 | 2020-06-01T08:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py |
import time
from collections import deque # 1.
class Dispatcher(object): # 2.
def __init__(self, tasks):
self.tasks = deque(tasks) # 3.
def next(self):
return self.tasks.pop() # 4.
def run(self):
while len(self.tas... | [
"cheng.yang@salezoom.io"
] | cheng.yang@salezoom.io |
db09bf8bb97fd12ceb4f932e902a616242bf72e8 | 2bba4782f9085d2c0c324f6668709a81e482e095 | /secao07/ex32.py | b2a68bcb077573982bff6a74836074dc8dc0afd4 | [] | no_license | Saccha/Exercicios_Python | 886ae07392f006226688b8817bf17a7a52020ef9 | e54203cb8754180f0fe120ee60c462c2e74c86e3 | refs/heads/main | 2023-04-18T06:44:42.243579 | 2021-04-18T03:49:30 | 2021-04-18T03:49:30 | 346,230,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | """
32.Leia dois vetores de inteiros x e y, cada um com 5 elementos (assuma
que o usuário não informa elementos repetidos). Calcule e mostre os
vetores resultantes em cada caso abaixo:
. Soma entre x e y: soma de cada elemento x com o elemento da mesma
posição em y.
. Produto entre x e y: multiplicação de c... | [
"noreply@github.com"
] | Saccha.noreply@github.com |
961155531e12ba7806368a3811fb1b54547d88d7 | 0158a2c57f964f36a2970d060617baf423f5eaa8 | /test/examples100/example13.py | 1e2d8b911de9cbaa9ede7bf68665721f3aacdb47 | [] | no_license | wangzhicheng2013/python | c835f82cfedf4e6e8494cbc1d35681c3109adf1a | ce7d5ea7992964df583e78fa57ee1203c2f6e26d | refs/heads/master | 2022-12-09T08:18:10.112515 | 2019-04-19T12:07:08 | 2019-04-19T12:07:08 | 155,081,543 | 0 | 0 | null | 2022-11-23T21:11:46 | 2018-10-28T14:44:41 | Python | UTF-8 | Python | false | false | 209 | py | import sys
def func(number):
i = number / 100
j = number / 10 % 10
k = number % 10
return i ** 3 + j ** 3 + k ** 3
for i in range(100, 1000):
if i == func(i):
print i
| [
"root@ubuntu.ubuntu-domain"
] | root@ubuntu.ubuntu-domain |
35743bbcf8443bf7eb88f8efb40b61452e8ef1ec | 6d327a390d007ea20b17977a317e116856c5c768 | /src/sllintra/theme/tests/test_functional.py | 7e7cd4ac493a31a9a33551113276b17010ed1f3e | [] | no_license | taito-zz/sllintra.theme | fae565e6f5ff59d02d0082d769c970d432f66ec8 | b7e99454c54094941eca3aec3d1d0bb0d14ed265 | refs/heads/master | 2021-05-30T07:27:32.884147 | 2015-08-10T18:19:01 | 2015-08-10T18:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | from hexagonit.testing.browser import Browser
from plone.app.testing import TEST_USER_ID
from plone.app.testing import TEST_USER_NAME
from plone.app.testing import TEST_USER_PASSWORD
from plone.app.testing import setRoles
from plone.testing import layered
from sllintra.theme.tests.base import FUNCTIONAL_TESTING
from zo... | [
"taito.horiuchi@gmail.com"
] | taito.horiuchi@gmail.com |
405b146f50c9dd13caf90aef5b307457ae893531 | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/coghq/MintRoomBase.py | e60a8dfda7c30df30392dd663def6bc7dad4ba47 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 713 | py | # File: t (Python 2.4)
from toontown.toonbase import ToontownGlobals
class MintRoomBase:
def __init__(self):
pass
def setMintId(self, mintId):
self.mintId = mintId
self.cogTrack = ToontownGlobals.cogHQZoneId2dept(mintId)
def setRoomId(self, roomId):
self.ro... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
12ecdd5eb0b0958d7c55bebdc3501b320b2a18b4 | 201113fb5d1a4db7b36f6a159d6700685c81a5f1 | /stepik_data_structures/brackets.py | 969f7be005cfcf84d05a4b06c26e53f05a110dc3 | [] | no_license | Leoberium/CS | abdbc26e39e8d02a96d5ea56cf430ddc54d22d42 | b283a3beeb40ebca5258adb5336e9650d9ef3fac | refs/heads/master | 2020-12-28T10:52:41.826510 | 2020-11-28T13:37:15 | 2020-11-28T13:37:15 | 238,299,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | import sys
def balanced(s):
stack = []
d = {']': '[', '}': '{', ')': '('}
for i in range(len(s)):
ch = s[i]
if ch in '[({':
stack.append(i)
elif ch in '])}':
if stack:
if s[stack[-1]] == d[ch]:
stack.pop()
... | [
"leo.mazaev@gmail.com"
] | leo.mazaev@gmail.com |
07bfed36ee02e1066de8ca94b1054c2352c4b9e1 | 021c3da6bc9416185732120c9dc11a8bbfde9170 | /db_repository/manage.py | 0d55335168b5208db65f82083cdf32f9f1e691f1 | [
"Apache-2.0"
] | permissive | w940853815/weixin-robot | ed396cf59ad01f7d6223f603f85631411d79d7fe | 73b7b447241c1a74a14b21c6c11fc652b30f7ebb | refs/heads/master | 2021-01-19T08:12:42.933388 | 2018-01-12T03:12:48 | 2018-01-12T03:12:48 | 87,611,249 | 15 | 1 | null | 2018-01-12T03:12:49 | 2017-04-08T05:44:41 | JavaScript | UTF-8 | Python | false | false | 168 | py | #!/usr/bin/env python
from migrate.versioning.shell import main
if __name__ == '__main__':
main(six='<module 'six' from 'C:\Python27\lib\site-packages\six.pyc'>')
| [
"ruidong.wang@tsingdata.com"
] | ruidong.wang@tsingdata.com |
b975490442e071e5afdc29656ce1bb994fe91cb4 | 5fb8c6df1b2745b4a179a58ed1b6da823979efa2 | /tests/test_buttons.py | cf64731f1f1b0653160bc96f069f819156f38567 | [
"MIT"
] | permissive | sametz/uw_dnmr | b96f9669fae7798a16bf2081c1235975dc8b3cf8 | ad8fca28f37bfe3d3cdb17a054295b2068aed36e | refs/heads/master | 2023-05-12T16:14:14.012825 | 2020-05-06T01:15:07 | 2020-05-06T01:15:07 | 106,963,746 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | from PySide2 import QtCore
from PySide2.QtCore import Slot as pyqtSlot
from PySide2.QtWidgets import QRadioButton
from uw_dnmr.view.widgets.buttons import ABC_ButtonGroup, MultipletButtonGroup
@pyqtSlot(QRadioButton)
def printslot(button):
# print("SLOT TRIGGER")
print(button.objectName())
def test_nspins... | [
"sametz@udel.edu"
] | sametz@udel.edu |
e357d65a26159b5aadd8455848c3c1cb3a8b19c3 | 82c17d2f12208f77daef47305799800e0fe4df4b | /config/__init__.py | 73b7aa8b919d273bbd5604cee59bf3de67e64061 | [
"MIT"
] | permissive | keremkoseoglu/Guitar-Training-Remote | de59ec0eb68daa7a9a3e09ef6648a0e085587d80 | e4c1ee5a1971ba6b3c09268e25a511425dbd2628 | refs/heads/master | 2023-08-11T06:12:32.351577 | 2023-07-30T06:53:47 | 2023-07-30T06:53:47 | 161,452,837 | 4 | 0 | MIT | 2023-05-23T07:48:03 | 2018-12-12T07:59:22 | Python | UTF-8 | Python | false | false | 1,875 | py | """ Configuration module """
import os
import json
_CONFIGURATION = {}
_DATA_DIR = "data"
def get_configuration() -> dict:
""" Returns configuration """
global _CONFIGURATION
if not _CONFIGURATION:
file_path = _get_config_path()
with open(file_path, encoding="utf-8") as config_file:
... | [
"kerem@keremkoseoglu.com"
] | kerem@keremkoseoglu.com |
f098d55a0026c91b25d430a40199dce658d65464 | 98d61512fdf7f8426d4634a86edd25669944ab9e | /algorithms/FindLargestValueInEachTreeRow/solution.py | 6aae46e47ca887913b1e9ccac9c7994ba7af492d | [] | no_license | P-ppc/leetcode | 145102804320c6283fa653fc4a7ae89bf745b2fb | 0d90db3f0ca02743ee7d5e959ac7c83cdb435b92 | refs/heads/master | 2021-07-12T02:49:15.369119 | 2018-11-13T05:34:51 | 2018-11-24T12:34:07 | 132,237,265 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def largestValues(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
res... | [
"ppc-user@foxmail.com"
] | ppc-user@foxmail.com |
c2f8b0c653b9b2a632f09ab0bc003b304ab84694 | 89d230ad44d17b18897da507725b0a10c32960d8 | /local/RH/decoratorPython.py | 826d80605a350489ba91431d1add5f47b2ee12a9 | [] | no_license | KB-perByte/CodePedia | aeeae87b56cf0ff6e02200cfd6b34da42a007338 | 287e7a3ce981bbf594436cdc06dde23a02b53bb0 | refs/heads/master | 2021-06-19T07:32:53.849871 | 2021-01-23T16:17:27 | 2021-01-23T16:17:27 | 163,250,017 | 0 | 1 | null | 2020-03-21T14:39:36 | 2018-12-27T05:13:55 | JavaScript | UTF-8 | Python | false | false | 824 | py | def first(func):
print("ABC")
def second():
print("DEF")
return None
return second
@first
def third(): #call a method but don't call it in python
print("GHI")
third()
def run_once(f):
def wrapper(*args, **kwargs):
if not wrapper.has_run:
wrapper.has_run = True
... | [
"paul.sagar@yahoo.com"
] | paul.sagar@yahoo.com |
316dae334bb86a62acfef31a2121449065e52937 | 71460476c5f5ebdca719def124f1a0650861fdab | /mint_work/custom/pos_order_history/models/__init__.py | b2513db7cb67252bf9f66e89af52671ac3d1385f | [] | no_license | merdhah/dubai_work | fc3a70dc0b1db6df19c825a3bf1eef2a373d79c0 | e24eb12b276a4cd5b47a4bd5470d915179872a4f | refs/heads/master | 2022-01-07T11:22:07.628435 | 2018-10-17T13:37:24 | 2018-10-17T13:37:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Bista Solutions Pvt. Ltd
# Copyright (C) 2018 (http://www.bistasolutions.com)
#
##############################################################################
import pos_order_history
| [
"asghar0517@gmail.com"
] | asghar0517@gmail.com |
1261b42b0608586081c6164a8301e4a0f49e8b85 | ba80ca143ba35fd481730786a27ebdb1f88ce835 | /algorithm/LC/2.py | 131da9dd69e2ef8227063d26f325ef3b32039361 | [] | no_license | uiandwe/TIL | c541020b65adc53578aeb1c3ba4c6770b3b2e8b3 | 186544469374dd0279099c6c6aa7555ee23e42fe | refs/heads/master | 2022-02-15T08:33:07.270573 | 2022-01-01T15:22:54 | 2022-01-01T15:22:54 | 63,420,931 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # -*- coding: utf-8 -*-
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
root = head = ListNode()
carry = 0
... | [
"noreply@github.com"
] | uiandwe.noreply@github.com |
e29d25c8fb1a7a3ea53ba29c314958803eef3a1d | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/dxtbx/format/FormatSMVADSCSNAPSID19.py | 8eb05eeb4108d0e37ae4e95c80019351c35e4ed0 | [
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 2,814 | py | """
An implementation of the SMV image reader for ADSC images. Inherits from
FormatSMVADSC, customised for example on APS ID19 SN 458 and 914
which have reversed phi.
"""
from __future__ import absolute_import, division, print_function
import sys
from dxtbx.format.FormatSMVADSCSN import FormatSMVADSCSN
class Format... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
78b5dedb32fcedb3494d47a5bc59c98dc56ace50 | 2ee4f5aa01ecdacaf66db556b2a289df4dd5e891 | /juriscraper/lib/cookie_utils.py | ecb52db2c63d00c2ca440857926997e4453288d9 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Alex-Devoid/juriscraper | f9f94f3da1a9fca12a21849922e4898ff0e42564 | 6ac2d5182dbf3aea14d918e645d582e9b42c9dd6 | refs/heads/master | 2020-12-12T01:38:02.511764 | 2020-01-17T07:55:16 | 2020-01-17T07:55:16 | 234,010,973 | 0 | 0 | NOASSERTION | 2020-01-15T06:09:26 | 2020-01-15T06:09:26 | null | UTF-8 | Python | false | false | 665 | py | from requests.cookies import RequestsCookieJar
def normalize_cookies(cookies):
"""Takes cookies from PhantomJS/Selenium or from Python Requests and
converts them to dict.
This throws away information that Selenium otherwise has (like the host and
such), but a dict is essentially all we need.
"""
... | [
"mlissner@michaeljaylissner.com"
] | mlissner@michaeljaylissner.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.