hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
00359e8fbe48210627feb362f2c8041b642badc6
1,086
py
Python
core/apple.py
wayneroe/snake
5663c240d6e5f2434a2bf4311c7a6f8cad3ae4e4
[ "CC0-1.0" ]
2
2021-03-09T17:43:59.000Z
2021-04-01T10:33:51.000Z
core/apple.py
wayneroe/snake
5663c240d6e5f2434a2bf4311c7a6f8cad3ae4e4
[ "CC0-1.0" ]
null
null
null
core/apple.py
wayneroe/snake
5663c240d6e5f2434a2bf4311c7a6f8cad3ae4e4
[ "CC0-1.0" ]
null
null
null
from pathlib import Path from random import randint import pygame as pg from core.tools import Point
31.028571
96
0.620626
from pathlib import Path from random import randint import pygame as pg from core.tools import Point class Apple(object): def __init__(self, tiles, *snakes): self.snakes = snakes self.tiles = tiles self.coordinate = self.get_point_not_in_snake() sound_folder = Path("../sounds/")...
853
-1
130
bc5c080b1ad38e2fd53cb0ea5d680765be63873d
30,096
py
Python
pymdwizard/gui/ui_files/UI_vertdef.py
ennsk/fort-pymdwizard
74a16d5333cd599537af1e55448327e3cfcced5a
[ "CC-BY-4.0" ]
null
null
null
pymdwizard/gui/ui_files/UI_vertdef.py
ennsk/fort-pymdwizard
74a16d5333cd599537af1e55448327e3cfcced5a
[ "CC-BY-4.0" ]
null
null
null
pymdwizard/gui/ui_files/UI_vertdef.py
ennsk/fort-pymdwizard
74a16d5333cd599537af1e55448327e3cfcced5a
[ "CC-BY-4.0" ]
2
2017-03-16T21:18:11.000Z
2019-06-03T14:25:16.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'vertdef.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
57.655172
149
0.712221
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'vertdef.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("For...
29,782
1
76
e54490626b2502d8a826034a1c3ead0fa66f93f6
1,033
py
Python
2020/day06/day06.py
oaguy1/advent-of-code
8ac08bdf18b59a34116900abe2b312993a15dd3d
[ "MIT" ]
null
null
null
2020/day06/day06.py
oaguy1/advent-of-code
8ac08bdf18b59a34116900abe2b312993a15dd3d
[ "MIT" ]
null
null
null
2020/day06/day06.py
oaguy1/advent-of-code
8ac08bdf18b59a34116900abe2b312993a15dd3d
[ "MIT" ]
null
null
null
import sys if __name__ == '__main__': file_name = sys.argv[1] with open(file_name) as f: raw_lst = f.read() lst = raw_lst.splitlines() print(day06(lst)) print(day06_prime(lst))
21.520833
92
0.461762
import sys def day06(lst): total = 0 ans = [] for idx, ln in enumerate(lst): if ln != '': ans += list(ln) if ln == '' or idx == len(lst) - 1: total += len(set(ans)) ans = [] return total def day06_prime(lst): total = 0 ans_count ...
770
0
46
98739ad4590e8edcfcc3438f4fd88c315c168210
222
py
Python
main.py
ytZhang99/NHDRRNet-PyTorch
4516922794d0b1e68b7aff7366aafc141d686092
[ "MIT" ]
3
2021-12-18T06:49:44.000Z
2022-02-10T11:12:54.000Z
main.py
ytZhang99/NHDRRNet-PyTorch
4516922794d0b1e68b7aff7366aafc141d686092
[ "MIT" ]
null
null
null
main.py
ytZhang99/NHDRRNet-PyTorch
4516922794d0b1e68b7aff7366aafc141d686092
[ "MIT" ]
null
null
null
from train import Trainer from option import args if __name__ == '__main__': main()
14.8
26
0.554054
from train import Trainer from option import args def main(): if args.test_only: t = Trainer() t.test(args.ep) else: t = Trainer() t.train() if __name__ == '__main__': main()
109
0
23
6e57ac9aef1ed6d4ec5d59d207171466091016fb
1,816
py
Python
Calendar.py
Joecakes4u/gcalendar
df60d0093dbd2bcfa5a4caceb0e9ccb0b9c08572
[ "Apache-2.0" ]
null
null
null
Calendar.py
Joecakes4u/gcalendar
df60d0093dbd2bcfa5a4caceb0e9ccb0b9c08572
[ "Apache-2.0" ]
2
2016-08-16T21:49:51.000Z
2016-08-16T21:49:59.000Z
Calendar.py
Joecakes4u/gcalendar
df60d0093dbd2bcfa5a4caceb0e9ccb0b9c08572
[ "Apache-2.0" ]
null
null
null
import httplib2 import oauth2client import os from apiclient import discovery from oauth2client import client from oauth2client import tools class Calendar: """Stores data to make Google Calendar API happy""" secret_path = "" application_name = "" credentials = "" http = "" service = "" de...
36.32
102
0.676211
import httplib2 import oauth2client import os from apiclient import discovery from oauth2client import client from oauth2client import tools class Calendar: """Stores data to make Google Calendar API happy""" secret_path = "" application_name = "" credentials = "" http = "" service = "" de...
227
0
27
f495865c9fe2ade77f5e422604b9e8be50145761
7,210
py
Python
postprocessing/visualization/tools/extractDataFromUnstructuredOutput.py
fabian-kutschera/SeisSol
d5656cd38e9eb1d91c05ebcbf173acbc3083da57
[ "BSD-3-Clause" ]
null
null
null
postprocessing/visualization/tools/extractDataFromUnstructuredOutput.py
fabian-kutschera/SeisSol
d5656cd38e9eb1d91c05ebcbf173acbc3083da57
[ "BSD-3-Clause" ]
null
null
null
postprocessing/visualization/tools/extractDataFromUnstructuredOutput.py
fabian-kutschera/SeisSol
d5656cd38e9eb1d91c05ebcbf173acbc3083da57
[ "BSD-3-Clause" ]
null
null
null
import os import os.path import seissolxdmf import shutil import recreateXdmf import numpy as np import argparse parser = argparse.ArgumentParser(description="resample output file and write as binary files") parser.add_argument("xdmfFilename", help="xdmf output file") parser.add_argument("--add2prefix", help="string t...
34.009434
143
0.648405
import os import os.path import seissolxdmf import shutil import recreateXdmf import numpy as np import argparse parser = argparse.ArgumentParser(description="resample output file and write as binary files") parser.add_argument("xdmfFilename", help="xdmf output file") parser.add_argument("--add2prefix", help="string t...
432
30
76
e491a2989dc05f751a9b8ead06d99012d361d385
4,782
py
Python
apps/story/tests/test_mappers.py
tuanquanghpvn/rest_exam
134f5e7bf44f8e5b0c601e04410693067aef6c4e
[ "MIT" ]
null
null
null
apps/story/tests/test_mappers.py
tuanquanghpvn/rest_exam
134f5e7bf44f8e5b0c601e04410693067aef6c4e
[ "MIT" ]
null
null
null
apps/story/tests/test_mappers.py
tuanquanghpvn/rest_exam
134f5e7bf44f8e5b0c601e04410693067aef6c4e
[ "MIT" ]
null
null
null
from apps.base.mappers import (PagingRequestSchema, PagingResponseSchema) from apps.story.mappers import (StorySchema, GetStoryRequestSchema, PostStoryRequestSchema, PutStoryRequestSchema, DeleteStoryRequestSchema) from contracts.base import (LIMIT_NAME, OFFSET_NAME, SORT_NAME, COUNT_NAM...
33.440559
120
0.695316
from apps.base.mappers import (PagingRequestSchema, PagingResponseSchema) from apps.story.mappers import (StorySchema, GetStoryRequestSchema, PostStoryRequestSchema, PutStoryRequestSchema, DeleteStoryRequestSchema) from contracts.base import (LIMIT_NAME, OFFSET_NAME, SORT_NAME, COUNT_NAM...
2,505
96
366
40466cc076725274e75046d6be74f15aa57f1ba5
254
py
Python
online/service/rec_for_you_service.py
JanzenLiu/Elastic-and-Parallel-Rec-System-pipeline
3a7be2ffbe423d6421d722141d6ae882422f5c30
[ "MIT" ]
null
null
null
online/service/rec_for_you_service.py
JanzenLiu/Elastic-and-Parallel-Rec-System-pipeline
3a7be2ffbe423d6421d722141d6ae882422f5c30
[ "MIT" ]
null
null
null
online/service/rec_for_you_service.py
JanzenLiu/Elastic-and-Parallel-Rec-System-pipeline
3a7be2ffbe423d6421d722141d6ae882422f5c30
[ "MIT" ]
null
null
null
import json from rec_process import rec_for_you_process
25.4
66
0.724409
import json from rec_process import rec_for_you_process class RecForYouService: @classmethod def do_get(self, id: int, size: int, model: str): movies = rec_for_you_process.get_rec_list(id, size, model) return json.dumps(movies)
129
45
23
854d12c55c72a3b48e016871afbefc82d8ff9d10
1,223
py
Python
leasing/migrations/0005_change_zone_as_enumfield_in_leasebasisofrent.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
1
2021-01-12T08:14:10.000Z
2021-01-12T08:14:10.000Z
leasing/migrations/0005_change_zone_as_enumfield_in_leasebasisofrent.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
249
2017-04-18T14:00:13.000Z
2022-03-30T12:18:03.000Z
leasing/migrations/0005_change_zone_as_enumfield_in_leasebasisofrent.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
7
2017-04-18T08:43:54.000Z
2021-07-28T07:29:30.000Z
# Generated by Django 2.2.6 on 2020-03-11 13:09 from django.db import migrations import enumfields.fields import leasing.enums
31.358974
77
0.590352
# Generated by Django 2.2.6 on 2020-03-11 13:09 from django.db import migrations import enumfields.fields import leasing.enums class Migration(migrations.Migration): dependencies = [ ("leasing", "0004_change_area_unit_as_required_to_leasebasisofrent") ] operations = [ migrations.AlterFi...
0
1,071
23
fbb9ec60877c145a6274c497e8326c35e87d3ba8
5,491
py
Python
graphrank/AssocBuilder.py
ldouguy/GraphRank
6821b53d2badb788eb53b90b2749adccf3a618e1
[ "MIT" ]
1
2016-10-02T16:59:41.000Z
2016-10-02T16:59:41.000Z
graphrank/AssocBuilder.py
ldouguy/GraphRank
6821b53d2badb788eb53b90b2749adccf3a618e1
[ "MIT" ]
null
null
null
graphrank/AssocBuilder.py
ldouguy/GraphRank
6821b53d2badb788eb53b90b2749adccf3a618e1
[ "MIT" ]
null
null
null
from collections import defaultdict import json ###########################
31.557471
137
0.621927
from collections import defaultdict import json class AssocBuilder: def __init__(self, CAPI=None, SAPI=None, assocFile=None): self._unlinked = set() if CAPI: self._unlinked |= set(CAPI.playerDict.values()) if SAPI: self._unlinked |= set(SAPI.playerDict.values()) self._linked = set() self.assoc = {} ...
5,129
-2
287
6b742f2d50b33f39b52a36202d3c010cec2cddd6
3,034
py
Python
json2model/services/dynamic_model/dynamic_data_instances.py
Grusinator/django-json2model
fe06f4feb60b8a02859530556f91ca6a5978d6d1
[ "MIT" ]
null
null
null
json2model/services/dynamic_model/dynamic_data_instances.py
Grusinator/django-json2model
fe06f4feb60b8a02859530556f91ca6a5978d6d1
[ "MIT" ]
null
null
null
json2model/services/dynamic_model/dynamic_data_instances.py
Grusinator/django-json2model
fe06f4feb60b8a02859530556f91ca6a5978d6d1
[ "MIT" ]
null
null
null
import logging from abc import ABC from django.conf import settings from django.db.models.base import Model from json2model.services import data_type_transform from json2model.services.dynamic_model import dynamic_model_utils as dm_utils from json2model.services.dynamic_model.i_json_iterator import IJsonIterator log...
43.342857
108
0.720171
import logging from abc import ABC from django.conf import settings from django.db.models.base import Model from json2model.services import data_type_transform from json2model.services.dynamic_model import dynamic_model_utils as dm_utils from json2model.services.dynamic_model.i_json_iterator import IJsonIterator log...
2,327
26
265
4e861f03572ed86332331faac78cdce861abd0b8
2,261
py
Python
grodddroid/BranchExplorer/grodd-coverage.py
demirdagemir/thesis
4a48bddf815c91729e27484548bb7bbf7ddeda64
[ "MIT" ]
null
null
null
grodddroid/BranchExplorer/grodd-coverage.py
demirdagemir/thesis
4a48bddf815c91729e27484548bb7bbf7ddeda64
[ "MIT" ]
null
null
null
grodddroid/BranchExplorer/grodd-coverage.py
demirdagemir/thesis
4a48bddf815c91729e27484548bb7bbf7ddeda64
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import subprocess from androguard.core.bytecodes.apk import APK as APK if (len(sys.argv) < 5): print("main.py <apk_dir> <result dir> <device_serial_number>" "<device_codename>") exit(0) apk_dir = os.path.abspath(sys.argv[1]) res_dir = os.path.abspath(sys.a...
29.363636
77
0.542238
#!/usr/bin/env python import os import sys import subprocess from androguard.core.bytecodes.apk import APK as APK if (len(sys.argv) < 5): print("main.py <apk_dir> <result dir> <device_serial_number>" "<device_codename>") exit(0) apk_dir = os.path.abspath(sys.argv[1]) res_dir = os.path.abspath(sys.a...
0
0
0
9737e0139c0125425794078d44932746dde13a11
3,093
py
Python
a10sdk/core/cgnv6/cgnv6_nat_pool_stats.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
16
2015-05-20T07:26:30.000Z
2021-01-23T11:56:57.000Z
a10sdk/core/cgnv6/cgnv6_nat_pool_stats.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
6
2015-03-24T22:07:11.000Z
2017-03-28T21:31:18.000Z
a10sdk/core/cgnv6/cgnv6_nat_pool_stats.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
23
2015-03-29T15:43:01.000Z
2021-06-02T17:12:01.000Z
from a10sdk.common.A10BaseClass import A10BaseClass class Stats(A10BaseClass): """This class does not support CRUD Operations please use parent. :param icmp_freed: {"optional": true, "size": "8", "type": "number", "oid": "3", "format": "counter"} :param tcp_freed: {"optional": true, "size": "8", "ty...
37.719512
181
0.572907
from a10sdk.common.A10BaseClass import A10BaseClass class Stats(A10BaseClass): """This class does not support CRUD Operations please use parent. :param icmp_freed: {"optional": true, "size": "8", "type": "number", "oid": "3", "format": "counter"} :param tcp_freed: {"optional": true, "size": "8", "ty...
835
0
52
13add0818754ff71cad1503fe6c51b1b4bad012a
4,037
py
Python
imdb_manager.py
teSill/temflix
31d40265fa71695966c6178145a1057cd2aeda27
[ "MIT" ]
3
2020-12-21T20:51:56.000Z
2022-01-04T11:55:45.000Z
imdb_manager.py
teSill/temflix
31d40265fa71695966c6178145a1057cd2aeda27
[ "MIT" ]
null
null
null
imdb_manager.py
teSill/temflix
31d40265fa71695966c6178145a1057cd2aeda27
[ "MIT" ]
null
null
null
from imdb import IMDb instance = IMDb()
27.462585
91
0.629923
from imdb import IMDb instance = IMDb() def search_movie(title): return instance.search_movie(title)[0] def get_movie(movie_id): return instance.get_movie(movie_id) def get_movie_url(title): movie = instance.search_movie(title)[0] return instance.get_imdbURL(movie) def get_director(movie): ...
3,335
257
395
03fffcad8247834945e3d2779f75c765c14d408e
1,379
py
Python
data/normalization.py
wondervictor/Tianchi-ElectricityConsumption
2a9cf05428f367e855da6b035f203d8b1ed09e96
[ "MIT" ]
1
2017-11-14T15:39:35.000Z
2017-11-14T15:39:35.000Z
data/normalization.py
wondervictor/Tianchi-ElectricityConsumption
2a9cf05428f367e855da6b035f203d8b1ed09e96
[ "MIT" ]
null
null
null
data/normalization.py
wondervictor/Tianchi-ElectricityConsumption
2a9cf05428f367e855da6b035f203d8b1ed09e96
[ "MIT" ]
1
2018-03-19T17:32:18.000Z
2018-03-19T17:32:18.000Z
# -*- coding:utf-8 -*- # 4293 """ 299 200 333 340 399 443 531 504 461 536 493 562 503 423 516 316 554 500 543 491 537 509 459 467 551 489 519 614 576 510 498 542 """ """ 425.3813 339.3123 425.4084 426.7195 346.5619 342.1731 346.4786 389.6992 427.9460 426.4859 393.6239 428.2821 329.8853 ...
10.944444
54
0.580856
# -*- coding:utf-8 -*- def normalization(filename): data = [] maxValue = 0 with open(filename, 'r') as f: lines = f.readlines() for line in lines: elements = line.rstrip('\r\n').split(',') maxValue = max(int(elements[1]), maxValue) data.append(elements) ...
486
0
23
96c4d681739136dc5342c8df0678736acad11414
11,249
py
Python
sim_objs_wrelaunch.py
mfatihaktas/deep-scheduler
ad567465399620ec379cfdaa67fbcd94ded03c75
[ "MIT" ]
11
2018-03-28T02:55:12.000Z
2021-07-12T15:21:38.000Z
sim_objs_wrelaunch.py
mfatihaktas/deep-scheduler
ad567465399620ec379cfdaa67fbcd94ded03c75
[ "MIT" ]
null
null
null
sim_objs_wrelaunch.py
mfatihaktas/deep-scheduler
ad567465399620ec379cfdaa67fbcd94ded03c75
[ "MIT" ]
5
2018-03-16T01:36:46.000Z
2019-10-17T03:23:20.000Z
import collections from sim_objs import * from mapper import * # ############################################ Scher ########################################### #
32.14
118
0.598009
import collections from sim_objs import * from mapper import * class Task_wrelaunch(): def __init__(self, _id, jid, reqed, lifetime, k): self._id = _id self.jid = jid self.reqed = reqed self.lifetime = lifetime self.k = k self.rem_lifetime = None self.prev_hop_id = None self.bin...
10,249
37
797
f37550b5e9a72c354417da5a9b606fbad151607c
13,123
py
Python
bootcamp/confcreator/views.py
davismathew/netbot-django
5a46368ba7c16790e1b96292eecfde6f8f35d2e5
[ "MIT" ]
null
null
null
bootcamp/confcreator/views.py
davismathew/netbot-django
5a46368ba7c16790e1b96292eecfde6f8f35d2e5
[ "MIT" ]
null
null
null
bootcamp/confcreator/views.py
davismathew/netbot-django
5a46368ba7c16790e1b96292eecfde6f8f35d2e5
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseBadRequest, HttpResponse from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bootcamp.confcreator.forms import ConfCreatorForm from bootcamp.confcreator.models import ConfCreator from django.co...
40.503086
657
0.624857
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseBadRequest, HttpResponse from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bootcamp.confcreator.forms import ConfCreatorForm from bootcamp.confcreator.models import ConfCreator from django.co...
5,374
0
157
f88dc564eb1aa7a33eb0a11b1c58e2b1c4402ace
6,954
py
Python
causticTools/analytic.py
marwahaha/CausticFrog
333fb3491f88e2f303913cd9268d2ea92132b28f
[ "MIT" ]
null
null
null
causticTools/analytic.py
marwahaha/CausticFrog
333fb3491f88e2f303913cd9268d2ea92132b28f
[ "MIT" ]
null
null
null
causticTools/analytic.py
marwahaha/CausticFrog
333fb3491f88e2f303913cd9268d2ea92132b28f
[ "MIT" ]
1
2019-04-29T09:24:11.000Z
2019-04-29T09:24:11.000Z
import scipy.optimize import numpy as np #analytic soln G=1 m=1 M=1 mu=1 t=1 eps=1 turn=np.zeros(1)
34.597015
167
0.593471
import scipy.optimize import numpy as np #analytic soln G=1 m=1 M=1 mu=1 t=1 eps=1 turn=np.zeros(1) def densProfile(minR,maxR,nR,M,m,t,nTurn=100000,G=4.96e-15,returnGradient=0,evenSpaced=1): #updates parameters and finds density profile (and optionally it's gradient) setGlobals(m,M,t,nTurn,G) if evenSpaced==0: ...
6,349
0
506
f830fcfe13c315f8067f775395b9e0d3f6be82cf
8,447
py
Python
minkit/minimization/minuit_api.py
mramospe/minkit
fa6808a6ca8063751da92f683f2b810a0690a462
[ "MIT-0" ]
null
null
null
minkit/minimization/minuit_api.py
mramospe/minkit
fa6808a6ca8063751da92f683f2b810a0690a462
[ "MIT-0" ]
5
2020-01-30T18:30:33.000Z
2020-11-10T09:13:47.000Z
minkit/minimization/minuit_api.py
mramospe/minkit
fa6808a6ca8063751da92f683f2b810a0690a462
[ "MIT-0" ]
1
2020-02-03T22:59:00.000Z
2020-02-03T22:59:00.000Z
######################################## # MIT License # # Copyright (c) 2020 Miguel Ramos Pernas ######################################## ''' Definition of the interface functions and classes with :mod:`iminuit`. ''' from ..base import data_types from ..base import parameters from . import core import contextlib impo...
35.64135
130
0.610276
######################################## # MIT License # # Copyright (c) 2020 Miguel Ramos Pernas ######################################## ''' Definition of the interface functions and classes with :mod:`iminuit`. ''' from ..base import data_types from ..base import parameters from . import core import contextlib impo...
897
6,051
49
3dc21be12a42c5d6d729c681b9dfecb4b262dcdb
49,623
py
Python
launcher/openpype/style/pyqt5_resources.py
MoonShineVFX/pype-launcher
86d6ffaedd9138340f6991da0983d2ffcf5d25da
[ "MIT" ]
1
2020-09-21T14:55:33.000Z
2020-09-21T14:55:33.000Z
openpype/style/pyqt5_resources.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
null
null
null
openpype/style/pyqt5_resources.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x00\xa0\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x06\...
56.325766
129
0.7241
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x00\xa0\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x06\...
237
0
46
1fbc724faaab3d387637719cee7348a5567df291
7,686
py
Python
tests/unit/old_test_cases.py
pylhc/regresspy
e6a6546d8df4609a789b8c3a5090e6cfa9f7d24e
[ "MIT" ]
null
null
null
tests/unit/old_test_cases.py
pylhc/regresspy
e6a6546d8df4609a789b8c3a5090e6cfa9f7d24e
[ "MIT" ]
1
2021-02-04T22:52:27.000Z
2021-02-04T22:52:27.000Z
tests/unit/old_test_cases.py
pylhc/regresspy
e6a6546d8df4609a789b8c3a5090e6cfa9f7d24e
[ "MIT" ]
null
null
null
import os import filecmp import argparse from os.path import join, abspath, dirname, pardir from regresspy import compare_utils, regression ABS_ROOT = abspath(join(dirname(__file__), pardir, pardir)) REGR_DIR = join("tests", "regression") TBTS = join("tests", "inputs", "tbt_files") MODELS = join("tests", "inputs", "...
41.545946
151
0.595628
import os import filecmp import argparse from os.path import join, abspath, dirname, pardir from regresspy import compare_utils, regression ABS_ROOT = abspath(join(dirname(__file__), pardir, pardir)) REGR_DIR = join("tests", "regression") TBTS = join("tests", "inputs", "tbt_files") MODELS = join("tests", "inputs", "...
211
0
23
fe4d1d311bd963f1b9a6642ce2ef0b59f06b637b
751
py
Python
ch06/batch_norm_gradient_check.py
junhaoim/deep-learning-from-scratch
26d26ca6182733af2bc2dfd079a268a4fc6196a1
[ "MIT" ]
null
null
null
ch06/batch_norm_gradient_check.py
junhaoim/deep-learning-from-scratch
26d26ca6182733af2bc2dfd079a268a4fc6196a1
[ "MIT" ]
null
null
null
ch06/batch_norm_gradient_check.py
junhaoim/deep-learning-from-scratch
26d26ca6182733af2bc2dfd079a268a4fc6196a1
[ "MIT" ]
null
null
null
# coding: utf-8 import os import sys sys.path.append(os.pardir) # 親ディレクトリのファイルをインポートするための設定 import numpy as np from dataset.mnist import load_mnist from common.multi_layer_net_extend import MultiLayerNetExtend # データの読み込み (x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label=True) network =...
30.04
90
0.744341
# coding: utf-8 import os import sys sys.path.append(os.pardir) # 親ディレクトリのファイルをインポートするための設定 import numpy as np from dataset.mnist import load_mnist from common.multi_layer_net_extend import MultiLayerNetExtend # データの読み込み (x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label=True) network =...
0
0
0
e9f44df7eaf75259e321f0e7a92d8364b1b9982e
1,694
py
Python
src/preprocess_crosseval.py
palonso/musicnn-training
7dd9f28f221c2f2d53b48d0e768093a4f707d6f9
[ "0BSD" ]
1
2020-11-13T10:07:19.000Z
2020-11-13T10:07:19.000Z
src/preprocess_crosseval.py
palonso/musicnn-training
7dd9f28f221c2f2d53b48d0e768093a4f707d6f9
[ "0BSD" ]
9
2020-11-19T11:59:15.000Z
2022-03-28T09:49:58.000Z
src/preprocess_crosseval.py
palonso/musicnn-training
7dd9f28f221c2f2d53b48d0e768093a4f707d6f9
[ "0BSD" ]
2
2020-11-02T16:46:29.000Z
2022-02-24T11:50:41.000Z
from pathlib import Path import argparse from preprocess import process_files if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('index_file', help='index file') parser.add_argument('audio_dir', help='input audio folder') parser.add_argument('data_dir', help='output dat...
33.88
82
0.55608
from pathlib import Path import argparse from preprocess import process_files if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('index_file', help='index file') parser.add_argument('audio_dir', help='input audio folder') parser.add_argument('data_dir', help='output dat...
0
0
0
0c7ffe3e6845a0e8ef98de9fb0fbab465b5fed20
2,138
py
Python
components/isceobj/Util/geo/__init__.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
1,133
2022-01-07T21:24:57.000Z
2022-01-07T21:33:08.000Z
components/isceobj/Util/geo/__init__.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
276
2019-02-10T07:18:28.000Z
2022-03-31T21:45:55.000Z
components/isceobj/Util/geo/__init__.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
235
2019-02-10T05:00:53.000Z
2022-03-18T07:37:24.000Z
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright 2012 California Institute of Technology. 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 th...
41.921569
81
0.681478
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright 2012 California Institute of Technology. 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 th...
0
0
0
2f73b79b2daea60c3eb938922ad5983b139d334b
12,015
py
Python
nbdler/download.py
ZSAIm/downloader
b7cda1fc26fc65be3aa0ee7e31effc67b770babd
[ "Apache-2.0" ]
33
2019-04-12T15:20:16.000Z
2021-07-14T08:29:53.000Z
nbdler/download.py
zackmark29/Nbdler
b7cda1fc26fc65be3aa0ee7e31effc67b770babd
[ "Apache-2.0" ]
3
2019-05-13T11:39:08.000Z
2021-08-04T04:53:36.000Z
nbdler/download.py
zackmark29/Nbdler
b7cda1fc26fc65be3aa0ee7e31effc67b770babd
[ "Apache-2.0" ]
10
2019-05-07T06:35:32.000Z
2021-06-08T18:53:56.000Z
from concurrent.futures.thread import ThreadPoolExecutor from nbdler.handler import ( SpeedAdjuster, AIOReaderWriter, BlockSlicer, FileTempData, ClientWorker, URIStatusManager, GatherException, h, Handlers) from .client import get_policy, ClientPolicy from .version import VERSION from ....
31.370757
109
0.606575
from concurrent.futures.thread import ThreadPoolExecutor from nbdler.handler import ( SpeedAdjuster, AIOReaderWriter, BlockSlicer, FileTempData, ClientWorker, URIStatusManager, GatherException, h, Handlers) from .client import get_policy, ClientPolicy from .version import VERSION from ....
3,407
8,974
46
dd976cdda5e5f0053e1fa78fbec5e4ed77678bcb
796
py
Python
.ci/build.py
zayigo/dasshio
9a46bd8e21af4c37dbbe46d56540b69534abc550
[ "Apache-2.0" ]
156
2017-07-11T20:12:34.000Z
2022-03-20T20:33:03.000Z
.ci/build.py
zayigo/dasshio
9a46bd8e21af4c37dbbe46d56540b69534abc550
[ "Apache-2.0" ]
93
2017-07-11T09:33:10.000Z
2022-03-12T01:24:39.000Z
.ci/build.py
zayigo/dasshio
9a46bd8e21af4c37dbbe46d56540b69534abc550
[ "Apache-2.0" ]
82
2017-07-12T01:46:46.000Z
2022-03-13T13:38:52.000Z
#! /usr/bin/env python import os travis_tag = os.getenv("TRAVIS_TAG") addon = os.getenv("ADDON") docker_build = "docker run --rm --privileged " \ "-v /var/run/docker.sock:/var/run/docker.sock " \ "-v ~/.docker:/root/.docker " \ "-v $(pwd):/docker " \ "hassi...
29.481481
64
0.527638
#! /usr/bin/env python import os def run(cmd, message=None): msg = message or cmd print("\n%s\n" % msg) ret = os.system(cmd) if ret != 0: raise Exception("Error running: %s" % msg) travis_tag = os.getenv("TRAVIS_TAG") addon = os.getenv("ADDON") docker_build = "docker run --rm --privileged " ...
150
0
23
67f75a9d85590323838fec58a75ff6a3420f26b0
1,247
py
Python
saleor/discount/migrations/0037_rewrite_discount_order_relations.py
siyoola/saleor
4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0
[ "CC-BY-4.0" ]
null
null
null
saleor/discount/migrations/0037_rewrite_discount_order_relations.py
siyoola/saleor
4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0
[ "CC-BY-4.0" ]
86
2021-11-01T04:51:55.000Z
2022-03-30T16:30:16.000Z
saleor/discount/migrations/0037_rewrite_discount_order_relations.py
siyoola/saleor
4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0
[ "CC-BY-4.0" ]
null
null
null
# Generated by Django 3.2.12 on 2022-02-25 11:08 import django.db.models.deletion from django.db import migrations, models
27.108696
60
0.524459
# Generated by Django 3.2.12 on 2022-02-25 11:08 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("order", "0129_change_pk_to_uuid"), ("discount", "0036_save_discocunt_order_token"), ] operations = [ ...
0
1,099
23
71dd82f6b05a1357c01139e7ce2ad2b4a3921551
2,738
py
Python
eth/rlp/transactions.py
manfr3d/py-evm
36aefcc95346541a33896250250e2d8b46af4a77
[ "MIT" ]
1
2020-05-03T18:05:11.000Z
2020-05-03T18:05:11.000Z
eth/rlp/transactions.py
dariusdv/py-evm
bfdf695ca3f0bf6e4be273cd91f9a953818f4e77
[ "MIT" ]
null
null
null
eth/rlp/transactions.py
dariusdv/py-evm
bfdf695ca3f0bf6e4be273cd91f9a953818f4e77
[ "MIT" ]
1
2021-09-13T21:14:10.000Z
2021-09-13T21:14:10.000Z
from cached_property import cached_property import rlp from rlp.sedes import ( big_endian_int, binary, ) from eth_typing import ( Address ) from eth_hash.auto import keccak from eth_utils import ( ValidationError, ) from eth.abc import ( BaseTransactionAPI, ComputationAPI, SignedTransacti...
25.119266
105
0.636596
from cached_property import cached_property import rlp from rlp.sedes import ( big_endian_int, binary, ) from eth_typing import ( Address ) from eth_hash.auto import keccak from eth_utils import ( ValidationError, ) from eth.abc import ( BaseTransactionAPI, ComputationAPI, SignedTransacti...
699
1,250
92
aa558f0a4a309edd3e4cd0dbe1404eb1dd013225
1,933
py
Python
alarme/extras/action/email/email_action.py
insolite/alarme
2312e88299a07d47435f475e5617213404e6d365
[ "MIT" ]
null
null
null
alarme/extras/action/email/email_action.py
insolite/alarme
2312e88299a07d47435f475e5617213404e6d365
[ "MIT" ]
1
2017-02-04T13:03:05.000Z
2017-02-04T13:03:05.000Z
alarme/extras/action/email/email_action.py
insolite/alarme
2312e88299a07d47435f475e5617213404e6d365
[ "MIT" ]
null
null
null
import sys from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import aiosmtplib from jinja2 import Environment, PackageLoader, Template from alarme import Action
32.216667
124
0.598034
import sys from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import aiosmtplib from jinja2 import Environment, PackageLoader, Template from alarme import Action class EmailAction(Action): def __init__(self, app, id_, host, port, login, password, sender, recipient, subject, env...
1,653
5
77
c8ccd886e5c2af51ed658f464f97ed59ad2bf676
838
py
Python
core/migrations/0004_auto_20180417_1311.py
araceli24/TimeWorking
75e25d3710ff58701d844c57686540ffa7a11604
[ "MIT" ]
null
null
null
core/migrations/0004_auto_20180417_1311.py
araceli24/TimeWorking
75e25d3710ff58701d844c57686540ffa7a11604
[ "MIT" ]
17
2018-04-30T08:01:36.000Z
2021-06-10T20:25:13.000Z
core/migrations/0004_auto_20180417_1311.py
araceli24/TimeWorking
75e25d3710ff58701d844c57686540ffa7a11604
[ "MIT" ]
2
2018-05-02T10:29:03.000Z
2018-05-02T13:02:30.000Z
# Generated by Django 2.0.4 on 2018-04-17 11:11 from django.db import migrations, models import django.utils.timezone
27.933333
97
0.609785
# Generated by Django 2.0.4 on 2018-04-17 11:11 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('core', '0003_auto_20180417_1308'), ] operations = [ migrations.AlterField( model_name='activityjour...
0
695
23
09b4ea330908b3fa86b3cb0f963c0ecb26bc25b1
19,659
py
Python
venv/Lib/site-packages/pyrogram/raw/types/config.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/config.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/config.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
52.705094
2,004
0.678214
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
14,233
0
80
f067367736e84950cecdc41962db5d8218617876
98
py
Python
fmcapi/api_objects/device_services/vlaninterfaces.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
fmcapi/api_objects/device_services/vlaninterfaces.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
fmcapi/api_objects/device_services/vlaninterfaces.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
""" Not yet implemented added FMC v6.5.0 Appears to only be valid for Firepower 1010 devices. """
16.333333
52
0.734694
""" Not yet implemented added FMC v6.5.0 Appears to only be valid for Firepower 1010 devices. """
0
0
0
568d2084adf71a287fd23fe49c7602c597d70fdf
85
py
Python
src/tcp/server/src/sizeof.py
gltchitm/pong-c-cheats
64bdb50519db0ebdc68ae19c3ce738e658fb71d3
[ "MIT" ]
null
null
null
src/tcp/server/src/sizeof.py
gltchitm/pong-c-cheats
64bdb50519db0ebdc68ae19c3ce738e658fb71d3
[ "MIT" ]
null
null
null
src/tcp/server/src/sizeof.py
gltchitm/pong-c-cheats
64bdb50519db0ebdc68ae19c3ce738e658fb71d3
[ "MIT" ]
null
null
null
SIZEOF_BYTE = 8 SIZEOF_INT_16 = 16 // SIZEOF_BYTE SIZEOF_INT_32 = 32 // SIZEOF_BYTE
17
33
0.752941
SIZEOF_BYTE = 8 SIZEOF_INT_16 = 16 // SIZEOF_BYTE SIZEOF_INT_32 = 32 // SIZEOF_BYTE
0
0
0
205c779565841ac9c1b324e15a5cddc8e0f004a7
409
py
Python
others/edge/speech_recognition/pytorch/setup.py
luluseptember/inference
acbc7b0bf288343ed81e62b69dea8afec03d679b
[ "Apache-2.0" ]
4
2019-07-26T03:00:39.000Z
2021-01-29T16:12:21.000Z
others/edge/speech_recognition/pytorch/setup.py
luluseptember/inference
acbc7b0bf288343ed81e62b69dea8afec03d679b
[ "Apache-2.0" ]
5
2020-09-26T00:53:40.000Z
2022-02-10T01:13:29.000Z
others/edge/speech_recognition/pytorch/setup.py
luluseptember/inference
acbc7b0bf288343ed81e62b69dea8afec03d679b
[ "Apache-2.0" ]
7
2019-07-23T14:07:21.000Z
2021-07-05T12:41:08.000Z
import setuptools setuptools.setup( name="deepspeech", version="0.3.0", description="train and evaluate a DeepSpeech or DeepSpeech2 network", author="myrtle.ai", author_email="mlperf@myrtle.ai", packages=setuptools.find_packages('src'), package_dir={'': 'src'}, python_requires='>=3.5', ...
25.5625
73
0.665037
import setuptools setuptools.setup( name="deepspeech", version="0.3.0", description="train and evaluate a DeepSpeech or DeepSpeech2 network", author="myrtle.ai", author_email="mlperf@myrtle.ai", packages=setuptools.find_packages('src'), package_dir={'': 'src'}, python_requires='>=3.5', ...
0
0
0
f7c95412d83a0afd3dd3d0cc9ae3af3d9adb648c
20,572
py
Python
rapidtide/OrthoImageItem.py
tsalo/rapidtide
9e0faff6e9796c21bd62d4b98c309034c0eba766
[ "Apache-2.0" ]
null
null
null
rapidtide/OrthoImageItem.py
tsalo/rapidtide
9e0faff6e9796c21bd62d4b98c309034c0eba766
[ "Apache-2.0" ]
null
null
null
rapidtide/OrthoImageItem.py
tsalo/rapidtide
9e0faff6e9796c21bd62d4b98c309034c0eba766
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: latin-1 -*- # # Copyright 2016-2021 Blaise Frederick # # 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/LICEN...
36.154657
99
0.595615
#!/usr/bin/env python # -*- coding: latin-1 -*- # # Copyright 2016-2021 Blaise Frederick # # 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/LICEN...
18,653
778
69
43bbd16a069970509cd22e50a5ec81784382bd16
4,200
py
Python
src/arch/arm/ArmFsWorkload.py
yclin99/CS251A_final_gem5
391ca1d7c9484f4d58fce9a4424821dcbb2463ac
[ "BSD-3-Clause" ]
1
2022-03-25T13:18:26.000Z
2022-03-25T13:18:26.000Z
src/arch/arm/ArmFsWorkload.py
yclin99/CS251A_final_gem5
391ca1d7c9484f4d58fce9a4424821dcbb2463ac
[ "BSD-3-Clause" ]
1
2022-03-25T14:15:30.000Z
2022-03-25T14:15:30.000Z
src/arch/arm/ArmFsWorkload.py
ksco/gem5-xiangshan
0baf1b5229885d81d689a677102f0665aaac5514
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009, 2012-2013, 2015-2020 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation...
44.680851
77
0.729048
# Copyright (c) 2009, 2012-2013, 2015-2020 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation...
0
1,893
92
77d177e6f11bfb9fc9165a0dfb6f8d521f2dee0f
1,678
py
Python
leet/problems/295_median_of_stream.py
blurrcat/leet
bc2d00790f6b7e9cab56b1ddb55070ea9879a1c4
[ "BSD-3-Clause" ]
null
null
null
leet/problems/295_median_of_stream.py
blurrcat/leet
bc2d00790f6b7e9cab56b1ddb55070ea9879a1c4
[ "BSD-3-Clause" ]
null
null
null
leet/problems/295_median_of_stream.py
blurrcat/leet
bc2d00790f6b7e9cab56b1ddb55070ea9879a1c4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value. Examples: [2,3,4] , the median is 3 [2,3], the median is (2 + 3) / 2 = 2.5 Design a data structure th...
22.373333
78
0.563766
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value. Examples: [2,3,4] , the median is 3 [2,3], the median is (2 + 3) / 2 = 2.5 Design a data structure th...
0
641
23
8516d903a11321b76a91c884a666025686614372
26
py
Python
tiingo_client/__init__.py
arainboldt/tiingo_client
c5c54dc77819dac1526fe3cbb373430180165438
[ "MIT" ]
null
null
null
tiingo_client/__init__.py
arainboldt/tiingo_client
c5c54dc77819dac1526fe3cbb373430180165438
[ "MIT" ]
null
null
null
tiingo_client/__init__.py
arainboldt/tiingo_client
c5c54dc77819dac1526fe3cbb373430180165438
[ "MIT" ]
null
null
null
from .client import Tiingo
26
26
0.846154
from .client import Tiingo
0
0
0
4a2fcf84d819ccdfff4e5675f100d5b1cfb73f33
634
py
Python
djfiler/core/logger.py
E-RROR/django-file-upload-handler
7efe013dfad225cd5691109757857aa9155d2043
[ "Apache-2.0" ]
8
2019-08-14T16:42:40.000Z
2021-05-27T01:28:23.000Z
djfiler/core/logger.py
E-RROR/django-file-upload-handler
7efe013dfad225cd5691109757857aa9155d2043
[ "Apache-2.0" ]
1
2019-12-30T18:05:44.000Z
2020-01-06T07:10:54.000Z
djfiler/core/logger.py
E-RROR/django-file-upload-handler
7efe013dfad225cd5691109757857aa9155d2043
[ "Apache-2.0" ]
2
2019-08-14T16:43:00.000Z
2020-01-01T13:49:48.000Z
""" # # Sina Farhadi # # @2019 All Rights Served # # This Is Logger Code # # This Module is Use To Print Debugging Process # """ # Colors debug = True # Error Log # Info Log
17.135135
54
0.578864
""" # # Sina Farhadi # # @2019 All Rights Served # # This Is Logger Code # # This Module is Use To Print Debugging Process # """ # Colors class bcolors: INFO = '\033[94m' ERROR = '\033[91m' RESET = '\033[0m' debug = True def init(state): global debug debug = state # Error Log def erro...
297
60
89
f7c6ad607853e474524140843313ce111c6b547c
8,346
py
Python
geometric/tests/test_batch_opt.py
CRingrose94/geomeTRIC
5d8eada8c0fafc4aa354adae4a2d84b5b8d943b2
[ "BSD-3-Clause" ]
73
2016-06-22T02:38:27.000Z
2022-03-10T14:23:43.000Z
geometric/tests/test_batch_opt.py
CRingrose94/geomeTRIC
5d8eada8c0fafc4aa354adae4a2d84b5b8d943b2
[ "BSD-3-Clause" ]
108
2017-04-22T06:23:18.000Z
2022-01-07T15:46:15.000Z
geometric/tests/test_batch_opt.py
CRingrose94/geomeTRIC
5d8eada8c0fafc4aa354adae4a2d84b5b8d943b2
[ "BSD-3-Clause" ]
45
2016-06-22T02:38:29.000Z
2022-03-10T19:19:02.000Z
""" A set of tests for using the QCEngine project """ import copy import numpy as np import tempfile import logging import math from geometric.molecule import bohr2ang logger = logging.getLogger(__name__) from . import addons import geometric.optimize as gt from geometric.internal import CartesianCoordinates,\ ...
34.487603
115
0.554996
""" A set of tests for using the QCEngine project """ import copy import numpy as np import tempfile import logging import math from geometric.molecule import bohr2ang logger = logging.getLogger(__name__) from . import addons import geometric.optimize as gt from geometric.internal import CartesianCoordinates,\ ...
2,139
0
75
6a5870fd958fc13f8bc230be8f1e43fe623364ff
3,475
py
Python
nameko/exceptions.py
mitsuhiko/nameko
6dccde0aec58a1c85efffcb1bdd38aca488c8874
[ "Apache-2.0" ]
3
2015-06-15T15:19:00.000Z
2017-09-04T07:43:40.000Z
nameko/exceptions.py
mitsuhiko/nameko
6dccde0aec58a1c85efffcb1bdd38aca488c8874
[ "Apache-2.0" ]
null
null
null
nameko/exceptions.py
mitsuhiko/nameko
6dccde0aec58a1c85efffcb1bdd38aca488c8874
[ "Apache-2.0" ]
null
null
null
import inspect class RpcConnectionError(Exception): """Raised (in the caller) if the connection to the broker is lost while waiting for an rpc reply""" class ContainerBeingKilled(Exception): """Raised by :meth:`Container.spawn_worker` if it has started a ``kill`` sequence. Entrypoint provider...
25.740741
78
0.67741
import inspect class DependencyNotFound(AttributeError): pass class RpcTimeout(Exception): pass class RpcConnectionError(Exception): """Raised (in the caller) if the connection to the broker is lost while waiting for an rpc reply""" class ContainerBeingKilled(Exception): """Raised by :meth:`...
617
143
290
5a42f017a4fc7d18f5c73c21cd7738736376401f
43
py
Python
virl/cli/views/generate/nso/__init__.py
tombry/virlutils
e98136b4e88c456828f2d0496c14f851f2627a46
[ "MIT" ]
133
2018-07-01T06:08:49.000Z
2022-03-26T15:22:21.000Z
virl/cli/views/generate/nso/__init__.py
tombry/virlutils
e98136b4e88c456828f2d0496c14f851f2627a46
[ "MIT" ]
76
2018-06-28T16:41:57.000Z
2022-03-26T17:23:06.000Z
virl/cli/views/generate/nso/__init__.py
tombry/virlutils
e98136b4e88c456828f2d0496c14f851f2627a46
[ "MIT" ]
43
2018-06-27T20:40:52.000Z
2022-02-22T06:16:11.000Z
from .sync_result import sync_table # noqa
21.5
42
0.813953
from .sync_result import sync_table # noqa
0
0
0
f878c891985f242d5e6305f224668b4389ba01c9
5,793
py
Python
prototyping.py
SimonKitSangChu/MLSB2021
1785a2d452be4652d3c6690188cf622a45bab5ef
[ "MIT" ]
1
2022-01-25T14:37:30.000Z
2022-01-25T14:37:30.000Z
prototyping.py
SimonKitSangChu/MLSB2021
1785a2d452be4652d3c6690188cf622a45bab5ef
[ "MIT" ]
null
null
null
prototyping.py
SimonKitSangChu/MLSB2021
1785a2d452be4652d3c6690188cf622a45bab5ef
[ "MIT" ]
null
null
null
from absl import app from absl import flags from collections import OrderedDict import itertools import pandas as pd from pathlib import Path import pickle from sklearn.model_selection import ParameterGrid from proteingnn.model import get_default_trainer from proteingnn.example.data import DefaultDatamodule, read_Deep...
34.688623
116
0.574141
from absl import app from absl import flags from collections import OrderedDict import itertools import pandas as pd from pathlib import Path import pickle from sklearn.model_selection import ParameterGrid from proteingnn.model import get_default_trainer from proteingnn.example.data import DefaultDatamodule, read_Deep...
4,348
0
23
60534f2e888ee14f526ac932a253eb938bce831d
169
py
Python
mundo-1/ex027.py
RaoniSilvestre/Exercicios-Python
d840a9471dc0ddf805ead0c63f9be5de0fb375af
[ "MIT" ]
2
2021-05-06T20:36:36.000Z
2022-02-17T13:50:07.000Z
mundo-1/ex027.py
RaoniSilvestre/Exercicios-Python
d840a9471dc0ddf805ead0c63f9be5de0fb375af
[ "MIT" ]
null
null
null
mundo-1/ex027.py
RaoniSilvestre/Exercicios-Python
d840a9471dc0ddf805ead0c63f9be5de0fb375af
[ "MIT" ]
1
2021-05-26T02:24:04.000Z
2021-05-26T02:24:04.000Z
n = str(input('Qual seu nome? ')).strip() nome = n.split() print('O seu primeiro nome é {} '.format(nome[0])) print('O seu último nome é {}'.format(nome[len(nome)-1]))
28.166667
57
0.627219
n = str(input('Qual seu nome? ')).strip() nome = n.split() print('O seu primeiro nome é {} '.format(nome[0])) print('O seu último nome é {}'.format(nome[len(nome)-1]))
0
0
0
76d37eeb763b9aacfdb11f6073e9a72d8092ec74
3,192
py
Python
training/pretrainav/attention.py
rub-ksv/-lrs_avsr1_local-
c743803d5d09461f72ab7dbaf0af73a7077f3c0e
[ "Apache-2.0" ]
1
2022-03-15T02:14:24.000Z
2022-03-15T02:14:24.000Z
training/pretrainav/attention.py
rub-ksv/lrs_avsr1_local
c743803d5d09461f72ab7dbaf0af73a7077f3c0e
[ "Apache-2.0" ]
null
null
null
training/pretrainav/attention.py
rub-ksv/lrs_avsr1_local
c743803d5d09461f72ab7dbaf0af73a7077f3c0e
[ "Apache-2.0" ]
1
2022-03-14T11:44:22.000Z
2022-03-14T11:44:22.000Z
import math import numpy import torch from torch import nn class MultiHeadedAttention(nn.Module): """Multi-Head Attention layer :param int n_head: the number of head s :param int n_feat: the number of features :param float dropout_rate: dropout rate """ def forward(self, query, key, value, ...
41.454545
88
0.590539
import math import numpy import torch from torch import nn class MultiHeadedAttention(nn.Module): """Multi-Head Attention layer :param int n_head: the number of head s :param int n_feat: the number of features :param float dropout_rate: dropout rate """ def __init__(self, n_head, n_feat, dr...
602
0
27
67ba5551f79a2e6847c52c0c79a6d8a030c8d2c0
652
py
Python
gdoc/types/units.py
WaffleHacks/sponsor-emails
8811a19b128e73972b11a03f15fc53d1b55fff69
[ "MIT" ]
null
null
null
gdoc/types/units.py
WaffleHacks/sponsor-emails
8811a19b128e73972b11a03f15fc53d1b55fff69
[ "MIT" ]
null
null
null
gdoc/types/units.py
WaffleHacks/sponsor-emails
8811a19b128e73972b11a03f15fc53d1b55fff69
[ "MIT" ]
null
null
null
from enum import Enum from pydantic import BaseModel class Direction(str, Enum): """ The text direction of the paragraph/section. If unset, default to `LEFT_TO_RIGHT` since paragraph/section direction is not inherited. """ UNSPECIFIED = "CONTENT_DIRECTION_UNSPECIFIED" LEFT_TO_RIGHT = "LEFT_TO...
21.032258
109
0.703988
from enum import Enum from pydantic import BaseModel class Direction(str, Enum): """ The text direction of the paragraph/section. If unset, default to `LEFT_TO_RIGHT` since paragraph/section direction is not inherited. """ UNSPECIFIED = "CONTENT_DIRECTION_UNSPECIFIED" LEFT_TO_RIGHT = "LEFT_TO...
0
0
0
a308b6e5ea73c7abeedf147edbe4e4f6f581649b
1,971
py
Python
reading_wolf.py
Xitog/teddy
aaa192bb254d2d76b00d0b869a56dd7d92c9208a
[ "MIT" ]
null
null
null
reading_wolf.py
Xitog/teddy
aaa192bb254d2d76b00d0b869a56dd7d92c9208a
[ "MIT" ]
null
null
null
reading_wolf.py
Xitog/teddy
aaa192bb254d2d76b00d0b869a56dd7d92c9208a
[ "MIT" ]
null
null
null
import os os.chdir(r'C:\Temp\Wolfenstein') print(os.getcwd()) CHAR8 = 1 INT16 = 2 INT32 = 4 f = open('MAPHEAD-1.2.WL1', 'rb') h = f.read() f.close() magic = h[0:0+INT16] # uint16le = 2x8 print(magic == b'\xcd\xab') ptr = h[2:INT32 * 100 + 2] levels = [] for i in range(100): levels.append(int.from_bytes(ptr[i*INT...
25.597403
82
0.559614
import os os.chdir(r'C:\Temp\Wolfenstein') print(os.getcwd()) CHAR8 = 1 INT16 = 2 INT32 = 4 f = open('MAPHEAD-1.2.WL1', 'rb') h = f.read() f.close() magic = h[0:0+INT16] # uint16le = 2x8 print(magic == b'\xcd\xab') ptr = h[2:INT32 * 100 + 2] levels = [] for i in range(100): levels.append(int.from_bytes(ptr[i*INT...
0
0
0
207334fb0604683530e1d47e6bbe23be43adb6dc
1,970
py
Python
2021/day8-seven-segment-search/part2.py
MartinPetkov/AdventOfCode
092f804fda8b831e08ff93b7d3f140554bdebd78
[ "MIT" ]
null
null
null
2021/day8-seven-segment-search/part2.py
MartinPetkov/AdventOfCode
092f804fda8b831e08ff93b7d3f140554bdebd78
[ "MIT" ]
null
null
null
2021/day8-seven-segment-search/part2.py
MartinPetkov/AdventOfCode
092f804fda8b831e08ff93b7d3f140554bdebd78
[ "MIT" ]
null
null
null
# Run as: # python3 part1.py [input|sample] import sys if __name__ == '__main__': main()
26.621622
75
0.556345
# Run as: # python3 part1.py [input|sample] import sys def solve(data): # Displays can be represented as sets of segments. # Part 1 is pretty simple, just count unique numbers of digits. numsum = 0 for line in data.splitlines(): line = line.strip() keys, output = line.split('|') keys = [''.join(...
1,829
0
46
c31381c112442920471ccab9c5da29a5fd4d2686
11,904
py
Python
enterprise_outliers/base.py
nanograv/enterprise_outliers
b9e354eae0a0872b218a3d39181ebdb2eb58344c
[ "MIT" ]
null
null
null
enterprise_outliers/base.py
nanograv/enterprise_outliers
b9e354eae0a0872b218a3d39181ebdb2eb58344c
[ "MIT" ]
null
null
null
enterprise_outliers/base.py
nanograv/enterprise_outliers
b9e354eae0a0872b218a3d39181ebdb2eb58344c
[ "MIT" ]
2
2022-02-02T21:08:20.000Z
2022-02-08T21:11:03.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Contains base class for computing the log likeihood and gradient for a single pulsar, including an outlier parameter to detect outlying TOAs. Any coordinate transformations to be applied build off of this base class. Class methods include computing white noise vectors...
37.316614
94
0.583417
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Contains base class for computing the log likeihood and gradient for a single pulsar, including an outlier parameter to detect outlying TOAs. Any coordinate transformations to be applied build off of this base class. Class methods include computing white noise vectors...
0
0
0
a6b5b260c928ef1376c822c1980bee3f398f545e
37,510
py
Python
numdoclint/py_module.py
peterprescott/numdoclint
ab9aad01b50c5060373d28bbf5930d2509f2228a
[ "MIT" ]
4
2020-01-01T16:10:44.000Z
2022-01-06T11:30:12.000Z
numdoclint/py_module.py
peterprescott/numdoclint
ab9aad01b50c5060373d28bbf5930d2509f2228a
[ "MIT" ]
28
2019-06-25T12:05:04.000Z
2022-03-25T16:37:05.000Z
numdoclint/py_module.py
peterprescott/numdoclint
ab9aad01b50c5060373d28bbf5930d2509f2228a
[ "MIT" ]
1
2022-03-16T13:09:03.000Z
2022-03-16T13:09:03.000Z
"""A module that checks docstrings in Python files. """ import inspect import os import sys from typing import Any, Dict, List, Tuple from numdoclint import helper VERBOSE_DISABLED: int = 0 VERBOSE_ENABLED: int = 1 def check_python_module( py_module_path: str, verbose: int = 1, ignore_func_name_pre...
35.253759
78
0.656305
"""A module that checks docstrings in Python files. """ import inspect import os import sys from typing import Any, Dict, List, Tuple from numdoclint import helper VERBOSE_DISABLED: int = 0 VERBOSE_ENABLED: int = 1 def check_python_module( py_module_path: str, verbose: int = 1, ignore_func_name_pre...
0
0
0
a030f846825e8eeeca1e5e9e2eb6b7adbfb565e9
18,013
py
Python
runtime/pylibs/fffix.py
blapplejuice/ByteClient
5f04232468dfe5b609c043e3d4b094ff667d9c51
[ "MIT" ]
1
2021-03-24T12:20:04.000Z
2021-03-24T12:20:04.000Z
runtime/pylibs/fffix.py
blapplejuice/ByteClient
5f04232468dfe5b609c043e3d4b094ff667d9c51
[ "MIT" ]
null
null
null
runtime/pylibs/fffix.py
blapplejuice/ByteClient
5f04232468dfe5b609c043e3d4b094ff667d9c51
[ "MIT" ]
2
2021-03-27T15:43:42.000Z
2021-03-27T15:50:42.000Z
# -*- coding: utf-8 -*- """ Created on Thu Jan 19 16:29:03 2012 Rewritten on Tue July 28 13:09:00 2015 @author: Fesh0r, LexManos @version: v7.0 """ import sys import os import fnmatch import shutil import re import zipfile import time from contextlib import closing from optparse import OptionParser from pprint impor...
41.409195
192
0.558541
# -*- coding: utf-8 -*- """ Created on Thu Jan 19 16:29:03 2012 Rewritten on Tue July 28 13:09:00 2015 @author: Fesh0r, LexManos @version: v7.0 """ import sys import os import fnmatch import shutil import re import zipfile import time from contextlib import closing from optparse import OptionParser from pprint impor...
10,292
23
257
fa5da1ccccc0c859e7639b9ea8f3bc0a30005533
10,288
py
Python
powerbox/dft.py
LBJ-Wade/powerbox
491047f2cac516dc800fc9a3ef052ced8d0805fe
[ "MIT" ]
null
null
null
powerbox/dft.py
LBJ-Wade/powerbox
491047f2cac516dc800fc9a3ef052ced8d0805fe
[ "MIT" ]
null
null
null
powerbox/dft.py
LBJ-Wade/powerbox
491047f2cac516dc800fc9a3ef052ced8d0805fe
[ "MIT" ]
null
null
null
r""" A module defining some "nicer" fourier transform functions. We define only two functions -- an arbitrary-dimension forward transform, and its inverse. In each case, the transform is designed to replicate the continuous transform. That is, the transform is volume-normalised and obeys correct Fourier conventions. ...
37.275362
143
0.669421
r""" A module defining some "nicer" fourier transform functions. We define only two functions -- an arbitrary-dimension forward transform, and its inverse. In each case, the transform is designed to replicate the continuous transform. That is, the transform is volume-normalised and obeys correct Fourier conventions. ...
387
0
100
e140e1f5310dea3ab85db18719c192b5fb78ebb2
5,696
py
Python
apps/zabbix/views.py
sunfan666/cmdb
71722a8dddf5e337d7658328cfcac0c9108b067c
[ "MIT" ]
3
2020-06-11T10:57:22.000Z
2021-03-25T02:45:05.000Z
apps/zabbix/views.py
sunfan666/cmdb
71722a8dddf5e337d7658328cfcac0c9108b067c
[ "MIT" ]
2
2020-08-05T07:59:45.000Z
2020-08-05T08:00:48.000Z
apps/zabbix/views.py
sunfan666/cmdb
71722a8dddf5e337d7658328cfcac0c9108b067c
[ "MIT" ]
null
null
null
from rest_framework.viewsets import ViewSet from rest_framework.response import Response from rest_framework.mixins import ListModelMixin from rest_framework import status, permissions from servers.models import Server from .models import Hosts, Functions, Triggers from products.models import Product class ZabbixH...
32
109
0.62342
from rest_framework.viewsets import ViewSet from rest_framework.response import Response from rest_framework.mixins import ListModelMixin from rest_framework import status, permissions from servers.models import Server from .models import Hosts, Functions, Triggers from products.models import Product class ZabbixH...
3,477
14
398
5ff03d842471ecd75c168d00b8ab838656c6348b
4,054
py
Python
Thonny/Lib/site-packages/thonny/misc_utils.py
byache/thonny
197925d51be64bc1ff1f8488d3755697f5121025
[ "MIT" ]
null
null
null
Thonny/Lib/site-packages/thonny/misc_utils.py
byache/thonny
197925d51be64bc1ff1f8488d3755697f5121025
[ "MIT" ]
null
null
null
Thonny/Lib/site-packages/thonny/misc_utils.py
byache/thonny
197925d51be64bc1ff1f8488d3755697f5121025
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os.path import platform import sys import shutil import time
33.229508
107
0.628022
# -*- coding: utf-8 -*- import os.path import platform import sys import shutil import time def eqfn(name1, name2): return os.path.normcase(name1) == os.path.normcase(name2) def delete_dir_try_hard(path, hardness=5): # Deleting the folder on Windows is not so easy task # http://bugs.python.org/issue1549...
3,679
0
278
13b8b2521dcc6c4cd1a52af18c48f321659ae208
89
py
Python
tests.py
markdavidmc0/solid-utility
33fe8ab5ad3abf42c4bd5e7ef2fd1f8ce7b1549a
[ "MIT" ]
null
null
null
tests.py
markdavidmc0/solid-utility
33fe8ab5ad3abf42c4bd5e7ef2fd1f8ce7b1549a
[ "MIT" ]
null
null
null
tests.py
markdavidmc0/solid-utility
33fe8ab5ad3abf42c4bd5e7ef2fd1f8ce7b1549a
[ "MIT" ]
null
null
null
import pytest # noqa: F401
9.888889
27
0.606742
import pytest # noqa: F401 class TestPod(): def test_sanity(self): pass
14
-5
50
44e930fa49985f771afb92ee35f24948f58f7da7
5,170
py
Python
zoom_link.py
Tianea2160/KW_calendar_web
7e64d8b69b14ade372aa92fe57769b0dfce813c5
[ "MIT" ]
1
2021-11-01T12:26:34.000Z
2021-11-01T12:26:34.000Z
zoom_link.py
heajinkwon/KW_calendar_web-1
7e64d8b69b14ade372aa92fe57769b0dfce813c5
[ "MIT" ]
null
null
null
zoom_link.py
heajinkwon/KW_calendar_web-1
7e64d8b69b14ade372aa92fe57769b0dfce813c5
[ "MIT" ]
2
2021-11-25T15:03:41.000Z
2022-01-02T02:25:43.000Z
from selenium import webdriver import time from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException from selenium.webdriver.support.select import Select from bs4 import BeautifulSoup from urllib.request import urlopen
36.666667
130
0.545261
from selenium import webdriver import time from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException from selenium.webdriver.support.select import Select from bs4 import BeautifulSoup from urllib.request import urlopen def zoom_link_find(): browser = webdriver.Chrome() with ...
5,263
0
46
723bd7a77cfb386ce7f3ca3ab6750787850d3d93
1,088
py
Python
scripts/mingchao_na_xie_shi.py
feihong/chinese-ebooks
6d9a87ffdce3c48be2df9c898aba26252477d473
[ "MIT" ]
null
null
null
scripts/mingchao_na_xie_shi.py
feihong/chinese-ebooks
6d9a87ffdce3c48be2df9c898aba26252477d473
[ "MIT" ]
4
2021-03-31T20:04:28.000Z
2022-02-14T01:19:49.000Z
scripts/mingchao_na_xie_shi.py
feihong/chinese-ebooks
6d9a87ffdce3c48be2df9c898aba26252477d473
[ "MIT" ]
null
null
null
from pathlib import Path from shu.kanunu import make_ebook urls = """ http://www.kanunu8.com/files/chinese/201102/1777.html http://www.kanunu8.com/files/chinese/201102/1778.html http://www.kanunu8.com/files/chinese/201102/1766.html http://www.kanunu8.com/files/chinese/201102/1779.html http://www.kanunu8.com/files/chi...
31.085714
68
0.6875
from pathlib import Path from shu.kanunu import make_ebook urls = """ http://www.kanunu8.com/files/chinese/201102/1777.html http://www.kanunu8.com/files/chinese/201102/1778.html http://www.kanunu8.com/files/chinese/201102/1766.html http://www.kanunu8.com/files/chinese/201102/1779.html http://www.kanunu8.com/files/chi...
353
0
23
838648a969babbdce0c75dac07163e4602ce471f
37,631
py
Python
tests/acceptance/test_job.py
dkmeena/amazon-s3-find-and-forget
8af4791e3f7f78373553c21afd680633a973434f
[ "Apache-2.0" ]
165
2020-05-29T08:12:17.000Z
2022-03-30T22:35:57.000Z
tests/acceptance/test_job.py
dkmeena/amazon-s3-find-and-forget
8af4791e3f7f78373553c21afd680633a973434f
[ "Apache-2.0" ]
101
2020-06-24T12:59:49.000Z
2022-03-28T13:32:15.000Z
tests/acceptance/test_job.py
dkmeena/amazon-s3-find-and-forget
8af4791e3f7f78373553c21afd680633a973434f
[ "Apache-2.0" ]
23
2020-06-18T10:53:49.000Z
2022-03-29T03:38:04.000Z
import json import tempfile import uuid import mock import pytest from decimal import Decimal from tests.acceptance import query_json_file, query_parquet_file, download_and_decrypt pytestmark = [ pytest.mark.acceptance, pytest.mark.jobs, pytest.mark.usefixtures("empty_jobs"), ] @pytest.mark.auth @pytes...
32.580952
88
0.634131
import json import tempfile import uuid import mock import pytest from decimal import Decimal from tests.acceptance import query_json_file, query_parquet_file, download_and_decrypt pytestmark = [ pytest.mark.acceptance, pytest.mark.jobs, pytest.mark.usefixtures("empty_jobs"), ] @pytest.mark.auth @pytes...
36,504
0
660
f9bd986c64f216197ab301c5a0c4d0e755eae759
4,093
py
Python
TVShow/TVShow.py
nvzard/SpoilerAlert
7e17d696764b21a9d59751229702ba1a995e8f1e
[ "MIT" ]
null
null
null
TVShow/TVShow.py
nvzard/SpoilerAlert
7e17d696764b21a9d59751229702ba1a995e8f1e
[ "MIT" ]
1
2018-10-18T04:08:46.000Z
2018-10-18T04:08:46.000Z
TVShow/TVShow.py
nvzard/SpoilerAlert
7e17d696764b21a9d59751229702ba1a995e8f1e
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup NO_INFORMATION = 'Sorry, no info about the next episode of {} is available yet.' SHOW_FINISHED = 'The show has finished streaming all its episodes. (No further information available)' WRONG_SHOW_NAME = '**ERROR** The TV Show name you entered is not correct.' DATES_FOUND ...
29.875912
102
0.591498
import requests from bs4 import BeautifulSoup NO_INFORMATION = 'Sorry, no info about the next episode of {} is available yet.' SHOW_FINISHED = 'The show has finished streaming all its episodes. (No further information available)' WRONG_SHOW_NAME = '**ERROR** The TV Show name you entered is not correct.' DATES_FOUND ...
69
3,599
23
c03da008712ec98f9a1ee9c956f81e7ee137f28f
4,697
py
Python
main/perl/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
46
2021-06-10T02:27:32.000Z
2022-03-27T11:33:24.000Z
main/perl/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
58
2021-07-03T13:58:20.000Z
2022-03-13T16:45:35.000Z
main/perl/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
6
2021-07-04T10:46:40.000Z
2022-01-09T00:03:59.000Z
pkgname = "perl" pkgver = "5.34.0" pkgrel = 0 _perl_cross_ver = "1.3.6" build_style = "gnu_configure" make_cmd = "gmake" make_check_target = "test" hostmakedepends = ["gmake", "less"] makedepends = ["zlib-devel", "libbz2-devel"] checkdepends = ["iana-etc", "perl-AnyEvent", "perl-Test-Pod", "procps-ng"] depends = ["less...
31.52349
113
0.611667
pkgname = "perl" pkgver = "5.34.0" pkgrel = 0 _perl_cross_ver = "1.3.6" build_style = "gnu_configure" make_cmd = "gmake" make_check_target = "test" hostmakedepends = ["gmake", "less"] makedepends = ["zlib-devel", "libbz2-devel"] checkdepends = ["iana-etc", "perl-AnyEvent", "perl-Test-Pod", "procps-ng"] depends = ["less...
3,447
0
115
4c4e027cb757f11f7934d560f620b03fa848721d
481
py
Python
10 min email.py
Veda-Verse/Beginners-Python-Projects
e6fd21d490de6cd9efb0747bce42f31dc1987d24
[ "MIT" ]
1
2022-01-07T14:32:16.000Z
2022-01-07T14:32:16.000Z
10 min email.py
Veda-Verse/Beginners-Python-Projects
e6fd21d490de6cd9efb0747bce42f31dc1987d24
[ "MIT" ]
null
null
null
10 min email.py
Veda-Verse/Beginners-Python-Projects
e6fd21d490de6cd9efb0747bce42f31dc1987d24
[ "MIT" ]
null
null
null
import random print('''Which type of e-mail you want? --> G-mail(g) OR --> Ramdom email(r)''') value1="qwertyuiopasdfghjklzxcvbnm" e1=random.choice(value1) e2=random.choice(value1) e3=random.choice(value1) e4=random.choice(value1) e5=random.choice(value1) a=input() if a=='r': ...
22.904762
61
0.598753
import random print('''Which type of e-mail you want? --> G-mail(g) OR --> Ramdom email(r)''') value1="qwertyuiopasdfghjklzxcvbnm" e1=random.choice(value1) e2=random.choice(value1) e3=random.choice(value1) e4=random.choice(value1) e5=random.choice(value1) a=input() if a=='r': ...
0
0
0
80020286c83b7bf2636a30b3a38d489fc946c257
6,863
py
Python
src/accounts/forms.py
sudipbhujel/election-v3
0b1d80543dfcd02022ae8080d20f942f67a40147
[ "MIT" ]
2
2021-06-04T01:23:46.000Z
2021-07-29T03:30:54.000Z
src/accounts/forms.py
sudipbhujel/election-v3
0b1d80543dfcd02022ae8080d20f942f67a40147
[ "MIT" ]
null
null
null
src/accounts/forms.py
sudipbhujel/election-v3
0b1d80543dfcd02022ae8080d20f942f67a40147
[ "MIT" ]
1
2021-07-29T03:31:02.000Z
2021-07-29T03:31:02.000Z
from django import forms from django.contrib.auth.forms import (AuthenticationForm, PasswordChangeForm, ReadOnlyPasswordHashField) from django.db.models import Q from .models import User, UserFaceImage from .utils import base64_file from accounts.models import Profile from PIL im...
34.315
125
0.660061
from django import forms from django.contrib.auth.forms import (AuthenticationForm, PasswordChangeForm, ReadOnlyPasswordHashField) from django.db.models import Q from .models import User, UserFaceImage from .utils import base64_file from accounts.models import Profile from PIL im...
3,380
1,838
296
cd198e199cc4ced6ddc56c8b59951de5183ae871
1,235
py
Python
mineral/distributions/gaussians/tanh_gaussian.py
brandontrabucco/jetpack
aa60488788b2e6fe1d09727943be043158a7af09
[ "MIT" ]
5
2019-07-14T07:34:32.000Z
2019-08-16T17:41:13.000Z
mineral/distributions/gaussians/tanh_gaussian.py
brandontrabucco/mineral
aa60488788b2e6fe1d09727943be043158a7af09
[ "MIT" ]
7
2019-08-16T21:48:26.000Z
2022-02-09T23:30:47.000Z
mineral/distributions/gaussians/tanh_gaussian.py
brandontrabucco/jetpack
aa60488788b2e6fe1d09727943be043158a7af09
[ "MIT" ]
null
null
null
"""Author: Brandon Trabucco, Copyright 2019""" import tensorflow as tf from abc import ABC from mineral.distributions.gaussians.gaussian import Gaussian
24.7
89
0.564372
"""Author: Brandon Trabucco, Copyright 2019""" import tensorflow as tf from abc import ABC from mineral.distributions.gaussians.gaussian import Gaussian class TanhGaussian(Gaussian, ABC): def get_log_probs( self, x, *inputs, **kwargs ): x = tf.clip_by...
889
13
170
988a6bf3e7baf63c206320fcd2910c692651786d
1,362
py
Python
tests/integration_tests/analysis_tests.py
ljhOfGithub/mythril
7f543571643685595ade954ba6c6315d5f748730
[ "MIT" ]
1,887
2018-01-07T10:16:08.000Z
2022-03-31T16:07:26.000Z
tests/integration_tests/analysis_tests.py
ljhOfGithub/mythril
7f543571643685595ade954ba6c6315d5f748730
[ "MIT" ]
746
2018-01-09T07:14:01.000Z
2022-03-31T08:12:44.000Z
tests/integration_tests/analysis_tests.py
ljhOfGithub/mythril
7f543571643685595ade954ba6c6315d5f748730
[ "MIT" ]
431
2018-01-08T07:47:59.000Z
2022-03-31T13:00:51.000Z
import pytest import json import sys from subprocess import check_output from tests import PROJECT_DIR, TESTDATA MYTH = str(PROJECT_DIR / "myth") test_data = ( ( "flag_array.sol.o", { "TX_COUNT": 1, "TX_OUTPUT": 1, "MODULE": "EtherThief", "ISSUE_COUN...
28.978723
143
0.582966
import pytest import json import sys from subprocess import check_output from tests import PROJECT_DIR, TESTDATA MYTH = str(PROJECT_DIR / "myth") test_data = ( ( "flag_array.sol.o", { "TX_COUNT": 1, "TX_OUTPUT": 1, "MODULE": "EtherThief", "ISSUE_COUN...
572
0
22
43beb277ae363dd4a96e6a58b943a7022f44f60c
540
py
Python
hdanalysis/modules/ScatterplotPeelingModule.py
LLNL/NDDAV
c378bc4e36bac737d03469c8da5281c933af77d5
[ "BSD-3-Clause" ]
2
2020-03-23T12:52:41.000Z
2021-01-04T11:24:42.000Z
hdanalysis/modules/ScatterplotPeelingModule.py
LLNL/NDDAV
c378bc4e36bac737d03469c8da5281c933af77d5
[ "BSD-3-Clause" ]
null
null
null
hdanalysis/modules/ScatterplotPeelingModule.py
LLNL/NDDAV
c378bc4e36bac737d03469c8da5281c933af77d5
[ "BSD-3-Clause" ]
1
2021-01-19T08:35:37.000Z
2021-01-19T08:35:37.000Z
from .Module import *
30
74
0.696296
from .Module import * class ScatterplotPeelingModule(Module): def __init__(self,parent=None): # print "ScatterplotPeelingModule.__init__" super(ScatterplotPeelingModule,self).__init__(parent) self.makeInputPort("data", HDData) self.makeInputPort("function", HDFunction) s...
450
18
50
dd66e173dc655013269638b1f8d3c70a02876138
1,275
py
Python
monasca_api/common/messaging/message_formats/metrics.py
MheniMerz/monasca-api
9c0892a58622082ed8baf81ee2f621cc68f5b42c
[ "Apache-2.0" ]
50
2015-10-18T02:54:52.000Z
2021-12-05T07:54:08.000Z
monasca_api/common/messaging/message_formats/metrics.py
MheniMerz/monasca-api
9c0892a58622082ed8baf81ee2f621cc68f5b42c
[ "Apache-2.0" ]
13
2015-10-29T12:54:07.000Z
2021-09-02T06:17:42.000Z
monasca_api/common/messaging/message_formats/metrics.py
MheniMerz/monasca-api
9c0892a58622082ed8baf81ee2f621cc68f5b42c
[ "Apache-2.0" ]
81
2015-10-21T07:43:30.000Z
2022-01-07T03:35:05.000Z
# Copyright 2014 Hewlett-Packard # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
37.5
78
0.700392
# Copyright 2014 Hewlett-Packard # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
580
0
23
e301aed21b710e3734f47586b402777c7c89ada2
1,119
py
Python
tracklist2playlist/tracklist2playlist_sources/livetracklist.py
pratikbhadane24/tracklist2playlist
2762256d1a5cb76a01679c430c880a15ba9a1cf6
[ "MIT" ]
null
null
null
tracklist2playlist/tracklist2playlist_sources/livetracklist.py
pratikbhadane24/tracklist2playlist
2762256d1a5cb76a01679c430c880a15ba9a1cf6
[ "MIT" ]
1
2021-02-09T12:38:36.000Z
2021-02-09T12:38:36.000Z
tracklist2playlist/tracklist2playlist_sources/livetracklist.py
pratikbhadane24/tracklist2playlist
2762256d1a5cb76a01679c430c880a15ba9a1cf6
[ "MIT" ]
2
2021-01-06T06:10:16.000Z
2021-02-09T12:29:31.000Z
''' module for scraping Livetracklist Page and give an Iterable ''' from typing import Iterable from bs4 import BeautifulSoup import requests class Livetracklist: ''' Livetracklist.com Scraper ''' def tracklist(self) -> Iterable: ''' livetracklist.com scraper get tracklist in t...
28.692308
82
0.605004
''' module for scraping Livetracklist Page and give an Iterable ''' from typing import Iterable from bs4 import BeautifulSoup import requests class Livetracklist: ''' Livetracklist.com Scraper ''' def __init__(self, url: str): self.res = requests.get(url) self.soup = BeautifulSoup(self....
170
0
26
f9cc88194436ea4e71cf2ccbc6b40525e94235db
944
py
Python
oslo-modules/oslo_messaging/rpc/__init__.py
esse-io/zen-common
8ede82ab81bad53c3b947084b812c44e329f159b
[ "Apache-2.0" ]
5
2017-03-21T09:11:55.000Z
2018-11-19T14:44:36.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_messaging/rpc/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
3
2018-02-06T06:17:10.000Z
2020-07-10T17:29:47.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_messaging/rpc/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
7
2018-02-06T03:54:13.000Z
2021-09-08T10:51:38.000Z
# Copyright 2013 Red Hat, Inc. # # 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 agr...
28.606061
78
0.700212
# Copyright 2013 Red Hat, Inc. # # 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 agr...
0
0
0
9788a4ad4704c2402932fa387411e942e2ef52e7
17,391
py
Python
ush/link_fix.py
EdwardSnyder-NOAA/regional_workflow
737c687ff4f0cd821897cd47979f7d114f6267a4
[ "CC0-1.0" ]
2
2022-02-01T19:11:25.000Z
2022-02-01T19:11:27.000Z
ush/link_fix.py
EdwardSnyder-NOAA/regional_workflow
737c687ff4f0cd821897cd47979f7d114f6267a4
[ "CC0-1.0" ]
53
2022-02-01T18:10:46.000Z
2022-03-31T23:57:20.000Z
ush/link_fix.py
EdwardSnyder-NOAA/regional_workflow
737c687ff4f0cd821897cd47979f7d114f6267a4
[ "CC0-1.0" ]
7
2022-02-01T17:43:42.000Z
2022-03-31T18:43:55.000Z
#!/usr/bin/env python3 import unittest import os import glob from python_utils import import_vars, set_env_var, print_input_args, \ print_info_msg, print_err_msg_exit, create_symlink_to_file, \ define_macos_utilities, check_var_valid_value, \ ...
44.364796
104
0.58237
#!/usr/bin/env python3 import unittest import os import glob from python_utils import import_vars, set_env_var, print_input_args, \ print_info_msg, print_err_msg_exit, create_symlink_to_file, \ define_macos_utilities, check_var_valid_value, \ ...
957
12
78
554ce5c2fe87c2ce14e0d73235c934eb49e456c4
431
py
Python
s06_classes_intro/star_square.py
silverfield/pythonsessions
bf5d82dded7616a5d6998da4eb445708c728794f
[ "MIT" ]
null
null
null
s06_classes_intro/star_square.py
silverfield/pythonsessions
bf5d82dded7616a5d6998da4eb445708c728794f
[ "MIT" ]
null
null
null
s06_classes_intro/star_square.py
silverfield/pythonsessions
bf5d82dded7616a5d6998da4eb445708c728794f
[ "MIT" ]
null
null
null
my_first_square = StarSquare(7) my_first_square.print() my_first_square.change_n(5) my_first_square.print() my_second_square = StarSquare(2) my_second_square.print()
21.55
35
0.607889
class StarSquare: def __init__(self, n): self.n = n def print(self): for i in range(self.n): for j in range(self.n): print('*', end='') print() def change_n(self, new_n): self.n = new_n my_first_square = StarSquare(7) my_first_square.print()...
166
-4
102
1c4eff879f1039c5666f9bb19662bd8ee3b634a1
938
py
Python
Image detection/imgtag.py
kakul/Article-Extraction
a8a9a432fe86dd94a6108b08a64cb749b5db1df6
[ "MIT" ]
null
null
null
Image detection/imgtag.py
kakul/Article-Extraction
a8a9a432fe86dd94a6108b08a64cb749b5db1df6
[ "MIT" ]
null
null
null
Image detection/imgtag.py
kakul/Article-Extraction
a8a9a432fe86dd94a6108b08a64cb749b5db1df6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mp from skimage.filter.rank import entropy,otsu from skimage.filter import threshold_otsu from skimage.morphology import square,rectangle,label,closing,disk,binary_erosion,opening from skimage.color import label2rgb,rgb2gray from skimage.se...
29.3125
93
0.769723
import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mp from skimage.filter.rank import entropy,otsu from skimage.filter import threshold_otsu from skimage.morphology import square,rectangle,label,closing,disk,binary_erosion,opening from skimage.color import label2rgb,rgb2gray from skimage.se...
0
0
0
763dafd85a61d2fb57e1ea0c97dadc4187c31894
1,887
py
Python
ansible_collections/arista/avd/plugins/filter/add_md_toc.py
ccsnw/ansible-avd
90bf4124a1a405077768b649f6d28a59b0162c8d
[ "Apache-2.0" ]
null
null
null
ansible_collections/arista/avd/plugins/filter/add_md_toc.py
ccsnw/ansible-avd
90bf4124a1a405077768b649f6d28a59b0162c8d
[ "Apache-2.0" ]
1
2021-12-16T08:37:38.000Z
2021-12-16T09:19:10.000Z
ansible_collections/arista/avd/plugins/filter/add_md_toc.py
ccsnw/ansible-avd
90bf4124a1a405077768b649f6d28a59b0162c8d
[ "Apache-2.0" ]
1
2022-02-01T11:17:20.000Z
2022-02-01T11:17:20.000Z
# # def arista.avd.add_md_toc # from __future__ import (absolute_import, division, print_function) __metaclass__ = type from jinja2.runtime import Undefined from io import StringIO import sys import re try: import md_toc HAS_MD_TOC = True except ImportError: HAS_MD_TOC = False def add_md_toc(md_input, sk...
24.828947
111
0.6407
# # def arista.avd.add_md_toc # from __future__ import (absolute_import, division, print_function) __metaclass__ = type from jinja2.runtime import Undefined from io import StringIO import sys import re try: import md_toc HAS_MD_TOC = True except ImportError: HAS_MD_TOC = False def add_md_toc(md_input, sk...
62
6
49
c48a660619bf0c86271a9fee78663a9862630a19
258
py
Python
scripts/copy_files_single_dir.py
megh1241/python-blockset
362b7b38316f4874724388cfb683e4bbdbf86e40
[ "Apache-2.0" ]
null
null
null
scripts/copy_files_single_dir.py
megh1241/python-blockset
362b7b38316f4874724388cfb683e4bbdbf86e40
[ "Apache-2.0" ]
null
null
null
scripts/copy_files_single_dir.py
megh1241/python-blockset
362b7b38316f4874724388cfb683e4bbdbf86e40
[ "Apache-2.0" ]
null
null
null
import shutil import sys import os num_copies = int(sys.argv[1]) original_dir = sys.argv[2] pack_filename = sys.argv[3] for i in range(num_copies): shutil.copy2(original_dir + pack_filename + '.bin', original_dir+pack_filename + str(i) + '.bin' )
21.5
106
0.709302
import shutil import sys import os num_copies = int(sys.argv[1]) original_dir = sys.argv[2] pack_filename = sys.argv[3] for i in range(num_copies): shutil.copy2(original_dir + pack_filename + '.bin', original_dir+pack_filename + str(i) + '.bin' )
0
0
0
b410704fa597511c34a81c00f93307f9c566a39d
814
py
Python
server/app/machine/proc.py
fengyuewuya/multi_job
676bbdaf8f712c6e0fa86cb8c8d6d6cd0717c729
[ "MIT" ]
null
null
null
server/app/machine/proc.py
fengyuewuya/multi_job
676bbdaf8f712c6e0fa86cb8c8d6d6cd0717c729
[ "MIT" ]
null
null
null
server/app/machine/proc.py
fengyuewuya/multi_job
676bbdaf8f712c6e0fa86cb8c8d6d6cd0717c729
[ "MIT" ]
null
null
null
import time from app import app, db, cache from app.models import Machine import app.utils as utils @cache.cached(timeout=3) # limit_time 为检测多久时间间隔内的机器 , offline_time 表示超过offline_time 时间,判断为失联
42.842105
108
0.657248
import time from app import app, db, cache from app.models import Machine import app.utils as utils @cache.cached(timeout=3) # limit_time 为检测多久时间间隔内的机器 , offline_time 表示超过offline_time 时间,判断为失联 def get_machine_info(limit_time=60, offline_time=5): begin_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.ti...
613
0
22
dfe87adc55f4cacc7d96646adad97e3a2048c241
7,359
py
Python
scripts/densepose_rt.py
MXHsj/AR_Ultrasound_Guidance
87ae7f101926abd7a8c16734ca663502f89a8fa0
[ "MIT" ]
null
null
null
scripts/densepose_rt.py
MXHsj/AR_Ultrasound_Guidance
87ae7f101926abd7a8c16734ca663502f89a8fa0
[ "MIT" ]
null
null
null
scripts/densepose_rt.py
MXHsj/AR_Ultrasound_Guidance
87ae7f101926abd7a8c16734ca663502f89a8fa0
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import numpy as np from cv2 import aruco # import matplotlib.pyplot as plt import csv from cv2 import cv2 if __name__ == "__main__": main()
30.6625
89
0.56081
#! /usr/bin/env python3 import numpy as np from cv2 import aruco # import matplotlib.pyplot as plt import csv from cv2 import cv2 def multidim_intersect(arr1, arr2): arr1_view = arr1.view([('', arr1.dtype)]*arr1.shape[1]) arr2_view = arr2.view([('', arr2.dtype)]*arr2.shape[1]) intersected = np.intersect1d...
6,973
0
207
609a9fcaf33075e689b75b914776091f8b2d0729
1,203
py
Python
multiprocessing_utils/tests/test_local.py
daggaz/python-multiprocessing-utils
67fc418d05eb713cfb233a31ae1916770d5a6835
[ "MIT" ]
null
null
null
multiprocessing_utils/tests/test_local.py
daggaz/python-multiprocessing-utils
67fc418d05eb713cfb233a31ae1916770d5a6835
[ "MIT" ]
null
null
null
multiprocessing_utils/tests/test_local.py
daggaz/python-multiprocessing-utils
67fc418d05eb713cfb233a31ae1916770d5a6835
[ "MIT" ]
null
null
null
import threading from unittest import TestCase import multiprocessing import multiprocessing_utils
30.075
71
0.689111
import threading from unittest import TestCase import multiprocessing import multiprocessing_utils class LocalTestCaseMixin(object): def test_local(self): local = multiprocessing_utils.local() self.assertFalse(hasattr(local, 'value')) self.assertRaises(AttributeError, getattr, local, 'va...
839
86
174
177a193b8eb436cf9912a15257f51a4102b19d0a
150
py
Python
social_auth/backends/contrib/linkedin.py
merutak/django-social-auth
3a6e4414da0e969fcaf625a891852a3b2d7627c0
[ "BSD-2-Clause", "BSD-3-Clause" ]
863
2015-01-01T00:42:07.000Z
2022-03-30T02:47:18.000Z
social_auth/backends/contrib/linkedin.py
merutak/django-social-auth
3a6e4414da0e969fcaf625a891852a3b2d7627c0
[ "BSD-2-Clause", "BSD-3-Clause" ]
101
2015-01-08T00:28:16.000Z
2022-03-07T03:11:19.000Z
social_auth/backends/contrib/linkedin.py
merutak/django-social-auth
3a6e4414da0e969fcaf625a891852a3b2d7627c0
[ "BSD-2-Clause", "BSD-3-Clause" ]
256
2015-01-02T16:55:36.000Z
2022-03-04T11:10:47.000Z
from social.backends.linkedin import LinkedinOAuth as LinkedinBackend, \ LinkedinOAuth2 as LinkedinOAuth2Backend
50
76
0.66
from social.backends.linkedin import LinkedinOAuth as LinkedinBackend, \ LinkedinOAuth2 as LinkedinOAuth2Backend
0
0
0
801556a795f7da7db6984abbb4e92ac01997de8c
163
py
Python
simplePub.py
josiasMO/mqttPubSub
7517e7698df58dff1a0cb39c023bf8f7093256b7
[ "MIT" ]
null
null
null
simplePub.py
josiasMO/mqttPubSub
7517e7698df58dff1a0cb39c023bf8f7093256b7
[ "MIT" ]
null
null
null
simplePub.py
josiasMO/mqttPubSub
7517e7698df58dff1a0cb39c023bf8f7093256b7
[ "MIT" ]
null
null
null
import paho.mqtt.client as mqtt mqttc = mqtt.Client("C1") mqttc.connect("test.mosquitto.org", 1883) mqttc.publish("topic/yourTopic", "Hello world") mqttc.loop(2)
23.285714
47
0.742331
import paho.mqtt.client as mqtt mqttc = mqtt.Client("C1") mqttc.connect("test.mosquitto.org", 1883) mqttc.publish("topic/yourTopic", "Hello world") mqttc.loop(2)
0
0
0
d2d7017b64c5339b6a483c8c1ac6f7e3c2e45243
604
py
Python
scripts/vulnerabilities_json.py
sunbeam891/Smart_contract_fuzzing
327873f562028fb3ea241fb0c1dc0f039e8c005d
[ "MIT" ]
1
2021-04-01T09:33:58.000Z
2021-04-01T09:33:58.000Z
scripts/vulnerabilities_json.py
sunbeam891/Smart_contract_fuzzing
327873f562028fb3ea241fb0c1dc0f039e8c005d
[ "MIT" ]
2
2021-11-09T03:25:40.000Z
2021-11-09T06:23:45.000Z
scripts/vulnerabilities_json.py
sunbeam891/Smart_contract_fuzzing
327873f562028fb3ea241fb0c1dc0f039e8c005d
[ "MIT" ]
null
null
null
#Script_json_maker_vulnerabilities_adder0.4 import json codecov="-" Branchcov="-" Vulnerability_detected="No" #Read from file Vulnerabilities_detected = [] #Vulnerabilities_detected = ",".join(Vulnerabilities_detected) File_path= "vuln_json.json"
31.789474
93
0.710265
#Script_json_maker_vulnerabilities_adder0.4 import json codecov="-" Branchcov="-" Vulnerability_detected="No" #Read from file Vulnerabilities_detected = [] #Vulnerabilities_detected = ",".join(Vulnerabilities_detected) File_path= "vuln_json.json" def vuln_Jsonmaker(): Dict={} if len(Vulnerabilities_detected)=...
334
0
23
fd874feb98d20d9b0800e21c75b13d0e3eeba84c
332
py
Python
tests/TestWileyScraper.py
PatrickSpieker/pricesleuth
e9a9e5a1737c20773a2b317292b4801e41583693
[ "MIT" ]
null
null
null
tests/TestWileyScraper.py
PatrickSpieker/pricesleuth
e9a9e5a1737c20773a2b317292b4801e41583693
[ "MIT" ]
null
null
null
tests/TestWileyScraper.py
PatrickSpieker/pricesleuth
e9a9e5a1737c20773a2b317292b4801e41583693
[ "MIT" ]
null
null
null
import unittest from scrapers.journalscrapers import WileyScraper
27.666667
96
0.722892
import unittest from scrapers.journalscrapers import WileyScraper class TestWileyScraper(unittest.TestCase): def setUp(self): self.instance = WileyScraper("http://olabout.wiley.com/WileyCDA/Section/id-828038.html") def test_strip_chars(self): for row in self.instance.get_entries(): ...
168
21
76
825dca3ea7d879b0fcdc9e3cd2f6a608b5f7c98b
2,328
py
Python
py_buildsystem/Toolchain/Compiler/Compiler.py
ProrokWielki/py_BS
12a2aa2cf0c1cde0327dbe11a5c2e130ac869272
[ "MIT" ]
null
null
null
py_buildsystem/Toolchain/Compiler/Compiler.py
ProrokWielki/py_BS
12a2aa2cf0c1cde0327dbe11a5c2e130ac869272
[ "MIT" ]
1
2019-01-13T13:41:40.000Z
2019-01-13T13:41:40.000Z
py_buildsystem/Toolchain/Compiler/Compiler.py
ProrokWielki/py_BS
12a2aa2cf0c1cde0327dbe11a5c2e130ac869272
[ "MIT" ]
null
null
null
import subprocess from py_buildsystem.common import logger
35.272727
101
0.649055
import subprocess from py_buildsystem.common import logger class Compiler(): def __init__(self, compiler_path, define_flag, output_flag, compile_flag, include_flag): self.__compiler_path = compiler_path self.__define_flag = define_flag self.__output_flag = o...
2,039
-4
228
88901be64aa2b818677e48049967f0ff9adf4c25
501
py
Python
USV_V1/applications/sailing_robot_control/src/sailing_robot/src/sailing_robot/make_ros_tasks.py
supcon-nzic/-
52c97759f97f3222ca5465a5745842cfeb7f26a1
[ "Apache-2.0" ]
2
2020-07-16T03:15:10.000Z
2020-09-02T09:06:36.000Z
USV_V1/applications/sailing_robot_control/src/sailing_robot/src/sailing_robot/make_ros_tasks.py
supcon-nzic/-
52c97759f97f3222ca5465a5745842cfeb7f26a1
[ "Apache-2.0" ]
null
null
null
USV_V1/applications/sailing_robot_control/src/sailing_robot/src/sailing_robot/make_ros_tasks.py
supcon-nzic/-
52c97759f97f3222ca5465a5745842cfeb7f26a1
[ "Apache-2.0" ]
1
2021-01-20T12:47:14.000Z
2021-01-20T12:47:14.000Z
import expand_task_dict import make_tasks def expand_ros_task(taskdict, nav, name = '', index = None): """ Turn a task dict from params (or from tasks_from_wps) into a task object """ task = make_tasks.expand_task(taskdict, nav, name, index) return task
31.3125
102
0.692615
import expand_task_dict import make_tasks def expand_ros_task(taskdict, nav, name = '', index = None): """ Turn a task dict from params (or from tasks_from_wps) into a task object """ task = make_tasks.expand_task(taskdict, nav, name, index) return task def make_ros_tasks(wp_params, nav, nam...
197
0
23
8a1647a817bd62261a513a05f792b605993d211c
1,056
py
Python
tools/perf/benchmarks/memory.py
sunjc53yy/chromium
049b380040949089c2a6e447b0cd0ac3c4ece38e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/benchmarks/memory.py
sunjc53yy/chromium
049b380040949089c2a6e447b0cd0ac3c4ece38e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/benchmarks/memory.py
sunjc53yy/chromium
049b380040949089c2a6e447b0cd0ac3c4ece38e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 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. from measurements import memory import page_sets from telemetry import benchmark @benchmark.Enabled('android') @benchmark.Disabled @benchmark.Disabled ...
25.756098
72
0.787879
# Copyright 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. from measurements import memory import page_sets from telemetry import benchmark @benchmark.Enabled('android') class MemoryMobile(benchmark.Benchmark): t...
0
382
88
52862560af3c95776dad7b35fb91cfa01548b706
2,849
py
Python
model/roi_layers/RoIPooling2D.py
hktxt/fasterrcnn
c7de01afd78bd99737c80035843cd6e7e483b911
[ "MIT" ]
null
null
null
model/roi_layers/RoIPooling2D.py
hktxt/fasterrcnn
c7de01afd78bd99737c80035843cd6e7e483b911
[ "MIT" ]
null
null
null
model/roi_layers/RoIPooling2D.py
hktxt/fasterrcnn
c7de01afd78bd99737c80035843cd6e7e483b911
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Function import cupy from string import Template @cupy.util.memoize(for_each_device=True) CUDA_NUM_THREADS = 1024 Stream = namedtuple('Stream', ['ptr']) class RoI(Function): """ NOTE:only CUDA-compatible """
33.916667
79
0.586873
import torch import torch.nn as nn from torch.autograd import Function import cupy from string import Template @cupy.util.memoize(for_each_device=True) def load_kernel(kernel_name, code, **kwargs): cp.cuda.runtime.free(0) code = Template(code).substitute(**kwargs) kernel_code = cupy.cuda.compile_with_cach...
2,348
9
202
7c268958c79671d505cf9da93efb5f13ee5feace
273
py
Python
salt/runners/fileserver.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
2
2019-03-30T02:12:56.000Z
2021-03-08T18:59:46.000Z
salt/runners/fileserver.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/runners/fileserver.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
''' Directly manage the salt fileserver plugins ''' # Import salt libs import salt.fileserver def update(): ''' Execute an update for all of the configured fileserver backends ''' fileserver = salt.fileserver.Fileserver(__opts__) fileserver.update()
18.2
67
0.70696
''' Directly manage the salt fileserver plugins ''' # Import salt libs import salt.fileserver def update(): ''' Execute an update for all of the configured fileserver backends ''' fileserver = salt.fileserver.Fileserver(__opts__) fileserver.update()
0
0
0
8bcd8c4181e69a1a7a1a1760a36ca2317c3a47ef
14,278
py
Python
cogs/gameplay.py
Togohogo1/Mathtermind
1308222d189afb55039c08f0eb3ae6caee0da15f
[ "MIT" ]
4
2021-05-04T19:58:44.000Z
2021-08-05T15:52:47.000Z
cogs/gameplay.py
Togohogo1/Mathtermind
1308222d189afb55039c08f0eb3ae6caee0da15f
[ "MIT" ]
31
2021-05-06T19:48:46.000Z
2021-08-08T00:04:38.000Z
cogs/gameplay.py
Togohogo1/Mathtermind
1308222d189afb55039c08f0eb3ae6caee0da15f
[ "MIT" ]
2
2021-06-14T17:40:48.000Z
2021-08-06T03:44:26.000Z
import asyncio from math import ceil import discord from discord import Colour from discord.ext import commands from classes.classic_solver import ClassicSolver from classes.repeat_solver import RepeatSolver from classes.detective_solver import DetectiveSolver from classes.custom_solver import CustomSolver from class...
44.479751
185
0.616963
import asyncio from math import ceil import discord from discord import Colour from discord.ext import commands from classes.classic_solver import ClassicSolver from classes.repeat_solver import RepeatSolver from classes.detective_solver import DetectiveSolver from classes.custom_solver import CustomSolver from class...
239
13,660
46
e92d68bb2ce99de0f5d7f0a4b03a00c287f55c51
350
py
Python
course_factory/maths_director.py
rotimiakanni/cgpa_calculator
82139f999c7b45ab21f9100d6a0d7b6e9f3c241c
[ "MIT" ]
null
null
null
course_factory/maths_director.py
rotimiakanni/cgpa_calculator
82139f999c7b45ab21f9100d6a0d7b6e9f3c241c
[ "MIT" ]
null
null
null
course_factory/maths_director.py
rotimiakanni/cgpa_calculator
82139f999c7b45ab21f9100d6a0d7b6e9f3c241c
[ "MIT" ]
null
null
null
"maths director class that aggregates the course builder" from course_factory.course_builder import CourseBuilder class MathsDirector: "maths director class" @staticmethod
25
57
0.634286
"maths director class that aggregates the course builder" from course_factory.course_builder import CourseBuilder class MathsDirector: "maths director class" @staticmethod def construct(score, gp): return CourseBuilder('Maths').\ set_score(score).\ set_gp(gp).\ ...
137
0
26
42aabe0c0e2b991df14f432c7583a06c3aaabfcd
4,817
py
Python
utils/match_layer.py
MiHuangLan/reader
5dfa3dc7e6f14129dc41f9227d391efdb4ae6ac5
[ "MIT" ]
null
null
null
utils/match_layer.py
MiHuangLan/reader
5dfa3dc7e6f14129dc41f9227d391efdb4ae6ac5
[ "MIT" ]
null
null
null
utils/match_layer.py
MiHuangLan/reader
5dfa3dc7e6f14129dc41f9227d391efdb4ae6ac5
[ "MIT" ]
null
null
null
# -*- coding:utf8 -*- # ============================================================================== # Copyright 2017 Baidu.com, Inc. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of th...
47.693069
96
0.586672
# -*- coding:utf8 -*- # ============================================================================== # Copyright 2017 Baidu.com, Inc. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of th...
1,466
0
105
a2f5f908274c0bb7f837eefdccca98b2e1e43276
2,526
py
Python
matgendb/alchemy/transmuters.py
Tinaatucsd/pymatgen-db
e1fc46b7df8bea8455e7290ae3eea6fd297a09f3
[ "MIT" ]
null
null
null
matgendb/alchemy/transmuters.py
Tinaatucsd/pymatgen-db
e1fc46b7df8bea8455e7290ae3eea6fd297a09f3
[ "MIT" ]
null
null
null
matgendb/alchemy/transmuters.py
Tinaatucsd/pymatgen-db
e1fc46b7df8bea8455e7290ae3eea6fd297a09f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This module implements a version of pymatgen's Transmuter to generate TransformedStructures from DB data sources. They enable the high-throughput generation of new structures and input files. """ from __future__ import division __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012,...
36.608696
79
0.617181
#!/usr/bin/env python """ This module implements a version of pymatgen's Transmuter to generate TransformedStructures from DB data sources. They enable the high-throughput generation of new structures and input files. """ from __future__ import division __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012,...
193
0
31
4e192adfff1ea69307af3a832c10d3a1bcf403bf
1,473
py
Python
blog/templatetags/blog_tags.py
nimapmi/Django_try001
bd607745e4a261ceb466c67959f79d01a8b1d386
[ "MIT" ]
null
null
null
blog/templatetags/blog_tags.py
nimapmi/Django_try001
bd607745e4a261ceb466c67959f79d01a8b1d386
[ "MIT" ]
null
null
null
blog/templatetags/blog_tags.py
nimapmi/Django_try001
bd607745e4a261ceb466c67959f79d01a8b1d386
[ "MIT" ]
null
null
null
from django import template from blog.models import Post, Category, Comment register = template.Library() @register.simple_tag @register.simple_tag(name='counter') @register.simple_tag(name='comment_count') @register.simple_tag @register.filter @register.inclusion_tag('blog/blog-latestposts.html') ...
22.318182
73
0.693143
from django import template from blog.models import Post, Category, Comment register = template.Library() @register.simple_tag def func1() : return 'Hello world ! ' @register.simple_tag(name='counter') def func2() : posts = Post.objects.filter(status=1).count() return posts @register.simple_tag(name='...
866
0
176
104c7415141030a4387197a0bfae3fe7b003bf9e
2,641
py
Python
graph/migrations/0001_initial.py
preetikansal24/GraphAssignment
7c912bda0ec6da3b8df6a31b07c2f4b33b277f7d
[ "MIT" ]
null
null
null
graph/migrations/0001_initial.py
preetikansal24/GraphAssignment
7c912bda0ec6da3b8df6a31b07c2f4b33b277f7d
[ "MIT" ]
null
null
null
graph/migrations/0001_initial.py
preetikansal24/GraphAssignment
7c912bda0ec6da3b8df6a31b07c2f4b33b277f7d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models
34.298701
80
0.51117
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Graph', fields=[ ('created_at', models.DateFiel...
0
2,511
23
ec18a4161998ee67ecfe1c4f8b31c3837214a419
1,733
py
Python
futaba/navi/factory.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
23
2018-09-17T09:06:27.000Z
2021-05-27T15:21:37.000Z
futaba/navi/factory.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
257
2018-08-18T21:27:54.000Z
2020-12-29T23:27:10.000Z
futaba/navi/factory.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
22
2018-09-09T09:03:13.000Z
2021-11-09T03:34:34.000Z
# # cogs/navi/task/factory.py # # futaba - A Discord Mod bot for the Programming server # Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5 # # futaba is available free of charge under the terms of the MIT # License. You are free to redistribute and/or modify it under those # terms. It is distributed in t...
30.403509
82
0.738027
# # cogs/navi/task/factory.py # # futaba - A Discord Mod bot for the Programming server # Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5 # # futaba is available free of charge under the terms of the MIT # License. You are free to redistribute and/or modify it under those # terms. It is distributed in t...
621
0
23
3afc5f2819fe5a48e7fa0a2e75349da5805aa37a
728
py
Python
zerver/views/typing.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
1
2019-10-01T14:04:07.000Z
2019-10-01T14:04:07.000Z
zerver/views/typing.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
3
2020-06-05T22:30:24.000Z
2022-02-10T19:04:47.000Z
zerver/views/typing.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
1
2019-12-23T05:51:08.000Z
2019-12-23T05:51:08.000Z
from django.http import HttpRequest, HttpResponse from typing import List, Union from zerver.decorator import has_request_variables, REQ from zerver.lib.actions import check_send_typing_notification, \ extract_recipients from zerver.lib.response import json_success from zerver.models import UserProfile @has_reque...
38.315789
94
0.769231
from django.http import HttpRequest, HttpResponse from typing import List, Union from zerver.decorator import has_request_variables, REQ from zerver.lib.actions import check_send_typing_notification, \ extract_recipients from zerver.lib.response import json_success from zerver.models import UserProfile @has_reque...
373
0
22
f9df28fa45863f8cf16638c848e38cf0c3f710cd
2,034
py
Python
Project Euler/problem93.py
GSam/CodeJam
725915e6466e777f3413b9ab36a1b30378d073c0
[ "MIT" ]
null
null
null
Project Euler/problem93.py
GSam/CodeJam
725915e6466e777f3413b9ab36a1b30378d073c0
[ "MIT" ]
null
null
null
Project Euler/problem93.py
GSam/CodeJam
725915e6466e777f3413b9ab36a1b30378d073c0
[ "MIT" ]
null
null
null
import itertools maxCount = 0 per = None set = set() for permutation in itertools.combinations([1,2,3,4,5,6,7,8,9], 4): permutation = list(permutation) set.clear() generate([False, False, False, False, True, True, True], 0, "", permutation[:]) generate([False, False, False, True, False, True, True], ...
27.863014
83
0.466568
import itertools def generate(li, pos, z, nums = [1,2,3,4,5,6,7,8,9]): if (pos > 6): i = evaluate(z) set.add(i) return if (li[pos]): for x in ['+','-','*','/']: generate(li, pos+1, z + x, nums) else: for x in xrange(len(nums)): num = nums[:] ...
965
0
58
9a665018bc426e9c6a725723069c7c42f4829bca
757
py
Python
dataset/dataloader.py
Glaciohound/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
52
2019-12-04T22:26:56.000Z
2022-03-31T17:04:15.000Z
dataset/dataloader.py
guxiwuruo/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
6
2020-08-25T07:35:14.000Z
2021-09-09T04:57:09.000Z
dataset/dataloader.py
guxiwuruo/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
5
2020-02-10T07:39:24.000Z
2021-06-23T02:53:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : dataloader.py # Author : Chi Han, Jiayuan Mao # Email : haanchi@gmail.com, maojiayuan@gmail.com # Date : 23.07.2019 # Last Modified Date: 19.11.2019 # Last Modified By : Chi Han # # This file is part of the VCML co...
26.103448
61
0.570674
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : dataloader.py # Author : Chi Han, Jiayuan Mao # Email : haanchi@gmail.com, maojiayuan@gmail.com # Date : 23.07.2019 # Last Modified Date: 19.11.2019 # Last Modified By : Chi Han # # This file is part of the VCML co...
333
0
23
9436acff3d30bbd6cd6bd0c8e21d97ea0e0dc3e9
22,525
py
Python
src/graph_trainer.py
googleinterns/nlu-seq2graph
64730f48e56319dbd87641a50023aa37665eaeb6
[ "Apache-2.0" ]
null
null
null
src/graph_trainer.py
googleinterns/nlu-seq2graph
64730f48e56319dbd87641a50023aa37665eaeb6
[ "Apache-2.0" ]
null
null
null
src/graph_trainer.py
googleinterns/nlu-seq2graph
64730f48e56319dbd87641a50023aa37665eaeb6
[ "Apache-2.0" ]
null
null
null
"""Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
39.937943
157
0.620644
"""Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
20,055
0
137
e2bacab390c5a6f79c30f941aceb94413d5ceb66
13,562
py
Python
senlin/tests/test_rpc_client.py
tengqm/senlin
aa59c55c098abb13590bc4308c753338ce4a70f4
[ "Apache-2.0" ]
2
2015-02-11T23:02:13.000Z
2021-03-26T06:39:58.000Z
senlin/tests/test_rpc_client.py
tengqm/senlin
aa59c55c098abb13590bc4308c753338ce4a70f4
[ "Apache-2.0" ]
2
2015-01-19T13:40:47.000Z
2015-03-04T07:06:07.000Z
senlin/tests/test_rpc_client.py
tengqm/senlin
aa59c55c098abb13590bc4308c753338ce4a70f4
[ "Apache-2.0" ]
5
2015-01-13T14:53:04.000Z
2015-03-13T02:54:06.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed unde...
33.989975
78
0.573957
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed unde...
11,029
1,644
23
d1bcf8c7938493b001ce644755715b1e9fabfe26
3,972
py
Python
pyexamon.py
JRogerInfo/pyexamon
f410be5159e9b42d1a6b24324cac558d2f982730
[ "BSD-3-Clause" ]
null
null
null
pyexamon.py
JRogerInfo/pyexamon
f410be5159e9b42d1a6b24324cac558d2f982730
[ "BSD-3-Clause" ]
null
null
null
pyexamon.py
JRogerInfo/pyexamon
f410be5159e9b42d1a6b24324cac558d2f982730
[ "BSD-3-Clause" ]
null
null
null
import pyexasol import time from influxdb import InfluxDBClient # Settings section ############################################################################### # InfluxDB connection influx_db = { 'host': '127.0.0.1', 'port': '8086', 'user': 'root', 'pass': 'root', 'db' : 'pyexamon...
27.020408
120
0.508056
import pyexasol import time from influxdb import InfluxDBClient # Settings section ############################################################################### # InfluxDB connection influx_db = { 'host': '127.0.0.1', 'port': '8086', 'user': 'root', 'pass': 'root', 'db' : 'pyexamon...
1,866
0
100
956bf69f5b09548d6588349c9eff8919b348746d
672
py
Python
setup.py
matteosandrin/nyu-mytime-cli
3272df99e59532bbb70d11a12fe0ff0982e400ed
[ "MIT" ]
null
null
null
setup.py
matteosandrin/nyu-mytime-cli
3272df99e59532bbb70d11a12fe0ff0982e400ed
[ "MIT" ]
null
null
null
setup.py
matteosandrin/nyu-mytime-cli
3272df99e59532bbb70d11a12fe0ff0982e400ed
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="nyumytimecli", version="0.0.4", author="Matteo Sandrin", long_description=long_description, long_description_content_type="text/markdown", description="A command-line interface for NY...
24.888889
81
0.735119
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="nyumytimecli", version="0.0.4", author="Matteo Sandrin", long_description=long_description, long_description_content_type="text/markdown", description="A command-line interface for NY...
0
0
0
7204bad0b8edf8d9fa9203911090c70597b8cf76
560
py
Python
cogs/balance.py
ByronDJMackinnon/EconomyBot
6fe95fdfcf852ee07610a85d36dd988b196f841b
[ "MIT" ]
null
null
null
cogs/balance.py
ByronDJMackinnon/EconomyBot
6fe95fdfcf852ee07610a85d36dd988b196f841b
[ "MIT" ]
null
null
null
cogs/balance.py
ByronDJMackinnon/EconomyBot
6fe95fdfcf852ee07610a85d36dd988b196f841b
[ "MIT" ]
null
null
null
# Standard Imports # 3rd Party Imports import discord from discord.ext import commands # Custom Imports from database import Database from finance import Finances
23.333333
65
0.680357
# Standard Imports # 3rd Party Imports import discord from discord.ext import commands # Custom Imports from database import Database from finance import Finances class Balance(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(name="balance", aliases=["bal"]) async def _ba...
234
115
46