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
f8e92112b61dc64252a8bdb77bbf3e0e15b55abe
5,074
py
Python
test/jit/test_backend_nnapi.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
test/jit/test_backend_nnapi.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
test/jit/test_backend_nnapi.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
import os import sys import unittest import torch import torch._C from pathlib import Path from test_nnapi import TestNNAPI from torch.testing._internal.common_utils import TEST_WITH_ASAN # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.pa...
44.508772
132
0.643082
3,896
0.767836
0
0
4,079
0.803902
0
0
2,160
0.4257
f8e997acb5df08763f83e5ed402ea27c456b06ca
1,078
py
Python
main/configure.py
syxu828/Graph2Seq-0.1
36e38f755c0ee390735e49121259151da54bcc1c
[ "Apache-2.0" ]
24
2018-11-04T17:16:52.000Z
2022-01-06T12:34:49.000Z
main/configure.py
syxu828/Graph2Seq-0.1
36e38f755c0ee390735e49121259151da54bcc1c
[ "Apache-2.0" ]
3
2018-12-09T00:31:36.000Z
2020-07-29T06:21:51.000Z
main/configure.py
syxu828/Graph2Seq-0.1
36e38f755c0ee390735e49121259151da54bcc1c
[ "Apache-2.0" ]
4
2019-01-09T06:44:41.000Z
2019-08-04T07:55:00.000Z
train_data_path = "../data/no_cycle/train.data" dev_data_path = "../data/no_cycle/dev.data" test_data_path = "../data/no_cycle/test.data" word_idx_file_path = "../data/word.idx" word_embedding_dim = 100 train_batch_size = 32 dev_batch_size = 500 test_batch_size = 500 l2_lambda = 0.000001 learning_rate = 0.001 epoch...
21.137255
63
0.727273
0
0
0
0
0
0
0
0
392
0.363636
f8ea7055295dd79ddcfe4843e79b06f95f13078d
7,506
py
Python
dataControlWidget.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
dataControlWidget.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
dataControlWidget.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
from PyQt5.QtWidgets import QLabel, QWidget, QGridLayout, QCheckBox, QGroupBox from InftyDoubleSpinBox import InftyDoubleSpinBox from PyQt5.QtCore import pyqtSignal, Qt import helplib as hl import numpy as np class dataControlWidget(QGroupBox): showErrorBars_changed = pyqtSignal(bool) ignoreFirstPoint_changed ...
34.589862
123
0.635092
7,295
0.971889
0
0
0
0
0
0
429
0.057154
f8ea7298a7caca93599e616f2e4db31947e61892
6,425
py
Python
src/freemovr_engine/calib/acquire.py
strawlab/flyvr
335892cae740e53e82e07b526e1ba53fbd34b0ce
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2015-01-29T14:09:25.000Z
2016-04-24T04:25:49.000Z
src/freemovr_engine/calib/acquire.py
strawlab/flyvr
335892cae740e53e82e07b526e1ba53fbd34b0ce
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
src/freemovr_engine/calib/acquire.py
strawlab/flyvr
335892cae740e53e82e07b526e1ba53fbd34b0ce
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
import roslib roslib.load_manifest('sensor_msgs') roslib.load_manifest('dynamic_reconfigure') import rospy import sensor_msgs.msg import dynamic_reconfigure.srv import dynamic_reconfigure.encoding import numpy as np import time import os.path import queue class CameraHandler(object): def __init__(self,topic_pref...
36.095506
124
0.588327
6,158
0.958444
0
0
661
0.102879
0
0
521
0.081089
f8eb7ee679859acda30ad6ca74e666a2bc11c767
6,949
py
Python
examples/hfht/pointnet_classification.py
nixli/hfta
76274b5ee0e32732da20b153a3cc6550510d8a78
[ "MIT" ]
24
2021-04-06T20:36:10.000Z
2022-02-26T17:03:33.000Z
examples/hfht/pointnet_classification.py
nixli/hfta
76274b5ee0e32732da20b153a3cc6550510d8a78
[ "MIT" ]
20
2021-04-02T00:51:34.000Z
2022-03-29T15:00:08.000Z
examples/hfht/pointnet_classification.py
nixli/hfta
76274b5ee0e32732da20b153a3cc6550510d8a78
[ "MIT" ]
5
2021-04-11T20:07:32.000Z
2021-06-14T06:41:05.000Z
import argparse import logging import numpy as np import os import pandas as pd import random import subprocess from pathlib import Path from hyperopt import hp from hyperopt.pyll.stochastic import sample from hfta.hfht import (tune_hyperparameters, attach_common_args, rearrange_algorithm_kwarg...
29.570213
80
0.61534
0
0
0
0
0
0
0
0
1,771
0.254857
f8eb7f85d81c3a2dfe42f499dfc3e4db4b3a0b93
444
py
Python
cpdb/trr/migrations/0002_alter_trr_subject_id_type.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
25
2018-07-20T22:31:40.000Z
2021-07-15T16:58:41.000Z
cpdb/trr/migrations/0002_alter_trr_subject_id_type.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
13
2018-06-18T23:08:47.000Z
2022-02-10T07:38:25.000Z
cpdb/trr/migrations/0002_alter_trr_subject_id_type.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
6
2018-05-17T21:59:43.000Z
2020-11-17T00:30:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-03-06 04:00 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trr', '0001_initial'), ] operations = [ migrations.AlterField( ...
21.142857
57
0.61036
286
0.644144
0
0
0
0
0
0
107
0.240991
f8ec1873a929e5565a9c1de6ad8321fa85a4a6d9
1,409
py
Python
tests/utils/dut.py
Ostrokrzew/standalone-linux-io-tracer
5fcbe7f0c7b027d9e5fdfb4c6e9d553c6fa617b6
[ "BSD-3-Clause-Clear" ]
24
2019-05-09T08:36:46.000Z
2022-03-16T16:20:01.000Z
tests/utils/dut.py
Ostrokrzew/standalone-linux-io-tracer
5fcbe7f0c7b027d9e5fdfb4c6e9d553c6fa617b6
[ "BSD-3-Clause-Clear" ]
122
2019-05-27T12:27:15.000Z
2020-07-31T06:45:08.000Z
tests/utils/dut.py
Ostrokrzew/standalone-linux-io-tracer
5fcbe7f0c7b027d9e5fdfb4c6e9d553c6fa617b6
[ "BSD-3-Clause-Clear" ]
18
2019-05-27T09:31:56.000Z
2021-05-27T18:54:52.000Z
# # Copyright(c) 2020 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # from core.test_run_utils import TestRun from utils.installer import install_iotrace, check_if_installed from utils.iotrace import IotracePlugin from utils.misc import kill_all_io from test_tools.fio.fio import Fio def dut_prepare...
30.630435
112
0.726757
0
0
0
0
0
0
0
0
484
0.343506
f8ecc8d3dac32d7fd54bf1a19d511383c8e5ce7f
355
py
Python
game_service.py
Drew8521/MusiQ
e52671c7dcc4f54f6cbb829486a733a9179575b1
[ "MIT" ]
null
null
null
game_service.py
Drew8521/MusiQ
e52671c7dcc4f54f6cbb829486a733a9179575b1
[ "MIT" ]
1
2019-08-09T21:36:33.000Z
2019-08-09T21:37:24.000Z
game_service.py
Drew8521/MusiQ
e52671c7dcc4f54f6cbb829486a733a9179575b1
[ "MIT" ]
null
null
null
from models import Song from random import choice def random_song(genre): results = Song.query().filter(Song.genre==genre).fetch() print(results) songs = choice(results) random_song = { "title": songs.song, "album": songs.album, "artist": songs.artist.lower(), "genre": g...
23.666667
60
0.622535
0
0
0
0
0
0
0
0
29
0.08169
f8ed0d2649220a6a4bd9e78f42580892fbc06d4f
288
py
Python
stdlib/csv/custom_dialect.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
13
2017-08-22T12:26:07.000Z
2021-07-29T16:13:50.000Z
stdlib/csv/custom_dialect.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
1
2021-02-08T10:24:33.000Z
2021-02-08T10:24:33.000Z
stdlib/csv/custom_dialect.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
17
2018-08-13T11:10:33.000Z
2021-07-29T16:14:02.000Z
#!/usr/bin/python # custom_dialect.py import csv csv.register_dialect("hashes", delimiter="#") f = open('items3.csv', 'w') with f: writer = csv.writer(f, dialect="hashes") writer.writerow(("pencils", 2)) writer.writerow(("plates", 1)) writer.writerow(("books", 4))
16.941176
45
0.635417
0
0
0
0
0
0
0
0
94
0.326389
f8ed4e06a829662d9c548dd0be8745a5ea388df8
996
py
Python
servicex/web/forms.py
zorache/ServiceX_App
4479afa0f019bbdcd35812691e78abba442c9d37
[ "BSD-3-Clause" ]
3
2019-12-31T06:44:06.000Z
2021-03-19T17:39:42.000Z
servicex/web/forms.py
zorache/ServiceX_App
4479afa0f019bbdcd35812691e78abba442c9d37
[ "BSD-3-Clause" ]
132
2019-10-09T20:45:53.000Z
2022-03-30T19:07:37.000Z
servicex/web/forms.py
zorache/ServiceX_App
4479afa0f019bbdcd35812691e78abba442c9d37
[ "BSD-3-Clause" ]
12
2019-12-06T22:47:35.000Z
2021-09-23T21:13:47.000Z
from typing import Optional from flask_wtf import FlaskForm from wtforms import StringField, SelectField, SubmitField from wtforms.validators import DataRequired, Length, Email from servicex.models import UserModel class ProfileForm(FlaskForm): name = StringField('Full Name', validators=[DataRequired(), Length(...
38.307692
80
0.653614
776
0.779116
0
0
0
0
0
0
88
0.088353
f8ed824436e6201a95f5e3c52f9d1d1dd87092b2
24
py
Python
data/studio21_generated/interview/1657/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/interview/1657/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/interview/1657/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def string_func(s, n):
12
22
0.666667
0
0
0
0
0
0
0
0
0
0
f8ee134e47a471c9b912238f8dbcd8fb83c49b93
3,405
py
Python
libs/export_pbs/exportPb.py
linye931025/FPN_Tensorflow-master
e972496a798e9d77a74ddc6062d46b152d072ce7
[ "MIT" ]
null
null
null
libs/export_pbs/exportPb.py
linye931025/FPN_Tensorflow-master
e972496a798e9d77a74ddc6062d46b152d072ce7
[ "MIT" ]
null
null
null
libs/export_pbs/exportPb.py
linye931025/FPN_Tensorflow-master
e972496a798e9d77a74ddc6062d46b152d072ce7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division import os, sys import tensorflow as tf import tf_slim as slim from tensorflow.python.tools import freeze_graph sys.path.append('../../') from data.io.image_preprocess import short_side_resize_for_inference_data from libs.configs...
38.693182
126
0.612335
0
0
0
0
0
0
0
0
414
0.121586
f8eef0cd263627a15c156d8fca2fb80f3faea6c2
983
py
Python
ngadnap/command_templates/adapter_removal.py
smilefreak/NaDNAP
18354778dd896bc0ab3456ca7dbb9d194c1ebf4d
[ "MIT" ]
null
null
null
ngadnap/command_templates/adapter_removal.py
smilefreak/NaDNAP
18354778dd896bc0ab3456ca7dbb9d194c1ebf4d
[ "MIT" ]
null
null
null
ngadnap/command_templates/adapter_removal.py
smilefreak/NaDNAP
18354778dd896bc0ab3456ca7dbb9d194c1ebf4d
[ "MIT" ]
null
null
null
""" Adapter Removal templates """ # AdapterRemoval # # {0}: executable # {1}: fastq1 abs # {2}: fastq2 abs # {3}: fastq1 # {4}: fastq2 # {5}: minimum length # {6}: mismatch_rate # {7}: min base uality # {8}: min merge_length __ADAPTER_REMOVAL__=""" {0} --collapse --file1 {1} --file2 {2} --outputstats {3}....
31.709677
225
0.678535
0
0
0
0
0
0
0
0
500
0.508647
f8f15b0752a64958efc156868083500a63e94dc1
1,745
py
Python
undercloud_heat_plugins/immutable_resources.py
AllenJSebastian/tripleo-common
d510a30266e002e90c358e69cb720bfdfa736134
[ "Apache-2.0" ]
52
2015-04-17T12:06:09.000Z
2021-11-23T09:46:30.000Z
undercloud_heat_plugins/immutable_resources.py
AllenJSebastian/tripleo-common
d510a30266e002e90c358e69cb720bfdfa736134
[ "Apache-2.0" ]
null
null
null
undercloud_heat_plugins/immutable_resources.py
AllenJSebastian/tripleo-common
d510a30266e002e90c358e69cb720bfdfa736134
[ "Apache-2.0" ]
47
2015-10-09T15:22:38.000Z
2021-04-22T04:35:57.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 # ...
28.145161
78
0.696848
627
0.359312
0
0
0
0
0
0
756
0.433238
f8f18448ffd7145536a1fb795da3a1417cfe03f4
255
py
Python
lm5/input.py
jmcph4/lm5
cd6f480ad70a3769090eab6ac3f3d47378a965de
[ "MIT" ]
4
2018-09-25T07:29:05.000Z
2022-02-22T01:56:36.000Z
lm5/input.py
jmcph4/lm5
cd6f480ad70a3769090eab6ac3f3d47378a965de
[ "MIT" ]
null
null
null
lm5/input.py
jmcph4/lm5
cd6f480ad70a3769090eab6ac3f3d47378a965de
[ "MIT" ]
2
2018-09-25T07:29:06.000Z
2021-12-30T07:19:13.000Z
class Input(object): def __init__(self, type, data): self.__type = type self.__data = deepcopy(data) def __repr__(self): return repr(self.__data) def __str__(self): return str(self.__type) + str(self.__data)
21.25
50
0.611765
253
0.992157
0
0
0
0
0
0
0
0
f8f2378998282c62f5eff079407d0b48e7bea81d
2,154
py
Python
slybot/setup.py
DataKnower/dk-portia
24579c0160167af2442117975bf7d6a714b4d7d5
[ "BSD-3-Clause" ]
null
null
null
slybot/setup.py
DataKnower/dk-portia
24579c0160167af2442117975bf7d6a714b4d7d5
[ "BSD-3-Clause" ]
null
null
null
slybot/setup.py
DataKnower/dk-portia
24579c0160167af2442117975bf7d6a714b4d7d5
[ "BSD-3-Clause" ]
null
null
null
from os.path import join, abspath, dirname, exists from slybot import __version__ from setuptools import setup, find_packages from setuptools.command.bdist_egg import bdist_egg from setuptools.command.sdist import sdist def build_js(): root = abspath(dirname(__file__)) base_path = abspath(join(root, '..', 'sp...
29.916667
76
0.615135
190
0.088208
0
0
0
0
0
0
705
0.327298
f8f25149f3eefd3629cc486cf987c4d8a9a5bbb9
3,846
py
Python
yolov3.py
huhuhang/yolov3
6c254b3f453c394046381e1c00cb0908b8f97b3a
[ "MIT" ]
35
2018-10-12T06:33:09.000Z
2022-02-25T03:19:37.000Z
yolov3.py
huhuhang/yolov3
6c254b3f453c394046381e1c00cb0908b8f97b3a
[ "MIT" ]
1
2019-08-31T16:05:12.000Z
2020-01-05T15:34:54.000Z
yolov3.py
huhuhang/yolov3
6c254b3f453c394046381e1c00cb0908b8f97b3a
[ "MIT" ]
14
2018-12-10T22:48:51.000Z
2021-11-18T20:56:38.000Z
import torch import torch.nn as nn from .yolo_layer import * from .yolov3_base import * class Yolov3(Yolov3Base): def __init__(self, num_classes=80): super().__init__() self.backbone = Darknet([1,2,8,8,4]) anchors_per_region = 3 self.yolo_0_pre = Yolov3UpsamplePrep([512, 1...
38.079208
119
0.578783
3,645
0.947738
0
0
0
0
0
0
207
0.053822
f8f25cd96d67041f861381dbd21810aa553cccdc
883
py
Python
tests/assets/test_driver_errors.py
CyrilLeMat/modelkit
2150ffe78ebb00e3302dac36ccb09e66becd5130
[ "MIT" ]
null
null
null
tests/assets/test_driver_errors.py
CyrilLeMat/modelkit
2150ffe78ebb00e3302dac36ccb09e66becd5130
[ "MIT" ]
null
null
null
tests/assets/test_driver_errors.py
CyrilLeMat/modelkit
2150ffe78ebb00e3302dac36ccb09e66becd5130
[ "MIT" ]
null
null
null
import os import pytest from modelkit.assets import errors from tests.conftest import skip_unless def _perform_driver_error_object_not_found(driver): with pytest.raises(errors.ObjectDoesNotExistError): driver.download_object("someasset", "somedestination") assert not os.path.isfile("somedestination"...
29.433333
65
0.822197
0
0
0
0
386
0.437146
0
0
90
0.101925
f8f2d8744612c8dd54640bd2fc3dd67702898911
2,163
py
Python
wiki/tests.py
Jarquevious/makewiki
a945da5ab7704042ef9d740987e23da19ec87267
[ "MIT" ]
null
null
null
wiki/tests.py
Jarquevious/makewiki
a945da5ab7704042ef9d740987e23da19ec87267
[ "MIT" ]
4
2020-06-06T01:42:46.000Z
2021-06-10T20:10:57.000Z
wiki/tests.py
Jarquevious/makewiki
a945da5ab7704042ef9d740987e23da19ec87267
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User from wiki.models import Page # Create your tests here. def test_detail_page(self): """ Test to see if slug generated when saving a Page.""" # Create a user and save to the database user = User.objects.create() user.save() ...
27.730769
98
0.660194
0
0
0
0
0
0
0
0
825
0.381415
f8f3fc84d2eec11a3d1fe8de179b44f825aeb0e4
419
py
Python
BanditSim/__init__.py
AJB0211/BanditSim
5426486b40c35492049b09f9b57eb18ad5d6ce63
[ "MIT" ]
null
null
null
BanditSim/__init__.py
AJB0211/BanditSim
5426486b40c35492049b09f9b57eb18ad5d6ce63
[ "MIT" ]
null
null
null
BanditSim/__init__.py
AJB0211/BanditSim
5426486b40c35492049b09f9b57eb18ad5d6ce63
[ "MIT" ]
null
null
null
from .multiarmedbandit import MultiArmedBandit from .eps_greedy_constant_stepsize import EpsilonGreedyConstantStepsize from .greedy_constant_stepsize import GreedyConstantStepsize from .epsilon_greedy_average_step import EpsilonGreedyAverageStep from .greedy_average_step import GreedyAverageStep from .greedy_bayes_upd...
38.090909
71
0.909308
0
0
0
0
0
0
0
0
0
0
f8f43d95779ee26635e6e7c26bda70278bc13afd
3,915
py
Python
tests/queries/test_query.py
txf626/django
95bda03f2da15172cf342f13ba8a77c007b63fbb
[ "PSF-2.0", "BSD-3-Clause" ]
2
2019-02-28T12:38:32.000Z
2019-09-30T08:08:16.000Z
tests/queries/test_query.py
Scheldon/django
11a9017179812198a12a2fc19610262a549aa46e
[ "PSF-2.0", "BSD-3-Clause" ]
57
2018-10-08T12:37:30.000Z
2018-10-08T17:39:26.000Z
tests/queries/test_query.py
Scheldon/django
11a9017179812198a12a2fc19610262a549aa46e
[ "PSF-2.0", "BSD-3-Clause" ]
1
2021-06-21T07:51:09.000Z
2021-06-21T07:51:09.000Z
from datetime import datetime from django.core.exceptions import FieldError from django.db.models import CharField, F, Q from django.db.models.expressions import SimpleCol from django.db.models.fields.related_lookups import RelatedIsNull from django.db.models.functions import Lower from django.db.models.lookups import...
41.648936
81
0.696552
3,336
0.852107
0
0
0
0
0
0
162
0.041379
f8f4457783432480005e18ff932b887d871f9663
16,356
py
Python
src/matrix_game/matrix_game.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
26
2019-10-28T09:01:45.000Z
2021-09-20T08:56:12.000Z
src/matrix_game/matrix_game.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
1
2020-07-25T06:50:05.000Z
2020-07-25T06:50:05.000Z
src/matrix_game/matrix_game.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
6
2019-12-18T12:02:57.000Z
2021-03-03T13:15:47.000Z
# This notebook implements a proof-of-principle for # Multi-Agent Common Knowledge Reinforcement Learning (MACKRL) # The entire notebook can be executed online, no need to download anything # http://pytorch.org/ from itertools import chain import torch import torch.nn.functional as F from torch.multiprocessing import...
38.037209
145
0.547811
0
0
0
0
0
0
0
0
2,504
0.153094
f8f4dcd9fb78ee1924b9f50173ac949a710abcfd
3,190
py
Python
testcases/school_bus.py
wilsonsuen/av-testing
a6967b4cb4e4ad6b10d041ffd3dc62188fccad81
[ "MIT" ]
null
null
null
testcases/school_bus.py
wilsonsuen/av-testing
a6967b4cb4e4ad6b10d041ffd3dc62188fccad81
[ "MIT" ]
null
null
null
testcases/school_bus.py
wilsonsuen/av-testing
a6967b4cb4e4ad6b10d041ffd3dc62188fccad81
[ "MIT" ]
null
null
null
import sys import os import glob import json from robot import rebot from robot.api import TestSuite sys.path.append(os.path.join(os.path.dirname(__file__), '..')) if __name__ == "__main__": main_suite = TestSuite('School Bus Scenario') main_suite.resource.imports.library('lib/simulation.py') testcas...
91.142857
1,951
0.754232
0
0
0
0
0
0
0
0
2,307
0.723197
f8f623d0cb63c4b268f633b3bf392a5401ce666a
2,962
py
Python
pr_consistency/2.find_pr_branches.py
adrn/astropy-tools
c26a5e4cdf8735976375dd2b77de797a7723bcd9
[ "BSD-3-Clause" ]
10
2018-02-24T15:06:39.000Z
2020-11-24T15:28:35.000Z
pr_consistency/2.find_pr_branches.py
adrn/astropy-tools
c26a5e4cdf8735976375dd2b77de797a7723bcd9
[ "BSD-3-Clause" ]
63
2018-01-22T20:12:47.000Z
2021-07-10T15:42:58.000Z
pr_consistency/2.find_pr_branches.py
adrn/astropy-tools
c26a5e4cdf8735976375dd2b77de797a7723bcd9
[ "BSD-3-Clause" ]
16
2018-02-25T16:32:51.000Z
2021-07-10T13:33:46.000Z
# The purpose of this script is to check all the maintenance branches of the # given repository, and find which pull requests are included in which # branches. The output is a JSON file that contains for each pull request the # list of all branches in which it is included. We look specifically for the # message "Merge ...
33.659091
102
0.686698
0
0
0
0
0
0
0
0
1,503
0.507427
f8f63abc9f6d14490126b79f424fe99cf745e819
603
py
Python
agents/solo_q_agents/q_agent_test/aux.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-06-03T20:03:50.000Z
2021-06-03T20:03:50.000Z
agents/solo_q_agents/q_agent_test/aux.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
null
null
null
agents/solo_q_agents/q_agent_test/aux.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-03-14T01:22:33.000Z
2021-03-14T01:22:33.000Z
from datetime import datetime as dt import os import numpy as np import settings def mkdir(): now = dt.now().replace(second=0, microsecond=0) name_dir = "q_agent_train_" + now.strftime("%Y-%m-%d_%H:%M:%S") path = os.path.join(settings.MODELS_DIR, name_dir) try: os.mkdir(path) except File...
24.12
67
0.665008
0
0
0
0
0
0
0
0
39
0.064677
f8f65ce2aa90b1532e983805cc84833de1433b1e
1,316
py
Python
Python38/Lib/site-packages/PyInstaller/hooks/hook-PyQt4.py
AXFS-H/Windows10Debloater
ab5f8a8a8fb065bb40b7ddbd1df75563d8b8d13e
[ "MIT" ]
5
2020-08-24T23:29:58.000Z
2022-02-07T19:58:07.000Z
PyInstaller/hooks/hook-PyQt4.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
12
2020-02-15T04:04:55.000Z
2022-02-18T20:29:49.000Z
PyInstaller/hooks/hook-PyQt4.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
2
2020-08-24T23:30:06.000Z
2021-12-23T18:23:38.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2013-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
35.567568
86
0.670213
0
0
0
0
0
0
0
0
929
0.705927
f8f694a754b9e6ecfc7a48eb472c8ee96d237a42
278
py
Python
timeserio/utils/functools.py
ig248/timeserio
afc2a953a83e763418d417059493ef13a17d349c
[ "MIT" ]
63
2019-07-12T17:16:27.000Z
2022-02-22T11:06:50.000Z
timeserio/utils/functools.py
ig248/timeserio
afc2a953a83e763418d417059493ef13a17d349c
[ "MIT" ]
34
2019-07-30T11:52:09.000Z
2022-03-28T12:42:02.000Z
timeserio/utils/functools.py
ig248/timeserio
afc2a953a83e763418d417059493ef13a17d349c
[ "MIT" ]
12
2019-08-14T05:51:22.000Z
2021-03-15T09:34:15.000Z
import inspect def get_default_args(func): """Get default arguments of a function. """ signature = inspect.signature(func) return { k: v.default for k, v in signature.parameters.items() if v.default is not inspect.Parameter.empty }
21.384615
51
0.636691
0
0
0
0
0
0
0
0
47
0.169065
f8f72bfabd477794319287090180fb8cb1c3008e
2,059
py
Python
Sec_10_expr_lambdas_fun_integradas/a_lambdas.py
PauloAlexSilva/Python
690913cdcfd8bde52d9ddd15e3c838e6aef27730
[ "MIT" ]
null
null
null
Sec_10_expr_lambdas_fun_integradas/a_lambdas.py
PauloAlexSilva/Python
690913cdcfd8bde52d9ddd15e3c838e6aef27730
[ "MIT" ]
null
null
null
Sec_10_expr_lambdas_fun_integradas/a_lambdas.py
PauloAlexSilva/Python
690913cdcfd8bde52d9ddd15e3c838e6aef27730
[ "MIT" ]
null
null
null
""" Utilizando Lambdas Conhecidas por Expressões Lambdas, ou simplesmente Lambdas, são funções sem nome, ou seja, funções anónimas. # Função em Python def funcao(x): return 3 * x + 1 print(funcao(4)) print(funcao(7)) # Expressão Lambda lambda x: 3 * x + 1 # Como utlizar a expressão lambda? calc = lambda x...
20.79798
94
0.641088
0
0
0
0
0
0
0
0
1,853
0.884909
f8f83df34dfaf5ae52ea9e532bb035a4e1cce478
825
py
Python
ex085.py
EduotavioFonseca/ProgramasPython
8e0ef5f6f4239d1fe52321f8795b6573f6ff5130
[ "MIT" ]
null
null
null
ex085.py
EduotavioFonseca/ProgramasPython
8e0ef5f6f4239d1fe52321f8795b6573f6ff5130
[ "MIT" ]
null
null
null
ex085.py
EduotavioFonseca/ProgramasPython
8e0ef5f6f4239d1fe52321f8795b6573f6ff5130
[ "MIT" ]
null
null
null
# Lista dentro de dicionário campeonato = dict() gol = [] aux = 0 campeonato['Jogador'] = str(input('Digite o nome do jogador: ')) print() partidas = int(input('Quantas partidas ele jogou? ')) print() for i in range(0, partidas): aux = int(input(f'Quantos gols na partida {i + 1}? ')) gol.append(aux) ...
25.78125
71
0.613333
0
0
0
0
0
0
0
0
345
0.417676
f8f8dae5df2040a52619a0f46630de1b8ffbe445
533
py
Python
heat/initial_data.py
kjetil-lye/ismo_heat
09776b740a0543e270417af653d2a047c94f1b50
[ "MIT" ]
null
null
null
heat/initial_data.py
kjetil-lye/ismo_heat
09776b740a0543e270417af653d2a047c94f1b50
[ "MIT" ]
6
2020-11-13T19:04:16.000Z
2022-02-10T02:10:50.000Z
heat/initial_data.py
kjetil-lye/ismo_heat
09776b740a0543e270417af653d2a047c94f1b50
[ "MIT" ]
1
2021-03-26T06:53:19.000Z
2021-03-26T06:53:19.000Z
import numpy class InitialDataControlSine: def __init__(self, coefficients): self.coefficients = coefficients def __call__(self, x): u = numpy.zeros_like(x) for k, coefficient in enumerate(self.coefficients): u += coefficient * numpy.sin(k * numpy.pi * x) return...
28.052632
85
0.613508
517
0.969981
0
0
0
0
0
0
0
0
f8fa0708043799c2510940867111d04480ef484c
5,030
py
Python
explore/scripts/get_repos_creationhistory.py
john18/uccross.github.io
72cd88c7310ab1503467fba27add2338cf57d8f7
[ "MIT" ]
12
2019-03-02T06:42:37.000Z
2022-03-01T03:59:08.000Z
explore/scripts/get_repos_creationhistory.py
john18/uccross.github.io
72cd88c7310ab1503467fba27add2338cf57d8f7
[ "MIT" ]
6
2020-04-14T21:22:36.000Z
2022-01-19T23:41:35.000Z
explore/scripts/get_repos_creationhistory.py
john18/uccross.github.io
72cd88c7310ab1503467fba27add2338cf57d8f7
[ "MIT" ]
29
2017-11-08T19:39:20.000Z
2022-03-17T18:05:29.000Z
import helpers import json import re datfilepath = "../github-data/labRepos_CreationHistory.json" allData = {} # Check for and read existing data file allData = helpers.read_existing(datfilepath) # Read repo info data file (to use as repo list) dataObj = helpers.read_json("../github-data/labReposInfo.json") # Popul...
31.4375
110
0.695626
0
0
0
0
0
0
0
0
2,255
0.44831
f8fb454d7a74c617f9f1467386eb93a2fe60e4db
341
py
Python
examples/test/runMe.py
tomaszjonak/PBL
738b95da52cd59dcacb0b9dc244ca1713b0264ac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/test/runMe.py
tomaszjonak/PBL
738b95da52cd59dcacb0b9dc244ca1713b0264ac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/test/runMe.py
tomaszjonak/PBL
738b95da52cd59dcacb0b9dc244ca1713b0264ac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#! /usr/bin/env python2.7 from __future__ import print_function import sys sys.path.append("../../include") import PyBool_public_interface as Bool if __name__ == "__main__": expr = Bool.parse_std("input.txt") expr = expr["main_expr"] expr = Bool.simplify(expr) expr = Bool.nne(expr) print(Bo...
16.238095
38
0.683284
0
0
0
0
0
0
0
0
72
0.211144
f8fcc7a6b82e6b901e4e3c720b6e0e1f082a90c0
24,425
py
Python
calculator.py
rupen4678/botique_management_system
9b7807cc28bb15e024093d6161a8fef96ce7e291
[ "Apache-2.0" ]
null
null
null
calculator.py
rupen4678/botique_management_system
9b7807cc28bb15e024093d6161a8fef96ce7e291
[ "Apache-2.0" ]
null
null
null
calculator.py
rupen4678/botique_management_system
9b7807cc28bb15e024093d6161a8fef96ce7e291
[ "Apache-2.0" ]
null
null
null
from tkinter import * import random import time from PIL import Image from datetime import datetime from tinydb import * import os import pickle #from database1 import * from random import randint root = Tk() root.geometry("1600x800+0+0") root.title("Suman_dai_ko_DHOKAN") root.configure(bg="goldenrod4") text_Input =...
34.401408
155
0.600368
492
0.020143
0
0
0
0
0
0
12,073
0.494289
f8feca35fdbbdb7ba2119b9d7d1e1e21456081ac
18,656
py
Python
mmdet/models/anchor_heads/embedding_nnms_head_v2_limited.py
Lanselott/mmdetection
03ce0a87f4d52f4adf4f78fd39ad30b2da394376
[ "Apache-2.0" ]
null
null
null
mmdet/models/anchor_heads/embedding_nnms_head_v2_limited.py
Lanselott/mmdetection
03ce0a87f4d52f4adf4f78fd39ad30b2da394376
[ "Apache-2.0" ]
null
null
null
mmdet/models/anchor_heads/embedding_nnms_head_v2_limited.py
Lanselott/mmdetection
03ce0a87f4d52f4adf4f78fd39ad30b2da394376
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from mmcv.cnn import normal_init from mmdet.core import distance2bbox, force_fp32, multi_apply, multiclass_nms, bbox_overlaps from ..builder import build_loss from ..registry import HEADS from ..utils import ConvModule, Scale, bias_init_with_prob from IPython import embed INF = 1e8 ...
40.468547
125
0.572684
18,311
0.981507
0
0
18,334
0.98274
0
0
1,776
0.095197
f8ff164c7b99d263ef5622eb983cd4b6a79fdda1
863
py
Python
firefly_flask/app/models.py
Haehnchen/trivago-firefly
ee92450fda42059f1865971849dc234a42dc9027
[ "MIT" ]
null
null
null
firefly_flask/app/models.py
Haehnchen/trivago-firefly
ee92450fda42059f1865971849dc234a42dc9027
[ "MIT" ]
null
null
null
firefly_flask/app/models.py
Haehnchen/trivago-firefly
ee92450fda42059f1865971849dc234a42dc9027
[ "MIT" ]
null
null
null
from . import db from sqlalchemy.dialects.mysql import LONGTEXT class Search(db.Model): __tablename__ = 'spots' id = db.Column(db.Integer, primary_key=True) search_string = db.Column(db.Text) lat = db.Column(db.Float) lon = db.Column(db.Float) location_name = db.Column(db.Text) json_result ...
28.766667
66
0.682503
792
0.917729
0
0
0
0
0
0
15
0.017381
f8ffdfd391593d89205af0a89c79433669635ec2
471
py
Python
plotly_basic_plots/line_chart2.py
HarishOsthe/Plotly_Dash_Practice_Codes
ca709509d27803a4d727b3986d4473cdd71a41a6
[ "MIT" ]
null
null
null
plotly_basic_plots/line_chart2.py
HarishOsthe/Plotly_Dash_Practice_Codes
ca709509d27803a4d727b3986d4473cdd71a41a6
[ "MIT" ]
null
null
null
plotly_basic_plots/line_chart2.py
HarishOsthe/Plotly_Dash_Practice_Codes
ca709509d27803a4d727b3986d4473cdd71a41a6
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import plotly.offline as pyo import plotly.graph_objs as go df= pd.read_csv("Data/nst-est2017-alldata.csv") df2=df[df["DIVISION"] == '1'] df2.set_index("NAME",inplace=True) list_of_pop_col=[col for col in df2.columns if col.startswith('POP')] df2=df2[list_of_pop_col] data=[go....
24.789474
69
0.66879
0
0
0
0
0
0
0
0
61
0.129512
f8fff1c2d03cf1ef4aae436dd124c9505b06ab95
21,993
py
Python
tests/test_markup.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
4,973
2015-01-03T15:44:00.000Z
2022-03-31T03:11:51.000Z
tests/test_markup.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
7,850
2015-01-02T08:09:25.000Z
2022-03-31T18:57:40.000Z
tests/test_markup.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
2,179
2015-01-03T15:26:53.000Z
2022-03-31T12:22:44.000Z
""" test_markup ~~~~~~~~~~~ Test various Sphinx-specific markup extensions. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import pytest from docutils import frontend, nodes, utils from docutils.parsers.rst import Parser as ...
35.702922
111
0.60592
288
0.013081
556
0.025253
16,858
0.765681
0
0
8,698
0.395058
5d018e12b1c73bed5cd0c0150226e9cf4fc0779d
50,253
py
Python
dev/tools/leveleditor/direct/showbase/ContainerLeakDetector.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
dev/tools/leveleditor/direct/showbase/ContainerLeakDetector.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
dev/tools/leveleditor/direct/showbase/ContainerLeakDetector.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from pandac.PandaModules import PStatCollector from direct.directnotify.DirectNotifyGlobal import directNotify from direct.showbase.PythonUtil import Queue, invertDictLossless, makeFlywheelGen from direct.showbase.PythonUtil import itype, serialNum, safeRepr, fastRepr from direct.showbase.Job import Job import types, w...
44.159051
138
0.528804
48,379
0.962709
27,510
0.54743
391
0.007781
0
0
11,212
0.223111
5d02f65a15a35f3f5f2205ff5270eaa60e785026
12,032
py
Python
virtual/lib/python3.6/site-packages/sqlalchemy/sql/default_comparator.py
mzazakeith/flask-blog
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
[ "MIT" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
virtual/lib/python3.6/site-packages/sqlalchemy/sql/default_comparator.py
mzazakeith/flask-blog
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
[ "MIT" ]
32
2018-05-01T05:24:43.000Z
2022-03-11T23:20:39.000Z
lib/python2.7/site-packages/sqlalchemy/sql/default_comparator.py
anish03/weather-dash
d517fa9da9028d1fc5d8fd71d77cee829ddee87b
[ "MIT" ]
53
2019-03-12T16:50:21.000Z
2022-03-15T23:16:18.000Z
# sql/default_comparator.py # Copyright (C) 2005-2018 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Default implementation of SQL comparison operations. """ from .. impor...
36.907975
79
0.593251
0
0
0
0
0
0
0
0
1,976
0.164229
5d0300b0501feb02f7f7fdb3d0f6bb946c42313a
2,153
py
Python
recipes/serializers.py
klharshini/recipe-django-api
7ceb00ab26f6e0d19196519ece297d2f4d616a5d
[ "Apache-2.0" ]
null
null
null
recipes/serializers.py
klharshini/recipe-django-api
7ceb00ab26f6e0d19196519ece297d2f4d616a5d
[ "Apache-2.0" ]
3
2020-06-05T21:58:22.000Z
2021-06-10T21:40:50.000Z
recipes/serializers.py
klharshini/recipe-django-api
7ceb00ab26f6e0d19196519ece297d2f4d616a5d
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.validators import UnicodeUsernameValidator from rest_framework import serializers from django.contrib.auth.models import User from recipes.models import Recipe, Ingredient, Step class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ("usernam...
33.123077
69
0.672085
1,937
0.899675
0
0
0
0
0
0
167
0.077566
5d0375507c268370ae9c58f1a6b3dd509a4f4999
1,652
py
Python
tests/test_model/test_temporal_regression_head.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_temporal_regression_head.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_temporal_regression_head.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest import torch from mmpose.models import TemporalRegressionHead def test_temporal_regression_head(): """Test temporal head.""" head = TemporalRegressionHead( in_channels=1024, num_joints=17, loss_keypoint=dict(type='MPJPELoss', use_target_wei...
28.982456
70
0.625303
0
0
0
0
0
0
0
0
371
0.224576
5d03e84b9fba295a1596df9171a5466ae68073d3
415
py
Python
django_orm/sports_orm/leagues/migrations/0002_auto_20161031_1620.py
gfhuertac/coding_dojo_python
4d17bb63fb2b9669216a0f60326d4a4b9055af7e
[ "MIT" ]
null
null
null
django_orm/sports_orm/leagues/migrations/0002_auto_20161031_1620.py
gfhuertac/coding_dojo_python
4d17bb63fb2b9669216a0f60326d4a4b9055af7e
[ "MIT" ]
6
2020-06-06T01:50:21.000Z
2022-02-10T11:33:02.000Z
django_orm/sports_orm/leagues/migrations/0002_auto_20161031_1620.py
gfhuertac/coding_dojo_python
4d17bb63fb2b9669216a0f60326d4a4b9055af7e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-31 23:20 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('leagues', '0001_initial'), ] operations = [ migrations.RenameField( mod...
19.761905
48
0.592771
265
0.638554
0
0
0
0
0
0
116
0.279518
5d04161d9491b3b2bccc61b8d346c61f251d0a5b
1,774
py
Python
353-Design-Snake-Game/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
353-Design-Snake-Game/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
353-Design-Snake-Game/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
class SnakeGame(object): def __init__(self, width,height,food): """ Initialize your data structure here. @param width - screen width @param height - screen height @param food - A list of food positions E.g food = [[1,1], [1,0]] means the first food is positioned at ...
35.48
102
0.567644
1,636
0.92221
0
0
0
0
0
0
830
0.467869
5d046e78f1ff28c88e9dd3fba255e0d381257af6
975
py
Python
scripts/register_sam.py
jessebrennan/azul
65970a0947f38fae439a3bf8fd960d351787b7a3
[ "Apache-2.0" ]
null
null
null
scripts/register_sam.py
jessebrennan/azul
65970a0947f38fae439a3bf8fd960d351787b7a3
[ "Apache-2.0" ]
null
null
null
scripts/register_sam.py
jessebrennan/azul
65970a0947f38fae439a3bf8fd960d351787b7a3
[ "Apache-2.0" ]
null
null
null
from itertools import ( chain, ) import logging from azul import ( config, require, ) from azul.logging import ( configure_script_logging, ) from azul.terra import ( TDRClient, TDRSourceName, ) log = logging.getLogger(__name__) def main(): configure_script_logging(log) tdr = TDRClien...
22.159091
78
0.644103
0
0
0
0
0
0
0
0
94
0.09641
5d0497316627f4c13c17f9d3db674195ece95272
3,584
py
Python
altitude/players.py
StamKaly/altitude-mod-foundation
403befeba7d0e2e6afe3897081cd3e01f438e3d5
[ "MIT" ]
1
2018-07-11T16:55:49.000Z
2018-07-11T16:55:49.000Z
altitude/players.py
StamKaly/altitude-mod-foundation
403befeba7d0e2e6afe3897081cd3e01f438e3d5
[ "MIT" ]
null
null
null
altitude/players.py
StamKaly/altitude-mod-foundation
403befeba7d0e2e6afe3897081cd3e01f438e3d5
[ "MIT" ]
null
null
null
class Player: def __init__(self, nickname, vapor_id, player_id, ip): self.nickname = nickname self.vapor_id = vapor_id self.player_id = player_id self.ip = ip self.not_joined = True self.loads_map = True self.joined_after_change_map = True class Players: ...
35.84
88
0.626395
3,580
0.998884
0
0
0
0
0
0
24
0.006696
5d0642e93e7a866ace737fc8f40342ddac2993c4
17,835
py
Python
dsn/editor/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
2
2019-04-30T05:42:05.000Z
2019-08-11T19:17:20.000Z
dsn/editor/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
null
null
null
dsn/editor/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
null
null
null
""" Tools to "play notes for the editor clef", which may be thought of as "executing editor commands". NOTE: in the below, we often connect notes together "manually", i.e. using NoteSlur(..., previous_hash). As an alternative, we could consider `nouts_for_notes`. """ from s_address import node_for_s_address, s_dfs f...
47.18254
120
0.691786
0
0
0
0
0
0
0
0
7,216
0.404598
5d06e71f9e23ea91aab0fd29960c633c1cc96c2f
636
py
Python
src/pytong/base.py
richtong/pytong
6ff07a1bdf1d5e2232bfc102cce2dd74783bb111
[ "MIT" ]
null
null
null
src/pytong/base.py
richtong/pytong
6ff07a1bdf1d5e2232bfc102cce2dd74783bb111
[ "MIT" ]
null
null
null
src/pytong/base.py
richtong/pytong
6ff07a1bdf1d5e2232bfc102cce2dd74783bb111
[ "MIT" ]
null
null
null
"""Base for all Classes. Base mainly includes the description fields """ import logging from typing import Optional from .log import Log # type: ignore class BaseLog: """ Set a base logging. Use this as the base class for all your work. This adds a logging root. """ def __init__(self, log_roo...
22.714286
75
0.610063
478
0.751572
0
0
0
0
0
0
264
0.415094
5d073e43082666b4fb7e947816cf1a811338dbe3
620
py
Python
subprocess-10.py
GuillaumeFalourd/poc-subprocess
8f014a709ac2e471092d4ea1f61f1a9ff65ff571
[ "Apache-2.0" ]
1
2021-12-08T12:58:14.000Z
2021-12-08T12:58:14.000Z
subprocess-10.py
GuillaumeFalourd/poc-subprocess
8f014a709ac2e471092d4ea1f61f1a9ff65ff571
[ "Apache-2.0" ]
null
null
null
subprocess-10.py
GuillaumeFalourd/poc-subprocess
8f014a709ac2e471092d4ea1f61f1a9ff65ff571
[ "Apache-2.0" ]
null
null
null
import subprocess import re programs = input('Separe the programs with a space: ').split() secure_pattern = '[\w\d]' for program in programs: if not re.match(secure_pattern, program): print("Sorry we can't check that program") continue process = subprocess. run( ['which', program],...
22.962963
65
0.63871
0
0
0
0
0
0
0
0
218
0.351613
5d0751ff55112db535e551765b215e8ad53a88d2
2,320
py
Python
authentication/socialaccount/forms.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
null
null
null
authentication/socialaccount/forms.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
4
2020-05-06T17:22:00.000Z
2021-12-13T20:43:30.000Z
authentication/socialaccount/forms.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
null
null
null
from __future__ import absolute_import from django import forms from authentication.account.forms import BaseSignupForm from . import app_settings, signals from .adapter import get_adapter from .models import SocialAccount class SignupForm(BaseSignupForm): def __init__(self, *args, **kwargs): self.soc...
35.692308
76
0.617241
2,088
0.9
0
0
0
0
0
0
103
0.044397
5d0792b2d66082b8e779a07e75899ce616d825f2
12,110
py
Python
pytheos/pytheos.py
nilsbeck/pytheos
de4f3a03330ddb28e68ddcaa7b4888ea9a25e238
[ "MIT" ]
null
null
null
pytheos/pytheos.py
nilsbeck/pytheos
de4f3a03330ddb28e68ddcaa7b4888ea9a25e238
[ "MIT" ]
1
2021-10-30T16:31:41.000Z
2021-10-30T16:31:41.000Z
pytheos/pytheos.py
nilsbeck/pytheos
de4f3a03330ddb28e68ddcaa7b4888ea9a25e238
[ "MIT" ]
1
2021-10-30T14:24:58.000Z
2021-10-30T14:24:58.000Z
#!/usr/bin/env python """ Provides the primary interface into the library """ from __future__ import annotations import asyncio import logging from typing import Callable, Optional, Union from . import utils from . import controllers from .networking.connection import Connection from .networking.types import SSDPRes...
31.952507
108
0.650372
11,129
0.918993
0
0
728
0.060116
5,666
0.467878
4,080
0.336912
5d0806edbac94be1802c588fc12c4cc3d74c7198
1,673
py
Python
source/188-Lista_celulares.py
FelixLuciano/DesSoft-2020.2
a44063d63778329f1e1266881f20f7954ecb528b
[ "MIT" ]
null
null
null
source/188-Lista_celulares.py
FelixLuciano/DesSoft-2020.2
a44063d63778329f1e1266881f20f7954ecb528b
[ "MIT" ]
null
null
null
source/188-Lista_celulares.py
FelixLuciano/DesSoft-2020.2
a44063d63778329f1e1266881f20f7954ecb528b
[ "MIT" ]
null
null
null
# Lista celulares # O departamento de marketing da sua empresa está interessado em obter apenas os números de telefone celular, separando-os dos telefones fixos. Para simplificar esta operação serão considerados números de celular apenas aqueles que, após o código de área, iniciarem com o dígito adicional 9. # Você rec...
152.090909
409
0.775254
0
0
0
0
0
0
0
0
1,712
0.994193
5d0889f3f4e69f4a0ebb469755c280704d4811e2
326
py
Python
test_modules/language_dictionary_test.py
1goodday/Google-Dictionary-Pronunciation.ankiaddon
35837802e41d81733aec656fbf4ad1c8e4aeec5e
[ "MIT" ]
1
2021-10-02T13:16:29.000Z
2021-10-02T13:16:29.000Z
test_modules/language_dictionary_test.py
1goodday/Google-Dictionary-Pronunciation.ankiaddon
35837802e41d81733aec656fbf4ad1c8e4aeec5e
[ "MIT" ]
2
2021-09-08T14:08:33.000Z
2021-10-10T04:35:08.000Z
test_modules/language_dictionary_test.py
1goodday/Google-Dictionary.ankiaddon
35837802e41d81733aec656fbf4ad1c8e4aeec5e
[ "MIT" ]
null
null
null
import csv _iso_639_1_codes_file = open("files/ISO-639-1_Codes.csv", mode='r') _iso_639_1_codes_dictreader = csv.DictReader(_iso_639_1_codes_file) _iso_639_1_codes_dict: dict = {} for _row in _iso_639_1_codes_dictreader: _iso_639_1_codes_dict[_row['ISO-639-1 Code']] = _row['Language'] print(str(_iso_639_1_codes_...
32.6
68
0.794479
0
0
0
0
0
0
0
0
56
0.171779
5d090b8cc45daaa469bff1113230ad77ae43f4b6
9,596
py
Python
tianshou/data/collector.py
DZ9/tianshou
04208e6cce722b7a2353d9a5f4d6f0fc05797d67
[ "MIT" ]
1
2020-04-01T04:47:39.000Z
2020-04-01T04:47:39.000Z
tianshou/data/collector.py
TommeyChang/tianshou
4f843d3f51789f488169131a5b5decba8bab2b31
[ "MIT" ]
null
null
null
tianshou/data/collector.py
TommeyChang/tianshou
4f843d3f51789f488169131a5b5decba8bab2b31
[ "MIT" ]
1
2022-01-23T10:52:48.000Z
2022-01-23T10:52:48.000Z
import time import torch import warnings import numpy as np from tianshou.env import BaseVectorEnv from tianshou.data import Batch, ReplayBuffer,\ ListReplayBuffer from tianshou.utils import MovAvg class Collector(object): """docstring for Collector""" def __init__(self, policy, env, buffer=None, stat_si...
40.150628
79
0.492393
9,391
0.978637
0
0
0
0
0
0
585
0.060963
5d0a9e073091c730b7a6a4929db2b2500c65ff5d
1,591
py
Python
drink_partners/partners/tests/views/test_search_partner_view.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
null
null
null
drink_partners/partners/tests/views/test_search_partner_view.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
22
2020-05-02T19:32:24.000Z
2021-10-17T21:19:46.000Z
drink_partners/partners/tests/views/test_search_partner_view.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
null
null
null
from drink_partners.contrib.samples import partner_bar_legal class TestSearchPartner: async def test_should_return_bad_request_for_str_coordinates( self, client, partner_search_with_str_coordinates_url ): async with client.get(partner_search_with_str_coordinates_url) as respon...
31.82
90
0.649906
1,527
0.959774
0
0
0
0
1,485
0.933375
218
0.137021
5d0c13bd9ead504a51ba033deca97415ff355734
17,858
py
Python
Titanic/class_create_model_of_logistic_regression.py
ysh329/Titanic-Machine-Learning-from-Disaster
d2ba330625e40b648b2946a8ca221198af148368
[ "MIT" ]
1
2018-07-23T08:41:02.000Z
2018-07-23T08:41:02.000Z
Titanic/class_create_model_of_logistic_regression.py
ysh329/Titanic-Machine-Learning-from-Disaster
d2ba330625e40b648b2946a8ca221198af148368
[ "MIT" ]
null
null
null
Titanic/class_create_model_of_logistic_regression.py
ysh329/Titanic-Machine-Learning-from-Disaster
d2ba330625e40b648b2946a8ca221198af148368
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # !/usr/bin/python ################################### PART0 DESCRIPTION ################################# # Filename: class_create_model_of_logistic_regression.py # Description: # # Author: Shuai Yuan # E-mail: ysh329@sina.com # Create: 2016-01-23 23:32:49 # Last: __author__ = 'yuens' ######...
48.005376
177
0.57302
16,999
0.951898
0
0
16,823
0.942043
0
0
4,471
0.250364
5d0d63268d357d52fa0b7327baa9d61702e3b1cd
3,341
py
Python
mjecv/io/base.py
mje-nz/mjecv
9a02c005a0abc7d21594f65c348cfe5185c90184
[ "MIT" ]
null
null
null
mjecv/io/base.py
mje-nz/mjecv
9a02c005a0abc7d21594f65c348cfe5185c90184
[ "MIT" ]
null
null
null
mjecv/io/base.py
mje-nz/mjecv
9a02c005a0abc7d21594f65c348cfe5185c90184
[ "MIT" ]
null
null
null
import multiprocessing from typing import List, Optional import numpy as np from ..util import dill_for_apply class ImageSequenceWriter: def __init__(self, pattern, writer, *, max_index=None): if type(pattern) is not str: raise ValueError("Pattern must be string") if pattern.format(1...
33.079208
86
0.609398
3,223
0.964681
0
0
238
0.071236
0
0
647
0.193655
5d0f2e44cd4703366dc6065304ee5f71411d41c4
1,495
py
Python
377_combination_sum_iv.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
377_combination_sum_iv.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
377_combination_sum_iv.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# 377 Combination Sum IV # Given an integer array with all positive numbers and no duplicates, # find the number of possible combinations that add up to a positive integer target. # # Example: # # nums = [1, 2, 3] # target = 4 # # The possible combination ways are: # (1, 1, 1, 1) # (1, 1, 2) # (1, 2, 1) # (1, 3) # (2,...
24.508197
84
0.535786
810
0.541806
0
0
0
0
0
0
772
0.516388
5d102888dd921effe96e5fc388b2a1b8ea50b383
3,440
py
Python
nvidia-texture-tools/conanfile.py
koeleck/conan-packages
da43e82c2444e934e69a38e524998d028f8edcc3
[ "Unlicense" ]
null
null
null
nvidia-texture-tools/conanfile.py
koeleck/conan-packages
da43e82c2444e934e69a38e524998d028f8edcc3
[ "Unlicense" ]
null
null
null
nvidia-texture-tools/conanfile.py
koeleck/conan-packages
da43e82c2444e934e69a38e524998d028f8edcc3
[ "Unlicense" ]
null
null
null
from conans import ConanFile, CMake, tools import os STATIC_LIBS = ["nvtt", "squish", "rg_etc1", "nvimage", "bc6h", "posh", "bc7", "nvmath", "nvthread", "nvcore"] SHARED_LIBS = ["nvtt", "nvimage", "nvthread", "nvmath", "nvcore"] class NvidiatexturetoolsConan(ConanFile): name = "nvidia-texture-tools...
47.123288
184
0.627326
3,193
0.928198
0
0
0
0
0
0
996
0.289535
5d105ccb37935c70d4da4645c5743044452805b9
2,890
py
Python
train_args.py
MyWay/Create-Your-Own-Image-Classifier
70e5744084435af8a74b2cfe2098c25b0745c9af
[ "MIT" ]
null
null
null
train_args.py
MyWay/Create-Your-Own-Image-Classifier
70e5744084435af8a74b2cfe2098c25b0745c9af
[ "MIT" ]
null
null
null
train_args.py
MyWay/Create-Your-Own-Image-Classifier
70e5744084435af8a74b2cfe2098c25b0745c9af
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ train_args.py train_args.py command-line args. """ import argparse def get_args(): """ """ parser = argparse.ArgumentParser( description="This script lets you train and save your model.", usage="python3 train.py flowers/train --gpu --learning_rate 0.001 --epochs...
30.104167
112
0.450173
0
0
0
0
0
0
0
0
977
0.338062
5d12933f8b3900ae610ac625eadbf5cf407b20ba
1,483
py
Python
apps/payment/views.py
canadiyaman/thetask
0f1cea1d8eea4966138ef0bdc303a53e3511e57d
[ "RSA-MD" ]
null
null
null
apps/payment/views.py
canadiyaman/thetask
0f1cea1d8eea4966138ef0bdc303a53e3511e57d
[ "RSA-MD" ]
null
null
null
apps/payment/views.py
canadiyaman/thetask
0f1cea1d8eea4966138ef0bdc303a53e3511e57d
[ "RSA-MD" ]
null
null
null
from django.http import HttpResponseRedirect from django.conf import settings from django.views.generic import TemplateView from apps.payment.models import PaymentLog from apps.payment.stripe import get_token, get_payment_charge from apps.subscription.views import start_subscription class ChargeView(TemplateView): ...
34.488372
106
0.653405
1,112
0.749831
0
0
0
0
0
0
165
0.111261
5d12b1edae2081b00e12d5653d2750d5567eb062
211
py
Python
users/apps.py
srinidhibhat/booknotes
666f92fac309b97c13b79e91f5493220f934cab3
[ "MIT" ]
null
null
null
users/apps.py
srinidhibhat/booknotes
666f92fac309b97c13b79e91f5493220f934cab3
[ "MIT" ]
2
2020-08-11T07:23:21.000Z
2020-08-11T07:26:41.000Z
users/apps.py
srinidhibhat/booknotes-DjangoProject
666f92fac309b97c13b79e91f5493220f934cab3
[ "MIT" ]
null
null
null
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'users' # below piece of code is needed for automatic profile creation for user def ready(self): import users.signals
23.444444
75
0.71564
175
0.829384
0
0
0
0
0
0
78
0.369668
5d12e645166a3997ff332b7bb734f77bb3785c93
1,407
py
Python
secure_data_store/cli.py
HumanBrainProject/secure-data-store
69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0
[ "MIT" ]
1
2021-11-23T12:26:01.000Z
2021-11-23T12:26:01.000Z
secure_data_store/cli.py
HumanBrainProject/secure-data-store
69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0
[ "MIT" ]
null
null
null
secure_data_store/cli.py
HumanBrainProject/secure-data-store
69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0
[ "MIT" ]
1
2020-05-21T15:51:44.000Z
2020-05-21T15:51:44.000Z
# -*- coding: utf-8 -*- """Console script for secure_data_store.""" import click from . import secure_data_store as sds CONFIG='~/.sdsrc' @click.group() def main(): """Wrapper for GoCryptFS""" @main.command() @click.argument('name') @click.option('--config', help='Path to config file', default='~/.sdsrc') def cr...
29.3125
88
0.663113
0
0
0
0
1,252
0.889837
0
0
439
0.312011
5d13dcd7f99f525058d1ada523c294f362a0d8b9
1,052
py
Python
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/graph/Node.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
1
2019-04-24T13:32:23.000Z
2019-04-24T13:32:23.000Z
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/graph/Node.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/graph/Node.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2003 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~~~~~~~~...
19.849057
82
0.429658
471
0.447719
0
0
0
0
0
0
543
0.51616
5d13e82b9800d2ed9d73368f30bea490d35c562b
3,522
py
Python
cairis/gui/RiskScatterPanel.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
cairis/gui/RiskScatterPanel.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
cairis/gui/RiskScatterPanel.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
33.865385
141
0.70017
1,969
0.559057
0
0
0
0
0
0
1,014
0.287905
5d147935a791e2ef09a425d200ac60697365562a
7,380
py
Python
sdk/python/pulumi_azure/containerservice/get_registry.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/containerservice/get_registry.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/containerservice/get_registry.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
36.716418
215
0.65813
5,361
0.726423
537
0.072764
4,745
0.642954
0
0
2,639
0.357588
5d14d6320ca92dcf32c70f780204293a845032e6
21,539
py
Python
contrib/memcache_whisper.py
TimWhalen/graphite-web
e150af45e01d01141a8767ec0597e218105b9914
[ "Apache-2.0" ]
1
2020-01-23T16:25:50.000Z
2020-01-23T16:25:50.000Z
contrib/memcache_whisper.py
TimWhalen/graphite-web
e150af45e01d01141a8767ec0597e218105b9914
[ "Apache-2.0" ]
2
2016-07-28T20:55:46.000Z
2016-08-02T13:59:28.000Z
contrib/memcache_whisper.py
TimWhalen/graphite-web
e150af45e01d01141a8767ec0597e218105b9914
[ "Apache-2.0" ]
1
2020-03-05T06:50:02.000Z
2020-03-05T06:50:02.000Z
#!/usr/bin/env python # Copyright 2008 Orbitz WorldWide # # 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 ...
40.563089
160
0.720553
883
0.040995
0
0
0
0
0
0
7,743
0.359487
5d15eae6d6d420d8166df518e95a6f5df2ba41f1
2,619
py
Python
main.py
showtimesynergy/mojify
8c012730b9f56d6e7e2003e8db99669516f4e027
[ "BSD-2-Clause" ]
null
null
null
main.py
showtimesynergy/mojify
8c012730b9f56d6e7e2003e8db99669516f4e027
[ "BSD-2-Clause" ]
null
null
null
main.py
showtimesynergy/mojify
8c012730b9f56d6e7e2003e8db99669516f4e027
[ "BSD-2-Clause" ]
null
null
null
from PIL import Image import csv from ast import literal_eval as make_tuple from math import sqrt import argparse import os.path def load_img(image): # load an image as a PIL object im = Image.open(image).convert('RGBA') return im def color_distance(c_tuple1, c_tuple2): # calculate the color distanc...
29.426966
63
0.557083
0
0
0
0
0
0
0
0
328
0.125239
5d15ebcd4b1cb7692dfb4253406f6c027f0525d0
17,824
py
Python
venv/lib/python3.7/site-packages/Xlib/ext/xinput.py
umr-bot/sliding-puzzle-solver-bot
826532a426f343bcc66034b241a42b3bd864e07c
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/Xlib/ext/xinput.py
umr-bot/sliding-puzzle-solver-bot
826532a426f343bcc66034b241a42b3bd864e07c
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/Xlib/ext/xinput.py
umr-bot/sliding-puzzle-solver-bot
826532a426f343bcc66034b241a42b3bd864e07c
[ "MIT" ]
null
null
null
# Xlib.ext.xinput -- XInput extension module # # Copyright (C) 2012 Outpost Embedded, LLC # Forest Bond <forest.bond@rapidrollout.com> # # 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...
27.212214
96
0.601212
6,953
0.390092
0
0
0
0
0
0
3,363
0.188678
5d173dba73e014674031b329494a05e8bf83b546
24
py
Python
vel/notebook/__init__.py
tigerwlin/vel
00e4fbb7b612e888e2cbb5d8455146664638cd0b
[ "MIT" ]
273
2018-09-01T08:54:34.000Z
2022-02-02T13:22:51.000Z
vel/notebook/__init__.py
tigerwlin/vel
00e4fbb7b612e888e2cbb5d8455146664638cd0b
[ "MIT" ]
47
2018-08-17T11:27:08.000Z
2022-03-11T23:26:55.000Z
vel/notebook/__init__.py
tigerwlin/vel
00e4fbb7b612e888e2cbb5d8455146664638cd0b
[ "MIT" ]
37
2018-10-11T22:56:57.000Z
2020-10-06T19:53:05.000Z
from .loader import load
24
24
0.833333
0
0
0
0
0
0
0
0
0
0
5d17411291af35f334b84d9eb9a01839cc0b1a31
340
py
Python
YourJobAidApi/migrations/0019_remove_category_count_post.py
rayhanrock/django-yourjobaid-api
17751dac5a298998aeecf7a70b79792f8311b9b2
[ "MIT" ]
1
2020-07-08T10:57:37.000Z
2020-07-08T10:57:37.000Z
YourJobAidApi/migrations/0019_remove_category_count_post.py
rayhanrock/django-yourjobaid-api
17751dac5a298998aeecf7a70b79792f8311b9b2
[ "MIT" ]
6
2021-04-08T20:23:17.000Z
2021-09-22T18:58:16.000Z
YourJobAidApi/migrations/0019_remove_category_count_post.py
rayhanrock/django-yourjobaid-api
17751dac5a298998aeecf7a70b79792f8311b9b2
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-16 23:10 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('YourJobAidApi', '0018_category_count_post'), ] operations = [ migrations.RemoveField( model_name='category', name='count_post...
20
54
0.608824
255
0.75
0
0
0
0
0
0
110
0.323529
5d190891c7c8c6ae88bd8b11a4958d94ac97d775
129
py
Python
easyquant/login/__init__.py
CharlieZhao95/easy-quant
9df126433e27d92eced9b087e581b5fd66c5a400
[ "Apache-2.0" ]
null
null
null
easyquant/login/__init__.py
CharlieZhao95/easy-quant
9df126433e27d92eced9b087e581b5fd66c5a400
[ "Apache-2.0" ]
2
2022-01-26T15:50:37.000Z
2022-03-30T14:08:36.000Z
easyquant/login/__init__.py
CharlieZhao95/easy-quant
9df126433e27d92eced9b087e581b5fd66c5a400
[ "Apache-2.0" ]
null
null
null
# @Time : 2022/1/26 23:07 # @Author : zhaoyu # @Site : # @File : __init__.py.py # @Software: PyCharm # @Note : xx
21.5
29
0.527132
0
0
0
0
0
0
0
0
124
0.96124
5d1b794c29c7e14b547cb2e45a43996ab2eb188a
60,985
py
Python
tests/api/test_attributes.py
DowneyTung/saleor
50f299d8e276b594753ee439d9e1a212f85a91b1
[ "CC-BY-4.0" ]
19
2019-12-03T17:28:07.000Z
2021-09-10T21:30:52.000Z
tests/api/test_attributes.py
DowneyTung/saleor
50f299d8e276b594753ee439d9e1a212f85a91b1
[ "CC-BY-4.0" ]
51
2019-12-06T08:06:07.000Z
2021-05-06T02:10:50.000Z
tests/api/test_attributes.py
DowneyTung/saleor
50f299d8e276b594753ee439d9e1a212f85a91b1
[ "CC-BY-4.0" ]
20
2020-02-03T00:38:59.000Z
2022-01-03T13:07:52.000Z
from typing import Union from unittest import mock import graphene import pytest from django.core.exceptions import ValidationError from django.db.models import Q from django.template.defaultfilters import slugify from graphene.utils.str_converters import to_camel_case from saleor.core.taxes import zero_money from sa...
31.598446
88
0.649504
0
0
0
0
17,888
0.293318
0
0
20,212
0.331426
5d1c26b574f8d1aa48c37371f029724022116688
3,557
py
Python
3-photos/1-chromakey/app.py
rafacm/aws-serverless-workshop-innovator-island
3f982ef6f70d28dfdc4e1d19103c181609b06b08
[ "MIT-0" ]
1
2020-11-26T16:12:16.000Z
2020-11-26T16:12:16.000Z
3-photos/1-chromakey/app.py
rafacm/aws-serverless-workshop-innovator-island
3f982ef6f70d28dfdc4e1d19103c181609b06b08
[ "MIT-0" ]
null
null
null
3-photos/1-chromakey/app.py
rafacm/aws-serverless-workshop-innovator-island
3f982ef6f70d28dfdc4e1d19103c181609b06b08
[ "MIT-0" ]
1
2020-11-26T16:12:21.000Z
2020-11-26T16:12:21.000Z
import os import json import cv2 import logging import boto3 import botocore s3 = boto3.client('s3') logger = logging.getLogger() logger.setLevel(logging.INFO) def upload_file(file_name, bucket, object_name=None): """Upload a file to an S3 bucket :param file_name: File to upload :param bucket: Bucket to ...
30.663793
86
0.671633
0
0
0
0
0
0
0
0
1,240
0.348608
5d1d2183e311c349b4e6a54b6abedc9e76fcc8d1
323
py
Python
metrics/overflow.py
DEKHTIARJonathan/pyinstrument
cc4f3f6fc1b493d7cd058ecf41ad012e0030a512
[ "BSD-3-Clause" ]
1
2021-04-10T15:07:51.000Z
2021-04-10T15:07:51.000Z
metrics/overflow.py
DEKHTIARJonathan/pyinstrument
cc4f3f6fc1b493d7cd058ecf41ad012e0030a512
[ "BSD-3-Clause" ]
1
2022-02-28T02:48:43.000Z
2022-02-28T02:48:43.000Z
metrics/overflow.py
DEKHTIARJonathan/pyinstrument
cc4f3f6fc1b493d7cd058ecf41ad012e0030a512
[ "BSD-3-Clause" ]
1
2018-09-24T15:32:13.000Z
2018-09-24T15:32:13.000Z
from pyinstrument import Profiler p = Profiler(use_signal=False) p.start() def func(num): if num == 0: return b = 0 for x in range(1,100000): b += x return func(num - 1) func(900) p.stop() print(p.output_text()) with open('overflow_out.html', 'w') as f: f.write(p.output_html(...
13.458333
41
0.597523
0
0
0
0
0
0
0
0
22
0.068111
5d1d2acfb826681789b607d0aa918460c8853f38
12,995
py
Python
scripts/gen_tee_bin.py
wawang621/optee_os
bf7298044beca7a4501ece95c6146b5987cecaa4
[ "BSD-2-Clause" ]
null
null
null
scripts/gen_tee_bin.py
wawang621/optee_os
bf7298044beca7a4501ece95c6146b5987cecaa4
[ "BSD-2-Clause" ]
null
null
null
scripts/gen_tee_bin.py
wawang621/optee_os
bf7298044beca7a4501ece95c6146b5987cecaa4
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2019, Linaro Limited # from __future__ import print_function from __future__ import division import argparse import sys import struct import re import hashlib try: from elftools.elf.elffile import ELFFile from elftools.elf.consta...
33.066158
79
0.604309
0
0
0
0
0
0
0
0
2,988
0.229935
5d1d311ba4f1a92388fbc36107c0bf393d5b97bc
1,864
py
Python
CircuitPython_JEplayer_mp3/repeat.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
CircuitPython_JEplayer_mp3/repeat.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
CircuitPython_JEplayer_mp3/repeat.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
# The MIT License (MIT) # # Copyright (c) 2020 Jeff Epler for Adafruit Industries LLC # # 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 r...
38.833333
79
0.694742
657
0.352468
0
0
396
0.212446
0
0
1,363
0.731223
5d1d5be9e9e0382909fb3777ed89becc272c0e93
767
py
Python
Kapitel_1/_1_public_private.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_1/_1_public_private.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_1/_1_public_private.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
# --- Klassendeklaration mit Konstruktor --- # class PC: def __init__(self, cpu, gpu, ram): self.cpu = cpu self.gpu = gpu self.__ram = ram # --- Instanziierung einer Klasse ---# # --- Ich bevorzuge die Initialisierung mit den Keywords --- # pc_instanz = PC(cpu='Ryzen 7', gpu='RTX2070Super'...
29.5
89
0.684485
119
0.154948
0
0
0
0
0
0
501
0.652344
5d1d8a76e626c2ee6f2e02dabc04e268863c54e7
723
py
Python
algorithm/dynamic_programming/coin_change/solution.py
delaanthonio/hackerrank
b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27
[ "MIT" ]
1
2017-07-02T01:35:39.000Z
2017-07-02T01:35:39.000Z
algorithm/dynamic_programming/coin_change/solution.py
delaanthonio/hackerrank
b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27
[ "MIT" ]
null
null
null
algorithm/dynamic_programming/coin_change/solution.py
delaanthonio/hackerrank
b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27
[ "MIT" ]
1
2018-04-03T15:11:56.000Z
2018-04-03T15:11:56.000Z
#!/usr/bin/env python3 """ The Coin Change Problem :author: Dela Anthonio :hackerrank: https://hackerrank.com/delaanthonio :problem: https://www.hackerrank.com/challenges/coin-change/problem """ from typing import List def count_ways(amount: int, coins: List[int]) -> int: """Return the number of ways we can cou...
24.1
85
0.625173
0
0
0
0
0
0
0
0
285
0.394191
5d1e0c02d27663acdb4392c5b988ee86f8972b53
147
py
Python
climbproject/climbapp/admin.py
javawolfpack/ClimbProject
508cf822a1eb0b78f7120a3d469ceb65e3b423f7
[ "MIT" ]
null
null
null
climbproject/climbapp/admin.py
javawolfpack/ClimbProject
508cf822a1eb0b78f7120a3d469ceb65e3b423f7
[ "MIT" ]
5
2018-11-24T16:15:24.000Z
2022-02-11T03:40:48.000Z
climbproject/climbapp/admin.py
javawolfpack/ClimbProject
508cf822a1eb0b78f7120a3d469ceb65e3b423f7
[ "MIT" ]
1
2018-11-24T16:13:49.000Z
2018-11-24T16:13:49.000Z
from django.contrib import admin #from .models import * from . import models # Register your models here. admin.site.register(models.ClimbModel)
18.375
38
0.782313
0
0
0
0
0
0
0
0
50
0.340136
5d1e73e0421ce77dfe2003f2cfbf66fd1ffd338e
1,264
py
Python
setup.py
TheMagicNacho/artemis-nozzle
5c02672feb7b437a4ff0ccc45394de3010bcd5ab
[ "BSD-2-Clause" ]
null
null
null
setup.py
TheMagicNacho/artemis-nozzle
5c02672feb7b437a4ff0ccc45394de3010bcd5ab
[ "BSD-2-Clause" ]
null
null
null
setup.py
TheMagicNacho/artemis-nozzle
5c02672feb7b437a4ff0ccc45394de3010bcd5ab
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from runpy import run_path from setuptools import setup # Get the version from the relevant file d = run_path('skaero/version.py') __version__ = d['__version__'] setup( name="scikit-aero", version=__version__, description="Aeronautical engineering calculations in Python.", author="Juan...
30.829268
70
0.625791
0
0
0
0
0
0
0
0
772
0.610759
5d1e977ff682cc24e27dda8c4298d920050e0d35
1,226
py
Python
appendix/AI.by.Search/backtracking.search/3-1.eight.queens.py
royqh1979/programming_with_python
7e1e8f88381151b803b6ae6ebda9809d9cc6664a
[ "MIT" ]
5
2019-03-06T12:28:47.000Z
2022-01-06T14:06:02.000Z
appendix/AI.by.Search/backtracking.search/3-1.eight.queens.py
royqh1979/programming_with_python
7e1e8f88381151b803b6ae6ebda9809d9cc6664a
[ "MIT" ]
6
2021-02-02T22:40:49.000Z
2022-03-12T00:27:54.000Z
appendix/AI.by.Search/backtracking.search/3-1.eight.queens.py
royqh1979/programming_with_python
7e1e8f88381151b803b6ae6ebda9809d9cc6664a
[ "MIT" ]
4
2019-03-06T14:29:25.000Z
2020-06-02T15:16:40.000Z
""" 8皇后问题 使用栈实现回溯法 """ def print_board(n,count): print(f"------解.{count}------") print(" ",end="") for j in range(n): print(f"{j:<2}" ,end="") print() for i in range(1,n+1): print(f"{i:<2}",end="") for j in range(1,n+1): if queens[i] == j: print("Q ",end="") else: print(" ",end="") print...
15.518987
67
0.58646
0
0
0
0
0
0
0
0
275
0.211864
5d1ef3d88231b985a99b51b59e99bc1d40f0567f
24,820
py
Python
multimodal_affinities/evaluation/analysis/plots_producer.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
6
2021-07-06T12:48:18.000Z
2021-12-06T01:52:24.000Z
multimodal_affinities/evaluation/analysis/plots_producer.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
null
null
null
multimodal_affinities/evaluation/analysis/plots_producer.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
5
2021-07-10T08:09:17.000Z
2022-03-24T16:27:15.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: CC-BY-4.0 import os import cv2 from collections import namedtuple import imageio from PIL import Image from random import randrange import numpy as np from sklearn.decomposition import PCA from scipy.spatial.distance import...
50.040323
148
0.621112
24,045
0.968775
0
0
15,690
0.632151
0
0
4,057
0.163457
5d208ff94339d61c9f91237707d44d87ad7cd192
6,294
py
Python
openstates/openstates-master/openstates/de/legislators.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/de/legislators.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/de/legislators.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
import re import lxml.html from openstates.utils import LXMLMixin from billy.scrape.legislators import LegislatorScraper, Legislator class DELegislatorScraper(LegislatorScraper,LXMLMixin): jurisdiction = 'de' def scrape(self, chamber, term): url = { 'upper': 'http://legis.delaware.gov/l...
35.359551
82
0.522402
6,156
0.978074
0
0
0
0
0
0
1,280
0.203368
5d20ce5f76b15dfb9e999e6d113dbf7e789ecd49
10,386
py
Python
simpleredial/dataloader/fine_grained_test_dataloader.py
gmftbyGMFTBY/SimpleReDial-v1
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
[ "MIT" ]
36
2021-10-13T10:32:08.000Z
2022-03-20T07:50:05.000Z
simpleredial/dataloader/fine_grained_test_dataloader.py
gmftbyGMFTBY/SimpleReDial-v1
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
[ "MIT" ]
3
2021-11-24T10:57:59.000Z
2022-03-27T15:37:40.000Z
simpleredial/dataloader/fine_grained_test_dataloader.py
gmftbyGMFTBY/SimpleReDial-v1
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
[ "MIT" ]
1
2022-03-15T07:13:22.000Z
2022-03-15T07:13:22.000Z
from header import * from .utils import * from .util_func import * '''Only for Testing''' class FineGrainedTestDataset(Dataset): def __init__(self, vocab, path, **args): self.args = args self.vocab = vocab self.vocab.add_tokens(['[EOS]']) self.pad = self.vocab.convert_tokens_...
41.378486
106
0.501637
10,271
0.988927
0
0
0
0
0
0
1,492
0.143655
5d21c5c96591c41db957d015a344d7b68da97b7a
4,396
py
Python
dabing/DABING-MIB.py
SvajkaJ/dabing
8ddd8c1056b182b52f76028e23cd2ba8418a0dec
[ "MIT" ]
null
null
null
dabing/DABING-MIB.py
SvajkaJ/dabing
8ddd8c1056b182b52f76028e23cd2ba8418a0dec
[ "MIT" ]
null
null
null
dabing/DABING-MIB.py
SvajkaJ/dabing
8ddd8c1056b182b52f76028e23cd2ba8418a0dec
[ "MIT" ]
null
null
null
# # PySNMP MIB module DABING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file://..\DABING-MIB.mib # Produced by pysmi-0.3.4 at Tue Mar 22 12:53:47 2022 # On host ? platform ? version ? by user ? # Using Python version 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] # OctetString, Objec...
93.531915
523
0.75364
0
0
0
0
0
0
0
0
1,142
0.259782
5d228bf6a4bad705b90b99a4ee75f695228944a7
956
py
Python
parameter_setup/run_setup_extra_vis.py
kharris/allen-voxel-network
3c39cf7e7400c09f78ebe9d1d9f8a6d7b9ef6d7b
[ "BSD-2-Clause" ]
7
2018-04-02T01:30:31.000Z
2020-02-23T03:31:57.000Z
parameter_setup/run_setup_extra_vis.py
yijizhao/allen-voxel-network
3c39cf7e7400c09f78ebe9d1d9f8a6d7b9ef6d7b
[ "BSD-2-Clause" ]
null
null
null
parameter_setup/run_setup_extra_vis.py
yijizhao/allen-voxel-network
3c39cf7e7400c09f78ebe9d1d9f8a6d7b9ef6d7b
[ "BSD-2-Clause" ]
2
2016-11-10T03:27:29.000Z
2018-08-06T17:32:05.000Z
import os import numpy as np save_stem='extra_vis_friday_harbor' data_dir='../../data/sdk_new_100' resolution=100 cre=False source_acronyms=['VISal','VISam','VISl','VISp','VISpl','VISpm', 'VISli','VISpor','VISrl','VISa'] lambda_list = np.logspace(3,12,10) scale_lambda=True min_vox=0 # save_file_name='...
26.555556
77
0.789749
0
0
0
0
0
0
0
0
340
0.355649
5d246013ebe48dbfeb0d5a33d4837a599aed75ec
396
py
Python
examples/runall.py
GNiklas/MOSSEPy
fbae1294beefe48f321bc5dbbc70e6c72d3ffe1f
[ "MIT" ]
null
null
null
examples/runall.py
GNiklas/MOSSEPy
fbae1294beefe48f321bc5dbbc70e6c72d3ffe1f
[ "MIT" ]
null
null
null
examples/runall.py
GNiklas/MOSSEPy
fbae1294beefe48f321bc5dbbc70e6c72d3ffe1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Nov 20 09:42:39 2020 @author: niklas """ from mossepy.mosse_tracker import MOSSE # choose position of object in first frame # that should be done by mouse click objPos = [256, 256] # choose tracker type tracker = MOSSE() # initialize object position ...
19.8
43
0.729798
0
0
0
0
0
0
0
0
263
0.664141
5d252f7a220679f8642989c387a00db59609427b
3,194
py
Python
core/formulas.py
mike006322/PolynomialCalculator
bf56b0e773a3461ab2aa958d0d90e08f80a4d201
[ "MIT" ]
null
null
null
core/formulas.py
mike006322/PolynomialCalculator
bf56b0e773a3461ab2aa958d0d90e08f80a4d201
[ "MIT" ]
null
null
null
core/formulas.py
mike006322/PolynomialCalculator
bf56b0e773a3461ab2aa958d0d90e08f80a4d201
[ "MIT" ]
null
null
null
def solve(polynomial): """ input is polynomial if more than one variable, returns 'too many variables' looks for formula to apply to coefficients returns solution or 'I cannot solve yet...' """ if len(polynomial.term_matrix[0]) > 2: return 'too many variables' elif len(polynomial...
31.623762
106
0.556669
0
0
0
0
0
0
0
0
484
0.151534
5d25df408d94ab31e94a89b3213ae144d0477893
5,761
py
Python
manim/mobject/svg/style_utils.py
5Points7Edges/manim
1c2a5099133dbf0abdd5517b2ac93cfc8275b842
[ "MIT" ]
null
null
null
manim/mobject/svg/style_utils.py
5Points7Edges/manim
1c2a5099133dbf0abdd5517b2ac93cfc8275b842
[ "MIT" ]
null
null
null
manim/mobject/svg/style_utils.py
5Points7Edges/manim
1c2a5099133dbf0abdd5517b2ac93cfc8275b842
[ "MIT" ]
null
null
null
"""Utility functions for parsing SVG styles.""" __all__ = ["cascade_element_style", "parse_style", "parse_color_string"] from xml.dom.minidom import Element as MinidomElement from colour import web2hex from ...utils.color import rgb_to_hex from typing import Dict, List CASCADING_STYLING_ATTRIBUTES: List[str] = [ ...
31.140541
119
0.635306
0
0
0
0
0
0
0
0
3,267
0.567089
5d2760eb1387adc84de54a02742f29d1beeb4ef2
1,361
py
Python
iotrigger.py
mm011106/iotrigger
643ced0440a8c4fb95ade56399f813c88ac8ddd6
[ "Apache-2.0" ]
null
null
null
iotrigger.py
mm011106/iotrigger
643ced0440a8c4fb95ade56399f813c88ac8ddd6
[ "Apache-2.0" ]
1
2017-01-08T14:22:32.000Z
2019-01-08T23:51:53.000Z
iotrigger.py
mm011106/iotrigger
643ced0440a8c4fb95ade56399f813c88ac8ddd6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 import os import RPi.GPIO as GPIO # import json from time import sleep # from twython import Twython f=open("tw_config.json",'r') config=json.load(f) f.close() CONSUMER_KEY =config['consumer_key'] CONSUMER_SECRET =config['consumer_secret'] ACCESS_TOKEN =config['access_token'] ACCE...
21.951613
93
0.714916
0
0
0
0
0
0
0
0
250
0.183688
5d27ee1b746e920a8fbbde21e0ae74440138e1ce
2,293
py
Python
src/wheezy/template/tests/test_utils.py
nxsofsys/wheezy.template
b65b70b2927974790ff2413843ec752dd9c6c609
[ "MIT" ]
2
2017-02-08T11:48:41.000Z
2017-12-18T08:04:13.000Z
src/wheezy/template/tests/test_utils.py
ezotrank/wheezy.template
d54bc667303fd4de7314f659e17dd317ac3e3a82
[ "MIT" ]
null
null
null
src/wheezy/template/tests/test_utils.py
ezotrank/wheezy.template
d54bc667303fd4de7314f659e17dd317ac3e3a82
[ "MIT" ]
1
2022-03-04T20:26:20.000Z
2022-03-04T20:26:20.000Z
""" Unit tests for ``wheezy.templates.utils``. """ import unittest class FindAllBalancedTestCase(unittest.TestCase): """ Test the ``find_all_balanced``. """ def test_start_out(self): """ The start index is out of range. """ from wheezy.template.utils import find_all_balanced ...
31.847222
62
0.602704
2,218
0.967292
0
0
0
0
0
0
693
0.302224
5d28c827c798225b6b2063067a58a432acbd8766
34,967
py
Python
akshare/economic/macro_constitute.py
peterrosetu/akshare
9eac9ccb531b6e07d39140830d65349ea9441dc3
[ "MIT" ]
1
2020-12-26T23:39:05.000Z
2020-12-26T23:39:05.000Z
akshare/economic/macro_constitute.py
Hecate2/akshare
2d8904f5cf242ab784f748ab2f886329ebf69742
[ "MIT" ]
null
null
null
akshare/economic/macro_constitute.py
Hecate2/akshare
2d8904f5cf242ab784f748ab2f886329ebf69742
[ "MIT" ]
2
2020-09-23T08:50:14.000Z
2020-09-28T09:57:07.000Z
# -*- coding:utf-8 -*- # /usr/bin/env python """ Date: 2019/10/21 12:08 Desc: 获取金十数据-数据中心-主要机构-宏观经济 """ import json import time import pandas as pd import requests from tqdm import tqdm from akshare.economic.cons import ( JS_CONS_GOLD_ETF_URL, JS_CONS_SLIVER_ETF_URL, JS_CONS_OPEC_URL, ) def macro_cons_...
42.128916
140
0.574885
0
0
0
0
0
0
0
0
21,070
0.580009
5d29262ef748030566b97eaf9b5c7c914c6c44fd
1,811
py
Python
test/testers/winforms/scrollbar/__init__.py
ABEMBARKA/monoUI
5fda266ad2db8f89580a40b525973d86cd8de939
[ "MIT" ]
1
2019-08-13T15:22:12.000Z
2019-08-13T15:22:12.000Z
test/testers/winforms/scrollbar/__init__.py
ABEMBARKA/monoUI
5fda266ad2db8f89580a40b525973d86cd8de939
[ "MIT" ]
null
null
null
test/testers/winforms/scrollbar/__init__.py
ABEMBARKA/monoUI
5fda266ad2db8f89580a40b525973d86cd8de939
[ "MIT" ]
1
2019-08-13T15:22:17.000Z
2019-08-13T15:22:17.000Z
############################################################################## # Written by: Cachen Chen <cachen@novell.com> # Date: 08/06/2008 # Description: Application wrapper for scrollbar.py # Used by the scrollbar-*.py tests ###################################################################...
32.339286
134
0.602982
315
0.173937
0
0
0
0
0
0
840
0.463832
5d2a93367402f8cedeb2edebdd44e28110111fbf
4,209
py
Python
save_tweets.py
iglesiasmanu/data_analysis
61127c91ad0eb11ecdc7258e186e430e9dddb0b6
[ "BSD-3-Clause" ]
null
null
null
save_tweets.py
iglesiasmanu/data_analysis
61127c91ad0eb11ecdc7258e186e430e9dddb0b6
[ "BSD-3-Clause" ]
null
null
null
save_tweets.py
iglesiasmanu/data_analysis
61127c91ad0eb11ecdc7258e186e430e9dddb0b6
[ "BSD-3-Clause" ]
null
null
null
import json from os import path from tweepy import OAuthHandler, Stream from tweepy.streaming import StreamListener from sqlalchemy.orm.exc import NoResultFound from database import session, Tweet, Hashtag, User consumer_key = "0qFf4T2xPWVIycLmAwk3rDQ55" consumer_secret = "LcHpujASn4fIIrQ8sikbCTQ3oyU6T6opchFVWBBqwI...
32.882813
80
0.623188
892
0.211927
0
0
0
0
0
0
745
0.177002
5d2b1bb602059e1df9b567f6022d9d62a73d9127
907
py
Python
app/views/main.py
chrisjws-harness/flaskSaaS
f42558c523de23f03a098044df164ead3539a4dd
[ "MIT" ]
null
null
null
app/views/main.py
chrisjws-harness/flaskSaaS
f42558c523de23f03a098044df164ead3539a4dd
[ "MIT" ]
null
null
null
app/views/main.py
chrisjws-harness/flaskSaaS
f42558c523de23f03a098044df164ead3539a4dd
[ "MIT" ]
null
null
null
from flask import render_template, jsonify from app import app import random @app.route('/') @app.route('/index') def index(): # Feature flags init goes here! # # noinspection PyDictCreation flags = { "welcome_text": "welcome to my python FF tutorial!" } # Flag goes here! #...
19.717391
59
0.61301
0
0
0
0
817
0.900772
0
0
261
0.287762
5d2e7fe7c422e728c2698140a25e0895a9bb3030
254
py
Python
base_sample/numpy_mat.py
keepangry/ai_algorithm
21d8024296a2f2d2797448ed34eb383359259684
[ "Apache-2.0" ]
2
2018-08-29T11:09:36.000Z
2018-10-22T11:46:36.000Z
base_sample/numpy_mat.py
keepangry/ai_algorithm
21d8024296a2f2d2797448ed34eb383359259684
[ "Apache-2.0" ]
null
null
null
base_sample/numpy_mat.py
keepangry/ai_algorithm
21d8024296a2f2d2797448ed34eb383359259684
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' @author: yangsen @license: @contact: @software: @file: numpy_mat.py @time: 18-8-25 下午9:56 @desc: ''' import numpy as np a = np.arange(9).reshape(3,3) # 行 a[1] a[[1,2]] a[np.array([1,2])] # 列 a[:,1] a[:,[1,2]] a[:,np.array([1,2])]
11.043478
29
0.574803
0
0
0
0
0
0
0
0
135
0.515267
5d2ea06d1190699ab0cefe6b4179c68d747feca4
17,002
py
Python
ai_traineree/agents/rainbow.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
22
2020-08-21T03:03:05.000Z
2022-02-22T10:15:36.000Z
ai_traineree/agents/rainbow.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
23
2021-02-13T20:35:45.000Z
2022-02-06T20:15:37.000Z
ai_traineree/agents/rainbow.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
6
2020-10-11T08:36:09.000Z
2021-11-20T18:31:03.000Z
import copy from typing import Callable, Dict, List, Optional import torch import torch.nn as nn import torch.optim as optim from ai_traineree import DEVICE from ai_traineree.agents import AgentBase from ai_traineree.agents.agent_utils import soft_update from ai_traineree.buffers import NStepBuffer, PERBuffer from ai...
45.218085
118
0.648688
16,309
0.95924
0
0
620
0.036466
0
0
5,985
0.352017
5d2fb89dd83715259f4676be3c051b02287f606c
4,169
py
Python
nvvm/core/nvvm.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
nvvm/core/nvvm.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
nvvm/core/nvvm.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
from pycu.nvvm import (get_libdevice, ir_version, version, add_module_to_program, compile_program, create_program, destroy_program, get_compiled_result, get_compiled_result_size, get_program_log, get_program_log_size, lazy_add_module_to_program, verify_program) import os import sys from ctypes import c...
28.951389
181
0.708803
3,822
0.916767
0
0
0
0
0
0
2,505
0.600864
5d314e81984e8fdd23c8fa9711722c873d27574a
160
py
Python
fieldservice/fieldservice/doctype/fieldservice_settings/test_fieldservice_settings.py
itsdaveit/fieldservice
90bd813fb01f23a18df3b24fc67ec86c4d8be5a5
[ "MIT" ]
null
null
null
fieldservice/fieldservice/doctype/fieldservice_settings/test_fieldservice_settings.py
itsdaveit/fieldservice
90bd813fb01f23a18df3b24fc67ec86c4d8be5a5
[ "MIT" ]
null
null
null
fieldservice/fieldservice/doctype/fieldservice_settings/test_fieldservice_settings.py
itsdaveit/fieldservice
90bd813fb01f23a18df3b24fc67ec86c4d8be5a5
[ "MIT" ]
1
2021-11-09T10:26:06.000Z
2021-11-09T10:26:06.000Z
# Copyright (c) 2022, itsdve GmbH and Contributors # See license.txt # import frappe import unittest class TestFieldserviceSettings(unittest.TestCase): pass
17.777778
50
0.79375
56
0.35
0
0
0
0
0
0
82
0.5125
5d332a4a020a6faa75a8b1522601b2bced79121d
2,621
py
Python
Codes/Data Processing.py
BrickerP/Investment-
8b57c0d157a7eaa38d693c8d42ce1bc7dc7bdde9
[ "Apache-2.0" ]
null
null
null
Codes/Data Processing.py
BrickerP/Investment-
8b57c0d157a7eaa38d693c8d42ce1bc7dc7bdde9
[ "Apache-2.0" ]
null
null
null
Codes/Data Processing.py
BrickerP/Investment-
8b57c0d157a7eaa38d693c8d42ce1bc7dc7bdde9
[ "Apache-2.0" ]
1
2022-01-07T06:25:54.000Z
2022-01-07T06:25:54.000Z
# -*- coding: utf-8 -*- """ Created on Sun Nov 21 14:51:01 2021 @author: 75638 """ import pandas as pd import numpy as np pd.set_option('display.max_columns', None) pd.set_option('display.width', 10000) def process_data(path1,path2): ''' 1.path1: file path of different factor 2.path2:file path...
33.177215
97
0.591759
0
0
0
0
0
0
0
0
781
0.297978