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
99a63044e63f7d7aad2a8fc043b98abc40e94cd5
2,316
py
Python
arc/utility_functions/batch_generator.py
stalhabukhari/ARC
a5efc44c3af0714e07a60204cc7c3a8ca19ef20e
[ "MIT" ]
null
null
null
arc/utility_functions/batch_generator.py
stalhabukhari/ARC
a5efc44c3af0714e07a60204cc7c3a8ca19ef20e
[ "MIT" ]
null
null
null
arc/utility_functions/batch_generator.py
stalhabukhari/ARC
a5efc44c3af0714e07a60204cc7c3a8ca19ef20e
[ "MIT" ]
1
2022-03-18T10:55:57.000Z
2022-03-18T10:55:57.000Z
""" batch_generator.py """ import os, random import numpy as np from PIL import Image import tensorflow as tf from tensorflow.keras.preprocessing.image import img_to_array, load_img from tensorflow.keras.utils import to_categorical as tocat_fn Image.LOAD_TRUNCATED_IMAGES = True
33.085714
109
0.664076
99a671af86b1c2e857176e3f38a594911c18081a
337
py
Python
setup.py
Alexander-Sovetsky/python-image
a8ea11423b453938a8804537b836d919eb8e5b93
[ "MIT" ]
null
null
null
setup.py
Alexander-Sovetsky/python-image
a8ea11423b453938a8804537b836d919eb8e5b93
[ "MIT" ]
null
null
null
setup.py
Alexander-Sovetsky/python-image
a8ea11423b453938a8804537b836d919eb8e5b93
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='python-image', version='0.1.0', description='project for OCT', long_description=readme, author='Alexander Sovetsky', license=license, packages=find_packages(exclude=('te...
22.466667
49
0.738872
99a7afbbb47204c705de2e7ed32e0ae9dbea9c39
62
py
Python
hello_world.py
deepti-anand/hello-world
494fc16c416dc8fe25600d5830052343b70f2070
[ "Apache-2.0" ]
null
null
null
hello_world.py
deepti-anand/hello-world
494fc16c416dc8fe25600d5830052343b70f2070
[ "Apache-2.0" ]
null
null
null
hello_world.py
deepti-anand/hello-world
494fc16c416dc8fe25600d5830052343b70f2070
[ "Apache-2.0" ]
null
null
null
print("hi") print("Hello World") #print #diff print("hellooo")
20.666667
33
0.693548
99a891aedae6992a71d2251dfc4ff9348ce3d420
1,481
py
Python
Examen_02_sim01/p4/p4.py
GuidoZalles/Computacion_para_Ingenieria
2afc06784760ca07786396374397a32ac2c19a27
[ "Apache-2.0" ]
null
null
null
Examen_02_sim01/p4/p4.py
GuidoZalles/Computacion_para_Ingenieria
2afc06784760ca07786396374397a32ac2c19a27
[ "Apache-2.0" ]
null
null
null
Examen_02_sim01/p4/p4.py
GuidoZalles/Computacion_para_Ingenieria
2afc06784760ca07786396374397a32ac2c19a27
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Feb 15 19:25:58 2022 @author: User """ direc = addres("santa Fe", "La Paz", "021","Bolivia") profe = professor("Guido", "60584523", "zallesguido@gmail.com", "8000 bs", direc)
23.140625
94
0.602296
99a8aebcdbc0b31659e37d72e454787e67305614
663
py
Python
names.py
EggSquishIt/mcserver
f9e98f100f7d1e4b9d4fc306ca33255619d5504f
[ "MIT" ]
3
2020-08-29T13:33:30.000Z
2020-10-03T15:40:30.000Z
names.py
EggSquishIt/mcserver
f9e98f100f7d1e4b9d4fc306ca33255619d5504f
[ "MIT" ]
3
2020-10-10T17:06:19.000Z
2020-11-14T15:21:26.000Z
names.py
EggSquishIt/mcserver
f9e98f100f7d1e4b9d4fc306ca33255619d5504f
[ "MIT" ]
1
2020-10-10T13:09:27.000Z
2020-10-10T13:09:27.000Z
import random vowels = [ "a", "au", "o", "e", "i", "u", ] prefixes = [ "b", "c", "d", "f", "g", "gh", "h", "k", "l", "m", "n", "p", "qu", "r", "s", "t", "v", "w", "x", "y", "z" ] suffixes = [ "b", "c", "cc", "ck", "d", "dd", "f", "g", "gh", "h", "i", "k", "l", "ll", "m", "n...
8.84
93
0.435897
99a8f1f1c93af08f3ec765e04d13a2b8d33dbbbd
84
py
Python
hello.py
bingle2400/cs3240-labdemo
5dca6fd8f4c510aa5b06d7dd17e5204e0cc13ffc
[ "MIT" ]
null
null
null
hello.py
bingle2400/cs3240-labdemo
5dca6fd8f4c510aa5b06d7dd17e5204e0cc13ffc
[ "MIT" ]
null
null
null
hello.py
bingle2400/cs3240-labdemo
5dca6fd8f4c510aa5b06d7dd17e5204e0cc13ffc
[ "MIT" ]
null
null
null
from helper import reeting if __name__ == "__main__": reeting("hello")
9.333333
26
0.630952
99a903a06e260b2c7198a42a0a29f263e277358e
245
py
Python
attempt.py
hoshen20-meet/meet2018y1lab6
68e70de443eba980b1de8b865eea8337aa82e6d3
[ "MIT" ]
null
null
null
attempt.py
hoshen20-meet/meet2018y1lab6
68e70de443eba980b1de8b865eea8337aa82e6d3
[ "MIT" ]
null
null
null
attempt.py
hoshen20-meet/meet2018y1lab6
68e70de443eba980b1de8b865eea8337aa82e6d3
[ "MIT" ]
null
null
null
import turtle colors = ['green','blue','orange', 'red'] turtle.speed(900) for i in range(99999999): turtle.pencolor(colors[i%4]) turtle.bgcolor('black') turtle.forward(i) turtle.degrees() turtle.right(70)
13.611111
41
0.608163
99a9c7e2da4c504b1d30c8fa7fb339aa5d8ceae5
4,444
py
Python
nr_common/image_utils/image_utils_caffe.py
nitred/nr-common
f251e76fe10cb46f609583922d485013f5cba92b
[ "MIT" ]
null
null
null
nr_common/image_utils/image_utils_caffe.py
nitred/nr-common
f251e76fe10cb46f609583922d485013f5cba92b
[ "MIT" ]
1
2018-01-07T19:03:35.000Z
2018-01-07T19:03:35.000Z
nr_common/image_utils/image_utils_caffe.py
nitred/nr-common
f251e76fe10cb46f609583922d485013f5cba92b
[ "MIT" ]
1
2018-09-20T02:31:18.000Z
2018-09-20T02:31:18.000Z
"""Utility functions.""" import numpy as np def caffe_load_image(image_filename): """Load image using caffe.io.load_image. This is to maintain shape expectation across the caffe library. Args: image_filename (str): String filename. Returns: numpy.ndarray: an image with the following...
37.982906
103
0.685419
99aa9d14b3d5ad7bbef547b6bdc0baea743dd41e
1,183
py
Python
ENV/lib/python3.5/site-packages/pyrogram/session/internals/msg_id.py
block1o1/CryptoPredicted
7f660cdc456fb8252b3125028f31fd6f5a3ceea5
[ "MIT" ]
4
2021-10-14T21:22:25.000Z
2022-03-12T19:58:48.000Z
ENV/lib/python3.5/site-packages/pyrogram/session/internals/msg_id.py
inevolin/CryptoPredicted
7f660cdc456fb8252b3125028f31fd6f5a3ceea5
[ "MIT" ]
null
null
null
ENV/lib/python3.5/site-packages/pyrogram/session/internals/msg_id.py
inevolin/CryptoPredicted
7f660cdc456fb8252b3125028f31fd6f5a3ceea5
[ "MIT" ]
1
2022-03-15T22:52:53.000Z
2022-03-15T22:52:53.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2018 Dan Ts <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free So...
32.861111
74
0.690617
99ab42eab96ab3c16d101146330c97b44958c97a
66
py
Python
configs/garbage/test_lr0.1_1x.py
zhanggefan/mmdet-yolov4
fe544b1a94c24e8abdb13bc2e4ca664854aa86a7
[ "Apache-2.0" ]
16
2021-01-21T06:52:28.000Z
2022-03-30T09:17:16.000Z
configs/garbage/test_lr0.1_1x.py
zhanggefan/mmdet-yolov4
fe544b1a94c24e8abdb13bc2e4ca664854aa86a7
[ "Apache-2.0" ]
2
2021-06-18T14:32:34.000Z
2021-09-13T15:52:16.000Z
configs/garbage/test_lr0.1_1x.py
zhanggefan/mmdet-yolov4
fe544b1a94c24e8abdb13bc2e4ca664854aa86a7
[ "Apache-2.0" ]
8
2020-12-22T21:54:10.000Z
2022-03-30T09:17:15.000Z
_base_ = './config_base/garbage_ddp.py' optimizer = dict(lr=0.1)
16.5
39
0.712121
41d445f8f3d6e55aedb38945121914b577aa660c
1,967
py
Python
CNN using tensorflow.py
Highcourtdurai/Deep-learning
b9aed4f0973709ce407006311cef28a7a183787f
[ "Apache-2.0" ]
null
null
null
CNN using tensorflow.py
Highcourtdurai/Deep-learning
b9aed4f0973709ce407006311cef28a7a183787f
[ "Apache-2.0" ]
null
null
null
CNN using tensorflow.py
Highcourtdurai/Deep-learning
b9aed4f0973709ce407006311cef28a7a183787f
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt #Fasion mnist=data of accesories like boats,dresses,bags etc fashion_mnist=tf.keras.datasets.fashion_mnist (train_images,train_labels),(test_images,test_labels)=fashion_mnist.load_data() print(train_images.shape) print(train_lab...
27.704225
142
0.734621
41d44b79dc2869fa41ba2410af3f958c1f765b2a
1,489
py
Python
Assignment-2/visualization.py
LuciFR1809/DAA-Assignments
0f2faaf2f545cb81da8c86bdd370646694c2c756
[ "BSD-3-Clause" ]
null
null
null
Assignment-2/visualization.py
LuciFR1809/DAA-Assignments
0f2faaf2f545cb81da8c86bdd370646694c2c756
[ "BSD-3-Clause" ]
null
null
null
Assignment-2/visualization.py
LuciFR1809/DAA-Assignments
0f2faaf2f545cb81da8c86bdd370646694c2c756
[ "BSD-3-Clause" ]
null
null
null
## # @file visualization.py # @brief Python file for visualization of the testcase. # Contains the driver code for reading the file and plotting it. # # @authors Kumar Pranjal 2018A7PS0163H # @authors Ashna Swaika 2018A7PS0027H # @authors Abhishek Bapna 2018A7PS0184H # @authors Ashish Verma 2018A7PS0009H # Im...
30.387755
100
0.584285
41d4b3a8528e092d2bed2da155c8fbd1a073ab7d
869
py
Python
test/test_signal.py
dabercro/dynamo-consistency
f37dfebe781a833e9ae30869d8f57be79b4f583c
[ "MIT" ]
null
null
null
test/test_signal.py
dabercro/dynamo-consistency
f37dfebe781a833e9ae30869d8f57be79b4f583c
[ "MIT" ]
1
2018-02-20T21:21:14.000Z
2018-02-20T21:21:14.000Z
test/test_signal.py
dabercro/dynamo-consistency
f37dfebe781a833e9ae30869d8f57be79b4f583c
[ "MIT" ]
2
2018-06-25T11:27:45.000Z
2021-05-13T20:32:36.000Z
#! /usr/bin/env python # This is to allow operators to disable a site and separately # kill the process without un-disabling the site import unittest from dynamo_consistency import signaling from dynamo_consistency import summary from dynamo_consistency import main from dynamo_consistency import picker import base ...
25.558824
68
0.728423
41d4ddc8906709d7184306ba4ee3569b358c67bc
2,359
py
Python
scripts/oscar_exclusive_data_format.py
codemechanic/oscar-sysex-grammar
88b841ee7d54a859df6de9bfa5c7a4f87bae3afd
[ "MIT" ]
null
null
null
scripts/oscar_exclusive_data_format.py
codemechanic/oscar-sysex-grammar
88b841ee7d54a859df6de9bfa5c7a4f87bae3afd
[ "MIT" ]
null
null
null
scripts/oscar_exclusive_data_format.py
codemechanic/oscar-sysex-grammar
88b841ee7d54a859df6de9bfa5c7a4f87bae3afd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This script is intended to be run from within the OSCar MIDI Sysex Grammar file # OSCar Exclusive Data Format # # 2 MIDI bytes contain one byte of data # first byte contains low 4 bit nibble # second byte contains high 4 bit nibble # # 0 8 16 # +-+-+-+-+-+-+-+-+ +-...
29.123457
81
0.660449
41d5649317c085f8985b97148521c85447459436
38
py
Python
yeelight/version.py
kmohrf/python-yeelight
483019c074556b4c3d2f665398f0fc308afd6274
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
yeelight/version.py
kmohrf/python-yeelight
483019c074556b4c3d2f665398f0fc308afd6274
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
yeelight/version.py
kmohrf/python-yeelight
483019c074556b4c3d2f665398f0fc308afd6274
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# flake8: noqa __version__ = "0.5.0"
9.5
21
0.631579
41d697a0f4888c1996ea9e1ef9843309eaf50ff0
2,744
py
Python
tremana/analysis/transformations.py
s-weigand/tremana
98a8a546c79ce4f248b3955da21374edfdd61dee
[ "Apache-2.0" ]
1
2022-03-07T02:52:25.000Z
2022-03-07T02:52:25.000Z
tremana/analysis/transformations.py
s-weigand/tremana
98a8a546c79ce4f248b3955da21374edfdd61dee
[ "Apache-2.0" ]
9
2021-04-26T07:08:27.000Z
2022-03-28T07:23:31.000Z
tremana/analysis/transformations.py
s-weigand/tremana
98a8a546c79ce4f248b3955da21374edfdd61dee
[ "Apache-2.0" ]
null
null
null
"""Transformations to be used on tremor accelerometry data (e.g.: FFT).""" from __future__ import annotations from typing import Iterable import numpy as np import pandas as pd from scipy.signal import periodogram def fft_spectra( input_dataframe: pd.DataFrame, columns: Iterable[str] | None = None, samp...
31.181818
86
0.662901
41d69abf160b8ce1e4074dd51d9496b0510b87af
12,633
py
Python
Prod_CV_NLP_API/flask/app.py
micintron/computer_vission_OCR
1fdd521b334f6e5958958ccf816341531b783a21
[ "CNRI-Python" ]
1
2021-02-25T09:52:46.000Z
2021-02-25T09:52:46.000Z
Prod_CV_NLP_API/flask/app.py
micintron/computer_vission_OCR
1fdd521b334f6e5958958ccf816341531b783a21
[ "CNRI-Python" ]
null
null
null
Prod_CV_NLP_API/flask/app.py
micintron/computer_vission_OCR
1fdd521b334f6e5958958ccf816341531b783a21
[ "CNRI-Python" ]
null
null
null
""" API to grab text content from images ID's and pdf's. Endpoints --------- * GET /: root: shows api info to new users on run * POST /: convert_pdf_to_image: converts a pdf doc to an image for processing * POST /: passport: extracts target text based information from pasport * POST /:...
27.887417
181
0.576269
41d72f12694e72053874661915e1331274883431
5,540
py
Python
py/umpire/server/service/multicast_unittest.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
3
2022-01-06T16:52:52.000Z
2022-03-07T11:30:47.000Z
py/umpire/server/service/multicast_unittest.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
null
null
null
py/umpire/server/service/multicast_unittest.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
1
2021-10-24T01:47:22.000Z
2021-10-24T01:47:22.000Z
#!/usr/bin/env python3 # # Copyright 2021 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import unittest from unittest import mock from cros.factory.umpire.server.service import multicast from cros.factory.u...
34.197531
80
0.687545
41da78eeb82897161300840746eef404c63146f0
7,485
py
Python
test_farbfeld.py
jmp/farbfeld
08cb56957624cfe3a1fe872390aa3252226e57cd
[ "MIT" ]
2
2020-02-01T14:59:15.000Z
2021-11-03T12:39:10.000Z
test_farbfeld.py
jmp/farbfeld
08cb56957624cfe3a1fe872390aa3252226e57cd
[ "MIT" ]
5
2019-01-26T11:58:58.000Z
2019-08-31T08:16:59.000Z
test_farbfeld.py
jmp/farbfeld
08cb56957624cfe3a1fe872390aa3252226e57cd
[ "MIT" ]
null
null
null
# pylint: disable=missing-docstring import io import unittest import farbfeld
30.303644
76
0.501536
41dae6ca6afa36e98373f82982a75e2c50d8cc74
571
py
Python
DigitRecognition/go-test.py
shifuture/kaggle-join
8cc8fb6042982cba1d9a0eced1488c5a13557e80
[ "MIT" ]
null
null
null
DigitRecognition/go-test.py
shifuture/kaggle-join
8cc8fb6042982cba1d9a0eced1488c5a13557e80
[ "MIT" ]
null
null
null
DigitRecognition/go-test.py
shifuture/kaggle-join
8cc8fb6042982cba1d9a0eced1488c5a13557e80
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- import csv import numpy as np tests = loadTestData() for i in range(len(tests)): with open('./extract_tdata/line_%d.txt'%i, 'w') as file: file.write("\n".join(str(e) for e in tests[i].reshape(28,28)))
24.826087
70
0.595447
41dc7c7b8b8afe1b3ff6333c9f01816fc91e0652
54,070
py
Python
src/funcFit/TutorialExampleSanity.py
mirofedurco/PyAstronomy
b0e5806a18bde647654e6c9de323327803722864
[ "MIT" ]
98
2015-01-01T12:46:05.000Z
2022-02-13T14:17:36.000Z
src/funcFit/TutorialExampleSanity.py
mirofedurco/PyAstronomy
b0e5806a18bde647654e6c9de323327803722864
[ "MIT" ]
46
2015-02-10T19:53:38.000Z
2022-01-11T17:26:05.000Z
src/funcFit/TutorialExampleSanity.py
mirofedurco/PyAstronomy
b0e5806a18bde647654e6c9de323327803722864
[ "MIT" ]
38
2015-01-08T17:00:34.000Z
2022-03-04T05:15:22.000Z
from __future__ import print_function, division import unittest import os # plt.errorbar(x, y, yerr=yerr, fmt='b.') # plt.plot(x, restrictedModel, 'r--', label="Restricted") # plt.plot(x, unrestrictedModel, 'g--', label="Unrestricted") # plt.legend() # plt.show() # ta.plotTraceHist('mu') ...
32.435513
103
0.597263
41de05126656eb0665e6b6dd493d706236d85602
2,905
py
Python
virtual_machines/update-matching-table.py
AmoVanB/chameleon-end-host
573e1dccdaf4ca2bebedc96a7b902e622c50acab
[ "Apache-2.0" ]
null
null
null
virtual_machines/update-matching-table.py
AmoVanB/chameleon-end-host
573e1dccdaf4ca2bebedc96a7b902e622c50acab
[ "Apache-2.0" ]
null
null
null
virtual_machines/update-matching-table.py
AmoVanB/chameleon-end-host
573e1dccdaf4ca2bebedc96a7b902e622c50acab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 """ This script, to be used by VM 0, sends a configuration message to the virtual switch to create a particular tagging and shaping rule. Author: Amaury Van Bemten <amaury.van-bemten@tum.de> """ from scapy.all import * import sys # import scapy config from scapy.all import conf as scapyconf # dis...
40.915493
161
0.683649
41df73d109c0b036f4dc5a0fd33804ce5856c662
1,351
py
Python
radSeqAmp/_versioninfo.py
msettles/radSeqAmp
a89d1aa12601dcd7aba0e83b2ae28fc3ff76989f
[ "Apache-2.0" ]
null
null
null
radSeqAmp/_versioninfo.py
msettles/radSeqAmp
a89d1aa12601dcd7aba0e83b2ae28fc3ff76989f
[ "Apache-2.0" ]
null
null
null
radSeqAmp/_versioninfo.py
msettles/radSeqAmp
a89d1aa12601dcd7aba0e83b2ae28fc3ff76989f
[ "Apache-2.0" ]
null
null
null
# _versioninfo.py # # gets the version number from the package info # checks it agains the github version import sys from pkg_resources import get_distribution, parse_version try: _dist = get_distribution('radSeqAmp') version_num = _dist.version except: version_num = 'Please install this project with setup...
40.939394
123
0.763138
41df8366d44990c149549ad5a6aecb5e9bc2fcdb
5,835
py
Python
weekly_degradation.py
rajeevratan84/LTE-KPI-Anomaly-Detection
b5d3ce261f75b94956867645fd3479c0b2eb0cd8
[ "MIT" ]
null
null
null
weekly_degradation.py
rajeevratan84/LTE-KPI-Anomaly-Detection
b5d3ce261f75b94956867645fd3479c0b2eb0cd8
[ "MIT" ]
null
null
null
weekly_degradation.py
rajeevratan84/LTE-KPI-Anomaly-Detection
b5d3ce261f75b94956867645fd3479c0b2eb0cd8
[ "MIT" ]
null
null
null
#!/usr/bin/env python from configuration.settings import Conf from database.sql_connect import SQLDatabase from KPIForecaster.forecaster import KPIForecaster from datetime import datetime import pandas as pd import numpy as np import time import sys import os.path path = sys.argv[0].rsplit("/", 1)[0] # Create config...
35.150602
119
0.656041
41e2290afea8242f9b3ad627b8896fc8296f5d30
110
py
Python
basis/cli/commands/logout.py
kvh/basis
8d109ff5ccf2c30b1a11406827d2c1620691ad95
[ "BSD-3-Clause" ]
11
2020-05-29T20:56:48.000Z
2021-09-22T15:44:42.000Z
basis/cli/commands/logout.py
kvh/basis
8d109ff5ccf2c30b1a11406827d2c1620691ad95
[ "BSD-3-Clause" ]
null
null
null
basis/cli/commands/logout.py
kvh/basis
8d109ff5ccf2c30b1a11406827d2c1620691ad95
[ "BSD-3-Clause" ]
null
null
null
from basis.cli.services import auth def logout(): """Log out of your Basis account""" auth.logout()
15.714286
39
0.663636
41e4a272d03b82c913d673af1e5e15ff825ef623
2,074
py
Python
blockade/komand_blockade/actions/add_user/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
blockade/komand_blockade/actions/add_user/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
blockade/komand_blockade/actions/add_user/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json
18.192982
57
0.486982
41e5525e7a720e9de54e83ab3802a2d8a16f8134
7,937
py
Python
starthinker/tool/example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
138
2018-11-28T21:42:44.000Z
2022-03-30T17:26:35.000Z
starthinker/tool/example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
36
2019-02-19T18:33:20.000Z
2022-01-24T18:02:44.000Z
starthinker/tool/example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
54
2018-12-06T05:47:32.000Z
2022-02-21T22:01:01.000Z
########################################################################### # # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/l...
32.528689
164
0.643442
41e5c2cff74537381853da7d7af093ed89964ce8
1,080
py
Python
services/test_companies_match.py
devx3/hero-testes-tech-talk
604641f41c18cd9f9f2b59c8c25cf0a2fc6adfcb
[ "MIT" ]
null
null
null
services/test_companies_match.py
devx3/hero-testes-tech-talk
604641f41c18cd9f9f2b59c8c25cf0a2fc6adfcb
[ "MIT" ]
3
2021-09-24T01:23:38.000Z
2021-09-28T22:15:29.000Z
services/test_companies_match.py
devx3/hero-testes-tech-talk
604641f41c18cd9f9f2b59c8c25cf0a2fc6adfcb
[ "MIT" ]
1
2021-09-29T13:18:39.000Z
2021-09-29T13:18:39.000Z
from unittest import mock, TestCase from unittest.mock import Mock from services.companies_match import CompaniesMatch from services.mock import RESPONSE_MOCK
38.571429
85
0.730556
41e6ee84a456c6b5415e417d61175deacfc9d081
2,618
py
Python
src/plot_weighted_graph.py
suning-opensource/frustrated-random-walk
7de559c20e96567a61853668f36d786b126ed57f
[ "Apache-2.0" ]
18
2020-12-24T04:26:21.000Z
2022-03-24T07:32:39.000Z
src/plot_weighted_graph.py
kiminh/frustrated-random-walk
7de559c20e96567a61853668f36d786b126ed57f
[ "Apache-2.0" ]
1
2021-05-07T06:47:34.000Z
2021-05-07T06:47:34.000Z
src/plot_weighted_graph.py
kiminh/frustrated-random-walk
7de559c20e96567a61853668f36d786b126ed57f
[ "Apache-2.0" ]
8
2020-10-22T23:51:55.000Z
2021-08-24T06:36:19.000Z
#!/usr/bin/env python """ ============== Weighted Graph ============== An example using Graph as a weighted network. """ # Author: Aric Hagberg (hagberg@lanl.gov) import matplotlib.pyplot as plt import networkx as nx if __name__ == "__main__": import sys sys.exit(main())
31.542169
151
0.559587
41ec186af56971b756995a21107e22571cd744ca
1,980
py
Python
src/util/TournamentGenerationSelector.py
athoslag/Evolutiva
408c71d89969f445fe8054666f18492a6ff26fb8
[ "MIT" ]
null
null
null
src/util/TournamentGenerationSelector.py
athoslag/Evolutiva
408c71d89969f445fe8054666f18492a6ff26fb8
[ "MIT" ]
null
null
null
src/util/TournamentGenerationSelector.py
athoslag/Evolutiva
408c71d89969f445fe8054666f18492a6ff26fb8
[ "MIT" ]
null
null
null
import operator import random from src.domain.Individual import Individual from src.util.AbstractGeneration import AbstractGeneration ''' Seletor #2 - Mtodo de seleo por torneio A seleo por torneio sorteia aleatoriamente dois indivduos e seleciona para participar da prxima gerao aquele com melhor avaliao. Os melhore...
35.357143
94
0.660101
41eda4e4dba365b6d5b2482768194356e609bc8f
596
py
Python
scraper/collect_image_stats/get_domains_and_urls.py
martinGalajdaSchool/object-detection
2c72b643464a89b91daac520a862ebaad2b3f9f0
[ "Apache-2.0" ]
2
2019-12-11T05:50:39.000Z
2021-12-06T12:28:40.000Z
scraper/collect_image_stats/get_domains_and_urls.py
martinGalajdaSchool/object-detection
2c72b643464a89b91daac520a862ebaad2b3f9f0
[ "Apache-2.0" ]
19
2019-12-16T21:23:00.000Z
2022-03-02T14:59:12.000Z
scraper/collect_image_stats/get_domains_and_urls.py
martin-galajda/object-detection
2c72b643464a89b91daac520a862ebaad2b3f9f0
[ "Apache-2.0" ]
null
null
null
import csv
22.923077
68
0.486577
41ee3ae8e8b92e612ac4608c7da1d0e996a06da5
3,583
py
Python
patches_tool/constants.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
2
2015-06-15T02:16:33.000Z
2022-02-23T07:10:38.000Z
patches_tool/constants.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
7
2016-05-13T06:39:45.000Z
2016-05-20T02:55:31.000Z
patches_tool/constants.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
4
2015-11-02T04:02:50.000Z
2021-05-13T17:06:00.000Z
__author__ = 'nash.xiejun' import os
44.234568
117
0.718113
41eef09d352b027d57f768a34a0d9c5369b206e4
1,919
py
Python
samples/physics-mecanum/src/physics.py
sarosenb/pyfrc
9376b86dad6fab209bb4e904fead1155dda7a68b
[ "MIT" ]
null
null
null
samples/physics-mecanum/src/physics.py
sarosenb/pyfrc
9376b86dad6fab209bb4e904fead1155dda7a68b
[ "MIT" ]
null
null
null
samples/physics-mecanum/src/physics.py
sarosenb/pyfrc
9376b86dad6fab209bb4e904fead1155dda7a68b
[ "MIT" ]
null
null
null
# # See the notes for the other physics sample # from pyfrc import wpilib from pyfrc.physics import drivetrains
30.951613
91
0.593538
41efa0b1f23a58e01d79993abae419de0e29ae35
5,994
py
Python
fonts/diamonstealth64_8x14.py
ccccmagicboy/st7735_mpy
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
[ "MIT" ]
6
2020-07-11T16:59:19.000Z
2021-07-16T19:32:49.000Z
ports/esp32/user_modules/st7735_mpy/fonts/diamonstealth64_8x14.py
d4niele/micropython
a1f7b37d392bf46b28045ce215ae899fda8d8c38
[ "MIT" ]
1
2020-04-14T03:14:45.000Z
2020-04-14T03:14:45.000Z
fonts/diamonstealth64_8x14.py
ccccmagicboy/st7735_mpy
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
[ "MIT" ]
null
null
null
"""converted from ..\fonts\DiamonStealth64_8x14.bin """ WIDTH = 8 HEIGHT = 14 FIRST = 0x20 LAST = 0x7f _FONT =\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x18\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00\x00'\ b'\x66\x66\x66\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x6c\x6c\xfe\x6c\x6...
57.085714
60
0.704705
41efccef82f28d187c0597489e64c7649630dd85
864
py
Python
TreeDFS/SumPathNumbers.py
Feez/Algo-Challenges
6b5f919b4e2c9ba9ed9b7c5d7697fe73740c139e
[ "MIT" ]
2
2019-12-03T05:29:35.000Z
2020-01-19T19:22:11.000Z
TreeDFS/SumPathNumbers.py
Feez/Algo-Challenges
6b5f919b4e2c9ba9ed9b7c5d7697fe73740c139e
[ "MIT" ]
null
null
null
TreeDFS/SumPathNumbers.py
Feez/Algo-Challenges
6b5f919b4e2c9ba9ed9b7c5d7697fe73740c139e
[ "MIT" ]
null
null
null
main()
22.153846
78
0.586806
41f244af008573d038af8edc1801e70f08cd96ac
1,730
py
Python
src/src/modules/ZeroOptimizer.py
ychnlgy/LipoWithGradients
4fe5228a3dae8bf5d457eef6191ba29314421f6b
[ "MIT" ]
null
null
null
src/src/modules/ZeroOptimizer.py
ychnlgy/LipoWithGradients
4fe5228a3dae8bf5d457eef6191ba29314421f6b
[ "MIT" ]
null
null
null
src/src/modules/ZeroOptimizer.py
ychnlgy/LipoWithGradients
4fe5228a3dae8bf5d457eef6191ba29314421f6b
[ "MIT" ]
null
null
null
import torch EPS = 1e-32 if __name__ == "__main__": torch.manual_seed(10) w_1 = torch.ones(10)*100-50 w_r = torch.rand(10)*100-50 w_s = torch.Tensor([1e-4, -1e-4, 1e-4, -1e-4, 1e-5, -1e-5, 1e-6, -1e-6, 1e-8, -1e-8]) w_w = 10**torch.arange(0, -10, -1).float() w_0 = torch.zeros(10) w_z...
23.69863
89
0.509249
41f5bd3c227b6e90d9957fe3e9834571a6c5a926
2,010
py
Python
python_lesson_4/python_lesson_4_homework_lightplus.py
cubecloud/simple_python
2bc4ee1720214293dabfa5dbe661a49246c38842
[ "MIT" ]
null
null
null
python_lesson_4/python_lesson_4_homework_lightplus.py
cubecloud/simple_python
2bc4ee1720214293dabfa5dbe661a49246c38842
[ "MIT" ]
1
2020-04-24T10:19:24.000Z
2020-04-24T10:19:24.000Z
python_lesson_4/python_lesson_4_homework_lightplus.py
cubecloud/simple_python
2bc4ee1720214293dabfa5dbe661a49246c38842
[ "MIT" ]
null
null
null
# # ( ): log_file_name = 'log' # 1 # # with open(log_file_name, 'r', encoding='utf-8') as text_file: max_date_str = '' # for line in text_file: if line[:23] > max_date_str[:23]: max_date_str = line # print(" 1") print(max_date_str) # 2 # log_file_name = 'log' # re...
31.904762
107
0.678109
41f650c872145facc783efbfb2b0dadcd4920f2a
18,278
py
Python
sappy/m4a.py
SomeShrug/SapPy
cee216bc5f89f0479748efdbeb75c4781d95b0f7
[ "MIT" ]
4
2018-04-21T15:43:50.000Z
2018-07-10T17:11:31.000Z
sappy/m4a.py
SomeShrug/SapPy
cee216bc5f89f0479748efdbeb75c4781d95b0f7
[ "MIT" ]
null
null
null
sappy/m4a.py
SomeShrug/SapPy
cee216bc5f89f0479748efdbeb75c4781d95b0f7
[ "MIT" ]
1
2018-04-08T03:00:06.000Z
2018-04-08T03:00:06.000Z
# -*- coding: utf-8 -*- """Data-storage containers for internal use.""" import copy import math from collections import OrderedDict, deque from enum import IntEnum from random import random from typing import Dict, List, NamedTuple, Union, Tuple, Deque from .config import (BASE_FREQUENCY, PSG_SQUARE_FREQUENCY, PSG_SQU...
28.875197
80
0.585239
41f7aa5d337d6a6a04c73fadceef0f5775c6ce5a
4,076
py
Python
examples/manifold/plot_swissroll.py
jlopezNEU/scikit-learn
593495eebc3c2f2ffdb244036adf57fab707a47d
[ "BSD-3-Clause" ]
50,961
2015-01-01T06:06:31.000Z
2022-03-31T23:40:12.000Z
examples/manifold/plot_swissroll.py
ashutoshpatelofficial/scikit-learn
2fc9187879424556726d9345a6656884fa9fbc20
[ "BSD-3-Clause" ]
17,065
2015-01-01T02:01:58.000Z
2022-03-31T23:48:34.000Z
examples/manifold/plot_swissroll.py
ashutoshpatelofficial/scikit-learn
2fc9187879424556726d9345a6656884fa9fbc20
[ "BSD-3-Clause" ]
26,886
2015-01-01T00:59:27.000Z
2022-03-31T18:03:23.000Z
""" =================================== Swiss Roll And Swiss-Hole Reduction =================================== This notebook seeks to compare two popular non-linear dimensionality techniques, T-distributed Stochastic Neighbor Embedding (t-SNE) and Locally Linear Embedding (LLE), on the classic Swiss Roll dataset. Then...
33.966667
86
0.692345
41f7f839e3be35c24720ab38c662be95d99e2886
2,044
py
Python
INF101/TP/TP9/2.9.3.py
Marshellson/UGA_IMF
eb293deabcc5ef6e45617d8c5bb6268b63b34f21
[ "MIT" ]
1
2021-09-21T21:53:17.000Z
2021-09-21T21:53:17.000Z
INF101/TP/TP9/2.9.3.py
Marshellson/UGA_INF
eb293deabcc5ef6e45617d8c5bb6268b63b34f21
[ "MIT" ]
null
null
null
INF101/TP/TP9/2.9.3.py
Marshellson/UGA_INF
eb293deabcc5ef6e45617d8c5bb6268b63b34f21
[ "MIT" ]
null
null
null
''' Author: JIANG Yilun Date: 2021-12-01 13:01:29 LastEditTime: 2021-12-01 13:30:06 LastEditors: JIANG Yilun Description: FilePath: /INF_101/INF101/TP/TP9/2.9.3.py ''' import random dictionnaire = {'pomme': 'apple', 'orange': 'orange', 'banane': 'banana'} nombre_round = int(input("Entrez le nombre de round: "))...
29.623188
103
0.666341
41f845926aa3ec217a14d9100d2e6f115eb277d1
322
py
Python
HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtTrimuon_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtTrimuon_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtTrimuon_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-23T09:25:45.000Z
2021-11-23T09:25:45.000Z
import FWCore.ParameterSet.Config as cms LowPtTrimuonPSet = cms.PSet( hltPathsToCheck = cms.vstring( ), recMuonLabel = cms.InputTag("muons"), # -- Analysis specific cuts minCandidates = cms.uint32(3), # -- Analysis specific binnings parametersDxy = cms.vdouble(50, -2.500, 2.500), ...
26.833333
56
0.65528
41fa41d8007e097936f791c465cb628fb82b64ed
3,021
py
Python
see/test/hooks_manager_test.py
nethunterslabs/see
da9387950d5db7c30ad8a5d1ba12e884afe8b1bb
[ "Apache-2.0" ]
null
null
null
see/test/hooks_manager_test.py
nethunterslabs/see
da9387950d5db7c30ad8a5d1ba12e884afe8b1bb
[ "Apache-2.0" ]
null
null
null
see/test/hooks_manager_test.py
nethunterslabs/see
da9387950d5db7c30ad8a5d1ba12e884afe8b1bb
[ "Apache-2.0" ]
null
null
null
import copy import mock import unittest from see import Hook from see import hooks CONFIG = { "configuration": {"key": "value"}, "hooks": [ { "name": "see.test.hooks_manager_test.TestHook", "configuration": {"foo": "bar"}, }, {"name": "see.test.hooks_manager_te...
31.14433
83
0.64482
41fa5f1eb0cd72600e9f03de9938096cc411d598
538
py
Python
api/works/migrations/0004_auto_20181201_2130.py
urbrob/hackathon-2018
3261b176304c7fb1a4ed97a3e7a1ac10b1d0608f
[ "MIT" ]
null
null
null
api/works/migrations/0004_auto_20181201_2130.py
urbrob/hackathon-2018
3261b176304c7fb1a4ed97a3e7a1ac10b1d0608f
[ "MIT" ]
12
2018-12-01T12:41:36.000Z
2022-03-11T23:35:55.000Z
api/works/migrations/0004_auto_20181201_2130.py
urbrob/hackathon-2018
3261b176304c7fb1a4ed97a3e7a1ac10b1d0608f
[ "MIT" ]
1
2018-12-01T16:41:13.000Z
2018-12-01T16:41:13.000Z
# Generated by Django 2.0.2 on 2018-12-01 21:30 from django.db import migrations, models
22.416667
73
0.565056
41fab0cdfc218549b2a3694e2626d8da1755a58e
10,467
py
Python
massloss_glacier2latlongrid.py
Wang518hongyu/PyGEM
1c9fa133133b3d463b1383d4792c535fa61c5b8d
[ "MIT" ]
25
2019-06-12T21:08:24.000Z
2022-03-01T08:05:14.000Z
massloss_glacier2latlongrid.py
Wang518hongyu/PyGEM
1c9fa133133b3d463b1383d4792c535fa61c5b8d
[ "MIT" ]
2
2020-04-23T14:08:00.000Z
2020-06-04T13:52:44.000Z
massloss_glacier2latlongrid.py
Wang518hongyu/PyGEM
1c9fa133133b3d463b1383d4792c535fa61c5b8d
[ "MIT" ]
24
2019-06-12T19:48:40.000Z
2022-02-16T03:42:53.000Z
""" Analyze MCMC output - chain length, etc. """ # Built-in libraries from collections import OrderedDict import datetime import glob import os import pickle # External libraries import cartopy import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.pyplot import MaxNLocator from matplotlib.lines impo...
41.868
123
0.651572
41fc333b33ca8b6f1db8177902d0d972f89bd8ec
3,233
py
Python
corehq/apps/auditcare/migrations/0003_truncatechars.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/auditcare/migrations/0003_truncatechars.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/auditcare/migrations/0003_truncatechars.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
# Generated by Django 2.2.16 on 2021-04-01 20:23 import corehq.util.models from django.db import migrations, models
44.902778
110
0.62759
5100323735b98828e50f67b34742d19a272551ac
6,781
py
Python
tests/infrastructures/repositories/test_user_repository.py
harokki/fastapi-authenticated
baca823d3489739843b4df68f57fa785da7bf50d
[ "MIT" ]
null
null
null
tests/infrastructures/repositories/test_user_repository.py
harokki/fastapi-authenticated
baca823d3489739843b4df68f57fa785da7bf50d
[ "MIT" ]
null
null
null
tests/infrastructures/repositories/test_user_repository.py
harokki/fastapi-authenticated
baca823d3489739843b4df68f57fa785da7bf50d
[ "MIT" ]
null
null
null
from app.domains.entities.role import Role from app.domains.entities.user import User from app.domains.entities.user_role import UserRole from app.schemas.user import UserCreateSchema from tests.conftest import DbFixtureType SQLALCEMY_DATABASE_URL = "sqlite:///./test.db"
29.354978
80
0.663766
510071411b69aed8738cceefd50874bfee413c3c
146
py
Python
python/reverse_string.py
jendama/training-kit
738b9743e1f3948bc867f420f75efa47d0971217
[ "MIT" ]
null
null
null
python/reverse_string.py
jendama/training-kit
738b9743e1f3948bc867f420f75efa47d0971217
[ "MIT" ]
null
null
null
python/reverse_string.py
jendama/training-kit
738b9743e1f3948bc867f420f75efa47d0971217
[ "MIT" ]
null
null
null
a = "HACKTOBERFEST" # reverse by slicing inverse print(a[::-1]) # reverse text b = "I Love Fosti" b = b.split(" ")[::-1] print(" ".join(b))
10.428571
28
0.575342
5100b17784b04cdb6c2f4076aaca2a9b3a839c93
56,140
py
Python
entry/main.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
entry/main.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
entry/main.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
import math import random import json import copy from tkinter.constants import COMMAND from zipfile import ZipFile import PIL.Image from PIL import ImageTk import tkinter as tk from tkinter import ttk, font, messagebox from ttkthemes import ThemedStyle from tooltip import * from event_manager import EventManager fro...
48.271711
159
0.59658
51033cdbbaedcb29f8ed65dc37e4cdc367f17763
1,411
py
Python
qrtt/technical/rsi.py
leopoldsw/qrtt
271f23888847f9a0a9a7da360be22c5000b058ab
[ "MIT" ]
null
null
null
qrtt/technical/rsi.py
leopoldsw/qrtt
271f23888847f9a0a9a7da360be22c5000b058ab
[ "MIT" ]
null
null
null
qrtt/technical/rsi.py
leopoldsw/qrtt
271f23888847f9a0a9a7da360be22c5000b058ab
[ "MIT" ]
null
null
null
""" RSI CALCULATION The very first calculations for average gain and average loss are simple n-period averages: First Average Gain = Sum of Gains over the past n periods / n. First Average Loss = Sum of Losses over the past n periods / n The second, and subsequent, calculations are based on the prior average...
34.414634
114
0.66832
51040493dd07307ebedc78ed9f4e2afac76edbf4
1,394
py
Python
ext/numdoc.py
kawaken/typescript-guide
e3f6731e370fb834f4f292ff5806556e203c9233
[ "CC0-1.0" ]
456
2019-06-11T15:48:52.000Z
2022-03-28T06:44:10.000Z
ext/numdoc.py
kawaken/typescript-guide
e3f6731e370fb834f4f292ff5806556e203c9233
[ "CC0-1.0" ]
18
2019-06-13T19:33:24.000Z
2022-02-27T21:31:26.000Z
ext/numdoc.py
kawaken/typescript-guide
e3f6731e370fb834f4f292ff5806556e203c9233
[ "CC0-1.0" ]
62
2019-06-12T10:11:14.000Z
2022-03-29T07:31:09.000Z
# coding:utf-8 from docutils import nodes, utils from sphinx.util.nodes import split_explicit_title from sphinx import addnodes from sphinx.writers.latex import LaTeXTranslator from six import u def numdoc_role(name, rawtext, text, lineno, inliner, options={}, content=[]): """Role for making latex ref to the doc h...
33.190476
78
0.652798
51047009ea571a8e1f957cb448ebd1d72b071fc4
2,679
py
Python
build/lib/bandwidth/voice/bxml/verbs/redirect.py
Spaced-Out/python-bandwidth-sdk
5332f29d1c093003444384f63a9d4a00843c954f
[ "MIT" ]
5
2020-11-04T14:29:37.000Z
2022-02-23T20:33:07.000Z
build/lib/bandwidth/voice/bxml/verbs/redirect.py
Spaced-Out/python-bandwidth-sdk
5332f29d1c093003444384f63a9d4a00843c954f
[ "MIT" ]
3
2021-07-23T18:48:48.000Z
2022-03-15T14:59:07.000Z
build/lib/bandwidth/voice/bxml/verbs/redirect.py
Spaced-Out/python-bandwidth-sdk
5332f29d1c093003444384f63a9d4a00843c954f
[ "MIT" ]
8
2020-04-14T09:22:53.000Z
2022-03-11T10:46:06.000Z
""" redirect.py Representation of Bandwidth's redirect BXML verb @copyright Bandwidth INC """ from lxml import etree from .base_verb import AbstractBxmlVerb REDIRECT_TAG = "Redirect"
41.215385
103
0.695035
5105155b27194145a1c2533733e5d9490dd7a885
132
py
Python
numba_stream/__init__.py
jackd/numba-stream
79a12616a4a5b3107d8e9c17dc98cdeb79b2430a
[ "Apache-2.0" ]
null
null
null
numba_stream/__init__.py
jackd/numba-stream
79a12616a4a5b3107d8e9c17dc98cdeb79b2430a
[ "Apache-2.0" ]
null
null
null
numba_stream/__init__.py
jackd/numba-stream
79a12616a4a5b3107d8e9c17dc98cdeb79b2430a
[ "Apache-2.0" ]
null
null
null
from . import grid, lif, neighbors, ragged, utils __all__ = [ "grid", "utils", "ragged", "neighbors", "lif", ]
13.2
49
0.537879
5106aa713d6626d3d954ada527f0fad7a1c15261
1,872
py
Python
modules/aerodyn/ad_EllipticalWingInf_OLAF/Main_PostPro.py
OpenFAST/openfast-regression
7892739f47f312ce014711192fd70253ea40c8e8
[ "Apache-2.0" ]
null
null
null
modules/aerodyn/ad_EllipticalWingInf_OLAF/Main_PostPro.py
OpenFAST/openfast-regression
7892739f47f312ce014711192fd70253ea40c8e8
[ "Apache-2.0" ]
null
null
null
modules/aerodyn/ad_EllipticalWingInf_OLAF/Main_PostPro.py
OpenFAST/openfast-regression
7892739f47f312ce014711192fd70253ea40c8e8
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt # Local import weio import welib.fast.fastlib as fastlib # --- Reference simulations OmniVor / AWSM ref20 = weio.read('AnalyticalResults/Elliptic_NumReference20.csv').toDataFrame() ref40 = weio.read('AnalyticalResults/Elliptic_NumReference40.csv'...
39
128
0.631944
510acc236531ba47fd115389b56d91a1e8269505
15,135
py
Python
venv/lib/python2.7/site-packages/plotnine/data/__init__.py
nuriale207/preprocesspack
cc06a9cb79c5e3b392371fcd8d1ccf7185e71821
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/plotnine/data/__init__.py
nuriale207/preprocesspack
cc06a9cb79c5e3b392371fcd8d1ccf7185e71821
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/plotnine/data/__init__.py
nuriale207/preprocesspack
cc06a9cb79c5e3b392371fcd8d1ccf7185e71821
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import os import pandas as pd from pandas.api.types import CategoricalDtype __all__ = ['diamonds', 'economics', 'economics_long', 'midwest', 'mpg', 'msleep', 'presidential', 'seals', 'txhousing', 'luv_colours', ...
29.331395
78
0.611034
510be31bb9c422b20d34df7cba9b6a88cf0c6ddf
235
py
Python
accounts/forms.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
null
null
null
accounts/forms.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
1
2015-05-31T10:42:36.000Z
2015-11-03T17:52:06.000Z
accounts/forms.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
null
null
null
from userena.forms import EditProfileForm from userena import views as userena_views
39.166667
59
0.834043
510ca732ab0febae2e491cf6527efb03bb28960e
2,400
py
Python
Pension & Commutation Calculator/SignUp.py
Abhijit-007a/Pension_And_Commutation_Calculator
787467af25286fa26f50a2c025711992eb445c8f
[ "Apache-2.0" ]
1
2021-09-19T11:47:44.000Z
2021-09-19T11:47:44.000Z
Pension & Commutation Calculator/SignUp.py
Abhijit-007a/Pension_And_Commutation_Calculator
787467af25286fa26f50a2c025711992eb445c8f
[ "Apache-2.0" ]
null
null
null
Pension & Commutation Calculator/SignUp.py
Abhijit-007a/Pension_And_Commutation_Calculator
787467af25286fa26f50a2c025711992eb445c8f
[ "Apache-2.0" ]
null
null
null
#importing all the tkinter modules. from tkinter import * from tkinter import messagebox from PIL import Image, ImageTk import mysql.connector as sql win = Tk() #defining basic geometry and characteristics of the window. win.geometry("1000x700") image = Image.open('SignUpImage.png') photo_image = ImageTk.Pho...
25.806452
101
0.635833
510ef8a7510ae1de9af9073513790cd07023ac0b
26,324
py
Python
wikidata_research/dictionary/dictionary_evaluation.py
sjuenger/WikiMETA
13ed293b4bda8ff0fc10b532907ca35c24a12616
[ "MIT" ]
null
null
null
wikidata_research/dictionary/dictionary_evaluation.py
sjuenger/WikiMETA
13ed293b4bda8ff0fc10b532907ca35c24a12616
[ "MIT" ]
null
null
null
wikidata_research/dictionary/dictionary_evaluation.py
sjuenger/WikiMETA
13ed293b4bda8ff0fc10b532907ca35c24a12616
[ "MIT" ]
null
null
null
# module to evaluate the property dictionary import json # global variable for the path to the dictionary path_to_json_dictionary = "data/property_dictionary.json" # overload method # # recommended == true # query only those references or qualifiers, that are intended by Wikidata # .. for References: these are prop...
48.83859
128
0.584334
510f0704162b83a55e2da583192211cbda73f8f2
2,987
py
Python
Test13_talking_robot/Test13_preprocess.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test13_talking_robot/Test13_preprocess.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test13_talking_robot/Test13_preprocess.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
# coding=utf-8 import os import random import sys conv_path = 'dgk_shooter_min.conv' if not os.path.exists(conv_path): print('') exit() # """ E M //// M ///////// M //////////// E M ///////// M ////////// M //////// M //////// M /////////// M ///// M /////// M ////// M ///// M /////// M ////////////// M //...
24.08871
153
0.546368
510f5b8577eceaa2d67a2069c8c286b003c41202
2,371
py
Python
rescape_region/models/project.py
calocan/rescape-region
8cb0c4d5e2f4c92939eb9a30473808decdb4bef2
[ "MIT" ]
1
2021-05-08T12:04:23.000Z
2021-05-08T12:04:23.000Z
rescape_region/models/project.py
rescapes/rescape-region
b247aa277928d126bcf020c8204994b00ae4c18d
[ "MIT" ]
15
2021-04-06T18:05:04.000Z
2022-03-12T00:22:35.000Z
rescape_region/models/project.py
rescapes/rescape-region
b247aa277928d126bcf020c8204994b00ae4c18d
[ "MIT" ]
null
null
null
import reversion from django.contrib.auth import get_user_model from django.contrib.gis.db.models import SET_NULL, CASCADE, Q from django.db.models import ( CharField, ForeignKey, ManyToManyField, UniqueConstraint) from django.db.models import JSONField from safedelete.models import SafeDeleteModel from rescap...
45.596154
117
0.710671
510fb73823084b9ff3de955296518a2eb7c922e4
540
py
Python
wiktts/__init__.py
pettarin/wiktts
37f9a865ec01604c36a3ab15325f62d8c26e4484
[ "MIT" ]
5
2016-06-02T04:52:11.000Z
2018-08-01T20:05:37.000Z
wiktts/__init__.py
pettarin/wiktts
37f9a865ec01604c36a3ab15325f62d8c26e4484
[ "MIT" ]
null
null
null
wiktts/__init__.py
pettarin/wiktts
37f9a865ec01604c36a3ab15325f62d8c26e4484
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ TBW """ from __future__ import absolute_import from __future__ import print_function import io __author__ = "Alberto Pettarin" __copyright__ = "Copyright 2016, Alberto Pettarin (www.albertopettarin.it)" __license__ = "MIT" __email__ = "alberto@albertopettarin.it" __version__...
20.769231
75
0.748148
510fcdad15a6c8447153e32692aae7694f685210
2,456
py
Python
oxe-api/test/resource/user/test_update_user.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/test/resource/user/test_update_user.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/test/resource/user/test_update_user.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
from test.BaseCase import BaseCase
30.7
86
0.506107
51106aa7bc640784a651d3a06d5663b7d7680ea4
2,834
py
Python
addons/mixins.py
kilinger/marathon-rocketchat-hubot
682454b90265eb2c66ea222cf0c970370816a9e1
[ "BSD-3-Clause" ]
1
2018-07-10T07:03:12.000Z
2018-07-10T07:03:12.000Z
addons/mixins.py
kilinger/marathon-rocketchat-hubot
682454b90265eb2c66ea222cf0c970370816a9e1
[ "BSD-3-Clause" ]
null
null
null
addons/mixins.py
kilinger/marathon-rocketchat-hubot
682454b90265eb2c66ea222cf0c970370816a9e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :copyright: (c) 2015 by the xxxxx Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function from hubot.utils.mesos import clean_container_path
30.473118
104
0.623853
511493f52cb1eeb1e8430922732560c6965e53e7
5,069
py
Python
flexmatcher/classify/nGramClassifier.py
austinkwillis/flexmatcher
c771cea696014f62bf919ecf678835d8c655d04f
[ "Apache-2.0" ]
28
2017-07-19T19:02:56.000Z
2022-01-11T10:40:06.000Z
flexmatcher/classify/nGramClassifier.py
austinkwillis/flexmatcher
c771cea696014f62bf919ecf678835d8c655d04f
[ "Apache-2.0" ]
253
2018-02-10T22:22:16.000Z
2022-03-27T18:43:17.000Z
flexmatcher/classify/nGramClassifier.py
austinkwillis/flexmatcher
c771cea696014f62bf919ecf678835d8c655d04f
[ "Apache-2.0" ]
10
2018-02-21T06:41:30.000Z
2022-02-20T12:18:46.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import division from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import HashingVectorizer from sklearn.model_selection import StratifiedKFold from sklearn import linear_model from...
44.858407
79
0.64924
5116e871b3a1ab4846b46b9fec5ed8c06b14c048
3,001
py
Python
experiment/test/nngen.py
seonglae/commit-autosuggestions
49c0ab65f20bda835b7537e042ffc9d338a0d482
[ "Apache-2.0" ]
303
2020-08-27T06:59:55.000Z
2022-03-18T17:50:16.000Z
experiment/test/nngen.py
seonglae/commit-autosuggestions
49c0ab65f20bda835b7537e042ffc9d338a0d482
[ "Apache-2.0" ]
4
2020-12-01T15:06:46.000Z
2021-11-10T17:38:19.000Z
experiment/test/nngen.py
seonglae/commit-autosuggestions
49c0ab65f20bda835b7537e042ffc9d338a0d482
[ "Apache-2.0" ]
11
2020-11-08T01:52:30.000Z
2021-10-03T18:45:45.000Z
# encoding=utf-8 import os import time import fire from typing import List from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics.pairwise import cosine_similarity from nltk.translate.bleu_score import sentence_bleu def load_data(path): """load lines from a file""" with open(path, 'r...
35.305882
96
0.671776
51183bc6bdbf292c7756f837673e942a502dd193
237
py
Python
torchtraps/__init__.py
winzurk/torchtraps
9a15a2f723a4cddea7efc187f84956b27eb36f2f
[ "MIT" ]
null
null
null
torchtraps/__init__.py
winzurk/torchtraps
9a15a2f723a4cddea7efc187f84956b27eb36f2f
[ "MIT" ]
3
2021-09-08T01:49:02.000Z
2022-03-12T00:21:18.000Z
torchtraps/__init__.py
winzurk/torchtraps
9a15a2f723a4cddea7efc187f84956b27eb36f2f
[ "MIT" ]
null
null
null
"""Top-level package for Torch Traps.""" __author__ = """Zac Winzurk""" __email__ = 'zwinzurk@asu.edu' __version__ = '0.1.0' # from .coco_camera_traps_loader import * # from .imagenet import imagenet_classes # from .lightning import *
23.7
41
0.725738
511bd43634ea3f540136626b6213102cf02c3ef9
7,711
py
Python
odrive/Firmware/fibre/python/fibre/utils.py
kirmani/doggo
f5aadba2a5b664f2d383bca0b35155d65363c498
[ "MIT" ]
null
null
null
odrive/Firmware/fibre/python/fibre/utils.py
kirmani/doggo
f5aadba2a5b664f2d383bca0b35155d65363c498
[ "MIT" ]
3
2020-02-26T00:07:53.000Z
2022-02-26T05:18:31.000Z
odrive/Firmware/fibre/python/fibre/utils.py
kirmani/doggo
f5aadba2a5b664f2d383bca0b35155d65363c498
[ "MIT" ]
null
null
null
import sys import time import threading import platform import subprocess import os try: if platform.system() == 'Windows': import win32console # TODO: we should win32console anyway so we could just omit colorama import colorama colorama.init() except ModuleNotFoundError: print...
33.672489
114
0.611983
51201b8f267ec7a2dece0fc4da0d42b14f47ffba
2,720
py
Python
2021/day09/main.py
ingjrs01/adventofcode
c5e4f0158dac0efc2dbfc10167f2700693b41fea
[ "Apache-2.0" ]
null
null
null
2021/day09/main.py
ingjrs01/adventofcode
c5e4f0158dac0efc2dbfc10167f2700693b41fea
[ "Apache-2.0" ]
null
null
null
2021/day09/main.py
ingjrs01/adventofcode
c5e4f0158dac0efc2dbfc10167f2700693b41fea
[ "Apache-2.0" ]
null
null
null
matrix = [] lines = open('real','r').readlines() for line in lines: row = [] l = line.strip() for i in range(len(l)): row.append(int(l[i])) matrix.append(row) positions = search_low(matrix) total = 0 for p in positions: valor = matrix[p[0]][p[1]] + 1 total += valor print(total...
30.561798
124
0.516176
51219e777435d891fa05113f0da030e18ce7d68a
4,364
py
Python
handwrite/sheettopng.py
sakshamarora1/handwrite
628c53f9fbca0bf9731e0ebc7d6c8ca2525f1b29
[ "MIT" ]
null
null
null
handwrite/sheettopng.py
sakshamarora1/handwrite
628c53f9fbca0bf9731e0ebc7d6c8ca2525f1b29
[ "MIT" ]
null
null
null
handwrite/sheettopng.py
sakshamarora1/handwrite
628c53f9fbca0bf9731e0ebc7d6c8ca2525f1b29
[ "MIT" ]
null
null
null
import os import sys import itertools import cv2 # Seq: A-Z, a-z, 0-9, SPECIAL_CHARS ALL_CHARS = list( itertools.chain( range(65, 91), range(97, 123), range(48, 58), [ord(i) for i in ".,;:!?\"'-+=/%&()[]"], ) )
36.366667
104
0.592117
5121b7e379746aac2a670977c3fda4d01dade4a4
1,261
py
Python
2021/Day 7/solution.py
theleteron/advent-of-code
45900a8c14a966e4ecbe699e6423072254d09d95
[ "MIT" ]
1
2021-12-02T18:28:28.000Z
2021-12-02T18:28:28.000Z
2021/Day 7/solution.py
theleteron/advent-of-code
45900a8c14a966e4ecbe699e6423072254d09d95
[ "MIT" ]
null
null
null
2021/Day 7/solution.py
theleteron/advent-of-code
45900a8c14a966e4ecbe699e6423072254d09d95
[ "MIT" ]
null
null
null
if __name__ == "__main__": DATA_INPUT_LOCATION = "data.in" day = Day(DATA_INPUT_LOCATION) print(day.part1()) print(day.part2())
32.333333
109
0.569389
5121cc545c9a55cdbb8d25e3c6ef3ab3548b3342
849
py
Python
dataflows/processors/deduplicate.py
cschloer/dataflows
78a683b5d202512c06021ff6be8ac7f60ef1cd9b
[ "MIT" ]
160
2018-06-13T23:16:26.000Z
2022-03-11T21:26:44.000Z
dataflows/processors/deduplicate.py
cschloer/dataflows
78a683b5d202512c06021ff6be8ac7f60ef1cd9b
[ "MIT" ]
164
2018-07-08T13:05:30.000Z
2021-09-30T08:54:59.000Z
dataflows/processors/deduplicate.py
cschloer/dataflows
78a683b5d202512c06021ff6be8ac7f60ef1cd9b
[ "MIT" ]
41
2018-08-07T08:05:30.000Z
2021-12-18T04:34:06.000Z
from dataflows import PackageWrapper, ResourceWrapper from ..helpers.resource_matcher import ResourceMatcher
26.53125
62
0.599529
512428cd6c69268176ef05fa7a8650131e018089
563
py
Python
vendor/mo_logs/log_usingNothing.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_logs/log_usingNothing.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_logs/log_usingNothing.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
# encoding: utf-8 # # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Author: Kyle Lahnakoski (kyle@lahnakoski.com) # from __future__ import absolute_import, divis...
20.107143
75
0.694494
51277cbf373e68b6520295ae14d8965cded5385d
158
py
Python
basic_system/routing.py
JagerCox/basic-project-django2-channels2-gunicorn-dahpne
5329a06d251706f6f02cf202dff04959982d8214
[ "MIT" ]
3
2019-04-08T12:51:57.000Z
2021-07-28T16:54:41.000Z
basic_system/routing.py
JagerCox/basic-project-django2-channels2-gunicorn-dahpne
5329a06d251706f6f02cf202dff04959982d8214
[ "MIT" ]
null
null
null
basic_system/routing.py
JagerCox/basic-project-django2-channels2-gunicorn-dahpne
5329a06d251706f6f02cf202dff04959982d8214
[ "MIT" ]
1
2019-04-08T12:52:00.000Z
2019-04-08T12:52:00.000Z
from django.urls import path from .consumers import ChatConsumer websocket_urlpatterns = [ path('ws/<str:room_name>/', ChatConsumer, name='consumer'), ]
22.571429
63
0.746835
5127e82ffefa06ac56296824a5c55b26831611d6
3,679
py
Python
examples/development/simulate_policy.py
iclavera/cassie
f2e253bf29fa0f872974188aed1fdfbe06efc37e
[ "MIT" ]
null
null
null
examples/development/simulate_policy.py
iclavera/cassie
f2e253bf29fa0f872974188aed1fdfbe06efc37e
[ "MIT" ]
11
2020-01-28T22:32:20.000Z
2022-03-11T23:37:57.000Z
examples/development/simulate_policy.py
iclavera/cassie
f2e253bf29fa0f872974188aed1fdfbe06efc37e
[ "MIT" ]
null
null
null
import argparse from distutils.util import strtobool import json import os import pickle import tensorflow as tf import numpy as np from softlearning.policies.utils import get_policy_from_variant from softlearning.samplers import rollouts if __name__ == '__main__': args = parse_args() simulate_policy(args)...
34.383178
109
0.589562
5128aaf3cd26118d6b07e1e07b47d69c770a4e85
79
py
Python
pathfinder/__init__.py
dsp/aa-pathfinder
1fdb43948921922d60b8b489b53b33b8ea929d31
[ "MIT" ]
null
null
null
pathfinder/__init__.py
dsp/aa-pathfinder
1fdb43948921922d60b8b489b53b33b8ea929d31
[ "MIT" ]
null
null
null
pathfinder/__init__.py
dsp/aa-pathfinder
1fdb43948921922d60b8b489b53b33b8ea929d31
[ "MIT" ]
null
null
null
default_app_config = "pathfinder.apps.PathfinderConfig" __version__ = "0.1.0"
19.75
55
0.78481
51297e9b178ac6da2a46669f12b122f74df2ecf7
415
py
Python
settings/live.py
mhfowler/abridgedmaps
d0802bd6955714d174d208bea809191bff4615b3
[ "MIT" ]
null
null
null
settings/live.py
mhfowler/abridgedmaps
d0802bd6955714d174d208bea809191bff4615b3
[ "MIT" ]
null
null
null
settings/live.py
mhfowler/abridgedmaps
d0802bd6955714d174d208bea809191bff4615b3
[ "MIT" ]
null
null
null
from settings.common import * DEBUG=True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'mydatabase', } } # Honor the 'X-Forwarded-Proto' header for request.is_secure() SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') # Allow all host headers ALLOWED_HO...
18.863636
62
0.684337
512a41bacb1cddefe094cb3758285c75286428d1
680
py
Python
labelgame/migrations/0011_auto_20170822_1902.py
capriciash/civicu_app
102a40fb771a9d9b37878da02ea66a0920006d8c
[ "MIT" ]
null
null
null
labelgame/migrations/0011_auto_20170822_1902.py
capriciash/civicu_app
102a40fb771a9d9b37878da02ea66a0920006d8c
[ "MIT" ]
null
null
null
labelgame/migrations/0011_auto_20170822_1902.py
capriciash/civicu_app
102a40fb771a9d9b37878da02ea66a0920006d8c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-23 02:02 from __future__ import unicode_literals from django.db import migrations, models
28.333333
199
0.598529
512cb58d8316e571507a93e75a64d19559f26b6b
2,762
py
Python
models/tag.py
noahkw/botw-bot
8d8c9515a177c52270093fb64abf34d111535d16
[ "MIT" ]
1
2020-11-29T23:00:27.000Z
2020-11-29T23:00:27.000Z
models/tag.py
noahkw/botw-bot
8d8c9515a177c52270093fb64abf34d111535d16
[ "MIT" ]
18
2020-08-05T11:59:31.000Z
2022-03-15T03:48:40.000Z
models/tag.py
noahkw/botw-bot
8d8c9515a177c52270093fb64abf34d111535d16
[ "MIT" ]
null
null
null
import re import discord from sqlalchemy import ( Column, String, BigInteger, Integer, Boolean, update, delete, ) from sqlalchemy.ext.hybrid import hybrid_property from models.base import Base, PendulumDateTime from util import safe_mention IMAGE_URL_REGEX = r"https?:\/\/.*\.(jpe?g|png|gi...
30.351648
85
0.633599
512d55659640ebb6a556347baa4a333ef9d98192
1,478
py
Python
tests/highlevel/highlink-schema-tf.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
15
2017-06-07T12:49:12.000Z
2020-07-25T18:06:04.000Z
tests/highlevel/highlink-schema-tf.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
110
2016-06-21T23:20:44.000Z
2022-02-24T16:15:22.000Z
tests/highlevel/highlink-schema-tf.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
6
2016-06-21T11:19:22.000Z
2019-01-21T13:45:39.000Z
from seamless.highlevel import Context, Cell, Transformer ctx = Context() ctx.v = lambda a: 42 ctx.v.a = "test" ctx.v_schema = Cell() ctx.v_schema.celltype = "plain" ctx.translate() ctx.link(ctx.v.schema, ctx.v_schema) ctx.translate() ctx.v_schema.set({'type': 'object', 'properties': {'a': {'type': 'integer'}}}) ctx.c...
28.423077
78
0.691475
512e099f596e3955243cf492631352af559a94af
246
wsgi
Python
pastr.wsgi
hossainalhaidari/pastr
49417cbe6ef64c763cda41ada6d42ef8d643d081
[ "MIT" ]
3
2019-01-16T14:01:20.000Z
2019-09-29T14:16:26.000Z
pastr.wsgi
hossainalhaidari/pastr
49417cbe6ef64c763cda41ada6d42ef8d643d081
[ "MIT" ]
null
null
null
pastr.wsgi
hossainalhaidari/pastr
49417cbe6ef64c763cda41ada6d42ef8d643d081
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os from dotenv import load_dotenv load_dotenv() sys.path.insert(0, os.getenv('PASTR_PATH', 'App Path')) from pastr import app as application application.secret_key = os.getenv('SECRET_KEY', 'Secret Key')
24.6
62
0.768293
512ea83053328520e513cb86e1b1a689945a30dc
1,174
py
Python
check_data_integrity/fix/fixer/fixer.py
mpmuc84/helper-scripts
573353827d94f65efe763a93770ba75bcda90fff
[ "BSD-2-Clause" ]
4
2018-10-11T09:48:39.000Z
2019-11-12T06:17:17.000Z
check_data_integrity/fix/fixer/fixer.py
mpmuc84/helper-scripts
573353827d94f65efe763a93770ba75bcda90fff
[ "BSD-2-Clause" ]
26
2017-11-10T15:46:03.000Z
2021-08-13T12:02:27.000Z
check_data_integrity/fix/fixer/fixer.py
mpmuc84/helper-scripts
573353827d94f65efe763a93770ba75bcda90fff
[ "BSD-2-Clause" ]
21
2017-10-12T11:47:37.000Z
2021-05-05T13:07:59.000Z
from abc import ABCMeta, abstractmethod
26.088889
101
0.636286
5130a25d5ed3634e87ef47dcbe79178f60a2783b
4,454
py
Python
Desktop-App/UI-Based App/Result_MLP.py
EddieKaleb/CricAI
2ce714c7dfe1495b9f579d87490ab40914670f02
[ "MIT" ]
9
2018-09-25T06:19:52.000Z
2021-10-06T11:06:01.000Z
Desktop-App/UI-Based App/Result_MLP.py
govind-bisht03/CricAI
fa497197627ec769d9a9be6c9f1ddeab3c826f7e
[ "MIT" ]
21
2017-11-23T19:44:29.000Z
2020-10-17T11:26:46.000Z
Desktop-App/UI-Based App/Result_MLP.py
govind-bisht03/CricAI
fa497197627ec769d9a9be6c9f1ddeab3c826f7e
[ "MIT" ]
29
2017-12-11T10:24:22.000Z
2020-10-16T13:04:13.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Result_MLP.ui' # # Created by: PyQt5 UI code generator 5.5.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets import CricAI_rc if __name__ == "__main__": import sys app = QtWidget...
44.989899
150
0.691513
51311102d9e729c7834446c830b3c543962cbf40
5,283
py
Python
xray/train.py
kibernetika-ai/image_captioning
e0248758d293d7dabc0cfdbed4568de06a20d048
[ "MIT" ]
null
null
null
xray/train.py
kibernetika-ai/image_captioning
e0248758d293d7dabc0cfdbed4568de06a20d048
[ "MIT" ]
null
null
null
xray/train.py
kibernetika-ai/image_captioning
e0248758d293d7dabc0cfdbed4568de06a20d048
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import argparse import os import shutil import matplotlib.pyplot as plt import numpy as np from PIL import Image import tensorflow as tf from xray import model slim = tf.contrib.slim tf.logging.set_verbosity(tf.logging.INFO) log = tf.logging # cap...
33.226415
113
0.658906
5133c8da0c788e7f385523bfdad1962d8bd3df18
280
py
Python
testCreateDb.py
chaya7282/flask-shop-master
9d1aedd6e39d4cac2b3c5585257415eee2558b71
[ "BSD-3-Clause" ]
1
2021-08-17T08:14:47.000Z
2021-08-17T08:14:47.000Z
testCreateDb.py
chaya7282/flask-shop-master
9d1aedd6e39d4cac2b3c5585257415eee2558b71
[ "BSD-3-Clause" ]
null
null
null
testCreateDb.py
chaya7282/flask-shop-master
9d1aedd6e39d4cac2b3c5585257415eee2558b71
[ "BSD-3-Clause" ]
1
2021-08-17T08:14:48.000Z
2021-08-17T08:14:48.000Z
# -*- coding: utf-8 -*- """Click commands.""" from flask_script import Manager from flaskshop import random_data import flaskshop import flaskshop.commands as commands app= flaskshop.create_app() manager = Manager(app) if __name__ == "__main__": manager.run() manager.se
21.538462
37
0.735714
513455e1e49a2cc7f2af7ad92dbc3662b0e294bf
761
py
Python
day-4.py
shadowfool/advent-of-code-2017
9f2312c2cef9891c3bdb7c970eccc4eb48f714df
[ "MIT" ]
null
null
null
day-4.py
shadowfool/advent-of-code-2017
9f2312c2cef9891c3bdb7c970eccc4eb48f714df
[ "MIT" ]
null
null
null
day-4.py
shadowfool/advent-of-code-2017
9f2312c2cef9891c3bdb7c970eccc4eb48f714df
[ "MIT" ]
null
null
null
input = [line.rstrip() for line in open('./inputs/day4.txt')] badWords = 0 for line in input: dictionary = {} words = line.split(' ') for word in words: print(words) if word in dictionary: badWords = badWords + 1 break dictionary[ word ] = 1 print(len(input) - badWords) # ---- CHAL...
21.742857
82
0.599212
513b7781461e774c4edea5cc00a442a4bd33ae7d
51
py
Python
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
from gym_voilier.envs.voilier_env import VoilierEnv
51
51
0.901961
513c933b5d0724d79a4413fb53c8512d831f68a7
7,464
py
Python
prd_score_classifier.py
DrLSimon/precision-recall-distributions-icml19
364188eaa26ac1bf39ebf038136c79aeee97da3a
[ "Apache-2.0" ]
null
null
null
prd_score_classifier.py
DrLSimon/precision-recall-distributions-icml19
364188eaa26ac1bf39ebf038136c79aeee97da3a
[ "Apache-2.0" ]
null
null
null
prd_score_classifier.py
DrLSimon/precision-recall-distributions-icml19
364188eaa26ac1bf39ebf038136c79aeee97da3a
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.backends.cudnn as cudnn import torch.optim as optim from prdataset import * from torch.utils.data import DataLoader from torchvision import transforms import tqdm from models import * from inception_torch import InceptionV3 cuda = torch.cuda.is_availab...
36.950495
143
0.624732
5141a9a0670c91a2b930b40b597fedf7c7054b49
8,906
py
Python
lambdaproject/settings/base.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
6
2015-04-05T01:28:23.000Z
2022-02-06T17:29:47.000Z
lambdaproject/settings/base.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
2
2022-01-05T23:07:10.000Z
2022-03-30T17:52:45.000Z
lambdaproject/settings/base.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
2
2022-02-06T17:29:53.000Z
2022-02-26T17:23:09.000Z
import os # Path to your LambdaCast instance (no / behind the path) try: from local import ABSOLUTE_PATH except ImportError: ABSOLUTE_PATH = os.path.dirname(os.path.abspath(__file__)) + "/../.." # Domain your instance should use, for example: 'http://example.com' (no / behind the path) try: from local imp...
33.355805
126
0.717045
514411ea3d0032d20f78be6935784f8081b90d34
2,072
py
Python
sentiment_classifier/process.py
dang-trung/stocktwits-sentiment-classifier
5b6a75abce3a6b701da81f616a0e5b63e9c0dba6
[ "MIT" ]
null
null
null
sentiment_classifier/process.py
dang-trung/stocktwits-sentiment-classifier
5b6a75abce3a6b701da81f616a0e5b63e9c0dba6
[ "MIT" ]
1
2020-11-18T19:15:50.000Z
2020-11-24T02:21:33.000Z
sentiment_classifier/process.py
dang-trung/stocktwits-sentiment-classifier
5b6a75abce3a6b701da81f616a0e5b63e9c0dba6
[ "MIT" ]
null
null
null
"""Text Pre-processing. This module process text messages based on Chen et al. (2019). Added some steps (such as escaping HTML symbols, or having a more detailed list of stop and negative words). """ import html import re import string import pandas as pd # Repeated chars more than 3 times repeat_regex = r'(\w)\1{2...
29.183099
79
0.642857
514491bebe24982f7e39bca4c4425c0e236edb60
2,062
py
Python
fredo/editor/brush_dialog.py
yasiupl/FreDo
73bdc380dd82df171fe63998f0affa092e30759a
[ "BSD-3-Clause" ]
6
2015-08-21T08:43:25.000Z
2021-12-29T16:16:59.000Z
fredo/editor/brush_dialog.py
yasiupl/FreDo
73bdc380dd82df171fe63998f0affa092e30759a
[ "BSD-3-Clause" ]
2
2019-03-25T10:16:18.000Z
2022-01-11T19:14:01.000Z
fredo/editor/brush_dialog.py
yasiupl/FreDo
73bdc380dd82df171fe63998f0affa092e30759a
[ "BSD-3-Clause" ]
2
2020-10-29T06:15:03.000Z
2021-12-29T16:42:28.000Z
from PySide.QtGui import QDialog from ..gui.brush_dialog import Ui_BrushDialog from PySide.QtGui import QPixmap from PySide.QtCore import Qt from ..brushes import SquareBrush import math
34.366667
79
0.679922
5144c4d72df0f27c405d9c186efa2f5400ee41ce
332
py
Python
Tarea1b_SpaceWars/hitmarker.py
salistito/Computer-Graphics
f56b453609bbe8496f504f438770fde992af68fe
[ "MIT" ]
null
null
null
Tarea1b_SpaceWars/hitmarker.py
salistito/Computer-Graphics
f56b453609bbe8496f504f438770fde992af68fe
[ "MIT" ]
null
null
null
Tarea1b_SpaceWars/hitmarker.py
salistito/Computer-Graphics
f56b453609bbe8496f504f438770fde992af68fe
[ "MIT" ]
null
null
null
""" Sebastin Salinas, CC3501, 6/05/20 Tarea1b """ # Importamos algunos modulos import math # Funcin para evaluar la colisin entre 2 objetos
25.538462
77
0.665663
51457008bd685f3f5dea47108bc2573ac5535321
1,510
py
Python
src/lib/osta.py
anroots/osta-exporter
14b05bb905b9df59f9e62e72b33c64a890eb973b
[ "Apache-2.0" ]
null
null
null
src/lib/osta.py
anroots/osta-exporter
14b05bb905b9df59f9e62e72b33c64a890eb973b
[ "Apache-2.0" ]
null
null
null
src/lib/osta.py
anroots/osta-exporter
14b05bb905b9df59f9e62e72b33c64a890eb973b
[ "Apache-2.0" ]
null
null
null
from json import JSONDecodeError import requests import sys
32.826087
141
0.609272
5146d58c84bb7104d16ee9a9d1a76b8231e89082
224
py
Python
nyaggle/experiment/__init__.py
harupy/nyaggle
132a93079e364d60b5598de77ab636a603ec06a4
[ "MIT" ]
null
null
null
nyaggle/experiment/__init__.py
harupy/nyaggle
132a93079e364d60b5598de77ab636a603ec06a4
[ "MIT" ]
null
null
null
nyaggle/experiment/__init__.py
harupy/nyaggle
132a93079e364d60b5598de77ab636a603ec06a4
[ "MIT" ]
null
null
null
from nyaggle.experiment.experiment import Experiment, add_leaderboard_score from nyaggle.experiment.averaging import average_results from nyaggle.experiment.run import autoprep_gbdt, run_experiment, find_best_lgbm_parameter
56
90
0.892857
5146da738f04b9b9d8f97c34d071f17da9198bde
794
py
Python
configs/fdf/deep_privacy_v1.py
skoskjei/DP-ATT
eb7380099f5c7e533fd0d247456b4a418529d62b
[ "MIT" ]
1,128
2019-09-11T01:38:09.000Z
2022-03-31T17:06:56.000Z
configs/fdf/deep_privacy_v1.py
skoskjei/DP-ATT
eb7380099f5c7e533fd0d247456b4a418529d62b
[ "MIT" ]
45
2019-09-11T05:39:53.000Z
2021-12-05T17:52:07.000Z
configs/fdf/deep_privacy_v1.py
skoskjei/DP-ATT
eb7380099f5c7e533fd0d247456b4a418529d62b
[ "MIT" ]
185
2019-09-11T02:15:56.000Z
2022-03-23T16:12:41.000Z
_base_config_ = "base.py" model_size = 512 model_url = "http://folk.ntnu.no/haakohu/checkpoints/step_42000000.ckpt" models = dict( scalar_pose_input=False, max_imsize=128, conv_size={ 4: model_size, 8: model_size, 16: model_size, 32: model_size, 64: model_size//2,...
18.465116
72
0.540302
514737538b6050cbe92637918e942f1823b10292
1,699
py
Python
server/weather/RestWeatherProvider.py
EveryOtherUsernameWasAlreadyTaken/BIS
e132ce42dcc74e634231398dfecb08834d478cba
[ "MIT" ]
3
2019-07-09T08:51:20.000Z
2019-09-16T17:27:54.000Z
server/weather/RestWeatherProvider.py
thomasw-mitutoyo-ctl/BIS
08525cc12164902dfe968ae41beb6de0cd5bc411
[ "MIT" ]
24
2019-06-17T12:33:35.000Z
2020-03-27T08:17:35.000Z
server/weather/RestWeatherProvider.py
EveryOtherUsernameWasAlreadyTaken/BIS
e132ce42dcc74e634231398dfecb08834d478cba
[ "MIT" ]
1
2020-03-24T17:54:07.000Z
2020-03-24T17:54:07.000Z
import json import logging import threading from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer log = logging.getLogger(__name__)
30.339286
114
0.669806
5147aa629fe9091066db83d5ac4d5067803255bc
359
py
Python
src/dev.py
Inigoperez/Proyecto_Interfaces
4a2b98cd499fabf3789301e9eb488297bebfcf2a
[ "MIT" ]
null
null
null
src/dev.py
Inigoperez/Proyecto_Interfaces
4a2b98cd499fabf3789301e9eb488297bebfcf2a
[ "MIT" ]
null
null
null
src/dev.py
Inigoperez/Proyecto_Interfaces
4a2b98cd499fabf3789301e9eb488297bebfcf2a
[ "MIT" ]
null
null
null
if __name__ == '__main__': from dotenv import load_dotenv load_dotenv() from config import StageConfig from util import route from util.commands import commands else: from .config import StageConfig from .util import route from .util.commands import commands app = route(config=StageCo...
22.4375
46
0.732591
51493c53717606761bb6b13240fa86406df2fac3
985
py
Python
cms/tests.py
royaleagle-dev/djangoblog
624a17972772d54fc44d5a480fe42011c9b272fa
[ "Apache-2.0" ]
null
null
null
cms/tests.py
royaleagle-dev/djangoblog
624a17972772d54fc44d5a480fe42011c9b272fa
[ "Apache-2.0" ]
null
null
null
cms/tests.py
royaleagle-dev/djangoblog
624a17972772d54fc44d5a480fe42011c9b272fa
[ "Apache-2.0" ]
null
null
null
from django.test import TestCase from . models import Post, Tag, Category
29.848485
119
0.73401
514976db1636eff4f1c2e435911894cc18620e2c
1,531
py
Python
test/test_solver.py
akiFQC/pyqubo
6a8033365562756328577eda42e255853e760488
[ "Apache-2.0" ]
1
2019-03-17T11:26:36.000Z
2019-03-17T11:26:36.000Z
test/test_solver.py
akiFQC/pyqubo
6a8033365562756328577eda42e255853e760488
[ "Apache-2.0" ]
null
null
null
test/test_solver.py
akiFQC/pyqubo
6a8033365562756328577eda42e255853e760488
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Recruit Communications Co., Ltd. # # 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...
36.452381
98
0.665578
514a79000a503d03dd773bda6a965fb3b20a7db7
737
py
Python
solution/viz/clean_words.py
GabrielMissael/solution
aff33732d04efedb60c1ebc70fd5108ae5cc558e
[ "MIT" ]
null
null
null
solution/viz/clean_words.py
GabrielMissael/solution
aff33732d04efedb60c1ebc70fd5108ae5cc558e
[ "MIT" ]
null
null
null
solution/viz/clean_words.py
GabrielMissael/solution
aff33732d04efedb60c1ebc70fd5108ae5cc558e
[ "MIT" ]
null
null
null
import re import unicodedata import nltk from nltk.corpus import stopwords import pandas as pd def clean_words(text_DataFrame:pd.DataFrame): """ A simple function to clean up the data. All the words that are not designated as a stop word is then lemmatized after encoding and basic regex parsing are per...
33.5
75
0.683853
514a92812de5f63e1e53a1ba432f40d277ebdbba
780
py
Python
imagemodel/common/predictor.py
tenkeyless/imagemodel
360c672117b5ccb1bfb3d6771b0720fa1a1f513c
[ "MIT" ]
null
null
null
imagemodel/common/predictor.py
tenkeyless/imagemodel
360c672117b5ccb1bfb3d6771b0720fa1a1f513c
[ "MIT" ]
null
null
null
imagemodel/common/predictor.py
tenkeyless/imagemodel
360c672117b5ccb1bfb3d6771b0720fa1a1f513c
[ "MIT" ]
null
null
null
from typing import Optional import tensorflow as tf from tensorflow.keras.models import Model from tensorflow.python.distribute.tpu_strategy import TPUStrategy
32.5
75
0.694872
514b2ccf532fafc08943123f355c409988b89713
6,778
py
Python
reporter.py
Danielto1404/ssat-msp-make-transfer
36731ab79ba517d6c66516054ebd6179674a953e
[ "MIT" ]
null
null
null
reporter.py
Danielto1404/ssat-msp-make-transfer
36731ab79ba517d6c66516054ebd6179674a953e
[ "MIT" ]
null
null
null
reporter.py
Danielto1404/ssat-msp-make-transfer
36731ab79ba517d6c66516054ebd6179674a953e
[ "MIT" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
43.729032
121
0.627176