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
fee39b66b3b2ef9dd7dd901d2d89a2d3c684442c
11,043
py
Python
leetcode_python/Linked_list/split-linked-list-in-parts.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Linked_list/split-linked-list-in-parts.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Linked_list/split-linked-list-in-parts.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 725. Split Linked List in Parts Medium 0Given the head of a singly linked list and an integer k, split the linked list into k consecutive linked list parts. The length of each part should be as equal as possible: no two parts should have a size differing by more than one. This may lead to some parts being null. ...
29.845946
167
0.472698
fee526d6327eadfd2a1c6fc5732f854eab5a5bb2
1,645
py
Python
carl/charts.py
zaratec/carl
9d655c2cb75d90ddc6b2d101073248a2fc3c252e
[ "MIT" ]
null
null
null
carl/charts.py
zaratec/carl
9d655c2cb75d90ddc6b2d101073248a2fc3c252e
[ "MIT" ]
null
null
null
carl/charts.py
zaratec/carl
9d655c2cb75d90ddc6b2d101073248a2fc3c252e
[ "MIT" ]
1
2020-11-19T23:41:28.000Z
2020-11-19T23:41:28.000Z
import numpy as np import matplotlib.pyplot as plt import matplotlib """ def ecdf(sorted_views): for view, data in sorted_views.iteritems(): yvals = np.arange(len(data))/float(len(data)) plt.plot(data, yvals, label=view) plt.grid(True) plt.xlabel('jaccard') plt.ylabel('CDF') lgnd ...
25.703125
78
0.6231
fee57ff8598ad386cc6460807e129b503a56f217
1,740
py
Python
tests/stimuli/test_flashed_images.py
balefebvre/pystim
ae51d8a4b478da6dec44b296407099c6257fa3fa
[ "MIT" ]
null
null
null
tests/stimuli/test_flashed_images.py
balefebvre/pystim
ae51d8a4b478da6dec44b296407099c6257fa3fa
[ "MIT" ]
null
null
null
tests/stimuli/test_flashed_images.py
balefebvre/pystim
ae51d8a4b478da6dec44b296407099c6257fa3fa
[ "MIT" ]
null
null
null
import pystim bin_path = None # TODO correct. vec_path = None # TODO correct. trials_path = None # TODO correct. stimulus = pystim.stimuli.flashed_images.load(bin_path, vec_path, trials_path) print(stimulus.nb_frames) print(stimulus.nb_diplays) print(stimulus.nb_trials) print(stimulus.nb_conditions) print(stimulu...
34.8
105
0.820115
fee65bcaf5d8cc11fa9804e94169f7ab6dcff8da
427
py
Python
test/test_google.py
kcather/Legacy
dcf92aa7d5d4213736e3018ce4b0eb945d80afb7
[ "MIT" ]
null
null
null
test/test_google.py
kcather/Legacy
dcf92aa7d5d4213736e3018ce4b0eb945d80afb7
[ "MIT" ]
null
null
null
test/test_google.py
kcather/Legacy
dcf92aa7d5d4213736e3018ce4b0eb945d80afb7
[ "MIT" ]
null
null
null
#### neeed to make sure google still work for sure # this may have to run on non-python devs' boxes, try/catch an install of the requests lib to be SURE try: import requests except: import os os.sys('easy_install pip') os.sys('pip install requests') import requests #r = requests.get('http://www.go...
25.117647
101
0.683841
fee67822f155f266cc796b6f601f1860ad8b8823
4,760
py
Python
examples/Kane1985/Chapter5/Ex10.10.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
298
2015-01-31T11:43:22.000Z
2022-03-15T02:18:21.000Z
examples/Kane1985/Chapter5/Ex10.10.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
359
2015-01-17T16:56:42.000Z
2022-02-08T05:27:08.000Z
examples/Kane1985/Chapter5/Ex10.10.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
109
2015-02-03T13:02:45.000Z
2021-12-21T12:57:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Exercise 10.10 from Kane 1985.""" from __future__ import division from sympy import expand, solve, symbols, sin, cos, S from sympy.physics.mechanics import ReferenceFrame, RigidBody, Point from sympy.physics.mechanics import dot, dynamicsymbols, inertia, msprint from ut...
33.521127
76
0.602731
fee67e3507fde627d604b24556de9fa5e1ddebf0
1,179
py
Python
src/test/test_pairwiseView.py
SensorDX/rainqc
d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd
[ "Apache-2.0" ]
1
2022-02-16T01:24:17.000Z
2022-02-16T01:24:17.000Z
src/test/test_pairwiseView.py
SensorDX/rainqc
d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd
[ "Apache-2.0" ]
null
null
null
src/test/test_pairwiseView.py
SensorDX/rainqc
d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from src.view import PairwiseView import numpy as np
35.727273
112
0.603053
feea04b5b8f70213610fd5b8726978dd6e62c7f1
1,013
py
Python
bmi.py
blorincz1/bmi-tool
b49e66bac422ab1fe411642937bd0679862b7042
[ "MIT" ]
null
null
null
bmi.py
blorincz1/bmi-tool
b49e66bac422ab1fe411642937bd0679862b7042
[ "MIT" ]
null
null
null
bmi.py
blorincz1/bmi-tool
b49e66bac422ab1fe411642937bd0679862b7042
[ "MIT" ]
null
null
null
# prompt user to enter how much they weigh in pounds weight = int(input ("How much do you weigh (in pounds)? ")) # prompt user to enter their height in inches height = int(input ("What is your height (in inches)? ")) # this converts weight to kilograms weight_in_kg = weight / 2.2 # this converts height to c...
31.65625
115
0.664363
feee07121fe76d5736e52eb5411adc869715e8db
7,031
py
Python
day92021.py
GeirOwe/adventOfCode
fee1420cb8ecce8b7aaf9d48472364be191ca2a2
[ "MIT" ]
1
2021-12-20T11:10:59.000Z
2021-12-20T11:10:59.000Z
day92021.py
GeirOwe/adventOfCode
fee1420cb8ecce8b7aaf9d48472364be191ca2a2
[ "MIT" ]
null
null
null
day92021.py
GeirOwe/adventOfCode
fee1420cb8ecce8b7aaf9d48472364be191ca2a2
[ "MIT" ]
1
2021-12-02T14:40:12.000Z
2021-12-02T14:40:12.000Z
# Day9 - 2021 Advent of code # source: https://adventofcode.com/2021/day/9 import os import numpy as np #let's start if __name__ == '__main__': clear_console() start_the_engine()
43.94375
114
0.54345
feee0df189f0b37958204462a48904755aa19b63
7,420
py
Python
cogs/Console.py
KhangOP/PaladinsAssistantBot
9b705dc688610ba52909f0b0e152d8684006c6a6
[ "MIT" ]
null
null
null
cogs/Console.py
KhangOP/PaladinsAssistantBot
9b705dc688610ba52909f0b0e152d8684006c6a6
[ "MIT" ]
null
null
null
cogs/Console.py
KhangOP/PaladinsAssistantBot
9b705dc688610ba52909f0b0e152d8684006c6a6
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from datetime import date, datetime # Class handles commands related to console players # Add this class to the cog list def setup(bot): bot.add_cog(ConsoleCommands(bot))
51.172414
119
0.568329
feeebbc5a748ddb1157bf558ba36f40a432ef1a6
666
py
Python
documentation/demonstrations/abfFromWks.py
swharden/PyOriginTools
536fb8e11234ffdc27e26b1800e0358179ca7d26
[ "MIT" ]
11
2018-04-22T20:34:53.000Z
2022-03-12T12:02:47.000Z
documentation/demonstrations/abfFromWks.py
swharden/PyOriginTools
536fb8e11234ffdc27e26b1800e0358179ca7d26
[ "MIT" ]
3
2018-01-11T14:54:46.000Z
2018-04-26T13:45:18.000Z
documentation/demonstrations/abfFromWks.py
swharden/PyOriginTools
536fb8e11234ffdc27e26b1800e0358179ca7d26
[ "MIT" ]
3
2019-05-14T13:36:14.000Z
2020-09-02T16:13:57.000Z
R""" try to get the worksheet name from a worksheet run -pyf C:\Users\swharden\Documents\GitHub\PyOriginTools\documentation\demonstrations\abfFromWks.py """ import sys if False: # this code block will NEVER actually run sys.path.append('../') # helps my IDE autocomplete sys.path.append('../../') # helps my...
30.272727
100
0.711712
feef852c484bcfaf650545d694c36f762735f100
803
py
Python
geniza/corpus/migrations/0018_document_doctype_help_link.py
kmcelwee/geniza
0e59134e35357d4f80d85bf1e423edbc29d1edfb
[ "Apache-2.0" ]
null
null
null
geniza/corpus/migrations/0018_document_doctype_help_link.py
kmcelwee/geniza
0e59134e35357d4f80d85bf1e423edbc29d1edfb
[ "Apache-2.0" ]
5
2020-09-22T17:35:24.000Z
2020-09-22T19:45:46.000Z
geniza/corpus/migrations/0018_document_doctype_help_link.py
kmcelwee/geniza
0e59134e35357d4f80d85bf1e423edbc29d1edfb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1 on 2021-08-19 15:49 import django.db.models.deletion from django.db import migrations, models
29.740741
176
0.595268
fef0f2eca41493ff175b1ce22f370a3502ed826a
50
py
Python
rubin_sim/scheduler/features/__init__.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
rubin_sim/scheduler/features/__init__.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
rubin_sim/scheduler/features/__init__.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
from .features import * from .conditions import *
16.666667
25
0.76
fef10be702d297731f0eada02c3e9a2ec0107a0f
5,932
py
Python
traj_er/t2vec_experience/classify_exp/tested_feature_extractor.py
lzzppp/DERT
e1f9ee2489f76e2ed741d6637fd2b1e8bb225fb6
[ "MIT" ]
7
2020-08-21T02:19:15.000Z
2021-12-30T02:02:40.000Z
traj_er/t2vec_experience/classify_exp/tested_feature_extractor.py
lzzppp/DERT
e1f9ee2489f76e2ed741d6637fd2b1e8bb225fb6
[ "MIT" ]
1
2021-04-21T13:50:53.000Z
2021-04-25T02:34:48.000Z
traj_er/t2vec_experience/classify_exp/tested_feature_extractor.py
lzzppp/DERT
e1f9ee2489f76e2ed741d6637fd2b1e8bb225fb6
[ "MIT" ]
1
2020-12-02T07:15:13.000Z
2020-12-02T07:15:13.000Z
import numpy as np import h5py from datetime import datetime from geopy.distance import distance import argparse import pickle import json import os def coord_distance(coords): """return distance between two points geopy.distance.distance accept [lat, lon] input, while this dataset is [lon, lat] """...
39.546667
134
0.630142
fef114610ec0d475191a1220ffe83885004935bc
2,545
py
Python
psystem/plot.py
ranocha/Dispersive-wave-error-growth-notebooks
cffe67961db325291a02258118d3c7261fcce788
[ "MIT" ]
null
null
null
psystem/plot.py
ranocha/Dispersive-wave-error-growth-notebooks
cffe67961db325291a02258118d3c7261fcce788
[ "MIT" ]
null
null
null
psystem/plot.py
ranocha/Dispersive-wave-error-growth-notebooks
cffe67961db325291a02258118d3c7261fcce788
[ "MIT" ]
null
null
null
from clawpack.petclaw.solution import Solution import matplotlib matplotlib.use('Agg') import matplotlib.pylab as pl from matplotlib import rc import numpy as np import os #
27.074468
98
0.574853
fef15a29a302098c87559c64e7c95311ad1af7bc
2,285
py
Python
deepl/layers/utils.py
akamnev/deepl
392c757e21dec7bdd72cb0f71298389ef0d13968
[ "MIT" ]
1
2020-06-08T14:06:36.000Z
2020-06-08T14:06:36.000Z
deepl/layers/utils.py
akamnev/deepl
392c757e21dec7bdd72cb0f71298389ef0d13968
[ "MIT" ]
null
null
null
deepl/layers/utils.py
akamnev/deepl
392c757e21dec7bdd72cb0f71298389ef0d13968
[ "MIT" ]
null
null
null
import torch from typing import List def kl_div(mu, sigma): """ KL-divergence between a diagonal multivariate normal, and a standard normal distribution (with zero mean and unit variance) """ sigma_2 = sigma * sigma kld = 0.5 * torch.mean(mu * mu + sigma_2 - torch.log(sigma_2) - 1.0) r...
31.736111
122
0.617068
fef388e9c0a8cc5d31503d18e82095b931d385f7
13,762
py
Python
main.py
ooshyun/filterdesign
59dbea191b8cd44aa9f2d02d3787b5805d486ae2
[ "MIT" ]
1
2021-12-27T00:38:32.000Z
2021-12-27T00:38:32.000Z
main.py
ooshyun/FilterDesign
7162ccad8e1ae8aebca370da56be56603b9e8b24
[ "MIT" ]
null
null
null
main.py
ooshyun/FilterDesign
7162ccad8e1ae8aebca370da56be56603b9e8b24
[ "MIT" ]
null
null
null
import os import json import numpy as np from numpy import log10, pi, sqrt import scipy.io.wavfile as wav from scipy.fftpack import * from src import ( FilterAnalyzePlot, WaveProcessor, ParametricEqualizer, GraphicalEqualizer, cvt_char2num, maker_logger, DEBUG, ) if DEBUG: PRINTER = ma...
26.113852
88
0.575861
fef4b3fa8786cd370700430b9b9414a5a831d2bf
3,322
py
Python
time_transfer.py
EternityNull/alfred_scripts-TimeTransfer
d7c24c977d174d0b71b9903193ce8225a5538c7c
[ "MIT" ]
null
null
null
time_transfer.py
EternityNull/alfred_scripts-TimeTransfer
d7c24c977d174d0b71b9903193ce8225a5538c7c
[ "MIT" ]
null
null
null
time_transfer.py
EternityNull/alfred_scripts-TimeTransfer
d7c24c977d174d0b71b9903193ce8225a5538c7c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import re import json from datetime import datetime from alfred import * TIMESTAMP_SEC_RE = r'^\d{10}$' # 1643372599 TIMESTAMP_MSEC_RE = r'^\d{13}$' # 1643372599000 # 2022-01-28 10:00:00 DATETIME_LONG_STR = r'^[1-9]\d{3}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$' DATET...
27.454545
84
0.609874
fef4d3e2153fde18995213ace718d0a7d41c56ac
55
py
Python
test.py
SquarerFive/ursina
8d2a86a702a96fe2d3d3b608b87e755bf28cb2ae
[ "MIT" ]
null
null
null
test.py
SquarerFive/ursina
8d2a86a702a96fe2d3d3b608b87e755bf28cb2ae
[ "MIT" ]
null
null
null
test.py
SquarerFive/ursina
8d2a86a702a96fe2d3d3b608b87e755bf28cb2ae
[ "MIT" ]
null
null
null
import ursina app = ursina.Ursina(init_showbase=True)
13.75
39
0.8
fef5faa5a487c2ba4ddeb8aafe0c3838370c774b
14,598
py
Python
ravager/bot/commands/admin_interface.py
CoolFool/Ravager
3d647115689dc23a160255221aaa493f879406a5
[ "MIT" ]
null
null
null
ravager/bot/commands/admin_interface.py
CoolFool/Ravager
3d647115689dc23a160255221aaa493f879406a5
[ "MIT" ]
1
2022-03-15T06:55:48.000Z
2022-03-15T15:38:20.000Z
ravager/bot/commands/admin_interface.py
CoolFool/Ravager
3d647115689dc23a160255221aaa493f879406a5
[ "MIT" ]
2
2022-02-09T21:30:57.000Z
2022-03-15T06:19:57.000Z
import logging from functools import wraps import psutil from telegram import InlineKeyboardMarkup, InlineKeyboardButton, ForceReply, ParseMode from telegram.ext import CommandHandler, CallbackQueryHandler, MessageHandler, Filters from ravager.bot.helpers.constants import * from ravager.bot.helpers.timeout import Con...
50.164948
140
0.644746
fef71fd2689cde39a6617bb13c2101fc8e715b36
10,004
py
Python
logo_rc.py
idocx/WHULibSeatReservation
198fc62910a7937cc654069eb2f3fbf44b6e6f1d
[ "MIT" ]
14
2019-02-24T01:53:37.000Z
2021-03-27T02:21:24.000Z
logo_rc.py
Linqiaosong/WHULibSeatReservation
da89e1d3db920d41d6d74b3f83f8cdebad305457
[ "MIT" ]
3
2019-06-11T03:31:49.000Z
2021-04-12T02:58:50.000Z
logo_rc.py
Linqiaosong/WHULibSeatReservation
da89e1d3db920d41d6d74b3f83f8cdebad305457
[ "MIT" ]
7
2019-06-06T17:31:27.000Z
2020-11-08T13:03:49.000Z
############################################################# # .doc # Githubhttps://github.com/idocx/WHULibSeatReservation ############################################################# from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x03\xac\ \x00\ \x00\x67\xf6\x78\x9c\xed\x9...
53.784946
104
0.703419
fef8828761203757d50e9784d410fa779ff9303d
563
py
Python
daoliagent/utils.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
daoliagent/utils.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
daoliagent/utils.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
import random import six.moves.urllib.parse as urlparse
20.107143
54
0.614565
fef8bcaaac0327ab05b3750bfd80e03d8695818d
2,745
py
Python
cookbook/chap9/main.py
duyquang6/py-side-project
e3cdfcf424bbb15afad8241a357de49a1717fba6
[ "Apache-2.0" ]
null
null
null
cookbook/chap9/main.py
duyquang6/py-side-project
e3cdfcf424bbb15afad8241a357de49a1717fba6
[ "Apache-2.0" ]
null
null
null
cookbook/chap9/main.py
duyquang6/py-side-project
e3cdfcf424bbb15afad8241a357de49a1717fba6
[ "Apache-2.0" ]
null
null
null
# 9.1. Putting a Wrapper Around a Function #region # import time # from functools import wraps # def timethis(func): # ''' # Decorator that reports the execution time. # ''' # @wraps(func) # def wrapper(*args, **kwargs): # start = time.time() # result = func(*args, **kwargs) # ...
20.639098
59
0.587614
fefa551e8285feb448d258e854941881fb3ad2e9
759
py
Python
doggo_ears_definitions.py
jryzkns/doggo-ears
004dbb8b07a0a2170ce0d04b6e1458b268cdd543
[ "MIT" ]
1
2020-08-28T16:49:32.000Z
2020-08-28T16:49:32.000Z
doggo_ears_definitions.py
jryzkns/doggo-ears
004dbb8b07a0a2170ce0d04b6e1458b268cdd543
[ "MIT" ]
null
null
null
doggo_ears_definitions.py
jryzkns/doggo-ears
004dbb8b07a0a2170ce0d04b6e1458b268cdd543
[ "MIT" ]
null
null
null
import numpy as np import torch torch.manual_seed(0) # PRE-PROCESSING RAVDESS_DSET_PATH = "C:\\Users\\***\\Downloads\\RAVDESS\\" TESS_DSET_PATH = "C:\\Users\\***\\Downloads\\TESS\\" N_WORKERS = 15 # DATASET emote_id = { "01" : "neutral", "03" : "happy", "04" : "sad", "05" : "angry"} emote_idn = ...
22.323529
58
0.623188
fefb10e3bc54bf078e079e6dd58a9eee22dea396
7,752
py
Python
vdp/pipeline/v1alpha/pipeline_service_pb2.py
instill-ai/protogen-python
6e118d34566b8d59e8bcd40e0ae28e0fc1a5d50f
[ "Apache-2.0" ]
1
2022-03-22T09:09:46.000Z
2022-03-22T09:09:46.000Z
vdp/pipeline/v1alpha/pipeline_service_pb2.py
instill-ai/protogen-python
6e118d34566b8d59e8bcd40e0ae28e0fc1a5d50f
[ "Apache-2.0" ]
4
2022-03-16T12:36:12.000Z
2022-03-22T10:53:12.000Z
vdp/pipeline/v1alpha/pipeline_service_pb2.py
instill-ai/protogen-python
6e118d34566b8d59e8bcd40e0ae28e0fc1a5d50f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: vdp/pipeline/v1alpha/pipeline_service.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import...
131.389831
3,390
0.821723
fefbae820a9ce01089538fc58c0ca13a3a6231eb
119
py
Python
slash/__init__.py
SilentJungle399/dpy-appcommands
d383ebd3414457aaaf1f65ff048604accb7bb1bc
[ "MIT" ]
2
2021-09-02T13:06:46.000Z
2021-09-03T07:19:54.000Z
slash/__init__.py
SilentJungle399/dpy-appcommands
d383ebd3414457aaaf1f65ff048604accb7bb1bc
[ "MIT" ]
null
null
null
slash/__init__.py
SilentJungle399/dpy-appcommands
d383ebd3414457aaaf1f65ff048604accb7bb1bc
[ "MIT" ]
1
2021-08-14T03:38:42.000Z
2021-08-14T03:38:42.000Z
__author__ = "SilentJungle399" __version__ = "1.0.0" from .client import * from .models import * from .enums import *
17
30
0.722689
fefc83e00d4e08e9e4f83915c661bd7690cde11d
211
py
Python
django-app/main/textanalyzers/textblobanalyzer.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
9
2019-07-07T02:57:50.000Z
2022-01-07T10:03:30.000Z
django-app/main/textanalyzers/textblobanalyzer.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
null
null
null
django-app/main/textanalyzers/textblobanalyzer.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
null
null
null
from .abstractanalyzer import AbstractAnalyzer from textblob import TextBlob
16.230769
46
0.729858
fefccd0f2f86b8b353d1a858bb9e54ee6a296e8f
850
py
Python
3/one.py
TheFrederick-git/adventofcode2021
a320f3bba2655afab1aad8bf2520ccb705b2fd1e
[ "MIT" ]
null
null
null
3/one.py
TheFrederick-git/adventofcode2021
a320f3bba2655afab1aad8bf2520ccb705b2fd1e
[ "MIT" ]
null
null
null
3/one.py
TheFrederick-git/adventofcode2021
a320f3bba2655afab1aad8bf2520ccb705b2fd1e
[ "MIT" ]
null
null
null
"""3/1 adventofcode""" with open("input.txt", "r", encoding="UTF-8") as i_file: data = i_file.read().splitlines() columns = [[row[i] for row in data] for i in range(len(data[0]))] def binlst_to_int(values) -> int: """Returns int values of binary in list form""" values = values[::-1] total = 0...
35.416667
85
0.64
fefdeea84966c3c376d5a46f9c21101aefc50772
193
py
Python
landing/views.py
XeryusTC/projman
3db118d51a9fc362153593f5a862187bdaf0a73c
[ "MIT" ]
null
null
null
landing/views.py
XeryusTC/projman
3db118d51a9fc362153593f5a862187bdaf0a73c
[ "MIT" ]
3
2015-12-08T17:14:31.000Z
2016-01-29T18:46:59.000Z
landing/views.py
XeryusTC/projman
3db118d51a9fc362153593f5a862187bdaf0a73c
[ "MIT" ]
null
null
null
from braces.views import AnonymousRequiredMixin from django.views.generic import TemplateView
32.166667
56
0.839378
3a00eea590558911d75f7435e45a186ce7c2a0a1
30,437
py
Python
startExperiment.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
1
2022-02-24T02:16:55.000Z
2022-02-24T02:16:55.000Z
startExperiment.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
null
null
null
startExperiment.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/python3 from functools import partial from datetime import datetime import pandas as pd from joblib import parallel_backend import random import numpy as np from sklearn.calibration import CalibratedClassifierCV import shutil import pathlib import os import math import random from matplotlib import pyplot ...
36.451497
182
0.610934
3a01b5b20e16dc59b45be5e462160adb8ae019e0
692
py
Python
dm/algorithms/HungarianAlg.py
forons/distance-measurement
39741aefed0aa2f86e8959338c867398ce6494c7
[ "MIT" ]
null
null
null
dm/algorithms/HungarianAlg.py
forons/distance-measurement
39741aefed0aa2f86e8959338c867398ce6494c7
[ "MIT" ]
null
null
null
dm/algorithms/HungarianAlg.py
forons/distance-measurement
39741aefed0aa2f86e8959338c867398ce6494c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np from scipy import optimize, sparse from .AbstractDistanceAlg import AbstractDistanceAlg
31.454545
81
0.669075
3a025d2fa53d6a334efac01743db85a3f7705e2e
757
py
Python
illallangi/delugeapi/filtercollection.py
illallangi/DelugeAPI
8a949c0cf505992d5e6363d1ff3a9ed5147fc1a1
[ "MIT" ]
null
null
null
illallangi/delugeapi/filtercollection.py
illallangi/DelugeAPI
8a949c0cf505992d5e6363d1ff3a9ed5147fc1a1
[ "MIT" ]
null
null
null
illallangi/delugeapi/filtercollection.py
illallangi/DelugeAPI
8a949c0cf505992d5e6363d1ff3a9ed5147fc1a1
[ "MIT" ]
null
null
null
from collections.abc import Sequence from .filter import Filter
29.115385
112
0.649934
3a04e44a83831c5da0bf2cc7640fd1129f243146
97
py
Python
odds/__init__.py
nik849/Odds
a2403e5f5428fcf826322b59410471ec97a6aa26
[ "MIT" ]
1
2017-11-05T20:41:12.000Z
2017-11-05T20:41:12.000Z
odds/__init__.py
nik849/Odds
a2403e5f5428fcf826322b59410471ec97a6aa26
[ "MIT" ]
2
2021-03-31T18:43:15.000Z
2021-12-13T19:46:28.000Z
odds/__init__.py
nik849/Odds
a2403e5f5428fcf826322b59410471ec97a6aa26
[ "MIT" ]
null
null
null
""" :copyright: Nick Hale :license: MIT, see LICENSE for more details. """ __version__ = '0.0.1'
16.166667
44
0.670103
3a078ca91eafb1c88f7c5c3ad6afd4b81ea83805
1,386
py
Python
src/io/protobuf_test.py
fritzo/pomagma
224bb6adab3fc68e2d853e6365b4b86a8f7f468f
[ "Apache-2.0" ]
10
2015-06-09T00:25:01.000Z
2019-06-11T16:07:31.000Z
src/io/protobuf_test.py
fritzo/pomagma
224bb6adab3fc68e2d853e6365b4b86a8f7f468f
[ "Apache-2.0" ]
25
2015-03-23T23:16:01.000Z
2017-08-29T03:35:59.000Z
src/io/protobuf_test.py
fritzo/pomagma
224bb6adab3fc68e2d853e6365b4b86a8f7f468f
[ "Apache-2.0" ]
null
null
null
from google.protobuf import text_format from pomagma.io import protobuf_test_pb2 from pomagma.io.protobuf import InFile, OutFile from pomagma.util import in_temp_dir from pomagma.util.testing import for_each EXAMPLES = [ parse(''), parse(''' optional_string: 'test' '''), parse(''' re...
24.75
55
0.585859
3a079d600f0144ca6ea7cb473635485bda6d1725
2,039
py
Python
python/oneflow/test/modules/test_linspace.py
lizhimeng159/oneflow
b5f504d7a2185c6d6ac2c97bc5f9a2a3dd78883d
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_linspace.py
lizhimeng159/oneflow
b5f504d7a2185c6d6ac2c97bc5f9a2a3dd78883d
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_linspace.py
lizhimeng159/oneflow
b5f504d7a2185c6d6ac2c97bc5f9a2a3dd78883d
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
33.983333
82
0.680726
3a081670c8619a8dbe9b2b1bb3b4d9935ec6801d
1,577
py
Python
alexia/apps/general/templatetags/menuitem.py
LaudateCorpus1/alexia-1
9c0d3c90c0ffe2237299a561b755b9c17905e354
[ "BSD-3-Clause" ]
8
2015-06-29T20:01:22.000Z
2020-10-19T13:49:38.000Z
alexia/apps/general/templatetags/menuitem.py
LaudateCorpus1/alexia-1
9c0d3c90c0ffe2237299a561b755b9c17905e354
[ "BSD-3-Clause" ]
67
2015-10-05T16:57:14.000Z
2022-03-28T19:57:36.000Z
alexia/apps/general/templatetags/menuitem.py
LaudateCorpus1/alexia-1
9c0d3c90c0ffe2237299a561b755b9c17905e354
[ "BSD-3-Clause" ]
6
2015-10-05T13:54:34.000Z
2021-11-30T05:11:58.000Z
import re from django.template import Library, Node, TemplateSyntaxError from django.template.base import token_kwargs from django.urls import Resolver404, resolve from django.utils.html import format_html register = Library()
29.203704
112
0.637286
3a0830f683c3bcea14ab59eb19f8a4474d9635b6
3,984
py
Python
superai/log/logger.py
mysuperai/superai-sdk
796c411c6ab69209600bf727e8fd08c20f4d67b1
[ "Apache-2.0" ]
1
2020-12-03T18:18:16.000Z
2020-12-03T18:18:16.000Z
superai/log/logger.py
mysuperai/superai-sdk
796c411c6ab69209600bf727e8fd08c20f4d67b1
[ "Apache-2.0" ]
13
2021-02-22T18:27:58.000Z
2022-02-10T08:14:10.000Z
superai/log/logger.py
mysuperai/superai-sdk
796c411c6ab69209600bf727e8fd08c20f4d67b1
[ "Apache-2.0" ]
1
2021-04-27T12:38:47.000Z
2021-04-27T12:38:47.000Z
""" Log initializer """ from __future__ import absolute_import, division, print_function, unicode_literals import itertools import logging import sys import os from logging.handlers import RotatingFileHandler from rich.logging import RichHandler from typing import List DEBUG = logging.DEBUG INFO = logging.INFO ERROR ...
29.511111
116
0.704317
3a090e5c232242360194af34105d0efa576a5d9f
6,613
py
Python
src/test.py
0shimax/SE-Wavenet
f3cf8239175fec02565c81995e5b9f9e1bbd5eb1
[ "MIT" ]
null
null
null
src/test.py
0shimax/SE-Wavenet
f3cf8239175fec02565c81995e5b9f9e1bbd5eb1
[ "MIT" ]
null
null
null
src/test.py
0shimax/SE-Wavenet
f3cf8239175fec02565c81995e5b9f9e1bbd5eb1
[ "MIT" ]
null
null
null
import argparse from pathlib import Path import torch import torch.nn.functional as F from sklearn.metrics import precision_recall_fscore_support, roc_curve, auc import matplotlib.pyplot as plt import numpy as np from data.data_loader import ActivDataset, loader from models.focal_loss import FocalLoss from models.ete_...
42.121019
145
0.665356
3a0d56385a100828a93d1a548339d663fa8c3ed6
4,031
py
Python
code/ConvexHull.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
code/ConvexHull.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
code/ConvexHull.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
from structure_helper_class import structure_helper from model_train_helper_class import model_train_helper import matplotlib.pyplot as plt import pandas as pd from tabulate import tabulate
47.988095
161
0.611015
3a0e24a4de9a8532f6e0fffca390853480dadb10
5,460
py
Python
PoPs/warning.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
14
2019-08-29T23:46:24.000Z
2022-03-21T10:16:25.000Z
PoPs/warning.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
1
2020-08-04T16:14:45.000Z
2021-12-01T01:54:34.000Z
PoPs/warning.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
2
2022-03-03T22:41:41.000Z
2022-03-03T22:54:43.000Z
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> """ Store and report warnings and errors in a PoPs database. PoPs.check() returns a nested list of warning objects: >>> ...
31.37931
116
0.630952
3a0f2160b69e0995f3cc76e9cebbc03eb599b9f1
2,077
py
Python
libra/transaction/script.py
MaslDi/libra-client
0983adfcb6787f7a16de4bf364cdf5596c183d88
[ "MIT" ]
null
null
null
libra/transaction/script.py
MaslDi/libra-client
0983adfcb6787f7a16de4bf364cdf5596c183d88
[ "MIT" ]
null
null
null
libra/transaction/script.py
MaslDi/libra-client
0983adfcb6787f7a16de4bf364cdf5596c183d88
[ "MIT" ]
null
null
null
from canoser import Struct, Uint8, bytes_to_int_list, hex_to_int_list from libra.transaction.transaction_argument import TransactionArgument, normalize_public_key from libra.bytecode import bytecodes from libra.account_address import Address
36.438596
93
0.641791
3a0f8c5dad18187b53b099da32a80926deec7934
172
py
Python
Statistics/SampleMean.py
Shannon-NJIT/MiniProject2_Statistics
961d579d40682c030b3aa88b4cd38fa828e8e01e
[ "MIT" ]
null
null
null
Statistics/SampleMean.py
Shannon-NJIT/MiniProject2_Statistics
961d579d40682c030b3aa88b4cd38fa828e8e01e
[ "MIT" ]
6
2019-11-04T22:48:39.000Z
2019-11-14T01:18:49.000Z
Statistics/SampleMean.py
Shannon-NJIT/MiniProject2_Statistics
961d579d40682c030b3aa88b4cd38fa828e8e01e
[ "MIT" ]
4
2019-10-29T23:24:57.000Z
2019-11-15T01:25:46.000Z
from Calculators.Division import division
21.5
50
0.715116
3a107df57da88f96818aa6ed0682c1887ef863ef
1,901
py
Python
puzzle/booking/candy.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
null
null
null
puzzle/booking/candy.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
9
2017-10-25T10:03:36.000Z
2018-06-12T22:49:22.000Z
puzzle/booking/candy.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict N, M, T = read_line_to_list() candies_ = [read_line_to_list() for _ in range(N)] collector = CollectCandies(N, M, T, candies_) print collector.get_max_sum()
32.220339
69
0.579695
3a110cf9f81c51a45a9e039e2675a3d01dca6237
13,818
py
Python
SourceRepositoryTools/__init__.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2017-04-25T13:15:10.000Z
2017-04-25T13:15:10.000Z
SourceRepositoryTools/__init__.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
null
null
null
SourceRepositoryTools/__init__.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
null
null
null
# ---------------------------------------------------------------------- # | # | __init__.py # | # | David Brownell <db@DavidBrownell.com> # | 2018-02-18 14:37:39 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2018. # | Distribute...
45.453947
285
0.481473
3a11220a149a467396eed9e2f60bcf713ed632ac
3,213
py
Python
db/xtraResources/edXBigDataSeries2015/CS100-1x/Module 3: Lectures.py
chrislangst/scalable-data-science
c7beee15c7dd14d27353c4864d927c1b76cd2fa9
[ "Unlicense" ]
138
2017-07-25T06:48:28.000Z
2022-03-31T12:23:36.000Z
db/xtraResources/edXBigDataSeries2015/CS100-1x/Module 3: Lectures.py
chrislangst/scalable-data-science
c7beee15c7dd14d27353c4864d927c1b76cd2fa9
[ "Unlicense" ]
11
2017-08-17T13:45:54.000Z
2021-06-04T09:06:53.000Z
db/xtraResources/edXBigDataSeries2015/CS100-1x/Module 3: Lectures.py
chrislangst/scalable-data-science
c7beee15c7dd14d27353c4864d927c1b76cd2fa9
[ "Unlicense" ]
74
2017-08-18T17:04:46.000Z
2022-03-21T14:30:51.000Z
# Databricks notebook source exported at Mon, 14 Mar 2016 03:21:05 UTC # MAGIC %md # MAGIC **SOURCE:** This is from the Community Edition of databricks and has been added to this databricks shard at [/#workspace/scalable-data-science/xtraResources/edXBigDataSeries2015/CS100-1x](/#workspace/scalable-data-science/xtraRes...
30.6
749
0.698101
3a11c774870f73e9df814c0fb0e907ad67a018a8
2,075
py
Python
src/einsteinpy/tests/test_plotting/test_staticgeodesicplotter.py
Ankk98/einsteinpy
e6c3e3939063a7698410163b6de52e499bb3c8ea
[ "MIT" ]
null
null
null
src/einsteinpy/tests/test_plotting/test_staticgeodesicplotter.py
Ankk98/einsteinpy
e6c3e3939063a7698410163b6de52e499bb3c8ea
[ "MIT" ]
null
null
null
src/einsteinpy/tests/test_plotting/test_staticgeodesicplotter.py
Ankk98/einsteinpy
e6c3e3939063a7698410163b6de52e499bb3c8ea
[ "MIT" ]
null
null
null
from unittest import mock import astropy.units as u import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import pytest from einsteinpy.coordinates import SphericalDifferential from einsteinpy.plotting import StaticGeodesicPlotter def test_plot_calls_draw_attractor_Manualscale(dummy_data):...
28.040541
63
0.700241
3a14941cbf1878d6614fada903d6f5559aa474e0
367
py
Python
pageOne.py
Priyanka1527/PageOne
ff129f305b13c8cac839e6a5f55f3853e1f16973
[ "MIT" ]
null
null
null
pageOne.py
Priyanka1527/PageOne
ff129f305b13c8cac839e6a5f55f3853e1f16973
[ "MIT" ]
null
null
null
pageOne.py
Priyanka1527/PageOne
ff129f305b13c8cac839e6a5f55f3853e1f16973
[ "MIT" ]
null
null
null
#from inv_ind.py import inverted_index import search
28.230769
81
0.599455
3a1626ac2fa1019fb590d26ad03b0ec329ab6d9d
2,017
py
Python
deciphon_cli/console/scan.py
EBI-Metagenomics/deciphon-cli
aa090c886db1f4dacc6bc88b46b6ebcecb79eaab
[ "MIT" ]
null
null
null
deciphon_cli/console/scan.py
EBI-Metagenomics/deciphon-cli
aa090c886db1f4dacc6bc88b46b6ebcecb79eaab
[ "MIT" ]
null
null
null
deciphon_cli/console/scan.py
EBI-Metagenomics/deciphon-cli
aa090c886db1f4dacc6bc88b46b6ebcecb79eaab
[ "MIT" ]
null
null
null
from enum import Enum import typer from fasta_reader import read_fasta from deciphon_cli.core import ScanPost, SeqPost from deciphon_cli.requests import get_json, get_plain, post_json __all__ = ["app"] app = typer.Typer()
24.901235
84
0.67526
3a163271adf00fd1d184016bb403b5d130a4068f
1,655
py
Python
neuralmaterial/lib/models/vgg.py
NejcHirci/material-addon
c08e2081413c3319b712c2f7193ac8013f601382
[ "MIT" ]
4
2022-01-31T14:26:39.000Z
2022-02-06T06:34:27.000Z
neuralmaterial/lib/models/vgg.py
NejcHirci/material_addon
c08e2081413c3319b712c2f7193ac8013f601382
[ "MIT" ]
2
2022-01-30T10:35:04.000Z
2022-01-30T10:35:04.000Z
neuralmaterial/lib/models/vgg.py
NejcHirci/material-addon
c08e2081413c3319b712c2f7193ac8013f601382
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.hub import load_state_dict_from_url
33.77551
113
0.578852
3a16438d4a6793d41974ba3f9e345b3deca9076f
296
py
Python
portfolio/admin.py
jokimies/django-pj-portfolio
ce32882fa3f5cc3206b2a61eb5cd88c0cdf243ec
[ "BSD-3-Clause" ]
3
2017-02-02T19:58:57.000Z
2021-08-10T14:43:37.000Z
portfolio/admin.py
jokimies/django-pj-portfolio
ce32882fa3f5cc3206b2a61eb5cd88c0cdf243ec
[ "BSD-3-Clause" ]
4
2016-01-15T14:18:37.000Z
2016-03-06T15:06:31.000Z
portfolio/admin.py
jokimies/django-pj-portfolio
ce32882fa3f5cc3206b2a61eb5cd88c0cdf243ec
[ "BSD-3-Clause" ]
2
2019-10-12T02:05:49.000Z
2022-03-08T16:25:17.000Z
from portfolio.models import Transaction, Security, Price, Account from portfolio.models import PriceTracker from django.contrib import admin admin.site.register(Transaction) admin.site.register(Security) admin.site.register(Price) admin.site.register(PriceTracker) admin.site.register(Account)
29.6
66
0.841216
3a16bef75430d1f8616b4661d929e57eb96f5d11
1,295
py
Python
quasimodo/cache/file_cache.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
16
2019-11-28T13:26:37.000Z
2022-02-09T09:53:10.000Z
quasimodo/cache/file_cache.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
1
2021-03-26T20:31:48.000Z
2021-07-15T08:52:47.000Z
quasimodo/cache/file_cache.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
3
2020-08-14T23:23:25.000Z
2021-12-24T14:02:35.000Z
import os import shutil
32.375
95
0.565251
3a16fcd29e32261f583e0fe17a97b6df4dbfd030
391
py
Python
OpticsLab/components.py
AzizAlqasem/OpticsLab
a68c12edc9998f0709bae3da2fa0f85778e19bf0
[ "MIT" ]
null
null
null
OpticsLab/components.py
AzizAlqasem/OpticsLab
a68c12edc9998f0709bae3da2fa0f85778e19bf0
[ "MIT" ]
null
null
null
OpticsLab/components.py
AzizAlqasem/OpticsLab
a68c12edc9998f0709bae3da2fa0f85778e19bf0
[ "MIT" ]
null
null
null
""" The components module has all optical components that are used in optics """
11.848485
76
0.557545
3a193908dfb0eb3ea9c064b546eae9b145317435
10,915
py
Python
txraft/test_txraft.py
tehasdf/txraft
860345e4a10d438d3fc69d752f09a06546c92d08
[ "MIT" ]
null
null
null
txraft/test_txraft.py
tehasdf/txraft
860345e4a10d438d3fc69d752f09a06546c92d08
[ "MIT" ]
null
null
null
txraft/test_txraft.py
tehasdf/txraft
860345e4a10d438d3fc69d752f09a06546c92d08
[ "MIT" ]
null
null
null
from twisted.internet.defer import succeed from twisted.internet.task import Clock from twisted.trial.unittest import TestCase from txraft import Entry, RaftNode, MockRPC, STATE from txraft.commands import AppendEntriesCommand, RequestVotesCommand
30.319444
93
0.599542
3a19793608f407d01e4af46fb22f949e028fb9e8
6,867
py
Python
prototype/c2dn/script/analysis/extractData.py
Thesys-lab/C2DN
55aa7fc1cd13ab0c80a9c25aa0288b454616d83c
[ "Apache-2.0" ]
null
null
null
prototype/c2dn/script/analysis/extractData.py
Thesys-lab/C2DN
55aa7fc1cd13ab0c80a9c25aa0288b454616d83c
[ "Apache-2.0" ]
null
null
null
prototype/c2dn/script/analysis/extractData.py
Thesys-lab/C2DN
55aa7fc1cd13ab0c80a9c25aa0288b454616d83c
[ "Apache-2.0" ]
null
null
null
import os, sys sys.path.append(os.path.expanduser("~/workspace/")) from pyutils.common import * if __name__ == "__main__": BASE_DIR = "/nvme/log/p/2021-02-01/" # load_all_fe_metrics(f"{BASE_DIR}/0124/aws_CDN_akamai2_expLatency_unavail0_1000G/", system="CDN") # load_all_fe_metrics(f"{BASE_DIR}/0124...
42.388889
128
0.642493
3a1a4878173988f64e8012e0966e1a78c639eef8
4,116
py
Python
ToDo/settings/common.py
adarsh9780/2Do
b0f3067b34c49987a4bbb7b56813d73805d83918
[ "MIT" ]
null
null
null
ToDo/settings/common.py
adarsh9780/2Do
b0f3067b34c49987a4bbb7b56813d73805d83918
[ "MIT" ]
10
2020-01-03T16:56:27.000Z
2022-01-13T00:41:57.000Z
ToDo/settings/common.py
adarsh9780/2Do
b0f3067b34c49987a4bbb7b56813d73805d83918
[ "MIT" ]
null
null
null
""" Django settings for ToDo project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os # ...
27.078947
91
0.710641
3a1ad1cbd5fa6fd57f60b6cfe90e8e847de62504
89
py
Python
openamundsen/modules/__init__.py
openamundsen/openamundsen
2ac09eb34b0c72c84c421a0dac08d114a05b7b1c
[ "MIT" ]
3
2021-05-28T06:46:36.000Z
2021-06-14T13:39:25.000Z
openamundsen/modules/__init__.py
openamundsen/openamundsen
2ac09eb34b0c72c84c421a0dac08d114a05b7b1c
[ "MIT" ]
22
2021-04-28T12:31:58.000Z
2022-03-09T18:29:12.000Z
openamundsen/modules/__init__.py
openamundsen/openamundsen
2ac09eb34b0c72c84c421a0dac08d114a05b7b1c
[ "MIT" ]
1
2021-06-01T12:48:54.000Z
2021-06-01T12:48:54.000Z
from . import ( canopy, evapotranspiration, radiation, snow, soil, )
11.125
23
0.573034
3a1b3de82b0cb02451c59c3a93b30506f022268a
188
py
Python
config/urls.py
laactech/django-security-headers-example
86ea0b7209f8871c32100ada31fe00aa4a8e9f63
[ "BSD-3-Clause" ]
1
2019-10-09T22:08:27.000Z
2019-10-09T22:08:27.000Z
config/urls.py
laactech/django-security-headers-example
86ea0b7209f8871c32100ada31fe00aa4a8e9f63
[ "BSD-3-Clause" ]
7
2020-06-05T23:45:57.000Z
2022-02-10T10:40:54.000Z
config/urls.py
laactech/django-security-headers-example
86ea0b7209f8871c32100ada31fe00aa4a8e9f63
[ "BSD-3-Clause" ]
null
null
null
from django.urls import path from django_security_headers_example.core.views import LandingPageView urlpatterns = [ path("", view=LandingPageView.as_view(), name="landing_page"), ]
20.888889
70
0.776596
3a1bb607068330f96d4bdb50c12759ee1c1a9528
14,071
py
Python
tests/unit/test_experiments_analytics.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
1,690
2017-11-29T20:13:37.000Z
2022-03-31T12:58:11.000Z
tests/unit/test_experiments_analytics.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
2,762
2017-12-04T05:18:03.000Z
2022-03-31T23:40:11.000Z
tests/unit/test_experiments_analytics.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
961
2017-11-30T16:44:03.000Z
2022-03-30T23:12:09.000Z
from __future__ import absolute_import import mock import pytest import pandas as pd from collections import OrderedDict from sagemaker.analytics import ExperimentAnalytics
40.66763
100
0.538341
3a1c1e3d3d934a3c220e33611b61500c0a74317b
14,244
py
Python
uni_ticket/migrations/0001_initial.py
biotech2021/uniTicket
8c441eac18e67a983e158326b1c4b82f00f1f1ef
[ "Apache-2.0" ]
15
2019-09-06T06:47:08.000Z
2022-01-17T06:39:54.000Z
uni_ticket/migrations/0001_initial.py
biotech2021/uniTicket
8c441eac18e67a983e158326b1c4b82f00f1f1ef
[ "Apache-2.0" ]
69
2019-09-06T12:03:19.000Z
2022-03-26T14:30:53.000Z
uni_ticket/migrations/0001_initial.py
biotech2021/uniTicket
8c441eac18e67a983e158326b1c4b82f00f1f1ef
[ "Apache-2.0" ]
13
2019-09-11T10:54:20.000Z
2021-11-23T09:09:19.000Z
# Generated by Django 2.1.7 on 2019-04-04 12:15 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
53.750943
713
0.582982
3a20f5e777be4409e899dec4e5460fecff5677e0
10,325
py
Python
baselines/baseline_summarunner/main.py
PKULiuHui/LiveBlogSum
b6a22521ee454e649981d70ddca6c89a1bac5a4c
[ "MIT" ]
null
null
null
baselines/baseline_summarunner/main.py
PKULiuHui/LiveBlogSum
b6a22521ee454e649981d70ddca6c89a1bac5a4c
[ "MIT" ]
null
null
null
baselines/baseline_summarunner/main.py
PKULiuHui/LiveBlogSum
b6a22521ee454e649981d70ddca6c89a1bac5a4c
[ "MIT" ]
null
null
null
# coding:utf-8 import torch import torch.nn as nn from torch.autograd import Variable from torch.nn.utils import clip_grad_norm_ from torch.utils.data import DataLoader from tqdm import tqdm import numpy as np import math import re import sys from Vocab import Vocab from Dataset import Dataset from RNN_RNN import RNN_R...
36.743772
120
0.606683
3a236c93064f118a008812da513e38be43b9a0c5
3,512
py
Python
data_utils/split_data.py
amitfishy/deep-objdetect
d8fc03bdb532443588b910fb9cb488766c8f6a97
[ "MIT" ]
null
null
null
data_utils/split_data.py
amitfishy/deep-objdetect
d8fc03bdb532443588b910fb9cb488766c8f6a97
[ "MIT" ]
null
null
null
data_utils/split_data.py
amitfishy/deep-objdetect
d8fc03bdb532443588b910fb9cb488766c8f6a97
[ "MIT" ]
null
null
null
import os from random import shuffle import pascalvoc_to_yolo
46.210526
229
0.825456
3a26a3c6be42741ef5f1bdf670939b37671499bb
547
py
Python
books/migrations/0002_auto_20200518_1636.py
JorgeluissilvaC/intellinext_books
0495744920dac6ee98c7ad024f8d8f85d0838238
[ "MIT" ]
null
null
null
books/migrations/0002_auto_20200518_1636.py
JorgeluissilvaC/intellinext_books
0495744920dac6ee98c7ad024f8d8f85d0838238
[ "MIT" ]
null
null
null
books/migrations/0002_auto_20200518_1636.py
JorgeluissilvaC/intellinext_books
0495744920dac6ee98c7ad024f8d8f85d0838238
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-05-18 21:36 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
24.863636
122
0.645338
3a278df76c850ba375f90a83b4923f079000c2f6
1,385
py
Python
debian-11-PrisonPC/xfce/log-terminal-attempt.py
mijofa/bootstrap2020
38f557f4f0e72eaefe366f12f6adac3e2f9c9abd
[ "MIT" ]
null
null
null
debian-11-PrisonPC/xfce/log-terminal-attempt.py
mijofa/bootstrap2020
38f557f4f0e72eaefe366f12f6adac3e2f9c9abd
[ "MIT" ]
null
null
null
debian-11-PrisonPC/xfce/log-terminal-attempt.py
mijofa/bootstrap2020
38f557f4f0e72eaefe366f12f6adac3e2f9c9abd
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os import sys import syslog # FIXME: use systemd.journal.send()? import gi gi.require_version('Notify', '0.7') import gi.repository.Notify # noqa: E402 __doc__ = """ an ersatz xterm that says "No!" and quits """ # Tell the central server. # FIXME: ends up in user journ...
34.625
95
0.704693
3a2b8a858ee6da50e87c4cd8bfce4156f67a9cc7
844
py
Python
lgtv.py
aakropotkin/PyWebOSTV
4c060541b397dc20f79049fa9390c1b6b1a7050b
[ "MIT" ]
null
null
null
lgtv.py
aakropotkin/PyWebOSTV
4c060541b397dc20f79049fa9390c1b6b1a7050b
[ "MIT" ]
null
null
null
lgtv.py
aakropotkin/PyWebOSTV
4c060541b397dc20f79049fa9390c1b6b1a7050b
[ "MIT" ]
null
null
null
#! /usr/bin/env nix-shell #! nix-shell -i python3 -p "[python3] ++ (with pkgs.python37Packages; [ requests future ws4py pytest pylint coveralls twine wheel ])" # <<END Extended Shebang>> import json from pywebostv.discovery import * from pywebostv.connection import * from pywebostv.controls import * with open('/home/...
28.133333
133
0.728673
3a2e8191805b6dc90c6ff13576324c98a0708604
2,102
py
Python
lutin_lua.py
generic-library/lua
1dddc5e025d94bd62ae6ca9e9e3f2cd11ed23a35
[ "MIT" ]
null
null
null
lutin_lua.py
generic-library/lua
1dddc5e025d94bd62ae6ca9e9e3f2cd11ed23a35
[ "MIT" ]
null
null
null
lutin_lua.py
generic-library/lua
1dddc5e025d94bd62ae6ca9e9e3f2cd11ed23a35
[ "MIT" ]
null
null
null
#!/usr/bin/python import realog.debug as debug import lutin.tools as tools
18.438596
58
0.569458
3a328bda03f529d92fa1c790651cd4083a64c3f3
2,657
py
Python
tests/lib/io/test_marshall.py
yukgu/covid-model-seiir-pipeline
3433034d3f089938e7993b6321d570365bdf62db
[ "BSD-3-Clause" ]
23
2020-05-25T00:20:32.000Z
2022-01-18T10:32:09.000Z
tests/lib/io/test_marshall.py
yukgu/covid-model-seiir-pipeline
3433034d3f089938e7993b6321d570365bdf62db
[ "BSD-3-Clause" ]
15
2020-06-15T16:34:22.000Z
2021-08-15T22:11:37.000Z
tests/lib/io/test_marshall.py
yukgu/covid-model-seiir-pipeline
3433034d3f089938e7993b6321d570365bdf62db
[ "BSD-3-Clause" ]
11
2020-05-24T21:57:29.000Z
2021-09-07T18:21:15.000Z
import pandas import pytest from covid_model_seiir_pipeline.lib.io import RegressionRoot from covid_model_seiir_pipeline.lib.io.marshall import ( CSVMarshall, ParquetMarshall, )
37.422535
105
0.694016
3a3466847842fadedb0751fe60c731009684a618
727
py
Python
bot/commands/settings.py
mercdev-corp/repsoter
5ab98e84556143d4688ae5497443916fa63431b0
[ "MIT" ]
2
2020-10-26T09:26:13.000Z
2022-03-22T18:10:01.000Z
bot/commands/settings.py
mercdev-corp/repsoter
5ab98e84556143d4688ae5497443916fa63431b0
[ "MIT" ]
null
null
null
bot/commands/settings.py
mercdev-corp/repsoter
5ab98e84556143d4688ae5497443916fa63431b0
[ "MIT" ]
2
2020-02-11T08:11:19.000Z
2022-03-20T18:16:41.000Z
from telegram import Update from telegram.ext import CallbackContext, CommandHandler from bot.settings import settings from bot.utils import get_log from ._utils import require_owner log = get_log(__name__) handler = CommandHandler('settings', command)
30.291667
80
0.621733
3a34c3856763aba4f082175e4e23858129d09e5b
3,595
py
Python
civbot/commands/cmd_add_game.py
thyjukki/Civi-Botti-2.0
7b9ff6bf3e97b90f61286e7688db731f91365e88
[ "MIT" ]
null
null
null
civbot/commands/cmd_add_game.py
thyjukki/Civi-Botti-2.0
7b9ff6bf3e97b90f61286e7688db731f91365e88
[ "MIT" ]
3
2020-04-28T09:19:11.000Z
2021-06-01T23:21:32.000Z
civbot/commands/cmd_add_game.py
thyjukki/Civi-Botti-2.0
7b9ff6bf3e97b90f61286e7688db731f91365e88
[ "MIT" ]
null
null
null
import telegram from telegram.ext import CommandHandler, ConversationHandler, MessageHandler, \ Filters from civbot.commands.cmd_cancel import cancel_all from civbot.models import User, Subscription SELECT = 1 # noinspection PyUnusedLocal
28.307087
79
0.628929
3a351e34d111e613d1ab5005378d1998b8366f78
982
bzl
Python
internal/run.bzl
kennethzfeng/rules_nomad
b5c000b3c860157917f2af0eebc689ea8c2f796d
[ "MIT" ]
null
null
null
internal/run.bzl
kennethzfeng/rules_nomad
b5c000b3c860157917f2af0eebc689ea8c2f796d
[ "MIT" ]
null
null
null
internal/run.bzl
kennethzfeng/rules_nomad
b5c000b3c860157917f2af0eebc689ea8c2f796d
[ "MIT" ]
null
null
null
# Rule nomad_run generates a runner script to execute nomad run with the given # job file. # # NOTE(kfeng): This rule currently assumes that the nomad executable is # installed on the host machine, and is in one of the directories listed in # the PATH environment variable. In the future, this project may fetch # the n...
28.057143
78
0.657841
3a354a29d377cbf952a940a0b75110dea65c2d7e
1,355
py
Python
tutorials/W1D4_Optimization/solutions/W1D4_Tutorial1_Solution_9732cf5a.py
carsen-stringer/course-content-dl
27749aec56a3d2a43b3890483675ad0338a2680f
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
tutorials/W1D4_Optimization/solutions/W1D4_Tutorial1_Solution_9732cf5a.py
carsen-stringer/course-content-dl
27749aec56a3d2a43b3890483675ad0338a2680f
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
tutorials/W1D4_Optimization/solutions/W1D4_Tutorial1_Solution_9732cf5a.py
carsen-stringer/course-content-dl
27749aec56a3d2a43b3890483675ad0338a2680f
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
def rmsprop_update(loss, params, grad_sq, lr=1e-1, alpha=0.8): """Perform an RMSprop update on a collection of parameters Args: loss (tensor): A scalar tensor containing the loss whose gradient will be computed params (iterable): Collection of parameters with respect to which we compute gradients grad_...
39.852941
90
0.724723
3a35de756e73312c8d8aa96bb05d403a7ba20ad8
4,289
py
Python
tridentstream/inputs/rfs/handler.py
tridentstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
6
2020-01-03T14:50:09.000Z
2021-09-13T01:44:31.000Z
tridentstream/inputs/rfs/handler.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
tridentstream/inputs/rfs/handler.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
import logging from urllib.parse import urljoin import requests from thomas import Item, StreamerBase, router from unplugged import Schema, fields from twisted.internet import threads from ...exceptions import NotModifiedException, PathNotFoundException from ...plugins import InputPlugin from ...stream import Stream...
30.41844
96
0.609466
3a35e243be4e6577ec779fc127c120ca3ef47d2e
741
py
Python
twitter/test_api.py
jsnowacki/aws-cdk-twitter-sentiment
364291cf5976cf13eb277cd2945a324b048b1df9
[ "MIT" ]
null
null
null
twitter/test_api.py
jsnowacki/aws-cdk-twitter-sentiment
364291cf5976cf13eb277cd2945a324b048b1df9
[ "MIT" ]
null
null
null
twitter/test_api.py
jsnowacki/aws-cdk-twitter-sentiment
364291cf5976cf13eb277cd2945a324b048b1df9
[ "MIT" ]
null
null
null
from api import get_secret, get_tweepy_api, TwitterApiSecret import json SECRET_NAME = "TwitterAPIKeys"
30.875
60
0.727395
3a3672cb76e143ae0a5005d6285eaadd341c12b6
34,698
py
Python
SAI/bm/sai_adapter/test/ptf_tests/tests/sail2_new.py
bocon13/stratum-sonic
9be75505869ee81d30ef9b65276f7d55f495658f
[ "Apache-2.0" ]
null
null
null
SAI/bm/sai_adapter/test/ptf_tests/tests/sail2_new.py
bocon13/stratum-sonic
9be75505869ee81d30ef9b65276f7d55f495658f
[ "Apache-2.0" ]
null
null
null
SAI/bm/sai_adapter/test/ptf_tests/tests/sail2_new.py
bocon13/stratum-sonic
9be75505869ee81d30ef9b65276f7d55f495658f
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-present Barefoot Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
49.357041
136
0.645426
3a37961a35f717a520a82adff518def2441c92f7
2,024
py
Python
app/main/service/exp_service.py
ayoyin/REST-API
965cda0f87ba8055ee78e9300ca80d5ed79a41c8
[ "MIT" ]
1
2021-06-01T14:35:11.000Z
2021-06-01T14:35:11.000Z
app/main/service/exp_service.py
ayoyin/REST-API
965cda0f87ba8055ee78e9300ca80d5ed79a41c8
[ "MIT" ]
10
2021-05-26T22:27:59.000Z
2021-06-03T21:04:43.000Z
app/main/service/exp_service.py
ayoyin/REST-API
965cda0f87ba8055ee78e9300ca80d5ed79a41c8
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from flask_sqlalchemy import SQLAlchemy from model.exp_model import Experience, ExperienceSchema
31.625
83
0.682312
3a387d0d5be89499283e51eedf3d994a0ac9cdc2
4,850
py
Python
SearchService/query_converter.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
SearchService/query_converter.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
SearchService/query_converter.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
""" Code for turning a GAE Search query into a SOLR query. """ import logging import sys from constants import INDEX_NAME_FIELD, INDEX_LOCALE_FIELD from appscale.common.unpackaged import APPSCALE_PYTHON_APPSERVER sys.path.append(APPSCALE_PYTHON_APPSERVER) from google.appengine.api.search import query_parser from goo...
33.680556
80
0.703711
3a393e7c4f3f1d263e29f99079506e54bfc2ef8b
367
py
Python
scripts/hackathon/create_evaluable_CAG.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
25
2018-03-03T11:57:57.000Z
2022-01-16T21:19:54.000Z
scripts/hackathon/create_evaluable_CAG.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
385
2018-02-21T16:52:06.000Z
2022-02-17T07:44:56.000Z
scripts/hackathon/create_evaluable_CAG.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
19
2018-03-20T01:08:11.000Z
2021-09-29T01:04:49.000Z
import sys import pickle if __name__ == "__main__": create_evaluable_CAG(sys.argv[1], sys.argv[2])
24.466667
58
0.6703
3a3c0a988b2a4e559c53ae9edf07f389f8af9b71
774
py
Python
texture_dat_vulnerability/texture_gen.py
krystalgamer/spidey-tools
59648b5305e829718c22ec8fd91c795f7551d89d
[ "MIT" ]
15
2017-07-04T20:27:43.000Z
2022-03-21T21:30:55.000Z
texture_dat_vulnerability/texture_gen.py
krystalgamer/spidey-tools
59648b5305e829718c22ec8fd91c795f7551d89d
[ "MIT" ]
7
2017-12-04T11:13:07.000Z
2020-07-27T18:42:23.000Z
texture_dat_vulnerability/texture_gen.py
krystalgamer/spidey-tools
59648b5305e829718c22ec8fd91c795f7551d89d
[ "MIT" ]
5
2018-08-21T17:02:22.000Z
2022-03-21T21:18:46.000Z
byt = open("xor_key.bin", "rb").read() final = "\x00\x00\x00\x00\x6A\x00\x6A\x00\x68".encode() final = [e for e in final] final.append(0x26) final.append(0xFC) final.append(0x19) final.append(0x00) final.append(0x6A) final.append(0x00) final = [e for e in final] final.append(0xB8) final.append(0xC8) final.append(0x59) ...
20.368421
55
0.706718
3a3c22b7737a192dfe1f9e9024ae59ca8fe3e8e0
3,721
py
Python
inclearn/convnet/my_resnet.py
romilbhardwaj/incremental_learning.pytorch
77097ef4dd4fc6b6c35d13ef66856d6f8a15598d
[ "MIT" ]
3
2019-07-01T14:43:05.000Z
2019-12-27T13:26:52.000Z
inclearn/convnet/my_resnet.py
rahulvigneswaran/incremental_learning.pytorch
786ecda7dbce5977894737d61cd5e3a30f61aac6
[ "MIT" ]
null
null
null
inclearn/convnet/my_resnet.py
rahulvigneswaran/incremental_learning.pytorch
786ecda7dbce5977894737d61cd5e3a30f61aac6
[ "MIT" ]
null
null
null
''' Incremental-Classifier Learning Authors : Khurram Javed, Muhammad Talha Paracha Maintainer : Khurram Javed Lab : TUKL-SEECS R&D Lab Email : 14besekjaved@seecs.edu.pk ''' import math import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import init def resnet_rebuffi(n=5): r...
27.562963
108
0.58452
3a3d256dc2972ac84c9fb003786b75e70d7fb65f
406
py
Python
IO/__init__.py
killian-mahe/the_eternal_kingdom
82798246e4c5608b508487407c9d4154fd59f615
[ "MIT" ]
2
2020-03-27T15:01:22.000Z
2020-04-30T20:09:00.000Z
IO/__init__.py
killian-mahe/the_eternal_kingdom
82798246e4c5608b508487407c9d4154fd59f615
[ "MIT" ]
null
null
null
IO/__init__.py
killian-mahe/the_eternal_kingdom
82798246e4c5608b508487407c9d4154fd59f615
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ IO ~~~~~~~~~~~~~~~~~~~ A Python module for Input and Ouput interactions :copyright: (c) 2020 Killian Mah :license: MIT, see LICENSE for more details. """ __title__ = 'io' __author__ = 'Killian Mah' __license__ = 'MIT' __copyright__ = 'Copyright 2020 Killian Mah' __version__ = '0.0.1' f...
18.454545
48
0.687192
3a3ec3da72c85292efaee127eb5ad56d111e5946
2,095
py
Python
src/nlplib/general/thread.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
1
2015-11-18T12:59:52.000Z
2015-11-18T12:59:52.000Z
src/nlplib/general/thread.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
null
null
null
src/nlplib/general/thread.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
null
null
null
''' Tools for dealing with multithreaded programs. ''' from concurrent.futures import ThreadPoolExecutor, as_completed from nlplib.general.iterate import chunked __all__ = ['simultaneously'] if __name__ == '__main__' : from nlplib.general.unittest import UnitTest __test__(UnitTest()) __demo__()
32.734375
119
0.673031
3a3fde2cf2ecbd1e9eca3699e4a52186eb8eddb3
781
py
Python
gazepattern/eyedetector/migrations/0005_experiment.py
AriRodriguezCruz/mcfgpr
c6f83f8e68bbab0054a7ea337feab276fc0790fc
[ "MIT" ]
null
null
null
gazepattern/eyedetector/migrations/0005_experiment.py
AriRodriguezCruz/mcfgpr
c6f83f8e68bbab0054a7ea337feab276fc0790fc
[ "MIT" ]
12
2020-06-05T22:56:39.000Z
2022-02-10T10:35:13.000Z
gazepattern/eyedetector/migrations/0005_experiment.py
AriRodriguezCruz/mcfgpr
c6f83f8e68bbab0054a7ea337feab276fc0790fc
[ "MIT" ]
1
2019-10-06T23:40:45.000Z
2019-10-06T23:40:45.000Z
# Generated by Django 2.2.5 on 2019-09-28 19:25 from django.db import migrations, models import django.db.models.deletion
32.541667
142
0.618438
3a40757daf1bd20cc9fcc10f04000eea8ce07c26
108
py
Python
reversestring.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
reversestring.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
reversestring.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
inp=input("Enter a string: ") rev=0 while (inp>0): dig=inp%10 rev=rev*10+dig inp=inp//10 print(rev)
15.428571
30
0.62963
3a43287b070e57b4e1131e9830fa7848ee4816f3
1,424
py
Python
appdaemon/apps/exhaust/exhaust.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
3
2019-10-27T06:10:26.000Z
2020-07-21T01:27:11.000Z
appdaemon/apps/exhaust/exhaust.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
appdaemon/apps/exhaust/exhaust.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
import globals
40.685714
85
0.614466
3a434ceb156d2330f24628b42fbe27c084ea9e69
474
py
Python
meregistro/apps/registro/models/AnexoBaja.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/models/AnexoBaja.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/models/AnexoBaja.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from apps.registro.models.Anexo import Anexo from django.core.exceptions import ValidationError import datetime
24.947368
54
0.71519
3a4437265de98cfb27b3d5feaa4dc75634628d02
2,159
py
Python
test/test.py
fmaida/rosie
3906d11231aadaf9095f00fde8a73bc186403660
[ "MIT" ]
null
null
null
test/test.py
fmaida/rosie
3906d11231aadaf9095f00fde8a73bc186403660
[ "MIT" ]
null
null
null
test/test.py
fmaida/rosie
3906d11231aadaf9095f00fde8a73bc186403660
[ "MIT" ]
null
null
null
import os import unittest from rosie import Rosie from rosie import DocumentNotFound # from test import create # create(100)
35.393443
89
0.593793
3a4470dbdf1585da275d005ec538924932b37f02
2,726
py
Python
server/tests/test_api.py
lachierussell/FadZmaq
deb89c35df05603552ce95627ac8400c6788fbcb
[ "BSD-2-Clause" ]
2
2019-09-02T06:56:46.000Z
2019-09-15T08:43:54.000Z
server/tests/test_api.py
lachierussell/FadZmaq
deb89c35df05603552ce95627ac8400c6788fbcb
[ "BSD-2-Clause" ]
11
2019-08-27T19:08:24.000Z
2019-10-18T01:45:54.000Z
server/tests/test_api.py
lachierussell/FadZmaq
deb89c35df05603552ce95627ac8400c6788fbcb
[ "BSD-2-Clause" ]
1
2019-10-25T05:42:48.000Z
2019-10-25T05:42:48.000Z
# @file # # FadZmaq Project # Professional Computing. Semester 2 2019 # # Copyright FadZmaq 2019 All rights reserved. # @author Lachlan Russell 22414249@student.uwa.edu.au # @author Jordan Russell jordanrussell@live.com import json # Tests that the server is up at all. # Not implemented # N...
29.311828
106
0.739178
3a44e47df6767fcc400ca98f82e16bb29f7143a3
7,728
py
Python
HeifImagePlugin.py
uploadcare/heif-image-plugin
164230d08472403b709e2d0c78e8de0207e9312a
[ "MIT" ]
6
2021-12-09T16:57:55.000Z
2022-03-22T13:34:53.000Z
HeifImagePlugin.py
uploadcare/heif-image-plugin
164230d08472403b709e2d0c78e8de0207e9312a
[ "MIT" ]
5
2021-11-24T15:59:35.000Z
2022-03-11T16:29:53.000Z
HeifImagePlugin.py
uploadcare/heif-image-plugin
164230d08472403b709e2d0c78e8de0207e9312a
[ "MIT" ]
1
2022-02-07T11:59:30.000Z
2022-02-07T11:59:30.000Z
import inspect import subprocess import tempfile from copy import copy from weakref import WeakKeyDictionary import piexif import pyheif from cffi import FFI from PIL import Image, ImageFile from pyheif.error import HeifError ffi = FFI() _keep_refs = WeakKeyDictionary() pyheif_supports_transformations = ( 'trans...
34.044053
84
0.62073
3a459c0bdc8968f8dba096a55ee2a81baf847594
1,510
py
Python
examples/example.py
TannerBurns/cloc
67753bc6148779db7a2bfb07e4410f12fa3de593
[ "MIT" ]
2
2020-03-04T14:15:07.000Z
2020-03-06T19:32:42.000Z
examples/example.py
TannerBurns/cloc
67753bc6148779db7a2bfb07e4410f12fa3de593
[ "MIT" ]
null
null
null
examples/example.py
TannerBurns/cloc
67753bc6148779db7a2bfb07e4410f12fa3de593
[ "MIT" ]
null
null
null
from cloc import grp, cmd, opt, arg, mixins from cloc.types import Choices """Test Code ->""" class UserCmds(mixins.List, mixins.Echo): u = UserCmds(users=['user1', 'user2']) user2 = UserCmds(users=['user1', 'user2', 'user3']) perms = PermissionCmds(roles=['admin', 'user', 'dev'], services=['test_service1']) cli...
22.878788
93
0.63245
3a48d584ca2b00f4953c04fc6e6edaf62e4524b4
111
py
Python
lab001/load.py
DavidJRichards/fpga_101
9aa3e85211e47c63c29af36960fd767fe88f4d82
[ "BSD-2-Clause" ]
2
2021-08-15T20:19:11.000Z
2021-08-16T07:28:36.000Z
lab001/load.py
DavidJRichards/fpga_101
9aa3e85211e47c63c29af36960fd767fe88f4d82
[ "BSD-2-Clause" ]
null
null
null
lab001/load.py
DavidJRichards/fpga_101
9aa3e85211e47c63c29af36960fd767fe88f4d82
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import os os.system("openocd -f wukong.cfg -c 'init; pld load 0 build/top.bit; exit' ")
27.75
77
0.693694
3a490f04946e54025d2f9929396fe594e1a1e7a5
3,916
py
Python
utils/comm_mqtt.py
peacemaker07/iot_making_for_raspberry_pi
d37d1256ea99794ff1dde4de0cadcbee1e5d6679
[ "MIT" ]
null
null
null
utils/comm_mqtt.py
peacemaker07/iot_making_for_raspberry_pi
d37d1256ea99794ff1dde4de0cadcbee1e5d6679
[ "MIT" ]
null
null
null
utils/comm_mqtt.py
peacemaker07/iot_making_for_raspberry_pi
d37d1256ea99794ff1dde4de0cadcbee1e5d6679
[ "MIT" ]
null
null
null
import json import time from utils.helper import RedisClient from paho.mqtt.client import MQTT_ERR_SUCCESS import paho.mqtt.client as mqtt from utils.date_time import TimeMeasure import tasks as tasks_mqtt from utils.message import MsgShadowGet, MsgShadowUpdate import logging logger = logging.getLogger() logger.setL...
24.628931
113
0.59142
3a4b65fb4152f97b12ef78ecb2e26b90659acced
255
py
Python
servo-test.py
dthompson-personal/pi-robot-shop
19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe
[ "MIT" ]
1
2019-01-08T00:12:38.000Z
2019-01-08T00:12:38.000Z
servo-test.py
dthompson-personal/pi-robot-shop
19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe
[ "MIT" ]
null
null
null
servo-test.py
dthompson-personal/pi-robot-shop
19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe
[ "MIT" ]
null
null
null
# simple servo test for PCA9685 with HS422 from servo.servo import * from time import sleep pca = PCA9685() pca.setZero(0) sleep(2) for a in xrange(-67,67,1): pca.setAngle(0,a) sleep(0.05) for a in xrange(67,0,-1): pca.setAngle(0,a) sleep(0.05)
18.214286
42
0.686275
3a4cbefcb62071a2d988ae8d1ba6c3ebd094217e
1,386
py
Python
lists_dictionary/Hello France.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
lists_dictionary/Hello France.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
lists_dictionary/Hello France.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
items = input().split("|") # items to buy budged = int(input()) profit = 0 profit_price_list = [] profit_list = [] profit_price = 0 for index in items: profit = 0 profit_price = 0 separator = index.split("->") if separator[0] == "Clothes": if not 0 < float(separator[1]) <= 50: co...
34.65
143
0.622655
3a4f446c605bd2f4c43cf5fa28a98484cf88ee19
1,209
py
Python
lims/addressbook/views.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
12
2017-03-01T10:39:36.000Z
2022-01-04T06:17:19.000Z
lims/addressbook/views.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
29
2017-04-25T14:05:08.000Z
2021-06-21T14:41:53.000Z
lims/addressbook/views.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
4
2017-10-11T16:22:53.000Z
2021-02-23T15:45:21.000Z
from rest_framework import viewsets from rest_framework.serializers import ValidationError from .models import Address from .serializers import AddressSerializer from lims.permissions.permissions import IsAddressOwner, IsAddressOwnerFilter from lims.shared.mixins import AuditTrailViewMixin
35.558824
82
0.718776
3a4f4e40f01a34131b926552b927be814c889324
7,875
py
Python
vision/crop_image_on_faces.py
timmahrt/toybox
1c063428ba85d26c8d9229b020503f6f57df2219
[ "MIT" ]
null
null
null
vision/crop_image_on_faces.py
timmahrt/toybox
1c063428ba85d26c8d9229b020503f6f57df2219
[ "MIT" ]
null
null
null
vision/crop_image_on_faces.py
timmahrt/toybox
1c063428ba85d26c8d9229b020503f6f57df2219
[ "MIT" ]
null
null
null
''' Created on Sep 8, 2018 Use autocropFaces() to crop out the material around faces in an image, where the faces are automatically detected. See the bottom for an example use script. Used this as a starting reference point: https://docs.opencv.org/3.3.0/d7/d8b/tutorial_py_face_detection.html @author: tmahrt ''' i...
30.761719
133
0.610159
3a5276bb48c6b9ee88490cc0b0a29ff3c27d3bba
2,920
py
Python
aiida_lsmo/workchains/multistage_ddec.py
ltalirz/aiida-lsmo
38a839af63686320ab070fada89241860e095b9e
[ "MIT" ]
null
null
null
aiida_lsmo/workchains/multistage_ddec.py
ltalirz/aiida-lsmo
38a839af63686320ab070fada89241860e095b9e
[ "MIT" ]
null
null
null
aiida_lsmo/workchains/multistage_ddec.py
ltalirz/aiida-lsmo
38a839af63686320ab070fada89241860e095b9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """MultistageDdecWorkChain workchain""" from __future__ import absolute_import from aiida.plugins import CalculationFactory, DataFactory, WorkflowFactory from aiida.common import AttributeDict from aiida.engine import WorkChain, ToContext # import sub-workchains Cp2kMultistageWorkChain = Work...
45.625
106
0.743151
3a5286d6d3711424348d457dbffee994d0ef9214
2,997
py
Python
ambari-server/src/test/python/TestServerUtils.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
16
2018-05-24T10:28:24.000Z
2021-08-05T03:13:26.000Z
ambari-server/src/test/python/TestServerUtils.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
8
2020-06-18T17:31:19.000Z
2022-03-02T08:32:03.000Z
ambari-server/src/test/python/TestServerUtils.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
17
2018-07-06T08:57:00.000Z
2021-11-04T11:00:36.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 use this ...
38.922078
140
0.746079
3a533adcbaa3e599ac553a4a4afcfe1138f8018d
828
py
Python
docs/md2ipynb.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
7
2021-07-20T21:46:28.000Z
2022-01-12T04:18:14.000Z
docs/md2ipynb.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
null
null
null
docs/md2ipynb.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
3
2021-08-28T06:01:27.000Z
2022-01-12T04:18:13.000Z
import sys import time from itertools import chain from pathlib import Path import nbformat import notedown if __name__ == "__main__": assert len(sys.argv) >= 2, "usage: input.md" here = Path(".") files = list(chain.from_iterable(map(here.glob, sys.argv[1:]))) for file in files: convert(f...
23.657143
78
0.669082
3a54d0fda33a47ced2ba7f11cd011f05493c2833
40
py
Python
datasets/__init__.py
ML-Cai/LaneDetector
4e56faf45cf592812284b0bfee149bba4658fac9
[ "MIT" ]
null
null
null
datasets/__init__.py
ML-Cai/LaneDetector
4e56faf45cf592812284b0bfee149bba4658fac9
[ "MIT" ]
null
null
null
datasets/__init__.py
ML-Cai/LaneDetector
4e56faf45cf592812284b0bfee149bba4658fac9
[ "MIT" ]
null
null
null
from .tu_simple_lane import TusimpleLane
40
40
0.9
3a54d4dcf4ae3d1438f9199425e3106b7a85632f
147
py
Python
src/Python/Turtle/06B-circle.py
programmer1017/MathTech
5d7a9692d77a4a379824f691ae1cba3b0d2d4d59
[ "MIT" ]
null
null
null
src/Python/Turtle/06B-circle.py
programmer1017/MathTech
5d7a9692d77a4a379824f691ae1cba3b0d2d4d59
[ "MIT" ]
null
null
null
src/Python/Turtle/06B-circle.py
programmer1017/MathTech
5d7a9692d77a4a379824f691ae1cba3b0d2d4d59
[ "MIT" ]
null
null
null
import turtle as t n = 50 t. bgcolor("black") t. color("green") t. speed(0) for x in range(n): t. circle(80) t. lt(360/n)
12.25
24
0.52381
3a5562123f0c3dc18461e7e454e66d71a8d213a8
29
py
Python
dashboard/dashboardmenu/__init__.py
PyFlux/PyFlux
8abae10261e276bf4942aed8d54ef3b5498754ca
[ "Apache-2.0" ]
null
null
null
dashboard/dashboardmenu/__init__.py
PyFlux/PyFlux
8abae10261e276bf4942aed8d54ef3b5498754ca
[ "Apache-2.0" ]
10
2020-03-24T17:09:56.000Z
2021-12-13T20:00:15.000Z
dashboard/dashboardmenu/__init__.py
PyFlux/PyFlux-Django-Html
8abae10261e276bf4942aed8d54ef3b5498754ca
[ "Apache-2.0" ]
null
null
null
from .dashboard_menu import *
29
29
0.827586
3a5679211ddca25bc7c34ee2ad4a2a92de9f338e
25,389
py
Python
kessk_web/device/views.py
yungs2017/kessk-switch
a56c73c756bb88e8ee38b7aa196fd58a4a802341
[ "BSD-3-Clause" ]
9
2019-09-30T04:24:39.000Z
2021-07-15T06:08:20.000Z
kessk_web/device/views.py
yungs2017/kessk-switch
a56c73c756bb88e8ee38b7aa196fd58a4a802341
[ "BSD-3-Clause" ]
6
2020-05-14T03:13:32.000Z
2022-02-10T10:23:46.000Z
kessk_web/device/views.py
yungs2017/kessk-switch
a56c73c756bb88e8ee38b7aa196fd58a4a802341
[ "BSD-3-Clause" ]
2
2020-12-19T07:12:01.000Z
2021-05-24T02:21:15.000Z
# The 3-Clause BSD License # Copyright (C) 2019, KessK, all rights reserved. # Copyright (C) 2019, Kison.Y, all rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met:Redistribution and use in source and binary ...
46.245902
194
0.65363