hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
c906663e816567788a872d79ad4e2f03fb4244fb
12,019
py
Python
python/loom_viewer/loom_cli.py
arao11/pattern_viz
3123f19a127c9775fadcca25f83aebfc8dc3b9f9
[ "BSD-2-Clause" ]
34
2017-10-18T06:09:16.000Z
2022-03-21T18:53:16.000Z
python/loom_viewer/loom_cli.py
arao11/pattern_viz
3123f19a127c9775fadcca25f83aebfc8dc3b9f9
[ "BSD-2-Clause" ]
52
2017-10-19T13:35:39.000Z
2021-06-03T08:54:55.000Z
python/loom_viewer/loom_cli.py
arao11/pattern_viz
3123f19a127c9775fadcca25f83aebfc8dc3b9f9
[ "BSD-2-Clause" ]
6
2018-05-28T06:16:26.000Z
2020-08-17T11:49:34.000Z
#!/usr/bin/env python # Copyright (c) 2016 Sten Linnarsson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # li...
26.473568
144
0.719611
c907566de3410b8c828deb59e531487549202dc6
1,260
py
Python
test_function.py
will-huynh/process_controller
e193c80976ef1d35fb9e661425bf609a86a313c8
[ "MIT" ]
1
2021-12-25T04:08:53.000Z
2021-12-25T04:08:53.000Z
test_function.py
will-huynh/process_controller
e193c80976ef1d35fb9e661425bf609a86a313c8
[ "MIT" ]
null
null
null
test_function.py
will-huynh/process_controller
e193c80976ef1d35fb9e661425bf609a86a313c8
[ "MIT" ]
null
null
null
import logging import tcp_log_socket logging_socket = tcp_log_socket.local_logging_socket(__name__) logger = logging_socket.logger #Test method simulating a method with required arguments; division is used to test exception handling #Test method simulating a method with no required arguments #Test method ...
37.058824
102
0.692857
c908908fcda77dbed54b6f285d7d03c69d799dc0
3,154
py
Python
users/views.py
elvinaqa/Amazon-Review-Analyzer-Summarizer-Python-NLP-ML-
6c70e84ffbcb8c8fd65a7fe0847e1f0eb779f759
[ "Unlicense" ]
1
2020-09-10T11:26:05.000Z
2020-09-10T11:26:05.000Z
users/views.py
elvinaqa/Amazon-Review-Analyzer-Summarizer-Python-NLP-ML-
6c70e84ffbcb8c8fd65a7fe0847e1f0eb779f759
[ "Unlicense" ]
null
null
null
users/views.py
elvinaqa/Amazon-Review-Analyzer-Summarizer-Python-NLP-ML-
6c70e84ffbcb8c8fd65a7fe0847e1f0eb779f759
[ "Unlicense" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.decorators import login_required from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm ##################################################################### from django.http import HttpResponse fr...
38.463415
88
0.642676
c909851fe73dcfad421fb6354ea395215029d6a8
689
py
Python
tests/test-vext-pth.py
NomAnor/vext
adea4b593ae4c82da0965ec1addaa1cd6d5b396c
[ "MIT" ]
62
2015-03-25T15:56:38.000Z
2021-01-07T21:32:27.000Z
tests/test-vext-pth.py
NomAnor/vext
adea4b593ae4c82da0965ec1addaa1cd6d5b396c
[ "MIT" ]
73
2015-02-13T16:02:31.000Z
2021-01-17T19:35:10.000Z
tests/test-vext-pth.py
NomAnor/vext
adea4b593ae4c82da0965ec1addaa1cd6d5b396c
[ "MIT" ]
8
2016-01-24T16:16:46.000Z
2020-09-23T17:56:47.000Z
import os import unittest from vext.install import DEFAULT_PTH_CONTENT if __name__ == "__main__": unittest.main()
28.708333
73
0.683599
c9098d28bd2a0a51fc33c4cd5fecc41dc7fc38ec
2,196
py
Python
stats/monitor.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
97
2016-12-14T16:48:49.000Z
2021-09-12T17:48:10.000Z
stats/monitor.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
38
2016-12-13T09:42:38.000Z
2020-07-05T11:58:07.000Z
stats/monitor.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
118
2016-12-12T21:36:40.000Z
2021-11-17T11:49:33.000Z
import argparse from pprint import pformat import txaio txaio.use_twisted() from autobahn.twisted.wamp import ApplicationSession, ApplicationRunner if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-d', '--debug', action='store_...
31.826087
89
0.583789
c90c7861eaff4add66e4d61ef78a76a073959d73
29,349
py
Python
spirou/sandbox/fits2ramp.py
clairem789/apero-utils
68ed0136a36b6badeaf15eb20d673052ad79a949
[ "MIT" ]
2
2020-10-08T17:03:45.000Z
2021-03-09T17:49:44.000Z
spirou/sandbox/fits2ramp.py
clairem789/apero-utils
68ed0136a36b6badeaf15eb20d673052ad79a949
[ "MIT" ]
17
2020-09-24T17:35:38.000Z
2020-12-11T16:10:13.000Z
spirou/sandbox/fits2ramp.py
clairem789/apero-utils
68ed0136a36b6badeaf15eb20d673052ad79a949
[ "MIT" ]
5
2020-04-10T06:41:00.000Z
2020-12-16T21:09:14.000Z
#!/usr/bin/env python2.7 # Version date : Aug 21, 2018 # # --> very minor correction compared to previous version. As keywords may change in files through time, when we delete # a keyword, we first check if the keyword is preseent rather than "blindly" deleting it # --> also corrected integer vs float divisions in ...
40.20411
225
0.665474
c90f386866b7264c9826cea39ffcc2b6fd5aaf00
394
py
Python
blog/urls.py
encukou/Zpetnovazebnik
0d058fd67049a3d42814b04486bde93bc406fa3b
[ "MIT" ]
1
2019-12-04T10:10:53.000Z
2019-12-04T10:10:53.000Z
blog/urls.py
encukou/Zpetnovazebnik
0d058fd67049a3d42814b04486bde93bc406fa3b
[ "MIT" ]
14
2019-04-07T07:46:07.000Z
2022-03-11T23:44:31.000Z
blog/urls.py
encukou/Zpetnovazebnik
0d058fd67049a3d42814b04486bde93bc406fa3b
[ "MIT" ]
1
2019-02-16T09:25:51.000Z
2019-02-16T09:25:51.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.course_list, name='course_list'), path('<course_slug>/', views.session_list, name='session_list'), path('<course_slug>/<session_slug>/', views.session_detail, name='session_detail'), path('<course_slug>/<session_slug>/<pas...
35.818182
114
0.72335
c912b5b1a08a02d640553311c19b5c840ef97729
4,651
py
Python
web_app/api_service.py
shayan-taheri/sql_python_deep_learning
ceb2c41bcb1fed193080f64ba4da018d76166222
[ "MIT" ]
23
2017-11-29T17:33:30.000Z
2021-10-15T14:51:12.000Z
web_app/api_service.py
shayan-taheri/sql_python_deep_learning
ceb2c41bcb1fed193080f64ba4da018d76166222
[ "MIT" ]
1
2017-10-12T11:23:08.000Z
2017-10-12T11:23:08.000Z
web_app/api_service.py
isabella232/sql_python_deep_learning
ceb2c41bcb1fed193080f64ba4da018d76166222
[ "MIT" ]
16
2017-12-21T08:55:09.000Z
2021-03-21T20:17:40.000Z
from api import app, BAD_PARAM, STATUS_OK, BAD_REQUEST from flask import request, jsonify, abort, make_response,render_template, json import sys from lung_cancer.connection_settings import get_connection_string, TABLE_SCAN_IMAGES, TABLE_GIF, TABLE_MODEL, TABLE_FEATURES, LIGHTGBM_MODEL_NAME, DATABASE_NAME,NUMBER_PATIEN...
33.221429
176
0.723285
c9144a2b1a0cbf40a3d765da71a5f9435588a292
335
py
Python
10-blood/scripts/bloodMeasure.py
antl-mipt-ru/get
c914bd16131639e1af4452ae7351f2554ef83ce9
[ "MIT" ]
null
null
null
10-blood/scripts/bloodMeasure.py
antl-mipt-ru/get
c914bd16131639e1af4452ae7351f2554ef83ce9
[ "MIT" ]
null
null
null
10-blood/scripts/bloodMeasure.py
antl-mipt-ru/get
c914bd16131639e1af4452ae7351f2554ef83ce9
[ "MIT" ]
1
2021-10-11T16:24:32.000Z
2021-10-11T16:24:32.000Z
import bloodFunctions as blood import time try: samples = [] blood.initSpiAdc() start = time.time() while (time.time() - start) < 60: samples.append(blood.getAdc()) finish = time.time() blood.deinitSpiAdc() blood.save(samples, start, finish) finally: print("Blood measure sc...
17.631579
42
0.641791
c915f05bb0ce24d1fe5469fea260ce3e99ceb13c
5,144
py
Python
bot/exts/utilities/twemoji.py
thatbirdguythatuknownot/sir-lancebot
7fd74af261385bdf7d989f459bec4c9b0cb4392a
[ "MIT" ]
77
2018-11-19T18:38:50.000Z
2020-11-16T22:49:59.000Z
bot/exts/utilities/twemoji.py
thatbirdguythatuknownot/sir-lancebot
7fd74af261385bdf7d989f459bec4c9b0cb4392a
[ "MIT" ]
373
2018-11-17T16:06:06.000Z
2020-11-20T22:55:03.000Z
bot/exts/utilities/twemoji.py
thatbirdguythatuknownot/sir-lancebot
7fd74af261385bdf7d989f459bec4c9b0cb4392a
[ "MIT" ]
165
2018-11-19T04:04:44.000Z
2020-11-18T17:53:28.000Z
import logging import re from typing import Literal, Optional import discord from discord.ext import commands from emoji import UNICODE_EMOJI_ENGLISH, is_emoji from bot.bot import Bot from bot.constants import Colours, Roles from bot.utils.decorators import whitelist_override from bot.utils.extensions import invoke_h...
34.066225
110
0.614891
c916bd42a9f49b86089b3c70e101b95ec26db97d
198
py
Python
Lecture 28/Lecture28HWAssignment4.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
1
2019-04-27T15:37:04.000Z
2019-04-27T15:37:04.000Z
Lecture 28/Lecture28HWAssignment4.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
null
null
null
Lecture 28/Lecture28HWAssignment4.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
1
2020-08-14T06:57:08.000Z
2020-08-14T06:57:08.000Z
# WAP to accept a filename from user and print all words starting with capital letters. if __name__ == "__main__": main()
24.75
87
0.686869
c916da29a2d83f2c59eacc745d8499ef2a44d2e6
1,215
py
Python
tests/python-playground/least_abs_dev_0.py
marcocannici/scs
799a4f7daed4294cd98c73df71676195e6c63de4
[ "MIT" ]
25
2017-06-30T15:31:33.000Z
2021-04-21T20:12:18.000Z
tests/python-playground/least_abs_dev_0.py
marcocannici/scs
799a4f7daed4294cd98c73df71676195e6c63de4
[ "MIT" ]
34
2017-06-07T01:18:17.000Z
2021-04-24T09:44:00.000Z
tests/python-playground/least_abs_dev_0.py
marcocannici/scs
799a4f7daed4294cd98c73df71676195e6c63de4
[ "MIT" ]
13
2017-06-07T01:16:09.000Z
2021-06-07T09:12:56.000Z
# This is automatically-generated code. # Uses the jinja2 library for templating. import cvxpy as cp import numpy as np import scipy as sp # setup problemID = "least_abs_dev_0" prob = None opt_val = None # Variable declarations import scipy.sparse as sps np.random.seed(0) m = 5000 n = 200 A = np.random.rand...
18.409091
69
0.650206
c9188684a1a8b8220b62b9249ea8815fc31f7412
2,621
py
Python
experimentations/20-climate-data/test-perf.py
Kitware/spark-mpi-experimentation
9432b63130059fc54843bc5ca6f2f5510e5a4098
[ "BSD-3-Clause" ]
4
2017-06-15T16:36:01.000Z
2021-12-25T09:13:22.000Z
experimentations/20-climate-data/test-perf.py
Kitware/spark-mpi-experimentation
9432b63130059fc54843bc5ca6f2f5510e5a4098
[ "BSD-3-Clause" ]
1
2018-09-28T23:32:42.000Z
2018-09-28T23:32:42.000Z
experimentations/20-climate-data/test-perf.py
Kitware/spark-mpi-experimentation
9432b63130059fc54843bc5ca6f2f5510e5a4098
[ "BSD-3-Clause" ]
6
2017-07-22T00:10:00.000Z
2021-12-25T09:13:11.000Z
from __future__ import print_function import os import sys import time import gdal import numpy as np # ------------------------------------------------------------------------- # Files to process # ------------------------------------------------------------------------- fileNames = [ 'tasmax_day_BCSD_rcp85_r1i...
33.177215
79
0.518123
c9195aa10c6d748883a1b2125a3a031fa6170f06
1,380
py
Python
deluca/envs/lung/__init__.py
AlexanderJYu/deluca
9e8b0d84d2eb0a58ff82a951b42881bdb2dc9f00
[ "Apache-2.0" ]
null
null
null
deluca/envs/lung/__init__.py
AlexanderJYu/deluca
9e8b0d84d2eb0a58ff82a951b42881bdb2dc9f00
[ "Apache-2.0" ]
null
null
null
deluca/envs/lung/__init__.py
AlexanderJYu/deluca
9e8b0d84d2eb0a58ff82a951b42881bdb2dc9f00
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.857143
76
0.695652
c91a77c07622a3736aa47e0888f81515c8655b66
746
py
Python
ivoire/__init__.py
Julian/Ivoire
af3f4ac77daf9d6c5167ef8a906557cc9d1d0ba7
[ "MIT" ]
9
2015-02-05T12:16:47.000Z
2022-02-04T07:48:23.000Z
ivoire/__init__.py
Julian/Ivoire
af3f4ac77daf9d6c5167ef8a906557cc9d1d0ba7
[ "MIT" ]
1
2018-02-11T16:31:36.000Z
2018-02-11T16:31:36.000Z
ivoire/__init__.py
Julian/Ivoire
af3f4ac77daf9d6c5167ef8a906557cc9d1d0ba7
[ "MIT" ]
null
null
null
""" Ivoire is an RSpec-like testing framework for Python. Globals defined in this module: current_result: Should be set by a runner to an object that has the same interface as unittest.TestResult. It will be used by every example that is instantiated to record test results d...
26.642857
78
0.727882
c91fcc058836389aa81c0420f1fedf01f1106ff3
1,699
py
Python
similarity.py
Blair-Johnson/faceswap
79b75f7f112acb3bf6b228116facc4d0812d2099
[ "MIT" ]
null
null
null
similarity.py
Blair-Johnson/faceswap
79b75f7f112acb3bf6b228116facc4d0812d2099
[ "MIT" ]
null
null
null
similarity.py
Blair-Johnson/faceswap
79b75f7f112acb3bf6b228116facc4d0812d2099
[ "MIT" ]
1
2021-11-04T08:21:07.000Z
2021-11-04T08:21:07.000Z
# Blair Johnson 2021 from facenet_pytorch import InceptionResnetV1, MTCNN import numpy as np def create_embeddings(images): ''' Take an iterable of image candidates and return an iterable of image embeddings. ''' if type(images) != list: images = [images] extractor = MTCNN() encoder ...
29.807018
97
0.683343
c920d8ceac18d8c9ff46fde63a7fa287e05e877b
6,075
py
Python
opentamp/domains/robot_manipulation_domain/generate_base_prob.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
4
2022-02-13T15:52:18.000Z
2022-03-26T17:33:13.000Z
opentamp/domains/robot_manipulation_domain/generate_base_prob.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
1
2022-02-13T22:48:09.000Z
2022-02-13T22:48:09.000Z
opentamp/domains/robot_manipulation_domain/generate_base_prob.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
null
null
null
from IPython import embed as shell import itertools import numpy as np import random # SEED = 1234 NUM_PROBS = 1 NUM_CLOTH = 4 filename = "probs/base_prob.prob" GOAL = "(RobotAt baxter robot_end_pose)" # init Baxter pose BAXTER_INIT_POSE = [0, 0, 0] BAXTER_END_POSE = [0, 0, 0] R_ARM_INIT = [0, 0, 0, 0, 0, 0, 0] # [...
41.047297
175
0.576461
c9210c12cb167b3a01782592accbb83cee14ae03
2,633
py
Python
tests/views/test_hsva.py
ju-sh/colorviews
b9757dd3a799d68bd89966852f36f06f21e36072
[ "MIT" ]
5
2021-06-10T21:12:16.000Z
2022-01-14T05:04:03.000Z
tests/views/test_hsva.py
ju-sh/colorviews
b9757dd3a799d68bd89966852f36f06f21e36072
[ "MIT" ]
null
null
null
tests/views/test_hsva.py
ju-sh/colorviews
b9757dd3a799d68bd89966852f36f06f21e36072
[ "MIT" ]
null
null
null
import pytest from colorviews import AlphaColor def test_vals_getter(): vals = (0.75, 0.45, 0.29, 0.79) color = AlphaColor.from_hsva(0.75, 0.45, 0.29, 0.79) assert [round(val, 4) for val in color.hsva.vals] == list(vals)
29.920455
67
0.545765
c92170ef42c7d1d4c09bcc11c88becf053c48250
2,645
py
Python
app/__init__.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
app/__init__.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
app/__init__.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
import random, logging from collections import Counter from flask import Flask, session, request, render_template, jsonify from app.util import unflatten from app.fiftycents import FiftyCentsGame from app.fiftycents import Card log = logging.getLogger('werkzeug') log.setLevel(logging.ERROR) app = Flask(...
38.897059
107
0.483554
c921d773c35312ecebe3d4b6eaaaef9e999e9c07
4,905
py
Python
bluvo_test.py
JanJaapKo/BlUVO
2a72b06a56069fee5bd118a12b846513096014b1
[ "MIT" ]
null
null
null
bluvo_test.py
JanJaapKo/BlUVO
2a72b06a56069fee5bd118a12b846513096014b1
[ "MIT" ]
null
null
null
bluvo_test.py
JanJaapKo/BlUVO
2a72b06a56069fee5bd118a12b846513096014b1
[ "MIT" ]
null
null
null
import time import logging import pickle import json import consolemenu from generic_lib import georeverse, geolookup from bluvo_main import BlueLink from tools.stamps import postOffice from params import * # p_parameters are read logging.basicConfig(format='%(asctime)s - %(levelname)-8s - %(filename)-18s - %(messag...
50.56701
171
0.601019
c92214401251c6b4745f3ba05c668f2913227e7f
2,962
py
Python
lda/test3/interpret_topics.py
kaiiam/amazon-continuation
9faaba80235614e6eea3e305c423975f2ec72e3e
[ "MIT" ]
null
null
null
lda/test3/interpret_topics.py
kaiiam/amazon-continuation
9faaba80235614e6eea3e305c423975f2ec72e3e
[ "MIT" ]
null
null
null
lda/test3/interpret_topics.py
kaiiam/amazon-continuation
9faaba80235614e6eea3e305c423975f2ec72e3e
[ "MIT" ]
1
2019-05-28T21:49:45.000Z
2019-05-28T21:49:45.000Z
#!/usr/bin/env python3 """ Author : kai Date : 2019-06-26 Purpose: Rock the Casbah """ import argparse import sys import re import csv # -------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( description='Argparse Python ...
26.684685
83
0.497637
c924841b1d689ef522dd4926df95b7101d1bb341
292
py
Python
app/users/urls.py
ManojKumarMRK/recipe-app-api
f518e91fc335c46eb1034d865256c94bb3e56b32
[ "MIT" ]
null
null
null
app/users/urls.py
ManojKumarMRK/recipe-app-api
f518e91fc335c46eb1034d865256c94bb3e56b32
[ "MIT" ]
null
null
null
app/users/urls.py
ManojKumarMRK/recipe-app-api
f518e91fc335c46eb1034d865256c94bb3e56b32
[ "MIT" ]
null
null
null
from django.urls import path from users import views app_name = 'users' urlpatterns = [ path('create/',views.CreateUserView.as_view(),name='create'), path('token/',views.CreateTokenView.as_view(),name='token'), path('me/', views.ManageUserView.as_view(),name='me'), ]
26.545455
66
0.674658
c92510f03e8c86ab8acb7443fa38d2785d4a3bca
4,200
py
Python
archive/visualization/network.py
ajrichards/bayesian-examples
fbd87c6f1613ea516408e9ebc3c9eff1248246e4
[ "BSD-3-Clause" ]
2
2016-01-27T08:51:23.000Z
2017-04-17T02:21:34.000Z
archive/visualization/network.py
ajrichards/notebook
fbd87c6f1613ea516408e9ebc3c9eff1248246e4
[ "BSD-3-Clause" ]
null
null
null
archive/visualization/network.py
ajrichards/notebook
fbd87c6f1613ea516408e9ebc3c9eff1248246e4
[ "BSD-3-Clause" ]
null
null
null
import matplotlib as mpl import matplotlib.pyplot as plt import networkx as nx import pandas as pd def draw_graph(edgeWeights,plotName='network_graph.png'): """ INPUT: this function takes in a dictionary of each edge names and the weight corresponding to that edge name """ edgeDict = {"t1e1":("T...
44.680851
196
0.61381
c926f1cc84ef2be7db59c1ebc4dd4db9c3aeb3e1
332
py
Python
accounting_app/accounting_app/doctype/gl_entry/gl_entry.py
imdadhussain/accounting_app
0f4b54242d81953c0c3ece3fb098701e86ce0eaf
[ "MIT" ]
null
null
null
accounting_app/accounting_app/doctype/gl_entry/gl_entry.py
imdadhussain/accounting_app
0f4b54242d81953c0c3ece3fb098701e86ce0eaf
[ "MIT" ]
null
null
null
accounting_app/accounting_app/doctype/gl_entry/gl_entry.py
imdadhussain/accounting_app
0f4b54242d81953c0c3ece3fb098701e86ce0eaf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, BS and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.utils.nestedset import get_descendants_of from frappe.utils import flt
25.538462
53
0.789157
c926fbd01b5a51930f76ba3ff40785e357d452a6
574
py
Python
main/migrations/0002_auto_20200314_1530.py
kwatog/jumuk
6234bf18ea0bf1eeb4194ecce23af9b669d4a841
[ "MIT" ]
null
null
null
main/migrations/0002_auto_20200314_1530.py
kwatog/jumuk
6234bf18ea0bf1eeb4194ecce23af9b669d4a841
[ "MIT" ]
5
2020-03-13T09:48:40.000Z
2021-09-22T18:42:22.000Z
main/migrations/0002_auto_20200314_1530.py
kwatog/jumuk
6234bf18ea0bf1eeb4194ecce23af9b669d4a841
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-14 15:30 from django.db import migrations, models
23.916667
73
0.578397
c92cee00e5a3f53b6fcf563376119be5a8fa6b38
645
py
Python
fusion/dataset/mnist_svhn/transforms.py
Mrinal18/fusion
34e563f2e50139385577c3880c5de11f8a73f220
[ "BSD-3-Clause" ]
14
2021-04-05T01:25:12.000Z
2022-02-17T19:44:28.000Z
fusion/dataset/mnist_svhn/transforms.py
Mrinal18/fusion
34e563f2e50139385577c3880c5de11f8a73f220
[ "BSD-3-Clause" ]
1
2021-07-05T08:32:49.000Z
2021-07-05T12:34:57.000Z
fusion/dataset/mnist_svhn/transforms.py
Mrinal18/fusion
34e563f2e50139385577c3880c5de11f8a73f220
[ "BSD-3-Clause" ]
1
2022-02-01T21:56:11.000Z
2022-02-01T21:56:11.000Z
from torch import Tensor from torchvision import transforms
17.916667
42
0.493023
c92dbb28d5fa5849ee22ef3b509bd866ce701e9e
1,508
py
Python
scripts/previousScripts-2015-12-25/getVariableInfo.py
mistryrakesh/SMTApproxMC
7c97e10c46c66e52c4e8972259610953c3357695
[ "MIT" ]
null
null
null
scripts/previousScripts-2015-12-25/getVariableInfo.py
mistryrakesh/SMTApproxMC
7c97e10c46c66e52c4e8972259610953c3357695
[ "MIT" ]
null
null
null
scripts/previousScripts-2015-12-25/getVariableInfo.py
mistryrakesh/SMTApproxMC
7c97e10c46c66e52c4e8972259610953c3357695
[ "MIT" ]
null
null
null
#!/home/rakeshmistry/bin/Python-3.4.3/bin/python3 # @author: rakesh mistry - 'inspire' # @date: 2015-08-06 import sys import re import os import math # Function: parseSmt2File # Function: main if __name__ == "__main__": main(sys.argv)
25.133333
121
0.611406
c92faeda80f7623d46a23810d5c128754efcada2
9,880
py
Python
simplified_scrapy/core/spider.py
yiyedata/simplified-scrapy
ccfdc686c53b2da3dac733892d4f184f6293f002
[ "Apache-2.0" ]
7
2019-08-11T10:31:03.000Z
2021-03-08T10:07:52.000Z
simplified_scrapy/core/spider.py
yiyedata/simplified-scrapy
ccfdc686c53b2da3dac733892d4f184f6293f002
[ "Apache-2.0" ]
1
2020-12-29T02:30:18.000Z
2021-01-25T02:49:37.000Z
simplified_scrapy/core/spider.py
yiyedata/simplified-scrapy
ccfdc686c53b2da3dac733892d4f184f6293f002
[ "Apache-2.0" ]
4
2019-10-22T02:14:35.000Z
2021-05-13T07:01:56.000Z
#!/usr/bin/python #coding=utf-8 import json, re, logging, time, io, os import sys from simplified_scrapy.core.config_helper import Configs from simplified_scrapy.core.sqlite_cookiestore import SqliteCookieStore from simplified_scrapy.core.request_helper import requestPost, requestGet, getResponseStr, extractHtml from s...
34.666667
102
0.542611
c92fe0a2d25d872fa12d88c6134dd6759ab24310
1,457
py
Python
Bugscan_exploits-master/exp_list/exp-2469.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp-2469.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp-2469.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#!/usr/bin/evn python #--coding:utf-8--*-- #Name:10 #Refer:http://www.wooyun.org/bugs/wooyun-2015-0120852/ #Author:xq17 if __name__ == '__main__': from dummy import * audit(assign('tianrui_lib','http://218.92.71.5:1085/trebook/')[1])
41.628571
154
0.587509
c93112ec790fae5b416d3ab6e0ee349a48489f55
49,239
py
Python
FBDParser/charmaps/symbols.py
jonix6/fbdparser
617a79bf9062092e4fa971bbd66da02cd9d45124
[ "MIT" ]
7
2021-03-15T08:43:56.000Z
2022-01-09T11:56:43.000Z
FBDParser/charmaps/symbols.py
jonix6/fbdparser
617a79bf9062092e4fa971bbd66da02cd9d45124
[ "MIT" ]
null
null
null
FBDParser/charmaps/symbols.py
jonix6/fbdparser
617a79bf9062092e4fa971bbd66da02cd9d45124
[ "MIT" ]
3
2021-09-07T09:40:16.000Z
2022-01-11T10:32:23.000Z
# -*- coding: utf-8 -*- "A" symbolsA = UnicodeMap() _update = symbolsA.update # Area A1 _update({ 0xA140: 0xA140, # 1() 0xA141: 0xA141, # 2() 0xA142: 0xA142, # 3() 0xA143: 0xA143, # 4() 0xA144: 0xA144, # 5() 0xA145: 0xA145, # 6() 0xA146: 0xA146, # 7() 0xA147: 0xA147, # 8() ...
28.744308
88
0.518268
c933cadd6174b03b61565756a1609302c0c6bfc6
6,176
py
Python
moona/lifespan/handlers.py
katunilya/mona
8f44a9e06910466afbc9b2bcfb42144dcd25ed5a
[ "MIT" ]
2
2022-03-26T15:27:31.000Z
2022-03-28T22:00:32.000Z
moona/lifespan/handlers.py
katunilya/mona
8f44a9e06910466afbc9b2bcfb42144dcd25ed5a
[ "MIT" ]
null
null
null
moona/lifespan/handlers.py
katunilya/mona
8f44a9e06910466afbc9b2bcfb42144dcd25ed5a
[ "MIT" ]
null
null
null
from __future__ import annotations from copy import deepcopy from dataclasses import dataclass from typing import Callable, TypeVar from pymon import Future, Pipe, cmap, creducel, hof_2, this_async from pymon.core import returns_future from moona.lifespan import LifespanContext LifespanFunc = Callable[[LifespanCont...
25.841004
86
0.629858
c9340f2d3c1db26d4655357d65aa1d342c92a30f
4,246
py
Python
bot/cogs/birthday/birthday.py
Qtopia-Team/luci
9b7f1966050910d50f04cbd9733d1c77ffbb8cba
[ "MIT" ]
5
2021-04-27T10:50:54.000Z
2021-08-02T09:11:56.000Z
bot/cogs/birthday/birthday.py
Qtopia-Team/luci
9b7f1966050910d50f04cbd9733d1c77ffbb8cba
[ "MIT" ]
2
2021-06-17T14:53:13.000Z
2021-06-19T02:14:36.000Z
bot/cogs/birthday/birthday.py
luciferchase/luci
91e30520cfc60177b9916d3f3d41678f590ecdfc
[ "MIT" ]
4
2021-06-11T12:02:42.000Z
2021-06-30T16:56:46.000Z
import discord from discord.ext import commands import json import os import psycopg2 import pytz
35.090909
105
0.544277
c934c6f917f8d18513144569e61a6ad4e232777a
651
py
Python
apps/main/proc_scraper.py
suenklerhaw/seoeffekt
0a31fdfa1a7246da37e37bf53c03d94c5f13f095
[ "MIT" ]
1
2022-02-15T14:03:10.000Z
2022-02-15T14:03:10.000Z
apps/main/proc_scraper.py
suenklerhaw/seoeffekt
0a31fdfa1a7246da37e37bf53c03d94c5f13f095
[ "MIT" ]
null
null
null
apps/main/proc_scraper.py
suenklerhaw/seoeffekt
0a31fdfa1a7246da37e37bf53c03d94c5f13f095
[ "MIT" ]
null
null
null
#sub processes to scrape using the normal Google scraper #include libs import sys sys.path.insert(0, '..') from include import * process1 = threading.Thread(target=scraper) process2 = threading.Thread(target=save_sources) process3 = threading.Thread(target=reset_scraper) process4 = threading.Thread(target=reset_sourc...
22.448276
56
0.738863
c9359b5500958801527c3395149655f6f66f2d7a
1,620
py
Python
ingestion/producer1.py
aspk/ratsadtarget
e93cd3f71000ec409e79e6e0c873578f0e8fa8b3
[ "Apache-2.0" ]
1
2020-03-03T18:46:15.000Z
2020-03-03T18:46:15.000Z
ingestion/producer1.py
Keyology/ratsadtarget
e93cd3f71000ec409e79e6e0c873578f0e8fa8b3
[ "Apache-2.0" ]
null
null
null
ingestion/producer1.py
Keyology/ratsadtarget
e93cd3f71000ec409e79e6e0c873578f0e8fa8b3
[ "Apache-2.0" ]
1
2020-03-03T18:46:18.000Z
2020-03-03T18:46:18.000Z
# producer to stream data into kafka from boto.s3.connection import S3Connection import datetime import json import bz2 from kafka import KafkaProducer from kafka.errors import KafkaError import time import pytz conn = S3Connection() key = conn.get_bucket('aspk-reddit-posts').get_key('comments/RC_2017-11.bz2') produc...
33.061224
105
0.608642
c9378ebb2e19a75b65829de15453b31293aca652
3,060
py
Python
src/odin-http/odin/http/models.py
wenshuoliu/odin
7998ee7541b3de44dd149899168983e964f2b8f7
[ "Apache-2.0" ]
4
2020-12-15T15:57:14.000Z
2020-12-16T21:52:23.000Z
src/odin-http/odin/http/models.py
wenshuoliu/odin
7998ee7541b3de44dd149899168983e964f2b8f7
[ "Apache-2.0" ]
2
2021-03-15T02:49:56.000Z
2021-03-27T12:42:38.000Z
src/odin-http/odin/http/models.py
wenshuoliu/odin
7998ee7541b3de44dd149899168983e964f2b8f7
[ "Apache-2.0" ]
5
2020-12-15T19:09:00.000Z
2021-04-21T20:40:38.000Z
#from pydantic import BaseModel as Model # This gives us backwards compatible API calls from fastapi_camelcase import CamelModel as Model from typing import Optional, List from datetime import date, datetime
21.103448
80
0.693137
c9380c3f618a01051fb6b644e3bcd12fce9edfdc
7,931
py
Python
tests/test_data/test_data_core.py
shaoeric/hyperparameter_hunter
3709d5e97dd23efa0df1b79982ae029789e1af57
[ "MIT" ]
688
2018-06-01T23:43:28.000Z
2022-03-23T06:37:20.000Z
tests/test_data/test_data_core.py
shaoeric/hyperparameter_hunter
3709d5e97dd23efa0df1b79982ae029789e1af57
[ "MIT" ]
188
2018-07-09T23:22:31.000Z
2021-04-01T07:43:46.000Z
tests/test_data/test_data_core.py
shaoeric/hyperparameter_hunter
3709d5e97dd23efa0df1b79982ae029789e1af57
[ "MIT" ]
100
2018-08-28T03:30:47.000Z
2022-01-25T04:37:11.000Z
################################################## # Import Own Assets ################################################## from hyperparameter_hunter.data.data_core import BaseDataChunk, BaseDataset, NullDataChunk ################################################## # Import Miscellaneous Assets #########################...
40.258883
102
0.667381
c939aef00a062e0b98f7c418e70663b8692f035d
108
py
Python
sample/sample.py
eaybek/getthat
3ca34902f773ec6a40a1df0b7dac5845a22cc8e4
[ "MIT" ]
null
null
null
sample/sample.py
eaybek/getthat
3ca34902f773ec6a40a1df0b7dac5845a22cc8e4
[ "MIT" ]
null
null
null
sample/sample.py
eaybek/getthat
3ca34902f773ec6a40a1df0b7dac5845a22cc8e4
[ "MIT" ]
null
null
null
from getthat import getthat # from sna.search import Sna Sna = getthat("sna.search", "Sna") sna = Sna()
12
34
0.685185
c93c9aaedb099246f931a93b0f3660c7f68b5819
2,481
py
Python
src/models/zeroshot.py
mmatena/wise-ft
2630c366d252ad32db82ea886f7ab6a752142792
[ "MIT" ]
79
2021-10-01T22:29:51.000Z
2022-03-30T04:19:58.000Z
src/models/zeroshot.py
mmatena/wise-ft
2630c366d252ad32db82ea886f7ab6a752142792
[ "MIT" ]
2
2021-11-18T19:50:59.000Z
2022-01-08T00:57:24.000Z
src/models/zeroshot.py
mmatena/wise-ft
2630c366d252ad32db82ea886f7ab6a752142792
[ "MIT" ]
10
2021-10-14T18:29:59.000Z
2022-03-27T12:40:18.000Z
import os import torch from tqdm import tqdm import numpy as np import clip.clip as clip import src.templates as templates import src.datasets as datasets from src.args import parse_arguments from src.models.modeling import ClassificationHead, ImageEncoder, ImageClassifier from src.models.eval import evaluate ...
30.62963
94
0.694478
c93cab934e2e3f25cd7169e11400beb6e6d43570
425
py
Python
app/main/__init__.py
csmcallister/beular
219bcd552c1303eb0557f3ef56d44355a932399e
[ "CNRI-Python" ]
null
null
null
app/main/__init__.py
csmcallister/beular
219bcd552c1303eb0557f3ef56d44355a932399e
[ "CNRI-Python" ]
null
null
null
app/main/__init__.py
csmcallister/beular
219bcd552c1303eb0557f3ef56d44355a932399e
[ "CNRI-Python" ]
null
null
null
from flask import Blueprint bp = Blueprint('main', __name__) from app.main import routes # noqa: F401
25
74
0.665882
c94067f14edbfaeef67d40e03949c3cc7bd61802
734
py
Python
blog/models.py
sd5682295/course_demo-master-2fe2955bdcb6985c2b48bb3487da5732c395bbc2
face6e8d4e6cc61c3ef437142b71639393de3bf8
[ "MIT" ]
null
null
null
blog/models.py
sd5682295/course_demo-master-2fe2955bdcb6985c2b48bb3487da5732c395bbc2
face6e8d4e6cc61c3ef437142b71639393de3bf8
[ "MIT" ]
null
null
null
blog/models.py
sd5682295/course_demo-master-2fe2955bdcb6985c2b48bb3487da5732c395bbc2
face6e8d4e6cc61c3ef437142b71639393de3bf8
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User
22.9375
65
0.76703
c94170821cd5e437201c56213668e61ba65bc8e5
21,018
py
Python
methcomp/regression.py
daneishdespot/methcomp
767d85aa56a8fda372847585decca8879ec2ac98
[ "MIT" ]
null
null
null
methcomp/regression.py
daneishdespot/methcomp
767d85aa56a8fda372847585decca8879ec2ac98
[ "MIT" ]
null
null
null
methcomp/regression.py
daneishdespot/methcomp
767d85aa56a8fda372847585decca8879ec2ac98
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd import scipy.stats as st import statsmodels.api as sm import math import numpy as np __all__ = ["deming", "passingbablok", "linear"] def deming(method1, method2, vr=None, sdr=None, bootstrap=1000, x_label='Method 1', y_label='Method 2', title...
39.433396
118
0.591683
c9418c993a05d0182f414df4de245fd5f5288aa8
1,470
py
Python
setup.py
jmacgrillen/perspective
6e6e833d8921c54c907dd6314d4bc02ba3a3c0b6
[ "MIT" ]
null
null
null
setup.py
jmacgrillen/perspective
6e6e833d8921c54c907dd6314d4bc02ba3a3c0b6
[ "MIT" ]
null
null
null
setup.py
jmacgrillen/perspective
6e6e833d8921c54c907dd6314d4bc02ba3a3c0b6
[ "MIT" ]
null
null
null
#! /usr/bin/env python -*- coding: utf-8 -*- """ Name: setup.py Desscription: Install the maclib package. Version: 1 - Inital release Author: J.MacGrillen <macgrillen@gmail.com> Copyright: Copyright (c) John MacGrillen. All rights reserved. """ from setuptool...
25.344828
71
0.593197
c941a3a73b37c420856313d2ddda37d278df3e52
1,021
py
Python
2021/day2.py
MadsPoder/advent-of-code
4f190e18d24332e21308a7d251c331777b52a5f1
[ "MIT" ]
2
2019-12-02T22:27:59.000Z
2019-12-04T07:48:27.000Z
2021/day2.py
MadsPoder/advent-of-code
4f190e18d24332e21308a7d251c331777b52a5f1
[ "MIT" ]
null
null
null
2021/day2.py
MadsPoder/advent-of-code
4f190e18d24332e21308a7d251c331777b52a5f1
[ "MIT" ]
null
null
null
# Playing with pattern matching in python 3.10 # Add lambda to parse commands into command and corresponding units parse_command = lambda x, y: (x, int(y)) # Read puzzle input with open ('day2.txt') as fp: commands = [parse_command(*x.strip().split(' ')) for x in fp.readlines()] horizontal_position = 0 depth = 0...
25.525
77
0.613124
c943169325309fd0984d9e08fbc50df17f771916
2,159
py
Python
etl/vector/process_all.py
nismod/oi-risk-vis
a5c7460a8060a797dc844be95d5c23689f42cd17
[ "MIT" ]
2
2020-09-29T15:52:48.000Z
2021-03-31T02:58:53.000Z
etl/vector/process_all.py
nismod/oi-risk-vis
a5c7460a8060a797dc844be95d5c23689f42cd17
[ "MIT" ]
41
2021-05-12T17:12:14.000Z
2022-03-17T10:49:20.000Z
etl/vector/process_all.py
nismod/infra-risk-vis
1e5c28cced578d8bd9c78699e9038ecd66f47cf7
[ "MIT" ]
null
null
null
#!/bin/env python3 from argparse import ArgumentParser import csv import os from pathlib import Path import subprocess import sys this_directory = Path(__file__).parent.resolve() vector_script_path = this_directory / 'prepare_vector.sh' if __name__ == '__main__': parser = ArgumentParser(description='Converts al...
41.519231
156
0.742937
c944a392c3c65b876eac48378aa9aaaa59c4cea9
1,688
py
Python
django/week9/main/models.py
yrtby/Alotech-Fullstack-Bootcamp-Patika
e2fd775e2540b8d9698dcb7dc38f84a6d7912e8d
[ "MIT" ]
1
2021-11-05T09:45:25.000Z
2021-11-05T09:45:25.000Z
django/week9/main/models.py
yrtby/Alotech-Fullstack-Bootcamp-Patika
e2fd775e2540b8d9698dcb7dc38f84a6d7912e8d
[ "MIT" ]
null
null
null
django/week9/main/models.py
yrtby/Alotech-Fullstack-Bootcamp-Patika
e2fd775e2540b8d9698dcb7dc38f84a6d7912e8d
[ "MIT" ]
3
2021-11-07T07:16:30.000Z
2021-12-07T20:22:59.000Z
from django.db import models from django.contrib.auth.models import User from django.core.validators import MinLengthValidator # Create your models here.
35.914894
83
0.708531
c947e59db3be68e0dcce4600b6cfeb33b848886c
375
py
Python
tests/test_dir_dataset.py
gimlidc/igre
bf3425e838cca3d1fa8254a2550ecb44774ee0ef
[ "MIT" ]
1
2021-09-24T09:12:06.000Z
2021-09-24T09:12:06.000Z
tests/test_dir_dataset.py
gimlidc/igre
bf3425e838cca3d1fa8254a2550ecb44774ee0ef
[ "MIT" ]
null
null
null
tests/test_dir_dataset.py
gimlidc/igre
bf3425e838cca3d1fa8254a2550ecb44774ee0ef
[ "MIT" ]
null
null
null
import stable.modalities.dir_dataset as dataset import os.path
34.090909
99
0.706667
c949f74729063705c3b6e636bb65a45813ce66bb
1,118
py
Python
sample/main.py
qjw/flasgger
d43644da1fea6af596ff0e2f11517b578377850f
[ "MIT" ]
5
2018-03-07T03:54:36.000Z
2022-01-01T04:43:48.000Z
sample/main.py
qjw/flasgger
d43644da1fea6af596ff0e2f11517b578377850f
[ "MIT" ]
null
null
null
sample/main.py
qjw/flasgger
d43644da1fea6af596ff0e2f11517b578377850f
[ "MIT" ]
2
2021-11-11T08:48:39.000Z
2022-01-01T04:43:49.000Z
import logging import jsonschema from flask import Flask, jsonify from flask import make_response from flasgger import Swagger from sample.config import Config app = Flask(__name__) app.config.update(Config or {}) init_logging(app) Swagger(app) from sample.api import api app.register_blueprint(api, url_prefix='/...
25.409091
77
0.675313
c94abc02ec26c5e120241965ee1760edb37aa362
909
py
Python
cuticle_analysis/models/e2e.py
ngngardner/cuticle_analysis
7ef119d9ee407df0faea63705dcea76d9f42614b
[ "MIT" ]
null
null
null
cuticle_analysis/models/e2e.py
ngngardner/cuticle_analysis
7ef119d9ee407df0faea63705dcea76d9f42614b
[ "MIT" ]
4
2021-07-02T17:49:44.000Z
2021-09-27T01:06:41.000Z
cuticle_analysis/models/e2e.py
ngngardner/cuticle_analysis
7ef119d9ee407df0faea63705dcea76d9f42614b
[ "MIT" ]
null
null
null
import numpy as np from .cnn import CNN from .kviews import KViews from .. import const
24.567568
66
0.567657
c94aca271568ab00f3c86f9599a88f50e9eeab3a
95
py
Python
fruitsales/apps.py
khajime/fruit-sales-management-console
4f802578cd9ddcdbbc3259263d0d19df11432a0c
[ "MIT" ]
null
null
null
fruitsales/apps.py
khajime/fruit-sales-management-console
4f802578cd9ddcdbbc3259263d0d19df11432a0c
[ "MIT" ]
16
2019-02-21T14:12:01.000Z
2019-03-11T08:00:15.000Z
fruitsales/apps.py
khajime/fruit-sales-management-console
4f802578cd9ddcdbbc3259263d0d19df11432a0c
[ "MIT" ]
null
null
null
from django.apps import AppConfig
15.833333
34
0.768421
c94dc603c09e41f347618a870bb8e3d545494ed0
61
py
Python
run.py
Tokisaki-Kurumi001/ASMART-34
04ffbabe4a1c18f8ed68a2ee883145985fc5ec7f
[ "MIT" ]
3
2021-04-17T08:34:08.000Z
2021-04-17T08:57:23.000Z
run.py
Tokisaki-Kurumi001/ASMART-34
04ffbabe4a1c18f8ed68a2ee883145985fc5ec7f
[ "MIT" ]
null
null
null
run.py
Tokisaki-Kurumi001/ASMART-34
04ffbabe4a1c18f8ed68a2ee883145985fc5ec7f
[ "MIT" ]
null
null
null
import os os.system('python function_18351015.py > log.txt')
20.333333
50
0.770492
c950e89a11e706b3a1a0ba3575143820351f7247
3,337
py
Python
upandas_test.py
kokes/upandas
f2150e5a74c815b27fd08fc841da01c3b455dadc
[ "MIT" ]
null
null
null
upandas_test.py
kokes/upandas
f2150e5a74c815b27fd08fc841da01c3b455dadc
[ "MIT" ]
null
null
null
upandas_test.py
kokes/upandas
f2150e5a74c815b27fd08fc841da01c3b455dadc
[ "MIT" ]
null
null
null
import sys, os import upandas as upd # Run a single Python script # For many simple, single file projects, you may find it inconvenient # to write a complete Dockerfile. In such cases, you can run a Python # script by using the Python Docker image directly: #versions to consider: 3 (600+ MB), slim (150 MB) alpine (90...
29.530973
132
0.574768
c953f88756774d3e9d070501efa3054134aaa4e2
6,555
py
Python
prettyqt/widgets/lineedit.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
7
2019-05-01T01:34:36.000Z
2022-03-08T02:24:14.000Z
prettyqt/widgets/lineedit.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
141
2019-04-16T11:22:01.000Z
2021-04-14T15:12:36.000Z
prettyqt/widgets/lineedit.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
5
2019-04-17T11:48:19.000Z
2021-11-21T10:30:19.000Z
from __future__ import annotations from typing import Literal from prettyqt import constants, core, gui, widgets from prettyqt.qt import QtCore, QtWidgets from prettyqt.utils import InvalidParamError, bidict ECHO_MODE = bidict( normal=QtWidgets.QLineEdit.EchoMode.Normal, no_echo=QtWidgets.QLineEdit.EchoMode...
31.066351
89
0.653547
c9544ffadc07ec885bd33e7c84ffb14a0d5a171b
555
py
Python
puzzles/easy/puzzle8e.py
mhw32/Code-Boola-Python-Workshop
08bc551b173ff372a267592f58586adb52c582e3
[ "MIT" ]
null
null
null
puzzles/easy/puzzle8e.py
mhw32/Code-Boola-Python-Workshop
08bc551b173ff372a267592f58586adb52c582e3
[ "MIT" ]
null
null
null
puzzles/easy/puzzle8e.py
mhw32/Code-Boola-Python-Workshop
08bc551b173ff372a267592f58586adb52c582e3
[ "MIT" ]
null
null
null
# ------------------------------------ # CODE BOOLA 2015 PYTHON WORKSHOP # Mike Wu, Jonathan Chang, Kevin Tan # Puzzle Challenges Number 8 # ------------------------------------ # INSTRUCTIONS: # Write a function that takes an integer # as its argument and converts it to a # string. Return the first character of ...
21.346154
46
0.585586
c95465582eabaa7004deb1d71c383aba26908941
1,086
py
Python
nis_visualizeer/ukf-nis-vis.py
vikram216/unscented-kalman-filter
1619fe365c73f198b39fa1de70fd5e203f8715a0
[ "MIT" ]
null
null
null
nis_visualizeer/ukf-nis-vis.py
vikram216/unscented-kalman-filter
1619fe365c73f198b39fa1de70fd5e203f8715a0
[ "MIT" ]
null
null
null
nis_visualizeer/ukf-nis-vis.py
vikram216/unscented-kalman-filter
1619fe365c73f198b39fa1de70fd5e203f8715a0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt """ A chi square (X2) statistic is used to investigate whether distributions of categorical variables differ from one another. Here we consider 3 degrees of freedom for our system. Plotted against 95% line""" lidar_nis = [] with open('NISvals_laser.txt') as f: for line in f: ...
24.681818
78
0.721915
c95546315e55dfb705f35c46c08aaa6f9bae96a5
695
py
Python
benchmark/OfflineRL/offlinerl/config/algo/crr_config.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
50
2021-02-07T08:10:28.000Z
2022-03-25T09:10:26.000Z
benchmark/OfflineRL/offlinerl/config/algo/crr_config.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
7
2021-07-29T14:58:31.000Z
2022-02-01T08:02:54.000Z
benchmark/OfflineRL/offlinerl/config/algo/crr_config.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
4
2021-04-01T16:30:15.000Z
2022-03-31T17:38:05.000Z
import torch from offlinerl.utils.exp import select_free_cuda task = "Hopper-v3" task_data_type = "low" task_train_num = 99 seed = 42 device = 'cuda'+":"+str(select_free_cuda()) if torch.cuda.is_available() else 'cpu' obs_shape = None act_shape = None max_action = None hidden_features = 256 hidden_layers = 2 atoms ...
16.547619
83
0.680576
c9555f153510ab57941a2d63dc997b5c2a9d5575
8,325
py
Python
cykel/models/cykel_log_entry.py
mohnbroetchen2/cykel_jenarad
6ed9fa45d8b98e1021bc41a57e1250ac6f0cfcc4
[ "MIT" ]
null
null
null
cykel/models/cykel_log_entry.py
mohnbroetchen2/cykel_jenarad
6ed9fa45d8b98e1021bc41a57e1250ac6f0cfcc4
[ "MIT" ]
null
null
null
cykel/models/cykel_log_entry.py
mohnbroetchen2/cykel_jenarad
6ed9fa45d8b98e1021bc41a57e1250ac6f0cfcc4
[ "MIT" ]
null
null
null
from django.contrib.admin.options import get_content_type_for_model from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from django.db import models from django.urls import reverse from django.u...
37.669683
87
0.538498
c9565831d1ae75fe2b15d03a39a78761d5e269d5
7,991
py
Python
mlx/od/archive/ssd/test_utils.py
lewfish/mlx
027decf72bf9d96de3b4de13dcac7b352b07fd63
[ "Apache-2.0" ]
null
null
null
mlx/od/archive/ssd/test_utils.py
lewfish/mlx
027decf72bf9d96de3b4de13dcac7b352b07fd63
[ "Apache-2.0" ]
null
null
null
mlx/od/archive/ssd/test_utils.py
lewfish/mlx
027decf72bf9d96de3b4de13dcac7b352b07fd63
[ "Apache-2.0" ]
null
null
null
import unittest import torch from torch.nn.functional import binary_cross_entropy as bce, l1_loss from mlx.od.ssd.utils import ( ObjectDetectionGrid, BoxList, compute_intersection, compute_iou, F1) if __name__ == '__main__': unittest.main()
36.322727
79
0.511325
c956809dc40104300810383514543a84d7e16eb4
3,284
py
Python
src/utilsmodule/main.py
jke94/WilliamHill-WebScraping
d570ff7ba8a5c35d7c852327910d39b715ce5125
[ "MIT" ]
null
null
null
src/utilsmodule/main.py
jke94/WilliamHill-WebScraping
d570ff7ba8a5c35d7c852327910d39b715ce5125
[ "MIT" ]
1
2020-10-13T15:44:40.000Z
2020-10-13T15:44:40.000Z
src/utilsmodule/main.py
jke94/WilliamHill-WebScraping
d570ff7ba8a5c35d7c852327910d39b715ce5125
[ "MIT" ]
null
null
null
''' AUTOR: Javier Carracedo Date: 08/10/2020 Auxiliar class to test methods from WilliamHillURLs.py ''' import WilliamHillURLs if __name__ == "__main__": myVariable = WilliamHillURLs.WilliamHillURLs() # Print all matches played actually. for item in myVariable.GetAllMatchsPlayedActually(m...
49.014925
109
0.670524
c9570eba69366671540e993ccc63b21a8b23a785
3,185
py
Python
mys/cli/subparsers/install.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
mys/cli/subparsers/install.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
mys/cli/subparsers/install.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
import glob import os import shutil import sys import tarfile from tempfile import TemporaryDirectory from ..utils import ERROR from ..utils import Spinner from ..utils import add_jobs_argument from ..utils import add_no_ccache_argument from ..utils import add_verbose_argument from ..utils import box_print from ..util...
28.4375
85
0.674725
c957b9e1d84b2cf858f2f0ed59b9eda407c2dff9
1,011
py
Python
app/api/v2/models/sale.py
kwanj-k/storemanager-v2
89e9573543e32de2e8503dc1440b4ad907bb10b5
[ "MIT" ]
1
2020-02-29T20:14:32.000Z
2020-02-29T20:14:32.000Z
app/api/v2/models/sale.py
kwanj-k/storemanager-v2
89e9573543e32de2e8503dc1440b4ad907bb10b5
[ "MIT" ]
5
2018-10-24T17:28:48.000Z
2019-10-22T11:09:19.000Z
app/api/v2/models/sale.py
kwanj-k/storemanager-v2
89e9573543e32de2e8503dc1440b4ad907bb10b5
[ "MIT" ]
null
null
null
""" A model class for Sale """ # local imports from app.api.common.utils import dt from app.api.v2.db_config import conn from app.api.v2.models.cart import Cart # cursor to perform database operations cur = conn.cursor()
25.275
106
0.578635
c9582e0280978de265a7060549f58e588eceb72b
3,306
py
Python
src/dembones/collector.py
TransactCharlie/dembones
b5540a89d4c6d535b589a1a2b06697569879bc05
[ "MIT" ]
null
null
null
src/dembones/collector.py
TransactCharlie/dembones
b5540a89d4c6d535b589a1a2b06697569879bc05
[ "MIT" ]
null
null
null
src/dembones/collector.py
TransactCharlie/dembones
b5540a89d4c6d535b589a1a2b06697569879bc05
[ "MIT" ]
null
null
null
import aiohttp from bs4 import BeautifulSoup import asyncio from dembones.webpage import WebPage import dembones.urltools as ut import logging log = logging.getLogger(__name__)
38.894118
95
0.629462
c9599538e684b00c1b9eb75ec04458b635c13ae8
501
py
Python
py_tdlib/constructors/input_inline_query_result_video.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/input_inline_query_result_video.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/input_inline_query_result_video.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Type
31.3125
60
0.688623
c959a09cafe37155453fcdb077c647271d246317
710
py
Python
translation/eval_args.py
AkshatSh/BinarizedNMT
7fa15149fdfcad6b1fd0956157c3730f3dcd781f
[ "MIT" ]
10
2019-01-19T08:15:05.000Z
2021-12-02T08:54:50.000Z
translation/eval_args.py
AkshatSh/BinarizedNMT
7fa15149fdfcad6b1fd0956157c3730f3dcd781f
[ "MIT" ]
null
null
null
translation/eval_args.py
AkshatSh/BinarizedNMT
7fa15149fdfcad6b1fd0956157c3730f3dcd781f
[ "MIT" ]
2
2019-01-25T21:19:49.000Z
2019-03-21T11:38:13.000Z
import argparse import train_args def get_arg_parser() -> argparse.ArgumentParser: ''' A set of parameters for evaluation ''' parser = train_args.get_arg_parser() parser.add_argument('--load_path', type=str, help='the path of the model to test') parser.add_argument('--eval_train', action='store...
50.714286
126
0.723944
c959fbbb426057adb9170ca9df4b29dd550126f4
43,792
py
Python
src/fidelity_estimation_pauli_sampling.py
akshayseshadri/minimax-fidelity-estimation
07ff539dc5ea8280bc4f33444da3d6a90c606833
[ "MIT" ]
1
2021-12-16T14:23:46.000Z
2021-12-16T14:23:46.000Z
src/fidelity_estimation_pauli_sampling.py
akshayseshadri/minimax-fidelity-estimation
07ff539dc5ea8280bc4f33444da3d6a90c606833
[ "MIT" ]
null
null
null
src/fidelity_estimation_pauli_sampling.py
akshayseshadri/minimax-fidelity-estimation
07ff539dc5ea8280bc4f33444da3d6a90c606833
[ "MIT" ]
null
null
null
""" Creates a fidelity estimator for any pure state, using randomized Pauli measurement strategy. Author: Akshay Seshadri """ import warnings import numpy as np import scipy as sp from scipy import optimize import project_root # noqa from src.optimization.proximal_gradient import minimize_proximal_gradi...
59.258457
226
0.643999
c95c3a9b1e12620c6fdf7ce0fba7e46782237c62
2,054
py
Python
until.py
zlinao/COMP5212-project1
fa6cb10d238de187fbb891499916c6b44a0cd7b7
[ "Apache-2.0" ]
3
2018-09-19T11:46:53.000Z
2018-10-09T04:48:28.000Z
until.py
zlinao/COMP5212-project1
fa6cb10d238de187fbb891499916c6b44a0cd7b7
[ "Apache-2.0" ]
null
null
null
until.py
zlinao/COMP5212-project1
fa6cb10d238de187fbb891499916c6b44a0cd7b7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Feb 28 10:29:52 2018 @author: lin """ import numpy as np import matplotlib.pyplot as plt data1 = np.load("datasets/breast-cancer.npz") data2 = np.load("datasets/diabetes.npz") data3 = np.load("datasets/digit.npz") data4 = np.load("datasets/iris.npz") ...
25.358025
79
0.601266
c960f97df84624c96f4c85fc91f46edd0a467d9e
11,996
py
Python
dumpfreeze/main.py
rkcf/dumpfreeze
e9b18e4bc4574ff3b647a075cecd72977dc8f59a
[ "MIT" ]
1
2020-01-30T17:59:50.000Z
2020-01-30T17:59:50.000Z
dumpfreeze/main.py
rkcf/dumpfreeze
e9b18e4bc4574ff3b647a075cecd72977dc8f59a
[ "MIT" ]
null
null
null
dumpfreeze/main.py
rkcf/dumpfreeze
e9b18e4bc4574ff3b647a075cecd72977dc8f59a
[ "MIT" ]
null
null
null
# dumpfreeze # Create MySQL dumps and backup to Amazon Glacier import os import logging import datetime import click import uuid import sqlalchemy as sa from dumpfreeze import backup as bak from dumpfreeze import aws from dumpfreeze import inventorydb from dumpfreeze import __version__ logger = logging.getLogger(__na...
29.766749
79
0.614288
c96260912cab6b5833f970ad06a26821cebe5439
886
py
Python
01-tapsterbot/click-accuracy/makeTestData.py
AppTestBot/AppTestBot
035e93e662753e50d7dcc38d6fd362933186983b
[ "Apache-2.0" ]
null
null
null
01-tapsterbot/click-accuracy/makeTestData.py
AppTestBot/AppTestBot
035e93e662753e50d7dcc38d6fd362933186983b
[ "Apache-2.0" ]
null
null
null
01-tapsterbot/click-accuracy/makeTestData.py
AppTestBot/AppTestBot
035e93e662753e50d7dcc38d6fd362933186983b
[ "Apache-2.0" ]
null
null
null
import csv FLAGS = None if __name__ == "__main__": import argparse parser = argparse.ArgumentParser(description='make coordinate.csv for data') parser.add_argument('--width', '-w', type=int, required=False, help='input width') parser.add_argument('...
28.580645
80
0.497743
c96277ac68a88dc09c944967b21d05e1368096d4
3,546
py
Python
CreateBigDataFrame.py
ezsolti/MVA_PWR_data
3e64c5b1bd643d5ba5d6e275b426d601cff7b270
[ "MIT" ]
2
2022-02-04T10:47:37.000Z
2022-03-15T13:03:19.000Z
CreateBigDataFrame.py
ezsolti/MVA_PWR_data
3e64c5b1bd643d5ba5d6e275b426d601cff7b270
[ "MIT" ]
null
null
null
CreateBigDataFrame.py
ezsolti/MVA_PWR_data
3e64c5b1bd643d5ba5d6e275b426d601cff7b270
[ "MIT" ]
1
2022-01-13T15:55:17.000Z
2022-01-13T15:55:17.000Z
""" Script to create dataframe from serpent bumat files including all the nuclides. Zsolt Elter 2019 """ import json import os with open ('nuclides.json') as json_file: nuclidesDict = json.load(json_file) #final name of the file dataFrame='PWR_UOX-MOX_BigDataFrame-SF-GSRC-noReactorType.csv' def readInventory...
35.818182
164
0.620135
c963dca9a730234f66f325086da0df26ded50d93
453
py
Python
todolist_backend/cli.py
RenoirTan/TodoListBackend
149bdf1d883891c87b27f01996816bff251f11d8
[ "MIT" ]
null
null
null
todolist_backend/cli.py
RenoirTan/TodoListBackend
149bdf1d883891c87b27f01996816bff251f11d8
[ "MIT" ]
null
null
null
todolist_backend/cli.py
RenoirTan/TodoListBackend
149bdf1d883891c87b27f01996816bff251f11d8
[ "MIT" ]
null
null
null
from mongoengine import disconnect from waitress import serve from todolist_backend.server import app, get_configs from .database import panic_init from .info import MONGOENGINE_ALIAS
22.65
52
0.743929
c964301c7d47d614f521b894d1e55685f398fbd2
86
py
Python
sample_code/002_add.py
kaede-san0910/workshop-2022
961d3ebfc899565aa6913c90b08881ef857ca945
[ "Apache-2.0" ]
null
null
null
sample_code/002_add.py
kaede-san0910/workshop-2022
961d3ebfc899565aa6913c90b08881ef857ca945
[ "Apache-2.0" ]
null
null
null
sample_code/002_add.py
kaede-san0910/workshop-2022
961d3ebfc899565aa6913c90b08881ef857ca945
[ "Apache-2.0" ]
null
null
null
a = int(input("a = ")) b = int(input("b = ")) print("{} + {} = {}".format(a, b, a+b))
21.5
39
0.406977
c965792691ce7606e38e36d2ae95ee8c42d4351b
2,953
py
Python
archer_views.py
splunk-soar-connectors/archer
65b9a5e9e250b6407e3aad08b86a483499a6210f
[ "Apache-2.0" ]
null
null
null
archer_views.py
splunk-soar-connectors/archer
65b9a5e9e250b6407e3aad08b86a483499a6210f
[ "Apache-2.0" ]
1
2022-02-08T22:54:54.000Z
2022-02-08T22:54:54.000Z
archer_views.py
splunk-soar-connectors/archer
65b9a5e9e250b6407e3aad08b86a483499a6210f
[ "Apache-2.0" ]
null
null
null
# File: archer_views.py # # Copyright (c) 2016-2022 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.350649
95
0.562817
c96886f093360dec7c0ce79819456ac3947c46e0
12,198
py
Python
napari/plugins/exceptions.py
yinawang28/napari
6ea95a9fa2f9150a4dbb5ec1286b8ff2020c3957
[ "BSD-3-Clause" ]
null
null
null
napari/plugins/exceptions.py
yinawang28/napari
6ea95a9fa2f9150a4dbb5ec1286b8ff2020c3957
[ "BSD-3-Clause" ]
null
null
null
napari/plugins/exceptions.py
yinawang28/napari
6ea95a9fa2f9150a4dbb5ec1286b8ff2020c3957
[ "BSD-3-Clause" ]
null
null
null
import re import sys from collections import defaultdict from types import TracebackType from typing import ( Callable, DefaultDict, Dict, Generator, List, Optional, Tuple, Type, Union, ) # This is a mapping of plugin_name -> PluginError instances # all PluginErrors get added to thi...
33.237057
79
0.565175
c9693a49a18c1714e3e73fb34025f16a983d9fca
572
py
Python
examples/federation/account.py
syfun/starlette-graphql
1f57b60a9699bc6a6a2b95d5596ffa93ef13c262
[ "MIT" ]
14
2020-04-03T08:18:21.000Z
2021-11-10T04:39:45.000Z
examples/federation/account.py
syfun/starlette-graphql
1f57b60a9699bc6a6a2b95d5596ffa93ef13c262
[ "MIT" ]
2
2021-08-31T20:25:23.000Z
2021-09-21T14:40:56.000Z
examples/federation/account.py
syfun/starlette-graphql
1f57b60a9699bc6a6a2b95d5596ffa93ef13c262
[ "MIT" ]
1
2020-08-27T17:04:29.000Z
2020-08-27T17:04:29.000Z
import uvicorn from gql import gql, reference_resolver, query from stargql import GraphQL from helper import get_user_by_id, users type_defs = gql(""" type Query { me: User } type User @key(fields: "id") { id: ID! name: String username: String } """) app = GraphQL(type_defs=type_defs, fe...
16.342857
51
0.687063
c96971b273caac5ab991341745cb2d8e72b76d77
2,519
py
Python
tests/api_resources/test_application_fee.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
8
2021-05-29T08:57:58.000Z
2022-02-19T07:09:25.000Z
tests/api_resources/test_application_fee.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
5
2021-05-31T10:18:36.000Z
2022-01-25T11:39:03.000Z
tests/api_resources/test_application_fee.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
1
2021-05-29T13:27:10.000Z
2021-05-29T13:27:10.000Z
from __future__ import absolute_import, division, print_function import stripe import pytest pytestmark = pytest.mark.asyncio TEST_RESOURCE_ID = "fee_123" TEST_FEEREFUND_ID = "fr_123"
35.985714
78
0.687574
c96a052abb332bba00f134e10d854c779b770b2a
866
py
Python
code/busyschedule.py
matthewReff/Kattis-Problems
848628af630c990fb91bde6256a77afad6a3f5f6
[ "MIT" ]
8
2020-02-21T22:21:01.000Z
2022-02-16T05:30:54.000Z
code/busyschedule.py
matthewReff/Kattis-Problems
848628af630c990fb91bde6256a77afad6a3f5f6
[ "MIT" ]
null
null
null
code/busyschedule.py
matthewReff/Kattis-Problems
848628af630c990fb91bde6256a77afad6a3f5f6
[ "MIT" ]
3
2020-08-05T05:42:35.000Z
2021-08-30T05:39:51.000Z
busyschedule()
30.928571
82
0.39261
c96af4a490471a665152773f8f3b2a90f985672a
607
py
Python
tests/backtracking/test_path_through_grid.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
tests/backtracking/test_path_through_grid.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
tests/backtracking/test_path_through_grid.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from unittest import TestCase from fundamentals.backtracking.path_through_grid import PathThroughGrid
22.481481
82
0.507414
c96b923ab99cdd18285399edd12e8dfeb03b5f78
343
py
Python
main.py
yukraven/vitg
27d3d9b73a23e4ff5ff4c769eb1f26b8f57fee72
[ "MIT" ]
null
null
null
main.py
yukraven/vitg
27d3d9b73a23e4ff5ff4c769eb1f26b8f57fee72
[ "MIT" ]
63
2019-08-25T07:48:54.000Z
2019-10-18T01:52:29.000Z
main.py
yukraven/vitg
27d3d9b73a23e4ff5ff4c769eb1f26b8f57fee72
[ "MIT" ]
null
null
null
import sqlite3 import Sources.Parser conn = sqlite3.connect("Database/vitg.db") cursor = conn.cursor() cursor.execute("SELECT * FROM Locations") results = cursor.fetchall() print(results) conn.close() parser = Sources.Parser.Parser() words = [u"", u""] for word in words: command = parser.getCommand(word) pr...
19.055556
42
0.725948
c96d512247f8395a641feee824bc046d0dbdc522
7,018
py
Python
src/gene.score.array.simulator.py
ramachandran-lab/PEGASUS-WINGS
bdd81b58be4c4fb62916e422a854abdcbfbb6fd7
[ "MIT" ]
3
2019-03-31T12:32:25.000Z
2020-01-04T20:57:14.000Z
src/gene.score.array.simulator.py
ramachandran-lab/PEGASUS-WINGS
bdd81b58be4c4fb62916e422a854abdcbfbb6fd7
[ "MIT" ]
null
null
null
src/gene.score.array.simulator.py
ramachandran-lab/PEGASUS-WINGS
bdd81b58be4c4fb62916e422a854abdcbfbb6fd7
[ "MIT" ]
1
2020-10-24T23:48:15.000Z
2020-10-24T23:48:15.000Z
import numpy as np import pandas as pd import sys import string import time import subprocess from collections import Counter import string import random #First argument is the gene score distribution that you want to draw from, the second is the type of clusters to generate #If 'large' only clusters with a large nu...
43.320988
265
0.727273
c96fe90561c66a9922b3825850ab89dad8c3224a
7,273
py
Python
datatools_bdh/dict_utils.py
sfu-bigdata/datatools-bdh
43303db2e165c10b43f5afe5293d41e655a05040
[ "MIT" ]
null
null
null
datatools_bdh/dict_utils.py
sfu-bigdata/datatools-bdh
43303db2e165c10b43f5afe5293d41e655a05040
[ "MIT" ]
null
null
null
datatools_bdh/dict_utils.py
sfu-bigdata/datatools-bdh
43303db2e165c10b43f5afe5293d41e655a05040
[ "MIT" ]
null
null
null
"""Convenience functions for dictionary access and YAML""" from sklearn.utils import Bunch from collections import OrderedDict from collections.abc import Mapping import copy import yaml # ---------------------------------------------------------------------------- def deep_convert_list_dict(d, skip_list_level=0): ...
33.210046
99
0.641001
c9702823a44c14ac03b736bffeea367a229f28da
6,612
py
Python
testscripts/RDKB/component/CMAgent/TS_CMAGENT_SetSessionId.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/CMAgent/TS_CMAGENT_SetSessionId.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/CMAgent/TS_CMAGENT_SetSessionId.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2016 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...
44.675676
259
0.73775
c970887827dfacb25a04d949c110b21b2a98595f
492
py
Python
blu/config.py
coolman565/blu_two
5c7626145b3644570be99ff0267f88bd61b9806c
[ "MIT" ]
null
null
null
blu/config.py
coolman565/blu_two
5c7626145b3644570be99ff0267f88bd61b9806c
[ "MIT" ]
1
2021-06-01T21:57:23.000Z
2021-06-01T21:57:23.000Z
blu/config.py
coolman565/blu_two
5c7626145b3644570be99ff0267f88bd61b9806c
[ "MIT" ]
null
null
null
import logging import yaml logger = logging.getLogger(__name__)
23.428571
66
0.632114
c97156d460bdc88e5f228d10d1465d45738af933
8,536
py
Python
other_useful_scripts/join.py
sklasfeld/ChIP_Annotation
9ce9db7a129bfdec91ec23b33d73ff22f37408ad
[ "MIT" ]
1
2020-08-23T23:12:56.000Z
2020-08-23T23:12:56.000Z
other_useful_scripts/join.py
sklasfeld/ChIP_Annotation
9ce9db7a129bfdec91ec23b33d73ff22f37408ad
[ "MIT" ]
null
null
null
other_useful_scripts/join.py
sklasfeld/ChIP_Annotation
9ce9db7a129bfdec91ec23b33d73ff22f37408ad
[ "MIT" ]
1
2020-08-23T23:16:47.000Z
2020-08-23T23:16:47.000Z
#!/usr/bin/env python3 # -*- coding: iso-8859-15 -*- # 2017, Samantha Klasfeld, the Wagner Lab # the Perelman School of Medicine, the University of Pennsylvania # Samantha Klasfeld, 12-21-2017 import argparse import sys import pandas as pd import numpy as np parser = argparse.ArgumentParser(description="this scrip...
42.467662
85
0.72493
c971e430652331e744f0b8b0fc1ac07db5704fb9
884
py
Python
6.py
mattclark-net/aoc21
d4dcd78524a8cb27e1445cb6c39e696e64cc4e7a
[ "MIT" ]
null
null
null
6.py
mattclark-net/aoc21
d4dcd78524a8cb27e1445cb6c39e696e64cc4e7a
[ "MIT" ]
null
null
null
6.py
mattclark-net/aoc21
d4dcd78524a8cb27e1445cb6c39e696e64cc4e7a
[ "MIT" ]
null
null
null
# parse the input with open("6-input.txt") as f: fish = [int(n) for n in f.readline().split(",")] startcounts = dict(zip(range(0, 9), [0 for x in range(9)])) for f in fish: startcounts[f] += 1 counts = startcounts for day in range(80): print(day, [counts[v] for v in range(9)]) counts = updatedcounts...
25.257143
59
0.616516
c97337433ecaa8303091ad4ba921fe29802304f0
3,287
py
Python
packages/mccomponents/tests/mccomponents/sample/samplecomponent_SQkernel_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
5
2017-01-16T03:59:47.000Z
2020-06-23T02:54:19.000Z
packages/mccomponents/tests/mccomponents/sample/samplecomponent_SQkernel_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
293
2015-10-29T17:45:52.000Z
2022-01-07T16:31:09.000Z
packages/mccomponents/tests/mccomponents/sample/samplecomponent_SQkernel_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
1
2019-05-25T00:53:31.000Z
2019-05-25T00:53:31.000Z
#!/usr/bin/env python # # standalone = True import os, numpy as np os.environ['MCVINE_MPI_BINDING'] = 'NONE' import unittestX as unittest if __name__ == "__main__": unittest.main() # End of file
35.728261
98
0.606632
c973d138beb4bdeb8b96079770c98d55a9dad08e
693
py
Python
app/ZeroKnowledge/bbs.py
MilkyBoat/AttriChain
ad3a7e5cc58e4add21ffd289d925f73e3367210b
[ "MIT" ]
5
2020-07-10T21:00:28.000Z
2022-02-23T01:41:01.000Z
app/ZeroKnowledge/bbs.py
MilkyBoat/AttriChain
ad3a7e5cc58e4add21ffd289d925f73e3367210b
[ "MIT" ]
null
null
null
app/ZeroKnowledge/bbs.py
MilkyBoat/AttriChain
ad3a7e5cc58e4add21ffd289d925f73e3367210b
[ "MIT" ]
4
2020-09-13T14:31:45.000Z
2022-03-23T04:06:38.000Z
from ZeroKnowledge import primality import random if __name__ == "__main__": owp = bbs() print(owp(70203203)) print(owp(12389))
21
66
0.685426
c9743d63b6769b341831d17f36b94f9161097eb4
5,811
py
Python
differannotate/datastructures.py
zyndagj/differannotate
c73d9df5f82f1cf97340235265a368b16da9c89b
[ "BSD-3-Clause" ]
null
null
null
differannotate/datastructures.py
zyndagj/differannotate
c73d9df5f82f1cf97340235265a368b16da9c89b
[ "BSD-3-Clause" ]
null
null
null
differannotate/datastructures.py
zyndagj/differannotate
c73d9df5f82f1cf97340235265a368b16da9c89b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # ############################################################################### # Author: Greg Zynda # Last Modified: 12/11/2019 ############################################################################### # BSD 3-Clause License # # Copyright (c) 2019, Greg Zynda # All rights reserved. # # ...
30.584211
134
0.66202
c9743e069ad8fe0a795c53358dc5e0951de0d7c7
2,113
py
Python
examples/regional_constant_preservation/plotCurve.py
schoonovernumerics/FEOTs
d8bf24d0e0c23a9ee65e2be6a75f5dbc83d3e5ad
[ "BSD-3-Clause" ]
null
null
null
examples/regional_constant_preservation/plotCurve.py
schoonovernumerics/FEOTs
d8bf24d0e0c23a9ee65e2be6a75f5dbc83d3e5ad
[ "BSD-3-Clause" ]
13
2017-08-03T22:30:25.000Z
2019-01-23T16:32:28.000Z
examples/regional_constant_preservation/plotCurve.py
schoonovernumerics/FEOTS
d8bf24d0e0c23a9ee65e2be6a75f5dbc83d3e5ad
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 DOC="""plotCurve plotCurve is used to create vertical profiles of different lateral ylabel statistics of FEOTS output. Usage: plotCurve plot <file> [--out=<out>] [--opts=<opts>] [--scalex=<scalex>] [--xlabel=<xlabel>] [--ylabel=<ylabel>] Commands: plot Create a vertical profile p...
26.08642
114
0.644108
c974860e7717afdaa174abddb3959a9916ac8f90
6,535
py
Python
statefun-examples/statefun-python-walkthrough-example/walkthrough_pb2.py
authuir/flink-statefun
ca16055de31737a8a0073b8f9083268fc24b9828
[ "Apache-2.0" ]
1
2020-05-27T03:38:36.000Z
2020-05-27T03:38:36.000Z
statefun-examples/statefun-python-walkthrough-example/walkthrough_pb2.py
authuir/flink-statefun
ca16055de31737a8a0073b8f9083268fc24b9828
[ "Apache-2.0" ]
null
null
null
statefun-examples/statefun-python-walkthrough-example/walkthrough_pb2.py
authuir/flink-statefun
ca16055de31737a8a0073b8f9083268fc24b9828
[ "Apache-2.0" ]
null
null
null
################################################################################ # 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...
28.413043
286
0.72303
c9778ad426ae5b59849224563d916aed7af67c6a
2,438
py
Python
dnsdetect.py
bhaveshgoyal/DNSpoPy
978beae9028b6122f1d9c1e7316e630ed466a628
[ "MIT" ]
3
2022-01-03T12:10:41.000Z
2022-03-21T22:14:51.000Z
dnsdetect.py
bhaveshgoyal/DNSpoPy
978beae9028b6122f1d9c1e7316e630ed466a628
[ "MIT" ]
null
null
null
dnsdetect.py
bhaveshgoyal/DNSpoPy
978beae9028b6122f1d9c1e7316e630ed466a628
[ "MIT" ]
null
null
null
#import pcap #import dpkt #import dnet from collections import defaultdict from scapy.all import * from scapy.all import send as ssend import netifaces import getopt import datetime conf.sniff_promisc=True pcap_specified = False detection_map = defaultdict(list) if __name__ == "__main__": main()
29.731707
123
0.651354
c977bbeabde9764661a77f5cb005a889127439bd
534
py
Python
yeti/core/entities/malware.py
Darkheir/TibetanBrownBear
c3843daa4f84730e733c2dde1cda7739e6cdad8e
[ "Apache-2.0" ]
9
2018-01-15T22:44:24.000Z
2021-05-28T11:13:03.000Z
yeti/core/entities/malware.py
Darkheir/TibetanBrownBear
c3843daa4f84730e733c2dde1cda7739e6cdad8e
[ "Apache-2.0" ]
140
2018-01-12T10:07:47.000Z
2021-08-02T23:03:49.000Z
yeti/core/entities/malware.py
Darkheir/TibetanBrownBear
c3843daa4f84730e733c2dde1cda7739e6cdad8e
[ "Apache-2.0" ]
11
2018-01-16T19:49:35.000Z
2022-01-18T16:30:34.000Z
"""Detail Yeti's Malware object structure.""" from .entity import Entity Entity.datatypes[Malware.type] = Malware
19.777778
50
0.683521
c978b614564b15ad98ff9be9b231eda20bb8f13d
6,405
py
Python
python/dsbox/template/template_files/loaded/SRIClassificationTemplate.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
7
2018-05-10T22:19:44.000Z
2020-07-21T07:28:39.000Z
python/dsbox/template/template_files/loaded/SRIClassificationTemplate.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
187
2018-04-13T17:19:24.000Z
2020-04-21T00:41:15.000Z
python/dsbox/template/template_files/loaded/SRIClassificationTemplate.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
7
2018-07-10T00:14:07.000Z
2019-07-25T17:59:44.000Z
from dsbox.template.template import DSBoxTemplate from d3m.metadata.problem import TaskKeyword from dsbox.template.template_steps import TemplateSteps from dsbox.schema import SpecializedProblem import typing import numpy as np # type: ignore
48.157895
274
0.444653
c978cd7b9db932291bd60fddc562ff295cb80fc4
192
py
Python
beecrowd exercises/beecrowd-1019.py
pachecosamuel/Python-Exercises
de542536dd1a2bc0ad27e81824713cda8ad34054
[ "MIT" ]
null
null
null
beecrowd exercises/beecrowd-1019.py
pachecosamuel/Python-Exercises
de542536dd1a2bc0ad27e81824713cda8ad34054
[ "MIT" ]
null
null
null
beecrowd exercises/beecrowd-1019.py
pachecosamuel/Python-Exercises
de542536dd1a2bc0ad27e81824713cda8ad34054
[ "MIT" ]
null
null
null
time = eval(input()) qtdtime = [3600, 60, 1] result = [] for i in qtdtime: qtd = time // i result.append(str(qtd)) time -= qtd * i print(f'{result[0]}:{result[1]}:{result[2]}')
16
45
0.557292
c979df9649b375b708736b82938ddd72a6f161b7
161
py
Python
Retired/How many times mentioned.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
Retired/How many times mentioned.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
Retired/How many times mentioned.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
from collections import Counter
32.2
45
0.714286
c97a5d77ecd44aba596f1a6d89d78783ed1f6a39
5,458
py
Python
bigorm/database.py
AnthonyPerez/bigorm
67ecdbb1f99cd5c8ec2ca24c7ba5f5dbed7493bb
[ "MIT" ]
null
null
null
bigorm/database.py
AnthonyPerez/bigorm
67ecdbb1f99cd5c8ec2ca24c7ba5f5dbed7493bb
[ "MIT" ]
3
2020-04-06T19:13:58.000Z
2020-05-22T22:21:31.000Z
bigorm/database.py
AnthonyPerez/bigorm
67ecdbb1f99cd5c8ec2ca24c7ba5f5dbed7493bb
[ "MIT" ]
null
null
null
import threading import functools import sqlalchemy from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() """ Once an engine is created is is not destroyed until the program itself exits. Engines are used to produce a new session when a context is entered. When a context is exited, the...
34.327044
177
0.622206
c97aeafdeaa32ce81d91fe53e55f4082c9dd290e
444
py
Python
src/rover/project/code/decision.py
juancruzgassoloncan/Udacity-Robo-nanodegree
7621360ce05faf90660989e9d28f56da083246c9
[ "MIT" ]
1
2020-12-28T13:58:34.000Z
2020-12-28T13:58:34.000Z
src/rover/project/code/decision.py
juancruzgassoloncan/Udacity-Robo-nanodegree
7621360ce05faf90660989e9d28f56da083246c9
[ "MIT" ]
null
null
null
src/rover/project/code/decision.py
juancruzgassoloncan/Udacity-Robo-nanodegree
7621360ce05faf90660989e9d28f56da083246c9
[ "MIT" ]
null
null
null
import numpy as np from rover_sates import * from state_machine import * # This is where you can build a decision tree for determining throttle, brake and steer # commands based on the output of the perception_step() function
23.368421
87
0.702703
c97ce1f34312b0218b91e4e2faa6b094d0a6ab72
188
py
Python
iotbot/logger.py
li7yue/python--iotbot
ca721b795114202114a4eb355d20f9ecfd9b8901
[ "MIT" ]
1
2020-10-05T01:09:15.000Z
2020-10-05T01:09:15.000Z
iotbot/logger.py
li7yue/python--iotbot
ca721b795114202114a4eb355d20f9ecfd9b8901
[ "MIT" ]
null
null
null
iotbot/logger.py
li7yue/python--iotbot
ca721b795114202114a4eb355d20f9ecfd9b8901
[ "MIT" ]
null
null
null
import sys from loguru import logger logger.remove() logger.add( sys.stdout, format='{level.icon} {time:YYYY-MM-DD HH:mm:ss} <lvl>{level}\t{message}</lvl>', colorize=True, )
17.090909
83
0.664894
c97d3cc7b903e622320da5991308503b0ba6a84c
1,770
py
Python
cloudcafe/networking/lbaas/common/types.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/networking/lbaas/common/types.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/networking/lbaas/common/types.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
1
2020-04-13T17:44:28.000Z
2020-04-13T17:44:28.000Z
""" Copyright 2013 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
36.875
76
0.716949
c97d6ba493e05a165ce59471439dfde7e1eb3a10
2,953
py
Python
utils.py
sthagen/example-app-report
dedb70755debfbe959d00515b101314dfeed6ec1
[ "MIT" ]
1
2021-09-05T18:12:27.000Z
2021-09-05T18:12:27.000Z
utils.py
sthagen/example-app-report
dedb70755debfbe959d00515b101314dfeed6ec1
[ "MIT" ]
null
null
null
utils.py
sthagen/example-app-report
dedb70755debfbe959d00515b101314dfeed6ec1
[ "MIT" ]
null
null
null
import os from dash import dcc, html URL_PATH_SEP = '/' URL_BASE_PATHNAME = os.getenv('REPORT_URL_BASE', URL_PATH_SEP) if URL_BASE_PATHNAME[-1] != URL_PATH_SEP: URL_BASE_PATHNAME += URL_PATH_SEP def make_dash_table(df): """Return a dash definition of an HTML table for a Pandas dataframe""" table = [] ...
29.53
79
0.385371
c97e6b1f40a5bb81ae2c559b1a1285a802b08835
53
py
Python
social/backends/ubuntu.py
raccoongang/python-social-auth
81c0a542d158772bd3486d31834c10af5d5f08b0
[ "BSD-3-Clause" ]
1,987
2015-01-01T16:12:45.000Z
2022-03-29T14:24:25.000Z
social/backends/ubuntu.py
raccoongang/python-social-auth
81c0a542d158772bd3486d31834c10af5d5f08b0
[ "BSD-3-Clause" ]
731
2015-01-01T22:55:25.000Z
2022-03-10T15:07:51.000Z
virtual/lib/python3.6/site-packages/social/backends/ubuntu.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
1,082
2015-01-01T16:27:26.000Z
2022-03-22T21:18:33.000Z
from social_core.backends.ubuntu import UbuntuOpenId
26.5
52
0.886792
c97f4aad4afc2d34135bd0a531bcabb3725f19f6
10,715
py
Python
tests/unit/states/test_libvirt.py
cvedel/salt
8731f42829ca1f0a38d2434057c485abeff222a7
[ "Apache-2.0", "MIT" ]
null
null
null
tests/unit/states/test_libvirt.py
cvedel/salt
8731f42829ca1f0a38d2434057c485abeff222a7
[ "Apache-2.0", "MIT" ]
null
null
null
tests/unit/states/test_libvirt.py
cvedel/salt
8731f42829ca1f0a38d2434057c485abeff222a7
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> ''' # pylint: disable=3rd-party-module-not-gated # Import Python libs from __future__ import absolute_import, print_function, unicode_literals import tempfile import shutil # Import Salt Testing Libs from tests.support.mixins import Lo...
44.832636
110
0.466729