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
8a23e2e394242f4eca447da628bb8ac3e7fe2807
6,323
py
Python
tools/aerial_detection.py
gfjiangly/AerialDetection
ee8a945c67c8e9ddef725900ac300d2d5a785e08
[ "Apache-2.0" ]
null
null
null
tools/aerial_detection.py
gfjiangly/AerialDetection
ee8a945c67c8e9ddef725900ac300d2d5a785e08
[ "Apache-2.0" ]
1
2021-08-28T15:48:14.000Z
2021-08-28T15:48:14.000Z
tools/aerial_detection.py
gfjiangly/AerialDetection
ee8a945c67c8e9ddef725900ac300d2d5a785e08
[ "Apache-2.0" ]
null
null
null
# -*- encoding:utf-8 -*- # @Time : 2021/1/3 15:15 # @Author : gfjiang import os.path as osp import mmcv import numpy as np import cvtools import matplotlib.pyplot as plt import cv2.cv2 as cv from functools import partial import torch import math from cvtools.utils.path import add_prefix_filename_suffix from mmdet....
36.33908
107
0.591966
3,842
0.603234
0
0
0
0
0
0
996
0.156382
8a248f7412b4e5841bfb0f9c54b8c6e82ae3813b
19,715
py
Python
tradingAPI/low_level.py
federico123579/Trading212-API
0fab20b71a2348e72bbe76071b81f3692128851f
[ "MIT" ]
44
2017-10-23T19:17:20.000Z
2021-09-06T17:01:49.000Z
tradingAPI/low_level.py
federico123579/Trading212-API
0fab20b71a2348e72bbe76071b81f3692128851f
[ "MIT" ]
7
2017-09-05T09:51:16.000Z
2020-05-17T11:23:27.000Z
tradingAPI/low_level.py
federico123579/Trading212-API
0fab20b71a2348e72bbe76071b81f3692128851f
[ "MIT" ]
18
2017-11-18T11:55:58.000Z
2021-04-11T14:23:12.000Z
# -*- coding: utf-8 -*- """ tradingAPI.low_level ~~~~~~~~~~~~~~ This module provides the low level functions with the service. """ import time import re from datetime import datetime from pyvirtualdisplay import Display from bs4 import BeautifulSoup from splinter import Browser from .glob import Glob from .links imp...
37.058271
79
0.526401
19,176
0.97266
0
0
121
0.006137
0
0
3,949
0.200304
8a2561d549e0edb64456facf130fd386d46356d5
96,782
py
Python
.infra/setup/playbooks/roles/ansible.kubernetes-modules/library/openshift_v1_build_config_list.py
cvicens/lab-knative
ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f
[ "Apache-2.0" ]
null
null
null
.infra/setup/playbooks/roles/ansible.kubernetes-modules/library/openshift_v1_build_config_list.py
cvicens/lab-knative
ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f
[ "Apache-2.0" ]
null
null
null
.infra/setup/playbooks/roles/ansible.kubernetes-modules/library/openshift_v1_build_config_list.py
cvicens/lab-knative
ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from ansible.module_utils.openshift_common import OpenShiftAnsibleModule, OpenShiftAnsibleException DOCUMENTATION = ''' module: openshift_v1_build_config_list short_description: OpenShift BuildConfigList description: - Retrieve a list of build_configs. List operations provide...
50.486176
100
0.443027
0
0
0
0
0
0
0
0
96,315
0.995175
8a258262e455109304caf1e67879b046459ff1bf
5,066
py
Python
aws-regions.py
groorj/cloud-regions
f085491c71440d99000ad29a885e6090dfc9332a
[ "MIT" ]
null
null
null
aws-regions.py
groorj/cloud-regions
f085491c71440d99000ad29a885e6090dfc9332a
[ "MIT" ]
1
2021-07-22T01:25:14.000Z
2021-07-22T17:29:09.000Z
aws-regions.py
groorj/cloud-regions
f085491c71440d99000ad29a885e6090dfc9332a
[ "MIT" ]
null
null
null
import json import logging import os import inspect import urllib import urllib.request from urllib.error import HTTPError # logger logger = logging.getLogger() logger_level = logging.getLevelName(os.environ['LOGGER_LEVEL']) logger.setLevel(logger_level) # validate access def validate_access(event, context): logg...
41.867769
161
0.66443
0
0
0
0
0
0
0
0
1,834
0.362021
8a267a4563f9753a8ce7cda07a22ac19aca67d1a
10,157
py
Python
src/models/encoder.py
guowenying111/SEKE
a913a19090eb690c3188036795559210a5262f2b
[ "Apache-2.0" ]
null
null
null
src/models/encoder.py
guowenying111/SEKE
a913a19090eb690c3188036795559210a5262f2b
[ "Apache-2.0" ]
null
null
null
src/models/encoder.py
guowenying111/SEKE
a913a19090eb690c3188036795559210a5262f2b
[ "Apache-2.0" ]
null
null
null
import math import torch import torch.nn as nn from models.neural import MultiHeadedAttention, PositionwiseFeedForward from models.rnn import LayerNormLSTM class Classifier(nn.Module): def __init__(self, hidden_size): super(Classifier, self).__init__() self.linear1 = nn.Linear(hidden_size, 1) ...
39.065385
123
0.632962
9,973
0.981884
0
0
0
0
0
0
857
0.084375
8a27086b8164b7eb22322aad33d91e3b2ba51e9e
974
py
Python
djangox/lib/python3.8/site-packages/allauth/socialaccount/providers/dropbox/views.py
DemarcusL/django_wiki_lab
3b7cf18af7e0f89c94d10eb953ca018a150a2f55
[ "MIT" ]
6,342
2015-01-01T07:40:30.000Z
2022-03-31T04:18:30.000Z
djangox/lib/python3.8/site-packages/allauth/socialaccount/providers/dropbox/views.py
DemarcusL/django_wiki_lab
3b7cf18af7e0f89c94d10eb953ca018a150a2f55
[ "MIT" ]
2,198
2015-01-02T15:17:45.000Z
2022-03-28T10:20:43.000Z
djangox/lib/python3.8/site-packages/allauth/socialaccount/providers/dropbox/views.py
DemarcusL/django_wiki_lab
3b7cf18af7e0f89c94d10eb953ca018a150a2f55
[ "MIT" ]
2,928
2015-01-01T10:44:13.000Z
2022-03-31T03:20:16.000Z
import requests from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth2CallbackView, OAuth2LoginView, ) from .provider import DropboxOAuth2Provider class DropboxOAuth2Adapter(OAuth2Adapter): provider_id = DropboxOAuth2Provider.id access_token_url = "https://api.dropbox.c...
32.466667
86
0.737166
646
0.663244
0
0
0
0
0
0
166
0.170431
8a27be0083c13f36f7583420125751ea6216ec63
1,599
py
Python
source/conf.py
Tatsh/upkeep
7fa99ff54104e3dec15d611eb174910337cf1870
[ "MIT" ]
3
2019-04-24T10:17:00.000Z
2020-03-11T06:18:42.000Z
source/conf.py
Tatsh/pezu
d5264b61a7113783ea29388180c16126cf185bdd
[ "MIT" ]
4
2020-04-27T19:56:29.000Z
2021-02-11T05:44:22.000Z
source/conf.py
Tatsh/pezu
d5264b61a7113783ea29388180c16126cf185bdd
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # pylint: disable=redefined-builtin,invalid-name """See https://www.sphinx-doc.org/en/master/usage/configuration.html""" from typing import Sequence import os import sys # region Path setup sys.path.insert(0, os.path.abspath('..')) # endregion # region Project information project = 'Upk...
33.3125
77
0.760475
0
0
0
0
0
0
0
0
1,299
0.812383
8a29601d340f52437bc81f042a9b4102018cde77
19,710
py
Python
generators/generate_pybind11_bindings.py
sweptlaser/pclpy
ab84da7ed264b5bc918af0d858e6d4063275aab9
[ "MIT" ]
null
null
null
generators/generate_pybind11_bindings.py
sweptlaser/pclpy
ab84da7ed264b5bc918af0d858e6d4063275aab9
[ "MIT" ]
null
null
null
generators/generate_pybind11_bindings.py
sweptlaser/pclpy
ab84da7ed264b5bc918af0d858e6d4063275aab9
[ "MIT" ]
null
null
null
import os import platform import shutil import sys from collections import Counter from collections import defaultdict, OrderedDict from os.path import join from typing import List, Dict, Set from CppHeaderParser import CppHeaderParser from CppHeaderParser.CppHeaderParser import CppMethod import generators.dependency...
40.22449
117
0.640589
0
0
0
0
0
0
0
0
1,845
0.093607
8a29eefe067ae42942e4915562e64419af3d1cde
950
py
Python
scripts_python3/exchange/deleteExchange.py
bcvsolutions/winrm-ad-connector
9b45dae78d3ba24fe6b00e090f8763d3162e1570
[ "Apache-2.0" ]
null
null
null
scripts_python3/exchange/deleteExchange.py
bcvsolutions/winrm-ad-connector
9b45dae78d3ba24fe6b00e090f8763d3162e1570
[ "Apache-2.0" ]
2
2020-05-27T07:15:28.000Z
2020-12-17T05:22:54.000Z
scripts_python3/exchange/deleteExchange.py
bcvsolutions/winrm-ad-connector
9b45dae78d3ba24fe6b00e090f8763d3162e1570
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # All params from IdM is stored in environment and you can get them by os.environ["paramName"] import sys, os # this is needed for importing file winrm_wrapper from parent dir sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import winrm_wrapper import codecs...
35.185185
134
0.705263
0
0
0
0
0
0
0
0
437
0.46
8a2ac410faa6645af8d41c21c8f5834684cf1a20
2,152
py
Python
tests/registry_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
1
2022-03-11T13:36:34.000Z
2022-03-11T13:36:34.000Z
tests/registry_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
null
null
null
tests/registry_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import unittest from aenum import Enum, auto from dace import registry @registry.make_registry class ExtensibleClass(object): pass class Extension(ExtensibleClass): pass @registry.extensible_enum class ExtensibleEnumeration(Enum):...
29.479452
89
0.697955
1,894
0.880112
0
0
502
0.233271
0
0
88
0.040892
8a2b2a493d7950b9f9a43469d730e06de8f5d85d
2,372
py
Python
tests/conftest.py
aviramha/aiologstash2
08c5127bf77e3b66ddcb2e8acff82368dbc58af7
[ "MIT" ]
1
2022-02-01T10:10:05.000Z
2022-02-01T10:10:05.000Z
tests/conftest.py
aviramha/aiologstash2
08c5127bf77e3b66ddcb2e8acff82368dbc58af7
[ "MIT" ]
null
null
null
tests/conftest.py
aviramha/aiologstash2
08c5127bf77e3b66ddcb2e8acff82368dbc58af7
[ "MIT" ]
null
null
null
import asyncio import logging from json import loads import pytest from aiologstash2 import create_tcp_handler logging.getLogger().setLevel(logging.DEBUG) class FakeTcpServer: def __init__(self): self.data = bytearray() self.server = None self.futs = set() async def start(self): ...
23.029126
83
0.605818
1,093
0.460793
1,060
0.44688
1,313
0.553541
1,783
0.751686
50
0.021079
8a2b9f3633d27fae8143c30667678e54429c7aa8
19,973
py
Python
tcex/playbooks/playbooks_base.py
RichieB2B/tcex
eba20a67d4b8e3596c895b7c45325716267d7c85
[ "Apache-2.0" ]
null
null
null
tcex/playbooks/playbooks_base.py
RichieB2B/tcex
eba20a67d4b8e3596c895b7c45325716267d7c85
[ "Apache-2.0" ]
null
null
null
tcex/playbooks/playbooks_base.py
RichieB2B/tcex
eba20a67d4b8e3596c895b7c45325716267d7c85
[ "Apache-2.0" ]
null
null
null
"""TcEx Framework Playbook module""" # standard library import base64 import json import re from collections import OrderedDict from collections.abc import Iterable class PlaybooksBase: """TcEx Playbook Module Base Class Args: tcex (TcEx): Instance of TcEx class. context (str): The Redis cont...
38.857977
100
0.586191
19,805
0.991589
0
0
3,046
0.152506
0
0
8,874
0.4443
8a2c1d2751e3ec16040b8d54e21b7960cfed3c22
31,780
py
Python
DeepLearningExamples/TensorFlow/LanguageModeling/BERT/run_classifier.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
DeepLearningExamples/TensorFlow/LanguageModeling/BERT/run_classifier.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
DeepLearningExamples/TensorFlow/LanguageModeling/BERT/run_classifier.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved. # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
42.204515
136
0.685809
0
0
0
0
0
0
0
0
7,619
0.239742
8a2c56df110778d23c3bb4671a208f95d1915011
69,038
py
Python
FusionIIIT/applications/academic_information/views.py
29rj/Fusion
bc2941a67532e183adeb0bc4042df0b182b9e3aa
[ "bzip2-1.0.6" ]
29
2019-02-20T15:35:33.000Z
2022-03-22T11:10:57.000Z
FusionIIIT/applications/academic_information/views.py
29rj/Fusion
bc2941a67532e183adeb0bc4042df0b182b9e3aa
[ "bzip2-1.0.6" ]
409
2019-01-17T19:30:51.000Z
2022-03-31T16:28:45.000Z
FusionIIIT/applications/academic_information/views.py
29rj/Fusion
bc2941a67532e183adeb0bc4042df0b182b9e3aa
[ "bzip2-1.0.6" ]
456
2019-01-12T11:01:13.000Z
2022-03-30T17:06:52.000Z
import datetime import json import os import xlrd import logging from io import BytesIO from xlsxwriter.workbook import Workbook from xhtml2pdf import pisa from itertools import chain from django.contrib.auth.models import User from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.short...
35.826674
199
0.591761
0
0
0
0
42,222
0.611576
0
0
36,118
0.523161
8a2c8b21ea65c7fbe7c24c113fc96385ffdf77cb
1,245
py
Python
subject/tests/functional/test_glance_replicator.py
laoyigrace/subject
e6ed989fdc250917a19788112b22322b73b3550f
[ "Apache-2.0" ]
null
null
null
subject/tests/functional/test_glance_replicator.py
laoyigrace/subject
e6ed989fdc250917a19788112b22322b73b3550f
[ "Apache-2.0" ]
null
null
null
subject/tests/functional/test_glance_replicator.py
laoyigrace/subject
e6ed989fdc250917a19788112b22322b73b3550f
[ "Apache-2.0" ]
null
null
null
# 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 # d...
36.617647
78
0.683534
528
0.424096
0
0
0
0
0
0
850
0.682731
8a2d310413da9e85779ff39fa32f7bd2c4075553
8,648
py
Python
test/countries/test_united_states.py
OmoMicheal/marketanalysis
ddc2476ec918a28658e64574e89d8944cee75617
[ "MIT" ]
2
2021-06-29T21:56:15.000Z
2022-02-17T22:10:55.000Z
test/countries/test_united_states.py
OmoMicheal/marketanalysis
ddc2476ec918a28658e64574e89d8944cee75617
[ "MIT" ]
null
null
null
test/countries/test_united_states.py
OmoMicheal/marketanalysis
ddc2476ec918a28658e64574e89d8944cee75617
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # marketanalysis # ---------------- # A fast, efficient Python library for generating country, province and state # specific sets of marketmarketholidayss on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Author: MichealO...
38.096916
107
0.591929
7,836
0.906105
0
0
0
0
0
0
760
0.087882
8a2e82e1a97d54e2d6df29004c910ab7dc7dda4f
344
py
Python
src/ros_comm/rosmsg/setup.py
jungleni/ros_code_reading
499e98c0b0d309da78060b19b55c420c22110d65
[ "Apache-2.0" ]
742
2017-07-05T02:49:36.000Z
2022-03-30T12:55:43.000Z
src/ros_comm/rosmsg/setup.py
jungleni/ros_code_reading
499e98c0b0d309da78060b19b55c420c22110d65
[ "Apache-2.0" ]
73
2017-07-06T12:50:51.000Z
2022-03-07T08:07:07.000Z
src/ros_comm/rosmsg/setup.py
jungleni/ros_code_reading
499e98c0b0d309da78060b19b55c420c22110d65
[ "Apache-2.0" ]
425
2017-07-04T22:03:29.000Z
2022-03-29T06:59:06.000Z
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['rosmsg'], package_dir={'': 'src'}, scripts=['scripts/rosmsg', 'scripts/rosmsg-proto', 'scripts/rossrv'], requires=['genmsg', 'rosbag', 'roslib', ...
24.571429
73
0.700581
0
0
0
0
0
0
0
0
122
0.354651
8a2eae99a5174fb4958d90cc6f7e9618fa70f6e1
2,414
py
Python
unsorted/linked_list.py
AlgoArt/algoart
7a7a28f099351a6b6c1b360c794f697881c7e429
[ "Unlicense" ]
1
2015-09-20T06:35:58.000Z
2015-09-20T06:35:58.000Z
unsorted/linked_list.py
algoart/algoart
7a7a28f099351a6b6c1b360c794f697881c7e429
[ "Unlicense" ]
null
null
null
unsorted/linked_list.py
algoart/algoart
7a7a28f099351a6b6c1b360c794f697881c7e429
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # linked_list.py - Linked list implementation in Python by Sergey 2015 """ Linked list implementation in Python """ # Standard modules import unittest import sys import os import argparse import re import random import subprocess import getpass import shutil # Additional modules ############...
22.773585
79
0.474731
1,375
0.569594
0
0
0
0
0
0
857
0.355012
8a2f2c6d37a1cc224033909e079c7c6469595c55
8,555
py
Python
examples/seismic/viscoacoustic/wavesolver.py
speglich/devito
b636f7694eb6a1e19b0f2c48f44ff63613029a7b
[ "MIT" ]
1
2020-01-31T10:35:49.000Z
2020-01-31T10:35:49.000Z
examples/seismic/viscoacoustic/wavesolver.py
speglich/devito
b636f7694eb6a1e19b0f2c48f44ff63613029a7b
[ "MIT" ]
52
2020-10-12T19:29:09.000Z
2022-03-10T14:05:22.000Z
examples/seismic/viscoacoustic/wavesolver.py
alisiahkoohi/devito
f535a44dff12de2837eb6e3217a65ffb2d371cb8
[ "MIT" ]
1
2020-06-02T03:31:11.000Z
2020-06-02T03:31:11.000Z
from devito import VectorTimeFunction, TimeFunction, NODE from devito.tools import memoized_meth from examples.seismic import PointSource from examples.seismic.viscoacoustic.operators import (ForwardOperator, AdjointOperator) class ViscoacousticWaveSolver(object): """ Solver object that provides operators for...
42.142857
89
0.575453
8,326
0.973232
0
0
734
0.085798
0
0
4,006
0.468264
8a2f3c798c33272d514bf543343fc4f88d9112f6
1,483
py
Python
StaticProcess/apriori.py
NIL-zhuang/NJU-Data-Integration
78315d33cda6b69dd16a4704fa8e0dfc6fc359b6
[ "MIT" ]
null
null
null
StaticProcess/apriori.py
NIL-zhuang/NJU-Data-Integration
78315d33cda6b69dd16a4704fa8e0dfc6fc359b6
[ "MIT" ]
null
null
null
StaticProcess/apriori.py
NIL-zhuang/NJU-Data-Integration
78315d33cda6b69dd16a4704fa8e0dfc6fc359b6
[ "MIT" ]
null
null
null
import pandas as pd import os from tqdm import tqdm from collections import defaultdict from mlxtend.preprocessing import TransactionEncoder from mlxtend.frequent_patterns import apriori dataPath = "data/static" itemSetList = [] def loadDataSet(): with open(os.path.join(dataPath, "aprioriData.csv"), 'r') as f: ...
32.23913
90
0.666891
0
0
0
0
0
0
0
0
193
0.130142
8a2f400a7655554fbc57b5f622cd3afad8069e45
427
py
Python
gcp-python-fn/main.py
FuriKuri/faas-playground
52618e21064e327d2874d2b73cfe5fb247d3dd6e
[ "MIT" ]
1
2019-05-07T13:15:16.000Z
2019-05-07T13:15:16.000Z
gcp-python-fn/main.py
FuriKuri/faas-playground
52618e21064e327d2874d2b73cfe5fb247d3dd6e
[ "MIT" ]
null
null
null
gcp-python-fn/main.py
FuriKuri/faas-playground
52618e21064e327d2874d2b73cfe5fb247d3dd6e
[ "MIT" ]
null
null
null
def hello_world(request): request_json = request.get_json() name = 'World' if request_json and 'name' in request_json: name = request_json['name'] headers = { 'Access-Control-Allow-Origin': 'https://furikuri.net', 'Access-Control-Allow-Methods': 'GET, POST', 'Access-Contr...
35.583333
66
0.620609
0
0
0
0
0
0
0
0
184
0.430913
8a3098e50d11c10c71215d547da0dfbd833ce050
1,205
py
Python
tonclient/test/helpers.py
move-ton/ton-client-py
a9393a0e03b5da9bf5369a44c6873a3e720af229
[ "Apache-2.0" ]
28
2020-10-29T06:57:32.000Z
2022-03-20T12:26:14.000Z
tonclient/test/helpers.py
move-ton/ton-client-py
a9393a0e03b5da9bf5369a44c6873a3e720af229
[ "Apache-2.0" ]
1
2021-03-30T18:18:17.000Z
2021-04-04T15:35:10.000Z
tonclient/test/helpers.py
move-ton/ton-client-py
a9393a0e03b5da9bf5369a44c6873a3e720af229
[ "Apache-2.0" ]
8
2020-10-28T20:11:52.000Z
2022-01-12T12:28:02.000Z
import os from tonclient.client import TonClient from tonclient.types import Abi, CallSet, Signer, ClientConfig, \ ParamsOfEncodeMessage, ParamsOfProcessMessage BASE_DIR = os.path.dirname(__file__) SAMPLES_DIR = os.path.join(BASE_DIR, 'samples') GIVER_ADDRESS = '0:f5c2510bfe407363cb1db6b9d7bc1184a05f8b343aeaa8281...
36.515152
85
0.778423
0
0
0
0
0
0
0
0
202
0.167635
8a30c3ee79ce2efcb14fdc2c9e26c3ab71e499c1
671
py
Python
tests/test_i18n.py
vthriller/flask-kajiki
eadaa0aa45d23507066758b9e74091bddbc943c4
[ "BSD-3-Clause" ]
null
null
null
tests/test_i18n.py
vthriller/flask-kajiki
eadaa0aa45d23507066758b9e74091bddbc943c4
[ "BSD-3-Clause" ]
null
null
null
tests/test_i18n.py
vthriller/flask-kajiki
eadaa0aa45d23507066758b9e74091bddbc943c4
[ "BSD-3-Clause" ]
null
null
null
from kajiki import i18n from flask import request from flask_kajiki import render_template # N. B. settting i18n.gettext would affect tests from all modules, # so we test for request path that only functions from this module could set def gettext(s): if request.path == '/test_i18n': return s.upper() r...
27.958333
76
0.704918
0
0
0
0
0
0
0
0
288
0.42921
8a3176dcac3313f88ab52ef3d929182aaaba205a
12,423
py
Python
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py
jstzwjr/mmdetection
1c2878eb4f4da2978dcd9a05f9d0247726680213
[ "Apache-2.0" ]
1
2020-09-21T12:13:48.000Z
2020-09-21T12:13:48.000Z
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py
xiaojianying/mmdetection
a10d24d686e8714f42a9022da89124d04c0389ad
[ "Apache-2.0" ]
null
null
null
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py
xiaojianying/mmdetection
a10d24d686e8714f42a9022da89124d04c0389ad
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule, build_upsample_layer from mmcv.ops import Conv2d from mmcv.ops.carafe import CARAFEPack from mmcv.runner import auto_fp16, force_fp32 from torch.nn.modules.utils import _pair from mmdet.core import ma...
39.189274
79
0.583353
9,040
0.727683
0
0
9,065
0.729695
0
0
2,831
0.227884
8a3245f4587a32c402e78f398ab94bc52ef0cf9a
780
py
Python
PaddleOCR/deploy/hubserving/ocr_det/params.py
TangJiamin/Ultra_light_OCR_No.23
594aa286dc2f88614141838ce45c164647226cdb
[ "Apache-2.0" ]
null
null
null
PaddleOCR/deploy/hubserving/ocr_det/params.py
TangJiamin/Ultra_light_OCR_No.23
594aa286dc2f88614141838ce45c164647226cdb
[ "Apache-2.0" ]
null
null
null
PaddleOCR/deploy/hubserving/ocr_det/params.py
TangJiamin/Ultra_light_OCR_No.23
594aa286dc2f88614141838ce45c164647226cdb
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function class Config(object): pass def read_params(): cfg = Config() #params for text detector cfg.det_algorithm = "DB" cfg.det_model_dir = "./inference/ch_...
22.285714
70
0.661538
31
0.039744
0
0
0
0
0
0
229
0.29359
8a328b7be397a48ed8f6202385b17e0dbf81357c
12,156
py
Python
networks/larflow/models/larflow_uresnet.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
2
2020-07-09T19:34:03.000Z
2021-06-21T23:09:23.000Z
networks/larflow/models/larflow_uresnet.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
null
null
null
networks/larflow/models/larflow_uresnet.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import torch as torch import math import torch.utils.model_zoo as model_zoo ########################################################### # # U-ResNet # U-net witih ResNet modules # # Semantic segmentation network used by MicroBooNE # to label track/shower pixels # # resnet implementation from pyto...
36.286567
152
0.599786
11,458
0.94258
0
0
0
0
0
0
1,444
0.118789
8a3315016cdca312326db456e1d5eabcd1f0d049
14,798
py
Python
examples/machine_reading_comprehension/DuReader-robust/run_du.py
wzzju/PaddleNLP
1757a4fc2a3cd5a45f75c6482746777752b414d8
[ "Apache-2.0" ]
3
2021-09-06T11:27:49.000Z
2021-11-09T08:19:00.000Z
examples/machine_reading_comprehension/DuReader-robust/run_du.py
svs1984/PaddleNLP
9eb9e23b01d044706c789158ac6cf0d365aea848
[ "Apache-2.0" ]
null
null
null
examples/machine_reading_comprehension/DuReader-robust/run_du.py
svs1984/PaddleNLP
9eb9e23b01d044706c789158ac6cf0d365aea848
[ "Apache-2.0" ]
4
2021-08-23T07:46:06.000Z
2021-09-23T08:37:03.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright 2018 The HuggingFace Inc. team. # # 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/licen...
43.651917
120
0.648331
654
0.044195
0
0
1,430
0.096635
0
0
3,839
0.259427
8a3543c746387ad12029585c2e306e26ec984737
4,324
py
Python
Deep_Q_Network/DQN_for_FrozenLake_Discrete_Domain.py
quangnguyendang/Reinforcement_Learning
2551ce95068561c553500838ee6b976f001ba667
[ "MIT" ]
null
null
null
Deep_Q_Network/DQN_for_FrozenLake_Discrete_Domain.py
quangnguyendang/Reinforcement_Learning
2551ce95068561c553500838ee6b976f001ba667
[ "MIT" ]
null
null
null
Deep_Q_Network/DQN_for_FrozenLake_Discrete_Domain.py
quangnguyendang/Reinforcement_Learning
2551ce95068561c553500838ee6b976f001ba667
[ "MIT" ]
null
null
null
# Credit to https://medium.com/emergent-future/simple-reinforcement-learning-with-tensorflow-part-0-q-learning-with-tables-and-neural-networks-d195264329d0 import gym import tensorflow as tf import numpy as np import matplotlib.pyplot as plt env = gym.make('FrozenLake-v0') # NEURAL NETWORK IMPLEMENTATION tf.reset_d...
30.666667
155
0.586725
0
0
0
0
0
0
0
0
2,371
0.548335
8a3651a34d3b1893e6f70ebe64b9db39d329cd63
8,496
py
Python
testing/cross_language/util/supported_key_types.py
chanced/tink
9cc3a01ac0165b033ed51dc9d0812a98b4b6e305
[ "Apache-2.0" ]
null
null
null
testing/cross_language/util/supported_key_types.py
chanced/tink
9cc3a01ac0165b033ed51dc9d0812a98b4b6e305
[ "Apache-2.0" ]
null
null
null
testing/cross_language/util/supported_key_types.py
chanced/tink
9cc3a01ac0165b033ed51dc9d0812a98b4b6e305
[ "Apache-2.0" ]
1
2022-01-02T20:54:04.000Z
2022-01-02T20:54:04.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
37.263158
79
0.711982
0
0
0
0
0
0
0
0
4,121
0.485052
8a36ee854524bdd692e5d46cc0bfba0c999e570b
3,625
py
Python
signer.py
chapeltech/remote-signer
83d083ed7e8c7123187ba70ee3132b898e8ef02e
[ "MIT" ]
39
2018-07-08T01:01:18.000Z
2022-01-03T13:48:10.000Z
signer.py
chapeltech/remote-signer
83d083ed7e8c7123187ba70ee3132b898e8ef02e
[ "MIT" ]
4
2019-10-04T11:15:15.000Z
2022-02-03T00:17:47.000Z
signer.py
chapeltech/remote-signer
83d083ed7e8c7123187ba70ee3132b898e8ef02e
[ "MIT" ]
19
2018-09-20T11:52:25.000Z
2022-02-02T19:21:04.000Z
#!/usr/bin/env python3 ######################################################### # Written by Carl Youngblood, carl@blockscale.net # Copyright (c) 2018 Blockscale LLC # released under the MIT license ######################################################### from flask import Flask, request, Response, json, jsonify fr...
33.564815
105
0.592552
0
0
0
0
2,200
0.606897
0
0
1,295
0.357241
8a37a73802d1db18a333fdc568416dbf6367829d
3,658
py
Python
unwind.py
0x1F9F1/binja-msvc
be2577c22c8d37fd1e2e211f80b1c9a920705bd2
[ "MIT" ]
9
2019-02-08T10:01:39.000Z
2021-04-29T12:27:34.000Z
unwind.py
DatBrick/binja-msvc
751ffc1450c569bad23ac67a761d0f1fbd4ca4c4
[ "MIT" ]
1
2019-07-04T20:09:57.000Z
2019-07-12T11:10:15.000Z
unwind.py
DatBrick/binja-msvc
751ffc1450c569bad23ac67a761d0f1fbd4ca4c4
[ "MIT" ]
2
2019-03-03T13:00:14.000Z
2020-05-01T05:35:04.000Z
from binaryninja import log from .utils import BinjaStruct, read_pe_header, split_bits, update_percentage # https://msdn.microsoft.com/en-us/library/ft9x1kdx.aspx RUNTIME_FUNCTION_t = BinjaStruct('<III', names = ('BeginAddress', 'EndAddress', 'UnwindData')) def read_runtime_function(view, address): runtime_funct...
31
148
0.667578
0
0
0
0
0
0
0
0
591
0.161564
8a37f39c3ffc420ffcb4173ab24c22f5ec606276
2,538
py
Python
pixloc/visualization/viz_3d.py
jmorlana/pixloc
90f7e968398252e8557b284803ee774cb8d80cd0
[ "Apache-2.0" ]
457
2021-03-17T00:39:33.000Z
2022-03-30T02:38:19.000Z
pixloc/visualization/viz_3d.py
jmorlana/pixloc
90f7e968398252e8557b284803ee774cb8d80cd0
[ "Apache-2.0" ]
31
2021-03-17T07:35:34.000Z
2022-03-31T07:07:56.000Z
pixloc/visualization/viz_3d.py
jmorlana/pixloc
90f7e968398252e8557b284803ee774cb8d80cd0
[ "Apache-2.0" ]
56
2021-03-17T05:55:09.000Z
2022-03-15T01:38:35.000Z
""" 3D visualization primitives based on Plotly. We might want to instead use a more powerful library like Open3D. Plotly however supports animations, buttons and sliders. 1) Initialize a figure with `fig = init_figure()` 2) Plot points, cameras, lines, or create a slider animation. 3) Call `fig.show()` to render the ...
32.126582
74
0.566982
0
0
0
0
0
0
0
0
689
0.271474
8a37f74b88dcc7ed94cf7a22b08f15fb01357b23
1,882
py
Python
day04/c.py
Net-Mist/advent_of_code2021
124d773356bee2794294800de7673d5fac24db0a
[ "MIT" ]
1
2022-01-03T09:21:33.000Z
2022-01-03T09:21:33.000Z
day04/c.py
Net-Mist/advent_of_code2021
124d773356bee2794294800de7673d5fac24db0a
[ "MIT" ]
null
null
null
day04/c.py
Net-Mist/advent_of_code2021
124d773356bee2794294800de7673d5fac24db0a
[ "MIT" ]
null
null
null
import numpy as np GRID_SIZE = 5 def read_bingo_grid(lines: list[str]) -> list[list[int]]: return [[int(n) for n in line.split()] for line in lines] def bingo_step(grids: np.ndarray, checked_grids: np.ndarray, number: int) -> None: checked_grids[np.where(grids == number)] = True def check_victory(check_g...
34.218182
120
0.624867
0
0
0
0
0
0
0
0
112
0.059511
8a3aa16cb3dbe2b4a517472d48c9588e47d4f479
1,497
py
Python
altair/vegalite/v2/examples/us_population_pyramid_over_time.py
hugovk/altair
a3c9f06790f7a8c5c7e2c98278d0f69e4630b5be
[ "BSD-3-Clause" ]
1
2022-03-13T21:42:09.000Z
2022-03-13T21:42:09.000Z
altair/vegalite/v2/examples/us_population_pyramid_over_time.py
RoyMachineLearning/altair
74a765b373694776e63d224d99536975cc173810
[ "BSD-3-Clause" ]
null
null
null
altair/vegalite/v2/examples/us_population_pyramid_over_time.py
RoyMachineLearning/altair
74a765b373694776e63d224d99536975cc173810
[ "BSD-3-Clause" ]
null
null
null
''' US Population Pyramid Over Time =============================== A population pyramid shows the distribution of age groups within a population. It uses a slider widget that is bound to the year to visualize the age distribution over time. ''' # category: case studies import altair as alt from altair.expr import datu...
29.352941
78
0.674683
0
0
0
0
0
0
0
0
457
0.305277
8a3b3f3a85478c2b401e7083ce3f440c82013e30
987
py
Python
mtp_api/apps/core/migrations/0004_token.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
5
2016-01-05T12:21:35.000Z
2020-10-28T17:06:02.000Z
mtp_api/apps/core/migrations/0004_token.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
209
2015-06-12T09:39:41.000Z
2022-03-21T16:01:19.000Z
mtp_api/apps/core/migrations/0004_token.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
1
2021-04-11T06:19:23.000Z
2021-04-11T06:19:23.000Z
from django.db import migrations, models import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): dependencies = [ ('core', '0003_auto_20180404_1515'), ] operations = [ migrations.CreateModel( name='Token', fields=[ ...
37.961538
147
0.591692
888
0.899696
0
0
0
0
0
0
155
0.157042
8a3c0f03126e25cbd17946a5a7c81e22d30b3f4d
821
py
Python
palm_tree/coconut_1/models.py
m-hintz-42/a-palm-tree
57656874335f4dfae13cf720668f2c5391621618
[ "MIT" ]
null
null
null
palm_tree/coconut_1/models.py
m-hintz-42/a-palm-tree
57656874335f4dfae13cf720668f2c5391621618
[ "MIT" ]
null
null
null
palm_tree/coconut_1/models.py
m-hintz-42/a-palm-tree
57656874335f4dfae13cf720668f2c5391621618
[ "MIT" ]
null
null
null
from palm_tree import db class Data(db.Model): id = db.Column(db.Integer, primary_key=True) uuid = db.Column(db.Integer) response = db.Column(db.Text) datetime = db.Column(db.DateTime) def __init__(self, uuid, response, datetime): self.uuid = uuid self.response = response ...
25.65625
50
0.613886
385
0.46894
0
0
0
0
0
0
404
0.492083
8a3ca54d0e30bc25beb86e00254a401833904b9e
6,885
py
Python
network_checker/dhcp_checker/utils.py
Zipfer/fuel-web
c6c4032eb6e29474e2be0318349265bdb566454c
[ "Apache-2.0" ]
null
null
null
network_checker/dhcp_checker/utils.py
Zipfer/fuel-web
c6c4032eb6e29474e2be0318349265bdb566454c
[ "Apache-2.0" ]
null
null
null
network_checker/dhcp_checker/utils.py
Zipfer/fuel-web
c6c4032eb6e29474e2be0318349265bdb566454c
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Mirantis, 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 ...
30.464602
78
0.615832
1,619
0.235149
1,756
0.255047
625
0.090777
0
0
2,323
0.3374
8a3cab0b0c29dee41665f61e10da5e23f85da48c
670
py
Python
paneldata_dash/backend/schemas/johnson_scanner_data.py
clarencejlee/jdp
d3d31db0138ff06f2f5ec592d85317941af4f280
[ "MIT" ]
null
null
null
paneldata_dash/backend/schemas/johnson_scanner_data.py
clarencejlee/jdp
d3d31db0138ff06f2f5ec592d85317941af4f280
[ "MIT" ]
null
null
null
paneldata_dash/backend/schemas/johnson_scanner_data.py
clarencejlee/jdp
d3d31db0138ff06f2f5ec592d85317941af4f280
[ "MIT" ]
null
null
null
from ma import ma from models.johnson_scanner_data import JohnsonScannerDataModel from schemas.brand import BrandSchema from schemas.category import CategorySchema from schemas.facts_in_data import FactsInDataSchema from schemas.market import MarketSchema from schemas.period import PeriodSchema class JohnsonScannerDa...
27.916667
63
0.770149
368
0.549254
0
0
0
0
0
0
24
0.035821
8a3cfa083e8e8e57b0bc63b2f6a4954146234e99
6,995
py
Python
Chest X-Ray Multilabel Image classification using CNN - Pytorch/Arch2.py
farzanaaswin0708/CNN-for-Visual-recognition
db65db0a0b60e1ed2a4a418069de61936aaa9e85
[ "MIT" ]
null
null
null
Chest X-Ray Multilabel Image classification using CNN - Pytorch/Arch2.py
farzanaaswin0708/CNN-for-Visual-recognition
db65db0a0b60e1ed2a4a418069de61936aaa9e85
[ "MIT" ]
null
null
null
Chest X-Ray Multilabel Image classification using CNN - Pytorch/Arch2.py
farzanaaswin0708/CNN-for-Visual-recognition
db65db0a0b60e1ed2a4a418069de61936aaa9e85
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: ################################################################################ # CSE 253: Programming Assignment 3 # Winter 2019 # Code author: Jenny Hamer (+ modifications by Tejash Desai) # # Filename: baseline_cnn.py # # Description: # # This file contains the star...
36.623037
157
0.653324
5,941
0.849321
0
0
0
0
0
0
2,879
0.41158
8a3e36ced124cb7dabea478a1f4b328edd22757f
1,344
py
Python
news_access.py
HydeJackal/TwitterWeeklyNewsBot
64fc6b9e7d74bafd26f4dcdfe28e835ece1cee9b
[ "MIT" ]
null
null
null
news_access.py
HydeJackal/TwitterWeeklyNewsBot
64fc6b9e7d74bafd26f4dcdfe28e835ece1cee9b
[ "MIT" ]
null
null
null
news_access.py
HydeJackal/TwitterWeeklyNewsBot
64fc6b9e7d74bafd26f4dcdfe28e835ece1cee9b
[ "MIT" ]
null
null
null
import json import urllib.request import credentials from datetime import datetime, timedelta class NewsAPI: def __init__(self, nyt_api): self.nyt_access = nyt_api def get_nyt_last_week_articles(self, topic, today): delta = timedelta(weeks = 1) last_week = today - delta begin_...
42
180
0.638393
1,124
0.83631
0
0
0
0
0
0
339
0.252232
8a3e37aebc3bcbec9a89c90db3f81c339c737670
8,847
py
Python
tests/unit/test_trial_component.py
owen-t/sagemaker-experiments-1
ef2af4009c3a5c6a63db5cec6b9de6c614dfdd66
[ "Apache-2.0" ]
null
null
null
tests/unit/test_trial_component.py
owen-t/sagemaker-experiments-1
ef2af4009c3a5c6a63db5cec6b9de6c614dfdd66
[ "Apache-2.0" ]
null
null
null
tests/unit/test_trial_component.py
owen-t/sagemaker-experiments-1
ef2af4009c3a5c6a63db5cec6b9de6c614dfdd66
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
41.341121
118
0.635696
0
0
0
0
76
0.00859
0
0
1,879
0.212388
8a3e99f0293f853274afed91ad78cb5b4d2be8d4
8,379
py
Python
cadnano25/cadnano/part/xovercmds.py
amylittleyang/OtraCAD
126360719704caf6850d42565fe96be53b66a22d
[ "MIT" ]
null
null
null
cadnano25/cadnano/part/xovercmds.py
amylittleyang/OtraCAD
126360719704caf6850d42565fe96be53b66a22d
[ "MIT" ]
null
null
null
cadnano25/cadnano/part/xovercmds.py
amylittleyang/OtraCAD
126360719704caf6850d42565fe96be53b66a22d
[ "MIT" ]
null
null
null
from cadnano.cnproxy import UndoCommand from cadnano.strand import Strand from cadnano import getBatch import cadnano.preferences as prefs import random class CreateXoverCommand(UndoCommand): """ Creates a Xover from the 3' end of strand5p to the 5' end of strand3p this needs to 1. preserve the old oli...
35.807692
96
0.628118
8,199
0.978518
0
0
0
0
0
0
1,759
0.20993
8a3f2203d02e338bbadd1c557a7d415e6e39dbbc
379
py
Python
src/temp2.py
FabBrolMons/frbayart
c2b9dde730cf6d21f1c1492d0da0351c12a4dce9
[ "MIT" ]
null
null
null
src/temp2.py
FabBrolMons/frbayart
c2b9dde730cf6d21f1c1492d0da0351c12a4dce9
[ "MIT" ]
null
null
null
src/temp2.py
FabBrolMons/frbayart
c2b9dde730cf6d21f1c1492d0da0351c12a4dce9
[ "MIT" ]
null
null
null
from w1thermsensor import W1ThermSensor sensor = W1ThermSensor() temperature_in_celsius = sensor.get_temperature() temperature_in_fahrenheit = sensor.get_temperature(W1ThermSensor.DEGREES_F) temperature_in_all_units = sensor.get_temperatures([W1ThermSensor.DEGREES_C, W1ThermSensor.DEGREES_F, W1ThermSensor.KELVIN]) pri...
42.111111
124
0.852243
0
0
0
0
0
0
0
0
12
0.031662
8a3ff7ca606f5ce67c32533b5892e230c75d4eb8
413
py
Python
tables/migrations/0004_auto_20200901_2004.py
jarnoln/exposures
bbae3f79078048d25b77e178db6c0801ffe9f97e
[ "MIT" ]
null
null
null
tables/migrations/0004_auto_20200901_2004.py
jarnoln/exposures
bbae3f79078048d25b77e178db6c0801ffe9f97e
[ "MIT" ]
null
null
null
tables/migrations/0004_auto_20200901_2004.py
jarnoln/exposures
bbae3f79078048d25b77e178db6c0801ffe9f97e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-01 17:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tables', '0003_exposure_category'), ] operations = [ migrations.AlterField( model_name='exposure', name='location', ...
21.736842
75
0.605327
320
0.774818
0
0
0
0
0
0
101
0.244552
8a406525f88287f3d13cd5aee631ef0cc809c7ec
247
py
Python
src/reportlab/graphics/charts/__init__.py
kokinomura/reportlab
18e39b85d7277c2b5e9218b30a7b7b0a644a3c02
[ "BSD-3-Clause" ]
52
2016-09-30T05:53:45.000Z
2021-12-26T12:07:48.000Z
src/reportlab/graphics/charts/__init__.py
kokinomura/reportlab
18e39b85d7277c2b5e9218b30a7b7b0a644a3c02
[ "BSD-3-Clause" ]
31
2017-01-05T06:07:28.000Z
2018-05-27T13:13:06.000Z
src/reportlab/graphics/charts/__init__.py
kokinomura/reportlab
18e39b85d7277c2b5e9218b30a7b7b0a644a3c02
[ "BSD-3-Clause" ]
15
2016-11-03T08:50:15.000Z
2022-01-14T07:04:35.000Z
#Copyright ReportLab Europe Ltd. 2000-2016 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/__init__.py __version__='3.3.0' __doc__='''Business charts'''
41.166667
116
0.793522
0
0
0
0
0
0
0
0
222
0.898785
8a40f2fa1c9f612802f1a429d750b73c73bf44c3
67,147
py
Python
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py
AndrewLane/azure-cli
524491c580fc3c133f2d9859cef1c8251f4192e4
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py
AndrewLane/azure-cli
524491c580fc3c133f2d9859cef1c8251f4192e4
[ "MIT" ]
3
2021-03-26T00:25:36.000Z
2022-03-29T22:03:55.000Z
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py
david-driscoll/azure-cli
0dbf5e4ac2f35057bc9b8234b0a59612593552c5
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
50.486466
195
0.655949
0
0
0
0
0
0
0
0
18,099
0.269543
8a41876d28109b10beeda61ce63d0fb68903a3e0
4,091
py
Python
scraping/faqscraper.py
ednihs-yahska/unibrowser
c91aaf7df8b316c707e5a268f82e789615be9fb8
[ "Apache-2.0" ]
null
null
null
scraping/faqscraper.py
ednihs-yahska/unibrowser
c91aaf7df8b316c707e5a268f82e789615be9fb8
[ "Apache-2.0" ]
null
null
null
scraping/faqscraper.py
ednihs-yahska/unibrowser
c91aaf7df8b316c707e5a268f82e789615be9fb8
[ "Apache-2.0" ]
null
null
null
import re import httplib2 from bs4 import BeautifulSoup from scraping.faqscrapperutil import stripExtra, removeDuplicates, removeBlackListedQuestions, getBlackListedQuestions, convertToJsonList, saveToMongo from scraping.Constants import ENABLE_CUSTOM_QUESTIONS_FILTER, FAQ_LINKS, COLLECTION_NAME d...
36.855856
208
0.633341
0
0
0
0
0
0
0
0
1,031
0.252017
8a425179166f5e46f9936c55196547277fa5770b
2,600
py
Python
messages/term_utils.py
ckousoulis/macos-messages
acf7ac94a81f7d097e2025c6ec7dd429de010795
[ "MIT" ]
null
null
null
messages/term_utils.py
ckousoulis/macos-messages
acf7ac94a81f7d097e2025c6ec7dd429de010795
[ "MIT" ]
null
null
null
messages/term_utils.py
ckousoulis/macos-messages
acf7ac94a81f7d097e2025c6ec7dd429de010795
[ "MIT" ]
null
null
null
"""Terminal utilities specific to message archives. Creates colored text and helps write Messages output. """ from contextlib import contextmanager import itertools import readline FG_COLORS = dict(itertools.chain( zip(("black", "red", "green", "yellow", "blue", "mage...
23.423423
75
0.589615
0
0
192
0.073846
208
0.08
0
0
1,065
0.409615
8a4336dbd5d1cefd9e382961486ab2a2e96b55c6
2,714
py
Python
tests/test_subpixel_upsample.py
Project-MONAI/MONAI
2bab12c67c3cc1d54a4847628ce1e879064be11c
[ "Apache-2.0" ]
2,971
2019-10-16T23:53:16.000Z
2022-03-31T20:58:24.000Z
tests/test_subpixel_upsample.py
Project-MONAI/MONAI
2bab12c67c3cc1d54a4847628ce1e879064be11c
[ "Apache-2.0" ]
2,851
2020-01-10T16:23:44.000Z
2022-03-31T22:14:53.000Z
tests/test_subpixel_upsample.py
Project-MONAI/MONAI
2bab12c67c3cc1d54a4847628ce1e879064be11c
[ "Apache-2.0" ]
614
2020-01-14T19:18:01.000Z
2022-03-31T14:06:14.000Z
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
34.35443
105
0.687546
354
0.130435
0
0
311
0.114591
0
0
937
0.345247
8a43f4805ca2bfbefacf005fd91befea7f1c3e71
492
py
Python
gen-cfg.py
magetron/secure-flow-prototype
c683939620fec889f882ea095d2b27e3e4bb98fe
[ "Apache-2.0" ]
null
null
null
gen-cfg.py
magetron/secure-flow-prototype
c683939620fec889f882ea095d2b27e3e4bb98fe
[ "Apache-2.0" ]
null
null
null
gen-cfg.py
magetron/secure-flow-prototype
c683939620fec889f882ea095d2b27e3e4bb98fe
[ "Apache-2.0" ]
null
null
null
from staticfg import CFGBuilder userCfg = CFGBuilder().build_from_file('user.py', './auction/user.py') bidCfg = CFGBuilder().build_from_file('bid.py', './auction/bid.py') auctionCfg = CFGBuilder().build_from_file('auction.py','./auction/auction.py') #auctionEventCfg = CFGBuilder().build_from_file('auction_event.py','...
41
96
0.760163
0
0
0
0
0
0
0
0
273
0.554878
8a44052cfce16663b8820adca1028bccdfa9a1aa
438
py
Python
CodeForces/A2OJ Ladder/softuni_problem.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
CodeForces/A2OJ Ladder/softuni_problem.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
CodeForces/A2OJ Ladder/softuni_problem.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
total_budget = 0 while True: destination = input() if destination == "End": break minimal_budget = float(input()) while True: command = input() if command == "End": break money = float(command) total_budget += money if total_budge...
24.333333
46
0.513699
0
0
0
0
0
0
0
0
36
0.082192
8a441182ab86ba1e69b301671e3fe079d2030d2e
406
py
Python
footmark/ram/regioninfo.py
rockzhu/footmark
af2144e9139a63b475fa2b56c3307ddfd49c43e4
[ "Apache-2.0" ]
null
null
null
footmark/ram/regioninfo.py
rockzhu/footmark
af2144e9139a63b475fa2b56c3307ddfd49c43e4
[ "Apache-2.0" ]
null
null
null
footmark/ram/regioninfo.py
rockzhu/footmark
af2144e9139a63b475fa2b56c3307ddfd49c43e4
[ "Apache-2.0" ]
null
null
null
from footmark.regioninfo import RegionInfo class RAMRegionInfo(RegionInfo): """ Represents an ram Region """ def __init__(self, connection=None, name=None, id=None, connection_cls=None): from footmark.ram.connection import RAMConnection super(RAMRegionInfo, self).__in...
29
65
0.618227
360
0.8867
0
0
0
0
0
0
40
0.098522
8a444601b18de24677a5df5024e0921fdacf4ec7
8,983
py
Python
glue/plugins/export_d3po.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
1
2019-12-17T07:58:35.000Z
2019-12-17T07:58:35.000Z
glue/plugins/export_d3po.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
null
null
null
glue/plugins/export_d3po.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
1
2019-08-04T14:10:12.000Z
2019-08-04T14:10:12.000Z
from __future__ import absolute_import, division, print_function import os import json from glue.core import Subset DISPATCH = {} def save_page(page, page_number, label, subset): """ Convert a tab of a glue session into a D3PO page :param page: Tuple of data viewers to save :param label: Tab label ...
28.977419
121
0.627296
0
0
0
0
0
0
0
0
3,573
0.397751
8a44b11af8b2eb998e8acb85624cce72fd9e4d1c
303
py
Python
exercicios/ex 061 a 070/ex061.py
CarlosWillian/python
f863578245fbf402e5b46f844a247355afed0d62
[ "MIT" ]
null
null
null
exercicios/ex 061 a 070/ex061.py
CarlosWillian/python
f863578245fbf402e5b46f844a247355afed0d62
[ "MIT" ]
null
null
null
exercicios/ex 061 a 070/ex061.py
CarlosWillian/python
f863578245fbf402e5b46f844a247355afed0d62
[ "MIT" ]
null
null
null
print('Crie sua P.A. de 10 termos') n1 = int(input('Digite o primeiro termo da P.A.: ')) r = int(input('Digite a razão: ')) termo = n1 c = 1 print('A P.A. é (', end='') while c <= 10: print('{}'.format(termo), end='') print(', ' if c < 10 else '', end='') termo += r c += 1 print(')')
20.2
52
0.518152
0
0
0
0
0
0
0
0
114
0.37377
8a44c4f1bacc53b31ee5cd71ffc633ea07de715c
5,326
py
Python
src/pyrqlite/connections.py
zmedico/pyrqlite
17a22221e4e796a04c28aa578a93821cc3349b41
[ "MIT" ]
2
2016-04-05T16:16:43.000Z
2016-05-14T12:58:02.000Z
src/pyrqlite/connections.py
zmedico/pyrqlite
17a22221e4e796a04c28aa578a93821cc3349b41
[ "MIT" ]
1
2017-06-04T07:36:45.000Z
2017-06-04T22:57:05.000Z
src/pyrqlite/connections.py
zmedico/pyrqlite
17a22221e4e796a04c28aa578a93821cc3349b41
[ "MIT" ]
1
2016-04-30T20:27:35.000Z
2016-04-30T20:27:35.000Z
from __future__ import unicode_literals import codecs import logging try: from http.client import HTTPConnection, HTTPSConnection except ImportError: # pylint: disable=import-error from httplib import HTTPConnection, HTTPSConnection try: from urllib.parse import urlparse except ImportError: # py...
34.141026
97
0.608336
4,742
0.890349
0
0
0
0
0
0
1,048
0.196771
8a44d6f6124cbf59eb9c835f08ecb56f0d9adf5a
737
py
Python
PythonBasics/ConditionalStatements/Exercise/toy_shop.py
achoraev/SoftUni
0cc7db470a096cc33bbe0ca6bd90060b79120573
[ "Apache-2.0" ]
null
null
null
PythonBasics/ConditionalStatements/Exercise/toy_shop.py
achoraev/SoftUni
0cc7db470a096cc33bbe0ca6bd90060b79120573
[ "Apache-2.0" ]
null
null
null
PythonBasics/ConditionalStatements/Exercise/toy_shop.py
achoraev/SoftUni
0cc7db470a096cc33bbe0ca6bd90060b79120573
[ "Apache-2.0" ]
null
null
null
price = float(input()) puzzles = int(input()) dolls = int(input()) bears = int(input()) minions = int(input()) trucks = int(input()) total_toys = puzzles + dolls + bears + minions + trucks price_puzzles = puzzles * 2.6 price_dolls = dolls * 3 price_bears = bears * 4.1 price_minions = minions * 8.2 pric...
25.413793
87
0.662144
0
0
0
0
0
0
0
0
103
0.139756
8a45566aab7d64963906b912efac019f5bac9c8e
2,079
py
Python
ironic/tests/api/utils.py
citrix-openstack-build/ironic
4b9eed0aeba44739caa742a48b55d824eae8ec55
[ "Apache-2.0" ]
null
null
null
ironic/tests/api/utils.py
citrix-openstack-build/ironic
4b9eed0aeba44739caa742a48b55d824eae8ec55
[ "Apache-2.0" ]
null
null
null
ironic/tests/api/utils.py
citrix-openstack-build/ironic
4b9eed0aeba44739caa742a48b55d824eae8ec55
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # -*- encoding: utf-8 -*- # # 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 # # Un...
31.5
78
0.534873
1,292
0.621453
0
0
0
0
0
0
1,032
0.496392
8a455ca53b609476797038c96b21d969bbdf51e3
2,234
py
Python
bookshelf/main/forms.py
thewordisbird/bookshelf
5166720bdc0dbffedc14b71b0f75ad78dc69b465
[ "MIT" ]
null
null
null
bookshelf/main/forms.py
thewordisbird/bookshelf
5166720bdc0dbffedc14b71b0f75ad78dc69b465
[ "MIT" ]
null
null
null
bookshelf/main/forms.py
thewordisbird/bookshelf
5166720bdc0dbffedc14b71b0f75ad78dc69b465
[ "MIT" ]
null
null
null
import datetime from flask_wtf import FlaskForm from wtforms import ( StringField, TextAreaField, DateTimeField, HiddenField, PasswordField, ) from wtforms.validators import DataRequired, ValidationError, Email, EqualTo class NullableDateTimeField(DateTimeField): """Modify DateField to allow f...
36.032258
86
0.658013
1,982
0.887198
0
0
0
0
0
0
506
0.2265
8a458f7c27c0535d07e4b642f5a00528aee12141
3,387
py
Python
main.py
DanielM24/Romanian-sub-dialect-identificator
78b3e00f8ee768eb0b1e8cf832a2dc0b8504b04d
[ "MIT" ]
null
null
null
main.py
DanielM24/Romanian-sub-dialect-identificator
78b3e00f8ee768eb0b1e8cf832a2dc0b8504b04d
[ "MIT" ]
null
null
null
main.py
DanielM24/Romanian-sub-dialect-identificator
78b3e00f8ee768eb0b1e8cf832a2dc0b8504b04d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Proiect.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1TR1Frf0EX4PtFZkLlVdGtMTINqhoQwRw """ # Importarea librariilor import numpy as np import pandas as pd # pandas pentru citirea fisierelor from sklearn import prepr...
38.05618
120
0.775613
0
0
0
0
0
0
0
0
1,052
0.310599
8a45f1c6e8e51b93e9ab54060af5d33d536b2abf
75
py
Python
logger/__init__.py
remmyzen/nqs-tensorflow2
2af5d5ebb108eac4d2daa5082bdef11c8107bd1b
[ "MIT" ]
4
2021-07-29T17:52:54.000Z
2022-02-15T06:32:15.000Z
logger/__init__.py
remmyzen/nqs-tensorflow2
2af5d5ebb108eac4d2daa5082bdef11c8107bd1b
[ "MIT" ]
null
null
null
logger/__init__.py
remmyzen/nqs-tensorflow2
2af5d5ebb108eac4d2daa5082bdef11c8107bd1b
[ "MIT" ]
null
null
null
from .logger import Logger from .logger_supervised import LoggerSupervised
25
47
0.866667
0
0
0
0
0
0
0
0
0
0
8a46bd296a626ee6789a10ae8ade0e121655708c
36,304
py
Python
flytekit/core/workflow.py
milton0825/flytekit
7667a154402d7c02e25006bd6cce926917382a1e
[ "Apache-2.0" ]
null
null
null
flytekit/core/workflow.py
milton0825/flytekit
7667a154402d7c02e25006bd6cce926917382a1e
[ "Apache-2.0" ]
null
null
null
flytekit/core/workflow.py
milton0825/flytekit
7667a154402d7c02e25006bd6cce926917382a1e
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import collections import inspect from dataclasses import dataclass from enum import Enum from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union from flytekit.common import constants as _common_constants from flytekit.common.exceptions.user import FlyteValidation...
46.663239
129
0.675518
29,257
0.805889
0
0
2,792
0.076906
0
0
13,207
0.363789
8a47b1a4041d7e6d082433e91d3935c95f8c494b
12,125
py
Python
nemo/collections/asr/parts/numba/rnnt_loss/rnnt_numpy.py
madhukarkm/NeMo
648c97f076147684bee6aaada209f2f20adcaf5d
[ "Apache-2.0" ]
4,145
2019-09-13T08:29:43.000Z
2022-03-31T18:31:44.000Z
nemo/collections/asr/parts/numba/rnnt_loss/rnnt_numpy.py
madhukarkm/NeMo
648c97f076147684bee6aaada209f2f20adcaf5d
[ "Apache-2.0" ]
2,031
2019-09-17T16:51:39.000Z
2022-03-31T23:52:41.000Z
nemo/collections/asr/parts/numba/rnnt_loss/rnnt_numpy.py
madhukarkm/NeMo
648c97f076147684bee6aaada209f2f20adcaf5d
[ "Apache-2.0" ]
1,041
2019-09-13T10:08:21.000Z
2022-03-30T06:37:38.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appli...
35.557185
119
0.628784
1,450
0.119578
0
0
588
0.048491
0
0
5,843
0.481857
8a48a06f40aea92943e0a0af216f5992d3ce3e19
987
py
Python
dataset_specifications/swirls.py
joeloskarsson/CGAN-regression
1cbcced10d28c11df8500373fc625e5df493f21d
[ "MIT" ]
12
2020-05-22T08:02:27.000Z
2022-03-28T06:14:23.000Z
dataset_specifications/swirls.py
joeloskarsson/CGAN-regression
1cbcced10d28c11df8500373fc625e5df493f21d
[ "MIT" ]
3
2021-06-08T21:33:24.000Z
2022-03-11T07:11:06.000Z
dataset_specifications/swirls.py
joeloskarsson/CGAN-regression
1cbcced10d28c11df8500373fc625e5df493f21d
[ "MIT" ]
null
null
null
import numpy as np import math from dataset_specifications.dataset import Dataset class SwirlsSet(Dataset): def __init__(self): super().__init__() self.name = "swirls" self.n_samples = { "train": 2000, "val": 1000, "test": 1000, } self....
25.307692
78
0.563323
900
0.911854
0
0
0
0
0
0
145
0.14691
8a490933d8b95e96a7ba4163aae03b0fe0c37be5
657
py
Python
pytorch-frontend/tools/code_coverage/oss_coverage.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
40
2021-06-01T07:37:59.000Z
2022-03-25T01:42:09.000Z
pytorch-frontend/tools/code_coverage/oss_coverage.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
14
2021-06-01T11:52:46.000Z
2022-03-25T02:13:08.000Z
pytorch-frontend/tools/code_coverage/oss_coverage.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
7
2021-07-20T19:34:26.000Z
2022-03-13T21:07:36.000Z
#!/usr/bin/env python import time from package.oss.cov_json import get_json_report from package.oss.init import initialization from package.tool.summarize_jsons import summarize_jsons from package.util.setting import TestPlatform def report_coverage() -> None: start_time = time.time() (options, test_list, in...
27.375
77
0.73516
0
0
0
0
0
0
0
0
90
0.136986
8a49341d1b3481c67276f3865a9ce768c4be3a18
1,068
py
Python
twitoff/predict.py
dscohen75/twitoff
62d5702e989a6b5fc54aaf9326e240dd63c9fd06
[ "MIT" ]
null
null
null
twitoff/predict.py
dscohen75/twitoff
62d5702e989a6b5fc54aaf9326e240dd63c9fd06
[ "MIT" ]
null
null
null
twitoff/predict.py
dscohen75/twitoff
62d5702e989a6b5fc54aaf9326e240dd63c9fd06
[ "MIT" ]
null
null
null
import numpy as np from sklearn.linear_model import LogisticRegression from .models import User from .twitter import vectorize_tweet def predict_user(user1_name, user2_name, tweet_text): """ Determine and return which user is more likely to say a given Tweet. Example: predict_user('ausen', 'elonmusk'...
41.076923
72
0.699438
0
0
0
0
0
0
0
0
277
0.259363
8a497075ae36fc35a089004f84ef24d85e09ec1c
401
py
Python
groupthink/version.py
emanuelfeld/groupthink
d8a6f666080352d396b07096cbd6304391f7c38d
[ "CC0-1.0" ]
1
2017-01-09T17:27:05.000Z
2017-01-09T17:27:05.000Z
groupthink/version.py
emanuelfeld/groupthink
d8a6f666080352d396b07096cbd6304391f7c38d
[ "CC0-1.0" ]
null
null
null
groupthink/version.py
emanuelfeld/groupthink
d8a6f666080352d396b07096cbd6304391f7c38d
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of groupthink. # https://github.com/emanuelfeld/groupthink # This project is in the public domain within the United States. # Additionally, the Government of the District of Columbia waives # copyright and related rights in the work worldwide through t...
28.642857
72
0.743142
0
0
0
0
0
0
0
0
372
0.927681
8a49cedf036c8174ae69a9ea00ffa4a94799bd4c
6,028
py
Python
feeder/feeder_ucf.py
George-Polya/st-gcn
e3209796d6de160161063e4c93a00c62b35d3591
[ "BSD-2-Clause" ]
null
null
null
feeder/feeder_ucf.py
George-Polya/st-gcn
e3209796d6de160161063e4c93a00c62b35d3591
[ "BSD-2-Clause" ]
null
null
null
feeder/feeder_ucf.py
George-Polya/st-gcn
e3209796d6de160161063e4c93a00c62b35d3591
[ "BSD-2-Clause" ]
null
null
null
# sys import os import sys import numpy as np import random import pickle import json # torch import torch import torch.nn as nn from torchvision import datasets, transforms # operation from . import tools class Feeder_UCF(torch.utils.data.Dataset): """ Feeder for skeleton-based action recognition in kinetics-sk...
35.251462
104
0.588421
5,818
0.965163
0
0
0
0
0
0
1,319
0.218812
8a49e6407bf66d6fbb676497c6a102a344eeed6b
2,533
py
Python
apps/core/migrations/0001_initial.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
4
2021-12-24T16:07:44.000Z
2022-03-04T02:30:20.000Z
apps/core/migrations/0001_initial.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
4
2021-12-30T13:32:56.000Z
2022-03-15T03:58:48.000Z
apps/core/migrations/0001_initial.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 4.0.2 on 2022-03-02 03:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('vit'...
42.932203
236
0.55073
2,374
0.937229
0
0
0
0
0
0
563
0.222266
8a4a2deaf316f920a36e808eb86cd1a1c9c75edd
2,260
py
Python
tests/common/schema_registry.py
epiphany-platform/cdl-temporary
daa704f379c05d7b733c382058ff88a2549d33d7
[ "Apache-2.0" ]
8
2020-11-04T10:32:03.000Z
2021-09-08T16:46:13.000Z
tests/common/schema_registry.py
epiphany-platform/cdl-temporary
daa704f379c05d7b733c382058ff88a2549d33d7
[ "Apache-2.0" ]
418
2020-11-05T12:43:26.000Z
2021-10-19T02:24:43.000Z
tests/common/schema_registry.py
epiphany-platform/cdl-temporary
daa704f379c05d7b733c382058ff88a2549d33d7
[ "Apache-2.0" ]
13
2020-11-18T12:37:42.000Z
2021-09-16T07:43:27.000Z
import os import subprocess import time import grpc import tests.rpc.proto.schema_registry_pb2 as pb2 import tests.rpc.proto.schema_registry_pb2_grpc as pb2_grpc from tests.common.postgres import PostgresConfig EXE = os.getenv('SCHEMA_REGISTRY_EXE') or 'schema-registry' class SchemaRegistry: def __init__(self, ...
35.873016
83
0.643805
1,984
0.877876
0
0
0
0
0
0
407
0.180088
8a4a74e407a1faa40bc78d3ab5dcb9c6741e4b2e
1,743
py
Python
testsuite/tests/apicast/policy/routing/test_routing_policy_catch_all.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
5
2021-11-04T14:09:24.000Z
2021-12-23T13:48:36.000Z
testsuite/tests/apicast/policy/routing/test_routing_policy_catch_all.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
41
2021-11-03T14:27:21.000Z
2022-03-29T14:46:16.000Z
testsuite/tests/apicast/policy/routing/test_routing_policy_catch_all.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
12
2021-11-03T17:28:31.000Z
2021-11-30T12:28:25.000Z
""" When a routing policy is set with an empty condition, it should be loaded correctly and should route all the requests to a correct backend. """ from urllib.parse import urlparse import pytest from packaging.version import Version # noqa # pylint: disable=unused-import from testsuite import TESTED_VERSION, rawobj ...
32.277778
104
0.693058
0
0
0
0
704
0.403901
0
0
755
0.433161
8a4aca2698c2e4be69222dd4573ceaef0614a5f5
2,113
py
Python
ceilometer/data_processing/notifications.py
vmturbo/ceilometer
f856d3c915b738a64bce14967ba8114fe923c1af
[ "Apache-2.0" ]
null
null
null
ceilometer/data_processing/notifications.py
vmturbo/ceilometer
f856d3c915b738a64bce14967ba8114fe923c1af
[ "Apache-2.0" ]
null
null
null
ceilometer/data_processing/notifications.py
vmturbo/ceilometer
f856d3c915b738a64bce14967ba8114fe923c1af
[ "Apache-2.0" ]
1
2019-09-16T02:11:41.000Z
2019-09-16T02:11:41.000Z
# Copyright (c) 2014 Mirantis 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 writ...
29.347222
79
0.6531
1,205
0.570279
526
0.248935
571
0.270232
0
0
932
0.441079
8a4ad309763c3cfd1dc25a625d22290970950e53
946
py
Python
tests/src/Diksha_Reports/usage_by_textbook/download_all_collection_records.py
JalajaTR/cQube
6bf58ab25f0c36709630987ab730bbd5d9192c03
[ "MIT" ]
null
null
null
tests/src/Diksha_Reports/usage_by_textbook/download_all_collection_records.py
JalajaTR/cQube
6bf58ab25f0c36709630987ab730bbd5d9192c03
[ "MIT" ]
2
2022-02-01T00:55:12.000Z
2022-03-29T22:29:09.000Z
tests/src/Diksha_Reports/usage_by_textbook/download_all_collection_records.py
JalajaTR/cQube
6bf58ab25f0c36709630987ab730bbd5d9192c03
[ "MIT" ]
null
null
null
import os import time from selenium.webdriver.support.select import Select from Data.parameters import Data from get_dir import pwd from reuse_func import GetData class All_records_download(): def __init__(self,driver): self.driver = driver self.filename ='' def test_download_csv(self): ...
28.666667
82
0.684989
776
0.820296
0
0
0
0
0
0
60
0.063425
8a4baa5bb9eb37f79466bfa86485901ebe84452b
39,528
py
Python
yt_dlp/cookies.py
Naysabots/yt-dlp
bef4697a6a4c225d010125d6ff6dfbfd4fb76e33
[ "Unlicense" ]
null
null
null
yt_dlp/cookies.py
Naysabots/yt-dlp
bef4697a6a4c225d010125d6ff6dfbfd4fb76e33
[ "Unlicense" ]
null
null
null
yt_dlp/cookies.py
Naysabots/yt-dlp
bef4697a6a4c225d010125d6ff6dfbfd4fb76e33
[ "Unlicense" ]
null
null
null
import contextlib import ctypes import json import os import shutil import struct import subprocess import sys import tempfile from datetime import datetime, timedelta, timezone from enum import Enum, auto from hashlib import pbkdf2_hmac from .aes import ( aes_cbc_decrypt_bytes, aes_gcm_decrypt_and_verify_byte...
39.646941
134
0.664921
9,448
0.23902
0
0
856
0.021656
0
0
11,546
0.292097
8a4c2b7fd420450ab300e48488a392b1a4cf50ef
1,205
py
Python
hgtools/tests/conftest.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
1
2017-05-17T15:12:29.000Z
2017-05-17T15:12:29.000Z
hgtools/tests/conftest.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
12
2016-01-01T14:43:44.000Z
2021-10-03T02:13:19.000Z
hgtools/tests/conftest.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
null
null
null
import os import pytest from hgtools import managers def _ensure_present(mgr): try: mgr.version() except Exception: pytest.skip() @pytest.fixture def tmpdir_as_cwd(tmpdir): with tmpdir.as_cwd(): yield tmpdir @pytest.fixture def hg_repo(tmpdir_as_cwd): mgr = managers.Mercu...
21.517857
62
0.624066
0
0
73
0.060581
972
0.806639
0
0
269
0.223237
8a4c6c7b420769dc35e8f30f400909774d7d25e6
22,154
py
Python
gfirefly/dbentrust/dbutils.py
handsome3163/H2Dgame-Firefly
2d213928977dc490909f456327e5cae80998e60d
[ "MIT" ]
675
2015-01-01T05:18:30.000Z
2022-03-18T08:27:06.000Z
gfirefly/dbentrust/dbutils.py
liuis/Firefly
fd2795b8c26de6ab63bbec23d11f18c3dfb39a50
[ "MIT" ]
3
2015-01-29T02:36:14.000Z
2022-01-21T09:19:21.000Z
gfirefly/dbentrust/dbutils.py
liuis/Firefly
fd2795b8c26de6ab63bbec23d11f18c3dfb39a50
[ "MIT" ]
248
2015-01-04T08:24:31.000Z
2022-02-18T07:14:02.000Z
#coding:utf8 ''' Created on 2013-8-21 @author: lan (www.9miao.com) ''' import itertools import datetime def safeunicode(obj, encoding='utf-8'): r""" Converts any given object to unicode string. >>> safeunicode('hello') u'hello' >>> safeunicode(2) u'2' >>> safeunic...
31.693848
115
0.510743
15,624
0.705245
0
0
0
0
0
0
8,863
0.400063
8a4ccded7f4f9f9be895e48e8a31955a7046241e
4,371
py
Python
dddppp/settings.py
tysonclugg/dddppp
22f52d671ca71c2df8d6ac566a1626e5f05b3159
[ "MIT" ]
null
null
null
dddppp/settings.py
tysonclugg/dddppp
22f52d671ca71c2df8d6ac566a1626e5f05b3159
[ "MIT" ]
null
null
null
dddppp/settings.py
tysonclugg/dddppp
22f52d671ca71c2df8d6ac566a1626e5f05b3159
[ "MIT" ]
null
null
null
""" Django settings for dddppp project. Generated by 'django-admin startproject' using Django 1.8.2. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths...
26.981481
77
0.695722
0
0
0
0
0
0
0
0
2,561
0.585907
8a4fee7da31280c4ead726e734baac5bb3fc023e
1,227
py
Python
setup.py
dantas/wifi
e9cd6df7d3411f1532843999f6c33f45369c3fe4
[ "BSD-2-Clause" ]
1
2019-04-29T14:57:45.000Z
2019-04-29T14:57:45.000Z
setup.py
dantas/wifi
e9cd6df7d3411f1532843999f6c33f45369c3fe4
[ "BSD-2-Clause" ]
null
null
null
setup.py
dantas/wifi
e9cd6df7d3411f1532843999f6c33f45369c3fe4
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup import os __doc__ = """ Command line tool and library wrappers around iwlist and /etc/network/interfaces. """ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() install_requires = [ 'setuptools', 'pbkdf2', ] try: im...
23.150943
70
0.625102
0
0
0
0
0
0
0
0
580
0.472698
8a5020fde45eeb5e84a7966a0bf40c59df2eeca7
2,653
py
Python
auth-api/src/auth_api/resources/org_products.py
severinbeauvais/sbc-auth
c98f75ea8970a357c62093b6e9f7deab61ae87c5
[ "Apache-2.0" ]
null
null
null
auth-api/src/auth_api/resources/org_products.py
severinbeauvais/sbc-auth
c98f75ea8970a357c62093b6e9f7deab61ae87c5
[ "Apache-2.0" ]
null
null
null
auth-api/src/auth_api/resources/org_products.py
severinbeauvais/sbc-auth
c98f75ea8970a357c62093b6e9f7deab61ae87c5
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
42.790323
115
0.724463
1,276
0.480784
0
0
1,363
0.513564
0
0
954
0.359457
8a507bf3c4b912bd7ed181d618b52de6b0f464f2
3,749
py
Python
TWLight/applications/management/commands/send_coordinator_reminders.py
nicole331/TWLight
fab9002e76868f8a2ef36f9279c777de34243b2c
[ "MIT" ]
67
2017-12-14T22:27:48.000Z
2022-03-13T18:21:31.000Z
TWLight/applications/management/commands/send_coordinator_reminders.py
nicole331/TWLight
fab9002e76868f8a2ef36f9279c777de34243b2c
[ "MIT" ]
433
2017-03-24T22:51:23.000Z
2022-03-31T19:36:22.000Z
TWLight/applications/management/commands/send_coordinator_reminders.py
Mahuton/TWLight
90b299d07b0479f21dc90e17b8d05f5a221b0de1
[ "MIT" ]
105
2017-06-23T03:53:41.000Z
2022-03-30T17:24:29.000Z
import logging from collections import Counter from django.core.management.base import BaseCommand from django.db.models import Q from TWLight.applications.models import Application from TWLight.resources.models import Partner from TWLight.applications.signals import Reminder from TWLight.users.models import Editor l...
43.593023
98
0.584956
3,390
0.904241
0
0
0
0
0
0
864
0.230461
8a509772d4b71309e020c912aabb38728c706128
15,176
py
Python
python/3D-rrt/pvtrace/LightSources.py
rapattack88/mcclanahoochie
6df72553ba954b52e949a6847a213b22f9e90157
[ "Apache-2.0" ]
1
2020-12-27T21:37:35.000Z
2020-12-27T21:37:35.000Z
python/3D-rrt/pvtrace/LightSources.py
rapattack88/mcclanahoochie
6df72553ba954b52e949a6847a213b22f9e90157
[ "Apache-2.0" ]
null
null
null
python/3D-rrt/pvtrace/LightSources.py
rapattack88/mcclanahoochie
6df72553ba954b52e949a6847a213b22f9e90157
[ "Apache-2.0" ]
null
null
null
# pvtrace is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # pvtrace is distributed in the hope that it will be useful, # but WITHOUT...
38.035088
176
0.61136
13,761
0.906761
0
0
0
0
0
0
2,607
0.171784
8a50b1905c10bef14015d0bd1e4794d8d3018140
38,121
py
Python
circuitry/circuitry.py
nthparty/circuitry
e8bc8bde93cf5056368a14a21086f18f1bcd934f
[ "MIT" ]
3
2020-06-23T19:11:53.000Z
2021-01-06T16:42:56.000Z
circuitry/circuitry.py
nthparty/circuitry
e8bc8bde93cf5056368a14a21086f18f1bcd934f
[ "MIT" ]
4
2020-07-28T03:14:59.000Z
2020-07-28T17:44:25.000Z
circuitry/circuitry.py
nthparty/circuitry
e8bc8bde93cf5056368a14a21086f18f1bcd934f
[ "MIT" ]
1
2020-06-23T19:07:59.000Z
2020-06-23T19:07:59.000Z
"""Embedded DSL for assembling logic circuits. Embedded domain-specific combinator library for assembling abstract definitions of logic circuits and synthesizing circuits from those definitions. """ from __future__ import annotations from typing import Sequence import doctest from parts import parts from circuit impo...
33.557218
92
0.440728
35,779
0.938564
0
0
2,525
0.066236
0
0
27,111
0.711183
8a50da9ca339ad2c3e097b9d78b1dde9a457d80b
1,037
py
Python
plot_user_activity.py
KanayBhandari/discord_bot_project
4baa62c963c532b08060689bed872e36e72460f9
[ "MIT" ]
null
null
null
plot_user_activity.py
KanayBhandari/discord_bot_project
4baa62c963c532b08060689bed872e36e72460f9
[ "MIT" ]
null
null
null
plot_user_activity.py
KanayBhandari/discord_bot_project
4baa62c963c532b08060689bed872e36e72460f9
[ "MIT" ]
null
null
null
import discord import random from datetime import datetime import pandas as pd import matplotlib.pyplot as plt import csv async def plot_user_activity(client, ctx): plt.style.use('fivethirtyeight') df = pd.read_csv('innovators.csv', encoding= 'unicode_escape') author = df['author'].to_list() ...
26.589744
78
0.649952
0
0
0
0
0
0
903
0.870781
209
0.201543
8a50f54c898793f1acb00252a2b2f5ed4e326667
790
py
Python
setup.py
skojaku/fastnode2vec
bb65f68469f00f489fa6744d35b8756200b4e285
[ "MIT" ]
61
2020-04-21T18:58:47.000Z
2022-03-26T22:41:45.000Z
setup.py
skojaku/fastnode2vec
bb65f68469f00f489fa6744d35b8756200b4e285
[ "MIT" ]
17
2020-04-21T22:37:17.000Z
2022-03-31T22:36:03.000Z
setup.py
skojaku/fastnode2vec
bb65f68469f00f489fa6744d35b8756200b4e285
[ "MIT" ]
6
2020-07-30T01:41:59.000Z
2022-01-19T10:13:01.000Z
#!/usr/bin/env python3 import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="fastnode2vec", version="0.0.5", author="Louis Abraham", license="MIT", author_email="louis.abraham@yahoo.fr", description="Fast ...
29.259259
83
0.694937
0
0
0
0
0
0
0
0
367
0.464557
8a521621650bf40359a7bc7b59a9b8905567d6ce
738
py
Python
app/main/config.py
nhattvm11/flask-restful-boilerplate
a450c03c1b1db2886b4e00b2c30284a59d9b91e6
[ "MIT" ]
null
null
null
app/main/config.py
nhattvm11/flask-restful-boilerplate
a450c03c1b1db2886b4e00b2c30284a59d9b91e6
[ "MIT" ]
null
null
null
app/main/config.py
nhattvm11/flask-restful-boilerplate
a450c03c1b1db2886b4e00b2c30284a59d9b91e6
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.getenv('SECRET_KEY', '') DEBUG = False class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'flask_main.db') SQLALCHEMY_TRACK_MODIFICATIONS = False...
21.085714
83
0.718157
534
0.723577
0
0
0
0
0
0
68
0.092141
8a522d6b63aaba15a267dd005faa4b6a9a20a8c0
946
py
Python
Chapter07/library/check_user_py3.py
djouani/Learning-Ansible-2.X-Third-Edition
34d6745c2bde8367ad2db7c9343bc8477b0643d7
[ "MIT" ]
22
2019-04-22T02:13:39.000Z
2021-10-01T22:03:51.000Z
Chapter07/library/check_user_py3.py
djouani/Learning-Ansible-2.X-Third-Edition
34d6745c2bde8367ad2db7c9343bc8477b0643d7
[ "MIT" ]
1
2019-12-12T20:22:43.000Z
2020-08-30T17:13:00.000Z
Chapter07/library/check_user_py3.py
djouani/Learning-Ansible-2.X-Third-Edition
34d6745c2bde8367ad2db7c9343bc8477b0643d7
[ "MIT" ]
25
2019-04-09T04:29:50.000Z
2021-12-22T22:17:14.000Z
#!/usr/bin/env python import pwd from ansible.module_utils.basic import AnsibleModule class User: def __init__(self, user): self.user = user # Check if user exists def check_if_user_exists(self): try: user = pwd.getpwnam(self.user) success = True ret_ms...
23.073171
59
0.599366
409
0.432347
0
0
0
0
0
0
155
0.163848
8a52440233bd3169102a1818d34f5c74f2141148
2,823
py
Python
backend/server/converters/schema/ontology.py
GenomicsNX/cellxgene
f9c744327a3be48c93b47bba71a480e1eeb97835
[ "MIT" ]
8
2021-03-17T23:42:41.000Z
2022-03-08T13:08:55.000Z
backend/server/converters/schema/ontology.py
GenomicsNX/cellxgene
f9c744327a3be48c93b47bba71a480e1eeb97835
[ "MIT" ]
194
2021-08-18T23:52:44.000Z
2022-03-30T19:40:41.000Z
backend/server/converters/schema/ontology.py
GenomicsNX/cellxgene
f9c744327a3be48c93b47bba71a480e1eeb97835
[ "MIT" ]
8
2021-03-22T17:07:31.000Z
2022-03-08T11:07:48.000Z
"""Methods for working with ontologies and the OLS.""" from urllib.parse import quote_plus import requests OLS_API_ROOT = "http://www.ebi.ac.uk/ols/api" # Curie means something like CL:0000001 def _ontology_name(curie): """Get the name of the ontology from the curie, CL or UBERON for example.""" return cur...
32.448276
103
0.681899
112
0.039674
0
0
0
0
0
0
1,813
0.642225
8a5244b8a475e9cca6ead4f4463ced1af6491956
17,945
py
Python
survey/api/matrix.py
djaodjin/djaodjin-survey
a6eb8a577fecd219850478c245d9ebe990438a64
[ "BSD-2-Clause" ]
15
2015-03-12T18:14:50.000Z
2022-03-26T10:16:55.000Z
survey/api/matrix.py
djaodjin/djaodjin-survey
a6eb8a577fecd219850478c245d9ebe990438a64
[ "BSD-2-Clause" ]
19
2015-03-31T20:48:08.000Z
2022-03-30T17:31:49.000Z
survey/api/matrix.py
djaodjin/djaodjin-survey
a6eb8a577fecd219850478c245d9ebe990438a64
[ "BSD-2-Clause" ]
4
2015-12-16T20:53:34.000Z
2017-12-20T19:50:42.000Z
# Copyright (c) 2020, DjaoDjin 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: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
29.958264
80
0.51017
15,895
0.885762
0
0
300
0.016718
0
0
9,885
0.55085
8a5248567c33c615e0f8be2779b082966267e38c
2,740
py
Python
remove_labels.py
iFishy/DomainApp
970ee96450859b1c40a86a9d654beb99c56aa00f
[ "MIT" ]
null
null
null
remove_labels.py
iFishy/DomainApp
970ee96450859b1c40a86a9d654beb99c56aa00f
[ "MIT" ]
null
null
null
remove_labels.py
iFishy/DomainApp
970ee96450859b1c40a86a9d654beb99c56aa00f
[ "MIT" ]
null
null
null
from __future__ import print_function import httplib2 import os import sys import pickle from apiclient import discovery from apiclient import errors from oauth2client import client from oauth2client import tools from oauth2client.file import Storage try: import argparse flags = argparse.ArgumentParser(parents...
30.444444
79
0.69635
0
0
0
0
0
0
0
0
848
0.309489
8a5251a1a46d1a18949b3dd2b2c26f7e8e32aa06
7,795
py
Python
readgadget/modules/rs_structs.py
danielmarostica/pygadgetreader
977949da7fcb6585f3e0270019d369c6967b317c
[ "BSD-3-Clause" ]
6
2020-09-02T21:11:59.000Z
2021-09-24T16:12:44.000Z
readgadget/modules/rs_structs.py
danielmarostica/pygadgetreader
977949da7fcb6585f3e0270019d369c6967b317c
[ "BSD-3-Clause" ]
1
2021-09-24T14:40:03.000Z
2021-09-25T20:07:13.000Z
readgadget/modules/rs_structs.py
danielmarostica/pygadgetreader
977949da7fcb6585f3e0270019d369c6967b317c
[ "BSD-3-Clause" ]
1
2020-11-18T19:15:39.000Z
2020-11-18T19:15:39.000Z
import numpy as np import sys ## ROCKSTAR ## halostruct1 = np.dtype([('id',np.int64), ('pos',np.float32,(6,)), ('corevel',np.float32,(3,)), ('bulkvel',np.float32,(3,)), ('m',np.float32), ('r',np.floa...
44.289773
78
0.340988
0
0
0
0
0
0
0
0
1,447
0.185632
8a525a8a02f61d5499bb1c8bffd7e68682942e12
9,990
py
Python
ics2entropiawiki.py
entropia/ics2entropiawiki
d77fa8073c2b18eade1c2b85feaccab8b6598c6b
[ "Apache-2.0" ]
2
2020-01-02T04:52:03.000Z
2020-03-02T04:00:08.000Z
ics2entropiawiki.py
entropia/ics2entropiawiki
d77fa8073c2b18eade1c2b85feaccab8b6598c6b
[ "Apache-2.0" ]
8
2018-11-06T10:05:43.000Z
2021-10-09T20:26:16.000Z
ics2entropiawiki.py
entropia/ics2entropiawiki
d77fa8073c2b18eade1c2b85feaccab8b6598c6b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ics2entropiawiki Read an ics file with the entropia events and insert them in to the entropia homepage wiki. Example: $ ics2entropiawiki.py --config /etc/ics2entropiawiki/config.ini Inserts events not in the past to the "Termine" Wiki page and appends past ...
26.289474
116
0.563063
3,096
0.309848
0
0
2,258
0.225981
0
0
3,839
0.384207
8a525fbb996d5472af74df006412af4f27d25fa6
527
py
Python
Arrays/LeftRotation.py
anand722000/algo_ds_101
b3e25ce2b2e47e53024f8d349232b04de2837ce3
[ "MIT" ]
175
2019-12-08T19:48:20.000Z
2022-03-24T07:38:08.000Z
Arrays/LeftRotation.py
anand722000/algo_ds_101
b3e25ce2b2e47e53024f8d349232b04de2837ce3
[ "MIT" ]
40
2019-12-07T08:11:41.000Z
2020-10-09T08:11:22.000Z
Arrays/LeftRotation.py
anand722000/algo_ds_101
b3e25ce2b2e47e53024f8d349232b04de2837ce3
[ "MIT" ]
95
2019-12-07T06:25:31.000Z
2022-03-03T20:12:45.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the rotLeft function below. def rotLeft(a, d): alist = list(a) b = alist[d:]+alist[:d] return b if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') nd = input().split() n...
16.46875
49
0.548387
0
0
0
0
0
0
0
0
87
0.165085
8a541e67401b79ca7c42ad0362d81bb514bab960
947
py
Python
tests/unittests/test_zoo.py
SaizhuoWang/carefree-learn
3bf7b00286cdef556cc00fa2fcba5c390b5b9d20
[ "MIT" ]
null
null
null
tests/unittests/test_zoo.py
SaizhuoWang/carefree-learn
3bf7b00286cdef556cc00fa2fcba5c390b5b9d20
[ "MIT" ]
null
null
null
tests/unittests/test_zoo.py
SaizhuoWang/carefree-learn
3bf7b00286cdef556cc00fa2fcba5c390b5b9d20
[ "MIT" ]
1
2021-01-04T02:23:00.000Z
2021-01-04T02:23:00.000Z
import os import cflearn import platform import unittest from cfdata.tabular import TabularDataset num_jobs = 0 if platform.system() == "Linux" else 2 logging_folder = "__test_zoo__" class TestZoo(unittest.TestCase): @staticmethod def _test_zoo_core(model: str) -> None: x, y = TabularDataset.iris()....
27.852941
65
0.663147
710
0.749736
0
0
516
0.544879
0
0
77
0.081309
8a54334c8ec0d2c98a16bb220c95973a631adeb1
3,810
py
Python
unit_13/26-Data_Structures/4_Merge_Sort_and_Linked_Lists/3_linked_list_merge_sort.py
duliodenis/python_master_degree
3ab76838ce2fc1606f28e988a3273dd27122a621
[ "MIT" ]
19
2019-03-14T01:39:32.000Z
2022-02-03T00:36:43.000Z
unit_13/26-Data_Structures/4_Merge_Sort_and_Linked_Lists/3_linked_list_merge_sort.py
duliodenis/python_master_degree
3ab76838ce2fc1606f28e988a3273dd27122a621
[ "MIT" ]
1
2020-04-10T01:01:16.000Z
2020-04-10T01:01:16.000Z
unit_13/26-Data_Structures/4_Merge_Sort_and_Linked_Lists/3_linked_list_merge_sort.py
duliodenis/python_master_degree
3ab76838ce2fc1606f28e988a3273dd27122a621
[ "MIT" ]
5
2019-01-02T20:46:05.000Z
2020-07-08T22:47:48.000Z
# # Data Structures: Linked List Merge Sort: The Conquer Step # Python Techdegree # # Created by Dulio Denis on 3/24/19. # Copyright (c) 2019 ddApps. All rights reserved. # ------------------------------------------------ from linked_list import Node, LinkedList def merge_sort(linked_list): ''' Sorts a lin...
32.288136
81
0.630971
0
0
0
0
0
0
0
0
1,722
0.451969
8a5438fd129b5b6996b6b2555c75bb6bb382b7d5
5,639
py
Python
nearpy/examples/example2.py
samyoo78/NearPy
1b534b864d320d875508e95cd2b76b6d8c07a90b
[ "MIT" ]
624
2015-01-02T21:45:28.000Z
2022-03-02T11:04:27.000Z
nearpy/examples/example2.py
samyoo78/NearPy
1b534b864d320d875508e95cd2b76b6d8c07a90b
[ "MIT" ]
65
2015-02-06T09:47:46.000Z
2021-09-26T01:45:26.000Z
nearpy/examples/example2.py
samyoo78/NearPy
1b534b864d320d875508e95cd2b76b6d8c07a90b
[ "MIT" ]
136
2015-01-07T04:45:41.000Z
2021-11-25T17:46:07.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2013 Ole Krause-Sparmann # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
32.039773
90
0.662529
0
0
0
0
0
0
0
0
2,668
0.473134
8a54995b61e4b0596e764748ce12766155458309
2,551
py
Python
discordbot.py
8ka1alu/heroku-global-py
7968ff6c215d6d86149221c246b4aaa5cd04df59
[ "MIT" ]
null
null
null
discordbot.py
8ka1alu/heroku-global-py
7968ff6c215d6d86149221c246b4aaa5cd04df59
[ "MIT" ]
null
null
null
discordbot.py
8ka1alu/heroku-global-py
7968ff6c215d6d86149221c246b4aaa5cd04df59
[ "MIT" ]
null
null
null
from discord.ext import commands, tasks # Bot Commands Frameworkをインポート import traceback # エラー表示のためにインポート import os import discord import r TOKEN = os.environ['DISCORD_BOT_TOKEN'] prefix = os.environ['DISCORD_BOT_PREFIX'] #プレフィックス # 読み込むコグの名前を格納しておく。 INITIAL_EXTENSIONS = [ 'cogs.eval', 'cogs.glchat', 'cogs...
29.321839
130
0.563701
2,297
0.739298
0
0
0
0
1,181
0.380109
1,210
0.389443
8a54b71c70f57dfff2df2e65acf1f13a323c5a9e
9,468
py
Python
examples/plot_spectral_unmixing.py
ealopez/pycroscopy
9f7c0543b67eaa0668296295fc5f492360c130a0
[ "MIT" ]
null
null
null
examples/plot_spectral_unmixing.py
ealopez/pycroscopy
9f7c0543b67eaa0668296295fc5f492360c130a0
[ "MIT" ]
null
null
null
examples/plot_spectral_unmixing.py
ealopez/pycroscopy
9f7c0543b67eaa0668296295fc5f492360c130a0
[ "MIT" ]
null
null
null
""" ================================================================= Spectral Unmixing ================================================================= Suhas Somnath, Rama K. Vasudevan, Stephen Jesse * Institute for Functional Imaging of Materials * Center for Nanophase Materials Sciences Oak Ridge National Labora...
43.036364
120
0.705218
0
0
0
0
0
0
0
0
6,989
0.738171
8a54efc9a7ad3665cabc7b4468043314dcb3122b
3,743
py
Python
test/test_downloadfile.py
foliant-docs/foliantcontrib.downloadfile
1af9481f9bc9142d8b1ac1eff93fa0c5577ccaec
[ "MIT" ]
null
null
null
test/test_downloadfile.py
foliant-docs/foliantcontrib.downloadfile
1af9481f9bc9142d8b1ac1eff93fa0c5577ccaec
[ "MIT" ]
null
null
null
test/test_downloadfile.py
foliant-docs/foliantcontrib.downloadfile
1af9481f9bc9142d8b1ac1eff93fa0c5577ccaec
[ "MIT" ]
null
null
null
import shutil from pathlib import Path from unittest import TestCase from unittest.mock import Mock from unittest.mock import patch from foliant.config.downloadfile import download_file from foliant.config.downloadfile import get_file_ext_from_url from foliant.config.downloadfile import get_file_name_from_url class...
32.833333
76
0.663906
3,421
0.913973
0
0
2,061
0.550628
0
0
704
0.188084
8a550e70bdbd276329aa52d0c840e8979d0e9e43
2,113
py
Python
question.py
Lilium765/momoko
c84b37cbe280055fedaac4ee9195d6410b234aba
[ "MIT" ]
null
null
null
question.py
Lilium765/momoko
c84b37cbe280055fedaac4ee9195d6410b234aba
[ "MIT" ]
null
null
null
question.py
Lilium765/momoko
c84b37cbe280055fedaac4ee9195d6410b234aba
[ "MIT" ]
null
null
null
import discord client = discord.Client() # 接続に使用するオブジェクト # 起動時 @client.event async def on_ready(): print('ログイン成功') # メッセージを監視 @client.event async def on_message(message): # 「/box」が頭についたメッセージならオウム返しする if message.content.startswith('/box'): # 文字から「/box」を抜く question = message.content[len(...
30.623188
69
0.618552
0
0
0
0
1,089
0.357635
1,061
0.34844
1,755
0.576355
8a5581cd0e7ff399dcb5faaf23430dc8e5e4058e
4,370
py
Python
figure_code/rate_of_change_tc.py
DavisWeaver/fears
857cb959a3a111a41df4cf62c4c6a19d3abd33c0
[ "MIT" ]
null
null
null
figure_code/rate_of_change_tc.py
DavisWeaver/fears
857cb959a3a111a41df4cf62c4c6a19d3abd33c0
[ "MIT" ]
null
null
null
figure_code/rate_of_change_tc.py
DavisWeaver/fears
857cb959a3a111a41df4cf62c4c6a19d3abd33c0
[ "MIT" ]
1
2021-11-09T14:42:01.000Z
2021-11-09T14:42:01.000Z
import matplotlib.pyplot as plt import numpy as np from fears.utils import results_manager, plotter, dir_manager import os suffix = '07212021_0001' data_folder = 'results_' + suffix exp_info_file = 'experiment_info_' + suffix + '.p' exp_folders,exp_info = results_manager.get_experiment_results(data_folder, ...
37.350427
85
0.415103
0
0
0
0
0
0
0
0
563
0.128833
8a55afc76d238a2edb1a2adff77422f604912e7b
25,760
py
Python
rpython/annotator/annrpython.py
microvm/pypy-mu
6b03fbe93052d0eb3a4c67152c987c16837b3484
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/annotator/annrpython.py
microvm/pypy-mu
6b03fbe93052d0eb3a4c67152c987c16837b3484
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/annotator/annrpython.py
microvm/pypy-mu
6b03fbe93052d0eb3a4c67152c987c16837b3484
[ "Apache-2.0", "OpenSSL" ]
null
null
null
from __future__ import absolute_import import types from collections import defaultdict from rpython.tool.ansi_print import AnsiLogger from rpython.tool.pairtype import pair from rpython.tool.error import (format_blocked_annotation_error, gather_error, source_lines) from rpython.flowspace...
40.312989
85
0.604891
25,021
0.971312
468
0.018168
0
0
0
0
5,350
0.207686