hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
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
3
251
max_forks_repo_name
stringlengths
4
130
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
3809288c999b3cc7a796e932763fb145aa047d6c
24,456
py
Python
rapt/GuidingCenter.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
1
2021-04-12T09:44:56.000Z
2021-04-12T09:44:56.000Z
rapt/GuidingCenter.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
null
null
null
rapt/GuidingCenter.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ GuidingCenter class definition AUTHOR: Kaan Ozturk <mkozturk@yahoo.com> 2016, Rice University """ import numpy as np from scipy.integrate import ode import pickle import rapt.utils as ru import rapt.flutils as rfu from rapt import c, params, NonAdiabatic
39.1296
124
0.550785
3809e399ed92b8e34acaef2788a9f1182ad1acca
5,835
py
Python
tests/hospital_resident/test_solver.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
tests/hospital_resident/test_solver.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
tests/hospital_resident/test_solver.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
""" Unit tests for the HR solver. """ import pytest from matching import Matching from matching import Player as Resident from matching.games import HospitalResident from matching.players import Hospital from .params import HOSPITAL_RESIDENT, make_game, make_prefs def test_check_stability(): """ Test ...
30.07732
82
0.709169
380b492138a5616a5c2ec4ac40188efd1c8a200c
1,863
py
Python
build/lib/rqalpha/data/dtsk_python_interface/utility/tdtsk.py
kinglogxzl/rqalpha
6203803e0fb130fbb5a280ee8e1b902a8c0fd731
[ "Apache-2.0" ]
null
null
null
build/lib/rqalpha/data/dtsk_python_interface/utility/tdtsk.py
kinglogxzl/rqalpha
6203803e0fb130fbb5a280ee8e1b902a8c0fd731
[ "Apache-2.0" ]
null
null
null
build/lib/rqalpha/data/dtsk_python_interface/utility/tdtsk.py
kinglogxzl/rqalpha
6203803e0fb130fbb5a280ee8e1b902a8c0fd731
[ "Apache-2.0" ]
null
null
null
import date import os def get_kline_type_labal(kline_type): ''' kline_type must be fit the format {int}_{time unit} Example: 1_min ''' time_interval = get_time_delta(kline_type) if time_interval == 0: return 'KLINE_DAILY' else: return "KLINE_{0}_MIN".format(str(time_interval)) de...
34.5
97
0.674181
380b9beb509374b7ce063345397afc45a8540e75
1,255
py
Python
2021/4/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2021/4/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2021/4/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
from collections import defaultdict with open("input.txt") as input_file: lines = input_file.readlines() drawn = [int(n) for n in lines[0].strip().split(",")] del lines[0:2] cards = defaultdict(list) card = 0 # Cards prep for line in lines: line = line.strip() if not line: card += 1 co...
22.818182
72
0.573705
380c11403c1a76b0d531997f5e39af651f1a3bb9
31
py
Python
djshed/__init__.py
carthage-college/django-djshed
122dc2f9dd582fd943915b6268d4e90dc84993ca
[ "BSD-3-Clause" ]
null
null
null
djshed/__init__.py
carthage-college/django-djshed
122dc2f9dd582fd943915b6268d4e90dc84993ca
[ "BSD-3-Clause" ]
9
2020-03-04T16:04:21.000Z
2022-02-14T17:34:07.000Z
djshed/__init__.py
carthage-college/django-djshed
122dc2f9dd582fd943915b6268d4e90dc84993ca
[ "BSD-3-Clause" ]
null
null
null
from djshed.constants import *
15.5
30
0.806452
380d0996fe02d82d90603eefc1f9b3eea03168d3
666
py
Python
examples/hover_example.py
kail85/mpldatacursor
2df44a3912c2684b2d66fadc7cacbb9f60a15186
[ "MIT" ]
165
2015-01-09T03:48:50.000Z
2022-03-16T03:25:23.000Z
examples/hover_example.py
kail85/mpldatacursor
2df44a3912c2684b2d66fadc7cacbb9f60a15186
[ "MIT" ]
87
2015-02-09T11:17:49.000Z
2022-01-04T02:48:00.000Z
examples/hover_example.py
kail85/mpldatacursor
2df44a3912c2684b2d66fadc7cacbb9f60a15186
[ "MIT" ]
46
2015-01-13T00:59:18.000Z
2022-03-03T12:46:40.000Z
""" Demonstrates the hover functionality of mpldatacursor as well as point labels and a custom formatting function. Notice that overlapping points have both labels displayed. """ import string import matplotlib.pyplot as plt import numpy as np from mpldatacursor import datacursor np.random.seed(1977) x, y = np.random....
27.75
77
0.771772
380dcb21be4aef252c42a69358eeac5c771319a7
1,236
py
Python
FilterResponseNorm.py
PanTongLin/Filter_Response_Norm
b87b82e0dd89c65fc9c6ed4b1154955afe2ad4da
[ "MIT" ]
1
2019-12-03T12:44:10.000Z
2019-12-03T12:44:10.000Z
FilterResponseNorm.py
PanTongLin/Filter_Response_Norm
b87b82e0dd89c65fc9c6ed4b1154955afe2ad4da
[ "MIT" ]
null
null
null
FilterResponseNorm.py
PanTongLin/Filter_Response_Norm
b87b82e0dd89c65fc9c6ed4b1154955afe2ad4da
[ "MIT" ]
null
null
null
import torch import torch.nn as nn
30.146341
63
0.602751
38102a20a35e7ad75c7282cba75b15f3f03e641a
13,062
py
Python
tapas/utils/attention_utils_test.py
apurvak/tapas
7884280be78d2f58ad9c125504d710ef89f49f9a
[ "Apache-2.0" ]
816
2020-03-31T15:15:56.000Z
2022-03-31T19:28:02.000Z
tapas/utils/attention_utils_test.py
apurvak/tapas
7884280be78d2f58ad9c125504d710ef89f49f9a
[ "Apache-2.0" ]
155
2020-05-02T15:45:42.000Z
2022-03-31T08:35:23.000Z
tapas/utils/attention_utils_test.py
apurvak/tapas
7884280be78d2f58ad9c125504d710ef89f49f9a
[ "Apache-2.0" ]
173
2020-05-01T02:39:38.000Z
2022-03-30T06:43:29.000Z
# coding=utf-8 # Copyright 2019 The Google AI Language Team Authors. # # 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 ...
40.81875
80
0.535982
3811d802f57bc19ae72289d16c14c14349ea0f99
1,018
py
Python
backend/src/application.py
rpenna/post-scheduler
775a145eab6064ecfe2028064ab85834a7a1c412
[ "MIT" ]
null
null
null
backend/src/application.py
rpenna/post-scheduler
775a145eab6064ecfe2028064ab85834a7a1c412
[ "MIT" ]
8
2020-10-10T02:02:56.000Z
2020-11-08T21:04:17.000Z
backend/src/application.py
rpenna/post-scheduler
775a145eab6064ecfe2028064ab85834a7a1c412
[ "MIT" ]
null
null
null
from flask import Flask from flask_mongoengine import MongoEngine from src.controllers.user_controller import UserController db_host = { 'production': 'mongodb://localhost/posts', 'test': 'mongomock://localhost/posts' } def create_app(db_host_type: str = 'production') -> Flask: """Creates Flask app A...
29.085714
90
0.6778
3812fff3955607f6a3a8b89e70ea9dfc7716d228
584
py
Python
Curso-em-video-Python3-mundo2/ex058.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
Curso-em-video-Python3-mundo2/ex058.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
Curso-em-video-Python3-mundo2/ex058.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
import random pc = random.randint(0, 10) print('''Sou seu computador... Acabei de pensar em um nmero entre 0 e 10. Ser que voc consegue adivinhar qual foi?''') player = int(input('Qual seu palpite? ')) # print(pc, player) tentativas = 1 while pc != player: if pc > player: print('Mais... Tente mais uma vez....
32.444444
64
0.640411
381586539d665f7a1421b0fdd67949cba8d6ee1c
985
py
Python
mumblr/templatetags/mumblr_tags.py
hmarr/django-mumblr
36f6e4b0d5d5f999591987b24765915edce92400
[ "MIT" ]
35
2015-02-10T12:44:33.000Z
2020-12-27T19:47:33.000Z
mumblr/templatetags/mumblr_tags.py
hmarr/django-mumblr
36f6e4b0d5d5f999591987b24765915edce92400
[ "MIT" ]
null
null
null
mumblr/templatetags/mumblr_tags.py
hmarr/django-mumblr
36f6e4b0d5d5f999591987b24765915edce92400
[ "MIT" ]
16
2015-02-20T19:13:43.000Z
2022-02-16T04:38:12.000Z
from django.template import Library, Node, TemplateSyntaxError import re from mumblr.entrytypes import EntryType register = Library()
27.361111
74
0.643655
3817b5265bdca590b8a4c43a50fd915e4ad3d51f
448
py
Python
funcional.py
renzon/novatec
9b6511217c4972bf8584dea8bca1460d4bcb9d87
[ "MIT" ]
null
null
null
funcional.py
renzon/novatec
9b6511217c4972bf8584dea8bca1460d4bcb9d87
[ "MIT" ]
null
null
null
funcional.py
renzon/novatec
9b6511217c4972bf8584dea8bca1460d4bcb9d87
[ "MIT" ]
2
2016-05-21T12:28:13.000Z
2020-09-06T21:58:36.000Z
from time import time print(f.__name__) a = f print(a(4)) print(a(5)) print(g()())
12.444444
43
0.566964
38188123fc74067b2382c0edf77f410238662bfd
1,040
py
Python
bf_smb_tmux.py
BadNameException/SambaBF
7421ac1d821807ffc565b7b5b466c85084343fb9
[ "MIT" ]
null
null
null
bf_smb_tmux.py
BadNameException/SambaBF
7421ac1d821807ffc565b7b5b466c85084343fb9
[ "MIT" ]
null
null
null
bf_smb_tmux.py
BadNameException/SambaBF
7421ac1d821807ffc565b7b5b466c85084343fb9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from subprocess import Popen, PIPE, check_output p = 1 USERNAME = "sigurdkb" IP = "172.16.0.30" PORT = "445" new_results = [] correct_pw = "" cracked = bool(False) counter = 0 guess_result = ((),) pw = '' if b'Welcome' in guess_result: print ("Correct password: " + pw) corr...
17.931034
54
0.626923
381a3c1f8fbb03e20ac9c74bfde3196e650b1d31
2,819
py
Python
VA/main/utils/cluster.py
YuJaceKim/Activity-Recognition-with-Combination-of-Deeply-Learned-Visual-Attention-and-Pose-Estimation
23b9191f150d0edb981cf22a47a618feb55578b9
[ "MIT" ]
343
2018-07-18T10:39:30.000Z
2022-03-30T02:32:06.000Z
VA/main/utils/cluster.py
YuJaceKim/Activity-Recognition-with-Combination-of-Deeply-Learned-Visual-Attention-and-Pose-Estimation
23b9191f150d0edb981cf22a47a618feb55578b9
[ "MIT" ]
47
2018-09-03T03:35:13.000Z
2021-11-15T02:09:15.000Z
VA/main/utils/cluster.py
YuJaceKim/Activity-Recognition-with-Combination-of-Deeply-Learned-Visual-Attention-and-Pose-Estimation
23b9191f150d0edb981cf22a47a618feb55578b9
[ "MIT" ]
83
2018-10-15T08:36:12.000Z
2022-03-05T05:51:16.000Z
import numpy as np # import matplotlib.pyplot as plt from scipy.cluster.vq import kmeans # def plothist(x): # vmin = x.min()-1 # vmax = x.max()+1 # bins = np.arange(vmin, vmax, (vmax - vmin)/50) # plt.hist(x, bins=bins) # plt.show() # def scatterpred(pred): # plt.scatter(pred[:,0], pred[:,1]) ...
29.673684
76
0.506208
381c5c0ab457121c1be3d4dc192a40949d85e8c1
1,378
py
Python
isdbeads/__init__.py
michaelhabeck/bayesian-random-tomography
9429a3688df368f0fe8fd7beaa8202386951164a
[ "MIT" ]
2
2021-04-17T14:05:05.000Z
2022-02-24T16:03:29.000Z
isdbeads/__init__.py
michaelhabeck/bayesian-random-tomography
9429a3688df368f0fe8fd7beaa8202386951164a
[ "MIT" ]
null
null
null
isdbeads/__init__.py
michaelhabeck/bayesian-random-tomography
9429a3688df368f0fe8fd7beaa8202386951164a
[ "MIT" ]
null
null
null
from .universe import ( Universe, Particle ) from .probability import ( Probability ) from .likelihood import ( Likelihood, Normal, Exponential, LowerUpper, Logistic, GaussianMixture, Relu ) from .model import ( ModelDistances, ModelImage, ModelVolume, Radius...
12.759259
26
0.656749
381e48031db6b3bb9ab5198242c5568c48b161ff
2,668
py
Python
ag-res.py
Murilodsv/py-jules
601ca9e6fbad7fe82404f5296babb04583ddda95
[ "MIT" ]
null
null
null
ag-res.py
Murilodsv/py-jules
601ca9e6fbad7fe82404f5296babb04583ddda95
[ "MIT" ]
null
null
null
ag-res.py
Murilodsv/py-jules
601ca9e6fbad7fe82404f5296babb04583ddda95
[ "MIT" ]
1
2020-04-13T17:23:54.000Z
2020-04-13T17:23:54.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 20 13:32:20 2021 #--- ag csv results to single file based on dashboard_dbs #--- Murilo Vianna (murilodsv@gmail.com) #--- Jul, 2021. #--- Dev-log in: https://github.com/Murilodsv/py-jules @author: muril """ # DEBUG import os; os.chdir('C:/Murilo/py-jules'...
24.477064
97
0.508996
3820fe50d4dce95d717e614296b340c0f9ebd66c
1,294
py
Python
gui/Color.py
brianjimenez/emol
b789b85b40a99247f008fb7cafa0d019d142cd3c
[ "MIT" ]
null
null
null
gui/Color.py
brianjimenez/emol
b789b85b40a99247f008fb7cafa0d019d142cd3c
[ "MIT" ]
null
null
null
gui/Color.py
brianjimenez/emol
b789b85b40a99247f008fb7cafa0d019d142cd3c
[ "MIT" ]
null
null
null
''' Created on Oct 10, 2012 @author: Brian Jimenez-Garcia @contact: brian.jimenez@bsc.es ''' # Useful predefined colors White = Color(1.0, 1.0, 1.0, 1.0) Black = Color(0.0, 0.0, 0.0, 1.0) Carbon = Color(0.17, 0.17, 0.18, 1.0) Red = Color(0.95, 0.03, 0.01, 1.0) Blue = Color(0.01, 0.03, 0.95, 1.0) Sky = Color(0.233, 0...
26.408163
66
0.578053
38225c73c048ecdb417dfedadbfbcef4ca7108c0
917
py
Python
pnc_cli/pnc_help_formatter.py
vibe13/pnc-cli
9020462cac5254bdd40cc7d8fa239433242cce45
[ "Apache-2.0" ]
2
2016-05-18T15:01:34.000Z
2016-08-11T14:04:17.000Z
pnc_cli/pnc_help_formatter.py
vibe13/pnc-cli
9020462cac5254bdd40cc7d8fa239433242cce45
[ "Apache-2.0" ]
47
2016-06-23T19:58:40.000Z
2020-03-10T17:58:11.000Z
pnc_cli/pnc_help_formatter.py
vibe13/pnc-cli
9020462cac5254bdd40cc7d8fa239433242cce45
[ "Apache-2.0" ]
21
2016-05-30T20:34:17.000Z
2021-09-07T13:22:20.000Z
import argparse __author__ = 'aabulawi'
33.962963
72
0.579062
382269a9358bb58a18f501c0bd286c171e8ac7d7
775
py
Python
Spell Compendium/scr/Spell1148 - Nimbus of Light.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
1
2021-04-26T08:03:56.000Z
2021-04-26T08:03:56.000Z
Spell Compendium/scr/Spell1148 - Nimbus of Light.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
2
2021-06-11T05:55:01.000Z
2021-08-03T23:41:02.000Z
Spell Compendium/scr/Spell1148 - Nimbus of Light.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
1
2021-05-17T15:37:58.000Z
2021-05-17T15:37:58.000Z
from toee import *
31
151
0.740645
38229cdc49513c553f97ed67ce3eaa6b0ba92dcb
17,258
py
Python
pyBAScloudAPI/examples/main.py
bascloud/BASCloudAPI
6a06d430720e99204f84f5362b4f22d7d4a72b76
[ "MIT" ]
3
2021-04-30T07:44:11.000Z
2021-05-03T06:35:01.000Z
pyBAScloudAPI/examples/main.py
bascloud/BASCloudAPI
6a06d430720e99204f84f5362b4f22d7d4a72b76
[ "MIT" ]
9
2021-06-23T04:21:51.000Z
2022-01-17T04:15:06.000Z
pyBAScloudAPI/examples/main.py
bascloud/BAScloudAPI
6a06d430720e99204f84f5362b4f22d7d4a72b76
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import pyBAScloudAPI as api print("Testing util functions.") print("\t2021-04-26T10:56:58.000Z = ", api.Util.parseDateTimeString(dateTime="2021-04-26T10:56:58.000Z")) assert api.Util.parseDateTimeString(dateTime="2021-04-26T10:56:58.000Z") == 1619427418 print("\tParameter...
30.224168
178
0.735195
3824d6d18fbcaf0b52fe4f9be5410406a8d51803
1,498
py
Python
zeus/util/tests/output.py
ZachAnders/OPLabs
085030e60c23292c7860817233373ab6e1b19165
[ "BSD-2-Clause" ]
1
2018-02-06T17:43:51.000Z
2018-02-06T17:43:51.000Z
zeus/util/tests/output.py
ZachAnders/OPLabs
085030e60c23292c7860817233373ab6e1b19165
[ "BSD-2-Clause" ]
null
null
null
zeus/util/tests/output.py
ZachAnders/OPLabs
085030e60c23292c7860817233373ab6e1b19165
[ "BSD-2-Clause" ]
null
null
null
__COL_GOOD = '\033[32m' __COL_FAIL = '\033[31m' __COL_INFO = '\033[34m' __COL_BOLD = '\033[1m' __COL_ULIN = '\033[4m' __COL_ENDC = '\033[0m' INFO = ANSI_wrapper(__COL_INFO) BOLD = ANSI_wrapper(__COL_BOLD) UNDERLINE = ANSI_wrapper(__COL_ULIN)
27.236364
74
0.586115
3825d70d19be743114f68382ae76784d0aa81fda
604
py
Python
Chapter02/05_embossing_advance.py
yanboyang713/OpenCV-3-x-with-Python-By-Example
7393745014e0108985b860cb9b45c1c72dc0180d
[ "MIT" ]
null
null
null
Chapter02/05_embossing_advance.py
yanboyang713/OpenCV-3-x-with-Python-By-Example
7393745014e0108985b860cb9b45c1c72dc0180d
[ "MIT" ]
null
null
null
Chapter02/05_embossing_advance.py
yanboyang713/OpenCV-3-x-with-Python-By-Example
7393745014e0108985b860cb9b45c1c72dc0180d
[ "MIT" ]
null
null
null
import cv2 import numpy as np img = cv2.imread('./images/geometrics_input.png', cv2.IMREAD_GRAYSCALE) rows, cols = img.shape # It is used depth of cv2.CV_64F. sobel_horizontal = cv2.Sobel(img, cv2.CV_64F, 1, 0, ksize=5) # Kernel size can be: 1,3,5 or 7. sobel_vertical = cv2.Sobel(img, cv2.CV_64F, 0, 1, ksize=5)...
25.166667
71
0.718543
382763467eeacdcf8102a2eb884ff148f1377e58
269
py
Python
dataladmetadatamodel/text.py
yarikoptic/metadata-model
fac75a12f1c1ceaf111372dc1d22c8f39ce1481d
[ "MIT" ]
null
null
null
dataladmetadatamodel/text.py
yarikoptic/metadata-model
fac75a12f1c1ceaf111372dc1d22c8f39ce1481d
[ "MIT" ]
null
null
null
dataladmetadatamodel/text.py
yarikoptic/metadata-model
fac75a12f1c1ceaf111372dc1d22c8f39ce1481d
[ "MIT" ]
null
null
null
""" Instances of the Text class just contain text. Their main use is as dummy-element during model development. """ from dataclasses import dataclass from dataladmetadatamodel.connector import ConnectedObject
19.214286
58
0.799257
382924f8e44ff0070db746377fb391d4fbcf5d44
790
py
Python
server/apps/bot/views.py
LowerDeez/movies_finder
3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4
[ "MIT" ]
null
null
null
server/apps/bot/views.py
LowerDeez/movies_finder
3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4
[ "MIT" ]
null
null
null
server/apps/bot/views.py
LowerDeez/movies_finder
3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.permissions import AllowAny from rest_framework.response import Response from .registry import registry from .services.webhook import process_webhook_event __all__ = ( 'WebhookView', )
27.241379
51
0.674684
3829f67a2282de2962daadc9c35410add7d48c53
161,798
py
Python
subject/tests/functional/v2/test_images.py
laoyigrace/subject
e6ed989fdc250917a19788112b22322b73b3550f
[ "Apache-2.0" ]
null
null
null
subject/tests/functional/v2/test_images.py
laoyigrace/subject
e6ed989fdc250917a19788112b22322b73b3550f
[ "Apache-2.0" ]
null
null
null
subject/tests/functional/v2/test_images.py
laoyigrace/subject
e6ed989fdc250917a19788112b22322b73b3550f
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
44.683237
82
0.596688
382cc8f8f5ea8df980757417230fc969f24fd71f
110
py
Python
pyfantasy/__init__.py
markwhat1/pyfantasy
318a7afc97c7bf6ba978ff8bb8c4c58f8ea0d420
[ "MIT" ]
null
null
null
pyfantasy/__init__.py
markwhat1/pyfantasy
318a7afc97c7bf6ba978ff8bb8c4c58f8ea0d420
[ "MIT" ]
null
null
null
pyfantasy/__init__.py
markwhat1/pyfantasy
318a7afc97c7bf6ba978ff8bb8c4c58f8ea0d420
[ "MIT" ]
null
null
null
from .pyfantasy import Connection from .pyfantasy import League, Team, Player from .yahoo_oauth import OAuth2
27.5
43
0.827273
382d4e4871a9e9b0d2ed09ed6ba02c12a0996aad
898
py
Python
examples/hello_world/python/django_amf_example/urls.py
limscoder/amfast
e77162615090b6a1ad03565afcc4bec4b46f6a11
[ "MIT" ]
4
2015-12-12T04:34:34.000Z
2021-07-30T22:11:26.000Z
examples/hello_world/python/django_amf_example/urls.py
limscoder/amfast
e77162615090b6a1ad03565afcc4bec4b46f6a11
[ "MIT" ]
3
2015-03-23T23:45:30.000Z
2016-08-17T01:32:51.000Z
examples/hello_world/python/django_amf_example/urls.py
limscoder/amfast
e77162615090b6a1ad03565afcc4bec4b46f6a11
[ "MIT" ]
8
2015-03-23T23:45:34.000Z
2018-01-25T16:16:43.000Z
import os from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^django_amf_example/', include('django_amf_example.foo.urls')), # Uncomment the admin/doc line below ...
35.92
92
0.675947
382e05c1aec0a1e0fafc3e75a778a936b61e0df4
51,977
py
Python
mm_power_sdk_python/models/private_trial.py
MolecularMatch/mm-power-sdk-python
1fcbcc25c47d7b435e03929cb185eb7f10fb415d
[ "Apache-2.0" ]
null
null
null
mm_power_sdk_python/models/private_trial.py
MolecularMatch/mm-power-sdk-python
1fcbcc25c47d7b435e03929cb185eb7f10fb415d
[ "Apache-2.0" ]
null
null
null
mm_power_sdk_python/models/private_trial.py
MolecularMatch/mm-power-sdk-python
1fcbcc25c47d7b435e03929cb185eb7f10fb415d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ MolecularMatch MMPower MMPower API # noqa: E501 OpenAPI spec version: 1.0.0 Contact: support@molecularmatch.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six def to_str(self): """Returns t...
35.920525
993
0.649595
382e7f7f1ccdfe04486fb53156b6e7f57b31f553
1,174
py
Python
play_heuristic_agent.py
Jueun-Park/gym-module-select
e7b3065b2203218dbe15bfaefecc81074ac6bc76
[ "MIT" ]
null
null
null
play_heuristic_agent.py
Jueun-Park/gym-module-select
e7b3065b2203218dbe15bfaefecc81074ac6bc76
[ "MIT" ]
null
null
null
play_heuristic_agent.py
Jueun-Park/gym-module-select
e7b3065b2203218dbe15bfaefecc81074ac6bc76
[ "MIT" ]
null
null
null
import argparse import gym import gym_module_select from stable_baselines.common.vec_env import DummyVecEnv args = init_parse_argument() env = gym.make('ModuleSelect-v1', verbose=1, save_log_flag=True, log_num=7, ) env = DummyVecEnv([lambda: env]) num_done...
24.458333
95
0.556218
382e952e0abc26313f1d85400cc6243d40c68ce8
238
py
Python
01_Python_Basico_Intermediario/Aula030/aula30.py
Joao-Inacio/Curso-de-Python3
179d85f43f77dced640ffb143a87214538254cf3
[ "MIT" ]
1
2021-07-19T12:31:49.000Z
2021-07-19T12:31:49.000Z
01_Python_Basico_Intermediario/Aula030/aula30.py
Joao-Inacio/Curso-de-Python3
179d85f43f77dced640ffb143a87214538254cf3
[ "MIT" ]
null
null
null
01_Python_Basico_Intermediario/Aula030/aula30.py
Joao-Inacio/Curso-de-Python3
179d85f43f77dced640ffb143a87214538254cf3
[ "MIT" ]
null
null
null
""" Funes (def) - *args **kwargs """ # def func(a1, a2, a3, a4, a5, nome=None, a6=None): # print(a1, a2, a3, a4, a5, nome, a6) lista = [1, 2, 3, 4, 5] func(*lista, nome='Joo')
17
51
0.55042
382f2f78668adbeb3d9c2f747861ad2dbe227500
78,600
py
Python
lib/rucio/daemons/conveyor/utils.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
lib/rucio/daemons/conveyor/utils.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
lib/rucio/daemons/conveyor/utils.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Vincent Garonne, <vin...
54.926625
223
0.537494
3830df09c72d6bc67a2ca0f6763f909dda7df0af
574
py
Python
list_images.py
mrowacz/digital_api_scripts
bc8758862a6fccc982c9e5ae05e6590e88dc9059
[ "MIT" ]
null
null
null
list_images.py
mrowacz/digital_api_scripts
bc8758862a6fccc982c9e5ae05e6590e88dc9059
[ "MIT" ]
null
null
null
list_images.py
mrowacz/digital_api_scripts
bc8758862a6fccc982c9e5ae05e6590e88dc9059
[ "MIT" ]
null
null
null
import os import json import requests url = "https://api.digitalocean.com/v2/images?per_page=999" headers = {"Authorization" : "Bearer " + os.environ['DIGITALOCEAN_ACCESS_TOKEN']} r = requests.get(url, headers=headers) distros = {} for entry in r.json()["images"]: s = "(" + str(entry["id"]) + ") " + entry["name"...
26.090909
81
0.634146
3833598a358309dbc5740aefcbd3d175d6018996
8,457
py
Python
custom_components/journey/__init__.py
intrinseca/journey-custom-component
e29723418c9c6f50ee7c72b0e0e4488e1872a2a2
[ "MIT" ]
null
null
null
custom_components/journey/__init__.py
intrinseca/journey-custom-component
e29723418c9c6f50ee7c72b0e0e4488e1872a2a2
[ "MIT" ]
8
2021-12-21T22:11:10.000Z
2022-02-08T07:46:38.000Z
custom_components/journey/__init__.py
intrinseca/journey-custom-component
e29723418c9c6f50ee7c72b0e0e4488e1872a2a2
[ "MIT" ]
null
null
null
""" Custom integration to integrate Journey with Home Assistant. For more details about this integration, please refer to https://github.com/intrinseca/journey """ import asyncio from dataclasses import dataclass from datetime import timedelta import logging import math from OSMPythonTools.nominatim import NominatimR...
32.526923
94
0.65366
3834fa4b5731010d90ed1b11936d38cd049a51f6
1,015
py
Python
setup.py
debugtalk/hdiff
6e5c67bf020316d52962f48a6ae81cfb5d0ce8c0
[ "MIT" ]
1
2017-07-06T07:32:48.000Z
2017-07-06T07:32:48.000Z
setup.py
debugtalk/hdiff
6e5c67bf020316d52962f48a6ae81cfb5d0ce8c0
[ "MIT" ]
null
null
null
setup.py
debugtalk/hdiff
6e5c67bf020316d52962f48a6ae81cfb5d0ce8c0
[ "MIT" ]
1
2019-12-10T05:20:09.000Z
2019-12-10T05:20:09.000Z
#encoding: utf-8 import os import re from setuptools import setup, find_packages # parse version from xdiff/__init__.py with open(os.path.join(os.path.dirname(__file__), 'xdiff', '__init__.py')) as f: version = re.compile(r"__version__\s+=\s+'(.*)'", re.I).match(f.read()).group(1) with open('README.md') as f: ...
26.710526
94
0.625616
3836b50753707e664310c41fdfbe621c72c591ad
86
py
Python
recommendations/kujikatsu/249/c.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
recommendations/kujikatsu/249/c.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
1
2021-01-02T06:36:51.000Z
2021-01-02T06:36:51.000Z
recommendations/kujikatsu/249/c.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
a, b, n = map(int, input().split()) x = min(b - 1, n) print(a * x // b - a * (x // b))
28.666667
35
0.430233
3837ed605953a3a84f61221e934440108abfdf2f
2,790
py
Python
docs/source/conf.py
ducouloa/ml4ir
75aeecaff11682a7bd71c5521e59c449c43c3f9f
[ "Apache-2.0" ]
70
2020-02-05T00:42:29.000Z
2022-03-07T09:33:01.000Z
docs/source/conf.py
ducouloa/ml4ir
75aeecaff11682a7bd71c5521e59c449c43c3f9f
[ "Apache-2.0" ]
102
2020-01-31T21:12:55.000Z
2022-03-28T17:04:43.000Z
docs/source/conf.py
ducouloa/ml4ir
75aeecaff11682a7bd71c5521e59c449c43c3f9f
[ "Apache-2.0" ]
23
2020-02-05T00:43:07.000Z
2022-02-13T13:33:51.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.44186
79
0.684946
383841710ce3e85bb05270e42f4b8e80b35e6697
1,193
py
Python
manage.py
ishiland/ArcGIS-License-Tracker
b998bbf9229434f0101f0e211638f0a815c89b73
[ "MIT" ]
3
2021-01-30T07:08:58.000Z
2022-01-31T13:36:19.000Z
manage.py
ishiland/flexlm-flask
b998bbf9229434f0101f0e211638f0a815c89b73
[ "MIT" ]
2
2020-03-16T18:39:41.000Z
2021-06-24T13:01:55.000Z
manage.py
ishiland/flexlm-flask
b998bbf9229434f0101f0e211638f0a815c89b73
[ "MIT" ]
2
2018-06-11T20:13:52.000Z
2019-12-11T21:11:45.000Z
import unittest from flask_script import Manager, Shell, Server from app import app, db from app.fake_populate import populate manager = Manager(app) manager.add_command('runserver', Server(threaded=True)) manager.add_command('shell', Shell(make_context=make_shell_context)) if __name__ == '__main__': manager.ru...
20.929825
71
0.673931
3839d2bcd20e33a947c357a2d7aab8f090791caf
454
py
Python
learning_journal/routes.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
null
null
null
learning_journal/routes.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
3
2019-12-26T16:39:40.000Z
2021-06-01T21:57:09.000Z
learning_journal/routes.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
null
null
null
"""Routes and URIs.""" def includeme(config): """Add routes and their URIs.""" config.add_static_view('static', 'static', cache_max_age=3600) config.add_route('home', '/') config.add_route('about', '/about') config.add_route('details', '/journal/{id:\d+}') config.add_route('create', '/journal/...
34.923077
66
0.640969
383b08a07ce0a7e72dd5bd0304a317d08bcb959e
1,840
py
Python
bin/helper/evaluation_config_mixin.py
rubienr/dirindex
ced18a6ed9e42cab2dc870b61ddfa3ac8a6ceacb
[ "Apache-2.0" ]
1
2020-05-15T17:50:45.000Z
2020-05-15T17:50:45.000Z
bin/helper/evaluation_config_mixin.py
rubienr/dirindex
ced18a6ed9e42cab2dc870b61ddfa3ac8a6ceacb
[ "Apache-2.0" ]
null
null
null
bin/helper/evaluation_config_mixin.py
rubienr/dirindex
ced18a6ed9e42cab2dc870b61ddfa3ac8a6ceacb
[ "Apache-2.0" ]
null
null
null
from configparser import ConfigParser from .databases_config_mixin import get_configured_db_file_path ##################################################################################################
44.878049
102
0.492391
383c4dbc8788963ff0f2227ca34717a2ddb9d2f7
334
py
Python
backend/api/room/urls.py
jeraldlyh/HoloRPG
e835eb1f7a6b18c87007ecf8168d959b4e176a23
[ "MIT" ]
null
null
null
backend/api/room/urls.py
jeraldlyh/HoloRPG
e835eb1f7a6b18c87007ecf8168d959b4e176a23
[ "MIT" ]
null
null
null
backend/api/room/urls.py
jeraldlyh/HoloRPG
e835eb1f7a6b18c87007ecf8168d959b4e176a23
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from .views import DungeonViewSet, RoomViewSet router = DefaultRouter() router.register(r"dungeon", DungeonViewSet, basename="dungeon") router.register(r"room", RoomViewSet, basename="room") urlpatterns = [ path("", include(ro...
27.833333
63
0.775449
383cd794bb8386729f21cbb926a0d719527719f4
1,761
py
Python
makememe/generator/prompts/types/waiting.py
joshbickett/makememe_ai
7f66d31564515ea9b4490838d4e33d85ba0a260a
[ "MIT" ]
37
2021-12-25T19:55:37.000Z
2022-03-23T08:28:49.000Z
makememe/generator/prompts/types/waiting.py
joshbickett/makememe_ai
7f66d31564515ea9b4490838d4e33d85ba0a260a
[ "MIT" ]
null
null
null
makememe/generator/prompts/types/waiting.py
joshbickett/makememe_ai
7f66d31564515ea9b4490838d4e33d85ba0a260a
[ "MIT" ]
5
2021-12-29T11:42:28.000Z
2022-03-08T20:49:49.000Z
from makememe.generator.prompts.prompt import Prompt import datetime from PIL import Image from makememe.generator.design.image_manager import Image_Manager
32.611111
86
0.599091
383e3af7fe9618bbfe62c21b134b2caa1c790a2d
167
py
Python
.kodi/addons/plugin.audio.radioreference/__init__.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/plugin.audio.radioreference/__init__.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/plugin.audio.radioreference/__init__.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
# -*- coding: utf-8 -*- #------------------------------------------------------------ # broadcastify #------------------------------------------------------------
33.4
62
0.131737
383febaf1ca2d83f51aaa28742d1adb8350698d6
1,212
py
Python
ubermag/tests/test_basic_logging.py
ubermag/ubermag
7e53f62ae643842cd117f9031ab54380b8c00cb0
[ "BSD-3-Clause" ]
20
2019-06-14T07:09:44.000Z
2022-03-02T17:37:29.000Z
ubermag/tests/test_basic_logging.py
ubermag/ubermag
7e53f62ae643842cd117f9031ab54380b8c00cb0
[ "BSD-3-Clause" ]
42
2019-06-13T11:51:40.000Z
2022-03-16T14:47:19.000Z
ubermag/tests/test_basic_logging.py
ubermag/ubermag
7e53f62ae643842cd117f9031ab54380b8c00cb0
[ "BSD-3-Clause" ]
5
2019-06-20T08:18:30.000Z
2021-08-10T10:55:09.000Z
import ubermag import logging
24.734694
76
0.637789
384039dd253dbb45af5fe08ff152328cbf2dabfd
8,076
py
Python
python_framework/api/test/api/src/annotation/GlobalExceptionAnnotationTest.py
SamuelJansen/python_framework
a3e57def47c13edd67319f9bbca32be2bbb00f43
[ "MIT" ]
5
2020-09-02T20:05:44.000Z
2022-03-04T21:02:13.000Z
python_framework/api/test/api/src/annotation/GlobalExceptionAnnotationTest.py
SamuelJansen/python_framework
a3e57def47c13edd67319f9bbca32be2bbb00f43
[ "MIT" ]
1
2021-05-23T22:55:58.000Z
2021-05-24T15:33:50.000Z
python_framework/api/test/api/src/annotation/GlobalExceptionAnnotationTest.py
SamuelJansen/python_framework
a3e57def47c13edd67319f9bbca32be2bbb00f43
[ "MIT" ]
3
2020-11-01T01:13:09.000Z
2022-02-22T15:01:19.000Z
from python_helper import log, Test, SettingHelper, RandomHelper, ObjectHelper, TestHelper, ReflectionHelper, Constant from python_framework import EncapsulateItWithGlobalException, GlobalException, ExceptionHandler, HttpStatus LOG_HELPER_SETTINGS = { log.LOG : False, log.INFO : True, log.SUCCESS : True, ...
48.071429
255
0.773279
38410ea065efac093f59cf59aebf388e93e666a8
4,007
py
Python
src/Pybind11Wraps/Neighbor/TreeNeighbor.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
1
2020-10-21T01:56:55.000Z
2020-10-21T01:56:55.000Z
src/Pybind11Wraps/Neighbor/TreeNeighbor.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
src/Pybind11Wraps/Neighbor/TreeNeighbor.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
#------------------------------------------------------------------------------- # TreeNeighbor #------------------------------------------------------------------------------- from PYB11Generator import * from Neighbor import * from NeighborAbstractMethods import * #---------------------------------------------------...
42.62766
164
0.550786
384212c693fe183ca43529aa8c41250ed2908324
656
py
Python
hardhat/recipes/tkdiff.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/tkdiff.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/tkdiff.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from .base import GnuRecipe
29.818182
79
0.592988
38442d4e520a2a7cf2672966f74e1bda1da32461
199
py
Python
profiles_app/serializers.py
foropolo/task
bf44361537f97db4bd8efe189b16958b6c8f8491
[ "MIT" ]
null
null
null
profiles_app/serializers.py
foropolo/task
bf44361537f97db4bd8efe189b16958b6c8f8491
[ "MIT" ]
7
2020-06-06T00:01:49.000Z
2022-02-10T11:31:54.000Z
profiles_app/serializers.py
foropolo/task
bf44361537f97db4bd8efe189b16958b6c8f8491
[ "MIT" ]
null
null
null
from rest_framework import serializers
28.428571
57
0.788945
384588ab19b7b9445eb8d0e620a6a304d88dad1c
62
py
Python
tests/__init__.py
johnsca/charm-helpers
e1157a1edb7ef2cc478af176086998d68de0b193
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
johnsca/charm-helpers
e1157a1edb7ef2cc478af176086998d68de0b193
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
johnsca/charm-helpers
e1157a1edb7ef2cc478af176086998d68de0b193
[ "Apache-2.0" ]
null
null
null
import sys import mock sys.modules['yum'] = mock.MagicMock()
12.4
37
0.725806
3847bfe54774d87addfadb9073d4d4d898715bfd
1,552
py
Python
steps/app/migrations/0006_auto_20180330_1816.py
VishalCR7/steps
521e9317b0973795e9f2b98df9d41908ae95e042
[ "Apache-2.0" ]
null
null
null
steps/app/migrations/0006_auto_20180330_1816.py
VishalCR7/steps
521e9317b0973795e9f2b98df9d41908ae95e042
[ "Apache-2.0" ]
null
null
null
steps/app/migrations/0006_auto_20180330_1816.py
VishalCR7/steps
521e9317b0973795e9f2b98df9d41908ae95e042
[ "Apache-2.0" ]
3
2018-10-06T11:40:53.000Z
2018-10-07T18:49:06.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-30 12:46 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models
36.952381
147
0.646907
697365290d19012dbb2289c34b92ed5cceafd229
2,854
py
Python
users.py
mavi0/onos-reroute-api
e3a155ce860a944563297c076e6ef4d8ac5a563e
[ "MIT" ]
null
null
null
users.py
mavi0/onos-reroute-api
e3a155ce860a944563297c076e6ef4d8ac5a563e
[ "MIT" ]
null
null
null
users.py
mavi0/onos-reroute-api
e3a155ce860a944563297c076e6ef4d8ac5a563e
[ "MIT" ]
null
null
null
import json, base64 import logging, coloredlogs import hashlib, copy from flask_table import Table, Col logger = logging.getLogger(__name__) coloredlogs.install(level='INFO') # Declare your table # Get some objects
29.122449
99
0.575333
6974fd265bd84e76fffa8f0a1c0eaed99e207bb7
841
py
Python
tests/test_win_app.py
koyoki/Airtest
ea8391bd4819d9231e7b35f18c14662e6109fad0
[ "Apache-2.0" ]
6,140
2018-01-24T03:27:48.000Z
2022-03-31T14:37:54.000Z
tests/test_win_app.py
koyoki/Airtest
ea8391bd4819d9231e7b35f18c14662e6109fad0
[ "Apache-2.0" ]
993
2018-02-02T11:21:40.000Z
2022-03-31T20:41:41.000Z
tests/test_win_app.py
koyoki/Airtest
ea8391bd4819d9231e7b35f18c14662e6109fad0
[ "Apache-2.0" ]
1,022
2018-03-05T07:45:22.000Z
2022-03-31T04:29:57.000Z
# encoding=utf-8 from airtest.core.win import Windows import unittest import numpy import time from testconf import try_remove SNAPSHOT = "win_snapshot.png" if __name__ == '__main__': unittest.main()
21.025
65
0.649227
6975386566f8d048910ebad189266d0d942c5edc
2,382
py
Python
testing_app.py
michal090497/python-fruits-recognition
f9dc8f4d5e682bd68e7df8079c2648dc462f1cad
[ "MIT" ]
1
2022-02-21T18:45:03.000Z
2022-02-21T18:45:03.000Z
testing_app.py
tomasz-jankowski/python-fruits-recognition
2ca96e412dee4a586eb8ba5c6b33d0169e5e9231
[ "MIT" ]
null
null
null
testing_app.py
tomasz-jankowski/python-fruits-recognition
2ca96e412dee4a586eb8ba5c6b33d0169e5e9231
[ "MIT" ]
null
null
null
# Import required libraries import cv2 from os.path import os, dirname import tensorflow as tf import numpy as np from tqdm import tqdm import random # List of categories (directories names) CATEGORIES = ["bad_apple", "bad_grape", "bad_pear", "cherry", "good_apple", "good_avocado", "good_grape", "good_pear", "ripe_avo...
27.697674
134
0.70445
6975897181723160fe0f7a9044875607ac1022c2
23,657
py
Python
scylla/datadog_checks/scylla/metrics.py
tzach/integrations-core
ac9daf60630bea4739947fe1d8df72c20bfcbc22
[ "BSD-3-Clause" ]
null
null
null
scylla/datadog_checks/scylla/metrics.py
tzach/integrations-core
ac9daf60630bea4739947fe1d8df72c20bfcbc22
[ "BSD-3-Clause" ]
null
null
null
scylla/datadog_checks/scylla/metrics.py
tzach/integrations-core
ac9daf60630bea4739947fe1d8df72c20bfcbc22
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) # metrics namespaced under 'scylla' SCYLLA_ALIEN = { 'scylla_alien_receive_batch_queue_length': 'alien.receive_batch_queue_length', 'scylla_alien_total_received_messages': 'alien.total_received_me...
59.739899
169
0.820518
69773b443e3d861e0a9c9951bc4171e69df9c2e7
4,820
py
Python
simple_rest_client/resource.py
Manre/python-simple-rest-client
d8f0a6fa8ea27fcbe17d38059345649c0eabff3b
[ "MIT" ]
1
2021-08-19T00:35:28.000Z
2021-08-19T00:35:28.000Z
simple_rest_client/resource.py
Manre/python-simple-rest-client
d8f0a6fa8ea27fcbe17d38059345649c0eabff3b
[ "MIT" ]
null
null
null
simple_rest_client/resource.py
Manre/python-simple-rest-client
d8f0a6fa8ea27fcbe17d38059345649c0eabff3b
[ "MIT" ]
null
null
null
import logging from types import MethodType from urllib.parse import urljoin import aiohttp import requests from json_encoder import json from .exceptions import ActionNotFound, ActionURLMatchError from .models import Request from .request import make_request, make_async_request logger = logging.getLogger(__name__) ...
33.706294
82
0.556017
6978d12598c10eff9db5a49764ac11fad521f00e
3,785
py
Python
pyrsa/io/meadows.py
PeerHerholz/pyrsa
994007086c59de93d86b982f1fff73fe6a8ea929
[ "MIT" ]
4
2015-08-10T18:34:21.000Z
2018-05-15T20:43:15.000Z
pyrsa/io/meadows.py
PeerHerholz/pyrsa
994007086c59de93d86b982f1fff73fe6a8ea929
[ "MIT" ]
null
null
null
pyrsa/io/meadows.py
PeerHerholz/pyrsa
994007086c59de93d86b982f1fff73fe6a8ea929
[ "MIT" ]
2
2018-03-26T03:02:07.000Z
2021-11-10T21:09:48.000Z
"""Covers import of data downloaded from the `Meadows online behavior platform <https://meadows-research.com/>`_. For information on available file types see the meadows `documentation on downloads <https://meadows-research.com/documentation\ /researcher/downloads/>`_. """ from os.path import basename import numpy fr...
34.724771
76
0.624306
697c06dc9db41cd68206db686a97122825b501db
2,406
py
Python
wqxlib-python/wqxlib/wqx_v3_0/AttachedBinaryObject.py
FlippingBinary/wqxlib
77cb9d98fca8872dedc7dfc93c7ada2a5193a8e9
[ "MIT" ]
null
null
null
wqxlib-python/wqxlib/wqx_v3_0/AttachedBinaryObject.py
FlippingBinary/wqxlib
77cb9d98fca8872dedc7dfc93c7ada2a5193a8e9
[ "MIT" ]
null
null
null
wqxlib-python/wqxlib/wqx_v3_0/AttachedBinaryObject.py
FlippingBinary/wqxlib
77cb9d98fca8872dedc7dfc93c7ada2a5193a8e9
[ "MIT" ]
null
null
null
from ..common import WQXException from .SimpleContent import ( BinaryObjectFileName, BinaryObjectFileTypeCode ) from yattag import Doc
42.210526
189
0.778055
697c55e84fe6b0046982d7cd4e08ffb0f7ad65ef
1,185
py
Python
instrument.py
silvergl/spyder
b23698626a4b9e50af83aef390af14a01df7e540
[ "MIT" ]
null
null
null
instrument.py
silvergl/spyder
b23698626a4b9e50af83aef390af14a01df7e540
[ "MIT" ]
null
null
null
instrument.py
silvergl/spyder
b23698626a4b9e50af83aef390af14a01df7e540
[ "MIT" ]
null
null
null
import os import importlib import pathlib from tools.Aspect import ModuleAspectizer path = os.getcwd() dir_list = os.listdir(path) print(dir_list) aspect = ModuleAspectizer() print('new') exceptions = ['pyplot.py', 'setup.py', 'bootstrap.py', 'instrument.py', 'windows.py','pybloom.py', 'switcher.py','ma...
28.214286
71
0.566245
697cb4df0fee5fb2e4b8167c3cfa2dce9ba8fde7
3,564
py
Python
tests/test_puls_util.py
xiaohan2012/capitalization-restoration-train
24f9236a553ac91f4e291625e5616d8558f80d3e
[ "MIT" ]
1
2020-03-07T01:25:21.000Z
2020-03-07T01:25:21.000Z
tests/test_puls_util.py
xiaohan2012/capitalization-restoration-train
24f9236a553ac91f4e291625e5616d8558f80d3e
[ "MIT" ]
null
null
null
tests/test_puls_util.py
xiaohan2012/capitalization-restoration-train
24f9236a553ac91f4e291625e5616d8558f80d3e
[ "MIT" ]
null
null
null
import json import os import codecs from capitalization_train.puls_util import (separate_title_from_body, extract_and_capitalize_headlines_from_corpus, get_input_example, get_doc_ids_from_...
40.044944
355
0.62486
697cf530cd2b74e55b1269aa017262e1f824f075
906
py
Python
python/app.py
ncolesummers/microservices-calculator
15ec48ef8eb7278f6d25854afe1ee79b0f6fae0c
[ "MIT" ]
null
null
null
python/app.py
ncolesummers/microservices-calculator
15ec48ef8eb7278f6d25854afe1ee79b0f6fae0c
[ "MIT" ]
null
null
null
python/app.py
ncolesummers/microservices-calculator
15ec48ef8eb7278f6d25854afe1ee79b0f6fae0c
[ "MIT" ]
null
null
null
import flask from flask import request, jsonify from flask_cors import CORS import math from wasmer import engine, Store, Module, Instance app = flask.Flask(__name__) CORS(app) app.run(host="0.0.0.0")
24.486486
91
0.674393
697d4986488b41c5f319419410ec5864bd44270b
1,815
py
Python
src/tools/nuscenes-devkit/prediction/tests/test_backbone.py
jie311/TraDeS
896491a159abe65f61c6ad05662cda6e28d137a6
[ "MIT" ]
475
2021-03-13T16:33:36.000Z
2022-03-30T06:00:39.000Z
src/tools/nuscenes-devkit/prediction/tests/test_backbone.py
jie311/TraDeS
896491a159abe65f61c6ad05662cda6e28d137a6
[ "MIT" ]
50
2021-03-17T04:48:20.000Z
2022-03-08T13:55:32.000Z
src/tools/nuscenes-devkit/prediction/tests/test_backbone.py
jie311/TraDeS
896491a159abe65f61c6ad05662cda6e28d137a6
[ "MIT" ]
98
2021-03-14T12:12:49.000Z
2022-03-19T16:19:13.000Z
import unittest import torch from torchvision.models.resnet import BasicBlock, Bottleneck from nuscenes.prediction.models.backbone import ResNetBackbone, MobileNetBackbone
34.903846
82
0.665014
697e7c1a9cd37680897c57f1ed904545d8a6557a
379
py
Python
py_code/Qrbar_test.py
xiaofu98/cv_projects
15ccfab4f965247716057feb9149168ea2ee2adc
[ "Apache-2.0" ]
null
null
null
py_code/Qrbar_test.py
xiaofu98/cv_projects
15ccfab4f965247716057feb9149168ea2ee2adc
[ "Apache-2.0" ]
null
null
null
py_code/Qrbar_test.py
xiaofu98/cv_projects
15ccfab4f965247716057feb9149168ea2ee2adc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # @File : Qrbar_test.py import cv2 import numpy as np from pyzbar.pyzbar import decode img = cv2.imread('qrcode.png') for barcode in decode(img): print(barcode.data.decode('utf-8')) print(barcode.data) pts = np.array([barcode.polygon], np.int32) pts = pts....
22.294118
47
0.649077
697eaf7d0770ae77e9ee86fbc0c32df38b9e8710
1,336
py
Python
jupyterlab-mlops/jupyter_server_config.py
ddebowczyk92/jupyter-images
388b8b3f741d3d1b44c3f4609c70636c7c3cbc5e
[ "MIT" ]
null
null
null
jupyterlab-mlops/jupyter_server_config.py
ddebowczyk92/jupyter-images
388b8b3f741d3d1b44c3f4609c70636c7c3cbc5e
[ "MIT" ]
null
null
null
jupyterlab-mlops/jupyter_server_config.py
ddebowczyk92/jupyter-images
388b8b3f741d3d1b44c3f4609c70636c7c3cbc5e
[ "MIT" ]
null
null
null
import os import requests import time c = get_config() # noqa: F821 c.ServerApp.ip = "0.0.0.0" c.ServerApp.port = 8888 c.ServerApp.open_browser = False try: maybe_vertex_framework = get_gooogle_instance_attribute('framework') assert maybe_vertex_framework == 'Container' # Vertex AI Notebook for _ in rang...
31.809524
107
0.694611
697eefb12f54063cf9dd510696fac402496e0d04
1,346
py
Python
src/loss/mixup.py
jiangtaoo2333/StaticGestureRecognition
9d554b137f217f3bcb046b2c6978b9487685de2a
[ "MIT" ]
null
null
null
src/loss/mixup.py
jiangtaoo2333/StaticGestureRecognition
9d554b137f217f3bcb046b2c6978b9487685de2a
[ "MIT" ]
null
null
null
src/loss/mixup.py
jiangtaoo2333/StaticGestureRecognition
9d554b137f217f3bcb046b2c6978b9487685de2a
[ "MIT" ]
null
null
null
''' @Author: Jiangtao @Date: 2020-02-25 16:13:42 @LastEditors: Jiangtao @LastEditTime: 2020-07-06 14:01:11 @Description: ''' import numpy as np np.set_printoptions(threshold=np.inf) import torch import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) def mixup_data(x, y, dev...
24.035714
76
0.627043
697efc5cbbfa3ced1db0b2aa6c18af2b642f623b
376
py
Python
task2.py
gor-dimm/prog_lr5
5fea4920a3b6677dc57ec8358c879d0e7d0cdd02
[ "MIT" ]
null
null
null
task2.py
gor-dimm/prog_lr5
5fea4920a3b6677dc57ec8358c879d0e7d0cdd02
[ "MIT" ]
null
null
null
task2.py
gor-dimm/prog_lr5
5fea4920a3b6677dc57ec8358c879d0e7d0cdd02
[ "MIT" ]
null
null
null
# #!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == "__main__": print(harmid()) print(harmid(1, 3, 5, 7, 9)) print(harmid(2, 4, 6, 8, 10, 12))
20.888889
37
0.507979
6981e639a7cb29d73552df37a160915f52bb7650
1,187
py
Python
login.py
josip8/EwilTwin-attack
d9bd8444af635177b87e48d7400e73aaf9a17f23
[ "MIT" ]
null
null
null
login.py
josip8/EwilTwin-attack
d9bd8444af635177b87e48d7400e73aaf9a17f23
[ "MIT" ]
null
null
null
login.py
josip8/EwilTwin-attack
d9bd8444af635177b87e48d7400e73aaf9a17f23
[ "MIT" ]
null
null
null
import argparse import sys import datetime import json import logging import re import random import requests import shutil from pyquery import PyQuery as pq try: main(username=sys.argv[1], password=sys.argv[2]) except Exception, e: logging.exception(e)
21.981481
88
0.6369
6982204821afb20223d10e2d3df47326e8eb7d6c
1,347
py
Python
piptegrator/piptegrator.py
MartinFalatic/piptegrator
3c7efa76e8581afdbb5595232dea4ba6d6da2803
[ "MIT" ]
1
2020-07-23T22:19:07.000Z
2020-07-23T22:19:07.000Z
piptegrator/piptegrator.py
MartinFalatic/piptegrator
3c7efa76e8581afdbb5595232dea4ba6d6da2803
[ "MIT" ]
3
2019-11-05T23:31:03.000Z
2020-05-17T03:03:11.000Z
piptegrator/piptegrator.py
MartinFalatic/piptegrator
3c7efa76e8581afdbb5595232dea4ba6d6da2803
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ """ from __future__ import print_function import argparse import sys from . import common from . import helper from . import vcs_tool PARAMS = {} PARAMS['this_script'] = common.get_script_name_from_filename(__file__) if __name__ == "__main__": main()
24.490909
98
0.672606
69826f25e21c7ee10d4ed46dec1e788f5a40e5c2
411
py
Python
seller/models.py
apt-developer/SoloMall
40cdce6829910aad9955e49a90e386bf5d1b1a5f
[ "MIT" ]
null
null
null
seller/models.py
apt-developer/SoloMall
40cdce6829910aad9955e49a90e386bf5d1b1a5f
[ "MIT" ]
null
null
null
seller/models.py
apt-developer/SoloMall
40cdce6829910aad9955e49a90e386bf5d1b1a5f
[ "MIT" ]
null
null
null
from django.db import models # from themall.models import Customer # Create your models here.
25.6875
94
0.77129
698282c465446336db3bddcf6e550097754582e0
2,392
py
Python
test/pytest/service-bluetooth/test_pairing_hmi_perspective.py
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
369
2021-11-10T09:20:29.000Z
2022-03-30T06:36:58.000Z
test/pytest/service-bluetooth/test_pairing_hmi_perspective.py
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
149
2021-11-10T08:38:35.000Z
2022-03-31T23:01:52.000Z
test/pytest/service-bluetooth/test_pairing_hmi_perspective.py
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
41
2021-11-10T08:30:37.000Z
2022-03-29T08:12:46.000Z
# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. # For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md import time import pytest from harness import log from harness.dom_parser_utils import * from harness.interface.defs import key_codes from bt_fixtures import *
44.296296
126
0.743729
6982d7079fdcf3a58b79ac8ac6683d28485634e2
1,147
py
Python
server/src/utils/mailer.py
ocskier/TutorDashboard
4dedfee7676418660cca0043ee71db720f915cca
[ "Apache-2.0" ]
1
2020-10-28T21:36:13.000Z
2020-10-28T21:36:13.000Z
server/src/utils/mailer.py
ocskier/TutorDashboard
4dedfee7676418660cca0043ee71db720f915cca
[ "Apache-2.0" ]
36
2020-10-14T15:12:21.000Z
2021-07-15T21:33:39.000Z
server/src/utils/mailer.py
ocskier/TutorDashboard
4dedfee7676418660cca0043ee71db720f915cca
[ "Apache-2.0" ]
1
2020-10-22T07:50:59.000Z
2020-10-22T07:50:59.000Z
import smtplib, ssl, os from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from .html_template import emailHtml from .text_template import emailText port = 465 context = ssl.create_default_context()
29.410256
79
0.691369
6982db3c2b0bfe6506ab6f5f2f11222df69cf2f3
2,606
py
Python
otcextensions/sdk/dis/v2/records.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/dis/v2/records.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/dis/v2/records.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
# 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 under t...
35.69863
76
0.699156
698463ef4506f64508769bee2b45a19e5d85e6f5
664
py
Python
ad-insertion/frontend/main.py
dahanhan/Ad-Insertion-Sample
12019c70a95f1d83d792e7e03d1dd5f732630558
[ "BSD-3-Clause" ]
82
2019-04-07T04:27:47.000Z
2022-02-04T07:35:58.000Z
ad-insertion/frontend/main.py
dahanhan/Ad-Insertion-Sample
12019c70a95f1d83d792e7e03d1dd5f732630558
[ "BSD-3-Clause" ]
43
2019-04-04T22:03:02.000Z
2020-08-25T10:11:44.000Z
ad-insertion/frontend/main.py
dahanhan/Ad-Insertion-Sample
12019c70a95f1d83d792e7e03d1dd5f732630558
[ "BSD-3-Clause" ]
54
2019-04-04T23:27:05.000Z
2022-01-30T14:27:16.000Z
#!/usr/bin/python3 from tornado import ioloop, web from tornado.options import define, options, parse_command_line from manifest import ManifestHandler from segment import SegmentHandler app = web.Application([ (r'/segment/.*',SegmentHandler), (r'/manifest/.*',ManifestHandler), ]) if __name__ == "__main__": ...
33.2
103
0.704819
69862f6c28259ef99ed2c352bbd7e6f2c8b73e19
488
py
Python
cofile/output-filename.py
yikeke/python-side-projects
13c49a6863eb7fc6b97c8727116ca737e29f9ea0
[ "MIT" ]
3
2020-08-10T02:48:48.000Z
2021-09-28T16:04:05.000Z
cofile/output-filename.py
yikeke/python-side-projects
13c49a6863eb7fc6b97c8727116ca737e29f9ea0
[ "MIT" ]
null
null
null
cofile/output-filename.py
yikeke/python-side-projects
13c49a6863eb7fc6b97c8727116ca737e29f9ea0
[ "MIT" ]
null
null
null
import os for root, dirs, files in os.walk("/Users/coco/Documents/GitHub/pingcap-upstream/docs-cn", topdown=True): #for root, dirs, files in os.walk("/Users/coco/Documents/GitHub/python-side-projects/cofile", topdown=True): for name in files: if '.md' in name: # Check all markdown files filep...
44.363636
108
0.670082
6986ba8ae10943bbe0a19ad1d63111e25988f309
499
py
Python
dbml_from_api.py
ioatzim/getbigschema
7ec9cde9099f6f7a9a45232d598b93f55357397b
[ "Apache-2.0" ]
null
null
null
dbml_from_api.py
ioatzim/getbigschema
7ec9cde9099f6f7a9a45232d598b93f55357397b
[ "Apache-2.0" ]
null
null
null
dbml_from_api.py
ioatzim/getbigschema
7ec9cde9099f6f7a9a45232d598b93f55357397b
[ "Apache-2.0" ]
null
null
null
import requests import os import json import datetime ''' Pulls a dbml file from the API. User must manually add the file id, found in the 'response_ids.json' file generated from dbml_post_to_api.py ''' url='http://ec2-54-167-67-34.compute-1.amazonaws.com/api/dbmls' #url of the API id = '6192b1f31c2a512293f...
35.642857
141
0.735471
698812bb45241671016a8d814e5ddf45839c4060
400
py
Python
fabfile.py
undertherain/dagen
f4815127bb7b660c4ffadf5f01ad4c5c0f504ddc
[ "Apache-2.0" ]
2
2017-10-21T02:29:21.000Z
2017-10-21T02:35:50.000Z
fabfile.py
undertherain/dagen
f4815127bb7b660c4ffadf5f01ad4c5c0f504ddc
[ "Apache-2.0" ]
null
null
null
fabfile.py
undertherain/dagen
f4815127bb7b660c4ffadf5f01ad4c5c0f504ddc
[ "Apache-2.0" ]
null
null
null
import os from fabric.api import local, lcd
17.391304
73
0.6
69883b20a029aa25992e0951d51a93d66e81c5a0
544
py
Python
Package1/Util.py
mgi2792/WebTest
c3441c213c97dbd290b948e162fd1560da33bdd6
[ "MIT" ]
null
null
null
Package1/Util.py
mgi2792/WebTest
c3441c213c97dbd290b948e162fd1560da33bdd6
[ "MIT" ]
null
null
null
Package1/Util.py
mgi2792/WebTest
c3441c213c97dbd290b948e162fd1560da33bdd6
[ "MIT" ]
null
null
null
from openpyxl import load_workbook
20.923077
56
0.681985
6988900c33f8027bb264778efef7f83d1aa37d8a
200
py
Python
clancy_database/__init__.py
arthurian/visualizing_russian_tools
65fd37839dc0650bb25d1f98904da5b79ae1a754
[ "BSD-3-Clause" ]
2
2020-07-10T14:17:03.000Z
2020-11-17T09:18:26.000Z
clancy_database/__init__.py
eelegiap/visualizing_russian_tools
9c36baebc384133c7c27d7a7c4e0cedc8cb84e74
[ "BSD-3-Clause" ]
13
2019-03-17T13:27:31.000Z
2022-01-18T17:03:14.000Z
clancy_database/__init__.py
eelegiap/visualizing_russian_tools
9c36baebc384133c7c27d7a7c4e0cedc8cb84e74
[ "BSD-3-Clause" ]
2
2019-10-19T16:37:44.000Z
2020-06-22T13:30:20.000Z
# List of tables that should be routed to this app. # Note that this is not intended to be a complete list of the available tables. TABLE_NAMES = ( 'lemma', 'inflection', 'aspect_pair', )
25
79
0.69
698a0fd866792d3cb9602f07e37599bb1277b5c0
399
py
Python
differential/plugins/gazelle.py
funqc/Differential
738ebf9a2a54ea04498b3394f80d980aad083ea7
[ "MIT" ]
52
2021-10-12T11:23:45.000Z
2022-03-18T04:15:03.000Z
differential/plugins/gazelle.py
funqc/Differential
738ebf9a2a54ea04498b3394f80d980aad083ea7
[ "MIT" ]
4
2021-10-15T13:58:42.000Z
2022-03-15T12:42:35.000Z
differential/plugins/gazelle.py
funqc/Differential
738ebf9a2a54ea04498b3394f80d980aad083ea7
[ "MIT" ]
5
2021-11-18T05:41:23.000Z
2022-03-09T03:13:15.000Z
import argparse from differential.plugins.base import Base
21
84
0.691729
698b7be724cf94857043bb74abc7ca1f3ac92685
2,398
py
Python
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[tr_TR-2014] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
32
2019-04-12T08:01:34.000Z
2022-02-28T04:41:50.000Z
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[tr_TR-2014] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
74
2019-07-09T16:35:20.000Z
2022-03-09T16:41:34.000Z
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[tr_TR-2014] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
20
2019-01-28T07:41:02.000Z
2022-02-16T02:38:57.000Z
[ { 'date': '2014-01-01', 'description': 'Ylba', 'locale': 'tr-TR', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2014-04-23', 'description': 'Ulusal Egemenlik ve ocuk Bayram', 'locale': 'tr-TR', 'notes': '', 're...
22.622642
65
0.373228
698cd08ed49ed9b0de22135fa30dfe66e162d6d7
2,512
py
Python
pommerman/agents/TensorFlowAgent/pit.py
IshchenkoRoman/pommerman
117824dca6974822d90e8fc3345da32eeb43cb43
[ "Apache-2.0" ]
null
null
null
pommerman/agents/TensorFlowAgent/pit.py
IshchenkoRoman/pommerman
117824dca6974822d90e8fc3345da32eeb43cb43
[ "Apache-2.0" ]
7
2021-03-18T21:23:29.000Z
2022-03-11T23:34:05.000Z
pommerman/agents/TensorFlowAgent/pit.py
IshchenkoRoman/pommerman
117824dca6974822d90e8fc3345da32eeb43cb43
[ "Apache-2.0" ]
null
null
null
# pommerman/cli/run_battle.py # pommerman/agents/TensorFlowAgent/pit.py import atexit from datetime import datetime import os import random import sys import time import argparse import numpy as np from pommerman import helpers, make from TensorFlowAgent import TensorFlowAgent from pommerman import utility import ...
27.911111
149
0.644506
698cd0b8fccf1402595d508e1fedc902f75ee5a1
4,645
py
Python
test/test_mean_average_precision.py
JuanchoWang/xcenternet
1b6784bb3ff8bc44704a60fc6fd0b56dea190e29
[ "Apache-2.0", "MIT" ]
171
2020-07-23T08:05:35.000Z
2022-03-15T02:55:51.000Z
test/test_mean_average_precision.py
JuanchoWang/xcenternet
1b6784bb3ff8bc44704a60fc6fd0b56dea190e29
[ "Apache-2.0", "MIT" ]
5
2020-08-10T11:49:50.000Z
2021-03-30T11:44:02.000Z
test/test_mean_average_precision.py
JuanchoWang/xcenternet
1b6784bb3ff8bc44704a60fc6fd0b56dea190e29
[ "Apache-2.0", "MIT" ]
22
2020-08-04T06:39:30.000Z
2021-08-20T20:14:36.000Z
import numpy as np import tensorflow as tf import unittest from xcenternet.model.evaluation.overlap import compute_overlap from xcenternet.model.evaluation.mean_average_precision import MAP if __name__ == "__main__": unittest.main()
44.238095
108
0.579763
698d47d5d2d82e65bd49fd87180ffd6403f3b50a
3,063
py
Python
sonnet/examples/rmc_learn_to_execute_test.py
ankitshah009/sonnet
a07676192c6d0f2ed5967d6bc367d62e55835baf
[ "Apache-2.0" ]
3
2019-07-31T12:36:26.000Z
2020-12-16T14:37:19.000Z
sonnet/examples/rmc_learn_to_execute_test.py
ankitshah009/sonnet
a07676192c6d0f2ed5967d6bc367d62e55835baf
[ "Apache-2.0" ]
null
null
null
sonnet/examples/rmc_learn_to_execute_test.py
ankitshah009/sonnet
a07676192c6d0f2ed5967d6bc367d62e55835baf
[ "Apache-2.0" ]
3
2019-07-29T08:55:20.000Z
2019-07-30T06:36:56.000Z
# Copyright 2017 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
37.353659
79
0.713353
699310c68f6ee0233724f50d1b8ed775e875d6af
714
py
Python
reflex/src/reflex/reflex_polling.py
EnricoSartori/reflex_ros_pkg
960373a48a0d9095025763400a00c1b30fe4ede5
[ "Apache-2.0" ]
null
null
null
reflex/src/reflex/reflex_polling.py
EnricoSartori/reflex_ros_pkg
960373a48a0d9095025763400a00c1b30fe4ede5
[ "Apache-2.0" ]
null
null
null
reflex/src/reflex/reflex_polling.py
EnricoSartori/reflex_ros_pkg
960373a48a0d9095025763400a00c1b30fe4ede5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import rospy from reflex_msgs.msg import HandCommand from time import sleep from reflex_base_services import * if __name__ == '__main__': rospy.init_node('ReflexPollingNode') reflex_hand = ReFlex_Polling()
25.5
67
0.658263
699348aba420825cc6ea4bff1f7b57cdbe433c5f
7,630
py
Python
kf_d3m_primitives/natural_language_processing/sent2vec/sent2vec.py
cdbethune/d3m-primitives
5530da1b8efba7de8cec6890401c5d4091acd45a
[ "MIT" ]
null
null
null
kf_d3m_primitives/natural_language_processing/sent2vec/sent2vec.py
cdbethune/d3m-primitives
5530da1b8efba7de8cec6890401c5d4091acd45a
[ "MIT" ]
null
null
null
kf_d3m_primitives/natural_language_processing/sent2vec/sent2vec.py
cdbethune/d3m-primitives
5530da1b8efba7de8cec6890401c5d4091acd45a
[ "MIT" ]
null
null
null
import os.path from typing import Sequence, Optional, Dict import numpy as np import pandas as pd from nk_sent2vec import Sent2Vec as _Sent2Vec from d3m import container, utils from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase from d3m.primitive_interfaces.base import CallResult from d3m.contai...
43.6
141
0.627261
6993bc13615580474978d13c5f5a83a136a5e9f1
1,173
py
Python
tests/integration/test_user_defined_object_persistence/test.py
pdv-ru/ClickHouse
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
[ "Apache-2.0" ]
15,577
2019-09-23T11:57:53.000Z
2022-03-31T18:21:48.000Z
tests/integration/test_user_defined_object_persistence/test.py
pdv-ru/ClickHouse
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
[ "Apache-2.0" ]
16,476
2019-09-23T11:47:00.000Z
2022-03-31T23:06:01.000Z
tests/integration/test_user_defined_object_persistence/test.py
pdv-ru/ClickHouse
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
[ "Apache-2.0" ]
3,633
2019-09-23T12:18:28.000Z
2022-03-31T15:55:48.000Z
import pytest from helpers.cluster import ClickHouseCluster cluster = ClickHouseCluster(__file__) instance = cluster.add_instance('instance', stay_alive=True)
29.325
91
0.700767
6994f7160676cfbd47ee328ec88c4bf6782a75dc
7,694
py
Python
python/brainvisa/maker/brainvisa_clients.py
brainvisa/brainvisa-cmake
2b4c4c6aae45e036a54d655b064f4d1a2b7b2061
[ "CECILL-B" ]
null
null
null
python/brainvisa/maker/brainvisa_clients.py
brainvisa/brainvisa-cmake
2b4c4c6aae45e036a54d655b064f4d1a2b7b2061
[ "CECILL-B" ]
77
2018-10-30T11:28:16.000Z
2022-02-28T14:21:40.000Z
python/brainvisa/maker/brainvisa_clients.py
brainvisa/brainvisa-cmake
2b4c4c6aae45e036a54d655b064f4d1a2b7b2061
[ "CECILL-B" ]
1
2019-07-17T14:08:22.000Z
2019-07-17T14:08:22.000Z
# -*- coding: utf-8 -*- # This software and supporting documentation are distributed by # Institut Federatif de Recherche 49 # CEA/NeuroSpin, Batiment 145, # 91191 Gif-sur-Yvette cedex # France # # This software is governed by the CeCILL-B license under # French law and abiding by the rules of dis...
36.990385
80
0.564856
6996e841b5afa44da1500734468b8fd4e49b092a
1,000
py
Python
test/test_del_contact.py
rokimaru/python_training
8ac7e2bbe964ab998c3ec27d4d360043e92bdd56
[ "Apache-2.0" ]
null
null
null
test/test_del_contact.py
rokimaru/python_training
8ac7e2bbe964ab998c3ec27d4d360043e92bdd56
[ "Apache-2.0" ]
null
null
null
test/test_del_contact.py
rokimaru/python_training
8ac7e2bbe964ab998c3ec27d4d360043e92bdd56
[ "Apache-2.0" ]
null
null
null
import random import pytest from model.contact import Contact
38.461538
109
0.665
699795829a131e6b9aa0af884cefeacb0e7cc459
3,513
py
Python
slate/integrations/backtesting_py.py
EmersonDove/slate-python
fefd3e1275596d67e5d18e9e864657b4c67ce95e
[ "MIT" ]
1
2022-03-05T17:08:24.000Z
2022-03-05T17:08:24.000Z
slate/integrations/backtesting_py.py
blankly-finance/slate-python
fefd3e1275596d67e5d18e9e864657b4c67ce95e
[ "MIT" ]
null
null
null
slate/integrations/backtesting_py.py
blankly-finance/slate-python
fefd3e1275596d67e5d18e9e864657b4c67ce95e
[ "MIT" ]
null
null
null
from operator import itemgetter import pandas as pd import slate from slate.integrations.common import b_id, DUMMY_METRICS, DUMMY_INDICATORS try: import backtesting except ImportError: pass if __name__ == '__main__': # run backtesting.py backtest from backtesting import Backtest, Strategy fro...
32.527778
84
0.519784
6997a5dd5ddb99540a69c42d6cd9bb74efb247be
1,029
py
Python
python exercicios/Listas/lista6.py
gabrielqoliveiraa/bomdia
b5e0fe6aa347a0e31b5960a69fbd6f32df352094
[ "MIT" ]
null
null
null
python exercicios/Listas/lista6.py
gabrielqoliveiraa/bomdia
b5e0fe6aa347a0e31b5960a69fbd6f32df352094
[ "MIT" ]
null
null
null
python exercicios/Listas/lista6.py
gabrielqoliveiraa/bomdia
b5e0fe6aa347a0e31b5960a69fbd6f32df352094
[ "MIT" ]
null
null
null
nome = [] temp = [] pesoMaior = pesoMenor = 0 count = 1 while True: temp.append(str(input('Nome: '))) temp.append(float(input('Peso: '))) if count == 1: pesoMaior = pesoMenor = temp[1] else: if temp[1] >= pesoMaior: pesoMaior = temp[1] elif temp[1] <= pesoMenor: ...
17.15
75
0.483965
69982bd6d471edd0b6269e3319bea4f90a9b9ecf
8,685
py
Python
beetles/scripts/inference_runner.py
ESA-PhiLab/hypernet
b33f7893d3dfcbbc2c10076fb61b2b1f1316402a
[ "MIT" ]
34
2018-11-14T09:38:00.000Z
2022-01-31T17:44:51.000Z
beetles/scripts/inference_runner.py
ESA-PhiLab/hypernet
b33f7893d3dfcbbc2c10076fb61b2b1f1316402a
[ "MIT" ]
5
2018-09-11T14:52:35.000Z
2022-03-24T09:32:01.000Z
beetles/scripts/inference_runner.py
ESA-PhiLab/hypernet
b33f7893d3dfcbbc2c10076fb61b2b1f1316402a
[ "MIT" ]
11
2018-10-24T12:42:59.000Z
2022-03-12T03:50:50.000Z
""" Run inference N times on the provided model given set of hyperparameters. Has the option to inject noise into the test set. """ import os import shutil import re import clize import mlflow import tensorflow as tf from clize.parameters import multi from ml_intuition.data.io import load_processed_h5 from ml_intuit...
47.983425
108
0.617041
699880915260268a701c6708794dc8488d47a30e
3,629
py
Python
statutes_pipeline_steps/de_authority_edgelist.py
QuantLaw/legal-data-preprocessing
c5462ba946e858d5e33a4698e9da350402903bca
[ "BSD-2-Clause" ]
5
2021-01-06T10:59:53.000Z
2022-03-18T19:44:11.000Z
statutes_pipeline_steps/de_authority_edgelist.py
QuantLaw/legal-data-preprocessing
c5462ba946e858d5e33a4698e9da350402903bca
[ "BSD-2-Clause" ]
1
2021-01-03T18:54:47.000Z
2021-01-03T18:54:47.000Z
statutes_pipeline_steps/de_authority_edgelist.py
QuantLaw/legal-data-preprocessing
c5462ba946e858d5e33a4698e9da350402903bca
[ "BSD-2-Clause" ]
null
null
null
import json import os import numpy import pandas as pd from quantlaw.utils.beautiful_soup import create_soup from quantlaw.utils.files import ensure_exists from quantlaw.utils.pipeline import PipelineStep from statics import ( DE_REFERENCE_PARSED_PATH, DE_REG_AUTHORITY_EDGELIST_PATH, DE_REG_CROSSREFERENCE...
34.894231
87
0.610361
6998bcb96c84eee08055afeb394e0c10dfe55e4a
248
py
Python
test-crates/hello-world/check_installed/check_installed.py
pattonw/pyo3-pack
675d92819faf56e972d1553ea8199425cb7f7e94
[ "Apache-2.0", "MIT" ]
null
null
null
test-crates/hello-world/check_installed/check_installed.py
pattonw/pyo3-pack
675d92819faf56e972d1553ea8199425cb7f7e94
[ "Apache-2.0", "MIT" ]
null
null
null
test-crates/hello-world/check_installed/check_installed.py
pattonw/pyo3-pack
675d92819faf56e972d1553ea8199425cb7f7e94
[ "Apache-2.0", "MIT" ]
null
null
null
from subprocess import check_output if __name__ == '__main__': main()
19.076923
66
0.633065
69990cfc9621ec7083d9cf51ca5e92ac2a42610b
5,567
py
Python
opp/baseline_lrrf_upper.py
heeryoncho/sensors2018cnnhar
2c0ae84b83a95bd5b5ab13df0fb3f5e8529df91f
[ "MIT" ]
10
2018-09-25T07:55:30.000Z
2020-05-08T15:01:56.000Z
opp/baseline_lrrf_upper.py
heeryoncho/sensors2018cnnhar
2c0ae84b83a95bd5b5ab13df0fb3f5e8529df91f
[ "MIT" ]
null
null
null
opp/baseline_lrrf_upper.py
heeryoncho/sensors2018cnnhar
2c0ae84b83a95bd5b5ab13df0fb3f5e8529df91f
[ "MIT" ]
5
2018-12-12T16:40:26.000Z
2020-10-29T01:24:07.000Z
from sklearn.metrics import accuracy_score from sklearn.metrics import confusion_matrix from sklearn.linear_model import LogisticRegression from sklearn.ensemble import RandomForestClassifier import select_data as sd ''' See paper: Sensors 2018, 18(4), 1055; https://doi.org/10.3390/s18041055 "Divide and Conquer-Base...
29.146597
96
0.60679
699a6e09d5177bd3605891a0241caa9a9c07185e
22,060
py
Python
core/validators/admin.py
M-Spencer-94/configNOW
56828587253202089e77cfdfcf5329f2a7f09b3f
[ "PSF-2.0", "Apache-2.0", "MIT" ]
3
2019-07-09T20:02:48.000Z
2021-11-21T20:00:37.000Z
core/validators/admin.py
M-Spencer-94/configNOW
56828587253202089e77cfdfcf5329f2a7f09b3f
[ "PSF-2.0", "Apache-2.0", "MIT" ]
null
null
null
core/validators/admin.py
M-Spencer-94/configNOW
56828587253202089e77cfdfcf5329f2a7f09b3f
[ "PSF-2.0", "Apache-2.0", "MIT" ]
null
null
null
# ============================================================================ # # Copyright (c) 2007-2010 Integral Technology Solutions Pty Ltd, # All Rights Reserved. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL...
66.047904
396
0.557752
699b6cce7ca9f407c75af01305648159edf5193e
836
py
Python
doc/plots/stats/moments_expw.py
breisfeld/pandas
f1fd50bb8e7603042fe93e01e862766673e33450
[ "BSD-3-Clause" ]
10
2015-07-21T06:35:13.000Z
2021-10-30T00:15:05.000Z
doc/plots/stats/moments_expw.py
breisfeld/pandas
f1fd50bb8e7603042fe93e01e862766673e33450
[ "BSD-3-Clause" ]
null
null
null
doc/plots/stats/moments_expw.py
breisfeld/pandas
f1fd50bb8e7603042fe93e01e862766673e33450
[ "BSD-3-Clause" ]
5
2017-05-28T05:31:12.000Z
2020-09-01T03:08:01.000Z
from moment_plots import * np.random.seed(1) ts = test_series(500) * 10 # ts[::100] = 20 s = ts.cumsum() fig, axes = plt.subplots(3, 1, figsize=(8, 10), sharex=True) ax0, ax1, ax2 = axes ax0.plot(s.index, s.values) ax0.set_title('time series') ax1.plot(s.index, m.ewma(s, span=50, min_periods=1).values, color='b...
24.588235
80
0.673445
699cbcc2ace017ff27f255949e80dc0e9759b091
3,564
py
Python
RunMatch.py
fredboe/monte-carlo-tree-search
ac43bed9a3d1b62e12d2853d1e59839fe7400572
[ "MIT" ]
1
2020-07-17T09:40:11.000Z
2020-07-17T09:40:11.000Z
RunMatch.py
fredboe/monte-carlo-tree-search
ac43bed9a3d1b62e12d2853d1e59839fe7400572
[ "MIT" ]
null
null
null
RunMatch.py
fredboe/monte-carlo-tree-search
ac43bed9a3d1b62e12d2853d1e59839fe7400572
[ "MIT" ]
null
null
null
import sys # import the GameState of the game from Game.GameStateConnect4 import GameState # import all agents from Agents.MCTS import MCTSTree from Agents.Random import RandomAgent from Agents.AlphaBeta import AlphaBetaAgent # creates the board string for connect4 (full of zeros) start_board_list = ["000000 ...
34.941176
78
0.527217
699d582f893b5deba41c301c34bab99d402a5311
990
py
Python
elizabot.py
batisteo/elizabot
3329d0e263a86496b06d70046f70fda2550edfb4
[ "WTFPL" ]
null
null
null
elizabot.py
batisteo/elizabot
3329d0e263a86496b06d70046f70fda2550edfb4
[ "WTFPL" ]
1
2017-02-20T20:18:24.000Z
2017-02-21T09:59:05.000Z
elizabot.py
batisteo/elizabot
3329d0e263a86496b06d70046f70fda2550edfb4
[ "WTFPL" ]
null
null
null
import os from time import sleep import aiohttp from aiotg import Bot CLEVERBOT = "https://www.cleverbot.com/getreply?key={key}&input={q}" APERTIUM = 'http://batisteo.eu:2737/translate?markUnknown=no&q={q}&langpair={pair}' CLEVERBOT_TOKEN = os.environ['CLEVERBOT_TOKEN'] bot = Bot(api_token=os.environ['BOT_TOKEN']) ...
27.5
83
0.659596
699dbfba09e4b2780e57672a2d8ecc9e67db0fe3
702
py
Python
resilient-circuits/resilient_circuits/__init__.py
COLDTURNIP/resilient-python-api
14423f1dec32af67f7203c8d4d36d0a9e2651802
[ "MIT" ]
28
2017-12-22T00:26:59.000Z
2022-01-22T14:51:33.000Z
resilient-circuits/resilient_circuits/__init__.py
COLDTURNIP/resilient-python-api
14423f1dec32af67f7203c8d4d36d0a9e2651802
[ "MIT" ]
18
2018-03-06T19:04:20.000Z
2022-03-21T15:06:30.000Z
resilient-circuits/resilient_circuits/__init__.py
COLDTURNIP/resilient-python-api
14423f1dec32af67f7203c8d4d36d0a9e2651802
[ "MIT" ]
28
2018-05-01T17:53:22.000Z
2022-03-28T09:56:59.000Z
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. import pkg_resources try: __version__ = pkg_resources.get_distribution(__name__).version except pkg_resources.DistributionNotFound: __version__ = None from .actions_component import ResilientComponent from .action_message import ActionMessageBase, Act...
43.875
124
0.837607
69a1b349167847ac7ceea431928ed62a147ebb5e
2,838
py
Python
pastas/transform.py
pgraafstra/pastas
c065059e1df5b6c8e4afeb5278de2ef70fdf726c
[ "MIT" ]
null
null
null
pastas/transform.py
pgraafstra/pastas
c065059e1df5b6c8e4afeb5278de2ef70fdf726c
[ "MIT" ]
null
null
null
pastas/transform.py
pgraafstra/pastas
c065059e1df5b6c8e4afeb5278de2ef70fdf726c
[ "MIT" ]
null
null
null
"""The transforms module contains all the transforms that can be added to the simulation of a model. These transforms are applied after the simulation, to incorporate nonlinear effects. """ import numpy as np from pandas import DataFrame
33.785714
79
0.588795
69a221dbea88cda21e34ea6b75e9fa9d44aaad95
382
py
Python
pymockdata/datasets/default.py
vladcalin/py-mock-data-generator
747a22b1a26b2db3cd3f9d2c4a35b5ba79d943c8
[ "MIT" ]
2
2016-08-04T13:40:39.000Z
2016-10-07T20:30:07.000Z
pymockdata/datasets/default.py
vladcalin/py-mock-data-generator
747a22b1a26b2db3cd3f9d2c4a35b5ba79d943c8
[ "MIT" ]
2
2016-08-18T08:02:13.000Z
2016-08-18T08:09:18.000Z
pymockdata/datasets/default.py
vladcalin/pymockdata
747a22b1a26b2db3cd3f9d2c4a35b5ba79d943c8
[ "MIT" ]
null
null
null
import string from ..datasets import Dataset uppercase_ascii_letters = Dataset("uppercase_letter", None, string.ascii_uppercase) lowercase_ascii_letters = Dataset("lowercase_letter", None, string.ascii_lowercase) ascii_letters = Dataset("letter", None, string.ascii_letters) digits = Dataset("digit", None, string.dig...
34.727273
83
0.801047
69a258f2db5f02076d0ecb02bb0169664304388a
1,732
py
Python
Day 23/ViralAdvertising.py
sandeep-krishna/100DaysOfCode
af4594fb6933e4281d298fa921311ccc07295a7c
[ "MIT" ]
null
null
null
Day 23/ViralAdvertising.py
sandeep-krishna/100DaysOfCode
af4594fb6933e4281d298fa921311ccc07295a7c
[ "MIT" ]
null
null
null
Day 23/ViralAdvertising.py
sandeep-krishna/100DaysOfCode
af4594fb6933e4281d298fa921311ccc07295a7c
[ "MIT" ]
null
null
null
''' HackerLand Enterprise is adopting a new viral advertising strategy. When they launch a new product, they advertise it to exactly people on social media. On the first day, half of those people (i.e., ) like the advertisement and each shares it with of their friends. At the beginning of the second day, people re...
28.866667
261
0.714781