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
e91ff99a3728e01c9518fdfe79d256b14ae28af1
353
py
Python
DataBase Sqlite3/NoteMeilheur.py
otmanabdoun/IHM-Python
624e961c2f6966b98bf2c1bc4dd276b812954ba1
[ "Apache-2.0" ]
3
2021-12-08T10:34:55.000Z
2022-01-17T21:02:40.000Z
NoteMeilheur.py
otmanabdoun/IHM-Python
624e961c2f6966b98bf2c1bc4dd276b812954ba1
[ "Apache-2.0" ]
null
null
null
NoteMeilheur.py
otmanabdoun/IHM-Python
624e961c2f6966b98bf2c1bc4dd276b812954ba1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 3 04:38:07 2021 @author: User """ import sqlite3 connexion = sqlite3.connect("dbM2IQL.db") curseur = connexion.cursor() curseur.execute("""SELECT e.Nom, c.note FROM Etudiant as e INNER JOIN CF as c ON e.id = c.fk_etudiant ORDER BY c.note DESC LIMIT ...
25.214286
70
0.651558
e921b1bc0cceec8b113f393fdb06b057357e8848
24,410
py
Python
packages/robotframework-test-assistant/robotframework-test-assistant.py
jg8481/leon
b94a6c753cee79f4568ab7a83932351f7c949791
[ "MIT" ]
3
2020-01-15T20:49:42.000Z
2020-11-22T01:41:33.000Z
packages/robotframework-test-assistant/robotframework-test-assistant.py
jg8481/leon
b94a6c753cee79f4568ab7a83932351f7c949791
[ "MIT" ]
null
null
null
packages/robotframework-test-assistant/robotframework-test-assistant.py
jg8481/leon
b94a6c753cee79f4568ab7a83932351f7c949791
[ "MIT" ]
3
2020-01-18T17:06:56.000Z
2020-12-16T16:03:57.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import utils import os import os.path import sys import subprocess import re import time filepath = os.path.dirname(os.path.realpath(__file__)) small_time_delay = 5 ##--> Use this to set up your small time delay. This time delay is in seconds. medium_time_delay = 20 ##--...
70.549133
292
0.7712
e9225ac8234cba226c9c33772de98e2d065d77b6
349
py
Python
chapter2/bandit.py
mtrazzi/understanding-rl
83a9b7608c805189a39b4ef81893f6ebe982f9e1
[ "MIT" ]
95
2020-04-26T12:36:07.000Z
2020-05-02T13:23:47.000Z
chapter2/bandit.py
3outeille/rl-book-challenge
b02595b0aec3e9632ef5d9814e925384931089bd
[ "MIT" ]
2
2020-09-24T20:29:29.000Z
2021-11-27T11:17:45.000Z
chapter2/bandit.py
3outeille/rl-book-challenge
b02595b0aec3e9632ef5d9814e925384931089bd
[ "MIT" ]
15
2020-04-27T04:10:02.000Z
2020-04-30T21:42:04.000Z
import numpy as np
19.388889
52
0.638968
e92450a33cbfd0332cf6d8991a025ba1f22e0f12
1,765
py
Python
Sublime_Plugin/EditFormat.py
dtysky/Gal2Renpy
59a70c5d336394155dedaf82d17bd99297f92d1a
[ "MIT" ]
36
2015-04-19T05:03:10.000Z
2022-03-29T08:12:38.000Z
Sublime_Plugin/EditFormat.py
dtysky/Gal2Renpy
59a70c5d336394155dedaf82d17bd99297f92d1a
[ "MIT" ]
2
2016-05-05T07:24:09.000Z
2017-11-01T05:32:11.000Z
Sublime_Plugin/EditFormat.py
dtysky/Gal2Renpy
59a70c5d336394155dedaf82d17bd99297f92d1a
[ "MIT" ]
2
2016-12-01T02:12:33.000Z
2020-03-09T02:27:19.000Z
#coding:utf-8 ######################### #Copyright(c) 2014 dtysky #########################
19.611111
82
0.273088
e924c56b0295f7f4a6d78dab18bd9428b1fe0209
272
py
Python
wesgame.py
WestenPy/Curso_em_video
9f6a9775d27e1b86d54b381aba5da69b2ae21b27
[ "MIT" ]
null
null
null
wesgame.py
WestenPy/Curso_em_video
9f6a9775d27e1b86d54b381aba5da69b2ae21b27
[ "MIT" ]
null
null
null
wesgame.py
WestenPy/Curso_em_video
9f6a9775d27e1b86d54b381aba5da69b2ae21b27
[ "MIT" ]
null
null
null
from random import randint ataque()
16
31
0.5
e924f0db03f4f2a8c126f7c109a518852a2aa24a
6,850
py
Python
ProcessingData/get_gp-bias.py
gomes-lab/SARA_ScienceAdvances
61848d1c92a66bd58c8c195e5b2bb250ef8efb51
[ "MIT" ]
1
2022-01-13T12:17:29.000Z
2022-01-13T12:17:29.000Z
ProcessingData/get_gp-bias.py
gomes-lab/SARA_ScienceAdvances
61848d1c92a66bd58c8c195e5b2bb250ef8efb51
[ "MIT" ]
null
null
null
ProcessingData/get_gp-bias.py
gomes-lab/SARA_ScienceAdvances
61848d1c92a66bd58c8c195e5b2bb250ef8efb51
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Script to extract the gp bias features from microscopy images """ import sys import json import os import copy as cp import numpy as np import glob import matplotlib.pyplot as plt import matplotlib from numpy.polynomial import polynomial import offsets as GS from probability_dist import * imp...
35.492228
163
0.646277
e925522b3d3915457215980e5bca266c8fd2ff38
2,448
py
Python
monitoring/automation/monitor.py
shane0/flask-website-monitor
39031b9207c97baef4b10a792e038f241bcdc857
[ "MIT" ]
1
2017-04-13T05:29:15.000Z
2017-04-13T05:29:15.000Z
monitoring/automation/monitor.py
shane0/flask-website-monitor
39031b9207c97baef4b10a792e038f241bcdc857
[ "MIT" ]
1
2017-04-12T23:44:58.000Z
2017-04-12T23:44:58.000Z
monitoring/automation/monitor.py
shane0/flask-website-monitor
39031b9207c97baef4b10a792e038f241bcdc857
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ A website monitor. """ import sys import traceback import requests import re import json import datetime DEFAULT_CONFIG_FILE = 'config.json'
28.137931
126
0.541258
e9268aab7efb78626ab35cbb0daf3f9adf12bcb0
253
py
Python
tests/test_MicropythonBoards.py
dwighthubbard/micropython-cloudmanager
1b41eeaf7f5a34a622826bf0030a9f5c45d1aefc
[ "MIT" ]
1
2017-02-22T03:18:48.000Z
2017-02-22T03:18:48.000Z
tests/test_MicropythonBoards.py
dwighthubbard/micropython-cloudmanager
1b41eeaf7f5a34a622826bf0030a9f5c45d1aefc
[ "MIT" ]
null
null
null
tests/test_MicropythonBoards.py
dwighthubbard/micropython-cloudmanager
1b41eeaf7f5a34a622826bf0030a9f5c45d1aefc
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import sys sys.path.insert(0, '.') from cloudmanager.board import MicropythonBoards for result in MicropythonBoards().execute("import os;print(os.uname())"): print(result.read().strip())
25.3
73
0.754941
e92912ace35fc868f85b6a3bdb13260570590334
412
py
Python
Chapter03/c3_27_datadotworld_1.py
andrewjcoxon/Hands-On-Data-Science-with-Anaconda
82504a059ecd284b3599fa9af2b3eb6bbd6e28f3
[ "MIT" ]
25
2018-06-25T16:21:09.000Z
2022-02-08T09:28:29.000Z
Hands-On-Data-Science-with-Anaconda-master/Hands-On-Data-Science-with-Anaconda-master/Chapter03/c3_27_datadotworld_1.py
manual123/Nacho-Jupyter-Notebooks
e75523434b1a90313a6b44e32b056f63de8a7135
[ "MIT" ]
null
null
null
Hands-On-Data-Science-with-Anaconda-master/Hands-On-Data-Science-with-Anaconda-master/Chapter03/c3_27_datadotworld_1.py
manual123/Nacho-Jupyter-Notebooks
e75523434b1a90313a6b44e32b056f63de8a7135
[ "MIT" ]
17
2018-06-15T02:55:30.000Z
2022-03-09T15:24:42.000Z
""" Name : c3_27_datadotworld_1.py Book : Hands-on Data Science with Anaconda) Publisher: Packt Publishing Ltd. Author : Yuxing Yan and James Yan Date : 1/15/2018 email : yany@canisius.edu paulyxy@hotmail.com """ import datadotworld as dw dataset = 'jonloyens/an-intro-to-dat...
27.466667
51
0.694175
e92a3ce5abab1bfe02516472d0fc6c56a482d48d
15,964
py
Python
strutil.py
IloveKanade/k3fmt
13a81562b9fc706dbf7fc05fcae130260bc2551d
[ "MIT" ]
null
null
null
strutil.py
IloveKanade/k3fmt
13a81562b9fc706dbf7fc05fcae130260bc2551d
[ "MIT" ]
3
2021-08-06T07:24:40.000Z
2022-03-23T06:58:36.000Z
strutil.py
IloveKanade/k3fmt
13a81562b9fc706dbf7fc05fcae130260bc2551d
[ "MIT" ]
1
2021-08-04T08:41:33.000Z
2021-08-04T08:41:33.000Z
import re import os import errno import string import subprocess import k3color listtype = (tuple, list) invisible_chars = ''.join(map(chr, list(range(0, 32)))) invisible_chars_re = re.compile('[%s]' % re.escape(invisible_chars)) def line_pad(linestr, padding=''): """ :param linestr: multiple line string ...
26.084967
103
0.5057
e92ba6f82fbd7b5de0f238a51cd87521f2ccd146
16,920
py
Python
camera.py
Euclideon/udSDKPython
a82157ab6382fda6291bdcca9ec2a51203b95b2a
[ "MIT" ]
4
2020-09-03T05:35:15.000Z
2021-11-08T04:31:55.000Z
camera.py
Euclideon/udSDKPython
a82157ab6382fda6291bdcca9ec2a51203b95b2a
[ "MIT" ]
1
2020-08-18T06:49:21.000Z
2020-08-18T06:49:21.000Z
camera.py
Euclideon/udSDKPython
a82157ab6382fda6291bdcca9ec2a51203b95b2a
[ "MIT" ]
1
2020-09-11T07:52:32.000Z
2020-09-11T07:52:32.000Z
import logging import math import numpy as np import pyglet import udSDK logger = logging.getLogger(__name__) def get_view_vertices(self): """ Returns ------- the extents of the viewing volume projected onto 2d space """ #TODO make this correctly display the location of near and far plane...
29.32409
176
0.642317
e930d65f391b7723982c2721df59191c1d9d3a9f
316
py
Python
src/menu.py
simonenicf/Escape-from-Narlilia
cd512860e74d5df81504cccbcb667fdf794c8dda
[ "MIT" ]
null
null
null
src/menu.py
simonenicf/Escape-from-Narlilia
cd512860e74d5df81504cccbcb667fdf794c8dda
[ "MIT" ]
1
2020-11-03T13:41:49.000Z
2020-11-03T14:05:22.000Z
src/menu.py
simonenicf/Escape-from-Narlilia
cd512860e74d5df81504cccbcb667fdf794c8dda
[ "MIT" ]
null
null
null
import sys
24.307692
60
0.487342
e9321bfef23bb209db9bf3ff382e024a2aab02ee
337
py
Python
envipyarclib/gptool/parameter/templates/ulong64array.py
envi-idl/envipyarclib
90135652510c3d53c5f51177252c1fea2639bf22
[ "MIT" ]
1
2019-08-03T05:10:18.000Z
2019-08-03T05:10:18.000Z
envipyarclib/gptool/parameter/templates/ulong64array.py
envi-idl/envipyarclib
90135652510c3d53c5f51177252c1fea2639bf22
[ "MIT" ]
null
null
null
envipyarclib/gptool/parameter/templates/ulong64array.py
envi-idl/envipyarclib
90135652510c3d53c5f51177252c1fea2639bf22
[ "MIT" ]
1
2020-02-25T14:12:50.000Z
2020-02-25T14:12:50.000Z
""" Defines the parameter template for the specified data type. """ from .basicarray import BASICARRAY def template(): """Factory method for this parameter template class""" return ULONG64ARRAY('GPLong')
19.823529
63
0.706231
e9324103dd727dbfbcd73f1ba4bae58a0ea2e051
41,336
py
Python
Dataflow/full_executer_wordshop.py
Smurf-maker/WordShop
ac0095ee28207f23744337d4cb35c5ca764d7e26
[ "MIT" ]
null
null
null
Dataflow/full_executer_wordshop.py
Smurf-maker/WordShop
ac0095ee28207f23744337d4cb35c5ca764d7e26
[ "MIT" ]
null
null
null
Dataflow/full_executer_wordshop.py
Smurf-maker/WordShop
ac0095ee28207f23744337d4cb35c5ca764d7e26
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Full Executer WordShop.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1kGSQWNtImJknauUN9L8ZRRwIzAdwbmo_ First, we load the pegasus paraphraser. """ # Commented out IPython magic to ensure Python compatibility. !git cl...
42.483042
230
0.682287
e932fb4ec343373146508adfa905b3c8915cb66b
4,831
py
Python
train.py
ppujol76/-Pere_Transformers
e267bcc6559c998accaed647cacbff253031f8b0
[ "MIT" ]
null
null
null
train.py
ppujol76/-Pere_Transformers
e267bcc6559c998accaed647cacbff253031f8b0
[ "MIT" ]
null
null
null
train.py
ppujol76/-Pere_Transformers
e267bcc6559c998accaed647cacbff253031f8b0
[ "MIT" ]
1
2021-06-21T08:40:18.000Z
2021-06-21T08:40:18.000Z
import torch import os from model.visualization import Visualization from panel.main import tensorboard_panel from torch.utils.data.dataset import Subset import random import numpy as np def split_subsets(dataset,train_percentage=0.8,all_captions=True): """ Performs the split of the dataset into Train and Test """ ...
35.262774
114
0.673981
e933799d41eabf2ce3d0578ad558fcf9ab8d220d
2,251
py
Python
views/probabilidade.py
pxcx/ambar-backend
350baabb492e4fbc1002ea851d1cef4fc999b81a
[ "MIT" ]
null
null
null
views/probabilidade.py
pxcx/ambar-backend
350baabb492e4fbc1002ea851d1cef4fc999b81a
[ "MIT" ]
null
null
null
views/probabilidade.py
pxcx/ambar-backend
350baabb492e4fbc1002ea851d1cef4fc999b81a
[ "MIT" ]
null
null
null
from flask import jsonify from sqlalchemy import func from datetime import datetime, date from models.previsao import Previsao, db
39.491228
97
0.52821
e937f0e5ec885071b7daceb7fa5456d999a1e95f
293
py
Python
scripts/makeNegativesList.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
8
2016-11-20T19:43:45.000Z
2020-12-09T04:58:05.000Z
scripts/makeNegativesList.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
45
2015-05-04T20:41:05.000Z
2017-07-17T12:04:13.000Z
scripts/makeNegativesList.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
9
2016-11-20T19:43:46.000Z
2020-09-01T21:01:54.000Z
import sys,os import utils as cu params = cu.loadParams('fullList positivesList output') full = [x for x in open(params['fullList'])] positives = [x for x in open(params['positivesList'])] out = open(params['output'],'w') for r in full: if r not in positives: out.write(r) out.close()
22.538462
55
0.692833
e93a77efc359563f0911c10f45a8c7e3f5ed8fd4
1,354
py
Python
tests/test_model.py
alexdawn/rollinghub
6043c12520d7e0b0596f28c166616c1014e1f870
[ "MIT" ]
null
null
null
tests/test_model.py
alexdawn/rollinghub
6043c12520d7e0b0596f28c166616c1014e1f870
[ "MIT" ]
11
2019-08-18T21:37:28.000Z
2022-03-21T22:17:37.000Z
tests/test_model.py
alexdawn/rollinghub
6043c12520d7e0b0596f28c166616c1014e1f870
[ "MIT" ]
null
null
null
import pytest from rollinghub.db import get_db
27.08
72
0.656573
e93be486b0635edc83619c16da55bfa370ed7c0e
19,672
py
Python
openpype/hosts/unreal/plugins/load/load_camera.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/hosts/unreal/plugins/load/load_camera.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
openpype/hosts/unreal/plugins/load/load_camera.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Load camera from FBX.""" from pathlib import Path import unreal from unreal import EditorAssetLibrary from unreal import EditorLevelLibrary from unreal import EditorLevelUtils from openpype.pipeline import ( AVALON_CONTAINER_ID, legacy_io, ) from openpype.hosts.unreal.api import plu...
35.509025
79
0.573861
e93d157cf7aab5c1bcb7bfeee8e1f4209c714ad6
2,862
py
Python
recommander-lib/src/main.py
armendu/recommander-system
e2d13838237584cc5cc4de2f4ea2d63f9f3b8889
[ "MIT" ]
1
2021-04-29T04:15:13.000Z
2021-04-29T04:15:13.000Z
recommander-lib/src/main.py
armendu/recommander-system
e2d13838237584cc5cc4de2f4ea2d63f9f3b8889
[ "MIT" ]
null
null
null
recommander-lib/src/main.py
armendu/recommander-system
e2d13838237584cc5cc4de2f4ea2d63f9f3b8889
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Main application file """ __author__ = "Armend Ukehaxhaj" __version__ = "1.0.0" __license__ = "MIT" from logzero import logger import numpy as np import pandas as pd import csv import pickle from word2vec import word2vec from preprocessor import preprocessor import json primary_data_filen...
27.519231
74
0.615653
e93d7534c6c036af381481b03aad9004f87feec7
27
py
Python
tests/models/__init__.py
Stevenjin8/song2vec
908de06881d0598dcd2869d89709a2d50654a7fe
[ "MIT" ]
null
null
null
tests/models/__init__.py
Stevenjin8/song2vec
908de06881d0598dcd2869d89709a2d50654a7fe
[ "MIT" ]
null
null
null
tests/models/__init__.py
Stevenjin8/song2vec
908de06881d0598dcd2869d89709a2d50654a7fe
[ "MIT" ]
null
null
null
"""Tests for ML models."""
13.5
26
0.592593
e93dd26357433b7e319a7cf157df9046ce5be7e6
2,378
py
Python
spark_auto_mapper/data_types/datetime.py
gagan-chawla/SparkAutoMapper
7b0aca2e4bece42b3229550f3f2fcc9607f79437
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper/data_types/datetime.py
gagan-chawla/SparkAutoMapper
7b0aca2e4bece42b3229550f3f2fcc9607f79437
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper/data_types/datetime.py
gagan-chawla/SparkAutoMapper
7b0aca2e4bece42b3229550f3f2fcc9607f79437
[ "Apache-2.0" ]
null
null
null
from typing import Optional, List from pyspark.sql import Column, DataFrame from pyspark.sql.functions import coalesce, to_timestamp from spark_auto_mapper.data_types.column import AutoMapperDataTypeColumn from spark_auto_mapper.data_types.data_type_base import AutoMapperDataTypeBase from spark_auto_mapper.data_types...
38.983607
109
0.670311
e93e7a9f148352765158065775751a4ec95c81cf
1,425
py
Python
backend/registry/migrations/0002_auto_20220105_1336.py
mrmap-community/MrMap
5dc05b7a5339b967047cd207755718f670a1d7cd
[ "MIT" ]
10
2021-03-12T17:46:38.000Z
2022-03-11T10:59:01.000Z
backend/registry/migrations/0002_auto_20220105_1336.py
mrmap-community/mrmap
5dc05b7a5339b967047cd207755718f670a1d7cd
[ "MIT" ]
214
2021-03-10T19:24:17.000Z
2022-03-15T07:34:24.000Z
backend/registry/migrations/0002_auto_20220105_1336.py
mrmap-community/MrMap
5dc05b7a5339b967047cd207755718f670a1d7cd
[ "MIT" ]
9
2021-03-16T19:47:54.000Z
2022-03-11T11:01:22.000Z
# Generated by Django 3.2.9 on 2022-01-05 12:36 from django.db import migrations, models import django.db.models.manager
36.538462
162
0.65193
e93e898e14d862c8186e0e63f6ce2ac5ff75423c
15,524
py
Python
relah.py
ttwj/ReLah
8231636d4698001dc615848096a97ebd78ae2713
[ "WTFPL" ]
3
2020-01-31T08:22:49.000Z
2021-01-10T20:02:37.000Z
relah.py
ttwj/ReLah
8231636d4698001dc615848096a97ebd78ae2713
[ "WTFPL" ]
null
null
null
relah.py
ttwj/ReLah
8231636d4698001dc615848096a97ebd78ae2713
[ "WTFPL" ]
null
null
null
# Python implementation of DBS PayLah! # By ttwj - 2017 import base64 import random import string #remember to install pycryptodome! import datetime from Crypto.Cipher import AES, PKCS1_v1_5 from Crypto.PublicKey import RSA import lxml.etree, json from lxml import html from pprint import pprint from io import String...
33.67462
987
0.626578
e93fa44d8c8e89fa596f6f1e1b5862803b660a31
13,090
py
Python
st_dashboard.py
amirtaghavy/TDI-capstone-RedditTalks-vs-MarketAction
62d6b754348ed7ae5d5ef4bd31eb2553a76c8892
[ "MIT" ]
null
null
null
st_dashboard.py
amirtaghavy/TDI-capstone-RedditTalks-vs-MarketAction
62d6b754348ed7ae5d5ef4bd31eb2553a76c8892
[ "MIT" ]
null
null
null
st_dashboard.py
amirtaghavy/TDI-capstone-RedditTalks-vs-MarketAction
62d6b754348ed7ae5d5ef4bd31eb2553a76c8892
[ "MIT" ]
null
null
null
import streamlit as st import dill import pandas as pd import plotly.express as px from datetime import date import statsmodels with open('compiled-sentiment-history.pkd', 'rb') as f: df_compiled = dill.load(f) df_compiled.drop_duplicates(inplace=True) dates = list({idx[1] for idx in df_compiled.ind...
55.940171
504
0.58793
e940349493488e9c1525d630923a4b14c70fd2d8
745
py
Python
hoofball/migrations/0002_comment.py
leo-holanda/Hoofball
ccf4399d33a6381acd2ff41efce3dbf0dca6a092
[ "MIT" ]
1
2021-07-30T10:05:43.000Z
2021-07-30T10:05:43.000Z
hoofball/migrations/0002_comment.py
leo-holanda/Hoofball
ccf4399d33a6381acd2ff41efce3dbf0dca6a092
[ "MIT" ]
null
null
null
hoofball/migrations/0002_comment.py
leo-holanda/Hoofball
ccf4399d33a6381acd2ff41efce3dbf0dca6a092
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-01 20:26 from django.db import migrations, models import django.utils.timezone
29.8
114
0.587919
e9417a482c1a501cccd1b38f496ec064d6eb9c78
627
py
Python
clock/clock/lib.py
litheblas/blasrummet-rpi
5300e61c0d0d93fd77cd489eb02165793453b99f
[ "MIT" ]
null
null
null
clock/clock/lib.py
litheblas/blasrummet-rpi
5300e61c0d0d93fd77cd489eb02165793453b99f
[ "MIT" ]
null
null
null
clock/clock/lib.py
litheblas/blasrummet-rpi
5300e61c0d0d93fd77cd489eb02165793453b99f
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import logging from time import sleep from datetime import datetime from .settings import PULSE_DURATION from .io import pull, release logger = logging.getLogger(__name__) def sleep_until_next_minute(): """ Sleeps until the time is xx:xx:00 with good...
24.115385
77
0.717703
e9425f8008305f97cda9a9d9e3075c0d79dde033
38
py
Python
CH_03_pythonic_syntax/T_17_mypy.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_03_pythonic_syntax/T_17_mypy.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_03_pythonic_syntax/T_17_mypy.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
some_number: int some_number = 'test'
12.666667
20
0.763158
e9432f57bd7e613914b0ff79424dc9823a1f7a75
2,513
py
Python
crowdgezwitscher/users/migrations/0004_auto_20170402_1358.py
Strassengezwitscher/Crowdgezwitscher
afdd433acb35c1a554ba79464b744975de065151
[ "MIT" ]
4
2016-07-22T07:20:31.000Z
2016-11-13T18:13:34.000Z
crowdgezwitscher/users/migrations/0004_auto_20170402_1358.py
Strassengezwitscher/Strassengezwitscher
afdd433acb35c1a554ba79464b744975de065151
[ "MIT" ]
402
2016-04-26T08:38:17.000Z
2022-03-11T23:26:49.000Z
crowdgezwitscher/users/migrations/0004_auto_20170402_1358.py
Strassengezwitscher/Crowdgezwitscher
afdd433acb35c1a554ba79464b744975de065151
[ "MIT" ]
1
2018-01-14T16:58:57.000Z
2018-01-14T16:58:57.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-04-02 13:58 from django.db import migrations def forwards_func(apps, schema_editor): """Grant permissions for TwitterAccount to admins and mods. Includes creating a new view permission. """ # We can't import the models directly as they may be...
36.955882
108
0.702746
e945ff9db15d3f14ca3c606adc1612355944457e
909
py
Python
gallery/03_sp/plot_wavelets.py
RandallBalestriero/TheanoXLA
d8778c2eb3254b478cef4f45d934bf921e695619
[ "Apache-2.0" ]
67
2020-02-21T21:26:46.000Z
2020-06-14T14:25:42.000Z
gallery/03_sp/plot_wavelets.py
RandallBalestriero/TheanoXLA
d8778c2eb3254b478cef4f45d934bf921e695619
[ "Apache-2.0" ]
8
2020-02-22T14:45:56.000Z
2020-06-07T16:56:47.000Z
gallery/03_sp/plot_wavelets.py
RandallBalestriero/TheanoXLA
d8778c2eb3254b478cef4f45d934bf921e695619
[ "Apache-2.0" ]
4
2020-02-21T17:34:46.000Z
2020-05-30T08:30:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # flake8: noqa """ Morlet Wavelet in time and Fourier domain ========================================= This example shows how to generate a wavelet filter-bank. """ import symjax import symjax.tensor as T import matplotlib.pyplot as plt import numpy as np J = 5 Q = 4 s...
22.170732
73
0.628163
3a5d52f7066df721bcc6a4454c0e49f976cabd83
39
py
Python
kfdata/__main__.py
kylef-archive/KFData.py
685d58255c9f8518834e395d94d3b75d3dd3eceb
[ "BSD-3-Clause" ]
1
2015-11-08T13:23:39.000Z
2015-11-08T13:23:39.000Z
kfdata/__main__.py
kylef/KFData.py
685d58255c9f8518834e395d94d3b75d3dd3eceb
[ "BSD-3-Clause" ]
null
null
null
kfdata/__main__.py
kylef/KFData.py
685d58255c9f8518834e395d94d3b75d3dd3eceb
[ "BSD-3-Clause" ]
null
null
null
from kfdata.manage import main main()
9.75
30
0.769231
3a5f1a224d28494c27bf5124ac4e6a08b36bb55e
240
py
Python
com/sujoym/basic/sys.py
sujoym/python-examples
ee49a6aeb50749611341b2850587b30c38b34509
[ "Apache-2.0" ]
null
null
null
com/sujoym/basic/sys.py
sujoym/python-examples
ee49a6aeb50749611341b2850587b30c38b34509
[ "Apache-2.0" ]
null
null
null
com/sujoym/basic/sys.py
sujoym/python-examples
ee49a6aeb50749611341b2850587b30c38b34509
[ "Apache-2.0" ]
null
null
null
import sys #sys.stderr.write('Stderr text\n'); #sys.stderr.flush() #sys.stdout.write('Stdout text\n'); #print(sys.argv[1]) #if len(sys.argv)>1: # print(float(sys.argv[1])*5); main(sys.argv[1]);
17.142857
35
0.641667
3a5f95c4dd3189822a688ab6608502a352c54b4b
167
py
Python
slackforms/handlers/__init__.py
Albatrous/django-slack-forms
baee37942085bf2f9e35beb9a4a4aa767b319b35
[ "MIT" ]
1
2019-06-20T00:11:58.000Z
2019-06-20T00:11:58.000Z
slackforms/handlers/__init__.py
Albatrous/django-slack-forms
baee37942085bf2f9e35beb9a4a4aa767b319b35
[ "MIT" ]
3
2020-02-11T23:46:14.000Z
2021-06-10T21:10:37.000Z
slackforms/handlers/__init__.py
Albatrous/django-slack-forms
baee37942085bf2f9e35beb9a4a4aa767b319b35
[ "MIT" ]
3
2019-12-13T06:53:18.000Z
2021-06-04T07:12:56.000Z
# flake8: noqa from .form import FormHandler from .slash import SlashHandler from .manual import ManualHandler from .interactions import ActionHandler, MessageHandler
27.833333
55
0.838323
3a61c5a4f7f2b0b08f169681bdd4f9538e9142c6
13,902
py
Python
RocMethod.py
meiyuanqing/MetaThreshold
fbccc7e5356606b929211eedaf5371506232c1b5
[ "MIT" ]
null
null
null
RocMethod.py
meiyuanqing/MetaThreshold
fbccc7e5356606b929211eedaf5371506232c1b5
[ "MIT" ]
null
null
null
RocMethod.py
meiyuanqing/MetaThreshold
fbccc7e5356606b929211eedaf5371506232c1b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding:utf-8 """ Author : Yuanqing Mei Date : 2021/4/8 Time: 15:42 File: RocMethod.py HomePage : http://github.com/yuanqingmei Email : dg1533019@smail.nju.edu.cn This script find out the cutoff of a metric value by maximizing the AUC value and ROCBPPMFMGM methods. References [1] Bender, R. ...
47.447099
120
0.535319
3a6257117bb5b39b2295a1e04bfebd82a73a4f27
1,372
py
Python
app/models.py
jonathankamau/note-taking-app
f7315dbde34d1a06aa10bc0548fc85770fa4c142
[ "MIT" ]
1
2020-07-18T16:35:42.000Z
2020-07-18T16:35:42.000Z
app/models.py
jonathankamau/note-taking-app
f7315dbde34d1a06aa10bc0548fc85770fa4c142
[ "MIT" ]
32
2020-07-19T18:19:24.000Z
2021-06-04T23:45:34.000Z
app/models.py
jonathankamau/note-taking-app
f7315dbde34d1a06aa10bc0548fc85770fa4c142
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import User
29.826087
78
0.715015
3a63a86305fa3e3ced908249d69f673dd8d16d58
717
py
Python
migrations/versions/2018-09-27_12:25:31__3cbc86a0a9d7.py
gems-uff/sms
01cfa84bd467617c58f58da04711c5097dd93fe6
[ "MIT" ]
null
null
null
migrations/versions/2018-09-27_12:25:31__3cbc86a0a9d7.py
gems-uff/sms
01cfa84bd467617c58f58da04711c5097dd93fe6
[ "MIT" ]
null
null
null
migrations/versions/2018-09-27_12:25:31__3cbc86a0a9d7.py
gems-uff/sms
01cfa84bd467617c58f58da04711c5097dd93fe6
[ "MIT" ]
null
null
null
"""empty message Revision ID: 3cbc86a0a9d7 Revises: 77894fcde804 Create Date: 2018-09-27 12:25:31.893545 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3cbc86a0a9d7' down_revision = '77894fcde804' branch_labels = None depends_on = None
24.724138
106
0.707113
3a640b59523119016904d7053ed1bc557df19331
2,685
py
Python
mp_roguelike/ai.py
nonk123/mp_roguelike
48785b44dd3f2518a5a639a6609670408e7ea1f5
[ "MIT" ]
null
null
null
mp_roguelike/ai.py
nonk123/mp_roguelike
48785b44dd3f2518a5a639a6609670408e7ea1f5
[ "MIT" ]
null
null
null
mp_roguelike/ai.py
nonk123/mp_roguelike
48785b44dd3f2518a5a639a6609670408e7ea1f5
[ "MIT" ]
null
null
null
import random from .util import sign
26.584158
79
0.582495
3a640e6170ae4b45fbad29d7cf0c3f5b49ab9f01
83
py
Python
mach_cad/model_obj/materials/__init__.py
Severson-Group/MachEval
dbb7999188133f8744636da53cab475ae538ce80
[ "BSD-3-Clause" ]
6
2021-11-02T20:12:32.000Z
2021-11-13T10:50:35.000Z
mach_cad/model_obj/materials/__init__.py
Severson-Group/MachEval
dbb7999188133f8744636da53cab475ae538ce80
[ "BSD-3-Clause" ]
18
2021-11-29T20:14:55.000Z
2022-03-02T07:17:37.000Z
mach_cad/model_obj/materials/__init__.py
Severson-Group/MachEval
dbb7999188133f8744636da53cab475ae538ce80
[ "BSD-3-Clause" ]
1
2022-01-29T00:52:38.000Z
2022-01-29T00:52:38.000Z
from .material_generic import * __all__ = [] __all__ += material_generic.__all__
13.833333
35
0.759036
3a6432af138a6ef234f6f37cbbda6934b7bb3c37
7,657
py
Python
hpc-historias-clinicas/settings.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
hpc-historias-clinicas/settings.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
hpc-historias-clinicas/settings.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
import os PROJECT_ROOT = os.path.dirname(__file__) # DEBUG # See: https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = False # See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug TEMPLATE_DEBUG = DEBUG # END DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS...
38.094527
87
0.750947
3a66f861ec173370f50a0b31924da0bccb5e1872
2,661
py
Python
romanyh/transposition.py
napulen/romanyh
34bc75d40bf532eb20607db763fcbc2693cac35f
[ "BSD-3-Clause" ]
null
null
null
romanyh/transposition.py
napulen/romanyh
34bc75d40bf532eb20607db763fcbc2693cac35f
[ "BSD-3-Clause" ]
5
2020-12-08T04:37:21.000Z
2021-01-06T03:36:30.000Z
romanyh/transposition.py
napulen/romanyh
34bc75d40bf532eb20607db763fcbc2693cac35f
[ "BSD-3-Clause" ]
null
null
null
import re import sys from music21.interval import Interval from music21.key import Key def findKeysInRomanTextString(rntxt): """Get all the keys in a RomanText string. Receive a string with valid RomanText content. Output a list of all the key changes that happen throughout the content. """ ...
36.452055
70
0.693724
3a67795832eb29853a6ccb60a0d65c013b0a8f82
4,847
py
Python
management_api_app/tests_ma/test_service_bus/test_deployment_status_update.py
LizaShak/AzureTRE
b845eb4b73439ef7819565aaadb36f43b6484ad9
[ "MIT" ]
2
2021-11-14T16:57:16.000Z
2022-03-13T15:14:26.000Z
management_api_app/tests_ma/test_service_bus/test_deployment_status_update.py
anatbal/AzureTRE
d1d4891657c737092e761c4aaf80b04ff0f03fc7
[ "MIT" ]
null
null
null
management_api_app/tests_ma/test_service_bus/test_deployment_status_update.py
anatbal/AzureTRE
d1d4891657c737092e761c4aaf80b04ff0f03fc7
[ "MIT" ]
null
null
null
import json import pytest import uuid from mock import AsyncMock, patch from db.errors import EntityDoesNotExist from models.domain.resource import Status from models.domain.workspace import Workspace from models.domain.resource import Deployment from resources import strings from service_bus.deployment_status_update...
41.784483
115
0.810192
3a67c5e3bdd0bcd555184047e8d52728b4026b70
1,384
py
Python
fms-python/face_core.py
seanarwa/firm
774965004766c2ce59e17bb08692370280b3e95c
[ "Apache-2.0" ]
null
null
null
fms-python/face_core.py
seanarwa/firm
774965004766c2ce59e17bb08692370280b3e95c
[ "Apache-2.0" ]
null
null
null
fms-python/face_core.py
seanarwa/firm
774965004766c2ce59e17bb08692370280b3e95c
[ "Apache-2.0" ]
null
null
null
import os import time import logging as log import numpy as np from scikit-learn.preprocessing import normalize # local modules import config
33.756098
126
0.760838
3a695ae89ca40a6004f7716018ec39b583cbbbfd
1,587
py
Python
tests/sms/models/test_reschedule_sms_messages.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
tests/sms/models/test_reschedule_sms_messages.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
tests/sms/models/test_reschedule_sms_messages.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
from datetime import date, datetime, timedelta import pytest from pydantic.error_wrappers import ValidationError from infobip_channels.sms.models.body.reschedule_sms_messages import ( RescheduleSMSMessagesMessageBody, ) from infobip_channels.sms.models.query_parameters.reschedule_messages import ( RescheduleS...
27.842105
83
0.672968
3a69ee7bd76a61928b4ca3a0383eeeac9e541646
8,349
py
Python
python/mxnet/device.py
t-triobox/incubator-mxnet
93aa9e33fcb2f216179c691ed9461bc96e37ae70
[ "Apache-2.0" ]
1
2021-11-09T01:40:17.000Z
2021-11-09T01:40:17.000Z
python/mxnet/device.py
t-triobox/incubator-mxnet
93aa9e33fcb2f216179c691ed9461bc96e37ae70
[ "Apache-2.0" ]
null
null
null
python/mxnet/device.py
t-triobox/incubator-mxnet
93aa9e33fcb2f216179c691ed9461bc96e37ae70
[ "Apache-2.0" ]
1
2018-07-19T00:43:30.000Z
2018-07-19T00:43:30.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
28.016779
108
0.618517
3a6a4945d24f523a66e8dd1cc3a18e4d3749558b
5,578
py
Python
_pkg_KuFunc/mod_SetLabel.py
tianlunjiang/_NukeStudio_v2
5ed9b9217aff16d903bdcda5c2f1e1cd3bebe367
[ "CNRI-Python" ]
6
2019-08-27T01:30:15.000Z
2020-11-17T00:40:01.000Z
_pkg_KuFunc/mod_SetLabel.py
tianlunjiang/_NukeMods
47861bfc273262abba55b9f9a61782a5d89479b1
[ "CNRI-Python" ]
2
2019-01-22T04:09:28.000Z
2019-01-23T15:11:39.000Z
_pkg_KuFunc/mod_SetLabel.py
tianlunjiang/_NukeMods
47861bfc273262abba55b9f9a61782a5d89479b1
[ "CNRI-Python" ]
1
2020-08-03T22:43:23.000Z
2020-08-03T22:43:23.000Z
# ------------------------------------------------------------------------------ # Module Import # ------------------------------------------------------------------------------ import nuke, nukescripts import platform from Qt import QtWidgets, QtGui, QtCore #------------------------------------------------...
25.126126
103
0.573682
3a6bbdcced64c871e2fdd5b7e14da08f29defe31
897
py
Python
account/migrations/0003_auto_20161110_2135.py
fitahol/fitahol
ce84dc909aa98f2dc7594ef26568e015cbfe0e94
[ "MIT" ]
2
2017-02-20T14:11:30.000Z
2017-06-11T16:10:33.000Z
account/migrations/0003_auto_20161110_2135.py
fitahol/fitahol
ce84dc909aa98f2dc7594ef26568e015cbfe0e94
[ "MIT" ]
null
null
null
account/migrations/0003_auto_20161110_2135.py
fitahol/fitahol
ce84dc909aa98f2dc7594ef26568e015cbfe0e94
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-11-10 21:35 from __future__ import unicode_literals from django.db import migrations, models
27.181818
102
0.585284
3a6c6afbecc178b754f00e36139090ce170c777c
780
py
Python
imgur_stuff.py
djs2022/DataEntrySite
aac8e71fe0a8b159113b1488cbe7a8a7e641bf1d
[ "MIT" ]
null
null
null
imgur_stuff.py
djs2022/DataEntrySite
aac8e71fe0a8b159113b1488cbe7a8a7e641bf1d
[ "MIT" ]
null
null
null
imgur_stuff.py
djs2022/DataEntrySite
aac8e71fe0a8b159113b1488cbe7a8a7e641bf1d
[ "MIT" ]
null
null
null
import requests import os
27.857143
77
0.574359
3a6d77c44f6c1309b10cae742c418b58169828c7
4,489
py
Python
roles/tox/library/tox_parse_output.py
g-chauvel/zuul-jobs
7ea241a626f2f2e05d4aeb8cf0328d22736b1f0f
[ "Apache-2.0" ]
null
null
null
roles/tox/library/tox_parse_output.py
g-chauvel/zuul-jobs
7ea241a626f2f2e05d4aeb8cf0328d22736b1f0f
[ "Apache-2.0" ]
null
null
null
roles/tox/library/tox_parse_output.py
g-chauvel/zuul-jobs
7ea241a626f2f2e05d4aeb8cf0328d22736b1f0f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2018 Red Hat # # This module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This software is di...
28.775641
74
0.642237
3a6f8d05144479257560ebcab7dfac73539e7dff
4,199
py
Python
rpyc/utils/authenticators.py
fruch/rpyc
8db3fdcef2272d468aca562465279370d075be72
[ "MIT" ]
null
null
null
rpyc/utils/authenticators.py
fruch/rpyc
8db3fdcef2272d468aca562465279370d075be72
[ "MIT" ]
null
null
null
rpyc/utils/authenticators.py
fruch/rpyc
8db3fdcef2272d468aca562465279370d075be72
[ "MIT" ]
null
null
null
""" authenticators: the server instance accepts an authenticator object, which is basically any callable (i.e., a function) that takes the newly connected socket and "authenticates" it. the authenticator should return a socket-like object with its associated credentials (a tuple), or raise AuthenticationError if it ...
32.550388
92
0.639676
3a71c85b49b297a21ae96cfc5a938c33c9b45b83
1,156
py
Python
kratos/apps/configuration/migrations/0001_initial.py
cipher-ops/backend-kts
7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319
[ "MIT" ]
1
2020-11-30T09:53:40.000Z
2020-11-30T09:53:40.000Z
kratos/apps/configuration/migrations/0001_initial.py
cipher-ops/backend-kts
7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319
[ "MIT" ]
null
null
null
kratos/apps/configuration/migrations/0001_initial.py
cipher-ops/backend-kts
7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-09-21 06:44 from django.db import migrations, models import django.db.models.deletion
35.030303
132
0.583045
3a734bc1e70aa19debbc9af66f403f4c7634a66a
2,823
py
Python
events/migrations/0002_auto_20180325_0035.py
eforsell/eurovisiontippning
1a26dac0e06c5eef9a752ea6f68ad9b9567b6261
[ "MIT" ]
null
null
null
events/migrations/0002_auto_20180325_0035.py
eforsell/eurovisiontippning
1a26dac0e06c5eef9a752ea6f68ad9b9567b6261
[ "MIT" ]
null
null
null
events/migrations/0002_auto_20180325_0035.py
eforsell/eurovisiontippning
1a26dac0e06c5eef9a752ea6f68ad9b9567b6261
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-24 23:35 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone
34.426829
139
0.557563
3a737b4d0699668e68dfd11d0393dc995f8e0e88
574
py
Python
python-code/transformer-sample/basic/sentiment_analysis.py
87-midnight/NewbieInJava
ba84153c6b3a382e620c4df7892d653be2e1a607
[ "MIT" ]
null
null
null
python-code/transformer-sample/basic/sentiment_analysis.py
87-midnight/NewbieInJava
ba84153c6b3a382e620c4df7892d653be2e1a607
[ "MIT" ]
2
2019-10-22T08:21:09.000Z
2019-10-22T08:21:09.000Z
python-code/transformer-sample/basic/sentiment_analysis.py
87-midnight/NewbieInJava
ba84153c6b3a382e620c4df7892d653be2e1a607
[ "MIT" ]
null
null
null
# import torch from transformers import BertTokenizer, BertForSequenceClassification torch.manual_seed(0) tokenizer = BertTokenizer.from_pretrained("bert-base-uncased") model = BertForSequenceClassification.from_pretrained("bert-base-uncased", problem_type="multi_label_classification", num_labels=2) inputs = tokeniz...
41
131
0.801394
3a750f402f6cc67161071bf3b54785b45c55a45d
1,293
py
Python
examples/tutorial/parallel_amuse_script.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
131
2015-06-04T09:06:57.000Z
2022-02-01T12:11:29.000Z
examples/tutorial/parallel_amuse_script.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
690
2015-10-17T12:18:08.000Z
2022-03-31T16:15:58.000Z
examples/tutorial/parallel_amuse_script.py
rieder/amuse
3ac3b6b8f922643657279ddee5c8ab3fc0440d5e
[ "Apache-2.0" ]
102
2015-01-22T10:00:29.000Z
2022-02-09T13:29:43.000Z
import time import numpy from amuse.lab import Huayno from amuse.lab import Hermite from amuse.lab import nbody_system from amuse.lab import new_king_model from matplotlib import pyplot if __name__ in ('__main__'): N = 1024 W0 = 7.0 t_end = 0.1 | nbody_system.time bodies = new_king_model(N, W0) ...
25.352941
71
0.664346
3a75e62e27fdd3a634c7ec673852b4fb62407232
311
py
Python
modules/random_cat.py
ChaseBosman/chatbot
a39e655e6d586fa596471cd20617dff5f9795a96
[ "Unlicense" ]
3
2019-10-19T12:07:06.000Z
2020-10-05T17:24:56.000Z
modules/random_cat.py
ChaseBosman/chatbot
a39e655e6d586fa596471cd20617dff5f9795a96
[ "Unlicense" ]
17
2019-10-05T12:30:17.000Z
2021-07-25T20:06:33.000Z
modules/random_cat.py
ChaseBosman/chatbot
a39e655e6d586fa596471cd20617dff5f9795a96
[ "Unlicense" ]
26
2018-10-19T05:43:12.000Z
2020-10-02T05:27:48.000Z
import requests import json
25.916667
74
0.614148
3a788b9c9eab36584491247515f283acec64a519
407
py
Python
Pycharm_Project/0414/2.py
duanjiefei/Python-Study
88e17a3eab9112a2515f09b2bcf4e032059cc28b
[ "Apache-2.0" ]
null
null
null
Pycharm_Project/0414/2.py
duanjiefei/Python-Study
88e17a3eab9112a2515f09b2bcf4e032059cc28b
[ "Apache-2.0" ]
null
null
null
Pycharm_Project/0414/2.py
duanjiefei/Python-Study
88e17a3eab9112a2515f09b2bcf4e032059cc28b
[ "Apache-2.0" ]
null
null
null
# import time # test = timer(test) # test() test() #@timer == test=timer(test)
20.35
67
0.619165
3a794a8245df8781f9b1fc1f4f5373e8c9e7411d
3,255
py
Python
docs/source/conf.py
DanielWarfield1/nClusterFramework
21b68226ab1ffa810281a261feabe1d360a5146d
[ "MIT" ]
null
null
null
docs/source/conf.py
DanielWarfield1/nClusterFramework
21b68226ab1ffa810281a261feabe1d360a5146d
[ "MIT" ]
2
2021-12-15T05:36:01.000Z
2021-12-20T01:15:45.000Z
docs/source/conf.py
DanielWarfield1/nClusterFramework
21b68226ab1ffa810281a261feabe1d360a5146d
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
44.589041
97
0.710906
3a79851a367aea689a1293265d02727ae30bb330
7,877
py
Python
cvstudio/view/widgets/common/treeview_model.py
haruiz/PytorchCvStudio
ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef
[ "MIT" ]
32
2019-10-31T03:10:52.000Z
2020-12-23T11:50:53.000Z
cvstudio/view/widgets/common/treeview_model.py
haruiz/CvStudio
ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef
[ "MIT" ]
19
2019-10-31T15:06:05.000Z
2020-06-15T02:21:55.000Z
cvstudio/view/widgets/common/treeview_model.py
haruiz/PytorchCvStudio
ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef
[ "MIT" ]
8
2019-10-31T03:32:50.000Z
2020-07-17T20:47:37.000Z
import itertools import typing from typing import Any from PyQt5 import QtCore from PyQt5.QtCore import QModelIndex, pyqtSignal, QObject from PyQt5.QtGui import QColor from PyQt5.QtWidgets import QAbstractItemDelegate, QWidget, QStyleOptionViewItem, QSpinBox class CustomModelSignals(QObject): data_changed = pyq...
30.296154
116
0.612416
3a7af5581758219d8326f2091b7b6047cf305d66
1,761
py
Python
pyrallel/tests/test_map_reduce.py
usc-isi-i2/paralyzer
2991e9e74f17e35d8c7d9f86d57c5c7f7a311915
[ "MIT" ]
13
2019-07-02T22:41:46.000Z
2022-02-20T13:30:00.000Z
pyrallel/tests/test_map_reduce.py
usc-isi-i2/paralyzer
2991e9e74f17e35d8c7d9f86d57c5c7f7a311915
[ "MIT" ]
14
2019-07-03T18:04:25.000Z
2021-05-20T20:45:33.000Z
pyrallel/tests/test_map_reduce.py
usc-isi-i2/paralyzer
2991e9e74f17e35d8c7d9f86d57c5c7f7a311915
[ "MIT" ]
3
2020-02-12T21:54:17.000Z
2020-08-24T20:41:18.000Z
import multiprocessing as mp from pyrallel.map_reduce import MapReduce NUM_OF_PROCESSOR = max(2, int(mp.cpu_count() / 2))
21.216867
53
0.540034
3a7bafa3c7ab3354d60a1fcd0376c7ade47cb21d
707
py
Python
evtx_to_dataframe.py
esua/evtx_to_dataframe
390bf470e92092e66827373ed7e8b012a4fe94f6
[ "Apache-2.0" ]
null
null
null
evtx_to_dataframe.py
esua/evtx_to_dataframe
390bf470e92092e66827373ed7e8b012a4fe94f6
[ "Apache-2.0" ]
null
null
null
evtx_to_dataframe.py
esua/evtx_to_dataframe
390bf470e92092e66827373ed7e8b012a4fe94f6
[ "Apache-2.0" ]
null
null
null
import argparse import Evtx.Evtx as evtx import pandas as pd import xmltodict import re parser = argparse.ArgumentParser(description="Convert Windows EVTX event log file to DataFrame.") parser.add_argument("evtx", type=str, help="Path to the Windows EVTX event log file") args = parser.parse_args() with evtx.Evtx(args...
33.666667
110
0.693069
3a7bc36048999e619539f1b4ea6519f544722e26
562
py
Python
test/sandwich.py
DynamicCai/Dynamic-Explorer
c909206b3db52f76f23499b1cb43520d3475b14e
[ "MIT" ]
null
null
null
test/sandwich.py
DynamicCai/Dynamic-Explorer
c909206b3db52f76f23499b1cb43520d3475b14e
[ "MIT" ]
null
null
null
test/sandwich.py
DynamicCai/Dynamic-Explorer
c909206b3db52f76f23499b1cb43520d3475b14e
[ "MIT" ]
null
null
null
sandwich_meat={ 1:{'chicken':3}, 2:{'beef':5}, 3:{'pork':4}, 4:{'bacon':4}, 5:{'sausage':4}, 6:{'omelette':2}, 7:{'none':0} } sandwich_sauce=['mayonnaise','ketchup','yellowmustard','blackpeppersauce','cheese','none'] sandwich_vegetable=['lettuce','slicedtomatoes','slicedpickles','potat...
18.733333
101
0.565836
3a7c85d6a1879df3d91cd853104103d5c1ce8afa
1,553
py
Python
paprotka/feature/cepstral.py
michalsosn/paprotka
d6079eefbade2cb8be5896777a7d50ac968d42ec
[ "MIT" ]
1
2019-10-29T04:14:40.000Z
2019-10-29T04:14:40.000Z
paprotka/feature/cepstral.py
michalsosn/paprotka
d6079eefbade2cb8be5896777a7d50ac968d42ec
[ "MIT" ]
null
null
null
paprotka/feature/cepstral.py
michalsosn/paprotka
d6079eefbade2cb8be5896777a7d50ac968d42ec
[ "MIT" ]
null
null
null
import math import numpy as np from scipy import signal, fftpack
33.042553
90
0.675467
3a7d8a539d82fbecac85da845cd748fe400b1a12
2,688
py
Python
arelle/plugin/unpackSecEisFile.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
292
2015-01-27T03:31:51.000Z
2022-03-26T07:00:05.000Z
arelle/plugin/unpackSecEisFile.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
94
2015-04-18T23:03:00.000Z
2022-03-28T17:24:55.000Z
arelle/plugin/unpackSecEisFile.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
200
2015-01-13T03:55:47.000Z
2022-03-29T12:38:56.000Z
''' Unpack SEC EIS File is an example of a plug-in to the GUI menu that will save the unpacked contents of an SEC EIS File in a directory. (c) Copyright 2012 Mark V Systems Limited, All rights reserved. ''' __pluginInfo__ = { 'name': 'Unpack SEC EIS File', 'version': '0.9', 'description': "This plug-in u...
43.354839
134
0.604911
3a7e02c43c6ebf2859a5eb96f826707b1b0a7b33
2,251
py
Python
fpcalc.py
johnlawsharrison/pyacoustid
55321b316f09e782a1c0914826419be799908e01
[ "MIT" ]
203
2016-01-18T14:05:49.000Z
2022-03-25T04:04:42.000Z
fpcalc.py
johnlawsharrison/pyacoustid
55321b316f09e782a1c0914826419be799908e01
[ "MIT" ]
41
2016-03-08T10:28:14.000Z
2021-11-26T20:53:15.000Z
fpcalc.py
johnlawsharrison/pyacoustid
55321b316f09e782a1c0914826419be799908e01
[ "MIT" ]
56
2016-01-09T04:22:40.000Z
2022-01-29T16:01:39.000Z
#!/usr/bin/env python # This file is part of pyacoustid. # Copyright 2012, Lukas Lalinsky. # # 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 limitati...
34.106061
77
0.660595
3a7e4975152b719956030d04fd87b6aff71f9b39
203
py
Python
app/views/dashboard/leadership/__init__.py
Wern-rm/raton.by
68f862f2bc0551bf2327e9d6352c0cde93f45301
[ "MIT" ]
null
null
null
app/views/dashboard/leadership/__init__.py
Wern-rm/raton.by
68f862f2bc0551bf2327e9d6352c0cde93f45301
[ "MIT" ]
null
null
null
app/views/dashboard/leadership/__init__.py
Wern-rm/raton.by
68f862f2bc0551bf2327e9d6352c0cde93f45301
[ "MIT" ]
null
null
null
from app.views.dashboard.leadership.index import leaderships from app.views.dashboard.leadership.delete import leadership_delete from app.views.dashboard.leadership.activation import leadership_activated
67.666667
74
0.8867
3a7ec9858eb7869bba6e4129ded3a123b302b0e2
3,071
py
Python
Learning/button groups.py
atharva0300/PyQt5-Practice
0feacca6518190646a345ce2ea75e071e7861ac5
[ "MIT" ]
null
null
null
Learning/button groups.py
atharva0300/PyQt5-Practice
0feacca6518190646a345ce2ea75e071e7861ac5
[ "MIT" ]
null
null
null
Learning/button groups.py
atharva0300/PyQt5-Practice
0feacca6518190646a345ce2ea75e071e7861ac5
[ "MIT" ]
1
2021-11-16T10:18:07.000Z
2021-11-16T10:18:07.000Z
# Button Groups in Python import PyQt5 from PyQt5.QtWidgets import QApplication, QHBoxLayout, QLabel, QButtonGroup, QMainWindow, QDialog, QPushButton, QVBoxLayout import sys from PyQt5 import QtGui from PyQt5.QtGui import QFont, QPixmap from PyQt5.QtCore import QSize if __name__ == "__main__": App =...
28.700935
124
0.581895
3a7f65074a8ce42ce2f4be7f8b8b5034567b834f
20,126
py
Python
ct-tests/lib/crus_integration_test.py
Cray-HPE/cray-crus
6643aa3eb3debe5cbe0088f6a30b7e56ca1b1f17
[ "MIT" ]
null
null
null
ct-tests/lib/crus_integration_test.py
Cray-HPE/cray-crus
6643aa3eb3debe5cbe0088f6a30b7e56ca1b1f17
[ "MIT" ]
1
2022-03-02T21:06:21.000Z
2022-03-04T17:32:14.000Z
ct-tests/lib/crus_integration_test.py
Cray-HPE/cray-crus
6643aa3eb3debe5cbe0088f6a30b7e56ca1b1f17
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # MIT License # # (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP # # 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 w...
45.226966
138
0.673507
3a80351f1ae9d22c12f2dfa0609670916e8b44d0
3,071
py
Python
backend/transaction/models.py
elielagmay/react-budgeteer
49a25dbd6dd6ea5d8bc93421eefbc12808f585af
[ "Unlicense" ]
2
2018-10-23T00:40:53.000Z
2021-05-31T08:19:40.000Z
backend/transaction/models.py
elielagmay/react-budgeteer
49a25dbd6dd6ea5d8bc93421eefbc12808f585af
[ "Unlicense" ]
null
null
null
backend/transaction/models.py
elielagmay/react-budgeteer
49a25dbd6dd6ea5d8bc93421eefbc12808f585af
[ "Unlicense" ]
null
null
null
from decimal import Decimal from django.core.exceptions import ValidationError from django.db import models from app.utils import get_balances
29.528846
75
0.626506
3a804a776b085e92ef90bbf2391ea52e871ea437
2,335
py
Python
src/games/textquiz.py
aleksandrgordienko/melissa-quiz
49b165acc9aae0ad84cf751cbeb4f6a27dd5ab0f
[ "MIT" ]
null
null
null
src/games/textquiz.py
aleksandrgordienko/melissa-quiz
49b165acc9aae0ad84cf751cbeb4f6a27dd5ab0f
[ "MIT" ]
null
null
null
src/games/textquiz.py
aleksandrgordienko/melissa-quiz
49b165acc9aae0ad84cf751cbeb4f6a27dd5ab0f
[ "MIT" ]
null
null
null
# python-telegram-quiz # @author: Aleksandr Gordienko # @site: https://github.com/aleksandrgordienko/melissa-quiz from random import randint from sqlalchemy import Column, Integer, String from sqlalchemy.ext.declarative import declarative_base Base = declarative_base()
33.357143
81
0.621842
3a818c77d8d52a71bd103be2681594c2e4e919a8
1,246
py
Python
Automate the Boring Stuff with Python/readDocx.py
m-barnes/Python
0940d5f9b832c28703a32691db287b1361ce6ecc
[ "MIT" ]
null
null
null
Automate the Boring Stuff with Python/readDocx.py
m-barnes/Python
0940d5f9b832c28703a32691db287b1361ce6ecc
[ "MIT" ]
null
null
null
Automate the Boring Stuff with Python/readDocx.py
m-barnes/Python
0940d5f9b832c28703a32691db287b1361ce6ecc
[ "MIT" ]
null
null
null
import docx import time import os from os import system from pprint import pprint finished = False while finished == False: parseFile()
20.766667
139
0.652488
3a84202d32e5e1c571adc31fc572e8596c4a5a08
87
py
Python
rura/pipeline/__init__.py
fdabek1/rura
6779733149d7e4181be54ecb72fbd4de6d71c678
[ "MIT" ]
null
null
null
rura/pipeline/__init__.py
fdabek1/rura
6779733149d7e4181be54ecb72fbd4de6d71c678
[ "MIT" ]
null
null
null
rura/pipeline/__init__.py
fdabek1/rura
6779733149d7e4181be54ecb72fbd4de6d71c678
[ "MIT" ]
null
null
null
from .dataset import Dataset from .model import Model from .transform import Transform
21.75
32
0.827586
3a8504e3359b503e6fccca39bd8d8317686a767b
5,707
py
Python
originalCode_JMG/data/dataimportallIN.py
dataforgoodfr/batch9_validalab
f333bea8203fd1e4ed098b6e2d51a7f7b05ae530
[ "MIT" ]
null
null
null
originalCode_JMG/data/dataimportallIN.py
dataforgoodfr/batch9_validalab
f333bea8203fd1e4ed098b6e2d51a7f7b05ae530
[ "MIT" ]
null
null
null
originalCode_JMG/data/dataimportallIN.py
dataforgoodfr/batch9_validalab
f333bea8203fd1e4ed098b6e2d51a7f7b05ae530
[ "MIT" ]
1
2021-04-19T21:27:58.000Z
2021-04-19T21:27:58.000Z
import networkx as nx from py2neo import Graph, Node, Relationship import pandas as pd import random graph = Graph("bolt://localhost:7687", auth=("neo4j", "Password")) def importGexf(gexffilepath, depth = 0): ''' Reads gexf network file from hyphe, update or create all nodes and relationships in neo4j data...
38.823129
126
0.58805
3a851eb1905fe0976754043eca815207cc550202
4,023
py
Python
code_base/excess_mortality/decode_args.py
Mlad-en/COV-BG
dabc6875e49b1fdb113ed691fbf70d5bdcb1846c
[ "MIT" ]
null
null
null
code_base/excess_mortality/decode_args.py
Mlad-en/COV-BG
dabc6875e49b1fdb113ed691fbf70d5bdcb1846c
[ "MIT" ]
null
null
null
code_base/excess_mortality/decode_args.py
Mlad-en/COV-BG
dabc6875e49b1fdb113ed691fbf70d5bdcb1846c
[ "MIT" ]
null
null
null
from code_base.excess_mortality.decode_loc_vars import * DECODE_DEMO_COL = { 'excess_mortality_by_sex_age_country': 'age,sex,unit,geo\\time', 'excess_mortality_by_sex_age_nuts3': 'unit,sex,age,geo\\time', 'europe_population_by_age_and_sex': 'freq;unit;sex;age;geo\TIME_PERIOD' } DECODE_DEMO_REPL = { 'e...
27
87
0.505096
3a862072dc82d94cea5c675c09cf65fbf2cd377c
4,510
py
Python
concord/ext/audio/middleware.py
nariman/concord-ext-audio
c7662507f641bfdba277509838433dbb24fe11a3
[ "MIT" ]
null
null
null
concord/ext/audio/middleware.py
nariman/concord-ext-audio
c7662507f641bfdba277509838433dbb24fe11a3
[ "MIT" ]
14
2019-02-19T03:14:07.000Z
2021-06-25T15:15:55.000Z
concord/ext/audio/middleware.py
narimanized/concord-ext-audio
c7662507f641bfdba277509838433dbb24fe11a3
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2017-2018 Nariman Safiulin 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...
34.166667
80
0.645455
3a862c1dfb4c8e4aff3392df9183017ab88ec2ab
775
py
Python
umtk/image/utils.py
kyle0x54/umtk
883090d84fce924e65184847e6b3048014616f5d
[ "Apache-2.0" ]
1
2020-08-03T12:27:02.000Z
2020-08-03T12:27:02.000Z
umtk/image/utils.py
kyle0x54/umtk
883090d84fce924e65184847e6b3048014616f5d
[ "Apache-2.0" ]
null
null
null
umtk/image/utils.py
kyle0x54/umtk
883090d84fce924e65184847e6b3048014616f5d
[ "Apache-2.0" ]
1
2020-11-28T03:27:10.000Z
2020-11-28T03:27:10.000Z
import os from pathlib import Path from typing import Any, Dict, Union import numpy as np def isdicom(path: Union[str, Path]) -> bool: """ Judge whether a given file is a valid dicom. Args: path: given file path. Returns: True if given path is a valid dicom, otherwise False. """ ...
22.142857
61
0.618065
3a866ce737d90dd7710156bcd56f1d122772201c
28,704
py
Python
tf_rl/common/utils.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
23
2019-04-04T17:34:56.000Z
2021-12-14T19:34:10.000Z
tf_rl/common/utils.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
null
null
null
tf_rl/common/utils.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
3
2019-07-17T23:56:36.000Z
2022-03-13T03:55:21.000Z
import tensorflow as tf import numpy as np import os, datetime, itertools, shutil, gym, sys from tf_rl.common.visualise import plot_Q_values from tf_rl.common.wrappers import MyWrapper, CartPole_Pixel, wrap_deepmind, make_atari """ TF basic Utility functions """ def eager_setup(): """ it eables an eager ex...
35.745953
162
0.610089
3a8780a44ac5da348e337c07269fb06faa67e8cd
2,284
py
Python
common/serializers.py
kollad/turbo-ninja
9c3f66b2af64aec01f522d19b309cfdd723e67cf
[ "MIT" ]
null
null
null
common/serializers.py
kollad/turbo-ninja
9c3f66b2af64aec01f522d19b309cfdd723e67cf
[ "MIT" ]
1
2017-12-14T05:35:38.000Z
2017-12-14T05:35:38.000Z
common/serializers.py
kollad/turbo-ninja
9c3f66b2af64aec01f522d19b309cfdd723e67cf
[ "MIT" ]
null
null
null
from collections import namedtuple, OrderedDict import json __author__ = 'kollad' def isnamedtuple(obj): """Heuristic check if an object is a namedtuple.""" return isinstance(obj, tuple) \ and hasattr(obj, "_fields") \ and hasattr(obj, "_asdict") \ and callable(obj._asdict) ...
34.606061
83
0.609019
3a8812b8a7ce8889a96abd8e38c4d8b8f1956ab6
1,079
py
Python
setup.py
mjw99/Musketeer
0299a7974ad90c09d8d9206fcf862e45f9fddf30
[ "MIT" ]
null
null
null
setup.py
mjw99/Musketeer
0299a7974ad90c09d8d9206fcf862e45f9fddf30
[ "MIT" ]
null
null
null
setup.py
mjw99/Musketeer
0299a7974ad90c09d8d9206fcf862e45f9fddf30
[ "MIT" ]
null
null
null
import setuptools with open("README.md") as readmeFile: long_description = readmeFile.read() setuptools.setup( name="musketeer", version="0.0.1", author="Daniil Soloviev", author_email="dos23@cam.ac.uk", description="A tool for fitting data from titration experiments.", long_description=lo...
29.162162
70
0.624652
3a886dc473f6df44d24e2498829541fd798461f5
1,358
py
Python
webapp/tests.py
carolFrohlich/string_checker
27a96ab9a315d47304b0eb6bdfd671be7a34b6f1
[ "MIT" ]
null
null
null
webapp/tests.py
carolFrohlich/string_checker
27a96ab9a315d47304b0eb6bdfd671be7a34b6f1
[ "MIT" ]
null
null
null
webapp/tests.py
carolFrohlich/string_checker
27a96ab9a315d47304b0eb6bdfd671be7a34b6f1
[ "MIT" ]
null
null
null
from django.test import TestCase # Create your tests here. from webapp.forms import contains_all_letters
24.690909
55
0.734904
3a89f586494444a77daa3b34a1bc45b72a73f85e
16,338
py
Python
EvolutiveStrategies.py
ignacioct/GeneticAlgorithms
6a92c3d5ec6f2796333576d93c3b6b421055b7a4
[ "MIT" ]
4
2020-11-26T16:18:23.000Z
2021-06-28T08:43:35.000Z
EvolutiveStrategies.py
ignacioct/GeneticAlgorithms
6a92c3d5ec6f2796333576d93c3b6b421055b7a4
[ "MIT" ]
null
null
null
EvolutiveStrategies.py
ignacioct/GeneticAlgorithms
6a92c3d5ec6f2796333576d93c3b6b421055b7a4
[ "MIT" ]
null
null
null
import copy import math import operator import random import sys from concurrent import futures import numpy as np import requests def main(): # Code for strategy of 1 individual # ee = EvolutiveStrategyOneIndividual(c=ce, is10=True) # ee.trainingLoop(10000) # Code for strategy with the best re...
35.135484
144
0.580487
3a8ac6ed77639549d9368218a7f979d0a6bcc7b7
1,638
py
Python
src/arago/hiro/client/exception.py
166MMX/hiro-python-library
fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5
[ "MIT" ]
null
null
null
src/arago/hiro/client/exception.py
166MMX/hiro-python-library
fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5
[ "MIT" ]
null
null
null
src/arago/hiro/client/exception.py
166MMX/hiro-python-library
fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5
[ "MIT" ]
null
null
null
from typing import Mapping, Any, List
27.762712
96
0.525031
3a8c95437dc709e3b0251893e5436db0d7890d0f
8,098
py
Python
yoongram/users/views.py
happyjy/yoonGram
20555619721065296d5dab88e80c763b4a3f295e
[ "MIT" ]
null
null
null
yoongram/users/views.py
happyjy/yoonGram
20555619721065296d5dab88e80c763b4a3f295e
[ "MIT" ]
9
2021-03-09T02:00:36.000Z
2022-02-26T10:13:36.000Z
yoongram/users/views.py
happyjy/yoonGram
20555619721065296d5dab88e80c763b4a3f295e
[ "MIT" ]
null
null
null
from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from . import models, serializers from yoongram.notifications import views as notifications_views # class Based Viwes # function Based Views # views: path("<slug:username>/following/", view=...
39.120773
261
0.645098
3a8cac712e69f85d4085b70791e0d285fbcb5630
2,507
py
Python
BabysFirstNeuralNetwork/ToyNN.py
dwpicott/BasicNeuralNetwork
ad4f5878098e5ad167ee2280f5b9b03af02dfa27
[ "MIT" ]
null
null
null
BabysFirstNeuralNetwork/ToyNN.py
dwpicott/BasicNeuralNetwork
ad4f5878098e5ad167ee2280f5b9b03af02dfa27
[ "MIT" ]
null
null
null
BabysFirstNeuralNetwork/ToyNN.py
dwpicott/BasicNeuralNetwork
ad4f5878098e5ad167ee2280f5b9b03af02dfa27
[ "MIT" ]
null
null
null
''' Basic Python tutorial neural network. Based on "A Neural Network in 11 Lines of Python" by i am trask https://iamtrask.github.io/2015/07/12/basic-python-network/ ''' import numpy as np # Training data: a 1 in the first column directly correlates with a 1 in the output # training features features = np.array([ ...
27.25
83
0.59274
3a8dcfa7190ecc79bdaa94535eba0d246aff05b9
1,122
py
Python
gaphor/UML/deployments/tests/test_connector.py
MartinIIOT/gaphor
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
[ "Apache-2.0" ]
null
null
null
gaphor/UML/deployments/tests/test_connector.py
MartinIIOT/gaphor
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
[ "Apache-2.0" ]
null
null
null
gaphor/UML/deployments/tests/test_connector.py
MartinIIOT/gaphor
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
[ "Apache-2.0" ]
null
null
null
import pytest from gaphor import UML from gaphor.core.modeling import Diagram from gaphor.core.modeling.modelinglanguage import ( CoreModelingLanguage, MockModelingLanguage, ) from gaphor.SysML.modelinglanguage import SysMLModelingLanguage from gaphor.UML.deployments.connector import ConnectorItem from gaphor....
27.365854
78
0.762923
3a8e21c35da0565b1474e19643e2481a81691a35
14,317
py
Python
utils/lists.py
luciano1337/legion-bot
022d1ef9eb77a26b57929f800dd55770206f8852
[ "MIT" ]
null
null
null
utils/lists.py
luciano1337/legion-bot
022d1ef9eb77a26b57929f800dd55770206f8852
[ "MIT" ]
null
null
null
utils/lists.py
luciano1337/legion-bot
022d1ef9eb77a26b57929f800dd55770206f8852
[ "MIT" ]
null
null
null
pozehug = [ 'https://media1.tenor.com/images/4d89d7f963b41a416ec8a55230dab31b/tenor.gif?itemid=5166500', 'https://media1.tenor.com/images/c7efda563983124a76d319813155bd8e/tenor.gif?itemid=15900664', 'https://media1.tenor.com/images/daffa3b7992a08767168614178cce7d6/tenor.gif?itemid=15249774', 'https://media1....
91.775641
1,661
0.777607
3a8f0982e03b38e05aa03eb45840308eeb8e3dc5
3,730
py
Python
py_ti/helper_loops.py
tlpcap/tlp_ti
8d72b316b332fd5e20785dbf19401883958c0666
[ "MIT" ]
7
2021-01-31T19:23:07.000Z
2022-03-10T21:22:41.000Z
py_ti/helper_loops.py
tlpcap/tlp_ti
8d72b316b332fd5e20785dbf19401883958c0666
[ "MIT" ]
null
null
null
py_ti/helper_loops.py
tlpcap/tlp_ti
8d72b316b332fd5e20785dbf19401883958c0666
[ "MIT" ]
null
null
null
import numpy as np from numba import jit
24.866667
77
0.507507
3a8feafe3391c0ddd2f78fb39a9371d4374c0a73
1,441
py
Python
netlog_viewer/netlog_viewer_build/netlog_viewer_dev_server_config.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
netlog_viewer/netlog_viewer_build/netlog_viewer_dev_server_config.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
netlog_viewer/netlog_viewer_build/netlog_viewer_dev_server_config.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# Copyright (c) 2016 The Chromium 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 json import os import netlog_viewer_project import webapp2 from webapp2 import Route
26.2
72
0.727967
3a9084ba87c0f5c49b0d1b1f5827e460b297b88e
3,991
py
Python
src/app.py
eug/cron-rest
2d0a2e0d0cf0cb464b71293802b85ac7076f9944
[ "MIT" ]
3
2021-05-10T13:42:59.000Z
2022-03-28T02:07:23.000Z
src/app.py
eug/cron-rest
2d0a2e0d0cf0cb464b71293802b85ac7076f9944
[ "MIT" ]
null
null
null
src/app.py
eug/cron-rest
2d0a2e0d0cf0cb464b71293802b85ac7076f9944
[ "MIT" ]
4
2018-05-12T13:43:00.000Z
2021-10-30T01:23:00.000Z
# -*- coding: utf-8 -*- import json import os from crontab import CronTab from flask import Flask, request from pathlib import Path from pretty_cron import prettify_cron app = Flask(__name__) if __name__ == '__main__': app.run()
26.256579
76
0.540466
3a90d1f158c36003df58478dbdda2afff682b6b2
1,196
py
Python
2017/examples/05_randomization.py
limunan/stanford-tensorflow-tutorials
51e53daaa2a32cfe7a1966f060b28dbbd081791c
[ "MIT" ]
9,180
2017-07-27T23:43:41.000Z
2022-03-29T17:10:14.000Z
2017/examples/05_randomization.py
Nianze/stanford-tensorflow-tutorials
51e53daaa2a32cfe7a1966f060b28dbbd081791c
[ "MIT" ]
86
2017-08-04T12:38:38.000Z
2020-12-09T03:34:02.000Z
2017/examples/05_randomization.py
joshosu/stanford-tensorflow-tutorials
b16899102bf07964a15494452a2e91c1b9f88e46
[ "MIT" ]
4,115
2017-07-28T06:53:12.000Z
2022-03-23T12:36:55.000Z
""" Examples to demonstrate ops level randomization Author: Chip Huyen Prepared for the class CS 20SI: "TensorFlow for Deep Learning Research" cs20si.stanford.edu """ import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import tensorflow as tf # Example 1: session is the thing that keeps track of random state c = tf.rand...
27.813953
74
0.664716
3a91c8f71ed1bbfb503d86a5235097fd88dfae4a
5,651
py
Python
python-CSDN博客爬虫/CSDN_article/utils/myutils.py
wangchuanli001/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
12
2019-12-07T01:44:55.000Z
2022-01-27T14:13:30.000Z
python-CSDN博客爬虫/CSDN_article/utils/myutils.py
hujiese/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
23
2020-05-23T03:56:33.000Z
2022-02-28T07:54:45.000Z
python-CSDN博客爬虫/CSDN_article/utils/myutils.py
hujiese/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
7
2019-12-20T04:48:56.000Z
2021-11-19T02:23:45.000Z
# -*- coding: utf-8 -*- ''' ''' import time import MySQLdb import jieba import ast import random, sys # import requests sys.setrecursionlimit(1000000) # def getproxyip(ip_file): fo = open(ip_file, 'r', encoding='utf-8') proxys = fo.read().split('\n') proxy = ast.literal_eval(random.choice(proxys)) ...
33.838323
121
0.599186
3a92948a079a2d3f3db1feb98db4697c887b4594
140
py
Python
Contest/DDCC2020-qual/b/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/DDCC2020-qual/b/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/DDCC2020-qual/b/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from numpy import* n, *a = map(int, open(0).read().split()) a = array(a) print(int(min(abs(cumsum(a)-(sum(a)/2)))*2))
28
44
0.621429
3a948fad21b8a67c7efb20bb30784138fb309c60
11,836
py
Python
oanda-api-v20-master/tests/test_contrib_orders.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
389
2016-07-22T17:19:17.000Z
2022-03-18T21:14:55.000Z
oanda-api-v20-master/tests/test_contrib_orders.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
162
2016-10-04T18:17:48.000Z
2021-12-22T10:53:54.000Z
oanda-api-v20-master/tests/test_contrib_orders.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
120
2016-08-08T18:52:41.000Z
2022-03-24T06:53:38.000Z
import unittest try: from nose_parameterized import parameterized except: print("*** Please install 'nose_parameterized' to run these tests ***") exit(0) import oandapyV20.contrib.requests as req import oandapyV20.definitions.orders as OD import oandapyV20.types as types if __name__ == "__main__": ...
30.193878
75
0.468233
3a951812ae9cbf0b5d1410cb7713acbb37c91294
371
py
Python
ci_screen/automators/job_item.py
garyjohnson/ci_screen_2
ea6a0ebd686148bb8977bd2d842e33e71fc2c3f0
[ "MIT" ]
null
null
null
ci_screen/automators/job_item.py
garyjohnson/ci_screen_2
ea6a0ebd686148bb8977bd2d842e33e71fc2c3f0
[ "MIT" ]
null
null
null
ci_screen/automators/job_item.py
garyjohnson/ci_screen_2
ea6a0ebd686148bb8977bd2d842e33e71fc2c3f0
[ "MIT" ]
1
2018-08-10T15:04:24.000Z
2018-08-10T15:04:24.000Z
from kvaut.automator.custom_automator import CustomAutomator
30.916667
97
0.727763
3a95ae559435a30a68aba572eee4bea130369136
12,225
py
Python
models/context.py
Hilbert70403/Infrared-Small-Target
0b7bddc13ed3b2362735ea858af6e7d18d4374cd
[ "MIT" ]
21
2021-11-08T08:06:36.000Z
2022-03-26T14:22:35.000Z
models/context.py
Hilbert70403/Infrared-Small-Target
0b7bddc13ed3b2362735ea858af6e7d18d4374cd
[ "MIT" ]
4
2022-01-19T11:37:13.000Z
2022-02-28T07:45:19.000Z
models/context.py
Hilbert70403/Infrared-Small-Target
0b7bddc13ed3b2362735ea858af6e7d18d4374cd
[ "MIT" ]
9
2021-11-15T09:24:41.000Z
2022-03-24T08:11:00.000Z
import torch import torch.nn as nn import torch.nn.functional as F __all__ = ['NonLocalBlock', 'GCA_Channel', 'GCA_Element', 'AGCB_Element', 'AGCB_Patch', 'CPM']
35.641399
109
0.558937
3a96f177bdadd6a1d79e415e623de1950e19535a
17,315
py
Python
build/fbcode_builder/getdeps/cargo.py
dmitryvinn/watchman
668d3536031acd9b65950c29d6e956bb42b972bb
[ "MIT" ]
null
null
null
build/fbcode_builder/getdeps/cargo.py
dmitryvinn/watchman
668d3536031acd9b65950c29d6e956bb42b972bb
[ "MIT" ]
null
null
null
build/fbcode_builder/getdeps/cargo.py
dmitryvinn/watchman
668d3536031acd9b65950c29d6e956bb42b972bb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import re import shutil from .builder import BuilderBase
40.081019
119
0.551372
3a97bee3b980525a2f4756251f4575984854cc03
500
py
Python
setup.py
EricCWWong/GSimulator
aee7dc81d2a709beb94c02ffc8a288cd7ba06747
[ "MIT" ]
null
null
null
setup.py
EricCWWong/GSimulator
aee7dc81d2a709beb94c02ffc8a288cd7ba06747
[ "MIT" ]
7
2020-02-01T02:19:49.000Z
2020-07-10T12:49:28.000Z
setup.py
EricCWWong/GSimulator
aee7dc81d2a709beb94c02ffc8a288cd7ba06747
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="GSimulator", packages=find_packages(exclude=['*test']), version="0.1.1", author="Eric Wong", description='This package allows user to \ simulate conductance of quantum wires', author_email='c.wing.wong.19@ucl.ac.uk', install_r...
29.411765
77
0.644
3a98425fabf2f4efae0310710f9d76f3fbba768a
3,995
py
Python
donn/layers.py
sharan-amutharasu/DONN
c14557e8ef57f3e1c1b73c1fa98cb6ba19a82904
[ "MIT" ]
3
2018-08-17T05:31:25.000Z
2020-02-13T19:43:02.000Z
tests/donn/layers.py
sharan-amutharasu/DONN
c14557e8ef57f3e1c1b73c1fa98cb6ba19a82904
[ "MIT" ]
1
2018-11-19T06:16:50.000Z
2018-11-19T06:17:53.000Z
tests/donn/layers.py
sharan-amutharasu/DONN
c14557e8ef57f3e1c1b73c1fa98cb6ba19a82904
[ "MIT" ]
2
2018-12-06T05:01:07.000Z
2018-12-06T11:59:47.000Z
# coding: utf-8 # In[4]: from keras.layers import Activation, Dense, Dropout from keras.layers.advanced_activations import LeakyReLU, PReLU, ThresholdedReLU, ELU from keras import regularizers # In[5]: def get_activation_layer(activation): """ Returns the activation layer given its name """ if a...
37.336449
163
0.606758
3a9e23b66225e7784226027da5b0c2acadfbb17f
4,905
py
Python
rurina5/input/map.py
TeaCondemns/rurina
43725ebea5872953125271a9abb300a4e3a80a64
[ "MIT" ]
null
null
null
rurina5/input/map.py
TeaCondemns/rurina
43725ebea5872953125271a9abb300a4e3a80a64
[ "MIT" ]
null
null
null
rurina5/input/map.py
TeaCondemns/rurina
43725ebea5872953125271a9abb300a4e3a80a64
[ "MIT" ]
null
null
null
from typing import Union, Sequence import event _actions = {} """_actions = { 'action_name': { 'event1event2': { 'event1': ..., 'event2': ... } } }""" __all__ = ( 'addaction', 'removeaction', 'haveaction', 'action...
29.196429
117
0.648114
3a9f119bf4f058c5f85a03cbf6f4da2b349b8dd5
1,604
py
Python
data/ABC/filter_out_tiny_models.py
YoungXIAO13/6DPoseEstimationDatasets
b9cb1d9842870860a15bf3cf600cdfb68d1e195e
[ "MIT" ]
383
2019-09-03T15:29:22.000Z
2022-03-28T02:01:15.000Z
data/ABC/filter_out_tiny_models.py
Fang-Haoshu/ObjectPoseEstimationSummary
2a11797e6b01e1820105740fcaeb7c049094c57f
[ "MIT" ]
5
2019-10-18T13:04:07.000Z
2021-09-29T05:26:52.000Z
data/ABC/filter_out_tiny_models.py
Fang-Haoshu/ObjectPoseEstimationSummary
2a11797e6b01e1820105740fcaeb7c049094c57f
[ "MIT" ]
63
2019-09-17T12:13:51.000Z
2022-03-28T03:06:05.000Z
import os from os.path import join, getsize from PIL import Image from tqdm import tqdm import numpy as np import argparse parser = argparse.ArgumentParser() parser.add_argument('--dataset_dir', type=str, help='dataset directory') parser.add_argument('--model', type=str, default='abc_0000', help='subdirectory containi...
39.121951
106
0.639027
3aa041de8b903df622c3ee51ddf1f6842ee18d8c
59
py
Python
perception/navigator_vision/navigator_vision/__init__.py
czk100/NaviGator
c078c68768c1df4ad48c4c9a60a8c0bf4bdab63a
[ "MIT" ]
null
null
null
perception/navigator_vision/navigator_vision/__init__.py
czk100/NaviGator
c078c68768c1df4ad48c4c9a60a8c0bf4bdab63a
[ "MIT" ]
null
null
null
perception/navigator_vision/navigator_vision/__init__.py
czk100/NaviGator
c078c68768c1df4ad48c4c9a60a8c0bf4bdab63a
[ "MIT" ]
null
null
null
from scan_the_code_classifier import ScanTheCodeClassifier
29.5
58
0.932203
3aa10622900b7fd3873b3fb7ab47170cdb7c2440
2,959
py
Python
assignments/06-python-first-lines/first_lines.py
patarajarina/biosys-analytics
a5e8845211797364ec6f7f8679911ed3b5312887
[ "MIT" ]
null
null
null
assignments/06-python-first-lines/first_lines.py
patarajarina/biosys-analytics
a5e8845211797364ec6f7f8679911ed3b5312887
[ "MIT" ]
null
null
null
assignments/06-python-first-lines/first_lines.py
patarajarina/biosys-analytics
a5e8845211797364ec6f7f8679911ed3b5312887
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : patarajarina Date : 2019-02-25 Purpose: Rock the Casbah """ import argparse import sys import os # -------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( description='Argparse Python sc...
26.9
82
0.460967