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
bc328c1d04ee6b4b30d02e5e2fb637b331521485
23,497
py
Python
mediapipe_utils.py
brightereyeslynxes/corpusLabe_prototype
806af365d1256d0fadd7ab1f4f54a1233278fee5
[ "MIT" ]
null
null
null
mediapipe_utils.py
brightereyeslynxes/corpusLabe_prototype
806af365d1256d0fadd7ab1f4f54a1233278fee5
[ "MIT" ]
null
null
null
mediapipe_utils.py
brightereyeslynxes/corpusLabe_prototype
806af365d1256d0fadd7ab1f4f54a1233278fee5
[ "MIT" ]
null
null
null
import cv2 import numpy as np from collections import namedtuple from math import ceil, sqrt, exp, pi, floor, sin, cos, atan2, gcd import time from collections import deque, namedtuple # Dictionary that maps from joint names to keypoint indices. KEYPOINT_DICT = { "nose": 0, "left_eye_inner": 1, "left_eye":...
40.303602
153
0.621101
bc32a3234dd90ad352aba5adb527d79b901adc29
303
py
Python
examples/fixture.no_background/features/steps/use_steplib_behave4cmd.py
wombat70/behave
c54493b0531795d946ac6754bfc643248cf3056a
[ "BSD-2-Clause" ]
13
2019-10-03T19:15:14.000Z
2019-10-16T02:01:57.000Z
examples/fixture.no_background/features/steps/use_steplib_behave4cmd.py
wombat70/behave
c54493b0531795d946ac6754bfc643248cf3056a
[ "BSD-2-Clause" ]
2
2020-03-21T22:37:54.000Z
2021-10-04T17:14:14.000Z
examples/fixture.no_background/features/steps/use_steplib_behave4cmd.py
fluendo/behave
eeffde083456dcf1a0ea9b6139b32091970118c0
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Use behave4cmd0 step library (predecessor of behave4cmd). """ from __future__ import absolute_import # -- REGISTER-STEPS FROM STEP-LIBRARY: # import behave4cmd0.__all_steps__ # import behave4cmd0.failing_steps import behave4cmd0.passing_steps import behave4cmd0.note_steps
23.307692
57
0.785479
bc3318ee93392f473d8dec2ba7ec5b3d52f0589d
4,524
py
Python
build/python/modules/assembly/package_manifest.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
5
2022-01-10T20:22:17.000Z
2022-01-21T20:14:17.000Z
build/python/modules/assembly/package_manifest.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
null
null
null
build/python/modules/assembly/package_manifest.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2022 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from dataclasses import dataclass from typing import Dict, List, Optional from serialization import serialize_fields_as __all__ = ['PackageManifest', 'Packag...
34.8
111
0.641689
bc33b82e9c92fada4f9a24afcaa8e16bbc692cff
6,025
py
Python
annotation/black_action/test/move_ry.py
windfall-shogi/feature-annotation
83ff7c3fa31e542221cf45186b2ea3ef2a10310f
[ "MIT" ]
null
null
null
annotation/black_action/test/move_ry.py
windfall-shogi/feature-annotation
83ff7c3fa31e542221cf45186b2ea3ef2a10310f
[ "MIT" ]
null
null
null
annotation/black_action/test/move_ry.py
windfall-shogi/feature-annotation
83ff7c3fa31e542221cf45186b2ea3ef2a10310f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os from itertools import product from pathlib import Path import numpy as np import tensorflow as tf from dotenv import load_dotenv from annotation.direction import (Direction, get_diagonal_directions, get_cross_directions) from ...
38.870968
78
0.446473
bc33e1a164ea02a1949fb5d46cf3c8b6e16f624c
747
py
Python
assignments/assignment2/solutions/Nkarnaud/devhub-0.1.0/src/account/forms.py
Nkarnaud/python-mentorship
a00735fc8b63e244b91575540c54d0eea942381f
[ "Apache-2.0" ]
1
2019-04-22T18:42:51.000Z
2019-04-22T18:42:51.000Z
assignments/assignment2/solutions/Nkarnaud/devhub-0.1.0/src/account/forms.py
Nkarnaud/python-mentorship
a00735fc8b63e244b91575540c54d0eea942381f
[ "Apache-2.0" ]
null
null
null
assignments/assignment2/solutions/Nkarnaud/devhub-0.1.0/src/account/forms.py
Nkarnaud/python-mentorship
a00735fc8b63e244b91575540c54d0eea942381f
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.contrib.auth.models import User from account.models import Account
41.5
97
0.745649
bc3513cb203b5eb746d7ca1948d927c26402a7f1
390
py
Python
palsbet/migrations/0003_auto_20180323_0018.py
denis254/palsbetc
d70d0fadaa661ff36c046a4f0a87a88d890c0dc4
[ "BSD-3-Clause" ]
null
null
null
palsbet/migrations/0003_auto_20180323_0018.py
denis254/palsbetc
d70d0fadaa661ff36c046a4f0a87a88d890c0dc4
[ "BSD-3-Clause" ]
11
2020-03-24T16:11:23.000Z
2021-12-13T19:47:29.000Z
palsbet/migrations/0003_auto_20180323_0018.py
denis254/overtimebet
063af2fc263580d96e396e953ef8658a75ac38a5
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.2 on 2018-03-22 21:18 from django.db import migrations, models
20.526316
51
0.602564
bc3c7092993eb4e13af6dd3b1e0b4b31e2777061
18,700
py
Python
Environment.py
mxrcfdez/TrafficLightsAutomation
fe5b3c1cebe585e4f9a3fb2d2a7653f4ac2edb8a
[ "Apache-2.0" ]
null
null
null
Environment.py
mxrcfdez/TrafficLightsAutomation
fe5b3c1cebe585e4f9a3fb2d2a7653f4ac2edb8a
[ "Apache-2.0" ]
null
null
null
Environment.py
mxrcfdez/TrafficLightsAutomation
fe5b3c1cebe585e4f9a3fb2d2a7653f4ac2edb8a
[ "Apache-2.0" ]
null
null
null
import gym from gym import spaces import numpy as np import learning_data from Simulation import Simulation
53.276353
190
0.634439
bc3d021b03a2c4dec39faa861c772e80b36950d7
1,311
py
Python
test.py
nerdingitout/STT--
4544f89abd6c2a8c11c1cf3e309ceb6f5d9b6b15
[ "Apache-2.0" ]
null
null
null
test.py
nerdingitout/STT--
4544f89abd6c2a8c11c1cf3e309ceb6f5d9b6b15
[ "Apache-2.0" ]
null
null
null
test.py
nerdingitout/STT--
4544f89abd6c2a8c11c1cf3e309ceb6f5d9b6b15
[ "Apache-2.0" ]
null
null
null
import pandas as pd import json import csv # importing the module import json # Opening JSON file with open('response.json') as json_file: data = json.load(json_file) # for reading nested data [0] represents # the index value of the list print(data['results'][0]['alternatives']['transcri...
29.133333
91
0.650648
70ad458eac22677ad1d19a761c4bf2d78f497f97
6,407
py
Python
loldib/getratings/models/NA/na_sivir/na_sivir_bot.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_sivir/na_sivir_bot.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_sivir/na_sivir_bot.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings
15.364508
46
0.761667
70adc0ef41a2821b404e088ae1c817c6c3515597
1,711
py
Python
policy2tosca/build/lib.linux-x86_64-2.7/policy2tosca/del_type.py
Tosca-Projects/parser
04dabfa15db432b24656d38628a846b73b658339
[ "Apache-2.0" ]
1
2018-05-14T09:59:51.000Z
2018-05-14T09:59:51.000Z
policy2tosca/build/lib.linux-x86_64-2.7/policy2tosca/del_type.py
Tosca-Projects/parser
04dabfa15db432b24656d38628a846b73b658339
[ "Apache-2.0" ]
null
null
null
policy2tosca/build/lib.linux-x86_64-2.7/policy2tosca/del_type.py
Tosca-Projects/parser
04dabfa15db432b24656d38628a846b73b658339
[ "Apache-2.0" ]
2
2019-04-20T15:00:58.000Z
2020-06-16T14:42:35.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
35.645833
84
0.680304
70ae466b7e7db5a0d09e04c20a68c88f305a4aac
77
py
Python
build_start.py
sanman00/SpongeSkills
7a54e424071a21a55a84479e0177ed7ebacc9c31
[ "MIT" ]
null
null
null
build_start.py
sanman00/SpongeSkills
7a54e424071a21a55a84479e0177ed7ebacc9c31
[ "MIT" ]
4
2017-05-05T15:51:09.000Z
2017-05-08T17:18:27.000Z
build_start.py
sanman00/SpongeSkills
7a54e424071a21a55a84479e0177ed7ebacc9c31
[ "MIT" ]
null
null
null
from build import replace_text, version replace_text("@{version}", version)
19.25
39
0.779221
70b064cf7bb27004817810b3d9823f1d22968297
17,748
py
Python
cuppa/cpp/create_version_file_cpp.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
25
2015-09-24T07:04:45.000Z
2022-02-19T03:31:03.000Z
cuppa/cpp/create_version_file_cpp.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
46
2015-05-20T12:48:12.000Z
2022-01-10T10:38:55.000Z
cuppa/cpp/create_version_file_cpp.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
13
2015-07-12T09:55:03.000Z
2021-07-02T15:32:12.000Z
# Copyright Jamie Allsop 2011-2017 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #------------------------------------------------------------------------------- # CreateVersionFileCpp #--...
44.259352
133
0.46963
70b086468733c1b6ce77c49c47bc0d4d8412c1dd
101
py
Python
enthought/mayavi/components/implicit_plane.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/mayavi/components/implicit_plane.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/mayavi/components/implicit_plane.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from mayavi.components.implicit_plane import *
25.25
46
0.851485
70b0ec3b0f20b624360319ad2024474c4a16cdca
928
py
Python
Learning/python_data_analysis11.py
VictoriaGuXY/MCO-Menu-Checker-Online
706e2e1bf7395cc344f382ea2ac53d964d459f86
[ "MIT" ]
null
null
null
Learning/python_data_analysis11.py
VictoriaGuXY/MCO-Menu-Checker-Online
706e2e1bf7395cc344f382ea2ac53d964d459f86
[ "MIT" ]
null
null
null
Learning/python_data_analysis11.py
VictoriaGuXY/MCO-Menu-Checker-Online
706e2e1bf7395cc344f382ea2ac53d964d459f86
[ "MIT" ]
null
null
null
import pandas as pd from scipy.stats import ttest_rel """ output """ # Note: some output is shortened to save spaces. # This file discusses statistical analysis (Part II). # ------------------------------------------------------------------------------ # Data stored in form of xlsx with contents: """ group data...
21.090909
80
0.516164
70b1ab24a4c3db1cf759b4299c57523f7d5eee15
6,640
py
Python
pytorch_ares/third_party/free_adv_train/multi_restart_pgd_attack.py
thu-ml/realsafe
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
107
2020-06-15T09:55:11.000Z
2020-12-20T11:27:11.000Z
pytorch_ares/third_party/free_adv_train/multi_restart_pgd_attack.py
haichen-ber/ares
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
7
2020-06-14T03:00:18.000Z
2020-12-07T07:10:10.000Z
pytorch_ares/third_party/free_adv_train/multi_restart_pgd_attack.py
haichen-ber/ares
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
19
2020-06-14T08:35:33.000Z
2020-12-19T13:43:41.000Z
""" Implementation of attack methods. Running this file as a program will evaluate the model and get the validation accuracy and then apply the attack to the model specified by the config file and store the examples in an .npy file. """ from __future__ import absolute_import from __future__ import division from...
40.242424
116
0.573795
70b214dd70a108da0b34f14109cdc980a1bad769
166
py
Python
run.py
envy7/project-dream-team-three
ebadf13ee0d76bd924bd1ba639d448f8e28ac01c
[ "Unlicense" ]
null
null
null
run.py
envy7/project-dream-team-three
ebadf13ee0d76bd924bd1ba639d448f8e28ac01c
[ "Unlicense" ]
null
null
null
run.py
envy7/project-dream-team-three
ebadf13ee0d76bd924bd1ba639d448f8e28ac01c
[ "Unlicense" ]
null
null
null
import os from app import create_app config_name = os.getenv('FLASK_CONFIG') app = create_app('development') if __name__ == '__main__': app.run(host='0.0.0.0')
18.444444
39
0.710843
70b25fd80453311c6bb986cd2ea2ef428837a8d3
30,392
py
Python
tests/test_utils.py
jbradberry/universe
109261f75c49435d118cf9c5238124466a03d2d3
[ "MIT" ]
null
null
null
tests/test_utils.py
jbradberry/universe
109261f75c49435d118cf9c5238124466a03d2d3
[ "MIT" ]
24
2020-04-14T20:32:21.000Z
2021-08-03T13:29:45.000Z
tests/test_utils.py
jbradberry/universe
109261f75c49435d118cf9c5238124466a03d2d3
[ "MIT" ]
3
2016-10-28T19:20:30.000Z
2021-02-28T03:19:49.000Z
import unittest from universe import components, engine, utils
30.240796
75
0.274184
70b42808fd3e5b69884acc32783742c4f3b80d18
12,044
py
Python
models/model_search.py
WZzhaoyi/TF-NAS
f63e9fd3a5ca0d8c6400891baa19c2168b203513
[ "MIT" ]
62
2020-07-05T11:59:47.000Z
2022-01-18T08:09:53.000Z
models/model_search.py
WZzhaoyi/TF-NAS
f63e9fd3a5ca0d8c6400891baa19c2168b203513
[ "MIT" ]
4
2020-08-17T09:13:47.000Z
2021-10-01T03:21:28.000Z
models/model_search.py
WZzhaoyi/TF-NAS
f63e9fd3a5ca0d8c6400891baa19c2168b203513
[ "MIT" ]
11
2020-07-23T06:21:28.000Z
2021-06-13T20:19:24.000Z
import random import torch import torch.nn as nn import torch.nn.functional as F from .layers import * PRIMITIVES = [ 'MBI_k3_e3', 'MBI_k3_e6', 'MBI_k5_e3', 'MBI_k5_e6', 'MBI_k3_e3_se', 'MBI_k3_e6_se', 'MBI_k5_e3_se', 'MBI_k5_e6_se', # 'skip', ] OPS = { 'MBI_k3_e3' : lambda ic, mc, oc, s, aff, act: MBInvert...
32.907104
119
0.650614
70b8bfd3bed877715148c6075360f5dc2f1f654e
6,001
py
Python
code/decision.py
preethi2205/RND_SearchAndSampleReturn
a29ccfe62c74bac1dd2d387d018543a17b87d362
[ "MIT" ]
null
null
null
code/decision.py
preethi2205/RND_SearchAndSampleReturn
a29ccfe62c74bac1dd2d387d018543a17b87d362
[ "MIT" ]
null
null
null
code/decision.py
preethi2205/RND_SearchAndSampleReturn
a29ccfe62c74bac1dd2d387d018543a17b87d362
[ "MIT" ]
null
null
null
import numpy as np import random as random # This is where you can build a decision tree for determining throttle, brake and steer # commands based on the output of the perception_step() function
40.275168
106
0.585902
70b8e8b51a58773bba3751b1c3d887e592c99dd0
869
py
Python
ch17/yunqiCrawl/yunqiCrawl/scrapy_redis/connection.py
AaronZhengkk/SpiderBook
48f82e4627f88f366bbaff71f01bac6412f78eca
[ "MIT" ]
990
2017-04-20T07:58:39.000Z
2022-03-28T08:52:46.000Z
base/bloom_redis/connection.py
Deep-Heart/Spider
33fd548c025bd52571f52e4b53d8e7cb8570be6f
[ "Apache-2.0" ]
119
2017-06-20T12:57:11.000Z
2021-04-27T04:58:34.000Z
base/bloom_redis/connection.py
Deep-Heart/Spider
33fd548c025bd52571f52e4b53d8e7cb8570be6f
[ "Apache-2.0" ]
583
2017-05-12T04:05:45.000Z
2022-03-18T02:40:13.000Z
import redis # Default values. REDIS_URL = None REDIS_HOST = 'localhost' REDIS_PORT = 6379 FILTER_URL = None FILTER_HOST = 'localhost' FILTER_PORT = 6379 FILTER_DB = 0
24.138889
62
0.695052
70b9709e5bc187bf4a8b2990ce0f982cea60bcb9
13,444
py
Python
odoo-14.0/addons/hr_holidays/tests/test_automatic_leave_dates.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
odoo-14.0/addons/hr_holidays/tests/test_automatic_leave_dates.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
odoo-14.0/addons/hr_holidays/tests/test_automatic_leave_dates.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import date, datetime from odoo.tests.common import Form from odoo.addons.hr_holidays.tests.common import TestHrHolidaysCommon from odoo.exceptions import ValidationError
46.041096
100
0.507885
70ba13d0c276d8e93931e5d84090ba6194a1d012
445
py
Python
oface/model/base.py
007gzs/oface
9e4ca8ee572783cff4417c58217cdcb8c7af07f4
[ "MIT" ]
2
2021-06-01T01:33:32.000Z
2021-11-23T10:39:35.000Z
oface/model/base.py
007gzs/oface
9e4ca8ee572783cff4417c58217cdcb8c7af07f4
[ "MIT" ]
null
null
null
oface/model/base.py
007gzs/oface
9e4ca8ee572783cff4417c58217cdcb8c7af07f4
[ "MIT" ]
1
2021-07-16T22:42:55.000Z
2021-07-16T22:42:55.000Z
# encoding: utf-8 from __future__ import absolute_import, unicode_literals import onnxruntime
29.666667
78
0.698876
70bcf6e650bbb3a26c3ae8d0c7700d683160246d
3,881
py
Python
fabrun/views.py
agepoly/azimut-gestion
76da15a55086fdfacf605c139a1a64884ab0de40
[ "MIT" ]
null
null
null
fabrun/views.py
agepoly/azimut-gestion
76da15a55086fdfacf605c139a1a64884ab0de40
[ "MIT" ]
null
null
null
fabrun/views.py
agepoly/azimut-gestion
76da15a55086fdfacf605c139a1a64884ab0de40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.shortcuts import get_object_or_404, render_to_response, redirect from django.template import RequestContext from django.core.context_processors import csrf from django.views.decorators.csrf import csrf_exempt from django.http import Http404, HttpResponse, HttpResponseForbidden, Http...
31.552846
155
0.707034
70be7dcca787cb83953f057618abd33581e4ef7e
1,687
py
Python
psets/set1/perceptron_helper.py
ichakraborty/CS155-iniproject
e149d82586a7c6b79a71a2e56213daa7dfacbff0
[ "BSD-2-Clause" ]
14
2021-01-05T06:54:16.000Z
2022-01-24T23:49:01.000Z
psets/set1/perceptron_helper.py
ichakraborty/CS155-iniproject
e149d82586a7c6b79a71a2e56213daa7dfacbff0
[ "BSD-2-Clause" ]
null
null
null
psets/set1/perceptron_helper.py
ichakraborty/CS155-iniproject
e149d82586a7c6b79a71a2e56213daa7dfacbff0
[ "BSD-2-Clause" ]
25
2021-01-06T19:15:00.000Z
2022-01-10T14:31:15.000Z
######################################## # CS/CNS/EE 155 2018 # Problem Set 1 # # Author: Joey Hong # Description: Set 1 Perceptron helper ######################################## import numpy as np import matplotlib.pyplot as plt def predict(x, w, b): ''' The method takes the weight vector and bias o...
29.086207
86
0.566686
70c12af7d29c0b551f062c5e568d21efaf3953fe
5,894
py
Python
1D_2D_arrays/1D_2D_arrays.py
Speedy905/ICS4U-Scripts
4867410658f1ddc8e509edfc725058996019ab5d
[ "MIT" ]
null
null
null
1D_2D_arrays/1D_2D_arrays.py
Speedy905/ICS4U-Scripts
4867410658f1ddc8e509edfc725058996019ab5d
[ "MIT" ]
null
null
null
1D_2D_arrays/1D_2D_arrays.py
Speedy905/ICS4U-Scripts
4867410658f1ddc8e509edfc725058996019ab5d
[ "MIT" ]
null
null
null
#Antonio Karlo Mijares #ICS4U-01 #November 24 2016 #1D_2D_arrays.py #Creates 1D arrays, for the variables to be placed in characteristics = [] num = [] #Creates a percentage value for the numbers to be calculated with base = 20 percentage = 100 #2d Arrays #Ugly Arrays ugly_one_D = [] ugly_one_D_two = [] ugly_two_D ...
30.225641
65
0.610282
70c55b64383890933df21310cef6c32194158ea0
407
py
Python
gym_viewshed/envs/__init__.py
baimukashev/gym-viewshed
802b613433c15f6f8582aa42c8af9b1d2b2c591d
[ "Apache-2.0" ]
null
null
null
gym_viewshed/envs/__init__.py
baimukashev/gym-viewshed
802b613433c15f6f8582aa42c8af9b1d2b2c591d
[ "Apache-2.0" ]
null
null
null
gym_viewshed/envs/__init__.py
baimukashev/gym-viewshed
802b613433c15f6f8582aa42c8af9b1d2b2c591d
[ "Apache-2.0" ]
null
null
null
# from gym_viewshed.envs.viewshed_env import ViewshedEnv # from gym_viewshed.envs.viewshed_basic_env import ViewshedBasicEnv # from gym_viewshed.envs.viewshed_random_env import ViewshedRandomEnv # from gym_viewshed.envs.viewshed_greedy_env import ViewshedGreedyEnv # from gym_viewshed.envs.viewshed_coverage_env import V...
58.142857
73
0.886978
70c5e600c8b44bccf3f53b8bb4d07e06e41833dc
4,081
py
Python
syn/base/b/tests/test_wrapper.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
1
2021-07-15T08:55:12.000Z
2021-07-15T08:55:12.000Z
syn/base/b/tests/test_wrapper.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
7
2021-01-07T23:51:57.000Z
2021-12-13T19:50:57.000Z
syn/base/b/tests/test_wrapper.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
2
2016-07-11T08:46:31.000Z
2017-12-13T13:30:51.000Z
import collections from copy import deepcopy from nose.tools import assert_raises from syn.base.b import ListWrapper, Attr from syn.base.b.tests.test_base import check_idempotence from syn.types.a import generate from syn.type.a import Schema from syn.schema.b.sequence import Sequence from syn.base_utils import assert_...
27.02649
80
0.559667
70c72d20e3d2306963f8dc57ddf61ae7eaf753fe
21,974
py
Python
code_dense_hmm/experiment.py
fraunhofer-iais/dense-hmm
28a93fe987e3c4ec2876221a90ba93ac304e1e09
[ "MIT" ]
null
null
null
code_dense_hmm/experiment.py
fraunhofer-iais/dense-hmm
28a93fe987e3c4ec2876221a90ba93ac304e1e09
[ "MIT" ]
null
null
null
code_dense_hmm/experiment.py
fraunhofer-iais/dense-hmm
28a93fe987e3c4ec2876221a90ba93ac304e1e09
[ "MIT" ]
null
null
null
from models import StandardHMM, DenseHMM, HMMLoggingMonitor from utils import prepare_data, check_random_state, create_directories, dict_get, Timer, timestamp_msg, check_dir, is_multinomial, compute_stationary, check_sequences from data import penntreebank_tag_sequences, protein_sequences, train_test_split from datet...
47.562771
166
0.705834
70c846852061594e0e9914e39b2035cd28c6dd88
2,167
py
Python
jetson/ballrunner.py
Reslix/Lohbot
4920c0d0fcda64ec7b6438dd848c789e4fd15cc4
[ "MIT" ]
1
2018-02-21T03:49:54.000Z
2018-02-21T03:49:54.000Z
jetson/ballrunner.py
Reslix/Lohbot
4920c0d0fcda64ec7b6438dd848c789e4fd15cc4
[ "MIT" ]
null
null
null
jetson/ballrunner.py
Reslix/Lohbot
4920c0d0fcda64ec7b6438dd848c789e4fd15cc4
[ "MIT" ]
null
null
null
from newcamera import TrackingCameraRunner from serial_io import SerialIO from show import imshow import cv2 import math print("Initializing serial connection with Arduino") ard = SerialIO() ard.start() print("Initializing camera") c = TrackingCameraRunner(0) print("Tracking Ball...") tcenterx = 640 tradius = 40 spee...
30.957143
97
0.513152
70c959da6388e937e02687ad9571d92c479badd1
8,247
py
Python
simple_rl/tasks/taxi/TaxiOOMDPClass.py
KorlaMarch/simple_rl
30086b5cf4fd3e9dee76ddfb5ae4f565593ce191
[ "Apache-2.0" ]
10
2021-11-22T12:29:30.000Z
2022-03-28T10:23:16.000Z
simple_rl/tasks/taxi/TaxiOOMDPClass.py
samlobel/simple_rl_mbrl
ed868916d06dbf68f4af23bea83b0e852e88df6e
[ "Apache-2.0" ]
null
null
null
simple_rl/tasks/taxi/TaxiOOMDPClass.py
samlobel/simple_rl_mbrl
ed868916d06dbf68f4af23bea83b0e852e88df6e
[ "Apache-2.0" ]
2
2022-03-19T07:42:56.000Z
2022-03-28T10:36:33.000Z
''' TaxiMDPClass.py: Contains the TaxiMDP class. From: Dietterich, Thomas G. "Hierarchical reinforcement learning with the MAXQ value function decomposition." J. Artif. Intell. Res.(JAIR) 13 (2000): 227-303. Author: David Abel (cs.brown.edu/~dabel/) ''' # Python imports. from __future__ import print_func...
31.477099
137
0.587486
70c96909cdb1ba2109525248284a595c630feada
2,176
py
Python
tests/bugs/core_2923_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_2923_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_2923_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_2923 # title: Problem with dependencies between a procedure and a view using that procedure # decription: # tracker_id: CORE-2923 # min_versions: ['2.5.0'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action ...
19.428571
93
0.529412
70c98f390066819db18b2eabe5323591400b47e2
5,582
py
Python
day_09.py
bob-white/advent_2018
4139359b322eb42ac6cfef9e574e43bc91caa62d
[ "MIT" ]
1
2018-12-02T05:41:56.000Z
2018-12-02T05:41:56.000Z
day_09.py
bob-white/advent_2018
4139359b322eb42ac6cfef9e574e43bc91caa62d
[ "MIT" ]
null
null
null
day_09.py
bob-white/advent_2018
4139359b322eb42ac6cfef9e574e43bc91caa62d
[ "MIT" ]
null
null
null
""" --- Day 9: Marble Mania --- You talk to the Elves while you wait for your navigation system to initialize. To pass the time, they introduce you to their favorite marble game. The Elves play this game by taking turns arranging the marbles in a circle according to very particular rules. The marbles are numbered sta...
52.168224
473
0.67431
70cae01a3bbf35c083ab9e6723658c85595554ce
983
py
Python
problems/test_ic_1_stock_prices.py
gregdferrell/algo
974ae25b028d49bcb7ded6655a7e11dcf6aa221d
[ "MIT" ]
null
null
null
problems/test_ic_1_stock_prices.py
gregdferrell/algo
974ae25b028d49bcb7ded6655a7e11dcf6aa221d
[ "MIT" ]
null
null
null
problems/test_ic_1_stock_prices.py
gregdferrell/algo
974ae25b028d49bcb7ded6655a7e11dcf6aa221d
[ "MIT" ]
null
null
null
from .ic_1_stock_prices import stock_prices_1_brute_force, stock_prices_2_greedy
30.71875
80
0.787386
70cd06f1a4e2360da81c2eda5df37352f1b549eb
762
py
Python
qctrl_api/control_api/models.py
bibek-Neupane/back-end-challenge
d5a7b33adaa59e5ad566ac7435132c990f80a740
[ "Apache-2.0" ]
null
null
null
qctrl_api/control_api/models.py
bibek-Neupane/back-end-challenge
d5a7b33adaa59e5ad566ac7435132c990f80a740
[ "Apache-2.0" ]
null
null
null
qctrl_api/control_api/models.py
bibek-Neupane/back-end-challenge
d5a7b33adaa59e5ad566ac7435132c990f80a740
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator
34.636364
102
0.692913
70cf5a0e46bf75e6b641daf22edae36bebfe4306
1,542
py
Python
pyNastran/bdf/mesh_utils/mesh.py
numenic/pyNastran
fd5d3f0bf18db6595d85b9ac152f611e23122a68
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/mesh_utils/mesh.py
numenic/pyNastran
fd5d3f0bf18db6595d85b9ac152f611e23122a68
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/mesh_utils/mesh.py
numenic/pyNastran
fd5d3f0bf18db6595d85b9ac152f611e23122a68
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from pyNastran.bdf.cards.aero.utils import ( points_elements_from_quad_points, create_axisymmetric_body) def create_structured_cquad4s(model, pid, p1, p2, p3, p4, nx, ny, nid=1, eid=1, theta_mcid=0.): """ Parameters ---------- p1 / p2 / p3 / p4 : (3,...
27.052632
92
0.56096
70cf7afe354a978de44df2e05db5b47dec3c12de
19,755
py
Python
trtools/dumpSTR/tests/test_filters.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
14
2020-04-20T15:38:52.000Z
2022-02-07T11:45:23.000Z
trtools/dumpSTR/tests/test_filters.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
74
2020-03-02T23:34:53.000Z
2022-03-21T18:32:10.000Z
trtools/dumpSTR/tests/test_filters.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
15
2018-10-29T19:41:33.000Z
2020-02-21T18:41:51.000Z
import argparse import os,sys import pytest from ..dumpSTR import * from ..filters import * def test_CallRateFilter(tmpdir): args = base_argparse(tmpdir) args.min_locus_callrate = 0.7 locus_filters = BuildLocusFilters(args) assert ApplyLocusFilters( TestCallRateRec(), locus_filters, EmptyLoc...
33.711604
90
0.631891
70d0af6ad9af6dd93cea341a74bb165569785d3c
1,749
py
Python
src/tower.py
stove41/screeps
d3756785403757aa2cb7b2831c1ddbfb3b0026cd
[ "MIT" ]
null
null
null
src/tower.py
stove41/screeps
d3756785403757aa2cb7b2831c1ddbfb3b0026cd
[ "MIT" ]
2
2022-02-01T04:41:55.000Z
2022-02-01T06:39:08.000Z
src/tower.py
stove41/screeps
d3756785403757aa2cb7b2831c1ddbfb3b0026cd
[ "MIT" ]
null
null
null
from defs import * __pragma__('noalias', 'name') __pragma__('noalias', 'undefined') __pragma__('noalias', 'Infinity') __pragma__('noalias', 'keys') __pragma__('noalias', 'get') __pragma__('noalias', 'set') __pragma__('noalias', 'type') __pragma__('noalias', 'update')
36.4375
114
0.520869
70d17a8fc5d57f5a8b35aadcc5b4ae250e597c06
6,081
py
Python
code/crawling/glowpick.py
DataNetworkAnalysis/OliveYoung_for_Man
bdd2c432746309d71437855186a6aa0c12a60f7e
[ "MIT" ]
6
2020-01-28T08:23:55.000Z
2021-11-12T11:19:56.000Z
code/crawling/glowpick.py
DataNetworkAnalysis/OliveYoung_for_Man
bdd2c432746309d71437855186a6aa0c12a60f7e
[ "MIT" ]
null
null
null
code/crawling/glowpick.py
DataNetworkAnalysis/OliveYoung_for_Man
bdd2c432746309d71437855186a6aa0c12a60f7e
[ "MIT" ]
1
2020-01-26T18:28:30.000Z
2020-01-26T18:28:30.000Z
''' : main.py python glowpick.py 1. Category 2. Brand_Name 3. Product_Name 4. volume 5. price 6. Sales Rank 7. rate 8. nb_reviews 7. product_number ''' from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import Acti...
33.229508
153
0.535274
70d1f8b647267479a9bcde7a989424cc5e099952
3,651
py
Python
engine/engine.py
farouqzaib/Personify
ae7c837b5539ccc1f0d4a8f327783814228fe4d7
[ "MIT" ]
1
2018-05-09T21:56:08.000Z
2018-05-09T21:56:08.000Z
engine/engine.py
farouqzaib/Personify
ae7c837b5539ccc1f0d4a8f327783814228fe4d7
[ "MIT" ]
null
null
null
engine/engine.py
farouqzaib/Personify
ae7c837b5539ccc1f0d4a8f327783814228fe4d7
[ "MIT" ]
1
2018-05-09T21:56:46.000Z
2018-05-09T21:56:46.000Z
from algorithms.factorization_machine import FactorizationMachine from algorithms.latent_dirichlet_allocation import LatentDirichletAllocation from app.config import db from app.config.config import engine import datetime import numpy as np import pandas as pd import pickle
36.148515
143
0.599836
70d273f42e3df714bfd7e79274d26f4a44433731
3,179
py
Python
tests/test_parse_string.py
zalmane/copybook
1afe405ee8466ca87706c6067b227a62ecd61203
[ "MIT" ]
12
2020-10-27T11:54:51.000Z
2022-03-06T18:38:05.000Z
tests/test_parse_string.py
zalmane/copybook
1afe405ee8466ca87706c6067b227a62ecd61203
[ "MIT" ]
5
2021-01-11T16:01:04.000Z
2022-03-10T06:37:36.000Z
tests/test_parse_string.py
zalmane/copybook
1afe405ee8466ca87706c6067b227a62ecd61203
[ "MIT" ]
1
2021-11-27T03:34:30.000Z
2021-11-27T03:34:30.000Z
import pytest # Reader imports import copybook # # Tests # tests = { "extra header text":""" 10 IDENTIFICATION DIVISION. PROGRAM-ID. 8-REPORT. AUTHOR. DDT. MODIFIED BY OREN. DATE WRITTEN. 10/13/2010. DATE COMPILED. 10/13/2010. 01 WORK-BOOK. ...
36.125
82
0.35766
70d28b57c47afe1c70e1683910f82209fac17a5b
451
py
Python
decorators.py
ir0nfelix/async_fileserver
84d5f329982923855e0e0dc0b12fedcaaf26f1f7
[ "MIT" ]
1
2020-09-07T22:38:47.000Z
2020-09-07T22:38:47.000Z
decorators.py
ir0nfelix/minio-async-fileserver
84d5f329982923855e0e0dc0b12fedcaaf26f1f7
[ "MIT" ]
null
null
null
decorators.py
ir0nfelix/minio-async-fileserver
84d5f329982923855e0e0dc0b12fedcaaf26f1f7
[ "MIT" ]
null
null
null
from werkzeug import exceptions import settings from utils import get_class_by_path
26.529412
87
0.707317
70d40f732da818242831ed4b95c44dbd678d72f8
1,189
py
Python
quadboost/data_preprocessing/mean_haar.py
jsleb333/quadboost
b4b980ff4af727d5cec0348484a34f34e82168cd
[ "MIT" ]
1
2018-08-27T22:56:30.000Z
2018-08-27T22:56:30.000Z
quadboost/data_preprocessing/mean_haar.py
jsleb333/quadboost
b4b980ff4af727d5cec0348484a34f34e82168cd
[ "MIT" ]
null
null
null
quadboost/data_preprocessing/mean_haar.py
jsleb333/quadboost
b4b980ff4af727d5cec0348484a34f34e82168cd
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import skimage.transform as skit import sys, os sys.path.append(os.getcwd()) from quadboost.datasets import MNISTDataset from quadboost.utils import * from haar_preprocessing import * mnist = MNISTDataset.load('haar_mnist_pad.pkl') (Xtr, Ytr), (Xts, Yts) = mnist.get_...
31.289474
101
0.70143
70d4dd142230f9c4175d163a6058e4aebffb4747
1,233
py
Python
gpgraph/pyplot/utils.py
lperezmo/gpgraph
7c62a8181734be8a6bc46a434839a06808736a2c
[ "Unlicense" ]
null
null
null
gpgraph/pyplot/utils.py
lperezmo/gpgraph
7c62a8181734be8a6bc46a434839a06808736a2c
[ "Unlicense" ]
1
2020-07-02T21:55:17.000Z
2020-07-02T21:55:17.000Z
gpgraph/pyplot/utils.py
lperezmo/gpgraph
7c62a8181734be8a6bc46a434839a06808736a2c
[ "Unlicense" ]
3
2019-04-24T20:42:43.000Z
2020-06-25T04:12:37.000Z
import numpy as np import matplotlib.colors as colors import matplotlib.pyplot as plt def despine(ax=None): """Despine axes.""" ax.spines['right'].set_visible(False) ax.spines['left'].set_visible(False) ax.spines['top'].set_visible(False) ax.spines['bottom'].set_visible(False) ax.set_xticks([]...
28.022727
77
0.638281
70d587780f92ec710f858bf4bc668d0621a5b699
4,034
py
Python
plugin.video.saltsrd.lite/scrapers/rlssource_scraper.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:37:15.000Z
2019-03-05T09:37:15.000Z
plugin.video.saltsrd.lite/scrapers/rlssource_scraper.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
plugin.video.saltsrd.lite/scrapers/rlssource_scraper.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
""" SALTS XBMC Addon Copyright (C) 2014 tknorris This program 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. T...
42.020833
206
0.636093
70d5a45e4ad316255e38a153523ae1f59fe462d2
3,940
py
Python
visualization/experiments/plot_calibration_curves.py
silasbrack/special-course
47dc396f97b2027d366e90add115d4ed2bc0f1de
[ "MIT" ]
null
null
null
visualization/experiments/plot_calibration_curves.py
silasbrack/special-course
47dc396f97b2027d366e90add115d4ed2bc0f1de
[ "MIT" ]
null
null
null
visualization/experiments/plot_calibration_curves.py
silasbrack/special-course
47dc396f97b2027d366e90add115d4ed2bc0f1de
[ "MIT" ]
null
null
null
from typing import List import numpy as np import pandas as pd from matplotlib import pyplot as plt from visualization.helper_functions import ( FIGURE_FOLDER, TYPE_DICT, calibration_curves, ) from visualization.load_results import load_results, save_results_to_table if __name__ == "__main__": for ...
29.62406
77
0.515228
70d80cd9fad27c72a8556e30ec8f23dd7965d36e
11,794
py
Python
project/exact_distributions_covariance/exact_distributions_covariance_tools.py
juanhenao21/exact_distributions_financial
02eb058e5f963fbccb9029aae3fb6e15def7a93a
[ "MIT" ]
2
2021-03-20T18:24:22.000Z
2021-04-15T07:25:50.000Z
project/exact_distributions_covariance/exact_distributions_covariance_tools.py
juanhenao21/exact_distributions_financial
02eb058e5f963fbccb9029aae3fb6e15def7a93a
[ "MIT" ]
null
null
null
project/exact_distributions_covariance/exact_distributions_covariance_tools.py
juanhenao21/exact_distributions_financial
02eb058e5f963fbccb9029aae3fb6e15def7a93a
[ "MIT" ]
null
null
null
"""Exact distributions covariance tools module. The functions in the module do small repetitive tasks, that are used along the whole implementation. These tools improve the way the tasks are standardized in the modules that use them. This script requires the following modules: * os * pickle * typing *...
30.475452
87
0.567916
70d8fcb9af98e95db88cc389a427fda9e1bc42e5
3,272
py
Python
Mission_to_Mars/Flask Application/scrape_mars.py
bigoshunane/Web-Scraping-Challenge-HM-10
98ae94b5db9246082fbb600e02b91064e5d3513e
[ "ADSL" ]
null
null
null
Mission_to_Mars/Flask Application/scrape_mars.py
bigoshunane/Web-Scraping-Challenge-HM-10
98ae94b5db9246082fbb600e02b91064e5d3513e
[ "ADSL" ]
null
null
null
Mission_to_Mars/Flask Application/scrape_mars.py
bigoshunane/Web-Scraping-Challenge-HM-10
98ae94b5db9246082fbb600e02b91064e5d3513e
[ "ADSL" ]
null
null
null
# Import Dependencies import pandas as pd from splinter import Browser from bs4 import BeautifulSoup as bs from webdriver_manager.chrome import ChromeDriverManager
31.161905
74
0.645171
70d940d807d775cf236b4b2decb10d2c5a7f64f8
15,391
py
Python
Snake.py
RodneyTheProgrammer/snkgame
4fdeb1a1c2c871f307ce0984949693506292ec1c
[ "BSD-2-Clause" ]
null
null
null
Snake.py
RodneyTheProgrammer/snkgame
4fdeb1a1c2c871f307ce0984949693506292ec1c
[ "BSD-2-Clause" ]
null
null
null
Snake.py
RodneyTheProgrammer/snkgame
4fdeb1a1c2c871f307ce0984949693506292ec1c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import curses import time import random from operator import getitem,attrgetter stdscr = curses.initscr() L,W= stdscr.getmaxyx() curses.start_color() curses.noecho() curses.cbreak() curses.curs_set(0) stdscr.keypad(1) L,W = stdscr.getmaxyx() normal,infiltrate,get2goal,runaway=0,1,2,3 #point-relate...
27.681655
84
0.523553
70d993efbc1f1e5a1f92a001568acf76b80283cd
266
py
Python
Jawaban/4.py
Rakhid16/pibiti-himatifa-2020
734ae59d0ffb3cf41d14fe4fbcaba7b317f5c870
[ "Apache-2.0" ]
null
null
null
Jawaban/4.py
Rakhid16/pibiti-himatifa-2020
734ae59d0ffb3cf41d14fe4fbcaba7b317f5c870
[ "Apache-2.0" ]
null
null
null
Jawaban/4.py
Rakhid16/pibiti-himatifa-2020
734ae59d0ffb3cf41d14fe4fbcaba7b317f5c870
[ "Apache-2.0" ]
null
null
null
kamus = {"elephant" : "gajah", "zebra" : "zebra", "dog" : "anjing", "camel" : "unta"} kata = input("Masukan kata berbahasa inggris : ") if kata in kamus: print("Terjemahan dari " + kata + " adalah " + kamus[kata]) else: print("Kata tersebt belum ada di kamus")
33.25
85
0.631579
70d9fd3c3648f0a4459448b9661eee37f5884a7a
2,521
py
Python
pureskillgg_dsdk/tome/reader_fs.py
pureskillgg/dsdk
2e91a815dc06cc37ac8272d87014301c64c1b46e
[ "MIT" ]
null
null
null
pureskillgg_dsdk/tome/reader_fs.py
pureskillgg/dsdk
2e91a815dc06cc37ac8272d87014301c64c1b46e
[ "MIT" ]
1
2022-03-31T15:16:17.000Z
2022-03-31T19:38:05.000Z
pureskillgg_dsdk/tome/reader_fs.py
pureskillgg/dsdk
2e91a815dc06cc37ac8272d87014301c64c1b46e
[ "MIT" ]
null
null
null
import pandas as pd import structlog import rapidjson from .constants import ( get_page_key_fs, get_tome_manifest_key_fs, get_tome_path_fs, )
30.373494
88
0.611265
70da002befd824161b1b4d3ae29fa75a282470f6
7,713
py
Python
scripts/google_client.py
hypothe/dialogflow_ros
9e804acf31c384286ebf15e666a952740e2341d9
[ "MIT" ]
null
null
null
scripts/google_client.py
hypothe/dialogflow_ros
9e804acf31c384286ebf15e666a952740e2341d9
[ "MIT" ]
null
null
null
scripts/google_client.py
hypothe/dialogflow_ros
9e804acf31c384286ebf15e666a952740e2341d9
[ "MIT" ]
2
2021-09-09T07:33:27.000Z
2021-09-09T07:37:28.000Z
#!/usr/bin/env python # from google.cloud import speech from google.cloud import speech_v1p1beta1 as speech from google.cloud.speech_v1p1beta1 import enums from google.cloud.speech_v1p1beta1 import types from google.api_core.exceptions import InvalidArgument, OutOfRange import pyaudio import Queue import rospy import ...
40.594737
107
0.615714
70de539c35a70303d9276df027cc058eb5448bce
6,158
py
Python
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/callback_life_cycle_hook_option.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/callback_life_cycle_hook_option.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/callback_life_cycle_hook_option.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): ""...
32.240838
124
0.650698
70dec0077e310c765f9ecb7dbeebc0c662a8b197
9,621
py
Python
gui.py
TheAlienBee/Search_and_Apply
a62dcad45df09a38ab41c2f450a3202f3def6b3b
[ "MIT" ]
null
null
null
gui.py
TheAlienBee/Search_and_Apply
a62dcad45df09a38ab41c2f450a3202f3def6b3b
[ "MIT" ]
null
null
null
gui.py
TheAlienBee/Search_and_Apply
a62dcad45df09a38ab41c2f450a3202f3def6b3b
[ "MIT" ]
null
null
null
import tkinter as tk #tkinter is our gui lib. import webbrowser #webbrowser allows us to open user's default web browser. good for clicking on links. import jsonlines import io import genCoverLetter as gcl from Search_and_Apply.Search_and_Apply.spiders.IndeedSpider import searchFor from Search_and_Apply.Search_...
41.291845
122
0.624571
70e03d9e1b93f27a85964cb57647f8629b96f070
3,900
py
Python
followthemoney/model.py
dschulz-pnnl/followthemoney
0b28240f156bfef0efa2ab636b95fb1bf62cd919
[ "MIT" ]
null
null
null
followthemoney/model.py
dschulz-pnnl/followthemoney
0b28240f156bfef0efa2ab636b95fb1bf62cd919
[ "MIT" ]
null
null
null
followthemoney/model.py
dschulz-pnnl/followthemoney
0b28240f156bfef0efa2ab636b95fb1bf62cd919
[ "MIT" ]
null
null
null
import os import yaml from followthemoney.types import registry from followthemoney.schema import Schema from followthemoney.mapping import QueryMapping from followthemoney.proxy import EntityProxy from followthemoney.exc import InvalidModel, InvalidData
35.454545
79
0.610769
70e0a6a13cc5a05c0b7485409fd0055a7d8eb46a
93
py
Python
constants.py
supro200/sdwan-auto-upgrade
3339d56203c678398da98ac2a6398f2edd66c245
[ "MIT" ]
2
2021-01-18T18:42:24.000Z
2021-02-01T01:21:18.000Z
constants.py
supro200/sdwan-auto-upgrade
3339d56203c678398da98ac2a6398f2edd66c245
[ "MIT" ]
null
null
null
constants.py
supro200/sdwan-auto-upgrade
3339d56203c678398da98ac2a6398f2edd66c245
[ "MIT" ]
null
null
null
JUMPHOST = "jumphost" VMANAGE = "10.121.6.35" AZURE_STORAGE_ACCOUNT = "azure-storage-account"
31
47
0.763441
70e1500de54114c53300f7cf878cd9e1343b3276
1,423
py
Python
api_v1/urls.py
yogoh31/Repath-App-Backend
c2cc85b05457ae7338de6f299ce369358402ce12
[ "MIT" ]
null
null
null
api_v1/urls.py
yogoh31/Repath-App-Backend
c2cc85b05457ae7338de6f299ce369358402ce12
[ "MIT" ]
null
null
null
api_v1/urls.py
yogoh31/Repath-App-Backend
c2cc85b05457ae7338de6f299ce369358402ce12
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework_simplejwt.views import ( TokenObtainPairView, TokenRefreshView, ) from .views import ( RegisterView, UserDetail, LocationList, LocationDetail, FavoritePlaceList, FavoritePlaceDetail, ObstacleList, ObstacleDetail, UserObstacleC...
35.575
83
0.683767
70e3213acde89557a8953f051282e36ffe6c2163
5,868
py
Python
vp_suite/models/precipitation_nowcasting/ef_conv_lstm.py
AIS-Bonn/vp-suite
479bd48185b9a93a6bc6bff2dfe226e9c65800d8
[ "MIT" ]
3
2022-03-05T15:27:25.000Z
2022-03-25T18:47:35.000Z
vp_suite/models/precipitation_nowcasting/ef_conv_lstm.py
Flunzmas/vp-suite
391570121b5bd9e3fd23aca9a0945a63c4173a24
[ "MIT" ]
16
2022-01-06T08:38:26.000Z
2022-02-23T19:19:28.000Z
vp_suite/models/precipitation_nowcasting/ef_conv_lstm.py
AIS-Bonn/vp-suite
479bd48185b9a93a6bc6bff2dfe226e9c65800d8
[ "MIT" ]
3
2022-02-07T22:34:45.000Z
2022-02-22T11:14:37.000Z
from collections import OrderedDict from vp_suite.model_blocks import ConvLSTM from vp_suite.models.precipitation_nowcasting.ef_blocks import Encoder_Forecaster
53.834862
143
0.644853
70e3447c4bcf181b14f0d6dcbb687ab8db72f47b
560
py
Python
dataPreparation/src/so_helper.py
boneyag/msr-2022
624267325bdfc97bb93c89f205b3df1c3db279ac
[ "CC0-1.0" ]
null
null
null
dataPreparation/src/so_helper.py
boneyag/msr-2022
624267325bdfc97bb93c89f205b3df1c3db279ac
[ "CC0-1.0" ]
null
null
null
dataPreparation/src/so_helper.py
boneyag/msr-2022
624267325bdfc97bb93c89f205b3df1c3db279ac
[ "CC0-1.0" ]
null
null
null
from bs4 import BeautifulSoup from bs4 import SoupStrainer import sys
21.538462
78
0.680357
70e49ef3673c84333e4a25074d53220adfed4c79
23,920
py
Python
src/xiyanghong.py
1332927388/-
a470c92d489dd31f580dd9ad9e54783089034219
[ "Apache-2.0" ]
null
null
null
src/xiyanghong.py
1332927388/-
a470c92d489dd31f580dd9ad9e54783089034219
[ "Apache-2.0" ]
null
null
null
src/xiyanghong.py
1332927388/-
a470c92d489dd31f580dd9ad9e54783089034219
[ "Apache-2.0" ]
1
2020-06-08T12:14:01.000Z
2020-06-08T12:14:01.000Z
from iFinDPy import * import datetime as dt import time import datetime import pandas as pd import statsmodels.api as sm import numpy as np import talib # # # ======================= # util # -------------------------------------- # # Nan # # # # account.hold # # RSI # ...
32.902338
181
0.552341
70e52df4dc9953cd6ed3848558c135eb3f637b16
1,984
py
Python
nbpkg/pkginspect/nbpkgdescr.py
kiaderouiche/nbpkgquery
17c996398fad922276c2dc250392959e7bfc31f0
[ "MIT" ]
1
2017-05-27T13:30:41.000Z
2017-05-27T13:30:41.000Z
nbpkg/pkginspect/nbpkgdescr.py
kiaderouiche/nbpkgquery
17c996398fad922276c2dc250392959e7bfc31f0
[ "MIT" ]
null
null
null
nbpkg/pkginspect/nbpkgdescr.py
kiaderouiche/nbpkgquery
17c996398fad922276c2dc250392959e7bfc31f0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' nbpkg defspec ''' NBPKG_MAGIC_NUMBER = b'\x1f\x8b' NBPKG_HEADER_MAGIC_NUMBER = '\037\213' NBPKGINFO_MIN_NUMBER = 1000 NBPKGINFO_MAX_NUMBER = 1146 # data types definition NBPKG_DATA_TYPE_NULL = 0 NBPKG_DATA_TYPE_CHAR = 1 NBPKG_DATA_TYPE_INT8 = 2 NBPKG_DATA_TYPE_INT16 = 3 NBPKG_DATA_TYPE_IN...
25.435897
48
0.703629
70e5936d22684ae5af27f5e2945439d629f68c79
15,699
py
Python
utils/speakerid.py
JaejinCho/espnet
a52bdebb08558b63df23564d6e67dfcba8a41d78
[ "Apache-2.0" ]
4
2020-10-28T00:34:21.000Z
2021-08-02T05:43:59.000Z
utils/speakerid.py
JaejinCho/espnet_spkidtts
a52bdebb08558b63df23564d6e67dfcba8a41d78
[ "Apache-2.0" ]
null
null
null
utils/speakerid.py
JaejinCho/espnet_spkidtts
a52bdebb08558b63df23564d6e67dfcba8a41d78
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import numpy as np from scipy.fftpack import dct, idct from scipy import linalg as la import torch.nn.functional as F import logging def conv3x3(in_planes, out_planes, stride=1): """3x3 convolution with padding""" return n...
39.946565
195
0.607873
70e60e00a82583d2b84159dd671f305b0d950716
642
py
Python
import_data.py
plug8955/python-mysql-excel
96bc11104fc2c488c8825b2c19a086a50f50153f
[ "MIT" ]
null
null
null
import_data.py
plug8955/python-mysql-excel
96bc11104fc2c488c8825b2c19a086a50f50153f
[ "MIT" ]
null
null
null
import_data.py
plug8955/python-mysql-excel
96bc11104fc2c488c8825b2c19a086a50f50153f
[ "MIT" ]
1
2022-02-14T12:41:19.000Z
2022-02-14T12:41:19.000Z
from openpyxl import load_workbook import mysql.connector # Excel workbook = load_workbook('imported.xlsx') sheet = workbook.active values = [] for row in sheet.iter_rows(min_row=2, values_only=True): print(row) values.append(row) # Database db = mysql.connector.connect( host='localhost', port=3306,...
19.454545
58
0.680685
70e6640bc54f7fa74215cf2923affbdce6cc10d3
7,492
py
Python
pytorch_pfn_extras/nn/modules/lazy.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
null
null
null
pytorch_pfn_extras/nn/modules/lazy.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
null
null
null
pytorch_pfn_extras/nn/modules/lazy.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
null
null
null
# mypy: ignore-errors import inspect from typing import Tuple import warnings import torch
43.306358
102
0.654031
70e6d36077cbded389cedfadb9bbd0925029daf4
7,286
py
Python
tensorflow/python/keras/distribute/mnist_multi_worker.py
6paklata/tensorflow
d6464431256192d2cf1c9b20271792309af7a354
[ "Apache-2.0" ]
2
2019-05-08T10:02:57.000Z
2019-05-08T10:02:59.000Z
tensorflow/python/keras/distribute/mnist_multi_worker.py
gurkangokdemir/tensorflow
2e6446f8a9be31c59080b643d04f9b463c4201cf
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/distribute/mnist_multi_worker.py
gurkangokdemir/tensorflow
2e6446f8a9be31c59080b643d04f9b463c4201cf
[ "Apache-2.0" ]
2
2020-03-25T12:52:20.000Z
2020-08-11T09:31:43.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.79798
94
0.734971
70e79659cfe4792e70e9f358e5ca24377633a170
12,404
py
Python
src/misc/decorator.py
JunManYuanLong/PyComs
5df8b35048e5db4a8edf53e6703ef6d2ffd15cc6
[ "MIT" ]
null
null
null
src/misc/decorator.py
JunManYuanLong/PyComs
5df8b35048e5db4a8edf53e6703ef6d2ffd15cc6
[ "MIT" ]
null
null
null
src/misc/decorator.py
JunManYuanLong/PyComs
5df8b35048e5db4a8edf53e6703ef6d2ffd15cc6
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from copy import deepcopy from functools import wraps from flask import request from src.misc.render import json_detail_render from config.settings import YML_JSON, logger import datetime,json def transfer2json(column): """ ? : key ! : string @...
36.482353
128
0.411238
70e99c7d827bb0c5ae82899785cbc3e22a7d8060
3,303
py
Python
modules/tools/open_space_visualization/open_space_roi_visualizer.py
jzjonah/apollo
bc534789dc0548bf2d27f8d72fe255d5c5e4f951
[ "Apache-2.0" ]
22,688
2017-07-04T23:17:19.000Z
2022-03-31T18:56:48.000Z
modules/tools/open_space_visualization/open_space_roi_visualizer.py
Songjiarui3313/apollo
df9113ae656e28e5374db32529d68e59455058a0
[ "Apache-2.0" ]
4,804
2017-07-04T22:30:12.000Z
2022-03-31T12:58:21.000Z
modules/tools/open_space_visualization/open_space_roi_visualizer.py
Songjiarui3313/apollo
df9113ae656e28e5374db32529d68e59455058a0
[ "Apache-2.0" ]
9,985
2017-07-04T22:01:17.000Z
2022-03-31T14:18:16.000Z
#!/usr/bin/env python3 ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
37.534091
113
0.719043
70ea7b65b45e04018fd11eba650c698a19bfac5d
556
py
Python
build.py
MolGL/MolGL
e83b3a1edc83844368a8515b1324498aed418c7a
[ "Apache-2.0" ]
2
2016-11-15T17:06:55.000Z
2017-02-16T20:31:02.000Z
build.py
MolGL/MolGL
e83b3a1edc83844368a8515b1324498aed418c7a
[ "Apache-2.0" ]
8
2016-11-04T05:51:51.000Z
2016-11-18T06:44:30.000Z
build.py
MolGL/MolGL
e83b3a1edc83844368a8515b1324498aed418c7a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2014 - 2016, Sequmics Research, All rights reserved. # Copyright 2014 - 2016, Sequmics Corporation. All rights reserved. # # Licensed under the Apache License (the "License, version 2.0"); # you may not use this file except in compliance with the License....
50.545455
78
0.413669
70eb8ef9456f695c6b3ab84cff23848ef3f71a4b
7,767
py
Python
adapted_network.py
Hong-Ming/Adaptive_Network_Slimming
17f2e56d7bc41070d02799845af3bc353a76d766
[ "MIT" ]
null
null
null
adapted_network.py
Hong-Ming/Adaptive_Network_Slimming
17f2e56d7bc41070d02799845af3bc353a76d766
[ "MIT" ]
null
null
null
adapted_network.py
Hong-Ming/Adaptive_Network_Slimming
17f2e56d7bc41070d02799845af3bc353a76d766
[ "MIT" ]
null
null
null
import sys sys.path.append('./train_model') import torch import torch.nn as nn import torch.nn.functional as F import torchvision import torchvision.transforms as transforms import numpy as np import os import argparse parser = argparse.ArgumentParser(description='Adaptive Network Slimming') parser.add_argument('-n...
35.958333
108
0.557744
70ecb14bd53988ce2d1a7a1d376ec3db5fa8d456
2,370
py
Python
mcetl/user/access.py
materials-commons/pymcetl
b4311ba50bb35bc36527b9d313a91778f9550a92
[ "MIT" ]
null
null
null
mcetl/user/access.py
materials-commons/pymcetl
b4311ba50bb35bc36527b9d313a91778f9550a92
[ "MIT" ]
null
null
null
mcetl/user/access.py
materials-commons/pymcetl
b4311ba50bb35bc36527b9d313a91778f9550a92
[ "MIT" ]
null
null
null
from flask import request from ..utils.mcexceptions import AccessNotAllowedException from . import apikeydb from ..database.DB import DbConnection _user_access_matrix = {} _admins = []
23.465347
68
0.654008
70ecc3bb253029a64b550829a901f26d30203690
31
py
Python
arxivtimes_indicator/server/__init__.py
chakki-works/arXivTimesIndicator
501413571dc0024b5a9d0bc2e9f17f805de92690
[ "Apache-2.0" ]
34
2017-08-02T07:01:13.000Z
2019-01-06T10:35:57.000Z
arxivtimes_indicator/server/__init__.py
arXivTimes/arXivTimesIndicator
501413571dc0024b5a9d0bc2e9f17f805de92690
[ "Apache-2.0" ]
4
2017-08-09T06:47:26.000Z
2017-10-13T01:47:01.000Z
arxivtimes_indicator/server/__init__.py
arXivTimes/arXivTimesIndicator
501413571dc0024b5a9d0bc2e9f17f805de92690
[ "Apache-2.0" ]
2
2020-10-21T12:31:02.000Z
2021-11-05T05:26:15.000Z
from .server import Application
31
31
0.870968
70eea58422fe48ef43948fed2ecd47c6729bad81
5,056
py
Python
national-rail/stations_and_services_scraper/config/aws_config.py
weizhi-luo/commute
a1d3e412df11971bb26db6316cf43bda29274dea
[ "MIT" ]
null
null
null
national-rail/stations_and_services_scraper/config/aws_config.py
weizhi-luo/commute
a1d3e412df11971bb26db6316cf43bda29274dea
[ "MIT" ]
null
null
null
national-rail/stations_and_services_scraper/config/aws_config.py
weizhi-luo/commute
a1d3e412df11971bb26db6316cf43bda29274dea
[ "MIT" ]
null
null
null
"""Represent AWS config settings""" import json from typing import Iterable, Mapping import boto3 from datetime import datetime, timedelta from data_model import OriginAndCallingPointNames from .config import ConfigSettings def get_secret(secret_name: str, region_name: str) -> dict: session = boto3.session.Se...
39.811024
77
0.668315
70ef08ce99b2902cbf44d027970fd4e38a0d4f18
712
py
Python
src/tests/test_loading.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
src/tests/test_loading.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
src/tests/test_loading.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
from timeit import timeit from unittest import TestCase from ..ipaparser import IPA, load __all__ = [ 'TestLoading', ] FACTOR = 10.0
25.428571
69
0.688202
70ef510161655a6820dfbc438830cb203101745d
142
py
Python
src/v2/log.py
Strangemother/project-conceptnet-graphing
3fd1b3188088090c71c95b1a660770482123ce22
[ "MIT" ]
null
null
null
src/v2/log.py
Strangemother/project-conceptnet-graphing
3fd1b3188088090c71c95b1a660770482123ce22
[ "MIT" ]
null
null
null
src/v2/log.py
Strangemother/project-conceptnet-graphing
3fd1b3188088090c71c95b1a660770482123ce22
[ "MIT" ]
null
null
null
import logging logging.basicConfig(level=logging.DEBUG) warn = logging.warn
14.2
41
0.647887
70efcdc28513f6b7a89674d1c7aad0fab1e49771
511
py
Python
Newbies/namedtuple.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2021-12-17T11:03:13.000Z
2021-12-17T11:03:13.000Z
Newbies/namedtuple.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2020-02-05T00:14:43.000Z
2020-02-06T09:22:49.000Z
Newbies/namedtuple.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Named tuple example.""" from collections import namedtuple Car = namedtuple('Car', 'color mileage') # Our new "Car" class works as expected: MY_CAR = Car('red', 3812.4) print(MY_CAR.color) print(MY_CAR.mileage) # We get a nice string repr for free: print(MY_CAR) try: MY_CAR.color = 'bl...
22.217391
53
0.690802
70efd770aa4920709c5661af3d95528fefd02946
6,750
py
Python
tests/components/blebox/test_config_flow.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/blebox/test_config_flow.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/blebox/test_config_flow.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Test Open Peer Power config flow for BleBox devices.""" from unittest.mock import DEFAULT, AsyncMock, PropertyMock, patch import blebox_uniapi import pytest from openpeerpower import config_entries, data_entry_flow from openpeerpower.components.blebox import config_flow from openpeerpower.setup import async_setup...
34.974093
81
0.707556
70f08443e2af2ec2ef573ac21c7eed5de4719665
3,521
py
Python
train.py
turbohiro/IDCard_detection
c7c4949bdbe00cb759a41bf8d7c6f4ddfe704213
[ "MIT" ]
null
null
null
train.py
turbohiro/IDCard_detection
c7c4949bdbe00cb759a41bf8d7c6f4ddfe704213
[ "MIT" ]
null
null
null
train.py
turbohiro/IDCard_detection
c7c4949bdbe00cb759a41bf8d7c6f4ddfe704213
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import os import cv2 import glob import seaborn as sns from PIL import Image import glob import tensorflow as tf import model os.environ['CUDA_VISIBLE_DEVICES']='0' dataDir = '/data/jupyter/libin713/sample_IDCard' N_CLASSES = 3 IMG_W = 500 # resize the image, if the...
39.561798
112
0.648963
70f12857a34e97687f3b8515a3ecdf1b8631fbee
779
py
Python
zeus/brewery/models.py
sdivakarrajesh/Zeus
7a6ddd3d0375f3a2f131f6fa46539faafbd73766
[ "MIT" ]
null
null
null
zeus/brewery/models.py
sdivakarrajesh/Zeus
7a6ddd3d0375f3a2f131f6fa46539faafbd73766
[ "MIT" ]
5
2021-03-19T01:10:37.000Z
2021-09-22T18:47:10.000Z
zeus/brewery/models.py
sdivakarrajesh/Zeus
7a6ddd3d0375f3a2f131f6fa46539faafbd73766
[ "MIT" ]
null
null
null
from django.db import models # Create your models here.
32.458333
76
0.722721
70f1ae00dfc2656288e9dc5e008f66a0f5c57eeb
18,127
py
Python
src/IntraCodec.py
Joao-Nogueira-gh/video-compressin
92429f85333d16b0e192532e520653dd5e8936e3
[ "MIT" ]
null
null
null
src/IntraCodec.py
Joao-Nogueira-gh/video-compressin
92429f85333d16b0e192532e520653dd5e8936e3
[ "MIT" ]
null
null
null
src/IntraCodec.py
Joao-Nogueira-gh/video-compressin
92429f85333d16b0e192532e520653dd5e8936e3
[ "MIT" ]
1
2020-01-01T07:20:04.000Z
2020-01-01T07:20:04.000Z
## @class IntraCodec # Module designed for encoding and decoding YUV videos using the intra-frame method # That is considering adjacent pixels in the same frame and encoding their errors # @author Tiago Melo 89005 # @author Joo Nogueira 89262 import numpy as np import math from Golomb import * from Bitstream import *...
38.242616
169
0.579964
70f1cf6cbe1d0d3ea9ded5e933650823891cd848
1,015
py
Python
main.py
kylecorry31/lifx_effects
ea97e3274233fb844c416d4d5a95d06a8a1c7cde
[ "MIT" ]
null
null
null
main.py
kylecorry31/lifx_effects
ea97e3274233fb844c416d4d5a95d06a8a1c7cde
[ "MIT" ]
1
2021-11-13T20:35:21.000Z
2021-11-13T20:35:21.000Z
main.py
kylecorry31/lifx_effects
ea97e3274233fb844c416d4d5a95d06a8a1c7cde
[ "MIT" ]
null
null
null
from effects.keyboard_effect import KeyboardEffect from utils.lights import get_lights from effects.candle_effect import CandleEffect from effects.phasma_hunt_effect import PhasmaHuntEffect from effects.audio_spectrum_effect import AudioSpectrumEffect from effects.audio_amplitude_effect import AudioAmplitudeEffect from...
37.592593
89
0.727094
70f6a101e87e43f1c6e0155f7b03c05850afb19f
250
py
Python
arts_localisation/beam_models/__init__.py
loostrum/arts_localisation
e3f3d1c8c0f4ee66d731634294b7b126ee28be1c
[ "Apache-2.0" ]
1
2020-08-19T11:52:04.000Z
2020-08-19T11:52:04.000Z
arts_localisation/beam_models/__init__.py
loostrum/arts_localisation
e3f3d1c8c0f4ee66d731634294b7b126ee28be1c
[ "Apache-2.0" ]
10
2021-02-03T08:52:51.000Z
2022-03-04T10:03:56.000Z
arts_localisation/beam_models/__init__.py
loostrum/arts_localisation
e3f3d1c8c0f4ee66d731634294b7b126ee28be1c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from .beamformer import BeamFormer from .compound_beam import CompoundBeam from .sb_generator import SBGenerator from .simulate_sb_pattern import SBPattern __all__ = ['BeamFormer', 'CompoundBeam', 'SBPattern', 'SBGenerator']
25
68
0.8
70f6b613f46f9572a127a9da271c9e2dc28fc894
3,090
py
Python
gfauto/gfauto/test_util.py
KishkinJ10/graphicsfuzz
673f9bba2b02608b26edef786095007949c00675
[ "Apache-2.0" ]
519
2018-09-25T12:55:31.000Z
2022-03-30T17:26:53.000Z
gfauto/gfauto/test_util.py
KishkinJ10/graphicsfuzz
673f9bba2b02608b26edef786095007949c00675
[ "Apache-2.0" ]
544
2018-09-25T08:54:28.000Z
2022-03-07T16:04:51.000Z
gfauto/gfauto/test_util.py
KishkinJ10/graphicsfuzz
673f9bba2b02608b26edef786095007949c00675
[ "Apache-2.0" ]
139
2018-09-26T05:11:20.000Z
2022-02-15T09:14:27.000Z
# -*- coding: utf-8 -*- # Copyright 2019 The GraphicsFuzz Project Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
32.1875
119
0.772168
70f70a663eddf66eb95d76cfae9e8ce1ca181a38
2,266
py
Python
core.py
iBug/OmniAE
dcaa3c671a36aeef1c7ffff79a859daaa6352fa0
[ "MIT" ]
null
null
null
core.py
iBug/OmniAE
dcaa3c671a36aeef1c7ffff79a859daaa6352fa0
[ "MIT" ]
5
2019-10-28T21:16:50.000Z
2020-06-08T21:13:06.000Z
core.py
iBug/OmniAE
dcaa3c671a36aeef1c7ffff79a859daaa6352fa0
[ "MIT" ]
null
null
null
# LOL. Hope you're not fooled by the name of this file import sys import os from configparser import ConfigParser # Note: All classes here have N801 (CapWords naming convention) disabled. # They're intended to be singletons config = Object(_default=type(None)) check = Object( development=None, ) config...
24.901099
87
0.643425
70f8bfd61dc80c47f58e8869a7a7e8ed2cf2c065
379
py
Python
tests/test_transforms.py
KIT-MBS/nnicotine
3681391d05d0a2d92e16431f5bc985cd6ff606fd
[ "MIT" ]
2
2021-03-28T02:02:30.000Z
2021-09-09T23:27:39.000Z
tests/test_transforms.py
KIT-MBS/nnicotine
3681391d05d0a2d92e16431f5bc985cd6ff606fd
[ "MIT" ]
null
null
null
tests/test_transforms.py
KIT-MBS/nnicotine
3681391d05d0a2d92e16431f5bc985cd6ff606fd
[ "MIT" ]
null
null
null
from collections import OrderedDict from pytest import approx
13.068966
35
0.722955
70faefbfea80d8e2843638eff582f5d8fefdfc7c
1,512
py
Python
table_creation/queryinfo.py
ashleyeah/spotifyu
d709c6b4833b8a745fbe141ff967f2234cf5e0da
[ "MIT" ]
null
null
null
table_creation/queryinfo.py
ashleyeah/spotifyu
d709c6b4833b8a745fbe141ff967f2234cf5e0da
[ "MIT" ]
null
null
null
table_creation/queryinfo.py
ashleyeah/spotifyu
d709c6b4833b8a745fbe141ff967f2234cf5e0da
[ "MIT" ]
null
null
null
import spotipy from spotipy.oauth2 import SpotifyClientCredentials import mysql.connector auth_manager = SpotifyClientCredentials('f3dc4f3802254be091c8d8576961bc9d', 'b51d135ad7104add8f71933197e9cc14') sp = spotipy.Spotify(auth_manager=auth_manager) cnx = mysql.connector.connect(user='root', password='1234', ...
31.5
111
0.576058
70fdb66b9ded98ccf160a5d4bab704860540ae69
1,414
py
Python
tests/data23/recipe-491264.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/data23/recipe-491264.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/data23/recipe-491264.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
import socket if __name__ == '__main__': ip='192.168.1.1' print('pyminifakeDNS:: dom.query. 60 IN A %s' % ip) udps = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) udps.bind(('',53)) try: while 1: data, addr = udps.recvfrom(1024) p=DNSQuery(data) udps.sendto(p.respuesta(ip), add...
32.136364
125
0.548091
70fe2c4951a1b415e80a8ca06456e10fa1d52d75
5,007
py
Python
calculator.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
calculator.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
calculator.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
import os import logging from pathlib import Path from operations import catalogue from parsers import XMLSpecParser
39.738095
107
0.633513
70fe4c8b56bc3406c72affab4486d1a1d17c77b3
13,239
py
Python
tinkup.py
jeromedontdev/tinkup
ebaa0a3289e54130447cd02a70201eae8f01c012
[ "BSD-3-Clause" ]
2
2022-01-22T07:19:29.000Z
2022-02-01T05:39:11.000Z
tinkup.py
jeromedontdev/tinkup
ebaa0a3289e54130447cd02a70201eae8f01c012
[ "BSD-3-Clause" ]
null
null
null
tinkup.py
jeromedontdev/tinkup
ebaa0a3289e54130447cd02a70201eae8f01c012
[ "BSD-3-Clause" ]
null
null
null
from cgitb import text import queue from random import seed import serial import serial.tools.list_ports from signal import signal, SIGINT import sys import threading import time import tkinter from tkinter import END, W, PhotoImage, filedialog as fd, scrolledtext as sd global fw_filename fw_filename = "" COM_OVERRID...
32.688889
111
0.502304
70fed1aa735bf095ea4ea44b9f449fbb2dd1b487
128
py
Python
backend/src/analytics/admin.py
codingforentrepreneurs/Geolocator-2
d4c2410301aa2497816e7ed2ec1890bc9be2e8fd
[ "MIT" ]
34
2017-04-27T20:22:08.000Z
2021-11-08T13:01:43.000Z
backend/src/analytics/admin.py
hercules261188/Geolocator-2
d4c2410301aa2497816e7ed2ec1890bc9be2e8fd
[ "MIT" ]
null
null
null
backend/src/analytics/admin.py
hercules261188/Geolocator-2
d4c2410301aa2497816e7ed2ec1890bc9be2e8fd
[ "MIT" ]
34
2017-05-18T23:23:01.000Z
2022-03-02T21:08:54.000Z
from django.contrib import admin # Register your models here. from .models import UserSession admin.site.register(UserSession)
21.333333
32
0.820313
cb013ff854838f109743a88faf31b41b4d2a4d6d
5,588
py
Python
calculators/loan_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
2
2021-01-08T04:26:54.000Z
2022-02-04T22:22:27.000Z
calculators/loan_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
null
null
null
calculators/loan_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
2
2019-06-06T19:36:17.000Z
2020-05-20T12:37:08.000Z
from math import ceil from numpy_financial import nper, pmt, rate from typing import List, Tuple from .calculator import Calculator # noinspection PyTypeChecker
31.75
79
0.46403
cb01a78dea1ba413678bdaa15b5fb376d5cfbcae
168
py
Python
pydundas/tests/rest/test_project.py
autonopy/pydundas
66fa46d593d3a2f9f3da7a0220f8a7dc495e2758
[ "MIT" ]
4
2019-04-09T05:30:10.000Z
2022-01-26T14:45:52.000Z
pydundas/tests/rest/test_project.py
autonopy/pydundas
66fa46d593d3a2f9f3da7a0220f8a7dc495e2758
[ "MIT" ]
4
2019-04-08T13:00:56.000Z
2022-01-27T06:46:33.000Z
pydundas/tests/rest/test_project.py
autonopy/pydundas
66fa46d593d3a2f9f3da7a0220f8a7dc495e2758
[ "MIT" ]
3
2019-04-08T07:07:12.000Z
2022-01-26T14:46:00.000Z
import unittest from pydundas import Api
18.666667
49
0.755952
cb0302f31a96c3dde5eb9872c52023093a2d18f1
516
py
Python
odoo/custom/src/private/nxpo_budget_revision_monitoring_project/report/budget_monitor_revision_report.py
Saran440/nxpo
769bbebc0df2e12acbf5b1e398e34b3405d53c50
[ "BSL-1.0" ]
null
null
null
odoo/custom/src/private/nxpo_budget_revision_monitoring_project/report/budget_monitor_revision_report.py
Saran440/nxpo
769bbebc0df2e12acbf5b1e398e34b3405d53c50
[ "BSL-1.0" ]
null
null
null
odoo/custom/src/private/nxpo_budget_revision_monitoring_project/report/budget_monitor_revision_report.py
Saran440/nxpo
769bbebc0df2e12acbf5b1e398e34b3405d53c50
[ "BSL-1.0" ]
null
null
null
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models
32.25
78
0.722868
cb0378636f9363b9345438112d17636d553ee87d
1,975
py
Python
src/ClusterManager/cluster_manager.py
nautilusshell/QianJiangYuan
262a88ca559f62d6e8633b1596481515d32f7907
[ "MIT" ]
null
null
null
src/ClusterManager/cluster_manager.py
nautilusshell/QianJiangYuan
262a88ca559f62d6e8633b1596481515d32f7907
[ "MIT" ]
null
null
null
src/ClusterManager/cluster_manager.py
nautilusshell/QianJiangYuan
262a88ca559f62d6e8633b1596481515d32f7907
[ "MIT" ]
1
2019-12-27T07:57:48.000Z
2019-12-27T07:57:48.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- import json import os import time import argparse import uuid import subprocess import sys import datetime import yaml from jinja2 import Environment, FileSystemLoader, Template import base64 import re import thread import threading import random import textwrap import lo...
21.236559
85
0.691646
cb0468927dd370e4c6e76788301b7d52a85a268f
611
py
Python
netmiko/ssh_exception.py
dalekirkman1/netmiko
a82ae784f4f1ef75e864ac972c088b8c963f77ff
[ "MIT" ]
1
2020-12-11T00:48:09.000Z
2020-12-11T00:48:09.000Z
netmiko/ssh_exception.py
rockenwind/netmiko
24291029d0cdd5af660475ac1093a2dcd1c08af2
[ "MIT" ]
null
null
null
netmiko/ssh_exception.py
rockenwind/netmiko
24291029d0cdd5af660475ac1093a2dcd1c08af2
[ "MIT" ]
null
null
null
from paramiko.ssh_exception import SSHException from paramiko.ssh_exception import AuthenticationException NetMikoTimeoutException = NetmikoTimeoutException NetMikoAuthenticationException = NetmikoAuthenticationException
24.44
81
0.813421
cb04d915b9d325336f938cf593f891e0a7292b7e
5,793
py
Python
src/REUTER.py
Qinaty/POA-spiders
95e1c2cb59877d360806736bc995069885d34591
[ "MIT" ]
null
null
null
src/REUTER.py
Qinaty/POA-spiders
95e1c2cb59877d360806736bc995069885d34591
[ "MIT" ]
null
null
null
src/REUTER.py
Qinaty/POA-spiders
95e1c2cb59877d360806736bc995069885d34591
[ "MIT" ]
null
null
null
import time from bs4 import BeautifulSoup from base import * from db_info import * # url->article _url2atc = dict() month = dict({'Jan':1, 'Feb':2, 'Mar':3, 'Apr':4, 'May':5, 'Jun':6, 'Jul':7, 'Aug':8, 'Sep':9, 'Oct':10, 'Nov':11, 'Dec':12}) if __name__ == '__main__': um = REUTERURLMa...
37.134615
191
0.461419
cb0781103336b3ed4a0d2565011f61861afb533b
2,770
py
Python
core/management_utils.py
crydotsnake/djangogirls
0e764294085d6d7d3c4f61a7fe36f91640abedcd
[ "BSD-3-Clause" ]
446
2015-01-04T20:58:26.000Z
2022-03-30T23:08:26.000Z
core/management_utils.py
serenasensini/TheRedCode_Docker-per-Django-e-Postgres
78a2ca1f09ab956a6936d14a5fd99336ff39f472
[ "BSD-3-Clause" ]
649
2015-01-09T23:42:14.000Z
2022-03-31T17:27:19.000Z
core/management_utils.py
serenasensini/TheRedCode_Docker-per-Django-e-Postgres
78a2ca1f09ab956a6936d14a5fd99336ff39f472
[ "BSD-3-Clause" ]
319
2015-01-06T20:58:42.000Z
2022-03-30T06:29:04.000Z
import djclick as click from django.conf import settings from django.utils.translation import gettext_lazy as _ from .forms import AddOrganizerForm from .slack_client import slack # "Get organizers info" functions used in 'new_event' and 'copy_event' management commands. def get_main_organizer(): """ We're ...
31.123596
98
0.604693
cb0840d5bc91aaecbc980279a62bae916478d2ee
58
py
Python
conference/forms/__init__.py
zevaverbach/epcon
8352c030ee0d4197f559cdb58a54ee45c7a4471a
[ "BSD-2-Clause" ]
null
null
null
conference/forms/__init__.py
zevaverbach/epcon
8352c030ee0d4197f559cdb58a54ee45c7a4471a
[ "BSD-2-Clause" ]
null
null
null
conference/forms/__init__.py
zevaverbach/epcon
8352c030ee0d4197f559cdb58a54ee45c7a4471a
[ "BSD-2-Clause" ]
null
null
null
from .forms import * # noqa from .talks import * # noqa
19.333333
28
0.655172
cb08ea8fba01c9694bba7e015a61763f76ce96c2
8,235
py
Python
siggregator/siggregator.py
packmad/Siggregator
70ff7432e715b7a25a82098320c351ddb78daa7d
[ "Apache-2.0" ]
3
2021-03-16T15:28:00.000Z
2021-07-23T09:07:54.000Z
siggregator/siggregator.py
packmad/Siggregator
70ff7432e715b7a25a82098320c351ddb78daa7d
[ "Apache-2.0" ]
null
null
null
siggregator/siggregator.py
packmad/Siggregator
70ff7432e715b7a25a82098320c351ddb78daa7d
[ "Apache-2.0" ]
1
2022-03-29T21:57:36.000Z
2022-03-29T21:57:36.000Z
#!/usr/bin/env python3 import hashlib import json import magic import os import re import subprocess import sys import yara import ordlookup import pefile import ssdeep import tlsh from multiprocessing import Pool from os.path import isdir, isfile, join, basename, abspath, dirname, realpath from pathlib import Path f...
32.678571
106
0.560291
cb093c072ef7f389a955ddcff40785b65302fce1
272
py
Python
rakesh_factorial.py
vinaymavi/alivenet-python-training-
f565dc1c19590815dbb17a3dcd012b02149dd804
[ "MIT" ]
null
null
null
rakesh_factorial.py
vinaymavi/alivenet-python-training-
f565dc1c19590815dbb17a3dcd012b02149dd804
[ "MIT" ]
1
2018-07-17T17:58:46.000Z
2018-07-17T17:58:46.000Z
rakesh_factorial.py
vinaymavi/alivenet-python-training-
f565dc1c19590815dbb17a3dcd012b02149dd804
[ "MIT" ]
9
2018-07-17T13:38:18.000Z
2018-08-01T10:36:22.000Z
#Write a program which can compute the factorial of a given numbers. #The results should be printed in a comma-separated sequence on a single line number=int(input("Please Enter factorial Number: ")) j=1 fact = 1 for i in range(number,0,-1): fact =fact*i print(fact)
27.2
77
0.742647
cb098d10db1cb0c02e29f039ccbde0db55766abe
5,598
py
Python
.old/core/conf/_settings.py
Zadigo/Emails
c8577c56749fedc87c72cb19d1a764b2684da94a
[ "MIT" ]
null
null
null
.old/core/conf/_settings.py
Zadigo/Emails
c8577c56749fedc87c72cb19d1a764b2684da94a
[ "MIT" ]
null
null
null
.old/core/conf/_settings.py
Zadigo/Emails
c8577c56749fedc87c72cb19d1a764b2684da94a
[ "MIT" ]
null
null
null
import datetime import json import os import secrets from importlib import import_module # PATH = 'C:\\Users\\Zadigo\\Documents\\Apps\\zemailer\\app\\core\\settings.json' PATH = os.path.join(os.getcwd(), 'app', 'core', 'conf', 'settings.json') def deserialize(func): """A decorator that deserializes objects store...
33.927273
94
0.590389
cb0b42243a5f1619da2be629a939fedeb68fb530
3,510
py
Python
tools/Vitis-AI-Quantizer/vai_q_tensorflow2.x/setup.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Quantizer/vai_q_tensorflow2.x/setup.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Quantizer/vai_q_tensorflow2.x/setup.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.454545
80
0.703989