hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
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
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
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
4
247
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.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
98ef697ccd1d0ce81f3545bc903eb1ff39fa24a2
701
py
Python
onlinecourse/migrations/0003_homeworkanswer.py
Moneto3o/Course-Mangement-System
2b2a8548e08fd6f3185ad23559eae841881326cf
[ "Apache-2.0" ]
null
null
null
onlinecourse/migrations/0003_homeworkanswer.py
Moneto3o/Course-Mangement-System
2b2a8548e08fd6f3185ad23559eae841881326cf
[ "Apache-2.0" ]
null
null
null
onlinecourse/migrations/0003_homeworkanswer.py
Moneto3o/Course-Mangement-System
2b2a8548e08fd6f3185ad23559eae841881326cf
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.3 on 2021-06-23 02:36
30.478261
121
0.626248
# Generated by Django 3.1.3 on 2021-06-23 02:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('onlinecourse', '0002_auto_20210623_0941'), ] operations = [ migrations.CreateModel( name='Homew...
0
0
0
554
0
0
0
30
68
371df930ffaa78a55012c519e4c329c1f8f97c56
1,166
py
Python
leetcode/33_Search_in_Rotated_Sorted_Array.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
1
2020-05-01T21:29:17.000Z
2020-05-01T21:29:17.000Z
leetcode/33_Search_in_Rotated_Sorted_Array.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
null
null
null
leetcode/33_Search_in_Rotated_Sorted_Array.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
1
2020-06-12T23:32:14.000Z
2020-06-12T23:32:14.000Z
''' 33. Search in Rotated Sorted Array Medium Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no du...
27.116279
100
0.511149
''' 33. Search in Rotated Sorted Array Medium Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no du...
0
0
0
590
0
0
0
0
22
dc96d3db43b70b02ef24b2ea06e3b4ff9e9d80ce
1,331
py
Python
glashammer/bundles/contrib/auth/openidauth.py
passy/glashammer-rdrei
9e56952d70b961d8945707469aad9cfe97c4e7b7
[ "MIT" ]
1
2016-07-04T15:23:59.000Z
2016-07-04T15:23:59.000Z
glashammer/bundles/contrib/auth/openidauth.py
passy/glashammer-rdrei
9e56952d70b961d8945707469aad9cfe97c4e7b7
[ "MIT" ]
null
null
null
glashammer/bundles/contrib/auth/openidauth.py
passy/glashammer-rdrei
9e56952d70b961d8945707469aad9cfe97c4e7b7
[ "MIT" ]
null
null
null
""" glashammer.bundles.contrib.auth.openidauth ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Open ID Support for Glashammer :copyright: 2010 Glashammer Developers :license: MIT """
28.319149
71
0.661908
""" glashammer.bundles.contrib.auth.openidauth ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Open ID Support for Glashammer :copyright: 2010 Glashammer Developers :license: MIT """ from openid.consumer.consumer import Consumer, SUCCESS, CANCEL from werkzeug import redirect from glashammer.utils import sibpath, url_fo...
0
0
0
0
0
828
0
161
160
8f558f6a46b75c6d332a9f4e5b2539ae3d50b5f6
2,544
py
Python
baseline_preprocess.py
shiningliang/DIMM
adc9ff2bea0921cffe91989a1adc95184d81e6a5
[ "Apache-2.0" ]
1
2021-03-01T12:28:26.000Z
2021-03-01T12:28:26.000Z
baseline_preprocess.py
shiningliang/DIMM
adc9ff2bea0921cffe91989a1adc95184d81e6a5
[ "Apache-2.0" ]
null
null
null
baseline_preprocess.py
shiningliang/DIMM
adc9ff2bea0921cffe91989a1adc95184d81e6a5
[ "Apache-2.0" ]
1
2020-11-07T16:11:00.000Z
2020-11-07T16:11:00.000Z
import os single_task = ['5849', '25000', '41401', '4019'] for task in single_task: path = 'data/preprocessed_data/baseline/' + task if not os.path.exists(path): os.makedirs(path) train_data, dim = preprocess_data('data/raw_data/' + task + '/train', task) save(train_data, 'data/preprocessed...
34.378378
91
0.605739
import pandas as pd import numpy as np import os import pickle as pkl import json from tqdm import tqdm def convert_samples(samples): print('Converting samples...') indexes = samples[0]['index'] labels = [samples[0]['label']] * len(indexes) del samples[0] for sample in tqdm(samples): # ind...
0
0
0
0
0
1,878
0
-16
179
69654bd4eaf9e6ddbb228cf5eb6cfebf7c5a9c0f
754
py
Python
appengine/app.py
wickedchicken/timebug
a7164dd0c9b7e992deba5a232073d001bd3448c1
[ "BSD-2-Clause" ]
null
null
null
appengine/app.py
wickedchicken/timebug
a7164dd0c9b7e992deba5a232073d001bd3448c1
[ "BSD-2-Clause" ]
1
2019-10-05T21:48:45.000Z
2019-10-05T21:48:45.000Z
appengine/app.py
wickedchicken/timebug
a7164dd0c9b7e992deba5a232073d001bd3448c1
[ "BSD-2-Clause" ]
null
null
null
import webapp2 app = webapp2.WSGIApplication([("/_ah/warmup", MainPage), ('/', MainPage), ])
27.925926
63
0.690981
import webapp2 from webapp2_extras import jinja2 class BaseHandler(webapp2.RequestHandler): """Provide a cached Jinja environment to each request.""" @webapp2.cached_property def jinja2(self): # Returns a Jinja2 renderer cached in the app registry. return jinja2.get_jinja2(app=self.app) def render_re...
0
126
0
420
0
0
0
12
68
6200257d7e59c1ae462e27c608d6cbec78e80fee
665
py
Python
tests/choice/test_choice.py
xlurio/RockPaperScissorsPy
927bbd1480dbca70c9bc3b982f4034ac2ff33c57
[ "MIT" ]
null
null
null
tests/choice/test_choice.py
xlurio/RockPaperScissorsPy
927bbd1480dbca70c9bc3b982f4034ac2ff33c57
[ "MIT" ]
null
null
null
tests/choice/test_choice.py
xlurio/RockPaperScissorsPy
927bbd1480dbca70c9bc3b982f4034ac2ff33c57
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
25.576923
56
0.666165
import unittest from src.choice import Choice from src.choice.exceptions import InvalidChoiceException class UserChoiceTests(unittest.TestCase): """Tests for the user choice class""" def test_valid_choice(self): """Test valid user input""" choice = Choice('r') self.assertTrue(choice....
0
0
0
488
0
0
0
43
68
0713d78df8377d0c6b7c00eaf68bd9b197d1fbac
609
py
Python
networkit/test/test_centrality.py
angriman/network
3a4c5fd32eb2be8d5b34eaee17f8fe4e6e141894
[ "MIT" ]
366
2019-06-27T18:48:18.000Z
2022-03-29T08:36:49.000Z
networkit/test/test_centrality.py
angriman/network
3a4c5fd32eb2be8d5b34eaee17f8fe4e6e141894
[ "MIT" ]
387
2019-06-24T11:30:39.000Z
2022-03-31T10:37:28.000Z
networkit/test/test_centrality.py
angriman/network
3a4c5fd32eb2be8d5b34eaee17f8fe4e6e141894
[ "MIT" ]
131
2019-07-04T15:40:13.000Z
2022-03-29T12:34:23.000Z
#!/usr/bin/env python3 import unittest if __name__ == "__main__": unittest.main()
18.454545
60
0.651888
#!/usr/bin/env python3 import unittest import os import networkit as nk class Test_Centrality(unittest.TestCase): def test_DegreeCentrality(self): g = nk.Graph(8, False, False) g.addEdge(0, 2) g.addEdge(0, 5) g.addEdge(1, 2) g.addEdge(2, 3) g.addEdge(2, 2) g.addEdge(2, 4) g.addEdge(3, 5) g.addEdg...
0
0
0
468
0
0
0
-11
67
6bff15a4444dc05907bed9946e38668c9876c9d2
931
py
Python
model.py
Ayantika22/Flask-program-For-Wine-Dataset
aa28a92116c1b2735883e43ed1ef3c9f58239bbc
[ "MIT" ]
2
2020-06-29T15:14:56.000Z
2020-11-26T08:48:43.000Z
model.py
Ayantika22/Flask-Program-for-Wine-Dataset
aa28a92116c1b2735883e43ed1ef3c9f58239bbc
[ "MIT" ]
null
null
null
model.py
Ayantika22/Flask-Program-for-Wine-Dataset
aa28a92116c1b2735883e43ed1ef3c9f58239bbc
[ "MIT" ]
1
2021-05-08T10:18:50.000Z
2021-05-08T10:18:50.000Z
# -*- coding: utf-8 -*- """ Created on Fri Feb 28 15:03:12 2020 @author: Ayantika """ # Importing necessary libraries import pandas as pd from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression import pickle # Reading the data Wine = pd.read_csv("Wine....
30.032258
103
0.712137
# -*- coding: utf-8 -*- """ Created on Fri Feb 28 15:03:12 2020 @author: Ayantika """ # Importing necessary libraries import numpy as np import pandas as pd from pandas import Series, DataFrame from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression impo...
0
0
0
0
0
0
0
12
46
ce46e50cde4a68b91ffc35cb64668b934bd1c3de
2,737
py
Python
seed.py
jrrlokken/issue-tracking-system
33b9b68dd821c8a05cdbc8de87645f61da06f0bd
[ "MIT" ]
1
2021-02-20T04:26:36.000Z
2021-02-20T04:26:36.000Z
seed.py
jrrlokken/issue-tracking-system
33b9b68dd821c8a05cdbc8de87645f61da06f0bd
[ "MIT" ]
2
2021-04-06T18:14:38.000Z
2021-06-02T02:45:15.000Z
seed.py
jrrlokken/issue-tracking-system
33b9b68dd821c8a05cdbc8de87645f61da06f0bd
[ "MIT" ]
null
null
null
from models import db, Priority, Status, Category, Role # Drop db tables and create them anew db.drop_all() db.create_all() # Priority p1 = Priority( priority_id=0, priority_label="Low" ) p2 = Priority( priority_id=1, priority_label="Medium" ) p3 = Priority( priority_id=2, priority_label="H...
19.411348
391
0.650347
from app import app from models import db, connect_db, User, Issue, Comment, Priority, Status, Category, Role # Drop db tables and create them anew db.drop_all() db.create_all() # Priority p1 = Priority( priority_id=0, priority_label="Low" ) p2 = Priority( priority_id=1, priority_label="Medium" ) p...
0
0
0
0
0
0
0
32
22
4cb1a20de656973fca2fc1192b2c5183563fa9cf
70
py
Python
pizza_auth/run.py
andimiller/pizza-auth
e36870a4edf84a203bbaad5911e2b0e5f605f60e
[ "MIT" ]
2
2015-06-12T08:26:02.000Z
2015-09-09T00:25:59.000Z
pizza_auth/run.py
Sylnai/pizza-auth
e36870a4edf84a203bbaad5911e2b0e5f605f60e
[ "MIT" ]
1
2021-06-15T20:28:49.000Z
2021-06-15T20:28:49.000Z
pizza_auth/run.py
Sylnai/pizza-auth
e36870a4edf84a203bbaad5911e2b0e5f605f60e
[ "MIT" ]
2
2015-11-13T16:43:30.000Z
2016-09-15T18:39:05.000Z
from main import app app.run(host='127.0.0.1', port=8090, debug=True)
23.333333
48
0.714286
from main import app app.run(host='127.0.0.1', port=8090, debug=True)
0
0
0
0
0
0
0
0
0
0e46de584e9f7e867a5e9c740f4b6ef3e9ef32f6
3,584
py
Python
pymco/security/ssl.py
jantman/python-mcollective
ceb8f362bc8a1981b42696889250bed1cce07fea
[ "BSD-3-Clause" ]
1
2015-07-29T00:35:51.000Z
2015-07-29T00:35:51.000Z
pymco/security/ssl.py
jantman/python-mcollective
ceb8f362bc8a1981b42696889250bed1cce07fea
[ "BSD-3-Clause" ]
null
null
null
pymco/security/ssl.py
jantman/python-mcollective
ceb8f362bc8a1981b42696889250bed1cce07fea
[ "BSD-3-Clause" ]
null
null
null
""" :py:mod:`pymco.ssl` ------------------- Contains SSL security provider plugin. """ from __future__ import print_function try: except ImportError as exc: print('You need install pycrypto for using SSL security provider') raise exc from .. import exc from .. import utils
32.581818
82
0.644252
""" :py:mod:`pymco.ssl` ------------------- Contains SSL security provider plugin. """ from __future__ import print_function import base64 import os try: from Crypto.Signature import PKCS1_v1_5 from Crypto.Hash import SHA except ImportError as exc: print('You need install pycrypto for using SSL security pr...
0
1,373
0
1,772
0
0
0
13
141
c7e8cb15efaa4177f1474ef5a37bbf23c0a74d1c
3,064
py
Python
_pycharm_skeletons/renderdoc/D3D12OM.py
Lex-DRL/renderdoc-py-stubs
75d280e4f500ded506f3315a49fc432b37ab4fa6
[ "MIT" ]
null
null
null
_pycharm_skeletons/renderdoc/D3D12OM.py
Lex-DRL/renderdoc-py-stubs
75d280e4f500ded506f3315a49fc432b37ab4fa6
[ "MIT" ]
null
null
null
_pycharm_skeletons/renderdoc/D3D12OM.py
Lex-DRL/renderdoc-py-stubs
75d280e4f500ded506f3315a49fc432b37ab4fa6
[ "MIT" ]
null
null
null
# encoding: utf-8 # module renderdoc # from P:\1-Scripts\_Python\Py-Autocomplete\renderdoc.pyd # by generator 1.146 # no doc # imports
36.915663
108
0.649151
# encoding: utf-8 # module renderdoc # from P:\1-Scripts\_Python\Py-Autocomplete\renderdoc.pyd # by generator 1.146 # no doc # imports import enum as __enum from .SwigPyObject import SwigPyObject class D3D12OM(SwigPyObject): """ Describes the current state of the output-merger stage of the D3D12 pipeline. """ ...
0
176
0
2,664
0
0
0
17
68
212a25f9662c6caa2c9493596023de0bdd71b50b
96
py
Python
venv/lib/python3.8/site-packages/jedi/inference/param.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/jedi/inference/param.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/jedi/inference/param.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/85/03/a8/e8d26fae6c7b3b8548be18e886767b946dd069a8481930ee9dda2adccd
96
96
0.895833
/home/runner/.cache/pip/pool/85/03/a8/e8d26fae6c7b3b8548be18e886767b946dd069a8481930ee9dda2adccd
0
0
0
0
0
0
0
0
0
e1ec4bfdb1db438cb20b46e1d2458eda58f02dfb
1,406
py
Python
Paper_Plots/Paper_Plots/Case3/plots_case3.py
RuiNian7319/Woodberry_Distillation
4ee8ab9de8e313bca48d9a7af9393abcad85ece4
[ "MIT" ]
3
2019-07-18T06:43:49.000Z
2021-05-13T12:34:24.000Z
Paper_Plots/Paper_Plots/Case3/plots_case3.py
HTL2018/Woodberry_Distillation
4ee8ab9de8e313bca48d9a7af9393abcad85ece4
[ "MIT" ]
null
null
null
Paper_Plots/Paper_Plots/Case3/plots_case3.py
HTL2018/Woodberry_Distillation
4ee8ab9de8e313bca48d9a7af9393abcad85ece4
[ "MIT" ]
1
2020-08-12T13:12:00.000Z
2020-08-12T13:12:00.000Z
import numpy as np import matplotlib.pyplot as plt import seaborn as sns fonts = {"family": "serif", "weight": "normal", "size": "12"} plt.rc('font', **fonts) plt.rc('text', usetex=True) ftc_noiseless = np.loadtxt('ftc_noiseless_case3.csv') ftc_noise = np.loadtxt('ftc_noise_case3.csv') no_ftc_noise...
32.697674
94
0.66074
import numpy as np import matplotlib.pyplot as plt import seaborn as sns import itertools fonts = {"family": "serif", "weight": "normal", "size": "12"} plt.rc('font', **fonts) plt.rc('text', usetex=True) ftc_noiseless = np.loadtxt('ftc_noiseless_case3.csv') ftc_noise = np.loadtxt('ftc_noise_case3.c...
0
0
0
0
0
68
0
-5
45
f30bda256908f99bddedb1b9e4707e5b737a2cd2
2,277
py
Python
realtime_hsv_adjust.py
aseber/OpenCV
9b5deef24acdc3664e7989e78d8935bbd140a880
[ "Apache-2.0" ]
2
2016-03-27T01:50:05.000Z
2020-05-17T11:44:31.000Z
realtime_hsv_adjust.py
aseber/OpenCV
9b5deef24acdc3664e7989e78d8935bbd140a880
[ "Apache-2.0" ]
null
null
null
realtime_hsv_adjust.py
aseber/OpenCV
9b5deef24acdc3664e7989e78d8935bbd140a880
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': main()
41.4
92
0.621871
import cv2 import numpy as np class GUI(): def __init__(self): self.switch_window = cv2.namedWindow("Values") self.hmin_bar = cv2.createTrackbar('Hue Min', 'Values', 0, 255, self.nothing) self.hmax_bar = cv2.createTrackbar('Hue Max', 'Values', 0, 255, self.nothing) hue_min = cv2.set...
0
0
0
2,133
0
30
0
-14
90
d247f5cc81772dbae25e41899a09b6f15408c0a8
1,084
py
Python
wunderpy3/task_comments_endpoint.py
lwedwards3/dhp_sync
71527142509189915ed39f13975594dd9f837735
[ "MIT" ]
null
null
null
wunderpy3/task_comments_endpoint.py
lwedwards3/dhp_sync
71527142509189915ed39f13975594dd9f837735
[ "MIT" ]
null
null
null
wunderpy3/task_comments_endpoint.py
lwedwards3/dhp_sync
71527142509189915ed39f13975594dd9f837735
[ "MIT" ]
null
null
null
''' Encapsulates all tasks that can be run against the 'notes' endpoint '''
32.848485
105
0.675277
''' Encapsulates all tasks that can be run against the 'notes' endpoint ''' def get_task_comments(client, task_id): params = { 'task_id' : int(task_id) } response = client.authenticated_request(client.api.Endpoints.TASK_COMMENTS, params=params) assert response.status_code == 200 ...
0
0
0
0
0
916
0
0
91
10dad59116c1f790a9057cde007a47ef33d45728
603
py
Python
blogApp/migrations/0007_auto_20190703_1905.py
blogdevteam/Blog
93a4343261063fedd7a0ef2c60d4adb50c48e4ae
[ "MIT" ]
4
2019-07-07T15:09:54.000Z
2020-05-24T11:02:31.000Z
blogApp/migrations/0007_auto_20190703_1905.py
blogdevteam/Blog
93a4343261063fedd7a0ef2c60d4adb50c48e4ae
[ "MIT" ]
null
null
null
blogApp/migrations/0007_auto_20190703_1905.py
blogdevteam/Blog
93a4343261063fedd7a0ef2c60d4adb50c48e4ae
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-07-03 11:05
22.333333
62
0.552239
# Generated by Django 2.2.2 on 2019-07-03 11:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blogApp', '0006_delete_admin'), ] operations = [ migrations.RemoveField( model_name='user', name='image_height', ...
0
0
0
489
0
0
0
19
46
aa2b5855608326fd65f8812d1bf3493579925c53
1,010
py
Python
Patterns/NeilSayok.py
sanchit781/HACKTOBERFEST2021_PATTERN
c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2
[ "MIT" ]
229
2021-09-10T13:24:47.000Z
2022-03-18T16:54:29.000Z
Patterns/NeilSayok.py
swapnilnarad2000/HACKTOBERFEST2021_PATTERN
567f99bbc3d3bb9d03333422f5e1392251a41439
[ "MIT" ]
164
2021-09-10T12:04:39.000Z
2021-10-29T21:20:42.000Z
Patterns/NeilSayok.py
swapnilnarad2000/HACKTOBERFEST2021_PATTERN
567f99bbc3d3bb9d03333422f5e1392251a41439
[ "MIT" ]
567
2021-09-10T17:35:27.000Z
2021-12-11T12:45:43.000Z
''' Program to convert any Image to Pattern Input your Image URL or just press enter to see the default image. Created by Sayok Dey Majumder. Github User handle : NeilSayok Link to profile: https://github.com/NeilSayok ''' import cv2 import imutils import urllib.request import numpy as np url = input("Enter...
20.612245
88
0.646535
''' Program to convert any Image to Pattern Input your Image URL or just press enter to see the default image. Created by Sayok Dey Majumder. Github User handle : NeilSayok Link to profile: https://github.com/NeilSayok ''' import cv2 import imutils import urllib.request import numpy as np url = input("Enter...
0
0
0
0
0
0
0
0
0
d9aadf3cb80ac0f1700d00242c3a7ee13aeffba4
12,727
py
Python
poky/scripts/lib/buildstats.py
buildlinux/unityos
dcbe232d0589013d77a62c33959d6a69f9bfbc5e
[ "Apache-2.0" ]
53
2018-02-28T08:51:32.000Z
2022-02-28T06:49:23.000Z
scripts/lib/buildstats.py
nareshgbhat/luv-yocto
48976c54238dda0791e274927371265d259c0e5a
[ "MIT" ]
27
2018-01-25T00:26:53.000Z
2020-08-09T05:20:04.000Z
scripts/lib/buildstats.py
nareshgbhat/luv-yocto
48976c54238dda0791e274927371265d259c0e5a
[ "MIT" ]
51
2018-02-21T04:46:08.000Z
2022-03-02T04:20:41.000Z
# # Copyright (c) 2017, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it # under the terms and conditions of the GNU General Public License, # version 2, as published by the Free Software Foundation. # # This program is distributed in the hope it will be useful, but WITHOUT...
36.362857
95
0.552055
# # Copyright (c) 2017, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it # under the terms and conditions of the GNU General Public License, # version 2, as published by the Free Software Foundation. # # This program is distributed in the hope it will be useful, but WITHOUT...
0
5,580
0
4,565
0
0
0
-16
226
43f48d073e76e3341579b198e6e0cf6ab06adbf3
9,011
py
Python
pretrain_style_enc/style_enc_train.py
ShusenTang/WriteLikeYou
a335b02f806d846ba85a6f37f990eb8c2d57b3b6
[ "Apache-2.0" ]
9
2021-01-20T02:52:21.000Z
2022-01-12T02:55:06.000Z
pretrain_style_enc/style_enc_train.py
ShusenTang/WriteLikeYou
a335b02f806d846ba85a6f37f990eb8c2d57b3b6
[ "Apache-2.0" ]
2
2021-06-30T03:40:28.000Z
2022-02-10T09:20:48.000Z
pretrain_style_enc/style_enc_train.py
ShusenTang/WriteLikeYou
a335b02f806d846ba85a6f37f990eb8c2d57b3b6
[ "Apache-2.0" ]
2
2021-09-05T15:10:49.000Z
2021-11-02T11:08:22.000Z
import os import time import numpy as np import tensorflow as tf from model_utils import save_model NPZ_DIR = "../WriteLikeYouData/npz_relative_dist/CASIA_rdp4.0" assert os.path.exists(NPZ_DIR) print("NPZ_DIR:", NPZ_DIR) def train(sess, model, valid_model, train_dataloader, valid_dataloader, log_root): """Train...
37.861345
136
0.642215
import os import time import random import ast import json import argparse import numpy as np import tensorflow as tf from style_enc_model import Style_Enc_Model from data import CHN_Style_DataLoader from model_utils import save_model, reset_graph NPZ_DIR = "../WriteLikeYouData/npz_relative_dist/CASIA_rdp4.0" assert...
0
0
0
0
0
5,715
0
16
225
dfa14b2ec00f0ef5059bf740c1c8705161a50cb8
225
py
Python
LivroCap1/PagarAluguel.py
Lucas-py/Python-Basico02
802187be3dc948a743c5883b1d56f52163f7450d
[ "MIT" ]
null
null
null
LivroCap1/PagarAluguel.py
Lucas-py/Python-Basico02
802187be3dc948a743c5883b1d56f52163f7450d
[ "MIT" ]
null
null
null
LivroCap1/PagarAluguel.py
Lucas-py/Python-Basico02
802187be3dc948a743c5883b1d56f52163f7450d
[ "MIT" ]
null
null
null
km = float(input('digite km rodados: ')) dias = float(input('total de dias: ')) total_de_km = km * 0.15 total_de_dias = dias * 60 total_a_pagar = total_de_dias + total_de_km print(f'total a pagar e: {total_a_pagar} R$')
18.75
45
0.693333
km = float(input('digite km rodados: ')) dias = float(input('total de dias: ')) total_de_km = km * 0.15 total_de_dias = dias * 60 total_a_pagar = total_de_dias + total_de_km print(f'total a pagar e: {total_a_pagar} R$')
0
0
0
0
0
0
0
0
0
8a84843266300b75a474714ae72939c9085e1f51
31,763
py
Python
msgraph-cli-extensions/beta/usersfunctions_beta/azext_usersfunctions_beta/generated/custom.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/usersfunctions_beta/azext_usersfunctions_beta/generated/custom.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/usersfunctions_beta/azext_usersfunctions_beta/generated/custom.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause...
50.337559
120
0.412681
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause...
0
0
0
0
0
29,048
0
0
2,050
d5d2d48c33750918747531b040829ac393f0e6e7
4,203
py
Python
WTFUtils.py
Nierhain/WTFUtils
879eb5d9a8aea4f39524e3172f93e65f452d8819
[ "MIT" ]
null
null
null
WTFUtils.py
Nierhain/WTFUtils
879eb5d9a8aea4f39524e3172f93e65f452d8819
[ "MIT" ]
null
null
null
WTFUtils.py
Nierhain/WTFUtils
879eb5d9a8aea4f39524e3172f93e65f452d8819
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QApplication import sys if __name__ == "__main__": app = QApplication(sys.argv) widget = Application() window = MainWindow(widget) window.resize(800, 600) window.show() sys.exit(app.exec_())
34.170732
119
0.678563
from PySide2.QtCore import Qt, Slot, QDir, QSettings from PySide2.QtWidgets import QApplication, QMainWindow, QWidget, QAction, QPushButton, QFileDialog, QInputDialog, \ QLineEdit, QHBoxLayout, QVBoxLayout, QLabel import sys class Application(QWidget): pathToWTF = "_retail_/WTF/Account" def __init__(sel...
0
883
0
2,849
0
0
0
153
68
a7846b0d6899761dcc014e34e156d53e1610b615
4,461
py
Python
populationsim/steps/expand_households.py
bstabler/populationsim
872f7d26992e566c6fe75aed1cc14c8ad5f71d3a
[ "BSD-3-Clause" ]
null
null
null
populationsim/steps/expand_households.py
bstabler/populationsim
872f7d26992e566c6fe75aed1cc14c8ad5f71d3a
[ "BSD-3-Clause" ]
null
null
null
populationsim/steps/expand_households.py
bstabler/populationsim
872f7d26992e566c6fe75aed1cc14c8ad5f71d3a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division from __future__ import absolute_import # PopulationSim # See full license in LICENSE.txt. import logging logger = logging.getLogger(__name__)
39.131579
98
0.705447
from __future__ import division from __future__ import absolute_import # PopulationSim # See full license in LICENSE.txt. import logging import pandas as pd import numpy as np from activitysim.core import pipeline from activitysim.core import inject from activitysim.core.config import setting from .helper import ge...
0
3,987
0
0
0
0
0
94
203
489733bd7746a78851184e57f552e8596df27f96
15,828
py
Python
lib/dataset/jacquard.py
pia32/ssds.pytorch
e596ecea37942153d82122fb85ad9de3feeb2363
[ "MIT" ]
null
null
null
lib/dataset/jacquard.py
pia32/ssds.pytorch
e596ecea37942153d82122fb85ad9de3feeb2363
[ "MIT" ]
null
null
null
lib/dataset/jacquard.py
pia32/ssds.pytorch
e596ecea37942153d82122fb85ad9de3feeb2363
[ "MIT" ]
null
null
null
import os import sys import torch.utils.data as data import torchvision.transforms as transforms if sys.version_info[0] == 2: import xml.etree.cElementTree as ET else: VOC_CLASSES = ( '__background__', # always index 0 'aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car', 'cat', 'chair', 'c...
34.940397
144
0.538287
import os import pickle import os.path import sys import torch import torch.utils.data as data import torchvision.transforms as transforms from PIL import Image, ImageDraw, ImageFont import cv2 import numpy as np from operator import itemgetter from skimage.draw import polygon if sys.version_info[0] == 2: import x...
0
0
0
14,554
0
0
0
18
248
de9e357b7df8fea8daf14e222029818e3e784ecd
1,254
py
Python
recognition_plate_licenses.py
mezgoodle/opencv-tutorial
76f4e7f9002eb8f8e4879167aee670faa32c7b7c
[ "MIT" ]
1
2021-11-11T17:03:21.000Z
2021-11-11T17:03:21.000Z
recognition_plate_licenses.py
mezgoodle/opencv-tutorial
76f4e7f9002eb8f8e4879167aee670faa32c7b7c
[ "MIT" ]
1
2021-08-16T13:32:59.000Z
2021-08-17T09:25:13.000Z
recognition_plate_licenses.py
mezgoodle/opencv-tutorial
76f4e7f9002eb8f8e4879167aee670faa32c7b7c
[ "MIT" ]
null
null
null
import cv2 import numpy as np import imutils import easyocr from matplotlib import pyplot as plt image = cv2.imread('images/license.jpg') gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) image_filter = cv2.bilateralFilter(gray, 11, 15, 15) edges = cv2.Canny(image_filter, 30, 200) contours = cv2.findContours(edges.copy...
29.162791
98
0.707337
import cv2 import numpy as np import imutils import easyocr from matplotlib import pyplot as plt image = cv2.imread('images/license.jpg') gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) image_filter = cv2.bilateralFilter(gray, 11, 15, 15) edges = cv2.Canny(image_filter, 30, 200) contours = cv2.findContours(edges.copy...
0
0
0
0
0
0
0
0
0
4bef42c0e917472e68a30cc758cdbfa6221dd7f3
1,108
py
Python
Fibonacci.py
Carloselrecharlie/Fiboncacci_sequence
a28cc61b35775dee2489fd07d676348200377660
[ "Apache-2.0" ]
null
null
null
Fibonacci.py
Carloselrecharlie/Fiboncacci_sequence
a28cc61b35775dee2489fd07d676348200377660
[ "Apache-2.0" ]
null
null
null
Fibonacci.py
Carloselrecharlie/Fiboncacci_sequence
a28cc61b35775dee2489fd07d676348200377660
[ "Apache-2.0" ]
null
null
null
# Carlos Montes Parra # A program that displays a number from the Fibonacci sequence. The position # in the sequence is linked to the first and last letter of the user's name # and the addition of their Unicode values. # Adapted from one of Ian McLoughlin's lectures https://github.com/ianmcloughlin/python-fib/blob/m...
24.622222
143
0.700361
# Carlos Montes Parra # A program that displays a number from the Fibonacci sequence. The position # in the sequence is linked to the first and last letter of the user's name # and the addition of their Unicode values. # Adapted from one of Ian McLoughlin's lectures https://github.com/ianmcloughlin/python-fib/blob/m...
0
0
0
0
0
134
0
0
23
2255ee9719fac77ef535168206a055deff41e616
1,991
py
Python
results/get_xflickrco_many.py
danoneata/iglue
c4db972bc67f83f325a847093906b924503ccfc4
[ "MIT" ]
15
2022-01-28T03:08:46.000Z
2022-03-24T09:24:07.000Z
results/get_xflickrco_many.py
danoneata/iglue
c4db972bc67f83f325a847093906b924503ccfc4
[ "MIT" ]
4
2022-03-01T19:13:39.000Z
2022-03-27T08:21:46.000Z
results/get_xflickrco_many.py
danoneata/iglue
c4db972bc67f83f325a847093906b924503ccfc4
[ "MIT" ]
2
2022-02-05T17:04:42.000Z
2022-03-11T14:52:47.000Z
import os import argparse import pandas as pd TASK = "xflickrco" LANGS = ['de', 'ja'] SHOTS = [200, 500, 1000, 1500, '100x5', '200x5'] if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--models', type=str) parser.add_argument('--exp_dir', type=str) parser.add_argument...
38.288462
100
0.542943
import os import argparse import numpy as np import pandas as pd TASK = "xflickrco" LANGS = ['de', 'ja'] SHOTS = [200, 500, 1000, 1500, '100x5', '200x5'] if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--models', type=str) parser.add_argument('--exp_dir', type=str) ...
0
0
0
0
0
0
0
-3
22
4d2480f5a7dd624715e75d6e800820d479ea0649
241
py
Python
line_graph_2.py
kethan1/Scipy-Python
1f260ed12f0923dc044ee74a28d35cc1e6f6f821
[ "MIT" ]
null
null
null
line_graph_2.py
kethan1/Scipy-Python
1f260ed12f0923dc044ee74a28d35cc1e6f6f821
[ "MIT" ]
null
null
null
line_graph_2.py
kethan1/Scipy-Python
1f260ed12f0923dc044ee74a28d35cc1e6f6f821
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt plt.plot(list(index for index, y in enumerate(get_coords())), list(y for y in get_coords()), "y-.s") plt.show()
20.083333
100
0.643154
import matplotlib.pyplot as plt import numpy as np def get_coords(): for x in range(1, 11): yield x**2 - 3*x + 9 plt.plot(list(index for index, y in enumerate(get_coords())), list(y for y in get_coords()), "y-.s") plt.show()
0
0
0
0
52
0
0
-3
45
8cb03c84a3e95c4b0475a50e2e10afbcec7f2753
7,452
py
Python
afka/afk.py
FlorianLudwig/afka
4efaf7f461e0f79827b3c138059ff01cb7088ff6
[ "Apache-2.0" ]
3
2020-12-23T21:46:38.000Z
2021-01-11T19:23:57.000Z
afka/afk.py
FlorianLudwig/afka
4efaf7f461e0f79827b3c138059ff01cb7088ff6
[ "Apache-2.0" ]
null
null
null
afka/afk.py
FlorianLudwig/afka
4efaf7f461e0f79827b3c138059ff01cb7088ff6
[ "Apache-2.0" ]
null
null
null
"""Interface to the game""" import logging logging.basicConfig(level=logging.INFO) LOG = logging.getLogger(__name__) AVOID_DOUBLE_TAB_DELAY = 0.1
34.183486
97
0.621981
"""Interface to the game""" import anre import time import enum import logging import pkg_resources class MainScreen(enum.Enum): RANHORN = "ranhorn" DARK_FOREST = "dark_forest" CAMPAIGN = "campaign" HEROS = "heros" CHAT = "chat" class Screen(enum.Enum): MAIL = "mail" BAG = "bag" FR...
0
0
0
7,173
0
0
0
-31
159
b15752d7594b80ee0f099a7a48c0f2d982a29ae8
1,379
py
Python
glazier/lib/file_util_test.py
ofek/glazier
9f2a7ef98594fb61b5f3d368ea3c97294ed3a54b
[ "Apache-2.0" ]
null
null
null
glazier/lib/file_util_test.py
ofek/glazier
9f2a7ef98594fb61b5f3d368ea3c97294ed3a54b
[ "Apache-2.0" ]
null
null
null
glazier/lib/file_util_test.py
ofek/glazier
9f2a7ef98594fb61b5f3d368ea3c97294ed3a54b
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google 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 the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
34.475
74
0.750544
# Copyright 2016 Google 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 the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
0
0
0
567
0
0
0
27
68
8539f395aacbb82d340e074717bfd772bb0e27e1
16,779
py
Python
py/test/testing/acceptance_test.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
py/test/testing/acceptance_test.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
py/test/testing/acceptance_test.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
import py pydir = py.path.local(py.__file__).dirpath() pytestpath = pydir.join("bin", "py.test") EXPECTTIMEOUT=10.0
33.558
92
0.484236
import py pydir = py.path.local(py.__file__).dirpath() pytestpath = pydir.join("bin", "py.test") EXPECTTIMEOUT=10.0 class TestGeneralUsage: def test_config_error(self, testdir): testdir.makeconftest(""" class ConftestPlugin: def pytest_configure(self, config): ...
0
0
0
16,561
0
0
0
0
99
f8c6f04cdc8ad4766b5acd9b10988424b0f57589
698
py
Python
services/backend/thiamsu/migrations/0011_auto_20171124_1827.py
LKKTGB/thiamsu
f08d453c6b35c801c57f2501e42565da56900814
[ "MIT" ]
10
2020-08-25T08:57:36.000Z
2021-12-31T01:04:18.000Z
services/backend/thiamsu/migrations/0011_auto_20171124_1827.py
LKKTGB/thiamsu
f08d453c6b35c801c57f2501e42565da56900814
[ "MIT" ]
13
2020-04-26T08:41:30.000Z
2021-06-10T17:34:25.000Z
services/backend/thiamsu/migrations/0011_auto_20171124_1827.py
LKKTGB/thiamsu
f08d453c6b35c801c57f2501e42565da56900814
[ "MIT" ]
1
2020-09-06T17:54:13.000Z
2020-09-06T17:54:13.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-24 18:27 from __future__ import unicode_literals
33.238095
85
0.706304
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-24 18:27 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [("thiamsu", "0010_auto_20171124_1825")] operations = [ migrations.AlterUniqueTogether( ...
0
0
0
527
0
0
0
11
46
1194c5f3a7614e6cd136e63d1b858bc694041838
2,655
py
Python
main.py
lperepol/PhylumNematoda
7d173f5d4dd8ecd0707af0e05333bdce9a873348
[ "CC0-1.0" ]
null
null
null
main.py
lperepol/PhylumNematoda
7d173f5d4dd8ecd0707af0e05333bdce9a873348
[ "CC0-1.0" ]
null
null
null
main.py
lperepol/PhylumNematoda
7d173f5d4dd8ecd0707af0e05333bdce9a873348
[ "CC0-1.0" ]
null
null
null
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. # Press the green button in the gutter to run the script. if __name__ == '__main__': main() # See PyCharm help at htt...
45
131
0.695669
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. from graphviz import Digraph def draw(): g = Digraph('Nematoda Key', comment="FOO",filename = 'NematodaKey.gv')#, node_...
0
0
0
0
0
2,224
0
7
67
83dd62b4bbf11a4bce1f327715899650e6158812
9,611
py
Python
gen2-mjpeg-streaming/main.py
joey1442/depthai-experiments
de2843812c4232a462eb8ab1703e7fd904f6f7b8
[ "MIT" ]
1
2022-01-14T13:59:55.000Z
2022-01-14T13:59:55.000Z
gen2-mjpeg-streaming/main.py
joey1442/depthai-experiments
de2843812c4232a462eb8ab1703e7fd904f6f7b8
[ "MIT" ]
null
null
null
gen2-mjpeg-streaming/main.py
joey1442/depthai-experiments
de2843812c4232a462eb8ab1703e7fd904f6f7b8
[ "MIT" ]
2
2022-02-14T13:41:09.000Z
2022-03-03T00:46:21.000Z
import socketserver import threading import time import depthai as dai import numpy as np import cv2 HTTP_SERVER_PORT = 8090 # HTTPServer MJPEG # start TCP data server server_TCP = socketserver.TCPServer(('localhost', 8070), TCPServerRequest) th = threading.Thread(target=server_TCP.serve_forever) th.daemon = True...
39.879668
229
0.663511
import json import socketserver import threading import time from http.server import BaseHTTPRequestHandler, HTTPServer from io import BytesIO from pathlib import Path import sys from socketserver import ThreadingMixIn from time import sleep import depthai as dai import numpy as np import cv2 from PIL import Image impo...
0
0
0
1,577
0
2,346
0
38
289
90dd2a31d9dd176635170ae37809f983dea5ff2a
5,241
py
Python
rbi2/inte5c.py
spottedzebra/interpreter
b5b2a735d771fbfe2842e4c36176f2bc8c1761c3
[ "MIT" ]
2
2016-10-22T11:55:07.000Z
2020-07-23T20:56:15.000Z
rbi2/inte5c.py
mwhit74/interpreter
b5b2a735d771fbfe2842e4c36176f2bc8c1761c3
[ "MIT" ]
null
null
null
rbi2/inte5c.py
mwhit74/interpreter
b5b2a735d771fbfe2842e4c36176f2bc8c1761c3
[ "MIT" ]
null
null
null
import string from collections import namedtuple ADD, SUB, MUL, DIV, CHAR = 'ADD','SUB','MUL','DIV','CHAR' NUM, EOF, OPAR, CPAR, POW = 'NUM','EOF','OPAR','CPAR','POW' WHITESPACE = string.whitespace Token = namedtuple('Token',['token_type', 'token_value']) if __name__ == "__main__": main()
27.296875
68
0.526045
import string import pdb from collections import namedtuple import math ADD, SUB, MUL, DIV, CHAR = 'ADD','SUB','MUL','DIV','CHAR' NUM, EOF, OPAR, CPAR, POW = 'NUM','EOF','OPAR','CPAR','POW' WHITESPACE = string.whitespace Token = namedtuple('Token',['token_type', 'token_value']) class Lexer(object): def __init__...
0
0
0
4,605
0
245
0
-21
113
a40403bf837c949fa8d93de759b6d0eca24abb41
2,932
py
Python
pwf/response.py
victorkohler/pwf
67f3c5990a12ce95377e953f3a96487ebd8bdce6
[ "MIT" ]
1
2017-03-19T13:22:50.000Z
2017-03-19T13:22:50.000Z
pwf/response.py
victorkohler/pwf
67f3c5990a12ce95377e953f3a96487ebd8bdce6
[ "MIT" ]
null
null
null
pwf/response.py
victorkohler/pwf
67f3c5990a12ce95377e953f3a96487ebd8bdce6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Victor Kohler @since: date 17/12/2016 @version: 0.1 """
32.94382
77
0.608458
# -*- coding: utf-8 -*- """ @author: Victor Kohler @since: date 17/12/2016 @version: 0.1 """ import httplib import helpers import cookies class Response(object): """Used to set and return data back to the server. The Response object can be instantiated in one of two ways: 1. It is created manually in the...
0
0
0
2,770
0
0
0
-21
90
5f695683bffcbb1e02c0ef543557ed7122feba6d
5,208
py
Python
tests/algorithms/test_munchausen_dqn.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
75
2021-06-14T02:35:19.000Z
2022-03-23T04:30:24.000Z
tests/algorithms/test_munchausen_dqn.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
2
2021-12-17T08:46:54.000Z
2022-03-15T02:04:53.000Z
tests/algorithms/test_munchausen_dqn.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
3
2021-06-15T13:32:57.000Z
2022-03-25T16:53:14.000Z
# Copyright 2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # 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 requi...
35.189189
96
0.680108
# Copyright 2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # 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 requi...
0
0
0
4,221
0
0
0
79
161
1474b532b2f24c55f34fba1679b92a44ff8cc539
542
py
Python
jobs/migrations/0004_auto_20180425_1550.py
Manasranjanpati/Jobpost
e5654129538e70cedf8aafc65c1b0289a01535e5
[ "MIT" ]
20
2018-05-04T18:42:35.000Z
2021-03-18T07:15:12.000Z
src/jobs/migrations/0004_auto_20180425_1550.py
fleepgeek/django-jobsite
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
5
2020-02-11T22:22:33.000Z
2021-06-10T20:18:05.000Z
jobs/migrations/0004_auto_20180425_1550.py
Manasranjanpati/Jobpost
e5654129538e70cedf8aafc65c1b0289a01535e5
[ "MIT" ]
8
2018-05-04T19:03:23.000Z
2020-09-23T00:24:46.000Z
# Generated by Django 2.0.4 on 2018-04-25 14:50
23.565217
105
0.614391
# Generated by Django 2.0.4 on 2018-04-25 14:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('jobs', '0003_auto_20180425_1406'), ] operations = [ migrations.AlterField( model_name='job', ...
0
0
0
395
0
0
0
30
68
d7bd61d9ea55136b2311139359d783a5db5ccfee
8,769
py
Python
src/Communication/Client/app.py
aquino35/elevator_system_prototype
f4b45df0852a3b6e97a32a3c312a7cc3aacb2d22
[ "MIT" ]
null
null
null
src/Communication/Client/app.py
aquino35/elevator_system_prototype
f4b45df0852a3b6e97a32a3c312a7cc3aacb2d22
[ "MIT" ]
null
null
null
src/Communication/Client/app.py
aquino35/elevator_system_prototype
f4b45df0852a3b6e97a32a3c312a7cc3aacb2d22
[ "MIT" ]
null
null
null
#!/usr/bin/env python # from .app_macros import * #relative import - did not work properly
40.041096
145
0.68115
#!/usr/bin/env python # from .app_macros import * #relative import - did not work properly from app_macros import * class App(): def __init__(self,): """ App's constructor.""" self.init_app() def init_app(self): """ Initializes the App. """ try: self.setup_ap...
0
0
0
8,624
0
0
0
3
45
715654525e3b92ba082de887c45890f1f82a1f3f
1,973
py
Python
book/src/ch03/src/exceptions_2.py
zangyuchen2008/Clean-Code-in-Python-Second-Edition
0be2e41f6cf7322e12ec55d76135ff398df61b4a
[ "MIT" ]
133
2016-07-22T15:16:16.000Z
2022-03-29T22:39:40.000Z
book/src/ch03/src/exceptions_2.py
zangyuchen2008/Clean-Code-in-Python-Second-Edition
0be2e41f6cf7322e12ec55d76135ff398df61b4a
[ "MIT" ]
137
2021-01-05T11:21:04.000Z
2022-03-31T11:10:11.000Z
book/src/ch03/src/exceptions_2.py
zangyuchen2008/Clean-Code-in-Python-Second-Edition
0be2e41f6cf7322e12ec55d76135ff398df61b4a
[ "MIT" ]
41
2020-12-29T04:46:14.000Z
2022-03-20T22:36:17.000Z
"""Clean Code in Python - Chapter 3: General Traits of Good Code > Error Handling - Exceptions """ import logging import time from base import Connector logger = logging.getLogger(__name__) def connect_with_retry( connector: Connector, retry_n_times: int, retry_backoff: int = 5 ): """Tries to establish the...
30.353846
102
0.647745
"""Clean Code in Python - Chapter 3: General Traits of Good Code > Error Handling - Exceptions """ import logging import time from base import Connector, Event logger = logging.getLogger(__name__) def connect_with_retry( connector: Connector, retry_n_times: int, retry_backoff: int = 5 ): """Tries to establ...
0
0
0
696
0
0
0
7
23
8d79833ad772a85de78f2fa31627239a732baf79
373
py
Python
modules/tag/controllers.py
srcc-msu/job_statistics
74680a4e4c105ebcff94f089e07fcb44dbcc12d9
[ "MIT" ]
null
null
null
modules/tag/controllers.py
srcc-msu/job_statistics
74680a4e4c105ebcff94f089e07fcb44dbcc12d9
[ "MIT" ]
null
null
null
modules/tag/controllers.py
srcc-msu/job_statistics
74680a4e4c105ebcff94f089e07fcb44dbcc12d9
[ "MIT" ]
null
null
null
from flask import Blueprint tag_pages = Blueprint('tag', __name__ , template_folder='templates', static_folder='static')
23.3125
55
0.772118
from flask import Blueprint, render_template, Response from application.helpers import requires_auth from core.tag.models import Tag tag_pages = Blueprint('tag', __name__ , template_folder='templates', static_folder='static') @tag_pages.route("/list") @requires_auth def urls() -> Response: tags = Tag.query.all() ...
0
120
0
0
0
0
0
61
68
b57b9505c8bad95a1530bcc342608852f891d4ba
9,474
py
Python
retinaFace/widerface_evaluate.py
factzero/pytorch_jaguarface_examples
f248ff8899b8fe9d41a1e8ac095ed5b6688987ed
[ "MIT" ]
2
2020-04-09T05:48:35.000Z
2020-05-05T03:22:20.000Z
retinaFace/widerface_evaluate.py
factzero/pytorch_jaguarface_examples
f248ff8899b8fe9d41a1e8ac095ed5b6688987ed
[ "MIT" ]
1
2020-04-09T05:49:49.000Z
2020-04-09T05:49:49.000Z
retinaFace/widerface_evaluate.py
factzero/pytorch_jaguarface_examples
f248ff8899b8fe9d41a1e8ac095ed5b6688987ed
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import os import argparse import numpy as np from scipy.io import loadmat parser = argparse.ArgumentParser(description='widerface evaluate') parser.add_argument('-p', '--pred', default="./widerface_evaluate/widerface_txt/") parser.add_argument('-g', '--gt', default='./widerface_evaluate/ground...
32.895833
136
0.569559
# -*- coding: UTF-8 -*- import os import tqdm import pickle import argparse import numpy as np from scipy.io import loadmat parser = argparse.ArgumentParser(description='widerface evaluate') parser.add_argument('-p', '--pred', default="./widerface_evaluate/widerface_txt/") parser.add_argument('-g', '--gt', default='....
0
0
0
0
0
4,904
0
-18
182
b6ea7427c056f0c167209b3122696506b99b84b8
1,279
py
Python
scripts/appveyor/copydeps.py
seec-team/seec
4b92456011e86b70f9d88833a95c1f655a21cf1a
[ "MIT" ]
7
2018-06-25T12:06:13.000Z
2022-01-18T09:20:13.000Z
scripts/appveyor/copydeps.py
seec-team/seec
4b92456011e86b70f9d88833a95c1f655a21cf1a
[ "MIT" ]
20
2016-12-01T23:46:12.000Z
2019-08-11T02:41:04.000Z
scripts/appveyor/copydeps.py
seec-team/seec
4b92456011e86b70f9d88833a95c1f655a21cf1a
[ "MIT" ]
1
2020-10-19T03:20:05.000Z
2020-10-19T03:20:05.000Z
import os import subprocess import shutil OBJDUMP = "objdump" DLL_NAME_PREFIX = 'DLL Name:' paths = filter(lambda line: not "windows" in line.lower(), os.environ['PATH'].split(os.pathsep)) searchfiles = [f for f in os.listdir('.') if is_interesting_local_file(f)] while len(searchfiles): localfile =...
27.804348
78
0.684128
import os import subprocess import shutil OBJDUMP = "objdump" DLL_NAME_PREFIX = 'DLL Name:' paths = filter(lambda line: not "windows" in line.lower(), os.environ['PATH'].split(os.pathsep)) def find_in_path(file): for path in paths: fullpath = os.path.join(path, file) if os.path.isfile(fullpa...
0
0
0
0
279
300
0
0
92
d64d7f2f072d118598f9c54bda691695735052c8
2,320
py
Python
thirdparty/blender_autocomplete-master/2.82/bpy/ops/import_anim.py
Ray1184/HPMSBatch
3852710e7366361cb9e90f471ddccbbce5ffe8ee
[ "MIT" ]
null
null
null
thirdparty/blender_autocomplete-master/2.82/bpy/ops/import_anim.py
Ray1184/HPMSBatch
3852710e7366361cb9e90f471ddccbbce5ffe8ee
[ "MIT" ]
null
null
null
thirdparty/blender_autocomplete-master/2.82/bpy/ops/import_anim.py
Ray1184/HPMSBatch
3852710e7366361cb9e90f471ddccbbce5ffe8ee
[ "MIT" ]
null
null
null
import typing def bvh(filepath: str = "", filter_glob: str = "*.bvh", target: typing.Union[str, int] = 'ARMATURE', global_scale: float = 1.0, frame_start: int = 1, use_fps_scale: bool = False, update_scene_fps: bool = False, update_scene_duration: bool = False, ...
50.434783
468
0.702586
import sys import typing def bvh(filepath: str = "", filter_glob: str = "*.bvh", target: typing.Union[str, int] = 'ARMATURE', global_scale: float = 1.0, frame_start: int = 1, use_fps_scale: bool = False, update_scene_fps: bool = False, update_scene_duration: boo...
9
0
0
0
0
0
0
-11
22
eb863368aec5ab18e9d5732dca071219bfaab1e7
329
py
Python
1stRound/Easy/728 Self Dividing Numbers/Filter.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
2
2020-04-24T18:36:52.000Z
2020-04-25T00:15:57.000Z
1stRound/Easy/728 Self Dividing Numbers/Filter.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
1stRound/Easy/728 Self Dividing Numbers/Filter.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
left = 1 right = 22 p = Solution() print(p.selfDividingNumbers(left,right))
41.125
111
0.68997
class Solution(object): def selfDividingNumbers(self, left, right): is_self_dividing = lambda num: '0' not in str(num) and all(num % int(digit) == 0 for digit in str(num)) return list(filter(is_self_dividing, range(left, right + 1))) left = 1 right = 22 p = Solution() print(p.selfDividingNumbers(lef...
0
0
0
232
0
0
0
0
22
bbc8b38a1aa611247709f106104e2e943fb0e7bb
282
py
Python
pykin/utils/mesh_utils.py
jdj2261/pykin
da952b8ec023382b8a324d1095b0cfd675c7452b
[ "MIT" ]
14
2021-08-09T06:59:10.000Z
2022-03-09T13:05:46.000Z
pykin/utils/mesh_utils.py
jdj2261/pykin
da952b8ec023382b8a324d1095b0cfd675c7452b
[ "MIT" ]
null
null
null
pykin/utils/mesh_utils.py
jdj2261/pykin
da952b8ec023382b8a324d1095b0cfd675c7452b
[ "MIT" ]
4
2021-12-13T03:23:36.000Z
2022-03-09T11:34:29.000Z
import sys, os pykin_path = os.path.abspath(os.path.dirname(__file__)+"/../../" ) sys.path.append(pykin_path)
31.333333
66
0.712766
import sys, os pykin_path = os.path.abspath(os.path.dirname(__file__)+"/../../" ) sys.path.append(pykin_path) def get_mesh_path(mesh_path, robot_name): result_path = pykin_path + "/asset/urdf/" + robot_name +"/" result_path = result_path + mesh_path return result_path
0
0
0
0
0
149
0
0
23
6bcaa7b3aa19a28e3ff196de1285bf96eb39458a
703
py
Python
LeetCode/0007.py
summertian4/Practice
3328025f84669ebc9df6036e39ac98d0432adf8f
[ "MIT" ]
2
2019-09-18T01:34:31.000Z
2019-09-18T01:34:36.000Z
LeetCode/0007.py
summertian4/Practice
3328025f84669ebc9df6036e39ac98d0432adf8f
[ "MIT" ]
null
null
null
LeetCode/0007.py
summertian4/Practice
3328025f84669ebc9df6036e39ac98d0432adf8f
[ "MIT" ]
null
null
null
var x = x < 0 ? -x: x var arr: [Int] = Array<Int>() var result = 0 while true { // let temp = x % 10 arr.append(temp) x = x / 10 if x == 0 { break } } for (index, value) in arr.enume...
24.241379
75
0.415363
class Solution { func reverse(_ x: Int) -> Int { let sign = x < 0 ? -1: 1 var x = x < 0 ? -x: x var arr: [Int] = Array<Int>() var result = 0 while true { // 最后一位 let temp = x % 10 arr.append(temp) x = x / 10 if x ==...
12
0
0
64
0
0
0
0
22
9be7df6f7474ab0961eec64a862720dbadcace71
17,409
py
Python
my_pybullet_envs/laikago_env_v4.py
jyf588/SimGAN
23283d7b5629f1653567b2437bb28aac1cc17169
[ "Apache-2.0" ]
30
2021-06-16T23:28:58.000Z
2022-03-23T17:20:58.000Z
my_pybullet_envs/laikago_env_v4.py
jyf588/SimGAN
23283d7b5629f1653567b2437bb28aac1cc17169
[ "Apache-2.0" ]
1
2021-06-25T09:21:29.000Z
2021-08-11T23:14:14.000Z
my_pybullet_envs/laikago_env_v4.py
jyf588/SimGAN
23283d7b5629f1653567b2437bb28aac1cc17169
[ "Apache-2.0" ]
8
2021-06-19T12:51:50.000Z
2021-12-23T08:31:10.000Z
# Copyright 2020 Google LLC and Stanford University # # 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 l...
40.392111
108
0.574473
# Copyright 2020 Google LLC and Stanford University # # 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...
4
0
0
16,410
0
0
0
45
201
afa91199f0a53f11d7bdc9266405cc14c87b8d2e
6,411
py
Python
Contest/2019CUMCM/code/model_airline.py
iydon/homework
253d4746528ef62d33eba1de0b90dcb17ec587ed
[ "MIT" ]
8
2019-10-20T08:18:54.000Z
2021-07-11T12:14:56.000Z
Contest/2019CUMCM/code/model_airline.py
iydon/homework
253d4746528ef62d33eba1de0b90dcb17ec587ed
[ "MIT" ]
2
2022-01-13T03:04:10.000Z
2022-03-12T00:49:10.000Z
Contest/2019CUMCM/code/model_airline.py
iydon/homework
253d4746528ef62d33eba1de0b90dcb17ec587ed
[ "MIT" ]
2
2019-11-02T05:46:01.000Z
2020-03-12T23:11:28.000Z
# -*- encode: utf-8 -*- from settings import time_limit, time_limit, distance_to_weights # Phantom class if __name__ == '__main__': from data import cities airline = Airline(cities, time_limit, distance_to_weights)
27.515021
97
0.519108
# -*- encode: utf-8 -*- from typing import List, Tuple, Callable import numpy as np from models import Aircraft, Airport, City, Time from settings import time_limit, time_limit, distance_to_weights # Phantom class class Airline: pass class Symmetric: pass class Airline: def __init__(self, cities:List[City], ti...
0
155
0
5,825
0
0
0
43
157
6c05ac6238b169fb230cd4810727fed0baba80f5
1,032
py
Python
setup.py
nokia-wroclaw/innovativeproject-django-sourcerer
955f360e98826c736ae6b2072e304a26ca3fffb3
[ "MIT" ]
2
2020-03-11T10:54:43.000Z
2020-05-22T11:05:53.000Z
setup.py
nokia-wroclaw/innovativeproject-django-sourcerer
955f360e98826c736ae6b2072e304a26ca3fffb3
[ "MIT" ]
8
2020-03-31T14:15:44.000Z
2021-09-22T18:42:44.000Z
setup.py
nokia-wroclaw/innovativeproject-django-sourcerer
955f360e98826c736ae6b2072e304a26ca3fffb3
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='django_sourcerer', version='2.1', author='Cem Arslan, Kadir Kocak, Ugur Dogus Hamarat, Cagatay Em, Farid Murmadov, Burak Karaca', author_email="cmarslan06@gmail.com", description="Django ap...
33.290323
99
0.630814
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='django_sourcerer', version='2.1', author='Cem Arslan, Kadir Kocak, Ugur Dogus Hamarat, Cagatay Em, Farid Murmadov, Burak Karaca', author_email="cmarslan06@gmail.com", description="Django ap...
0
0
0
0
0
0
0
0
0
43461cd5e70eb68bd540af320f66020a19b0538a
5,187
py
Python
stackimpact/reporters/cpu_reporter.py
cielo24/stackimpact-python
ac98f0c4d88ce31ae4baf54f36fb76f20cedf852
[ "BSD-3-Clause" ]
null
null
null
stackimpact/reporters/cpu_reporter.py
cielo24/stackimpact-python
ac98f0c4d88ce31ae4baf54f36fb76f20cedf852
[ "BSD-3-Clause" ]
null
null
null
stackimpact/reporters/cpu_reporter.py
cielo24/stackimpact-python
ac98f0c4d88ce31ae4baf54f36fb76f20cedf852
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division
27.737968
145
0.613071
from __future__ import division import os import sys import time import threading import re import signal from ..runtime import min_version, runtime_info from ..profiler_scheduler import ProfilerScheduler from ..metric import Metric from ..metric import Breakdown from ..frame import Frame class CPUReporter: SA...
0
0
0
4,870
0
0
0
16
267
9f072760e795b01d4f2896bcd8e1d73470431328
8,845
py
Python
survol/class_type_all.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/class_type_all.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/class_type_all.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Generalised class: Displays data sources for a class """ try: wbemOk = True except ImportError: wbemOk = False # Now, adds the base classes of this one, at least one one level. # Adds the list of base classes. Returns the list of pairs (name node), # so it can be matched againt another in...
38.290043
157
0.758508
#!/usr/bin/env python """ Generalised class: Displays data sources for a class """ import os import sys import lib_util import lib_common try: import lib_wbem wbemOk = True except ImportError: wbemOk = False import lib_wmi from lib_properties import pc # Now, adds the base classes of this one, at least one one le...
0
0
0
0
0
8,003
0
-38
313
ea058d7fe6c4f36a7c2cc59a5c7433969c008b04
2,022
py
Python
main.py
vlameiras/poe-trade-scraper
bffed681973045fb0e555fe5cfb0491bacb36b74
[ "MIT" ]
8
2017-08-23T09:11:22.000Z
2021-12-10T10:28:32.000Z
main.py
vlameiras/poe-trade-scraper
bffed681973045fb0e555fe5cfb0491bacb36b74
[ "MIT" ]
1
2018-01-02T09:25:39.000Z
2018-01-02T09:25:39.000Z
main.py
vlameiras/poe-trade-scraper
bffed681973045fb0e555fe5cfb0491bacb36b74
[ "MIT" ]
3
2018-01-01T14:36:29.000Z
2020-01-26T22:31:41.000Z
import websocket import settings new_id = -1 poe_trade_url = None if __name__ == "__main__": poe_trade_url_ini = input("Please enter your poe.trade URL: ") poe_trade_url_split = poe_trade_url_ini.split("search/", 1)[1] poe_trade_url = poe_trade_url_split.split("/live",1)[0] websocket.enableTrace(Fal...
39.647059
308
0.602868
import websocket import threading import time import requests from bs4 import BeautifulSoup import pygame import pyperclip import settings new_id = -1 poe_trade_url = None def on_message(ws, message): global new_id global poe_trade_url payload = {'id': new_id} r = requests.post(settings.SEARCH_URL +...
0
0
0
0
0
1,281
0
-26
201
d28096553f4f5e1996a89c9a8ad796da77af7e82
6,325
py
Python
lib/surface/storage/buckets/notifications/create.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/storage/buckets/notifications/create.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/storage/buckets/notifications/create.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. 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 requir...
40.806452
100
0.66087
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. 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 requir...
0
5,451
0
0
0
0
0
13
69
6ae278c26882f05c348f1ec4016ef5b9ac08e441
1,751
py
Python
manager/logger.py
PlatonaM/lopco-job-manager
3286b1d6ac0c322ef525dcde6a5f026db0e5d2e3
[ "Apache-2.0" ]
null
null
null
manager/logger.py
PlatonaM/lopco-job-manager
3286b1d6ac0c322ef525dcde6a5f026db0e5d2e3
[ "Apache-2.0" ]
null
null
null
manager/logger.py
PlatonaM/lopco-job-manager
3286b1d6ac0c322ef525dcde6a5f026db0e5d2e3
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 InfAI (CC SES) 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...
25.014286
75
0.728726
""" Copyright 2020 InfAI (CC SES) 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...
0
0
0
17
0
226
0
0
69
3d036d04b9c1f69c6e1283cf42a7ebda73420377
2,976
py
Python
tests/sqpdfo_swap_in_Y_test.py
DLR-SC/sqpdfo
ae3213764fdd8d0d0a05bcc3d13be63d811a0a37
[ "BSD-3-Clause" ]
10
2020-03-03T21:56:01.000Z
2022-03-29T08:36:01.000Z
tests/sqpdfo_swap_in_Y_test.py
DLR-SC/sqpdfo
ae3213764fdd8d0d0a05bcc3d13be63d811a0a37
[ "BSD-3-Clause" ]
6
2020-03-03T22:02:41.000Z
2021-11-18T12:31:00.000Z
tests/sqpdfo_swap_in_Y_test.py
DLR-SC/sqpdfo
ae3213764fdd8d0d0a05bcc3d13be63d811a0a37
[ "BSD-3-Clause" ]
3
2021-02-17T14:43:30.000Z
2022-03-05T08:46:48.000Z
# -*- coding: utf-8 -*- """ Created on Fri Nov 14 18:53:38 2014 % TESTS : % Y = [ 0 1 0 2 1 0 ; 0 0 1 0 0.01 2 ]; ind_Y = [1 2 3 4 5 6]; % fY = [2 5 1 3 2 6]; % [QZ,RZ,xbase,scale] = bcdfo_build_QR_of_Y( Y, 0, 0, 1, 1, 1e15 ); % Z = QZ*RZ; % [ QZ, RZ, Y, xbase, scale ] = sqpdfo_swap_in_Y( 1, 3, QZ, RZ, Y, ind_Y,...
36.292683
126
0.540659
# -*- coding: utf-8 -*- """ Created on Fri Nov 14 18:53:38 2014 % TESTS : % Y = [ 0 1 0 2 1 0 ; 0 0 1 0 0.01 2 ]; ind_Y = [1 2 3 4 5 6]; % fY = [2 5 1 3 2 6]; % [QZ,RZ,xbase,scale] = bcdfo_build_QR_of_Y( Y, 0, 0, 1, 1, 1e15 ); % Z = QZ*RZ; % [ QZ, RZ, Y, xbase, scale ] = sqpdfo_swap_in_Y( 1, 3, QZ, RZ, Y, ind_Y,...
0
0
0
1,713
0
0
0
37
89
09e880a9992ededfaab7b1da096edc33e40dc3f1
317
py
Python
vacation/users/migrations/0003_remove_user_gender.py
mash-up-kr/vacation-homework-backend
21698b843e027f290c5289e4b663d158a8e67386
[ "MIT" ]
null
null
null
vacation/users/migrations/0003_remove_user_gender.py
mash-up-kr/vacation-homework-backend
21698b843e027f290c5289e4b663d158a8e67386
[ "MIT" ]
4
2020-06-05T18:24:33.000Z
2021-09-08T00:01:00.000Z
vacation/users/migrations/0003_remove_user_gender.py
mash-up-kr/vacation-homework-backend
21698b843e027f290c5289e4b663d158a8e67386
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-30 15:59
17.611111
47
0.577287
# Generated by Django 2.0.6 on 2018-06-30 15:59 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0002_user_gender'), ] operations = [ migrations.RemoveField( model_name='user', name='gender', ), ]
0
0
0
211
0
0
0
11
46
603b464d2e852e6e348b25c0234d6f9425151939
1,379
py
Python
models/component/word_embeding.py
wengithz/t-wji
482c5a435a72dbf88fdfab385f74d4f42f4afec1
[ "MIT" ]
246
2019-07-03T12:03:33.000Z
2022-03-19T08:43:38.000Z
models/component/word_embeding.py
wengithz/t-wji
482c5a435a72dbf88fdfab385f74d4f42f4afec1
[ "MIT" ]
3
2019-08-19T02:23:24.000Z
2020-04-20T07:45:03.000Z
models/component/word_embeding.py
wengithz/t-wji
482c5a435a72dbf88fdfab385f74d4f42f4afec1
[ "MIT" ]
70
2019-07-03T13:29:11.000Z
2022-03-01T06:49:08.000Z
''' Filename: word_embeding.py Project: models File Created: Sunday, 2nd December 2018 2:38:45 pm Author: xiaofeng (sxf1052566766@163.com) -------------------------- Last Modified: Sunday, 2nd December 2018 2:39:14 pm Modified By: xiaofeng (sxf1052566766@163.com) --------------------------- : 2018.06 - 2018 . ''' imp...
31.340909
86
0.686004
''' Filename: word_embeding.py Project: models File Created: Sunday, 2nd December 2018 2:38:45 pm Author: xiaofeng (sxf1052566766@163.com) -------------------------- Last Modified: Sunday, 2nd December 2018 2:39:14 pm Modified By: xiaofeng (sxf1052566766@163.com) --------------------------- : 2018.06 - 2018 . ''' imp...
0
0
0
0
0
231
0
0
26
3cff875996b3bcdf6d5415c896d96f0355772caf
1,844
py
Python
buttons.py
Acidburn0zzz/difio
1485f657f099f6a8401ad7cfe155f524a8a9a422
[ "Apache-2.0" ]
4
2016-06-01T12:48:54.000Z
2021-08-19T22:21:47.000Z
buttons.py
Acidburn0zzz/difio
1485f657f099f6a8401ad7cfe155f524a8a9a422
[ "Apache-2.0" ]
3
2016-01-20T17:06:45.000Z
2016-01-20T17:07:06.000Z
buttons.py
Acidburn0zzz/difio
1485f657f099f6a8401ad7cfe155f524a8a9a422
[ "Apache-2.0" ]
2
2015-01-21T21:30:19.000Z
2017-08-08T06:03:02.000Z
################################################################################ # # Originally based on http://djangosnippets.org/snippets/1016/ # with small modifications # ################################################################################
36.156863
105
0.550976
################################################################################ # # Originally based on http://djangosnippets.org/snippets/1016/ # with small modifications # ################################################################################ import re from django.contrib import admin from django.con...
0
0
0
1,428
0
0
0
43
112
50628d0ffe8f1b285b5e647d287ada17e06654dc
3,956
py
Python
cms/tests/placeholder.py
DrMeers/django-cms-2.0
d563d912c99f0c138a66d99829d8d0133226894e
[ "BSD-3-Clause" ]
4
2016-05-07T11:50:25.000Z
2017-12-04T10:30:20.000Z
cms/tests/placeholder.py
DrMeers/django-cms-2.0
d563d912c99f0c138a66d99829d8d0133226894e
[ "BSD-3-Clause" ]
1
2015-06-08T08:27:11.000Z
2015-06-08T10:40:27.000Z
cms/tests/placeholder.py
DrMeers/django-cms-2.0
d563d912c99f0c138a66d99829d8d0133226894e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*-
41.642105
161
0.674924
# -*- coding: utf-8 -*- from django.conf import settings from cms.tests.base import CMSTestCase from cms.utils.plugins import get_placeholders from cms.exceptions import DuplicatePlaceholderWarning import sys import warnings class _Warning(object): def __init__(self, message, category, filename, lineno): s...
0
0
0
2,514
0
1,146
0
69
201
4faa38226dfbda6e0fa802c404b9b102b7bac67d
1,071
py
Python
src/mecab.py
chimerast/scdv-docker
c833c02f5f63ca9cc3e1ccc45b75e597fc5503a8
[ "Apache-2.0" ]
null
null
null
src/mecab.py
chimerast/scdv-docker
c833c02f5f63ca9cc3e1ccc45b75e597fc5503a8
[ "Apache-2.0" ]
null
null
null
src/mecab.py
chimerast/scdv-docker
c833c02f5f63ca9cc3e1ccc45b75e597fc5503a8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- Coding: utf-8 -*-
24.340909
134
0.568627
#!/usr/bin/env python3 # -*- Coding: utf-8 -*- import subprocess from subprocess import PIPE class MeCab: def __init__(self, command='mecab'): try: self.process = subprocess.Popen([command, '-b', '81920', '-F', '%t\t%f[6]\n'], stdin=PIPE, stdout=PIPE, universal_newlines=True) self.stdin = self.proce...
0
0
0
954
0
0
0
2
68
cdb0fe98f9840947e902a931457917ab07a33644
2,452
py
Python
dashboard/app/helpers/helpers_mongodb.py
rodriguesfas/ipm
596382123c3d45bde6410672692d1f59ec2d734a
[ "MIT" ]
null
null
null
dashboard/app/helpers/helpers_mongodb.py
rodriguesfas/ipm
596382123c3d45bde6410672692d1f59ec2d734a
[ "MIT" ]
null
null
null
dashboard/app/helpers/helpers_mongodb.py
rodriguesfas/ipm
596382123c3d45bde6410672692d1f59ec2d734a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-
27.863636
79
0.539152
#!/usr/bin/env python # -*- coding: utf-8 -*- from config import database from pymongo import MongoClient from mongoengine import * class ConnectMongoDB(object): def __init__(self): self.client = MongoClient(database.DB['hostname'], database.DB['port']) self.db = self.client[database.DB['databa...
0
0
0
2,294
0
0
0
20
91
5bd3c0b18eba7661b447a339dafcedcbb8ede1bd
349
py
Python
archive/nucleus_encoder/aux_src/make_img_list.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
23
2018-08-23T03:58:37.000Z
2022-02-23T05:04:54.000Z
archive/nucleus_encoder/aux_src/make_img_list.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
archive/nucleus_encoder/aux_src/make_img_list.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import glob folder = '/data03/shared/lehhou/lym_project/svs_tiles/TCGA-38-4629-01Z-00-DX1.d00cc280-5370-4b9f-9655-6c35deb94647.svs/'; outfile = folder + 'list.txt'; filevar = open(outfile, 'w'); filelist = []; for filename in glob.glob(folder + '/*.png'): name = filename[len(folder):-4]; filevar.write("%s\n...
23.266667
121
0.676218
import glob folder = '/data03/shared/lehhou/lym_project/svs_tiles/TCGA-38-4629-01Z-00-DX1.d00cc280-5370-4b9f-9655-6c35deb94647.svs/'; outfile = folder + 'list.txt'; filevar = open(outfile, 'w'); filelist = []; for filename in glob.glob(folder + '/*.png'): name = filename[len(folder):-4]; filevar.write("%s\n...
0
0
0
0
0
0
0
0
0
ef439acb79cc5b2c099076332fae80714cbee0b5
9,953
py
Python
spotdl/metadata/providers/youtube.py
Sigill/spotify-downloader
f65f2f97a10e46b7528f8a1666be30eac6de8a73
[ "MIT" ]
null
null
null
spotdl/metadata/providers/youtube.py
Sigill/spotify-downloader
f65f2f97a10e46b7528f8a1666be30eac6de8a73
[ "MIT" ]
null
null
null
spotdl/metadata/providers/youtube.py
Sigill/spotify-downloader
f65f2f97a10e46b7528f8a1666be30eac6de8a73
[ "MIT" ]
1
2021-01-27T04:31:16.000Z
2021-01-27T04:31:16.000Z
import spotdl.util import spotdl.patch spotdl.patch.youtube.apply_patches() import logging logger = logging.getLogger(__name__) BASE_SEARCH_URL = "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q={}" HEADERS = [('Range', 'bytes=0-'),]
34.439446
95
0.589671
import pytube from bs4 import BeautifulSoup import urllib.request import threading from collections.abc import Sequence from spotdl.metadata import StreamsBase from spotdl.metadata import ProviderBase from spotdl.metadata.exceptions import YouTubeMetadataNotFoundError import spotdl.util import spotdl.patch spotdl.p...
0
0
0
9,342
0
0
0
93
270
49f9d7712dcdc05ba93f2647b7aa24930e8eb505
3,029
py
Python
distribution/scripts/cloudformation/create-template.py
menuka94/performance-common
93a412656baddc89d9643950b252b33e4b5473f4
[ "Apache-2.0" ]
null
null
null
distribution/scripts/cloudformation/create-template.py
menuka94/performance-common
93a412656baddc89d9643950b252b33e4b5473f4
[ "Apache-2.0" ]
null
null
null
distribution/scripts/cloudformation/create-template.py
menuka94/performance-common
93a412656baddc89d9643950b252b33e4b5473f4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2018, WSO2 Inc. (http://wso2.org) All Rights Reserved. # # WSO2 Inc. licenses this file to you 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 ...
37.8625
92
0.648729
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2018, WSO2 Inc. (http://wso2.org) All Rights Reserved. # # WSO2 Inc. licenses this file to you 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 ...
0
0
0
255
0
1,449
0
-27
136
43c3b24d757b1797e1e2876663de7edbab7410d5
6,716
py
Python
report/is_stock_move.py
tonygalmiche/is_plastigray
10669dda26f5a8653371a52798f41fdc805c61f2
[ "MIT" ]
1
2018-12-29T08:34:25.000Z
2018-12-29T08:34:25.000Z
report/is_stock_move.py
tonygalmiche/is_plastigray
10669dda26f5a8653371a52798f41fdc805c61f2
[ "MIT" ]
null
null
null
report/is_stock_move.py
tonygalmiche/is_plastigray
10669dda26f5a8653371a52798f41fdc805c61f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
48.316547
106
0.453395
# -*- coding: utf-8 -*- from openerp import tools from openerp import models,fields,api from openerp.tools.translate import _ import datetime import pytz class is_stock_move(models.Model): _name='is.stock.move' _order='date desc' _auto = False move_id = fields.Many2one('stoc...
8
467
0
6,050
0
0
0
20
142
f4678d3f7a4d0345c9ea15387eb70169f82ab90a
1,168
py
Python
corehq/motech/const.py
shyamkumarlchauhan/commcare-hq
99df931bcf56e9fbe15d8fcb0dc98b5a3957fb48
[ "BSD-3-Clause" ]
null
null
null
corehq/motech/const.py
shyamkumarlchauhan/commcare-hq
99df931bcf56e9fbe15d8fcb0dc98b5a3957fb48
[ "BSD-3-Clause" ]
null
null
null
corehq/motech/const.py
shyamkumarlchauhan/commcare-hq
99df931bcf56e9fbe15d8fcb0dc98b5a3957fb48
[ "BSD-3-Clause" ]
null
null
null
BASIC_AUTH = "basic" DIGEST_AUTH = "digest" OAUTH1 = "oauth1" BEARER_AUTH = "bearer" PASSWORD_PLACEHOLDER = '*' * 16 CONNECT_TIMEOUT = 60 # If any remote service does not respond within 5 minutes, time out. # (Some OpenMRS reports can take a long time. Cut them a little slack, # but not too much.) READ_TIMEOUT = 5 * ...
25.955556
76
0.78339
BASIC_AUTH = "basic" DIGEST_AUTH = "digest" OAUTH1 = "oauth1" BEARER_AUTH = "bearer" PASSWORD_PLACEHOLDER = '*' * 16 CONNECT_TIMEOUT = 60 # If any remote service does not respond within 5 minutes, time out. # (Some OpenMRS reports can take a long time. Cut them a little slack, # but not too much.) READ_TIMEOUT = 5 * ...
0
0
0
0
0
0
0
0
0
b2c0f702a792a12b6aa85cd23ca049cb59be36d1
300
py
Python
exercicio74Corrigido.py
adrianomdantas/Exercicios-Python
ef5025a186615258aec0cf35ed839fe49577d983
[ "MIT" ]
null
null
null
exercicio74Corrigido.py
adrianomdantas/Exercicios-Python
ef5025a186615258aec0cf35ed839fe49577d983
[ "MIT" ]
null
null
null
exercicio74Corrigido.py
adrianomdantas/Exercicios-Python
ef5025a186615258aec0cf35ed839fe49577d983
[ "MIT" ]
null
null
null
from random import randint numeros = (randint(1, 10), randint(1, 10), randint(1, 10), randint(1, 10), randint(1, 10)) print('os numeros sorteados so: ', end='') for n in numeros: print(f'{n}', end=' ') print(f'\no maior numero foi {max(numeros)}') print(f'O menor numero foi {min(numeros)}')
27.272727
90
0.65
from random import randint numeros = (randint(1, 10), randint(1, 10), randint(1, 10), randint(1, 10), randint(1, 10)) print('os numeros sorteados são: ', end='') for n in numeros: print(f'{n}', end=' ') print(f'\no maior numero foi {max(numeros)}') print(f'O menor numero foi {min(numeros)}')
2
0
0
0
0
0
0
0
0
3ef1b744c3868ea130c204e25377d5aac59213f7
4,657
py
Python
bracket/get_training_data.py
henry-li-06/march-madness-bracket
17b4eb83128153a8406893547c70198114f82636
[ "MIT" ]
null
null
null
bracket/get_training_data.py
henry-li-06/march-madness-bracket
17b4eb83128153a8406893547c70198114f82636
[ "MIT" ]
null
null
null
bracket/get_training_data.py
henry-li-06/march-madness-bracket
17b4eb83128153a8406893547c70198114f82636
[ "MIT" ]
null
null
null
import pandas as pd import scrape_data import csv team_data = pd.read_csv('data/cbb19.csv') team_data = team_data.drop(columns=['POSTSEASON', 'SEED']) t = list(team_data['TEAM']) all_games = scrape_data.all_games winners = scrape_data.winners name_mappings = {'UNC': 'North Carolina', 'Citadel': 'The Citadel',...
50.075269
121
0.535538
import numpy as np import pandas as pd import scrape_data import csv team_data = pd.read_csv('data/cbb19.csv') team_data = team_data.drop(columns=['POSTSEASON', 'SEED']) t = list(team_data['TEAM']) all_games = scrape_data.all_games winners = scrape_data.winners name_mappings = {'UNC': 'North Carolina', 'Cita...
0
0
0
0
0
0
0
-3
23
59059b9c66827dca12ada6526a8b904010258d99
17,152
py
Python
Alpha/calendarHelperFun.py
timchenggu123/BitTimeScheduler
10a90d7a6189b8e17ee736c662f8226041bfd0c8
[ "MIT" ]
1
2019-01-23T16:40:52.000Z
2019-01-23T16:40:52.000Z
Alpha/calendarHelperFun.py
timchenggu123/BitTimeScheduler
10a90d7a6189b8e17ee736c662f8226041bfd0c8
[ "MIT" ]
null
null
null
Alpha/calendarHelperFun.py
timchenggu123/BitTimeScheduler
10a90d7a6189b8e17ee736c662f8226041bfd0c8
[ "MIT" ]
null
null
null
import datetime def getEventStartEnd(event): '''returns start time & end time as datetime objects from an event struct''' start_string = event['start'].get('dateTime',event['start'].get('date')) start_time = str2time(start_string) end_string = event['end'].get('dateTime',0) whol...
37.531729
194
0.626341
import datetime, pytz def str2time(string): if len(string) > 10: nchar = len(string) string = string[0:nchar -6] # -6 to get ride of the -05:00 trailler timeformat = ('%Y-%m-%dT%H:%M:%S') dt = datetime.datetime.strptime(string, timeformat) else: timeformat...
0
0
0
0
0
9,919
0
6
368
2e5ee35497095379e45d8e54fbc6320972173c3a
771
py
Python
backend/base/migrations/0005_cafe_num_reviews_cafe_rating_review_name.py
ivanbaug/cafe-wifi
49b240c460d73f7f4602cb78e230bf12c160604d
[ "MIT" ]
null
null
null
backend/base/migrations/0005_cafe_num_reviews_cafe_rating_review_name.py
ivanbaug/cafe-wifi
49b240c460d73f7f4602cb78e230bf12c160604d
[ "MIT" ]
null
null
null
backend/base/migrations/0005_cafe_num_reviews_cafe_rating_review_name.py
ivanbaug/cafe-wifi
49b240c460d73f7f4602cb78e230bf12c160604d
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-19 16:35
26.586207
93
0.577173
# Generated by Django 4.0.2 on 2022-02-19 16:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0004_alter_cafe_img_url'), ] operations = [ migrations.AddField( model_name='cafe', name='num_reviews', ...
0
0
0
657
0
0
0
19
46
bd00b88b455ab668abae3b2ddac0269677e5a2b3
6,003
py
Python
api_doc/components/models/function.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
27
2018-06-04T19:11:42.000Z
2022-02-23T22:46:39.000Z
api_doc/components/models/function.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
7
2018-06-09T15:27:51.000Z
2021-03-11T20:00:35.000Z
api_doc/components/models/function.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
3
2018-07-29T10:20:02.000Z
2021-11-18T19:55:07.000Z
# coding: mixt from ... import datatypes
34.901163
124
0.463935
# coding: mixt from mixt import Element, NotProvided, Required, html from mixt.contrib.css import css_vars from ... import datatypes from ..doc import DocPart, DocHeader from ..generic import Details from . import Code, DocString, NamedValue, UnnamedValue class Function(Element): class PropTypes: id_p...
3
1,249
0
4,469
0
0
0
105
136
52153a5e56328e72603ec68c59cbb35fba1107f2
1,697
py
Python
aoc_cas/aoc2021/day17.py
TedCassirer/advent-of-code
fb87dfdbb48b44f864337750aa58a809dcf72392
[ "MIT" ]
1
2020-11-30T19:17:50.000Z
2020-11-30T19:17:50.000Z
aoc_cas/aoc2021/day17.py
TedCassirer/advent-of-code
fb87dfdbb48b44f864337750aa58a809dcf72392
[ "MIT" ]
null
null
null
aoc_cas/aoc2021/day17.py
TedCassirer/advent-of-code
fb87dfdbb48b44f864337750aa58a809dcf72392
[ "MIT" ]
null
null
null
if __name__ == "__main__": from aocd import get_data data = get_data(year=2021, day=17) print(part1(data)) print(part2(data))
22.932432
47
0.437242
from math import sqrt, ceil def getSquare(data): _, coords = data.split(": ") x, y = coords.split(", ") y, x = y[2:], x[2:] y2, y1 = [-int(n) for n in y.split("..")] x1, x2 = map(int, x.split("..")) return y1, x1, y2, x2 def trajectory(vy, vx): y, x = 0, 0 yield y, x while True:...
0
0
0
0
196
1,207
0
6
137
2be8e7d6b997d8dd186e251e784db3b07f6ff9d5
4,992
py
Python
posts/migrations/0001_initial.py
ant-willow/yatube-pub
a42e4dd7fd353c40ccbc314841a04e6144900bc3
[ "MIT" ]
null
null
null
posts/migrations/0001_initial.py
ant-willow/yatube-pub
a42e4dd7fd353c40ccbc314841a04e6144900bc3
[ "MIT" ]
null
null
null
posts/migrations/0001_initial.py
ant-willow/yatube-pub
a42e4dd7fd353c40ccbc314841a04e6144900bc3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2020-11-14 23:01
52.547368
181
0.604768
# Generated by Django 2.2.6 on 2020-11-14 23:01 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
414
0
0
4,605
0
0
0
41
90
f2c5636f32094a0ea2b3748db2dc49208407d338
4,754
py
Python
scripts/osfstorage/fix_download_counts.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
scripts/osfstorage/fix_download_counts.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
13
2020-03-24T15:29:41.000Z
2022-03-11T23:15:28.000Z
scripts/osfstorage/fix_download_counts.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import sys import logging from scripts import utils as script_utils logger = logging.getLogger(__name__) # 2015 Sept 18 CUT_OFF_DATE = (2015, 9, 18) BACKUP_COLLECTION = 'zzz20151009pagecounters' NEW_COLLECTION = '20151009pagecountersmigrated' if __name__ == '__main__': ...
36.852713
131
0.625578
from __future__ import unicode_literals import sys import logging from datetime import datetime from framework.mongo import database from website.app import init_app from scripts import utils as script_utils from framework.transactions.context import TokuTransaction logger = logging.getLogger(__name__) # 2015 Sept 1...
0
0
0
0
0
3,737
0
71
157
5e73e37f9f9cb5a97a7e27512ed98bc9848c2f98
5,800
py
Python
trustlab/consumers/lab_consumer.py
ValentinSiegert/aTLAS
a2e7521447f81add83a0c958d61846a1cbfbbe9c
[ "MIT" ]
null
null
null
trustlab/consumers/lab_consumer.py
ValentinSiegert/aTLAS
a2e7521447f81add83a0c958d61846a1cbfbbe9c
[ "MIT" ]
null
null
null
trustlab/consumers/lab_consumer.py
ValentinSiegert/aTLAS
a2e7521447f81add83a0c958d61846a1cbfbbe9c
[ "MIT" ]
null
null
null
import trustlab.lab.config as config
46.774194
119
0.514655
import json import trustlab.lab.config as config import time from trustlab.consumers.chunk_consumer import ChunkAsyncJsonWebsocketConsumer from trustlab.models import * from trustlab.serializers.scenario_serializer import ScenarioSerializer from trustlab.lab.director import Director class LabConsumer(ChunkAsyncJsonWe...
0
0
5,193
295
0
0
0
115
155
da023300272a3b0a819ca98ca66851e3312e328b
74
py
Python
telegapi/__init__.py
p0o0uya/telegapi
ba250d659e6a9fd7b3b252d88aefada5a3dc617e
[ "MIT" ]
null
null
null
telegapi/__init__.py
p0o0uya/telegapi
ba250d659e6a9fd7b3b252d88aefada5a3dc617e
[ "MIT" ]
null
null
null
telegapi/__init__.py
p0o0uya/telegapi
ba250d659e6a9fd7b3b252d88aefada5a3dc617e
[ "MIT" ]
null
null
null
from telegapi.reqs import reqs as reqs
24.666667
38
0.837838
from telegapi.reqs import reqs as reqs from telegapi.telapi import telapi
0
0
0
0
0
0
0
13
22
e52bc9e6bae8350ede8163a0814ef8dbef8ca8fe
10,743
py
Python
examples/core_examples/15d_gaussian.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
examples/core_examples/15d_gaussian.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
examples/core_examples/15d_gaussian.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
import bilby import numpy as np from bilby.core.likelihood import (AnalyticalMultidimensionalBimodalCovariantGaussian, AnalyticalMultidimensionalCovariantGaussian) logger = bilby.core.utils.logger cov = [ [ 0.045991865933182365, -0.005489748382557155, -0.01025067223674548, 0.002008...
27.75969
102
0.638648
import bilby import numpy as np from bilby.core.likelihood import ( AnalyticalMultidimensionalBimodalCovariantGaussian, AnalyticalMultidimensionalCovariantGaussian, ) logger = bilby.core.utils.logger cov = [ [ 0.045991865933182365, -0.005489748382557155, -0.01025067223674548, ...
0
0
0
0
0
0
0
11
0
4ea48d247045e2133033239fb19305c97a5233b5
3,646
py
Python
custom_components/promql/sensor.py
Adi146/home-assistant-promql
f4c302da407b816b0cc4bf3cc69c55552e0207f2
[ "MIT" ]
null
null
null
custom_components/promql/sensor.py
Adi146/home-assistant-promql
f4c302da407b816b0cc4bf3cc69c55552e0207f2
[ "MIT" ]
null
null
null
custom_components/promql/sensor.py
Adi146/home-assistant-promql
f4c302da407b816b0cc4bf3cc69c55552e0207f2
[ "MIT" ]
null
null
null
import logging _LOGGER = logging.getLogger(__name__)
26.808824
87
0.651947
from datetime import timedelta import logging from homeassistant.core import callback from homeassistant.components.sensor import SensorEntity from homeassistant.helpers.entity import DeviceInfo from homeassistant.helpers.update_coordinator import ( DataUpdateCoordinator, ) from homeassistant.const import ( CO...
0
1,185
575
1,173
0
73
0
336
247
d89fafd2c0a2db24b2fef7f82022eb82d78c0982
451
py
Python
spacy/tests/lang/da/test_exceptions.py
DEVESHTARASIA/spaCy
4c5d2c80d5e273cdc2ed7be6eb378bb7fb3c0c31
[ "MIT" ]
2
2019-07-08T17:09:22.000Z
2021-01-09T17:36:04.000Z
spacy/tests/lang/da/test_exceptions.py
DEVESHTARASIA/spaCy
4c5d2c80d5e273cdc2ed7be6eb378bb7fb3c0c31
[ "MIT" ]
null
null
null
spacy/tests/lang/da/test_exceptions.py
DEVESHTARASIA/spaCy
4c5d2c80d5e273cdc2ed7be6eb378bb7fb3c0c31
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals
28.1875
67
0.698448
# coding: utf-8 from __future__ import unicode_literals import pytest @pytest.mark.parametrize('text', ["ca.", "m.a.o.", "Jan.", "Dec."]) def test_da_tokenizer_handles_abbr(da_tokenizer, text): tokens = da_tokenizer(text) assert len(tokens) == 1 def test_da_tokenizer_handles_exc_in_text(da_tokenizer): te...
0
162
0
0
0
172
0
-8
69
fb9754315cd56c3ee0852233f95ab43b0772c530
642
py
Python
11 Object Oriented Programming/product.py
Himanshu44626748/Learn-Python
f3a4d997f2d29b146e5f7434f4801ae94bc3483f
[ "MIT" ]
2
2020-03-16T14:57:44.000Z
2020-11-29T07:45:54.000Z
11 Object Oriented Programming/product.py
Himanshu44626748/Learn-Python
f3a4d997f2d29b146e5f7434f4801ae94bc3483f
[ "MIT" ]
null
null
null
11 Object Oriented Programming/product.py
Himanshu44626748/Learn-Python
f3a4d997f2d29b146e5f7434f4801ae94bc3483f
[ "MIT" ]
1
2020-08-13T07:59:02.000Z
2020-08-13T07:59:02.000Z
'''This is my first class in python''' p1 = Product() p1.display() # print(p1.name) # print(p1.description) # print(p1.price) p2 = Product() p2.display() # print(p2.name) # print(p2.description) # print(p2.price)
24.692308
167
0.629283
'''This is my first class in python''' class Product: def __init__(self): self.name = 'Dell Inspiron' self.description = 'Laptop, i7, 8th Gen, 8 GB RAM, 512 GB SSD' self.price = 91000 def display(self): # Added an Instance function to print, so that we don't ne...
0
0
0
403
0
0
0
0
23
5e8ac64fbe70fe326a2767fef3d9300d1b292115
2,049
py
Python
class_4/dungeon.py
goosemanjack/python_intro_class
ca4b2390f2b0bb037d94ed4516d98848b7cf97d6
[ "MIT" ]
null
null
null
class_4/dungeon.py
goosemanjack/python_intro_class
ca4b2390f2b0bb037d94ed4516d98848b7cf97d6
[ "MIT" ]
null
null
null
class_4/dungeon.py
goosemanjack/python_intro_class
ca4b2390f2b0bb037d94ed4516d98848b7cf97d6
[ "MIT" ]
null
null
null
# Dungeon Crawler import asciiart import level1 import level2 import time # timer import hero #def test(): # print(asciiart.baby_dragon()) # print(asciiart.big_skull()) # print(asciiart.dragon()) # print(asciiart.samurai()) # print(asciiart.skull_cross()) # print(asciiart.warrior()) # print(as...
19.893204
79
0.570522
# Dungeon Crawler import asciiart import level1 import level2 import time # timer import hero #def test(): # print(asciiart.baby_dragon()) # print(asciiart.big_skull()) # print(asciiart.dragon()) # print(asciiart.samurai()) # print(asciiart.skull_cross()) # print(asciiart.warrior()) # print(as...
0
0
0
0
0
1,600
0
0
46
935cbb30e7c351867221dc569f3fce1527a04ae9
214
py
Python
setup.py
tzelleke/floodfill
ba11c990e9b2844fba1e5ec367c80571600d106c
[ "MIT" ]
5
2016-10-08T02:46:30.000Z
2021-08-30T12:43:53.000Z
setup.py
tzelleke/mepfinder
ba11c990e9b2844fba1e5ec367c80571600d106c
[ "MIT" ]
null
null
null
setup.py
tzelleke/mepfinder
ba11c990e9b2844fba1e5ec367c80571600d106c
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='mepfinder', version='0.1', packages=['mepfinder'], url='', license='MIT', author='Theodros Zelleke', author_email='', description='' )
16.461538
32
0.602804
from distutils.core import setup setup( name='mepfinder', version='0.1', packages=['mepfinder'], url='', license='MIT', author='Theodros Zelleke', author_email='', description='' )
0
0
0
0
0
0
0
0
0
9fe1c1e0ce7af6f205e8ffd160b033bde2928be9
5,162
py
Python
pokemon_classifier.py
taritkandpal/Classifier-Comparison
c87b9a40ab5d296e667ac76510e23b0fbc48e4c4
[ "MIT" ]
null
null
null
pokemon_classifier.py
taritkandpal/Classifier-Comparison
c87b9a40ab5d296e667ac76510e23b0fbc48e4c4
[ "MIT" ]
null
null
null
pokemon_classifier.py
taritkandpal/Classifier-Comparison
c87b9a40ab5d296e667ac76510e23b0fbc48e4c4
[ "MIT" ]
null
null
null
# Importing the libraries import pandas as pd # Importing the dataset dataset = pd.read_csv('pokemonchg.csv') X = dataset.iloc[:, [19,20,21,22,23,25,28,35]].values y = dataset.iloc[:, 40].values # Splitting the dataset into the Training set and Test set from sklearn.model_selection import train_test_split ...
31.47561
96
0.770632
# Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('pokemonchg.csv') X = dataset.iloc[:, [19,20,21,22,23,25,28,35]].values y = dataset.iloc[:, 40].values # Splitting the dataset into the Training set and Test set ...
0
0
0
0
0
0
0
25
92
fe3462cce33307011401ed3f20189c90a2576830
1,900
py
Python
__init__.py
shrught/Create_LoginPage
41f3b57bce558110754167fcc32d13b7c77bd1f6
[ "MIT" ]
25
2021-03-23T22:05:07.000Z
2022-03-30T22:06:31.000Z
__init__.py
shrught/Create_LoginPage
41f3b57bce558110754167fcc32d13b7c77bd1f6
[ "MIT" ]
6
2021-08-30T06:57:53.000Z
2021-11-16T23:25:33.000Z
__init__.py
shrught/Create_LoginPage
41f3b57bce558110754167fcc32d13b7c77bd1f6
[ "MIT" ]
32
2021-02-27T21:25:07.000Z
2022-03-26T12:43:56.000Z
######################################################################## ################# Importing packages ####################### ######################################################################## from flask_sqlalchemy import SQLAlchemy # init SQLAlchemy so we can use it later in our models db =...
57.575758
142
0.679474
######################################################################## ################# Importing packages ####################### ######################################################################## from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager ...
0
240
0
0
0
1,244
0
17
66
92f3b0fb601c87aa8ac221a3e268cbca2e468dfa
1,449
py
Python
paddlenlp/ops/optimizer/__init__.py
holazzer/PaddleNLP
14b6f897b875408c70cfd51230b4de8123e253ed
[ "Apache-2.0" ]
1
2022-01-04T01:37:10.000Z
2022-01-04T01:37:10.000Z
paddlenlp/ops/optimizer/__init__.py
holazzer/PaddleNLP
14b6f897b875408c70cfd51230b4de8123e253ed
[ "Apache-2.0" ]
null
null
null
paddlenlp/ops/optimizer/__init__.py
holazzer/PaddleNLP
14b6f897b875408c70cfd51230b4de8123e253ed
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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 appli...
29.571429
147
0.637681
# Copyright (c) 2021 PaddlePaddle 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 appli...
0
0
0
0
0
577
0
10
67
0c3c499b54f5bd21c0622b78c59f6bfffa5106dd
19,731
py
Python
triangulation/myutils.py
mattjr/structured
0cb4635af7602f2a243a9b739e5ed757424ab2a7
[ "Apache-2.0" ]
14
2015-01-11T02:53:04.000Z
2021-11-25T17:31:22.000Z
triangulation/myutils.py
skair39/structured
0cb4635af7602f2a243a9b739e5ed757424ab2a7
[ "Apache-2.0" ]
null
null
null
triangulation/myutils.py
skair39/structured
0cb4635af7602f2a243a9b739e5ed757424ab2a7
[ "Apache-2.0" ]
14
2015-07-21T04:47:52.000Z
2020-03-12T12:31:25.000Z
################################################## # Copyright (c) INRIA (France) 2011, 2012, 2013 # # This file is part of inria-mvs. You can redistribute it and/or # modify it under the terms of the GNU General Public License. # # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE # WARRANTY OF...
29.016176
111
0.482743
################################################## # Copyright (c) INRIA (France) 2011, 2012, 2013 # # This file is part of inria-mvs. You can redistribute it and/or # modify it under the terms of the GNU General Public License. # # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE # WARRANTY OF...
0
0
0
80
0
2,485
0
0
115
ebf94db1c4c91316cd7dab7c874067fd95792a17
48
py
Python
src/meltano/__init__.py
Bjenhamin4Alfredolvchenki/meltano
b8d1d812f4051b6334986fc6b447d23c4d0d5043
[ "MIT" ]
8
2020-06-16T22:29:54.000Z
2021-06-04T11:57:57.000Z
src/meltano/__init__.py
aroder/meltano
b8d1d812f4051b6334986fc6b447d23c4d0d5043
[ "MIT" ]
13
2021-03-10T19:44:58.000Z
2022-02-27T05:31:12.000Z
src/meltano/__init__.py
aroder/meltano
b8d1d812f4051b6334986fc6b447d23c4d0d5043
[ "MIT" ]
2
2020-06-16T22:29:59.000Z
2020-11-04T05:47:50.000Z
# Managed by bumpversion __version__ = "1.33.0"
16
24
0.729167
# Managed by bumpversion __version__ = "1.33.0"
0
0
0
0
0
0
0
0
0
b0200b1d4f3beb0be0474deb39c5f85e8f743623
393
py
Python
Chapter 2 - first neurons/layer-neurons-batch-data.py
benricok/pyNeural
5fc5710359e3a8d16d9bbb83679854bb07a817ad
[ "MIT" ]
null
null
null
Chapter 2 - first neurons/layer-neurons-batch-data.py
benricok/pyNeural
5fc5710359e3a8d16d9bbb83679854bb07a817ad
[ "MIT" ]
null
null
null
Chapter 2 - first neurons/layer-neurons-batch-data.py
benricok/pyNeural
5fc5710359e3a8d16d9bbb83679854bb07a817ad
[ "MIT" ]
null
null
null
import numpy as np inputs = [[1.0, 2.0, 3.0, 2.5], [2.0, 5.0, -1.0, 2.0], [-1.5, 2.7, 3.3, -0.8]] weights = [[0.2, 0.8, -0.5, 1.0], [0.5, -0.91, 0.26, -0.5], [-0.26, -0.27, 0.17, 0.87]] biases = [2.0, 3.0, 0.5] outputs = np.dot(inputs, np.array(weights).T) + biases print(out...
21.833333
54
0.475827
import numpy as np inputs = [[1.0, 2.0, 3.0, 2.5], [2.0, 5.0, -1.0, 2.0], [-1.5, 2.7, 3.3, -0.8]] weights = [[0.2, 0.8, -0.5, 1.0], [0.5, -0.91, 0.26, -0.5], [-0.26, -0.27, 0.17, 0.87]] biases = [2.0, 3.0, 0.5] outputs = np.dot(inputs, np.array(weights).T) + biases print(out...
0
0
0
0
0
0
0
0
0
6af2299e1cc21e04f6a15f4f77aa7af789e5fa58
10,794
py
Python
src/pipelinex/extras/ops/ignite/handlers/flexible_checkpoint.py
MarchRaBBiT/pipelinex
ea8def32a71752b667f9f3522acba3fd79102fe1
[ "Apache-2.0" ]
null
null
null
src/pipelinex/extras/ops/ignite/handlers/flexible_checkpoint.py
MarchRaBBiT/pipelinex
ea8def32a71752b667f9f3522acba3fd79102fe1
[ "Apache-2.0" ]
null
null
null
src/pipelinex/extras/ops/ignite/handlers/flexible_checkpoint.py
MarchRaBBiT/pipelinex
ea8def32a71752b667f9f3522acba3fd79102fe1
[ "Apache-2.0" ]
null
null
null
import logging log = logging.getLogger(__name__) __all__ = ["FlexibleModelCheckpoint"] """ Copied from https://github.com/pytorch/ignite/blob/v0.2.1/ignite/handlers/checkpoint.py due to the change in ignite v0.3.0 """
38.007042
120
0.593756
from datetime import datetime, timedelta import os import tempfile import torch import logging log = logging.getLogger(__name__) __all__ = ["FlexibleModelCheckpoint"] """ Copied from https://github.com/pytorch/ignite/blob/v0.2.1/ignite/handlers/checkpoint.py due to the change in ignite v0.3.0 """ class ModelChec...
0
0
0
10,307
0
112
0
-8
158
7a844f619e3efa74efdbb5c73abfff44bb6d9063
300
py
Python
Python/Syntax/Exception.py
piovezan/SOpt
a5ec90796b7bdf98f0675457fc4bb99c8695bc40
[ "MIT" ]
148
2017-08-03T01:49:27.000Z
2022-03-26T10:39:30.000Z
Python/Syntax/Exception.py
piovezan/SOpt
a5ec90796b7bdf98f0675457fc4bb99c8695bc40
[ "MIT" ]
3
2017-11-23T19:52:05.000Z
2020-04-01T00:44:40.000Z
Python/Syntax/Exception.py
piovezan/SOpt
a5ec90796b7bdf98f0675457fc4bb99c8695bc40
[ "MIT" ]
59
2017-08-03T01:49:19.000Z
2022-03-31T23:24:38.000Z
lista = [1, 2, 3] try: numero = int(input(f'Digite um nmero entre 0 e {len(lista)-1}: ')) print(lista[numero]) except ValueError: print('No foi digitado um nmero') except IndexError: print('O nmero digitado est fora da faixa aceita') #https://pt.stackoverflow.com/q/451936/101
27.272727
71
0.683333
lista = [1, 2, 3] try: numero = int(input(f'Digite um número entre 0 e {len(lista)-1}: ')) print(lista[numero]) except ValueError: print('Não foi digitado um número') except IndexError: print('O número digitado está fora da faixa aceita') #https://pt.stackoverflow.com/q/451936/101
10
0
0
0
0
0
0
0
0
9113a67adedf08f6968ed8efa95fec64627823e4
6,395
py
Python
dynastyscraper.py
vizs/dynastyscraper
7f5c5933aa7e8b467db58cc7afbe51e40e324cd3
[ "BSD-2-Clause" ]
1
2022-01-31T05:09:43.000Z
2022-01-31T05:09:43.000Z
dynastyscraper.py
vizs/dynastyscraper
7f5c5933aa7e8b467db58cc7afbe51e40e324cd3
[ "BSD-2-Clause" ]
null
null
null
dynastyscraper.py
vizs/dynastyscraper
7f5c5933aa7e8b467db58cc7afbe51e40e324cd3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Licensed under BSD 2-Clause License. # # This is a really crude script. This spits out shell-escaped wget # commands to download the images of the chapters. # # Each image is downloaded into "VOLUME_CHAPTER/XXX.png" where VOLUME # and CHAPTER are the volume and chapter names respectively. I...
37.397661
144
0.606099
#!/usr/bin/env python3 # # Licensed under BSD 2-Clause License. # # This is a really crude script. This spits out shell-escaped wget # commands to download the images of the chapters. # # Each image is downloaded into "VOLUME_CHAPTER/XXX.png" where VOLUME # and CHAPTER are the volume and chapter names respectively. I...
0
0
0
0
0
872
0
67
90
35344fdb50ad0e73db9563e4847d6313d8dfbe83
290
py
Python
catalog/bindings/gmd/abstract_operation.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/abstract_operation.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/abstract_operation.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
__NAMESPACE__ = "http://www.opengis.net/gml"
26.363636
73
0.796552
from dataclasses import dataclass from bindings.gmd.abstract_crstype import AbstractCoordinateOperationType __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class AbstractOperation(AbstractCoordinateOperationType): class Meta: namespace = "http://www.opengis.net/gml"
0
112
0
0
0
0
0
64
67
5a2267304bf02066ad57cb523a22e659defb90d7
117
py
Python
sqlalchemy_solr/solrdbapi/api_globals.py
anjackson/sqlalchemy-solr
56d46f90fdc522ad9113d8efde592d6a9868bd10
[ "MIT" ]
null
null
null
sqlalchemy_solr/solrdbapi/api_globals.py
anjackson/sqlalchemy-solr
56d46f90fdc522ad9113d8efde592d6a9868bd10
[ "MIT" ]
null
null
null
sqlalchemy_solr/solrdbapi/api_globals.py
anjackson/sqlalchemy-solr
56d46f90fdc522ad9113d8efde592d6a9868bd10
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Global variables _HEADER = {"Content-Type": "application/json"} _PAYLOAD = {"stmt": None}
19.5
46
0.632479
# -*- coding: utf-8 -*- # Global variables _HEADER = {"Content-Type": "application/json"} _PAYLOAD = {"stmt": None}
0
0
0
0
0
0
0
0
0
fa5bda6b980c9d6262d78c458162ba7b19e4ef12
3,762
py
Python
zero_ilumi_agenda/zero_ilumi_agenda_core/views.py
ZeroILumi/Zero_ILumi_Agenda_Django
1a34c12e92e233b0e3d96f34b78d235f88fc7124
[ "MIT" ]
null
null
null
zero_ilumi_agenda/zero_ilumi_agenda_core/views.py
ZeroILumi/Zero_ILumi_Agenda_Django
1a34c12e92e233b0e3d96f34b78d235f88fc7124
[ "MIT" ]
null
null
null
zero_ilumi_agenda/zero_ilumi_agenda_core/views.py
ZeroILumi/Zero_ILumi_Agenda_Django
1a34c12e92e233b0e3d96f34b78d235f88fc7124
[ "MIT" ]
null
null
null
# Create your views here. # def index(request): # return redirect('/agenda/')
37.247525
105
0.661085
from django.contrib.auth.models import User from django.shortcuts import render, redirect from zero_ilumi_agenda_core.models import Evento_Agendado from django.contrib.auth.decorators import login_required from django.contrib.auth import authenticate, login, logout from django.contrib import messages from datetime impo...
4
2,445
0
0
0
642
0
222
360
7f5e0625c5594db764254be083cba073e7fbc7a6
4,616
py
Python
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GradientModifierNodes.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GradientModifierNodes.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GradientModifierNodes.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ """ C13767841 - All Gradient Modifier nodes can be added to a graph C18055051 - All Gradient Modifier nodes can...
50.173913
155
0.684575
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ """ C13767841 - All Gradient Modifier nodes can be added to a graph C18055051 - All Gradient Modifier nodes can...
0
3,936
0
0
0
0
0
36
45
5b926d450579990c8f09b93cbc5ae4c06128ef8d
802
py
Python
models/stylegan2/op/setup.py
Norod/encoder4editing
362ef1722f5082fda5f53aaa2c9562fbaedd5fd6
[ "MIT" ]
53
2021-01-22T08:52:02.000Z
2022-03-30T13:58:57.000Z
GAN2Shape/stylegan2/stylegan2-pytorch/op/setup.py
alessioGalatolo/GAN-2D-to-3D
088bd2c438c2419192733ddf6c322dff8db8e513
[ "MIT" ]
null
null
null
GAN2Shape/stylegan2/stylegan2-pytorch/op/setup.py
alessioGalatolo/GAN-2D-to-3D
088bd2c438c2419192733ddf6c322dff8db8e513
[ "MIT" ]
12
2021-02-03T09:04:02.000Z
2022-02-10T12:34:40.000Z
from setuptools import setup from torch.utils.cpp_extension import CUDAExtension, BuildExtension from pathlib import Path # Usage: # python setup.py install (or python setup.py bdist_wheel) # NB: Windows: run from VS2017 x64 Native Tool Command Prompt rootdir = (Path(__file__).parent / '..' / 'op').resolve() setup( ...
24.30303
93
0.633416
from setuptools import setup from torch.utils.cpp_extension import CUDAExtension, BuildExtension from pathlib import Path # Usage: # python setup.py install (or python setup.py bdist_wheel) # NB: Windows: run from VS2017 x64 Native Tool Command Prompt rootdir = (Path(__file__).parent / '..' / 'op').resolve() setup( ...
0
0
0
0
0
0
0
0
0
87c61571e70cdd66700ebb85bc4a82a19bc6aaf4
2,405
py
Python
LoadGames.py
SeppPenner/LoadGamesFromPcGamesDownloadCom
7dab270a1c1ff5db012bc26aacdafbd4cba1de74
[ "MIT" ]
6
2018-05-13T15:54:20.000Z
2021-12-12T22:30:38.000Z
LoadGames.py
SeppPenner/LoadGamesFromPcGamesDownloadCom
7dab270a1c1ff5db012bc26aacdafbd4cba1de74
[ "MIT" ]
null
null
null
LoadGames.py
SeppPenner/LoadGamesFromPcGamesDownloadCom
7dab270a1c1ff5db012bc26aacdafbd4cba1de74
[ "MIT" ]
3
2018-10-08T17:16:40.000Z
2021-12-12T22:30:41.000Z
import requests from bs4 import BeautifulSoup import datetime mainPageUrl = 'https://pcgames-download.com/' mainFilePath = './loading/mainPage.html' pagePath = './loading/' def loadGameData(): "Loads computer games data" print ('Loading number of pages') response = requests.get(mainPageUrl) with open(mainFilePath...
34.855072
79
0.722661
import requests from bs4 import BeautifulSoup import sys import datetime mainPageUrl = 'https://pcgames-download.com/' mainFilePath = './loading/mainPage.html' pagePath = './loading/' def loadGameData(): "Loads computer games data" print ('Loading number of pages') response = requests.get(mainPageUrl) with open(m...
0
0
0
0
0
0
0
-11
22
1c20d53be87d3d3e6f7a2b8bd15d6a2ff185adbe
2,024
py
Python
test/student_t_repeated_measures.py
kozzion/tensealstat
93314a8721ec6b1a2bea466aaeadb06cbf5a4f63
[ "Apache-2.0" ]
6
2020-12-17T16:05:24.000Z
2021-12-28T13:26:31.000Z
test/student_t_repeated_measures.py
kozzion/tensealstat
93314a8721ec6b1a2bea466aaeadb06cbf5a4f63
[ "Apache-2.0" ]
null
null
null
test/student_t_repeated_measures.py
kozzion/tensealstat
93314a8721ec6b1a2bea466aaeadb06cbf5a4f63
[ "Apache-2.0" ]
null
null
null
import sys import os from scipy import stats import numpy as np from scipy.stats import t sys.path.append(os.path.abspath('../../tensealstat')) from tensealstat.tools_context import ToolsContext as tc from tensealstat.algebra.algebra_numpy import AlgebraNumpy from tensealstat.algebra.algebra_tenseal import AlgebraTen...
34.896552
109
0.784091
import sys import os from scipy import stats import tenseal as ts import numpy as np from scipy.stats import t sys.path.append(os.path.abspath('../../tensealstat')) from tensealstat.tools_context import ToolsContext as tc from tensealstat.algebra.algebra_numpy import AlgebraNumpy from tensealstat.algebra.algebra_tens...
0
0
0
0
0
0
0
-1
22