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
460a2bcd85d3d00d44d62b6c67fe157741f17339
363
py
Python
biblioteca/views.py
Dagmoores/ProjetoIntegradorIUnivesp
86f5004c359b760cceec87bfa905db16e3375653
[ "MIT" ]
null
null
null
biblioteca/views.py
Dagmoores/ProjetoIntegradorIUnivesp
86f5004c359b760cceec87bfa905db16e3375653
[ "MIT" ]
null
null
null
biblioteca/views.py
Dagmoores/ProjetoIntegradorIUnivesp
86f5004c359b760cceec87bfa905db16e3375653
[ "MIT" ]
null
null
null
from django.views.generic import DetailView, ListView, TemplateView from .models import Books class BooksListView(ListView): model = Books class BooksDeitalView(DetailView): model = Books class Home(TemplateView): template_name = './biblioteca/index.html' class TermsOfService(TemplateView): templat...
24.2
67
0.77135
261
0.719008
0
0
0
0
0
0
59
0.162534
460ac56ca325f939e25bdbf44f40c51f97e73226
429
py
Python
choir/evaluation/__init__.py
scwangdyd/large_vocabulary_hoi_detection
db7a4397c3050b1bf9a3f7473edf125e2b1046c4
[ "MIT" ]
9
2021-11-13T17:14:07.000Z
2022-03-29T00:27:54.000Z
choir/evaluation/__init__.py
scwangdyd/large_vocabulary_hoi_detection
db7a4397c3050b1bf9a3f7473edf125e2b1046c4
[ "MIT" ]
1
2022-02-04T16:28:01.000Z
2022-02-04T16:28:01.000Z
choir/evaluation/__init__.py
scwangdyd/large_vocabulary_hoi_detection
db7a4397c3050b1bf9a3f7473edf125e2b1046c4
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from .evaluator import DatasetEvaluator, DatasetEvaluators, inference_context, inference_on_dataset from .testing import print_csv_format, verify_results from .hico_evaluation import HICOEvaluator from .swig_evaluation import SWIGEvaluator # from .d...
47.666667
99
0.822844
0
0
0
0
0
0
0
0
124
0.289044
460b1c41c9223f051fce73e3d45305d26f20419f
4,092
py
Python
api_yamdb/reviews/models.py
LHLHLHE/api_yamdb
bda83815a47f3fda03d54220dfe41e9263ff1b05
[ "MIT" ]
null
null
null
api_yamdb/reviews/models.py
LHLHLHE/api_yamdb
bda83815a47f3fda03d54220dfe41e9263ff1b05
[ "MIT" ]
null
null
null
api_yamdb/reviews/models.py
LHLHLHE/api_yamdb
bda83815a47f3fda03d54220dfe41e9263ff1b05
[ "MIT" ]
null
null
null
import datetime as dt from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator from django.core.exceptions import ValidationError from users.models import CustomUser def validate_year(value): """ Год выпуска произведения не может быть больше текущего. """ ...
24.650602
77
0.608016
3,964
0.880107
0
0
0
0
0
0
1,128
0.250444
460cac61f3a5248165f741d16e8295c7d5e81b06
127,462
py
Python
angr/engines/pcode/arch/ArchPcode_PowerPC_LE_32_QUICC.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/engines/pcode/arch/ArchPcode_PowerPC_LE_32_QUICC.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/engines/pcode/arch/ArchPcode_PowerPC_LE_32_QUICC.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
### ### This file was automatically generated ### from archinfo.arch import register_arch, Endness, Register from .common import ArchPcode class ArchPcode_PowerPC_LE_32_QUICC(ArchPcode): name = 'PowerPC:LE:32:QUICC' pcode_arch = 'PowerPC:LE:32:QUICC' description = 'PowerQUICC-III 32-bit little endian fa...
39.449706
85
0.545692
127,231
0.998188
0
0
0
0
0
0
27,665
0.217045
460d6b3dd6eff2aa0cc70e0bbc8f6441baed0341
6,796
py
Python
makesense/graph.py
sieben/makesense
485e71903bcc9446482f21bb5d0c7a392ca1efca
[ "Apache-2.0" ]
5
2015-02-03T12:28:55.000Z
2019-03-20T08:11:22.000Z
makesense/graph.py
sieben/makesense
485e71903bcc9446482f21bb5d0c7a392ca1efca
[ "Apache-2.0" ]
4
2016-05-16T07:26:19.000Z
2016-06-23T22:22:10.000Z
makesense/graph.py
sieben/makesense
485e71903bcc9446482f21bb5d0c7a392ca1efca
[ "Apache-2.0" ]
1
2016-05-16T07:28:53.000Z
2016-05-16T07:28:53.000Z
# -*- coding: utf-8 -*- import json import pdb import os from os.path import join as pj import networkx as nx import pandas as pd from networkx.readwrite.json_graph import node_link_data def chain(): g = nx.Graph() # Horizontal for i in range(11, 15): g.add_edge(i, i + 1) for i in range(...
27.626016
82
0.59741
0
0
0
0
0
0
0
0
1,544
0.227192
460d75e0442c54e12cc43f9bb046096139d2369e
2,741
py
Python
recipes/Python/52228_Remote_control_with_telnetlib/recipe-52228.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/52228_Remote_control_with_telnetlib/recipe-52228.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/52228_Remote_control_with_telnetlib/recipe-52228.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
# auto_telnet.py - remote control via telnet import os, sys, string, telnetlib from getpass import getpass class AutoTelnet: def __init__(self, user_list, cmd_list, **kw): self.host = kw.get('host', 'localhost') self.timeout = kw.get('timeout', 600) self.command_prompt = kw.get('command_pro...
34.2625
76
0.553448
1,578
0.575702
0
0
0
0
0
0
417
0.152134
460e2d1d15ba01da3b9d59848ee03f3a71e7df89
5,511
py
Python
FFTNet_dilconv.py
mimbres/FFTNet
3a6bfb4731bab2e0a59fc3a1ddb55f19f84aeba2
[ "Apache-2.0" ]
null
null
null
FFTNet_dilconv.py
mimbres/FFTNet
3a6bfb4731bab2e0a59fc3a1ddb55f19f84aeba2
[ "Apache-2.0" ]
null
null
null
FFTNet_dilconv.py
mimbres/FFTNet
3a6bfb4731bab2e0a59fc3a1ddb55f19f84aeba2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 7 09:46:10 2018 @author: sungkyun FFTNet model using 2x1 dil-conv """ import numpy as np import torch import torch.nn as nn import torch.nn.functional as F # Models with Preset (for convenience) ''' dim_input: dimension of input (256 for 8-bit mu-...
40.822222
147
0.551987
4,190
0.759196
0
0
0
0
0
0
1,793
0.324878
460e42fc65b233b72dc53c72b8b11991e2b52abd
1,390
py
Python
snewpdag/plugins/Copy.py
SNEWS2/snewpdag
57f886cf08e1acd8af48ee486a1c2400e2b77b8b
[ "BSD-3-Clause" ]
null
null
null
snewpdag/plugins/Copy.py
SNEWS2/snewpdag
57f886cf08e1acd8af48ee486a1c2400e2b77b8b
[ "BSD-3-Clause" ]
21
2021-06-09T10:31:40.000Z
2022-03-21T17:14:03.000Z
snewpdag/plugins/Copy.py
SNEWS2/snewpdag
57f886cf08e1acd8af48ee486a1c2400e2b77b8b
[ "BSD-3-Clause" ]
9
2021-07-11T17:45:42.000Z
2021-09-09T22:07:18.000Z
""" Copy - copy fields into other (possibly new) fields configuration: on: list of 'alert', 'revoke', 'report', 'reset' (optional: def 'alert' only) cp: ( (in,out), ... ) Field names take the form of dir1/dir2/dir3, which in the payload will be data[dir1][dir2][dir3] """ import logging from snewpdag.dag import N...
25.272727
79
0.576978
1,063
0.764748
0
0
0
0
0
0
432
0.310791
460ec208b3e5e026467442540a94ba66de7fb38a
1,562
py
Python
pages/aboutus.py
BuildWeek-AirBnB-Optimal-Price/application
c65e1ec3db309dd3afbcf9429d16489ccda534d8
[ "MIT" ]
null
null
null
pages/aboutus.py
BuildWeek-AirBnB-Optimal-Price/application
c65e1ec3db309dd3afbcf9429d16489ccda534d8
[ "MIT" ]
1
2021-08-23T21:22:51.000Z
2021-08-23T21:22:51.000Z
pages/aboutus.py
BuildWeek-AirBnB-Optimal-Price/application
c65e1ec3db309dd3afbcf9429d16489ccda534d8
[ "MIT" ]
null
null
null
''' houses each team member's link to personal GitHub io or website or blog space RJProctor ''' # Imports from 3rd party libraries import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app ...
20.025641
77
0.518566
0
0
0
0
0
0
0
0
1,165
0.745839
4610420d2938e979a1edec925cfaa9db7b11366a
755
py
Python
Codes/Python32/Lib/importlib/test/extension/test_path_hook.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
Codes/Python32/Lib/importlib/test/extension/test_path_hook.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
9
2016-11-03T21:56:41.000Z
2020-08-09T19:27:37.000Z
Codes/Python32/Lib/importlib/test/extension/test_path_hook.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
27
2016-10-06T16:05:32.000Z
2022-03-18T02:37:00.000Z
from importlib import _bootstrap from . import util import collections import imp import sys import unittest class PathHookTests(unittest.TestCase): """Test the path hook for extension modules.""" # XXX Should it only succeed for pre-existing directories? # XXX Should it only work for directories contai...
23.59375
77
0.721854
504
0.66755
0
0
0
0
0
0
278
0.368212
46114f85ae8065583b2a1f11692dfc71d3d35a86
480
py
Python
3. count_words/solution.py
dcragusa/WeeklyPythonExerciseB2
a7da3830e27891060dcfb0804c81f52b1f250ce8
[ "MIT" ]
null
null
null
3. count_words/solution.py
dcragusa/WeeklyPythonExerciseB2
a7da3830e27891060dcfb0804c81f52b1f250ce8
[ "MIT" ]
null
null
null
3. count_words/solution.py
dcragusa/WeeklyPythonExerciseB2
a7da3830e27891060dcfb0804c81f52b1f250ce8
[ "MIT" ]
null
null
null
import os from glob import iglob from concurrent.futures import ThreadPoolExecutor def count_words_file(path): if not os.path.isfile(path): return 0 with open(path) as file: return sum(len(line.split()) for line in file) def count_words_sequential(pattern): return sum(map(count_words_fil...
24
62
0.729167
0
0
0
0
0
0
0
0
0
0
46116c9d8947552c6fd85dd9c709b4bd524230cf
141
py
Python
kafka-connect-azblob/docs/autoreload.py
cirobarradov/kafka-connect-hdfs-datalab
7e2b23bdb78b34f9934b8d56618a8035b75f6f54
[ "Apache-2.0" ]
null
null
null
kafka-connect-azblob/docs/autoreload.py
cirobarradov/kafka-connect-hdfs-datalab
7e2b23bdb78b34f9934b8d56618a8035b75f6f54
[ "Apache-2.0" ]
null
null
null
kafka-connect-azblob/docs/autoreload.py
cirobarradov/kafka-connect-hdfs-datalab
7e2b23bdb78b34f9934b8d56618a8035b75f6f54
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from livereload import Server, shell server = Server() server.watch('*.rst', shell('make html')) server.serve()
20.142857
42
0.680851
0
0
0
0
0
0
0
0
40
0.283688
4612cb4af177cb85c305bcbf02040e60659a77f5
3,008
py
Python
keras_textclassification/conf/path_config.py
atom-zh/Keras-TextClassification
26c549e8e23c6a10905c2dcef7eef557dc43c932
[ "MIT" ]
null
null
null
keras_textclassification/conf/path_config.py
atom-zh/Keras-TextClassification
26c549e8e23c6a10905c2dcef7eef557dc43c932
[ "MIT" ]
null
null
null
keras_textclassification/conf/path_config.py
atom-zh/Keras-TextClassification
26c549e8e23c6a10905c2dcef7eef557dc43c932
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/6/5 21:04 # @author :Mo # @function :file of path import os import pathlib import sys # 项目的根目录 path_root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) path_root = path_root.replace('\\', '/') path_top = str(pathlib.P...
41.777778
94
0.772939
0
0
0
0
0
0
0
0
1,481
0.476206
4612f94a5e19222b82ccef62fa3f6a2d792d2930
2,617
py
Python
tests/test_apyhgnc.py
robertopreste/apyhgnc
26efa764a2262cfa12c8a2f0f077569e7f3e4e79
[ "MIT" ]
null
null
null
tests/test_apyhgnc.py
robertopreste/apyhgnc
26efa764a2262cfa12c8a2f0f077569e7f3e4e79
[ "MIT" ]
64
2019-04-21T09:22:01.000Z
2022-03-31T23:01:14.000Z
tests/test_apyhgnc.py
robertopreste/apyhgnc
26efa764a2262cfa12c8a2f0f077569e7f3e4e79
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Created by Roberto Preste import pytest import asyncio from pandas.testing import assert_frame_equal from apyhgnc import apyhgnc # apyhgnc.info def test_info_searchableFields(searchable_fields): result = apyhgnc.info().searchableFields assert result == searchab...
27.840426
69
0.762323
0
0
0
0
0
0
0
0
272
0.103936
46134dbafabea71d237df09c989e61b23906b699
2,770
py
Python
bdaq/tools/extract_enums.py
magnium/pybdaq
8511cff42b7f953c105e7a78c8c62f6deb2430ec
[ "MIT" ]
null
null
null
bdaq/tools/extract_enums.py
magnium/pybdaq
8511cff42b7f953c105e7a78c8c62f6deb2430ec
[ "MIT" ]
null
null
null
bdaq/tools/extract_enums.py
magnium/pybdaq
8511cff42b7f953c105e7a78c8c62f6deb2430ec
[ "MIT" ]
1
2018-08-28T06:12:06.000Z
2018-08-28T06:12:06.000Z
import os.path import argparse from xml.etree import ElementTree as ET class ExtractedEnum(object): def __init__(self, tag_name, value_names): self.tag_name = tag_name self.value_names = value_names def write_pxd(self, file_): file_.write("\n ctypedef enum {}:\n".format(self.tag_n...
27.156863
78
0.640794
787
0.284116
0
0
229
0.082671
0
0
742
0.26787
46138642b2c4dc6d2e31c500bf65e34679d07086
1,230
py
Python
Objetos/biblioteca.py
SebaB29/Python
8fe7b375e200d2a629e3ef83a2356002621267a6
[ "MIT" ]
null
null
null
Objetos/biblioteca.py
SebaB29/Python
8fe7b375e200d2a629e3ef83a2356002621267a6
[ "MIT" ]
null
null
null
Objetos/biblioteca.py
SebaB29/Python
8fe7b375e200d2a629e3ef83a2356002621267a6
[ "MIT" ]
null
null
null
class Libro: def __init__(self, titulo, autor): """...""" self.titulo = titulo self.autor = autor def obtener_titulo(self): """...""" return str(self.titulo) def obtener_autor(self): """...""" return str(self.autor) class Biblioteca: def...
27.954545
63
0.582927
892
0.724614
0
0
0
0
0
0
208
0.168968
4613a39367cc38fb7bf09761273d5ec4ce7cfaaf
5,540
py
Python
parser_tool/tests/test_htmlgenerator.py
Harvard-ATG/visualizing_russian_tools
e8e5cf8c5b7eee0b6855594ad41b3ccd70a2d467
[ "BSD-3-Clause" ]
2
2020-07-10T14:17:03.000Z
2020-11-17T09:18:26.000Z
parser_tool/tests/test_htmlgenerator.py
eelegiap/visualizing_russian_tools
9c36baebc384133c7c27d7a7c4e0cedc8cb84e74
[ "BSD-3-Clause" ]
13
2019-03-17T13:27:31.000Z
2022-01-18T17:03:14.000Z
parser_tool/tests/test_htmlgenerator.py
eelegiap/visualizing_russian_tools
9c36baebc384133c7c27d7a7c4e0cedc8cb84e74
[ "BSD-3-Clause" ]
2
2019-10-19T16:37:44.000Z
2020-06-22T13:30:20.000Z
# -*- coding: utf-8 -*- import unittest from xml.etree import ElementTree as ET from parser_tool import tokenizer from parser_tool import htmlgenerator class TestHtmlGenerator(unittest.TestCase): def _maketokendict(self, **kwargs): token_text = kwargs.get("token", "") token_dict = { ...
49.026549
192
0.658845
5,442
0.972133
0
0
0
0
0
0
1,288
0.230082
4613c4acf26a49b9382fcd9cbead5b7bfa04eb32
1,772
py
Python
taiga/hooks/gitlab/migrations/0002_auto_20150703_1102.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-back/taiga/hooks/gitlab/migrations/0002_auto_20150703_1102.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
12
2019-11-25T14:08:32.000Z
2021-06-24T10:35:51.000Z
taiga/hooks/gitlab/migrations/0002_auto_20150703_1102.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.core.files import File def update_gitlab_system_user_photo_to_v2(apps, schema_editor): # We get the model from the versioned app registry; # if we directly import it, it'll be the wrong version...
34.745098
79
0.603273
303
0.170993
0
0
0
0
0
0
434
0.244921
4615c8d476cced9b6746382173a9829cad6f16c7
995
bzl
Python
external_plugin_deps.bzl
michalgagat/plugins_oauth
47cc344013bd43a4ac508c578f2d93f37a166ee6
[ "Apache-2.0", "MIT" ]
143
2015-03-09T21:18:39.000Z
2022-03-02T13:27:12.000Z
external_plugin_deps.bzl
michalgagat/plugins_oauth
47cc344013bd43a4ac508c578f2d93f37a166ee6
[ "Apache-2.0", "MIT" ]
162
2015-03-15T04:00:41.000Z
2022-02-24T07:29:17.000Z
external_plugin_deps.bzl
michalgagat/plugins_oauth
47cc344013bd43a4ac508c578f2d93f37a166ee6
[ "Apache-2.0", "MIT" ]
97
2015-02-27T18:35:20.000Z
2022-01-08T13:17:21.000Z
load("//tools/bzl:maven_jar.bzl", "maven_jar") def external_plugin_deps(omit_commons_codec = True): JACKSON_VERS = "2.10.2" maven_jar( name = "scribejava-core", artifact = "com.github.scribejava:scribejava-core:6.9.0", sha1 = "ed761f450d8382f75787e8fee9ae52e7ec768747", ) maven_j...
34.310345
84
0.629146
0
0
0
0
0
0
0
0
485
0.487437
461741b98d074cd4fe4db2b2b85584fd2a2f2b2d
442
py
Python
11.-Operaciones_entero_con_float_python.py
emiliocarcanobringas/11.-Operaciones_entero_con_float_python
faf3bf2fae3b7a990e0d20483ac9ac219dcb7857
[ "MIT" ]
null
null
null
11.-Operaciones_entero_con_float_python.py
emiliocarcanobringas/11.-Operaciones_entero_con_float_python
faf3bf2fae3b7a990e0d20483ac9ac219dcb7857
[ "MIT" ]
null
null
null
11.-Operaciones_entero_con_float_python.py
emiliocarcanobringas/11.-Operaciones_entero_con_float_python
faf3bf2fae3b7a990e0d20483ac9ac219dcb7857
[ "MIT" ]
null
null
null
# Este programa muestra la suma de dos variables, de tipo int y float print("Este programa muestra la suma de dos variables, de tipo int y float") print("También muestra que la variable que realiza la operación es de tipo float") numero1 = 7 numero2 = 3.1416 sumadeambos = numero1 + numero2 print("El resultado d...
34
83
0.748869
0
0
0
0
0
0
0
0
302
0.678652
46175a845f983668cd1561f331edd1b1e7cee344
12,398
py
Python
main_gat.py
basiralab/RG-Select
074274f61667611205724c4423fc498ee4a0a9d0
[ "MIT" ]
1
2021-09-07T06:55:37.000Z
2021-09-07T06:55:37.000Z
main_gat.py
basiralab/RG-Select
074274f61667611205724c4423fc498ee4a0a9d0
[ "MIT" ]
null
null
null
main_gat.py
basiralab/RG-Select
074274f61667611205724c4423fc498ee4a0a9d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sklearn import preprocessing from torch.autograd import Variable from models_gat import GAT import os import torch import numpy as np import argparse import pickle import sklearn.metrics as metrics import cross_val import time import random torch.manual_seed(0) np.random.seed(0) random.s...
37.008955
137
0.607275
0
0
0
0
0
0
0
0
3,410
0.275044
4617a69a551305b5f32925b26d808534b36117fc
12,752
py
Python
dev/Gems/CloudGemDefectReporter/v1/AWS/common-code/Python/piexif/_dump.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
8
2019-10-07T16:33:47.000Z
2020-12-07T03:59:58.000Z
dev/Gems/CloudGemDefectReporter/v1/AWS/common-code/Python/piexif/_dump.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1
2018-02-18T22:24:55.000Z
2018-02-21T18:36:09.000Z
dev/Gems/CloudGemDefectReporter/v1/AWS/common-code/Python/piexif/_dump.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
import copy import numbers import struct from ._common import * from ._exif import * TIFF_HEADER_LENGTH = 8 def dump(exif_dict_original): """ py:function:: piexif.load(data) Return exif as bytes. :param dict exif: Exif data({"0th":dict, "Exif":dict, "GPS":dict, "Interop":dict, "1st":dict, "thumbn...
36.74928
117
0.571361
0
0
0
0
0
0
0
0
1,167
0.091515
4617fb2b1109fbc2c363e6e5ce80547d57eca614
8,000
py
Python
portal.py
mrahman4782/portalhoop
29e87ccaca5544590aa9ed20096c3628c1ab57b1
[ "Apache-2.0" ]
null
null
null
portal.py
mrahman4782/portalhoop
29e87ccaca5544590aa9ed20096c3628c1ab57b1
[ "Apache-2.0" ]
null
null
null
portal.py
mrahman4782/portalhoop
29e87ccaca5544590aa9ed20096c3628c1ab57b1
[ "Apache-2.0" ]
null
null
null
import pygame import random from pygame import * pygame.init() width, height = 740, 500 screen = pygame.display.set_mode((width, height)) player = [pygame.transform.scale(pygame.image.load("Resources/Balljump-1(2).png"), (100,100)), pygame.t...
28.776978
419
0.5115
0
0
0
0
0
0
0
0
1,154
0.14425
46195f448a6bacb19ed1a57308155484d10e7c8b
2,137
py
Python
datadog_cluster_agent/tests/test_datadog_cluster_agent.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
1
2021-12-15T22:45:14.000Z
2021-12-15T22:45:14.000Z
datadog_cluster_agent/tests/test_datadog_cluster_agent.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
null
null
null
datadog_cluster_agent/tests/test_datadog_cluster_agent.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from typing import Any, Dict from datadog_checks.base.stubs.aggregator import AggregatorStub from datadog_checks.datadog_cluster_agent import DatadogClusterAgentCheck from datadog_checks.dev.utils import ...
34.467742
87
0.759944
0
0
0
0
0
0
0
0
1,240
0.580253
461ab2e151fa2b1e92504b3b4e0d6a8160278475
843
py
Python
prev_ob_models/KaplanLansner2014/plotting_and_analysis/plot_results.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
5
2019-10-03T14:49:02.000Z
2022-01-13T13:37:34.000Z
prev_ob_models/KaplanLansner2014/plotting_and_analysis/plot_results.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
4
2019-12-30T15:57:24.000Z
2020-10-07T22:42:50.000Z
prev_ob_models/KaplanLansner2014/plotting_and_analysis/plot_results.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
2
2020-05-19T20:12:48.000Z
2020-11-04T17:17:44.000Z
import pylab import numpy import sys if (len(sys.argv) < 2): fn = raw_input("Please enter data file to be plotted\n") else: fn = sys.argv[1] data = np.loadtxt(fn) # if the first line contains crap use skiprows=1 #data = np.loadtxt(fn, skiprows=1) fig = pylab.figure() ax = fig.add_subplot(111) # if you wan...
21.075
60
0.618031
0
0
0
0
0
0
0
0
482
0.571767
461c16f8a2b21046567d37b8c2d1c4dfd8195d43
1,415
py
Python
pyeccodes/defs/grib2/tables/15/3_11_table.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/grib2/tables/8/3_11_table.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/grib2/tables/8/3_11_table.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
def load(h): return ({'abbr': 0, 'code': 0, 'title': 'There is no appended list'}, {'abbr': 1, 'code': 1, 'title': 'Numbers define number of points corresponding to full coordinate ' 'circles (i.e. parallels), coordinate values on each circle are ' ...
58.958333
91
0.530035
0
0
0
0
0
0
0
0
932
0.658657
1c9d4e8ece8e1713ad5f9d3791c348c5f5f83733
2,691
py
Python
lib/take2/main.py
zacharyfrederick/deep_q_gaf
6b712b17a6c89c1cba0d22e18fa336369c521d4e
[ "MIT" ]
null
null
null
lib/take2/main.py
zacharyfrederick/deep_q_gaf
6b712b17a6c89c1cba0d22e18fa336369c521d4e
[ "MIT" ]
null
null
null
lib/take2/main.py
zacharyfrederick/deep_q_gaf
6b712b17a6c89c1cba0d22e18fa336369c521d4e
[ "MIT" ]
null
null
null
from __future__ import division from lib import env_config from lib.senior_env import BetterEnvironment from keras.optimizers import Adam from rl.agents.dqn import DQNAgent from rl.policy import LinearAnnealedPolicy, BoltzmannQPolicy, EpsGreedyQPolicy from rl.memory import SequentialMemory from lib import models impor...
42.714286
109
0.726867
0
0
0
0
0
0
0
0
1,319
0.490152
1c9df7adb0b666ca2019704ffcc93ac51a469c6b
1,752
py
Python
src/clcore.py
ShepardPower/PyMCBuilder
b247151864cc6b7bca0dc23aa87cdbb44b52defc
[ "MIT" ]
1
2019-07-09T04:45:07.000Z
2019-07-09T04:45:07.000Z
src/clcore.py
ShepardPower/PyMCBuilder
b247151864cc6b7bca0dc23aa87cdbb44b52defc
[ "MIT" ]
null
null
null
src/clcore.py
ShepardPower/PyMCBuilder
b247151864cc6b7bca0dc23aa87cdbb44b52defc
[ "MIT" ]
null
null
null
# I'm just the one that executes the instructions! import sys, math, json, operator, time import mcpi.minecraft as minecraft from PIL import Image as pillow from blockid import get_block import mcpi.block as block import functions as pymc from tqdm import tqdm import tkinter as tk # Functions # Main code mc = minecra...
26.545455
93
0.66153
0
0
0
0
0
0
0
0
311
0.177511
1c9e901d1d765a0acf44b58e4a7dca2f74accdab
4,377
py
Python
gaphor/tools/gaphorconvert.py
987Frogh/project-makehuman
3afc838b03c50f8e574d8c87cb71de4435a18a6d
[ "Apache-2.0" ]
1
2020-11-27T12:39:15.000Z
2020-11-27T12:39:15.000Z
gaphor/tools/gaphorconvert.py
987Frogh/project-makehuman
3afc838b03c50f8e574d8c87cb71de4435a18a6d
[ "Apache-2.0" ]
null
null
null
gaphor/tools/gaphorconvert.py
987Frogh/project-makehuman
3afc838b03c50f8e574d8c87cb71de4435a18a6d
[ "Apache-2.0" ]
3
2020-01-23T14:13:59.000Z
2020-02-18T18:21:47.000Z
#!/usr/bin/python import optparse import os import re import sys import cairo from gaphas.painter import Context, ItemPainter from gaphas.view import View import gaphor.UML as UML from gaphor.application import Application from gaphor.storage import storage def pkg2dir(package): """ Return directory path f...
28.796053
87
0.570482
0
0
0
0
0
0
0
0
1,091
0.249257
1c9f5e89a220e8427228538802a130ed00ec7baf
317
py
Python
zeta_python_sdk/exceptions.py
prettyirrelevant/zeta-python-sdk
536967259c89d380b8853b1cfd0621c50143b8b9
[ "Apache-2.0" ]
2
2022-03-02T04:05:07.000Z
2022-03-10T11:49:37.000Z
zeta_python_sdk/exceptions.py
prettyirrelevant/zeta-python-sdk
536967259c89d380b8853b1cfd0621c50143b8b9
[ "Apache-2.0" ]
null
null
null
zeta_python_sdk/exceptions.py
prettyirrelevant/zeta-python-sdk
536967259c89d380b8853b1cfd0621c50143b8b9
[ "Apache-2.0" ]
null
null
null
class InvalidSideException(Exception): """Invalid side""" class NotSupportedException(Exception): """Not supported by dummy wallet""" class InvalidProductException(Exception): """Invalid product type""" class OutOfBoundsException(Exception): """Attempt to access memory outside buffer bounds"""
21.133333
56
0.73817
307
0.968454
0
0
0
0
0
0
131
0.413249
1ca0182af54f9900fd8dd3f4d8ff457375adde5e
1,140
py
Python
test/test_ID.py
a-buntjer/tsib
9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e
[ "MIT" ]
14
2019-12-16T16:54:43.000Z
2021-11-08T11:46:51.000Z
test/test_ID.py
a-buntjer/tsib
9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e
[ "MIT" ]
null
null
null
test/test_ID.py
a-buntjer/tsib
9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e
[ "MIT" ]
7
2020-05-27T19:49:58.000Z
2022-02-02T12:45:33.000Z
# -*- coding: utf-8 -*- """ Created on Fri Apr 08 11:33:01 2016 @author: Leander Kotzur """ import tsib def test_get_ID(): # parameterize a building bdgcfg = tsib.BuildingConfiguration( { "refurbishment": False, "nightReduction": False, "occControl": False, ...
20.727273
47
0.509649
0
0
0
0
0
0
0
0
392
0.34386
1ca13538bfcd1f5b4948e14f8020f58d87fb25a8
25,791
py
Python
dislib/model_selection/_search.py
alexbarcelo/dislib
989f81f235ae30b17410a8d805df258c7d931b38
[ "Apache-2.0" ]
36
2018-10-22T19:21:14.000Z
2022-03-22T12:10:01.000Z
dislib/model_selection/_search.py
alexbarcelo/dislib
989f81f235ae30b17410a8d805df258c7d931b38
[ "Apache-2.0" ]
329
2018-11-22T18:04:57.000Z
2022-03-18T01:26:55.000Z
dislib/model_selection/_search.py
alexbarcelo/dislib
989f81f235ae30b17410a8d805df258c7d931b38
[ "Apache-2.0" ]
21
2019-01-10T11:46:39.000Z
2022-03-17T12:59:45.000Z
from abc import ABC, abstractmethod from collections import defaultdict from collections.abc import Sequence from functools import partial from itertools import product import numpy as np from pycompss.api.api import compss_wait_on from scipy.stats import rankdata from sklearn import clone from sklearn.model_selection...
44.087179
79
0.584351
25,217
0.977744
0
0
3,450
0.133768
0
0
17,885
0.693459
1ca1a822fc7884017cd3ac1dd4d887f9f5596b45
1,407
py
Python
webapp/ui/tests/test_parse_search_results.py
robseed/botanist
2f4fbab5d26499105a5057c86e0e6e37a2e8a727
[ "MIT" ]
null
null
null
webapp/ui/tests/test_parse_search_results.py
robseed/botanist
2f4fbab5d26499105a5057c86e0e6e37a2e8a727
[ "MIT" ]
null
null
null
webapp/ui/tests/test_parse_search_results.py
robseed/botanist
2f4fbab5d26499105a5057c86e0e6e37a2e8a727
[ "MIT" ]
null
null
null
import os from django.test import TestCase from mock import patch from ui.views import parse_search_results FIXTURES_ROOT = os.path.join(os.path.dirname(__file__), 'fixtures') FX = lambda *relpath: os.path.join(FIXTURES_ROOT, *relpath) @patch('ui.views.get_repo_type') @patch('ui.views.CODE_ROOT', '/opt/botanist/re...
43.96875
188
0.686567
1,081
0.768301
0
0
1,166
0.828714
0
0
503
0.357498
1ca1fbc58c354b91137807db3948258d4447da15
4,395
py
Python
minos/api_gateway/common/exceptions.py
Clariteia/api_gateway_common
e68095f31091699fc6cc4537bd6acf97a8dc6c3e
[ "MIT" ]
3
2021-05-14T08:13:09.000Z
2021-05-26T11:25:35.000Z
minos/api_gateway/common/exceptions.py
Clariteia/api_gateway_common
e68095f31091699fc6cc4537bd6acf97a8dc6c3e
[ "MIT" ]
27
2021-05-13T08:43:19.000Z
2021-08-24T17:19:36.000Z
minos/api_gateway/common/exceptions.py
Clariteia/api_gateway_common
e68095f31091699fc6cc4537bd6acf97a8dc6c3e
[ "MIT" ]
null
null
null
""" Copyright (C) 2021 Clariteia SL This file is part of minos framework. Minos framework can not be copied and/or distributed without the express permission of Clariteia SL. """ from typing import ( Any, Type, ) class MinosException(Exception): """Exception class for import packages or modules""" ...
30.520833
116
0.739022
4,106
0.934243
0
0
0
0
0
0
2,046
0.465529
1ca27636ecfdf6c794d529bed48bdedc1987bdf3
4,598
py
Python
tsdl/tools/extensions.py
burgerdev/hostload
93142628bb32923c5e6f3a8b791488d72a5c9077
[ "MIT" ]
null
null
null
tsdl/tools/extensions.py
burgerdev/hostload
93142628bb32923c5e6f3a8b791488d72a5c9077
[ "MIT" ]
null
null
null
tsdl/tools/extensions.py
burgerdev/hostload
93142628bb32923c5e6f3a8b791488d72a5c9077
[ "MIT" ]
null
null
null
""" Extensions for pylearn2 training algorithms. Those are either reimplemented to suit the execution model of this package, or new ones for recording metrics. """ import os import cPickle as pkl import numpy as np from pylearn2.train_extensions import TrainExtension from .abcs import Buildable class BuildableTr...
27.047059
78
0.626577
4,282
0.931274
0
0
989
0.215094
0
0
1,695
0.368639
1ca288015e226ac02375d4c474cc5edb714fc3e0
6,189
py
Python
nogi/utils/post_extractor.py
Cooomma/nogi-backup-blog
19868511d2b0f0c4d06bf4a88981bbfadc4121e4
[ "MIT" ]
null
null
null
nogi/utils/post_extractor.py
Cooomma/nogi-backup-blog
19868511d2b0f0c4d06bf4a88981bbfadc4121e4
[ "MIT" ]
164
2020-04-02T18:25:59.000Z
2022-02-17T17:09:32.000Z
nogi/utils/post_extractor.py
Cooomma/nogi-backup-blog
19868511d2b0f0c4d06bf4a88981bbfadc4121e4
[ "MIT" ]
null
null
null
import asyncio from io import BytesIO import logging import os import random import time from typing import List from urllib.parse import urlparse import aiohttp from aiohttp import ClientSession, TCPConnector import requests from requests import Response from tqdm import tqdm from nogi import REQUEST_HEADERS from no...
41.26
146
0.618517
5,483
0.885927
0
0
1,119
0.180805
1,724
0.278559
646
0.104379
1ca3e775b2d474b15aa148de47bee4762a8d884c
1,429
py
Python
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/gateway/dhcp.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
1
2020-10-05T08:53:57.000Z
2020-10-05T08:53:57.000Z
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/gateway/dhcp.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
17
2019-11-14T08:41:37.000Z
2020-05-27T09:23:51.000Z
sandbox/lib/jumpscale/JumpscaleLibsExtra/sal_zos/gateway/dhcp.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
from Jumpscale import j import signal from .. import templates DNSMASQ = "/bin/dnsmasq --conf-file=/etc/dnsmasq.conf -d" class DHCP: def __init__(self, container, domain, networks): self.container = container self.domain = domain self.networks = networks def apply_config(self): ...
36.641026
94
0.638908
1,304
0.912526
0
0
0
0
0
0
236
0.16515
1ca47a4968ffeca31ec462add05b792e1ab435c2
340
py
Python
answer/a4_type.py
breeze-shared-inc/python_training_01
7e918b37adbce062ae279f060bc25cfacda2fb85
[ "MIT" ]
null
null
null
answer/a4_type.py
breeze-shared-inc/python_training_01
7e918b37adbce062ae279f060bc25cfacda2fb85
[ "MIT" ]
1
2020-05-11T04:59:04.000Z
2020-05-11T05:29:08.000Z
answer/a4_type.py
bzgwhite/python_training_01
7e918b37adbce062ae279f060bc25cfacda2fb85
[ "MIT" ]
null
null
null
hensu_int = 17 #数字 hensu_float = 1.7 #小数点(浮動小数点) hensu_str = "HelloWorld" #文字列 hensu_bool = True #真偽 hensu_list = [] #リスト hensu_tuple = () #タプル hensu_dict = {} #辞書(ディクト)型 print(type(hensu_int)) print(type(hensu_float)) print(type(hensu_str)) print(type(hensu_bool)) print(type(hensu_list)) print(type(hensu_tuple)) prin...
21.25
29
0.732353
0
0
0
0
0
0
0
0
111
0.2775
1ca4f326c31dc7913ff0486df63cbab12df18fbe
888
py
Python
LEDdebug/examples/led-demo.py
UrsaLeo/LEDdebug
228af02468e4f3b617a50e6195931a623a4ad848
[ "Apache-2.0" ]
null
null
null
LEDdebug/examples/led-demo.py
UrsaLeo/LEDdebug
228af02468e4f3b617a50e6195931a623a4ad848
[ "Apache-2.0" ]
null
null
null
LEDdebug/examples/led-demo.py
UrsaLeo/LEDdebug
228af02468e4f3b617a50e6195931a623a4ad848
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """UrsaLeo LEDdebug board LED demo Turn the LED's on one at a time, then all off""" import time ON = 1 OFF = 0 DELAY = 0.5 # seconds try: from LEDdebug import LEDdebug except ImportError: try: import sys import os sys.path.append("..") sys.path.appen...
20.651163
69
0.595721
0
0
0
0
0
0
0
0
300
0.337838
1ca57a9994de049d5edebf8ee7ac8544c88a916a
6,352
py
Python
modules/server.py
Nitin-Mane/SARS-CoV-2-xDNN-Classifier
abb6a82b8ee89a041b0e26e14ec1e416c4561266
[ "MIT" ]
null
null
null
modules/server.py
Nitin-Mane/SARS-CoV-2-xDNN-Classifier
abb6a82b8ee89a041b0e26e14ec1e416c4561266
[ "MIT" ]
null
null
null
modules/server.py
Nitin-Mane/SARS-CoV-2-xDNN-Classifier
abb6a82b8ee89a041b0e26e14ec1e416c4561266
[ "MIT" ]
null
null
null
#!/usr/bin/env python ################################################################################### ## ## Project: COVID -19 xDNN Classifier 2020 ## Version: 1.0.0 ## Module: Server ## Desription: The COVID -19 xDNN Classifier 2020 server. ## License: MIT ## Copyright: 2021, Asociacion De Investigac...
31.60199
83
0.65318
4,246
0.668451
0
0
942
0.1483
0
0
3,230
0.508501
1ca5ea50e3b728f56855c54f3c17bbd2fb106298
4,382
py
Python
rdr_service/lib_fhir/fhirclient_3_0_0/models/allergyintolerance_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/lib_fhir/fhirclient_3_0_0/models/allergyintolerance_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/lib_fhir/fhirclient_3_0_0/models/allergyintolerance_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 3.0.0.11832 on 2017-03-22. # 2017, SMART Health IT. import io import json import os import unittest from . import allergyintolerance from .fhirdate import FHIRDate class AllergyIntoleranceTests(unittest.TestCase): def instantiate_from(self...
57.657895
153
0.707211
4,139
0.944546
0
0
0
0
0
0
1,153
0.263122
1ca66df25ee895df823541d354d97c61178071b8
4,107
py
Python
jsparse/meijiexia/meijiexia.py
PyDee/Spiders
6fc0a414060032b5ba4332302285e3fcc9a6113e
[ "Apache-2.0" ]
6
2020-06-02T16:22:58.000Z
2021-09-18T03:20:16.000Z
jsparse/meijiexia/meijiexia.py
PyDee/Spiders
6fc0a414060032b5ba4332302285e3fcc9a6113e
[ "Apache-2.0" ]
4
2021-03-31T19:54:37.000Z
2022-03-12T00:33:41.000Z
jsparse/meijiexia/meijiexia.py
PyDee/Spiders
6fc0a414060032b5ba4332302285e3fcc9a6113e
[ "Apache-2.0" ]
5
2020-06-02T16:23:00.000Z
2021-09-03T02:16:15.000Z
import time import random import requests from lxml import etree import pymongo from .url_file import mjx_weibo, mjx_dy, mjx_ks, mjx_xhs class DBMongo: def __init__(self): self.my_client = pymongo.MongoClient("mongodb://localhost:27017/") # 连接数据库 self.db = self.my_client["mcn"] def i...
41.07
450
0.567324
3,935
0.951172
0
0
129
0.031182
0
0
1,641
0.396664
1ca67740a4b7ba54382fd28803af944938695c13
2,756
py
Python
MLModules/ABD/B_PCAQDA.py
jamster112233/ICS_IDS
dac6abc3c8d6e840a21adedcb9e8dcfaa304b499
[ "BSD-3-Clause" ]
null
null
null
MLModules/ABD/B_PCAQDA.py
jamster112233/ICS_IDS
dac6abc3c8d6e840a21adedcb9e8dcfaa304b499
[ "BSD-3-Clause" ]
null
null
null
MLModules/ABD/B_PCAQDA.py
jamster112233/ICS_IDS
dac6abc3c8d6e840a21adedcb9e8dcfaa304b499
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from keras.utils import np_utils import pandas as pd import sys from sklearn.preprocessing import LabelEncoder from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis as QDA from sklearn.decomposition import PCA import os from sklearn.externals import joblib from sklearn.metrics impor...
26.757282
105
0.675617
0
0
0
0
0
0
0
0
521
0.189042
1ca68195c840c66d0de8f1f855f4ded2b7c95a94
2,850
py
Python
GR2-Save-Loader.py
203Null/Gravity-Rush-2-Save-Loader
40cf8a1748449c0e019a2e57ac2b8eccd50d8917
[ "MIT" ]
2
2022-02-06T10:40:22.000Z
2022-02-06T10:45:51.000Z
GR2-Save-Loader.py
203Null/Gravity-Rush-2-Save-Loader
40cf8a1748449c0e019a2e57ac2b8eccd50d8917
[ "MIT" ]
null
null
null
GR2-Save-Loader.py
203Null/Gravity-Rush-2-Save-Loader
40cf8a1748449c0e019a2e57ac2b8eccd50d8917
[ "MIT" ]
null
null
null
import struct import json from collections import OrderedDict file_path = "data0002.bin" show_offset = True show_hash = False loaded_data = 0 def unpack(upstream_data_set): global loaded_data loaded_data = loaded_data + 1 currentCursor = file.tell() print(hex(file.tell())) file.seek(...
36.075949
115
0.587719
0
0
0
0
0
0
0
0
329
0.115439
1ca867b22f2e4c2942595bca95ab919246220f6f
342
py
Python
python/Recursion.py
itzsoumyadip/vs
acf32cd0bacb26e62854060e0acf5eb41b7a68c8
[ "Unlicense" ]
1
2019-07-05T04:27:05.000Z
2019-07-05T04:27:05.000Z
python/Recursion.py
itzsoumyadip/vs
acf32cd0bacb26e62854060e0acf5eb41b7a68c8
[ "Unlicense" ]
null
null
null
python/Recursion.py
itzsoumyadip/vs
acf32cd0bacb26e62854060e0acf5eb41b7a68c8
[ "Unlicense" ]
null
null
null
## to change recursion limit import sys print(sys.getrecursionlimit()) #Return the current value of the recursion limit #1000 ## change the limit sys.setrecursionlimit(2000) # change value of the recursion limit #2000 i=0 def greet(): global i i+=1 print('hellow',i) greet() greet() # hellow...
18
80
0.678363
0
0
0
0
0
0
0
0
183
0.535088
1ca91ede49b4b76cb020ec83f9b1603af4b3c7c0
1,406
py
Python
pages/tests/test_views.py
andywar65/starter-fullstack
683d6282eb02a9b967d15cd254976e67549672e9
[ "BSD-2-Clause" ]
null
null
null
pages/tests/test_views.py
andywar65/starter-fullstack
683d6282eb02a9b967d15cd254976e67549672e9
[ "BSD-2-Clause" ]
null
null
null
pages/tests/test_views.py
andywar65/starter-fullstack
683d6282eb02a9b967d15cd254976e67549672e9
[ "BSD-2-Clause" ]
null
null
null
from django.test import TestCase, override_settings from django.urls import reverse from pages.models import Article, HomePage @override_settings(USE_I18N=False) class PageViewTest(TestCase): @classmethod def setUpTestData(cls): print("\nTest page views") # Set up non-modified objects used by...
35.15
77
0.647226
1,240
0.881935
0
0
1,275
0.906828
0
0
347
0.246799
1caa879917346512e7a2dc23a9df954e997c28d0
26,030
py
Python
poco/services/batch/server.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
null
null
null
poco/services/batch/server.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
7
2019-03-22T06:26:39.000Z
2021-06-10T19:36:06.000Z
poco/services/batch/server.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
1
2017-10-25T03:43:51.000Z
2017-10-25T03:43:51.000Z
#!/usr/bin/env python import logging import sys sys.path.append("../../") sys.path.append("pylib") import time import datetime import pymongo import uuid import os import subprocess import os.path import settings from common.utils import getSiteDBCollection sys.path.insert(0, "../../") class LoggingManager: de...
39.142857
106
0.678871
17,860
0.686131
0
0
0
0
0
0
4,273
0.164157
1caaa79685649df41865169e49ad903c14174dcc
4,488
py
Python
tests/integration/basket/model_tests.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
tests/integration/basket/model_tests.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
tests/integration/basket/model_tests.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal as D from django.test import TestCase from oscar.apps.basket.models import Basket from oscar.apps.partner import strategy from oscar.test import factories from oscar.apps.catalogue.models import Option class TestAddingAProductToABasket(TestCase): def setUp(self): self.basket...
35.619048
93
0.694296
4,244
0.945633
0
0
0
0
0
0
83
0.018494
1caab3990fb21bf24a942c5cae050f1ff9f8b143
305
py
Python
tests/fixtures/db/sqlite.py
code-watch/meltano
2afff73ed43669b5134dacfce61814f7f4e77a13
[ "MIT" ]
8
2020-06-16T22:29:54.000Z
2021-06-04T11:57:57.000Z
tests/fixtures/db/sqlite.py
dotmesh-io/meltano
4616d44ded9dff4e9ad19a9004349e9baa16ddd5
[ "MIT" ]
38
2019-12-09T06:53:33.000Z
2022-03-29T22:29:19.000Z
tests/fixtures/db/sqlite.py
aroder/meltano
b8d1d812f4051b6334986fc6b447d23c4d0d5043
[ "MIT" ]
2
2020-06-16T22:29:59.000Z
2020-11-04T05:47:50.000Z
import pytest import os import sqlalchemy import contextlib @pytest.fixture(scope="session") def engine_uri(test_dir): database_path = test_dir.joinpath("pytest_meltano.db") try: database_path.unlink() except FileNotFoundError: pass return f"sqlite:///{database_path}"
17.941176
58
0.714754
0
0
0
0
242
0.793443
0
0
56
0.183607
1cab057f92135b745b2c22597acdb2d7401a8e30
11,134
py
Python
experiments/render-tests-avg.py
piotr-karon/realworld-starter-kit
6285e4b5913fe5e99d72e9178eb4b1db246d02c9
[ "MIT" ]
null
null
null
experiments/render-tests-avg.py
piotr-karon/realworld-starter-kit
6285e4b5913fe5e99d72e9178eb4b1db246d02c9
[ "MIT" ]
null
null
null
experiments/render-tests-avg.py
piotr-karon/realworld-starter-kit
6285e4b5913fe5e99d72e9178eb4b1db246d02c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import os from pathlib import Path import numpy as np from natsort import natsorted try: from docopt import docopt from marko.ext.gfm import gfm import pygal from pygal.style import Style, DefaultStyle except ImportError as e: raise Exception('Some external depe...
36.032362
157
0.647566
0
0
0
0
5,879
0.526462
0
0
3,297
0.295245
1cab32916328111ed29e8c7581e89b8013c63586
9,839
py
Python
litex/build/altera/quartus.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
1,501
2016-04-19T18:16:21.000Z
2022-03-31T17:46:31.000Z
litex/build/altera/quartus.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
1,135
2016-04-19T05:49:14.000Z
2022-03-31T15:21:19.000Z
litex/build/altera/quartus.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
357
2016-04-19T05:00:24.000Z
2022-03-31T11:28:32.000Z
# # This file is part of LiteX. # # Copyright (c) 2014-2019 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2019 msloniewski <marcin.sloniewski@gmail.com> # Copyright (c) 2019 vytautasb <v.buitvydas@limemicro.com> # SPDX-License-Identifier: BSD-2-Clause import os import subprocess import sys import math f...
38.433594
107
0.598536
2,747
0.279195
0
0
0
0
0
0
3,217
0.326964
1cab4f72005e2a4605f4cdeb62be5961ecba1542
336
py
Python
arxiv/canonical/util.py
arXiv/arxiv-canonical
a758ed88a568f23a834288aed4dcf7039c1340cf
[ "MIT" ]
5
2019-05-26T22:52:54.000Z
2021-11-05T12:27:11.000Z
arxiv/canonical/util.py
arXiv/arxiv-canonical
a758ed88a568f23a834288aed4dcf7039c1340cf
[ "MIT" ]
31
2019-06-24T13:51:25.000Z
2021-11-12T22:27:10.000Z
arxiv/canonical/util.py
arXiv/arxiv-canonical
a758ed88a568f23a834288aed4dcf7039c1340cf
[ "MIT" ]
4
2019-01-10T22:01:54.000Z
2021-11-05T12:26:58.000Z
"""Various helpers and utilities that don't belong anywhere else.""" from typing import Dict, Generic, TypeVar KeyType = TypeVar('KeyType') ValueType = TypeVar('ValueType') class GenericMonoDict(Dict[KeyType, ValueType]): """A dict with specific key and value types.""" def __getitem__(self, key: KeyType) -...
28
68
0.720238
159
0.473214
0
0
0
0
0
0
135
0.401786
1cac1152c0bc42f93be158e0a7b59715a3e05f13
198
py
Python
records/urls.py
Glucemy/Glucemy-back
c9fcf7996b3f13c67697aadd449e3e32afb1fa1b
[ "MIT" ]
null
null
null
records/urls.py
Glucemy/Glucemy-back
c9fcf7996b3f13c67697aadd449e3e32afb1fa1b
[ "MIT" ]
null
null
null
records/urls.py
Glucemy/Glucemy-back
c9fcf7996b3f13c67697aadd449e3e32afb1fa1b
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from records.views import RecordViewSet router = DefaultRouter() router.register('', RecordViewSet, basename='records') urlpatterns = router.urls
22
54
0.813131
0
0
0
0
0
0
0
0
11
0.055556
1cac38aa4a5a8e636d6285190a3fb18a56c06114
10,831
py
Python
polystores/stores/azure_store.py
polyaxon/polystores
141789ef75622c80d1f3875cec6952ad3c2d5ec7
[ "MIT" ]
50
2018-12-10T14:46:12.000Z
2021-11-03T16:38:58.000Z
polystores/stores/azure_store.py
polyaxon/polystores
141789ef75622c80d1f3875cec6952ad3c2d5ec7
[ "MIT" ]
17
2019-01-21T14:14:30.000Z
2019-08-23T20:39:07.000Z
polystores/stores/azure_store.py
polyaxon/polystores
141789ef75622c80d1f3875cec6952ad3c2d5ec7
[ "MIT" ]
8
2019-01-21T14:52:37.000Z
2019-07-29T19:53:12.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from rhea import RheaError from rhea import parser as rhea_parser from azure.common import AzureHttpError from azure.storage.blob.models import BlobPrefix from polystores.clients.azure_client import get_blob_service_c...
35.864238
98
0.587942
10,255
0.946819
0
0
708
0.065368
0
0
3,105
0.286677
1cad3cf72fd9e55c370708003b5cfc6962c4bf8e
22,217
py
Python
analysis/webservice/NexusHandler.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
23
2016-08-09T22:45:14.000Z
2020-02-17T08:18:29.000Z
analysis/webservice/NexusHandler.py
lewismc/incubator-sdap-nexus
ff98fa346303431542b8391cc2a1bf7561d1bd03
[ "Apache-2.0" ]
6
2017-04-27T21:22:17.000Z
2021-06-01T21:45:52.000Z
analysis/webservice/NexusHandler.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
5
2016-08-31T13:47:29.000Z
2017-11-14T21:45:22.000Z
""" Copyright (c) 2016 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved """ import sys import numpy as np import logging import time import types from datetime import datetime from netCDF4 import Dataset from nexustiles.nexustiles import NexusTileService from webservice.webmodel impor...
40.030631
165
0.508755
19,354
0.871135
0
0
6,508
0.292929
0
0
3,238
0.145744
1cade1c54a41deec5844621516e8934dad9ba6ed
2,602
py
Python
utils/box/metric.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
9
2021-05-26T05:51:19.000Z
2021-12-25T02:31:55.000Z
utils/box/metric.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
4
2021-09-17T11:24:20.000Z
2022-03-16T02:07:33.000Z
utils/box/metric.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
null
null
null
import numpy as np from collections import defaultdict, Counter from .rbbox_np import rbbox_iou def get_ap(recall, precision): recall = [0] + list(recall) + [1] precision = [0] + list(precision) + [0] for i in range(len(precision) - 1, 0, -1): precision[i - 1] = max(precision[i - 1], precision[i...
37.171429
117
0.563028
0
0
0
0
0
0
0
0
36
0.013836
1caee980c9d28fcb7768f3cf4259dd89c12fcb4a
5,186
py
Python
app.py
winstonschroeder/setlistmanager
3c177a8da4bd56049964076f6ead51e3fffff5fa
[ "MIT" ]
null
null
null
app.py
winstonschroeder/setlistmanager
3c177a8da4bd56049964076f6ead51e3fffff5fa
[ "MIT" ]
null
null
null
app.py
winstonschroeder/setlistmanager
3c177a8da4bd56049964076f6ead51e3fffff5fa
[ "MIT" ]
null
null
null
import logging import pygame from app import * from pygame.locals import * from werkzeug.serving import run_simple from web import webapp as w import data_access as da logging.basicConfig(filename='setlistmanager.log', level=logging.DEBUG) SCREEN_WIDTH = 160 SCREEN_HEIGHT = 128 class Button: pass class Text()...
35.040541
122
0.571732
4,896
0.94408
0
0
0
0
0
0
1,621
0.312572
1caf08d291951db640773cc4547ec6df82e53a36
4,488
py
Python
sim_keypoints.py
Praznat/annotationmodeling
014b8b94b2225f947691c18b26eb8a4b148d2c8a
[ "BSD-3-Clause" ]
8
2020-05-03T20:01:03.000Z
2021-12-20T12:24:34.000Z
sim_keypoints.py
Praznat/annotationmodeling
014b8b94b2225f947691c18b26eb8a4b148d2c8a
[ "BSD-3-Clause" ]
1
2021-11-19T02:33:19.000Z
2021-12-28T03:22:33.000Z
sim_keypoints.py
Praznat/annotationmodeling
014b8b94b2225f947691c18b26eb8a4b148d2c8a
[ "BSD-3-Clause" ]
4
2020-05-04T15:04:57.000Z
2021-11-04T18:14:26.000Z
import json import pandas as pd import numpy as np from matplotlib import pyplot as plt import simulation from eval_functions import oks_score_multi import utils def alter_location(points, x_offset, y_offset): x, y = points.T return np.array([x + x_offset, y + y_offset]).T def alter_rotation(points, radians):...
43.153846
143
0.64951
2,419
0.538993
0
0
0
0
0
0
231
0.051471
1cb1d08525c852f3c763a5bfd0e70b7e85abb9c4
6,592
py
Python
local/controller.py
Loptt/home-automation-system
f1878596905e022d1d626d485d1a29dc7212f480
[ "MIT" ]
null
null
null
local/controller.py
Loptt/home-automation-system
f1878596905e022d1d626d485d1a29dc7212f480
[ "MIT" ]
null
null
null
local/controller.py
Loptt/home-automation-system
f1878596905e022d1d626d485d1a29dc7212f480
[ "MIT" ]
null
null
null
import requests import time import os import sys import json import threading from getpass import getpass import schedule import event as e import configuration as c import RPi.GPIO as GPIO #SERVER_URL = "https://home-automation-289621.uc.r.appspot.com" #SERVER_URL = "http://127.0.0.1:4747" SERVER_URL = "http://192.16...
29.168142
226
0.618174
0
0
0
0
0
0
0
0
1,175
0.178246
1cb40b16f030cc0fc491e5ff712cd9ba3b6fe9c3
1,640
py
Python
src/graphql_sqlalchemy/graphql_types.py
gzzo/graphql-sqlalchemy
54a30d0b2fe2d5a1eb3668f0f7bc6ec3cb366ec4
[ "MIT" ]
12
2020-06-11T18:17:46.000Z
2021-11-23T04:23:59.000Z
src/graphql_sqlalchemy/graphql_types.py
gzzo/graphql-sqlalchemy
54a30d0b2fe2d5a1eb3668f0f7bc6ec3cb366ec4
[ "MIT" ]
9
2020-06-03T21:34:50.000Z
2021-05-23T16:48:01.000Z
src/graphql_sqlalchemy/graphql_types.py
gzzo/graphql-sqlalchemy
54a30d0b2fe2d5a1eb3668f0f7bc6ec3cb366ec4
[ "MIT" ]
2
2020-07-02T09:59:30.000Z
2021-04-13T19:28:48.000Z
from typing import Dict, Union from graphql import ( GraphQLBoolean, GraphQLFloat, GraphQLInputField, GraphQLInt, GraphQLList, GraphQLNonNull, GraphQLScalarType, GraphQLString, ) from sqlalchemy import ARRAY, Boolean, Float, Integer from sqlalchemy.dialects.postgresql import ARRAY as PG...
32.8
116
0.739024
0
0
0
0
0
0
0
0
69
0.042073
1cb410c38e7b086fc006f0a9169efd98fc6fc76d
3,223
py
Python
Knapsack.py
byterubpay/mininero1
ea6b8017cdbab82011d7f329e7726cc52d1ef431
[ "BSD-3-Clause" ]
182
2016-02-05T18:33:09.000Z
2022-03-23T12:31:54.000Z
Knapsack.py
byterubpay/mininero1
ea6b8017cdbab82011d7f329e7726cc52d1ef431
[ "BSD-3-Clause" ]
81
2016-09-04T14:00:24.000Z
2022-03-28T17:22:52.000Z
Knapsack.py
byterubpay/mininero1
ea6b8017cdbab82011d7f329e7726cc52d1ef431
[ "BSD-3-Clause" ]
63
2016-02-05T19:38:06.000Z
2022-03-07T06:07:46.000Z
import Crypto.Random.random as rand import itertools import math #for log import sys def decomposition(i): #from stack exchange, don't think it's uniform while i > 0: n = rand.randint(1, i) yield n i -= n def Decomposition(i): while True: l = list(decomposition(i)) i...
29.036036
99
0.559727
0
0
151
0.046851
0
0
0
0
642
0.199193
1cb4f5278643eda7e6d9e305ee74cda8346049cd
14,601
py
Python
drought_impact_forecasting/models/model_parts/Conv_Transformer.py
rudolfwilliam/satellite_image_forecasting
164ee7e533e1a8d730a0ee9c0062fd9b32e0bcdc
[ "MIT" ]
4
2021-12-16T18:32:01.000Z
2021-12-28T15:57:27.000Z
drought_impact_forecasting/models/model_parts/Conv_Transformer.py
rudolfwilliam/satellite_image_forecasting
164ee7e533e1a8d730a0ee9c0062fd9b32e0bcdc
[ "MIT" ]
null
null
null
drought_impact_forecasting/models/model_parts/Conv_Transformer.py
rudolfwilliam/satellite_image_forecasting
164ee7e533e1a8d730a0ee9c0062fd9b32e0bcdc
[ "MIT" ]
2
2021-10-05T15:01:47.000Z
2021-12-28T15:57:14.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from einops import rearrange from .shared import Conv_Block from ..utils.utils import zeros, mean_cube, last_frame, ENS class Residual(nn.Module): def __init__(self, fn): super().__init__() self.fn = fn def f...
48.996644
184
0.617423
14,376
0.98459
0
0
0
0
0
0
1,489
0.101979
1cb668eb96e3db81034b5b4b90591cfcdc750510
2,325
py
Python
tests/test_clients.py
rodrigoapereira/python-hydra-sdk
ea3d61ed6f7ef1bc1990c442548d21b10155d075
[ "MIT" ]
null
null
null
tests/test_clients.py
rodrigoapereira/python-hydra-sdk
ea3d61ed6f7ef1bc1990c442548d21b10155d075
[ "MIT" ]
null
null
null
tests/test_clients.py
rodrigoapereira/python-hydra-sdk
ea3d61ed6f7ef1bc1990c442548d21b10155d075
[ "MIT" ]
null
null
null
# Copyright (C) 2017 O.S. Systems Software LTDA. # This software is released under the MIT License import unittest from hydra import Hydra, Client class ClientsTestCase(unittest.TestCase): def setUp(self): self.hydra = Hydra('http://localhost:4444', 'client', 'secret') self.client = Client( ...
40.086207
77
0.67871
2,173
0.934624
0
0
0
0
0
0
328
0.141075
1cb6b746023f10a214f482d1a5a600bbf6962f4e
4,097
py
Python
test/PR_test/unit_test/backend/test_binary_crossentropy.py
Phillistan16/fastestimator
54c9254098aee89520814ed54b6e6016b821424f
[ "Apache-2.0" ]
null
null
null
test/PR_test/unit_test/backend/test_binary_crossentropy.py
Phillistan16/fastestimator
54c9254098aee89520814ed54b6e6016b821424f
[ "Apache-2.0" ]
null
null
null
test/PR_test/unit_test/backend/test_binary_crossentropy.py
Phillistan16/fastestimator
54c9254098aee89520814ed54b6e6016b821424f
[ "Apache-2.0" ]
1
2020-04-28T12:16:10.000Z
2020-04-28T12:16:10.000Z
# Copyright 2020 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
48.77381
115
0.608494
3,301
0.805711
0
0
285
0.069563
0
0
678
0.165487
1cb6d29da4f211a81a8c27dc9b9e2bda5b85f6c6
619
py
Python
ats_hex.py
kyeser/scTools
c4c7dee0c41c8afe1da6350243df5f9d9b929c7f
[ "MIT" ]
null
null
null
ats_hex.py
kyeser/scTools
c4c7dee0c41c8afe1da6350243df5f9d9b929c7f
[ "MIT" ]
null
null
null
ats_hex.py
kyeser/scTools
c4c7dee0c41c8afe1da6350243df5f9d9b929c7f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from scTools import interval, primeForm from scTools.rowData import ats from scTools.scData import * count = 1 for w in ats: prime = primeForm(w[0:6]) print '%3d\t' % count, for x in w: print '%X' % x, print ' ', intervals = interval(w) for y in intervals: ...
20.633333
65
0.544426
0
0
0
0
0
0
0
0
59
0.095315
1cb7e53b2c17e731b27a68b654287de75f6d7775
1,042
py
Python
src/precon/commands.py
Albert-91/precon
aaded1d6a5f743b3539ea46b19a37a7bf9930e05
[ "MIT" ]
null
null
null
src/precon/commands.py
Albert-91/precon
aaded1d6a5f743b3539ea46b19a37a7bf9930e05
[ "MIT" ]
null
null
null
src/precon/commands.py
Albert-91/precon
aaded1d6a5f743b3539ea46b19a37a7bf9930e05
[ "MIT" ]
null
null
null
import asyncio import click from precon.devices_handlers.distance_sensor import show_distance as show_distance_func from precon.remote_control import steer_vehicle, Screen try: import RPi.GPIO as GPIO except (RuntimeError, ModuleNotFoundError): import fake_rpi GPIO = fake_rpi.RPi.GPIO @click.command(n...
25.414634
87
0.690019
0
0
0
0
734
0.704415
0
0
139
0.133397
1cb813fdb41b3152ecad7b90bfbabd5c02323b45
57,607
py
Python
midway.py
sjtichenor/midway-ford
43bf8770f2edd483d7c27dede8b9ac1fb8f10152
[ "MIT" ]
null
null
null
midway.py
sjtichenor/midway-ford
43bf8770f2edd483d7c27dede8b9ac1fb8f10152
[ "MIT" ]
null
null
null
midway.py
sjtichenor/midway-ford
43bf8770f2edd483d7c27dede8b9ac1fb8f10152
[ "MIT" ]
null
null
null
import csv import string import ftplib import math import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import sqlite...
39.894044
537
0.591282
0
0
0
0
0
0
0
0
23,342
0.405194
1cb871009f40d73e438998df7547b42738178c54
3,932
py
Python
monolithe/generators/sdkgenerator.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
18
2015-06-24T18:35:20.000Z
2022-01-19T19:04:00.000Z
monolithe/generators/sdkgenerator.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
63
2015-11-03T18:57:12.000Z
2020-09-30T02:54:49.000Z
monolithe/generators/sdkgenerator.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
38
2015-10-23T19:04:44.000Z
2021-06-04T08:13:33.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # no...
44.179775
115
0.721261
2,043
0.519583
0
0
0
0
0
0
1,891
0.480926
1cb99804e820098ccccda4d6284924e807ceb66e
1,787
py
Python
rllab-taewoo/rllab/plotter/plotter.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
rllab-taewoo/rllab/plotter/plotter.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
rllab-taewoo/rllab/plotter/plotter.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
import atexit import sys if sys.version_info[0] == 2: from Queue import Empty else: from queue import Empty from multiprocessing import Process, Queue from rllab.sampler.utils import rollout import numpy as np __all__ = [ 'init_worker', 'init_plot', 'update_plot' ] process = None queue = None de...
24.479452
94
0.564633
0
0
0
0
0
0
0
0
186
0.104085
1cbc8c259914408b1b3a8b596c9f92062c17a6d8
1,902
py
Python
OpenCV/bookIntroCV_008_binarizacao.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
OpenCV/bookIntroCV_008_binarizacao.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
OpenCV/bookIntroCV_008_binarizacao.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
''' Livro-Introdução-a-Visão-Computacional-com-Python-e-OpenCV-3 Repositório de imagens https://github.com/opencv/opencv/tree/master/samples/data ''' import cv2 import numpy as np from matplotlib import pyplot as plt #import mahotas VERMELHO = (0, 0, 255) VERDE = (0, 255, 0) AZUL = (255, 0, 0) AMARELO = (0, 255, ...
24.384615
102
0.684017
0
0
0
0
0
0
0
0
972
0.507572
1cbebb0ca1313739b0fe47f6d54aaa9f17675ecf
1,949
py
Python
djangito/backends.py
mechanicbuddy/djangito
07c08a83c57577cbf945bba461219bc0ef2a7695
[ "Apache-2.0" ]
null
null
null
djangito/backends.py
mechanicbuddy/djangito
07c08a83c57577cbf945bba461219bc0ef2a7695
[ "Apache-2.0" ]
null
null
null
djangito/backends.py
mechanicbuddy/djangito
07c08a83c57577cbf945bba461219bc0ef2a7695
[ "Apache-2.0" ]
null
null
null
import base64 import json import jwt import requests from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend USER_MODEL = get_user_model() class ALBAuth(ModelBackend): def authenticate(self, request, **kwargs): if request: ...
29.984615
75
0.626988
1,725
0.885069
0
0
0
0
0
0
358
0.183684
1cbf5ae6b77e5700645e93821c03cc92778db151
11,306
py
Python
data_profiler/labelers/regex_model.py
gme5078/data-profiler
602cc5e4f4463f9b807000abf3893815918d0723
[ "Apache-2.0" ]
null
null
null
data_profiler/labelers/regex_model.py
gme5078/data-profiler
602cc5e4f4463f9b807000abf3893815918d0723
[ "Apache-2.0" ]
null
null
null
data_profiler/labelers/regex_model.py
gme5078/data-profiler
602cc5e4f4463f9b807000abf3893815918d0723
[ "Apache-2.0" ]
null
null
null
import json import os import sys import re import copy import numpy as np from data_profiler.labelers.base_model import BaseModel from data_profiler.labelers.base_model import AutoSubRegistrationMeta _file_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(_file_dir) class RegexModel(BaseModel, metac...
38.719178
81
0.523527
11,018
0.974527
0
0
713
0.063064
0
0
4,874
0.431099
1cbf73995d2a6d71959f99c6cb216fdecd75b4e3
1,693
py
Python
taller_estructuras_de_control_selectivas/ejercicio_13.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
taller_estructuras_de_control_selectivas/ejercicio_13.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
taller_estructuras_de_control_selectivas/ejercicio_13.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
# Desarrolle un un programa que reciba la fecha de nacimiento # de una persona, y como salida, indique el nombre del signo del # zodiaco correspondiente, ademas de su edad def zodiaco(DD, MM): if (((DD >= 22) and (MM == 11)) or ((DD <=21) and (MM == 12))): return("Sagitario") if (((DD >= 22) and (MM ==...
33.196078
130
0.512109
0
0
0
0
0
0
0
0
445
0.262692
1cc05adcc568b6fb2373878d0e0ebc62065ed391
5,110
py
Python
assignment3/crawler/spiders/benchmark_spider.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
8
2020-02-22T12:47:12.000Z
2021-12-03T11:39:19.000Z
assignment3/crawler/spiders/benchmark_spider.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
null
null
null
assignment3/crawler/spiders/benchmark_spider.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
4
2018-08-15T12:58:36.000Z
2021-12-29T07:06:29.000Z
import re, scrapy from crawler.items import * class BenchmarkSpider(scrapy.Spider): drop_params = True # Spider name, for use with the scrapy crawl command name = "benchmarks" # Constants to get url parts FULL, PROTOCOL, USER, PASSWORD, SUBDOMAIN, DOMAIN, TOP_LEVEL_DOMAIN, PORT_NUM, PATH, PAGE, GE...
33.181818
218
0.520939
5,063
0.990802
1,633
0.319569
0
0
0
0
1,907
0.37319
1cc17ff4c766e10f3ad5dd61384738c26b148c2c
22,005
py
Python
octavia_tempest_plugin/services/load_balancer/v2/listener_client.py
NeCTAR-RC/octavia-tempest-plugin
5506c00b8d8972e6223499dd5a5da4c85c1ff836
[ "Apache-2.0" ]
null
null
null
octavia_tempest_plugin/services/load_balancer/v2/listener_client.py
NeCTAR-RC/octavia-tempest-plugin
5506c00b8d8972e6223499dd5a5da4c85c1ff836
[ "Apache-2.0" ]
null
null
null
octavia_tempest_plugin/services/load_balancer/v2/listener_client.py
NeCTAR-RC/octavia-tempest-plugin
5506c00b8d8972e6223499dd5a5da4c85c1ff836
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 GoDaddy # # 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 ...
58.836898
79
0.578278
21,218
0.964235
0
0
0
0
0
0
18,607
0.845581
1cc2858f2edc96485c6ae59c62afeb79423f9cef
1,180
py
Python
ryu/gui/views/router_address_delete.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
3
2019-04-23T11:11:46.000Z
2020-11-04T20:14:17.000Z
ryu/gui/views/router_address_delete.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
null
null
null
ryu/gui/views/router_address_delete.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
3
2019-10-03T09:31:42.000Z
2021-05-15T04:41:12.000Z
import re import logging import httplib import view_base from models import rt_proxy LOG = logging.getLogger('ryu.gui') class RtAddrDel(view_base.ViewBase): def __init__(self, host, port, dpid, address_id, status=None): super(RtAddrDel, self).__init__() self.host = host self.port = port ...
26.818182
79
0.594915
1,057
0.895763
0
0
0
0
0
0
150
0.127119
1cc4d424336a53cdc71bcc2c504f86ad318db561
361
py
Python
tests/util/test_helper.py
TobiasRasbold/pywrangler
3f4ba5891a75430e0882b223bda4c6c7f55dbd51
[ "MIT" ]
14
2019-04-08T21:14:50.000Z
2022-02-12T18:58:48.000Z
tests/util/test_helper.py
TobiasRasbold/pywrangler
3f4ba5891a75430e0882b223bda4c6c7f55dbd51
[ "MIT" ]
27
2019-03-15T12:35:29.000Z
2020-07-10T10:31:38.000Z
tests/util/test_helper.py
TobiasRasbold/pywrangler
3f4ba5891a75430e0882b223bda4c6c7f55dbd51
[ "MIT" ]
3
2019-11-20T11:18:06.000Z
2021-07-26T04:50:00.000Z
"""This module contains tests for the helper module. """ from pywrangler.util.helper import get_param_names def test_get_param_names(): def func(): pass assert get_param_names(func) == [] def func1(a, b=4, c=6): pass assert get_param_names(func1) == ["a", "b", "c"] assert get...
18.05
54
0.609418
0
0
0
0
0
0
0
0
75
0.207756
1cc5fd243fb313db4d6da43f6b24a969983fb154
964
py
Python
Python-Files/model_conversion/convert_to_tflite.py
jcgeo9/ML-For-Fish-Recognition
0b5faba77d0b2c5452950637f047882c80fa6fb7
[ "Apache-2.0" ]
null
null
null
Python-Files/model_conversion/convert_to_tflite.py
jcgeo9/ML-For-Fish-Recognition
0b5faba77d0b2c5452950637f047882c80fa6fb7
[ "Apache-2.0" ]
null
null
null
Python-Files/model_conversion/convert_to_tflite.py
jcgeo9/ML-For-Fish-Recognition
0b5faba77d0b2c5452950637f047882c80fa6fb7
[ "Apache-2.0" ]
null
null
null
# ============================================================================= # Created By : Giannis Kostas Georgiou # Project : Machine Learning for Fish Recognition (Individual Project) # ============================================================================= # Description : File in order to convert save...
43.818182
79
0.572614
0
0
0
0
0
0
0
0
733
0.760373
1cc629a630efb8f26ff269373c402c157da69af1
2,283
py
Python
python3/sparkts/test/test_datetimeindex.py
hedibejaoui/spark-timeseries
9112dcbbba4e095b5eb46c568e1c72e13e1f251a
[ "Apache-2.0" ]
null
null
null
python3/sparkts/test/test_datetimeindex.py
hedibejaoui/spark-timeseries
9112dcbbba4e095b5eb46c568e1c72e13e1f251a
[ "Apache-2.0" ]
null
null
null
python3/sparkts/test/test_datetimeindex.py
hedibejaoui/spark-timeseries
9112dcbbba4e095b5eb46c568e1c72e13e1f251a
[ "Apache-2.0" ]
1
2021-09-05T15:05:53.000Z
2021-09-05T15:05:53.000Z
from .test_utils import PySparkTestCase from sparkts.datetimeindex import * import pandas as pd class DateTimeIndexTestCase(PySparkTestCase): def test_frequencies(self): bd = BusinessDayFrequency(1, 1, self.sc) self.assertEqual(bd.days(), 1) hf = HourFrequency(4, self.sc) s...
45.66
90
0.654402
2,184
0.956636
0
0
0
0
0
0
236
0.103373
1cc943b894a8b8ca43a398705ed5a7c52cece87e
492
py
Python
src/listIntersect/inter.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
null
null
null
src/listIntersect/inter.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
null
null
null
src/listIntersect/inter.py
rajitbanerjee/leetcode
720fcdd88d371e2d6592ceec8370a6760a77bb89
[ "CC0-1.0" ]
1
2021-04-28T18:17:55.000Z
2021-04-28T18:17:55.000Z
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode: seen = set() curr = headA while curr: seen.add(curr) ...
21.391304
80
0.530488
451
0.916667
0
0
0
0
0
0
36
0.073171
1ccaa4cf179ca9984d4a2effe3502e46bd80d7d5
1,214
py
Python
photon_stream_production/tests/test_drs_run_assignment.py
fact-project/photon_stream_production
ca2f946976c9a9717cfcd9364f2361ef385b45aa
[ "MIT" ]
null
null
null
photon_stream_production/tests/test_drs_run_assignment.py
fact-project/photon_stream_production
ca2f946976c9a9717cfcd9364f2361ef385b45aa
[ "MIT" ]
2
2019-01-17T12:11:27.000Z
2019-02-27T14:51:05.000Z
photon_stream_production/tests/test_drs_run_assignment.py
fact-project/photon_stream_production
ca2f946976c9a9717cfcd9364f2361ef385b45aa
[ "MIT" ]
null
null
null
import numpy as np import photon_stream as ps import photon_stream_production as psp import pkg_resources import os runinfo_path = pkg_resources.resource_filename( 'photon_stream_production', os.path.join('tests', 'resources', 'runinfo_20161115_to_20170103.csv') ) drs_fRunID_for_obs_run = psp.drs_run._drs_fRu...
30.35
74
0.660626
0
0
0
0
0
0
0
0
104
0.085667
1ccbfd84ed556c53c45b775bad63d6e98f029035
2,444
py
Python
accounts/migrations/0001_initial.py
vikifox/CMDB
bac9b7da204c3eee344f55bb2187df38ef3b3d4c
[ "Apache-2.0" ]
16
2020-08-13T04:28:50.000Z
2021-06-10T06:24:51.000Z
accounts/migrations/0001_initial.py
vikifox/CMDB
bac9b7da204c3eee344f55bb2187df38ef3b3d4c
[ "Apache-2.0" ]
1
2019-04-15T07:01:42.000Z
2019-04-15T07:01:42.000Z
accounts/migrations/0001_initial.py
vikifox/CMDB
bac9b7da204c3eee344f55bb2187df38ef3b3d4c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-04-18 05:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('cmdb', '0001_initial'), ('appc...
40.733333
128
0.576105
2,252
0.92144
0
0
0
0
0
0
432
0.176759
1ccca623d7f5e702eea65074c02fe6486e238208
10,450
py
Python
autoscaler/azure.py
gabrieladt/kops-ec2-autoscaler
8b90fa23caaacf9cf0a4310b65667769906af777
[ "MIT" ]
null
null
null
autoscaler/azure.py
gabrieladt/kops-ec2-autoscaler
8b90fa23caaacf9cf0a4310b65667769906af777
[ "MIT" ]
null
null
null
autoscaler/azure.py
gabrieladt/kops-ec2-autoscaler
8b90fa23caaacf9cf0a4310b65667769906af777
[ "MIT" ]
1
2019-07-08T07:06:27.000Z
2019-07-08T07:06:27.000Z
import http import logging from typing import List, Tuple, MutableMapping from datetime import datetime import re from requests.packages.urllib3 import Retry import autoscaler.utils as utils from autoscaler.autoscaling_groups import AutoScalingGroup from autoscaler.azure_api import AzureApi, AzureScaleSet, AzureScale...
40.980392
150
0.655598
9,692
0.927464
0
0
692
0.06622
0
0
1,595
0.152632
1cce392f19d05213758223c7be8ae0c890defc93
772
py
Python
sort_insertion.py
rachitmishra/45
c38650f4fa2ea1857848b95320cdc37929b39197
[ "MIT" ]
null
null
null
sort_insertion.py
rachitmishra/45
c38650f4fa2ea1857848b95320cdc37929b39197
[ "MIT" ]
null
null
null
sort_insertion.py
rachitmishra/45
c38650f4fa2ea1857848b95320cdc37929b39197
[ "MIT" ]
null
null
null
""" Insertion Sort Approach: Loop Complexity: O(n2) """ def sort_insertion(input_arr): print("""""""""""""""""""""""""") print("input " + str(input_arr)) print("""""""""""""""""""""""""") ln = len(input_arr) i = 1 # Assuming first element is sorted while i < ln: # n times c = inpu...
22.057143
56
0.443005
0
0
0
0
0
0
0
0
249
0.322539
1ccedf375dff61d5b7747bbbaf81aa8a41e6f3f6
1,780
py
Python
Python2/tareas/tarea_7.py
eveiramirez/python_class
7a3830cc92dc842b853b243c6b01e06993faa97e
[ "MIT" ]
null
null
null
Python2/tareas/tarea_7.py
eveiramirez/python_class
7a3830cc92dc842b853b243c6b01e06993faa97e
[ "MIT" ]
null
null
null
Python2/tareas/tarea_7.py
eveiramirez/python_class
7a3830cc92dc842b853b243c6b01e06993faa97e
[ "MIT" ]
3
2021-04-09T19:12:15.000Z
2021-08-24T18:24:58.000Z
""" NAME tarea_7.py VERSION [1.0] AUTHOR Ignacio Emmanuel Ramirez Bernabe CONTACT iramirez@lcg.unam.mx GITHUB https://github.com/eveiramirez/python_class/blob/master/Python2/tareas/tarea_7.py DESCRIPTION Este programa contiene arrays estructurados para los arrays ...
29.180328
89
0.567978
0
0
0
0
0
0
0
0
1,019
0.572472
1ccf03aa9b400d7a3b6f76334d043ce47040c33d
11,857
py
Python
iguanas/pipeline/_base_pipeline.py
paypal/Iguanas
166ea81b7d370eb4281a27aa449719ed1d38a74a
[ "Apache-2.0" ]
20
2021-12-22T14:15:03.000Z
2022-03-31T22:46:42.000Z
iguanas/pipeline/_base_pipeline.py
paypal/Iguanas
166ea81b7d370eb4281a27aa449719ed1d38a74a
[ "Apache-2.0" ]
12
2022-01-18T16:55:56.000Z
2022-03-10T11:39:39.000Z
iguanas/pipeline/_base_pipeline.py
paypal/Iguanas
166ea81b7d370eb4281a27aa449719ed1d38a74a
[ "Apache-2.0" ]
5
2021-12-25T07:28:29.000Z
2022-02-23T09:40:03.000Z
""" Base pipeline class. Main rule generator classes inherit from this one. """ from copy import deepcopy from typing import List, Tuple, Union, Dict from iguanas.pipeline.class_accessor import ClassAccessor from iguanas.utils.typing import PandasDataFrameType, PandasSeriesType import iguanas.utils.utils as utils from ...
40.606164
112
0.580417
11,489
0.968963
0
0
397
0.033482
0
0
6,624
0.558657
1cd008f314f201433a589af299e0dc00308ca8c5
6,306
py
Python
test_activity_merger.py
AlexanderMakarov/activitywatch-ets
36e5ac92c7834b9515a54c5d633ae5e45d6928bc
[ "MIT" ]
null
null
null
test_activity_merger.py
AlexanderMakarov/activitywatch-ets
36e5ac92c7834b9515a54c5d633ae5e45d6928bc
[ "MIT" ]
null
null
null
test_activity_merger.py
AlexanderMakarov/activitywatch-ets
36e5ac92c7834b9515a54c5d633ae5e45d6928bc
[ "MIT" ]
null
null
null
import unittest import datetime from parameterized import parameterized from activity_merger import Interval from aw_core.models import Event from typing import List, Tuple def _build_datetime(seed: int) -> datetime.datetime: return datetime.datetime(2000, 1, seed, seed, 0, 0).astimezone(datetime.timezone.utc) ...
30.172249
112
0.482873
4,959
0.786394
0
0
4,903
0.777513
0
0
793
0.125753
1cd0df6aa8a1e2d70124b017898c86056e7b29dd
4,526
py
Python
pommerman/agents/player_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
8
2019-06-11T16:08:25.000Z
2020-10-28T09:03:53.000Z
pommerman/agents/player_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
1
2019-06-21T03:57:35.000Z
2019-06-21T03:57:35.000Z
pommerman/agents/player_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
1
2018-03-21T15:21:52.000Z
2018-03-21T15:21:52.000Z
""" NOTE: There are a few minor complications to fluid human control which make this code a little more involved than trivial. 1. Key press-release cycles can be, and often are, faster than one tick of the game/simulation, but the player still wants that cycle to count, i.e. to lay a bomb! 2. When holding down ...
33.776119
98
0.614671
3,016
0.666372
0
0
59
0.013036
0
0
2,248
0.496686
1cd0eac7f0e61913c8d825507589abb58c69759a
14,852
py
Python
tests/rest/test_rest.py
sapshah-cisco/cobra
e2b5a75495931844180b05d776c15829e63f0dab
[ "Apache-2.0" ]
93
2015-02-11T01:41:22.000Z
2022-02-03T22:55:57.000Z
tests/rest/test_rest.py
sapshah-cisco/cobra
e2b5a75495931844180b05d776c15829e63f0dab
[ "Apache-2.0" ]
112
2015-02-23T22:20:29.000Z
2022-03-22T21:46:52.000Z
tests/rest/test_rest.py
sapshah-cisco/cobra
e2b5a75495931844180b05d776c15829e63f0dab
[ "Apache-2.0" ]
61
2015-02-22T01:34:01.000Z
2022-01-19T09:50:21.000Z
# Copyright 2015 Cisco Systems, Inc. # # 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 ...
36.581281
99
0.606181
12,729
0.857056
0
0
3,422
0.230407
0
0
3,591
0.241786
1cd0fd2e907a405a13689ee31a56a04909e02b9c
555
py
Python
spanglish/tests/fixtures/models/language.py
omaraljazairy/FedalAPI
2be0a19bb2629be9e2a0477f99477e4bfbd8901e
[ "MIT" ]
null
null
null
spanglish/tests/fixtures/models/language.py
omaraljazairy/FedalAPI
2be0a19bb2629be9e2a0477f99477e4bfbd8901e
[ "MIT" ]
null
null
null
spanglish/tests/fixtures/models/language.py
omaraljazairy/FedalAPI
2be0a19bb2629be9e2a0477f99477e4bfbd8901e
[ "MIT" ]
null
null
null
""" fixtures that return an sql statement with a list of values to be inserted.""" def load_language(): """ return the sql and values of the insert queuery.""" sql = """ INSERT INTO Spanglish_Test.Language ( `name`, `iso-639-1` ) VALUES (%s, %s) ...
19.137931
82
0.405405
0
0
0
0
0
0
0
0
334
0.601802
1cd1aa4b57039ede6d30d90d5b70dc7281d0f585
9,693
py
Python
main-hs2.py
tradewartracker/phase-one-product-hs2
38dd328a8211695c31f09a34832535dc2c82a5c2
[ "MIT" ]
null
null
null
main-hs2.py
tradewartracker/phase-one-product-hs2
38dd328a8211695c31f09a34832535dc2c82a5c2
[ "MIT" ]
null
null
null
main-hs2.py
tradewartracker/phase-one-product-hs2
38dd328a8211695c31f09a34832535dc2c82a5c2
[ "MIT" ]
null
null
null
import datetime as dt from os.path import dirname, join import numpy as np import pandas as pd import pyarrow as pa import pyarrow.parquet as pq from bokeh.io import curdoc from bokeh.layouts import column, gridplot, row from bokeh.models import ColumnDataSource, DataRange1d, Select, HoverTool, Panel, Tabs, LinearC...
37.280769
400
0.613123
0
0
0
0
0
0
0
0
3,768
0.388734
1cd3b57ef203189fa0937ba41bdb1a37dbdad462
2,223
py
Python
aiohttp_middlewares/https.py
alxpy/aiohttp-middlewares
377740d21cdaf3142523eb81b0cee4c6dd01f6b5
[ "BSD-3-Clause" ]
34
2017-05-14T11:31:41.000Z
2022-03-24T06:07:31.000Z
aiohttp_middlewares/https.py
alxpy/aiohttp-middlewares
377740d21cdaf3142523eb81b0cee4c6dd01f6b5
[ "BSD-3-Clause" ]
77
2017-10-20T19:40:59.000Z
2022-03-01T05:07:36.000Z
aiohttp_middlewares/https.py
alxpy/aiohttp-middlewares
377740d21cdaf3142523eb81b0cee4c6dd01f6b5
[ "BSD-3-Clause" ]
2
2019-11-06T12:45:33.000Z
2021-11-24T14:55:28.000Z
""" ================ HTTPS Middleware ================ Change scheme for current request when aiohttp application deployed behind reverse proxy with HTTPS enabled. Usage ===== .. code-block:: python from aiohttp import web from aiohttp_middlewares import https_middleware # Basic usage app = web.App...
25.848837
79
0.645524
0
0
0
0
776
0.349078
756
0.340081
1,273
0.57265
1cd41a80f04199f3be841ce38a8ac4428c343606
6,620
py
Python
show/drawing.py
nohamanona/poke-auto-fuka
9d355694efa0168738795afb403fc89264dcaeae
[ "Apache-2.0" ]
5
2019-12-31T18:38:52.000Z
2021-01-07T08:57:17.000Z
show/drawing.py
nohamanona/poke-auto-fuka
9d355694efa0168738795afb403fc89264dcaeae
[ "Apache-2.0" ]
null
null
null
show/drawing.py
nohamanona/poke-auto-fuka
9d355694efa0168738795afb403fc89264dcaeae
[ "Apache-2.0" ]
1
2020-03-03T08:14:47.000Z
2020-03-03T08:14:47.000Z
import cv2 import numpy as np class DrawingClass(object): def __init__(self): self.draw_command ='None' self.frame_count = 0 def drawing(self, frame, fps, num_egg, htc_egg, state): cv2.putText(frame, 'FPS: {:.2f}'.format(fps), (10, 30), cv2.FONT_HERSHEY_SIMP...
51.317829
109
0.540483
6,586
0.994864
0
0
0
0
0
0
575
0.086858
1cd5217ab9022ac6fb992de8575b10b6f886806f
1,452
py
Python
backtest.py
YangTaoCN/IntroNeuralNetworks
45b0311f85c9cdd9d3f0806e0059201e2655697f
[ "MIT" ]
null
null
null
backtest.py
YangTaoCN/IntroNeuralNetworks
45b0311f85c9cdd9d3f0806e0059201e2655697f
[ "MIT" ]
null
null
null
backtest.py
YangTaoCN/IntroNeuralNetworks
45b0311f85c9cdd9d3f0806e0059201e2655697f
[ "MIT" ]
null
null
null
import pandas_datareader.data as pdr import yfinance as fix import numpy as np fix.pdr_override() def back_test(strategy, seq_len, ticker, start_date, end_date, dim): """ A simple back test for a given date period :param strategy: the chosen strategy. Note to have already formed the model, and fitted with...
40.333333
111
0.669421
0
0
0
0
0
0
0
0
740
0.509642
1cd64e7eef2ac9aae41c0784aa1ab81588c6d2ef
2,278
py
Python
src/tespy/components/subsystems.py
jbueck/tespy
dd7a2633ce12f33b4936ae902f4fe5df29191690
[ "MIT" ]
null
null
null
src/tespy/components/subsystems.py
jbueck/tespy
dd7a2633ce12f33b4936ae902f4fe5df29191690
[ "MIT" ]
null
null
null
src/tespy/components/subsystems.py
jbueck/tespy
dd7a2633ce12f33b4936ae902f4fe5df29191690
[ "MIT" ]
null
null
null
# -*- coding: utf-8 """Module for custom component groups. It is possible to create subsystems of component groups in tespy. The subsystem class is the base class for custom subsystems. This file is part of project TESPy (github.com/oemof/tespy). It's copyrighted by the contributors recorded in the version control ...
25.311111
79
0.579017
1,810
0.794557
0
0
0
0
0
0
1,431
0.628183
1cd7fdf07b75be54fc81ee90365afd1023ab4167
7,940
py
Python
fairscale/optim/oss.py
blefaudeux/fairscale
aa5850107a37c7d5644b6079516e7ae1079ff5e8
[ "BSD-3-Clause" ]
1
2020-07-23T22:30:36.000Z
2020-07-23T22:30:36.000Z
fairscale/optim/oss.py
blefaudeux/fairscale
aa5850107a37c7d5644b6079516e7ae1079ff5e8
[ "BSD-3-Clause" ]
null
null
null
fairscale/optim/oss.py
blefaudeux/fairscale
aa5850107a37c7d5644b6079516e7ae1079ff5e8
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. import copy import logging from typing import TYPE_CHECKING, Any, Callable, List, Optional, Type import torch import tor...
37.990431
116
0.614987
7,399
0.931864
0
0
575
0.072418
0
0
2,969
0.373929
1cd87eec694df1d23bb94dc59dabf36d48ef6f7d
445
py
Python
setup.py
ninezerozeronine/raytracing-one-weekend
22ca36dcec679cbd78a7711734ca22e01ef06ef2
[ "MIT" ]
null
null
null
setup.py
ninezerozeronine/raytracing-one-weekend
22ca36dcec679cbd78a7711734ca22e01ef06ef2
[ "MIT" ]
null
null
null
setup.py
ninezerozeronine/raytracing-one-weekend
22ca36dcec679cbd78a7711734ca22e01ef06ef2
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="raytracing-one-weekend", version="0.0.0", author="Andy Palmer", author_email="contactninezerozeronine@gmail.com", description="A raytracer achievable in a weekend.", url="https://github.com/ninezerozeronine/raytracing-one-weekend", in...
26.176471
69
0.662921
0
0
0
0
0
0
0
0
204
0.458427
1cd93bcec91ffc966a787c6dda07671b2cad8b23
603
py
Python
homepage/urls.py
r0kym/SNI-backend
5fdc25df21846fadb313d439acba73782a6248c3
[ "MIT" ]
1
2021-06-03T22:07:24.000Z
2021-06-03T22:07:24.000Z
homepage/urls.py
r0kym/SNI-backend
5fdc25df21846fadb313d439acba73782a6248c3
[ "MIT" ]
1
2020-07-19T11:10:22.000Z
2020-07-19T11:10:22.000Z
homepage/urls.py
r0kym/SNI-backend
5fdc25df21846fadb313d439acba73782a6248c3
[ "MIT" ]
2
2020-07-02T12:05:03.000Z
2020-07-02T18:34:39.000Z
""" URLconf of the homepage """ from django.urls import path, include from . import views urlpatterns = [ path('', views.home, name='home'), path('auth', views.auth, name='auth'), path('auth/public', views.auth_public, name='auth-public'), path('auth/full', views.auth_full, name='auth-full'), p...
27.409091
66
0.656716
0
0
0
0
0
0
0
0
205
0.339967
1cd940fc315fde5b1737f292edb3bdacd8fa4aa7
3,058
py
Python
srcflib/email/__init__.py
mas90/srcf-python
09ce45c65d2ddbec2cdfc559a7b5983398dbdfa0
[ "MIT" ]
null
null
null
srcflib/email/__init__.py
mas90/srcf-python
09ce45c65d2ddbec2cdfc559a7b5983398dbdfa0
[ "MIT" ]
null
null
null
srcflib/email/__init__.py
mas90/srcf-python
09ce45c65d2ddbec2cdfc559a7b5983398dbdfa0
[ "MIT" ]
null
null
null
""" Notification email machinery, for tasks to send credentials and instructions to users. Email templates placed inside the `templates` directory of this module should: - extend from `layout` - provide `subject` and `body` blocks """ from enum import Enum import os.path from jinja2 import Environment, FileSystemLo...
30.888889
96
0.657292
1,516
0.495749
0
0
0
0
0
0
821
0.268476
1cd9be86a01ac85db863f60ec2922ba01db45a75
348
py
Python
nose2_example/my_package/myapp.py
dolfandringa/PythonProjectStructureDemo
8bdd72b94d3b830e9e9dce548cca1cdb16601d0d
[ "CC-BY-4.0" ]
2
2017-02-03T00:15:27.000Z
2017-02-03T02:26:25.000Z
nose2_example/my_package/myapp.py
dolfandringa/unittesting_example
8bdd72b94d3b830e9e9dce548cca1cdb16601d0d
[ "CC-BY-4.0" ]
null
null
null
nose2_example/my_package/myapp.py
dolfandringa/unittesting_example
8bdd72b94d3b830e9e9dce548cca1cdb16601d0d
[ "CC-BY-4.0" ]
null
null
null
from .operations import Multiply, Add, Substract class MyApp(object): def __init__(self): self.operations={'multiply': Multiply, 'add': Add, 'substract': Substract} def do(self, operation, number1, number2): return self.operations[operation.low...
29
70
0.594828
296
0.850575
0
0
0
0
0
0
26
0.074713