hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
219ba636e42aee8cec43580d423fc62e4f5c5cf3
686
py
Python
flaskr/models.py
ukeskin/cevrimici-kitap-galerisi
bea06dc417bb779e185b50d6f7f848a33e6f7bcb
[ "MIT" ]
null
null
null
flaskr/models.py
ukeskin/cevrimici-kitap-galerisi
bea06dc417bb779e185b50d6f7f848a33e6f7bcb
[ "MIT" ]
null
null
null
flaskr/models.py
ukeskin/cevrimici-kitap-galerisi
bea06dc417bb779e185b50d6f7f848a33e6f7bcb
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField from wtforms.validators import DataRequired from database import db class User(object): def __init__(self, name, avatar, email, password): self.name = name self.email = email self.password = password sel...
31.181818
58
0.586006
536
0.781341
0
0
0
0
0
0
50
0.072886
219c423bdd2f170bbacb2a4f7c4d40c610971bf4
4,807
py
Python
project/interpreter_gql/interpreter_utils/set_operations.py
makar-pelogeiko/formal-lang-course
8d0e1ffb081aaccf19ab69103509928ecccb46d9
[ "Apache-2.0" ]
null
null
null
project/interpreter_gql/interpreter_utils/set_operations.py
makar-pelogeiko/formal-lang-course
8d0e1ffb081aaccf19ab69103509928ecccb46d9
[ "Apache-2.0" ]
3
2021-10-14T14:20:02.000Z
2022-01-22T23:51:11.000Z
project/interpreter_gql/interpreter_utils/set_operations.py
makar-pelogeiko/formal-lang-course
8d0e1ffb081aaccf19ab69103509928ecccb46d9
[ "Apache-2.0" ]
null
null
null
from pyformlang.regular_expression import Regex from pyformlang.regular_expression.regex_objects import Symbol from project.interpreter_gql.memory import MemBox from project.interpreter_gql.interpreter_utils.type_utils import get_target_type from project.interpreter_gql.interpreter_utils.interpreter_except import Inter...
34.582734
88
0.655918
0
0
0
0
0
0
0
0
721
0.14999
219c724863fb056a3439c9d977aff6892d9fe9e5
2,757
py
Python
2021/day-09/solve.py
alexandru-dinu/aoc-2020
c7a5f648ea6fceb90ee3e2c1b9dd24bf206cf15f
[ "MIT" ]
1
2021-12-03T11:56:56.000Z
2021-12-03T11:56:56.000Z
2021/day-09/solve.py
alexandru-dinu/aoc-2020
c7a5f648ea6fceb90ee3e2c1b9dd24bf206cf15f
[ "MIT" ]
9
2021-12-04T19:16:06.000Z
2021-12-21T16:43:05.000Z
2021/day-09/solve.py
alexandru-dinu/aoc-2020
c7a5f648ea6fceb90ee3e2c1b9dd24bf206cf15f
[ "MIT" ]
null
null
null
from __future__ import annotations from argparse import ArgumentParser from collections import deque import numpy as np def count_lte(mat: np.ndarray) -> np.ndarray: """ lte[i,j] = count (neighbours <= mat[i,j]) . t . l . r . b . """ aug = np.pad(mat.astype(float), (1, 1), mode="constant...
21.372093
84
0.52811
0
0
0
0
0
0
0
0
308
0.111716
219d913bf411991d2c2b4c9921337f7af16cc0c8
5,997
py
Python
applications/tensorflow2/image_classification/data/data_transformer.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
260
2019-11-18T01:50:00.000Z
2022-03-28T23:08:53.000Z
applications/tensorflow2/image_classification/data/data_transformer.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
27
2020-01-28T23:07:50.000Z
2022-02-14T15:37:06.000Z
applications/tensorflow2/image_classification/data/data_transformer.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
56
2019-11-18T02:13:12.000Z
2022-02-28T14:36:09.000Z
# Copyright (c) 2021 Graphcore Ltd. All rights reserved. import tensorflow as tf from tensorflow.python.ops import math_ops import logging from . import imagenet_processing from custom_exceptions import UnsupportedFormat, DimensionError class DataTransformer: logger = logging.getLogger('data_transformer') ...
38.941558
111
0.638486
4,558
0.760047
0
0
4,460
0.743705
0
0
726
0.121061
219dec95a0e5d58334e741ed6c4d5f6ef28f50d0
273
py
Python
social/urls.py
zhongmei57485/SwiperPro
b00dde5af05f158d7cd2c649e8a07a2c19623b69
[ "Apache-2.0" ]
null
null
null
social/urls.py
zhongmei57485/SwiperPro
b00dde5af05f158d7cd2c649e8a07a2c19623b69
[ "Apache-2.0" ]
9
2019-12-04T23:48:54.000Z
2021-06-10T18:31:57.000Z
social/urls.py
zhongmei57485/SwiperPro
b00dde5af05f158d7cd2c649e8a07a2c19623b69
[ "Apache-2.0" ]
null
null
null
from django.urls import path from social import apis urlpatterns=[ path('recommend',apis.recommend), path('like',apis.like), path('dislike',apis.dislike), path('superlike',apis.superlike), path('rewind',apis.rewind), path('like-me',apis.like_me), ]
24.818182
37
0.681319
0
0
0
0
0
0
0
0
54
0.197802
219edc590375fdad03e3c0c586530e16a13fd443
3,657
py
Python
GPIB_Control.py
TheHWcave/GPIB-to-USB
2f2469900ecca459fcee24f550519abc78480886
[ "MIT" ]
7
2020-02-02T06:29:13.000Z
2022-03-22T00:39:52.000Z
GPIB_Control.py
TheHWcave/GPIB-to-USB
2f2469900ecca459fcee24f550519abc78480886
[ "MIT" ]
null
null
null
GPIB_Control.py
TheHWcave/GPIB-to-USB
2f2469900ecca459fcee24f550519abc78480886
[ "MIT" ]
1
2019-03-21T15:49:40.000Z
2019-03-21T15:49:40.000Z
#MIT License # #Copyright (c) 2019 TheHWcave # #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publish,...
33.245455
86
0.699207
0
0
0
0
0
0
0
0
2,247
0.614438
219eff34d4867620514405299c53bb4d517aed92
3,224
py
Python
scripts/check_spec.py
soasme/PeppaPEG
3ad481674ba3bbed6d495a6ad3b1f8087e6fd02d
[ "MIT" ]
30
2021-02-10T04:40:52.000Z
2022-03-04T07:49:35.000Z
scripts/check_spec.py
soasme/PeppaPEG
3ad481674ba3bbed6d495a6ad3b1f8087e6fd02d
[ "MIT" ]
30
2021-02-16T09:24:44.000Z
2022-01-09T02:45:17.000Z
scripts/check_spec.py
soasme/PeppaPEG
3ad481674ba3bbed6d495a6ad3b1f8087e6fd02d
[ "MIT" ]
4
2021-02-22T22:37:58.000Z
2021-12-24T16:28:27.000Z
import os.path import subprocess import sys import json import yaml import shlex def test_spec(): executable = sys.argv[1] specs_file = sys.argv[2] if specs_file.endswith('.json'): with open(specs_file) as f: try: specs = json.load(f) except json.decoder.JSON...
37.057471
125
0.433313
0
0
0
0
0
0
0
0
847
0.262717
219f1d9b10fd7858f91ccf44c96ea3fd2cc531d1
4,874
py
Python
interlacer/utils.py
MedicalVisionGroup/interlacer
60c14782729031a2af48c27fddb649d37cdca0e9
[ "MIT" ]
null
null
null
interlacer/utils.py
MedicalVisionGroup/interlacer
60c14782729031a2af48c27fddb649d37cdca0e9
[ "MIT" ]
null
null
null
interlacer/utils.py
MedicalVisionGroup/interlacer
60c14782729031a2af48c27fddb649d37cdca0e9
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf def split_reim(array): """Split a complex valued matrix into its real and imaginary parts. Args: array(complex): An array of shape (batch_size, N, N) or (batch_size, N, N, 1) Returns: split_array(float): An array of shape (batch_size, N, N, 2) conta...
29.719512
147
0.603816
0
0
0
0
0
0
0
0
2,721
0.558268
219f201f5364e4e40d6488c12a95af6558fcad59
233
py
Python
workspace/src/barc/src/modify_cam_param.py
Cyphysecurity/darc
2fe4f35d4ac7dc52606f30b86bf52464d6ca0ac3
[ "MIT" ]
1
2019-07-31T11:55:34.000Z
2019-07-31T11:55:34.000Z
workspace/src/barc/src/modify_cam_param.py
Cyphysecurity/darc
2fe4f35d4ac7dc52606f30b86bf52464d6ca0ac3
[ "MIT" ]
4
2020-02-12T00:54:30.000Z
2021-06-10T20:26:26.000Z
workspace/src/barc/src/modify_cam_param.py
Cyphysecurity/darc
2fe4f35d4ac7dc52606f30b86bf52464d6ca0ac3
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' modify camera parameters using v4l ''' import os # change /dev/video6 resolution #os.system('v4l2-ctl -d /dev/video6 -v width=640,height=480') os.system('v4l2-ctl -d /dev/video6 -v width=160,height=120')
19.416667
61
0.703863
0
0
0
0
0
0
0
0
204
0.875536
21a04335d89c7d0c5916d0d77c189c61e2cfb328
24,611
py
Python
GenerateSyntheticData.py
dragonfly-asl/SyntheticDataGenerator
368b8e6ba0489053e98abd7bc0b720b71d6cae99
[ "Apache-2.0" ]
null
null
null
GenerateSyntheticData.py
dragonfly-asl/SyntheticDataGenerator
368b8e6ba0489053e98abd7bc0b720b71d6cae99
[ "Apache-2.0" ]
null
null
null
GenerateSyntheticData.py
dragonfly-asl/SyntheticDataGenerator
368b8e6ba0489053e98abd7bc0b720b71d6cae99
[ "Apache-2.0" ]
1
2019-06-25T15:05:02.000Z
2019-06-25T15:05:02.000Z
# /bin/env python # coding: utf-8 from __future__ import print_function import sys import argparse import logging import os import math import cv2 import numpy as np class GenerateSyntheticData: import PythonMagick as Magick def __init__(self, logger=None): if logger == None: logging.b...
48.35167
135
0.557027
22,912
0.930966
0
0
3,635
0.147698
0
0
5,169
0.210028
21a24250ffe367e1f9da7b56a97743385de6126c
10,065
py
Python
front/services/ingest_matches_service.py
jimixjay/acestats
015a26e084fda70ab5754b78ce2e5157fee29d10
[ "Apache-2.0" ]
null
null
null
front/services/ingest_matches_service.py
jimixjay/acestats
015a26e084fda70ab5754b78ce2e5157fee29d10
[ "Apache-2.0" ]
null
null
null
front/services/ingest_matches_service.py
jimixjay/acestats
015a26e084fda70ab5754b78ce2e5157fee29d10
[ "Apache-2.0" ]
1
2021-01-15T19:56:41.000Z
2021-01-15T19:56:41.000Z
from service_objects import services import numpy as np import pandas as pd from django.db import connection import datetime from front.models import Match, Match_Stats, Player, Tourney, Tourney_Level, Surface class IngestMatchesService(services.Service): def process(self): cursor = connection.cursor() ...
52.696335
221
0.525286
9,843
0.977943
0
0
0
0
0
0
796
0.079086
21a39959b787e7f048c3956b733c098a43568590
5,583
py
Python
test/test_websocket.py
lmacken/binance-chain-python
483e51394ebc9f9998f5248910ac7b7dff7198f9
[ "MIT" ]
22
2019-04-27T02:14:52.000Z
2021-01-04T00:37:41.000Z
test/test_websocket.py
redquantum/binance-chain-python
483e51394ebc9f9998f5248910ac7b7dff7198f9
[ "MIT" ]
7
2019-04-28T20:57:49.000Z
2021-09-03T03:39:22.000Z
test/test_websocket.py
redquantum/binance-chain-python
483e51394ebc9f9998f5248910ac7b7dff7198f9
[ "MIT" ]
9
2019-04-27T23:43:51.000Z
2021-04-15T18:09:51.000Z
# Copyright 2019, Luke Macken, Kim Bui, and the binance-chain-python contributors # SPDX-License-Identifier: MIT """ Binance DEX WebSocket Test Suite """ import asyncio import pytest from binancechain import HTTPClient, WebSocket def on_error(msg): print(f'Error: {msg}') @pytest.fixture async def client(): ...
21.980315
81
0.675981
0
0
470
0.084184
5,252
0.940713
4,905
0.87856
543
0.09726
21a3bdf657a4e6add202d0974b1f52333a1151c2
2,590
py
Python
opentaxii/config.py
eclecticiq/OpenTAXII
d04d0fcc65809cf8fd7baf0c69019c45c4243080
[ "BSD-3-Clause" ]
84
2018-04-16T18:35:27.000Z
2022-03-02T15:50:22.000Z
opentaxii/config.py
eclecticiq/OpenTAXII
d04d0fcc65809cf8fd7baf0c69019c45c4243080
[ "BSD-3-Clause" ]
90
2018-04-18T08:56:50.000Z
2022-03-30T12:42:21.000Z
opentaxii/config.py
eclecticiq/OpenTAXII
d04d0fcc65809cf8fd7baf0c69019c45c4243080
[ "BSD-3-Clause" ]
54
2018-05-05T03:10:39.000Z
2022-03-11T16:26:49.000Z
import os from collections import defaultdict import yaml from libtaxii.constants import ST_TYPES_10, ST_TYPES_11 current_dir = os.path.dirname(os.path.realpath(__file__)) ENV_VAR_PREFIX = 'OPENTAXII_' CONFIG_ENV_VAR = 'OPENTAXII_CONFIG' DEFAULT_CONFIG_NAME = 'defaults.yml' DEFAULT_CONFIG = os.path.join(current_dir...
32.375
76
0.666795
2,181
0.842085
0
0
886
0.342085
0
0
790
0.305019
21a5fba047b0e38c889d6a4e058f430fb4400ae9
56,108
py
Python
classifier/quant_trees.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
null
null
null
classifier/quant_trees.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
2
2016-12-09T21:16:28.000Z
2016-12-09T21:29:10.000Z
classifier/quant_trees.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
null
null
null
def tree_16b(features): if features[12] <= 0.0026689696301218646: if features[2] <= 0.00825153129312639: if features[19] <= 0.005966400067336508: if features[19] <= 0.0029812112336458085: if features[17] <= 0.001915214421615019: return 0 else: # if features[17] > 0.0...
40.191977
58
0.55247
0
0
0
0
0
0
0
0
17,633
0.314269
21a698ad6f8035ce96d6e79e8a6eb4d69be7b56f
1,193
py
Python
DS_Alog_Python/array_employeelist.py
abhigyan709/dsalgo
868448834b22e06e572b4a0b4ba85cb1b0c6d7ee
[ "MIT" ]
1
2021-06-03T10:20:50.000Z
2021-06-03T10:20:50.000Z
DS_Alog_Python/array_employeelist.py
abhigyan709/dsalgo
868448834b22e06e572b4a0b4ba85cb1b0c6d7ee
[ "MIT" ]
null
null
null
DS_Alog_Python/array_employeelist.py
abhigyan709/dsalgo
868448834b22e06e572b4a0b4ba85cb1b0c6d7ee
[ "MIT" ]
null
null
null
class Employee: def __init__(self, name, emp_id, email_id): self.__name=name self.__emp_id=emp_id self.__email_id=email_id def get_name(self): return self.__name def get_emp_id(self): return self.__emp_id def get_email_id(self): return self.__email_id ...
27.744186
78
0.674769
828
0.694049
0
0
0
0
0
0
200
0.167645
21a81c32453ea2e8cd44b51c042ee837402f31c0
11,290
py
Python
build/lib/sshColab/code.py
libinruan/ssh_Colab
3b014c76404137567ada4a67582ff8600e61e7b0
[ "MIT" ]
1
2021-03-21T16:28:16.000Z
2021-03-21T16:28:16.000Z
sshColab/code.py
libinruan/ssh_Colab
3b014c76404137567ada4a67582ff8600e61e7b0
[ "MIT" ]
null
null
null
sshColab/code.py
libinruan/ssh_Colab
3b014c76404137567ada4a67582ff8600e61e7b0
[ "MIT" ]
2
2021-07-08T07:26:52.000Z
2021-10-05T10:23:47.000Z
import subprocess import secrets import getpass import os import requests import urllib.parse import time from google.colab import files, drive, auth from google.cloud import storage import glob def connect(LOG_DIR = '/log/fit'): print('It may take a few seconds for processing. Please wait.') root_password = s...
43.590734
279
0.651993
0
0
130
0.011515
0
0
0
0
5,540
0.4907
21ab9ff1c815e6c21057d32a64d3dded51ce4eb3
763
py
Python
static/py/discussionNum.py
m1-llie/SCU_hotFollowing
8cc29aadc7ac2e7b9e8a9502ea13971b8cd93abb
[ "BSD-3-Clause" ]
1
2020-12-15T13:06:31.000Z
2020-12-15T13:06:31.000Z
static/py/discussionNum.py
m1-llie/SCU_hotFollowing
8cc29aadc7ac2e7b9e8a9502ea13971b8cd93abb
[ "BSD-3-Clause" ]
null
null
null
static/py/discussionNum.py
m1-llie/SCU_hotFollowing
8cc29aadc7ac2e7b9e8a9502ea13971b8cd93abb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pymysql import json def countNum(table): # 打开数据库连接 db = pymysql.connect("cd-cdb-6sbfm2hw.sql.tencentcdb.com", "root", "Mrsnow@0", "spider") # 使用cursor()方法创建一个可以执行SQL语句的游标对象cursor cursor = db.cursor() sql = "SELECT COUNT(*) FROM" + table + "WHERE text like '%川大%'" ...
26.310345
122
0.663172
0
0
0
0
0
0
0
0
535
0.583424
21abd949743f6366711da7e003fd265439edaff6
1,683
py
Python
python/ray/tests/test_list_actors.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
python/ray/tests/test_list_actors.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
python/ray/tests/test_list_actors.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
import pytest import sys import ray from ray._private.test_utils import wait_for_condition def test_list_named_actors_basic(ray_start_regular): @ray.remote class A: pass a = A.remote() assert not ray.util.list_named_actors() a = A.options(name="hi").remote() assert len(ray.util.list...
26.714286
84
0.66429
42
0.024955
0
0
643
0.382056
0
0
211
0.125371
21ac305d52e17cf13665344430982d9de8fffdd1
218
py
Python
python3/TableCloumnInfo.py
shengpli/LearnPython
8e22afa9dc5b2a9e26c9f3e7ef9eb85196fd1559
[ "Apache-2.0" ]
null
null
null
python3/TableCloumnInfo.py
shengpli/LearnPython
8e22afa9dc5b2a9e26c9f3e7ef9eb85196fd1559
[ "Apache-2.0" ]
null
null
null
python3/TableCloumnInfo.py
shengpli/LearnPython
8e22afa9dc5b2a9e26c9f3e7ef9eb85196fd1559
[ "Apache-2.0" ]
null
null
null
class tablecloumninfo: col_name="" data_type="" comment="" def __init__(self,col_name,data_type,comment): self.col_name=col_name self.data_type=data_type self.comment=comment
18.166667
50
0.655963
215
0.986239
0
0
0
0
0
0
6
0.027523
21ac52aabd54ed388edac1605b21259e6ba60313
2,620
py
Python
pyjobserver/__main__.py
athewsey/pyjobserver
1251a0f22182c8bc8b55a85ef45adc7c1e2b982e
[ "Apache-2.0" ]
null
null
null
pyjobserver/__main__.py
athewsey/pyjobserver
1251a0f22182c8bc8b55a85ef45adc7c1e2b982e
[ "Apache-2.0" ]
null
null
null
pyjobserver/__main__.py
athewsey/pyjobserver
1251a0f22182c8bc8b55a85ef45adc7c1e2b982e
[ "Apache-2.0" ]
null
null
null
"""Main/example start-up script for the pyjobserver Use this as a guide if importing pyjobserver into another app instead """ # Built-Ins: import asyncio from logging import getLogger, Logger import os from pathlib import Path # External Dependencies: from aiohttp import web import click from dotenv import load_dote...
32.75
119
0.743511
0
0
0
0
266
0.101527
1,434
0.547328
1,072
0.40916
21acb4fa80b3916f001211cac88508c8d9ee7743
492
py
Python
dowhy/graph_learner.py
leo-ware/dowhy
3a2a79e2159a7f29456dd419a3c90395a384364e
[ "MIT" ]
2,904
2019-05-07T08:09:33.000Z
2022-03-31T18:28:41.000Z
dowhy/graph_learner.py
leo-ware/dowhy
3a2a79e2159a7f29456dd419a3c90395a384364e
[ "MIT" ]
238
2019-05-11T02:57:22.000Z
2022-03-31T23:47:18.000Z
dowhy/graph_learner.py
leo-ware/dowhy
3a2a79e2159a7f29456dd419a3c90395a384364e
[ "MIT" ]
527
2019-05-08T16:23:45.000Z
2022-03-30T21:02:41.000Z
class GraphLearner: """Base class for causal discovery methods. Subclasses implement different discovery methods. All discovery methods are in the package "dowhy.causal_discoverers" """ def __init__(self, data, library_class, *args, **kwargs): self._data = data self._labels = list(self._data.columns) self...
23.428571
118
0.739837
491
0.997967
0
0
0
0
0
0
232
0.471545
21acbe7b1a842e9cd72e943d539706693b47c59c
16,227
py
Python
ppci/wasm/_instantiate.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/wasm/_instantiate.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/wasm/_instantiate.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
""" Provide function to load a wasm module into the current process. Note that for this to work, we require compiled wasm code and a runtime. The wasm runtime contains the following: - Implement function like sqrt, floor, bit rotations etc.. """ import os import abc import shelve import io import struct import logg...
33.596273
86
0.628397
9,023
0.556049
0
0
339
0.020891
0
0
3,484
0.214704
21acea2332e84f0ed16b289cb54ead0afbf1565f
2,823
py
Python
easytrader/utils/stock.py
chforest/easytrader
7825efa90aa6af6a5f181a0736dc8c3e8ed852e5
[ "MIT" ]
6,829
2015-12-07T16:40:17.000Z
2022-03-31T15:27:03.000Z
easytrader/utils/stock.py
chforest/easytrader
7825efa90aa6af6a5f181a0736dc8c3e8ed852e5
[ "MIT" ]
350
2016-01-18T09:13:27.000Z
2022-03-21T06:56:57.000Z
easytrader/utils/stock.py
chforest/easytrader
7825efa90aa6af6a5f181a0736dc8c3e8ed852e5
[ "MIT" ]
2,599
2015-12-08T02:09:04.000Z
2022-03-30T13:33:50.000Z
# coding:utf-8 import datetime import json import random import requests def get_stock_type(stock_code): """判断股票ID对应的证券市场 匹配规则 ['50', '51', '60', '90', '110'] 为 sh ['00', '13', '18', '15', '16', '18', '20', '30', '39', '115'] 为 sz ['5', '6', '9'] 开头的为 sh, 其余为 sz :param stock_code:股票ID, 若以 'sz...
30.684783
106
0.575275
0
0
0
0
0
0
0
0
1,538
0.503108
21ad39e08cd9eb28d218baa876962eb7e1bf5352
13,370
py
Python
IR analysis.py
jankulik/Transition-Line-Detection
26775b7a3b6ab4f7a487c488cc1e97708277a18e
[ "MIT" ]
null
null
null
IR analysis.py
jankulik/Transition-Line-Detection
26775b7a3b6ab4f7a487c488cc1e97708277a18e
[ "MIT" ]
null
null
null
IR analysis.py
jankulik/Transition-Line-Detection
26775b7a3b6ab4f7a487c488cc1e97708277a18e
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os from matplotlib import pyplot as plt #### INPUT #### # folder that contains datapoints folderName = '2dIR' #### SETTINGS #### # settings listed below are suitable for 2D data # intensity of noise filtering; higher values mean more blurring medianKernel = 5 # bl...
43.550489
190
0.659013
0
0
0
0
0
0
0
0
5,445
0.407255
21ae2a24ae236e3d5b5a92a327d356b5c7ba6074
90
py
Python
aiida_crystal_dft/__init__.py
tilde-lab/aiida-crystal-dft
971fd13a3f414d6e80cc654dc92a8758f6e0365c
[ "MIT" ]
2
2019-02-05T16:49:08.000Z
2020-01-29T12:27:14.000Z
aiida_crystal_dft/__init__.py
tilde-lab/aiida-crystal-dft
971fd13a3f414d6e80cc654dc92a8758f6e0365c
[ "MIT" ]
36
2020-03-09T19:35:10.000Z
2021-12-07T22:13:31.000Z
aiida_crystal_dft/__init__.py
tilde-lab/aiida-crystal-dft
971fd13a3f414d6e80cc654dc92a8758f6e0365c
[ "MIT" ]
1
2019-11-13T23:12:10.000Z
2019-11-13T23:12:10.000Z
""" aiida_crystal_dft AiiDA plugin for running the CRYSTAL code """ __version__ = "0.8"
11.25
41
0.722222
0
0
0
0
0
0
0
0
73
0.811111
21af95c3e6f5614235525e918b9f73b1e391d922
42
py
Python
fzzzMaskBackend/users/serializers.py
FZZZMask/backend
4f987e96a5ff42d89cf536c099b944f5f7254764
[ "BSD-3-Clause" ]
null
null
null
fzzzMaskBackend/users/serializers.py
FZZZMask/backend
4f987e96a5ff42d89cf536c099b944f5f7254764
[ "BSD-3-Clause" ]
3
2020-02-11T23:24:39.000Z
2021-06-04T21:45:25.000Z
fzzzMaskBackend/users/serializers.py
FZZZMask/backend
4f987e96a5ff42d89cf536c099b944f5f7254764
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import serializers
8.4
38
0.833333
0
0
0
0
0
0
0
0
0
0
21b0edc91f5567ee1123bcbb0bfd919c0b28c903
2,938
py
Python
src/python/pants/backend/terraform/target_gen_test.py
bastianwegge/pants
43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/terraform/target_gen_test.py
bastianwegge/pants
43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2
[ "Apache-2.0" ]
14
2020-09-26T02:01:56.000Z
2022-03-30T10:19:28.000Z
src/python/pants/backend/terraform/target_gen_test.py
ryanking/pants
e45b00d2eb467b599966bca262405a5d74d27bdd
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import pytest from pants.backend.terraform import target_gen from pants.backend.terraform.target_types import ( TerraformModulesGeneratorTarget, ...
34.564706
93
0.660994
0
0
0
0
311
0.105854
0
0
583
0.198434
21b1eb4686bf40669ec47b042269eff5341c4c0e
377
py
Python
tkinterLearning/graphinKivyExample.py
MertEfeSevim/ECar-ABUTeam
4a37cbddff1609a1e1e8bd55fe6077b384471024
[ "Apache-2.0" ]
null
null
null
tkinterLearning/graphinKivyExample.py
MertEfeSevim/ECar-ABUTeam
4a37cbddff1609a1e1e8bd55fe6077b384471024
[ "Apache-2.0" ]
null
null
null
tkinterLearning/graphinKivyExample.py
MertEfeSevim/ECar-ABUTeam
4a37cbddff1609a1e1e8bd55fe6077b384471024
[ "Apache-2.0" ]
null
null
null
from kivy.garden.matplotlib.backend_kivyagg import FigureCanvasKivyAgg from kivy.app import App from kivy.uix.boxlayout import BoxLayout import matplotlib.pyplot as plt plt.plot([1, 23, 2, 4]) plt.ylabel('some numbers') class MyApp(App): def build(self): box = BoxLayout() box.add_widget(FigureCan...
22.176471
70
0.71618
139
0.3687
0
0
0
0
0
0
14
0.037135
21b22ee8ebf7ebc9c5d48a409810e94e5629e56d
5,240
py
Python
data_genie/get_data.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
6
2022-01-14T13:38:03.000Z
2022-03-01T17:57:09.000Z
data_genie/get_data.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
null
null
null
data_genie/get_data.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
null
null
null
import os import random from tqdm import tqdm from collections import defaultdict from data_genie.data_genie_config import * from data_genie.data_genie_utils import TRAINING_DATA_PATH, CACHED_KENDALL_TAU_PATH, load_obj, save_obj from data_genie.data_genie_utils import count_performance_retained, get_best_results from...
33.589744
103
0.716412
0
0
0
0
0
0
0
0
326
0.062214
21b3036dd9c7340de7952e841313f8a67214f250
3,934
py
Python
benchmark.py
cmpute/EECS558-Project
d964059901c62773b475c5d4b40f018ee28a0c73
[ "Unlicense" ]
null
null
null
benchmark.py
cmpute/EECS558-Project
d964059901c62773b475c5d4b40f018ee28a0c73
[ "Unlicense" ]
null
null
null
benchmark.py
cmpute/EECS558-Project
d964059901c62773b475c5d4b40f018ee28a0c73
[ "Unlicense" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from env import DrivingEnv from solvers import GridSolver, SampleGraphSolver def time_compare(seed=1234, min_sample=10, max_sample=50, count=10): sample_count = np.linspace(min_sample, max_sample, count).astype(int) grid_times = [] graph_times = [] ...
37.826923
155
0.649466
0
0
0
0
0
0
0
0
344
0.087443
21b3aa32ee34e39e88f108b17ea530a57eb6e324
1,912
py
Python
pandas_market_calendars/exchange_calendars_mirror.py
matbox/pandas_market_calendars
942ad6de5f3e2700a4f8b2c2d44ccb65fa9fdab5
[ "MIT" ]
null
null
null
pandas_market_calendars/exchange_calendars_mirror.py
matbox/pandas_market_calendars
942ad6de5f3e2700a4f8b2c2d44ccb65fa9fdab5
[ "MIT" ]
null
null
null
pandas_market_calendars/exchange_calendars_mirror.py
matbox/pandas_market_calendars
942ad6de5f3e2700a4f8b2c2d44ccb65fa9fdab5
[ "MIT" ]
null
null
null
""" Imported calendars from the exchange_calendars project GitHub: https://github.com/gerrymanoim/exchange_calendars """ from datetime import time from .market_calendar import MarketCalendar import exchange_calendars class TradingCalendar(MarketCalendar): def __init__(self, open_time=None, close_time=None): ...
26.191781
107
0.680962
1,388
0.725941
0
0
1,078
0.563808
0
0
220
0.115063
21b4b857672198b3794c4cd67434ee8e238bf40c
164
py
Python
util/prelude.py
sinsay/ds_define
0ee89edfc3ad1ed37c5b88e13936229baf50a966
[ "Apache-2.0" ]
null
null
null
util/prelude.py
sinsay/ds_define
0ee89edfc3ad1ed37c5b88e13936229baf50a966
[ "Apache-2.0" ]
null
null
null
util/prelude.py
sinsay/ds_define
0ee89edfc3ad1ed37c5b88e13936229baf50a966
[ "Apache-2.0" ]
null
null
null
from .enum import EnumBase def is_builtin_type(obj) -> bool: """ 检查 obj 是否基础类型 """ return isinstance(obj, (int, str, float, bool)) or obj is None
18.222222
66
0.628049
0
0
0
0
0
0
0
0
45
0.25
21b5752cb9a0990564c49e3262c213225974ef34
1,647
py
Python
tca_ng/server.py
wichovw/tca-gt
ad862286f153e5cd83db8a44ff0bb6ae7c4925ce
[ "MIT" ]
1
2016-09-09T15:51:38.000Z
2016-09-09T15:51:38.000Z
tca_ng/server.py
wichovw/tca-gt
ad862286f153e5cd83db8a44ff0bb6ae7c4925ce
[ "MIT" ]
null
null
null
tca_ng/server.py
wichovw/tca-gt
ad862286f153e5cd83db8a44ff0bb6ae7c4925ce
[ "MIT" ]
null
null
null
import cherrypy, cherrypy_cors, os import tca_ng.example_maps import tca_ng.models import random class TCAServer(object): @cherrypy.expose @cherrypy.tools.json_out() def start(self): self.automaton = tca_ng.models.Automaton() self.automaton.topology = tca_ng.example_maps.simple_map(10...
27
68
0.56527
1,026
0.622951
0
0
982
0.596236
0
0
170
0.103218
21b63b9f54674792f408a6f07e0262da28ca36a1
553
py
Python
todo/api/views.py
devord/todo
312c313589cec179d69bf64ca3e06382dc2df728
[ "MIT" ]
null
null
null
todo/api/views.py
devord/todo
312c313589cec179d69bf64ca3e06382dc2df728
[ "MIT" ]
36
2019-03-22T01:50:24.000Z
2022-02-26T10:28:41.000Z
todo/api/views.py
devord/todo
312c313589cec179d69bf64ca3e06382dc2df728
[ "MIT" ]
null
null
null
from rest_framework import viewsets from api.serializers import LabelSerializer, ItemSerializer from api.models import Label, Item class LabelViewSet(viewsets.ModelViewSet): """ API endpoint that allows labels to be viewed or edited. """ queryset = Label.objects.all().order_by('name') serializer_...
26.333333
59
0.734177
415
0.750452
0
0
0
0
0
0
154
0.278481
21b6bc874be363315a5d7728d2f9c90f4bee8e37
802
py
Python
user.py
sylvestus/passwordLocker
2dc949996c60eb02d55ac6d7426e2eb9f0cb9375
[ "Unlicense" ]
null
null
null
user.py
sylvestus/passwordLocker
2dc949996c60eb02d55ac6d7426e2eb9f0cb9375
[ "Unlicense" ]
null
null
null
user.py
sylvestus/passwordLocker
2dc949996c60eb02d55ac6d7426e2eb9f0cb9375
[ "Unlicense" ]
null
null
null
import string import random class User: def __init__(self,username,password): self.username = username self.password = password userList = [] def addUser(self): ''' method saves a new user object to credentials list ''' User.userList.append(self) def ...
19.560976
67
0.583541
744
0.927681
0
0
66
0.082294
0
0
212
0.264339
21b737190d56432c7d4ca921f5d6f60d7150164a
289
py
Python
batch/batch/public_gcr_images.py
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
null
null
null
batch/batch/public_gcr_images.py
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
null
null
null
batch/batch/public_gcr_images.py
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
null
null
null
from typing import List def public_gcr_images(project: str) -> List[str]: # the worker cannot import batch_configuration because it does not have all the environment # variables return [f'gcr.io/{project}/{name}' for name in ('query', 'hail', 'python-dill', 'batch-worker')]
36.125
100
0.709343
0
0
0
0
0
0
0
0
168
0.581315
21ba9fc19364859893264a2f210099d5d934cfe1
24,972
py
Python
django_cradmin/uicontainer/container.py
appressoas/django_cradmin
0f8715afdfe1ad32e46033f442e622aecf6a4dec
[ "BSD-3-Clause" ]
11
2015-07-05T16:57:58.000Z
2020-11-24T16:58:19.000Z
django_cradmin/uicontainer/container.py
appressoas/django_cradmin
0f8715afdfe1ad32e46033f442e622aecf6a4dec
[ "BSD-3-Clause" ]
91
2015-01-08T22:38:13.000Z
2022-02-10T10:25:27.000Z
django_cradmin/uicontainer/container.py
appressoas/django_cradmin
0f8715afdfe1ad32e46033f442e622aecf6a4dec
[ "BSD-3-Clause" ]
3
2016-12-07T12:19:24.000Z
2018-10-03T14:04:18.000Z
from django.conf import settings from django.forms.utils import flatatt from django_cradmin import renderable class NotBootsrappedError(Exception): """ Raised when trying to use features of :class:`.AbstractContainerRenderable` that requires is to have been bootstrapped. """ class AlreadyBootsra...
37.160714
109
0.639797
24,835
0.994514
0
0
2,566
0.102755
0
0
15,303
0.612806
21baa6263f7bce8a697dc4c1214c2f9cbd322393
5,982
py
Python
country_settings.py
region-spotteR/conora_chronologies
0ee6cadb61921f95f738425ef99a13ae07f262a7
[ "CC0-1.0" ]
null
null
null
country_settings.py
region-spotteR/conora_chronologies
0ee6cadb61921f95f738425ef99a13ae07f262a7
[ "CC0-1.0" ]
null
null
null
country_settings.py
region-spotteR/conora_chronologies
0ee6cadb61921f95f738425ef99a13ae07f262a7
[ "CC0-1.0" ]
null
null
null
class attributes_de: def __init__(self,threshold_list,range_for_r): self.country_name = 'Germany' self.population = 83190556 self.url = 'https://opendata.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0.geojson' self.contains_tests=False self.csv=False # if the resource...
37.860759
150
0.612671
4,366
0.729856
0
0
0
0
0
0
1,850
0.309261
21bc3e83174440b0d25cd071871ba1fe4765dc1b
408
py
Python
src/accounts/migrations/0009_alter_protection_description.py
NikolayTls/CarRental-Fullstack
e535976c25dd77896a355a2d30b5348be90ac040
[ "MIT" ]
null
null
null
src/accounts/migrations/0009_alter_protection_description.py
NikolayTls/CarRental-Fullstack
e535976c25dd77896a355a2d30b5348be90ac040
[ "MIT" ]
null
null
null
src/accounts/migrations/0009_alter_protection_description.py
NikolayTls/CarRental-Fullstack
e535976c25dd77896a355a2d30b5348be90ac040
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-11-09 18:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0008_auto_20211108_1633'), ] operations = [ migrations.AlterField( model_name='protection', name='descri...
21.473684
62
0.612745
315
0.772059
0
0
0
0
0
0
107
0.262255
21bc625c93948c267439f48c065862fcfaf59846
899
py
Python
builder.py
Delivery-Klad/chat_desktop
1702996255d6fa5dbd6c5b480f2a3f4f19cbfdc6
[ "Apache-2.0" ]
null
null
null
builder.py
Delivery-Klad/chat_desktop
1702996255d6fa5dbd6c5b480f2a3f4f19cbfdc6
[ "Apache-2.0" ]
1
2021-12-28T01:51:37.000Z
2021-12-28T01:51:37.000Z
builder.py
Delivery-Klad/chat_desktop
1702996255d6fa5dbd6c5b480f2a3f4f19cbfdc6
[ "Apache-2.0" ]
null
null
null
import sys from cx_Freeze import setup, Executable base = None if sys.platform == "win32": base = "Win32GUI" elif sys.platform == "win64": base = "Win64GUI" excludes = ['PyQt5', 'colorama', 'pandas', 'sqlalchemy', 'numpy', 'notebook', 'Django', 'schedule'] packages = ["idna", "_cffi_backend", "bcrypt", "rsa"...
29
99
0.630701
0
0
0
0
0
0
0
0
386
0.429366
21bc9eb14d61179cb27becc3805a37469b02b334
2,200
py
Python
flaviabernardes/flaviabernardes/cms/migrations/0014_auto_20160717_1414.py
rogerhil/flaviabernardes
30676c7e4b460f11ef9f09a33936ee3820b129da
[ "Apache-2.0" ]
null
null
null
flaviabernardes/flaviabernardes/cms/migrations/0014_auto_20160717_1414.py
rogerhil/flaviabernardes
30676c7e4b460f11ef9f09a33936ee3820b129da
[ "Apache-2.0" ]
null
null
null
flaviabernardes/flaviabernardes/cms/migrations/0014_auto_20160717_1414.py
rogerhil/flaviabernardes
30676c7e4b460f11ef9f09a33936ee3820b129da
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import image_cropping.fields class Migration(migrations.Migration): dependencies = [ ('cms', '0013_auto_20151121_1602'), ] operations = [ migrations.AddField( model_name=...
36.065574
248
0.616818
2,062
0.937273
0
0
0
0
0
0
397
0.180455
21bd217d40255d109408b19a7614470a41a98d8d
5,674
py
Python
backend/inst-selec/tree-match-burs-table/app/match_naive.py
obs145628/cle
4a4a18b2ab5a6fbf26629f6845147541edabd7c9
[ "MIT" ]
null
null
null
backend/inst-selec/tree-match-burs-table/app/match_naive.py
obs145628/cle
4a4a18b2ab5a6fbf26629f6845147541edabd7c9
[ "MIT" ]
null
null
null
backend/inst-selec/tree-match-burs-table/app/match_naive.py
obs145628/cle
4a4a18b2ab5a6fbf26629f6845147541edabd7c9
[ "MIT" ]
null
null
null
''' Tree-Matching implementation Based on BURS (Bottom-Up Rewrite System) Similar to tree-match-burs1 project Inspired from: - Instruction Selection via Tree-Pattern Matching - Enginner a Compiler p610 - An Improvement to Bottom-up Tree Pattern Matching - David R. Chase - Simple and Efficient BURS Table Generation - T...
27.278846
89
0.519739
4,899
0.863412
0
0
0
0
0
0
795
0.140113
21bdc2ccc7ab9e40f05cc42e706cde91619db6a2
95,650
py
Python
gym_electric_motor/physical_systems/electric_motors.py
54hanxiucao/gym-electric-motor
911432388b00675e8a93f4a7937fdc575f106f22
[ "MIT" ]
1
2021-03-29T07:47:32.000Z
2021-03-29T07:47:32.000Z
gym_electric_motor/physical_systems/electric_motors.py
54hanxiucao/gym-electric-motor
911432388b00675e8a93f4a7937fdc575f106f22
[ "MIT" ]
null
null
null
gym_electric_motor/physical_systems/electric_motors.py
54hanxiucao/gym-electric-motor
911432388b00675e8a93f4a7937fdc575f106f22
[ "MIT" ]
null
null
null
import numpy as np import math from scipy.stats import truncnorm class ElectricMotor: """ Base class for all technical electrical motor models. A motor consists of the ode-state. These are the dynamic quantities of its ODE. For example: ODE-State of a DC-shunt motor...
45.809387
285
0.464098
95,507
0.998505
0
0
3,722
0.038913
0
0
55,417
0.579373
21bdf99390c3df665d25199aea9fff225ef4b831
1,004
py
Python
tests/pyrem_tests.py
sgdxbc/PyREM
e162efd5f95d1d335fb96d77cbe047def02c340e
[ "MIT" ]
5
2016-01-20T22:34:41.000Z
2020-12-19T15:24:33.000Z
tests/pyrem_tests.py
sgdxbc/PyREM
e162efd5f95d1d335fb96d77cbe047def02c340e
[ "MIT" ]
12
2015-11-11T23:03:03.000Z
2021-09-28T17:09:53.000Z
tests/pyrem_tests.py
sgdxbc/PyREM
e162efd5f95d1d335fb96d77cbe047def02c340e
[ "MIT" ]
4
2015-12-10T05:14:30.000Z
2021-08-14T02:48:05.000Z
from pyrem.task import Task, TaskStatus class DummyTask(Task): def _start(self): pass def _wait(self): pass def _stop(self): pass class TestDummyTask(object): @classmethod def setup_class(klass): """This method is run once for each class before any tests are run"...
23.904762
78
0.625498
959
0.955179
0
0
266
0.26494
0
0
205
0.204183
21bead059ee3f22ec22b2bb48bbf62356bb305bf
1,302
py
Python
invenio_app_ils/records/resolver/jsonresolver/document_keyword.py
lauren-d/invenio-app-ils
961e88ba144b1371b629dfbc0baaf388e46e667f
[ "MIT" ]
null
null
null
invenio_app_ils/records/resolver/jsonresolver/document_keyword.py
lauren-d/invenio-app-ils
961e88ba144b1371b629dfbc0baaf388e46e667f
[ "MIT" ]
null
null
null
invenio_app_ils/records/resolver/jsonresolver/document_keyword.py
lauren-d/invenio-app-ils
961e88ba144b1371b629dfbc0baaf388e46e667f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Resolve the Keyword referenced in the Document.""" import jsonresolver from werkzeug.routing import Rule from...
28.933333
78
0.689708
0
0
0
0
782
0.600614
0
0
556
0.427035
21beae082b613ebc189de03f874795adfa3f6a13
68
py
Python
Other_AIMA_Scripts/planning.py
erensezener/aima-based-irl
fbbe28986cec0b5e58fef0f00338a180ed03759a
[ "MIT" ]
12
2015-06-17T05:15:40.000Z
2021-05-18T15:39:33.000Z
Other_AIMA_Scripts/planning.py
erensezener/aima-based-irl
fbbe28986cec0b5e58fef0f00338a180ed03759a
[ "MIT" ]
1
2020-03-14T08:45:49.000Z
2020-03-14T08:45:49.000Z
Other_AIMA_Scripts/planning.py
erensezener/aima-based-irl
fbbe28986cec0b5e58fef0f00338a180ed03759a
[ "MIT" ]
5
2016-09-10T19:16:56.000Z
2018-10-10T05:09:03.000Z
"""Planning (Chapters 11-12) """ from __future__ import generators
13.6
33
0.735294
0
0
0
0
0
0
0
0
32
0.470588
21c005abab0af70acf7d0786eb0dee5f66346f8d
15,025
py
Python
Berkeley_pacman_project1/search.py
AndrewSpano/UC_Berkeley_AI_Projects
a695f7be1653e485fdb339f99e6a266a1b044ba4
[ "MIT" ]
1
2020-12-12T16:16:05.000Z
2020-12-12T16:16:05.000Z
Berkeley_pacman_project1/search.py
AndrewSpano/University_AI_Projects
a695f7be1653e485fdb339f99e6a266a1b044ba4
[ "MIT" ]
null
null
null
Berkeley_pacman_project1/search.py
AndrewSpano/University_AI_Projects
a695f7be1653e485fdb339f99e6a266a1b044ba4
[ "MIT" ]
1
2020-10-13T19:37:59.000Z
2020-10-13T19:37:59.000Z
# search.py # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # At...
40.066667
123
0.647388
1,276
0.084925
0
0
0
0
0
0
8,262
0.549884
21c10c49fed1208784b8ed8d90ec7a93c4893c97
270
py
Python
src/python/WMCore/WMBS/Oracle/Files/GetLocation.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMBS/Oracle/Files/GetLocation.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMBS/Oracle/Files/GetLocation.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
""" Oracle implementation of GetLocationFile """ from WMCore.WMBS.MySQL.Files.GetLocation import GetLocation \ as GetLocationFileMySQL class GetLocation(GetLocationFileMySQL): """ _GetLocation_ Oracle specific: file is reserved word """ pass
18
61
0.725926
128
0.474074
0
0
0
0
0
0
122
0.451852
21c279ad40c3cb9e53b7dcc853627dea0e3c47fa
5,471
py
Python
python/cohorte/vote/core.py
isandlaTech/cohorte-runtime
686556cdde20beba77ae202de9969be46feed5e2
[ "Apache-2.0" ]
6
2015-04-28T16:51:08.000Z
2017-07-12T11:29:00.000Z
python/cohorte/vote/core.py
isandlaTech/cohorte-runtime
686556cdde20beba77ae202de9969be46feed5e2
[ "Apache-2.0" ]
29
2015-02-24T11:11:26.000Z
2017-08-25T08:30:18.000Z
qualifier/deploy/cohorte-home/repo/cohorte/vote/core.py
isandlaTech/cohorte-devtools
9ba9021369188d2f0ad5c845ef242fd5a7097b57
[ "Apache-2.0" ]
1
2015-08-24T13:23:43.000Z
2015-08-24T13:23:43.000Z
#!/usr/bin/env python # -- Content-Encoding: UTF-8 -- """ Voting system core service :author: Thomas Calmant :license: Apache Software License 2.0 :version: 1.1.0 .. Copyright 2014 isandlaTech Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance ...
31.085227
80
0.549443
3,880
0.709194
0
0
4,119
0.752879
0
0
2,405
0.439591
21c4e67bcec2a79afa2f1eebd700ab15449d0b2d
4,665
py
Python
aether-odk-module/aether/odk/api/serializers.py
lordmallam/aether
7ceb71d2ef8b09d704d94dfcb243dbbdf8356135
[ "Apache-2.0" ]
null
null
null
aether-odk-module/aether/odk/api/serializers.py
lordmallam/aether
7ceb71d2ef8b09d704d94dfcb243dbbdf8356135
[ "Apache-2.0" ]
null
null
null
aether-odk-module/aether/odk/api/serializers.py
lordmallam/aether
7ceb71d2ef8b09d704d94dfcb243dbbdf8356135
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
33.321429
113
0.674384
3,484
0.746838
0
0
0
0
0
0
1,419
0.30418
21c5953806a590d303da60ce30af9e05c9ffcf7f
1,046
py
Python
client.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
client.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
client.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
import socket from ast import literal_eval import Yetiborg.Drive as Yetiborg HEADERSIZE = 2 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(("localhost", 12345)) # 192.168.0.11 / localhost / 192.168.0.108 # car always looks up at the beginning car = Yetiborg.Yetiborg((0, 1)) """ fs: finished "...
18.350877
75
0.637667
0
0
0
0
0
0
0
0
323
0.308795
21c5ac45e757ed2ed07376fd5edc3fa9749f63d7
9,785
py
Python
python/DeepSeaScene/Convert/GLTFModel.py
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
5
2018-11-17T23:13:22.000Z
2021-09-30T13:37:04.000Z
python/DeepSeaScene/Convert/GLTFModel.py
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
null
null
null
python/DeepSeaScene/Convert/GLTFModel.py
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
2
2019-09-23T12:23:35.000Z
2020-04-07T05:31:06.000Z
# Copyright 2020 Aaron Barany # # 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,...
35.711679
97
0.66745
19
0.001942
0
0
0
0
0
0
4,089
0.417885
21c9e3f18e9ff9713871cd9e59f532296cc7c00f
8,500
py
Python
python/sparktk/models/classification/naive_bayes.py
aayushidwivedi01/spark-tk-old
fcf25f86498ac416cce77de0db4cf0aa503d20ac
[ "ECL-2.0", "Apache-2.0" ]
1
2017-05-17T07:09:59.000Z
2017-05-17T07:09:59.000Z
python/sparktk/models/classification/naive_bayes.py
aayushidwivedi01/spark-tk-old
fcf25f86498ac416cce77de0db4cf0aa503d20ac
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/sparktk/models/classification/naive_bayes.py
aayushidwivedi01/spark-tk-old
fcf25f86498ac416cce77de0db4cf0aa503d20ac
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# vim: set encoding=utf-8 # Copyright (c) 2016 Intel Corporation  # # 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 require...
36.170213
116
0.609529
6,320
0.736768
0
0
395
0.046048
0
0
5,657
0.659478
21cac0e1969856e708db0ab52d143bf0ce25b967
10,769
py
Python
matplotlib_venn/_venn2.py
TRuikes/matplotlib-venn
64fdba46a61a4a19d2f192c84f02068af08f9e73
[ "MIT" ]
306
2015-01-01T20:48:41.000Z
2022-03-28T03:12:18.000Z
matplotlib_venn/_venn2.py
TRuikes/matplotlib-venn
64fdba46a61a4a19d2f192c84f02068af08f9e73
[ "MIT" ]
55
2015-01-07T14:06:36.000Z
2022-03-07T16:18:48.000Z
matplotlib_venn/_venn2.py
TRuikes/matplotlib-venn
64fdba46a61a4a19d2f192c84f02068af08f9e73
[ "MIT" ]
46
2015-05-08T04:55:24.000Z
2022-02-08T08:38:11.000Z
''' Venn diagram plotting routines. Two-circle venn plotter. Copyright 2012, Konstantin Tretyakov. http://kt.era.ee/ Licensed under MIT license. ''' # Make sure we don't try to do GUI stuff when running tests import sys, os if 'py.test' in os.path.basename(sys.argv[0]): # (XXX: Ugly hack) import matplotlib ma...
41.579151
173
0.642121
0
0
0
0
0
0
0
0
6,361
0.590677
21cae347bb461a852e4405ed6113ca1a0a2ae37e
370
py
Python
examples/htmltopdf/lambda_function.py
dgilmanAIDENTIFIED/juniper
81452cb86863340e9f7dd57ccd1cf69881b6e9a9
[ "Apache-2.0" ]
65
2019-02-01T19:49:49.000Z
2022-01-17T10:43:50.000Z
examples/htmltopdf/lambda_function.py
dgilmanAIDENTIFIED/juniper
81452cb86863340e9f7dd57ccd1cf69881b6e9a9
[ "Apache-2.0" ]
28
2019-02-12T18:57:13.000Z
2021-09-21T00:00:50.000Z
examples/htmltopdf/lambda_function.py
dgilmanAIDENTIFIED/juniper
81452cb86863340e9f7dd57ccd1cf69881b6e9a9
[ "Apache-2.0" ]
9
2019-03-02T02:30:50.000Z
2022-01-12T21:34:54.000Z
import pdfkit import boto3 s3 = boto3.client('s3') def lambda_handler(event, context): pdfkit.from_url('http://google.com', '/tmp/out.pdf') with open('/tmp/out.pdf', 'rb') as f: response = s3.put_object( Bucket='temp-awseabsgddev', Key='juni/google.pdf', Body=f.re...
20.555556
56
0.578378
0
0
0
0
0
0
0
0
101
0.272973
21cb54bbd6f23cf907190a946e745efc50dd9bc4
4,997
py
Python
test/espnet2/enh/separator/test_dc_crn_separator.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
test/espnet2/enh/separator/test_dc_crn_separator.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
test/espnet2/enh/separator/test_dc_crn_separator.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
import pytest import torch from packaging.version import parse as V from torch_complex import ComplexTensor from espnet2.enh.layers.complex_utils import is_complex from espnet2.enh.separator.dc_crn_separator import DC_CRNSeparator is_torch_1_9_plus = V(torch.__version__) >= V("1.9.0") @pytest.mark.parametrize("inpu...
30.656442
85
0.655193
0
0
0
0
3,563
0.713028
0
0
364
0.072844
21cb6726d5d75e89f98527599cbd57bd6acc970a
75
py
Python
custom_model_runner/datarobot_drum/drum/description.py
cartertroy/datarobot-user-models
d2c2b47e0d46a0ce8d07f1baa8d57155a829d2fc
[ "Apache-2.0" ]
null
null
null
custom_model_runner/datarobot_drum/drum/description.py
cartertroy/datarobot-user-models
d2c2b47e0d46a0ce8d07f1baa8d57155a829d2fc
[ "Apache-2.0" ]
null
null
null
custom_model_runner/datarobot_drum/drum/description.py
cartertroy/datarobot-user-models
d2c2b47e0d46a0ce8d07f1baa8d57155a829d2fc
[ "Apache-2.0" ]
null
null
null
version = "1.1.5rc1" __version__ = version project_name = "datarobot-drum"
18.75
31
0.746667
0
0
0
0
0
0
0
0
26
0.346667
21cbd02e2c85ee526f62d570e35aa6c6f628b43f
661
py
Python
usaspending_api/download/v2/urls.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
usaspending_api/download/v2/urls.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
1
2021-11-15T17:53:27.000Z
2021-11-15T17:53:27.000Z
usaspending_api/download/v2/urls.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
from django.conf.urls import url from usaspending_api.download.v2 import views urlpatterns = [ url(r'^awards', views.RowLimitedAwardDownloadViewSet.as_view()), url(r'^accounts', views.AccountDownloadViewSet.as_view()), # url(r'^columns', views.DownloadColumnsViewSet.as_view()), url(r'^status', views....
41.3125
80
0.747352
0
0
0
0
0
0
0
0
262
0.396369
21cbd2f48de433cddb1eeae935153e4c69f319de
208
bzl
Python
bazel_versions.bzl
cgrindel/buildifier-prebuilt
79244e93755af8db1dcbe8d005f024901a7918dc
[ "MIT" ]
8
2021-12-03T19:58:36.000Z
2022-02-03T00:41:59.000Z
bazel_versions.bzl
cgrindel/buildifier-prebuilt
79244e93755af8db1dcbe8d005f024901a7918dc
[ "MIT" ]
13
2022-01-18T22:31:04.000Z
2022-03-21T17:19:49.000Z
bazel_versions.bzl
cgrindel/buildifier-prebuilt
79244e93755af8db1dcbe8d005f024901a7918dc
[ "MIT" ]
2
2022-01-24T20:28:29.000Z
2022-03-20T18:12:46.000Z
""" Common bazel version requirements for tests """ CURRENT_BAZEL_VERSION = "5.0.0" OTHER_BAZEL_VERSIONS = [ "4.2.2", ] SUPPORTED_BAZEL_VERSIONS = [ CURRENT_BAZEL_VERSION, ] + OTHER_BAZEL_VERSIONS
14.857143
43
0.721154
0
0
0
0
0
0
0
0
65
0.3125
21cc04c7b836d418c1a118414f1038a5933f8f0d
600
py
Python
notebooks/bqml/track_meta.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
359
2018-03-23T15:57:52.000Z
2022-03-25T21:56:28.000Z
notebooks/bqml/track_meta.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
84
2018-06-14T00:06:52.000Z
2022-02-08T17:25:54.000Z
notebooks/bqml/track_meta.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
213
2018-05-02T19:06:31.000Z
2022-03-20T15:40:34.000Z
# See also examples/example_track/track_meta.py for a longer, commented example track = dict( author_username='dansbecker', course_name='Machine Learning', course_url='https://www.kaggle.com/learn/intro-to-machine-learning' ) lessons = [ dict( topic='Your First BiqQuery ML Model', ...
20
79
0.576667
0
0
0
0
0
0
0
0
238
0.396667
21cf42098efd959d6275b16af7c4990f494ec81b
859
py
Python
inv/migrations/0001_subinterface_managed_object.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
inv/migrations/0001_subinterface_managed_object.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
inv/migrations/0001_subinterface_managed_object.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Initialize SubInterface.managed_object # --------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # -----------------------------------------------------------------...
35.791667
84
0.463329
466
0.542491
0
0
0
0
0
0
481
0.559953
21cfa74a8ebaf5d372efcc3cd78d24a3dd36b224
651
py
Python
Python/1013. PartitionArrayIntoThreePartsWithEqualSum.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
263
2020-10-05T18:47:29.000Z
2022-03-31T19:44:46.000Z
Python/1013. PartitionArrayIntoThreePartsWithEqualSum.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
1,264
2020-10-05T18:13:05.000Z
2022-03-31T23:16:35.000Z
Python/1013. PartitionArrayIntoThreePartsWithEqualSum.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
760
2020-10-05T18:22:51.000Z
2022-03-29T06:06:20.000Z
class Solution: def canThreePartsEqualSum(self, A: List[int]) -> bool: # Since all the three parts are equal, if we sum all element of arrary it should be a multiplication of 3 # so the sum of each part must be equal to sum of all element divided by 3 quotient, remainder = divmod(sum(A), 3) ...
34.263158
113
0.569892
651
1
0
0
0
0
0
0
222
0.341014
21d04b45422de71cb56cbdb189ae8ae7a0615c7b
14,224
py
Python
utils/etrm_stochastic_grid_search/residual_analysis.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
7
2016-08-30T15:18:11.000Z
2021-08-22T00:28:10.000Z
utils/etrm_stochastic_grid_search/residual_analysis.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
2
2016-06-08T06:41:45.000Z
2016-06-23T20:47:26.000Z
utils/etrm_stochastic_grid_search/residual_analysis.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
1
2018-09-18T10:38:08.000Z
2018-09-18T10:38:08.000Z
# =============================================================================== # Copyright 2019 Jan Hendrickx and Gabriel Parrish # # 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:/...
37.729443
147
0.710911
0
0
0
0
0
0
0
0
6,517
0.458169
21d44708b07bab2beabd646a214bd70c0233465b
2,076
py
Python
lib/data_utils/insta_utils_imgs.py
ziniuwan/maed
9e1f1c37eba81da86c8d9c62dc9be41a01abff5b
[ "MIT" ]
145
2021-08-15T13:22:08.000Z
2022-03-29T13:37:19.000Z
lib/data_utils/insta_utils_imgs.py
vkirilenko/maed
9e1f1c37eba81da86c8d9c62dc9be41a01abff5b
[ "MIT" ]
9
2021-09-17T14:58:15.000Z
2022-03-29T07:43:08.000Z
lib/data_utils/insta_utils_imgs.py
vkirilenko/maed
9e1f1c37eba81da86c8d9c62dc9be41a01abff5b
[ "MIT" ]
17
2021-08-15T13:22:10.000Z
2022-01-17T02:34:14.000Z
import os import sys sys.path.append('.') import argparse import numpy as np import os.path as osp from multiprocessing import Process, Pool from glob import glob from tqdm import tqdm import tensorflow as tf from PIL import Image from lib.core.config import INSTA_DIR, INSTA_IMG_DIR def process_single_record(fname,...
34.032787
102
0.678227
0
0
0
0
0
0
0
0
327
0.157514
21d487a575334245b8424e08a0ec1c4d3a7ff96b
672
py
Python
src/person/migrations/0004_actors_moved.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
10
2021-01-10T09:39:16.000Z
2022-02-05T06:40:47.000Z
src/person/migrations/0004_actors_moved.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
null
null
null
src/person/migrations/0004_actors_moved.py
Little-Pogchamp-Team/kinopoisk_on_django
06e1b5ee14c7e77dd5b69140732461a02bf44566
[ "MIT" ]
1
2021-01-11T17:04:06.000Z
2021-01-11T17:04:06.000Z
# Generated by Django 3.1.5 on 2021-03-22 17:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('movies', '0010_actors_moved'), ('person', '0003_refactoring_movie_person_m2m_rels'), ] operations = [ migrations.AddField( ...
26.88
113
0.605655
579
0.861607
0
0
0
0
0
0
203
0.302083
21d4a525edd40a1d975bbe0a24d86588eb396b49
1,653
py
Python
tests/test_oxide.py
codepainters/edalize
220952c38864735238212ab92405167cbf16c528
[ "BSD-2-Clause" ]
1
2022-03-17T23:30:32.000Z
2022-03-17T23:30:32.000Z
tests/test_oxide.py
codepainters/edalize
220952c38864735238212ab92405167cbf16c528
[ "BSD-2-Clause" ]
null
null
null
tests/test_oxide.py
codepainters/edalize
220952c38864735238212ab92405167cbf16c528
[ "BSD-2-Clause" ]
null
null
null
import os import pytest from edalize_common import make_edalize_test def run_oxide_test(tf): tf.backend.configure() tf.compare_files( ["Makefile", "edalize_yosys_procs.tcl", "edalize_yosys_template.tcl"] ) tf.backend.build() tf.compare_files(["yosys.cmd", "nextpnr-nexus.cmd", "prjoxide.c...
26.66129
87
0.658197
0
0
0
0
0
0
0
0
512
0.30974
21d580ac0342437490dbebbfefc2c13b2463ec74
4,265
py
Python
ds5-scripts/aosp_8_1/arm/time.py
rewhy/happer
3b48894e2d91f150f1aee0ce75291b9ca2a29bbe
[ "Apache-2.0" ]
32
2021-04-08T05:39:51.000Z
2022-03-31T03:49:35.000Z
ds5-scripts/aosp_8_1/arm/time.py
rewhy/happer
3b48894e2d91f150f1aee0ce75291b9ca2a29bbe
[ "Apache-2.0" ]
2
2021-04-14T08:31:30.000Z
2021-08-29T19:12:09.000Z
ds5-scripts/aosp_8_1/arm/time.py
rewhy/happer
3b48894e2d91f150f1aee0ce75291b9ca2a29bbe
[ "Apache-2.0" ]
3
2021-06-08T08:52:56.000Z
2021-06-23T17:28:51.000Z
# time.py import gc import os import sys from arm_ds.debugger_v1 import Debugger from arm_ds.debugger_v1 import DebugException import config import memory import mmu # obtain current execution state debugger = Debugger() execution_state = debugger.getCurrentExecutionContext() def cleanup(): if...
32.557252
126
0.687222
0
0
0
0
0
0
0
0
1,088
0.2551
21d74dd97abbafbab41d2b79624c65a5587f6d58
3,134
py
Python
unsupervised_learning/kmeans.py
toorajtaraz/computational_intelligence_mini_projects
79d1782c3b61ee15ac01dcf377bdc369962adb18
[ "MIT" ]
3
2022-02-09T21:35:14.000Z
2022-02-10T15:31:43.000Z
unsupervised_learning/kmeans.py
toorajtaraz/computational_intelligence_mini_projects
79d1782c3b61ee15ac01dcf377bdc369962adb18
[ "MIT" ]
null
null
null
unsupervised_learning/kmeans.py
toorajtaraz/computational_intelligence_mini_projects
79d1782c3b61ee15ac01dcf377bdc369962adb18
[ "MIT" ]
null
null
null
from pathlib import Path import sys path = str(Path(Path(__file__).parent.absolute()).parent.absolute()) sys.path.insert(0, path) from mnist_utils.util import _x, _y_int from sklearn.cluster import MiniBatchKMeans from sklearn.metrics import accuracy_score, adjusted_rand_score import numpy as np from fast_pytorch_kmean...
35.613636
84
0.678685
0
0
0
0
0
0
0
0
305
0.09732
21d75135a125fe9f66fd6dd283f68fba32f5dd33
6,224
py
Python
cbbc/qapackage/OnlineCLTrainer.py
Robert-xiaoqiang/Model-Capability-Assessment
3cb8673ea66bfeded9d6421e15b288b485ccc53b
[ "Unlicense" ]
null
null
null
cbbc/qapackage/OnlineCLTrainer.py
Robert-xiaoqiang/Model-Capability-Assessment
3cb8673ea66bfeded9d6421e15b288b485ccc53b
[ "Unlicense" ]
null
null
null
cbbc/qapackage/OnlineCLTrainer.py
Robert-xiaoqiang/Model-Capability-Assessment
3cb8673ea66bfeded9d6421e15b288b485ccc53b
[ "Unlicense" ]
null
null
null
import os import json import random random.seed(32767) import shutil import numpy as np np.random.seed(32767) import torch from torch import nn from torch.nn import init from torch.nn import functional as F from torch.optim import Adam, SGD, lr_scheduler import torch.backends.cudnn as cudnn from tensorboardX import Su...
42.340136
125
0.692963
5,167
0.830174
0
0
0
0
0
0
532
0.085476
21d75b727cf9afea002e2b219228eabb6225a62d
462
py
Python
fluids/consts.py
BerkeleyAutomation/FLUIDS
728da0d0fec5028ca4506aa9cc8e37a5b072e7a9
[ "MIT" ]
26
2017-12-28T18:15:36.000Z
2022-01-21T13:00:27.000Z
fluids/consts.py
BerkeleyAutomation/FLUIDS
728da0d0fec5028ca4506aa9cc8e37a5b072e7a9
[ "MIT" ]
61
2018-01-30T05:18:42.000Z
2021-05-19T15:00:05.000Z
fluids/consts.py
BerkeleyAutomation/FLUIDS
728da0d0fec5028ca4506aa9cc8e37a5b072e7a9
[ "MIT" ]
14
2017-12-11T04:59:21.000Z
2021-05-19T12:21:31.000Z
STATE_CITY = "fluids_state_city" OBS_QLIDAR = "fluids_obs_qlidar" OBS_GRID = "fluids_obs_grid" OBS_BIRDSEYE = "fluids_obs_birdseye" OBS_NONE = "fluids_obs_none" BACKGROUND_CSP = "fluids_background_csp" BACKGROUND_NULL = "fluids_background_null" REWARD_PATH = "fluids_reward_path" REWARD_NONE = "fluids_rew...
22
42
0.74026
0
0
0
0
0
0
0
0
203
0.439394
21d800daddf76d02f8c5063d12c46fb52f08fcb4
47
py
Python
src/melbviz/wsgi.py
ned2/footviz
4940882469df76b6af19282cf4fc4f3c81a7b410
[ "MIT" ]
1
2020-02-01T20:35:39.000Z
2020-02-01T20:35:39.000Z
src/melbviz/wsgi.py
ned2/footviz
4940882469df76b6af19282cf4fc4f3c81a7b410
[ "MIT" ]
2
2020-03-31T10:43:57.000Z
2020-07-19T02:56:08.000Z
src/melbviz/wsgi.py
ned2/footviz
4940882469df76b6af19282cf4fc4f3c81a7b410
[ "MIT" ]
null
null
null
from .app import app application = app.server
11.75
24
0.765957
0
0
0
0
0
0
0
0
0
0
21d8495b0fdeb7179e8f4818df4634dea3eb06dd
312
py
Python
0118.Pascal's_Triangle/solution.py
WZMJ/Algorithms
07f648541d38e24df38bda469665c12df6a50637
[ "MIT" ]
5
2020-05-23T02:18:26.000Z
2021-07-05T05:36:01.000Z
0118.Pascal's_Triangle/solution.py
WZMJ/Algorithms
07f648541d38e24df38bda469665c12df6a50637
[ "MIT" ]
1
2020-06-10T07:17:24.000Z
2020-07-20T02:21:24.000Z
0118.Pascal's_Triangle/solution.py
WZMJ/Algorithms
07f648541d38e24df38bda469665c12df6a50637
[ "MIT" ]
1
2019-04-23T13:01:50.000Z
2019-04-23T13:01:50.000Z
class Solution: def generate(self, num_rows): if num_rows == 0: return [] ans = [1] result = [ans] for _ in range(num_rows - 1): ans = [1] + [ans[i] + ans[i + 1] for i in range(len(ans[:-1]))] + [1] result.append(ans) return result
28.363636
81
0.464744
311
0.996795
0
0
0
0
0
0
0
0
21dbf379b220ade4794e4ad2d117ca0df3cac919
472
py
Python
ozzmeister00/AdventOfCode2021/Scripts/Python/utils/constants.py
techartorg/Advent_of_code_2021
0de46418e86743a2f3dee62c34f35e3007973c77
[ "MIT" ]
null
null
null
ozzmeister00/AdventOfCode2021/Scripts/Python/utils/constants.py
techartorg/Advent_of_code_2021
0de46418e86743a2f3dee62c34f35e3007973c77
[ "MIT" ]
null
null
null
ozzmeister00/AdventOfCode2021/Scripts/Python/utils/constants.py
techartorg/Advent_of_code_2021
0de46418e86743a2f3dee62c34f35e3007973c77
[ "MIT" ]
2
2021-12-12T06:42:02.000Z
2021-12-26T01:41:28.000Z
""" Constants and constant generators """ import os INPUTS_FOLDER_NAME = "inputData" def getInputsFolder(): """ :return str: the absolute path on the file system to the inputData folder, which should be relative to this package """ # figure out where we are utilsFolder = os.path.dirname(os.path...
21.454545
119
0.707627
0
0
0
0
0
0
0
0
227
0.480932
21dc1958ff8c27f13a30ce7881d7c3c522568e75
4,738
py
Python
bin/ADFRsuite/CCSBpckgs/Volume/Operators/trilinterp.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/Volume/Operators/trilinterp.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/Volume/Operators/trilinterp.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
################################################################################ ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your op...
37.904
105
0.47003
0
0
0
0
0
0
0
0
2,196
0.463487
21dd78aa13bdce09f718bbaedda95f0b779a6c8a
11,683
py
Python
telegrampy/ext/commands/help.py
Fyssion/telegram.py
41d94b9386cd1812dfe544a7f86ca4e0787a4dee
[ "MIT" ]
null
null
null
telegrampy/ext/commands/help.py
Fyssion/telegram.py
41d94b9386cd1812dfe544a7f86ca4e0787a4dee
[ "MIT" ]
null
null
null
telegrampy/ext/commands/help.py
Fyssion/telegram.py
41d94b9386cd1812dfe544a7f86ca4e0787a4dee
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020-2021 ilovetocode Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
31.321716
131
0.620303
10,280
0.879911
0
0
0
0
7,566
0.647608
5,145
0.440383
21dea9e689cc2f2311728c0f3580dc22bc6df8bd
3,011
py
Python
backend/farming/graphql/types/natura2000.py
PwC-FaST/fast-webapp
8c5640c04fcf0b200d5408a8354b4ab2263cd37a
[ "MIT" ]
7
2019-08-30T05:19:27.000Z
2021-12-22T14:56:00.000Z
backend/farming/graphql/types/natura2000.py
PwC-FaST/fast-webapp
8c5640c04fcf0b200d5408a8354b4ab2263cd37a
[ "MIT" ]
10
2020-06-05T19:45:05.000Z
2022-02-17T19:15:37.000Z
backend/farming/graphql/types/natura2000.py
PwC-FaST/fast-webapp
8c5640c04fcf0b200d5408a8354b4ab2263cd37a
[ "MIT" ]
5
2020-03-05T10:23:02.000Z
2020-12-06T10:53:07.000Z
import graphene import os from promise import Promise from datetime import datetime from promise.dataloader import DataLoader import requests from core.graphql.types import CountryType from core.models import Country class Natura2000FeatureType(graphene.ObjectType): id = graphene.String() site_code = graphene...
40.146667
97
0.548655
2,719
0.903022
0
0
0
0
0
0
328
0.108934
21df65a1c8478ea8f6b221397a365d1de4254a1f
3,548
py
Python
Lib/test/test_cmath_jy.py
weimingtom/j2mepython-midp
472333ebc6a7f06d92c5ede85c8ed55e4ad66c6d
[ "CNRI-Jython", "PSF-2.0", "Apache-2.0" ]
1
2015-11-07T12:22:17.000Z
2015-11-07T12:22:17.000Z
Lib/test/test_cmath_jy.py
weimingtom/j2mepython-midp
472333ebc6a7f06d92c5ede85c8ed55e4ad66c6d
[ "CNRI-Jython", "PSF-2.0", "Apache-2.0" ]
null
null
null
Lib/test/test_cmath_jy.py
weimingtom/j2mepython-midp
472333ebc6a7f06d92c5ede85c8ed55e4ad66c6d
[ "CNRI-Jython", "PSF-2.0", "Apache-2.0" ]
null
null
null
#! /usr/bin/env python """ Simple test script for cmathmodule.c Roger E. Masse """ import cmath import unittest from test import test_support from test.test_support import verbose p = cmath.pi e = cmath.e if verbose: print 'PI = ', abs(p) print 'E = ', abs(e) class CmathTestCase(unittest.TestCase): d...
33.158879
78
0.55947
3,165
0.892052
0
0
0
0
0
0
108
0.03044
21df81c4df3e4f5c8e3d15ec62909fed82741b3f
6,633
py
Python
python/coffer/coins/impl/_segwittx.py
Steve132/wallet_standard
09c909b24dc17cf6a0a433644d8f1912e886ab1c
[ "MIT" ]
null
null
null
python/coffer/coins/impl/_segwittx.py
Steve132/wallet_standard
09c909b24dc17cf6a0a433644d8f1912e886ab1c
[ "MIT" ]
null
null
null
python/coffer/coins/impl/_segwittx.py
Steve132/wallet_standard
09c909b24dc17cf6a0a433644d8f1912e886ab1c
[ "MIT" ]
null
null
null
from _satoshitx import * import struct #https://bitcoincore.org/en/segwit_wallet_dev/ class SWitnessTransaction(STransaction): def __init__(version,flag,ins,outs,witness,locktime): super(SWitnessTransaction,self).__init__(version,ins,outs,locktime) self.flag=flag self.witness=witness def serialize(self): tx...
30.013575
192
0.692748
2,026
0.305442
0
0
831
0.125283
0
0
3,144
0.473994
21e120b1fbe5f797e5a435a8ef7fbefb53f97408
506
py
Python
tests/buffered_recorder_atexit.py
peterdemin/awsme
13a2566171ee0849973fabc6e1d45ba2cc8d496d
[ "MIT" ]
15
2019-01-25T09:45:45.000Z
2020-08-27T08:47:27.000Z
tests/buffered_recorder_atexit.py
peterdemin/awsme
13a2566171ee0849973fabc6e1d45ba2cc8d496d
[ "MIT" ]
62
2019-03-06T16:36:45.000Z
2020-11-19T00:21:00.000Z
tests/buffered_recorder_atexit.py
peterdemin/awsme
13a2566171ee0849973fabc6e1d45ba2cc8d496d
[ "MIT" ]
2
2019-03-05T18:28:55.000Z
2020-07-27T23:27:27.000Z
from __future__ import print_function import datetime from awsme.metric import Metric from awsme.buffered_recorder import BufferedRecorder from typing import List, Dict, Any # noqa class StdoutRecorder: def put_metric_data(self, metric_data: List[Dict[str, Any]]) -> None: print(metric_data) recorder =...
22
73
0.72332
123
0.243083
0
0
0
0
0
0
18
0.035573
21e1875ee0a248959a24b6c0e30c5fce3d5f3121
11,309
py
Python
src/unity/python/turicreate/toolkits/_feature_engineering/_transformer_chain.py
shreyasvj25/turicreate
32e84ca16aef8d04aff3d49ae9984bd49326bffd
[ "BSD-3-Clause" ]
2
2019-02-08T08:45:27.000Z
2020-09-07T05:55:18.000Z
src/unity/python/turicreate/toolkits/_feature_engineering/_transformer_chain.py
shreyasvj25/turicreate
32e84ca16aef8d04aff3d49ae9984bd49326bffd
[ "BSD-3-Clause" ]
3
2022-02-15T04:42:24.000Z
2022-03-12T01:05:15.000Z
src/unity/python/turicreate/toolkits/_feature_engineering/_transformer_chain.py
ZeroInfinite/turicreate
dd210c2563930881abd51fd69cb73007955b33fd
[ "BSD-3-Clause" ]
1
2019-06-01T18:49:28.000Z
2019-06-01T18:49:28.000Z
# -*- coding: utf-8 -*- # Copyright © 2017 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from __future__ import print_function as _ from __future__ import division as _ from...
31.240331
97
0.571934
10,448
0.923784
0
0
2,412
0.213263
0
0
5,819
0.5145
21e32b8735c2ff78ed3df5a83ce3ab8fa9c5647e
729
py
Python
FndngTeam.py
aveepsit/SnackDown19-Qualifier
c6037caca4ba38b9ab98076160118a999c1cc84b
[ "MIT" ]
null
null
null
FndngTeam.py
aveepsit/SnackDown19-Qualifier
c6037caca4ba38b9ab98076160118a999c1cc84b
[ "MIT" ]
null
null
null
FndngTeam.py
aveepsit/SnackDown19-Qualifier
c6037caca4ba38b9ab98076160118a999c1cc84b
[ "MIT" ]
null
null
null
for testcase in range(int(input())): n = int(input()) dict = {} comb = 1 m = (10**9)+7 for x in input().split(): no = int(x) try: dict[no] = dict[no] + 1 except: dict[no] = 1 dict = list(dict.items()) dict.sort(key=lambda x: x[0], reverse=Tru...
22.78125
47
0.429355
0
0
0
0
0
0
0
0
0
0
21e55d19a6492e7090b8c9255be1b0cd0bb51197
709
py
Python
ccal/read_correlate_copynumber_vs_mrnaseq.py
kberkey/ccal
92aa8372997dccec2908928f71a11b6c8327d7aa
[ "MIT" ]
9
2017-10-09T16:54:58.000Z
2018-12-14T19:49:03.000Z
ccal/read_correlate_copynumber_vs_mrnaseq.py
kberkey/ccal
92aa8372997dccec2908928f71a11b6c8327d7aa
[ "MIT" ]
8
2017-03-11T04:43:04.000Z
2018-12-10T09:47:14.000Z
ccal/read_correlate_copynumber_vs_mrnaseq.py
kberkey/ccal
92aa8372997dccec2908928f71a11b6c8327d7aa
[ "MIT" ]
4
2017-03-10T19:12:28.000Z
2022-01-02T21:11:40.000Z
from tarfile import open as tarfile_open from pandas import read_csv def read_correlate_copynumber_vs_mrnaseq(tar_gz_file_path, genes): with tarfile_open(tar_gz_file_path) as tar_gz_file: n = read_csv( tar_gz_file.extractfile( tuple(file for file in tar_gz_file if file.name....
26.259259
88
0.568406
0
0
0
0
0
0
0
0
45
0.06347
21e57118b1cdc8c15de5498103799297ecf434fd
2,525
py
Python
get_ships.py
ndujar/vessel-locator
5feff371935e40c2aa22d95c50b9b458ab954dea
[ "MIT" ]
null
null
null
get_ships.py
ndujar/vessel-locator
5feff371935e40c2aa22d95c50b9b458ab954dea
[ "MIT" ]
null
null
null
get_ships.py
ndujar/vessel-locator
5feff371935e40c2aa22d95c50b9b458ab954dea
[ "MIT" ]
null
null
null
#module import import urllib.request from bs4 import BeautifulSoup from datetime import datetime def get_ships(imo_list): hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11', 'Accept': 'text/html,application/xhtml+xml,applica...
42.083333
132
0.513267
0
0
0
0
0
0
0
0
1,013
0.401188
21e723f45f87fc926e72e1075bacd22832327764
715
py
Python
scripts/convert_0.0_to_0.1.py
codecraftingtools/hildegard
cc658ab4972dfaf67e995c797d0493a5d82a611f
[ "MIT" ]
null
null
null
scripts/convert_0.0_to_0.1.py
codecraftingtools/hildegard
cc658ab4972dfaf67e995c797d0493a5d82a611f
[ "MIT" ]
null
null
null
scripts/convert_0.0_to_0.1.py
codecraftingtools/hildegard
cc658ab4972dfaf67e995c797d0493a5d82a611f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 Jeffrey A. Webb import sys f = open(sys.argv[1]) for line in f: s = line.strip() if s.startswith("source:"): id = s.split(":")[-1].strip() indent = ' '*line.index("source") sys.stdout.write(f"{indent}source:\n") sys.stdout.write(f"{i...
29.791667
60
0.548252
0
0
0
0
0
0
0
0
258
0.360839
21e735d47835a51bb81e229f9598da175bfa76cf
10,093
py
Python
bin/v0eval.py
m-takeuchi/ilislife_wxp
f243431da2852a6e8dc5fd0e1d68bc9220944f96
[ "MIT" ]
null
null
null
bin/v0eval.py
m-takeuchi/ilislife_wxp
f243431da2852a6e8dc5fd0e1d68bc9220944f96
[ "MIT" ]
null
null
null
bin/v0eval.py
m-takeuchi/ilislife_wxp
f243431da2852a6e8dc5fd0e1d68bc9220944f96
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib import gridspec import datetime, time from scipy.signal import savgol_filter from scipy.interpolate import interp1d, Akima1DInterpolator, PchipInterpolator from sys import platform import warn...
36.046429
197
0.563064
0
0
0
0
0
0
0
0
5,068
0.474576
21e7aa187114df23f75c99353a77c5e6edd5021a
1,067
py
Python
CoTeTo/CoTeTo/import_file.py
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
3
2016-05-30T15:12:16.000Z
2022-03-22T08:11:13.000Z
CoTeTo/CoTeTo/import_file.py
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
21
2016-06-13T11:33:45.000Z
2017-05-23T09:46:52.000Z
CoTeTo/CoTeTo/import_file.py
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys if sys.version_info >= (3, 3): import importlib def import_file(module_path='', module=''): importlib.invalidate_caches() if module in sys.modules: del sys.modules[module] sys.path.insert(0, module_path) loader = importlib.find_lo...
23.711111
91
0.622306
0
0
0
0
0
0
0
0
224
0.209934
21e807b163ce5ea32bc9f1fcfc02d9c78081538f
3,411
py
Python
sudeste/solicitacao/views.py
danielcamilo13/sudeste
be877c8dec07cfca84ebdc15b275a58aa29af98a
[ "bzip2-1.0.6" ]
1
2019-10-15T19:43:22.000Z
2019-10-15T19:43:22.000Z
sudeste/solicitacao/views.py
danielcamilo13/sudeste
be877c8dec07cfca84ebdc15b275a58aa29af98a
[ "bzip2-1.0.6" ]
6
2020-06-05T23:48:29.000Z
2022-02-10T09:32:01.000Z
sudeste/solicitacao/views.py
danielcamilo13/sudeste
be877c8dec07cfca84ebdc15b275a58aa29af98a
[ "bzip2-1.0.6" ]
null
null
null
from django.shortcuts import render,get_object_or_404 from django.http import HttpResponseRedirect,HttpResponse from cadastro.models import tipocacamba from solicitacao.models import ordemServico from .forms import pedidosForm,opcoesForm,textoForm,statusForm import time from django.utils import timezone from datetime i...
43.730769
113
0.652301
0
0
0
0
0
0
0
0
989
0.289944
21e82100cdf7b246d3b2ede27f4e43fbcde2d2b1
8,879
py
Python
flows.py
Privacy-Police/Differential-Privacy
c9ac91bf478c00af2ac732bc815ba1ee2fa7e6e5
[ "MIT" ]
null
null
null
flows.py
Privacy-Police/Differential-Privacy
c9ac91bf478c00af2ac732bc815ba1ee2fa7e6e5
[ "MIT" ]
null
null
null
flows.py
Privacy-Police/Differential-Privacy
c9ac91bf478c00af2ac732bc815ba1ee2fa7e6e5
[ "MIT" ]
null
null
null
import math import types import numpy as np import scipy as sp import scipy.linalg import torch import torch.nn as nn import torch.nn.functional as F # The following code is adapted from the following repository # https://github.com/ikostrikov/pytorch-flows/blob/master/flows.py def get_mask(in_features, out_feature...
34.819608
85
0.56887
7,889
0.888501
0
0
0
0
0
0
1,172
0.131997
21e88c91163adb73844077bcc39fe14e4bf1e166
1,477
py
Python
render.py
danieltes/tp_solver
898354aa931c420dc1bf53fdd744885c4c6386d1
[ "BSD-3-Clause" ]
null
null
null
render.py
danieltes/tp_solver
898354aa931c420dc1bf53fdd744885c4c6386d1
[ "BSD-3-Clause" ]
null
null
null
render.py
danieltes/tp_solver
898354aa931c420dc1bf53fdd744885c4c6386d1
[ "BSD-3-Clause" ]
null
null
null
import uuid from PIL import Image import graphviz as gv styles = { 'graph': { 'label': 'Discreta - Representación de AST', 'fontsize': '16', 'fontcolor': 'white', 'bgcolor': '#333333', }, 'nodes': { 'fontname': 'Helvetica', 'shape': 'hexagon', 'font...
21.720588
70
0.531483
0
0
0
0
0
0
0
0
403
0.272297
21edb5cf4127cb401dec53951ecbfc0d5dad821a
1,557
py
Python
flask/flask_r_interpolaton/app.py
andreipreda/py-r-interpolation
d7be5799b9cf1da95ce728c00eb0ce1c73bf4c02
[ "MIT" ]
null
null
null
flask/flask_r_interpolaton/app.py
andreipreda/py-r-interpolation
d7be5799b9cf1da95ce728c00eb0ce1c73bf4c02
[ "MIT" ]
13
2019-12-26T17:31:05.000Z
2022-02-26T10:36:46.000Z
flask/flask_r_interpolaton/app.py
andreipreda/py-r-interpolation
d7be5799b9cf1da95ce728c00eb0ce1c73bf4c02
[ "MIT" ]
null
null
null
import os from pathlib import Path from flask import Flask, current_app, jsonify, request from flask_cors import CORS from mongoengine import connect, MongoEngineConnectionError import namesgenerator from model import Doc from app_logic import random_df, call_r def create_app(config=None): app = Flask(__name__) ...
25.112903
82
0.587669
0
0
0
0
898
0.57675
0
0
231
0.148362
21ee59da3e9f824ace6a440137a55162daab5528
200
py
Python
Timers.py
elegenstein-tgm/astrosim
1b09a32f543f5cc810621f8beaff20d57d0add22
[ "MIT" ]
null
null
null
Timers.py
elegenstein-tgm/astrosim
1b09a32f543f5cc810621f8beaff20d57d0add22
[ "MIT" ]
null
null
null
Timers.py
elegenstein-tgm/astrosim
1b09a32f543f5cc810621f8beaff20d57d0add22
[ "MIT" ]
null
null
null
class Timer: def __init__(self, duration, ticks): self.duration = duration self.ticks = ticks self.thread = None def start(self): pass # start Thread here
20
40
0.585
199
0.995
0
0
0
0
0
0
19
0.095
21f0be377a2b1d1f473cdf9e342362b4dfa9908f
345
py
Python
config_mypy_django_plugin.py
fj-fj-fj/tech-store
e07214354a51490df53acceec2091812ffd31360
[ "MIT" ]
null
null
null
config_mypy_django_plugin.py
fj-fj-fj/tech-store
e07214354a51490df53acceec2091812ffd31360
[ "MIT" ]
null
null
null
config_mypy_django_plugin.py
fj-fj-fj/tech-store
e07214354a51490df53acceec2091812ffd31360
[ "MIT" ]
null
null
null
import os from configurations.importer import install from mypy.version import __version__ # noqa: F401 from mypy_django_plugin import main def plugin(version): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings') os.environ.setdefault('DJANGO_CONFIGURATION', 'Development') install() ret...
26.538462
68
0.776812
0
0
0
0
0
0
0
0
86
0.249275
21f0f9312500016def30ca87e22275fe478c9678
9,866
py
Python
Florence/FunctionSpace/JacobiPolynomials/NormalisedJacobi_Deprecated.py
romeric/florence
6af96f2590adb776f74efc6fed96737a4edc4582
[ "MIT" ]
65
2017-08-04T10:21:13.000Z
2022-02-21T21:45:09.000Z
Florence/FunctionSpace/JacobiPolynomials/NormalisedJacobi_Deprecated.py
romeric/florence
6af96f2590adb776f74efc6fed96737a4edc4582
[ "MIT" ]
6
2018-06-03T02:29:20.000Z
2022-01-18T02:30:22.000Z
Florence/FunctionSpace/JacobiPolynomials/NormalisedJacobi_Deprecated.py
romeric/florence
6af96f2590adb776f74efc6fed96737a4edc4582
[ "MIT" ]
10
2018-05-30T09:44:10.000Z
2021-05-18T08:06:51.000Z
import numpy as np from JacobiPolynomials import * import math # 1D - LINE #------------------------------------------------------------------------------------------------------------------# #------------------------------------------------------------------------------------------------------------------# #---------...
32.668874
140
0.420738
0
0
0
0
0
0
0
0
3,524
0.357186
21f110499fa4d164d3ecef0734601aa0553b4aba
24,849
py
Python
Homework1.py
nicolac1999/Homework-ADM
3ab9f4afaa7fce4a1ffc38a45dbd3a199dba3737
[ "MIT" ]
null
null
null
Homework1.py
nicolac1999/Homework-ADM
3ab9f4afaa7fce4a1ffc38a45dbd3a199dba3737
[ "MIT" ]
null
null
null
Homework1.py
nicolac1999/Homework-ADM
3ab9f4afaa7fce4a1ffc38a45dbd3a199dba3737
[ "MIT" ]
null
null
null
#Exercises of the Problem 1 (77/91) #Say "Hello, World!" With Python print ("Hello, World!") #Python If-Else import math import os import random import re import sys if __name__ == '__main__': n = int(raw_input().strip()) if n%2==1: print("Weird") else: if n>2 and n<5 : ...
19.026799
156
0.540706
0
0
0
0
0
0
0
0
3,317
0.133476
21f17d842da515de7fc906d22c723ce681702761
2,046
py
Python
oms/test/test_order.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
5
2021-08-10T23:16:44.000Z
2022-03-17T17:27:00.000Z
oms/test/test_order.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
330
2021-06-10T17:28:22.000Z
2022-03-31T00:55:48.000Z
oms/test/test_order.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
6
2021-06-10T17:20:32.000Z
2022-03-28T08:08:03.000Z
import logging import helpers.hunit_test as hunitest import oms.order as omorder import oms.order_example as oordexam _LOG = logging.getLogger(__name__) class TestOrder1(hunitest.TestCase): def test1(self) -> None: """ Test building and serializing an Order. """ order = oordexam....
37.888889
236
0.663245
1,885
0.92131
0
0
0
0
0
0
1,036
0.506354
21f180b857dbd23c3f25d5d18d9b868a2c717d34
1,147
py
Python
mindhome_alpha/erpnext/hr/doctype/leave_type/leave_type.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/hr/doctype/leave_type/leave_type.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/hr/doctype/leave_type/leave_type.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import calendar import frappe from datetime import datetime from frappe.utils import today from frappe import _ from frappe.model.document import Docum...
38.233333
174
0.741935
821
0.71578
0
0
0
0
0
0
434
0.378378
21f35dbbfba3587292969ac6f42df8409ca16d0e
223
py
Python
data/python/pattern_10/code.py
MKAbuMattar/grammind-api
ccf6e9898f50f9e4c7671abecf65029198e2dc72
[ "MIT" ]
3
2021-12-29T13:03:27.000Z
2021-12-31T20:27:17.000Z
data/python/pattern_10/code.py
MKAbuMattar/grammind-api
ccf6e9898f50f9e4c7671abecf65029198e2dc72
[ "MIT" ]
2
2022-01-15T13:08:13.000Z
2022-01-18T19:41:07.000Z
data/python/pattern_10/code.py
MKAbuMattar/grammind-api
ccf6e9898f50f9e4c7671abecf65029198e2dc72
[ "MIT" ]
null
null
null
#MAIN PROGRAM STARTS HERE: num = int(input('Enter the number of rows and columns for the square: ')) for x in range(1, num + 1): for y in range(1, num - 2 + 1): print ('{} {} '.format(x, y), end='') print()
31.857143
73
0.573991
0
0
0
0
0
0
0
0
91
0.408072
21f37da3a047adbe8267c14542444fce93f2f143
628
py
Python
vocoder.py
tapsoft/autovc
b89183b4f02facbeaee73c2c91ef05615e7985c0
[ "MIT" ]
1
2021-05-18T19:09:05.000Z
2021-05-18T19:09:05.000Z
vocoder.py
tapsoft/autovc
b89183b4f02facbeaee73c2c91ef05615e7985c0
[ "MIT" ]
null
null
null
vocoder.py
tapsoft/autovc
b89183b4f02facbeaee73c2c91ef05615e7985c0
[ "MIT" ]
null
null
null
import os import torch import librosa import pickle import soundfile as sf from synthesis import build_model from synthesis import wavegen spect_vc = pickle.load(open('results.pkl', 'rb')) device = torch.device("cuda") model = build_model().to(device) checkpoint = torch.load("checkpoint_step001000000_ema.pth") model.l...
27.304348
67
0.727707
0
0
0
0
0
0
0
0
141
0.224522
21f395f0029b2866265b7a849d224eea97a12f20
2,067
py
Python
my_drawing/bouncing_ball.py
YuanMaSa/stancode-projects
d4b8d07650786bdd25fb00c5bada6914cc18b5f4
[ "MIT" ]
null
null
null
my_drawing/bouncing_ball.py
YuanMaSa/stancode-projects
d4b8d07650786bdd25fb00c5bada6914cc18b5f4
[ "MIT" ]
null
null
null
my_drawing/bouncing_ball.py
YuanMaSa/stancode-projects
d4b8d07650786bdd25fb00c5bada6914cc18b5f4
[ "MIT" ]
null
null
null
""" File: bouncing_ball.py Name: Jonathan Ma ------------------------- TODO: """ from campy.graphics.gobjects import GOval from campy.graphics.gwindow import GWindow from campy.gui.events.timer import pause from campy.gui.events.mouse import onmouseclicked VX = 3 DELAY = 10 GRAVITY = 1 SIZE = 20 REDUC...
23.488636
71
0.562651
0
0
0
0
0
0
0
0
634
0.306725
21f45310f90a55cefdff3888526c635be854305a
373
py
Python
test/py/RunClientServer.py
KirinDave/powerset_thrift
283603cce87e6da4117af1d3c91570e7466846c2
[ "BSL-1.0" ]
1
2016-05-08T06:27:22.000Z
2016-05-08T06:27:22.000Z
test/py/RunClientServer.py
wmorgan/thrift
d9ba3d7a3e25f0f88766c344b2e937422858320b
[ "BSL-1.0" ]
null
null
null
test/py/RunClientServer.py
wmorgan/thrift
d9ba3d7a3e25f0f88766c344b2e937422858320b
[ "BSL-1.0" ]
1
2021-02-09T10:25:34.000Z
2021-02-09T10:25:34.000Z
#!/usr/bin/env python import subprocess import sys import os import signal serverproc = subprocess.Popen([sys.executable, "TestServer.py"]) try: ret = subprocess.call([sys.executable, "TestClient.py"]) if ret != 0: raise Exception("subprocess failed") finally: # fixme: should check that server di...
21.941176
64
0.707775
0
0
0
0
0
0
0
0
114
0.30563