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
94b49b9436654c2b1de48f28ac3c2c9ba73a4771
722
py
Python
python/baekjoon/step/19-divide-and-conquer/quad-tree.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
1
2022-03-06T03:49:31.000Z
2022-03-06T03:49:31.000Z
python/baekjoon/step/19-divide-and-conquer/quad-tree.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
python/baekjoon/step/19-divide-and-conquer/quad-tree.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
""" 출처: https://yabmoons.tistory.com/450 """ import sys N = int(sys.stdin.readline()) M = [ list(map(int, sys.stdin.readline().rstrip())) for _ in range(N) ] def DFS(x, y, size): color = M[x][y] for i in range(x, x + size): for j in range(y, y + size): if color != M[i][j]: ...
21.878788
67
0.409972
0
0
0
0
0
0
0
0
62
0.085399
94b613e3ba422d9c83b2ae27a15a0f42577f4efe
124
py
Python
zemfrog/tasks.py
aprilahijriyan/zemfrog
0a4ebc303caa8fadf89ca0cc8569de60c61f3252
[ "MIT" ]
null
null
null
zemfrog/tasks.py
aprilahijriyan/zemfrog
0a4ebc303caa8fadf89ca0cc8569de60c61f3252
[ "MIT" ]
5
2021-03-08T05:07:37.000Z
2021-03-12T08:00:41.000Z
zemfrog/tasks.py
aprilahijriyan/zemfrog
0a4ebc303caa8fadf89ca0cc8569de60c61f3252
[ "MIT" ]
null
null
null
from zemfrog.globals import celery, mail @celery.task def send_email(*args, **kwds): mail.send_message(*args, **kwds)
17.714286
40
0.717742
0
0
0
0
80
0.645161
0
0
0
0
94b68aa576df42be03802058351d5dc93499d16b
10,568
py
Python
actors/aga.py
TACC-Cloud/abaco
9e7bb2f7aed45db62cce3124d4638cde860c5095
[ "BSD-3-Clause" ]
27
2015-07-24T16:54:38.000Z
2022-01-07T04:36:47.000Z
actors/aga.py
TACC-Cloud/abaco
9e7bb2f7aed45db62cce3124d4638cde860c5095
[ "BSD-3-Clause" ]
68
2015-10-05T16:08:58.000Z
2022-02-07T15:59:27.000Z
actors/aga.py
TACC-Cloud/abaco
9e7bb2f7aed45db62cce3124d4638cde860c5095
[ "BSD-3-Clause" ]
13
2015-10-01T21:38:34.000Z
2021-05-26T00:19:07.000Z
""" Python3 compatible agave binding. WARNING -- only the token and clients service are supported. NOTE -- This is a temporary module! once python3 support is properly added to agavepy this module will be removed. """ from urllib.parse import urlparse, urljoin import requests import time from agaveflask.logs ...
43.489712
116
0.581472
10,182
0.963475
0
0
0
0
0
0
3,565
0.337339
94b81133f944f81c4a396de00a4f4cef01d9f74a
3,760
py
Python
prep/make_database.py
radinformatics/wordfish-standard
678235806d97b0c4cec6637900fa636541d3b730
[ "MIT" ]
1
2017-05-24T15:14:39.000Z
2017-05-24T15:14:39.000Z
prep/make_database.py
vsoch/wordfish-standard
678235806d97b0c4cec6637900fa636541d3b730
[ "MIT" ]
null
null
null
prep/make_database.py
vsoch/wordfish-standard
678235806d97b0c4cec6637900fa636541d3b730
[ "MIT" ]
null
null
null
from glob import glob import os import shutil import simplejson import xmltodict pwd = os.getcwd() output_dir = "%s/collection" %(pwd) if not os.path.exists(output_dir): os.mkdir(output_dir) cookies = glob("%s/matched/img/*.png" %(pwd)) def read_xml(xml_file): '''read_xml reads an xml file and returns a ...
31.333333
90
0.647606
0
0
0
0
0
0
0
0
1,080
0.287234
94b9d72016da799bcd01548327582926fcff7b04
1,094
py
Python
utils/util.py
dliu18/rawlsnet
84441fa140fc00d965ff7b63c628140cc975ede4
[ "MIT" ]
3
2021-05-25T15:23:27.000Z
2021-11-24T22:54:34.000Z
utils/util.py
dliu18/rawlsnet
84441fa140fc00d965ff7b63c628140cc975ede4
[ "MIT" ]
null
null
null
utils/util.py
dliu18/rawlsnet
84441fa140fc00d965ff7b63c628140cc975ede4
[ "MIT" ]
null
null
null
import numpy as np import itertools def generate_binary_truth_table(num_variables): ''' Returns a binary truth table Inputs : num_variables : Number of variables to consider in constructing the table. Can be a single number or a list of cardinalities. If input is a single number, a cardinali...
21.038462
77
0.620658
0
0
0
0
0
0
0
0
434
0.396709
94bd39f7b280d5e41bc80e6c9d2c2a8db8614c19
4,103
py
Python
jabble/dataset.py
mdd423/wobble_jax
8923eac67529d92d670d38a02d409cf16dad4d7a
[ "BSD-3-Clause" ]
null
null
null
jabble/dataset.py
mdd423/wobble_jax
8923eac67529d92d670d38a02d409cf16dad4d7a
[ "BSD-3-Clause" ]
null
null
null
jabble/dataset.py
mdd423/wobble_jax
8923eac67529d92d670d38a02d409cf16dad4d7a
[ "BSD-3-Clause" ]
null
null
null
import numpy as np # import matplotlib.pyplot as plt import astropy.table as at import astropy.units as u import astropy.coordinates as coord import astropy.constants as const import astropy.time as atime import scipy.ndimage as ndimage import numpy.polynomial as polynomial # import jabble.model as wobble_model impor...
30.169118
97
0.61126
459
0.111869
0
0
0
0
0
0
176
0.042895
94be50fa7e9c1cc2a5aae187eda3eb1b5858641b
137
py
Python
tests/conftest.py
hpgem/nanomesh
f395640bb784da531677f193766dbd9f69b61a67
[ "Apache-2.0" ]
4
2021-07-12T20:00:16.000Z
2022-02-27T10:14:02.000Z
tests/conftest.py
hpgem/nanomesh
f395640bb784da531677f193766dbd9f69b61a67
[ "Apache-2.0" ]
136
2020-11-24T16:58:28.000Z
2022-03-23T14:19:25.000Z
tests/conftest.py
hpgem/nanomesh
f395640bb784da531677f193766dbd9f69b61a67
[ "Apache-2.0" ]
1
2022-01-25T10:13:13.000Z
2022-01-25T10:13:13.000Z
# https://github.com/matplotlib/matplotlib/issues/18168#issuecomment-670211108 from matplotlib.testing.conftest import mpl_test_settings
45.666667
78
0.861314
0
0
0
0
0
0
0
0
78
0.569343
94c1134d670b16674cc4abd8161470411f0363bf
660
py
Python
ietf/name/migrations/0009_add_verified_errata_to_doctagname.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/name/migrations/0009_add_verified_errata_to_doctagname.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/name/migrations/0009_add_verified_errata_to_doctagname.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2020, All Rights Reserved # -*- coding: utf-8 -*- from django.db import migrations def forward(apps, schema_editor): DocTagName = apps.get_model('name','DocTagName') DocTagName.objects.get_or_create(slug='verified-errata', name='Has verified errata', desc='', used=True, order=0) d...
27.5
117
0.7
189
0.286364
0
0
0
0
0
0
204
0.309091
94c1ced1ea38485e911b3147cf9aaf5954001d87
429
py
Python
2020/examples-in-class-2020-11-12/helper_numbers.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
1
2021-02-04T16:59:11.000Z
2021-02-04T16:59:11.000Z
2020/examples-in-class-2020-11-12/helper_numbers.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
null
null
null
2020/examples-in-class-2020-11-12/helper_numbers.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
1
2019-10-30T14:37:48.000Z
2019-10-30T14:37:48.000Z
def get_first_digit(number): return int(str(number)[0]) def get_last_digit(number): return number % 10 def remove_first_last_digit(number): s_number = str(number) s_number = s_number[1:-1] return s_number assert get_first_digit(12021) == 1 assert get_first_digit(92021) == 9 assert get_first_digit(72003443) == ...
20.428571
37
0.759907
0
0
0
0
0
0
0
0
0
0
94c275106d2338f72c37c61390adc86cd0cf7bba
3,635
py
Python
src/morle/modules/compile.py
maciejjan/morle
a56a3371e403568b6b7abc63e08f6a111e0b5fee
[ "MIT" ]
1
2021-03-04T16:23:02.000Z
2021-03-04T16:23:02.000Z
src/morle/modules/compile.py
maciejjan/morle
a56a3371e403568b6b7abc63e08f6a111e0b5fee
[ "MIT" ]
null
null
null
src/morle/modules/compile.py
maciejjan/morle
a56a3371e403568b6b7abc63e08f6a111e0b5fee
[ "MIT" ]
null
null
null
import morle.algorithms.fst as FST from morle.datastruct.lexicon import LexiconEntry from morle.datastruct.rules import Rule from morle.utils.files import file_exists, read_tsv_file import morle.shared as shared import hfst import logging import math from operator import itemgetter from typing import List, Tuple # T...
35.990099
81
0.638514
0
0
435
0.11967
0
0
0
0
826
0.227235
94c29179afdca3ff89eaa0d1a46d602e67dacea5
1,214
py
Python
deck_berry_py/repl_db.py
curtjen/deck-berry-py
e0fbf79ca1b0e3b6a1455093abee207bba6b3561
[ "MIT" ]
null
null
null
deck_berry_py/repl_db.py
curtjen/deck-berry-py
e0fbf79ca1b0e3b6a1455093abee207bba6b3561
[ "MIT" ]
null
null
null
deck_berry_py/repl_db.py
curtjen/deck-berry-py
e0fbf79ca1b0e3b6a1455093abee207bba6b3561
[ "MIT" ]
null
null
null
import requests import os import json db_url = os.getenv('REPLIT_DB_URL') def set(key, val, type='string'): try: if (type == 'string'): return requests.post(db_url, data = { key: val }) if (type == 'json'): return requests.post(db_url, data = { key: json.dumps(val)}) except: return({'error...
28.232558
96
0.632619
0
0
0
0
0
0
0
0
455
0.374794
94c6b1592bca5f3373def4f76b7cbd242408647d
263
py
Python
get_api_token.py
maksimbulva/sc2streamhelper_info
e99fd0e86b4b9ba3bb5495d2e3c5184f60f7160e
[ "MIT" ]
null
null
null
get_api_token.py
maksimbulva/sc2streamhelper_info
e99fd0e86b4b9ba3bb5495d2e3c5184f60f7160e
[ "MIT" ]
null
null
null
get_api_token.py
maksimbulva/sc2streamhelper_info
e99fd0e86b4b9ba3bb5495d2e3c5184f60f7160e
[ "MIT" ]
null
null
null
from subprocess import call from sc2streamhelper.passwords import * call([ "curl", "--user " + SC2STREAMHELPER_APIKEY + ":" + SC2STREAMHELPER_APISECRET, "--data-urlencode ""grant_type=client_credentials"" ""http://us.battle.net/oauth/token""" ])
29.222222
93
0.695817
0
0
0
0
0
0
0
0
107
0.406844
94c773fca152e7ec57a6379987b78b8654f7764e
221
py
Python
test.py
MohamedAliRashad/EfficientDet.Pytorch
9b8b5f029fab125371b275687f2449990ce53daa
[ "MIT" ]
null
null
null
test.py
MohamedAliRashad/EfficientDet.Pytorch
9b8b5f029fab125371b275687f2449990ce53daa
[ "MIT" ]
null
null
null
test.py
MohamedAliRashad/EfficientDet.Pytorch
9b8b5f029fab125371b275687f2449990ce53daa
[ "MIT" ]
null
null
null
import torch from models import EfficientDet if __name__ == '__main__': inputs = torch.randn(4, 3, 512, 512) model = EfficientDet(levels=3) output = model(inputs) for p in output: print(p.size())
24.555556
40
0.651584
0
0
0
0
0
0
0
0
10
0.045249
94caca45c876379996eb1e5fe7824c3b1a2b7f26
7,978
py
Python
doozer/client.py
ActiveState/pydoozer
d9b165ed9aafe6ed5feaca5a6fc08cbefd9be51b
[ "MIT" ]
1
2017-08-29T14:52:05.000Z
2017-08-29T14:52:05.000Z
doozer/client.py
ActiveState/pydoozer
d9b165ed9aafe6ed5feaca5a6fc08cbefd9be51b
[ "MIT" ]
null
null
null
doozer/client.py
ActiveState/pydoozer
d9b165ed9aafe6ed5feaca5a6fc08cbefd9be51b
[ "MIT" ]
null
null
null
import os import struct import gevent import gevent.event import gevent.socket import google.protobuf.message from msg_pb2 import Response from msg_pb2 import Request CONNECT_TIMEOUT = 5.0 REQUEST_TIMEOUT = 2.0 DEFAULT_URI = "doozer:?%s" % "&".join([ "ca=127.0.0.1:8046", "ca=127.0.0.1:8041", "ca=127.0.0....
32.563265
84
0.586488
6,047
0.757959
0
0
0
0
0
0
621
0.077839
94ccca7ffc987cbe5df4c550743671afebadd79c
507
py
Python
benchmarks/models/__init__.py
maudl3116/GPS
381a8e209bfec4c06b43ed4b69445bdf5c365409
[ "Apache-2.0" ]
null
null
null
benchmarks/models/__init__.py
maudl3116/GPS
381a8e209bfec4c06b43ed4b69445bdf5c365409
[ "Apache-2.0" ]
null
null
null
benchmarks/models/__init__.py
maudl3116/GPS
381a8e209bfec4c06b43ed4b69445bdf5c365409
[ "Apache-2.0" ]
1
2021-01-30T12:58:46.000Z
2021-01-30T12:58:46.000Z
from .train_gpkconv1d import train_gpkconv1d_classifier from .train_gprnn import train_gprnn_classifier from .train_gpsig import train_gpsig_classifier from .train_gpsig_ import train_gpsig_classifier_ from .train_gpsig_regression import train_gpsig_regressor from .train_gpsig_vosf import train_gpsig_vosf_classifier ...
39
67
0.905325
0
0
0
0
0
0
0
0
0
0
94ce46151c1716825bf8cd7802cd6c9c77ce147e
1,640
py
Python
user/views.py
RadySonabu/ThesisAPI
dc986623ff8d831ced17396a1121d256fa1f66d6
[ "MIT" ]
null
null
null
user/views.py
RadySonabu/ThesisAPI
dc986623ff8d831ced17396a1121d256fa1f66d6
[ "MIT" ]
null
null
null
user/views.py
RadySonabu/ThesisAPI
dc986623ff8d831ced17396a1121d256fa1f66d6
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from rest_framework import generics from .models import MyUser from .forms.forms import UserRegisterForm, UpdateUserForm def register(request): if request.method == 'POST': form = UserRegisterForm(request.POST) if form.is_valid(): ...
27.333333
101
0.629268
0
0
0
0
0
0
0
0
410
0.25
94cfbf4917cc9d4f379b439e74351ccc9e7a2864
247
py
Python
backend/apis/pacient/admin.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
1
2020-10-17T03:39:56.000Z
2020-10-17T03:39:56.000Z
backend/apis/pacient/admin.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
null
null
null
backend/apis/pacient/admin.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
null
null
null
"""Admin de los pacientes""" # Django from django.contrib import admin # Modelos from apis.pacient.models import Pacient @admin.register(Pacient) class PacientsAdmin(admin.ModelAdmin): """Admin de pacientes""" list_display = ('user',)
17.642857
39
0.724696
96
0.388664
0
0
121
0.489879
0
0
75
0.303644
94d04637bffae0e0fc3be1a7c8a83bf0c64798a7
341
py
Python
Leetcode/532. K-diff Pairs in an Array/solution2.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/532. K-diff Pairs in an Array/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/532. K-diff Pairs in an Array/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
from collections import Counter class Solution: def findPairs(self, nums: List[int], k: int) -> int: counter = Counter(nums) if k == 0: return sum([counter[num] > 1 for num in counter]) elif k > 0: return sum([num + k in counter for num in set(nums)]) else: ...
26.230769
65
0.545455
306
0.897361
0
0
0
0
0
0
0
0
94d087215fbf2f5407c35967629e1295250a1425
1,660
py
Python
src/BanzaiDB/mapping.py
mscook/BanzaiDB
84d6402a3aecb16edca237bf3954abbf8a66fc6a
[ "ECL-2.0" ]
3
2015-04-27T02:16:42.000Z
2017-12-09T08:45:31.000Z
src/BanzaiDB/mapping.py
mscook/BanzaiDB
84d6402a3aecb16edca237bf3954abbf8a66fc6a
[ "ECL-2.0" ]
null
null
null
src/BanzaiDB/mapping.py
mscook/BanzaiDB
84d6402a3aecb16edca237bf3954abbf8a66fc6a
[ "ECL-2.0" ]
null
null
null
# Copyright 2013-2014 Mitchell Stanton-Cook Licensed under the # Educational Community 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.osedu.org/licenses/ECL-2.0 # # Unless required by applicable law or a...
34.583333
74
0.650602
0
0
0
0
0
0
0
0
890
0.536145
94d1665972f91bfcdbc4a5f569453d0ea57d3e9e
155
py
Python
res_mods/mods/packages/xvm_battle/python/__version__.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
res_mods/mods/packages/xvm_battle/python/__version__.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
1
2016-04-03T13:31:39.000Z
2016-04-03T16:48:26.000Z
res_mods/mods/packages/xvm_tooltips/python/__version__.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
# This file was created automatically from build script __revision__ = '7581' __branch__ = 'default' __node__ = 'c386bcd24648e215a00249e32d2d4bbd1a6992db'
31
55
0.819355
0
0
0
0
0
0
0
0
112
0.722581
94d29e2296f9233cdb585fa571d29d93761c5b3a
626
py
Python
src/smtv_api/setup_test_environment.py
AdamDomagalsky/smtv-micro-scpr
87195f4c0f738a687648b3218a0976c3450d0b6c
[ "Apache-2.0" ]
null
null
null
src/smtv_api/setup_test_environment.py
AdamDomagalsky/smtv-micro-scpr
87195f4c0f738a687648b3218a0976c3450d0b6c
[ "Apache-2.0" ]
null
null
null
src/smtv_api/setup_test_environment.py
AdamDomagalsky/smtv-micro-scpr
87195f4c0f738a687648b3218a0976c3450d0b6c
[ "Apache-2.0" ]
null
null
null
import os def pytest_configure(config: dict) -> None: setup() def setup() -> None: os.environ['AIRFLOW_API_ROOT_URL'] = 'http://test-airflow/api/experimental/' os.environ['API_DATABASE_URL'] = 'postgres://postgres:postgres@postgres:5432/postgres' os.environ['S3_ENDPOINT_URL'] = 'http://localhost:50...
31.3
90
0.693291
0
0
0
0
0
0
0
0
372
0.594249
94d4af3fad97a3a0b09ecceadcf7c059f78ba5ab
1,056
py
Python
Interview/Zupee/1_DsAlgo/code2.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Interview/Zupee/1_DsAlgo/code2.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Interview/Zupee/1_DsAlgo/code2.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
# You have given an array of non-negative integers. # Each element in the array represents your maximum jump length at that position, # you are initially positioned at the first index of the array. # Return the minimum number of jumps required to reach the last index. # If it is not possible to reach the last index, re...
29.333333
81
0.650568
0
0
0
0
0
0
0
0
812
0.768939
94d50451f51f25b4381946b320306f94fc198f0e
2,343
py
Python
Unfollowers For Inta/unfollowers.py
Kanishka-96/engineering-blog-samples
535d5ac2c905557f01b1112df35b2c725c21c719
[ "MIT" ]
null
null
null
Unfollowers For Inta/unfollowers.py
Kanishka-96/engineering-blog-samples
535d5ac2c905557f01b1112df35b2c725c21c719
[ "MIT" ]
null
null
null
Unfollowers For Inta/unfollowers.py
Kanishka-96/engineering-blog-samples
535d5ac2c905557f01b1112df35b2c725c21c719
[ "MIT" ]
null
null
null
from instagram_private_api import Client, ClientCompatPatch import numpy as np import time import getpass import sys def list_diff(li1, li2): li_dif = [i for i in li1 + li2 if i not in li1] return li_dif print("\n \nIMPORTANT DISCLAIMER: DO NOT USE THIS TOOL TOO FREQUENTLY (MORE THAN SEVERAL TIMES IN A M...
40.396552
149
0.737516
0
0
0
0
0
0
0
0
825
0.352113
94d7d35515c333dfd9a0474a1d86a98db0e415bf
3,259
py
Python
wikionary/wikionary.py
DedInc/wikionary
45d595044aa980d129479b6aff6c31c1b329e9d8
[ "MIT" ]
null
null
null
wikionary/wikionary.py
DedInc/wikionary
45d595044aa980d129479b6aff6c31c1b329e9d8
[ "MIT" ]
null
null
null
wikionary/wikionary.py
DedInc/wikionary
45d595044aa980d129479b6aff6c31c1b329e9d8
[ "MIT" ]
null
null
null
from lxml import html, etree from requests import get from urllib.parse import unquote agent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36' def getSy...
36.617978
230
0.567659
0
0
0
0
0
0
0
0
1,055
0.323421
94d910ff228a053d83d0e7d3ff441bc16db11713
88
py
Python
frictionless_dfour/__main__.py
cividi/frictionless-dfour
02e2a3720f980ca31ad5d5443980f8d9d399868b
[ "MIT" ]
2
2021-09-27T07:52:40.000Z
2021-12-13T12:56:18.000Z
frictionless_dfour/__main__.py
cividi/frictionless-dfour
02e2a3720f980ca31ad5d5443980f8d9d399868b
[ "MIT" ]
7
2021-07-30T09:56:33.000Z
2021-08-20T11:43:04.000Z
frictionless_dfour/__main__.py
cividi/frictionless-dfour
02e2a3720f980ca31ad5d5443980f8d9d399868b
[ "MIT" ]
null
null
null
from .program import program if __name__ == "__main__": program(prog_name="dfour")
17.6
30
0.715909
0
0
0
0
0
0
0
0
17
0.193182
94da001e21816a78cf7e5e0028d8f8b03ea11e1b
3,144
py
Python
tennis/Player.py
reecebenson/DADSA-Tennis-PartB
59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8
[ "MIT" ]
null
null
null
tennis/Player.py
reecebenson/DADSA-Tennis-PartB
59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8
[ "MIT" ]
null
null
null
tennis/Player.py
reecebenson/DADSA-Tennis-PartB
59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8
[ "MIT" ]
null
null
null
""" # Data Structures and Algorithms - Part B # Created by Reece Benson (16021424) """ class Player(): name = None gender = None season = None win_count = None lost_count = None total_win_count = None total_lost_count = None total_money = None in_first_16 = None def __init__(...
31.44
63
0.630725
3,054
0.971374
0
0
0
0
0
0
88
0.02799
94dac3b4eafe4e1f3cf44a39e7110d561f9e7e30
17,728
py
Python
scripts/analysis_wfc3.py
Lachimax/COMP777
9bf73cc451e1353763fa47ae124062b53bf09ded
[ "CC0-1.0" ]
null
null
null
scripts/analysis_wfc3.py
Lachimax/COMP777
9bf73cc451e1353763fa47ae124062b53bf09ded
[ "CC0-1.0" ]
null
null
null
scripts/analysis_wfc3.py
Lachimax/COMP777
9bf73cc451e1353763fa47ae124062b53bf09ded
[ "CC0-1.0" ]
null
null
null
# Code by Lachlan Marnoch, 2018 import numpy as np import matplotlib.pyplot as plt # import math as m from astropy import wcs from astropy.coordinates import SkyCoord from astropy.io import fits import random as r def sub_stars(condition): subtract = np.zeros(len(B), dtype=bool) # Set seed for replicability ...
32.52844
119
0.668152
0
0
0
0
0
0
0
0
6,247
0.35238
94dd6870e70005057e8cff11eab7a5220bef77b3
435
py
Python
spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
5
2019-06-24T14:15:54.000Z
2021-05-14T23:16:31.000Z
spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
2
2018-06-19T09:56:18.000Z
2018-11-20T12:02:44.000Z
spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-11 20:15 import jsonfield.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('spider_tags', '0004_auto_20190117_1253'), ] operations = [ migrations.AddField( model_name='spidertag', ...
21.75
71
0.632184
326
0.749425
0
0
0
0
0
0
111
0.255172
94ddbc269422cd58ff07684a2795facf93d242e3
449
py
Python
rpi_object_detection_opencv_python/picamera/camera.py
altanai/Ramudroid
7594ccad895871dc52ed636b23ab18d7030ec679
[ "MIT" ]
15
2019-07-23T01:47:56.000Z
2021-12-14T22:51:33.000Z
webrtc_stream_objectdetection/rpi_object_detection_opencv_python/picamera/camera.py
Ramudroid/Ramudroid
10425397b68763e0a8e89e2a949df737d7e945ee
[ "MIT" ]
4
2019-11-17T12:32:45.000Z
2021-12-13T20:19:00.000Z
webrtc_stream_objectdetection/rpi_object_detection_opencv_python/picamera/camera.py
Ramudroid/Ramudroid
10425397b68763e0a8e89e2a949df737d7e945ee
[ "MIT" ]
6
2019-07-23T01:48:03.000Z
2022-03-03T03:28:24.000Z
from picamera import PiCamera from time import sleep camera = PiCamera() # preview # camera.start_preview() # sleep(5) # camera.stop_preview() # take 5 pics camera.start_preview() for i in range(5): sleep(5) camera.capture('/home/pi/Desktop/image%s.jpg' % i) camera.stop_preview() # video record # camera.sta...
19.521739
55
0.726058
0
0
0
0
0
0
0
0
260
0.579065
94de5ebc7c73b43d6ef0f7006cc1fd474681a311
5,466
py
Python
mod/db/models.py
MoreliaTalk/Server
5d42cf999682271ef8d54b5c6e09f06bed08d946
[ "Unlicense" ]
null
null
null
mod/db/models.py
MoreliaTalk/Server
5d42cf999682271ef8d54b5c6e09f06bed08d946
[ "Unlicense" ]
null
null
null
mod/db/models.py
MoreliaTalk/Server
5d42cf999682271ef8d54b5c6e09f06bed08d946
[ "Unlicense" ]
null
null
null
""" Copyright (c) 2020 - present NekrodNIK, Stepan Skriabin, rus-ai and other. Look at the file AUTHORS.md(located at the root of the project) to get the full list. This file is part of Morelia Server. Morelia Server is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General ...
40.488889
79
0.679839
4,582
0.838273
0
0
0
0
0
0
3,757
0.68734
94dfdb1b54e79583c61a59cf0f6bbffe1fd6e3cf
13,086
py
Python
numerics/ODE.py
MGokcayK/numerics
17d199f475a004911359db568d7b83939aa12481
[ "MIT" ]
null
null
null
numerics/ODE.py
MGokcayK/numerics
17d199f475a004911359db568d7b83939aa12481
[ "MIT" ]
null
null
null
numerics/ODE.py
MGokcayK/numerics
17d199f475a004911359db568d7b83939aa12481
[ "MIT" ]
null
null
null
""" Author : Mehmet Gokcay Kabatas Mail : mgokcaykdev@gmail.com Version : 0.1 Date : 04/12/2019 Update : 14/12/2019 Python : 3.6.5 Update Note : Arranging system of ODE methods and descriptions. This script written by @Author for personal usage. Prerequest : numpy """ import numpy as np class...
25.558594
120
0.404707
12,749
0.974247
0
0
0
0
0
0
7,885
0.602552
94e0a76fde2cf1e193101637e66e23379e96d8e0
224
py
Python
cookiecutter-django-app/{{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/__init__.py
ghassanmas/edx-cookiecutters
b186021f7322d9c493f1875fff797ebae33157b0
[ "Apache-2.0" ]
23
2016-09-13T17:57:46.000Z
2020-03-29T09:30:48.000Z
cookiecutter-django-app/{{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/__init__.py
ghassanmas/edx-cookiecutters
b186021f7322d9c493f1875fff797ebae33157b0
[ "Apache-2.0" ]
40
2020-05-11T16:50:12.000Z
2021-12-20T02:19:23.000Z
cookiecutter-django-app/{{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/__init__.py
ghassanmas/edx-cookiecutters
b186021f7322d9c493f1875fff797ebae33157b0
[ "Apache-2.0" ]
7
2017-05-31T14:13:52.000Z
2020-05-12T21:18:48.000Z
""" {{ cookiecutter.project_short_description }}. """ __version__ = '{{ cookiecutter.version }}' default_app_config = '{{ cookiecutter.app_name }}.apps.{{ cookiecutter.config_class_name }}' # pylint: disable=invalid-name
28
124
0.723214
0
0
0
0
0
0
0
0
182
0.8125
94e12cd9710f6c79b7d5368f138b150067c7b158
6,314
py
Python
Bot/cogs/search.py
andrewlee91/DiscordBot
b20cfa95f90e0a7299a9f117eca48fc2c59adf9f
[ "MIT" ]
null
null
null
Bot/cogs/search.py
andrewlee91/DiscordBot
b20cfa95f90e0a7299a9f117eca48fc2c59adf9f
[ "MIT" ]
null
null
null
Bot/cogs/search.py
andrewlee91/DiscordBot
b20cfa95f90e0a7299a9f117eca48fc2c59adf9f
[ "MIT" ]
null
null
null
import json import logging import discord import requests from discord.ext import commands logger = logging.getLogger(__name__) class search(commands.Cog): """Search commands for various websites""" def __init__(self, bot): self.bot = bot @commands.command() async def urban(self, ctx, *, t...
32.885417
92
0.509819
6,134
0.971492
0
0
5,989
0.948527
5,917
0.937124
2,534
0.40133
94e2484bd934870ec83c679e77977061aaba0d29
6,867
py
Python
adbiclient/adbi/adbi.py
Samsung/ADBI
3e424c45386b0a36c57211da819021cb1929775a
[ "Apache-2.0" ]
312
2016-02-04T11:03:17.000Z
2022-03-18T11:30:10.000Z
adbiclient/adbi/adbi.py
NickHardwood/ADBI
3e424c45386b0a36c57211da819021cb1929775a
[ "Apache-2.0" ]
4
2016-02-04T11:05:40.000Z
2017-07-27T04:22:27.000Z
adbiclient/adbi/adbi.py
NickHardwood/ADBI
3e424c45386b0a36c57211da819021cb1929775a
[ "Apache-2.0" ]
85
2016-02-04T12:48:30.000Z
2021-01-14T06:23:24.000Z
from rsock import ReliableSocket from packet import Packet, Header, Payload from collections import namedtuple import struct Symbol = namedtuple('Symbol', 'address name') Tracepoint = namedtuple('Tracepoint', 'address handler') Injectable = namedtuple('Injectable', 'id filename refs type name comment') class ADBIExce...
33.014423
92
0.567642
6,559
0.955148
1,900
0.276686
346
0.050386
0
0
680
0.099024
94e42a20e811b3c4c8adc67aee484d21ee61eb8f
432
py
Python
src/pythonFEA/templates/property.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
src/pythonFEA/templates/property.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
src/pythonFEA/templates/property.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
from .errors import * from .basic import Basic import logging class Property(Basic): command = 'PROPERTY' type = 'Property' storage_type = 'label' def __init__(self, label, non_structural_mass = 0.0): super().__init__(id=None, label=label) self.nsm = non_structural_mass @property def nsm(self): ...
19.636364
55
0.708333
367
0.849537
0
0
134
0.310185
0
0
27
0.0625
94e46dab588b249b888b14d393509caa3e2c7213
1,042
py
Python
deque.py
iliankostadinov/hackerrank-python
4082eb5a6da7ab11ead9b687fdc2d9a846f59f99
[ "Apache-2.0" ]
null
null
null
deque.py
iliankostadinov/hackerrank-python
4082eb5a6da7ab11ead9b687fdc2d9a846f59f99
[ "Apache-2.0" ]
null
null
null
deque.py
iliankostadinov/hackerrank-python
4082eb5a6da7ab11ead9b687fdc2d9a846f59f99
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from collections import deque def pilingUp(q): if len(d) > 1: value = "Yes" currentEl = 0 if d[0] > d[-1]: currentEl = d[0] d.popleft() else: currentEl = d[-1] d.pop() for _ in range(len(d) - 1): ...
22.170213
50
0.432821
0
0
0
0
0
0
0
0
133
0.127639
94e47510d912939867b8bf4137069b8df856ea63
12,864
py
Python
Psience/DVR/BaseDVR.py
McCoyGroup/Coordinerds
058a4f5b29f157e499cec3c8f2da8b216f0210ef
[ "MIT" ]
null
null
null
Psience/DVR/BaseDVR.py
McCoyGroup/Coordinerds
058a4f5b29f157e499cec3c8f2da8b216f0210ef
[ "MIT" ]
null
null
null
Psience/DVR/BaseDVR.py
McCoyGroup/Coordinerds
058a4f5b29f157e499cec3c8f2da8b216f0210ef
[ "MIT" ]
null
null
null
""" Redoes what was originally PyDVR but in the _right_ way using proper subclassing and abstract properties """ import abc, numpy as np, scipy.sparse as sp, scipy.interpolate as interp from McUtils.Data import UnitsData __all__ = ["BaseDVR", "DVRResults", "DVRException"] class BaseDVR(metaclass=abc.ABCMeta): "...
32.900256
125
0.54773
12,580
0.977923
0
0
409
0.031794
0
0
3,609
0.28055
94e54ce08093f7eeec968430ff2c16c5e73a50b8
3,802
py
Python
Weight-Converter-GUI/weight_con_gui.py
avinashkranjan/PraticalPythonProjects
12c1f7cedae57a843ceb6aba68cca48df505f341
[ "MIT" ]
930
2020-09-05T22:07:28.000Z
2022-03-30T07:56:18.000Z
Weight-Converter-GUI/weight_con_gui.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
893
2020-09-04T07:57:24.000Z
2022-02-08T02:12:26.000Z
Weight-Converter-GUI/weight_con_gui.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
497
2020-09-05T08:16:24.000Z
2022-03-31T00:55:57.000Z
# import libraries from tkinter import * # initialized window root = Tk() root.geometry('480x350') root.resizable(0, 0) root.title('Weight Converter') # defining the function for converting weights def WeightConv(): # making textbox user-friendly that is editable t1.configure(state='normal') t1.delete(...
26.964539
76
0.653603
0
0
0
0
0
0
0
0
1,039
0.273277
94e8d2a632eeca6338d3e4d6466fdec1e8bb6e14
3,789
py
Python
tests/common/test_op/ascend/pooling.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/pooling.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/pooling.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
36.432692
84
0.611771
0
0
0
0
1,949
0.514384
0
0
1,998
0.527316
94e94b722e8d9c3a8b216d12bcf8c0b49e28c1e0
363
py
Python
testing/test_caching_obj.py
jkpubsrc/python-module-jk-cachefunccalls
f49779001b7b19a460155d8bd2cbf5e22b5c947d
[ "Apache-1.1" ]
null
null
null
testing/test_caching_obj.py
jkpubsrc/python-module-jk-cachefunccalls
f49779001b7b19a460155d8bd2cbf5e22b5c947d
[ "Apache-1.1" ]
null
null
null
testing/test_caching_obj.py
jkpubsrc/python-module-jk-cachefunccalls
f49779001b7b19a460155d8bd2cbf5e22b5c947d
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python3 import collections import typing import inspect import time from jk_cachefunccalls import cacheCalls from _test_and_evaluate import testAndEvaluate class MyTestClass(object): @cacheCalls(seconds=2, dependArgs=[0]) def returnSomething(self, n): return time.time() # # o = MyTestClass(...
10.371429
46
0.760331
122
0.336088
0
0
90
0.247934
0
0
20
0.055096
94ec60d726d1c7025eb5dc2c24a497e98d0c9056
15,039
py
Python
Ch18/gpc.py
quietcoolwu/MLCode
b4bdb7ee3468da597e5d16cfb58728e3c29ca889
[ "Xnet", "X11" ]
null
null
null
Ch18/gpc.py
quietcoolwu/MLCode
b4bdb7ee3468da597e5d16cfb58728e3c29ca889
[ "Xnet", "X11" ]
null
null
null
Ch18/gpc.py
quietcoolwu/MLCode
b4bdb7ee3468da597e5d16cfb58728e3c29ca889
[ "Xnet", "X11" ]
null
null
null
# Code from Chapter 18 of Machine Learning: An Algorithmic Perspective (2nd Edition) # by Stephen Marsland (http://stephenmonika.net) # You are free to use, change, or redistribute the code in any way you wish for # non-commercial purposes, but please maintain the name of the original author. # This code comes with no...
37.041872
122
0.541924
0
0
0
0
0
0
0
0
2,449
0.162843
94ee81700cccc92d145a91273dcbf30469d045b5
2,130
py
Python
MoinMoin/datastruct/backends/composite_groups.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
1
2016-04-01T04:02:28.000Z
2016-04-01T04:02:28.000Z
Documentation/ManualSource/wikicmd/MoinMoin/datastruct/backends/composite_groups.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
3
2020-06-26T21:21:32.000Z
2020-06-26T21:21:36.000Z
Documentation/ManualSource/wikicmd/MoinMoin/datastruct/backends/composite_groups.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
2
2017-01-25T20:06:44.000Z
2021-03-25T18:39:55.000Z
# -*- coding: iso-8859-1 -*- """ MoinMoin - group access via various backends. The composite_groups is a backend that does not have direct storage, but composes other backends to a new one, so group definitions are retrieved from several backends. This allows to mix different backends. @copyright: 2009 DmitrijsMilaje...
30
82
0.630516
1,676
0.786854
542
0.25446
0
0
0
0
1,053
0.494366
94ef7d0044d15bba93e634290af3a6fddf02e79a
15,192
py
Python
experiments/distributed/detection/main_fedavg_fasterrcnn.py
RicardLake/FedDetection
a4004593a4d07126447db73b98b53a7e56e0472b
[ "MIT" ]
null
null
null
experiments/distributed/detection/main_fedavg_fasterrcnn.py
RicardLake/FedDetection
a4004593a4d07126447db73b98b53a7e56e0472b
[ "MIT" ]
null
null
null
experiments/distributed/detection/main_fedavg_fasterrcnn.py
RicardLake/FedDetection
a4004593a4d07126447db73b98b53a7e56e0472b
[ "MIT" ]
null
null
null
import argparse import logging import os import random import socket import sys import datetime import numpy as np import psutil import setproctitle import torch import torchvision.models #import wandb # add the FedML root directory to the python path sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), "../...
45.349254
154
0.635729
0
0
0
0
0
0
0
0
5,874
0.386651
94f1a97363b5f6d9cb9e80535531efb052a4d58d
1,678
py
Python
src/ship_detector/main.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
1
2019-11-28T02:39:31.000Z
2019-11-28T02:39:31.000Z
src/ship_detector/main.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
null
null
null
src/ship_detector/main.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
null
null
null
# standard libraries import time # non-standard libraries from sklearn.linear_model import LogisticRegression # all of the local modules from prep_data import read_images, dataset_split from explore_data import array_info, image_info from models import run_model from assess_model import count_time, roc_assess, F1sco...
29.438596
151
0.722884
0
0
0
0
0
0
0
0
652
0.388558
94f1ff09cb84288db3c23319870e98e03bf23f8d
17,246
py
Python
panic/gui/actions.py
MaxIV-KitsControls/app-cells-panicgui
58c5610970135e6fbb7b715094514b33bc1bc9c1
[ "CC-BY-3.0" ]
1
2019-09-20T08:10:32.000Z
2019-09-20T08:10:32.000Z
panic/gui/actions.py
MaxIV-KitsControls/app-cells-panicgui
58c5610970135e6fbb7b715094514b33bc1bc9c1
[ "CC-BY-3.0" ]
null
null
null
panic/gui/actions.py
MaxIV-KitsControls/app-cells-panicgui
58c5610970135e6fbb7b715094514b33bc1bc9c1
[ "CC-BY-3.0" ]
null
null
null
""" This file belongs to the PANIC Alarm Suite, developed by ALBA Synchrotron for Tango Control System GPL Licensed """ import sys, re, os, traceback, time import PyTango, fandango from fandango.functional import * from fandango import Catched import taurus, taurus.qt.qtgui.base from taurus.core import TaurusEventTy...
39.195455
85
0.548591
9,317
0.540241
0
0
3,655
0.211933
0
0
3,062
0.177548
94f3547b6d861aa035a7b7758d5e02a28082e623
197
py
Python
application.py
phenopolis/phenopolis_genomics_browser
b67778fac41d16445eb983af9c505ef17e1949b2
[ "MIT" ]
3
2021-11-20T04:52:32.000Z
2022-03-21T17:42:30.000Z
application.py
phenopolis/phenopolis_genomics_browser
b67778fac41d16445eb983af9c505ef17e1949b2
[ "MIT" ]
21
2021-10-20T16:39:38.000Z
2022-03-04T12:47:46.000Z
application.py
phenopolis/phenopolis_genomics_browser
b67778fac41d16445eb983af9c505ef17e1949b2
[ "MIT" ]
null
null
null
""" Flask app """ from views import APP_ENV, application if __name__ == "__main__": application.debug = False if APP_ENV == "debug": application.debug = True application.run()
17.909091
38
0.649746
0
0
0
0
0
0
0
0
34
0.172589
94f38c4de85964984884d82f381aa9b84ed0adc1
521
py
Python
Leetcoding-Actions/Explore-Monthly-Challenges/2020-08/29-pancake-sorting.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
Leetcoding-Actions/Explore-Monthly-Challenges/2020-08/29-pancake-sorting.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
Leetcoding-Actions/Explore-Monthly-Challenges/2020-08/29-pancake-sorting.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
class Solution: def pancakeSort(self, A: List[int]) -> List[int]: result = [] def flip(idx): for i in range(0, idx//2+1): temp = A[i] A[i] = A[idx-i] A[idx-i] = temp for i in range(len(A)-1, 0, -1): for j in range(1, i+1...
28.944444
53
0.372361
520
0.998081
0
0
0
0
0
0
0
0
94f3b18944a11c75445cef1a85dda665ee609119
46,746
py
Python
lib/jnpr/healthbot/swagger/api/organization_api.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
10
2019-10-23T12:54:37.000Z
2022-02-07T19:24:30.000Z
lib/jnpr/healthbot/swagger/api/organization_api.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
5
2019-09-30T04:29:25.000Z
2022-02-16T12:21:06.000Z
lib/jnpr/healthbot/swagger/api/organization_api.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
4
2019-09-30T01:17:48.000Z
2020-08-25T07:27:54.000Z
# coding: utf-8 """ Paragon Insights APIs API interface for PI application # noqa: E501 OpenAPI spec version: 4.0.0 Contact: healthbot-feedback@juniper.net Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # py...
46.980905
164
0.648013
46,313
0.990737
0
0
0
0
0
0
25,688
0.549523
94f3f49e86448de339f43f2ca616b2920b9513bb
465
py
Python
json/utils.py
verbalsaintmars/python_util
3cc018f36607e3f4715bb96cb76ec7097838b1ce
[ "MIT" ]
null
null
null
json/utils.py
verbalsaintmars/python_util
3cc018f36607e3f4715bb96cb76ec7097838b1ce
[ "MIT" ]
null
null
null
json/utils.py
verbalsaintmars/python_util
3cc018f36607e3f4715bb96cb76ec7097838b1ce
[ "MIT" ]
null
null
null
import json def create_json(input): return json.load(input) def extract_value(expect_keys, json_dict): """ expect_keys: tuple , e.g ("nodeuser", "user") return: None if no value, else value """ temp_val = json_dict.get(expect_keys[0]) if isinstance(temp_val, dict) and len(expect_keys) >...
22.142857
59
0.649462
0
0
0
0
0
0
0
0
102
0.219355
94f4ba6ed64d50cbeeb879a9d70560a5dacf3d3b
321
py
Python
rssant_worker/main.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
1,176
2019-12-24T01:51:22.000Z
2022-03-29T06:00:25.000Z
rssant_worker/main.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
33
2020-03-06T03:29:46.000Z
2022-03-11T06:24:26.000Z
rssant_worker/main.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
110
2019-12-29T05:49:24.000Z
2022-03-28T06:44:21.000Z
import os if os.getenv('MODULE_GRAPH_HOOKER') in ('1', 'true', 'True'): import module_graph module_graph.setup_hooker(save_to='data/rssant_worker_module_graph.json', verbose=True) from rssant_common.actor_helper import start_actor # noqa: F402 if __name__ == "__main__": start_actor('worker', port=6792)...
26.75
91
0.744548
0
0
0
0
0
0
0
0
104
0.323988
94f4ddecf6b729fadb8142b50b2738a3b687fb16
6,816
py
Python
index_server/containers/bgsplit_mapper/handler.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
1
2020-12-01T23:25:58.000Z
2020-12-01T23:25:58.000Z
index_server/containers/bgsplit_mapper/handler.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
2
2020-10-07T01:03:06.000Z
2020-10-12T19:08:55.000Z
index_server/containers/bgsplit_mapper/handler.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
null
null
null
import numpy as np import aiohttp import asyncio import os.path from pathlib import Path import torch import torch.nn.functional as F from torchvision import transforms, utils, io from typing import Dict, List, Optional, Tuple, Union, Any from enum import Enum from knn import utils from knn.mappers import Mapper from ...
36.063492
89
0.577171
6,394
0.938087
0
0
1,476
0.216549
6,061
0.889231
588
0.086268
94f52a5e553ca733b3138d1b081bb226e35c66cc
17,794
py
Python
generated-libraries/python/netapp/volume/volume_attributes.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/volume/volume_attributes.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/volume/volume_attributes.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.volume.volume_hybrid_cache_attributes import VolumeHybridCacheAttributes from netapp.volume.volume_mirror_attributes import VolumeMirrorAttributes from netapp.volume.volume_space_attributes import VolumeSpaceAttributes from netapp.volume.volume_directory_attributes import VolumeDirectoryAttributes from neta...
41.868235
143
0.694785
15,958
0.896819
0
0
11,041
0.62049
0
0
6,056
0.340339
94f9d7fbfdb6b3a2de5dcc04f68b6e728b2be5ff
4,517
py
Python
bin/plot_matches.py
hidden-ar/OpenSfM
3ea1216d4dedc94b93ea9f7aa51cd8efd7377922
[ "BSD-2-Clause" ]
null
null
null
bin/plot_matches.py
hidden-ar/OpenSfM
3ea1216d4dedc94b93ea9f7aa51cd8efd7377922
[ "BSD-2-Clause" ]
null
null
null
bin/plot_matches.py
hidden-ar/OpenSfM
3ea1216d4dedc94b93ea9f7aa51cd8efd7377922
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import os.path from itertools import combinations import matplotlib.cm as cm import matplotlib.pyplot as pl import numpy as np from opensfm import dataset from opensfm import features from opensfm import io from numpy import ndarray from typing import List def plot_matches(im1...
33.213235
88
0.593314
0
0
0
0
0
0
0
0
559
0.123755
94fa2681b04226b78da641bf14ffbff25cef7b0f
3,738
py
Python
sarabande/.ipynb_checkpoints/main-checkpoint.py
James11222/sarabande
387cafede311be8c7069e5ae6fe3cf42c198ccda
[ "MIT" ]
null
null
null
sarabande/.ipynb_checkpoints/main-checkpoint.py
James11222/sarabande
387cafede311be8c7069e5ae6fe3cf42c198ccda
[ "MIT" ]
null
null
null
sarabande/.ipynb_checkpoints/main-checkpoint.py
James11222/sarabande
387cafede311be8c7069e5ae6fe3cf42c198ccda
[ "MIT" ]
null
null
null
import numpy as np from subprocess import call import astropy.io.fits as pyf import time from .utils import * class measure: def __init__(self, nPCF=4, projected=False, m_max=None, density_field_data = None, save_dir=None, save_name=None, ell_max=5, nbins=4, bin_spacing='LIN',bin_min=1, physi...
46.148148
142
0.578384
3,604
0.964152
0
0
0
0
0
0
1,165
0.311664
94fa2e14e0d1dfe16f4c15a317e698c6a669286d
133
py
Python
main (31).py
alyizzet/Python_Programming_Exercises
96cc7ab6a760d58a8a08d511d834d13b162cf794
[ "Apache-2.0" ]
null
null
null
main (31).py
alyizzet/Python_Programming_Exercises
96cc7ab6a760d58a8a08d511d834d13b162cf794
[ "Apache-2.0" ]
null
null
null
main (31).py
alyizzet/Python_Programming_Exercises
96cc7ab6a760d58a8a08d511d834d13b162cf794
[ "Apache-2.0" ]
null
null
null
def swap_columns(M, m, n, i, j): x = 0 while x < len(M): M[x][i], M[x][j] = M[x][j], M[x][i] x = x +1 return print(M)
16.625
39
0.443609
0
0
0
0
0
0
0
0
0
0
94fb48e24e8d440a0f32b5d2f24b262ed6774874
9,631
py
Python
lib/aggregate_all_epitopes.py
mrichters/pVACtools
1e86411055b3da9f81f966e83578dfadc3883498
[ "BSD-3-Clause-Clear" ]
96
2017-11-06T18:53:19.000Z
2022-02-28T07:36:12.000Z
lib/aggregate_all_epitopes.py
mrichters/pVACtools
1e86411055b3da9f81f966e83578dfadc3883498
[ "BSD-3-Clause-Clear" ]
521
2017-11-29T16:27:54.000Z
2022-03-30T13:57:38.000Z
lib/aggregate_all_epitopes.py
mrichters/pVACtools
1e86411055b3da9f81f966e83578dfadc3883498
[ "BSD-3-Clause-Clear" ]
53
2017-11-29T19:40:27.000Z
2022-01-14T16:51:12.000Z
import pandas as pd import numpy as np class AggregateAllEpitopes: def __init__(self, input_file, output_file, file_type='pVACseq'): self.input_file = input_file self.output_file = output_file self.file_type = file_type #assign mutations to a "Classification" based on their favorabilit...
44.382488
208
0.553214
9,590
0.995743
0
0
0
0
0
0
3,186
0.330807
94fb7a6413d1406843ebe3c5eaf0726aecee2e7a
2,600
py
Python
profiles_api/views.py
teomoney1999/profiles-rest-api-final
452f70f06abd423c61e8a8153a6ff64abd2730b0
[ "MIT" ]
null
null
null
profiles_api/views.py
teomoney1999/profiles-rest-api-final
452f70f06abd423c61e8a8153a6ff64abd2730b0
[ "MIT" ]
7
2020-06-06T01:55:15.000Z
2022-02-10T13:59:01.000Z
profiles_api/views.py
teomoney1999/profiles-rest-api-final
452f70f06abd423c61e8a8153a6ff64abd2730b0
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response """List of HTTP status code""" from rest_framework import status from profiles_api import serializer from rest_framework import viewsets class HelloApiView(APIView): """Test API View""" serializer_class = serializer.HelloSerial...
28.26087
74
0.706154
2,369
0.911154
0
0
0
0
0
0
963
0.370385
94fcd28600d0a6e91aed228789715089ef0fff56
3,624
py
Python
PRM_Django_REST_API/projects/models.py
maciejKusy/Project_Risk_Management_Django_REST_API
f654a3dedbe395d5ad80a3572e22bc0502326a48
[ "MIT" ]
null
null
null
PRM_Django_REST_API/projects/models.py
maciejKusy/Project_Risk_Management_Django_REST_API
f654a3dedbe395d5ad80a3572e22bc0502326a48
[ "MIT" ]
null
null
null
PRM_Django_REST_API/projects/models.py
maciejKusy/Project_Risk_Management_Django_REST_API
f654a3dedbe395d5ad80a3572e22bc0502326a48
[ "MIT" ]
null
null
null
from django.db import models from django.utils.datetime_safe import datetime from simple_history.models import HistoricalRecords class Project(models.Model): """ Used to house information pertaining to a particular project. The below fields are the bare minimum - additional relevant fields can be added. ...
37.360825
116
0.564018
3,489
0.962748
0
0
1,498
0.413355
0
0
769
0.212196
94ff17cb22d926e85be26c7e19448a851ae82e4b
309
py
Python
mowgli_etl/loader/json/json_node_loader.py
tetherless-world/mowgli
28c19eba41e03e053ae4addff56a313d926e18d7
[ "MIT" ]
4
2021-01-15T15:36:23.000Z
2021-09-01T06:52:05.000Z
mowgli_etl/loader/json/json_node_loader.py
tetherless-world/mowgli
28c19eba41e03e053ae4addff56a313d926e18d7
[ "MIT" ]
63
2020-05-04T13:48:04.000Z
2020-06-06T02:32:58.000Z
mowgli_etl/loader/json/json_node_loader.py
tetherless-world/mowgli-etl
28c19eba41e03e053ae4addff56a313d926e18d7
[ "MIT" ]
null
null
null
from mowgli_etl.loader._kg_node_loader import _KgNodeLoader from mowgli_etl.loader.json._json_loader import _JsonLoader class JsonNodeLoader(_KgNodeLoader, _JsonLoader): _JSON_FILE_NAME = "nodes.json" close = _JsonLoader.close load_kg_node = _JsonLoader._load_model open = _JsonLoader.open
28.090909
59
0.802589
185
0.598706
0
0
0
0
0
0
12
0.038835
a20090b70ca8a9617c581b36665d20b93d432a85
234
py
Python
class1/p29_add_subtract_multiply_divide.py
anlei2014/ML-code
4f501720ee94abc27534cf0aa7c30a8ecbf62398
[ "MIT" ]
null
null
null
class1/p29_add_subtract_multiply_divide.py
anlei2014/ML-code
4f501720ee94abc27534cf0aa7c30a8ecbf62398
[ "MIT" ]
null
null
null
class1/p29_add_subtract_multiply_divide.py
anlei2014/ML-code
4f501720ee94abc27534cf0aa7c30a8ecbf62398
[ "MIT" ]
null
null
null
import tensorflow as tf a = tf.ones([1, 3]) b = tf.fill([1, 3], 3.) print("a:", a) print("b:", b) print("a+b:", tf.add(a, b)) print("a-b:", tf.subtract(a, b)) print("a*b:", tf.multiply(a, b)) print("b/a:", tf.divide(b, a))
21.272727
33
0.521368
0
0
0
0
0
0
0
0
32
0.136752
a201fccda177475fd273262409fcc95c610514db
1,823
py
Python
tools/building_script/native_method_collector/base_native_method_collector.py
zhouyanlt/llbc
a8cc4662401e9b077be7ee0058350b35fdd86060
[ "MIT" ]
83
2015-11-10T09:52:56.000Z
2022-01-12T11:53:01.000Z
tools/building_script/native_method_collector/base_native_method_collector.py
zhouyanlt/llbc
a8cc4662401e9b077be7ee0058350b35fdd86060
[ "MIT" ]
30
2017-09-30T07:43:20.000Z
2022-01-23T13:18:48.000Z
tools/building_script/native_method_collector/base_native_method_collector.py
caochunxi/llbc
2ff4af937f1635be67a7e24602d0a3e87c708ba7
[ "MIT" ]
34
2015-11-14T12:37:44.000Z
2021-12-16T02:38:36.000Z
# -*- coding: utf-8 -*- """ 基础native方法收集器,完成c/c++native方法收集,并整合到对应的脚本语言中 """ import re from os import path as op from cpputils import * from c import Cfg from defs import LangType class BaseNativeMethodCollector(object): def __init__(self, search_path, classname_base=None, filename_base=None): self.sea...
32.553571
151
0.660998
1,649
0.872949
0
0
0
0
0
0
367
0.194283
a20244ac84e009282501e8057bf8b16d29cf894f
2,490
py
Python
aries_cloudagent/vc/tests/document_loader.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/vc/tests/document_loader.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
8
2021-07-27T01:13:56.000Z
2022-03-15T01:12:40.000Z
aries_cloudagent/vc/tests/document_loader.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
1
2022-02-02T17:05:27.000Z
2022-02-02T17:05:27.000Z
from .contexts import ( DID_V1, SECURITY_V1, SECURITY_V2, SECURITY_V3_UNSTABLE, CREDENTIALS_V1, EXAMPLES_V1, BBS_V1, CITIZENSHIP_V1, ODRL, SCHEMA_ORG, ) from ..ld_proofs.constants import ( SECURITY_CONTEXT_V2_URL, SECURITY_CONTEXT_V1_URL, DID_V1_CONTEXT_URL, SECUR...
34.583333
148
0.736145
0
0
0
0
0
0
0
0
453
0.181928
a203cf5cfdc6a8501d530dc5088e0a158e658e1d
288
py
Python
pandoc/filters/codeblocks_common.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
13
2016-09-24T02:20:59.000Z
2017-04-27T09:15:02.000Z
pandoc/filters/codeblocks_common.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
null
null
null
pandoc/filters/codeblocks_common.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
1
2019-01-28T06:17:15.000Z
2019-01-28T06:17:15.000Z
from collections import OrderedDict def parse_codeblock_args(elem): syntax = elem.classes[0] if elem.classes else '' args = OrderedDict(elem.attributes) for k, v in args.items(): if v.lower() in ('false', 'no'): args[k] = False return syntax, args
22.153846
52
0.631944
0
0
0
0
0
0
0
0
13
0.045139
a2044c1186ed483ffd6b0bcb3da7937d377f7460
1,740
py
Python
openconfig/ydk/models/openconfig/openconfig_aaa.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
177
2016-03-15T17:03:51.000Z
2022-03-18T16:48:44.000Z
openconfig/ydk/models/openconfig/openconfig_aaa.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
18
2016-03-30T10:45:22.000Z
2020-07-14T16:28:13.000Z
openconfig/ydk/models/openconfig/openconfig_aaa.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
85
2016-03-16T20:38:57.000Z
2022-02-22T04:26:02.000Z
""" openconfig_aaa This module defines configuration and operational state data related to authorization, authentication, and accounting (AAA) management. Portions of this model reuse data definitions or structure from RFC 7317 \- A YANG Data Model for System Management """ import sys from collections import Ordere...
26.769231
126
0.697701
893
0.513218
0
0
0
0
0
0
653
0.375287
a2069227330d2f68ac9581598475c67af9bc9bb2
361
py
Python
python/libfuzzer/python-atheris/src/mayhemit.py
ForAllSecure/mayhem-examples
bae123373c7e760c8b0ea0d9fb182f6acfbe5381
[ "MIT" ]
null
null
null
python/libfuzzer/python-atheris/src/mayhemit.py
ForAllSecure/mayhem-examples
bae123373c7e760c8b0ea0d9fb182f6acfbe5381
[ "MIT" ]
null
null
null
python/libfuzzer/python-atheris/src/mayhemit.py
ForAllSecure/mayhem-examples
bae123373c7e760c8b0ea0d9fb182f6acfbe5381
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 import atheris import sys import os def TestOneInput(data): if len(data) >= 3 : if data[0] == ord('b'): if data[1] == ord('u'): if data[2] == ord('g'): raise Exception("Made it to the bug!") atheris.instrument_all() atheris.Setu...
21.235294
58
0.556787
0
0
0
0
0
0
0
0
54
0.149584
a2075dd6f8477f9a928e6816e1109df1a8072a85
496
py
Python
djfw/tinymce/urls.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2020-04-21T15:09:18.000Z
2020-04-21T15:09:18.000Z
djfw/tinymce/urls.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
70
2019-04-10T22:32:32.000Z
2022-03-11T23:12:54.000Z
djfw/tinymce/urls.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2019-04-12T14:55:39.000Z
2019-04-12T14:55:39.000Z
from django.conf import urls from djfw.tinymce import views app_name = 'djfw.tinymce' urlpatterns = [ urls.re_path(r'^$', views.Smiles.as_view(), name='index'), urls.re_path( r'^emotions/emotions.htm$', views.Smiles.as_view(), name='smiles'), urls.re_path( r'^uploaded_files/$',...
27.555556
77
0.622984
0
0
0
0
0
0
0
0
126
0.254032
a20954b9e637aa56b6ab4112e01b278d49be666a
115
py
Python
python_vuejs/__init__.py
star1990luck/perk-python-vue
d4ac81291142980df1e8b21cf42285f4af054526
[ "MIT" ]
47
2017-05-24T12:39:11.000Z
2021-02-26T06:59:01.000Z
python_vuejs/__init__.py
star1990luck/perk-python-vue
d4ac81291142980df1e8b21cf42285f4af054526
[ "MIT" ]
67
2017-05-29T15:02:31.000Z
2018-09-12T19:17:28.000Z
python_vuejs/__init__.py
star1990luck/perk-python-vue
d4ac81291142980df1e8b21cf42285f4af054526
[ "MIT" ]
7
2017-08-17T23:02:41.000Z
2018-02-12T02:34:53.000Z
# -*- coding: utf-8 -*- __author__ = """Christian Strappazzon""" __email__ = 'lab@strap.it' __version__ = '1.0.9'
19.166667
40
0.634783
0
0
0
0
0
0
0
0
71
0.617391
a209d7ff8a1321cfe4ae1ee153251f97d85b8910
22,345
py
Python
tools/gn/secondary/build/config/win/get_msvc_config_real.py
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
231
2015-01-08T09:04:44.000Z
2021-12-30T03:03:10.000Z
build/config/win/get_msvc_config_real.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2015-08-31T06:39:59.000Z
2021-12-04T14:53:28.000Z
build/config/win/get_msvc_config_real.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
268
2015-01-21T05:53:28.000Z
2022-03-25T22:09:01.000Z
# Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This file copies the logic from GYP to find the MSVC configuration. It's not # currently used because it is too slow. We will probably build this # fun...
38.793403
81
0.606086
2,913
0.130365
0
0
0
0
0
0
10,052
0.449855
a20ac73d96760f73577ad1337bb13f563b0d5cff
314
py
Python
test/conftest.py
koreiklein/dist_zero
68ef5a0603edc53925daeec1f4bb684025cacbd4
[ "Unlicense" ]
1
2019-03-18T13:27:35.000Z
2019-03-18T13:27:35.000Z
test/conftest.py
koreiklein/dist_zero
68ef5a0603edc53925daeec1f4bb684025cacbd4
[ "Unlicense" ]
null
null
null
test/conftest.py
koreiklein/dist_zero
68ef5a0603edc53925daeec1f4bb684025cacbd4
[ "Unlicense" ]
null
null
null
import pytest import dist_zero.ids from dist_zero.spawners.simulator import SimulatedSpawner from dist_zero.spawners.docker import DockerSpawner from dist_zero.spawners.cloud.aws import Ec2Spawner from dist_zero.system_controller import SystemController from .demo import demo, cloud_demo from .common import dz
28.545455
57
0.863057
0
0
0
0
0
0
0
0
0
0
a20bc93fee8de2b40c212fc499e721856e4ab411
661
py
Python
config/settings/test.py
andrewtcrooks/taskorganizer
661b1ae790d06f351871b5ef5f3f820055ddb704
[ "MIT" ]
null
null
null
config/settings/test.py
andrewtcrooks/taskorganizer
661b1ae790d06f351871b5ef5f3f820055ddb704
[ "MIT" ]
null
null
null
config/settings/test.py
andrewtcrooks/taskorganizer
661b1ae790d06f351871b5ef5f3f820055ddb704
[ "MIT" ]
null
null
null
"""taskorganizer.config.settings.test .""" from .base import * import json # JSON-based secrets module with open('test_secrets.json') as f: secrets = json.loads(f.read()) def get_secret(setting, secrets=secrets): """Get the secret variable or return explicit exception.""" try: return secrets[sett...
23.607143
70
0.655068
0
0
0
0
0
0
0
0
272
0.411498
a20e3bed418b96fae7ddcec8794e7d98aa58b03f
7,727
py
Python
salina_examples/rl/LoP/agents.py
jbgaya/salina
9f957d4c74974fb4db188c291b4cad039582e4e2
[ "MIT" ]
null
null
null
salina_examples/rl/LoP/agents.py
jbgaya/salina
9f957d4c74974fb4db188c291b4cad039582e4e2
[ "MIT" ]
null
null
null
salina_examples/rl/LoP/agents.py
jbgaya/salina
9f957d4c74974fb4db188c291b4cad039582e4e2
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions.normal import Normal from salina import Agent, TAgent from brax.envs.to_torch import JaxToTorchWrapper from salina_examples.rl.LoP.envs import create_gym_env from salina_examples.rl.LoP.subspace import Linear,...
41.543011
147
0.589362
7,189
0.930374
0
0
0
0
0
0
664
0.085932
a20ea27ba3117ed58af13893be1fa36390eb8161
219
py
Python
BAEKJOON/Python/2439.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
BAEKJOON/Python/2439.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
BAEKJOON/Python/2439.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
num = int(input()) for i in range(num): no_star = num-i-1 yes_star = i+1 for i1 in range(no_star): print(" ",sep="",end="") for i2 in range(yes_star): print("*",sep="",end="") print()
24.333333
32
0.515982
0
0
0
0
0
0
0
0
14
0.063927
a2103e8445d872bf5cb390f93bde6d7bd4043e05
275
py
Python
examples/getdata.py
Commensalism1997/gpop.py
976c48a77026455441e57f2e975d0f70e060911b
[ "MIT" ]
null
null
null
examples/getdata.py
Commensalism1997/gpop.py
976c48a77026455441e57f2e975d0f70e060911b
[ "MIT" ]
1
2022-01-19T13:39:45.000Z
2022-01-19T13:39:45.000Z
examples/getdata.py
Commensalism1997/gpop.py
976c48a77026455441e57f2e975d0f70e060911b
[ "MIT" ]
null
null
null
import gpop while True: nick = input() data = gpop.get_data(nick) print(f''' {nick} stats: Level: {data.level} Time played: {data.time} Levels played: {data.played} Levels created: {data.created} Views: {data.views} G-Coins: {data.coins} GBobs: {data.gbobs} ''')
18.333333
30
0.669091
0
0
0
0
0
0
0
0
189
0.687273
a211435c327ed70ae065e1343ef2dfb4cbf26da9
1,541
py
Python
setup.py
Zincr0/pyscrap
69b4c2bd42dbec125444ad68a1f76168fab7607e
[ "Apache-2.0" ]
1
2015-04-28T22:54:05.000Z
2015-04-28T22:54:05.000Z
setup.py
Zincr0/pyscrap
69b4c2bd42dbec125444ad68a1f76168fab7607e
[ "Apache-2.0" ]
null
null
null
setup.py
Zincr0/pyscrap
69b4c2bd42dbec125444ad68a1f76168fab7607e
[ "Apache-2.0" ]
null
null
null
# -*- coding=utf-8 -*- #Copyright 2012 Daniel Osvaldo Mondaca Seguel # #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...
30.215686
73
0.686567
0
0
0
0
0
0
0
0
1,008
0.654121
a211ebfcbf069a00aa69ab75205d588df2ae8176
10,615
py
Python
densenet.py
BingoH/ReinventingWheel
5232d0ab697ad57a039c766355545bbde3b2a200
[ "MIT" ]
4
2017-08-18T11:49:54.000Z
2019-04-02T11:35:28.000Z
densenet.py
BingoH/ReinventingWheel
5232d0ab697ad57a039c766355545bbde3b2a200
[ "MIT" ]
null
null
null
densenet.py
BingoH/ReinventingWheel
5232d0ab697ad57a039c766355545bbde3b2a200
[ "MIT" ]
null
null
null
#!/usr/bin/env python ##### # simple implementation of "Densely Connected Convolutional Networks, CVPR 2017" ##### import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import torch.optim as optim import torchvision import torchvision.transforms as transforms import...
34.576547
103
0.581912
3,661
0.344889
0
0
0
0
0
0
2,815
0.265191
a2151a048539906496fa27e828dec6baba159d3b
97
py
Python
PythonCode/debugging_example.py
Spstolar/BMachine
319e5efb72cd3ab07b8538b7c43bd93e75f2e38a
[ "MIT" ]
null
null
null
PythonCode/debugging_example.py
Spstolar/BMachine
319e5efb72cd3ab07b8538b7c43bd93e75f2e38a
[ "MIT" ]
3
2017-04-02T15:41:22.000Z
2017-04-03T06:43:06.000Z
PythonCode/debugging_example.py
Spstolar/BMachine
319e5efb72cd3ab07b8538b7c43bd93e75f2e38a
[ "MIT" ]
null
null
null
def double_it(num): return num*2 start = 3 for i in range(6): start = double_it(start)
12.125
28
0.639175
0
0
0
0
0
0
0
0
0
0
a2157079ef9ffaffcc108a55445091fe2efede1e
13,871
py
Python
centpy/solver2d.py
olekravchenko/centpy
e10d1b92c0ee5520110496595b6875b749fa4451
[ "MIT" ]
2
2021-06-23T17:23:21.000Z
2022-01-14T01:28:57.000Z
centpy/solver2d.py
olekravchenko/centpy
e10d1b92c0ee5520110496595b6875b749fa4451
[ "MIT" ]
null
null
null
centpy/solver2d.py
olekravchenko/centpy
e10d1b92c0ee5520110496595b6875b749fa4451
[ "MIT" ]
null
null
null
from .solver1d import * # p coefficient functions class Solver2d(Solver1d): def __init__(self, equation): super().__init__(equation) # Equation dependent functions self.flux_y = equation.flux_y self.spectral_radius_y = equation.spectral_radius_y def fd2(self, u): u_st...
32.791962
88
0.443443
13,817
0.996107
0
0
0
0
0
0
375
0.027035
a21a620a2dc472c716f0c4a791cee689f1e97aaa
942
py
Python
tests/unit/cluster/test_cluster.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
9
2020-12-22T19:14:01.000Z
2022-03-17T04:34:06.000Z
tests/unit/cluster/test_cluster.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
32
2020-12-28T07:46:44.000Z
2022-03-31T01:25:01.000Z
tests/unit/cluster/test_cluster.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
2
2021-07-30T16:44:46.000Z
2022-01-12T20:15:17.000Z
from sadie.cluster import Cluster from sadie.airr import AirrTable, LinkedAirrTable def test_cluster(heavy_catnap_airrtable, light_catnap_airrtable): for table in [heavy_catnap_airrtable, light_catnap_airrtable]: cluster = Cluster(table) clustered_df = cluster.cluster(10) assert "cluster" ...
37.68
118
0.721868
0
0
0
0
0
0
0
0
176
0.186837
a21d4928f175025df7eb53ecd52295a8549f7c02
3,313
py
Python
datasets/import_yelp.py
dallascard/proportions
f01502428333e45310654a36d26503612fe45234
[ "Apache-2.0" ]
1
2019-08-05T14:45:24.000Z
2019-08-05T14:45:24.000Z
datasets/import_yelp.py
dallascard/proportions
f01502428333e45310654a36d26503612fe45234
[ "Apache-2.0" ]
null
null
null
datasets/import_yelp.py
dallascard/proportions
f01502428333e45310654a36d26503612fe45234
[ "Apache-2.0" ]
null
null
null
import os import re import sys from collections import Counter from optparse import OptionParser import numpy as np import pandas as pd from util import file_handling as fh def main(): usage = "%prog input_dir output_dir" parser = OptionParser(usage=usage) #parser.add_option('--keyword', dest='key', def...
33.806122
182
0.561425
0
0
0
0
0
0
0
0
725
0.218835
a21e97a3119d9596c35d2805249f2abdd428f597
393
py
Python
examples/network/UDPSend_python/UDPecho.py
sicrisembay/mbed_target
dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8
[ "Apache-2.0" ]
20
2017-10-12T10:49:10.000Z
2022-03-16T03:21:46.000Z
examples/network/UDPSend_python/UDPecho.py
sicrisembay/mbed_target
dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8
[ "Apache-2.0" ]
2
2018-06-22T16:00:02.000Z
2019-09-01T13:32:27.000Z
examples/network/UDPSend_python/UDPecho.py
sicrisembay/mbed_target
dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8
[ "Apache-2.0" ]
9
2017-08-13T12:15:32.000Z
2021-11-21T07:57:08.000Z
import socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_address = '' server_port = 10001 server = (server_address, server_port) sock.bind(server) print("Listening on " + server_address + ":" + str(server_port)) while True: payload, client_address = sock.recvfrom(1024) print("Echoing data back...
26.2
64
0.753181
0
0
0
0
0
0
0
0
43
0.109415
a221601389defa2b881d9bc404d9a902c1823fb3
129
py
Python
FaceSwap-master/pytorch_stylegan_encoder/image.py
CSID-DGU/-2020-1-OSSP1-ninetynine-2
b1824254882eeea0ee44e4e60896b72c51ef1d2c
[ "MIT" ]
1
2020-06-21T13:45:26.000Z
2020-06-21T13:45:26.000Z
FaceSwap-master/pytorch_stylegan_encoder/image.py
CSID-DGU/-2020-1-OSSP1-ninetynine-2
b1824254882eeea0ee44e4e60896b72c51ef1d2c
[ "MIT" ]
null
null
null
FaceSwap-master/pytorch_stylegan_encoder/image.py
CSID-DGU/-2020-1-OSSP1-ninetynine-2
b1824254882eeea0ee44e4e60896b72c51ef1d2c
[ "MIT" ]
3
2020-09-02T03:18:45.000Z
2021-01-27T08:24:05.000Z
version https://git-lfs.github.com/spec/v1 oid sha256:0b658b7b289160eaf9545f85d87f9c8baa0c04e58f265cf125e952a2fb821816 size 1379
32.25
75
0.883721
0
0
0
0
0
0
0
0
0
0
a2218eb8e774cc37ae6e91146172fc4b0d506e5d
1,496
py
Python
dev/logger.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
dev/logger.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
2
2018-03-28T19:47:46.000Z
2021-12-13T20:56:31.000Z
dev/logger.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
# logger.py # App logger initialization function # r1 # TODO: logger.propagate using import logging from logging.handlers import RotatingFileHandler from helpers.config import Config def logger_setup(log_file, loggers=None, touch_root=False): log_formatter = logging.Formatter(Config.get('APP_LOG_FORMAT'), datefm...
28.226415
96
0.66377
0
0
0
0
0
0
0
0
221
0.147727
a224241137af1e2beb8c8dfb0f5f9fc3ff31834a
852
py
Python
segmentation/algorithm/quickshift_test.py
peternara/graph-based-image-classification-gcn
60e93b47691e960b7f06f7a5dc11191efe881178
[ "MIT" ]
44
2017-02-26T16:52:48.000Z
2022-02-17T18:50:02.000Z
segmentation/algorithm/quickshift_test.py
hungerzs/graph-based-image-classification
d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8
[ "MIT" ]
2
2018-11-14T05:11:25.000Z
2020-06-23T16:24:41.000Z
segmentation/algorithm/quickshift_test.py
hungerzs/graph-based-image-classification
d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8
[ "MIT" ]
13
2018-04-26T07:46:35.000Z
2022-02-28T15:38:53.000Z
import tensorflow as tf from .quickshift import quickshift class QuickshiftTest(tf.test.TestCase): def test_quickshift(self): image = tf.constant([ [[255, 255, 255], [255, 255, 255], [0, 0, 0], [0, 0, 0]], [[255, 255, 255], [255, 255, 255], [0, 0, 0], [0, 0, 0]], [[0,...
30.428571
77
0.467136
789
0.926056
0
0
0
0
0
0
134
0.157277
a2288fb94c080ace0de40f0b975efab9344f4528
1,777
py
Python
content.py
bguenthe/mpwebswitch
d598fc0ff74a5fef0535fa8ccf45029add2fbb16
[ "MIT" ]
null
null
null
content.py
bguenthe/mpwebswitch
d598fc0ff74a5fef0535fa8ccf45029add2fbb16
[ "MIT" ]
null
null
null
content.py
bguenthe/mpwebswitch
d598fc0ff74a5fef0535fa8ccf45029add2fbb16
[ "MIT" ]
null
null
null
# Micropython Http Server # Erni Tron ernitron@gmail.com # Copyright (c) 2016 # Content Callback functions. # They should receive parameters and return a HTML formatted string # By convention they start with cb_ import gc import time from config import save_config, set_config, get_config # Content Functions def cb...
25.753623
113
0.585819
0
0
0
0
0
0
0
0
698
0.392797
bf3e58c7c4f6441c3bd403bedd53cbdc604438db
4,512
py
Python
comparator/__init__.py
dchaplinsky/comparator
664eee047debe654b0b9d74e725af787a5306516
[ "MIT" ]
5
2019-09-27T17:34:21.000Z
2020-07-28T01:42:31.000Z
comparator/__init__.py
dchaplinsky/comparator
664eee047debe654b0b9d74e725af787a5306516
[ "MIT" ]
null
null
null
comparator/__init__.py
dchaplinsky/comparator
664eee047debe654b0b9d74e725af787a5306516
[ "MIT" ]
null
null
null
__version__ = "1.0.0" __all__ = ["full_compare"] import re from functools import reduce from itertools import permutations, product, islice, zip_longest from operator import mul from Levenshtein import jaro, jaro_winkler def _smart_jaro(a, b, func=jaro): if func(a[1:], b[1:]) > 0.99: return True i...
26.080925
94
0.585993
0
0
0
0
0
0
0
0
436
0.096205
bf3e74e6f6ce3ba1a29bca66409ff4b07faabce7
6,134
py
Python
matt/day4/2hap.py
brianfay/aoc-2021
08894c6b9e62777f93d2252896b8909b174b04e6
[ "Unlicense" ]
1
2021-12-08T21:35:55.000Z
2021-12-08T21:35:55.000Z
matt/day4/2hap.py
brianfay/aoc-2021
08894c6b9e62777f93d2252896b8909b174b04e6
[ "Unlicense" ]
1
2022-01-08T02:45:09.000Z
2022-01-08T02:45:09.000Z
matt/day4/2hap.py
brianfay/aoc-2021
08894c6b9e62777f93d2252896b8909b174b04e6
[ "Unlicense" ]
null
null
null
# Parse input: # line 1 = call_numbers separated by , # Matrices separated by blank row # Store input: # Bingo Cards: Dictionary of Dictionaires of lists? (card - column - numbers) # call_numbers: list # function to x numbers as called # function to check if card(s) won # function to add all unmarked numbers on win...
34.077778
175
0.469188
0
0
0
0
0
0
0
0
1,719
0.280241
bf3eb6b868a5e43fd91faea2606c647531478b26
3,120
py
Python
dliplib/graphs/lodopab_200_performance.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
dliplib/graphs/lodopab_200_performance.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
dliplib/graphs/lodopab_200_performance.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from dliplib.utils.helper import set_use_latex plt.style.use('seaborn-whitegrid') set_use_latex() sizes = [0.0001, 0.001, 0.01, 0.10, 1.00] ticks = range(len(sizes)) # performance on the different data sizes learnedgd = {'PSNR [db]': [29.87, 31.28, 31.83, 32.7, 32...
33.548387
109
0.575
0
0
0
0
0
0
0
0
529
0.169551
bf3ef1247bc316b19c823cb48904b6ec5fce2e57
1,448
py
Python
16/Part2.py
iammanish17/AOC2020
afbed26492b8cd0025e6c6b196e1a944e0a84109
[ "MIT" ]
1
2020-12-02T11:34:42.000Z
2020-12-02T11:34:42.000Z
16/Part2.py
iammanish17/AOC2020
afbed26492b8cd0025e6c6b196e1a944e0a84109
[ "MIT" ]
null
null
null
16/Part2.py
iammanish17/AOC2020
afbed26492b8cd0025e6c6b196e1a944e0a84109
[ "MIT" ]
1
2020-12-23T06:56:51.000Z
2020-12-23T06:56:51.000Z
s = open('input.txt','r').read() s = [k for k in s.split("\n")] di = {} ok = False ans = 0 f = [set() for i in range(20)] nums = set() cnt = 0 for line in s: for each in line.split(" "): if "-" in each: x, y = each.split("-") x, y = int(x), int(y) if line.split(":")[0]...
23.737705
47
0.410912
0
0
0
0
0
0
0
0
82
0.05663
bf3f318dea8bdb40dfcc7f44d11dbe3ea8396aae
3,089
py
Python
src/restApi/accounts/api/views.py
nightwarriorftw/restApi
41bb572f55d27fbdb104a3624a15cbb959b92cf7
[ "MIT" ]
null
null
null
src/restApi/accounts/api/views.py
nightwarriorftw/restApi
41bb572f55d27fbdb104a3624a15cbb959b92cf7
[ "MIT" ]
10
2020-06-05T20:12:44.000Z
2022-03-12T00:08:39.000Z
src/restApi/accounts/api/views.py
nightwarriorftw/restApi
41bb572f55d27fbdb104a3624a15cbb959b92cf7
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.contrib.auth import authenticate from django.db.models import Q from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import permissions, generics from rest_framework_jwt.settings import api_settings from acc...
35.918605
84
0.652315
1,260
0.407899
0
0
0
0
0
0
1,266
0.409841
bf3f371bc17442142ae43aa519da8c21f6e05bbe
1,176
py
Python
tests/conftest.py
prajmus/pypi_changes
52aa64676fa650694ad0cbd85187fea1706265a8
[ "MIT" ]
24
2021-11-04T11:02:31.000Z
2022-01-08T14:31:53.000Z
tests/conftest.py
prajmus/pypi_changes
52aa64676fa650694ad0cbd85187fea1706265a8
[ "MIT" ]
8
2021-11-04T13:23:01.000Z
2022-01-11T20:53:18.000Z
tests/conftest.py
prajmus/pypi_changes
52aa64676fa650694ad0cbd85187fea1706265a8
[ "MIT" ]
5
2021-11-05T17:54:29.000Z
2022-03-26T11:46:06.000Z
from __future__ import annotations import sys from pathlib import Path from unittest.mock import MagicMock, create_autospec import pytest from _pytest.monkeypatch import MonkeyPatch from pypi_changes._cli import Options from tests import MakeDist @pytest.fixture(autouse=True) def _no_index(monkeypatch: MonkeyPatch...
28
99
0.72534
0
0
0
0
914
0.777211
0
0
153
0.130102
bf40bec63820957e6761ed0c250696ce749bea12
2,578
py
Python
src/DataProcessing/CO2_GDP/treemapdata.py
KKDJOSEPH/Analysis_on_Global_Warming
02376517b61c08d2c2858d2ca2e994eb0ec04c89
[ "MIT" ]
null
null
null
src/DataProcessing/CO2_GDP/treemapdata.py
KKDJOSEPH/Analysis_on_Global_Warming
02376517b61c08d2c2858d2ca2e994eb0ec04c89
[ "MIT" ]
null
null
null
src/DataProcessing/CO2_GDP/treemapdata.py
KKDJOSEPH/Analysis_on_Global_Warming
02376517b61c08d2c2858d2ca2e994eb0ec04c89
[ "MIT" ]
null
null
null
def treegenerator(region, cleancountryco2): """ @Author Haoyang Ding generate a dictionary in a special format treedata={"value": co2 emission in a specific region "name": region's name "children": [{country's name: co2 emission data}, {}....] } :param region: lis...
34.837838
116
0.623351
0
0
0
0
0
0
0
0
918
0.35609
bf4206dbcc7426fe08c0679c20acc8aa9437d1eb
3,472
py
Python
core/aws_ddk_core/pipelines/stage.py
vemel/aws-ddk
d34bd1d98f5a170026a1b65f9629e909ca839930
[ "Apache-2.0" ]
null
null
null
core/aws_ddk_core/pipelines/stage.py
vemel/aws-ddk
d34bd1d98f5a170026a1b65f9629e909ca839930
[ "Apache-2.0" ]
null
null
null
core/aws_ddk_core/pipelines/stage.py
vemel/aws-ddk
d34bd1d98f5a170026a1b65f9629e909ca839930
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
29.423729
104
0.580069
2,692
0.775346
0
0
800
0.230415
0
0
2,732
0.786866
bf42ac1b125502bb6adf579b40a034bc662330a7
1,640
py
Python
classes/utils.py
sicko7947/Nike
aa028412977f4a730e4b1ad97c29e157a9304d02
[ "MIT" ]
1
2022-02-07T17:29:42.000Z
2022-02-07T17:29:42.000Z
classes/utils.py
sicko7947/Nike
aa028412977f4a730e4b1ad97c29e157a9304d02
[ "MIT" ]
null
null
null
classes/utils.py
sicko7947/Nike
aa028412977f4a730e4b1ad97c29e157a9304d02
[ "MIT" ]
1
2021-08-07T04:39:55.000Z
2021-08-07T04:39:55.000Z
import datetime,threading,random from termcolor import cprint, colored import colorama class Logger(): def __init__(self): colorama.init() def __timestamp(self): now = str(datetime.datetime.now()) now = now.split(' ')[1] threadname = threading.currentThread().getName() threadname = str(threadname).repla...
25.230769
80
0.589024
1,548
0.943902
0
0
0
0
0
0
205
0.125
bf43755e187af099cccae06e2ad0a561bdda3853
7,486
py
Python
old_code/soil_heat_model.py
miksch/atm233-midterm-winter2020
0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704
[ "MIT" ]
null
null
null
old_code/soil_heat_model.py
miksch/atm233-midterm-winter2020
0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704
[ "MIT" ]
null
null
null
old_code/soil_heat_model.py
miksch/atm233-midterm-winter2020
0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704
[ "MIT" ]
1
2020-03-03T18:28:21.000Z
2020-03-03T18:28:21.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import xarray as xr from scipy import signal import timeit from numba import jit import datashader as ds import xarray as xr from datashader import transfer_functions as tf #1. Define the boundary conditions # Needed: surface temperature forcing (s...
31.720339
123
0.64841
0
0
0
0
524
0.069997
0
0
4,250
0.567726
bf4435708cd1cd1a00c510e8d61acff73e2fc0ba
5,901
py
Python
qced_dti_analysis.py
shanqing-cai/MRI_analysis
39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9
[ "BSD-4-Clause" ]
1
2016-02-08T18:31:36.000Z
2016-02-08T18:31:36.000Z
qced_dti_analysis.py
shanqing-cai/MRI_analysis
39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9
[ "BSD-4-Clause" ]
null
null
null
qced_dti_analysis.py
shanqing-cai/MRI_analysis
39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9
[ "BSD-4-Clause" ]
null
null
null
#!/usr/bin/python import os import sys import glob import argparse from scai_utils import * REQ_FSL_VER = "5.0" DATA_DIR = "/users/cais/STUT/DATA" DTIPREP_DIR = "/users/cais/STUT/analysis/dti" DTI_BASE = "/users/cais/STUT/analysis/dti2" EDDY_CORRECT_SPLINE_BIN = "/users/cais/STUT/scripts/eddy_correct_spline" #FDT_RO...
37.585987
114
0.629724
0
0
0
0
0
0
0
0
1,959
0.331978
bf462c8fa1454512e16f250d30d5dc8b3cd688cc
2,803
py
Python
extensions/mute.py
meisme-dev/Gardenbot
a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca
[ "MIT" ]
5
2020-10-26T13:14:51.000Z
2021-01-13T16:52:49.000Z
extensions/mute.py
meisme-dev/Gardenbot
a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca
[ "MIT" ]
1
2021-02-13T00:45:32.000Z
2021-02-13T08:21:31.000Z
extensions/mute.py
meisme-dev/Gardenbot
a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca
[ "MIT" ]
5
2020-10-26T02:21:36.000Z
2020-11-28T04:10:24.000Z
# MIT License # Copyright (c) 2020 me is me # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publi...
40.623188
120
0.717802
1,421
0.506957
0
0
1,288
0.459508
1,159
0.413486
1,336
0.476632
bf4644e52957de9dd091d9578f984983baf2e266
142
py
Python
gmenu/apps.py
Ione03/gmenu
ef427cee6fcdbf2e3aa5b6532f7c01499b9748e8
[ "MIT" ]
null
null
null
gmenu/apps.py
Ione03/gmenu
ef427cee6fcdbf2e3aa5b6532f7c01499b9748e8
[ "MIT" ]
null
null
null
gmenu/apps.py
Ione03/gmenu
ef427cee6fcdbf2e3aa5b6532f7c01499b9748e8
[ "MIT" ]
null
null
null
from django.apps import AppConfig class GmenuConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'gmenu'
20.285714
56
0.753521
105
0.739437
0
0
0
0
0
0
38
0.267606
bf47205a4f9eeafd2447693a448c4ddc628fc8cd
3,405
py
Python
pyadept/rcommands.py
semeniuta/pyadept
cd8677ef4e6033c811f1783d23de459778b83737
[ "BSD-3-Clause" ]
2
2018-10-05T10:08:46.000Z
2020-05-14T18:45:09.000Z
pyadept/rcommands.py
semeniuta/pyadept
cd8677ef4e6033c811f1783d23de459778b83737
[ "BSD-3-Clause" ]
null
null
null
pyadept/rcommands.py
semeniuta/pyadept
cd8677ef4e6033c811f1783d23de459778b83737
[ "BSD-3-Clause" ]
1
2020-12-01T15:45:50.000Z
2020-12-01T15:45:50.000Z
import numpy as np from pyadept.strutil import vec_to_str DELIMITER = b'\r\n' BREAK_CMD = b'break' + DELIMITER def join_commands(*commands): return JoinedCommand(commands) def create_motion_command(template, vec, break_move=True): vec_bytes = vec_to_str(vec) cmd_bytes = template.format(vec_bytes).enc...
23.482759
80
0.6558
2,945
0.864905
0
0
0
0
0
0
185
0.054332
bf47efa3b194ce23f5e5b344a1cad11ef6badea9
949
py
Python
clara/transpiler/preprocessing/minmax.py
asergiobranco/clara
bca39620b615d7fefb760f4257bda073f401626b
[ "Apache-2.0" ]
4
2020-07-04T20:37:01.000Z
2021-01-03T09:10:08.000Z
clara/transpiler/preprocessing/minmax.py
asergiobranco/clara
bca39620b615d7fefb760f4257bda073f401626b
[ "Apache-2.0" ]
null
null
null
clara/transpiler/preprocessing/minmax.py
asergiobranco/clara
bca39620b615d7fefb760f4257bda073f401626b
[ "Apache-2.0" ]
2
2020-09-25T01:59:34.000Z
2022-02-07T14:14:24.000Z
class MinMaxScalerTranspiler(object): def __init__(self, model): self.model = model self.n_features = len(self.model.min_) self.min = ','.join(self.model.min_.astype(str)) self.std = ','.join(self.model.scale_.astype(str)) def generate_code(self): return """ /*...
25.648649
138
0.523709
948
0.998946
0
0
0
0
0
0
608
0.640674
bf487798f8e7882fa1a70476d00ee5b869483959
15,839
py
Python
app/sova/views.py
ivoras/sova
bb555e53a48f0e92874ab90e8651b314e2df0e8d
[ "BSD-2-Clause" ]
1
2017-02-20T13:49:48.000Z
2017-02-20T13:49:48.000Z
app/sova/views.py
ivoras/sova
bb555e53a48f0e92874ab90e8651b314e2df0e8d
[ "BSD-2-Clause" ]
null
null
null
app/sova/views.py
ivoras/sova
bb555e53a48f0e92874ab90e8651b314e2df0e8d
[ "BSD-2-Clause" ]
null
null
null
import base64 from datetime import datetime, timedelta import re import os from django.core.mail import EmailMultiAlternatives from django.shortcuts import render, get_object_or_404 from django.http import HttpResponseRedirect, Http404, HttpResponseBadRequest from django.urls import reverse from django.core.validators...
44.366947
480
0.696067
0
0
0
0
0
0
0
0
3,576
0.225772