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
cf73e7f195ff23cb66846fa6c6da7d28660538de
20,029
py
Python
scripts/parser/oldslavdep.py
npedrazzini/jPTDPEarlySlavic
de9d3fa720fb86acadafc923d85473ae3371903f
[ "MIT" ]
6
2021-08-20T20:00:31.000Z
2022-01-03T15:43:50.000Z
scripts/parser/oldslavdep.py
npedrazzini/jPTDPEarlySlavic
de9d3fa720fb86acadafc923d85473ae3371903f
[ "MIT" ]
1
2021-07-30T13:07:36.000Z
2021-07-30T13:07:36.000Z
scripts/parser/oldslavdep.py
npedrazzini/jPTDPEarlySlavic
de9d3fa720fb86acadafc923d85473ae3371903f
[ "MIT" ]
1
2021-01-23T20:00:25.000Z
2021-01-23T20:00:25.000Z
# coding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals from builtins import str from io import open from dynet import * import dynet from utils import read_conll, read_conll_predict, write_conll, load_embeddings_file from operator import itemgetter import utils, time, random...
48.379227
127
0.567277
cf74741b8ea29334e97b4fd26bf8a8d8ea156e23
18,806
py
Python
tests/data/ec2_offer.py
andrewmcgilvray/awspricing
fd37598dbdb08545db03c99492ce01f7290ab6f5
[ "Apache-2.0" ]
null
null
null
tests/data/ec2_offer.py
andrewmcgilvray/awspricing
fd37598dbdb08545db03c99492ce01f7290ab6f5
[ "Apache-2.0" ]
null
null
null
tests/data/ec2_offer.py
andrewmcgilvray/awspricing
fd37598dbdb08545db03c99492ce01f7290ab6f5
[ "Apache-2.0" ]
null
null
null
BASIC_EC2_OFFER_SKU = '4C7N4APU9GEUZ6H6' BASIC_EC2_OFFER_MODIFIED_FORMAT = { 'offerCode': 'AmazonEC2', 'version': '20161213014831', 'products': { '4C7N4APU9GEUZ6H6' : { 'sku' : '4C7N4APU9GEUZ6H6', 'productFamily' : 'Compute Instance', 'attributes' : { ...
44.458629
111
0.37823
cf7897f04a99a685cf752ce25bde96a1bd963ec7
183
py
Python
dist/micropy-cli/frozen/uasyncio/funcs.py
kevindawson/Pico-Stub
6f9112779d4d81f821a3af273a450b9329ccdbab
[ "Apache-2.0" ]
19
2021-01-25T23:56:09.000Z
2022-02-21T13:55:16.000Z
dist/micropy-cli/frozen/uasyncio/funcs.py
kevindawson/Pico-Stub
6f9112779d4d81f821a3af273a450b9329ccdbab
[ "Apache-2.0" ]
18
2021-02-06T09:03:09.000Z
2021-10-04T16:36:35.000Z
dist/micropy-cli/frozen/uasyncio/funcs.py
kevindawson/Pico-Stub
6f9112779d4d81f821a3af273a450b9329ccdbab
[ "Apache-2.0" ]
6
2021-01-26T08:41:47.000Z
2021-04-27T11:33:33.000Z
from typing import Any # 0: return wait_for(aw,timeout,core.sleep_ms) # ? 0: return wait_for(aw, timeout, core.sleep_ms)
30.5
54
0.672131
cf7bf89fc30751bcda78ce1d1f53a0da0361b74d
1,509
py
Python
dashdaemon/keys.py
rGunti/CarPi-DashDaemon
b8b340d35125b6f7fe5bb9647760d37301b07cac
[ "MIT" ]
null
null
null
dashdaemon/keys.py
rGunti/CarPi-DashDaemon
b8b340d35125b6f7fe5bb9647760d37301b07cac
[ "MIT" ]
null
null
null
dashdaemon/keys.py
rGunti/CarPi-DashDaemon
b8b340d35125b6f7fe5bb9647760d37301b07cac
[ "MIT" ]
null
null
null
""" CARPI DASH DAEMON (C) 2018, Raphael "rGunti" Guntersweiler Licensed under MIT """ from redisdatabus.bus import TypedBusListener as Types import gpsdaemon.keys as gpskeys import obddaemon.keys as obdkeys SETTINGS_KEY_BASE = 'carpi.settings.' DASH_KEY_BASE = 'carpi.dashboard.' CONFIG_KEYS = { 'engine_vol': ...
30.795918
92
0.743539
cf7e16d1f4e90c037eb66831eeffade73df69683
261
py
Python
imdb_movie_review_sentiment_prediction/training_and_evaluation.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
imdb_movie_review_sentiment_prediction/training_and_evaluation.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
imdb_movie_review_sentiment_prediction/training_and_evaluation.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
model.compile( optimizer='rmsprop', loss='binary_crossentropy', metrics=['acc'] ) history = model.fit( x_train, y_train, epochs=10, batch_size=32, validation_data=(x_val, y_val) ) model.save_weights('pre_trained_glove_model.h5')
18.642857
48
0.678161
cf7e800c7c1a59352899d5b0f4d9c283b3e91edb
1,010
py
Python
launches.py
zweed4u/launchesEND
fd016478c6f757e323009611d6b83ea42fbf8116
[ "MIT" ]
5
2017-12-05T04:00:22.000Z
2020-12-16T20:44:46.000Z
launches.py
zweed4u/launchesEND
fd016478c6f757e323009611d6b83ea42fbf8116
[ "MIT" ]
null
null
null
launches.py
zweed4u/launchesEND
fd016478c6f757e323009611d6b83ea42fbf8116
[ "MIT" ]
null
null
null
#!/usr/bin/env python #Hmmm... http://www.endclothing.com/media/us_sitemap.xml import urllib2, zlib, json url='https://launches.endclothing.com/api/products' req = urllib2.Request(url) req.add_header(':host','launches.endclothing.com');req.add_header(':method','GET');req.add_header(':path','/api/products');req.add_hea...
67.333333
598
0.723762
cf815298accec6c14c7afef44e976c7b6069c135
73
py
Python
scalabel/tools/__init__.py
cwlroda/scalabel
296b7f3050ec0d02b4578d9d1f174ffd22aee3fb
[ "Apache-2.0" ]
279
2019-11-18T01:48:39.000Z
2022-03-30T00:16:43.000Z
scalabel/tools/__init__.py
cwlroda/scalabel
296b7f3050ec0d02b4578d9d1f174ffd22aee3fb
[ "Apache-2.0" ]
141
2019-11-20T02:36:11.000Z
2022-03-29T15:17:46.000Z
scalabel/tools/__init__.py
cwlroda/scalabel
296b7f3050ec0d02b4578d9d1f174ffd22aee3fb
[ "Apache-2.0" ]
85
2019-11-18T06:10:12.000Z
2022-03-27T12:32:55.000Z
"""Tools for using scalabel.""" from . import edit_labels, prepare_data
18.25
39
0.739726
cf831543b480d5861c0d351648dc6dd8a55ea5de
460
py
Python
python/controls/choicegroup/choicegroup_with_change_event.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
python/controls/choicegroup/choicegroup_with_change_event.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
python/controls/choicegroup/choicegroup_with_change_event.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
import pglet from pglet import ChoiceGroup, choicegroup, Text with pglet.page("choicegroup-with-change-event") as page: cg = ChoiceGroup(label='Select color', on_change=choicegroup_changed, options=[ choicegroup.Option('Red'), choicegroup.Option('Green'), choicegroup.Option('Blue') ]) t = Text() ...
24.210526
81
0.680435
cf84fe1671965d8bf607c4db0b1fce05cc370700
910
py
Python
raspberrypi/sound1.py
Shadowsith/python
b8878c822e55528e663de16bd1029d330862c8dc
[ "MIT" ]
null
null
null
raspberrypi/sound1.py
Shadowsith/python
b8878c822e55528e663de16bd1029d330862c8dc
[ "MIT" ]
null
null
null
raspberrypi/sound1.py
Shadowsith/python
b8878c822e55528e663de16bd1029d330862c8dc
[ "MIT" ]
1
2020-05-19T11:32:25.000Z
2020-05-19T11:32:25.000Z
#!/usr/bin/python #Doppelklatschen import time gpioPort = 40 import RPi.GPIO as GPIO import mysql.connector #MySQL Verbindung statement = "UPDATE Flags SET wert=0 WHERE name='bewegung';" #GPIO Layout verwenden GPIO.setmode(GPIO.BOARD) GPIO.setup(gpioPort, GPIO.IN) lastSound = 0 while 1: if GPIO.input(gpioP...
23.947368
103
0.631868
cf85325b7b5d658e0a68da64304ce7b4f2588e9a
7,466
py
Python
apted/all_possible_mappings_ted.py
JoaoFelipe/apted
828b3e3f4c053f7d35f0b55b0d5597e8041719ac
[ "MIT" ]
52
2017-11-14T06:45:45.000Z
2022-03-01T01:14:45.000Z
apted/all_possible_mappings_ted.py
JoaoFelipe/apted
828b3e3f4c053f7d35f0b55b0d5597e8041719ac
[ "MIT" ]
7
2018-11-21T17:21:14.000Z
2021-09-04T09:23:53.000Z
apted/all_possible_mappings_ted.py
JoaoFelipe/apted
828b3e3f4c053f7d35f0b55b0d5597e8041719ac
[ "MIT" ]
7
2017-12-17T16:49:45.000Z
2020-07-16T18:49:44.000Z
# # The MIT License # # Copyright 2017 Joao Felipe Pimentel # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modif...
42.420455
80
0.583311
cf89cd77b7a7a86eb1c509ae0d28c2801e9db09a
9,359
py
Python
util/dynamic_signal_lights.py
ashwxn/Intelligent-Traffic-Management-System-Using-ML-YOLO
cc111d9895efc19f052656f7d140c6895458a819
[ "CC0-1.0" ]
1
2021-03-11T06:58:31.000Z
2021-03-11T06:58:31.000Z
util/dynamic_signal_lights.py
ashwxn/Intelligent-Traffic-Management-System-Using-ML-YOLO
cc111d9895efc19f052656f7d140c6895458a819
[ "CC0-1.0" ]
null
null
null
util/dynamic_signal_lights.py
ashwxn/Intelligent-Traffic-Management-System-Using-ML-YOLO
cc111d9895efc19f052656f7d140c6895458a819
[ "CC0-1.0" ]
null
null
null
import time import emoji
69.843284
221
0.398761
cf8a7c68901bef8af36175c6396dc707d25c27e2
4,429
py
Python
Antics/AI/AIPlayer.py
sundercode/AI-Homework
423f703685852313bc127338f9cf6b4e862b898e
[ "MIT" ]
null
null
null
Antics/AI/AIPlayer.py
sundercode/AI-Homework
423f703685852313bc127338f9cf6b4e862b898e
[ "MIT" ]
null
null
null
Antics/AI/AIPlayer.py
sundercode/AI-Homework
423f703685852313bc127338f9cf6b4e862b898e
[ "MIT" ]
null
null
null
import random import sys sys.path.append("..") #so other modules can be found in parent dir from Player import * from Constants import * from Construction import CONSTR_STATS from Ant import UNIT_STATS from Move import Move from GameState import * from AIPlayerUtils import * ## #AIPlayer #Description: The responsbili...
37.533898
105
0.589298
d83daa61f951ded7d9855286838edef9a66c37b5
170
py
Python
AIZU_ONLINE_JUDGE/0007.py
vox256/Codes
c408ef0fbc25af46dacef93b3496985feb98dd5c
[ "MIT" ]
null
null
null
AIZU_ONLINE_JUDGE/0007.py
vox256/Codes
c408ef0fbc25af46dacef93b3496985feb98dd5c
[ "MIT" ]
null
null
null
AIZU_ONLINE_JUDGE/0007.py
vox256/Codes
c408ef0fbc25af46dacef93b3496985feb98dd5c
[ "MIT" ]
null
null
null
n = int(input()) debt = 100000 for i in range (n): debt *= 1.05 if debt % 1000 != 0: debt -= debt % 1000 debt += 1000 print (int(debt))
17
28
0.476471
d8415d3e67ce2c47d7251854165bcf91208abf86
22,718
py
Python
pysnptools/util/mapreduce1/runner/hpc.py
fastlmm/PySnpTools
ce2ecaa5548e82b64c8ed6a205dbf419701b66b6
[ "Apache-2.0" ]
13
2019-12-23T06:51:08.000Z
2022-01-07T18:14:55.000Z
pysnptools/util/mapreduce1/runner/hpc.py
fastlmm/PySnpTools
ce2ecaa5548e82b64c8ed6a205dbf419701b66b6
[ "Apache-2.0" ]
3
2020-07-30T16:07:43.000Z
2021-07-14T09:00:42.000Z
pysnptools/util/mapreduce1/runner/hpc.py
fastlmm/PySnpTools
ce2ecaa5548e82b64c8ed6a205dbf419701b66b6
[ "Apache-2.0" ]
3
2020-05-22T09:46:16.000Z
2021-01-26T13:27:36.000Z
from pysnptools.util.mapreduce1.runner import * import os import subprocess, sys, os.path import multiprocessing import pysnptools.util as pstutil import pdb import logging try: import dill as pickle except: logging.warning("Can't import dill, so won't be able to clusterize lambda expressions. If you try, you'...
52.832558
265
0.61832
d8424bf36382d1072f3fbfbb2e4fabd3526822c8
496
py
Python
tests/formatters_test.py
MiraGeoscience/mirageoscience-apps
8c445ec8f2391349aa4cac6c705426301b3c31ca
[ "MIT" ]
1
2022-02-18T16:28:22.000Z
2022-02-18T16:28:22.000Z
tests/formatters_test.py
nwilliams-kobold/geoapps
eb972321316a33628d8ae04613cc403a27d942ee
[ "MIT" ]
null
null
null
tests/formatters_test.py
nwilliams-kobold/geoapps
eb972321316a33628d8ae04613cc403a27d942ee
[ "MIT" ]
null
null
null
# Copyright (c) 2022 Mira Geoscience Ltd. # # This file is part of geoapps. # # geoapps is distributed under the terms and conditions of the MIT License # (see LICENSE file at the root of this source code package). import pytest from geoapps.utils.formatters import string_name
23.619048
75
0.681452
d84405eb47cc619295c6637f42822db41956a203
10,213
py
Python
15_observation_fixed_direction.py
kuntzer/SALSA-public
79fd601d3999ac977bbc97be010b2c4ef81e4c35
[ "BSD-3-Clause" ]
1
2021-07-30T09:59:41.000Z
2021-07-30T09:59:41.000Z
15_observation_fixed_direction.py
kuntzer/SALSA-public
79fd601d3999ac977bbc97be010b2c4ef81e4c35
[ "BSD-3-Clause" ]
null
null
null
15_observation_fixed_direction.py
kuntzer/SALSA-public
79fd601d3999ac977bbc97be010b2c4ef81e4c35
[ "BSD-3-Clause" ]
1
2021-07-30T10:38:54.000Z
2021-07-30T10:38:54.000Z
''' 15-observation_fixed_direction =============================================== AIM: Similar to 14-<...>.py, but for only one traget. INPUT: files: - <orbit_id>_misc/orbits.dat - <orbit_id>_flux/flux_*.dat variables: see section PARAMETERS (below) OUTPUT: in <orbit_id>_figures/ : (see below for file name defin...
27.380697
117
0.675218
d8455d466c10af2e80eabb1b98ebf27274580915
5,992
py
Python
midonet/neutron/services/l2gateway/plugin.py
NeCTAR-RC/networking-midonet
7a69af3eab25f57e77738fd8398b6f4854346fd9
[ "Apache-2.0" ]
null
null
null
midonet/neutron/services/l2gateway/plugin.py
NeCTAR-RC/networking-midonet
7a69af3eab25f57e77738fd8398b6f4854346fd9
[ "Apache-2.0" ]
null
null
null
midonet/neutron/services/l2gateway/plugin.py
NeCTAR-RC/networking-midonet
7a69af3eab25f57e77738fd8398b6f4854346fd9
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015 Midokura SARL # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
47.555556
79
0.691255
d8465626d2247b15a81fc86df366ab13b3a32e07
1,706
py
Python
QueroInternetWeb/main/migrations/0008_auto_20190507_2146.py
quero-internet/quero-internet-web
95f1763ecb587dcb6d09c0cd3c15c29f837ced90
[ "MIT" ]
null
null
null
QueroInternetWeb/main/migrations/0008_auto_20190507_2146.py
quero-internet/quero-internet-web
95f1763ecb587dcb6d09c0cd3c15c29f837ced90
[ "MIT" ]
2
2019-08-06T01:04:37.000Z
2019-08-27T00:26:32.000Z
QueroInternetWeb/main/migrations/0008_auto_20190507_2146.py
quero-internet/quero-internet-web
95f1763ecb587dcb6d09c0cd3c15c29f837ced90
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-05-08 01:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
37.911111
140
0.616647
d848f8dd8085e1bf86cb047117735a5685ffbd13
1,781
py
Python
setup.py
mcrowson/wunderpy2
a3a959d1a3569ccb0869adba10e671978609a697
[ "MIT" ]
null
null
null
setup.py
mcrowson/wunderpy2
a3a959d1a3569ccb0869adba10e671978609a697
[ "MIT" ]
null
null
null
setup.py
mcrowson/wunderpy2
a3a959d1a3569ccb0869adba10e671978609a697
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open import os.path import sys script_dir = os.path.abspath(os.path.dirname(__file__)) def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() # argparse i...
36.346939
95
0.632229
d8491385a7cb1fe2a3fcabf28f8d930e00a5e6f3
612
py
Python
mpos/web/manager.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
null
null
null
mpos/web/manager.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
null
null
null
mpos/web/manager.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
1
2019-04-24T06:11:47.000Z
2019-04-24T06:11:47.000Z
# Set the path import os import sys from flask_script import Manager, Server sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from web import app manager = Manager(app) # Turn on debugger by default and reloader manager.add_command("run", Server( use_debugger=True, use_reloade...
19.741935
79
0.691176
d849ad31053906c063fe54eb88c77659c721172b
288
py
Python
polish_case_trainer/word/word_bag.py
davidhelbig/casetrainer-api
e420070960996302e8cf4ee370f4cf844222ed98
[ "MIT" ]
5
2018-01-30T22:10:40.000Z
2020-09-22T10:43:57.000Z
polish_case_trainer/word/word_bag.py
davidhelbig/casetrainer-api
e420070960996302e8cf4ee370f4cf844222ed98
[ "MIT" ]
3
2017-05-02T21:42:10.000Z
2019-07-19T09:41:07.000Z
polish_case_trainer/word/word_bag.py
davidhelbig/casetrainer-api
e420070960996302e8cf4ee370f4cf844222ed98
[ "MIT" ]
4
2017-05-01T22:44:57.000Z
2020-09-21T23:34:01.000Z
import random
22.153846
62
0.670139
d84b963aacb5fb2dab3e77cf74727cfedec95c03
323
py
Python
setup.py
khsk/Python-App-Capture
a0b893765558f144399ec31f1f11fb0b30025cc7
[ "MIT" ]
null
null
null
setup.py
khsk/Python-App-Capture
a0b893765558f144399ec31f1f11fb0b30025cc7
[ "MIT" ]
null
null
null
setup.py
khsk/Python-App-Capture
a0b893765558f144399ec31f1f11fb0b30025cc7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Oct 03 15:54:20 2017 @author: y-takeuchi """ from cx_Freeze import setup, Executable exe = Executable(script = 'capture.py', base = 'Win32Gui') setup(name = 'AppCapture', version = '0.1', description = 'Save Screen', executables = [ex...
17.944444
60
0.585139
d84bc5b6f7292dc9f40fd92ef12317fa084962da
2,731
py
Python
mosquitto-1.5.4/test/broker/08-ssl-bridge.py
RainaWLK/mqtt-test
cb4175c8bd1e35deed45941ca61c88fdcc6ddeba
[ "MIT" ]
null
null
null
mosquitto-1.5.4/test/broker/08-ssl-bridge.py
RainaWLK/mqtt-test
cb4175c8bd1e35deed45941ca61c88fdcc6ddeba
[ "MIT" ]
null
null
null
mosquitto-1.5.4/test/broker/08-ssl-bridge.py
RainaWLK/mqtt-test
cb4175c8bd1e35deed45941ca61c88fdcc6ddeba
[ "MIT" ]
1
2021-06-19T17:17:41.000Z
2021-06-19T17:17:41.000Z
#!/usr/bin/env python import subprocess import socket import ssl import inspect, os, sys # From http://stackoverflow.com/questions/279237/python-import-a-module-from-a-folder cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],".."))) if cmd_subfol...
31.390805
168
0.680337
d84c3bb5b6974c0f95b489673269ce950a277333
8,658
py
Python
models/architecture/vaegan/trainer.py
EmmaNguyen/feature_adversarial_with_topology_signatures
efa7db6d0fdf5b2505d67d4341dcdb2ab05a97a7
[ "MIT" ]
1
2018-10-08T09:29:51.000Z
2018-10-08T09:29:51.000Z
models/architecture/vaegan/trainer.py
EmmaNguyen/feature_adversarial_with_topology_signatures
efa7db6d0fdf5b2505d67d4341dcdb2ab05a97a7
[ "MIT" ]
4
2018-06-30T18:06:47.000Z
2018-08-16T02:01:59.000Z
models/architecture/vaegan/trainer.py
EmmaNguyen/feature_adversarial_with_topology_signatures
efa7db6d0fdf5b2505d67d4341dcdb2ab05a97a7
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn.functional as F from torch.autograd import Variable from .distributions import rand_circle2d from ot import gromov_wasserstein2, unif def rand_projections(embedding_dim, num_samples=50): """This fn generates `L` random samples from the latent space's unit sphere. ...
46.299465
195
0.71125
d84cdf2cbca845f67fc205a391078d2af1f1badc
475
py
Python
image_action.py
abhishekchetani/ML_18june
4a6465259c7d0de0cbdc12c1c9f10dd6f925883d
[ "Apache-2.0" ]
null
null
null
image_action.py
abhishekchetani/ML_18june
4a6465259c7d0de0cbdc12c1c9f10dd6f925883d
[ "Apache-2.0" ]
null
null
null
image_action.py
abhishekchetani/ML_18june
4a6465259c7d0de0cbdc12c1c9f10dd6f925883d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import cv2 img = cv2.imread("/home/abhishek/Desktop/tracks.jpeg") cv2.line(img,(0,0),(236,236),(100,54,255),3) cv2.rectangle(img,(199,112),(325,238),(0,0,255),2) cv2.circle(img,(262,175),60,(255,200,0),3) font = cv2.FONT_HERSHEY_SIMPLEX cv2.putText(img,'TRAIN',(210,270),font,1,(90,200,140),cv2.LIN...
23.75
65
0.661053
d84e2e63426049e55a4ce07d524f85ba7b495330
14,662
py
Python
GMM_nDim3.py
Sharut/My-Hybrid-GMM-SVM-Model
68f0ab9b86dbb0ca3d1e63f2df0dcc4c7066e424
[ "MIT" ]
1
2019-06-07T13:22:57.000Z
2019-06-07T13:22:57.000Z
GMM_nDim3.py
Sharut/My-Hybrid-GMM-SVM-Model
68f0ab9b86dbb0ca3d1e63f2df0dcc4c7066e424
[ "MIT" ]
null
null
null
GMM_nDim3.py
Sharut/My-Hybrid-GMM-SVM-Model
68f0ab9b86dbb0ca3d1e63f2df0dcc4c7066e424
[ "MIT" ]
1
2020-08-30T06:49:25.000Z
2020-08-30T06:49:25.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 24 09:08:48 2019 @author: uiet_mac1 """ import numpy as np import random as rd import matplotlib.pyplot as plt from matplotlib.patches import Ellipse #import hungarian as hg def random_parameters(data, K): """ K is the number of gaussians""...
29.033663
103
0.559132
d84e7b0326da78457b27f3f5b7fda50734903f66
775
py
Python
Data-Structures/Stacks/stack.py
hussamEL-Hwary/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
18
2016-11-01T04:00:36.000Z
2021-09-13T14:26:35.000Z
Data-Structures/Stacks/stack.py
JEERU/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
60
2016-10-11T14:50:47.000Z
2016-10-31T11:05:01.000Z
Data-Structures/Stacks/stack.py
JEERU/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
87
2016-09-08T05:04:50.000Z
2016-10-30T19:19:53.000Z
"""Implementation of a stack in python."""
24.21875
68
0.536774
d854e1572c3ce2b3c51dea839fbb388e61fd565b
535
py
Python
li_hang/test/test_knn.py
LucienShui/HelloMachineLearning
b00a4b3791808ace3b1e45112350c2b3c539995e
[ "Apache-2.0" ]
2
2019-07-28T08:25:40.000Z
2019-07-29T05:29:10.000Z
li_hang/test/test_knn.py
LucienShui/HelloMachineLearning
b00a4b3791808ace3b1e45112350c2b3c539995e
[ "Apache-2.0" ]
null
null
null
li_hang/test/test_knn.py
LucienShui/HelloMachineLearning
b00a4b3791808ace3b1e45112350c2b3c539995e
[ "Apache-2.0" ]
null
null
null
import unittest import logging import numpy from knn import KNN if __name__ == '__main__': unittest.main()
18.448276
52
0.48785
d8560e6218ec99112b9cb038f1f87fe00535d31f
2,130
py
Python
src/taming.py
dwaybright/g729a_python
a9c78d9a6b2934c9742f63e3ade225fe4aee245e
[ "Unlicense" ]
null
null
null
src/taming.py
dwaybright/g729a_python
a9c78d9a6b2934c9742f63e3ade225fe4aee245e
[ "Unlicense" ]
null
null
null
src/taming.py
dwaybright/g729a_python
a9c78d9a6b2934c9742f63e3ade225fe4aee245e
[ "Unlicense" ]
null
null
null
from basic_op import * from ld8a import * from tab_ld8a import * L_exc_err = [0] * 4 def test_err(T0: int, T0_frac: int) -> int: """ # (o) flag set to 1 if taming is necessary # (i) T0 - integer part of pitch delay # (i) T0_frac - fractional part of pitch delay """ if T0_frac > 0: ...
21.958763
51
0.530047
d85630288b52620b9339fd834ada73fb4075abbe
558
py
Python
PyObjCTest/test_nspagelayout.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_nspagelayout.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_nspagelayout.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
import AppKit from PyObjCTools.TestSupport import TestCase import objc
31
122
0.668459
d85641b37bef389ead174fd99408f2c24628f116
4,458
py
Python
base_site/mainapp/models.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
4
2020-01-21T00:21:44.000Z
2021-06-15T19:38:36.000Z
base_site/mainapp/models.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
173
2019-11-18T08:19:44.000Z
2021-09-08T01:37:19.000Z
base_site/mainapp/models.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
3
2020-01-28T19:19:35.000Z
2021-05-01T02:33:36.000Z
from datetime import datetime from django.db import models
44.138614
119
0.711306
d8587509c1aa42b6092003d2a561d39843b7a11a
1,306
bzl
Python
third_party/com_google_boringssl/workspace.bzl
stuarteberg/tensorstore
2c22a3c9f798b0fbf023031633c58cc7c644235d
[ "Apache-2.0" ]
null
null
null
third_party/com_google_boringssl/workspace.bzl
stuarteberg/tensorstore
2c22a3c9f798b0fbf023031633c58cc7c644235d
[ "Apache-2.0" ]
null
null
null
third_party/com_google_boringssl/workspace.bzl
stuarteberg/tensorstore
2c22a3c9f798b0fbf023031633c58cc7c644235d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorStore Authors # # 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...
39.575758
120
0.725881
d85908aea84d7f7f730620a14ba03abbda1756ba
45
py
Python
common/__init__.py
weipeng/pyepi
1af5eab78e20f55fadccef8cb7b7aad6d503b31b
[ "MIT" ]
1
2020-03-28T06:29:28.000Z
2020-03-28T06:29:28.000Z
common/__init__.py
weipeng/pyepi
1af5eab78e20f55fadccef8cb7b7aad6d503b31b
[ "MIT" ]
null
null
null
common/__init__.py
weipeng/pyepi
1af5eab78e20f55fadccef8cb7b7aad6d503b31b
[ "MIT" ]
2
2020-03-29T16:12:52.000Z
2020-04-28T22:53:33.000Z
__all__ = [ 'stats', 'utils', 'linalg' ]
11.25
30
0.511111
d8593d6692d7d033994d2758b7537e9bd3034f63
45
py
Python
skforecast/__init__.py
JavierEscobarOrtiz/skforecast
a3af4a1dd4201c582f159d4e3a1734ed6d29b6c5
[ "MIT" ]
1
2021-12-01T09:21:21.000Z
2021-12-01T09:21:21.000Z
skforecast/__init__.py
JavierEscobarOrtiz/skforecast
a3af4a1dd4201c582f159d4e3a1734ed6d29b6c5
[ "MIT" ]
null
null
null
skforecast/__init__.py
JavierEscobarOrtiz/skforecast
a3af4a1dd4201c582f159d4e3a1734ed6d29b6c5
[ "MIT" ]
null
null
null
name = "skforecast" __version__ = "0.5.dev1"
15
24
0.688889
d859f7d3fb379be25a76d21ab67ead4d433c1d6c
777
py
Python
src/weathair_backend/weathair_backend/api/migrations/0004_auto_20201004_0412.py
willson556/weathair
e2b988f216f81a55d32d432ed41a09bf19d909b2
[ "MIT" ]
null
null
null
src/weathair_backend/weathair_backend/api/migrations/0004_auto_20201004_0412.py
willson556/weathair
e2b988f216f81a55d32d432ed41a09bf19d909b2
[ "MIT" ]
null
null
null
src/weathair_backend/weathair_backend/api/migrations/0004_auto_20201004_0412.py
willson556/weathair
e2b988f216f81a55d32d432ed41a09bf19d909b2
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-04 04:12 from django.db import migrations, models
27.75
98
0.604891
d85ca52402346be7dfaf6277ede793e7a996a2e4
1,176
py
Python
db_create.py
abmorton/stockhawk
b5f4d188a8f9420898f2390b01741c87a17ebbbd
[ "MIT" ]
7
2015-11-11T22:55:49.000Z
2021-06-03T17:23:59.000Z
db_create.py
abmorton/stockhawk
b5f4d188a8f9420898f2390b01741c87a17ebbbd
[ "MIT" ]
null
null
null
db_create.py
abmorton/stockhawk
b5f4d188a8f9420898f2390b01741c87a17ebbbd
[ "MIT" ]
3
2016-01-19T02:23:14.000Z
2018-08-03T12:20:07.000Z
from app import db from models import * import datetime # create the db and tables db.create_all() # prepare data to insert year = 1982 month = 4 day = 3 birthday = datetime.date(year, month, day) now = datetime.datetime.now() today = datetime.date(now.year, now.month, now.day) yesterday = datetime.date(now.year, n...
21.381818
98
0.706633
d85d07c94c953c6ddb47057dd695b08ff1db7471
2,581
py
Python
csv_uploader/views.py
treebohotels/treebo-csv-uploader
6fad3c33e34627bf3be1365c4526ab2f7d385741
[ "MIT" ]
null
null
null
csv_uploader/views.py
treebohotels/treebo-csv-uploader
6fad3c33e34627bf3be1365c4526ab2f7d385741
[ "MIT" ]
null
null
null
csv_uploader/views.py
treebohotels/treebo-csv-uploader
6fad3c33e34627bf3be1365c4526ab2f7d385741
[ "MIT" ]
null
null
null
import logging from django.http import HttpResponse from django.utils.datastructures import MultiValueDictKeyError from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.renderers import TemplateHTMLRenderer from .handler import CsvHandler from .validator import Csv...
44.5
120
0.665633
d85d2d19f951d9db76457ffec3892cff2c16064c
2,979
py
Python
Voltron/Voltron/Entrevue/LeetCode/Array-SingleNumber.py
ernestyalumni/HrdwCCppCUDA
17ed937dea06431a4d5ca103f993ea69a6918734
[ "MIT" ]
1
2018-02-09T19:44:51.000Z
2018-02-09T19:44:51.000Z
Voltron/Voltron/Entrevue/LeetCode/Array-SingleNumber.py
ernestyalumni/HrdwCCppCUDA
17ed937dea06431a4d5ca103f993ea69a6918734
[ "MIT" ]
null
null
null
Voltron/Voltron/Entrevue/LeetCode/Array-SingleNumber.py
ernestyalumni/HrdwCCppCUDA
17ed937dea06431a4d5ca103f993ea69a6918734
[ "MIT" ]
null
null
null
""" @file Array-SingleNumber.py Log: 2020/10/13 8:31 9:07 working implementation """ example_input_1 = [2, 2, 1] example_input_2 = [4, 1, 2, 1, 2] example_input_3 = [1] example_output_1 = 1 example_output_2 = 4 example_output_3 = 1 """ Given a non-empty array of integers nums, every element appears twice except for ...
24.418033
79
0.631756
d85e74f89e6ba559f49b28f11f9fbb57d950463e
2,910
py
Python
new_h1st/my_ml_modeler.py
TgithubJ/h1st
18c8ab2ca5e3a047aea255c636d27fd66bb80ec5
[ "Apache-2.0" ]
null
null
null
new_h1st/my_ml_modeler.py
TgithubJ/h1st
18c8ab2ca5e3a047aea255c636d27fd66bb80ec5
[ "Apache-2.0" ]
null
null
null
new_h1st/my_ml_modeler.py
TgithubJ/h1st
18c8ab2ca5e3a047aea255c636d27fd66bb80ec5
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict from h1st_ml import MLModeler import pandas as pd from sklearn.linear_model import LogisticRegression from sklearn.preprocessing import StandardScaler from sklearn.metrics import r2_score from my_ml_model import MyMLModel
36.835443
83
0.631271
d85f295a43e1700c84c02249db04af993786f746
26
py
Python
homeassistant/components/imap/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/imap/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/imap/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The imap component."""
13
25
0.615385
d85fa73be967336630b8bccd9bd0353e0af7dd9d
879
py
Python
test/libraryData_BulkUpdates.py
masqu3rad3/tik_manager
59821670e87a2af753a59cc70924c5f0aad8ad51
[ "BSD-3-Clause" ]
26
2019-05-05T04:52:38.000Z
2022-01-27T19:25:27.000Z
test/libraryData_BulkUpdates.py
masqu3rad3/tik_manager
59821670e87a2af753a59cc70924c5f0aad8ad51
[ "BSD-3-Clause" ]
null
null
null
test/libraryData_BulkUpdates.py
masqu3rad3/tik_manager
59821670e87a2af753a59cc70924c5f0aad8ad51
[ "BSD-3-Clause" ]
5
2020-02-14T06:43:07.000Z
2021-08-13T09:58:44.000Z
from tik_manager import assetLibrary reload(assetLibrary) import pprint import time pathList = ["E:\\backup\\_CharactersLibrary", "E:\\backup\\_BalikKrakerAssetLibrary", "E:\\backup\\_AssetLibrary", "M:\\Projects\\_CharactersLibrary", "M:\\Projects\\_BalikKrakerAssetLibrary", "M:\\Projects\\_AssetLibrary"] for path in...
43.95
223
0.651877
d860dd72da3f6f3d31741e148127e543434eba7d
4,552
py
Python
tests/pv_generation.py
Aloso/pv-simulator
daae4a00c4d7c759eedeffe39b6d60395e9a3ebf
[ "MIT" ]
null
null
null
tests/pv_generation.py
Aloso/pv-simulator
daae4a00c4d7c759eedeffe39b6d60395e9a3ebf
[ "MIT" ]
null
null
null
tests/pv_generation.py
Aloso/pv-simulator
daae4a00c4d7c759eedeffe39b6d60395e9a3ebf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys, os, random, unittest, itertools sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # pylint: disable=import-error from libpv.pv_generation import PvGenerator, weather from libpv.time_of_day import TimeOfDay if __name__ == '__main__': unittest.main()
47.915789
85
0.504174
d8617eb30998d8220d39ad8ca6c7311751fdbf18
16,601
py
Python
tests/tests.py
ipashchenko/uvmod
5f81f9f621ccd2f83e99f22eb0c302ae8d8a218d
[ "MIT" ]
null
null
null
tests/tests.py
ipashchenko/uvmod
5f81f9f621ccd2f83e99f22eb0c302ae8d8a218d
[ "MIT" ]
5
2015-01-28T07:53:30.000Z
2015-04-16T11:21:58.000Z
tests/tests.py
ipashchenko/uvmod
5f81f9f621ccd2f83e99f22eb0c302ae8d8a218d
[ "MIT" ]
null
null
null
#!/usr/bin python # -*- coding: utf-8 -*- from __future__ import print_function from unittest import (TestCase, skip, skipIf) from uvmod.stats import LnLike, LS_estimates, LnPrior, LnPost, hdi_of_mcmc from uvmod.models import Model_1d, Model_2d_isotropic, Model_2d_anisotropic # TODO: Use ``np.random.uniform`` instead ...
49.555224
80
0.575267
d862604d092bad15f0b361b2e53da5ab2a37c8ae
942
py
Python
eegpy/formats/tests/TestLoc3dMarker.py
thorstenkranz/eegpy
0f9461456999874abbb774896ca832eb27740a9d
[ "BSD-2-Clause-FreeBSD" ]
10
2015-05-12T10:42:51.000Z
2021-07-20T02:08:03.000Z
eegpy/formats/tests/TestLoc3dMarker.py
thorstenkranz/eegpy
0f9461456999874abbb774896ca832eb27740a9d
[ "BSD-2-Clause-FreeBSD" ]
2
2015-11-19T11:36:30.000Z
2018-03-21T05:00:09.000Z
eegpy/formats/tests/TestLoc3dMarker.py
thorstenkranz/eegpy
0f9461456999874abbb774896ca832eb27740a9d
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-21T22:41:34.000Z
2019-01-28T13:55:19.000Z
import os import numpy as np import time from numpy.testing import (assert_array_almost_equal, assert_array_equal) from nose.tools import assert_true, assert_equal, assert_raises, raises from tempfile import mktemp from eegpy.formats.loc3dmarker import Loc3dMarkers test_data = """A,-...
24.789474
71
0.673036
d862e5191af1e26ac32d9cdf7c011969df1241d6
997
py
Python
video_reader.py
evgenevolkov/Automated-car-tracker-and-plates-reader
5cee11b654bb8cfd20d081198af43b56811d2107
[ "MIT" ]
3
2020-10-15T14:32:36.000Z
2022-03-08T20:56:58.000Z
video_reader.py
evgenevolkov/Automated-car-tracker-and-plates-reader
5cee11b654bb8cfd20d081198af43b56811d2107
[ "MIT" ]
2
2022-02-09T23:51:20.000Z
2022-02-10T02:25:10.000Z
video_reader.py
evgenevolkov/Automated-car-tracker-and-plates-reader
5cee11b654bb8cfd20d081198af43b56811d2107
[ "MIT" ]
2
2021-04-07T11:56:20.000Z
2022-01-28T22:25:36.000Z
# import nesessary packages import cv2 import config DEBUG = config.DEBUG
29.323529
84
0.594784
d863b2417d20fc0b71005243f57ab636233f418d
2,605
py
Python
Harry_Poter_Cloak/harry_potter_cloak.py
SusovanGithub/SusovanGithub-OpenCV_projects
bff292a976e0e48c8b4094607878133e70395029
[ "MIT" ]
1
2021-05-18T15:49:54.000Z
2021-05-18T15:49:54.000Z
Harry_Poter_Cloak/harry_potter_cloak.py
SusovanGithub/SusovanGithub-OpenCV_projects
bff292a976e0e48c8b4094607878133e70395029
[ "MIT" ]
null
null
null
Harry_Poter_Cloak/harry_potter_cloak.py
SusovanGithub/SusovanGithub-OpenCV_projects
bff292a976e0e48c8b4094607878133e70395029
[ "MIT" ]
null
null
null
import cv2 import numpy as np # function for the empty work # * creating the Window windowName = 'Color Detection in HSV Space' # Window Name cv2.namedWindow(windowName) # Window Creation # * Adding the Track pad cv2.createTrackbar('HUE min',windowName,0,179,empty) cv2.createTrackbar('HUE max...
28.010753
70
0.664491
d863c07896bcb5f1642fe8d4a4e1720169611bc3
759
py
Python
qset_core/configuration/environment.py
adragolov/qset-core
ca2beb9d1a530b75f8f93194649c9d9c3e8d6ac1
[ "MIT" ]
null
null
null
qset_core/configuration/environment.py
adragolov/qset-core
ca2beb9d1a530b75f8f93194649c9d9c3e8d6ac1
[ "MIT" ]
null
null
null
qset_core/configuration/environment.py
adragolov/qset-core
ca2beb9d1a530b75f8f93194649c9d9c3e8d6ac1
[ "MIT" ]
null
null
null
import os from threading import RLock ENVIRONMENT_VAR_NAME: str = "QSET_ENVIRONMENT" ENVIRONMENT_NAME_DEFAULT: str = 'Development' ENVIRONMENT_NAME_PRODUCTION: str = 'Production'
26.172414
118
0.670619
d8644fc985adc50f63489cffe3bfe8417550597e
5,575
py
Python
autosrc.py
pwnwikiorg/AutoSRC
4cee92b2ae0e4f024059840a0b84d49f5e125e94
[ "MIT" ]
44
2021-07-12T05:45:47.000Z
2021-09-24T13:49:39.000Z
autosrc.py
mama2100/AutoSRC
4cee92b2ae0e4f024059840a0b84d49f5e125e94
[ "MIT" ]
null
null
null
autosrc.py
mama2100/AutoSRC
4cee92b2ae0e4f024059840a0b84d49f5e125e94
[ "MIT" ]
15
2021-07-12T05:48:25.000Z
2021-09-10T07:56:55.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import os import subprocess import requests import argparse import base64 import sys import json import codecs if len(sys.argv) == 1: banner() sys.exit() parser = argparse.ArgumentParser(description='autosrcfofaapi help') parser.add_argument('-...
45.696721
136
0.411121
d86510c82b66f95dc50fd62936d72f29aeaa9999
360
py
Python
pirates/creature/DistributedCreatureAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/creature/DistributedCreatureAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/creature/DistributedCreatureAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from direct.directnotify import DirectNotifyGlobal from pirates.battle.DistributedBattleNPCAI import * from pirates.pirate import AvatarTypes
32.727273
81
0.822222
d8681174b4934ada560118e7c8363f5ba24fcfa0
4,263
py
Python
gym-kinova-gripper/Old Code/stuff.py
OSUrobotics/KinovaGrasping
f22af60d3683fdc4ffecf49ccff179fbc6750748
[ "Linux-OpenIB" ]
16
2020-05-16T00:40:31.000Z
2022-02-22T11:59:03.000Z
gym-kinova-gripper/Old Code/stuff.py
OSUrobotics/KinovaGrasping
f22af60d3683fdc4ffecf49ccff179fbc6750748
[ "Linux-OpenIB" ]
9
2020-08-10T08:33:55.000Z
2021-08-17T02:10:50.000Z
gym-kinova-gripper/Old Code/stuff.py
OSUrobotics/KinovaGrasping
f22af60d3683fdc4ffecf49ccff179fbc6750748
[ "Linux-OpenIB" ]
7
2020-07-27T09:45:05.000Z
2021-06-21T21:42:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Dec 13 09:59:13 2019 @author: orochi """ import numpy as np import csv from classifier_network import LinearNetwork from classifier_network import ReducedLinearNetwork import torch import torch.nn as nn import torch.nn.functional as F import matplotlib....
31.577778
138
0.655407
d868e0721a8fe2dce25eaeb0e1b2ad04eea694ba
5,144
py
Python
src/main/nspawn/wrapper/sudo.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
15
2019-10-10T17:35:48.000Z
2022-01-29T10:41:01.000Z
src/main/nspawn/wrapper/sudo.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
null
null
null
src/main/nspawn/wrapper/sudo.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
2
2019-10-10T17:36:43.000Z
2020-06-20T15:28:33.000Z
""" Wrapper for sudo https://linux.die.net/man/8/sudo """ import os import shlex from typing import List, Mapping from nspawn import CONFIG from nspawn.wrapper.base import Base from nspawn.support.parser import parse_text2dict SUDO = Sudo()
35.232877
107
0.628888
d8693362b05650b4c1b31dbc4438c95cc27c7e7b
3,052
py
Python
src/app.py
davidkowalk/Kalaha
2b00fce97f5559c0527ec1c8addf3c488c46fccf
[ "MIT" ]
1
2021-06-19T16:08:52.000Z
2021-06-19T16:08:52.000Z
src/app.py
davidkowalk/Kalaha
2b00fce97f5559c0527ec1c8addf3c488c46fccf
[ "MIT" ]
null
null
null
src/app.py
davidkowalk/Kalaha
2b00fce97f5559c0527ec1c8addf3c488c46fccf
[ "MIT" ]
null
null
null
from Board import Board, code_to_list from sys import argv if __name__ == '__main__': main()
28.259259
97
0.449541
d8693bfd84c89857d5a17510a59ef22ad4a7f847
4,346
py
Python
collisionSat.py
vzayakov/satelliteprogram
24c699215c44caff4ca793be3bb71890c4b41416
[ "MIT" ]
null
null
null
collisionSat.py
vzayakov/satelliteprogram
24c699215c44caff4ca793be3bb71890c4b41416
[ "MIT" ]
null
null
null
collisionSat.py
vzayakov/satelliteprogram
24c699215c44caff4ca793be3bb71890c4b41416
[ "MIT" ]
null
null
null
from skyfield.api import Topos, load from astropy import units as u from astropy import time import matplotlib.pyplot as plt import numpy as np from datetime import datetime import sys ts = load.timescale(builtin=True) #This program is able to calculate the closest pass between two given satellites over the next 5 day...
35.048387
142
0.736539
d869a760e43d690b730eb44ae5328a3cd8766067
3,738
py
Python
webdev/fornecedores/tests/test_fornecedores_post.py
h-zanetti/jewelry-manager
74166b89f492303b8ebf5ff8af058f394eb2a28b
[ "MIT" ]
null
null
null
webdev/fornecedores/tests/test_fornecedores_post.py
h-zanetti/jewelry-manager
74166b89f492303b8ebf5ff8af058f394eb2a28b
[ "MIT" ]
103
2021-04-25T21:28:11.000Z
2022-03-15T01:36:31.000Z
webdev/fornecedores/tests/test_fornecedores_post.py
h-zanetti/jewelry-manager
74166b89f492303b8ebf5ff8af058f394eb2a28b
[ "MIT" ]
null
null
null
import pytest from pytest_django.asserts import assertRedirects from django.urls import reverse from django.contrib.auth.models import User from webdev.fornecedores.models import Fornecedor, Fornecimento, Email, Telefone, Local, DadosBancarios # Novo Fornecedor def test_redireciona_editar_fornecedor(resposta_autentic...
32.224138
103
0.692616
d86dfa846b06600cb6626bf01cc13c4b4ba732dd
1,656
py
Python
humimp/urls.py
zain-Z/humimp
fd7e4e211dce62639e2fce2dd9f9506240a7a3d9
[ "MIT" ]
null
null
null
humimp/urls.py
zain-Z/humimp
fd7e4e211dce62639e2fce2dd9f9506240a7a3d9
[ "MIT" ]
null
null
null
humimp/urls.py
zain-Z/humimp
fd7e4e211dce62639e2fce2dd9f9506240a7a3d9
[ "MIT" ]
null
null
null
"""humimp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
37.636364
78
0.736715
d8709d89acee40ccaac332ee9c01a0773827a0af
499
py
Python
python/arrays/0048-rotate-image.py
karolinyoliveira/leetcode-ebbinghaus-practice
5149e06f1c187b87e280fd58541c11d8ab8626d3
[ "MIT" ]
2
2021-05-28T03:41:39.000Z
2021-10-19T16:53:16.000Z
python/arrays/0048-rotate-image.py
karolinyoliveira/leetcode-ebbinghaus-practice
5149e06f1c187b87e280fd58541c11d8ab8626d3
[ "MIT" ]
null
null
null
python/arrays/0048-rotate-image.py
karolinyoliveira/leetcode-ebbinghaus-practice
5149e06f1c187b87e280fd58541c11d8ab8626d3
[ "MIT" ]
null
null
null
from typing import List
35.642857
70
0.541082
d870d81902f0c3d976bb8c7ff8e74c4445f9877c
6,176
py
Python
siiptool/common/configparser.py
kdbarnes-intel/iotg-fbu
bf6c38240ef13c64d2776e48ec277b3c8bebce6f
[ "BSD-2-Clause" ]
15
2020-03-21T03:19:46.000Z
2022-03-02T07:12:57.000Z
siiptool/common/configparser.py
kdbarnes-intel/iotg-fbu
bf6c38240ef13c64d2776e48ec277b3c8bebce6f
[ "BSD-2-Clause" ]
7
2020-03-10T03:17:24.000Z
2021-06-08T17:47:34.000Z
siiptool/common/configparser.py
kdbarnes-intel/iotg-fbu
bf6c38240ef13c64d2776e48ec277b3c8bebce6f
[ "BSD-2-Clause" ]
11
2020-02-28T19:52:22.000Z
2022-03-02T07:15:51.000Z
from collections.abc import MutableMapping import warnings import json from configparser import * from configparser import __all__ __all__.append("JSONConfigParser") _ConfigParser = ConfigParser
31.510204
81
0.599093
d871d406a36eb042f0249d4cd661dbf2e8cf3a59
5,859
py
Python
tests/test_validation.py
danielgis/invest
b9687d249361556b874750368e856ef049447b5a
[ "BSD-3-Clause" ]
null
null
null
tests/test_validation.py
danielgis/invest
b9687d249361556b874750368e856ef049447b5a
[ "BSD-3-Clause" ]
null
null
null
tests/test_validation.py
danielgis/invest
b9687d249361556b874750368e856ef049447b5a
[ "BSD-3-Clause" ]
1
2021-04-21T10:46:17.000Z
2021-04-21T10:46:17.000Z
import unittest
34.263158
78
0.640894
d8720456fd135a7561fb3d2146537a8ebeb01212
77
py
Python
vmaig_blog/uwsgi-2.0.14/plugins/zergpool/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
1
2018-11-24T16:10:49.000Z
2018-11-24T16:10:49.000Z
vmaig_blog/uwsgi-2.0.14/plugins/zergpool/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
vmaig_blog/uwsgi-2.0.14/plugins/zergpool/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
NAME='zergpool' CFLAGS = [] LDFLAGS = [] LIBS = [] GCC_LIST = ['zergpool']
9.625
23
0.584416
d87268d377955c1f6efb88d6ef67f9df1b77d9d4
6,279
py
Python
py-src/helper/img_transform.py
gabeoh/CarND-P01-LaneLines
5a35a7698f5a2efeff70d5537fedae366c1e51a0
[ "MIT" ]
null
null
null
py-src/helper/img_transform.py
gabeoh/CarND-P01-LaneLines
5a35a7698f5a2efeff70d5537fedae366c1e51a0
[ "MIT" ]
null
null
null
py-src/helper/img_transform.py
gabeoh/CarND-P01-LaneLines
5a35a7698f5a2efeff70d5537fedae366c1e51a0
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import cv2 import math def grayscale(img): """Applies the Grayscale transform This will return an image with only one color channel but NOTE: to see the returned image as grayscale (assuming your grayscaled image is called 'gray') you should call ...
38.521472
104
0.672241
d8733f6f6015bbf69ccc3df24284440196f1074d
1,314
py
Python
src/zope/app/publication/publicationtraverse.py
zopefoundation/zope.app.publication
fd5cde576c4679aac1f7dc091d2fd6fb5ae51db4
[ "ZPL-2.1" ]
1
2021-02-01T06:13:49.000Z
2021-02-01T06:13:49.000Z
src/zope/app/publication/publicationtraverse.py
zopefoundation/zope.app.publication
fd5cde576c4679aac1f7dc091d2fd6fb5ae51db4
[ "ZPL-2.1" ]
11
2015-08-03T07:40:13.000Z
2020-12-17T06:54:55.000Z
src/zope/app/publication/publicationtraverse.py
zopefoundation/zope.app.publication
fd5cde576c4679aac1f7dc091d2fd6fb5ae51db4
[ "ZPL-2.1" ]
3
2015-04-03T07:58:39.000Z
2016-11-04T06:00:03.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
37.542857
107
0.679604
d873c9d5b73ad6048ae3ed992ae54074f4373aad
44
py
Python
snowav/database/__init__.py
robertson-mark/SNOWAV
ef7a470dd45a342ee454d74b6476da5807f14301
[ "CC0-1.0" ]
1
2018-09-11T17:14:01.000Z
2018-09-11T17:14:01.000Z
snowav/database/__init__.py
robertson-mark/SNOWAV
ef7a470dd45a342ee454d74b6476da5807f14301
[ "CC0-1.0" ]
15
2018-10-24T21:59:57.000Z
2021-07-01T20:37:05.000Z
snowav/database/__init__.py
USDA-ARS-NWRC/snowav
ef7a470dd45a342ee454d74b6476da5807f14301
[ "CC0-1.0" ]
null
null
null
from . import tables from . import database
14.666667
22
0.772727
d87785dc3dfe82dc39a25b2fc439096204f29f6f
158
py
Python
distributions/admin.py
lueho/BRIT
1eae630c4da6f072aa4e2139bc406db4f4756391
[ "MIT" ]
null
null
null
distributions/admin.py
lueho/BRIT
1eae630c4da6f072aa4e2139bc406db4f4756391
[ "MIT" ]
4
2022-03-29T20:52:31.000Z
2022-03-29T20:52:31.000Z
distributions/admin.py
lueho/BRIT
1eae630c4da6f072aa4e2139bc406db4f4756391
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Timestep, TemporalDistribution admin.site.register(TemporalDistribution) admin.site.register(Timestep)
22.571429
50
0.848101
d8794c7745220a34124f93774d760cb2a2e49b5f
1,581
py
Python
src/prepare_train_valid.py
partham16/demo_classification
d756ab150a1913c220f1048eda552483e88c01c1
[ "MIT" ]
null
null
null
src/prepare_train_valid.py
partham16/demo_classification
d756ab150a1913c220f1048eda552483e88c01c1
[ "MIT" ]
null
null
null
src/prepare_train_valid.py
partham16/demo_classification
d756ab150a1913c220f1048eda552483e88c01c1
[ "MIT" ]
null
null
null
from typing import List, Tuple import h2o import pandas as pd from sklearn.model_selection import train_test_split from .config import Config def get_train_valid(df: pd.DataFrame) -> Tuple[pd.DataFrame]: """Get train - valid - test""" full_train_df, test_df = train_test_split( df, test_size=...
28.745455
73
0.674889
d87c366bf70803b5e5a62ba14bdd8953959d7029
419
py
Python
generate-text-replacements.py
clrcrl/tech-name-fixer
4d5ab36aa28a1e2912e02c5ea33a3f8af8d0e77b
[ "Apache-2.0" ]
null
null
null
generate-text-replacements.py
clrcrl/tech-name-fixer
4d5ab36aa28a1e2912e02c5ea33a3f8af8d0e77b
[ "Apache-2.0" ]
null
null
null
generate-text-replacements.py
clrcrl/tech-name-fixer
4d5ab36aa28a1e2912e02c5ea33a3f8af8d0e77b
[ "Apache-2.0" ]
null
null
null
import csv import plistlib as plist SOURCE_FILE = "tech-names.csv" snippets_array = [] with open(SOURCE_FILE, "rt") as csvfile: reader = csv.DictReader(csvfile) firstline = True for row in reader: snippets_array.append( {"phrase": row["correct_spelling"], "shortcut": row["common_missp...
23.277778
86
0.661098
d87dbe03e3d17cde827cd192191f97d4763ebc9a
4,524
py
Python
cjax/continuation/_perturbed_arc_len_continuation.py
harsh306/continuation-jax
c1452604558764df9cd4770130b60035eea5c5b3
[ "MIT" ]
2
2022-01-26T18:02:51.000Z
2022-02-15T01:36:39.000Z
cjax/continuation/_perturbed_arc_len_continuation.py
harsh306/continuation-jax
c1452604558764df9cd4770130b60035eea5c5b3
[ "MIT" ]
null
null
null
cjax/continuation/_perturbed_arc_len_continuation.py
harsh306/continuation-jax
c1452604558764df9cd4770130b60035eea5c5b3
[ "MIT" ]
1
2022-02-15T01:37:50.000Z
2022-02-15T01:37:50.000Z
from cjax.continuation._arc_len_continuation import PseudoArcLenContinuation from cjax.continuation.states.state_variables import StateWriter from cjax.continuation.methods.predictor.secant_predictor import SecantPredictor from jax.experimental.optimizers import l2_norm from cjax.continuation.methods.corrector.perturbe...
36.192
100
0.600133
d87e5d6a6c3a210e859a21073e4fe4f95aee7c09
1,345
py
Python
dependencytrack/bom.py
dmuse89/dependency-track-python
462d4a2b7ba5b1b1b0d0ea9066057872f5bd74bb
[ "CNRI-Python" ]
null
null
null
dependencytrack/bom.py
dmuse89/dependency-track-python
462d4a2b7ba5b1b1b0d0ea9066057872f5bd74bb
[ "CNRI-Python" ]
null
null
null
dependencytrack/bom.py
dmuse89/dependency-track-python
462d4a2b7ba5b1b1b0d0ea9066057872f5bd74bb
[ "CNRI-Python" ]
null
null
null
# SPDX-License-Identifier: GPL-2.0+ from .exceptions import DependencyTrackApiError
29.888889
67
0.613383
d87f974916d2df6ce93e6643e73f56fff02c54aa
1,895
py
Python
Contributors/IanDavis/ValidSentence.py
FergusDevelopmentLLC/Coders-Workshop
3513bd5f79eaa85b4d2a648c5f343a224842325d
[ "MIT" ]
33
2019-12-02T23:29:47.000Z
2022-03-24T02:40:36.000Z
Contributors/IanDavis/ValidSentence.py
FergusDevelopmentLLC/Coders-Workshop
3513bd5f79eaa85b4d2a648c5f343a224842325d
[ "MIT" ]
39
2020-01-15T19:28:12.000Z
2021-11-26T05:13:29.000Z
Contributors/IanDavis/ValidSentence.py
FergusDevelopmentLLC/Coders-Workshop
3513bd5f79eaa85b4d2a648c5f343a224842325d
[ "MIT" ]
49
2019-12-02T23:29:53.000Z
2022-03-03T01:11:37.000Z
"""By Ian Davis for Bootcampers Collective Coders Workshop on 2/19/20""" """ This program evaluates a string and determines if it its a real sentence """ validString = 'This is a valid sentence.' twoSpaces = "This isn't valid" firstCharacterNotCapitalized = 'not capitalized' containsProperNoun = 'Only the firs charac...
31.065574
80
0.624802
d87fb2cf3d6c3c5eaead08973e95a1d7f892f80b
1,269
py
Python
MirrorMirror/theme/TextBox.py
RubanSeven/MirrorMirror
47c7a1f458f87c536d068fcf249625f426920cc3
[ "Apache-2.0" ]
2
2021-07-07T13:21:11.000Z
2021-09-24T06:57:16.000Z
MirrorMirror/theme/TextBox.py
RubanSeven/MirrorMirror
47c7a1f458f87c536d068fcf249625f426920cc3
[ "Apache-2.0" ]
null
null
null
MirrorMirror/theme/TextBox.py
RubanSeven/MirrorMirror
47c7a1f458f87c536d068fcf249625f426920cc3
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ @author: RubanSeven @project: MirrorMirror """ from PyQt5.QtWidgets import *
24.403846
51
0.408983
d8819ce394b5003e6d8376f1810f650835d534ec
1,429
py
Python
012getLncRNA_PMID.py
qiufengdiewu/LPInsider
92fcc2ad9e05cb634c4e3f1accd1220b984a027d
[ "Apache-2.0" ]
null
null
null
012getLncRNA_PMID.py
qiufengdiewu/LPInsider
92fcc2ad9e05cb634c4e3f1accd1220b984a027d
[ "Apache-2.0" ]
null
null
null
012getLncRNA_PMID.py
qiufengdiewu/LPInsider
92fcc2ad9e05cb634c4e3f1accd1220b984a027d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- from Bio import Entrez import MySQLdb as mySQLDB Entrez.email="A.N.Other@example.com" if __name__ == "__main__": savePID()
34.02381
222
0.590623
d8836803dce845ee19f76d28736903e2e7b8d35b
11,867
py
Python
scripts/generate_schema/worldbank/generate_worldbank_schema.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
7
2018-10-02T01:32:23.000Z
2020-10-08T00:42:35.000Z
scripts/generate_schema/worldbank/generate_worldbank_schema.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
47
2018-10-02T05:41:13.000Z
2021-02-02T21:50:31.000Z
scripts/generate_schema/worldbank/generate_worldbank_schema.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
19
2018-10-01T22:27:20.000Z
2019-02-28T18:59:53.000Z
import os from argparse import ArgumentParser import requests import json import traceback LOCATIONS = [ "Aruba", "Afghanistan", "Africa", "Angola", "Albania", "Andorra", "Andean Region", "Arab World", "United Arab Emirates", "Argentina", "Armenia", "American Samoa", "Antigua and Barbuda", ...
27.469907
110
0.605292
d88413a8c6025245623ff27f30f5b74590dab51a
1,546
py
Python
examples/lineplots/devol.py
aengelke/z-plot
63e4e6656355b608487a3e4df5da13b7fad9b108
[ "BSD-3-Clause" ]
22
2016-10-19T15:02:22.000Z
2021-12-23T12:40:37.000Z
examples/lineplots/devol.py
aengelke/z-plot
63e4e6656355b608487a3e4df5da13b7fad9b108
[ "BSD-3-Clause" ]
4
2017-04-16T03:15:48.000Z
2020-10-28T11:36:35.000Z
examples/lineplots/devol.py
aengelke/z-plot
63e4e6656355b608487a3e4df5da13b7fad9b108
[ "BSD-3-Clause" ]
11
2017-01-18T02:41:57.000Z
2021-12-28T02:21:30.000Z
#! /usr/bin/env python from zplot import * import sys import sys ctype = 'eps' if len(sys.argv) < 2 else sys.argv[1] c = canvas(ctype, title='devol', dimensions=['400','340']) t = table(file='devol.data') t.addcolumns(['month','year']) t.update(set='month = substr(date, 1, 2)') t.update(set='year = substr(date, 4, 2...
35.136364
80
0.666882
d88462214366d2d59a4aa76c3e990d20a7d331bd
4,208
py
Python
DLplatform/aggregating/geometric_median.py
chelseajohn/dlplatform
429e42c598039d1e9fd1df3da4247f391915a31b
[ "Apache-2.0" ]
5
2020-05-05T08:54:26.000Z
2021-02-20T07:36:28.000Z
DLplatform/aggregating/geometric_median.py
zagazao/dlplatform
ab32af8f89cfec4b478203bd5d13ce2d30e89ba7
[ "Apache-2.0" ]
1
2020-11-16T14:15:53.000Z
2020-11-16T14:15:53.000Z
DLplatform/aggregating/geometric_median.py
zagazao/dlplatform
ab32af8f89cfec4b478203bd5d13ce2d30e89ba7
[ "Apache-2.0" ]
4
2020-05-05T08:56:57.000Z
2020-07-22T11:28:52.000Z
from DLplatform.aggregating import Aggregator from DLplatform.parameters import Parameters from typing import List import numpy as np from scipy.spatial.distance import cdist, euclidean # def setToGeometricMedian(self, params : List): # models = params # # shapes = [] # ...
31.402985
122
0.481939
d88610b31c7b5f25ebda49d4c2f961d36945c83b
4,670
py
Python
stock_price_predictor/app.py
abdullahtk/Stock-Market-Predictor
1e97d5d2c647912447b9db8eb548e52c0ad1fe8a
[ "MIT" ]
3
2019-07-25T22:41:38.000Z
2021-04-06T04:37:05.000Z
stock_price_predictor/app.py
abdullahtk/Stock-Market-Predictor
1e97d5d2c647912447b9db8eb548e52c0ad1fe8a
[ "MIT" ]
2
2019-07-13T15:36:06.000Z
2021-06-01T23:56:50.000Z
stock_price_predictor/app.py
abdullahtk/Stock-Market-Predictor
1e97d5d2c647912447b9db8eb548e52c0ad1fe8a
[ "MIT" ]
1
2019-07-25T22:42:03.000Z
2019-07-25T22:42:03.000Z
from flask import Flask from flask import render_template, request, jsonify from source import StockPredictor as sp from source import ModelsParametersTunning as mpt from datetime import datetime import json from plotly.graph_objs import Scatter from pandas.tseries.offsets import BDay app = Flask(__name__) install_a...
33.357143
162
0.601927
d8861a99b9bc42b6ddf7bfddb993259aa9336913
720
py
Python
generator/migrations/0001_initial.py
danielcoker/random-uuid
0cf459eb2a838923e9ee5f17e20dbd9ece27a4ce
[ "MIT" ]
null
null
null
generator/migrations/0001_initial.py
danielcoker/random-uuid
0cf459eb2a838923e9ee5f17e20dbd9ece27a4ce
[ "MIT" ]
null
null
null
generator/migrations/0001_initial.py
danielcoker/random-uuid
0cf459eb2a838923e9ee5f17e20dbd9ece27a4ce
[ "MIT" ]
null
null
null
# Generated by Django 3.2.11 on 2022-01-18 12:43 from django.db import migrations, models import generator.models
26.666667
117
0.579167
d886d8c696a1ebb65d655949115462c4ca60e2a4
274
py
Python
vmraid/patches/v6_0/document_type_rename.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/patches/v6_0/document_type_rename.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/patches/v6_0/document_type_rename.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import vmraid
30.444444
64
0.766423
d88805a961c2bd2e72ffebe23a8679a83ce2e0f0
1,529
py
Python
biostar/recipes/migrations/0008_label.py
Oribyne/biostar-central-fork
89a459bc66d438518cf968c3f2e3ce1f50573b9e
[ "MIT" ]
477
2015-01-01T00:18:54.000Z
2022-03-21T10:29:29.000Z
biostar/recipes/migrations/0008_label.py
coreydipsy/biostar-central
2b2f09199a6332877885ef54d9ac588ed0765770
[ "MIT" ]
247
2015-01-02T08:12:03.000Z
2022-02-24T15:20:58.000Z
biostar/recipes/migrations/0008_label.py
coreydipsy/biostar-central
2b2f09199a6332877885ef54d9ac588ed0765770
[ "MIT" ]
251
2015-01-01T16:05:57.000Z
2022-03-25T21:32:44.000Z
# Generated by Django 3.0.2 on 2020-02-17 22:42 from django.db import migrations, models import hjson import toml
27.8
74
0.620013
d88917a3681f54f58e6f0236e05d538383e5fe13
1,100
py
Python
src/unittest/python/modules/processing/filter_lt_tests.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
1
2018-10-01T10:59:55.000Z
2018-10-01T10:59:55.000Z
src/unittest/python/modules/processing/filter_lt_tests.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
null
null
null
src/unittest/python/modules/processing/filter_lt_tests.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
1
2021-11-01T00:09:00.000Z
2021-11-01T00:09:00.000Z
import unittest from cybercaptain.processing.filter import processing_filter
32.352941
85
0.579091
d889b29c8ab7230fa4821ccc373f7fe3a359f78f
6,129
py
Python
src/data/clean.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
2
2022-01-01T11:06:22.000Z
2022-02-19T03:19:18.000Z
src/data/clean.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
null
null
null
src/data/clean.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
2
2020-08-15T05:38:49.000Z
2022-03-05T07:31:11.000Z
import logging import numpy as np import pandas as pd from sklearn.neighbors.kde import KernelDensity from scipy.optimize import minimize from src.utils import cov2corr def get_pca(matrix): """ Function to retrieve the eigenvalues and eigenvector from a Hermitian matrix :param matrix: Hermitian mat...
33.309783
79
0.586229
d88c5d3fd6e480648f2585b49ccf5181a7bd2748
803
py
Python
flows/builtin/tests/unit/webserver/factory/test_simple_http_server_flow_factory.py
vdloo/jobrunner
a3a7b8f7fd4d879d398f1390db0611f9c626f6db
[ "Apache-2.0" ]
1
2020-08-31T19:06:16.000Z
2020-08-31T19:06:16.000Z
flows/builtin/tests/unit/webserver/factory/test_simple_http_server_flow_factory.py
vdloo/jobrunner
a3a7b8f7fd4d879d398f1390db0611f9c626f6db
[ "Apache-2.0" ]
null
null
null
flows/builtin/tests/unit/webserver/factory/test_simple_http_server_flow_factory.py
vdloo/jobrunner
a3a7b8f7fd4d879d398f1390db0611f9c626f6db
[ "Apache-2.0" ]
null
null
null
from flows.builtin.webserver.factory import simple_http_server_flow_factory from jobrunner.utils import list_tasks_in_flow from tests.testcase import TestCase
33.458333
75
0.768369
d88d295ec1717480689aae0ec07ffd4cad0afd39
530
py
Python
saleor/core/emails.py
cleobuck/krolocosmetics
4ae97601a18461323606d6e22673bb38cbaa6272
[ "CC-BY-4.0" ]
2
2019-12-04T19:43:51.000Z
2020-07-06T09:56:04.000Z
saleor/core/emails.py
cleobuck/krolocosmetics
4ae97601a18461323606d6e22673bb38cbaa6272
[ "CC-BY-4.0" ]
11
2021-02-02T22:34:37.000Z
2022-02-10T20:20:50.000Z
saleor/core/emails.py
cleobuck/krolocosmetics
4ae97601a18461323606d6e22673bb38cbaa6272
[ "CC-BY-4.0" ]
null
null
null
from django.contrib.sites.models import Site from django.templatetags.static import static from ..core.utils import build_absolute_uri
31.176471
72
0.732075
d88d675c24541241d384af1e5883cd0ed00a17c1
5,045
py
Python
tests/test_views.py
acutexyz/monkeyideas
062ffa16f3bdf1fa57338837b50bfddfebdecdac
[ "MIT" ]
null
null
null
tests/test_views.py
acutexyz/monkeyideas
062ffa16f3bdf1fa57338837b50bfddfebdecdac
[ "MIT" ]
null
null
null
tests/test_views.py
acutexyz/monkeyideas
062ffa16f3bdf1fa57338837b50bfddfebdecdac
[ "MIT" ]
null
null
null
from app.models import * import pytest from app.forms import * from werkzeug.datastructures import MultiDict from flask import url_for import json from flask.ext.login import current_user, login_user, logout_user def post_login(client, email, password): data = { 'ema...
27.71978
76
0.5556
d88d8616334079599791ffad043f9440390cda86
482
py
Python
src/views.py
DarFig/bLg0
e8e570af13e977fe867f858c7247dfe16cc22488
[ "MIT" ]
null
null
null
src/views.py
DarFig/bLg0
e8e570af13e977fe867f858c7247dfe16cc22488
[ "MIT" ]
null
null
null
src/views.py
DarFig/bLg0
e8e570af13e977fe867f858c7247dfe16cc22488
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from src import app from flask import render_template from .controladores.blog import * from .controladores.about import * from .controladores.post import * from .interpreter import get_all_proy, get_all_posts
20.083333
88
0.711618
d88e2fadb48418563200bc00bbc87d76d7edb36c
447
py
Python
src/L00_Entry_tasks/entry_task3.py
VeraVol42/EduNet
e24ef5f0bfe24df54da7d77f1e3b2164083b3331
[ "CC0-1.0" ]
null
null
null
src/L00_Entry_tasks/entry_task3.py
VeraVol42/EduNet
e24ef5f0bfe24df54da7d77f1e3b2164083b3331
[ "CC0-1.0" ]
null
null
null
src/L00_Entry_tasks/entry_task3.py
VeraVol42/EduNet
e24ef5f0bfe24df54da7d77f1e3b2164083b3331
[ "CC0-1.0" ]
null
null
null
operand = input() st1 = input().split(' ') st2 = input().split(' ') x1, y1, z1, x2, y2, z2 = float(st1[0]), float(st1[1]), float(st1[2]), float(st2[0]), float(st2[1]), float(st2[2]) if operand == "+": res = (x1+x2, y1+y2, z1+z2) elif operand == "-": res = (x1-x2, y1-y2, z1-z2) elif operand == "@": res = (x1...
31.928571
113
0.536913
d88fb1b1d25ac7b6d5954cd96c458c9d471fb3b6
4,109
py
Python
inb/tests/test_linkedin/test_driver.py
JoshiAyush/LinkedIn-Automator
6341867fb9bb974ecfe388d90d1860e9c85a3b3c
[ "MIT" ]
1
2021-01-05T17:29:02.000Z
2021-01-05T17:29:02.000Z
inb/tests/test_linkedin/test_driver.py
JoshiAyush/LinkedIn-Automator
6341867fb9bb974ecfe388d90d1860e9c85a3b3c
[ "MIT" ]
null
null
null
inb/tests/test_linkedin/test_driver.py
JoshiAyush/LinkedIn-Automator
6341867fb9bb974ecfe388d90d1860e9c85a3b3c
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Creative Commons # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, me...
40.683168
127
0.748601
d894b0c0efe076de25e246895a699bb7e8b99808
417
py
Python
app/__init__.py
6ixBit/Personal-Website
0f51563b06c1955775ba2ac4e78786cad21cdefa
[ "MIT" ]
null
null
null
app/__init__.py
6ixBit/Personal-Website
0f51563b06c1955775ba2ac4e78786cad21cdefa
[ "MIT" ]
1
2021-06-02T00:29:28.000Z
2021-06-02T00:29:28.000Z
app/__init__.py
6ixBit/Personal-Website
0f51563b06c1955775ba2ac4e78786cad21cdefa
[ "MIT" ]
null
null
null
from flask import Flask from flask_bootstrap import Bootstrap from flask_nav import Nav from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_mail import Mail from Config import Config app = Flask(__name__) app.config.from_object(Config) Bootstrap(app) nav = Nav(app) db = SQLAlchemy(app)...
24.529412
51
0.805755
d895cb920f81b7b33316df8ee7c07eb1ad364352
3,037
py
Python
example-tests/example_Grid.py
Indomerun/pyHiChi
fdceb238dfed6433ee350d5c593ca5e2cd4fbd2b
[ "MIT" ]
11
2019-08-22T12:47:40.000Z
2022-01-28T16:07:29.000Z
example-tests/example_Grid.py
Indomerun/pyHiChi
fdceb238dfed6433ee350d5c593ca5e2cd4fbd2b
[ "MIT" ]
14
2019-09-02T08:24:55.000Z
2022-02-14T11:40:43.000Z
example-tests/example_Grid.py
Indomerun/pyHiChi
fdceb238dfed6433ee350d5c593ca5e2cd4fbd2b
[ "MIT" ]
9
2019-07-31T13:25:20.000Z
2022-01-28T16:07:45.000Z
import sys sys.path.append("../bin/") import pyHiChi as hichi import numpy as np field_size = hichi.Vector3d(5, 10, 11) min_coords = hichi.Vector3d(0.0, 1.0, 0.0) max_coords = hichi.Vector3d(3.5, 7.0, 2*np.pi) field_step = (max_coords - min_coords) / field_size time_step = 1e-16 field1 = hichi.YeeField(field_size, ...
24.103175
94
0.622654
d8965469242d4e72828c54c19635f40c52cf043e
850
py
Python
douyu/douyu/spiders/spider.py
smujm/ScrapyProjects
04e9eb42c64805475893be595db4f3b6530ba597
[ "MIT" ]
null
null
null
douyu/douyu/spiders/spider.py
smujm/ScrapyProjects
04e9eb42c64805475893be595db4f3b6530ba597
[ "MIT" ]
null
null
null
douyu/douyu/spiders/spider.py
smujm/ScrapyProjects
04e9eb42c64805475893be595db4f3b6530ba597
[ "MIT" ]
null
null
null
import scrapy import json from douyu.items import DouyuItem
29.310345
80
0.611765
d896eb0aaef01df589adcc60f76141166ae14cf0
1,716
py
Python
corehq/ex-submodules/dimagi/utils/parsing.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/ex-submodules/dimagi/utils/parsing.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/ex-submodules/dimagi/utils/parsing.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from datetime import date, time, datetime from dateutil.parser import parse import dateutil.tz TRUE_STRINGS = ("true", "t", "yes", "y", "1") FALSE_STRINGS = ("false", "f", "no", "n", "0") def string_to_boolean(val): """ A very dumb string to boolean converter. Will fail hard if the conversion doesn't s...
26.8125
77
0.654429
d897d34629e02e537f13d11f12451d99e9ab865b
521
py
Python
synonym.py
amber5634/Synonym-Generator-using-Word-Net
5ce0f71d4639bbae39ee0d279103e576065c094a
[ "MIT" ]
null
null
null
synonym.py
amber5634/Synonym-Generator-using-Word-Net
5ce0f71d4639bbae39ee0d279103e576065c094a
[ "MIT" ]
null
null
null
synonym.py
amber5634/Synonym-Generator-using-Word-Net
5ce0f71d4639bbae39ee0d279103e576065c094a
[ "MIT" ]
null
null
null
import nltk from nltk.corpus import wordnet p1 = Keyword() p1.synonymn_generator()
26.05
60
0.520154
d89df34e44c6bfd5607bac84838a10b568961067
3,846
py
Python
scripts/src/__main__.py
9999years/dotfiles
763c2ca5f8aeb3b64eb28262e6708135e6cd2005
[ "MIT" ]
1
2020-09-09T15:06:43.000Z
2020-09-09T15:06:43.000Z
scripts/src/__main__.py
9999years/dotfiles
763c2ca5f8aeb3b64eb28262e6708135e6cd2005
[ "MIT" ]
2
2020-09-09T14:16:21.000Z
2020-09-29T17:31:15.000Z
scripts/src/__main__.py
9999years/dotfiles
763c2ca5f8aeb3b64eb28262e6708135e6cd2005
[ "MIT" ]
2
2020-09-04T14:55:57.000Z
2020-10-30T19:08:58.000Z
"""Entry point for linking dotfiles. """ from __future__ import annotations import argparse import os import subprocess import sys from dataclasses import dataclass from pathlib import Path from typing import Optional from . import log from .link import Linker from .resolver import Resolver from .scan import Scanner...
26.524138
84
0.595684
d89ebf9a6b581abb7634d793d29dd4afbd5a6f07
3,778
py
Python
verified.py
tophersmith/veracode-verified-checker
f2f85dbb4b8039c9ccd9848367a37b9caab0c9aa
[ "MIT" ]
null
null
null
verified.py
tophersmith/veracode-verified-checker
f2f85dbb4b8039c9ccd9848367a37b9caab0c9aa
[ "MIT" ]
null
null
null
verified.py
tophersmith/veracode-verified-checker
f2f85dbb4b8039c9ccd9848367a37b9caab0c9aa
[ "MIT" ]
null
null
null
import sys import json import requests from veracode_api_signing.plugin_requests import RequestsAuthPluginVeracodeHMAC from pprint import pprint from datetime import datetime from app_definition import AppDefinition from verified_check import VerifiedStandard, VerifiedTeam, VerifiedContinuous from verified_report impor...
32.568966
123
0.724722
d8a1ec63d4e8397c65e7cf35b675ad0d08be473f
3,850
py
Python
pulsemeeter/EqPopover.py
dacid44/pulsemeeter
5367fe910c8d1eea2a0523549c2c26c446547445
[ "MIT" ]
null
null
null
pulsemeeter/EqPopover.py
dacid44/pulsemeeter
5367fe910c8d1eea2a0523549c2c26c446547445
[ "MIT" ]
null
null
null
pulsemeeter/EqPopover.py
dacid44/pulsemeeter
5367fe910c8d1eea2a0523549c2c26c446547445
[ "MIT" ]
null
null
null
import os from .settings import LAYOUT_DIR from gi import require_version as gi_require_version gi_require_version('Gtk', '3.0') from gi.repository import Gtk,Gdk
37.378641
73
0.585714
d8a43b2abf45ed0ee34b929a0e82dda9a77e57e1
717
py
Python
ModfiyImagesSizes.py
Idolized22/Coco-llike-dataset-creator-
f0aa95710fdb339e31788b366d7360f0f994b88e
[ "MIT" ]
null
null
null
ModfiyImagesSizes.py
Idolized22/Coco-llike-dataset-creator-
f0aa95710fdb339e31788b366d7360f0f994b88e
[ "MIT" ]
null
null
null
ModfiyImagesSizes.py
Idolized22/Coco-llike-dataset-creator-
f0aa95710fdb339e31788b366d7360f0f994b88e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: idolized22 """ import PIL.Image from matplotlib import pyplot import numpy as np
24.724138
82
0.659693
d8a4ffb4de362b2f4a2070e30f28d8fd00e06627
206
py
Python
try-except.py
arhue/python-learning
058c93315fd5aa76584e32432e7c80cb3972478e
[ "MIT" ]
null
null
null
try-except.py
arhue/python-learning
058c93315fd5aa76584e32432e7c80cb3972478e
[ "MIT" ]
null
null
null
try-except.py
arhue/python-learning
058c93315fd5aa76584e32432e7c80cb3972478e
[ "MIT" ]
null
null
null
x=input("Enter a no. I will convert to integer") z=1 try: y=int(float(x)) z="float" except: z="wrong" if z=="wrong": print("fix your input") else: print("int of your input is:", y)
15.846154
48
0.57767
d8a6e96e4ea3e27e49331d747cf1b4b5f9ab87ec
3,426
py
Python
merge_vcfs_individual.py
AndersenLab/pyPipeline
89af32c545f309686b6bbf2d1f0e9681136642ba
[ "MIT" ]
5
2015-09-18T15:48:01.000Z
2022-03-11T02:24:12.000Z
merge_vcfs_individual.py
AndersenLab/pyPipeline
89af32c545f309686b6bbf2d1f0e9681136642ba
[ "MIT" ]
null
null
null
merge_vcfs_individual.py
AndersenLab/pyPipeline
89af32c545f309686b6bbf2d1f0e9681136642ba
[ "MIT" ]
null
null
null
#!/usr/bin/python #SBATCH --nodes=1 #SBATCH --ntasks=1 #SBATCH --cpus-per-task=8 #SBATCH --nodes=1 #SBATCH --mem=8192 # # This script merges SNP and Indel Files called with Samtool and Freebayes that are called individually. # import sys import os from utils import * from utils.configuration import * from commands im...
38.066667
131
0.585231
d8a7d33720089c11a74552c8c79ff625254ee85a
769
py
Python
cuhk03/init_env.py
cwpeng-cn/TorchReID
e6cf1d38bfc3100ea19e3e92aa4306b79fd3517b
[ "MIT" ]
null
null
null
cuhk03/init_env.py
cwpeng-cn/TorchReID
e6cf1d38bfc3100ea19e3e92aa4306b79fd3517b
[ "MIT" ]
null
null
null
cuhk03/init_env.py
cwpeng-cn/TorchReID
e6cf1d38bfc3100ea19e3e92aa4306b79fd3517b
[ "MIT" ]
null
null
null
import zipfile import os if not os.path.exists('./resnet_ibn_b.py'): download_and_prepare()
34.954545
118
0.559168
d8a907f41af888797cb8bfb82d2555a46654432c
2,109
py
Python
myutils/dictionaries.py
joeledwardson/betfair-browser
b641f134e60307250a0e51bafa849422ecf5264b
[ "MIT" ]
3
2021-11-23T19:03:02.000Z
2021-11-24T08:44:23.000Z
myutils/dictionaries.py
joeledwardson/betfair-browser
b641f134e60307250a0e51bafa849422ecf5264b
[ "MIT" ]
2
2021-11-23T18:47:31.000Z
2021-12-08T15:36:11.000Z
myutils/dictionaries.py
joeledwardson/betfair-browser
b641f134e60307250a0e51bafa849422ecf5264b
[ "MIT" ]
null
null
null
from typing import Iterable, Dict import copy from collections.abc import Mapping from .exceptions import DictException def is_dict_subset(x, y): """recursively determine if key value pairs in x are a subset of y""" for k, v in x.items(): if k not in y: return False elif type(v) i...
31.954545
113
0.573732
d8a962009dd9b86f4b5fe67a974e8bc3e24fe091
307
py
Python
Test/test_main_methods.py
abualrubbaraa/Baraa-Validator
bff356f4e35ea7de66de799e7f063c383e298d1f
[ "MIT" ]
null
null
null
Test/test_main_methods.py
abualrubbaraa/Baraa-Validator
bff356f4e35ea7de66de799e7f063c383e298d1f
[ "MIT" ]
null
null
null
Test/test_main_methods.py
abualrubbaraa/Baraa-Validator
bff356f4e35ea7de66de799e7f063c383e298d1f
[ "MIT" ]
null
null
null
from BaraaValidator.transactionValidators import validateTransactionsFolder, validateTransactionsFile import os test_mainMethods()
43.857143
101
0.807818
d8aa198eaa6cbdf332e325c46c63a1a3c514ea9f
2,020
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/api/activity.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/api/activity.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/api/activity.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
# -*- coding: utf-8 -*- # supports for XEP 0012 __all__ = ['Activity'] from headstock.api import Entity from headstock.api.jid import JID from headstock.lib.utils import generate_unique from bridge import Element as E from bridge import Attribute as A from bridge.common import XMPP_LAST_NS, XMPP_CLIENT_NS
30.606061
73
0.578713