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
2860ad63802d9b4247cfc5b4ea2a3cd53137c044
3,973
py
Python
src/anaplan_api/Upload.py
pieter-pot/anaplan-api
1b099cb102f98b114afa0794a40aaf0de19956c1
[ "BSD-2-Clause" ]
null
null
null
src/anaplan_api/Upload.py
pieter-pot/anaplan-api
1b099cb102f98b114afa0794a40aaf0de19956c1
[ "BSD-2-Clause" ]
null
null
null
src/anaplan_api/Upload.py
pieter-pot/anaplan-api
1b099cb102f98b114afa0794a40aaf0de19956c1
[ "BSD-2-Clause" ]
null
null
null
# =============================================================================== # Created: 1 Nov 2021 # @author: Jesse Wilson (Anaplan Asia Pte Ltd) # Description: Abstract Anaplan Authentication Class # Input: Username & Password, or SHA keypair # Output: Anaplan JWT and token expiry time # ================...
29.87218
106
0.686383
28631cb627e7dcbf9512e0e9d35ed83e8378693a
427
py
Python
startPWM.py
adeept/adeept_alter
6adf00eb141405fc3abad44965f81ba7797dd962
[ "MIT" ]
1
2021-12-21T15:50:57.000Z
2021-12-21T15:50:57.000Z
startPWM.py
adeept/adeept_alter
6adf00eb141405fc3abad44965f81ba7797dd962
[ "MIT" ]
2
2021-03-14T22:05:42.000Z
2021-07-19T22:13:37.000Z
startPWM.py
adeept/adeept_alter
6adf00eb141405fc3abad44965f81ba7797dd962
[ "MIT" ]
null
null
null
import Adafruit_PCA9685 pwm = Adafruit_PCA9685.PCA9685() pwm.set_pwm_freq(50) initPWM = 320 setPWM = initPWM ctrlPort = 11 try: main() except KeyboardInterrupt: pwm.set_pwm(ctrlPort, 0, initPWM)
16.423077
35
0.651054
28658c7c561044400a64c09359dccf6abba3fb8e
2,042
py
Python
get_tracks.py
RamonPuon/Spotipy-Valence-Analysis
05f48e068097839d3dbd47d06f69608e48d1ac16
[ "MIT" ]
null
null
null
get_tracks.py
RamonPuon/Spotipy-Valence-Analysis
05f48e068097839d3dbd47d06f69608e48d1ac16
[ "MIT" ]
null
null
null
get_tracks.py
RamonPuon/Spotipy-Valence-Analysis
05f48e068097839d3dbd47d06f69608e48d1ac16
[ "MIT" ]
null
null
null
#cred.py, python script with my client ID and my client secret import cred import spotipy from spotipy.oauth2 import SpotifyClientCredentials import pandas as pd client_credential_manager = SpotifyClientCredentials(client_id= cred.client_ID, client_secret= cred.client_SECRET) sp = spotipy.Spotify(client_credentials_ma...
39.269231
114
0.644466
28673f63b24f6a069e726650a9df5d529a4e2b9c
3,053
py
Python
Uzura/data/subsystem/stream.py
jskny/Uzura
356f8c25ceef5bd098b8e338e4acabb3f8653dca
[ "MIT" ]
null
null
null
Uzura/data/subsystem/stream.py
jskny/Uzura
356f8c25ceef5bd098b8e338e4acabb3f8653dca
[ "MIT" ]
null
null
null
Uzura/data/subsystem/stream.py
jskny/Uzura
356f8c25ceef5bd098b8e338e4acabb3f8653dca
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Perl # 2012 / 11 / 14 # jskny # http://d.hatena.ne.jp/iacctech/20110429/1304090609 import sys, tweepy, urllib, urllib2 import os, time, subprocess, socket import re from tweepy.streaming import StreamListener, Stream from tweepy.auth import OAuthHandler from da...
24.821138
263
0.717327
286a9f1d8d066c57291a41e5d9d48a731a2d4a0c
541
py
Python
templates/django/djangoRest/app_dir/user/test/test_user_views.py
david-osas/create-basic-app
860fc579672855093ad8426fb01d010de4c7cff8
[ "MIT" ]
2
2020-12-01T11:33:36.000Z
2020-12-01T12:25:49.000Z
django-rest-framework-boilerplate/app_dir/user/test/test_user_views.py
PiotrZak/lem-golem
78f91f21b19725fca99c05d8c536330ef2785064
[ "MIT" ]
2
2020-11-25T14:38:57.000Z
2020-11-25T22:55:25.000Z
templates/django/djangoRest/app_dir/user/test/test_user_views.py
david-osas/create-basic-app
860fc579672855093ad8426fb01d010de4c7cff8
[ "MIT" ]
2
2020-11-26T08:59:50.000Z
2021-03-30T20:01:06.000Z
from django.test import TestCase from django.urls import reverse from rest_framework.test import APIClient from ...factories import UserFactory
28.473684
54
0.698706
286ba9afaaf93ad96524d8cf507a1bf2ad30a104
2,862
py
Python
port_mapping.py
sbalasa/CiscoFMC
024c9b6df3513e1e4a8e3e3f976a0c67b58c1909
[ "MIT" ]
1
2021-11-09T03:56:29.000Z
2021-11-09T03:56:29.000Z
port_mapping.py
sbalasa/CiscoFMC
024c9b6df3513e1e4a8e3e3f976a0c67b58c1909
[ "MIT" ]
null
null
null
port_mapping.py
sbalasa/CiscoFMC
024c9b6df3513e1e4a8e3e3f976a0c67b58c1909
[ "MIT" ]
1
2021-11-09T03:56:06.000Z
2021-11-09T03:56:06.000Z
ports = { "ssh": {"type": "PortLiteral", "port": "22", "protocol": "6",}, "udp/netbios-dgm": {"type": "PortLiteral", "port": "138", "protocol": "17",}, "udp/netbios-ns": {"type": "PortLiteral", "port": "137", "protocol": "17",}, "tcp/ssh": {"type": "PortLiteral", "port": "22", "protocol": "6",}, ...
57.24
82
0.490217
286dae799942d25528e620a011ce5d17032d1ce7
2,336
py
Python
deep-learning-lab-00/binlogreg.py
BalderOdinson/Deep-Learning-Lab
70786ff1be40fc829d64a644585c1d5683c76538
[ "MIT" ]
null
null
null
deep-learning-lab-00/binlogreg.py
BalderOdinson/Deep-Learning-Lab
70786ff1be40fc829d64a644585c1d5683c76538
[ "MIT" ]
null
null
null
deep-learning-lab-00/binlogreg.py
BalderOdinson/Deep-Learning-Lab
70786ff1be40fc829d64a644585c1d5683c76538
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 18 18:38:38 2019 @author: Oshikuru """ import numpy as np import matplotlib.pyplot as plt import random import data import pdb import IPython param_delta = 0.5 param_niter = 100 param_lambda = 0.01 def binlogreg_train(X,Y_): ''' Argumenti X: podatci, np.a...
24.851064
141
0.610445
286e9cde8312920eabbf75c1a2872023f23ceb28
778
py
Python
LintCode/1103.py
RENHANFEI/LintCode
d572dee248ba4c2a95b52cd737d76c7297f4e7b4
[ "CNRI-Python" ]
null
null
null
LintCode/1103.py
RENHANFEI/LintCode
d572dee248ba4c2a95b52cd737d76c7297f4e7b4
[ "CNRI-Python" ]
null
null
null
LintCode/1103.py
RENHANFEI/LintCode
d572dee248ba4c2a95b52cd737d76c7297f4e7b4
[ "CNRI-Python" ]
null
null
null
from collections import Counter
25.933333
71
0.417738
286fb0783887ca84bf84591d7e276b7bf74e2f66
2,867
py
Python
safe_eval/default_rules.py
bentheiii/safe_eval
caf9e7a6df3d6029e4bdac2abe11326d55c09ed2
[ "MIT" ]
1
2021-05-16T17:24:05.000Z
2021-05-16T17:24:05.000Z
safe_eval/default_rules.py
bentheiii/safe_eval
caf9e7a6df3d6029e4bdac2abe11326d55c09ed2
[ "MIT" ]
null
null
null
safe_eval/default_rules.py
bentheiii/safe_eval
caf9e7a6df3d6029e4bdac2abe11326d55c09ed2
[ "MIT" ]
null
null
null
from _ast import In, NotIn, Is, IsNot from collections import deque, Counter from decimal import Decimal from fractions import Fraction from safe_eval.rules import BinOpRule, CallableTypeRule, CallableRule, GetattrTypeRule, CallableMethodRule k_view_type = type({}.keys()) v_view_type = type({}.values()) it_view_type ...
31.505495
118
0.702825
2870b3250a7dca1e04fe54265450ad0c248653be
6,745
py
Python
test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegatePointInstanceSelection.py
ika-rporter/maya-usd
8f216a4fb955fc44c0abda55caa53ed295aaa625
[ "Apache-2.0" ]
507
2019-07-30T20:05:10.000Z
2022-03-30T07:38:43.000Z
test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegatePointInstanceSelection.py
ika-rporter/maya-usd
8f216a4fb955fc44c0abda55caa53ed295aaa625
[ "Apache-2.0" ]
1,188
2019-07-31T11:27:27.000Z
2022-03-31T21:06:06.000Z
test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegatePointInstanceSelection.py
ika-rporter/maya-usd
8f216a4fb955fc44c0abda55caa53ed295aaa625
[ "Apache-2.0" ]
165
2019-07-30T22:27:57.000Z
2022-03-25T07:20:23.000Z
#!/usr/bin/env mayapy # # Copyright 2021 Autodesk # # 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 a...
37.265193
100
0.697999
2871778d5e8e5178dee6f9e80da7e8ac737d84a0
5,443
py
Python
cy_widgets/strategy/exchange/base.py
cragod/CYWidgets
b1df1e32c363ed9252737d3041a7557b1dc604fe
[ "MIT" ]
1
2021-06-17T02:25:25.000Z
2021-06-17T02:25:25.000Z
cy_widgets/strategy/exchange/base.py
cragod/CYWidgets
b1df1e32c363ed9252737d3041a7557b1dc604fe
[ "MIT" ]
null
null
null
cy_widgets/strategy/exchange/base.py
cragod/CYWidgets
b1df1e32c363ed9252737d3041a7557b1dc604fe
[ "MIT" ]
1
2021-12-08T06:50:33.000Z
2021-12-08T06:50:33.000Z
# -*- coding: utf-8 -*- import numpy as np import talib as ta from abc import ABC, abstractproperty, abstractclassmethod, abstractmethod
35.344156
165
0.533346
287237c213c17fd114b9833d581d53122d6ad18d
492
py
Python
app/core/admin/__init__.py
3darkman/faction-builder-api
9dda323ef44a1ca0976306a4f20f9cc3e13704ec
[ "MIT" ]
null
null
null
app/core/admin/__init__.py
3darkman/faction-builder-api
9dda323ef44a1ca0976306a4f20f9cc3e13704ec
[ "MIT" ]
null
null
null
app/core/admin/__init__.py
3darkman/faction-builder-api
9dda323ef44a1ca0976306a4f20f9cc3e13704ec
[ "MIT" ]
null
null
null
from django.contrib import admin from core import models from .category import CategoryAdmin from .trait import TraitAdmin from .user import UserAdmin admin.site.register(models.User, UserAdmin) admin.site.register(models.Ability) admin.site.register(models.Category, CategoryAdmin) admin.site.register(models.Trait, ...
28.941176
51
0.835366
287358c4458cfef128d6223f0355c87f498e047c
2,196
py
Python
src/predict_video_file.py
irfanmustafas/TeethClassifierCNN
8c58b50162b3f9eb7f12251cbca9fcbd4d6c43b7
[ "MIT" ]
1
2018-12-05T01:49:54.000Z
2018-12-05T01:49:54.000Z
src/predict_video_file.py
irfanmustafas/TeethClassifierCNN
8c58b50162b3f9eb7f12251cbca9fcbd4d6c43b7
[ "MIT" ]
null
null
null
src/predict_video_file.py
irfanmustafas/TeethClassifierCNN
8c58b50162b3f9eb7f12251cbca9fcbd4d6c43b7
[ "MIT" ]
null
null
null
import numpy as np import sys import caffe import glob import uuid import cv2 from util import transform_img from mouth_detector_dlib import mouth_detector from caffe.proto import caffe_pb2 import os import shutil from util import histogram_equalization from teeth_cnn import teeth_cnn mouth_detector_instance = mouth_d...
31.371429
89
0.679417
28738d283bf4868349454e25d748bec7dc9a9c6f
33,650
py
Python
sdk/python/pulumi_gcp/dataloss/prevention_deidentify_template.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/dataloss/prevention_deidentify_template.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/dataloss/prevention_deidentify_template.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
56.841216
422
0.624101
2874251d928931a6c2a13448e5d757c4351cb292
2,163
py
Python
examples/quickstart.py
miketlk/omfgp
6e5a0f52f2688d81bde3e5169a37311c9517fe1d
[ "MIT" ]
null
null
null
examples/quickstart.py
miketlk/omfgp
6e5a0f52f2688d81bde3e5169a37311c9517fe1d
[ "MIT" ]
null
null
null
examples/quickstart.py
miketlk/omfgp
6e5a0f52f2688d81bde3e5169a37311c9517fe1d
[ "MIT" ]
1
2021-08-16T10:19:52.000Z
2021-08-16T10:19:52.000Z
import sys import omfgp as gp import time if gp.USES_USCARD: import uscard from machine import Pin def get_default_reader(): """Return default smart card reader.""" if gp.USES_USCARD: return uscard.Reader(name="Smart card reader", ifaceId=2, ...
32.283582
77
0.631993
28742e12e6739c290a95e278f025627ff9c82803
685
py
Python
basic/myunittest/test_timeit.py
fplust/python3-cookbook
0eaca2e3631bb69deaf466c32023bbb2093513da
[ "Apache-2.0" ]
1
2019-07-25T09:09:54.000Z
2019-07-25T09:09:54.000Z
basic/myunittest/test_timeit.py
fplust/python3-cookbook
0eaca2e3631bb69deaf466c32023bbb2093513da
[ "Apache-2.0" ]
null
null
null
basic/myunittest/test_timeit.py
fplust/python3-cookbook
0eaca2e3631bb69deaf466c32023bbb2093513da
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: Desc : """ from timeit import timeit __author__ = 'Xiong Neng' if __name__ == '__main__': main()
17.125
58
0.563504
28753e72046917448d518c1d4a909cdfe502ee60
7,276
py
Python
tectosaur2/hmatrix/tree.py
tbenthompson/BIE_tutorials
02cd56ab7e63e36afc4a10db17072076541aab77
[ "MIT" ]
15
2021-08-31T15:02:45.000Z
2022-02-11T21:10:01.000Z
tectosaur2/hmatrix/tree.py
tbenthompson/BIE_tutorials
02cd56ab7e63e36afc4a10db17072076541aab77
[ "MIT" ]
79
2021-08-29T15:35:39.000Z
2022-03-25T14:56:42.000Z
tectosaur2/hmatrix/tree.py
tbenthompson/BIE_tutorials
02cd56ab7e63e36afc4a10db17072076541aab77
[ "MIT" ]
3
2022-03-12T14:44:41.000Z
2022-03-21T20:43:20.000Z
from dataclasses import dataclass from typing import Optional import matplotlib.pyplot as plt import numpy as np def build_tree(pts, radii, min_pts_per_box=10): # The tree construction process receives three parameters: # # pts: the center of each element. # # radii: the radius of each element....
35.149758
94
0.665063
2875e4f861693b2c0256a550012c98712e49a11c
644
py
Python
2017/day2/corruptionChecksum.py
madeleine-adams/advent_of_code_2020
8f142a91d1a40390aad274c5e0513f50b168d029
[ "MIT" ]
null
null
null
2017/day2/corruptionChecksum.py
madeleine-adams/advent_of_code_2020
8f142a91d1a40390aad274c5e0513f50b168d029
[ "MIT" ]
null
null
null
2017/day2/corruptionChecksum.py
madeleine-adams/advent_of_code_2020
8f142a91d1a40390aad274c5e0513f50b168d029
[ "MIT" ]
null
null
null
file = open('corruptionChecksum_input.txt', 'r') spreadsheet = file.readlines() checksum = 0 for line in spreadsheet: cells = line.split() minimum = find_smallest(cells) maximum = find_largest(cells) checksum += maximum - minimum print(checksum)
20.774194
48
0.636646
287609c52314ac1d737c0937fa4d8b3058a4d68f
3,579
py
Python
neurst/cli/inspect_checkpoint.py
ishine/neurst
2ba322393fcfed4261b33f4a657e12bbe321baaa
[ "Apache-2.0" ]
208
2020-11-12T03:56:41.000Z
2022-03-27T07:01:27.000Z
neurst/cli/inspect_checkpoint.py
ishine/neurst
2ba322393fcfed4261b33f4a657e12bbe321baaa
[ "Apache-2.0" ]
16
2021-02-20T07:57:03.000Z
2022-01-27T07:36:31.000Z
neurst/cli/inspect_checkpoint.py
ishine/neurst
2ba322393fcfed4261b33f4a657e12bbe321baaa
[ "Apache-2.0" ]
33
2020-11-12T04:44:50.000Z
2022-03-23T09:22:29.000Z
# Copyright 2020 ByteDance 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 agreed to in writin...
41.137931
103
0.658843
28762253888319609860c7b7288acdb032a74ac2
1,621
py
Python
homepage/migrations/0005_professor_test_data.py
oriAdler/ClassRater
a68492ea8eab1475ab604da9d6efc99c73954d4b
[ "MIT" ]
1
2021-04-12T18:05:12.000Z
2021-04-12T18:05:12.000Z
homepage/migrations/0005_professor_test_data.py
ellaml/ClassRater
d786f9fb4bb51041590e46165badf12a7beef67e
[ "MIT" ]
103
2021-03-09T07:12:20.000Z
2021-05-23T06:13:21.000Z
homepage/migrations/0005_professor_test_data.py
ellaml/ClassRater
d786f9fb4bb51041590e46165badf12a7beef67e
[ "MIT" ]
17
2021-03-09T07:07:44.000Z
2021-05-02T16:31:45.000Z
from django.db import migrations, transaction
33.770833
76
0.595312
2876482aeef7877b4183338fac2e85b74a0eaedf
1,220
py
Python
scripts/hsvanalyzer.py
acmerobotics/relic-recovery
4ff05bbf906829aef0a98bc32691e5d0eadc1d8f
[ "MIT" ]
32
2018-01-17T03:00:02.000Z
2022-01-15T18:30:48.000Z
scripts/hsvanalyzer.py
acmerobotics/relic-recovery
4ff05bbf906829aef0a98bc32691e5d0eadc1d8f
[ "MIT" ]
4
2017-10-21T20:28:27.000Z
2018-04-02T05:27:00.000Z
scripts/hsvanalyzer.py
acmerobotics/relic-recovery
4ff05bbf906829aef0a98bc32691e5d0eadc1d8f
[ "MIT" ]
7
2018-02-21T00:59:20.000Z
2021-01-21T21:52:17.000Z
import cv2 import numpy as np from matplotlib import pyplot as plt from util import resize_min_dim, smart_hsv_range IMAGE_FILENAME = '/Users/ryanbrott/Desktop/36.jpg' MIN_DIMENSION = 480 # LOWER_HSV, UPPER_HSV = (170, 80, 0), (7, 255, 255) LOWER_HSV, UPPER_HSV = (175, 80, 80), (22, 255, 255) image = cv2.imread(IMAGE_...
23.461538
76
0.705738
2876ee5a4ee75e47b6a9d9c1abc057001acf18bc
1,114
py
Python
FEniCSUI/AnalysesHub/models.py
nasserarbabi/FEniCSUI-dev
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
null
null
null
FEniCSUI/AnalysesHub/models.py
nasserarbabi/FEniCSUI-dev
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
8
2021-03-10T21:59:52.000Z
2021-09-22T19:12:57.000Z
FEniCSUI/AnalysesHub/models.py
nasserarbabi/FEniCSUI
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
null
null
null
from django.db import models from dashboard.models import projects
23.208333
42
0.672352
2877efb3076b7e16a9739c3098ef12ad38d235d3
1,924
py
Python
code/pyto/util/test/_test_numpy_plus.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
12
2020-01-08T01:33:02.000Z
2022-03-16T00:25:34.000Z
code/pyto/util/test/_test_numpy_plus.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
8
2019-12-19T19:34:56.000Z
2022-03-10T10:11:28.000Z
code/pyto/util/test/_test_numpy_plus.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
2
2022-03-30T13:12:22.000Z
2022-03-30T18:12:10.000Z
""" ToDo: convert to proper format Tests for modules in this directory """ from __future__ import print_function # Author: Vladan Lucic, last modified 05.04.07 import scipy import scipy.ndimage import numpy import pyto.util.numpy_plus as np_plus # define test arrays aa = numpy.arange(12, dtype='int32') aa = aa.resh...
26.722222
73
0.572245
2878821e6aef46d6ef7a165e5a576c9bd3a04754
922
py
Python
GithubRepositoryStatistics-Python3/Repository.py
SmileZXLee/GithubRepositoryStatistics
62eeddd715aecf268c48b39aa596f1168a3c2661
[ "MIT" ]
1
2020-07-15T14:12:53.000Z
2020-07-15T14:12:53.000Z
GithubRepositoryStatistics-Python3/Repository.py
SmileZXLee/GithubRepositoryStatistics
62eeddd715aecf268c48b39aa596f1168a3c2661
[ "MIT" ]
null
null
null
GithubRepositoryStatistics-Python3/Repository.py
SmileZXLee/GithubRepositoryStatistics
62eeddd715aecf268c48b39aa596f1168a3c2661
[ "MIT" ]
null
null
null
#coding=utf-8 __author__ = 'zxlee' __github__ = 'https://github.com/SmileZXLee/GithubRepositoryStatistics'
26.342857
87
0.627983
287c433b713a1b08f3c14e17afb0adcebbc1cab6
3,242
py
Python
src/www/__init__.py
jbrezmorf/codecritic
190df65f2f12667469b55abed48a45de5dc18965
[ "MIT" ]
null
null
null
src/www/__init__.py
jbrezmorf/codecritic
190df65f2f12667469b55abed48a45de5dc18965
[ "MIT" ]
20
2019-05-26T12:13:19.000Z
2020-09-09T16:37:09.000Z
src/www/__init__.py
jbrezmorf/codecritic
190df65f2f12667469b55abed48a45de5dc18965
[ "MIT" ]
1
2020-04-13T09:02:48.000Z
2020-04-13T09:02:48.000Z
#!/bin/python3 # author: Jan Hybs import enum import pathlib from bson import objectid from flask import Flask, redirect, session, render_template, url_for import flask.json from flask_cors import CORS from loguru import logger from entities.crates import ICrate from env import Env from functools import wraps ...
25.936
82
0.612585
287d78c0342acb7571ce49d00f17612456b0c4a2
18,740
py
Python
pages/getAltData.py
ngocuong0105/ts_webapp
4399862ead6eb2d0c993d36fffe14967984ad4b2
[ "MIT" ]
null
null
null
pages/getAltData.py
ngocuong0105/ts_webapp
4399862ead6eb2d0c993d36fffe14967984ad4b2
[ "MIT" ]
null
null
null
pages/getAltData.py
ngocuong0105/ts_webapp
4399862ead6eb2d0c993d36fffe14967984ad4b2
[ "MIT" ]
null
null
null
import base64 from collections import deque from io import BytesIO import os import time from PIL import Image import pandas as pd from pandas.core.arrays import boolean import praw import requests import streamlit as st import datetime import pytesseract pytesseract.pytesseract.tesseract_cmd ='context/tesseract' impo...
44.513064
143
0.596265
287d866f9124af9905e3876a7fc982e255ffcb59
157
py
Python
npt/pipelines/__init__.py
chbrandt/npt
7d58db9987c8f4d93c4e61e1fc98cce38733d06e
[ "MIT" ]
null
null
null
npt/pipelines/__init__.py
chbrandt/npt
7d58db9987c8f4d93c4e61e1fc98cce38733d06e
[ "MIT" ]
2
2022-02-18T16:38:13.000Z
2022-02-18T16:56:33.000Z
npt/pipelines/__init__.py
chbrandt/npt
7d58db9987c8f4d93c4e61e1fc98cce38733d06e
[ "MIT" ]
1
2022-03-15T09:03:51.000Z
2022-03-15T09:03:51.000Z
from npt import log from . import search as Search from . import download as Download from . import processing as Processing from . import mosaic as Mosaic
22.428571
38
0.789809
287f3fa6bbdc5def4722251d903f7d2865df6fbb
324
py
Python
config.py
Shutey/ShuteyBot2.0
16f0baf6e8725bb452cac06fa60d6db023212f6c
[ "MIT" ]
2
2020-04-23T00:52:06.000Z
2020-04-23T00:56:24.000Z
config.py
Shutey/ShuteyBot2.0
16f0baf6e8725bb452cac06fa60d6db023212f6c
[ "MIT" ]
null
null
null
config.py
Shutey/ShuteyBot2.0
16f0baf6e8725bb452cac06fa60d6db023212f6c
[ "MIT" ]
null
null
null
token = 'Mzc5NTc3MDc1NTU3NzI4MjU2.DXixQA.DLLB8b81nSyB1IGNJ6WeEeukAQU' #Put Your bots token here prefix = '^^' #put prefix here link = 'https://discordapp.com/oauth2/authorize?client_id=379577075557728256&scope=bot&permissions=134659080' #put bot invite link here ownerid = '227860415709708288' #put your id here...
36
136
0.774691
2881d51b1365029af80a4c7b248cb3bb598a7958
3,466
py
Python
frispy/throw_data.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
frispy/throw_data.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
frispy/throw_data.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
# Copyright (c) 2021 John Carrino import struct from dataclasses import dataclass import numpy as np from scipy.spatial.transform import Rotation
35.731959
124
0.638777
288275f551eb96263ac0a6a9893bc8305effff9d
7,754
py
Python
test/test_hankelutils.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_hankelutils.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_hankelutils.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
import unittest import vnmrjpy as vj import numpy as np import matplotlib.pyplot as plt import time #import cupy as cp RP={'rcvrs':4,'filter_size':(11,7),'virtualcoilboost':False} PLOTTING = False
39.969072
79
0.596595
2883fadc5c01ff1f187f68ba84f5e3ae0a52978b
1,057
py
Python
src/archive/test3.py
felipearcaro/indexing-repository-python
4fa504d3535495b30db443cc753ebc56e7e329c2
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/archive/test3.py
felipearcaro/indexing-repository-python
4fa504d3535495b30db443cc753ebc56e7e329c2
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/archive/test3.py
felipearcaro/indexing-repository-python
4fa504d3535495b30db443cc753ebc56e7e329c2
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#setup import docx2txt # extract text text = docx2txt.process("../documents/ambev.docx") text2 = docx2txt.process("../documents/ambev2.docx") text3 = docx2txt.process("../documents/ambev3.docx") from whoosh.fields import Schema, TEXT schema = Schema(title=TEXT, content=TEXT) import os, os.path from whoosh import i...
24.581395
53
0.746452
28846fa1c1e9c7ab3ae95eddc73455be7f366a02
196
py
Python
Source Code/web/backend/files_app/fileapi/urls.py
creosB/Virtual-pdf-library
edb334b16dfd0d3c616683f6fbb370e54f489560
[ "CC0-1.0" ]
11
2021-12-20T01:51:56.000Z
2022-01-01T10:17:47.000Z
Source Code/web/backend/files_app/fileapi/urls.py
creosB/Virtual-pdf-library
edb334b16dfd0d3c616683f6fbb370e54f489560
[ "CC0-1.0" ]
null
null
null
Source Code/web/backend/files_app/fileapi/urls.py
creosB/Virtual-pdf-library
edb334b16dfd0d3c616683f6fbb370e54f489560
[ "CC0-1.0" ]
1
2021-12-21T08:47:56.000Z
2021-12-21T08:47:56.000Z
from django.urls import path from .views import FileList, FileDetail urlpatterns = [ path('',FileList.as_view()), path('<int:pk>/',FileDetail.as_view()), # individual items from django ]
24.5
74
0.704082
288538cbd5c881814ddd71394b3b7fcabde021bf
4,427
py
Python
barcodes/generateBarcodes.py
sbarton272/AcousticBarcodes-Explorations
73f019228988727575af7d67d1b7c7119f6c49a6
[ "MIT" ]
null
null
null
barcodes/generateBarcodes.py
sbarton272/AcousticBarcodes-Explorations
73f019228988727575af7d67d1b7c7119f6c49a6
[ "MIT" ]
null
null
null
barcodes/generateBarcodes.py
sbarton272/AcousticBarcodes-Explorations
73f019228988727575af7d67d1b7c7119f6c49a6
[ "MIT" ]
null
null
null
""" Generate barcode images with various encodings TODO - Include text at bottom - DXF instead """ #======================================================== # Imports #======================================================== from dxfwrite import DXFEngine as dxf #=====================================================...
29.125
98
0.483171
2887834c88b90ae4d29891c6021442f87fb025c0
110
py
Python
example/cheeseshop/apps/catalog/admin.py
sflems/django-constance
e177292c74cbf158c7218d8818d5d6c34b17eee1
[ "BSD-3-Clause" ]
899
2015-12-17T09:24:11.000Z
2022-03-31T15:57:53.000Z
example/cheeseshop/apps/catalog/admin.py
sflems/django-constance
e177292c74cbf158c7218d8818d5d6c34b17eee1
[ "BSD-3-Clause" ]
342
2015-12-27T11:07:44.000Z
2022-03-24T13:34:46.000Z
example/cheeseshop/apps/catalog/admin.py
sflems/django-constance
e177292c74cbf158c7218d8818d5d6c34b17eee1
[ "BSD-3-Clause" ]
213
2015-12-23T00:32:34.000Z
2022-03-17T17:04:57.000Z
from django.contrib import admin from cheeseshop.apps.catalog.models import Brand admin.site.register(Brand)
22
48
0.836364
28878c846aed485a7bc9a73365300409e1defb8b
672
py
Python
leetcode/editor/cn/FindKPairsWithSmallestSums.py
huangge1199/leet-code-python
5d01bbb6f12a495ea7ea0a90b5b3b4aa92bcc2f7
[ "Apache-2.0" ]
1
2022-02-12T13:55:41.000Z
2022-02-12T13:55:41.000Z
leetcode/editor/cn/FindKPairsWithSmallestSums.py
huangge1199/leet-code-python
5d01bbb6f12a495ea7ea0a90b5b3b4aa92bcc2f7
[ "Apache-2.0" ]
null
null
null
leetcode/editor/cn/FindKPairsWithSmallestSums.py
huangge1199/leet-code-python
5d01bbb6f12a495ea7ea0a90b5b3b4aa92bcc2f7
[ "Apache-2.0" ]
null
null
null
# 373: K # leetcode submit region begin(Prohibit modification and deletion) from heapq import heappop, heappush from typing import List # leetcode submit region end(Prohibit modification and deletion)
33.6
92
0.578869
288bed12c190fb35b526a110b53eefe990c1f7a5
2,505
py
Python
urls.py
Shakil-1501/Quizdjango
5e201d0f05ce2a49d36484009ff6032821365bc6
[ "MIT" ]
null
null
null
urls.py
Shakil-1501/Quizdjango
5e201d0f05ce2a49d36484009ff6032821365bc6
[ "MIT" ]
null
null
null
urls.py
Shakil-1501/Quizdjango
5e201d0f05ce2a49d36484009ff6032821365bc6
[ "MIT" ]
null
null
null
# Core Django imports. from django.urls import path from django.shortcuts import redirect, render # LMS app imports from lms.views.course.course_views import ( CourseListView,fetch_questions,compute_stats,display_lp,Edit_quiz,preview_quiz,fetch_questions_oneatatime,compute_html,enter_comment,quiz_lp ) ...
22.567568
145
0.621956
288fb0e62147ed4c6a19e3faeb3476a5404525aa
270
py
Python
rasterio/errors.py
clembou/rasterio
57169c31dae04e1319b4c4b607345475a7122910
[ "BSD-3-Clause" ]
null
null
null
rasterio/errors.py
clembou/rasterio
57169c31dae04e1319b4c4b607345475a7122910
[ "BSD-3-Clause" ]
null
null
null
rasterio/errors.py
clembou/rasterio
57169c31dae04e1319b4c4b607345475a7122910
[ "BSD-3-Clause" ]
null
null
null
"""A module of errors."""
27
78
0.733333
2893612d9bb5f812e7e498a10ba625355b7d1dee
1,794
py
Python
clientV4.py
sekranmert/AWS-Arduino-SmartHomeSystem
80f4b6a5871fccb3bfc065d3fac5ba09feec525a
[ "MIT" ]
1
2021-06-24T14:24:39.000Z
2021-06-24T14:24:39.000Z
clientV4.py
sekranmert/AWS-Arduino-SmartHomeSystem
80f4b6a5871fccb3bfc065d3fac5ba09feec525a
[ "MIT" ]
null
null
null
clientV4.py
sekranmert/AWS-Arduino-SmartHomeSystem
80f4b6a5871fccb3bfc065d3fac5ba09feec525a
[ "MIT" ]
null
null
null
import socket import threading helpMessage = '-q -- close connection\n-l -- list of connected devices\n-t -- server time \n-s "arduino/client ""reciever name" "message" -- send message (messages can be max 100 character) \nif reciever is an arduino board it can be controlled by this messsage:\n -s arduino "arduino ...
32.618182
312
0.545151
289396e6e160ca17355478e692561082d33da8f2
3,885
py
Python
data_loader/data_loaders.py
ChunpingQiu/Sen2LCZ_CNN
5576567da658f945321280f37ff8d9bf46dd1818
[ "MIT" ]
null
null
null
data_loader/data_loaders.py
ChunpingQiu/Sen2LCZ_CNN
5576567da658f945321280f37ff8d9bf46dd1818
[ "MIT" ]
null
null
null
data_loader/data_loaders.py
ChunpingQiu/Sen2LCZ_CNN
5576567da658f945321280f37ff8d9bf46dd1818
[ "MIT" ]
1
2021-08-19T03:35:05.000Z
2021-08-19T03:35:05.000Z
from torchvision import datasets, transforms from base import BaseDataLoader from torch.utils.data import Dataset, DataLoader import pandas as pd import torch from skimage import io#, transform import numpy as np
32.647059
121
0.621107
28957d205b560942a43fe20af3ee47c7d8d34a15
591
py
Python
eval_predictions.py
uporwal/sigir-2019-ecom-challenge
bffa7f99930321ad5d86e0cddd3c9ddfb98ba3d2
[ "MIT" ]
7
2019-06-05T01:42:54.000Z
2020-07-31T04:31:47.000Z
eval_predictions.py
uporwal/sigir-2019-ecom-challenge
bffa7f99930321ad5d86e0cddd3c9ddfb98ba3d2
[ "MIT" ]
5
2019-06-09T15:11:47.000Z
2019-06-28T18:35:48.000Z
eval_predictions.py
uporwal/sigir-2019-ecom-challenge
bffa7f99930321ad5d86e0cddd3c9ddfb98ba3d2
[ "MIT" ]
5
2019-06-04T17:06:33.000Z
2021-01-15T11:14:43.000Z
import evaluation_script import argparse parser = argparse.ArgumentParser(description='Evaluation script used in the eBay SIGIR 2019 eCommerce Search Challenge.') parser.add_argument('-g', '--ground-truth-file', required=True, help="Ground truth file") parser.add_argument('-p', '--prediction-file', required=True, help...
45.461538
121
0.781726
2895a62d74a6cf74dd272cfa08d6a6029b8f3434
48
py
Python
starfish/__main__.py
haoxusci/starfish
d7bd856024c75f2ce41504406f2a663566c3814b
[ "MIT" ]
164
2018-03-21T21:52:56.000Z
2022-03-23T17:14:39.000Z
starfish/__main__.py
lbgbox/starfish
0e879d995d5c49b6f5a842e201e3be04c91afc7e
[ "MIT" ]
1,728
2018-03-15T23:16:09.000Z
2022-03-12T00:09:18.000Z
starfish/__main__.py
lbgbox/starfish
0e879d995d5c49b6f5a842e201e3be04c91afc7e
[ "MIT" ]
66
2018-03-25T17:21:15.000Z
2022-01-16T09:17:11.000Z
from .core.starfish import starfish starfish()
12
35
0.791667
2896d0048b215dc837ae66958ce2ac38e7c770f9
968
py
Python
coreapp/migrations/0058_auto_20200426_1348.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
coreapp/migrations/0058_auto_20200426_1348.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
coreapp/migrations/0058_auto_20200426_1348.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-04-26 08:18 from django.db import migrations, models
29.333333
144
0.597107
2897d15751315f822719f939136b75871bf6ecab
1,431
py
Python
server/price_cache.py
pareeohnos/ktrade
1eaed1ff16ded580d5649c667935357567e7b514
[ "MIT" ]
5
2021-09-08T11:04:15.000Z
2021-11-27T08:42:23.000Z
server/price_cache.py
pareeohnos/ktrade
1eaed1ff16ded580d5649c667935357567e7b514
[ "MIT" ]
36
2021-08-31T09:28:10.000Z
2021-12-10T06:47:04.000Z
server/price_cache.py
pareeohnos/ktrade
1eaed1ff16ded580d5649c667935357567e7b514
[ "MIT" ]
2
2021-08-29T02:53:54.000Z
2021-08-29T06:21:36.000Z
import logging from server.singleton_meta import SingletonMeta log = logging.getLogger(__name__)
31.108696
81
0.714186
289918d2c57a6904734431ddd51bb10c97d644f6
499
py
Python
series_loop.py
Akshara2820/Python_WhileLoop
d525b547bc8c8236cb2cd1881080ec4e6604fffc
[ "MIT" ]
1
2021-09-15T03:42:15.000Z
2021-09-15T03:42:15.000Z
series_loop.py
Akshara2820/Python_WhileLoop
d525b547bc8c8236cb2cd1881080ec4e6604fffc
[ "MIT" ]
null
null
null
series_loop.py
Akshara2820/Python_WhileLoop
d525b547bc8c8236cb2cd1881080ec4e6604fffc
[ "MIT" ]
null
null
null
# (10,2,20,4,30,6,40,8,50) n=int(input("enter no--")) i=1 c=10 while i<=n: if i%2==0: c+=10 print(i,end=",") i+=1 i+=1 print(c,end=",") # (1+10=11, 11+20=31, 31+30=61, 61+40=101) n=int(input("enter no,-")) i=0 d=1 s=10 while i<n: print(d,end=",") d...
12.794872
44
0.420842
289d03fd3a78072e9344f01958c2c279a5179efe
9,092
py
Python
modules/Manager.py
jurajkula/IBT
7b09f6d331433bfbf3e7955754a36b69b332bb4e
[ "MIT" ]
3
2019-05-16T18:54:49.000Z
2019-10-21T11:12:50.000Z
modules/Manager.py
jurajkula/IBT
7b09f6d331433bfbf3e7955754a36b69b332bb4e
[ "MIT" ]
null
null
null
modules/Manager.py
jurajkula/IBT
7b09f6d331433bfbf3e7955754a36b69b332bb4e
[ "MIT" ]
null
null
null
import os import time from os import mkdir from os.path import isdir from threading import Lock import cv2 import imutils from modules.Camera import Detect from modules.Camera.CameraHandler import CameraHandler from modules.Config import Config from modules.Fusion import Fusion from modules.Logger.Logger import Logge...
34.439394
114
0.478883
289e8099349c64172c6b2bf0ba568b861c6f1152
5,809
py
Python
train.py
okwrtdsh/3D-ResNets-PyTorch
f36a32ea8b283524d1d102937c49689b1f475b5f
[ "MIT" ]
null
null
null
train.py
okwrtdsh/3D-ResNets-PyTorch
f36a32ea8b283524d1d102937c49689b1f475b5f
[ "MIT" ]
null
null
null
train.py
okwrtdsh/3D-ResNets-PyTorch
f36a32ea8b283524d1d102937c49689b1f475b5f
[ "MIT" ]
null
null
null
import torch from torch.autograd import Variable import time import os import sys import numpy as np from utils import AverageMeter, calculate_accuracy, save_gif, accuracy from models.binarized_modules import binarizef
36.30625
88
0.484249
289f6d1cb4c2dff400bd79a40abc1c0e080f2635
477
py
Python
contact/views.py
ledomone/kurs_django
c24aaf8f8a22a695b41e2436bf9bf4d1ca665079
[ "MIT" ]
null
null
null
contact/views.py
ledomone/kurs_django
c24aaf8f8a22a695b41e2436bf9bf4d1ca665079
[ "MIT" ]
null
null
null
contact/views.py
ledomone/kurs_django
c24aaf8f8a22a695b41e2436bf9bf4d1ca665079
[ "MIT" ]
null
null
null
from django.contrib.contenttypes import fields from django.shortcuts import render from .forms import MessageForm, ContactForm from django.views.generic import DetailView, ListView, FormView
29.8125
63
0.740042
289fb47f080457beca96ad6fa33ec1f46323cf2b
6,506
py
Python
commands/misc/settings.py
ii-Python/Prism
a404a61ddb16d045aa29d81908ce4ad80b24e24d
[ "MIT" ]
6
2020-09-28T13:19:37.000Z
2021-07-13T10:37:22.000Z
commands/misc/settings.py
BenjaminGotBanned/Prism
a404a61ddb16d045aa29d81908ce4ad80b24e24d
[ "MIT" ]
2
2020-10-06T17:59:40.000Z
2020-10-06T20:12:39.000Z
commands/misc/settings.py
BenjaminGotBanned/Prism
a404a61ddb16d045aa29d81908ce4ad80b24e24d
[ "MIT" ]
3
2021-01-05T13:33:58.000Z
2021-07-13T10:37:37.000Z
# Modules import discord from datetime import date from discord import Embed from json import loads, dumps from assets.prism import Tools from discord.ext import commands # Main Command Class # Link to bot def setup(bot): bot.add_cog(Settings(bot))
29.306306
196
0.527206
28a230764b88abf38e3cb6d2f0cf4df9e3778896
970
py
Python
core/test.py
awesome-archive/muzero-pytorch
2ff4ea145097050031d6026f0aa1a97de72d702d
[ "MIT" ]
null
null
null
core/test.py
awesome-archive/muzero-pytorch
2ff4ea145097050031d6026f0aa1a97de72d702d
[ "MIT" ]
null
null
null
core/test.py
awesome-archive/muzero-pytorch
2ff4ea145097050031d6026f0aa1a97de72d702d
[ "MIT" ]
null
null
null
import torch from .mcts import MCTS, Node from .utils import select_action
31.290323
93
0.565979
28a386192b68f112112b6e68f5293867934e803f
167
py
Python
demo/deep_learning/base/second_stage_bounding_box_prediction/dcn_feature_calibration.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
1
2018-12-09T06:09:29.000Z
2018-12-09T06:09:29.000Z
demo/deep_learning/base/second_stage_bounding_box_prediction/dcn_feature_calibration.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
null
null
null
demo/deep_learning/base/second_stage_bounding_box_prediction/dcn_feature_calibration.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import torch
20.875
60
0.712575
953703edf77bdad68e1e40c1a564d92c76b7a5a5
1,824
pyde
Python
listing_70/listing_70.pyde
tiranderel/2019-fall-polytech-cs
67f0482a0f143381f9b494a4348d6436ce8f8c1e
[ "MIT" ]
null
null
null
listing_70/listing_70.pyde
tiranderel/2019-fall-polytech-cs
67f0482a0f143381f9b494a4348d6436ce8f8c1e
[ "MIT" ]
null
null
null
listing_70/listing_70.pyde
tiranderel/2019-fall-polytech-cs
67f0482a0f143381f9b494a4348d6436ce8f8c1e
[ "MIT" ]
null
null
null
import math ballArray_one=[] ballArray_two=[]
26.057143
75
0.533991
953906e1815512ae7854e463509fe51bfa7374f8
1,340
py
Python
src/carim_discord_bot/discord_client/member_count.py
schana/carim-discord-bot
c1f5e868404744667156af7ad6d244939998b5a2
[ "Apache-2.0" ]
14
2020-04-06T17:58:09.000Z
2022-02-28T13:29:35.000Z
src/carim_discord_bot/discord_client/member_count.py
schana/carim-discord-bot
c1f5e868404744667156af7ad6d244939998b5a2
[ "Apache-2.0" ]
48
2020-04-05T11:24:10.000Z
2021-03-10T08:12:19.000Z
src/carim_discord_bot/discord_client/member_count.py
schana/carim-discord-bot
c1f5e868404744667156af7ad6d244939998b5a2
[ "Apache-2.0" ]
12
2020-03-31T15:08:56.000Z
2021-09-07T17:54:49.000Z
import asyncio import logging import discord from carim_discord_bot import managed_service, config from carim_discord_bot.discord_client import discord_service log = logging.getLogger(__name__) service = None
31.162791
102
0.698507
953acd7416847beb9014f4f513c188884ed30577
567
py
Python
GAPullTest.py
wrashi/GAReport
b58fb1ef8a8984761ba417879aa52c4100c61a0b
[ "Unlicense" ]
null
null
null
GAPullTest.py
wrashi/GAReport
b58fb1ef8a8984761ba417879aa52c4100c61a0b
[ "Unlicense" ]
null
null
null
GAPullTest.py
wrashi/GAReport
b58fb1ef8a8984761ba417879aa52c4100c61a0b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from GAReport import GAReport VIEW_ID = 'PutViewIDHere' DIMENSIONS = ["Page", ] METRICS = ["Pageviews", "Unique Pageviews", "Avg. Time on Page", "Entrances", "Bounce Rate", "% Exit", "Page Value"] # Use these instructions for creating single and multiple filters: https://developers.google.com...
43.615385
153
0.75485
953ca9b5b1450ae6da266d252be6ca5bb7c74e70
14,525
py
Python
model.py
coolEphemeroptera/AESRC2020
b64cdeeaaf74e8c1a741930b3a47dc8dcadca8de
[ "Apache-2.0" ]
35
2020-09-26T13:40:16.000Z
2022-03-22T19:42:20.000Z
model.py
coolEphemeroptera/ARNet
b64cdeeaaf74e8c1a741930b3a47dc8dcadca8de
[ "Apache-2.0" ]
4
2021-04-10T13:05:52.000Z
2022-03-14T03:22:32.000Z
model.py
coolEphemeroptera/ARNet
b64cdeeaaf74e8c1a741930b3a47dc8dcadca8de
[ "Apache-2.0" ]
7
2020-09-26T15:52:45.000Z
2021-06-11T05:05:23.000Z
from resnet import resnet18_,resnet34_,resnet50_,resnet101_, resnet152_ from keras.layers import Input, Dense, Lambda,Dropout,Conv2D,Activation,Bidirectional,GlobalAveragePooling1D,\ BatchNormalization,Reshape from keras_layer_normalization import LayerNormalization from keras.layers.cudnn_recurrent import CuDN...
34.748804
112
0.497969
953d34fa43582a04419407658a07c6d2cffc68aa
187
py
Python
tests/strategies/__init__.py
lycantropos/rsrc_web
6702840befa4fa70114ce10543144410b453aa30
[ "MIT" ]
null
null
null
tests/strategies/__init__.py
lycantropos/rsrc_web
6702840befa4fa70114ce10543144410b453aa30
[ "MIT" ]
4
2019-06-18T18:36:50.000Z
2019-07-10T13:14:48.000Z
tests/strategies/__init__.py
lycantropos/rsrc_web
6702840befa4fa70114ce10543144410b453aa30
[ "MIT" ]
null
null
null
from .literals import booleans from .models import (readable_web_streams, web_streams, writeable_web_streams) from .paths import web_url_strings
31.166667
43
0.663102
953d79768caec877a768ca7a6b3a2fc0176266ec
27,309
py
Python
main.py
ruotianluo/neural-summ-cnndm-pytorch
027b63107b748bc56356bd119b243cfdda684aa2
[ "MIT" ]
3
2018-10-22T23:03:40.000Z
2018-10-23T09:45:32.000Z
main.py
ruotianluo/neural-summ-cnndm-pytorch
027b63107b748bc56356bd119b243cfdda684aa2
[ "MIT" ]
null
null
null
main.py
ruotianluo/neural-summ-cnndm-pytorch
027b63107b748bc56356bd119b243cfdda684aa2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os cudaid = 0 os.environ["CUDA_VISIBLE_DEVICES"] = str(cudaid) import sys import time import numpy as np import cPickle as pickle import copy import random from random import shuffle import math import torch import torch.nn as nn from torch.autograd import Variable import data as datar...
40.397929
211
0.587462
953e614df603a782bc861b2188ed97f796d8d6d2
471
py
Python
openbook_posts/migrations/0016_auto_20190214_1525.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
164
2019-07-29T17:59:06.000Z
2022-03-19T21:36:01.000Z
openbook_posts/migrations/0016_auto_20190214_1525.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
188
2019-03-16T09:53:25.000Z
2019-07-25T14:57:24.000Z
openbook_posts/migrations/0016_auto_20190214_1525.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
80
2019-08-03T17:49:08.000Z
2022-02-28T16:56:33.000Z
# Generated by Django 2.1.5 on 2019-02-14 14:25 from django.db import migrations import imagekit.models.fields
23.55
108
0.641189
953e8e8b09e196ff5d7362c6a2eeb02c08425111
15,517
py
Python
blackjack.py
hackerboy9/blackjack
1346642e353719ab68c0dc3573aa33b688431bf8
[ "MIT" ]
null
null
null
blackjack.py
hackerboy9/blackjack
1346642e353719ab68c0dc3573aa33b688431bf8
[ "MIT" ]
1
2020-10-25T10:16:37.000Z
2020-10-25T10:16:37.000Z
blackjack.py
hackerboy9/blackjack
1346642e353719ab68c0dc3573aa33b688431bf8
[ "MIT" ]
2
2017-07-16T08:00:29.000Z
2020-10-06T14:48:18.000Z
from collections import MutableMapping, MutableSet, namedtuple from operator import itemgetter NULL = Node(None, None, None, False) from unittest import TestCase
29.783109
82
0.566475
9540c7d295e0a61b349ecd6b4bc768783ff0138e
45,052
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/linkOAM_template.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/linkOAM_template.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/linkOAM_template.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files
43.319231
202
0.715551
954146cbdea7e57641fc5a1ec374f381deb7f479
3,967
py
Python
memos/memos/users/forms.py
iotexpert/docmgr
735c7bcbaeb73bc44efecffb175f268f2438ac3a
[ "MIT" ]
null
null
null
memos/memos/users/forms.py
iotexpert/docmgr
735c7bcbaeb73bc44efecffb175f268f2438ac3a
[ "MIT" ]
null
null
null
memos/memos/users/forms.py
iotexpert/docmgr
735c7bcbaeb73bc44efecffb175f268f2438ac3a
[ "MIT" ]
null
null
null
from flask import current_app from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from flask_login import current_user from memos.m...
40.896907
98
0.659188
95419b554583bc803a43eac8c57ec34a913022a2
626
py
Python
app/models/encryption.py
janaSunrise/ZeroCOM
7197684ce708f080fe215b0a6e57c12836e4c0ab
[ "Apache-2.0" ]
6
2021-03-27T08:58:04.000Z
2021-05-23T17:07:09.000Z
app/models/encryption.py
janaSunrise/ZeroCOM
7197684ce708f080fe215b0a6e57c12836e4c0ab
[ "Apache-2.0" ]
2
2021-05-30T08:06:53.000Z
2021-06-02T17:02:06.000Z
app/models/encryption.py
janaSunrise/ZeroCOM
7197684ce708f080fe215b0a6e57c12836e4c0ab
[ "Apache-2.0" ]
null
null
null
import rsa
31.3
106
0.693291
954332209f4c21416110fe7a318ebf31b6100c2e
3,566
py
Python
Terminal_Bot.py
Data-Alchemy/Unix_Automation
3d5ee450e1b19f79509960f6d117c16fb8aa5313
[ "Apache-2.0" ]
null
null
null
Terminal_Bot.py
Data-Alchemy/Unix_Automation
3d5ee450e1b19f79509960f6d117c16fb8aa5313
[ "Apache-2.0" ]
null
null
null
Terminal_Bot.py
Data-Alchemy/Unix_Automation
3d5ee450e1b19f79509960f6d117c16fb8aa5313
[ "Apache-2.0" ]
null
null
null
import paramiko,time,sys,json,os,pandas ######################################################################################################################## ################################################### parms ############################################################# proxy = None Port = 22 Username = open...
37.93617
160
0.615536
95433e555cbe86270b9f0c26744b230b46b56f5a
825
py
Python
pnnl/models/__init__.py
rkini-pnnl/volttron-GS
60055438446a060176381468757ad0ec339f2371
[ "BSD-3-Clause" ]
1
2021-08-05T04:01:55.000Z
2021-08-05T04:01:55.000Z
pnnl/models/__init__.py
kevinatkinson-pnnl/volttron-GS
479c614a6f7cd779fcc208e8e35d27d0961a16f8
[ "BSD-3-Clause" ]
null
null
null
pnnl/models/__init__.py
kevinatkinson-pnnl/volttron-GS
479c614a6f7cd779fcc208e8e35d27d0961a16f8
[ "BSD-3-Clause" ]
null
null
null
import importlib import logging from volttron.platform.agent import utils _log = logging.getLogger(__name__) utils.setup_logging() __version__ = "0.1" __all__ = ['Model']
29.464286
73
0.65697
95446537feef632a16bbea1d71d8483703929711
826
py
Python
src/cli.py
thisistrivial/cr-draft
25defcf03466b044c28ad42661536e27b6df1222
[ "MIT" ]
null
null
null
src/cli.py
thisistrivial/cr-draft
25defcf03466b044c28ad42661536e27b6df1222
[ "MIT" ]
null
null
null
src/cli.py
thisistrivial/cr-draft
25defcf03466b044c28ad42661536e27b6df1222
[ "MIT" ]
null
null
null
import draft import os run()
22.944444
69
0.521792
9547e7b57fef282a81e3052edbdb2d34bb2cd61a
222
py
Python
src/honey.py
terror/golf
9d38f8376c2ddbbb34360a3353ec6f4289736bd4
[ "Unlicense" ]
null
null
null
src/honey.py
terror/golf
9d38f8376c2ddbbb34360a3353ec6f4289736bd4
[ "Unlicense" ]
null
null
null
src/honey.py
terror/golf
9d38f8376c2ddbbb34360a3353ec6f4289736bd4
[ "Unlicense" ]
null
null
null
# https://open.kattis.com/problems/honey print(*(lambda x: [x[int(input())] for _ in range(int(input()))])([1, 0, 6, 12, 90, 360, 2040, 10080, 54810, 290640, 1588356, 8676360, 47977776, 266378112, 1488801600]), sep="\n")
55.5
179
0.657658
954b661a558c8d594bb41be0460c68998860e06c
4,712
py
Python
plaso/parsers/winreg_plugins/usbstor.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
2
2016-02-18T12:46:29.000Z
2022-03-13T03:04:59.000Z
plaso/parsers/winreg_plugins/usbstor.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
null
null
null
plaso/parsers/winreg_plugins/usbstor.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
6
2016-12-18T08:05:36.000Z
2021-04-06T14:19:11.000Z
# -*- coding: utf-8 -*- """File containing a Windows Registry plugin to parse the USBStor key.""" import logging from plaso.events import windows_events from plaso.lib import eventdata from plaso.parsers import winreg from plaso.parsers.winreg_plugins import interface __author__ = 'David Nides (david.nides@gmail.co...
39.266667
79
0.695034
9550103d22b0d4fa16de9bf491fa914c8ddf64fb
4,877
py
Python
musicbot/modules/default/helpmsg.py
oKidd/PrendeMusic
b66d54d93ed36587193c20b71201c4447d80ad85
[ "MIT" ]
5
2018-09-07T12:17:27.000Z
2019-12-06T02:35:26.000Z
musicbot/modules/default/helpmsg.py
oKidd/PrendeMusic
b66d54d93ed36587193c20b71201c4447d80ad85
[ "MIT" ]
null
null
null
musicbot/modules/default/helpmsg.py
oKidd/PrendeMusic
b66d54d93ed36587193c20b71201c4447d80ad85
[ "MIT" ]
2
2020-04-25T00:35:17.000Z
2021-05-13T22:20:19.000Z
from collections import defaultdict from discord.ext.commands import Cog, command from discord.utils import get from ...utils import check_restricted from ... import exceptions from ... import messagemanager cogs = [Help]
44.743119
204
0.568792
95515f6c6551928915064695c2fceeeba21d268c
8,710
py
Python
flatpak_update.py
willsALMANJ/flatpak_update
84a8f59a11952a5daf57a18f0426b676f3a707c2
[ "0BSD" ]
1
2020-06-12T07:51:32.000Z
2020-06-12T07:51:32.000Z
flatpak_update.py
willsALMANJ/flatpak_update
84a8f59a11952a5daf57a18f0426b676f3a707c2
[ "0BSD" ]
null
null
null
flatpak_update.py
willsALMANJ/flatpak_update
84a8f59a11952a5daf57a18f0426b676f3a707c2
[ "0BSD" ]
null
null
null
"Update a Flatpak repository for new versions of components" import argparse import asyncio import datetime from functools import total_ordering import hashlib from itertools import zip_longest import json from pathlib import Path import re import httpx import jinja2 import yaml GITHUB_DATE_FORMAT = "%Y-%m-%dT%H:%M:...
30.138408
83
0.62721
955231e63fbff36ad8601f161f98440ad3a247cb
1,746
py
Python
base/env/test_processStrategy.py
stevenchen521/quant_ml
f7d5efc49c934724f97fcafacc560f4a35b24551
[ "MIT" ]
5
2019-02-14T03:12:22.000Z
2022-01-24T18:43:07.000Z
base/env/test_processStrategy.py
stevenchen521/quant_ml
f7d5efc49c934724f97fcafacc560f4a35b24551
[ "MIT" ]
null
null
null
base/env/test_processStrategy.py
stevenchen521/quant_ml
f7d5efc49c934724f97fcafacc560f4a35b24551
[ "MIT" ]
2
2019-11-13T18:56:13.000Z
2021-12-31T01:25:22.000Z
from unittest import TestCase import base.env.pre_process as pre_process import pandas as pd from sklearn.preprocessing import MinMaxScaler from helper.util import get_attribute from base.env.pre_process_conf import active_stragery, get_strategy_analyze import base.env.pre_process
38.8
143
0.708477
9552f2a3d627a440738e08b8175d69d9667e0003
12,194
py
Python
resources/lib/themoviedb/tmdb.py
bopopescu/ServerStatus
a883598248ad6f5273eb3be498e3b04a1fab6510
[ "MIT" ]
null
null
null
resources/lib/themoviedb/tmdb.py
bopopescu/ServerStatus
a883598248ad6f5273eb3be498e3b04a1fab6510
[ "MIT" ]
1
2015-04-21T22:05:02.000Z
2015-04-22T22:27:15.000Z
resources/lib/themoviedb/tmdb.py
GetSomeBlocks/Score_Soccer
a883598248ad6f5273eb3be498e3b04a1fab6510
[ "MIT" ]
2
2015-09-29T16:31:43.000Z
2020-07-26T03:41:10.000Z
#!/usr/bin/env python2.5 #encoding:utf-8 #author:dbr/Ben #project:themoviedb #forked by ccjensen/Chris #http://github.com/ccjensen/themoviedb """An interface to the themoviedb.org API """ __author__ = "dbr/Ben" __version__ = "0.2b" config = {} config['apikey'] = "a8b9f96dde091408a03cb4c78477bd14" config['urls'] = {...
33.31694
142
0.586354
955351f42a772eb848c0ae2b75d5d28ba1ff2a00
3,033
py
Python
mir3/lib/knn.py
pymir3/pymir3
c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70
[ "MIT" ]
12
2015-08-03T12:41:11.000Z
2020-08-18T07:55:23.000Z
mir3/lib/knn.py
pymir3/pymir3
c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70
[ "MIT" ]
1
2015-05-27T18:47:20.000Z
2015-05-27T18:47:20.000Z
mir3/lib/knn.py
pymir3/pymir3
c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70
[ "MIT" ]
3
2016-03-18T03:30:02.000Z
2018-07-05T02:29:16.000Z
import numpy import numpy.linalg def distance_sum(inputs, references): """Sum of all distances between inputs and references Each element should be in a row! """ norms = numpy.zeros(inputs.shape[0]) for i in xrange(references.shape[0]): norms += numpy.apply_along_axis(numpy.linalg.norm, 1...
31.59375
81
0.567755
9553b680206d84c135ef2d6c3b9397a51e5c12a9
17,984
py
Python
pysnmp/CABH-QOS2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CABH-QOS2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CABH-QOS2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CABH-QOS2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CABH-QOS2-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:26:31 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
145.032258
2,723
0.769462
9554b36b01a4be87039a97f47f4d8ef14a97ffe2
2,440
py
Python
nasafree/views.py
luanmalaquias/projeto_api_nasa_django
3441c404da821b4177571814014e89b0cff6a6b7
[ "MIT" ]
null
null
null
nasafree/views.py
luanmalaquias/projeto_api_nasa_django
3441c404da821b4177571814014e89b0cff6a6b7
[ "MIT" ]
null
null
null
nasafree/views.py
luanmalaquias/projeto_api_nasa_django
3441c404da821b4177571814014e89b0cff6a6b7
[ "MIT" ]
null
null
null
from django.shortcuts import redirect, render from .models import * from datetime import date from brain import ipfunc
34.366197
93
0.685246
9554dabbb9a81e2fbde331f2e40edcaa0f221585
805
py
Python
bslparloursite/videolibrary/models.py
natfarleydev/thebslparlour
ebb2588282cdb2a977ec6c5f8d82cec4e8fd1f99
[ "CC0-1.0" ]
1
2016-01-06T23:13:11.000Z
2016-01-06T23:13:11.000Z
bslparloursite/videolibrary/models.py
natfarleydev/thebslparlour
ebb2588282cdb2a977ec6c5f8d82cec4e8fd1f99
[ "CC0-1.0" ]
4
2021-03-18T20:15:04.000Z
2021-06-10T17:52:31.000Z
bslparloursite/videolibrary/models.py
natfarleydev/thebslparlour
ebb2588282cdb2a977ec6c5f8d82cec4e8fd1f99
[ "CC0-1.0" ]
null
null
null
from django.db import models from django.utils import timezone from sizefield.models import FileSizeField # Create your models here.
29.814815
75
0.720497
9554ef14a15f7437ba6f8f9a2cf1620b9d8dfb4c
1,681
py
Python
location.py
TED-996/Nightshift
3cc76af96c8e85e913be8c2f8f70564ea9d9f95d
[ "MIT" ]
null
null
null
location.py
TED-996/Nightshift
3cc76af96c8e85e913be8c2f8f70564ea9d9f95d
[ "MIT" ]
null
null
null
location.py
TED-996/Nightshift
3cc76af96c8e85e913be8c2f8f70564ea9d9f95d
[ "MIT" ]
null
null
null
import os.path import json from astral import Astral appdata_folder = os.path.join(os.environ["LOCALAPPDATA"], "Nightshift")
28.982759
75
0.625223
95583195ca817a2531ead6462fb4ef3915b9a847
12,140
py
Python
src/awkward1/operations/reducers.py
martindurant/awkward-1.0
a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38
[ "BSD-3-Clause" ]
null
null
null
src/awkward1/operations/reducers.py
martindurant/awkward-1.0
a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38
[ "BSD-3-Clause" ]
null
null
null
src/awkward1/operations/reducers.py
martindurant/awkward-1.0
a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/jpivarski/awkward-1.0/blob/master/LICENSE from __future__ import absolute_import import numpy import awkward1._util import awkward1._connect._numpy import awkward1.layout import awkward1.operations.convert ### The following are not strictly reducers, but are defined in...
48.174603
236
0.647117
9558fc73a95bcd6653e042be3bc2a2e8ae6c004c
4,758
py
Python
dotenv.py
ross-urban/django-dotenv
16cbf7bb78571174bc5376c95c85b213857cb9f9
[ "MIT" ]
null
null
null
dotenv.py
ross-urban/django-dotenv
16cbf7bb78571174bc5376c95c85b213857cb9f9
[ "MIT" ]
null
null
null
dotenv.py
ross-urban/django-dotenv
16cbf7bb78571174bc5376c95c85b213857cb9f9
[ "MIT" ]
1
2021-02-16T15:37:18.000Z
2021-02-16T15:37:18.000Z
import os import re import sys import warnings __version__ = '1.4.3' line_re = re.compile(r""" ^ (?:export\s+)? # optional export ([\w\.]+) # key (?:\s*=\s*|:\s+?) # separator ( # optional value begin '(?:\'|[^'])*' # single quoted value | ...
31.72
78
0.481084
955b60084410969a08f97fe22aa1d69988088bf0
16,755
py
Python
PsychoPy3 Experiments/ContrastDetection.py
mrhunsaker/ContrastDetection
bb058460c5f90119316d0637885cd47f7ca2a307
[ "MIT" ]
null
null
null
PsychoPy3 Experiments/ContrastDetection.py
mrhunsaker/ContrastDetection
bb058460c5f90119316d0637885cd47f7ca2a307
[ "MIT" ]
null
null
null
PsychoPy3 Experiments/ContrastDetection.py
mrhunsaker/ContrastDetection
bb058460c5f90119316d0637885cd47f7ca2a307
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v2020.2.4post1), on October 27, 2020, at 14:06 If you publish work using this script the most relevant publication is: Peirce J, Gray JR, Simpson S, MacAskill M, Hchenberger R, Sogo H, Kastman E, L...
43.861257
102
0.66607
955b6290b3f098708424dbec65825578b92645dc
1,945
py
Python
self_driving_desktop/grammar.py
wasimakh2/self-driving-desktop
309b9b6614f8d3f2b85ed40c8e3cd9d72cd069a6
[ "MIT" ]
536
2019-05-08T02:54:27.000Z
2022-03-24T10:02:07.000Z
self_driving_desktop/grammar.py
JonTheNiceGuy/self-driving-desktop
309b9b6614f8d3f2b85ed40c8e3cd9d72cd069a6
[ "MIT" ]
17
2019-05-08T03:08:14.000Z
2021-03-02T12:52:53.000Z
self_driving_desktop/grammar.py
JonTheNiceGuy/self-driving-desktop
309b9b6614f8d3f2b85ed40c8e3cd9d72cd069a6
[ "MIT" ]
33
2019-05-08T03:50:56.000Z
2021-12-08T11:22:29.000Z
grammar = r""" start: (item ";")+ item: import | coords | playlist | step import : "import" string coords : "coords" coords_body coords_body : "{" coord_def ("," coord_def)* "}" coord_def: string ":" "{" coord_body ("," coord_body)* "}" coord_body: string ":" "[" int "," int "]" playlist : "playlist" string playli...
19.45
58
0.682776
955dce71570249e6e13d912ac4f316735729f8a7
1,765
py
Python
BB/conf.py
poco0317/BarinadeBot-Rewrite
4f34246178ab2ee0fd4c0a79fff5a43adbed134c
[ "MIT" ]
2
2021-05-06T09:07:44.000Z
2021-05-11T23:45:38.000Z
BB/conf.py
poco0317/BarinadeBot-Rewrite
4f34246178ab2ee0fd4c0a79fff5a43adbed134c
[ "MIT" ]
null
null
null
BB/conf.py
poco0317/BarinadeBot-Rewrite
4f34246178ab2ee0fd4c0a79fff5a43adbed134c
[ "MIT" ]
null
null
null
import configparser import os import shutil import traceback
41.046512
155
0.602833
955f1cf7d1a0592b32cf0c5abbfe0bb9060df419
2,805
py
Python
geocamUtil/usng/convertUsngCsv.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
4
2017-03-03T16:24:24.000Z
2018-06-24T05:50:40.000Z
geocamUtil/usng/convertUsngCsv.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
1
2021-09-29T17:17:30.000Z
2021-09-29T17:17:30.000Z
geocamUtil/usng/convertUsngCsv.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
1
2017-12-19T20:45:53.000Z
2017-12-19T20:45:53.000Z
#!/usr/bin/env python # __BEGIN_LICENSE__ #Copyright (c) 2015, United States Government, as represented by the #Administrator of the National Aeronautics and Space Administration. #All rights reserved. # __END_LICENSE__ """ Takes as input a CSV file in the format: 37 46 29.2080,-122 25 08.1336,San Francisco 37 27 1...
30.824176
92
0.624242
955fa29268924998ee2dd6306f368b16b34e2595
478
py
Python
process_cifar10.py
IIGROUP/AttentionProbe
b2c88b064452741a7ccc6660a4b090743013cc73
[ "MIT" ]
11
2022-01-23T15:09:09.000Z
2022-03-18T10:27:04.000Z
process_cifar10.py
Wang-jiahao/AttentionProbe
41a3cc0d5454ec5bba78c3dace9cded00da8cff9
[ "MIT" ]
null
null
null
process_cifar10.py
Wang-jiahao/AttentionProbe
41a3cc0d5454ec5bba78c3dace9cded00da8cff9
[ "MIT" ]
null
null
null
from torchvision.datasets import CIFAR10 from torchvision.datasets import CIFAR100 import os root = '/database/cifar10/' from PIL import Image dataset_train = CIFAR10(root) for k, (img, label) in enumerate(dataset_train): print('processsing' + str(k)) if not os.path.exists(root + 'CIFAR10_image/' + ...
31.866667
75
0.650628
955fe4376191cdb0e3d9522af865a55375090411
246
py
Python
examples/fullproject/items/user.py
cnkailyn/toapi
03a49d02dd0a55f1f83270154144e1a08fae6b78
[ "Apache-2.0" ]
null
null
null
examples/fullproject/items/user.py
cnkailyn/toapi
03a49d02dd0a55f1f83270154144e1a08fae6b78
[ "Apache-2.0" ]
null
null
null
examples/fullproject/items/user.py
cnkailyn/toapi
03a49d02dd0a55f1f83270154144e1a08fae6b78
[ "Apache-2.0" ]
1
2019-11-12T20:15:50.000Z
2019-11-12T20:15:50.000Z
from toapi import Item, XPath
22.363636
50
0.536585
95620b3f160fc0fb6d0c0896e86c4e7d56432d0b
722
py
Python
src/tests/test_fail.py
bspeagle/py_git_diff
1674afc1dfac0408372e11945f4a36b297b77e66
[ "MIT" ]
null
null
null
src/tests/test_fail.py
bspeagle/py_git_diff
1674afc1dfac0408372e11945f4a36b297b77e66
[ "MIT" ]
null
null
null
src/tests/test_fail.py
bspeagle/py_git_diff
1674afc1dfac0408372e11945f4a36b297b77e66
[ "MIT" ]
null
null
null
''' Failure tests ''' import os from typing import Any import pytest from helpers.github import API api = API() pass_token = Any fail_token = os.getenv('FAIL_TOKEN') fail_org = os.getenv('FAIL_ORG') fail_repo = os.getenv('FAIL_REPO') def test_fail_auth(): ''' Fail 'auth' to Github ''' with pytest.r...
16.044444
39
0.649584
9562440f3dc7a8e571a4195021e3f9febc5d8b84
3,042
py
Python
tutorials/mechanisms/tutorial_convenience_inhibition.py
AQ18/skimpy
435fc50244f2ca815bbb39d525a82a4692f5c0ac
[ "Apache-2.0" ]
13
2020-11-05T10:59:13.000Z
2022-03-21T01:38:31.000Z
tutorials/mechanisms/tutorial_convenience_inhibition.py
AQ18/skimpy
435fc50244f2ca815bbb39d525a82a4692f5c0ac
[ "Apache-2.0" ]
4
2022-01-27T10:23:40.000Z
2022-03-10T18:16:06.000Z
tutorials/mechanisms/tutorial_convenience_inhibition.py
AQ18/skimpy
435fc50244f2ca815bbb39d525a82a4692f5c0ac
[ "Apache-2.0" ]
6
2020-08-04T17:01:33.000Z
2022-03-21T01:38:32.000Z
# -*- coding: utf-8 -*- """ .. module:: skimpy :platform: Unix, Windows :synopsis: Simple Kinetic Models in Python .. moduleauthor:: SKiMPy team [---------] Copyright 2017 Laboratory of Computational Systems Biotechnology (LCSB), Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland Licensed under the ...
29.25
87
0.610782
9564a1cacc7687a8261fe339aaf329a5f5fa587d
825
py
Python
advanced-python/05_advanced_classes_and_objects/enums.py
alexprodan99/python-workspace
8c805afc29fafe3916759d1cf07e597f945b8b45
[ "MIT" ]
null
null
null
advanced-python/05_advanced_classes_and_objects/enums.py
alexprodan99/python-workspace
8c805afc29fafe3916759d1cf07e597f945b8b45
[ "MIT" ]
null
null
null
advanced-python/05_advanced_classes_and_objects/enums.py
alexprodan99/python-workspace
8c805afc29fafe3916759d1cf07e597f945b8b45
[ "MIT" ]
null
null
null
from enum import Enum, unique, auto if __name__ == '__main__': main()
27.5
152
0.641212
9566a5fe7dd2b6c92ef1c6e1f73143b039776af9
3,313
py
Python
detector/detector.py
suhendaragung20/Object-Detection-Metrics
e756c9ba20ff1e89143c64e6d38288d2a8680f0e
[ "MIT" ]
null
null
null
detector/detector.py
suhendaragung20/Object-Detection-Metrics
e756c9ba20ff1e89143c64e6d38288d2a8680f0e
[ "MIT" ]
null
null
null
detector/detector.py
suhendaragung20/Object-Detection-Metrics
e756c9ba20ff1e89143c64e6d38288d2a8680f0e
[ "MIT" ]
null
null
null
# Import packages import os import cv2 import numpy as np import tensorflow as tf import sys from imutils.object_detection import non_max_suppression # This is needed since the notebook is stored in the object_detection folder. sys.path.append("..") # Import utilites from utils import label_map_util
37.224719
107
0.690915
9566c8358fb6d074b645539d82fffd8a430711c8
1,770
py
Python
processDiscoveryNews4chat.py
data-henrik/watson-chatbot-discovery-news
d63d579718d4fc529af29bb413c73fdbd9b52361
[ "Apache-2.0" ]
3
2019-05-03T20:28:45.000Z
2019-06-28T09:58:25.000Z
processDiscoveryNews4chat.py
psaupsau/watson-chatbot-discovery-news
d63d579718d4fc529af29bb413c73fdbd9b52361
[ "Apache-2.0" ]
null
null
null
processDiscoveryNews4chat.py
psaupsau/watson-chatbot-discovery-news
d63d579718d4fc529af29bb413c73fdbd9b52361
[ "Apache-2.0" ]
4
2019-04-25T16:49:47.000Z
2020-07-02T15:27:05.000Z
# Handle client-side action for an IBM Watson Assistant chatbot # # The code requires my Watson Conversation Tool. For details see # https://github.com/data-henrik/watson-conversation-tool # # # Setup: Configure your credentials # - for Watson Assistant see instructions for the tool # - for Discovery change username / ...
35.4
95
0.714124
9566fa933abad53d06086af6a6e451a81990671d
2,977
py
Python
test_scripts/test_residual_solver_dynamic.py
JoZimmer/ParOptBeam
50d15d8d822a2718f2932807e06c4a7e02f866a3
[ "BSD-3-Clause" ]
1
2021-04-09T14:08:20.000Z
2021-04-09T14:08:20.000Z
test_scripts/test_residual_solver_dynamic.py
JoZimmer/ParOptBeam
50d15d8d822a2718f2932807e06c4a7e02f866a3
[ "BSD-3-Clause" ]
2
2021-04-28T15:05:01.000Z
2021-11-10T15:12:56.000Z
test_scripts/test_residual_solver_dynamic.py
JoZimmer/ParOptBeam
50d15d8d822a2718f2932807e06c4a7e02f866a3
[ "BSD-3-Clause" ]
2
2021-02-01T08:49:45.000Z
2021-08-10T02:07:36.000Z
import numpy as np import matplotlib.pyplot as plt from cycler import cycler from source.solving_strategies.strategies.residual_based_newton_raphson_solver import ResidualBasedNewtonRaphsonSolver from source.solving_strategies.strategies.residual_based_picard_solver import ResidualBasedPicardSolver from source.model.s...
34.616279
118
0.566006
9567e6ba5dc9af36046c391fbc5d4e1144009cc8
378
py
Python
objects/regex_deleter.py
Egor2005l/cho
c7cb165394089b277be5c306edde0b8fb42e466d
[ "MIT" ]
null
null
null
objects/regex_deleter.py
Egor2005l/cho
c7cb165394089b277be5c306edde0b8fb42e466d
[ "MIT" ]
null
null
null
objects/regex_deleter.py
Egor2005l/cho
c7cb165394089b277be5c306edde0b8fb42e466d
[ "MIT" ]
null
null
null
from typing import Dict from objects.base import BaseModel
19.894737
38
0.531746
95697b5d755424cb46ff8e11e52fcff72a602bf4
639
py
Python
cartridge_external_payment/admin.py
thomasWajs/cartridge-external-payment
02c1c2b43504a17547a908622c3d54a331945c77
[ "BSD-2-Clause" ]
7
2015-02-14T20:25:27.000Z
2021-04-10T16:05:00.000Z
cartridge_external_payment/admin.py
thomasWajs/cartridge-external-payment
02c1c2b43504a17547a908622c3d54a331945c77
[ "BSD-2-Clause" ]
2
2015-11-30T17:54:19.000Z
2016-09-09T21:21:01.000Z
cartridge_external_payment/admin.py
thomasWajs/cartridge-external-payment
02c1c2b43504a17547a908622c3d54a331945c77
[ "BSD-2-Clause" ]
3
2015-10-19T15:22:18.000Z
2017-11-13T23:22:17.000Z
from copy import deepcopy from django.contrib import admin from cartridge.shop.admin import OrderAdmin from cartridge.shop.models import Order order_fieldsets = deepcopy(admin.site._registry[Order].fieldsets) order_fieldsets[2][1]["fields"] = list(order_fieldsets[2][1]["fields"]) order_fieldsets[2][1]["fields"].ins...
33.631579
74
0.748044
9569b1f581ecb174ee905898df207343952c8b6e
1,483
py
Python
webeditor/app/attrdict.py
lshen1120/web-editor
170ac96b47bf957a3a42a99092e45e88e584c49a
[ "Apache-2.0" ]
4
2018-07-25T03:57:08.000Z
2018-07-25T06:34:59.000Z
webeditor/app/attrdict.py
lshen1120/web-editor
170ac96b47bf957a3a42a99092e45e88e584c49a
[ "Apache-2.0" ]
null
null
null
webeditor/app/attrdict.py
lshen1120/web-editor
170ac96b47bf957a3a42a99092e45e88e584c49a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import copy
26.017544
68
0.574511
956a1d409e8bf27f1eb1d39023f7ad436c2f2c6c
16,034
py
Python
EVeP/EVeP.py
amandaortega/EVeP
4bca562c814210b1d835e9be63ab80385c93320b
[ "MIT" ]
null
null
null
EVeP/EVeP.py
amandaortega/EVeP
4bca562c814210b1d835e9be63ab80385c93320b
[ "MIT" ]
null
null
null
EVeP/EVeP.py
amandaortega/EVeP
4bca562c814210b1d835e9be63ab80385c93320b
[ "MIT" ]
null
null
null
""" Author: Amanda Ortega de Castro Ayres Created in: September 19, 2019 Python version: 3.6 """ from Least_SRMTL import Least_SRMTL import libmr from matplotlib import pyplot, cm from matplotlib.patches import Circle from mpl_toolkits.mplot3d import Axes3D, art3d import numpy as np import numpy.matlib impo...
40.489899
247
0.591493
956c1145058b098a2e217c047220f62e14dea6e3
5,375
py
Python
bigml/modelfields.py
alanponce/python
9423b4c4968b81ee14cef1ab6cd62d23dfa8bd26
[ "Apache-2.0" ]
1
2021-06-20T11:51:22.000Z
2021-06-20T11:51:22.000Z
bigml/modelfields.py
alanponce/python
9423b4c4968b81ee14cef1ab6cd62d23dfa8bd26
[ "Apache-2.0" ]
null
null
null
bigml/modelfields.py
alanponce/python
9423b4c4968b81ee14cef1ab6cd62d23dfa8bd26
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2013-2016 BigML # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
37.852113
77
0.596279
956d8de300f81dc8c0786d5a4d8868b85762da6f
16,229
py
Python
networks/infill/func_intersect_ub.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
2
2020-07-09T19:34:03.000Z
2021-06-21T23:09:23.000Z
networks/larflow/models/func_intersect_ub.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
null
null
null
networks/larflow/models/func_intersect_ub.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
null
null
null
import os,time import torch from larcv import larcv import numpy as np import ROOT as rt from array import array if __name__=="__main__": device = torch.device("cuda:0") #device = torch.device("cpu") IntersectUB.load_intersection_data() IntersectUB.set_img_dims(512,832) IntersectUB.print_interse...
48.735736
182
0.644217
956dfd3898d4db0373cc4caa6c858737d336c6e2
3,270
py
Python
simple_api/object/permissions.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
1
2021-02-24T22:14:59.000Z
2021-02-24T22:14:59.000Z
simple_api/object/permissions.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
null
null
null
simple_api/object/permissions.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
null
null
null
from inspect import isclass
34.0625
119
0.663609
95728ec4185daad9b5e30451603845ad35ca972b
290
py
Python
Desafios/MODULO 1/Desafio 12.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
Desafios/MODULO 1/Desafio 12.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
Desafios/MODULO 1/Desafio 12.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
# Faa um algoritmo que leia o preo de um produto e mostre o novo preo com um desconto. preco = float(input('Digite o preo atual do produto: R$ ')) desconto = float(input('Digite o valor do desconto (0.X): ')) novopreco = preco * desconto print('O novo preo R$ {}.'.format(novopreco))
58
89
0.713793
957446e0b2daddda7b2cb6fdb76915dc45c186cf
1,188
py
Python
test.py
Ericqle/Senior-Design-Project
aa8e2134b26aef151d3736d306a4fbc9fe69790e
[ "MIT" ]
null
null
null
test.py
Ericqle/Senior-Design-Project
aa8e2134b26aef151d3736d306a4fbc9fe69790e
[ "MIT" ]
null
null
null
test.py
Ericqle/Senior-Design-Project
aa8e2134b26aef151d3736d306a4fbc9fe69790e
[ "MIT" ]
null
null
null
from draw_control import DrawControl if __name__ == '__main__': zotter = DrawControl() test = input("track, rail, pen, hor, ver, diag: ") while(test): if test == "track": dir_in = input('dir step: ') dir = dir_in.split(" ") zotter.track.spin_fixed_step(int(dir[...
29.7
84
0.505051
95770242fba26f6f07dd35c5f3e789a8b70b5318
2,961
py
Python
fcos/datasets/cityscapes.py
rosshemsley/fcos
de30bb2c78df54cae6814282c7166beed333d34c
[ "MIT" ]
5
2020-08-02T11:03:25.000Z
2021-12-12T19:37:09.000Z
fcos/datasets/cityscapes.py
rosshemsley/fcos
de30bb2c78df54cae6814282c7166beed333d34c
[ "MIT" ]
null
null
null
fcos/datasets/cityscapes.py
rosshemsley/fcos
de30bb2c78df54cae6814282c7166beed333d34c
[ "MIT" ]
1
2021-03-05T12:19:48.000Z
2021-03-05T12:19:48.000Z
import pathlib import logging from torch import nn import numpy as np import torch import torch.functional as F import torchvision.transforms as T from torch.utils.data import Dataset from torchvision.datasets.cityscapes import Cityscapes import cv2 from torchvision.transforms import ToPILImage from torch.utils.data ...
24.882353
90
0.628842
957893734aaf183904dce73b5e054520162c5d69
11,838
py
Python
flask_jquery/app.py
lmj0328/SocialMediaReport
555aa3551844b5ee67bcf9296d574fd99977982d
[ "MIT" ]
1
2021-02-28T05:01:37.000Z
2021-02-28T05:01:37.000Z
flask_jquery/app.py
lmj0328/SocialMediaReport
555aa3551844b5ee67bcf9296d574fd99977982d
[ "MIT" ]
null
null
null
flask_jquery/app.py
lmj0328/SocialMediaReport
555aa3551844b5ee67bcf9296d574fd99977982d
[ "MIT" ]
1
2020-03-12T02:08:10.000Z
2020-03-12T02:08:10.000Z
from flask import Flask, render_template, request, jsonify from flask import request from flask import Response from flask import url_for from flask import jsonify import GetOldTweets3 as got import pandas as pd import datetime import numpy as np import requests import json from pyquery import PyQuery as pq app = Fla...
41.391608
755
0.598496