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
56652a7a9ad8a080d50971b9bce49832c3f1c49d
6,853
py
Python
util.py
jacklxc/ScientificDiscourseTagging
d75514b631b95d39451abd2396f57c3da1c19801
[ "Apache-2.0" ]
15
2020-01-17T16:45:09.000Z
2022-01-18T08:44:16.000Z
util.py
jacklxc/ScientificDiscourseTagging
d75514b631b95d39451abd2396f57c3da1c19801
[ "Apache-2.0" ]
3
2020-12-01T07:34:57.000Z
2021-08-09T23:07:19.000Z
util.py
jacklxc/ScientificDiscourseTagging
d75514b631b95d39451abd2396f57c3da1c19801
[ "Apache-2.0" ]
2
2019-05-30T18:52:09.000Z
2020-06-01T13:36:33.000Z
import codecs import numpy import glob import re from sklearn.metrics import f1_score def clean_url(word): """ Clean specific data format from social media """ # clean urls word = re.sub(r'https? : \/\/.*[\r\n]*', '<URL>', word) word = re.sub(r'exlink', '<URL>', word) return word
34.265
121
0.59069
5667c67a21bb9a3e1bab52388c65b4ea9c28eb56
364
py
Python
crawler/1_read_and_compact.py
carpedm20/critic-of-critics
3695c1c038af08fe2ea7c2e64b05e75759d6777e
[ "BSD-3-Clause" ]
null
null
null
crawler/1_read_and_compact.py
carpedm20/critic-of-critics
3695c1c038af08fe2ea7c2e64b05e75759d6777e
[ "BSD-3-Clause" ]
null
null
null
crawler/1_read_and_compact.py
carpedm20/critic-of-critics
3695c1c038af08fe2ea7c2e64b05e75759d6777e
[ "BSD-3-Clause" ]
null
null
null
import json from glob import glob data = [] for fname in ['critic-0.jsonlines']+glob('*new*.jsonlines'): print fname with open(fname) as f: for line in f: data.append(json.loads(line)) new_data = [] for i in data: if i['imdb_mid'] != -1: new_data.append(i) with open('compact....
19.157895
60
0.598901
5669105e25d30b05664f89f0df0423f50da1ae02
2,965
py
Python
examples/Kane1985/Chapter6/Ex11.5.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
298
2015-01-31T11:43:22.000Z
2022-03-15T02:18:21.000Z
examples/Kane1985/Chapter6/Ex11.5.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
359
2015-01-17T16:56:42.000Z
2022-02-08T05:27:08.000Z
examples/Kane1985/Chapter6/Ex11.5.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
109
2015-02-03T13:02:45.000Z
2021-12-21T12:57:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Exercise 11.5 from Kane 1985.""" from __future__ import division from sympy import expand, solve, symbols, trigsimp from sympy import sin, tan, pi from sympy.physics.mechanics import Point, ReferenceFrame, RigidBody from sympy.physics.mechanics import dot, dynamicsymbol...
31.88172
74
0.66914
566a183503f12d2d76263243546091eed83cab3c
3,706
py
Python
seahub/drafts/utils.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
420
2015-01-03T11:34:46.000Z
2022-03-10T07:15:41.000Z
seahub/drafts/utils.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
735
2015-01-04T21:22:51.000Z
2022-03-31T09:26:07.000Z
seahub/drafts/utils.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
379
2015-01-05T17:08:03.000Z
2022-03-06T00:11:50.000Z
import hashlib import os import logging import posixpath from seaserv import seafile_api from seahub.utils import normalize_file_path, check_filename_with_rename from seahub.tags.models import FileUUIDMap logger = logging.getLogger(__name__) def send_draft_publish_msg(draft, username, path): """ send...
28.953125
92
0.658662
566d06f55eb168bd0c5dd0836c75fd3bf4352b95
781
py
Python
Questions/Airline Iternary/solution.py
leander-dsouza/Abhyudaya_2020
54ec7608c5caa14310b635ac8e8b090156ca0ea4
[ "MIT" ]
1
2020-07-13T17:28:27.000Z
2020-07-13T17:28:27.000Z
Questions/Airline Iternary/solution.py
leander-dsouza/Abhyudaya_2020
54ec7608c5caa14310b635ac8e8b090156ca0ea4
[ "MIT" ]
null
null
null
Questions/Airline Iternary/solution.py
leander-dsouza/Abhyudaya_2020
54ec7608c5caa14310b635ac8e8b090156ca0ea4
[ "MIT" ]
null
null
null
size = int(input()) array_input = [] for x in range(size): array_input.append(tuple(input().split())) g = get_itinerary(array_input,'MSC',[]) print(" ".join(g))
31.24
98
0.653009
566d5c200e2aef246e18708df545abf4a5788862
1,233
py
Python
backend/app/snowflake.py
GJCav/wy-rsv
705c1d97bbf1d2d8e29ef113928644236e4d8c60
[ "MIT" ]
1
2021-09-17T12:54:56.000Z
2021-09-17T12:54:56.000Z
backend/app/snowflake.py
GJCav/wy-rsv
705c1d97bbf1d2d8e29ef113928644236e4d8c60
[ "MIT" ]
42
2021-08-20T14:09:48.000Z
2021-09-25T12:51:04.000Z
backend/app/snowflake.py
GJCav/wy-rsv
705c1d97bbf1d2d8e29ef113928644236e4d8c60
[ "MIT" ]
2
2021-08-21T15:37:53.000Z
2021-09-17T12:54:59.000Z
import threading import time _base = int(time.mktime(time.strptime('2020-1-1', '%Y-%m-%d'))*1000) def makeId(timestamp = 0, machine = 0, flow = 0): """ using unix style timestamp, not python timestamp """ timestamp -= _base return (timestamp<<13) | (machine << 8) | flow
22.833333
68
0.514193
566dacd3762055b1031b88c7abeee1f2fb17e4a3
1,878
py
Python
examples/geneexpr_3tube.py
ayush9pandey/txtlsim-python
d788aab4540f3b43e570047f650ea08d206ecdb2
[ "BSD-3-Clause" ]
4
2018-02-11T07:58:10.000Z
2020-02-03T19:51:29.000Z
examples/geneexpr_3tube.py
ayush9pandey/txtlsim-python
d788aab4540f3b43e570047f650ea08d206ecdb2
[ "BSD-3-Clause" ]
32
2018-08-13T15:42:45.000Z
2019-08-15T00:30:55.000Z
examples/geneexpr_3tube.py
ayush9pandey/txtlsim-python
d788aab4540f3b43e570047f650ea08d206ecdb2
[ "BSD-3-Clause" ]
4
2018-04-30T19:50:45.000Z
2018-08-28T16:10:49.000Z
# geneexpr.py - simple gene expression example # Richard M. Murray, 11 Aug 2018 # # This example shows how to use the txtl library to create a model for # a simple gene expression construct. This model is constructed to # demonstrate the ability to mimic the MATLAB TX-TL modeling toolbox # approach as well as a few si...
32.947368
77
0.755059
566e601ac7f314a0c7263784d0d159ced84a93ad
201
py
Python
src/expression_evaluator/operators/basic/in_operator.py
Xett/expression_evaluator
eca895d79f015843a262e9636b86c6dd3d06a69d
[ "MIT" ]
null
null
null
src/expression_evaluator/operators/basic/in_operator.py
Xett/expression_evaluator
eca895d79f015843a262e9636b86c6dd3d06a69d
[ "MIT" ]
null
null
null
src/expression_evaluator/operators/basic/in_operator.py
Xett/expression_evaluator
eca895d79f015843a262e9636b86c6dd3d06a69d
[ "MIT" ]
null
null
null
from expression_evaluator.token import *
22.333333
40
0.681592
566e992466a08d95a9769f7efc588017224e9ab9
2,632
py
Python
SubShift.py
nsaftarli/SubShift
fa1ac906b569fb7dd238e0241b84cd20c1ba2387
[ "MIT" ]
null
null
null
SubShift.py
nsaftarli/SubShift
fa1ac906b569fb7dd238e0241b84cd20c1ba2387
[ "MIT" ]
null
null
null
SubShift.py
nsaftarli/SubShift
fa1ac906b569fb7dd238e0241b84cd20c1ba2387
[ "MIT" ]
null
null
null
import re import numpy as np
24.37037
84
0.612082
56700bfa5388728c85765f29f5c4e7e6f06cee4a
962
py
Python
apps/userprofile/forms.py
amirahanisadlin/LearnDjangoVue
a9dd2f2123601b17668f08f593ece9bf8d27856c
[ "MIT" ]
null
null
null
apps/userprofile/forms.py
amirahanisadlin/LearnDjangoVue
a9dd2f2123601b17668f08f593ece9bf8d27856c
[ "MIT" ]
null
null
null
apps/userprofile/forms.py
amirahanisadlin/LearnDjangoVue
a9dd2f2123601b17668f08f593ece9bf8d27856c
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User
43.727273
91
0.674636
56707ce7ef82994c6105b84839758860eff4cf9f
11,991
py
Python
gcn/lib/databases/annotate_clinvar_vcf.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
11
2018-11-09T15:47:14.000Z
2021-08-18T18:05:11.000Z
gcn/lib/databases/annotate_clinvar_vcf.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
5
2018-08-31T15:07:20.000Z
2020-03-30T18:52:04.000Z
gcn/lib/databases/annotate_clinvar_vcf.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
1
2019-04-18T13:42:30.000Z
2019-04-18T13:42:30.000Z
# # COPYRIGHT (C) 2002-2011 Rajgopal Srinivasan and modified by changjin.hong@gmail.com # """ .. module:: preprocess_clinvar :platform: Unix, Windows, MacOSX :synopsis: Transparent opening of compressed and uncompressed files .. moduleauthor:: ; changjin.hong@gmail.com """ import os, dill, re, argparse from gcn.li...
32.584239
164
0.68835
56708965d6fec056a956b940dd9b227f3d8fbfd4
8,820
py
Python
dist_train/workers/baseline.py
victorcampos7/edl
ffdf23d4e102ca7d69a1408bafa267b0c7d8bfa0
[ "MIT" ]
30
2020-02-16T15:52:59.000Z
2022-03-22T10:54:54.000Z
dist_train/workers/baseline.py
imatge-upc/edl
ffdf23d4e102ca7d69a1408bafa267b0c7d8bfa0
[ "MIT" ]
null
null
null
dist_train/workers/baseline.py
imatge-upc/edl
ffdf23d4e102ca7d69a1408bafa267b0c7d8bfa0
[ "MIT" ]
7
2020-02-16T15:53:05.000Z
2022-01-18T03:41:03.000Z
# Copyright (c) 2019, salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: MIT # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT import os import json import time import torch import numpy as np from dist_train.utils.shared_optim import SharedAdam a...
37.372881
113
0.625057
5670f35e40b02807226db734417e790c3490e50a
779
py
Python
Python/[6 kyu] simple prime streaming.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
Python/[6 kyu] simple prime streaming.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
Python/[6 kyu] simple prime streaming.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
# see https://www.codewars.com/kata/5a908da30025e995880000e3/solutions/python from TestFunction import Test Test = Test(None) Test.assert_equals(solve(2,2),'57') Test.assert_equals(solve(10,3),'192') Test.assert_equals(solve(20,9),'414347535') Test.assert_equals(solve(30,12),'616771737983') Test.assert_equals(solve(4...
29.961538
85
0.679076
567114ba199318d542e09eb261fb42b250b3ecc5
707
py
Python
tests/benchmarks/gendata.py
simonwittber/fibra
1761ba79cb643b0392bb82d7e80ce9e55bb75275
[ "Unlicense" ]
1
2016-03-26T19:30:38.000Z
2016-03-26T19:30:38.000Z
tests/benchmarks/gendata.py
simonwittber/fibra
1761ba79cb643b0392bb82d7e80ce9e55bb75275
[ "Unlicense" ]
1
2018-05-25T13:30:46.000Z
2018-05-25T13:30:46.000Z
tests/benchmarks/gendata.py
simonwittber/fibra
1761ba79cb643b0392bb82d7e80ce9e55bb75275
[ "Unlicense" ]
null
null
null
from pygooglechart import Chart from pygooglechart import SimpleLineChart from pygooglechart import Axis try: import stackless except ImportError: stackless = None import timeit import gc results = dict() RANGE = range(0, 100000, 10000)[1:] if stackless: libs = ["stacklessb", "fibrab", "kamaeliab"] else:...
22.09375
110
0.643564
5672916d34e9bf0fa027e7668987fc3274ffeb22
7,445
py
Python
code/training/i_vector_extraction.py
oananovac/Speaker_Recognition_System
526eb2467190efeeeb2256849f53cde648b3a294
[ "MIT" ]
null
null
null
code/training/i_vector_extraction.py
oananovac/Speaker_Recognition_System
526eb2467190efeeeb2256849f53cde648b3a294
[ "MIT" ]
null
null
null
code/training/i_vector_extraction.py
oananovac/Speaker_Recognition_System
526eb2467190efeeeb2256849f53cde648b3a294
[ "MIT" ]
null
null
null
import numpy as np from scipy.linalg import eigh import voice_activity_detector import features_extraction import statistics import utils
33.236607
92
0.58724
56740050a83aa6e9a33739148e341b329b34dce8
1,412
py
Python
uploadhandler/uploadhandler.py
Kendubu1/tornado-file-upload
18933347e75179725018f06f784672b85c058e7e
[ "Apache-2.0" ]
8
2016-12-03T09:36:46.000Z
2019-04-18T00:16:45.000Z
uploadhandler/uploadhandler.py
Kendubu1/tornado-file-upload
18933347e75179725018f06f784672b85c058e7e
[ "Apache-2.0" ]
null
null
null
uploadhandler/uploadhandler.py
Kendubu1/tornado-file-upload
18933347e75179725018f06f784672b85c058e7e
[ "Apache-2.0" ]
3
2016-12-17T16:34:27.000Z
2021-09-03T16:05:51.000Z
# Handles file uploads in Python Tornado: http://tornadoweb.org/ import tornado.web import logging import os import uuid def uuid_naming_strategy(original_name): "File naming strategy that ignores original name and returns an UUID" return str(uuid.uuid4())
32.837209
75
0.63102
56756d9a6a2f6b3681bd9d47482a96048107979e
947
py
Python
Anaconda-files/Program_15d.py
arvidl/dynamical-systems-with-applications-using-python
db747f550337a7e7ec4a0851b188dd6e2e816a64
[ "BSD-2-Clause" ]
106
2018-10-10T18:04:02.000Z
2022-03-11T06:32:38.000Z
Anaconda-files/Program_15d.py
arvidl/dynamical-systems-with-applications-using-python
db747f550337a7e7ec4a0851b188dd6e2e816a64
[ "BSD-2-Clause" ]
null
null
null
Anaconda-files/Program_15d.py
arvidl/dynamical-systems-with-applications-using-python
db747f550337a7e7ec4a0851b188dd6e2e816a64
[ "BSD-2-Clause" ]
54
2018-02-06T09:47:42.000Z
2022-03-25T15:41:43.000Z
# Program 15d: Plotting a Newton fractal. # See Figure 15.7. from PIL import Image width = height = 512 image = Image.new('RGB', (width, height)) xmin, xmax = -1.5, 1.5 ymin, ymax = -1.5, 1.5 max_iter = 20 h = 1e-6 # Step size eps = 1e-3 # Maximum error # Draw the fractal. for y in range(height): zy = y * (y...
26.305556
71
0.531151
5675e78e6bff192c2a34c289667d015bc90abcc8
870
py
Python
bonga.py
AfonsoFGarcia/BigBongaClock
bc75f27d7f37a989e2efb417b74f1adfc2821c94
[ "MIT" ]
1
2015-06-22T16:08:38.000Z
2015-06-22T16:08:38.000Z
bonga.py
AfonsoFGarcia/BigBongaClock
bc75f27d7f37a989e2efb417b74f1adfc2821c94
[ "MIT" ]
1
2020-09-08T20:38:24.000Z
2020-09-08T20:38:24.000Z
bonga.py
AfonsoFGarcia/BigBongaClock
bc75f27d7f37a989e2efb417b74f1adfc2821c94
[ "MIT" ]
null
null
null
import time import tweepy as twitter import os superhour = time.localtime().tm_hour hour = superhour % 12 if hour == 0: hour = 12 sentence = "Tenho %d lgrima%s no canto do mostrador, %s nos Aores%s" if superhour >= 12: if hour == 1: sentence = sentence % (hour, "", "12 lgrimas", "") else: sentence = sentence...
26.363636
71
0.705747
5677a8de826460d6b3962eb6561558b2f7259736
244
py
Python
cachex/decorator/CacheParameters.py
malversoft/cachex
8b4d5086c9553c50e91470a2e9a635bf22cde68d
[ "MIT" ]
null
null
null
cachex/decorator/CacheParameters.py
malversoft/cachex
8b4d5086c9553c50e91470a2e9a635bf22cde68d
[ "MIT" ]
null
null
null
cachex/decorator/CacheParameters.py
malversoft/cachex
8b4d5086c9553c50e91470a2e9a635bf22cde68d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .CacheDefaults import CacheDefaults from ..caches.AbstractCacheParameters import AbstractCacheParameters
22.181818
68
0.786885
5679b4a709d6dc06439e297747d31c23263a2fac
1,816
py
Python
newserver.py
pedrohhcunha/Encryption-system
2d1be01ab00e3e089f4db2ba391b1d294fbc8a72
[ "MIT" ]
null
null
null
newserver.py
pedrohhcunha/Encryption-system
2d1be01ab00e3e089f4db2ba391b1d294fbc8a72
[ "MIT" ]
null
null
null
newserver.py
pedrohhcunha/Encryption-system
2d1be01ab00e3e089f4db2ba391b1d294fbc8a72
[ "MIT" ]
null
null
null
#! /usr/bin/env python # import thread import threading import os.path import random import hashlib import socket import time import os import copy import socket letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' host = '' port = 9093 pega_mensagem = '' addr = (host, port) serv_socket = socket.socket(socket.AF_INET, socket.SOCK_...
28.825397
65
0.675661
567a8d53d6704bf2e4cecf0cfc3ed0d482c3d55a
71,934
py
Python
ohsomeTools/gui/OhsomeToolsDialogUI.py
GIScience/ohsome-qgis-plugin
acd4811e9e36ed35e3fe62c063b5c990a8b795f9
[ "MIT" ]
3
2021-06-28T09:45:58.000Z
2021-09-13T02:16:50.000Z
ohsomeTools/gui/OhsomeToolsDialogUI.py
GIScience/ohsome-qgis-plugin
acd4811e9e36ed35e3fe62c063b5c990a8b795f9
[ "MIT" ]
29
2021-06-22T08:58:37.000Z
2022-02-13T21:35:02.000Z
ohsomeTools/gui/OhsomeToolsDialogUI.py
GIScience/ohsome-qgis-plugin
acd4811e9e36ed35e3fe62c063b5c990a8b795f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'OhsomeToolsDialogUI.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import ...
50.622097
587
0.681375
567c444373e2af7552606978f05a112fd3fb6f08
13,282
bzl
Python
swc/cli_repositories.bzl
aspect-build/rules_swc
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
[ "Apache-2.0" ]
14
2021-12-04T11:15:40.000Z
2022-03-01T23:05:38.000Z
swc/cli_repositories.bzl
aspect-build/rules_swc
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
[ "Apache-2.0" ]
6
2021-12-13T06:32:16.000Z
2022-02-28T14:44:38.000Z
swc/cli_repositories.bzl
aspect-build/rules_swc
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
[ "Apache-2.0" ]
2
2021-12-14T09:35:12.000Z
2021-12-24T16:31:14.000Z
"@generated by @aspect_rules_js//npm/private:npm_translate_lock.bzl from pnpm lock file @aspect_rules_swc@aspect_rules_swc//swc:pnpm-lock.yaml" load("@aspect_rules_js//npm:npm_import.bzl", "npm_import") def npm_repositories(): "Generated npm_import repository rules corresponding to npm packages in @aspect_rules_s...
32.957816
143
0.518973
567f65f38faefff2b824b29b2ea7a8229dd32be4
8,294
py
Python
model/networks.py
ifding/dynamic-analysis-firmware
4d786c2280527ff38ba615974dd227c4f44c93b2
[ "MIT" ]
17
2019-01-18T12:45:38.000Z
2021-12-03T19:55:25.000Z
model/networks.py
ifding/dynamic-analysis-firmware
4d786c2280527ff38ba615974dd227c4f44c93b2
[ "MIT" ]
3
2018-06-27T19:08:21.000Z
2019-12-18T09:29:11.000Z
model/networks.py
ifding/dynamic-analysis-firmware
4d786c2280527ff38ba615974dd227c4f44c93b2
[ "MIT" ]
7
2018-07-28T17:58:23.000Z
2021-01-02T17:16:20.000Z
""" Neural network modules for WaveNet References : https://arxiv.org/pdf/1609.03499.pdf https://github.com/ibab/tensorflow-wavenet https://qiita.com/MasaEguchi/items/cd5f7e9735a120f27e2a https://github.com/musyoku/wavenet/issues/4 """ import torch import numpy as np from utils.exceptions import Input...
31.777778
103
0.618278
56804b24fb35ab2abb9bf99473495ce4e51fa000
3,643
py
Python
metrics/f2_structured_metadata.py
MaastrichtU-IDS/fair-enough-metrics
deb238a84385e1f94c0e2321b4b3ebdc231094d3
[ "MIT" ]
1
2022-01-28T09:42:20.000Z
2022-01-28T09:42:20.000Z
metrics/f2_structured_metadata.py
MaastrichtU-IDS/fair-enough-metrics
deb238a84385e1f94c0e2321b4b3ebdc231094d3
[ "MIT" ]
null
null
null
metrics/f2_structured_metadata.py
MaastrichtU-IDS/fair-enough-metrics
deb238a84385e1f94c0e2321b4b3ebdc231094d3
[ "MIT" ]
1
2022-01-29T03:39:37.000Z
2022-01-29T03:39:37.000Z
import requests import yaml from fair_test import FairTest, FairTestEvaluation
52.042857
201
0.639308
56812e1d2c9fb35b48bbbc87de532ca4299da390
1,017
py
Python
tests/runtime/redis/test_redis.py
igboyes/virtool-workflow
1ef9a4b0bada1963ff9be0470dfe74b32c9e7ccf
[ "MIT" ]
null
null
null
tests/runtime/redis/test_redis.py
igboyes/virtool-workflow
1ef9a4b0bada1963ff9be0470dfe74b32c9e7ccf
[ "MIT" ]
null
null
null
tests/runtime/redis/test_redis.py
igboyes/virtool-workflow
1ef9a4b0bada1963ff9be0470dfe74b32c9e7ccf
[ "MIT" ]
null
null
null
import asyncio from virtool_workflow_runtime._redis import connect, VIRTOOL_JOBS_CHANNEL, job_id_queue from virtool_workflow_runtime.runtime import execute_from_redis JOB_IDs = [str(n) for n in range(3)]
28.25
87
0.73353
5682d231d05f403a7946e9e6799b2532460eca4a
928
py
Python
src/probnum/filtsmooth/statespace/discrete/discretemodel.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
src/probnum/filtsmooth/statespace/discrete/discretemodel.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
2
2020-12-28T19:37:16.000Z
2020-12-28T19:37:31.000Z
src/probnum/filtsmooth/statespace/discrete/discretemodel.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
import abc from probnum.filtsmooth.statespace.transition import Transition __all__ = ["DiscreteModel"]
24.421053
73
0.685345
56835f197330807710a910c73580f2e27a16947f
8,934
py
Python
examples/temp_bubbles/plot_sweep_results.py
SamuelBrand1/covid-19-in-households-public
a0740d85f8f9fb1ae67dbd9c5a92f1085e4d9ea1
[ "Apache-2.0" ]
null
null
null
examples/temp_bubbles/plot_sweep_results.py
SamuelBrand1/covid-19-in-households-public
a0740d85f8f9fb1ae67dbd9c5a92f1085e4d9ea1
[ "Apache-2.0" ]
null
null
null
examples/temp_bubbles/plot_sweep_results.py
SamuelBrand1/covid-19-in-households-public
a0740d85f8f9fb1ae67dbd9c5a92f1085e4d9ea1
[ "Apache-2.0" ]
null
null
null
'''This plots the bubble results ''' from pickle import load from numpy import array, atleast_2d, hstack, where, zeros from matplotlib.pyplot import close, subplots from examples.temp_bubbles.common import DataObject from seaborn import heatmap no_i_vals = 3 no_j_vals = 3 peaks_1 = zeros((no_i_vals,no_j_vals)) peaks_...
42.542857
130
0.71323
5683642aced3575289798f545fc9efd887e19acc
3,363
py
Python
dustmaker/cmd/thumbnail.py
msg555/dustmaker
8ce54e7e6b29af75d72ca42051881df26624b6fc
[ "Apache-2.0" ]
11
2015-09-29T07:48:30.000Z
2019-05-05T20:44:48.000Z
dustmaker/cmd/thumbnail.py
msg555/dustmaker
8ce54e7e6b29af75d72ca42051881df26624b6fc
[ "Apache-2.0" ]
5
2016-10-16T00:30:18.000Z
2022-02-12T20:04:11.000Z
dustmaker/cmd/thumbnail.py
msg555/dustmaker
8ce54e7e6b29af75d72ca42051881df26624b6fc
[ "Apache-2.0" ]
3
2016-10-15T20:51:03.000Z
2019-03-21T03:31:47.000Z
#!/usr/bin/env python3 """ Sample script to extract and set level thumbnails. """ import argparse import io import os import sys from dustmaker import DFReader, DFWriter from dustmaker.cmd.common import ( run_utility, CliUtility, ) from dustmaker.variable import VariableBool if __name__ == "__main__": s...
30.297297
96
0.549509
568434517b25ee3fdda6d9fdafd843bc88f238d6
2,591
py
Python
src/e2e_tests/general/test_main_page.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
833
2016-09-08T13:27:36.000Z
2022-03-27T07:10:48.000Z
src/e2e_tests/general/test_main_page.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
528
2016-05-23T09:17:04.000Z
2022-03-30T12:45:50.000Z
src/e2e_tests/general/test_main_page.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
214
2016-09-08T14:46:41.000Z
2022-03-25T01:04:14.000Z
from common.pages import Page import allure from common.pages import is_displayed, is_enabled, is_disabled from delayed_assert import expect, assert_expectations from allure import severity, severity_level
47.981481
101
0.766113
5684408b6c388d68319ade18652fa15a6c742db7
714
py
Python
backend/mono-back/User.py
sotapmc/Monologue
d2dcd3ab1fcd67e92b24495ee2472c08f5532741
[ "Apache-2.0" ]
5
2020-04-18T17:23:18.000Z
2021-04-05T04:50:03.000Z
backend/mono-back/User.py
sotapmc/Monologue
d2dcd3ab1fcd67e92b24495ee2472c08f5532741
[ "Apache-2.0" ]
11
2020-04-22T03:40:25.000Z
2021-05-01T02:45:12.000Z
backend/mono-back/User.py
Subilan/Monologue
7f81a933fb123f4d87acc07fa10b845ef13ec56c
[ "Apache-2.0" ]
1
2020-04-22T13:08:21.000Z
2020-04-22T13:08:21.000Z
from werkzeug.security import check_password_hash, generate_password_hash from Database import DBController
32.454545
77
0.634454
5685b5cef5145d202704edd6bc702b0eefad35b5
7,977
py
Python
cpp/cpp_e.py
3r1ck10/cpp
2b3d076b48fcce9682d94ebcdcd0ee990cc6dded
[ "MIT" ]
null
null
null
cpp/cpp_e.py
3r1ck10/cpp
2b3d076b48fcce9682d94ebcdcd0ee990cc6dded
[ "MIT" ]
null
null
null
cpp/cpp_e.py
3r1ck10/cpp
2b3d076b48fcce9682d94ebcdcd0ee990cc6dded
[ "MIT" ]
null
null
null
import xarray as xray import numpy as np import pandas as pd from .ploteos import correct_mon from .ploteos_e import correct_e
52.137255
124
0.519368
568673ef2cde487c729769189c6ebe595faadce9
2,170
py
Python
kts/ui/leaderboard.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/ui/leaderboard.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/ui/leaderboard.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import time from kts.ui.components import HTMLRepr, Column, Field, Title, ThumbnailField, Raw from kts.util.formatting import format_value
38.070175
160
0.595392
56868508641f95c8037312c6e71d709a9b56a1e6
229
py
Python
mmdet/models/utils/builder.py
SuhyunL/Fashion-Object-Detection
5870189a65f7c5d009beb763c34fefd029b9cce5
[ "Apache-2.0" ]
326
2021-05-06T01:15:09.000Z
2022-03-30T14:52:13.000Z
mmdet/models/utils/builder.py
MCG-NJU/AdaMixer
7cd998826da5f38e698cebb9a619bc322462a5db
[ "MIT" ]
39
2021-05-20T02:54:40.000Z
2022-03-31T09:16:46.000Z
mmdet/models/utils/builder.py
MCG-NJU/AdaMixer
7cd998826da5f38e698cebb9a619bc322462a5db
[ "MIT" ]
46
2021-05-08T22:25:27.000Z
2022-03-28T08:11:51.000Z
from mmcv.utils import Registry, build_from_cfg TRANSFORMER = Registry('Transformer') def build_transformer(cfg, default_args=None): """Builder for Transformer.""" return build_from_cfg(cfg, TRANSFORMER, default_args)
25.444444
57
0.772926
5687b2eebefd1922fec6386607f4531267b31693
2,726
py
Python
dags/etl_store_dag.py
nileshvarshney/airflow
6bb31a3acdd5a9c8bb74ddb01a851adb99602b9b
[ "Apache-2.0" ]
null
null
null
dags/etl_store_dag.py
nileshvarshney/airflow
6bb31a3acdd5a9c8bb74ddb01a851adb99602b9b
[ "Apache-2.0" ]
null
null
null
dags/etl_store_dag.py
nileshvarshney/airflow
6bb31a3acdd5a9c8bb74ddb01a851adb99602b9b
[ "Apache-2.0" ]
null
null
null
# import python libraries from airflow import DAG from datetime import datetime, timedelta from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator from datacleaner import data_cleaner from airflow.operators.mysql_operator import MySqlOperator from airflow.op...
32.843373
210
0.733309
568b420e2b194c6e850383a0e1263c01a6a582cb
299
py
Python
nilearn/decoding/__init__.py
sahahn/nilearn
642399137b923e273b396a1c33aa06b8081089b7
[ "BSD-2-Clause" ]
null
null
null
nilearn/decoding/__init__.py
sahahn/nilearn
642399137b923e273b396a1c33aa06b8081089b7
[ "BSD-2-Clause" ]
null
null
null
nilearn/decoding/__init__.py
sahahn/nilearn
642399137b923e273b396a1c33aa06b8081089b7
[ "BSD-2-Clause" ]
null
null
null
""" Decoding tools and algorithms. """ from .searchlight import SearchLight from .space_net import SpaceNetClassifier, SpaceNetRegressor from .decoder import Decoder, DecoderRegressor __all__ = ['SearchLight', 'SpaceNetClassifier', 'SpaceNetRegressor', 'Decoder', 'DecoderRegressor']
23
79
0.762542
568b4f13f51fbd3e746104f8badc5ad0334c142c
379
py
Python
acq4/devices/MockPressureControl.py
campagnola/acq4
09699c07d8949950f6df149cf17892aaa3a37402
[ "MIT" ]
47
2015-01-05T16:18:10.000Z
2022-03-16T13:09:30.000Z
acq4/devices/MockPressureControl.py
acq4/acq4
c77636a76d68ffa1bc7dbd41edc522e523b909b8
[ "MIT" ]
48
2015-04-19T16:51:41.000Z
2022-03-31T14:48:16.000Z
acq4/devices/MockPressureControl.py
acq4/acq4
c77636a76d68ffa1bc7dbd41edc522e523b909b8
[ "MIT" ]
32
2015-01-15T14:11:49.000Z
2021-07-15T13:44:52.000Z
from acq4.devices.PressureControl import PressureControl
23.6875
56
0.680739
568d2084adf71a287fd23fe49c7602c597d70fdf
85
py
Python
src/tcp/server/src/sizeof.py
gltchitm/pong-c-cheats
64bdb50519db0ebdc68ae19c3ce738e658fb71d3
[ "MIT" ]
null
null
null
src/tcp/server/src/sizeof.py
gltchitm/pong-c-cheats
64bdb50519db0ebdc68ae19c3ce738e658fb71d3
[ "MIT" ]
null
null
null
src/tcp/server/src/sizeof.py
gltchitm/pong-c-cheats
64bdb50519db0ebdc68ae19c3ce738e658fb71d3
[ "MIT" ]
null
null
null
SIZEOF_BYTE = 8 SIZEOF_INT_16 = 16 // SIZEOF_BYTE SIZEOF_INT_32 = 32 // SIZEOF_BYTE
17
33
0.752941
568d890d93930eebca3929a03cee09545033af9c
1,976
py
Python
Pibow/sprinkles.py
ShineTop/Unicorn-HAT
9ff1388ee627a8e81f361929e9e9b708db4e2832
[ "MIT" ]
null
null
null
Pibow/sprinkles.py
ShineTop/Unicorn-HAT
9ff1388ee627a8e81f361929e9e9b708db4e2832
[ "MIT" ]
null
null
null
Pibow/sprinkles.py
ShineTop/Unicorn-HAT
9ff1388ee627a8e81f361929e9e9b708db4e2832
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Sprinkles - Pibow This program lights up and turns off random LEDS using the colors of the Pibow Zero Candy case .................... Functions: - sprinkles: Lights up and turns off random LEDs .................... Author: Paul Ryan This program was written on a Raspberry Pi using the Geany...
27.830986
72
0.508097
568f011991a22235f2ada3f55574b76cc47e5636
1,520
py
Python
resource/choices.py
dataiku/dss-plugin-kayrros
580ee752885f8f19883b81ea921df290c65b925a
[ "Apache-2.0" ]
1
2021-09-23T03:05:59.000Z
2021-09-23T03:05:59.000Z
resource/choices.py
dataiku/dss-plugin-kayrros
580ee752885f8f19883b81ea921df290c65b925a
[ "Apache-2.0" ]
2
2021-09-22T10:07:58.000Z
2021-11-08T08:30:23.000Z
resource/choices.py
dataiku/dss-plugin-kayrros
580ee752885f8f19883b81ea921df290c65b925a
[ "Apache-2.0" ]
null
null
null
import requests import logging from utils.authentification import get_headers logger = logging.getLogger(__name__)
28.148148
100
0.614474
568fe2ca1c5825bb9a77cda8a3a20df6bfce2b30
2,402
py
Python
src/titlescreen.py
bl-ackrain/Jetpack-Pokitto
240a9afea7a2c91cd1d08184b615a3dfe5c24645
[ "MIT" ]
null
null
null
src/titlescreen.py
bl-ackrain/Jetpack-Pokitto
240a9afea7a2c91cd1d08184b615a3dfe5c24645
[ "MIT" ]
null
null
null
src/titlescreen.py
bl-ackrain/Jetpack-Pokitto
240a9afea7a2c91cd1d08184b615a3dfe5c24645
[ "MIT" ]
null
null
null
# titlescreen.py import upygame logoPixels = b'\ \x99\x99\x99\x98\x80\x00\x00\x99\x99\x88\x80\x00\x99\x99\x98\x88\x80\x09\x99\x98\x88\x80\x09\x99\x88\x88\x00\x99\x99\x88\x80\x09\x99\x88\x09\ \x01\x11\x11\x19\x88\x00\x00\x91\x11\x98\x88\x99\x11\x11\x19\x98\x88\x99\x11\x99\x88\x88\x91\x11\x98\x88\x89\x11\x19\x9...
96.08
142
0.731057
5690fed945f481b368f8606599bd5667fec6dd62
185
py
Python
01_evaluation_101/solutions/solution_09.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
2
2021-11-10T10:13:25.000Z
2022-01-12T08:11:59.000Z
01_evaluation_101/solutions/solution_09.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
2
2022-01-11T19:45:49.000Z
2022-01-11T20:36:03.000Z
01_evaluation_101/solutions/solution_09.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
1
2022-01-12T08:12:11.000Z
2022-01-12T08:12:11.000Z
ax = data.plot.scatter(x=data.columns[0], y=data.columns[1]) ax.plot(X["Flipper Length (mm)"], y_pred, color="black", linewidth=4) _ = ax.set_title("Can I predict penguins' body mass")
46.25
69
0.702703
56920c08dfcb1a77f8cde28ba7bdd1f09b763b05
4,387
py
Python
src/luh3417/snapshot/__init__.py
HenryJobst/luh3417
680c21739d2afb9559e4d8bdf4eedeaf5a6b1e28
[ "WTFPL" ]
1
2020-12-02T15:47:11.000Z
2020-12-02T15:47:11.000Z
src/luh3417/snapshot/__init__.py
HenryJobst/luh3417
680c21739d2afb9559e4d8bdf4eedeaf5a6b1e28
[ "WTFPL" ]
null
null
null
src/luh3417/snapshot/__init__.py
HenryJobst/luh3417
680c21739d2afb9559e4d8bdf4eedeaf5a6b1e28
[ "WTFPL" ]
null
null
null
import subprocess import re from typing import Sequence, Text from luh3417.luhfs import LocalLocation, Location, SshLocation from luh3417.luhssh import SshManager from luh3417.utils import LuhError def rsync_files(source: Location, target: Location, delete: bool = False): """ Use rsync to copy files from a ...
29.442953
114
0.664235
5692c81d7e2760ade8f07b80322678af0eaf034a
988
py
Python
Longest Palindrome.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Longest Palindrome.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Longest Palindrome.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This is case sensitive, for example "Aa" is not considered a palindrome here. Note: Assume the length of given string will not exceed 1,010. Example: Input: "abccccd...
21.021277
145
0.508097
5692c82ddaadcc9854e670c4098765e47d7b4ad7
580
py
Python
content/migrations/0025_auto_20200522_1158.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
content/migrations/0025_auto_20200522_1158.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
content/migrations/0025_auto_20200522_1158.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-05-22 16:58 from django.db import migrations, models
24.166667
69
0.594828
5693d714eafd06865a07dedef3e3c8ed43436124
263
py
Python
config_db.py
hung96ad/predict_price_cryptocurrencies
c13a9560045c6c028c26cacda1d089cd21246aaa
[ "Unlicense" ]
4
2018-11-09T18:08:04.000Z
2020-02-13T15:47:33.000Z
config_db.py
hung96ad/predict_price_cryptocurrencies
c13a9560045c6c028c26cacda1d089cd21246aaa
[ "Unlicense" ]
null
null
null
config_db.py
hung96ad/predict_price_cryptocurrencies
c13a9560045c6c028c26cacda1d089cd21246aaa
[ "Unlicense" ]
5
2019-05-28T11:14:58.000Z
2022-03-16T08:34:16.000Z
try: import mysql.connector as mysql except : import MySQLdb as mysql
26.3
68
0.48289
56945336d8bb03130acbfab0a81f5207b0b6b6c3
19,334
py
Python
tests/autodiff_test.py
GIS-PuppetMaster/TENSILE
e19f973bb30fba69a23644389c82a4471ee5a241
[ "MIT" ]
null
null
null
tests/autodiff_test.py
GIS-PuppetMaster/TENSILE
e19f973bb30fba69a23644389c82a4471ee5a241
[ "MIT" ]
null
null
null
tests/autodiff_test.py
GIS-PuppetMaster/TENSILE
e19f973bb30fba69a23644389c82a4471ee5a241
[ "MIT" ]
1
2020-09-27T07:27:47.000Z
2020-09-27T07:27:47.000Z
from pycode.tinyflow import autodiff as ad import numpy as np from pycode.tinyflow import ndarray from pycode.tinyflow import TrainExecute from pycode.tinyflow import train # executor = ad.Executor([y]) # res = executor.run(feed_dict={X: x_val,b: b_val,W: W_val}) # print('y_true'+str(y_val)) # ...
31.747126
111
0.65646
569a7754edeb369bfa7791b3bdcf74473cb3053f
3,780
py
Python
GUI/Toolbox/metadata.py
Guillermo-Hidalgo-Gadea/RPi4Toolbox
47a265aa9828f144155c097efc8ff36bd435099f
[ "MIT" ]
null
null
null
GUI/Toolbox/metadata.py
Guillermo-Hidalgo-Gadea/RPi4Toolbox
47a265aa9828f144155c097efc8ff36bd435099f
[ "MIT" ]
null
null
null
GUI/Toolbox/metadata.py
Guillermo-Hidalgo-Gadea/RPi4Toolbox
47a265aa9828f144155c097efc8ff36bd435099f
[ "MIT" ]
1
2021-10-15T16:14:48.000Z
2021-10-15T16:14:48.000Z
# Metadata module to save metadata as dictionary, save trial metadata as yaml and export metadata as csv import yaml import datetime import pandas as pd from pathlib import Path def export(): """ This function exports the metadata.yaml file to a standard metadata.csv and cleans the metadata.yaml history a...
43.953488
127
0.636508
569a865fd03cc8fb9438faa2823978a4952d4968
3,504
py
Python
test_symnet_gczsl.py
Zoya-Hashmi/SymNet_copy
b306ca9ddc5b3e26c7ef05aa1f020d7f4e8313a9
[ "Apache-2.0" ]
null
null
null
test_symnet_gczsl.py
Zoya-Hashmi/SymNet_copy
b306ca9ddc5b3e26c7ef05aa1f020d7f4e8313a9
[ "Apache-2.0" ]
null
null
null
test_symnet_gczsl.py
Zoya-Hashmi/SymNet_copy
b306ca9ddc5b3e26c7ef05aa1f020d7f4e8313a9
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from utils.base_solver import BaseSolver import os, logging, importlib, re, copy, random, tqdm, argparse import os.path as osp import cPickle as pickle from pprint import pprint from datetime import datetime ...
29.948718
124
0.66895
569ec3463a6b9dc7fdb5c4eccfb276fd52b756ed
1,190
py
Python
jobya/companies/management/commands/setup_company.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
null
null
null
jobya/companies/management/commands/setup_company.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
2
2022-02-08T01:15:52.000Z
2022-03-31T04:24:15.000Z
jobya/companies/management/commands/setup_company.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from django.db import transaction from jobya.companies.models import Company from jobya.companies.tests.factories import CompanyFactory
29.02439
67
0.607563
569f140d78f25e52085c587978a86ff31c34d8bd
140,512
py
Python
contrib/qa/bugzilla.py
crystalfontz/openembedded
8af3377bf132113baa0766fd9021e0ce162a0944
[ "MIT" ]
70
2015-02-23T04:18:51.000Z
2022-03-15T02:01:27.000Z
contrib/qa/bugzilla.py
buglabs/oe-buglabs
b8a4c4b1358214cd3ac1cf6f85154e9c62b16ce7
[ "MIT" ]
1
2020-09-07T15:33:56.000Z
2020-09-07T15:33:56.000Z
contrib/qa/bugzilla.py
buglabs/oe-buglabs
b8a4c4b1358214cd3ac1cf6f85154e9c62b16ce7
[ "MIT" ]
88
2015-02-11T12:03:16.000Z
2022-03-30T11:33:42.000Z
# # BugZilla query page scanner to work with ancient # Debian Stable bugzilla installationss # # This includes three test sites # site contains one bug entry # all_bugs contains all Openmoko bugs as of \today # no_bug is a query which showed no bug # from HTMLParser import HTMLParser # bugs_openmoko = """<!-- ...
16.970048
1,068
0.534723
569fd8ab2bfa51b46a8fc425da22db12d4345b01
2,188
py
Python
presenter.py
liordon/motion_detector
7c22062bb3a8b254d9e4a3d6d88a89d89320785a
[ "Unlicense" ]
null
null
null
presenter.py
liordon/motion_detector
7c22062bb3a8b254d9e4a3d6d88a89d89320785a
[ "Unlicense" ]
null
null
null
presenter.py
liordon/motion_detector
7c22062bb3a8b254d9e4a3d6d88a89d89320785a
[ "Unlicense" ]
null
null
null
import ast import datetime import cv2 import psutil from utils import *
33.661538
91
0.612431
56a0677ee2c20f71870059ac35a9ec0979418868
3,412
py
Python
mllearn/problem_transform/klabelsets.py
Lxinyuelxy/multi-label-learn
ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da
[ "MIT" ]
4
2018-11-19T13:34:53.000Z
2020-01-11T11:58:13.000Z
mllearn/problem_transform/klabelsets.py
Lxinyuelxy/multi-label-learn
ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da
[ "MIT" ]
null
null
null
mllearn/problem_transform/klabelsets.py
Lxinyuelxy/multi-label-learn
ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da
[ "MIT" ]
3
2019-04-14T18:13:33.000Z
2021-04-05T14:45:56.000Z
import copy import random import numpy as np from sklearn.svm import SVC
36.297872
87
0.566823
56a0e67715f2ad6066c4212bdf3b6c7670e86244
406
py
Python
users/tests/test_view.py
VladaDidko/skill-
861c08376e2bc9b9a5a44e3a8560324ee53ce2d0
[ "Unlicense" ]
null
null
null
users/tests/test_view.py
VladaDidko/skill-
861c08376e2bc9b9a5a44e3a8560324ee53ce2d0
[ "Unlicense" ]
18
2019-05-28T17:20:34.000Z
2022-03-11T23:50:12.000Z
users/tests/test_view.py
VladaDidko/skill-
861c08376e2bc9b9a5a44e3a8560324ee53ce2d0
[ "Unlicense" ]
3
2019-05-27T09:51:54.000Z
2019-12-12T20:35:29.000Z
from django.test import TestCase, Client from django.urls import reverse
29
58
0.768473
56a142df9367848a23bc2307ae8b5ba73cf7b0ac
976
py
Python
incidences/forms.py
atlasfoo/risk_audit_websys
df43a48699b16d0d0bade3f597d889bfe20eda7b
[ "MIT" ]
null
null
null
incidences/forms.py
atlasfoo/risk_audit_websys
df43a48699b16d0d0bade3f597d889bfe20eda7b
[ "MIT" ]
13
2021-05-28T05:22:16.000Z
2021-06-02T05:49:07.000Z
incidences/forms.py
atlasfoo/risksys
df43a48699b16d0d0bade3f597d889bfe20eda7b
[ "MIT" ]
null
null
null
from django import forms from incidences.models import Incidence
39.04
98
0.571721
56a2df9338d095c9e041cd414ec3dfeb1e4f74ab
2,206
py
Python
Detector.py
Corzair1/EyeC
0e90f8d296833c6d4b9d8eeeeed48d3a05d52ffb
[ "MIT" ]
null
null
null
Detector.py
Corzair1/EyeC
0e90f8d296833c6d4b9d8eeeeed48d3a05d52ffb
[ "MIT" ]
null
null
null
Detector.py
Corzair1/EyeC
0e90f8d296833c6d4b9d8eeeeed48d3a05d52ffb
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np from urllib.request import urlopen import os import datetime import time import sys #change to your ESP32-CAM ip url="http://192.168.31.184:81/stream" CAMERA_BUFFRER_SIZE=4096 stream=urlopen(url) bts=b'' while True: try: while True: bts+=stream.read(CAMERA_BU...
29.413333
106
0.497733
56a3e14dbfe824cc296d28795afa04041f550530
3,489
py
Python
imdb/imdb/spiders/imdb_3.py
KarolinaSzwedo/WebscrapingProject
fb59c476df8632a449290f9a4374501673729d7c
[ "MIT" ]
1
2021-05-02T20:21:26.000Z
2021-05-02T20:21:26.000Z
imdb/imdb/spiders/imdb_3.py
KarolinaSzwedo/WebscrapingProject
fb59c476df8632a449290f9a4374501673729d7c
[ "MIT" ]
null
null
null
imdb/imdb/spiders/imdb_3.py
KarolinaSzwedo/WebscrapingProject
fb59c476df8632a449290f9a4374501673729d7c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from scrapy import Request
50.565217
162
0.5953
56a469688cdd8e5eda3a9186b703e25f8c24b34a
14,742
py
Python
main.py
odgon/monitoring-vertica
300cc2bbe490dddc331475732cb6d5766a128efb
[ "MIT" ]
3
2020-07-29T19:30:25.000Z
2022-03-20T13:57:28.000Z
main.py
odgon/monitoring-vertica
300cc2bbe490dddc331475732cb6d5766a128efb
[ "MIT" ]
null
null
null
main.py
odgon/monitoring-vertica
300cc2bbe490dddc331475732cb6d5766a128efb
[ "MIT" ]
null
null
null
from fastapi import FastAPI from vc import vc import json from fastapi.openapi.utils import get_openapi from fastapi.openapi.docs import ( get_redoc_html, get_swagger_ui_html, get_swagger_ui_oauth2_redirect_html, ) with open('config.json') as jf: d = json.load(jf) vh = d['vertica']['host'] vpo ...
31.035789
353
0.574413
56a6e49ba851394662aa10e00d7024d9b014ea05
489
py
Python
default_arg.py
Baibhabswain/pythonPrograms
38380174f22e73b766b98754b00cd78a56b4bf59
[ "MIT" ]
1
2019-03-29T04:32:09.000Z
2019-03-29T04:32:09.000Z
default_arg.py
Baibhabswain/pythonPrograms
38380174f22e73b766b98754b00cd78a56b4bf59
[ "MIT" ]
null
null
null
default_arg.py
Baibhabswain/pythonPrograms
38380174f22e73b766b98754b00cd78a56b4bf59
[ "MIT" ]
null
null
null
main()
21.26087
134
0.621677
56a76dadea90c2fbb35f8500b4065a9f37d7b50f
713
py
Python
formatcode/base/utils.py
peredryaga/excel-number-format
490f91920322d1fcf6698f6ba9923565a13ba1d4
[ "MIT" ]
null
null
null
formatcode/base/utils.py
peredryaga/excel-number-format
490f91920322d1fcf6698f6ba9923565a13ba1d4
[ "MIT" ]
null
null
null
formatcode/base/utils.py
peredryaga/excel-number-format
490f91920322d1fcf6698f6ba9923565a13ba1d4
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, print_function, unicode_literals from abc import ABCMeta def is_digit(value): try: float(value) return True except (ValueError, TypeError): return False
22.28125
81
0.653576
56a7cb8d0a515d0d03e5c9639c22d946905c0f63
715
py
Python
exercises/knowledge_model.py
dana19-meet/y2s18-databases
f09ea9fe0f23449aba018d3330a5dc51c24930f8
[ "MIT" ]
null
null
null
exercises/knowledge_model.py
dana19-meet/y2s18-databases
f09ea9fe0f23449aba018d3330a5dc51c24930f8
[ "MIT" ]
null
null
null
exercises/knowledge_model.py
dana19-meet/y2s18-databases
f09ea9fe0f23449aba018d3330a5dc51c24930f8
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, Boolean from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, sessionmaker from sqlalchemy import create_engine Base = declarative_base() site1= Knowledge(IDnumber=1,name="sport",topic="swimming",rating=8) # print(site1.__repr_...
27.5
67
0.752448
56a7f7164acbc9e276761cd5fcdf3c19afa81699
404
py
Python
examples/type/str_ipv4_data.py
junpuf/serial-j
e01f9c0af39ee5ddba1fb35d042c99cbfa02641d
[ "MIT" ]
1
2019-08-30T18:14:45.000Z
2019-08-30T18:14:45.000Z
examples/type/str_ipv4_data.py
junpuf/serial-j
e01f9c0af39ee5ddba1fb35d042c99cbfa02641d
[ "MIT" ]
5
2019-07-17T01:27:20.000Z
2019-08-29T14:13:58.000Z
examples/type/str_ipv4_data.py
JunpuFan/serial-j
e01f9c0af39ee5ddba1fb35d042c99cbfa02641d
[ "MIT" ]
null
null
null
from serial_j import SerialJ valid_data = StrIPv4Data({'prop1': '172.16.255.1'}) print(valid_data) # >>> {"prop1": "172.16.255.1"} invalid_data = StrIPv4Data({'prop1': '172.16.256.1'}) # >>> ValueError: Property: 'prop1' with Value: '172.16.256.1' does not confirm with Type: (<class 'str'>, 'ipv4').
25.25
115
0.618812
3b05ff6c3393fdf9cff7387c667789a685e86381
6,465
py
Python
drive.py
7th-mod-korea/when_they_cry_converter
92956d40c02ece1b0536fbddc9799553e11af93c
[ "MIT" ]
1
2020-03-10T01:16:34.000Z
2020-03-10T01:16:34.000Z
drive.py
7th-mod-korea/when_they_cry_converter
92956d40c02ece1b0536fbddc9799553e11af93c
[ "MIT" ]
null
null
null
drive.py
7th-mod-korea/when_they_cry_converter
92956d40c02ece1b0536fbddc9799553e11af93c
[ "MIT" ]
null
null
null
from __future__ import print_function import pickle import os.path import sys import hashlib from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from apiclient import errors from googleapiclient.http import MediaIoBaseDown...
39.662577
106
0.605878
3b069538dfe981f0fa7968f67f5bda04646284dd
152,330
py
Python
google/ads/google_ads/v4/types.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v4/types.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v4/types.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
82.698154
167
0.808029
3b08aa7fb58998cc3b6424f138688be5f547dfe9
15,841
py
Python
minecraftcogs/chatrelay.py
jinkhya/Charfred_Cogs
d6afc4c02e668c046ba40e9a7afae68004658f6d
[ "MIT" ]
null
null
null
minecraftcogs/chatrelay.py
jinkhya/Charfred_Cogs
d6afc4c02e668c046ba40e9a7afae68004658f6d
[ "MIT" ]
null
null
null
minecraftcogs/chatrelay.py
jinkhya/Charfred_Cogs
d6afc4c02e668c046ba40e9a7afae68004658f6d
[ "MIT" ]
null
null
null
import logging import asyncio from concurrent.futures import CancelledError from discord.ext import commands from utils import Config, permission_node log = logging.getLogger('charfred') formats = { 'MSG': '[**{}**] {}: {}', 'STF': '**{}**: {}', 'DTH': '[**{}**] {} {}', 'ME': '[**{}**] {}: {}', 'S...
40.307888
99
0.540496
3b0aff3db58f48e9ba786715261c204ed5990700
7,504
py
Python
Code/SubwayMap.py
VGarK/Mapz
e09654b261ae25fbc73c677432aff5e26f43e42f
[ "MIT" ]
null
null
null
Code/SubwayMap.py
VGarK/Mapz
e09654b261ae25fbc73c677432aff5e26f43e42f
[ "MIT" ]
null
null
null
Code/SubwayMap.py
VGarK/Mapz
e09654b261ae25fbc73c677432aff5e26f43e42f
[ "MIT" ]
null
null
null
# This file has all the functions required to load the information of a city. # - Definition of the class Station # - Definition of the class CityInfo # - Read functions from files # - Structure of the information # __authors__='TO_BE_FILLED' __group__='DL01' # __________________________________________________________...
41.458564
136
0.597415
3b0ce22e9f3f3849e6cb4645ba1ee7779174285d
5,290
py
Python
deprecated/converters/gw100_converter.py
materials-data-facility/connect
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
1
2019-09-13T18:35:56.000Z
2019-09-13T18:35:56.000Z
deprecated/converters/gw100_converter.py
materials-data-facility/connect_server
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
15
2018-11-01T18:08:11.000Z
2021-12-06T17:55:03.000Z
deprecated/converters/gw100_converter.py
materials-data-facility/connect
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
1
2020-11-30T17:02:41.000Z
2020-11-30T17:02:41.000Z
import json import sys import os from tqdm import tqdm from mdf_refinery.validator import Validator from mdf_refinery.parsers.tab_parser import parse_tab # VERSION 0.3.0 # This is the converter for the GW100 dataset. # Arguments: # input_path (string): The file or directory where the data resides. # NOTE: D...
31.488095
548
0.520038
3b0e593188304a562ee695aad90eb0041fcdd4ae
112
py
Python
utils/__init__.py
valschneider/lauzhack2017
36fe0bb043165fa788a28863298332d70a95a57a
[ "MIT" ]
null
null
null
utils/__init__.py
valschneider/lauzhack2017
36fe0bb043165fa788a28863298332d70a95a57a
[ "MIT" ]
null
null
null
utils/__init__.py
valschneider/lauzhack2017
36fe0bb043165fa788a28863298332d70a95a57a
[ "MIT" ]
null
null
null
from abstract_keyboard import KeyData, AbstractKeyboard, Colours from physical_keyboard import PhysicalKeyboard
37.333333
64
0.892857
3b1083dfb47666192fcefb6373fe2fcf7bc0a2fb
9,098
py
Python
backend/backend.py
Mishelles/vk-spotify-playlist-transfer
4c15a9e35b1ff9aa81c7d36c53ef69b54d5a6914
[ "MIT" ]
1
2021-04-16T21:48:21.000Z
2021-04-16T21:48:21.000Z
backend/backend.py
Mishelles/vk-spotify-playlist-transfer
4c15a9e35b1ff9aa81c7d36c53ef69b54d5a6914
[ "MIT" ]
8
2021-04-05T17:16:10.000Z
2021-10-12T13:31:19.000Z
backend/backend.py
Mishelles/vk-spotify-playlist-transfer
4c15a9e35b1ff9aa81c7d36c53ef69b54d5a6914
[ "MIT" ]
null
null
null
import os import uuid import json import yaml import re from nltk.tokenize import RegexpTokenizer import requests from fastapi import FastAPI, HTTPException from fastapi.middleware.cors import CORSMiddleware from get_root_access_token_for_sp import get_token from pydantic import BaseModel from vkaudiotoken import (...
30.530201
125
0.62783
3b121f96edfab2bb880eeea95628f1c1be9789b4
8,616
py
Python
src/Noncircular/Calculations/_Appendix13_7_c.py
thepvguy/calctoys
f7ef4e422d8a27cc387c1a24b5fb6e318d774f57
[ "Unlicense" ]
7
2018-07-17T08:01:34.000Z
2021-06-14T03:33:58.000Z
src/Noncircular/Calculations/_Appendix13_7_c.py
thepvguy/calctoys
f7ef4e422d8a27cc387c1a24b5fb6e318d774f57
[ "Unlicense" ]
null
null
null
src/Noncircular/Calculations/_Appendix13_7_c.py
thepvguy/calctoys
f7ef4e422d8a27cc387c1a24b5fb6e318d774f57
[ "Unlicense" ]
6
2018-10-01T10:29:58.000Z
2022-01-24T22:34:16.000Z
import math # TODO: Implement acceptibility tests if __name__ == "__main__": import copy params_inner = Appendix13_7_cParams( internal_pressure=100, corner_radius=3, short_side_half_length=5, long_side_half_length=10, thickness=1 ) calc_inner = Appendix13_7_c...
32.636364
163
0.558264
3b1344dd323e948e9f6017df3b1661af235dfa13
1,619
py
Python
tests/api_resources/test_file_link.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
8
2021-05-29T08:57:58.000Z
2022-02-19T07:09:25.000Z
tests/api_resources/test_file_link.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
5
2021-05-31T10:18:36.000Z
2022-01-25T11:39:03.000Z
tests/api_resources/test_file_link.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
1
2021-05-29T13:27:10.000Z
2021-05-29T13:27:10.000Z
from __future__ import absolute_import, division, print_function import stripe import pytest pytestmark = pytest.mark.asyncio TEST_RESOURCE_ID = "link_123"
33.040816
67
0.683138
3b15a52f6be4dc16088c1fb00a71fbd34c59ea53
762
py
Python
L1Trigger/GlobalTriggerAnalyzer/python/l1GtBeamModeFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
L1Trigger/GlobalTriggerAnalyzer/python/l1GtBeamModeFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
L1Trigger/GlobalTriggerAnalyzer/python/l1GtBeamModeFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms l1GtBeamModeFilter = cms.EDFilter("L1GtBeamModeFilter", # input tag for input tag for ConditionInEdm products CondInEdmInputTag = cms.InputTag("conditionsInEdm"), # input tag for the L1 GT EVM product L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"), ...
34.636364
71
0.675853
3b168867b6c2192e22d3fb03d5618d1c3ca2e893
3,177
py
Python
python/Day11/seating.py
joelbygger/adventofcode20
35f9f4fa9bf051f420a22400c896bc7d26dc44d7
[ "MIT" ]
null
null
null
python/Day11/seating.py
joelbygger/adventofcode20
35f9f4fa9bf051f420a22400c896bc7d26dc44d7
[ "MIT" ]
null
null
null
python/Day11/seating.py
joelbygger/adventofcode20
35f9f4fa9bf051f420a22400c896bc7d26dc44d7
[ "MIT" ]
null
null
null
import copy # def _in_matrix(pos, seats): # return 0 <= pos[0] < len(seats[0]) and 0 <= pos[1] < len(seats) def _iterate(self, ignore_floor, tolerant): new_seats = copy.deepcopy(self._seats) for y, row in enumerate(self._seats): for x, seat in enumerate(row): nei...
28.621622
103
0.537299
3b1770ba8b608be4e3ab9c20fe2c9cb9f117e749
1,408
py
Python
main.py
LucioC/sortable
4301188933eeec96b7da3f906d80fc35ad154032
[ "Apache-2.0" ]
null
null
null
main.py
LucioC/sortable
4301188933eeec96b7da3f906d80fc35ad154032
[ "Apache-2.0" ]
null
null
null
main.py
LucioC/sortable
4301188933eeec96b7da3f906d80fc35ad154032
[ "Apache-2.0" ]
null
null
null
import os import json from challenge import FileReader, Product, Listing, MatchSearch import challenge reader = FileReader() search = MatchSearch() products = reader.read_products('products.txt'); listings = reader.read_listings('listings.txt'); listings = listings[0:1000] result = search.match_listings(listings, pro...
22.709677
78
0.734375
3b17829d2a52135864702c72229a5562364d0705
130
py
Python
src/cascade/input_data/configuration/sex.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/input_data/configuration/sex.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/input_data/configuration/sex.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
SEX_ID_TO_NAME = { 1: "male", 2: "female", 3: "both", } SEX_NAME_TO_ID = {v: k for (k, v) in SEX_ID_TO_NAME.items()}
16.25
60
0.561538
3b1818292a74a7d0a408bdab02e5f3c26aa5c07c
1,431
py
Python
squidward/tools/download_logs_sftp.py
wirrja/squidward
72945f6898f567e577aa74680b2a518b8e9a2b59
[ "Apache-2.0" ]
null
null
null
squidward/tools/download_logs_sftp.py
wirrja/squidward
72945f6898f567e577aa74680b2a518b8e9a2b59
[ "Apache-2.0" ]
null
null
null
squidward/tools/download_logs_sftp.py
wirrja/squidward
72945f6898f567e577aa74680b2a518b8e9a2b59
[ "Apache-2.0" ]
null
null
null
import paramiko from django.conf import settings remotepath = settings.SQUID_LOGDIR_REMOTE remotepath_messages = settings.PPTP_LOGDIR_REMOTE username = settings.SQUID_USERNAME password = settings.SQUID_PASSWORD # local path for both log types and programs localpath = settings.SQUID_LOGDIR log_filename = s...
28.62
91
0.639413
3b19ff6520a92cbe9bced32400b4df1a8b799dfb
1,057
py
Python
Executables/PythonScriptTakingArguments.py
SimioLLC/RunExecutableStep
377fde62b3ce022a54c7f60d8d1fe70880ce610c
[ "MIT" ]
2
2021-12-12T14:30:51.000Z
2022-02-08T07:31:50.000Z
Executables/PythonScriptTakingArguments.py
SimioLLC/RunExecutableStep
377fde62b3ce022a54c7f60d8d1fe70880ce610c
[ "MIT" ]
2
2021-05-20T17:17:11.000Z
2022-02-09T06:58:22.000Z
Executables/PythonScriptTakingArguments.py
SimioLLC/RunExecutableStep
377fde62b3ce022a54c7f60d8d1fe70880ce610c
[ "MIT" ]
null
null
null
import sys import datetime # Sample program to be initiated by the Simio Step RunExecutable with "Python" ArgumentLogic. # This runs python scripts with argument convention of: 1st arg is the script name, followed # by arguments. All args are surrounded with a double-quote. # The script append-prints the arguments it ...
30.2
93
0.639546
3b1a2bad79b0569b3ffa94c11cc30ebadfab7c45
139
py
Python
python/dragonradio/dragonradio/net/__init__.py
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
8
2020-12-05T20:30:54.000Z
2022-01-22T13:32:14.000Z
python/dragonradio/dragonradio/net/__init__.py
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
3
2020-10-28T22:15:27.000Z
2021-01-27T14:43:41.000Z
python/dragonradio/dragonradio/net/__init__.py
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
null
null
null
# Copyright 2021 Drexel University # Author: Geoffrey Mainland <mainland@drexel.edu> try: from _dragonradio.net import * except: pass
17.375
49
0.76259
3b1ca3b503a037398aebee47693ea3fd4611ebf6
8,712
py
Python
app/handlers/gear_handlers.py
lik33v3n/Tower-of-God
1e6c86939f053739f9e73d56fd1c04d7fb444e8b
[ "MIT" ]
3
2020-06-28T18:04:12.000Z
2022-02-15T19:46:47.000Z
app/handlers/gear_handlers.py
lik33v3n/Tower-of-God
1e6c86939f053739f9e73d56fd1c04d7fb444e8b
[ "MIT" ]
null
null
null
app/handlers/gear_handlers.py
lik33v3n/Tower-of-God
1e6c86939f053739f9e73d56fd1c04d7fb444e8b
[ "MIT" ]
null
null
null
import logging from contextlib import suppress from math import fabs from aiogram.dispatcher import FSMContext from aiogram.types import CallbackQuery, Message, ReplyKeyboardRemove from aiogram.utils.exceptions import (MessageToDeleteNotFound, MessageToEditNotFound) from app.__ma...
44.676923
184
0.609734
3b1ce50f7d1f70a241cbdefb23a5cd91698686da
206
py
Python
Mundo1/ex021-import.playsound.py
YuriBraga/Python_Course
1f72ec02e9fa911ddbf28830542374a419d15a6c
[ "MIT" ]
null
null
null
Mundo1/ex021-import.playsound.py
YuriBraga/Python_Course
1f72ec02e9fa911ddbf28830542374a419d15a6c
[ "MIT" ]
null
null
null
Mundo1/ex021-import.playsound.py
YuriBraga/Python_Course
1f72ec02e9fa911ddbf28830542374a419d15a6c
[ "MIT" ]
null
null
null
'''from pygame import mixer mixer.init() mixer.music.load('ex021.mp3') mixer.music.play() input('Agora d para escutar')''' # Pode ser feito assim tambm: import playsound playsound.playsound('ex021.mp3')
20.6
33
0.742718
3b1d65a917c8c063a1bd09d9e9f6843cb500fb33
701
py
Python
app/project/config.py
caulagi/shakuni
f027810bc72b55da302d6672cd64fdf7c92f1661
[ "MIT" ]
null
null
null
app/project/config.py
caulagi/shakuni
f027810bc72b55da302d6672cd64fdf7c92f1661
[ "MIT" ]
null
null
null
app/project/config.py
caulagi/shakuni
f027810bc72b55da302d6672cd64fdf7c92f1661
[ "MIT" ]
null
null
null
""" project.conf Configuration module holding all the options """ DEBUG = True import os BASE_DIR = os.path.abspath(os.path.dirname(__file__)) MONGO_DBNAME = os.environ.get("MONGOHQ_URL") or "mongodb://localhost:27017/shakuni" THREADS_PER_PAGE = 2 CSRF_ENABLED = True CSRF_SESSION_KEY = "secret" SECRET_KEY = "sec...
21.90625
97
0.723252
3b1d776e41dc299f7cabc58c3c4496054743240c
310
py
Python
__init__.py
jamespacileo/packaginator
d4b51ae16e0658fade91e1a6c4ce987ee747b053
[ "MIT" ]
14
2015-10-03T07:34:28.000Z
2021-09-20T07:10:29.000Z
__init__.py
pythonchelle/opencomparison
b39d279e25527520c66335e51455d1f9ba749c9b
[ "MIT" ]
23
2019-10-25T08:47:23.000Z
2022-01-30T02:00:45.000Z
__init__.py
pythonchelle/opencomparison
b39d279e25527520c66335e51455d1f9ba749c9b
[ "MIT" ]
7
2016-10-04T08:10:36.000Z
2021-09-20T07:10:33.000Z
# -*- coding: utf-8 -*- __about__ = """ This project comes with the bare minimum set of applications and templates to get you started. It includes no extra tabs, only the profile and notices tabs are included by default. From here you can add any extra functionality and applications that you would like. """
34.444444
75
0.758065
3b1def38d43dac35f2085935c4181e7f579d703d
209
py
Python
src/ikazuchi/core/handler/__init__.py
t2y/ikazuchi
7023111e92fa47360c50cfefd1398c554475f2c6
[ "Apache-2.0" ]
null
null
null
src/ikazuchi/core/handler/__init__.py
t2y/ikazuchi
7023111e92fa47360c50cfefd1398c554475f2c6
[ "Apache-2.0" ]
null
null
null
src/ikazuchi/core/handler/__init__.py
t2y/ikazuchi
7023111e92fa47360c50cfefd1398c554475f2c6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from base import BaseHandler, LanguageHandler, NullHandler from text import SingleSentenceHandler __all__ = [ "LanguageHandler", "NullHandler", "SingleSentenceHandler", ]
19
58
0.717703
3b1e0e175fb077fad4c9db8318a631de85c5f035
2,934
py
Python
Script/train_w2v.py
zrfan/Tencent-Ads-Algo-Comp-2020
8b52df4b86b95de581549e61d15a1403f636d530
[ "MIT" ]
null
null
null
Script/train_w2v.py
zrfan/Tencent-Ads-Algo-Comp-2020
8b52df4b86b95de581549e61d15a1403f636d530
[ "MIT" ]
null
null
null
Script/train_w2v.py
zrfan/Tencent-Ads-Algo-Comp-2020
8b52df4b86b95de581549e61d15a1403f636d530
[ "MIT" ]
2
2020-06-18T05:05:55.000Z
2020-12-21T06:30:08.000Z
import os import sys import numpy as np import pandas as pd import logging import gc import tqdm import pickle import json import time import tempfile from gensim.models import Word2Vec cwd = os.getcwd() embed_path = os.path.join(cwd, 'embed_artifact') # Training corpus for w2v model corpus_dic = { 'creative': os.p...
31.212766
130
0.719496
3b1f18f1cb1193facb4ab6b88b9e77bb24dc04a6
8,632
py
Python
src/utils.py
huyhoang17/DB_text_minimal
0d1466889b21cb74a0571a0fb3856902739ea523
[ "MIT" ]
30
2020-07-20T12:13:27.000Z
2022-03-08T06:30:31.000Z
src/utils.py
huyhoang17/DB_text_minimal
0d1466889b21cb74a0571a0fb3856902739ea523
[ "MIT" ]
10
2020-08-11T10:21:11.000Z
2022-03-07T15:27:49.000Z
src/utils.py
huyhoang17/DB_text_minimal
0d1466889b21cb74a0571a0fb3856902739ea523
[ "MIT" ]
6
2020-09-02T10:58:00.000Z
2021-08-13T01:43:47.000Z
import os import gc import glob import time import random import imageio import logging from functools import wraps import cv2 import numpy as np import matplotlib.pyplot as plt import torch import torchvision.utils as torch_utils from postprocess import SegDetectorRepresenter # device = torch.device("cuda" if torch...
30.394366
79
0.597544
3b1f289d94d22713713a02c29b3bffd65bfda6e1
45,021
py
Python
example/demos/views.py
bashu/django-uncharted
b285b4dfc8310cb62e7535fb39326916e2c81159
[ "MIT" ]
9
2015-06-07T06:50:42.000Z
2020-09-04T05:57:20.000Z
example/demos/views.py
bashu/django-uncharted
b285b4dfc8310cb62e7535fb39326916e2c81159
[ "MIT" ]
1
2015-09-24T08:17:25.000Z
2019-03-31T03:51:00.000Z
example/demos/views.py
bashu/django-uncharted
b285b4dfc8310cb62e7535fb39326916e2c81159
[ "MIT" ]
2
2018-11-13T22:56:05.000Z
2020-11-18T07:18:49.000Z
# -*- coding: utf-8 -*- from random import random from datetime import timedelta from django.conf import settings from django.utils import timezone from django.views.generic import TemplateView from uncharted.chart import * area100PercentStacked = Area100PercentStacked.as_view() areaStacked = AreaStacked.as_view...
26.420775
103
0.49046
3b1feff132bdd5118a48fe91a841752101d30350
2,930
py
Python
bot.py
ktrieu/idea-bot
ad02dc21d320b73027e09d4d123df8e6ee139f7c
[ "MIT" ]
null
null
null
bot.py
ktrieu/idea-bot
ad02dc21d320b73027e09d4d123df8e6ee139f7c
[ "MIT" ]
null
null
null
bot.py
ktrieu/idea-bot
ad02dc21d320b73027e09d4d123df8e6ee139f7c
[ "MIT" ]
null
null
null
from dotenv import load_dotenv import os import discord from generator import ( GeneratorProcess, GenerateRequest, StopRequest, ResponseType, ) from multiprocessing import Pipe import util import asyncio load_dotenv() ALLOWED_CHANNELS = {"secret-channel-name", "beyond-ideas"} TEST_SERVER_ID = 74822840...
29.897959
92
0.617747
3b21bc3e72739e8aa2087fd962b62ceaa0418fc1
7,090
py
Python
jerml/transformers.py
jmann277/jers_ml_tools
faaaa202b1f5406ff47821474bd8eb14bce22f77
[ "MIT" ]
null
null
null
jerml/transformers.py
jmann277/jers_ml_tools
faaaa202b1f5406ff47821474bd8eb14bce22f77
[ "MIT" ]
3
2021-06-08T22:12:54.000Z
2022-01-13T03:09:06.000Z
jerml/transformers.py
jmann277/jers_ml_tools
faaaa202b1f5406ff47821474bd8eb14bce22f77
[ "MIT" ]
null
null
null
''' This module contains a medley of sklearn transformers which can be integrated into a pipeline. ''' import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from sklearn.decomposition import PCA from scipy.stats import kstat from homcv import betti_numbers
30.560345
89
0.596474
3b2534c0418b9126bf14031fac35d279d4d24036
2,220
py
Python
experiment1_meantime.py
mcsosa121/KSRFILS
75995933771d8338de33cc9bbb5e9416e4242c6b
[ "MIT" ]
null
null
null
experiment1_meantime.py
mcsosa121/KSRFILS
75995933771d8338de33cc9bbb5e9416e4242c6b
[ "MIT" ]
null
null
null
experiment1_meantime.py
mcsosa121/KSRFILS
75995933771d8338de33cc9bbb5e9416e4242c6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import numpy from krypy.linsys import LinearSystem, Cg from krypy.deflation import DeflatedCg, DeflatedGmres, Ritz from krypy.utils import Arnoldi, ritz, BoundCG from krypy.recycling import RecyclingCg from krypy.recycling.factories import RitzFactory,RitzFactorySimple from k...
32.647059
93
0.644144
3b26b3c9eed01d7a7107dd173072da3799bc96a8
417
py
Python
catkin_ws/bbinstance/src/bbinstance/robotInstance2.py
fontysrobotics/Blackboard_based_distributed_fleet_manager
a6b44738fe67f4948a69f8d45da58d981c6724e0
[ "BSD-3-Clause" ]
null
null
null
catkin_ws/bbinstance/src/bbinstance/robotInstance2.py
fontysrobotics/Blackboard_based_distributed_fleet_manager
a6b44738fe67f4948a69f8d45da58d981c6724e0
[ "BSD-3-Clause" ]
null
null
null
catkin_ws/bbinstance/src/bbinstance/robotInstance2.py
fontysrobotics/Blackboard_based_distributed_fleet_manager
a6b44738fe67f4948a69f8d45da58d981c6724e0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #need to point to classes inorder to import import rospy from blackboard.Robot import Robot from blackboard.RosCommunication import Talker from rosnode import rosnode_ping from blackboard.Blackboard import Blackboard from blackboard.Battery import Battery bat = Battery(100,500,100) talker = Talk...
24.529412
68
0.786571
3b272c4081ff788cf0e7635f139e4a72c7417fd5
3,935
py
Python
club_crm/api/backend/restaurant.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
club_crm/api/backend/restaurant.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
club_crm/api/backend/restaurant.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe from datetime import datetime, date from club_crm.club_crm.utils.sms_notification import send_sms from club_crm.club_crm.utils.push_notification import send_push from frappe.utils import getdate, get_time, flt from frappe.utils import escape_html from frappe import ...
34.823009
148
0.581194
3b28f0284102a05a1095c18ed52c32ed434b06cb
5,448
py
Python
keras_vgg_16.py
henniekim/python_keras_vgg_16
46f86f8737244cf10155b08eaebe0d5232199215
[ "MIT" ]
null
null
null
keras_vgg_16.py
henniekim/python_keras_vgg_16
46f86f8737244cf10155b08eaebe0d5232199215
[ "MIT" ]
null
null
null
keras_vgg_16.py
henniekim/python_keras_vgg_16
46f86f8737244cf10155b08eaebe0d5232199215
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.layers import Dense, Activation from keras.layers.pooling import MaxPooling2D from keras.layers.convolutional import Conv2D from keras.initializers import he_normal from keras.initializers import Zeros from keras.activations import relu from keras.layers import Flatten fro...
34.481013
112
0.606094
3b2dfadc0723866c776dd2e832a0bd0837f7b239
246
py
Python
run/depla/experiment/__init__.py
KinakomochiBotan/depla
e2c530f7fe5fc8fe185f0f789738fa7fc52bdeca
[ "MIT" ]
null
null
null
run/depla/experiment/__init__.py
KinakomochiBotan/depla
e2c530f7fe5fc8fe185f0f789738fa7fc52bdeca
[ "MIT" ]
null
null
null
run/depla/experiment/__init__.py
KinakomochiBotan/depla
e2c530f7fe5fc8fe185f0f789738fa7fc52bdeca
[ "MIT" ]
null
null
null
from .experiment import Experiment from .experiment1 import Experiment1 from .experiment2 import Experiment21, Experiment22, Experiment23 from .experiment3 import Experiment31, Experiment32, Experiment33, Experiment34, Experiment35, Experiment36
49.2
107
0.861789
3b2fc312f99460590373adcc92790f19e8fa24fd
2,149
py
Python
posts/migrations/0001_initial.py
yashgo0018/django_blog
c742e632c8657582952fe27589fd8a704c9ebfbf
[ "MIT" ]
null
null
null
posts/migrations/0001_initial.py
yashgo0018/django_blog
c742e632c8657582952fe27589fd8a704c9ebfbf
[ "MIT" ]
null
null
null
posts/migrations/0001_initial.py
yashgo0018/django_blog
c742e632c8657582952fe27589fd8a704c9ebfbf
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-24 05:27 import ckeditor_uploader.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion
38.375
120
0.579805
3b3016e674b62043a2e132fe78e7e8b49b36eeef
1,231
py
Python
tests/test_user.py
kangangi/blogIP
70494f73e5e89fb3d844c728b8feaeba56397718
[ "MIT" ]
null
null
null
tests/test_user.py
kangangi/blogIP
70494f73e5e89fb3d844c728b8feaeba56397718
[ "MIT" ]
null
null
null
tests/test_user.py
kangangi/blogIP
70494f73e5e89fb3d844c728b8feaeba56397718
[ "MIT" ]
null
null
null
import unittest from app import db from app.models import User
34.194444
155
0.676686
3b3377ab3bbbbe4087d48dd851a3fad3ecbb9f4d
7,284
py
Python
tests/unit/orders/manual/test_manual_sell_orders.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
tests/unit/orders/manual/test_manual_sell_orders.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
tests/unit/orders/manual/test_manual_sell_orders.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
import http from pathlib import Path from urllib.parse import urlencode from hargreaves.search.models import InvestmentCategoryTypes from hargreaves.session.mocks import MockSessionClient from hargreaves.orders.manual.clients import ManualOrderClient from hargreaves.orders.manual.models import ManualOrder, ManualOrder...
35.705882
109
0.62905
3b3429811d85f7005761b8ac7ab0e4ba8f27c361
10,675
py
Python
disco/cli/config_time_series.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
2
2022-03-11T20:04:34.000Z
2022-03-14T22:25:29.000Z
disco/cli/config_time_series.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
4
2022-03-11T17:48:50.000Z
2022-03-17T21:39:47.000Z
disco/cli/config_time_series.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Creates JADE configuration for stage 1 of pydss_simulation pipeline.""" import logging import sys import click from jade.common import CONFIG_FILE from jade.loggers import setup_logging from jade.utils.utils import load_data from PyDSS.reports.pv_reports import PF1_SCENARIO, CONTROL_MODE_SC...
34.214744
102
0.662857
3b342af0c0a09204758f2297725b146938b7b68d
1,236
py
Python
example/client/sampleclient.py
Pizaid/pizaid-controller
b4945d06efe3f12b90f9c917a53a95753ef3c477
[ "MIT" ]
null
null
null
example/client/sampleclient.py
Pizaid/pizaid-controller
b4945d06efe3f12b90f9c917a53a95753ef3c477
[ "MIT" ]
1
2020-04-16T08:12:00.000Z
2020-04-16T08:12:00.000Z
example/client/sampleclient.py
Pizaid/pizaid-controller
b4945d06efe3f12b90f9c917a53a95753ef3c477
[ "MIT" ]
1
2020-04-14T09:48:07.000Z
2020-04-14T09:48:07.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 : # # Author: Makoto Shimazu <makoto.shimaz@gmail.com> # URL: https://github.com/Pizaid # License: 2-Clause BSD License # Created: 2014-08-09 # import sys sys.path.append('gen-py') from Pizaid import ControllerService from Pizaid.tty...
29.428571
57
0.733819
3b34ddac11a67c7eb3731fd10bcd57b32d475cfe
660
py
Python
moralizer/moralizer.py
npmontgomery/moralizer
3a1d452c273b8a999ec1ce233e74831e1a89c13d
[ "MIT" ]
3
2019-07-25T01:56:20.000Z
2020-10-02T22:30:36.000Z
moralizer/moralizer.py
npmontgomery/moralizer
3a1d452c273b8a999ec1ce233e74831e1a89c13d
[ "MIT" ]
null
null
null
moralizer/moralizer.py
npmontgomery/moralizer
3a1d452c273b8a999ec1ce233e74831e1a89c13d
[ "MIT" ]
1
2020-04-17T22:10:24.000Z
2020-04-17T22:10:24.000Z
from auxilliary_functions import * def read_file(filename): """ Reads in a file as utf-8. :param filename: Filepath to the file to be read. """ with open(filename, 'r',encoding='utf-8') as file: return file.read() def moralize(input_text, output_format='pydict'): """ Takes input t...
27.5
101
0.7
3b35fe45e80f54b97695c26773ce24d2dd23c8ca
519
py
Python
convert_shu_json.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
3
2015-09-07T00:16:16.000Z
2019-01-11T20:27:56.000Z
convert_shu_json.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
null
null
null
convert_shu_json.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
null
null
null
import os import json from pprint import pprint if __name__ == '__main__': convert('/Users/cassiomelo/Downloads/formalcontext.json', '/Users/cassiomelo/Downloads/formalcontext.cxt')
22.565217
110
0.622351
3b36647274e28645db368fe1412571e540dc57c9
1,919
py
Python
vcfp_attack/trainByBayes.py
kenneds6/VCFingerprinting
2de88766e2b2beeed44a4267c370fe755b5db90d
[ "MIT" ]
null
null
null
vcfp_attack/trainByBayes.py
kenneds6/VCFingerprinting
2de88766e2b2beeed44a4267c370fe755b5db90d
[ "MIT" ]
null
null
null
vcfp_attack/trainByBayes.py
kenneds6/VCFingerprinting
2de88766e2b2beeed44a4267c370fe755b5db90d
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import sys import sklearn from sklearn.naive_bayes import GaussianNB from sklearn.externals import joblib import argparse import numpy as np import fileUtils import tools if __name__ == "__main__": opts = parseOpts(sys.argv) main(opts)
24.922078
81
0.682126