hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
29392d7c293c0b529284bdff29493ae4994d22ba
206
py
Python
example.py
n0emis/pycodimd
cec7135babe63f0c40fdb9eac7ede50e145cd512
[ "MIT" ]
1
2020-04-20T22:06:49.000Z
2020-04-20T22:06:49.000Z
example.py
n0emis/pycodimd
cec7135babe63f0c40fdb9eac7ede50e145cd512
[ "MIT" ]
null
null
null
example.py
n0emis/pycodimd
cec7135babe63f0c40fdb9eac7ede50e145cd512
[ "MIT" ]
null
null
null
from pycodimd import CodiMD cmd = CodiMD('https://md.noemis.me') #cmd.login('user@example.com','CorrectHorseBatteryStaple') cmd.load_cookies() print(cmd.history()[-1]['text']) # Print Name of latest Note
29.428571
61
0.73301
0
0
0
0
0
0
0
0
113
0.548544
293ac2ae42d575f893f18bae2751d93e4e138ae8
75
py
Python
PP4E-Examples-1.4/Examples/PP4E/System/Environment/echoenv.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/System/Environment/echoenv.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/System/Environment/echoenv.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
import os print('echoenv...', end=' ') print('Hello,', os.environ['USER'])
18.75
35
0.613333
0
0
0
0
0
0
0
0
29
0.386667
293afc12acd3adc92103d2c686f2476332649203
4,137
py
Python
plix/displays.py
freelan-developers/plix
69114b3e522330af802800e09a432c1a84220f88
[ "MIT" ]
1
2017-05-22T11:52:01.000Z
2017-05-22T11:52:01.000Z
plix/displays.py
freelan-developers/plix
69114b3e522330af802800e09a432c1a84220f88
[ "MIT" ]
4
2015-03-12T16:59:36.000Z
2015-03-12T17:34:15.000Z
plix/displays.py
freelan-developers/plix
69114b3e522330af802800e09a432c1a84220f88
[ "MIT" ]
1
2018-03-04T21:43:33.000Z
2018-03-04T21:43:33.000Z
""" Display command results. """ from __future__ import unicode_literals from contextlib import contextmanager from argparse import Namespace from io import BytesIO from colorama import AnsiToWin32 from chromalog.stream import stream_has_color_support from chromalog.colorizer import Colorizer from chromalog.mark.he...
27.397351
79
0.583273
3,735
0.902828
653
0.157844
673
0.162678
0
0
1,528
0.36935
293dd5d900ef2c6130d4549dd1b873aa939a8cba
6,167
py
Python
plugins/Autocomplete/plugin.py
mogad0n/Limnoria
f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c
[ "BSD-3-Clause" ]
476
2015-01-04T17:42:59.000Z
2021-08-13T07:40:54.000Z
plugins/Autocomplete/plugin.py
mogad0n/Limnoria
f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c
[ "BSD-3-Clause" ]
491
2015-01-01T04:12:23.000Z
2021-08-12T19:24:47.000Z
plugins/Autocomplete/plugin.py
mogad0n/Limnoria
f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c
[ "BSD-3-Clause" ]
203
2015-01-02T18:29:43.000Z
2021-08-15T12:52:22.000Z
### # Copyright (c) 2020-2021, The Limnoria Contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this l...
34.071823
79
0.66564
1,852
0.300308
0
0
0
0
0
0
2,765
0.448354
293e981880ad85e96c9f610aaeaa19c42550d236
2,237
py
Python
utils/preprocess_twitter.py
arnavk/tumblr-emotions
0ed03201ab833b8b400cb0cff6c5b064fac5edfb
[ "Apache-2.0" ]
null
null
null
utils/preprocess_twitter.py
arnavk/tumblr-emotions
0ed03201ab833b8b400cb0cff6c5b064fac5edfb
[ "Apache-2.0" ]
null
null
null
utils/preprocess_twitter.py
arnavk/tumblr-emotions
0ed03201ab833b8b400cb0cff6c5b064fac5edfb
[ "Apache-2.0" ]
null
null
null
""" preprocess-twitter.py python preprocess-twitter.py "Some random text with #hashtags, @mentions and http://t.co/kdjfkdjf (links). :)" Script for preprocessing tweets by Romain Paulus with small modifications by Jeffrey Pennington with translation to Python by Motoki Wu Translation of Ruby script to create features f...
34.415385
125
0.591417
0
0
0
0
0
0
0
0
1,155
0.516316
2940e9042fa0fc027376618fe6d76d1057e9e9bd
37,124
py
Python
pyPLANES/pw/pw_classes.py
matael/pyPLANES
7f591090446303884c9a3d049e42233efae0b7f4
[ "MIT" ]
null
null
null
pyPLANES/pw/pw_classes.py
matael/pyPLANES
7f591090446303884c9a3d049e42233efae0b7f4
[ "MIT" ]
null
null
null
pyPLANES/pw/pw_classes.py
matael/pyPLANES
7f591090446303884c9a3d049e42233efae0b7f4
[ "MIT" ]
1
2020-12-15T16:24:08.000Z
2020-12-15T16:24:08.000Z
#! /usr/bin/env python # -*- coding:utf8 -*- # # pw_classes.py # # This file is part of pyplanes, a software distributed under the MIT license. # For any question, please contact one of the authors cited below. # # Copyright (c) 2020 # Olivier Dazel <olivier.dazel@univ-lemans.fr> # Mathieu Gaborit <gaborit@kth.se> # ...
48.911726
132
0.502721
4,392
0.118303
0
0
0
0
0
0
33,888
0.912808
29419686dd2aebba28a504da3cc741b420dcf049
9,001
py
Python
mmtbx/conformation_dependent_library/mcl.py
pcxod/cctbx_project
d43dfb157cd7432292b30c0329b7491d5a356657
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/conformation_dependent_library/mcl.py
pcxod/cctbx_project
d43dfb157cd7432292b30c0329b7491d5a356657
[ "BSD-3-Clause-LBNL" ]
1
2020-05-26T17:46:17.000Z
2020-05-26T17:55:19.000Z
mmtbx/conformation_dependent_library/mcl.py
pcxod/cctbx_project
d43dfb157cd7432292b30c0329b7491d5a356657
[ "BSD-3-Clause-LBNL" ]
1
2022-02-08T10:11:07.000Z
2022-02-08T10:11:07.000Z
from __future__ import absolute_import, division, print_function import sys import time from cctbx.array_family import flex from scitbx.math import superpose from mmtbx.conformation_dependent_library import mcl_sf4_coordination from six.moves import range from mmtbx.conformation_dependent_library import metal_coordina...
37.504167
103
0.63093
0
0
205
0.022775
0
0
0
0
1,155
0.128319
294225b79ce42a07375fda887c5ff1ca0b02cbd1
15,778
py
Python
tests/test_install.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_install.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_install.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
from contextlib import contextmanager import random import shutil import stat import tempfile import unittest from os.path import join from conda import install from conda.install import (PaddingError, binary_replace, update_prefix, warn_failed_remove, duplicates_to_remove) from .decorator...
38.20339
97
0.609266
15,214
0.964254
2,936
0.186082
9,855
0.624604
0
0
1,693
0.107301
29422d091e83652a21c0e3588c5f7b69d97c82a9
728
py
Python
django_elastic_appsearch/slicer.py
CorrosiveKid/django_elastic_appsearch
85da7642aac566164b8bc06894e97a048fd3116e
[ "MIT" ]
11
2019-08-07T01:31:42.000Z
2021-02-02T08:12:24.000Z
django_elastic_appsearch/slicer.py
CorrosiveKid/django_elastic_appsearch
85da7642aac566164b8bc06894e97a048fd3116e
[ "MIT" ]
148
2019-08-01T04:22:28.000Z
2021-05-10T19:06:31.000Z
django_elastic_appsearch/slicer.py
infoxchange/django_elastic_appsearch
65229586f0392d8d8cb143ab625081c89fa4cb64
[ "MIT" ]
6
2019-08-26T10:00:42.000Z
2021-02-01T03:54:02.000Z
"""A Queryset slicer for Django.""" def slice_queryset(queryset, chunk_size): """Slice a queryset into chunks.""" start_pk = 0 queryset = queryset.order_by('pk') while True: # No entry left if not queryset.filter(pk__gt=start_pk).exists(): break try: #...
28
69
0.60989
0
0
689
0.946429
0
0
0
0
184
0.252747
29424d0f4478d5925df5fb2792f4b3b4b39494a0
402
py
Python
newsite/news/urls.py
JasperStfun/Django_C
1307f2e9c827f751e8640f50179f1b744c222d63
[ "Unlicense" ]
null
null
null
newsite/news/urls.py
JasperStfun/Django_C
1307f2e9c827f751e8640f50179f1b744c222d63
[ "Unlicense" ]
null
null
null
newsite/news/urls.py
JasperStfun/Django_C
1307f2e9c827f751e8640f50179f1b744c222d63
[ "Unlicense" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.news_home, name='news_home'), path('create', views.create, name='create'), path('<int:pk>', views.NewsDetailView.as_view(), name='news-detail'), path('<int:pk>/update', views.NewsUpdateView.as_view(), name='news-update'), ...
36.545455
80
0.674129
0
0
0
0
0
0
0
0
112
0.278607
29428a3c880266295d54c48af9bca30d4cdda98d
412
py
Python
module/phase_one/headers.py
cqr-cryeye-forks/Florid
21ea7abbe5448dca0c485232bdcf870ba2648d68
[ "Apache-2.0" ]
7
2020-03-22T02:44:26.000Z
2022-02-23T01:57:29.000Z
module/phase_one/headers.py
h4zze1/Florid-Scanner
0a8600ce2bdd24f16e45504b00c714ecbb8930af
[ "Apache-2.0" ]
1
2019-02-07T13:41:47.000Z
2019-02-07T13:41:47.000Z
module/phase_one/headers.py
h4zze1/Florid-Scanner
0a8600ce2bdd24f16e45504b00c714ecbb8930af
[ "Apache-2.0" ]
3
2020-03-22T02:44:27.000Z
2021-08-03T00:52:38.000Z
import requests import lib.common MODULE_NAME = 'headers' def run(): r = requests.get(lib.common.SOURCE_URL) # X-Forwarded-By: if 'X-Powered-By' in r.headers: lib.common.RESULT_ONE_DICT['X-Powered-By'] = r.headers['X-Powered-By'] # Server: if 'Server' in r.headers: lib.common.R...
20.6
78
0.652913
0
0
0
0
0
0
0
0
101
0.245146
2942faf9418139b387fac9d36b23ead11b7dcd5e
1,234
py
Python
ekorpkit/io/fetch/edgar/edgar.py
entelecheia/ekorpkit
400cb15005fdbcaa2ab0c311e338799283f28fe0
[ "CC-BY-4.0" ]
4
2022-02-26T10:54:16.000Z
2022-02-26T11:01:56.000Z
ekorpkit/io/fetch/edgar/edgar.py
entelecheia/ekorpkit
400cb15005fdbcaa2ab0c311e338799283f28fe0
[ "CC-BY-4.0" ]
1
2022-03-25T06:37:12.000Z
2022-03-25T06:45:53.000Z
ekorpkit/io/fetch/edgar/edgar.py
entelecheia/ekorpkit
400cb15005fdbcaa2ab0c311e338799283f28fe0
[ "CC-BY-4.0" ]
null
null
null
import os import requests from bs4 import BeautifulSoup from ekorpkit import eKonf from ekorpkit.io.download.web import web_download, web_download_unzip class EDGAR: def __init__(self, **args): self.args = eKonf.to_config(args) self.base_url = self.args.base_url self.url = self.args.url ...
31.641026
73
0.644246
1,078
0.873582
0
0
0
0
0
0
96
0.077796
2944646b37b0ab25dfa73f854ed036b7d6e77c63
3,470
py
Python
HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py
michiboo/HARK
de2aab467de19da2ce76de1b58fb420f421bc85b
[ "Apache-2.0" ]
null
null
null
HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py
michiboo/HARK
de2aab467de19da2ce76de1b58fb420f421bc85b
[ "Apache-2.0" ]
null
null
null
HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py
michiboo/HARK
de2aab467de19da2ce76de1b58fb420f421bc85b
[ "Apache-2.0" ]
null
null
null
from HARK.ConsumptionSaving.ConsIndShockModel import PerfForesightConsumerType import numpy as np import unittest class testPerfForesightConsumerType(unittest.TestCase): def setUp(self): self.agent = PerfForesightConsumerType() self.agent_infinite = PerfForesightConsumerType(cycles=0) PF_...
35.408163
111
0.625072
3,354
0.966571
0
0
0
0
0
0
738
0.21268
2944814c5ae01dfc5daf1a2ce4f89caabba6e70c
3,893
py
Python
src-gen/openapi_server/models/config.py
etherisc/bima-bolt-api
14201a3055d94ff9c42afbb755109a69e77248f4
[ "Apache-2.0" ]
null
null
null
src-gen/openapi_server/models/config.py
etherisc/bima-bolt-api
14201a3055d94ff9c42afbb755109a69e77248f4
[ "Apache-2.0" ]
null
null
null
src-gen/openapi_server/models/config.py
etherisc/bima-bolt-api
14201a3055d94ff9c42afbb755109a69e77248f4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server.models.component import Component from openapi_server import util from openapi_server.models.co...
25.444444
96
0.579245
3,532
0.907269
0
0
2,348
0.603134
0
0
2,196
0.564089
2944fda074b1c1551c4b520622df91dd49749873
1,003
py
Python
txt_annotation.py
bubbliiiing/classification-keras
b914c5d8526cccbeb3ae8d8f2fea4c8bbabf1d94
[ "MIT" ]
30
2021-01-23T15:51:20.000Z
2022-03-26T13:37:49.000Z
txt_annotation.py
PARILM/classification-keras
91e558b5a128449b81acc4f6983f01e420b2039d
[ "MIT" ]
4
2021-01-22T08:58:57.000Z
2022-03-17T14:21:07.000Z
txt_annotation.py
PARILM/classification-keras
91e558b5a128449b81acc4f6983f01e420b2039d
[ "MIT" ]
10
2021-01-31T01:23:35.000Z
2022-02-17T11:53:05.000Z
import os from os import getcwd #---------------------------------------------# # 训练前一定要注意修改classes # 种类顺序需要和model_data下的txt一样 #---------------------------------------------# classes = ["cat", "dog"] sets = ["train", "test"] wd = getcwd() for se in sets: list_file = open('cls_' + se + '.txt', 'w')...
31.34375
101
0.521436
0
0
0
0
0
0
0
0
271
0.25933
29451165b051aed5989a0318d992368267c8109d
5,272
py
Python
S4/S4 Library/simulation/relationships/sim_knowledge.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/relationships/sim_knowledge.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/relationships/sim_knowledge.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from protocolbuffers import SimObjectAttributes_pb2 as protocols from careers.career_unemployment import CareerUnemployment import services import sims4 logger = sims4.log.Logger('Relationship', default_owner='jjacobson') class SimKnowledge: __slots__ = ('_rel_data', '_known_traits', '_knows_career', '_known_stats...
39.939394
161
0.660281
5,048
0.957511
0
0
272
0.051593
0
0
182
0.034522
29452ec5be15d28b45cb5711c4822ec7f8c5c51e
1,001
py
Python
233_number_of_digt_one.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
233_number_of_digt_one.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
233_number_of_digt_one.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# Given an integer n, count the total number of digit 1 appearing # in all non-negative integers less than or equal to n. # # For example: # Given n = 13, # Return 6, because digit 1 occurred in the following numbers: # 1, 10, 11, 12, 13. # class Solution: def countDigitOne(self, n): """ :type n: ...
22.75
65
0.548452
689
0.688312
0
0
0
0
0
0
565
0.564436
29458e025d37036dcc3d6da38653c530afc7e75e
13,954
py
Python
Search Algorithms.py
fzehracetin/A-Star-and-Best-First-Search
78be430f0c3523aa78d9822ec8aa19615fd3e500
[ "Apache-2.0" ]
1
2021-02-24T10:13:22.000Z
2021-02-24T10:13:22.000Z
Search Algorithms.py
fzehracetin/A-Star-and-Best-First-Search
78be430f0c3523aa78d9822ec8aa19615fd3e500
[ "Apache-2.0" ]
null
null
null
Search Algorithms.py
fzehracetin/A-Star-and-Best-First-Search
78be430f0c3523aa78d9822ec8aa19615fd3e500
[ "Apache-2.0" ]
null
null
null
from PIL import Image from math import sqrt import numpy as np import time import matplotlib.backends.backend_tkagg import matplotlib.pyplot as plt class Point: x: float y: float f: float h: float g: float def __init__(self, x, y, f): self.x = x self.y = y ...
35.68798
124
0.580264
1,985
0.141191
0
0
0
0
0
0
2,083
0.148161
2945bb791202db0434b867efcbc0fdb23fb1256d
624
py
Python
time_test.py
Shb742/rnnoise_python
e370e85984d5909111c9e6e7e4a627bf4de76648
[ "BSD-3-Clause" ]
32
2019-05-24T08:51:36.000Z
2022-03-10T06:10:08.000Z
time_test.py
Shb742/rnnoise_python
e370e85984d5909111c9e6e7e4a627bf4de76648
[ "BSD-3-Clause" ]
3
2020-08-06T09:40:51.000Z
2021-04-21T08:50:20.000Z
time_test.py
Shb742/rnnoise_python
e370e85984d5909111c9e6e7e4a627bf4de76648
[ "BSD-3-Clause" ]
5
2019-09-19T05:54:33.000Z
2021-04-21T08:50:29.000Z
#Author Shoaib Omar import time import rnnoise import numpy as np def time_rnnoise(rounds=1000): a = rnnoise.RNNoise() timer = 0.0 st = time.time() for i in range(rounds): inp = np.random.bytes(960) timer = (time.time() - st) print(timer) st = time.time() for i in range(rounds): inp = np.random.bytes(960) ...
28.363636
71
0.692308
0
0
0
0
0
0
0
0
88
0.141026
29461dc478380b16ce5a78cc8afb8aa1b8e6189a
1,092
py
Python
tests/test_shell.py
jakubtyniecki/pact
c23547a2aed1d612180528e33ec1ce021f9badb6
[ "MIT" ]
2
2017-01-12T10:24:31.000Z
2020-06-11T16:05:05.000Z
tests/test_shell.py
jakubtyniecki/pact
c23547a2aed1d612180528e33ec1ce021f9badb6
[ "MIT" ]
null
null
null
tests/test_shell.py
jakubtyniecki/pact
c23547a2aed1d612180528e33ec1ce021f9badb6
[ "MIT" ]
null
null
null
""" shell sort tests module """ import unittest import random from sort import shell from tests import helper class ShellSortTests(unittest.TestCase): """ shell sort unit tests class """ max = 100 arr = [] def setUp(self): """ setting up for the test """ self.arr = random.sample(ran...
22.285714
80
0.574176
977
0.894689
0
0
0
0
0
0
317
0.290293
2946888881fb3eee8c4a9270d71f7bab3158abad
666
py
Python
k8s_apps/admin/dump_inventory_file.py
AkadioInc/firefly
d6c48ff9999ffedcaa294fcd956eb97b90408583
[ "BSD-2-Clause" ]
null
null
null
k8s_apps/admin/dump_inventory_file.py
AkadioInc/firefly
d6c48ff9999ffedcaa294fcd956eb97b90408583
[ "BSD-2-Clause" ]
null
null
null
k8s_apps/admin/dump_inventory_file.py
AkadioInc/firefly
d6c48ff9999ffedcaa294fcd956eb97b90408583
[ "BSD-2-Clause" ]
null
null
null
import h5pyd from datetime import datetime import tzlocal BUCKET="firefly-hsds" inventory_domain = "/FIREfly/inventory.h5" def formatTime(timestamp): local_timezone = tzlocal.get_localzone() # get pytz timezone local_time = datetime.fromtimestamp(timestamp, local_timezone) return local_time f = h5pyd.F...
22.965517
66
0.666667
0
0
0
0
0
0
0
0
128
0.192192
2946dbe0237daa4f111129ff8959628dbb456b22
2,640
py
Python
enaml/qt/qt_timer.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
1,080
2015-01-04T14:29:34.000Z
2022-03-29T05:44:51.000Z
enaml/qt/qt_timer.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
308
2015-01-05T22:44:13.000Z
2022-03-30T21:19:18.000Z
enaml/qt/qt_timer.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
123
2015-01-25T16:33:48.000Z
2022-02-25T19:57:10.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013-2017, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. #------------------------------------------------...
27.789474
79
0.46553
2,139
0.810227
0
0
0
0
0
0
1,449
0.548864
29487962f697ad1bbd8acf9245d0ea5da17bae4f
12,488
py
Python
mindhome_alpha/erpnext/erpnext_integrations/doctype/mpesa_settings/test_mpesa_settings.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/erpnext_integrations/doctype/mpesa_settings/test_mpesa_settings.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/erpnext_integrations/doctype/mpesa_settings/test_mpesa_settings.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals from json import dumps import frappe import unittest from erpnext.erpnext_integrations.doctype.mpesa_settings.mpesa_settings import process_balance_info, verify_transact...
35.177465
124
0.738629
7,996
0.640295
0
0
0
0
0
0
5,594
0.44795
2948b21202accf70d658d0b73f9aafb72b41be55
114
py
Python
b2accessdeprovisioning/configparser.py
EUDAT-B2ACCESS/b2access-deprovisioning-report
2260347a4e1f522386c188c0dfae2e94bc5b2a40
[ "Apache-2.0" ]
null
null
null
b2accessdeprovisioning/configparser.py
EUDAT-B2ACCESS/b2access-deprovisioning-report
2260347a4e1f522386c188c0dfae2e94bc5b2a40
[ "Apache-2.0" ]
null
null
null
b2accessdeprovisioning/configparser.py
EUDAT-B2ACCESS/b2access-deprovisioning-report
2260347a4e1f522386c188c0dfae2e94bc5b2a40
[ "Apache-2.0" ]
2
2017-10-05T07:26:39.000Z
2017-10-05T07:27:54.000Z
from __future__ import absolute_import import yaml with open("config.yml", "r") as f: config = yaml.load(f)
16.285714
38
0.710526
0
0
0
0
0
0
0
0
15
0.131579
2948ba6edb0a75f155add6e7fa7726939cd6ba56
3,870
py
Python
res_mods/mods/packages/xvm_main/python/vehinfo_tiers.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
res_mods/mods/packages/xvm_main/python/vehinfo_tiers.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
1
2016-04-03T13:31:39.000Z
2016-04-03T16:48:26.000Z
res_mods/mods/packages/xvm_main/python/vehinfo_tiers.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
""" XVM (c) www.modxvm.com 2013-2017 """ # PUBLIC def getTiers(level, cls, key): return _getTiers(level, cls, key) # PRIVATE from logger import * from gui.shared.utils.requesters import REQ_CRITERIA from helpers import dependency from skeletons.gui.shared import IItemsCache _special = { # Data from http:/...
36.857143
93
0.445478
0
0
0
0
0
0
0
0
1,424
0.367959
294933d7ee4435c7faf58b9337983fadc1b0d19b
6,099
py
Python
pypy/module/cpyext/test/test_pystrtod.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
pypy/module/cpyext/test/test_pystrtod.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
pypy/module/cpyext/test/test_pystrtod.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
30
2018-08-20T03:16:34.000Z
2022-01-12T17:39:22.000Z
import math from pypy.module.cpyext import pystrtod from pypy.module.cpyext.test.test_api import BaseApiTest, raises_w from rpython.rtyper.lltypesystem import rffi from rpython.rtyper.lltypesystem import lltype from pypy.module.cpyext.pystrtod import PyOS_string_to_double class TestPyOS_string_to_double(BaseApiTest)...
37.881988
70
0.624529
5,819
0.954091
0
0
0
0
0
0
234
0.038367
294a474ec8bf0bc2d0dc645a827ce6425f19ce7f
3,529
py
Python
mathics/core/systemsymbols.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
90
2021-09-11T14:14:00.000Z
2022-03-29T02:08:29.000Z
mathics/core/systemsymbols.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
187
2021-09-13T01:00:41.000Z
2022-03-31T11:52:52.000Z
mathics/core/systemsymbols.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
10
2021-10-05T15:44:26.000Z
2022-03-21T12:34:33.000Z
# -*- coding: utf-8 -*- from mathics.core.symbols import Symbol # Some other common Symbols. This list is sorted in alphabetic order. SymbolAssumptions = Symbol("$Assumptions") SymbolAborted = Symbol("$Aborted") SymbolAll = Symbol("All") SymbolAlternatives = Symbol("Alternatives") SymbolAnd = Symbol("And") SymbolAppe...
33.932692
69
0.765373
0
0
0
0
0
0
0
0
1,007
0.28535
294bff20d8c499704a706ccaf6f51e0e5fd8ce4d
5,821
py
Python
exercises/ali/cartpole-MCTS/cartpole.py
alik604/ra
6058a9adb47db93bb86bcb2c224930c5731d663d
[ "Unlicense" ]
null
null
null
exercises/ali/cartpole-MCTS/cartpole.py
alik604/ra
6058a9adb47db93bb86bcb2c224930c5731d663d
[ "Unlicense" ]
5
2021-03-26T01:30:13.000Z
2021-04-22T22:19:03.000Z
exercises/ali/cartpole-MCTS/cartpole.py
alik604/ra
6058a9adb47db93bb86bcb2c224930c5731d663d
[ "Unlicense" ]
1
2021-05-05T00:57:43.000Z
2021-05-05T00:57:43.000Z
# from https://github.com/kvwoerden/mcts-cartpole # ---------------------------------------------------------------------------- # # Imports # # ---------------------------------------------------------------------------- # import os import time impor...
39.067114
219
0.519842
0
0
0
0
0
0
0
0
2,522
0.433259
294c561a401bd6bdb0db578e7797d3a5175a9a58
318
py
Python
wildlifecompliance/components/applications/cron.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/components/applications/cron.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/components/applications/cron.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
from django_cron import CronJobBase, Schedule class VerifyLicenceSpeciesJob(CronJobBase): """ Verifies LicenceSpecies against TSC server. """ RUN_AT_TIMES = ['00:00'] schedule = Schedule(run_at_times=RUN_AT_TIMES) code = 'applications.verify_licence_species' def do(self): pass
21.2
50
0.704403
269
0.845912
0
0
0
0
0
0
103
0.323899
294ddecc4d289926d35a18bd81582fdedcf038ee
2,999
py
Python
optional-plugins/CSVPlugin/CSVContext.py
owlfish/pubtal
fb20a0acf2769b2c06012b65bd462f02da12bd1c
[ "BSD-3-Clause" ]
null
null
null
optional-plugins/CSVPlugin/CSVContext.py
owlfish/pubtal
fb20a0acf2769b2c06012b65bd462f02da12bd1c
[ "BSD-3-Clause" ]
null
null
null
optional-plugins/CSVPlugin/CSVContext.py
owlfish/pubtal
fb20a0acf2769b2c06012b65bd462f02da12bd1c
[ "BSD-3-Clause" ]
null
null
null
import ASV from simpletal import simpleTAL, simpleTALES try: import logging except: import InfoLogging as logging import codecs class ColumnSorter: def __init__ (self, columnList): self.columnList = columnList self.log = logging.getLogger ('ColumnSorter') def setup (self, fieldNames): mapList = [] fo...
26.307018
92
0.686896
2,857
0.952651
0
0
0
0
0
0
219
0.073024
294e1d0fe03b7258df243ff2841d037d1b8158e8
2,484
py
Python
wagtail/admin/forms/comments.py
stephiescastle/wagtail
391f46ef91ca4a7bbf339bf9e9a738df3eb8e179
[ "BSD-3-Clause" ]
null
null
null
wagtail/admin/forms/comments.py
stephiescastle/wagtail
391f46ef91ca4a7bbf339bf9e9a738df3eb8e179
[ "BSD-3-Clause" ]
null
null
null
wagtail/admin/forms/comments.py
stephiescastle/wagtail
391f46ef91ca4a7bbf339bf9e9a738df3eb8e179
[ "BSD-3-Clause" ]
null
null
null
from django.forms import BooleanField, ValidationError from django.utils.timezone import now from django.utils.translation import gettext as _ from .models import WagtailAdminModelForm class CommentReplyForm(WagtailAdminModelForm): class Meta: fields = ("text",) def clean(self): cleaned_data...
34.5
129
0.594605
2,292
0.922705
0
0
0
0
0
0
667
0.268519
294e291b1d27799d1015e0d511b66da83b03b728
1,039
py
Python
run_db_data.py
MahirMahbub/email-client
71ab85f987f783b703b58780444c072bd683927e
[ "MIT" ]
null
null
null
run_db_data.py
MahirMahbub/email-client
71ab85f987f783b703b58780444c072bd683927e
[ "MIT" ]
4
2021-08-01T16:29:48.000Z
2021-08-01T16:58:36.000Z
run_db_data.py
MahirMahbub/email-client
71ab85f987f783b703b58780444c072bd683927e
[ "MIT" ]
null
null
null
import os from sqlalchemy.orm import Session from db.database import SessionLocal class DbData: def __init__(self): self.root_directory: str = "db_merge_scripts" self.scripts = [ "loader.sql" ] def sync(self, db: Session): for script in self.scripts: ...
23.088889
79
0.549567
648
0.623677
0
0
0
0
0
0
132
0.127045
295015d1c787b58239c947be3f7d6287049d840f
6,274
py
Python
scobra/analysis/compare_elements.py
nihalzp/scobra
de1faa73fb4d186d9567bfa8e174b3fd6f1833ef
[ "MIT" ]
7
2016-03-16T09:03:41.000Z
2019-09-20T05:55:02.000Z
scobra/analysis/compare_elements.py
nihalzp/scobra
de1faa73fb4d186d9567bfa8e174b3fd6f1833ef
[ "MIT" ]
11
2019-10-03T15:04:58.000Z
2020-05-11T17:27:10.000Z
scobra/analysis/compare_elements.py
nihalzp/scobra
de1faa73fb4d186d9567bfa8e174b3fd6f1833ef
[ "MIT" ]
6
2016-03-16T09:04:54.000Z
2021-07-24T15:03:41.000Z
def compareMetaboliteDicts(d1, d2): sorted_d1_keys = sorted(d1.keys()) sorted_d2_keys = sorted(d2.keys()) for i in range(len(sorted_d1_keys)): if not compareMetabolites(sorted_d1_keys[i], sorted_d2_keys[i], naive=True): return False elif not d1[sorted_d1_keys[i]] == d2[sorted_...
33.021053
84
0.54176
0
0
0
0
0
0
0
0
1,229
0.195888
29509faf87f0d6a17ff1205ace918609c71b08fe
1,750
py
Python
five/five_copy.py
ngd-b/python-demo
0341c1620bcde1c1d886cb9e75dc6db3722273c8
[ "MIT" ]
1
2019-10-09T13:40:13.000Z
2019-10-09T13:40:13.000Z
five/five_copy.py
ngd-b/python-demo
0341c1620bcde1c1d886cb9e75dc6db3722273c8
[ "MIT" ]
null
null
null
five/five_copy.py
ngd-b/python-demo
0341c1620bcde1c1d886cb9e75dc6db3722273c8
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- print("hello world") f = None try: f = open("./hello.txt","r",encoding="utf8") print(f.read(5),end='') print(f.read(5),end='') print(f.read(5)) except IOError as e: print(e) finally: if f: f.close() # with auto call the methods' close with open...
19.444444
72
0.6
0
0
0
0
0
0
0
0
1,155
0.550524
2951af032672242812dfd6a7fa6b331872d27c9b
210
py
Python
prepare_sets.py
mechtal/Vaccination_UK
f3ad91c128b8b7711fc03d12a115cbf3e660318f
[ "MIT" ]
null
null
null
prepare_sets.py
mechtal/Vaccination_UK
f3ad91c128b8b7711fc03d12a115cbf3e660318f
[ "MIT" ]
17
2022-03-12T11:19:44.000Z
2022-03-28T08:26:38.000Z
prepare_sets.py
mechtal/Vaccination_UK
f3ad91c128b8b7711fc03d12a115cbf3e660318f
[ "MIT" ]
null
null
null
def prepare_sets(dataset, feature_columns, y_column): train_X, val_X, train_y, val_y = train_test_split(dataset[feature_columns], dataset[y_column], random_state=1) return train_X, val_X, train_y, val_y
70
114
0.785714
0
0
0
0
0
0
0
0
0
0
2951e1c21121343a134fe48bfcc73abc7a482cb1
6,355
py
Python
examples/batch_ts_insert.py
bureau14/qdb-api-python
2a010df3252d39bc4d529f545547c5cefb9fe86e
[ "BSD-3-Clause" ]
9
2015-09-02T20:13:13.000Z
2020-07-16T14:17:36.000Z
examples/batch_ts_insert.py
bureau14/qdb-api-python
2a010df3252d39bc4d529f545547c5cefb9fe86e
[ "BSD-3-Clause" ]
5
2018-02-20T10:47:02.000Z
2020-05-20T10:05:49.000Z
examples/batch_ts_insert.py
bureau14/qdb-api-python
2a010df3252d39bc4d529f545547c5cefb9fe86e
[ "BSD-3-Clause" ]
1
2018-04-01T11:12:56.000Z
2018-04-01T11:12:56.000Z
# Copyright (c) 2009-2020, quasardb SAS. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice,...
40.737179
165
0.70181
0
0
0
0
0
0
0
0
2,270
0.357199
295371af41debc44d7d6cd681954bb737b9ceb2b
2,128
py
Python
tests/backends/test_flashtext_backend.py
openredact/pii-identifier
97eaef56d6de59718501095d631a0fb49700e45a
[ "MIT" ]
14
2020-07-31T18:45:29.000Z
2022-02-21T13:24:00.000Z
tests/backends/test_flashtext_backend.py
openredact/pii-identifier
97eaef56d6de59718501095d631a0fb49700e45a
[ "MIT" ]
7
2020-07-31T06:17:21.000Z
2021-05-23T08:40:24.000Z
tests/backends/test_flashtext_backend.py
openredact/pii-identifier
97eaef56d6de59718501095d631a0fb49700e45a
[ "MIT" ]
1
2020-09-30T01:42:57.000Z
2020-09-30T01:42:57.000Z
from nerwhal.backends.flashtext_backend import FlashtextBackend from nerwhal.recognizer_bases import FlashtextRecognizer def test_single_recognizer(embed): class TestRecognizer(FlashtextRecognizer): TAG = "XX" SCORE = 1.0 @property def keywords(self): return ["abc", "c...
26.6
63
0.62218
796
0.37406
0
0
341
0.160244
0
0
239
0.112312
2954339ee63d8f3aeb46e217258769ecc01fa43c
1,444
py
Python
new_rdsmysql.py
AdminTurnedDevOps/AWS_Solutions_Architect_Python
5389f8c9dfbda7b0b49a94a93e9b070420ca9ece
[ "MIT" ]
30
2019-01-13T20:14:07.000Z
2022-02-06T15:08:01.000Z
new_rdsmysql.py
AdminTurnedDevOps/AWS_Solutions_Architect_Python
5389f8c9dfbda7b0b49a94a93e9b070420ca9ece
[ "MIT" ]
1
2019-01-13T23:52:39.000Z
2019-01-14T14:39:45.000Z
new_rdsmysql.py
AdminTurnedDevOps/AWS_Solutions_Architect_Python
5389f8c9dfbda7b0b49a94a93e9b070420ca9ece
[ "MIT" ]
26
2019-01-13T21:32:23.000Z
2022-03-20T05:19:03.000Z
import boto3 import sys import time import logging import getpass def new_rdsmysql(dbname, instanceID, storage, dbInstancetype, dbusername): masterPass = getpass.getpass('DBMasterPassword: ') if len(masterPass) < 10: logging.warning('Password is not at least 10 characters. Please try again') ...
27.769231
83
0.587258
0
0
0
0
0
0
0
0
162
0.112188
295527972ae5a65fd8aad67870244e225d07dc77
2,657
py
Python
src/tzscan/tzscan_block_api.py
Twente-Mining/tezos-reward-distributor
8df0745fdb44cbd765084303882545202d2427f3
[ "MIT" ]
null
null
null
src/tzscan/tzscan_block_api.py
Twente-Mining/tezos-reward-distributor
8df0745fdb44cbd765084303882545202d2427f3
[ "MIT" ]
null
null
null
src/tzscan/tzscan_block_api.py
Twente-Mining/tezos-reward-distributor
8df0745fdb44cbd765084303882545202d2427f3
[ "MIT" ]
null
null
null
import random import requests from api.block_api import BlockApi from exception.tzscan import TzScanException from log_config import main_logger logger = main_logger HEAD_API = {'MAINNET': {'HEAD_API_URL': 'https://api%MIRROR%.tzscan.io/v2/head'}, 'ALPHANET': {'HEAD_API_URL': 'http://api.alphanet.tzscan...
32.402439
116
0.621377
1,657
0.623636
0
0
0
0
0
0
802
0.301844
29554b0b9e721e4b0e9ff426e2c29a4e943ecd1c
10,086
py
Python
python/cuxfilter/tests/charts/core/test_core_non_aggregate.py
Anhmike/cuxfilter
a8b25b1c37ac0e5435acb7261f6fcbf677d96bfa
[ "Apache-2.0" ]
201
2018-12-21T18:32:40.000Z
2022-03-22T11:50:29.000Z
python/cuxfilter/tests/charts/core/test_core_non_aggregate.py
Anhmike/cuxfilter
a8b25b1c37ac0e5435acb7261f6fcbf677d96bfa
[ "Apache-2.0" ]
258
2018-12-27T07:37:50.000Z
2022-03-31T20:01:32.000Z
python/cuxfilter/tests/charts/core/test_core_non_aggregate.py
Anhmike/cuxfilter
a8b25b1c37ac0e5435acb7261f6fcbf677d96bfa
[ "Apache-2.0" ]
51
2019-01-10T19:03:09.000Z
2022-03-08T01:37:11.000Z
import pytest import cudf import mock from cuxfilter.charts.core.non_aggregate.core_non_aggregate import ( BaseNonAggregate, ) from cuxfilter.dashboard import DashBoard from cuxfilter import DataFrame from cuxfilter.layouts import chart_view class TestCoreNonAggregateChart: def test_variables(self): ...
30.288288
78
0.561967
9,836
0.975213
0
0
4,746
0.470553
0
0
1,395
0.138311
29560939d9082f0d01fcc95be50270dfe0f453ac
4,265
py
Python
tunobase/tagging/migrations/0001_initial.py
unomena/tunobase-core
fd24e378c87407131805fa56ade8669fceec8dfa
[ "BSD-3-Clause" ]
null
null
null
tunobase/tagging/migrations/0001_initial.py
unomena/tunobase-core
fd24e378c87407131805fa56ade8669fceec8dfa
[ "BSD-3-Clause" ]
null
null
null
tunobase/tagging/migrations/0001_initial.py
unomena/tunobase-core
fd24e378c87407131805fa56ade8669fceec8dfa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Tag' db.create_table(u'tagging_tag', ( (u'id'...
56.118421
182
0.597655
4,098
0.960844
0
0
0
0
0
0
2,565
0.601407
2957082f2761f3302a5b658af0d68aab4daff24f
1,004
py
Python
recogym/envs/session.py
philomenec/reco-gym
f8553d197f42ec2f415aefce48525d0e9b10ddaa
[ "Apache-2.0" ]
413
2018-09-18T17:49:44.000Z
2022-03-23T12:25:41.000Z
recogym/envs/session.py
aliang-rec/reco-gym
f8553d197f42ec2f415aefce48525d0e9b10ddaa
[ "Apache-2.0" ]
15
2018-11-08T17:04:21.000Z
2021-11-30T19:20:27.000Z
recogym/envs/session.py
aliang-rec/reco-gym
f8553d197f42ec2f415aefce48525d0e9b10ddaa
[ "Apache-2.0" ]
81
2018-09-22T02:28:55.000Z
2022-03-30T14:03:01.000Z
class Session(list): """Abstract Session class""" def to_strings(self, user_id, session_id): """represent session as list of strings (one per event)""" user_id, session_id = str(user_id), str(session_id) session_type = self.get_type() strings = [] for event, product in s...
27.135135
78
0.548805
1,000
0.996016
0
0
0
0
0
0
130
0.129482
29589b62fc1cb372684ea22b3b76f315253769f1
219
py
Python
message_handlers/location_handler.py
pratyushmore/lunch-tag-bot
e0a055a2ee914c3bc5434244b17cfb7e3b1a7a9a
[ "MIT" ]
null
null
null
message_handlers/location_handler.py
pratyushmore/lunch-tag-bot
e0a055a2ee914c3bc5434244b17cfb7e3b1a7a9a
[ "MIT" ]
1
2019-10-21T15:15:48.000Z
2019-10-21T19:28:10.000Z
message_handlers/location_handler.py
pratyushmore/lunch-tag-bot
e0a055a2ee914c3bc5434244b17cfb7e3b1a7a9a
[ "MIT" ]
null
null
null
def location(messaging_adaptor, user, channel, location): message = "Your location has been set to `{}`. You are ready to be matched for Lunch Tag :)".format(location) messaging_adaptor.send_message(channel, message)
54.75
110
0.767123
0
0
0
0
0
0
0
0
82
0.374429
2959af169e729db8be7ba1725d5b1686b6c154d4
6,462
py
Python
b.py
lbarchive/b.py
18b533dc40e5fdf7ba62209b51584927c2dd9ba0
[ "MIT" ]
null
null
null
b.py
lbarchive/b.py
18b533dc40e5fdf7ba62209b51584927c2dd9ba0
[ "MIT" ]
null
null
null
b.py
lbarchive/b.py
18b533dc40e5fdf7ba62209b51584927c2dd9ba0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2013-2016 by Yu-Jie Lin # # 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, mo...
29.108108
79
0.660786
0
0
0
0
0
0
0
0
3,125
0.483596
295a62c87a95c13de9ca2d600326020d699ab2e2
8,729
py
Python
spyder/plugins/outlineexplorer/api.py
suokunlong/spyder
2d5d450fdcef232fb7f38e7fefc27f0e7f704c9a
[ "MIT" ]
1
2018-05-03T02:14:15.000Z
2018-05-03T02:14:15.000Z
spyder/plugins/outlineexplorer/api.py
jastema/spyder
0ef48ea227c53f57556cd8002087dc404b0108b0
[ "MIT" ]
null
null
null
spyder/plugins/outlineexplorer/api.py
jastema/spyder
0ef48ea227c53f57556cd8002087dc404b0108b0
[ "MIT" ]
1
2020-03-05T03:09:11.000Z
2020-03-05T03:09:11.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Outline explorer API. You need to declare a OutlineExplorerProxy, and a function for handle the edit_goto Signal. class OutlineExplorerProxyCustom(OutlineExplore...
29.096667
74
0.595601
6,207
0.710997
721
0.082589
1,692
0.193814
0
0
2,426
0.277892
295bcd4e3374d50cf1562ad240b9c1e9e4ac0fc7
3,132
py
Python
seamless/core/__init__.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
15
2017-06-07T12:49:12.000Z
2020-07-25T18:06:04.000Z
seamless/core/__init__.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
110
2016-06-21T23:20:44.000Z
2022-02-24T16:15:22.000Z
seamless/core/__init__.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
6
2016-06-21T11:19:22.000Z
2019-01-21T13:45:39.000Z
import weakref class IpyString(str): def _repr_pretty_(self, p, cycle): return p.text(str(self)) class SeamlessBase: _destroyed = False _context = None _cached_path = None name = None def _get_macro(self): return self._context()._macro @property def path(self): ...
30.705882
102
0.628672
2,638
0.842273
0
0
445
0.142082
0
0
113
0.036079
295bf91559d8557674834d5e4100c334bcac0923
11,613
py
Python
oguilem/configuration/config.py
dewberryants/oGUIlem
28271fdc0fb6ffba0037f30f9f9858bec32b0d13
[ "BSD-3-Clause" ]
2
2022-02-23T13:16:47.000Z
2022-03-07T09:47:29.000Z
oguilem/configuration/config.py
dewberryants/oGUIlem
28271fdc0fb6ffba0037f30f9f9858bec32b0d13
[ "BSD-3-Clause" ]
null
null
null
oguilem/configuration/config.py
dewberryants/oGUIlem
28271fdc0fb6ffba0037f30f9f9858bec32b0d13
[ "BSD-3-Clause" ]
1
2022-02-23T13:16:49.000Z
2022-02-23T13:16:49.000Z
import os import re import sys from oguilem.configuration.fitness import OGUILEMFitnessFunctionConfiguration from oguilem.configuration.ga import OGUILEMGlobOptConfig from oguilem.configuration.geometry import OGUILEMGeometryConfig from oguilem.configuration.utils import ConnectedValue, ConfigFileManager from oguilem....
43.494382
118
0.533023
10,555
0.908895
0
0
0
0
0
0
1,341
0.115474
295cb6523225a5b823029ec4f2d16b55a8369739
8,705
py
Python
xpd_workflow/temp_graph.py
CJ-Wright/xpd_workflow
f3fd84831b86b696631759946c3af9b16b45de26
[ "BSD-3-Clause" ]
null
null
null
xpd_workflow/temp_graph.py
CJ-Wright/xpd_workflow
f3fd84831b86b696631759946c3af9b16b45de26
[ "BSD-3-Clause" ]
4
2016-08-25T02:59:05.000Z
2016-09-28T22:32:34.000Z
xpd_workflow/temp_graph.py
CJ-Wright/xpd_workflow
f3fd84831b86b696631759946c3af9b16b45de26
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (division, print_function) import matplotlib.cm as cmx import matplotlib.colors as colors from matplotlib import gridspec from metadatastore.api import db_connect as mds_db_connect from filestore.api import db_connect as fs_db_connect fs_db_connect( **{'database': 'data-processing-dev', 'h...
38.688889
84
0.443538
0
0
0
0
0
0
0
0
1,290
0.148191
295d0342f32753f768fc55a488c38b501e122b06
12,101
py
Python
winnow/core.py
bgschiller/winnow
0fde7fcc9e2fe3519528feb9115658aa3b3954e5
[ "MIT" ]
3
2017-08-10T16:20:29.000Z
2018-09-19T01:33:13.000Z
winnow/core.py
bgschiller/winnow
0fde7fcc9e2fe3519528feb9115658aa3b3954e5
[ "MIT" ]
null
null
null
winnow/core.py
bgschiller/winnow
0fde7fcc9e2fe3519528feb9115658aa3b3954e5
[ "MIT" ]
1
2019-11-29T20:17:23.000Z
2019-11-29T20:17:23.000Z
from __future__ import unicode_literals import copy import json from six import string_types from . import default_operators from . import sql_prepare from . import values from .error import WinnowError from .templating import SqlFragment from .templating import WinnowSql class Winnow(object): """ Winnow is...
37.934169
122
0.614081
11,823
0.977027
0
0
3,841
0.317412
0
0
4,277
0.353442
295d64816bed48df8774a68b70c332508540215b
12,525
py
Python
ibis/bigquery/client.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
ibis/bigquery/client.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
ibis/bigquery/client.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
import regex as re import time import collections import datetime import six import pandas as pd import google.cloud.bigquery as bq from multipledispatch import Dispatcher import ibis import ibis.common as com import ibis.expr.operations as ops import ibis.expr.types as ir import ibis.expr.schema as sch import ibis...
28.020134
79
0.660918
6,190
0.494212
0
0
3,641
0.290699
0
0
1,319
0.105309
295d6dddae668ee8a211bf176e96dec0fc246700
1,583
py
Python
5 kyu/Family Tree Ancestors.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
5 kyu/Family Tree Ancestors.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
5 kyu/Family Tree Ancestors.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
from math import log, ceil def chart(person): res=helper(tuple(sorted(person.parents(), key=lambda x: x.sex, reverse=True)), 2, [], 16, 16) res.append((person.name, 16)) dict={j:i for i,j in res} dict2=helper2(16) chart=[] for i in range(1, 32): temp=((4-depth(i))*11-1)*" "+("|" if 4-de...
32.979167
139
0.53885
0
0
0
0
0
0
0
0
67
0.042325
295da24723071b30363f5dee9937e755f296d5c6
690
py
Python
tests/make_expected_lookup.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
77
2019-06-09T14:23:33.000Z
2022-03-22T21:34:01.000Z
tests/make_expected_lookup.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
353
2019-06-05T23:54:39.000Z
2022-03-31T21:21:47.000Z
tests/make_expected_lookup.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
71
2019-06-07T02:04:11.000Z
2022-03-05T21:03:45.000Z
import numpy as np import ROOT from dummy_distributions import dummy_pt_eta counts, test_in1, test_in2 = dummy_pt_eta() f = ROOT.TFile.Open("samples/testSF2d.root") sf = f.Get("scalefactors_Tight_Electron") xmin, xmax = sf.GetXaxis().GetXmin(), sf.GetXaxis().GetXmax() ymin, ymax = sf.GetYaxis().GetXmin(), sf.GetYax...
24.642857
61
0.649275
0
0
0
0
0
0
0
0
52
0.075362
295e24a9ef2f154bf2eab43ba3f883adfaf8378d
5,755
py
Python
engine/sentiment_analysis.py
zgeorg03/nesase
4dae70994cd0c730a88b4a54e6b8e29868aafb09
[ "BSD-3-Clause" ]
2
2020-12-30T18:03:01.000Z
2021-08-08T21:05:43.000Z
engine/sentiment_analysis.py
zgeorg03/nesase
4dae70994cd0c730a88b4a54e6b8e29868aafb09
[ "BSD-3-Clause" ]
null
null
null
engine/sentiment_analysis.py
zgeorg03/nesase
4dae70994cd0c730a88b4a54e6b8e29868aafb09
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 14 17:42:27 2018 @author: zgeorg03 """ import re import json # Used for converting json to dictionary import datetime # Used for date conversions import matplotlib.pyplot as plt import numpy as np from sentiment import Sentiment import json cla...
31.277174
137
0.559687
4,216
0.73258
0
0
0
0
0
0
985
0.171156
295e89c3127cdc64f86ba1f4504dbc0c0e95c2df
1,214
py
Python
ch05/recursion.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
74
2021-05-06T22:03:18.000Z
2022-03-25T04:37:51.000Z
ch05/recursion.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
null
null
null
ch05/recursion.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
19
2021-07-16T11:42:00.000Z
2022-03-22T00:25:49.000Z
"""Recursive implementations.""" def find_max(A): """invoke recursive function to find maximum value in A.""" def rmax(lo, hi): """Use recursion to find maximum value in A[lo:hi+1].""" if lo == hi: return A[lo] mid = (lo+hi) // 2 L = rmax(lo, mid) R = rmax(mid+1, hi) ...
26.977778
82
0.555189
0
0
0
0
0
0
0
0
382
0.314662
295eeef6c40b7545564ffef7ae9d385146c2bde6
3,084
py
Python
setup.py
koonimaru/DeepGMAP
7daac354229fc25fba81649b741921345dc5db05
[ "Apache-2.0" ]
11
2018-06-27T11:45:47.000Z
2021-07-01T15:32:56.000Z
setup.py
koonimaru/DeepGMAP
7daac354229fc25fba81649b741921345dc5db05
[ "Apache-2.0" ]
3
2020-01-28T21:45:15.000Z
2020-04-20T02:40:48.000Z
setup.py
koonimaru/DeepGMAP
7daac354229fc25fba81649b741921345dc5db05
[ "Apache-2.0" ]
1
2018-10-19T19:43:27.000Z
2018-10-19T19:43:27.000Z
#from distutils.core import setup from setuptools import setup, find_packages from distutils.extension import Extension import re import os import codecs here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open, See: # https://github.com/pyp...
34.651685
155
0.664073
0
0
0
0
0
0
0
0
1,693
0.548962
295f637700f993cfd8e37b0ff39f106d2c2a6469
1,716
py
Python
{{cookiecutter.project_slug}}/api/__init__.py
Steamboat/cookiecutter-devops
6f07329c9e54b76e671a0308d343d2d9ebff5343
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/api/__init__.py
Steamboat/cookiecutter-devops
6f07329c9e54b76e671a0308d343d2d9ebff5343
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/api/__init__.py
Steamboat/cookiecutter-devops
6f07329c9e54b76e671a0308d343d2d9ebff5343
[ "BSD-3-Clause" ]
null
null
null
import logging from flask import Flask from flask_sqlalchemy import SQLAlchemy as _BaseSQLAlchemy from flask_migrate import Migrate from flask_cors import CORS from flask_talisman import Talisman from flask_ipban import IpBan from config import Config, get_logger_handler # database class SQLAlchemy(_BaseSQLAlchemy):...
32.377358
106
0.740093
189
0.11014
0
0
94
0.054779
0
0
375
0.218531
295f7531aae2696a47947cc69a933b6673909fb5
4,937
py
Python
weibospider/pipelines.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
2
2021-03-26T03:02:52.000Z
2021-04-01T11:08:46.000Z
weibospider/pipelines.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
null
null
null
weibospider/pipelines.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import csv import pymongo from pymongo.errors import DuplicateKeyError from settings import MONGO_HOST, MONGO_PORT, SAVE_ROOT class MongoDBPipeline(object): def __init__(self): client = pymongo.MongoClient(MONGO_HOST, MONGO_PORT) db = client['weibo'] self....
40.467213
118
0.611302
4,771
0.966376
0
0
158
0.032003
0
0
723
0.146445
295f767e353179afb030c3f6f2c390f8073634e9
6,020
py
Python
tests/test_gc3_config.py
ericmharris/gc3-query
0bf5226130aafbb1974aeb96d93ee1996833e87d
[ "MIT" ]
null
null
null
tests/test_gc3_config.py
ericmharris/gc3-query
0bf5226130aafbb1974aeb96d93ee1996833e87d
[ "MIT" ]
null
null
null
tests/test_gc3_config.py
ericmharris/gc3-query
0bf5226130aafbb1974aeb96d93ee1996833e87d
[ "MIT" ]
null
null
null
from pathlib import Path from requests.auth import _basic_auth_str import pytest from bravado_core.formatter import SwaggerFormat, NO_OP from gc3_query.lib.gc3_config import GC3Config, IDMCredential TEST_BASE_DIR: Path = Path(__file__).parent.joinpath("GC3Config") config_dir = TEST_BASE_DIR.joinpath("config") def te...
39.605263
96
0.767608
0
0
431
0.071595
467
0.077575
0
0
3,259
0.541362
2960cfa3589dae062b2a5ee5a75ad678bb175e9d
2,871
py
Python
lab6/server/datapredict.py
zhiji95/iot
4202f00a79b429d5f5083bca6e914fcff09df294
[ "Apache-2.0" ]
2
2019-09-20T01:38:40.000Z
2020-10-13T21:18:18.000Z
lab6/server/datapredict.py
zw2497/4764
28caec1947c1b1479d2ec9c8ecba8cd599d66d23
[ "Apache-2.0" ]
null
null
null
lab6/server/datapredict.py
zw2497/4764
28caec1947c1b1479d2ec9c8ecba8cd599d66d23
[ "Apache-2.0" ]
null
null
null
import machine from machine import * import ssd1306 import time import socket import urequests as requests import json word = {'body':8} labels = ['c', 'o', 'l', 'u', 'm', 'b', 'i', 'a','null'] HOST = '18.218.158.249' PORT = 8080 flag = 0 stop = False data = {} xdata = [] ydata = [] n = 0 def dp(d): if (d > 128)...
20.804348
83
0.554859
0
0
0
0
0
0
0
0
231
0.08046
2960f549fc004cf3590c25e915c7395ebd3b5e4d
79
py
Python
Geometry/VeryForwardGeometry/python/dd4hep/geometryRPFromDD_2021_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
2
2020-10-26T18:40:32.000Z
2021-04-10T16:33:25.000Z
Geometry/VeryForwardGeometry/python/dd4hep/geometryRPFromDD_2021_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
25
2016-06-24T20:55:32.000Z
2022-02-01T19:24:45.000Z
Geometry/VeryForwardGeometry/python/dd4hep/geometryRPFromDD_2021_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
8
2016-03-25T07:17:43.000Z
2021-07-08T17:11:21.000Z
from Geometry.VeryForwardGeometry.dd4hep.v5.geometryRPFromDD_2021_cfi import *
39.5
78
0.886076
0
0
0
0
0
0
0
0
0
0
2962e10ff2cdb13a6dd7a8ef80474fffa61365b3
1,464
py
Python
examples/plots/warmup_schedule.py
shuoyangd/pytorch_warmup
b3557afa6fcfc04e9ddc6ff08a1ae51e8a0ce5df
[ "MIT" ]
170
2019-11-03T06:14:42.000Z
2022-03-18T08:21:44.000Z
examples/plots/warmup_schedule.py
shuoyangd/pytorch_warmup
b3557afa6fcfc04e9ddc6ff08a1ae51e8a0ce5df
[ "MIT" ]
5
2020-05-18T16:53:33.000Z
2021-11-12T13:03:14.000Z
examples/plots/warmup_schedule.py
shuoyangd/pytorch_warmup
b3557afa6fcfc04e9ddc6ff08a1ae51e8a0ce5df
[ "MIT" ]
21
2019-11-06T10:55:21.000Z
2022-02-23T21:38:12.000Z
import argparse import matplotlib.pyplot as plt import torch from pytorch_warmup import * def get_rates(warmup_cls, beta2, max_step): rates = [] p = torch.nn.Parameter(torch.arange(10, dtype=torch.float32)) optimizer = torch.optim.Adam([{'params': p}], lr=1.0, betas=(0.9, beta2)) lr_scheduler = torch....
34.857143
113
0.693306
0
0
0
0
0
0
0
0
234
0.159836
2965377859485f3e331393d42e82329e9f5b3052
2,107
py
Python
plugins/httpev.py
wohali/gizzy
c9d4ee9cdcf6fdbf260869365b944f29c660e6aa
[ "Apache-2.0" ]
3
2015-09-11T23:34:36.000Z
2018-04-05T21:17:08.000Z
plugins/httpev.py
wohali/gizzy
c9d4ee9cdcf6fdbf260869365b944f29c660e6aa
[ "Apache-2.0" ]
null
null
null
plugins/httpev.py
wohali/gizzy
c9d4ee9cdcf6fdbf260869365b944f29c660e6aa
[ "Apache-2.0" ]
null
null
null
"""\ This plugin merely enables other plugins to accept data over HTTP. If a plugin defines a module level function named "httpev" it will be invoked for POST requests to the url http://$hostname/event/$pluginname. The function is invoked from the thread in the web.py request context and as such has access to the full ...
26.670886
76
0.591362
1,610
0.76412
0
0
0
0
0
0
491
0.233033
29656dc8827f4e4fcb777d91bc04e2895b6de0ad
773
py
Python
ex056.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
ex056.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
ex056.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
somaIdade = 0 maiorIdade = 0 nomeVelho = '' totmulher20 = 0 for p in range(1, 3): print('---- {}ª PESSOA ----'.format(p)) nome = str(input('Nome: ')).strip() idade = int(input('Idade: ')) sexo = str(input('Sexo [M/F]: ')) somaIdade += idade if p == 1 and sexo in 'Mm': maiorIdade = idade ...
30.92
84
0.606727
0
0
0
0
0
0
0
0
215
0.276705
2966debf755863b57841211c2eb24e99ff45937a
6,583
py
Python
python/promort.py
simleo/promort_pipeline
03b9d3553a3dade57d0007e230230b02dd70832f
[ "MIT" ]
null
null
null
python/promort.py
simleo/promort_pipeline
03b9d3553a3dade57d0007e230230b02dd70832f
[ "MIT" ]
null
null
null
python/promort.py
simleo/promort_pipeline
03b9d3553a3dade57d0007e230230b02dd70832f
[ "MIT" ]
3
2020-07-29T15:03:40.000Z
2020-10-06T11:16:04.000Z
"""\ PROMORT example. """ import argparse import random import sys import pyecvl.ecvl as ecvl import pyeddl.eddl as eddl from pyeddl.tensor import Tensor import models def VGG16(in_layer, num_classes): x = in_layer x = eddl.ReLu(eddl.Conv(x, 64, [3, 3])) x = eddl.MaxPool(eddl.ReLu(eddl.Conv(x, 64, [3, ...
37.19209
98
0.556433
0
0
0
0
0
0
0
0
1,058
0.160717
2967592aac9355f4e077c19d82c1790326f4a71b
343
py
Python
src/view/services_update_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
src/view/services_update_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
src/view/services_update_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
from src.view.services_page import ServicesPage from src.view.services_add_page import ServicesAddPage class ServicesUpdatePage(ServicesAddPage): def __init__(self, parent, *args, **kwargs): super().__init__(parent, *args, **kwargs) self.set_title("Update service") self.set_confirm_button_...
34.3
54
0.723032
229
0.667638
0
0
0
0
0
0
24
0.069971
2967a056b02745df6754455d5a9a7411cbb1bfd2
7,543
py
Python
Lib/site-packages/wagtail/utils/l18n/translation.py
SyahmiAmin/belikilo
0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/wagtail/utils/l18n/translation.py
SyahmiAmin/belikilo
0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/wagtail/utils/l18n/translation.py
SyahmiAmin/belikilo
0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb
[ "bzip2-1.0.6" ]
null
null
null
import os import gettext import bisect from locale import getdefaultlocale from collections.abc import MutableMapping from copy import copy, deepcopy import six class Trans: def __init__(self): self.registry = {} self.current = None self.set(getdefaultlocale()[0]) def __getitem__(se...
27.32971
78
0.571258
6,854
0.908657
0
0
0
0
0
0
655
0.086835
2967c010afb3c90f1b88a872839f1b992255abcc
272
py
Python
playground/sockets/server.py
tunki/lang-training
79b9f59a7187053f540f9057c585747762ca8890
[ "MIT" ]
null
null
null
playground/sockets/server.py
tunki/lang-training
79b9f59a7187053f540f9057c585747762ca8890
[ "MIT" ]
4
2020-03-10T19:20:21.000Z
2021-06-07T15:39:48.000Z
proglangs-learning/python/example_sockets/server.py
helq/old_code
a432faf1b340cb379190a2f2b11b997b02d1cd8d
[ "CC0-1.0" ]
null
null
null
import socket s = socket.socket() s.bind(("localhost", 9999)) s.listen(1) sc, addr = s.accept() while True: recibido = sc.recv(1024) if recibido == "quit": break print "Recibido:", recibido sc.send(recibido) print "adios" sc.close() s.close()
13.6
31
0.617647
0
0
0
0
0
0
0
0
35
0.128676
29682fb767c90bc573a3f797e4f0ca061a3378d9
743
py
Python
examples/example_contour.py
moghimis/geojsoncontour
23f298cb5c5ae4b7000024423493e109a9cc908d
[ "MIT" ]
63
2016-10-31T06:55:47.000Z
2022-02-04T06:47:32.000Z
examples/example_contour.py
moghimis/geojsoncontour
23f298cb5c5ae4b7000024423493e109a9cc908d
[ "MIT" ]
20
2016-09-26T15:25:53.000Z
2020-11-11T18:26:32.000Z
examples/example_contour.py
moghimis/geojsoncontour
23f298cb5c5ae4b7000024423493e109a9cc908d
[ "MIT" ]
26
2016-06-15T02:39:10.000Z
2022-02-04T06:48:15.000Z
import numpy import matplotlib.pyplot as plt import geojsoncontour # Create lat and lon vectors and grid data grid_size = 1.0 latrange = numpy.arange(-90.0, 90.0, grid_size) lonrange = numpy.arange(-180.0, 180.0, grid_size) X, Y = numpy.meshgrid(lonrange, latrange) Z = numpy.sqrt(X * X + Y * Y) n_contours = 10 levels...
26.535714
75
0.729475
0
0
0
0
0
0
0
0
151
0.20323
296855e3082fc927d6f123b69b223d9a6934f75b
1,861
py
Python
Graphs/ConnectedComponents.py
PK-100/Competitive_Programming
d0863feaaa99462b2999e85dcf115f7a6c08bb8d
[ "MIT" ]
70
2018-06-25T21:20:15.000Z
2022-03-24T03:55:17.000Z
Graphs/ConnectedComponents.py
An3sha/Competitive_Programming
ee7eadf51939a360d0b004d787ebabda583e92f0
[ "MIT" ]
4
2018-09-04T13:12:20.000Z
2021-06-20T08:29:12.000Z
Graphs/ConnectedComponents.py
An3sha/Competitive_Programming
ee7eadf51939a360d0b004d787ebabda583e92f0
[ "MIT" ]
24
2018-12-26T05:15:32.000Z
2022-01-23T23:04:54.000Z
#!/bin/python3 import math import os import random import re import sys # # Complete the 'countGroups' function below. # # The function is expected to return an INTEGER. # The function accepts STRING_ARRAY related as parameter. # class Graph: def __init__(self, V): self.V = V self.adj = [[] for ...
22.695122
96
0.576034
804
0.432026
0
0
0
0
0
0
432
0.232133
29699db1cd4c1b7712dc1f31ae88eb868493c3ed
1,597
py
Python
recognition/ml_model.py
hurschler/pig-face-recognition
5834f3c89448a645ee0eaf2bbdade064f0c4be93
[ "Apache-2.0" ]
1
2021-11-19T05:33:39.000Z
2021-11-19T05:33:39.000Z
recognition/ml_model.py
hurschler/pig-face-recognition
5834f3c89448a645ee0eaf2bbdade064f0c4be93
[ "Apache-2.0" ]
null
null
null
recognition/ml_model.py
hurschler/pig-face-recognition
5834f3c89448a645ee0eaf2bbdade064f0c4be93
[ "Apache-2.0" ]
1
2022-01-05T12:57:12.000Z
2022-01-05T12:57:12.000Z
import logging.config import util.logger_init import numpy as np import tensorflow as tf from sklearn.metrics import confusion_matrix from util.tensorboard_util import plot_confusion_matrix, plot_to_image from tensorflow.python.keras.callbacks_v1 import TensorBoard from keras import backend as K class MlModel: d...
31.313725
89
0.708203
1,251
0.783344
0
0
0
0
0
0
301
0.188478
296af987b0de54ddfc1944dd10981828dfe9bc78
1,803
py
Python
requests/UpdateSubscriptionRequest.py
divinorum-webb/python-tableau-api
9d3f130d63b15307ad2b23e2273b52790b8d9018
[ "Apache-2.0" ]
1
2019-06-08T22:19:40.000Z
2019-06-08T22:19:40.000Z
requests/UpdateSubscriptionRequest.py
divinorum-webb/python-tableau-api
9d3f130d63b15307ad2b23e2273b52790b8d9018
[ "Apache-2.0" ]
null
null
null
requests/UpdateSubscriptionRequest.py
divinorum-webb/python-tableau-api
9d3f130d63b15307ad2b23e2273b52790b8d9018
[ "Apache-2.0" ]
null
null
null
from .BaseRequest import BaseRequest class UpdateSubscriptionRequest(BaseRequest): """ Update subscription request for generating API request URLs to Tableau Server. :param ts_connection: The Tableau Server connection object. :type ts_connection: class :param new_subs...
36.795918
108
0.601775
1,763
0.977815
0
0
819
0.454243
0
0
597
0.331115
296b3f67c1ceb01054558b270075a2c69d09bb88
2,293
py
Python
doc/examples/cython/cython_main.py
hershg/ray
a1744f67fe954d8408c5b84e28ecccc130157f8e
[ "Apache-2.0" ]
2
2019-06-17T12:38:24.000Z
2020-11-11T07:52:26.000Z
doc/examples/cython/cython_main.py
hershg/ray
a1744f67fe954d8408c5b84e28ecccc130157f8e
[ "Apache-2.0" ]
3
2018-08-15T19:19:25.000Z
2021-06-30T01:54:46.000Z
doc/examples/cython/cython_main.py
hershg/ray
a1744f67fe954d8408c5b84e28ecccc130157f8e
[ "Apache-2.0" ]
2
2017-10-31T23:20:07.000Z
2019-11-13T20:16:03.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import ray import click import inspect import numpy as np import cython_examples as cyth def run_func(func, *args, **kwargs): """Helper function for running examples""" ray.init() func = ray.rem...
20.845455
79
0.64239
0
0
0
0
1,670
0.728304
0
0
750
0.327082
296c4de61a467a172ab5bf54ab6a35b296d94e43
17,314
py
Python
Simon/dev/main_age_classification.py
uncharted-distil/simon
26e4e54e6de455bde8ee1a24634d060e1ec7babb
[ "MIT" ]
null
null
null
Simon/dev/main_age_classification.py
uncharted-distil/simon
26e4e54e6de455bde8ee1a24634d060e1ec7babb
[ "MIT" ]
2
2021-01-27T14:57:26.000Z
2021-10-07T19:34:09.000Z
Simon/dev/main_age_classification.py
uncharted-distil/simon
26e4e54e6de455bde8ee1a24634d060e1ec7babb
[ "MIT" ]
1
2021-03-18T19:13:05.000Z
2021-03-18T19:13:05.000Z
from DataGenerator import * from Encoder import * import pandas as pd from keras.models import Model from keras.layers import Dense, Activation, Flatten, Input, Dropout, MaxPooling1D, Convolution1D from keras.layers import LSTM, Lambda, merge, Masking from keras.layers import Embedding, TimeDistributed from keras.layer...
39.083521
165
0.661315
287
0.016576
0
0
0
0
0
0
3,843
0.221959
296d4245a81dda89f65dda7069ff2c63e222474b
287
py
Python
desdeo_tools/solver/__init__.py
phoopies/desdeo-tools
d3cb48c16b35114762386ee8368214b4b432eee0
[ "MIT" ]
1
2022-03-30T17:24:55.000Z
2022-03-30T17:24:55.000Z
desdeo_tools/solver/__init__.py
phoopies/desdeo-tools
d3cb48c16b35114762386ee8368214b4b432eee0
[ "MIT" ]
2
2022-01-13T04:05:05.000Z
2022-03-12T01:07:03.000Z
desdeo_tools/solver/__init__.py
phoopies/desdeo-tools
d3cb48c16b35114762386ee8368214b4b432eee0
[ "MIT" ]
null
null
null
"""This module implements methods for solving scalar valued functions. """ __all__ = ["DiscreteMinimizer", "ScalarMethod", "ScalarMinimizer", "ScalarSolverException"] from desdeo_tools.solver.ScalarSolver import DiscreteMinimizer, ScalarMethod, ScalarMinimizer, ScalarSolverException
35.875
116
0.818815
0
0
0
0
0
0
0
0
148
0.515679
296eaf3a25df674b47f03f8d1d4dfa8c276636f7
1,661
py
Python
tests/test_root_to_hdf.py
lundeenj/hawc_hal
21b7cfd28490e870d1ded39735827e63684556df
[ "BSD-3-Clause" ]
null
null
null
tests/test_root_to_hdf.py
lundeenj/hawc_hal
21b7cfd28490e870d1ded39735827e63684556df
[ "BSD-3-Clause" ]
null
null
null
tests/test_root_to_hdf.py
lundeenj/hawc_hal
21b7cfd28490e870d1ded39735827e63684556df
[ "BSD-3-Clause" ]
null
null
null
from hawc_hal.maptree.map_tree import map_tree_factory from hawc_hal.response import hawc_response_factory import os from conftest import check_map_trees, check_responses def test_root_to_hdf_response(response): r = hawc_response_factory(response) test_filename = "response.hd5" # Make sure it doesn't e...
24.072464
61
0.642986
0
0
0
0
0
0
0
0
240
0.144491
296f3e0d144e44aa8925c39df61ed0e143aa64d0
1,577
py
Python
clickhouse_driver/compression/zstd.py
risicle/clickhouse-driver
d36569f52d3e62ad2e275b1d63ad79b75a06402d
[ "MIT" ]
17
2019-12-19T13:37:14.000Z
2022-03-30T15:43:12.000Z
clickhouse_driver/compression/zstd.py
risicle/clickhouse-driver
d36569f52d3e62ad2e275b1d63ad79b75a06402d
[ "MIT" ]
null
null
null
clickhouse_driver/compression/zstd.py
risicle/clickhouse-driver
d36569f52d3e62ad2e275b1d63ad79b75a06402d
[ "MIT" ]
4
2019-05-15T14:58:05.000Z
2021-10-14T03:24:12.000Z
from __future__ import absolute_import from io import BytesIO import zstd from .base import BaseCompressor, BaseDecompressor from ..protocol import CompressionMethod, CompressionMethodByte from ..reader import read_binary_uint32 from ..writer import write_binary_uint32, write_binary_uint8 class Compressor(BaseCompr...
30.326923
66
0.723526
1,279
0.811034
0
0
0
0
0
0
7
0.004439
2970702f348227149035bca1abec42b22aa901b1
1,019
py
Python
tmdb_client.py
SztMar/movies_catalogue
8140a37e916d9f67314aa679b46134e1794588e6
[ "MIT" ]
null
null
null
tmdb_client.py
SztMar/movies_catalogue
8140a37e916d9f67314aa679b46134e1794588e6
[ "MIT" ]
null
null
null
tmdb_client.py
SztMar/movies_catalogue
8140a37e916d9f67314aa679b46134e1794588e6
[ "MIT" ]
null
null
null
import requests import json import os API_TOKEN = os.environ.get("TMDB_API_TOKEN", "") def call_tmdb_api(_endpoint): endpoint = f"https://api.themoviedb.org/3/{_endpoint}" full_url = f'{endpoint}?api_key={API_TOKEN}' response = requests.get(full_url) response.raise_for_status() return response.js...
26.128205
58
0.723258
0
0
0
0
0
0
0
0
292
0.286555
2970d09ae49d5ea0ddb5185266b5f2bed4f79bf9
300
py
Python
hanibal/ans_escuela/tipo_colaborador.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
hanibal/ans_escuela/tipo_colaborador.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
hanibal/ans_escuela/tipo_colaborador.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from openerp.osv import fields, osv from openerp import models, fields, api, _ class Tipo_Colaborador(models.Model): _name = 'tipo.colaborador' _rec_name = 'name' name=fields.Char(string='Nombre') active=fields.Boolean(string='Activo',default=True)
25
55
0.683333
195
0.65
0
0
0
0
0
0
63
0.21
2970d64cd60442ad64c58f0629d552521a791dbc
967
py
Python
spyder/utils/tests/test_environ.py
Nicztin/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
1
2019-09-25T15:08:24.000Z
2019-09-25T15:08:24.000Z
spyder/utils/tests/test_environ.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
spyder/utils/tests/test_environ.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # """ Tests for environ.py """ # Standard library imports import os # Test library imports import pytest # Third party imports from qtpy.QtCore import QTimer # Local imports from spyder.utils.test impo...
20.574468
72
0.713547
0
0
0
0
432
0.446281
0
0
350
0.36157
2970ef8fae53d89f446cb52a1542393d10955b37
4,680
py
Python
comsole.py
MumuNiMochii/Dumb_Dump
ee431c934a591bc0868792601f5844615f869af1
[ "MIT" ]
1
2020-09-21T01:56:41.000Z
2020-09-21T01:56:41.000Z
comsole.py
MumuNiMochii/Dumb_Dump
ee431c934a591bc0868792601f5844615f869af1
[ "MIT" ]
null
null
null
comsole.py
MumuNiMochii/Dumb_Dump
ee431c934a591bc0868792601f5844615f869af1
[ "MIT" ]
1
2020-10-09T01:09:20.000Z
2020-10-09T01:09:20.000Z
import math def main(): print(""" \tComsole by MumuNiMochii version beta 1.6.23 \t\"Originally made with C\" \tMAIN MENU \tWhat do you want to execute and evaluate? \t1.) Add two addends \t2.) Subtract a minuend from its subtrahend \t3.) Multiply a multiplicand to its multiplier \t4.) Divide a dividend to its...
38.04878
121
0.47906
0
0
0
0
0
0
0
0
2,032
0.434188
2971ec9257acdac3ee8d9c3bae4d48e78eefdf76
3,485
py
Python
test/test_discussions.py
fibasile/ticket-gateway
811a216281a17150adca3edf691f9cf5a1478d2f
[ "MIT" ]
null
null
null
test/test_discussions.py
fibasile/ticket-gateway
811a216281a17150adca3edf691f9cf5a1478d2f
[ "MIT" ]
null
null
null
test/test_discussions.py
fibasile/ticket-gateway
811a216281a17150adca3edf691f9cf5a1478d2f
[ "MIT" ]
null
null
null
import unittest import json from server import server from models.abc import db from repositories import ChannelRepository, GitlabProvider from unittest.mock import MagicMock, Mock # from flask import make_response # from flask.json import jsonify from util import test_client class TestDiscussions(unittest.TestCase)...
37.880435
79
0.63759
3,204
0.919369
0
0
274
0.078623
0
0
998
0.28637
29726a4c7ce2a690926dd277befe7e4b116e0d83
24,943
py
Python
cogs/music.py
ETJeanMachine/Pouty-Bot-Discord
9b005e43885db2e066d525449e05c7eb5d03cd23
[ "MIT" ]
null
null
null
cogs/music.py
ETJeanMachine/Pouty-Bot-Discord
9b005e43885db2e066d525449e05c7eb5d03cd23
[ "MIT" ]
null
null
null
cogs/music.py
ETJeanMachine/Pouty-Bot-Discord
9b005e43885db2e066d525449e05c7eb5d03cd23
[ "MIT" ]
null
null
null
""" This is an example cog that shows how you would make use of Lavalink.py. This example cog requires that you have python 3.6 or higher due to the f-strings. """ import math import re import discord import lavalink from discord.ext import commands from discord.ext import menus from .utils import checks ...
41.092257
161
0.583611
23,599
0.945094
0
0
16,823
0.673728
21,206
0.849259
5,774
0.231237
2973ac2848fca5ea3493059da1e9b46b9746f3f2
17,005
py
Python
utils/data_processing.py
LisaAnne/LocalizingMoments
b6a555c8134581305d0ed4716fbc192860e0b88c
[ "BSD-2-Clause" ]
157
2017-08-04T21:56:46.000Z
2022-03-05T13:49:02.000Z
utils/data_processing.py
Naman-Bhalla/LocalizingMoments
618bebfe6c4b897e94770b8011d34aa45c941e62
[ "BSD-2-Clause" ]
19
2017-09-26T15:27:47.000Z
2022-02-27T23:21:00.000Z
utils/data_processing.py
Naman-Bhalla/LocalizingMoments
618bebfe6c4b897e94770b8011d34aa45c941e62
[ "BSD-2-Clause" ]
48
2017-08-08T11:18:39.000Z
2021-11-15T04:20:33.000Z
import numpy as np import sys import os sys.path.append('utils/') from config import * from utils import * sys.path.append(pycaffe_dir) import time import pdb import random import pickle as pkl import caffe from multiprocessing import Pool from threading import Thread import random import h5py import itertools import m...
32.267552
114
0.673625
14,574
0.857042
0
0
0
0
0
0
1,843
0.10838
297530f3746153e98984e1af10f206c3aa39875c
17,856
py
Python
old_metrics/bleu.py
Danial-Alh/fast-bleu
d8726ae829b2cc275192e70819ee9c60c9d4bed6
[ "MIT" ]
21
2020-08-09T12:06:58.000Z
2022-02-13T19:15:11.000Z
old_metrics/bleu.py
Danial-Alh/FastBLEU
182584a6593aa36d57b15705da6f317bdb06f83e
[ "MIT" ]
4
2020-08-11T22:00:40.000Z
2021-09-01T07:35:52.000Z
old_metrics/bleu.py
Danial-Alh/FastBLEU
182584a6593aa36d57b15705da6f317bdb06f83e
[ "MIT" ]
2
2020-08-12T14:49:18.000Z
2021-06-25T12:51:42.000Z
import math import os from collections import Counter from fractions import Fraction import numpy as np from nltk import ngrams from nltk.translate.bleu_score import SmoothingFunction from .utils import get_ngrams, Threader def corpus_bleu(references, hypothesis, reference_max_counts...
44.19802
115
0.620128
3,041
0.170307
0
0
0
0
0
0
12,547
0.702677
2975d99cfa9a3c77e63e816ac890c17807b18244
1,880
py
Python
setup.py
gspracklin/bwtools
08159b86738fed978ef442a60032cf8b00b5635a
[ "MIT" ]
4
2021-07-23T02:49:54.000Z
2022-03-22T19:56:13.000Z
setup.py
gspracklin/bwtools
08159b86738fed978ef442a60032cf8b00b5635a
[ "MIT" ]
1
2020-08-24T19:03:46.000Z
2020-08-24T19:03:46.000Z
setup.py
gspracklin/bwtools
08159b86738fed978ef442a60032cf8b00b5635a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import io import os import re from setuptools import setup, find_packages # classifiers = """\ # Development Status :: 4 - Beta # Programming Language :: Python # Programming Language :: Python :: 3 # Programming Language :: Python :: 3.4 # Programming...
24.736842
74
0.623404
0
0
0
0
0
0
0
0
788
0.419149
2976116c00e8fbc7eadad3295e61cb99c5280023
3,018
py
Python
hoogberta/encoder.py
KateSatida/HoogBERTa_SuperAI2
e903054bc752a50c391ab610507fdeccc4f5d482
[ "MIT" ]
null
null
null
hoogberta/encoder.py
KateSatida/HoogBERTa_SuperAI2
e903054bc752a50c391ab610507fdeccc4f5d482
[ "MIT" ]
null
null
null
hoogberta/encoder.py
KateSatida/HoogBERTa_SuperAI2
e903054bc752a50c391ab610507fdeccc4f5d482
[ "MIT" ]
null
null
null
from .trainer.models import MultiTaskTagger from .trainer.utils import load_dictionaries,Config from .trainer.tasks.multitask_tagging import MultiTaskTaggingModule from fairseq.data.data_utils import collate_tokens from attacut import tokenize class HoogBERTaEncoder(object): def __init__(self,layer=12,cuda=False...
38.202532
103
0.61829
2,771
0.918158
0
0
0
0
0
0
575
0.190524
29765d30f6c468ab494ba5307c14ec5427857135
146
py
Python
computer_equipment_control/model/__init__.py
hugonp/Proyecto-Triples
ff4c77e37d49a1674d17f3137ef06b5c56ab9c29
[ "Apache-2.0" ]
null
null
null
computer_equipment_control/model/__init__.py
hugonp/Proyecto-Triples
ff4c77e37d49a1674d17f3137ef06b5c56ab9c29
[ "Apache-2.0" ]
null
null
null
computer_equipment_control/model/__init__.py
hugonp/Proyecto-Triples
ff4c77e37d49a1674d17f3137ef06b5c56ab9c29
[ "Apache-2.0" ]
null
null
null
from . import usuario from . import equipo_cambio from . import equipo_computo from . import sucursales from . import depto from . import usuario
20.857143
28
0.794521
0
0
0
0
0
0
0
0
0
0
297664fa1ad9becfe5e46a57677c012794d49c7e
697
py
Python
gui/window.py
frlnx/melee
db2670453771c6d3635e97e28bb8667b14643b05
[ "CC0-1.0" ]
null
null
null
gui/window.py
frlnx/melee
db2670453771c6d3635e97e28bb8667b14643b05
[ "CC0-1.0" ]
null
null
null
gui/window.py
frlnx/melee
db2670453771c6d3635e97e28bb8667b14643b05
[ "CC0-1.0" ]
null
null
null
from pyglet.window import Window as PygletWindow from .controllers import ComponentContainerController from .models.container import ComponentContainerModel from .views import OrthoViewport class Window(PygletWindow): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._m...
30.304348
80
0.714491
503
0.721664
0
0
0
0
0
0
0
0
2979426aee0cb9d3f7a35f048ea9d20f5f7f25ea
1,806
py
Python
conductor_calculator.py
aj83854/project-lightning-rod
77867d6c4ee30650023f3ec2a8318edd92530264
[ "MIT" ]
null
null
null
conductor_calculator.py
aj83854/project-lightning-rod
77867d6c4ee30650023f3ec2a8318edd92530264
[ "MIT" ]
null
null
null
conductor_calculator.py
aj83854/project-lightning-rod
77867d6c4ee30650023f3ec2a8318edd92530264
[ "MIT" ]
null
null
null
from pyconductor import load_test_values, calculate_conductance def conductance_calc(): preloaded_dict = load_test_values() while preloaded_dict: print( "[1] - Show currently available materials in Material Dictionary\n" "[2] - Add a material (will not be saved upon restart)\n"...
42
94
0.530454
0
0
0
0
0
0
0
0
719
0.398117
297a9dbff855963c67a53faea767533cf768f0af
2,073
py
Python
compiler/python_compiler/engines/py3_8/Variable.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
3
2021-08-12T12:59:27.000Z
2021-08-29T15:30:49.000Z
compiler/python_compiler/engines/py3_8/Variable.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
null
null
null
compiler/python_compiler/engines/py3_8/Variable.py
unknowncoder05/app-architect
083278e1386562797614f320649ca85d1c44e009
[ "MIT" ]
null
null
null
from .Fragment import Fragment from utils.flags import * from utils.CustomLogging import CustomLogging #from python_compiler.engines.utils.types import get_python_type_str, ANY DEFAULT_ASSIGN_OPERATOR = "=" ASSIGN_OPERATORS = { "=":"=", "+=":"+=", "-=":"-=", "*=":"*=", "/=":"/=", "//=":"//=", ...
33.983607
116
0.675832
642
0.309696
0
0
0
0
0
0
430
0.207429
297b1b7d9f0a6e280fa0145471626d7d01aa1943
266
py
Python
test/win/vs-macros/test_exists.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
77
2018-07-01T15:55:34.000Z
2022-03-30T09:16:54.000Z
test/win/vs-macros/test_exists.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
116
2021-05-29T16:32:51.000Z
2021-08-13T16:05:29.000Z
test/win/vs-macros/test_exists.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
53
2018-04-13T12:06:06.000Z
2022-03-25T13:54:38.000Z
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys if not os.path.exists(sys.argv[1]): raise Exception() open(sys.argv[2], 'w').close()
24.181818
72
0.718045
0
0
0
0
0
0
0
0
156
0.586466
297bd9ae840483948b9e83e2e47fb15cc768315a
37,440
py
Python
Lib/site-packages/qwt/scale_draw.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/qwt/scale_draw.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/qwt/scale_draw.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed under the terms of the Qwt License # Copyright (c) 2002 Uwe Rathmann, for the original C++ code # Copyright (c) 2015 Pierre Raybaut, for the Python translation/optimization # (see LICENSE file for more details) """ QwtAbstractScaleDraw -------------------- .. autoclass:: QwtAbstra...
30.967742
130
0.559161
36,686
0.979861
0
0
0
0
0
0
18,416
0.49188
297beccf46f124350d5429aa7d77baa3ba0a7320
3,524
py
Python
fuzzers/LIFCL/090-sysconfig/fuzzer.py
mfkiwl/prjoxide
318331f8b30c2e2a31cc41d51f104b671e180a8a
[ "0BSD" ]
80
2019-12-10T21:06:12.000Z
2021-02-06T09:12:37.000Z
fuzzers/LIFCL/090-sysconfig/fuzzer.py
mfkiwl/prjoxide
318331f8b30c2e2a31cc41d51f104b671e180a8a
[ "0BSD" ]
13
2021-03-18T12:59:25.000Z
2022-03-30T11:35:51.000Z
fuzzers/LIFCL/090-sysconfig/fuzzer.py
mfkiwl/prjoxide
318331f8b30c2e2a31cc41d51f104b671e180a8a
[ "0BSD" ]
4
2020-10-04T22:23:15.000Z
2021-01-29T21:51:25.000Z
from fuzzconfig import FuzzConfig import nonrouting import fuzzloops import re cfgs = [ FuzzConfig(job="SYSCONFIG40", device="LIFCL-40", sv="../shared/empty_40.v", tiles=["CIB_R0C75:EFB_0", "CIB_R0C72:BANKREF0", "CIB_R0C77:EFB_1_OSC", "CIB_R0C79:EFB_2", "CIB_R0C81:I2C_EFB_3", "CIB_R0C85:PMU", "CIB_...
61.824561
117
0.557605
0
0
0
0
0
0
0
0
1,280
0.363224
297cba1ed48f76e8524cfa4c59799c094d9928a0
368
py
Python
test.py
jdonovanCS/CS-352-Evolutionary-Computation
dca64068c1824dac8ec3983d7215effa426bc3bc
[ "BSD-3-Clause" ]
null
null
null
test.py
jdonovanCS/CS-352-Evolutionary-Computation
dca64068c1824dac8ec3983d7215effa426bc3bc
[ "BSD-3-Clause" ]
null
null
null
test.py
jdonovanCS/CS-352-Evolutionary-Computation
dca64068c1824dac8ec3983d7215effa426bc3bc
[ "BSD-3-Clause" ]
null
null
null
import argparse import collections import os import random import json from copy import deepcopy import ConfigSpace import numpy as np # from tabular_benchmarks import FCNetProteinStructureBenchmark, FCNetSliceLocalizationBenchmark,\ # FCNetNavalPropulsionBenchmark, FCNetParkinsonsTelemonitoringBenchmark from ta...
26.285714
98
0.872283
0
0
0
0
0
0
0
0
173
0.470109
297cf3d7631c7db955fd11e56c685c2b4f84aac0
1,254
py
Python
tests/test_base64_uuid.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
3
2020-04-29T17:13:43.000Z
2020-12-04T21:08:33.000Z
tests/test_base64_uuid.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
21
2020-04-16T12:29:46.000Z
2022-02-28T17:17:15.000Z
tests/test_base64_uuid.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
4
2020-02-21T20:20:00.000Z
2021-02-11T19:00:59.000Z
from uuid import UUID import os import pytest from notifications_utils.base64_uuid import base64_to_uuid, uuid_to_base64, base64_to_bytes, bytes_to_base64 def test_bytes_to_base64_to_bytes(): b = os.urandom(32) b64 = bytes_to_base64(b) assert base64_to_bytes(b64) == b @pytest.mark.parametrize( "url...
27.26087
117
0.739234
0
0
0
0
837
0.664286
0
0
329
0.261111
297d3ac09c9100be856d7c8b2496765760397058
3,571
py
Python
homeassistant/components/devolo_home_control/__init__.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/devolo_home_control/__init__.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
64
2020-10-01T06:39:48.000Z
2022-03-31T06:02:17.000Z
homeassistant/components/devolo_home_control/__init__.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
6
2018-02-04T03:48:55.000Z
2022-01-24T20:37:04.000Z
"""The devolo_home_control integration.""" from __future__ import annotations import asyncio from functools import partial from types import MappingProxyType from typing import Any from devolo_home_control_api.exceptions.gateway import GatewayOfflineError from devolo_home_control_api.homecontrol import HomeControl fr...
35.009804
86
0.711845
0
0
0
0
0
0
2,444
0.684402
327
0.091571
297d9c0aeb9cbc7ee91fb0bd8b0450dda847eca4
1,199
py
Python
trab1/hillClimbing.py
RafaelPedruzzi/IA-2019-2
7d99a8f02ec826403bd48c6eba574d802e558c36
[ "MIT" ]
null
null
null
trab1/hillClimbing.py
RafaelPedruzzi/IA-2019-2
7d99a8f02ec826403bd48c6eba574d802e558c36
[ "MIT" ]
null
null
null
trab1/hillClimbing.py
RafaelPedruzzi/IA-2019-2
7d99a8f02ec826403bd48c6eba574d802e558c36
[ "MIT" ]
null
null
null
## -------------------------------------------------------- ## # Trab 1 IA 2019-2 # # Rafael Belmock Pedruzzi # # hillClimbing.py: implements the hill climbing metaheuristic for the bag problem # # Python version: 3.7.4 ## -------------------------------------------------------- ## import bagProblem as bp from...
28.547619
89
0.533778
0
0
0
0
0
0
0
0
588
0.490409
2980dcb521571569813c10466d1c0e11144f30c7
151
py
Python
ssb_pseudonymization/__init__.py
statisticsnorway/ssb-pseudonymization-py
cc8e1abd1cf00b403bfaf52fcb335f09ee71b591
[ "MIT" ]
1
2021-02-17T09:51:12.000Z
2021-02-17T09:51:12.000Z
ssb_pseudonymization/__init__.py
statisticsnorway/ssb-pseudonymization-py
cc8e1abd1cf00b403bfaf52fcb335f09ee71b591
[ "MIT" ]
null
null
null
ssb_pseudonymization/__init__.py
statisticsnorway/ssb-pseudonymization-py
cc8e1abd1cf00b403bfaf52fcb335f09ee71b591
[ "MIT" ]
3
2020-08-25T07:12:17.000Z
2021-04-20T12:26:42.000Z
"""ssb-pseudonymization - Data pseudonymization functions used by SSB""" __version__ = '0.0.2' __author__ = 'Statistics Norway (ssb.no)' __all__ = []
25.166667
72
0.721854
0
0
0
0
0
0
0
0
107
0.708609
2980f0b218fed38559f7aa3fa0718ba902a95fb9
7,657
py
Python
hwilib/devices/keepkey.py
cjackie/HWI
8c1b50aaaac37714b5d61f720b4b06f8aa24c73a
[ "MIT" ]
285
2019-01-31T03:10:19.000Z
2022-03-31T10:38:37.000Z
hwilib/devices/keepkey.py
cjackie/HWI
8c1b50aaaac37714b5d61f720b4b06f8aa24c73a
[ "MIT" ]
426
2019-01-31T10:38:02.000Z
2022-03-28T15:58:13.000Z
hwilib/devices/keepkey.py
cjackie/HWI
8c1b50aaaac37714b5d61f720b4b06f8aa24c73a
[ "MIT" ]
128
2019-01-30T22:32:32.000Z
2022-03-28T19:23:46.000Z
""" Keepkey ******* """ from ..errors import ( DEVICE_NOT_INITIALIZED, DeviceNotReadyError, common_err_msgs, handle_errors, ) from .trezorlib import protobuf as p from .trezorlib.transport import ( hid, udp, webusb, ) from .trezor import TrezorClient, HID_IDS, WEBUSB_IDS from .trezorlib.mes...
37.534314
176
0.614601
4,760
0.621653
0
0
2,587
0.337861
0
0
1,613
0.210657
298195d9b4f163d34048ccfa931e4a45670c98bc
15,195
py
Python
sklearn_extra/cluster/_k_medoids.py
chkoar/scikit-learn-extra
9e62f1ac18b40f444009db9f6557196ddc6c5e86
[ "BSD-3-Clause" ]
1
2019-08-27T01:10:48.000Z
2019-08-27T01:10:48.000Z
sklearn_extra/cluster/_k_medoids.py
KonstantinKlepikov/scikit-learn-extra
12fb111acdfa7aada0ed29f53b9b92c44d8de7c3
[ "BSD-3-Clause" ]
null
null
null
sklearn_extra/cluster/_k_medoids.py
KonstantinKlepikov/scikit-learn-extra
12fb111acdfa7aada0ed29f53b9b92c44d8de7c3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """K-medoids clustering""" # Authors: Timo Erkkilä <timo.erkkila@gmail.com> # Antti Lehmussola <antti.lehmussola@gmail.com> # Kornel Kiełczewski <kornel.mail@gmail.com> # Zane Dufour <zane.dufour@gmail.com> # License: BSD 3 clause import warnings import numpy as np ...
35.173611
83
0.596249
14,499
0.953819
0
0
0
0
0
0
8,287
0.545162