hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
142f6d81b4cdb9236e603b9d2db42775743f83e2
5,831
py
Python
src/encoded/audit/dataset.py
Lattice-Data/encoded
94bb4f7cb51970523715e0598d84699a28f90861
[ "MIT" ]
null
null
null
src/encoded/audit/dataset.py
Lattice-Data/encoded
94bb4f7cb51970523715e0598d84699a28f90861
[ "MIT" ]
10
2020-07-22T20:16:15.000Z
2021-06-16T19:17:44.000Z
src/encoded/audit/dataset.py
Lattice-Data/encoded
94bb4f7cb51970523715e0598d84699a28f90861
[ "MIT" ]
null
null
null
from snovault import ( AuditFailure, audit_checker, ) from .formatter import ( audit_link, path_to_text, ) def audit_contributor_institute(value, system): if value['status'] in ['deleted']: return need_inst = [] if 'corresponding_contributors' in value: for user in value['...
35.993827
113
0.601784
0
0
5,082
0.871549
344
0.058995
0
0
1,854
0.317956
1431085ed453d7690fe84e1c128524430df1f728
5,990
py
Python
psatlib/__init__.py
nie93/psatlib
19947658fb4162f325e729eab086121947d8306a
[ "MIT" ]
null
null
null
psatlib/__init__.py
nie93/psatlib
19947658fb4162f325e729eab086121947d8306a
[ "MIT" ]
2
2018-06-19T20:53:13.000Z
2018-11-01T20:11:45.000Z
psatlib/__init__.py
nie93/psatlib
19947658fb4162f325e729eab086121947d8306a
[ "MIT" ]
null
null
null
""" psatlib -- An imported library designed for PSAT running with Python scripts. Created by Zhijie Nie (nie@ieee.org) Created on: 06/11/2018 Last Modified on: 10/01/2018 """ __name__ = "psatlib" __version__ = "0.1" __author__ = "Zhijie Nie" __author_email__ = "nie@ieee.org" __copyright__ = "Copyright (c) 20...
34.825581
101
0.635225
0
0
0
0
0
0
0
0
1,699
0.283639
1431e9db188b5d696eaec5acf37de7154e8339f9
3,001
py
Python
webcam_OrbitalTimmer.py
JarvisSan22/Python_webcam
1c90e9173257f134f34cf094b947d99a745ab2ae
[ "MIT" ]
null
null
null
webcam_OrbitalTimmer.py
JarvisSan22/Python_webcam
1c90e9173257f134f34cf094b947d99a745ab2ae
[ "MIT" ]
null
null
null
webcam_OrbitalTimmer.py
JarvisSan22/Python_webcam
1c90e9173257f134f34cf094b947d99a745ab2ae
[ "MIT" ]
null
null
null
import numpy as np import cv2 import math import datetime from datetime import timedelta as Delta h=300 w=300 cap = cv2.VideoCapture(0) SUN_LOC=(200,70) SUN_RSIZE=20 ORBITAL_R=10 def Orbiral(frame,Centerloc,orbit_r,size_r,phi,color): x_orbit=Centerloc[0]+int(orbit_r*np.cos(np.deg2rad(phi))...
28.311321
139
0.618794
0
0
0
0
0
0
0
0
1,014
0.336095
1433a45ce0d16e3b1c57cbfb15267e409f99e3b0
2,913
py
Python
spyder/plugins/outlineexplorer/tests/test_outline_explorer_editor.py
suokunlong/spyder
2d5d450fdcef232fb7f38e7fefc27f0e7f704c9a
[ "MIT" ]
3
2019-09-27T21:00:00.000Z
2021-03-07T23:28:32.000Z
spyder/plugins/outlineexplorer/tests/test_outline_explorer_editor.py
jastema/spyder
0ef48ea227c53f57556cd8002087dc404b0108b0
[ "MIT" ]
3
2020-10-13T21:15:23.000Z
2020-10-13T21:15:24.000Z
spyder/plugins/outlineexplorer/tests/test_outline_explorer_editor.py
jastema/spyder
0ef48ea227c53f57556cd8002087dc404b0108b0
[ "MIT" ]
2
2021-04-30T01:18:22.000Z
2021-09-19T06:31:42.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # """Tests for editor and outline explorer interaction.""" # Test library imports import pytest # Local imports from spyder.plugins.outlineexplorer.widgets import OutlineExplorerWidget from spyder.plugin...
29.13
76
0.675249
146
0.050103
0
0
601
0.206246
0
0
626
0.214825
1435d19388b06f46cd61f4a44ed68dc45546446f
3,105
py
Python
challonge/attachment.py
Parapheen/achallonge
8f05a0832cd0209536475aa9e91a5e71071512a0
[ "MIT" ]
3
2017-03-27T18:02:02.000Z
2021-09-20T02:44:21.000Z
challonge/attachment.py
Parapheen/achallonge
8f05a0832cd0209536475aa9e91a5e71071512a0
[ "MIT" ]
6
2017-05-28T11:08:25.000Z
2021-09-20T03:12:36.000Z
challonge/attachment.py
Parapheen/achallonge
8f05a0832cd0209536475aa9e91a5e71071512a0
[ "MIT" ]
8
2017-03-30T18:35:13.000Z
2021-08-01T10:53:54.000Z
from .helpers import FieldHolder, assert_or_raise class Attachment(metaclass=FieldHolder): """ representation of a Challonge match attachment """ _fields = ['id', 'match_id', 'user_id', 'description', 'url', 'original_file_name', 'created_at', 'updated_at', 'asset_file_name', 'as...
33.031915
133
0.588084
3,052
0.982931
0
0
565
0.181965
1,739
0.560064
1,299
0.418357
1436e076256d16b106fecbd6efa5e663549ff699
737
py
Python
tests/cupy_tests/array_api_tests/test_sorting_functions.py
pri1311/cupy
415be9536582ba86dbbb3e98bc14db4877a242c6
[ "MIT" ]
null
null
null
tests/cupy_tests/array_api_tests/test_sorting_functions.py
pri1311/cupy
415be9536582ba86dbbb3e98bc14db4877a242c6
[ "MIT" ]
null
null
null
tests/cupy_tests/array_api_tests/test_sorting_functions.py
pri1311/cupy
415be9536582ba86dbbb3e98bc14db4877a242c6
[ "MIT" ]
1
2022-03-21T20:19:12.000Z
2022-03-21T20:19:12.000Z
import pytest from cupy import array_api as xp @pytest.mark.parametrize( "obj, axis, expected", [ ([0, 0], -1, [0, 1]), ([0, 1, 0], -1, [1, 0, 2]), ([[0, 1], [1, 1]], 0, [[1, 0], [0, 1]]), ([[0, 1], [1, 1]], 1, [[1, 0], [0, 1]]), ], ) @pytest.mark.skipif( # https://git...
27.296296
67
0.573948
0
0
0
0
686
0.930801
0
0
239
0.324288
1437f6b2872552388cca334ea76cadd246a03878
6,406
py
Python
drip/api/subscribers.py
willjohnson/drip-python
13e2836b5acb7a822b0e1f9884e3249d37734cef
[ "MIT" ]
5
2019-04-11T19:32:14.000Z
2020-08-03T21:58:55.000Z
drip/api/subscribers.py
willjohnson/drip-python
13e2836b5acb7a822b0e1f9884e3249d37734cef
[ "MIT" ]
7
2019-03-19T03:54:49.000Z
2021-12-09T21:53:28.000Z
drip/api/subscribers.py
willjohnson/drip-python
13e2836b5acb7a822b0e1f9884e3249d37734cef
[ "MIT" ]
1
2021-01-11T21:51:51.000Z
2021-01-11T21:51:51.000Z
from typing import TYPE_CHECKING from drip.utils import json_list, json_object, raise_response if TYPE_CHECKING: from requests import Session class Subscribers: session: 'Session' @json_object('subscribers') def create_or_update_subscriber(self, email, marshall=True, **options): """ ...
38.130952
133
0.604589
6,255
0.976428
0
0
5,127
0.800343
0
0
5,253
0.820012
143877dd2c390f5b0dc8e5729d0cf5ded4ef1c91
2,154
py
Python
ldapauth/main/main.py
trutty/python-ldap
d656548641d2d3e45e868bb6ce1585cffe3c6848
[ "CC0-1.0" ]
null
null
null
ldapauth/main/main.py
trutty/python-ldap
d656548641d2d3e45e868bb6ce1585cffe3c6848
[ "CC0-1.0" ]
null
null
null
ldapauth/main/main.py
trutty/python-ldap
d656548641d2d3e45e868bb6ce1585cffe3c6848
[ "CC0-1.0" ]
null
null
null
from flask import Flask, request from flask_httpauth import HTTPBasicAuth from auth_handler import AuthHandler from cache import Cache from os import environ from yaml import safe_load import logging from connection_provider import ConnectionProvider # init logging logging.basicConfig(format='[%(asctime)s] [%(levelna...
26.268293
96
0.716806
0
0
0
0
1,131
0.52507
0
0
647
0.300371
1438db051f7ec3e90a15d96cb90dfbe4c91397a1
4,038
py
Python
Square_game/Square_game_play.py
samutams/Square_game
8067e856075b8d68eaa3cefc73fe818d545c85b0
[ "MIT" ]
null
null
null
Square_game/Square_game_play.py
samutams/Square_game
8067e856075b8d68eaa3cefc73fe818d545c85b0
[ "MIT" ]
null
null
null
Square_game/Square_game_play.py
samutams/Square_game
8067e856075b8d68eaa3cefc73fe818d545c85b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: class Square_game(): display_col = (255, 255, 255) player_col = (0, 0, 0) text_col = (255, 0, 0) food_col = (0, 0, 255) maze_col = (50, 205, 55) dis_width = 400 dis_height = 400 square_block = 20 game_over = False game_close...
33.371901
159
0.540862
3,761
0.931171
0
0
0
0
0
0
193
0.047784
1439a1471ef42c4ab1b73ed6dc780c31a03941cb
7,255
py
Python
gentun/algorithms.py
ahmadmobeen/gentun
c0cbb3eaf458b3e4abeade6b9baf914f461f3727
[ "Apache-2.0" ]
2
2020-03-23T07:29:33.000Z
2022-03-16T06:18:37.000Z
gentun/algorithms.py
ahmadmobeen/gentun
c0cbb3eaf458b3e4abeade6b9baf914f461f3727
[ "Apache-2.0" ]
1
2020-03-25T05:53:15.000Z
2020-03-25T05:53:15.000Z
gentun/algorithms.py
ahmadmobeen/gentun
c0cbb3eaf458b3e4abeade6b9baf914f461f3727
[ "Apache-2.0" ]
3
2020-03-11T05:53:43.000Z
2020-03-24T10:44:21.000Z
#!/usr/bin/env python """ Genetic algorithm class """ import random import operator import pymongo db_client=pymongo.MongoClient("223.195.37.85",27017) db=db_client["binaryCSA"] exp_col=db["experiments"] class GeneticAlgorithm(object): """Evolve a population iteratively to find better individuals on each gene...
42.928994
156
0.641351
7,042
0.970641
0
0
0
0
0
0
1,457
0.200827
1439fdf7a78ef76ce5defaea7b2ef8c4d002969d
2,867
py
Python
src/frontend/views.py
AllenAnthes/operationcode-pyback
b501a67eb055aff4c5ed11996de4a351f439bed9
[ "MIT" ]
21
2018-10-01T19:05:44.000Z
2021-01-03T02:49:00.000Z
src/frontend/views.py
AllenAnthes/operationcode-pyback
b501a67eb055aff4c5ed11996de4a351f439bed9
[ "MIT" ]
5
2018-09-17T18:14:34.000Z
2019-04-29T17:22:58.000Z
src/frontend/views.py
AllenAnthes/operationcode-pyback
b501a67eb055aff4c5ed11996de4a351f439bed9
[ "MIT" ]
10
2018-10-04T01:34:49.000Z
2021-04-06T14:24:50.000Z
import json import logging from typing import Tuple import requests from django.conf import settings from django.core.files.uploadedfile import InMemoryUploadedFile from django.views.generic import FormView, TemplateView from .forms import CodeSchoolForm logger = logging.getLogger(__name__) class IndexView(Templat...
31.505495
117
0.642832
557
0.19428
0
0
0
0
0
0
1,017
0.354726
143afa2a3ac5466b576ac87ae8b831db9911e23c
13,495
py
Python
bitwise/arithmetic/ADD_SUB.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
bitwise/arithmetic/ADD_SUB.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
bitwise/arithmetic/ADD_SUB.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
""" The following classes are defined: AdderSubtractor4 AdderSubtractor8 AdderSubtractor16 """ from .. import wire from .. import gate from .. import signal from . import ADD Wire = wire.Wire Bus4 = wire.Bus4 Bus8 = wire.Bus8 Bus16 = wire.Bus16 class AdderSubtractor4: """Construct a new 4-bit adder-...
32.914634
79
0.558133
13,227
0.980141
0
0
0
0
0
0
4,479
0.331901
143b9d9f954626237df01251d000fda5f839d52f
680
py
Python
utils/notification/notification_manager.py
sanjusci/google_sheet_reader
c2b11bdb1eb3e2799cdd22aa4ed67f9c86daea56
[ "MIT" ]
null
null
null
utils/notification/notification_manager.py
sanjusci/google_sheet_reader
c2b11bdb1eb3e2799cdd22aa4ed67f9c86daea56
[ "MIT" ]
3
2021-02-08T20:27:15.000Z
2021-06-01T23:18:51.000Z
utils/notification/notification_manager.py
sanjusci/google_sheet_reader
c2b11bdb1eb3e2799cdd22aa4ed67f9c86daea56
[ "MIT" ]
null
null
null
# Create your service here. __author__ = "Sanju Sci" __email__ = "sanju.sci9@gmail.com" __copyright__ = "Copyright 2019." from utils.commons import safe_invoke class NotificationManager(object): def __init__(self, *args, **kwargs): pass def notify(self, *args, **kwargs): pass @static...
20.606061
71
0.680882
462
0.679412
0
0
273
0.401471
0
0
110
0.161765
143dbd8a1c5acee5a901ba1feaee07be0801dc4b
5,901
py
Python
tests/unit/test_config.py
zaro0508/lambda-budgets
8eef392edadeae992f91aca0cda8bfb8ecef777e
[ "Apache-2.0" ]
null
null
null
tests/unit/test_config.py
zaro0508/lambda-budgets
8eef392edadeae992f91aca0cda8bfb8ecef777e
[ "Apache-2.0" ]
4
2020-07-28T20:44:35.000Z
2021-08-17T01:22:34.000Z
tests/unit/test_config.py
zaro0508/lambda-budgets
8eef392edadeae992f91aca0cda8bfb8ecef777e
[ "Apache-2.0" ]
2
2020-07-20T18:05:03.000Z
2020-07-31T20:57:59.000Z
from pathlib import Path import json import unittest from unittest.mock import MagicMock, patch from budget.config import Config import yaml class TestConfig(unittest.TestCase): def test_init(self): account_id = '012345678901' topic_arn = 'arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE' ...
32.070652
81
0.671073
5,756
0.975428
0
0
3,174
0.537875
0
0
1,539
0.260803
143fbec953156df9d4526de475d51f26bf5b991c
54
py
Python
chap4/4-9.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
1
2022-02-21T07:05:48.000Z
2022-02-21T07:05:48.000Z
chap4/4-9.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
null
null
null
chap4/4-9.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
null
null
null
cubes=[value**3 for value in range(1,11)] print(cubes)
27
41
0.722222
0
0
0
0
0
0
0
0
0
0
14403d9dd0685c366e48890d567b4976cccff5bc
946
py
Python
test/test_composer.py
nccr-itmo/FEDOT.Web
9b6f7b66de277ea34d6d5ed621b99a3f938db61b
[ "BSD-3-Clause" ]
23
2020-12-24T11:05:01.000Z
2022-03-31T20:29:12.000Z
test/test_composer.py
nccr-itmo/FEDOT.Web
9b6f7b66de277ea34d6d5ed621b99a3f938db61b
[ "BSD-3-Clause" ]
42
2021-01-11T09:38:31.000Z
2022-03-25T17:19:05.000Z
test/test_composer.py
nccr-itmo/FEDOT.Web
9b6f7b66de277ea34d6d5ed621b99a3f938db61b
[ "BSD-3-Clause" ]
5
2021-03-31T04:38:31.000Z
2022-03-31T20:29:26.000Z
import random import numpy as np random.seed(1) np.random.seed(1) def test_composer_endpoint(client): case_id = 'scoring' history_json = client.get(f'api/composer/{case_id}').json nodes = history_json['nodes'] nodes_ids = [n['uid'] for n in nodes] edges = history_json['edges'] targets = [e[...
26.277778
81
0.625793
0
0
0
0
0
0
0
0
158
0.167019
144393dffd51c7f70ab1943e4270d90ddd43598c
1,447
py
Python
testClient.py
step305/PiCameraStream_Test
569b5d63052bfb6d60eddc221692a2dcb78b87fa
[ "MIT" ]
1
2020-12-18T09:59:47.000Z
2020-12-18T09:59:47.000Z
testClient.py
step305/PiCameraStream_Test
569b5d63052bfb6d60eddc221692a2dcb78b87fa
[ "MIT" ]
null
null
null
testClient.py
step305/PiCameraStream_Test
569b5d63052bfb6d60eddc221692a2dcb78b87fa
[ "MIT" ]
null
null
null
import cv2 import urllib import numpy as np import multiprocessing as mp stream = 'http://192.168.53.114:8000/streamLow.mjpg' stream2 = 'http://192.168.53.114:8001/streamLow.mjpg' def procImg(str, wind, stop): bytes = '' stream = urllib.urlopen(str) while not stop.is_set(): try: bytes...
30.787234
86
0.463718
0
0
0
0
0
0
0
0
156
0.107809
1444b1b92ae47cbc60d016724b5d44bf1122493f
901
py
Python
2012/AU_Danny.py
Valchris/IEEEXtreme_WorkingAsIntended
c3e04633ce6d9c1a1582081767e8f2090adffa28
[ "MIT" ]
null
null
null
2012/AU_Danny.py
Valchris/IEEEXtreme_WorkingAsIntended
c3e04633ce6d9c1a1582081767e8f2090adffa28
[ "MIT" ]
null
null
null
2012/AU_Danny.py
Valchris/IEEEXtreme_WorkingAsIntended
c3e04633ce6d9c1a1582081767e8f2090adffa28
[ "MIT" ]
null
null
null
import sys import re line = sys.stdin.readline().strip() commands = line.split() if len(commands) > 15: #Too Long print 'ERROR' exit(0) for i in range(0,len(line)): #Missing Spaces if i % 2 == 1 and line[i] != ' ': print 'ERROR' exit(0) for i in range(0,len(commands) - 2,2): #Repeated S...
21.97561
115
0.619312
0
0
0
0
0
0
0
0
207
0.229745
144698a559c916923c258db6ccf04e14398014a5
1,293
py
Python
pupil/profiler.py
nigamapurv/Minkowski_planview
1c887bf0c54b9bdd632b9249cac71b275be8b2c2
[ "MIT" ]
1
2019-12-12T07:16:05.000Z
2019-12-12T07:16:05.000Z
pupil/profiler.py
nigamapurv/Minkowski_planview
1c887bf0c54b9bdd632b9249cac71b275be8b2c2
[ "MIT" ]
null
null
null
pupil/profiler.py
nigamapurv/Minkowski_planview
1c887bf0c54b9bdd632b9249cac71b275be8b2c2
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cProfile import io import pstats cache = {} PROFILE_SWITCH = True class Profiler: def __init__(self): self.profiler = cProfile.Profile() def profile(self, func, *args, **kwargs): ...
23.509091
105
0.648879
639
0.4942
0
0
0
0
0
0
52
0.040217
1446b8c5fba47ab7e1297f04805cc27c8254a77e
544
py
Python
dogdog045.py
chikochiko76/anime2021
0a7e3dcf6b0ee47a824d4fae6f061154930ce587
[ "CC0-1.0" ]
null
null
null
dogdog045.py
chikochiko76/anime2021
0a7e3dcf6b0ee47a824d4fae6f061154930ce587
[ "CC0-1.0" ]
null
null
null
dogdog045.py
chikochiko76/anime2021
0a7e3dcf6b0ee47a824d4fae6f061154930ce587
[ "CC0-1.0" ]
null
null
null
class AImage(AShape): color: any def __init__(self, width=100, height=None, cx=None, cy=None, image='pet_darui_dog.png'): AShape.__init__(self, width, height, cx, cy) if image.startswith('http') self.pic = Image.open(io.BytesIO(requests.get(image).content)) else: ...
36.266667
92
0.595588
543
0.998162
0
0
0
0
0
0
25
0.045956
1446e34643a51f72b5218098028b06210bd3c768
1,898
py
Python
tests/contrib/aiohttp/conftest.py
discord/dd-trace-py
3f6bca078e751bf7459fd02b7aff7f96eff0eeb6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/aiohttp/conftest.py
discord/dd-trace-py
3f6bca078e751bf7459fd02b7aff7f96eff0eeb6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/aiohttp/conftest.py
discord/dd-trace-py
3f6bca078e751bf7459fd02b7aff7f96eff0eeb6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import aiohttp import aiohttp_jinja2 import pytest from ddtrace.contrib.aiohttp.middlewares import trace_app from ddtrace.contrib.aiohttp_jinja2.patch import patch as patch_jinja2 from ddtrace.internal.utils import version from ddtrace.pin import Pin from .app.web import setup_app if version.parse_version(aiohttp._...
26
70
0.643309
0
0
0
0
1,503
0.791886
661
0.348261
280
0.147524
1446f15e2cee0b0f3b21fb8bde4f8852bd30e37b
1,074
py
Python
douban.movie_requests.py
willcod/requests_example
572826c4d7081f21e99e4661b273e8ad0e67e046
[ "MIT" ]
null
null
null
douban.movie_requests.py
willcod/requests_example
572826c4d7081f21e99e4661b273e8ad0e67e046
[ "MIT" ]
null
null
null
douban.movie_requests.py
willcod/requests_example
572826c4d7081f21e99e4661b273e8ad0e67e046
[ "MIT" ]
null
null
null
import requests, json from bs4 import BeautifulSoup hds=[{'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6'},\ {'User-Agent':'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.12 Safari/535.11'},\ {'User-Agent': 'Mozilla/5.0 (compa...
51.142857
138
0.68622
0
0
0
0
0
0
0
0
633
0.589385
14471fb559051a475c6f693ab9f75659647a5b99
1,323
py
Python
app/serialmonitor/forms.py
fretchen/ArduinoMagnetometerWeb
1d8bee848e488b7136dbae20172bd8785931dee0
[ "MIT" ]
null
null
null
app/serialmonitor/forms.py
fretchen/ArduinoMagnetometerWeb
1d8bee848e488b7136dbae20172bd8785931dee0
[ "MIT" ]
null
null
null
app/serialmonitor/forms.py
fretchen/ArduinoMagnetometerWeb
1d8bee848e488b7136dbae20172bd8785931dee0
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, HiddenField,IntegerField from wtforms.validators import DataRequired, NumberRange class ConnectForm(FlaskForm): ''' The form for connecting to the Arduino ''' id = HiddenField('A hidden field'); serial_port = StringField...
34.815789
107
0.699169
1,154
0.87226
0
0
0
0
0
0
475
0.359033
14479cf21718a5d4475f47cd6e178f58e9dd330a
421
py
Python
degvabank/degvabank/apps/user/signals.py
Vixx-X/DEGVABanck-backend
de413d55b55dba25e89b7f3bc60dfa94e89ddcde
[ "MIT" ]
null
null
null
degvabank/degvabank/apps/user/signals.py
Vixx-X/DEGVABanck-backend
de413d55b55dba25e89b7f3bc60dfa94e89ddcde
[ "MIT" ]
null
null
null
degvabank/degvabank/apps/user/signals.py
Vixx-X/DEGVABanck-backend
de413d55b55dba25e89b7f3bc60dfa94e89ddcde
[ "MIT" ]
1
2022-02-03T03:18:43.000Z
2022-02-03T03:18:43.000Z
from django.db.models.signals import post_save from django.dispatch import receiver from .models import User, EmailDevice @receiver(post_save, sender=User) def creating_user_settings(sender, instance, created, raw, **kwargs): """Creating the user device for a new User""" if created and not raw: EmailD...
35.083333
113
0.760095
0
0
0
0
296
0.703088
0
0
86
0.204276
144ab5fd23d14f2a4b0d04f079ebb18f914db56c
2,969
py
Python
casperlabs_client/commands/transfer_cmd.py
CasperLabs/client-py
12955d2b88bc439f94a1cc33a063fda0c20ef8ab
[ "Apache-2.0" ]
2
2021-05-12T06:43:45.000Z
2021-10-02T11:45:41.000Z
casperlabs_client/commands/transfer_cmd.py
CasperLabs/client-py
12955d2b88bc439f94a1cc33a063fda0c20ef8ab
[ "Apache-2.0" ]
24
2020-06-30T14:55:20.000Z
2021-01-05T18:18:29.000Z
casperlabs_client/commands/transfer_cmd.py
CasperLabs/client-py
12955d2b88bc439f94a1cc33a063fda0c20ef8ab
[ "Apache-2.0" ]
1
2020-06-22T15:32:38.000Z
2020-06-22T15:32:38.000Z
# -*- coding: utf-8 -*- from casperlabs_client import CasperLabsClient, consts, reformat from casperlabs_client.commands.common_options import ( FROM_OPTION, CHAINNAME_OPTION, DEPENDENCIES_OPTION, TTL_MILLIS_OPTION, private_key_option, WAIT_PROCESSED_OPTION, TIMEOUT_SECONDS_OPTION, ALGOR...
30.927083
107
0.629168
0
0
0
0
1,410
0.474907
0
0
743
0.250253
144aea4f0502bed2772fcf751e46d1dcc9492dd4
203
py
Python
Chapter 03/Chap03_Example3.10.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 03/Chap03_Example3.10.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 03/Chap03_Example3.10.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
for num in range(1,6): #code inside for loop if num == 4: continue #code inside for loop print(num) #code outside for loop print("continue statement executed on num = 4")
22.555556
48
0.615764
0
0
0
0
0
0
0
0
107
0.527094
144d32396683ecc3b3bc88e006d8084a2755425a
50,657
py
Python
src/inv/views.py
Nikhilgupta18/practice-react_django
4226345a10c528308d13629907952e841621badc
[ "MIT" ]
null
null
null
src/inv/views.py
Nikhilgupta18/practice-react_django
4226345a10c528308d13629907952e841621badc
[ "MIT" ]
11
2020-09-07T15:48:40.000Z
2022-03-08T23:06:16.000Z
src/inv/views.py
Nikhilgupta18/practice-react_django
4226345a10c528308d13629907952e841621badc
[ "MIT" ]
null
null
null
from django.views import View from django.shortcuts import render from services.models import Service, ServiceUser, MaterialUser from account.models import ContactUs from inv.settings import enable_otp from account.tasks import send_email from django.shortcuts import render, redirect from django.contrib import messages...
48.708654
218
0.573346
47,672
0.941074
0
0
0
0
0
0
14,805
0.29226
144e75f0af24909b2f53fb50c3580fc3294a54f6
2,171
py
Python
S4/S4 Library/simulation/situations/visiting/stay_the_night_situation.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/situations/visiting/stay_the_night_situation.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/situations/visiting/stay_the_night_situation.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from role.role_state import RoleState from situations.situation_complex import SituationState, SituationStateData from situations.situation_job import SituationJob from situations.visiting.visiting_situation_common import VisitingNPCSituation import services import sims4.tuning.instances import sims4.tuning.tunable imp...
48.244444
558
0.739291
1,526
0.702902
0
0
325
0.149701
0
0
314
0.144634
144f7ff3eea9576a04434ab76782143398b49093
4,588
py
Python
starter_code/student_utils.py
Harshit4199/Patient-Selection-for-Diabetes-Drug-Testing
c6b7fbae0fe7737185543e958bc3b4c596c0f422
[ "MIT" ]
1
2021-07-25T17:41:07.000Z
2021-07-25T17:41:07.000Z
starter_code/student_utils.py
Harshit4199/Patient-Selection-for-Diabetes-Drug-Testing
c6b7fbae0fe7737185543e958bc3b4c596c0f422
[ "MIT" ]
null
null
null
starter_code/student_utils.py
Harshit4199/Patient-Selection-for-Diabetes-Drug-Testing
c6b7fbae0fe7737185543e958bc3b4c596c0f422
[ "MIT" ]
2
2020-10-04T23:01:40.000Z
2020-12-21T18:53:41.000Z
import pandas as pd import numpy as np import os import tensorflow as tf ####### STUDENTS FILL THIS OUT ###### #Question 3 def reduce_dimension_ndc(df, ndc_df): ''' df: pandas dataframe, input dataset ndc_df: pandas dataframe, drug code dataset used for mapping in generic names return: df: pand...
37
154
0.71469
0
0
0
0
0
0
0
0
2,200
0.479512
144fcd8882ebd8111a949df2336133b82d27c08c
982
py
Python
_resume/build.py
edublancas/edublancas.github.io
55990126d2c9530f7317b9c75395b836c5fc5420
[ "MIT", "BSD-3-Clause" ]
null
null
null
_resume/build.py
edublancas/edublancas.github.io
55990126d2c9530f7317b9c75395b836c5fc5420
[ "MIT", "BSD-3-Clause" ]
null
null
null
_resume/build.py
edublancas/edublancas.github.io
55990126d2c9530f7317b9c75395b836c5fc5420
[ "MIT", "BSD-3-Clause" ]
1
2019-01-02T22:21:02.000Z
2019-01-02T22:21:02.000Z
""" Build resume and cv from resume.md and cv.md """ import subprocess import os.path from jinja2 import Environment, FileSystemLoader from datetime import date def get_commit_hash(): out = subprocess.check_output('git show --oneline -s', shell=True) return out.decode('utf-8') .replace('\n', '').split(' ')[0]...
28.057143
76
0.706721
0
0
0
0
0
0
0
0
332
0.338086
145310a82264d9765ef6047c0373076d3bb1a072
511
py
Python
setup.py
SUNET/aws-sns-message-validator
2d613485ba7324e1f05b9327fa0fc327c25147ad
[ "MIT" ]
null
null
null
setup.py
SUNET/aws-sns-message-validator
2d613485ba7324e1f05b9327fa0fc327c25147ad
[ "MIT" ]
null
null
null
setup.py
SUNET/aws-sns-message-validator
2d613485ba7324e1f05b9327fa0fc327c25147ad
[ "MIT" ]
null
null
null
from datetime import datetime from setuptools import setup, find_packages DEPENDENCIES = [ 'requests', 'cryptography', ] EXCLUDED_PACKAGES = [ 'flask_example.py', ] setup( name='sns-message-validator', version='0.0.2+sunet', description='Validator for SNS messages.', author='https://githu...
22.217391
56
0.702544
0
0
0
0
0
0
0
0
186
0.363992
14541e0b1100f11493c9ef593f0ac473ab731bfc
907
py
Python
Util/nucleus_lib.py
cao13jf/CShaper
8fdbd40cb67bab9bfc657c5be652fc3d05f9cd00
[ "MIT" ]
3
2021-02-19T07:21:20.000Z
2021-09-11T10:04:58.000Z
Util/nucleus_lib.py
cao13jf/CShaper
8fdbd40cb67bab9bfc657c5be652fc3d05f9cd00
[ "MIT" ]
2
2020-11-13T18:56:49.000Z
2020-12-18T08:01:57.000Z
Util/nucleus_lib.py
cao13jf/CShaper
8fdbd40cb67bab9bfc657c5be652fc3d05f9cd00
[ "MIT" ]
3
2020-12-10T03:12:30.000Z
2021-06-01T15:07:07.000Z
''' This library is used to incorporate ''' import numpy as np def cell_prob_with_nucleus(cell, nucleus): ''' This function is used to figure out whether one region is cell or empty hole (without nucleus) :param cell: segmentations results with different labels :param nucleus: nucleus RawMemb image (...
31.275862
121
0.670342
0
0
0
0
0
0
0
0
503
0.554576
14544423bd130c73df8f39e8904810b8c2efbccd
5,677
py
Python
api/src/wt/provider/db/models/statistics.py
sedlar/work-tracking
78917ff8200829eb674142ce43b503d8e892d7eb
[ "BSD-2-Clause" ]
null
null
null
api/src/wt/provider/db/models/statistics.py
sedlar/work-tracking
78917ff8200829eb674142ce43b503d8e892d7eb
[ "BSD-2-Clause" ]
null
null
null
api/src/wt/provider/db/models/statistics.py
sedlar/work-tracking
78917ff8200829eb674142ce43b503d8e892d7eb
[ "BSD-2-Clause" ]
null
null
null
from collections import namedtuple from typing import List from decimal import Decimal from sqlalchemy import select, func from wt.common import Money, Currency from wt.costs.expenditures import ExpenditureStatus from wt.ids import EntityId, EntityType from wt.provider.db import DbModel from wt.provider.db.tables imp...
33.591716
94
0.578651
5,055
0.890435
0
0
0
0
0
0
305
0.053726
14554f3f2e1820159b31b772eade8453bd740328
6,232
py
Python
cp_mri/masks.py
vladpopovici/CP_mri
a198a3f65737be26611713c1d64125de888cc25d
[ "MIT" ]
null
null
null
cp_mri/masks.py
vladpopovici/CP_mri
a198a3f65737be26611713c1d64125de888cc25d
[ "MIT" ]
null
null
null
cp_mri/masks.py
vladpopovici/CP_mri
a198a3f65737be26611713c1d64125de888cc25d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # -------------------------------------------------------------------- # Copyright (c) 2022 Vlad Popovici <popovici@bioxlab.org> # # Licensed under the MIT License. See LICENSE file in root folder. # -------------------------------------------------------------------- # MASKS are single...
41.825503
99
0.56595
4,844
0.777279
0
0
77
0.012356
0
0
2,527
0.405488
14557dc9517de3207abf36fd3533f0849a533784
25,259
py
Python
src/gam/gapi/reports.py
GAM-team/GAM
b45ad5dcafc217690afc3c2e7086c1895f036172
[ "Apache-2.0" ]
102
2022-01-15T22:08:37.000Z
2022-03-31T16:02:20.000Z
src/gam/gapi/reports.py
GAM-team/GAM
b45ad5dcafc217690afc3c2e7086c1895f036172
[ "Apache-2.0" ]
29
2022-01-14T20:16:51.000Z
2022-03-25T15:56:33.000Z
src/gam/gapi/reports.py
GAM-team/GAM
b45ad5dcafc217690afc3c2e7086c1895f036172
[ "Apache-2.0" ]
30
2022-01-14T22:18:10.000Z
2022-03-31T17:31:40.000Z
import calendar import datetime import re import sys from dateutil.relativedelta import relativedelta import gam from gam.var import * from gam import controlflow from gam import display from gam import gapi from gam import utils from gam.gapi.directory import orgunits as gapi_directory_orgunits def build(): re...
42.811864
110
0.458926
0
0
0
0
0
0
0
0
3,275
0.129657
1456065316091e9651e32d09311e3ffec143cd48
28
py
Python
advanced/part13-17_asteroids/src/main.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
advanced/part13-17_asteroids/src/main.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
advanced/part13-17_asteroids/src/main.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
# WRITE YOUR SOLUTION HERE:
14
27
0.75
0
0
0
0
0
0
0
0
27
0.964286
14560849915561883889885a3454e4e8c7afc839
286
py
Python
example.py
davehenton/tf-lyrics
6c2a397df22acdf41a63012aacfcdc7b7eaf1302
[ "MIT" ]
null
null
null
example.py
davehenton/tf-lyrics
6c2a397df22acdf41a63012aacfcdc7b7eaf1302
[ "MIT" ]
null
null
null
example.py
davehenton/tf-lyrics
6c2a397df22acdf41a63012aacfcdc7b7eaf1302
[ "MIT" ]
null
null
null
from tflyrics import Poet, LyricsGenerator artists = ['Bob Dylan', 'Tim Buckley', 'The Beatles'] gen = LyricsGenerator(artists, per_artist=5) ds = gen.as_dataset(batch_size=4) p = Poet() p.train_on(ds, n_epochs=10) poem = p.generate(start_string='Hey ', n_gen_chars=1000) print(poem)
26
56
0.741259
0
0
0
0
0
0
0
0
43
0.15035
1456fcb0edd89c366e30cb0c8a0ffaa3820a7828
762
py
Python
netvisor/schemas/companies/list.py
fastmonkeys/netvisor.py
1555e06439d69dc7515ebe0ce3dc061c609bc1a1
[ "MIT" ]
3
2015-08-26T10:08:03.000Z
2022-03-16T09:31:52.000Z
netvisor/schemas/companies/list.py
fastmonkeys/netvisor.py
1555e06439d69dc7515ebe0ce3dc061c609bc1a1
[ "MIT" ]
6
2015-09-10T08:32:21.000Z
2016-09-19T14:32:07.000Z
netvisor/schemas/companies/list.py
fastmonkeys/netvisor.py
1555e06439d69dc7515ebe0ce3dc061c609bc1a1
[ "MIT" ]
7
2015-09-10T08:23:04.000Z
2019-08-28T17:39:08.000Z
# -*- coding: utf-8 -*- """ netvisor.schemas.companies.list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2013-2016 by Fast Monkeys Oy. :license: MIT, see LICENSE for more details. """ from marshmallow import Schema, fields, post_load from ..fields import Boolean, List class CompanySchema(Schema):...
25.4
68
0.654856
466
0.611549
0
0
122
0.160105
0
0
228
0.299213
1457ef0dea7deba4f2c8c70b3f33da68626af688
608
py
Python
merge_delim.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
null
null
null
merge_delim.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
1
2020-09-17T11:14:13.000Z
2020-09-17T11:14:13.000Z
merge_delim.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 import sys infiles = sys.argv[1:] data = [] genes = [] for i, fname in enumerate(infiles): sys.stderr.write(fname + '\n') d = [] with open(fname, 'rb') as ihandle: for j, line in enumerate(ihandle): g, c = line.strip().split() if i != 0 and g != gene...
24.32
43
0.509868
0
0
0
0
0
0
0
0
50
0.082237
1458c5f022bcbdb49cfdd4c7518d98dccf9754e4
1,372
py
Python
provider/facebook.py
marinewater/pyramid-social-auth
926f230294ec6b0fdf02a5ed4113073d82a9d18c
[ "MIT" ]
2
2015-02-10T01:19:21.000Z
2016-07-24T14:40:59.000Z
provider/facebook.py
marinewater/pyramid-social-auth
926f230294ec6b0fdf02a5ed4113073d82a9d18c
[ "MIT" ]
null
null
null
provider/facebook.py
marinewater/pyramid-social-auth
926f230294ec6b0fdf02a5ed4113073d82a9d18c
[ "MIT" ]
null
null
null
from provider.base import BaseProvider class FacebookProvider(BaseProvider): def __init__(self, client_id, client_secret, name, redirect_uri, state=None): """ :param client_id: :param client_secret: :param name: :param redirect_uri: :param state: ...
28
113
0.569971
1,331
0.970117
0
0
0
0
0
0
546
0.397959
1458dc2ffa19f2e218619cc3c1b9af0b90945664
14,757
py
Python
eratosthenes/preprocessing/color_transforms.py
GO-Eratosthenes/start-code
d40192a482a260676db9ec9b3ece6854c0d8ccf7
[ "Apache-2.0" ]
1
2021-11-09T14:45:05.000Z
2021-11-09T14:45:05.000Z
eratosthenes/preprocessing/color_transforms.py
GO-Eratosthenes/start-code
d40192a482a260676db9ec9b3ece6854c0d8ccf7
[ "Apache-2.0" ]
4
2022-02-22T13:42:42.000Z
2022-03-24T22:07:24.000Z
eratosthenes/preprocessing/color_transforms.py
GO-Eratosthenes/start-code
d40192a482a260676db9ec9b3ece6854c0d8ccf7
[ "Apache-2.0" ]
null
null
null
import numpy as np from .image_transforms import mat_to_gray def rgb2hcv(Blue, Green, Red): """transform red green blue arrays to a color space Parameters ---------- Blue : np.array, size=(m,n) Blue band of satellite image Green : np.array, size=(m,n) Green band of satellite image...
27.226937
81
0.515959
0
0
0
0
0
0
0
0
8,448
0.572397
14590358be50b254390f5fc7eebb4b6ad228a02e
148
py
Python
Week3/Hospitalisations_ClassificationCase/import.py
PenelopeCorsica/AppliedML2021
1b48fe56553d7e4486e2542cf5d26b5aa6f5b473
[ "BSD-3-Clause" ]
13
2021-04-20T13:13:51.000Z
2022-03-28T18:08:07.000Z
Week3/Hospitalisations_ClassificationCase/import.py
PenelopeCorsica/AppliedML2021
1b48fe56553d7e4486e2542cf5d26b5aa6f5b473
[ "BSD-3-Clause" ]
null
null
null
Week3/Hospitalisations_ClassificationCase/import.py
PenelopeCorsica/AppliedML2021
1b48fe56553d7e4486e2542cf5d26b5aa6f5b473
[ "BSD-3-Clause" ]
8
2021-04-16T11:03:42.000Z
2021-09-29T02:25:15.000Z
import pandas as pd X_train = pd.read_csv("X_train.csv") df_y = pd.read_csv("y_train.csv") y_train = df_y["y"] X_test = pd.read_csv("X_test.csv")
18.5
36
0.702703
0
0
0
0
0
0
0
0
41
0.277027
145a12e1b7a4ae3dc30b7b7ae78473fce6b23434
1,266
py
Python
redash/handlers/embed.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/handlers/embed.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/handlers/embed.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
1
2021-07-27T06:27:29.000Z
2021-07-27T06:27:29.000Z
import logging from flask import render_template, request, redirect, session, url_for, flash from flask.ext.restful import abort from flask_login import current_user, login_required from redash import models, settings from redash.wsgi import app from redash.utils import json_dumps @app.route('/embed/query/<query_id...
33.315789
89
0.650079
0
0
0
0
979
0.773302
0
0
128
0.101106
145a2aac257a81ff3e9b25e0317ce229eb2a70b3
15,109
py
Python
test_vs_model_DEMs.py
drewleonard42/CoronaTemps
210642175e063b39dd1878c2731f15bf34e4225f
[ "BSD-2-Clause" ]
1
2019-07-31T17:27:12.000Z
2019-07-31T17:27:12.000Z
test_vs_model_DEMs.py
SolarDrew/CoronaTemps
210642175e063b39dd1878c2731f15bf34e4225f
[ "BSD-2-Clause" ]
null
null
null
test_vs_model_DEMs.py
SolarDrew/CoronaTemps
210642175e063b39dd1878c2731f15bf34e4225f
[ "BSD-2-Clause" ]
2
2015-07-07T10:31:03.000Z
2015-10-19T15:42:47.000Z
# -*- coding: utf-8 -*- """ Script to produce synthetic AIA data based on arbitrary model DEMs and test the results of the tempmap code against the model. Created on Mon Jul 28 16:34:28 2014 @author: Drew Leonard """ import numpy as np from matplotlib import use, rc use('agg') rc('savefig', bbox='tight', pad_inches=...
41.057065
110
0.613608
0
0
0
0
0
0
0
0
5,912
0.39129
145acd330fc58583c49d623ffb6e709da478a671
315
py
Python
tests/test_set_up_logger.py
dennlinger/hypergraph-document-store
72b90119b163b92254c73442bee52cde55e58517
[ "MIT" ]
null
null
null
tests/test_set_up_logger.py
dennlinger/hypergraph-document-store
72b90119b163b92254c73442bee52cde55e58517
[ "MIT" ]
1
2019-12-12T09:20:00.000Z
2019-12-12T09:20:00.000Z
tests/test_set_up_logger.py
dennlinger/hypergraph-document-store
72b90119b163b92254c73442bee52cde55e58517
[ "MIT" ]
1
2021-07-22T14:16:47.000Z
2021-07-22T14:16:47.000Z
from unittest import TestCase import os class TestSet_up_logger(TestCase): def test_set_up_logger(self): from utils import set_up_logger from logging import Logger logger = set_up_logger("test", "test.log") self.assertIsInstance(logger, Logger) os.remove("test.log")
22.5
50
0.688889
272
0.863492
0
0
0
0
0
0
26
0.08254
145d2ba73cbb15562b18fa340ca1117a5d2135a1
2,459
py
Python
rubicon_reminders_cli.py
ZG34/StratNotes
ec8e0f50740a558d14b5f790aa67b26dc3a85d90
[ "MIT" ]
6
2022-01-21T07:16:12.000Z
2022-01-23T22:01:16.000Z
rubicon_reminders_cli.py
ZG34/StratNotes
ec8e0f50740a558d14b5f790aa67b26dc3a85d90
[ "MIT" ]
null
null
null
rubicon_reminders_cli.py
ZG34/StratNotes
ec8e0f50740a558d14b5f790aa67b26dc3a85d90
[ "MIT" ]
4
2022-01-21T07:17:03.000Z
2022-01-23T03:37:12.000Z
# the comments in this file were made while learning, as reminders # to RUN APP IN CMD PROMPT: cd to this directory, or place in default CMD directory: # then run 'python rubicon_reminders_cli.py' from os import listdir from datetime import datetime # this assigns dt variable as date + timestamp dt = (datetime.now()...
34.633803
101
0.581537
0
0
0
0
0
0
0
0
1,217
0.494917
145d3ea9060b7295f0b7e5b21153fbe39e93cf1f
12,213
py
Python
tradingdb/relationaldb/tests/utils.py
gnosis/gnosisdb
b3055406fba7061c3677bfd16e19f8bc5c97db2c
[ "MIT" ]
11
2017-06-23T15:35:10.000Z
2018-04-27T06:11:25.000Z
tradingdb/relationaldb/tests/utils.py
gnosis/gnosisdb
b3055406fba7061c3677bfd16e19f8bc5c97db2c
[ "MIT" ]
42
2018-01-17T15:46:33.000Z
2018-05-08T08:13:17.000Z
tradingdb/relationaldb/tests/utils.py
gnosis/gnosisdb
b3055406fba7061c3677bfd16e19f8bc5c97db2c
[ "MIT" ]
12
2017-07-03T15:51:41.000Z
2018-03-25T17:31:54.000Z
tournament_token_bytecode = "0x608060405233600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611776806100546000396000f3006080604052600436106100fc576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806302d05d3f1...
6,106.5
12,212
0.999509
0
0
0
0
0
0
0
0
12,184
0.997625
145d4d73e5688c8c92783fdd2c96db07fb334f0c
352
py
Python
script/generate_user.py
MTDzi/data_nanodegree_project_5
a436b34d4a1aa030357d1db82d1e1a7439061c1a
[ "Apache-2.0" ]
null
null
null
script/generate_user.py
MTDzi/data_nanodegree_project_5
a436b34d4a1aa030357d1db82d1e1a7439061c1a
[ "Apache-2.0" ]
6
2020-04-19T10:18:05.000Z
2020-04-28T16:26:07.000Z
script/generate_user.py
MTDzi/data_nanodegree_project_5
a436b34d4a1aa030357d1db82d1e1a7439061c1a
[ "Apache-2.0" ]
null
null
null
import os from airflow import models, settings from airflow.contrib.auth.backends.password_auth import PasswordUser user = PasswordUser(models.User()) user.username = os.environ['AIRFLOW_UI_USER'] user.password = os.environ['AIRFLOW_UI_PASSWORD'] user.superuser = True session = settings.Session() session.add(user) s...
23.466667
68
0.795455
0
0
0
0
0
0
0
0
38
0.107955
145e6aad4169f10659d6af4a8eac4c1ff2e1a29b
909
py
Python
generic_functions.py
MrHellYea/Art-Gallery-SQL
6e56ee18eb5dc0d2f4efa2fbaf01d887ed808dbf
[ "MIT" ]
null
null
null
generic_functions.py
MrHellYea/Art-Gallery-SQL
6e56ee18eb5dc0d2f4efa2fbaf01d887ed808dbf
[ "MIT" ]
null
null
null
generic_functions.py
MrHellYea/Art-Gallery-SQL
6e56ee18eb5dc0d2f4efa2fbaf01d887ed808dbf
[ "MIT" ]
null
null
null
def get_remain(cpf: str, start: int, upto: int) -> int: total = 0 for count, num in enumerate(cpf[:upto]): try: total += int(num) * (start - count) except ValueError: return None remain = (total * 10) % 11 remain = remain if remain != 10 else 0 ...
29.322581
69
0.547855
0
0
0
0
0
0
0
0
123
0.135314
145ef1cdc80727bde5f62588059dc90f98d8c984
535
py
Python
src/generic.py
jfecroft/Hamilton
35ade5fc07a330e6a05e1ea391a16b8874737eb5
[ "MIT" ]
null
null
null
src/generic.py
jfecroft/Hamilton
35ade5fc07a330e6a05e1ea391a16b8874737eb5
[ "MIT" ]
null
null
null
src/generic.py
jfecroft/Hamilton
35ade5fc07a330e6a05e1ea391a16b8874737eb5
[ "MIT" ]
null
null
null
""" generic functions """ from yaml import load def reduce_output(func, item, *args, **kwargs): """ simple function to reduce output from existing functions if func returns an iterable - just return item """ def inner_func(*args, **kwargs): return func(*args, **kwargs)[item] return inn...
21.4
60
0.642991
0
0
0
0
0
0
0
0
219
0.409346
145f50f90a8086649d041c871071f93bec34f696
334
py
Python
app/app.py
raevilman/aws_lambda_python_skeleton
aebd3a4f80bc1149662c8a0b1af5df40d28eff01
[ "MIT" ]
3
2020-10-19T11:31:10.000Z
2021-02-19T12:14:26.000Z
app/app.py
raevilman/aws_lambda_python_skeleton
aebd3a4f80bc1149662c8a0b1af5df40d28eff01
[ "MIT" ]
null
null
null
app/app.py
raevilman/aws_lambda_python_skeleton
aebd3a4f80bc1149662c8a0b1af5df40d28eff01
[ "MIT" ]
1
2021-01-21T10:29:10.000Z
2021-01-21T10:29:10.000Z
import json from app.event import Event from app.responder import send_ok_response from app.utils import get_logger # Setup logging logger = get_logger("app") def run(event: Event): logger.info(event.http_path()) logger.info(event.http_method()) return send_ok_response(json.dumps({ 'message': 'H...
19.647059
42
0.715569
0
0
0
0
0
0
0
0
36
0.107784
146025215903f4a31f6eb67eb9638cd290edeaac
592
py
Python
blender/arm/logicnode/transform/LN_set_object_location.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
blender/arm/logicnode/transform/LN_set_object_location.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
blender/arm/logicnode/transform/LN_set_object_location.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * class SetLocationNode(ArmLogicTreeNode): """Use to set the location of an object.""" bl_idname = 'LNSetLocationNode' bl_label = 'Set Object Location' arm_version = 1 def init(self, context): super(SetLocationNode, self).init(context) self.add_i...
34.823529
71
0.706081
479
0.809122
0
0
0
0
0
0
201
0.339527
14602718b6991bccc17ff0fb8c058bc954f6e408
32,756
py
Python
lichess/client.py
qe/lichess
4d6aaeeeae57df863663565b652b7d3533a538ac
[ "MIT" ]
null
null
null
lichess/client.py
qe/lichess
4d6aaeeeae57df863663565b652b7d3533a538ac
[ "MIT" ]
null
null
null
lichess/client.py
qe/lichess
4d6aaeeeae57df863663565b652b7d3533a538ac
[ "MIT" ]
null
null
null
from .enums import * from .utils import * from .exceptions import * import logging import requests import urllib logger = logging.getLogger(__name__) VALID_PERF_TYPES = [_.value for _ in PerfType] class Client: def __init__(self, token=None): self.url = "https://lichess.org/" self.s = requests.S...
38.177156
281
0.590396
32,553
0.993803
0
0
0
0
0
0
20,749
0.633441
1461a4d69bcc5d469dfc60c076132f4feb9b241d
2,273
py
Python
src/mcedit2/widgets/infopanel.py
elcarrion06/mcedit2
4bb98da521447b6cf43d923cea9f00acf2f427e9
[ "BSD-3-Clause" ]
673
2015-01-02T02:08:13.000Z
2022-03-24T19:38:14.000Z
src/mcedit2/widgets/infopanel.py
ozzhates/mcedit2
4bb98da521447b6cf43d923cea9f00acf2f427e9
[ "BSD-3-Clause" ]
526
2015-01-01T02:10:53.000Z
2022-02-06T16:24:21.000Z
src/mcedit2/widgets/infopanel.py
ozzhates/mcedit2
4bb98da521447b6cf43d923cea9f00acf2f427e9
[ "BSD-3-Clause" ]
231
2015-01-01T16:47:30.000Z
2022-03-31T21:51:55.000Z
""" ${NAME} """ from __future__ import absolute_import, division, print_function, unicode_literals import logging import time import weakref from PySide import QtGui from mcedit2.widgets.layout import Column log = logging.getLogger(__name__) class InfoPanel(QtGui.QWidget): def __init__(self, attrs, signals...
32.014085
104
0.601848
2,021
0.889133
0
0
340
0.149582
0
0
696
0.306203
146252a9963181e60bb9b862f53e83071c1987b1
2,925
py
Python
venv/lib/python3.7/site-packages/MDAnalysis/selections/__init__.py
dtklinh/GBRDE
c87fada492f24943d7d6b6ecda61c67f41d5bf83
[ "MIT" ]
2
2021-03-04T16:57:06.000Z
2021-08-11T01:42:29.000Z
venv/lib/python3.7/site-packages/MDAnalysis/selections/__init__.py
dtklinh/GBRDE
c87fada492f24943d7d6b6ecda61c67f41d5bf83
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/MDAnalysis/selections/__init__.py
dtklinh/GBRDE
c87fada492f24943d7d6b6ecda61c67f41d5bf83
[ "MIT" ]
null
null
null
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
31.451613
80
0.696752
0
0
0
0
0
0
0
0
2,286
0.781538
1466e6f9e9390c64c5ae93f8f73e9d6b213aba54
4,536
py
Python
cs15211/PalindromePermutation.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/PalindromePermutation.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/PalindromePermutation.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/palindrome-permutation/' # https://github.com/kamyu104/LeetCode/blob/master/Python/palindrome-permutation.py # Time: O(n) # Space: O(1) # # Description: Leetcode # 266. Palindrome Permutation # # Given a string, determine if a permutation of the string could form a palindrom...
28.173913
106
0.573633
752
0.165785
0
0
0
0
0
0
3,778
0.832892
14686ee7aaaa9630d28bd94df5f95d8bfc28579e
2,398
py
Python
others/edge/face_identification/sphereface20/tflite/postprocess/eval.py
luluseptember/inference
acbc7b0bf288343ed81e62b69dea8afec03d679b
[ "Apache-2.0" ]
4
2019-07-26T03:00:39.000Z
2021-01-29T16:12:21.000Z
others/edge/face_identification/sphereface20/tflite/postprocess/eval.py
luluseptember/inference
acbc7b0bf288343ed81e62b69dea8afec03d679b
[ "Apache-2.0" ]
5
2020-09-26T00:53:40.000Z
2022-02-10T01:13:29.000Z
others/edge/face_identification/sphereface20/tflite/postprocess/eval.py
luluseptember/inference
acbc7b0bf288343ed81e62b69dea8afec03d679b
[ "Apache-2.0" ]
7
2019-07-23T14:07:21.000Z
2021-07-05T12:41:08.000Z
""" To calculate the verification accuracy of LFW dataset """ # MIT License # # Copyright (c) 2018 Jimmy Chiang # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, includi...
38.677419
94
0.741451
0
0
0
0
0
0
0
0
1,184
0.493745
146b5de715f79bfd487c02d589bad6ff62c03076
5,032
py
Python
LDAR_Sim/src/ldar_sim_main.py
sinakiaei/LDAR_Sim
299d81d51bd5dd734eb3bf0d8fe671d2b7eebe01
[ "MIT" ]
2
2021-11-08T13:55:45.000Z
2021-11-16T16:46:07.000Z
LDAR_Sim/src/ldar_sim_main.py
sinakiaei/LDAR_Sim
299d81d51bd5dd734eb3bf0d8fe671d2b7eebe01
[ "MIT" ]
4
2021-11-19T20:43:39.000Z
2022-01-20T00:14:39.000Z
LDAR_Sim/src/ldar_sim_main.py
sinakiaei/LDAR_Sim
299d81d51bd5dd734eb3bf0d8fe671d2b7eebe01
[ "MIT" ]
2
2021-11-18T17:10:10.000Z
2022-01-14T21:39:06.000Z
# ------------------------------------------------------------------------------ # Program: The LDAR Simulator (LDAR-Sim) # File: LDAR-Sim main # Purpose: Interface for parameterizing and running LDAR-Sim. # # Copyright (C) 2018-2021 Intelligent Methane Monitoring and Management System (IM3S) Group # # ...
39.3125
98
0.69217
0
0
0
0
0
0
0
0
2,288
0.45469
146b6b043636c6d237f0ca4b07fe4ebbf0597b33
3,037
py
Python
results/try_different_variance_maps.py
osagha/turktools
389c1243e837e946080b28a5ca83faf62890f4b4
[ "Unlicense", "MIT" ]
null
null
null
results/try_different_variance_maps.py
osagha/turktools
389c1243e837e946080b28a5ca83faf62890f4b4
[ "Unlicense", "MIT" ]
null
null
null
results/try_different_variance_maps.py
osagha/turktools
389c1243e837e946080b28a5ca83faf62890f4b4
[ "Unlicense", "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np from sympy import Symbol, solve from sympy.abc import a, b, c from fit_beta import fit_beta_mean_uncertainty, kl_dirichlet RESULTS_FILE = "../results/results_beta_exp.csv" FILTER_BY = "range" results = pd.read_csv(RESULTS_FILE...
39.960526
156
0.641093
0
0
0
0
0
0
0
0
987
0.324992
146b9782c6137a18b395c75b1a9f1454ebb38ab8
5,977
py
Python
conf_testing/lib/HABAppTests/test_base.py
pailloM/HABApp
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
[ "Apache-2.0" ]
null
null
null
conf_testing/lib/HABAppTests/test_base.py
pailloM/HABApp
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
[ "Apache-2.0" ]
null
null
null
conf_testing/lib/HABAppTests/test_base.py
pailloM/HABApp
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
[ "Apache-2.0" ]
null
null
null
import logging import threading import typing import HABApp from HABApp.core.events.habapp_events import HABAppException from ._rest_patcher import RestPatcher log = logging.getLogger('HABApp.Tests') LOCK = threading.Lock() class TestResult: def __init__(self): self.run = 0 self.io = 0 ...
30.340102
110
0.574536
5,454
0.912498
0
0
0
0
0
0
1,099
0.183872
146cd6968f58dcd6a930000bd6f24a70be3c40a2
1,948
py
Python
dags/connect_to_oracle_and_sql.py
whatwouldaristotledo/docker-airflow
2c6f6179170d87e2046bd844480bfddc6309b1de
[ "Apache-2.0" ]
null
null
null
dags/connect_to_oracle_and_sql.py
whatwouldaristotledo/docker-airflow
2c6f6179170d87e2046bd844480bfddc6309b1de
[ "Apache-2.0" ]
null
null
null
dags/connect_to_oracle_and_sql.py
whatwouldaristotledo/docker-airflow
2c6f6179170d87e2046bd844480bfddc6309b1de
[ "Apache-2.0" ]
null
null
null
from airflow.models import DAG from airflow.utils.dates import days_ago from airflow.operators.python_operator import PythonOperator from datetime import datetime import pandas as pd import urllib import random import cx_Oracle import pyodbc import sqlalchemy args={ 'owner': 'BI', ### start date is used to for t...
36.754717
153
0.747433
0
0
0
0
0
0
0
0
837
0.429671
146ce26ee142df10da663c661efd59cf5bef1b60
10,674
py
Python
tests/test_packages/test_skills/test_tac_negotiation/test_helpers.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
tests/test_packages/test_skills/test_tac_negotiation/test_helpers.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
tests/test_packages/test_skills/test_tac_negotiation/test_helpers.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
37.985765
92
0.570639
9,349
0.875867
0
0
92
0.008619
0
0
3,515
0.329305
146de2700d3f564e16e6e3c269777835f59d7552
5,930
py
Python
go/vumitools/metrics_worker.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/vumitools/metrics_worker.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/vumitools/metrics_worker.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
# -*- test-case-name: go.vumitools.tests.test_metrics_worker -*- from twisted.internet.defer import inlineCallbacks, returnValue from twisted.internet.task import LoopingCall from vumi import log from vumi.worker import BaseWorker from vumi.config import ConfigInt, ConfigError from vumi.persist.model import Manager ...
38.258065
79
0.685835
5,459
0.920573
2,816
0.474874
2,948
0.497133
0
0
1,474
0.248567
146f9bd7318af3cc0fd1815d1722bd7ff1cb6d1d
6,434
py
Python
rastervision/new_version/learner/classification_learner.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
1
2019-11-07T10:02:23.000Z
2019-11-07T10:02:23.000Z
rastervision/new_version/learner/classification_learner.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
rastervision/new_version/learner/classification_learner.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
import warnings warnings.filterwarnings('ignore') # noqa from os.path import join, isfile, isdir import zipfile import torch from torchvision import models import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader, Subset, ConcatDataset from torchvision.transforms import (Compose, ...
37.190751
84
0.546316
5,573
0.86618
0
0
0
0
0
0
213
0.033105
146fb23c6714dde0702a9be7da3d2cf6a252772c
1,558
py
Python
scraping/get-list-2/scrapes/scrapes/spiders/amazon_listspider.py
hvarS/AmazonPrivacy
d3c975e428d8ac80dbe4b4e7a2e33082eec89524
[ "MIT" ]
null
null
null
scraping/get-list-2/scrapes/scrapes/spiders/amazon_listspider.py
hvarS/AmazonPrivacy
d3c975e428d8ac80dbe4b4e7a2e33082eec89524
[ "MIT" ]
null
null
null
scraping/get-list-2/scrapes/scrapes/spiders/amazon_listspider.py
hvarS/AmazonPrivacy
d3c975e428d8ac80dbe4b4e7a2e33082eec89524
[ "MIT" ]
null
null
null
import scrapy import pandas as pd import time import random import string import os class QuotesSpider(scrapy.Spider): name = "amazonspione" def start_requests(self): os.mkdir("./products") list_of_urls = [] link_file = "./names.csv" df1 = pd.read_csv(link_file) length...
30.54902
94
0.530167
1,472
0.944801
378
0.242619
0
0
0
0
302
0.193838
147035cef75b4248a1685bdc47735841a296c61d
2,407
py
Python
data_pipeline/db/file_query_results.py
iagcl/data_pipeline
b9b965d43a4261357e417f4eeee5d8b7d2dfd858
[ "Apache-2.0" ]
16
2017-10-31T21:43:26.000Z
2019-08-11T08:49:06.000Z
data_pipeline/db/file_query_results.py
iagcl/data_pipeline
b9b965d43a4261357e417f4eeee5d8b7d2dfd858
[ "Apache-2.0" ]
1
2017-11-01T06:25:56.000Z
2017-11-01T06:25:56.000Z
data_pipeline/db/file_query_results.py
iagcl/data_pipeline
b9b965d43a4261357e417f4eeee5d8b7d2dfd858
[ "Apache-2.0" ]
9
2017-10-30T05:23:15.000Z
2022-02-17T03:53:09.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.671053
79
0.636061
1,166
0.48442
0
0
0
0
0
0
1,057
0.439136
14707c163eafcd974725dfd54d470997350920ec
1,008
py
Python
scripts/use_dataframe_with_info.py
HK3-Lab-Team/pytrousse
59744b3e3c19dd07b43fec3ddaf60bc889a140a9
[ "Apache-2.0" ]
null
null
null
scripts/use_dataframe_with_info.py
HK3-Lab-Team/pytrousse
59744b3e3c19dd07b43fec3ddaf60bc889a140a9
[ "Apache-2.0" ]
52
2020-09-11T10:33:39.000Z
2021-02-03T12:09:50.000Z
scripts/use_dataframe_with_info.py
HK3-Lab-Team/pytrousse
59744b3e3c19dd07b43fec3ddaf60bc889a140a9
[ "Apache-2.0" ]
null
null
null
import os import time from trousse.dataset import Dataset df_sani_dir = os.path.join( "/home/lorenzo-hk3lab/WorkspaceHK3Lab/", "smvet", "data", "Sani_15300_anonym.csv", ) metadata_cols = ( "GROUPS TAG DATA_SCHEDA NOME ID_SCHEDA COMUNE PROV MONTH YEAR BREED" " SEX AGE SEXUAL STATUS BODYWEIGHT ...
25.846154
78
0.670635
0
0
0
0
0
0
0
0
493
0.488603
14717a6c7ca6f6055e2601fb501025c2b4eb4af3
3,303
py
Python
tests/test_spatial_sort.py
Ruibin-Liu/Despace
f26b06398a1100696f335ca1c7f4852b31e1f2e9
[ "Apache-2.0" ]
2
2022-03-17T02:37:45.000Z
2022-03-17T13:24:24.000Z
tests/test_spatial_sort.py
Ruibin-Liu/Despace
f26b06398a1100696f335ca1c7f4852b31e1f2e9
[ "Apache-2.0" ]
1
2022-03-17T01:22:27.000Z
2022-03-17T03:28:10.000Z
tests/test_spatial_sort.py
Ruibin-Liu/Despace
f26b06398a1100696f335ca1c7f4852b31e1f2e9
[ "Apache-2.0" ]
null
null
null
import sys from os.path import exists from unittest.mock import patch import numpy as np # type: ignore import pytest from despace.spatial_sort import SortND sys.path.append("..") coords_1d = np.array([1.0, 0.1, 1.5, -0.3, 0.0]) sorted_coords_1d = np.array([-0.3, 0.0, 0.1, 1.0, 1.5]) coords_2d = np.array( [[1...
23.76259
88
0.546776
0
0
0
0
897
0.271571
0
0
273
0.082652
147277a6aa2b1959c8dba97e04e292544cd443d3
5,517
py
Python
examples/pendulum/Train_Pendulum.py
JayLago/Hankel-DLDMD
c1b739a7488fbeb71a1f581c288843e9de66d2fc
[ "MIT" ]
null
null
null
examples/pendulum/Train_Pendulum.py
JayLago/Hankel-DLDMD
c1b739a7488fbeb71a1f581c288843e9de66d2fc
[ "MIT" ]
null
null
null
examples/pendulum/Train_Pendulum.py
JayLago/Hankel-DLDMD
c1b739a7488fbeb71a1f581c288843e9de66d2fc
[ "MIT" ]
null
null
null
""" Author: Jay Lago, SDSU, 2021 """ import tensorflow as tf import pickle import datetime as dt import os import sys sys.path.insert(0, '../../') import HDMD as dl import LossDLDMD as lf import Data as dat import Training as tr # ===========================================================================...
40.270073
106
0.634584
0
0
0
0
0
0
0
0
2,352
0.426319
14728ecbe8e51b8719ee9b289419e71b4c078ce0
1,542
py
Python
FIST.py
IGN-Styly/FIST
69f0b11b863f3440d716ad302e7fc2acddfb145f
[ "MIT" ]
2
2022-01-20T18:57:53.000Z
2022-03-16T23:23:47.000Z
FIST.py
IGN-Styly/FIST
69f0b11b863f3440d716ad302e7fc2acddfb145f
[ "MIT" ]
2
2022-01-20T18:41:46.000Z
2022-01-24T18:15:53.000Z
FIST.py
IGN-Styly/FIST
69f0b11b863f3440d716ad302e7fc2acddfb145f
[ "MIT" ]
1
2022-01-20T01:29:03.000Z
2022-01-20T01:29:03.000Z
import json def is_valid(smc_type): # checks if smc_type is valid if smc_type == 'vmt': return True elif smc_type == 'flt': return True elif smc_type == 'nfl': return True else: return False def parse_vmt(contract): try: contract.get('value') cont...
22.028571
78
0.592088
0
0
0
0
0
0
0
0
247
0.160182
1472d75a6abf289e47bd71dbaf7c5950d9fe47ac
1,332
py
Python
john_zelle_python3/gpa.py
alirkaya/programming-textbook-solutions
7362dce474b8a881d654f95604e09d1d0e76aec2
[ "MIT" ]
null
null
null
john_zelle_python3/gpa.py
alirkaya/programming-textbook-solutions
7362dce474b8a881d654f95604e09d1d0e76aec2
[ "MIT" ]
null
null
null
john_zelle_python3/gpa.py
alirkaya/programming-textbook-solutions
7362dce474b8a881d654f95604e09d1d0e76aec2
[ "MIT" ]
null
null
null
class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def get_name(self): return self.name def get_hours(self): return self.hours def get_qpoints(self): return self.qpoints ...
25.615385
63
0.627628
377
0.283033
0
0
0
0
0
0
441
0.331081
147420a84e36353cde55058397ca18c7de1ab832
1,292
py
Python
{{cookiecutter.project_name}}/Data/sample_treatment/simple_repeat.py
piperwelch/SymbulationProjectTemplate
7bdfafb33bae821fc0f3406e363b8b9f0b7cc831
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/Data/sample_treatment/simple_repeat.py
piperwelch/SymbulationProjectTemplate
7bdfafb33bae821fc0f3406e363b8b9f0b7cc831
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/Data/sample_treatment/simple_repeat.py
piperwelch/SymbulationProjectTemplate
7bdfafb33bae821fc0f3406e363b8b9f0b7cc831
[ "MIT" ]
null
null
null
#a script to run several replicates of several treatments locally #You should create a directory for your result files and run this script from within that directory seeds = range(21, 41) verts = [0.3] h_mut_rate = [0.1, 0.5, 1.0] import subprocess def cmd(command): '''This wait causes all executions to run in s...
46.142857
279
0.645511
0
0
0
0
0
0
0
0
806
0.623839
147447bc0d6e65d1e4b7dc6b9ee8bffa5888dd3b
499
py
Python
First Unique Character in a String.py
frank0215/Leetcode_python
9428ded4f9abd347b12bfef8aa1dd2d177f3afea
[ "MIT" ]
null
null
null
First Unique Character in a String.py
frank0215/Leetcode_python
9428ded4f9abd347b12bfef8aa1dd2d177f3afea
[ "MIT" ]
null
null
null
First Unique Character in a String.py
frank0215/Leetcode_python
9428ded4f9abd347b12bfef8aa1dd2d177f3afea
[ "MIT" ]
null
null
null
class Solution: def firstUniqChar(self, s): table = {} for ele in s: table[ele] = table.get(ele, 0) + 1 # for i in range(len(s)): # if table[s[i]] == 1: # return i for ele in s: if table[ele] == 1: return s.index(ele...
27.722222
46
0.472946
339
0.679359
0
0
0
0
0
0
152
0.304609
14770d630f638d640c9e37a29b68e980bdb4f14d
2,897
py
Python
tests/list_tests.py
kzawisto/mc
ce37f0bbfd73e0767b4edc905ce2a75777b33f42
[ "MIT" ]
null
null
null
tests/list_tests.py
kzawisto/mc
ce37f0bbfd73e0767b4edc905ce2a75777b33f42
[ "MIT" ]
null
null
null
tests/list_tests.py
kzawisto/mc
ce37f0bbfd73e0767b4edc905ce2a75777b33f42
[ "MIT" ]
null
null
null
from hamcrest import * from nose.tools import eq_ from mc import List, Some, Nothing,add def test_list_map(): eq_(List([1, 2, 3]).map(lambda x: x * 2), [2, 4, 6]) def test_list_flat_map(): eq_(List([1, 3]).flat_map(lambda x: (x * 2, x * 4)), [2, 4, 6, 12]) def test_list_filter(): eq_(List([1, 2, 3]).f...
21.145985
85
0.556438
0
0
0
0
0
0
0
0
48
0.016569
147880e13d2fb6983b451f768932d5c83c8eb10b
1,087
py
Python
src/groktoolkit/__init__.py
zopefoundation/groktoolkit
6d295997510139b0588b2401d5f54fca8234a15e
[ "ZPL-2.1" ]
2
2015-12-05T05:46:55.000Z
2017-07-03T17:39:32.000Z
src/groktoolkit/__init__.py
zopefoundation/groktoolkit
6d295997510139b0588b2401d5f54fca8234a15e
[ "ZPL-2.1" ]
7
2017-07-06T15:07:31.000Z
2021-04-20T14:38:21.000Z
src/groktoolkit/__init__.py
zopefoundation/groktoolkit
6d295997510139b0588b2401d5f54fca8234a15e
[ "ZPL-2.1" ]
2
2016-03-20T18:03:15.000Z
2018-01-11T04:33:40.000Z
import sys import re import os import commands HOST = 'grok.zope.org' RELEASEINFOPATH = '/var/www/html/grok/releaseinfo' def _upload_gtk_versions(packageroot, version): # Create the releaseinfo directory for this version. cmd = 'ssh %s "mkdir %s/%s"' % (HOST, RELEASEINFOPATH, version) print(cmd + '\n') ...
31.970588
68
0.679853
0
0
0
0
0
0
0
0
367
0.337626
147a0334d820a059fbd8f4598327b2b7c87e1f19
3,720
py
Python
obywatele/migrations/0020_auto_20201225_1624.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
7
2016-02-21T17:25:54.000Z
2021-10-09T19:36:10.000Z
obywatele/migrations/0020_auto_20201225_1624.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
19
2020-02-11T23:55:01.000Z
2022-03-31T18:11:56.000Z
obywatele/migrations/0020_auto_20201225_1624.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
3
2016-01-20T22:34:58.000Z
2020-09-16T07:45:42.000Z
# Generated by Django 3.1 on 2020-12-25 15:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('obywatele', '0019_auto_20201225_1621'), ] operations = [ migrations.AlterField( model_name='uzytkownik', name='busines...
44.285714
162
0.618548
3,629
0.975538
0
0
0
0
0
0
934
0.251075
147a5096d0d2e1067ea8f8785a929ae310227d3e
386
py
Python
Darlington/phase1/python Basic 2/day 21 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase1/python Basic 2/day 21 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase1/python Basic 2/day 21 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
#program to compute and print sum of two given integers (more than or equal to zero). # If given integers or the sum have more than 80 digits, print "overflow". print("Input first integer:") x = int(input()) print("Input second integer:") y = int(input()) if x >= 10 ** 80 or y >= 10 ** 80 or x + y >= 10 ** 80: pri...
38.6
86
0.647668
0
0
0
0
0
0
0
0
243
0.629534
147c28455f56f5983cd813f99265bdd8b89586bb
270
py
Python
app/cli/__init__.py
Hacker-1202/Selfium
7e798c23c9f24aacab6f6a485d6355f1045bc65c
[ "MIT" ]
14
2021-11-05T11:27:25.000Z
2022-02-28T02:04:32.000Z
app/cli/__init__.py
CssHammer/Selfium
7e798c23c9f24aacab6f6a485d6355f1045bc65c
[ "MIT" ]
2
2021-05-17T23:55:34.000Z
2021-07-09T17:24:44.000Z
app/cli/__init__.py
CssHammer/Selfium
7e798c23c9f24aacab6f6a485d6355f1045bc65c
[ "MIT" ]
5
2022-01-02T13:33:17.000Z
2022-02-26T13:09:50.000Z
""" Selfium CLI Tools ~~~~~~~~~~~~~~~~~~~ All cli functions used in Selfium project; :copyright: (c) 2021 - Caillou and ZeusHay; :license: MIT, see LICENSE for more details. """ from .logo import * from .clear import * from .welcome import * from .tokenError import *
19.285714
44
0.67037
0
0
0
0
0
0
0
0
177
0.655556
147d0d54209eeeaab12be3279f9d110b874ff369
5,136
py
Python
controllers/mainController.py
jersobh/zfs-resty
2a71d89df6b90992723a87ee8bf5eeb2ac27cc8a
[ "MIT" ]
11
2019-01-03T04:05:31.000Z
2021-09-22T23:47:05.000Z
controllers/mainController.py
jersobh/zfs-resty
2a71d89df6b90992723a87ee8bf5eeb2ac27cc8a
[ "MIT" ]
11
2020-10-28T08:02:06.000Z
2022-03-18T08:02:51.000Z
controllers/mainController.py
jersobh/zfs-resty
2a71d89df6b90992723a87ee8bf5eeb2ac27cc8a
[ "MIT" ]
null
null
null
import uuid from datetime import datetime, timedelta from controllers import zfsController import jwt import pam import render JWT_SECRET = "7wXJ4kxCRWJpMQNqRVTVR3Qbc" JWT_ALGORITHM = "HS256" JWT_EXP_DELTA_SECONDS = 4300 async def index(request): return render.json({'error': 'nothing to see here...'}, 200) as...
31.900621
104
0.596379
0
0
0
0
0
0
4,876
0.949377
577
0.112344
147d6b7888d4e07de9fd294908f9ee518aa81f10
2,888
py
Python
agent/stubs/retina.py
yoshi-ono/WM_Hackathon
546996c80b53a155ca94417b2fd19412c8f9f9c4
[ "Apache-2.0" ]
9
2020-09-08T04:39:55.000Z
2021-08-03T14:28:33.000Z
agent/stubs/retina.py
pulinagrawal/WM_Hackathon
19522ba74c5cf1d78b19d58b1881e77b5ef26c27
[ "Apache-2.0" ]
null
null
null
agent/stubs/retina.py
pulinagrawal/WM_Hackathon
19522ba74c5cf1d78b19d58b1881e77b5ef26c27
[ "Apache-2.0" ]
4
2021-04-21T00:48:28.000Z
2021-06-28T02:33:04.000Z
import torch.nn as nn import torch import torchvision from utils.image_filter_utils import get_dog_image_filter, conv2d_output_shape from utils.writer_singleton import WriterSingleton class Retina(nn.Module): STEP = 0 @staticmethod def get_default_config(): config = { 'f_size': 7, 'f_sigma': 2...
36.1
111
0.684557
2,700
0.934903
0
0
176
0.060942
0
0
355
0.122922
147da05a9f652a5715c04bef141e04cc07ea681a
790
py
Python
aws_sso/utils/registry.py
rkhullar/many-sso
14e019187e411bdeee77152310b09d250ec90555
[ "MIT" ]
2
2019-12-15T18:57:58.000Z
2020-06-15T22:02:29.000Z
aws_sso/utils/registry.py
rkhullar/many-sso
14e019187e411bdeee77152310b09d250ec90555
[ "MIT" ]
1
2020-02-06T19:02:36.000Z
2020-02-06T19:02:36.000Z
aws_sso/utils/registry.py
rkhullar/many-sso
14e019187e411bdeee77152310b09d250ec90555
[ "MIT" ]
null
null
null
from typing import Callable, Dict, Type def register_action(action: str, mapping_name: str = '__actions__'): # https://stackoverflow.com/questions/3589311/get-defining-class-of-unbound-method-object-in-python-3/25959545#25959545 class RegistryHandler: def __init__(self, fn: Callable): se...
30.384615
123
0.663291
402
0.508861
0
0
0
0
0
0
216
0.273418
147e3d176f26326ab89c0aebc52786cc4463a120
5,154
py
Python
tools/waf-tools/f_cppcheck.py
TerraWilly/foxbms-2
62288b333fe6da52deae91f74fb15e71060ac99c
[ "CC-BY-4.0" ]
1
2021-04-11T02:02:28.000Z
2021-04-11T02:02:28.000Z
tools/waf-tools/f_cppcheck.py
TerraWilly/foxbms-2
62288b333fe6da52deae91f74fb15e71060ac99c
[ "CC-BY-4.0" ]
null
null
null
tools/waf-tools/f_cppcheck.py
TerraWilly/foxbms-2
62288b333fe6da52deae91f74fb15e71060ac99c
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @copyright &copy; 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der # angewandten Forschung e.V. All rights reserved. # # BSD 3-Clause License # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the fol...
37.620438
99
0.689367
795
0.154249
0
0
126
0.024447
0
0
3,479
0.67501
147e734bd09bed751a8e4643798609eb58918fad
539
py
Python
updater/models.py
h4ck3rm1k3/srtracker
2ef54b1854bbc082c871ce08ea22f6c9ce03eb37
[ "Ruby" ]
1
2019-04-27T20:15:11.000Z
2019-04-27T20:15:11.000Z
updater/models.py
h4ck3rm1k3/srtracker
2ef54b1854bbc082c871ce08ea22f6c9ce03eb37
[ "Ruby" ]
null
null
null
updater/models.py
h4ck3rm1k3/srtracker
2ef54b1854bbc082c871ce08ea22f6c9ce03eb37
[ "Ruby" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, DateTime, Sequence Base = declarative_base() class Subscription(Base): __tablename__ = 'subscriptions' id = Column(Integer, Sequence('subscription_id_seq'), primary_key=True) sr_id = Column(...
25.666667
80
0.714286
383
0.710575
0
0
0
0
0
0
48
0.089054
147f8e40d8bb9c99516ab75985ce538329215277
1,352
py
Python
setup.py
writememe/motherstarter
e326ad8f73fc8741fa69faf20ea214486aca1c42
[ "Apache-2.0" ]
33
2020-11-15T09:51:11.000Z
2022-01-23T09:51:49.000Z
setup.py
writememe/motherstarter
e326ad8f73fc8741fa69faf20ea214486aca1c42
[ "Apache-2.0" ]
98
2020-11-08T21:55:12.000Z
2022-03-01T15:53:08.000Z
setup.py
writememe/motherstarter
e326ad8f73fc8741fa69faf20ea214486aca1c42
[ "Apache-2.0" ]
2
2022-01-10T07:15:15.000Z
2022-02-25T04:22:46.000Z
#!/usr/bin/env python # Motherstarter setup file from setuptools import setup, find_packages from motherstarter import __version__, __author__ # Open and read README file with open("README.md", "r", encoding="utf-8") as f: README = f.read() # Setup requirements to be installed requirements = [] with open("requi...
29.391304
70
0.674556
0
0
0
0
0
0
0
0
692
0.511834
147faa823472137bc7f168c087637c0fa7b9e1d9
8,006
py
Python
rgw/v2/tests/s3_swift/test_dynamic_bucket_resharding.py
rpratap-bot/ceph-qe-scripts
8a7090d6707a8e7b927eabfc9c9212f343a35bc4
[ "MIT" ]
null
null
null
rgw/v2/tests/s3_swift/test_dynamic_bucket_resharding.py
rpratap-bot/ceph-qe-scripts
8a7090d6707a8e7b927eabfc9c9212f343a35bc4
[ "MIT" ]
null
null
null
rgw/v2/tests/s3_swift/test_dynamic_bucket_resharding.py
rpratap-bot/ceph-qe-scripts
8a7090d6707a8e7b927eabfc9c9212f343a35bc4
[ "MIT" ]
null
null
null
""" test_dynamic_bucket_resharding - Test resharding operations on bucket Usage: test_dynamic_bucket_resharding.py -c <input_yaml> <input_yaml> Note: any one of these yamls can be used test_manual_resharding.yaml test_dynamic_resharding.yaml Operation: Create user Perform IOs in specific bucket ...
41.697917
116
0.673995
0
0
0
0
0
0
0
0
2,227
0.278166
14817026f39bd06023f2b84c932bb54cab1a147b
690
py
Python
example/schema.py
devind-team/devind-django-dictionaries
6b2086a15590c968450a5c6fa2a81b4734ee1a81
[ "MIT" ]
null
null
null
example/schema.py
devind-team/devind-django-dictionaries
6b2086a15590c968450a5c6fa2a81b4734ee1a81
[ "MIT" ]
1
2022-03-30T02:44:05.000Z
2022-03-30T02:44:05.000Z
example/schema.py
devind-team/devind-django-dictionaries
6b2086a15590c968450a5c6fa2a81b4734ee1a81
[ "MIT" ]
null
null
null
import graphene from typing import cast from graphene_django import DjangoObjectType from graphene_django.debug import DjangoDebug from django.contrib.auth import get_user_model import devind_dictionaries.schema class UserType(DjangoObjectType): class Meta: model = get_user_model() fields = ('...
20.294118
83
0.750725
379
0.549275
0
0
0
0
0
0
52
0.075362
14848a43d3f090cdc183de7af48de1c3e490059a
311
py
Python
fuzzi-gen/fuzzi/evaluation/pate.py
hengchu/fuzzi-impl
bcf49c42d2dd4e1e3c1fe8b85fa7f845ea8fd016
[ "BSD-3-Clause" ]
4
2019-04-02T15:54:21.000Z
2022-02-14T20:34:00.000Z
fuzzi-gen/fuzzi/evaluation/pate.py
hengchu/fuzzi-impl
bcf49c42d2dd4e1e3c1fe8b85fa7f845ea8fd016
[ "BSD-3-Clause" ]
1
2019-08-19T13:53:50.000Z
2019-08-19T13:53:50.000Z
fuzzi-gen/fuzzi/evaluation/pate.py
hengchu/fuzzi-impl
bcf49c42d2dd4e1e3c1fe8b85fa7f845ea8fd016
[ "BSD-3-Clause" ]
null
null
null
import numpy as np def main(): from fuzzi.evaluation import pate_train from fuzzi.generated import pate_label predictions = pate_label.outputs truth = [x[-1] for x in pate_label.db_test] print(predictions) print(truth) print('PATE accuracy = %f' % (np.mean(predictions == truth)))
25.916667
65
0.691318
0
0
0
0
0
0
0
0
20
0.064309
1486390989e81040ce5dfa57404584bdd0aad30e
462
py
Python
bedrock/app/utils/jinja.py
ronbeltran/webapp2-bedrock
42909fd6eb99ffe19ff941f9c66c9c84548139c6
[ "MIT" ]
1
2019-01-09T10:14:38.000Z
2019-01-09T10:14:38.000Z
bedrock/app/utils/jinja.py
ronbeltran/webapp2-bedrock
42909fd6eb99ffe19ff941f9c66c9c84548139c6
[ "MIT" ]
null
null
null
bedrock/app/utils/jinja.py
ronbeltran/webapp2-bedrock
42909fd6eb99ffe19ff941f9c66c9c84548139c6
[ "MIT" ]
null
null
null
import os import webapp2 import jinja2 import config from app.utils.compressor import WEBASSETS_ENV JINJA_ENV = jinja2.Environment( autoescape=lambda x: True, extensions=['jinja2.ext.autoescape', 'webassets.ext.jinja2.AssetsExtension'], loader=jinja2.FileSystemLoader( os.path.joi...
22
56
0.742424
0
0
0
0
0
0
0
0
81
0.175325
14878c677e10667944d3fa541d7f4f2e7bfbbbc0
1,479
py
Python
Mundo 3/ex094.py
adonaifariasdev/cursoemvideo-python3
1fd35e45b24c52013fa3bc98e723971db8e6b7d1
[ "MIT" ]
null
null
null
Mundo 3/ex094.py
adonaifariasdev/cursoemvideo-python3
1fd35e45b24c52013fa3bc98e723971db8e6b7d1
[ "MIT" ]
null
null
null
Mundo 3/ex094.py
adonaifariasdev/cursoemvideo-python3
1fd35e45b24c52013fa3bc98e723971db8e6b7d1
[ "MIT" ]
null
null
null
# Crie um programa que leia nome, sexo e idade de várias pessoas, guardando os dados # de cada pessoa em um dicionário e todos os dicionários em uma lista. No final, mostre: # A) Quantas pessoas foram cadastradas B) A média de idade C) Uma lista com as mulheres # D) Uma lista de pessoas com idade acima da média dados ...
33.613636
88
0.584178
0
0
0
0
0
0
0
0
764
0.512752
1487bed70be2fb31efb307ee1f6bd18e9a12f492
3,794
py
Python
lonet.py
johan12345/lonet.py
903138df325ad7be91d17045d0fcf768ca09aa4e
[ "MIT" ]
1
2016-09-28T06:53:45.000Z
2016-09-28T06:53:45.000Z
lonet.py
johan12345/lonet.py
903138df325ad7be91d17045d0fcf768ca09aa4e
[ "MIT" ]
null
null
null
lonet.py
johan12345/lonet.py
903138df325ad7be91d17045d0fcf768ca09aa4e
[ "MIT" ]
null
null
null
import argparse import os import re import urllib.parse import requests from bs4 import BeautifulSoup from pushbullet import Pushbullet pushbullet = None def download_file(url, dir): local_filename = dir + '/' + urllib.parse.unquote_plus(url.split('/')[-1], encoding='iso-8859-1') if os.path.exists(local_fil...
35.12963
101
0.614128
0
0
0
0
0
0
0
0
658
0.173432
148809bfd699775d4def161db38c6f759cec7977
1,404
py
Python
multiagent/scenarios/simple_spread_random_one.py
enikon/MACP
2de004d4eaf09f3b02dde3b7041ce6d693d0c25c
[ "MIT" ]
null
null
null
multiagent/scenarios/simple_spread_random_one.py
enikon/MACP
2de004d4eaf09f3b02dde3b7041ce6d693d0c25c
[ "MIT" ]
null
null
null
multiagent/scenarios/simple_spread_random_one.py
enikon/MACP
2de004d4eaf09f3b02dde3b7041ce6d693d0c25c
[ "MIT" ]
null
null
null
import random from multiagent.scenarios.commons import * from multiagent.scenarios.simple_spread import Scenario as S class Scenario(S): def make_world(self): world = World() # set any world properties first world.dim_c = 2 num_agents = 3 num_landmarks = 3 world.col...
34.243902
104
0.675926
1,283
0.913818
0
0
0
0
0
0
152
0.108262
14898fa376cacb6e7cf263f4a13f44d71dbd2631
1,961
py
Python
tests/unit/seed/test_extra_install.py
hauntsaninja/virtualenv
8c2985c2946e767bb6f74a7e22f51add17b38987
[ "MIT" ]
1
2022-02-21T02:01:37.000Z
2022-02-21T02:01:37.000Z
tests/unit/seed/test_extra_install.py
hauntsaninja/virtualenv
8c2985c2946e767bb6f74a7e22f51add17b38987
[ "MIT" ]
null
null
null
tests/unit/seed/test_extra_install.py
hauntsaninja/virtualenv
8c2985c2946e767bb6f74a7e22f51add17b38987
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import os import subprocess import pytest from virtualenv.discovery.py_info import PythonInfo from virtualenv.run import run_via_cli from virtualenv.util.path import Path from virtualenv.util.subprocess import Popen CURRENT = PythonInfo.current_system() CREAT...
31.629032
94
0.694034
0
0
0
0
1,242
0.63335
0
0
369
0.188169
1489fd9b83819471be937ccd9caa3138125a9719
481
py
Python
pyhanko_certvalidator/_types.py
MatthiasValvekens/certvalidator
246c5075ecdb6d50b14c93fdc97a9d0470f84821
[ "MIT" ]
4
2020-11-11T13:59:05.000Z
2022-03-13T14:06:10.000Z
pyhanko_certvalidator/_types.py
MatthiasValvekens/certvalidator
246c5075ecdb6d50b14c93fdc97a9d0470f84821
[ "MIT" ]
1
2020-11-11T11:29:37.000Z
2020-11-11T11:29:37.000Z
pyhanko_certvalidator/_types.py
MatthiasValvekens/certvalidator
246c5075ecdb6d50b14c93fdc97a9d0470f84821
[ "MIT" ]
2
2020-11-11T10:33:32.000Z
2022-03-13T14:06:11.000Z
# coding: utf-8 import inspect def type_name(value): """ Returns a user-readable name for the type of an object :param value: A value to get the type name of :return: A unicode string of the object's type name """ if inspect.isclass(value): cls = value else: ...
20.041667
58
0.609148
0
0
0
0
0
0
0
0
239
0.496881
148a037daf2a31f1b0747c7a72dcdff26d1106d3
959
gyp
Python
allofw.node/binding.gyp
donghaoren/AllofwModule
4367327cda0605aad53469294ed8751f8befbdc3
[ "Unlicense" ]
3
2016-05-04T23:23:48.000Z
2021-08-03T21:48:07.000Z
allofw.node/binding.gyp
donghaoren/AllofwModule
4367327cda0605aad53469294ed8751f8befbdc3
[ "Unlicense" ]
null
null
null
allofw.node/binding.gyp
donghaoren/AllofwModule
4367327cda0605aad53469294ed8751f8befbdc3
[ "Unlicense" ]
2
2016-01-31T04:06:51.000Z
2016-09-30T16:38:36.000Z
{ "targets": [ { "target_name": "allofw", "include_dirs": [ "<!@(pkg-config liballofw --cflags-only-I | sed s/-I//g)", "<!(node -e \"require('nan')\")" ], "libraries": [ "<!@(pkg-config liballofw --libs)", "<!@(pkg-config glew --libs)", ], "cflag...
25.236842
66
0.448384
0
0
0
0
0
0
0
0
586
0.611053
148ab50bbb98c6b8649b8ab5529309acc57c2593
5,237
py
Python
LeetCode-All-Solution/Python3/LC-0388-Longest-Absolute-File-Path.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0388-Longest-Absolute-File-Path.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0388-Longest-Absolute-File-Path.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """================================================================= @Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3 @File : LC-0388-Longest-Absolute-File-Path.py @Author : [YuweiYin](https://github.com/YuweiYin) @Date : 2022-04-20 ========================...
35.385135
110
0.618293
1,609
0.305835
0
0
0
0
0
0
3,651
0.693975
148cb7b0b27629b649b5fbda0b3320b27df1be32
44,876
py
Python
main.py
DeadCodeProductions/dead
a8e65abd76bf4a10268317bbf7a168c03c84e5f8
[ "Apache-2.0" ]
20
2022-02-25T10:49:53.000Z
2022-03-17T09:17:27.000Z
main.py
DeadCodeProductions/dead
a8e65abd76bf4a10268317bbf7a168c03c84e5f8
[ "Apache-2.0" ]
3
2022-02-28T20:00:32.000Z
2022-03-28T12:52:35.000Z
main.py
DeadCodeProductions/dead
a8e65abd76bf4a10268317bbf7a168c03c84e5f8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import copy import hashlib import logging import os import random import re import subprocess import sys import tempfile import time from multiprocessing import Pool from pathlib import Path from typing import Any, Dict, Optional, cast import requests import bisector import builder import chec...
34.022745
198
0.572867
0
0
0
0
0
0
0
0
9,747
0.217179
148e62acadab2abb7a544e4448e8d3e81c73ab98
585
py
Python
pathod/__init__.py
illera88/mitmproxy
4f464001841e5119bf57ef620a3257892ded2ded
[ "MIT" ]
6
2020-11-25T07:33:05.000Z
2022-01-25T07:25:54.000Z
pathod/__init__.py
illera88/mitmproxy
4f464001841e5119bf57ef620a3257892ded2ded
[ "MIT" ]
null
null
null
pathod/__init__.py
illera88/mitmproxy
4f464001841e5119bf57ef620a3257892ded2ded
[ "MIT" ]
4
2021-03-14T16:14:27.000Z
2021-09-25T03:01:15.000Z
import os import sys import warnings warnings.warn( "pathod and pathoc modules are deprecated, see https://github.com/mitmproxy/mitmproxy/issues/4273", DeprecationWarning, stacklevel=2 ) def print_tool_deprecation_message(): print("####", file=sys.stderr) print(f"### {os.path.basename(sys.argv[0...
30.789474
131
0.707692
0
0
0
0
0
0
0
0
297
0.507692
148fa74d7a5813457d336a4cb138f1b0a1e99c02
1,321
py
Python
urchin/fs/mp3file.py
kellen/urchinfs
ea47d8997b42b9b472ea16d1bc7921b988840e4b
[ "Unlicense" ]
2
2021-11-08T03:11:32.000Z
2021-11-08T08:21:24.000Z
urchin/fs/mp3file.py
kellen/urchinfs
ea47d8997b42b9b472ea16d1bc7921b988840e4b
[ "Unlicense" ]
null
null
null
urchin/fs/mp3file.py
kellen/urchinfs
ea47d8997b42b9b472ea16d1bc7921b988840e4b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import os import logging from fnmatch import fnmatch import mutagen from mutagen.easyid3 import EasyID3 import urchin.fs.default import urchin.fs.json import urchin.fs.plugin import urchin.fs.mp3 MP3_GLOB = "*.mp3" class Plugin(ur...
30.022727
96
0.659349
1,011
0.765329
0
0
0
0
0
0
152
0.115064
14902d3960eb5bce06bda721f56d69952ffbd4d8
2,449
py
Python
tests/model/test_qubic.py
Reathe/Qubic
7ee18eb6cb67ff3637f664dd225273c51ae19847
[ "MIT" ]
null
null
null
tests/model/test_qubic.py
Reathe/Qubic
7ee18eb6cb67ff3637f664dd225273c51ae19847
[ "MIT" ]
null
null
null
tests/model/test_qubic.py
Reathe/Qubic
7ee18eb6cb67ff3637f664dd225273c51ae19847
[ "MIT" ]
null
null
null
import unittest from model.curseur import Curseur from model.pion import PionBlanc, PionNoir from model.qubic import Qubic class TestQubic(unittest.TestCase): def test_poser(self): q = Qubic() q.poser((0, 7, 0)) self.assertTrue(q.get_pion((0, 0, 0)) == PionBlanc) self.assertFalse(q.get_pion((0, 1, 0))) q....
25.778947
83
0.60392
2,276
0.929359
0
0
0
0
0
0
45
0.018375
1490c779943d925d00b0d9fdb094aaea36004a99
1,536
py
Python
sherpa_client/models/project_status.py
kairntech/sherpa-client
cd259c87b7291eeec3f3ea025e368f2f069a06cd
[ "Apache-2.0" ]
null
null
null
sherpa_client/models/project_status.py
kairntech/sherpa-client
cd259c87b7291eeec3f3ea025e368f2f069a06cd
[ "Apache-2.0" ]
null
null
null
sherpa_client/models/project_status.py
kairntech/sherpa-client
cd259c87b7291eeec3f3ea025e368f2f069a06cd
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Type, TypeVar, Union import attr from ..models.sherpa_job_bean import SherpaJobBean from ..types import UNSET, Unset T = TypeVar("T", bound="ProjectStatus") @attr.s(auto_attribs=True) class ProjectStatus: """ """ project_name: str status: str pending_job: Union[Unset,...
26.033898
63
0.598958
1,316
0.856771
0
0
1,343
0.874349
0
0
91
0.059245