hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
3d8f6ebcd66d10fa92b72a023f6b9f167877f99d
1,653
py
Python
fhirclient/models/researchdefinition_tests.py
carolinarsm/client-py
db1b6e3e28036dee11da75412003c7d90e591c6d
[ "Apache-2.0" ]
418
2015-07-01T08:23:16.000Z
2022-03-31T14:02:30.000Z
fhirclient/models/researchdefinition_tests.py
carolinarsm/client-py
db1b6e3e28036dee11da75412003c7d90e591c6d
[ "Apache-2.0" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
fhirclient/models/researchdefinition_tests.py
carolinarsm/client-py
db1b6e3e28036dee11da75412003c7d90e591c6d
[ "Apache-2.0" ]
185
2015-03-30T20:23:16.000Z
2022-03-30T14:39:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07. # 2019, SMART Health IT. import os import io import unittest import json from . import researchdefinition from .fhirdate import FHIRDate class ResearchDefinitionTests(unittest.TestCase): def instantiate_from(...
38.44186
113
0.688445
4fa69ea381a0a8b69eccf9640a49bf6efdb329ba
5,201
py
Python
selfdrive/car/hyundai/navicontrol.py
hikee9123/openpilot_087
9d20a0eb525c58f3ac035164b27b7518e7494dbb
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/navicontrol.py
hikee9123/openpilot_087
9d20a0eb525c58f3ac035164b27b7518e7494dbb
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/navicontrol.py
hikee9123/openpilot_087
9d20a0eb525c58f3ac035164b27b7518e7494dbb
[ "MIT" ]
2
2021-08-16T04:00:46.000Z
2021-10-21T10:45:17.000Z
import math import numpy as np from selfdrive.config import Conversions as CV from selfdrive.car.hyundai.values import Buttons from selfdrive.controls.lib.lane_planner import TRAJECTORY_SIZE from common.numpy_fast import clip, interp import cereal.messaging as messaging import common.loger as trace1 import common.M...
26.809278
93
0.657181
3d419d4362060195e1d104c205fd5cf9d906ea61
48,013
py
Python
mesonbuild/interpreterbase/interpreterbase.py
xggrnx/meson
af8b55d49b64e72dbefbd40d613b93f56d17b855
[ "Apache-2.0" ]
null
null
null
mesonbuild/interpreterbase/interpreterbase.py
xggrnx/meson
af8b55d49b64e72dbefbd40d613b93f56d17b855
[ "Apache-2.0" ]
null
null
null
mesonbuild/interpreterbase/interpreterbase.py
xggrnx/meson
af8b55d49b64e72dbefbd40d613b93f56d17b855
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2017 The Meson development 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/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
48.157472
150
0.612022
39b9d2f9b4b88ca496f7dbc482c138fb7934f306
798
py
Python
flask-greet-calc/greet/app.py
SteviBee/SpringBoard_Exercises
5366390a2dad85b0a243f24a7f8536ff4a12bc7a
[ "Apache-2.0" ]
null
null
null
flask-greet-calc/greet/app.py
SteviBee/SpringBoard_Exercises
5366390a2dad85b0a243f24a7f8536ff4a12bc7a
[ "Apache-2.0" ]
null
null
null
flask-greet-calc/greet/app.py
SteviBee/SpringBoard_Exercises
5366390a2dad85b0a243f24a7f8536ff4a12bc7a
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request app = Flask(__name__) # /welcome # Returns “welcome” # /welcome/home # Returns “welcome home” # /welcome/back # Return “welcome home” # Once you’ve finished this, run the tests for it: # $ python3 -m unittest test.py @app.route("/") def home_page(): """"Shows homepage""" ...
18.136364
50
0.597744
17e32d79db830b92f9b3243bdab0a3c004732f1f
170
py
Python
mobie/tables/__init__.py
platybrowser/mobie-python
43341cd92742016a3a0d602325bb93b94c3b4c36
[ "MIT" ]
null
null
null
mobie/tables/__init__.py
platybrowser/mobie-python
43341cd92742016a3a0d602325bb93b94c3b4c36
[ "MIT" ]
1
2020-02-28T20:43:33.000Z
2020-02-28T20:43:33.000Z
mobie/tables/__init__.py
platybrowser/mobie-python
43341cd92742016a3a0d602325bb93b94c3b4c36
[ "MIT" ]
null
null
null
from .default_table import compute_default_table from .region_table import compute_region_table, check_region_table from .traces_table import compute_trace_default_table
42.5
66
0.9
c44b55d6e736013d17e5e7bfca7a86b173690549
12,307
py
Python
qiskit/opflow/primitive_ops/primitive_op.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
11
2019-06-27T09:53:29.000Z
2021-03-02T04:40:30.000Z
qiskit/opflow/primitive_ops/primitive_op.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
1
2019-09-13T23:45:08.000Z
2019-09-13T23:45:08.000Z
qiskit/opflow/primitive_ops/primitive_op.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
4
2019-08-05T15:35:33.000Z
2020-09-18T18:55:02.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
41.577703
100
0.650118
8e555962150a95574b817ca3957b46d3100b04a7
4,079
py
Python
test/functional/feature_includeconf.py
ahamium/WESCOIN
a15d64caa24dec050f997fe2031d518ee1d76836
[ "MIT" ]
null
null
null
test/functional/feature_includeconf.py
ahamium/WESCOIN
a15d64caa24dec050f997fe2031d518ee1d76836
[ "MIT" ]
null
null
null
test/functional/feature_includeconf.py
ahamium/WESCOIN
a15d64caa24dec050f997fe2031d518ee1d76836
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests the includeconf argument Verify that: 1. adding includeconf to the configuration file causes the inc...
49.144578
224
0.694533
2ce7da607276c5adf053ca87998adf237a89eef8
217
py
Python
library_management/library_management/doctype/library_management/test_library_management.py
bhattdevarsh/frappe_library
ee56712f75736428710689deb1070669ea87f343
[ "MIT" ]
null
null
null
library_management/library_management/doctype/library_management/test_library_management.py
bhattdevarsh/frappe_library
ee56712f75736428710689deb1070669ea87f343
[ "MIT" ]
null
null
null
library_management/library_management/doctype/library_management/test_library_management.py
bhattdevarsh/frappe_library
ee56712f75736428710689deb1070669ea87f343
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Devarsh and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestLibraryManagement(unittest.TestCase): pass
19.727273
47
0.769585
79ad719613f33e6e1aef5fd4c501d69637150c5f
3,736
py
Python
autofit/__init__.py
arfon/PyAutoFit
5926b13eefd97e089ee468cbec33452766edbd22
[ "MIT" ]
1
2021-01-18T23:20:31.000Z
2021-01-18T23:20:31.000Z
autofit/__init__.py
arfon/PyAutoFit
5926b13eefd97e089ee468cbec33452766edbd22
[ "MIT" ]
null
null
null
autofit/__init__.py
arfon/PyAutoFit
5926b13eefd97e089ee468cbec33452766edbd22
[ "MIT" ]
null
null
null
from . import conf from . import exc from .aggregator import Aggregator from .aggregator import PhaseOutput from .mapper import link from .mapper import prior from .mapper.model import AbstractModel from .mapper.model import ModelInstance from .mapper.model import ModelInstance as Instance from .mapper.model i...
46.7
88
0.844754
de3618687057494d918d8f6f783dfd78edbb7ce5
828
py
Python
setup.py
ntamas/python-selecta
bc9a11f288df427ceb126aa994ac3810685e2d94
[ "MIT" ]
1
2019-02-21T14:47:40.000Z
2019-02-21T14:47:40.000Z
setup.py
ntamas/python-selecta
bc9a11f288df427ceb126aa994ac3810685e2d94
[ "MIT" ]
2
2015-07-11T03:32:35.000Z
2015-08-26T09:29:40.000Z
setup.py
ntamas/python-selecta
bc9a11f288df427ceb126aa994ac3810685e2d94
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from selecta import __version__ from setuptools import setup options = dict( name='python-selecta', version=__version__, url='http://github.com/ntamas/python-selecta', description='Python port of @garybernhardt/selecta', license='MIT', author='T...
20.195122
56
0.607488
b6d48208164ee8308711e938d652385a590fa509
268
py
Python
v2_processing/structures/__init__.py
CN-TU/ntarc-spec
c92bc98d7affa46ce9cc66b4e2aab220bb584bf8
[ "MIT" ]
null
null
null
v2_processing/structures/__init__.py
CN-TU/ntarc-spec
c92bc98d7affa46ce9cc66b4e2aab220bb584bf8
[ "MIT" ]
15
2018-02-15T21:18:33.000Z
2018-11-28T13:13:52.000Z
v2_processing/structures/__init__.py
CN-TU/ntarc-spec
c92bc98d7affa46ce9cc66b4e2aab220bb584bf8
[ "MIT" ]
1
2022-01-07T16:23:50.000Z
2022-01-07T16:23:50.000Z
import os from .tool import Tool PROJECT_PATH = os.path.join(os.sep.join(__file__.split('/')[:-1]), '..', '..') def optional(d, key): try: return d[key] except KeyError: return None from .blocks import * from .high_level import FullPaper
15.764706
78
0.626866
a9ce941c1a708fa5f4c1604276aaeb7aaec63e91
26,553
py
Python
tests/clidoc_logic.py
clidoc/clidoc.python
cbc2717aa3ba6cd279c8106784bc711febbef29c
[ "MIT" ]
null
null
null
tests/clidoc_logic.py
clidoc/clidoc.python
cbc2717aa3ba6cd279c8106784bc711febbef29c
[ "MIT" ]
3
2015-05-10T06:45:37.000Z
2015-05-15T08:26:14.000Z
tests/clidoc_logic.py
clidoc/clidoc.python
cbc2717aa3ba6cd279c8106784bc711febbef29c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import (division, absolute_import, print_function, unicode_literals) from collections import defaultdict from copy import deepcopy import re import sys __all__ = [ 'SYSTEM_EXIT_OFF', 'PRINT_DOC_OFF', 'GUIDELINE_8_OFF', 'clidoc', ] SYST...
30.311644
79
0.624638
e9e7f84e008b69108f223f4d5af1c505637c0a8d
20,255
py
Python
upnpclient/upnp.py
asypost/upnpclient
5b5a923b34577d60674f4931e10056be0e54b1ba
[ "MIT" ]
1
2020-01-05T21:36:10.000Z
2020-01-05T21:36:10.000Z
env/lib/python3.7/site-packages/upnpclient/upnp.py
seanmitch/UPnP
f3cb1ef62657f166971c1c470ce5dfd58bdeeac9
[ "Unlicense" ]
1
2019-08-20T15:08:08.000Z
2019-08-20T15:08:08.000Z
env/lib/python3.7/site-packages/upnpclient/upnp.py
seanmitch/UPnP
f3cb1ef62657f166971c1c470ce5dfd58bdeeac9
[ "Unlicense" ]
null
null
null
import re import datetime from decimal import Decimal from base64 import b64decode from binascii import unhexlify from functools import partial from collections import OrderedDict import six import requests from requests.compat import urljoin, urlparse from dateutil.parser import parse as parse_date from lxml import e...
37.233456
100
0.594717
af350c1128751025e705a1e0eb00084925b3e980
7,811
py
Python
src/transformers/hf_argparser.py
MaxatTezekbayev/transformers
47298757a390afa8b4b2c96fbd285737c63e66af
[ "Apache-2.0" ]
77
2020-11-12T18:40:25.000Z
2022-03-27T06:41:30.000Z
src/transformers/hf_argparser.py
MaxatTezekbayev/transformers
47298757a390afa8b4b2c96fbd285737c63e66af
[ "Apache-2.0" ]
7
2021-03-11T14:00:58.000Z
2022-01-18T05:51:22.000Z
src/transformers/hf_argparser.py
MaxatTezekbayev/transformers
47298757a390afa8b4b2c96fbd285737c63e66af
[ "Apache-2.0" ]
23
2020-12-08T12:42:24.000Z
2022-02-11T13:55:24.000Z
import dataclasses import json import sys from argparse import ArgumentParser from enum import Enum from pathlib import Path from typing import Any, Iterable, List, NewType, Optional, Tuple, Union DataClass = NewType("DataClass", Any) DataClassType = NewType("DataClassType", Any) class HfArgumentParser(ArgumentPars...
44.890805
116
0.592882
8cd738a48d07eba7892449bedcd882980b561d53
42,424
py
Python
src/robotide/ui/treeplugin.py
cbeytas/RIDE
183747c66b80fcc8e5b79139278f928858944c5b
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-30T21:24:19.000Z
2021-11-30T21:24:19.000Z
src/robotide/ui/treeplugin.py
cbeytas/RIDE
183747c66b80fcc8e5b79139278f928858944c5b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robotide/ui/treeplugin.py
cbeytas/RIDE
183747c66b80fcc8e5b79139278f928858944c5b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
39.390901
101
0.656138
d47a611cf5180ec78343de20bcfcf197860dc2a1
1,761
py
Python
utils/train_ggnn.py
yifan-zhou19/ggnn_graph_classification
37bca1315fdf95933f52b4cd504ce89a768a86df
[ "MIT" ]
19
2019-02-26T05:43:39.000Z
2022-02-21T04:14:46.000Z
utils/train_ggnn.py
yifan-zhou19/ggnn_graph_classification
37bca1315fdf95933f52b4cd504ce89a768a86df
[ "MIT" ]
null
null
null
utils/train_ggnn.py
yifan-zhou19/ggnn_graph_classification
37bca1315fdf95933f52b4cd504ce89a768a86df
[ "MIT" ]
8
2018-12-25T02:05:41.000Z
2022-02-23T07:50:48.000Z
import torch from torch.autograd import Variable from tensorboardX import SummaryWriter from shutil import copyfile def train(epoch, dataloader, net, criterion, optimizer, opt, writer): for i, (adj_matrix, embedding_matrix, target) in enumerate(dataloader, 0): # print("----------------") net.z...
37.468085
105
0.611016
df4e7a3b3ba703eb735fb413fa75496ec3669963
7,746
py
Python
maddpg/multiagent/scenarios/simple_adversary.py
hogansung/deep-reinforcement-learning
5170ca42bdfdb16cc5c2b86c61bee304015a6254
[ "MIT" ]
null
null
null
maddpg/multiagent/scenarios/simple_adversary.py
hogansung/deep-reinforcement-learning
5170ca42bdfdb16cc5c2b86c61bee304015a6254
[ "MIT" ]
null
null
null
maddpg/multiagent/scenarios/simple_adversary.py
hogansung/deep-reinforcement-learning
5170ca42bdfdb16cc5c2b86c61bee304015a6254
[ "MIT" ]
null
null
null
import numpy as np from multiagent.core import World, Agent, Landmark from multiagent.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self): world = World() # set any world properties first world.dim_c = 2 num_agents = 3 world.num_agents = num_age...
37.062201
114
0.560935
5d12176020696496090c0e9cc734f00cb9abfb08
1,340
py
Python
parse_locale_data.py
kokokuo/collect_countries_info
adf23074063f4364002c22cfdd8ae5a254c256e6
[ "MIT" ]
null
null
null
parse_locale_data.py
kokokuo/collect_countries_info
adf23074063f4364002c22cfdd8ae5a254c256e6
[ "MIT" ]
1
2021-06-01T21:58:44.000Z
2021-06-01T21:58:44.000Z
parse_locale_data.py
kokokuo/collect_countries_info
adf23074063f4364002c22cfdd8ae5a254c256e6
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import babel import os from babel import Locale from utils import country_info, lang_info import pandas as pd import re import pycountry import pytz import json import io basepath = os.path.dirname(__file__) """ 取得所有語系以及語系代碼 (ISO-639-1) ########################################...
30.454545
90
0.710448
764f1cfcf389e632818660d918ef4d2d5aa379cc
86
py
Python
adminutils/__init__.py
lenhattruong165/Fixator10-Cogs
1d74e2483a8ae135e24e291bc39d39a2a391e2c8
[ "MIT" ]
null
null
null
adminutils/__init__.py
lenhattruong165/Fixator10-Cogs
1d74e2483a8ae135e24e291bc39d39a2a391e2c8
[ "MIT" ]
null
null
null
adminutils/__init__.py
lenhattruong165/Fixator10-Cogs
1d74e2483a8ae135e24e291bc39d39a2a391e2c8
[ "MIT" ]
null
null
null
from .adminutils import AdminUtils def setup(bot): bot.add_cog(AdminUtils(bot))
14.333333
34
0.744186
3561a2d3183252be1d55d5e7494953999b65e0b1
1,427
py
Python
src/trie.py
GeoRouv/distributed-fault-tolerant-kv-database
972733b48a556cf6f574cd78e0ce25369a412aaa
[ "MIT" ]
1
2021-05-27T16:41:57.000Z
2021-05-27T16:41:57.000Z
src/trie.py
GeoRouv/distributed-fault-tolerant-kv-database
972733b48a556cf6f574cd78e0ce25369a412aaa
[ "MIT" ]
null
null
null
src/trie.py
GeoRouv/distributed-fault-tolerant-kv-database
972733b48a556cf6f574cd78e0ce25369a412aaa
[ "MIT" ]
null
null
null
class Node: def __init__(self, payload=None): self.children = {} self.isFinal = False self.payload = payload class Trie: def __init__(self): # root node self.root = Node() def insert(self, key, payload): curr_node = self.root for char in key: ...
27.442308
75
0.569026
d6a05400addd6c326927ab89c86794dd45b1dc37
1,286
py
Python
pycones/proposals/migrations/0004_auto_20150713_1604.py
python-spain/PyConES2015
af78ad7f1d7df747a2f5428be87a5b061457dd24
[ "MIT" ]
null
null
null
pycones/proposals/migrations/0004_auto_20150713_1604.py
python-spain/PyConES2015
af78ad7f1d7df747a2f5428be87a5b061457dd24
[ "MIT" ]
null
null
null
pycones/proposals/migrations/0004_auto_20150713_1604.py
python-spain/PyConES2015
af78ad7f1d7df747a2f5428be87a5b061457dd24
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('proposals', '0003_proposal'), ] operations = [ migrations.AddField( model_name='proposal', name='des...
42.866667
240
0.673406
fd6a44a227f257f3f5aac4e61c5e8fd3456d7be2
10,805
py
Python
mev/api/views/resource_views.py
web-mev/mev-backend
bed15d399efc8cc1fd7ff2b8a3bd2dc55c83ecd8
[ "MIT" ]
2
2021-11-15T08:11:59.000Z
2022-03-12T05:24:23.000Z
mev/api/views/resource_views.py
web-mev/mev-backend
bed15d399efc8cc1fd7ff2b8a3bd2dc55c83ecd8
[ "MIT" ]
37
2020-08-03T14:57:02.000Z
2022-02-25T19:56:40.000Z
mev/api/views/resource_views.py
web-mev/mev-backend
bed15d399efc8cc1fd7ff2b8a3bd2dc55c83ecd8
[ "MIT" ]
2
2021-07-12T03:22:52.000Z
2021-11-15T08:12:01.000Z
import logging import json from django.conf import settings from rest_framework import permissions as framework_permissions from rest_framework import generics from rest_framework.views import APIView from rest_framework import status from rest_framework.response import Response from rest_framework.pagination import P...
38.451957
117
0.64137
db3d10298db9f154246587a9ea7920bf19f2d9ec
1,365
py
Python
python/rwi/display.py
modanesh/magic
2eec5c7a1e45a4594b02d8df1e7f2880d7fc8422
[ "MIT" ]
7
2021-03-13T22:12:41.000Z
2022-03-06T03:29:03.000Z
python/rwi/display.py
modanesh/magic
2eec5c7a1e45a4594b02d8df1e7f2880d7fc8422
[ "MIT" ]
1
2021-07-17T01:34:13.000Z
2021-07-17T04:58:54.000Z
python/rwi/display.py
modanesh/magic
2eec5c7a1e45a4594b02d8df1e7f2880d7fc8422
[ "MIT" ]
4
2021-05-25T07:44:33.000Z
2022-03-30T08:40:29.000Z
from data_store import DataClient import cv2 import numpy as np GOAL = (1058, 428) GOAL_RADIUS = 80 NOISY_REGIONS = [ [(590, 40), (700, 558)], [(790, 40), (900, 558)], ] if __name__ == '__main__': dc = DataClient() while True: p = dc['perception'] if p is None: exit() ...
27.3
78
0.47326
fdc1426f760b7e3ba7dd3e112b0b1cbb7acfc390
23,608
py
Python
src/pymodaq_plugins_stellarnet/hardware/stellarnet.py
Attolab/pymodaq_plugins_stellarnet
1289ccaf0cc8a52109cc0fe7ac8675245b87ef26
[ "CECILL-B" ]
null
null
null
src/pymodaq_plugins_stellarnet/hardware/stellarnet.py
Attolab/pymodaq_plugins_stellarnet
1289ccaf0cc8a52109cc0fe7ac8675245b87ef26
[ "CECILL-B" ]
null
null
null
src/pymodaq_plugins_stellarnet/hardware/stellarnet.py
Attolab/pymodaq_plugins_stellarnet
1289ccaf0cc8a52109cc0fe7ac8675245b87ef26
[ "CECILL-B" ]
1
2021-08-12T08:48:22.000Z
2021-08-12T08:48:22.000Z
# # Copyright 2012-2013 Jeremy Hall # # 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 o...
34.115607
111
0.60793
da7405f6b8f1374851506b990699059d39228c85
7,271
py
Python
enhanced_cbv/tests/tests.py
placiana/django-enhanced-cbv
7afc6d7399dfc61a0c09c52ea3b12cd3085dd682
[ "BSD-3-Clause" ]
null
null
null
enhanced_cbv/tests/tests.py
placiana/django-enhanced-cbv
7afc6d7399dfc61a0c09c52ea3b12cd3085dd682
[ "BSD-3-Clause" ]
null
null
null
enhanced_cbv/tests/tests.py
placiana/django-enhanced-cbv
7afc6d7399dfc61a0c09c52ea3b12cd3085dd682
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.core.exceptions import ImproperlyConfigured from enhanced_cbv.views.edit import (FormSetsMixin, ModelFormSetsMixin, EnhancedModelFormSet, ) from enhanced_cbv.tests.models import Author, Article from enhanced_cbv.tests.filters import AuthorFilterSet class FormSetsVi...
34.62381
76
0.583138
ec113c3187f7deded7931c47985b152a0a77325d
275
py
Python
core/wsgi.py
elgedawy/hidc
09fbd96590e6d4534cb14be46928700e2a58404d
[ "MIT" ]
null
null
null
core/wsgi.py
elgedawy/hidc
09fbd96590e6d4534cb14be46928700e2a58404d
[ "MIT" ]
null
null
null
core/wsgi.py
elgedawy/hidc
09fbd96590e6d4534cb14be46928700e2a58404d
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ import os from django.core.wsgi import get_wsgi_application from dj_static import Cling os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings') application = Cling(get_wsgi_application())
19.642857
64
0.752727
92d2b5263d6ae8bb12fa807d40e9fc79913da633
494
py
Python
Python3/0904-Fruit-Into-Baskets/soln-3.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0904-Fruit-Into-Baskets/soln-3.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0904-Fruit-Into-Baskets/soln-3.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def totalFruit(self, tree: List[int]) -> int: # longest subarray with only two types counter = collections.defaultdict(int) lo, ans = 0, 0 for i, num in enumerate(tree): counter[num] += 1 while len(counter) > 2: counter[tree[lo]...
32.933333
49
0.473684
fb9be0ee9396dcfd3ccbee51c56e3ebf4dcf6996
2,395
py
Python
datasets/my_h36m_eval_dataset.py
akashsengupta1997/GraphCMR
0b8b05be4f711995ba50e414effbde98b6b11c5b
[ "BSD-3-Clause" ]
null
null
null
datasets/my_h36m_eval_dataset.py
akashsengupta1997/GraphCMR
0b8b05be4f711995ba50e414effbde98b6b11c5b
[ "BSD-3-Clause" ]
null
null
null
datasets/my_h36m_eval_dataset.py
akashsengupta1997/GraphCMR
0b8b05be4f711995ba50e414effbde98b6b11c5b
[ "BSD-3-Clause" ]
null
null
null
import cv2 import numpy as np import os import pickle import torch from torch.utils.data import Dataset from torchvision.transforms import Normalize import config class H36MEvalDataset(Dataset): def __init__(self, h36m_dir_path, protocol, img_wh, use_subset=False): super(H36MEvalDataset, self).__init__()...
29.567901
97
0.618789
006d5b08b69c1a04c612abd7bb9b03f095861782
276
py
Python
force_wfmanager/tests/dummy_classes/dummy_mco_options_view.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
1
2019-08-19T16:02:20.000Z
2019-08-19T16:02:20.000Z
force_wfmanager/tests/dummy_classes/dummy_mco_options_view.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
396
2017-07-18T15:19:55.000Z
2021-05-03T06:23:06.000Z
force_wfmanager/tests/dummy_classes/dummy_mco_options_view.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
2
2019-03-05T16:23:10.000Z
2020-04-16T08:59:11.000Z
# (C) Copyright 2010-2020 Enthought, Inc., Austin, TX # All rights reserved. from force_wfmanager.ui.setup.mco.base_mco_options_view import \ BaseMCOOptionsView class DummyBaseMCOOptionsView(BaseMCOOptionsView): def _model_views_default(self): return []
23
64
0.753623
2ea0ae6aa575848ca49bbabd96835662c27860e5
12,521
py
Python
poem/core/tfse_input_layer.py
ParikhKadam/google-research
00a282388e389e09ce29109eb050491c96cfab85
[ "Apache-2.0" ]
2
2022-01-21T18:15:34.000Z
2022-01-25T15:21:34.000Z
poem/core/tfse_input_layer.py
ParikhKadam/google-research
00a282388e389e09ce29109eb050491c96cfab85
[ "Apache-2.0" ]
110
2021-10-01T18:22:38.000Z
2021-12-27T22:08:31.000Z
poem/core/tfse_input_layer.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
1
2021-06-28T23:13:58.000Z
2021-06-28T23:13:58.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.876791
80
0.710806
ac36a260db6f282baf05b8d86f1e80b77153a22c
1,186
py
Python
examples/comp/set_backgrounds_to_1920x1080_32bit.py
Colorbleed/fusionless
4ff726c64e40f48383ddb032267587722712aaff
[ "BSD-3-Clause" ]
10
2017-08-14T05:07:25.000Z
2021-07-01T23:33:36.000Z
examples/comp/set_backgrounds_to_1920x1080_32bit.py
BigRoy/fusionless
4ff726c64e40f48383ddb032267587722712aaff
[ "BSD-3-Clause" ]
5
2016-09-05T14:04:19.000Z
2016-09-14T07:26:00.000Z
examples/comp/set_backgrounds_to_1920x1080_32bit.py
Colorbleed/fusionless
4ff726c64e40f48383ddb032267587722712aaff
[ "BSD-3-Clause" ]
null
null
null
"""Sets all Backgrounds in the currently active comp to 1920x1080 (32 bit). This example shows how to list tool of a specific type and set some of its inputs. Additionally this shows off how `fusionless` is able to automatically interpret an enum value (like "float32" for image depth) to the corresponding float value ...
37.0625
79
0.693086
d4a899521d1ae0b179187a785921fdbb64c0e223
8,727
py
Python
fabfile.py
CodeLionX/pytorch-distributed-rnn
9d239659a666d6535fc551f9d2c538bf6b3d3acd
[ "MIT" ]
2
2020-05-19T14:44:58.000Z
2020-12-14T08:34:22.000Z
fabfile.py
CodeLionX/pytorch-distributed-rnn
9d239659a666d6535fc551f9d2c538bf6b3d3acd
[ "MIT" ]
1
2020-06-25T13:29:15.000Z
2020-07-02T13:10:27.000Z
fabfile.py
CodeLionX/pytorch-distributed-rnn
9d239659a666d6535fc551f9d2c538bf6b3d3acd
[ "MIT" ]
1
2020-11-03T14:37:50.000Z
2020-11-03T14:37:50.000Z
import json import os from pathlib import Path from random import shuffle from fabric import task from patchwork.transfers import rsync HOSTS = [ '10.42.0.50', '10.42.0.29', '10.42.0.105', '10.42.0.56', '10.42.0.180', '10.42.0.235', '10.42.0.244', '10.42.0.239', '10.42.0.191', ...
26.207207
88
0.569497
39e220e821850f9cf7a97626faabf1e238bc818b
2,261
py
Python
example/iiif-prezi/gbooks.py
hatfieldlibrary/solr-ocrhighlighting
32fcc51b6770865d51579d5b54a30a66d6d1c4d0
[ "MIT" ]
66
2019-03-13T13:52:36.000Z
2022-02-15T18:33:56.000Z
example/iiif-prezi/gbooks.py
hatfieldlibrary/solr-ocrhighlighting
32fcc51b6770865d51579d5b54a30a66d6d1c4d0
[ "MIT" ]
76
2019-04-03T15:29:59.000Z
2022-03-22T06:46:08.000Z
example/iiif-prezi/gbooks.py
hatfieldlibrary/solr-ocrhighlighting
32fcc51b6770865d51579d5b54a30a66d6d1c4d0
[ "MIT" ]
11
2019-04-29T13:38:15.000Z
2021-09-05T14:58:30.000Z
import copy from pathlib import Path import lxml.etree as etree from common import make_id, MANIFEST_TEMPLATE, CANVAS_TEMPLATE def make_manifest(app, vol_id): base_dir = Path(app.config.get('GOOGLE1000_PATH', '../data/google1000')) hocr_path = base_dir / f'Volume_{vol_id.split(":")[1]}.hocr' protocol =...
50.244444
88
0.633348
5495cdfb61b41d12673f21bd37107e163780b685
788
py
Python
profiles_api/migrations/0002_profilefeeditem.py
iannHtooZaw/profiles-rest-api
bb4e227b38e14de4a2b5cf5b9cdcca28934d359e
[ "MIT" ]
null
null
null
profiles_api/migrations/0002_profilefeeditem.py
iannHtooZaw/profiles-rest-api
bb4e227b38e14de4a2b5cf5b9cdcca28934d359e
[ "MIT" ]
6
2019-12-04T23:44:35.000Z
2022-02-10T09:10:57.000Z
profiles_api/migrations/0002_profilefeeditem.py
iannHtooZaw/profiles-rest-api
bb4e227b38e14de4a2b5cf5b9cdcca28934d359e
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-07-18 13:25 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles_api', '0001_initial'), ] operations = [ migrations.CreateModel( ...
31.52
126
0.633249
c73f02c8185aa1b58e5654560dcfdaac08681c55
1,602
py
Python
ephios/plugins/basesignup/signup/no_selfservice.py
ephios-dev/ephios
c8d30576238a189ccef1929661f547ee3fe6e5d7
[ "MIT" ]
14
2021-01-13T12:15:03.000Z
2022-03-20T10:02:11.000Z
ephios/plugins/basesignup/signup/no_selfservice.py
ephios-dev/ephios
c8d30576238a189ccef1929661f547ee3fe6e5d7
[ "MIT" ]
570
2020-09-19T13:37:27.000Z
2022-03-31T09:14:37.000Z
ephios/plugins/basesignup/signup/no_selfservice.py
ephios-dev/ephios
c8d30576238a189ccef1929661f547ee3fe6e5d7
[ "MIT" ]
5
2021-01-08T16:52:31.000Z
2022-03-20T10:02:25.000Z
from django import forms from django.utils.translation import gettext_lazy as _ from ephios.core.models import AbstractParticipation from ephios.core.signup import BaseSignupMethod, ParticipationError from ephios.plugins.basesignup.signup.common import render_basic_participation_pills_shift_state class NoSelfservice...
30.807692
96
0.6598
a9499dfb9c8ddc222cbd798bf431eccfed78db54
20,759
py
Python
bdc_collection_builder/collections/sentinel/utils.py
betonr/bdc-collection-builder
3895c2abf187f2631aed9dba9d8f28c5829e58bd
[ "MIT" ]
null
null
null
bdc_collection_builder/collections/sentinel/utils.py
betonr/bdc-collection-builder
3895c2abf187f2631aed9dba9d8f28c5829e58bd
[ "MIT" ]
null
null
null
bdc_collection_builder/collections/sentinel/utils.py
betonr/bdc-collection-builder
3895c2abf187f2631aed9dba9d8f28c5829e58bd
[ "MIT" ]
null
null
null
# Python Native import fnmatch import logging import os import shutil from tempfile import TemporaryDirectory # 3rdparty from typing import Optional import boto3 import numpy import rasterio from bdc_catalog.models import Band, Collection from rasterio.enums import Resampling # BDC Scripts from bdc_collection_builder....
35.729776
135
0.606628
42dcc637f68f059d652e7f263887772621c8a4e2
6,135
py
Python
klurp.py
handyc/klurp
004c423cefbd72a7ada0367a86da730095c2f885
[ "MIT" ]
null
null
null
klurp.py
handyc/klurp
004c423cefbd72a7ada0367a86da730095c2f885
[ "MIT" ]
null
null
null
klurp.py
handyc/klurp
004c423cefbd72a7ada0367a86da730095c2f885
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # last modified by handyc on 12 Nov 2021 # klurp genetic algorithm system for text alignment # this file is the outermost layer of the klurp system # which parses user input and invokes the population manager import sys import os import getpass import glob from pathlib import Path import dat...
31.623711
103
0.714099
bc0288e6e7d432e7e65f2c207c4d54155fb42509
748
py
Python
alipay/aop/api/response/AlipayTradeRoyaltyRelationBindResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayTradeRoyaltyRelationBindResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayTradeRoyaltyRelationBindResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayTradeRoyaltyRelationBindResponse(AlipayResponse): def __init__(self): super(AlipayTradeRoyaltyRelationBindResponse, self).__init__() self._result_code = None ...
28.769231
111
0.727273
0867f14f55f467efd034030f08f564e41d2bd2eb
688
py
Python
sokoapp/anafero/callbacks.py
Mercy-Nekesa/sokoapp
6c7bc4c1278b7223226124a49fc33c5b8b6b617a
[ "MIT" ]
1
2019-04-01T05:52:37.000Z
2019-04-01T05:52:37.000Z
sokoapp/anafero/callbacks.py
Mercy-Nekesa/sokoapp
6c7bc4c1278b7223226124a49fc33c5b8b6b617a
[ "MIT" ]
1
2015-03-11T16:18:12.000Z
2015-03-11T16:18:12.000Z
sokoapp/anafero/callbacks.py
Mercy-Nekesa/sokoapp
6c7bc4c1278b7223226124a49fc33c5b8b6b617a
[ "MIT" ]
null
null
null
import random def generate_code(referral_class): def _generate_code(): t = "abcdefghijkmnopqrstuvwwxyzABCDEFGHIJKLOMNOPQRSTUVWXYZ1234567890" return "".join([random.choice(t) for i in range(40)]) code = _generate_code() while referral_class.objects.filter(code=code).exists(): code =...
31.272727
77
0.719477
68e44ca417fdbd18644789d9ae09f5e69019f561
2,188
py
Python
imodels/util/transforms.py
stjordanis/imodels
3c31df3f3d600d3b9c07fabdffd375b93e139c50
[ "MIT" ]
598
2020-09-15T19:46:27.000Z
2022-03-31T21:05:30.000Z
imodels/util/transforms.py
stjordanis/imodels
3c31df3f3d600d3b9c07fabdffd375b93e139c50
[ "MIT" ]
52
2020-09-28T12:15:03.000Z
2022-03-22T16:43:51.000Z
imodels/util/transforms.py
stjordanis/imodels
3c31df3f3d600d3b9c07fabdffd375b93e139c50
[ "MIT" ]
60
2020-09-16T21:42:28.000Z
2022-03-31T14:08:29.000Z
'''Shared transforms between different interpretable models ''' import numpy as np class Winsorizer(): """Performs Winsorization 1->1* Warning: this class should not be used directly. """ def __init__(self, trim_quantile=0.0): self.trim_quantile = trim_quantile self.winsor_lims = No...
34.1875
112
0.596892
5bd6ab8e550e0ccf595955558369b64e250eeca3
7,733
py
Python
botoy/plugin.py
SalimTerryLi/botoy
16b462fa3a5bea0035d94cb2161726767d8bdbbc
[ "MIT" ]
null
null
null
botoy/plugin.py
SalimTerryLi/botoy
16b462fa3a5bea0035d94cb2161726767d8bdbbc
[ "MIT" ]
null
null
null
botoy/plugin.py
SalimTerryLi/botoy
16b462fa3a5bea0035d94cb2161726767d8bdbbc
[ "MIT" ]
null
null
null
import importlib import os import re from types import ModuleType from typing import Dict, List from prettytable import PrettyTable from botoy import json class Plugin: def __init__(self, module: ModuleType): self.module = module # plugin help with open(self.module.__file__, encoding='u...
32.628692
88
0.549851
7d6b447cd9fe2c4ce89ff8a81744ff15575d6188
2,713
py
Python
topomc/app.py
AB-Spud/topomc
7349e9d6ceb6e98a4e854e60377837d2bfca1575
[ "MIT" ]
null
null
null
topomc/app.py
AB-Spud/topomc
7349e9d6ceb6e98a4e854e60377837d2bfca1575
[ "MIT" ]
null
null
null
topomc/app.py
AB-Spud/topomc
7349e9d6ceb6e98a4e854e60377837d2bfca1575
[ "MIT" ]
null
null
null
import logging import sys import numpy as np import yaml from topomc import render from topomc.common.logger import Logger from topomc.parsing.blockmap import BlockMap from topomc.process import Process from topomc.symbol import AreaSymbol, LinearSymbol, PointSymbol, Symbol from topomc.processes import * from topom...
30.483146
94
0.673424
461179b15e20151c97f84171034fa533a58e86a7
2,628
py
Python
configs/pascal_voc/retinanet_r50_fpn_1x_voc0712_cocofmt.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
configs/pascal_voc/retinanet_r50_fpn_1x_voc0712_cocofmt.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
configs/pascal_voc/retinanet_r50_fpn_1x_voc0712_cocofmt.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/retinanet_r50_fpn.py', '../_base_/datasets/voc0712.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] model = dict(bbox_head=dict(num_classes=20)) CLASSES = ('aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car', 'cat', 'chair', 'co...
34.12987
77
0.62519
8807fff19768bcc81ed5078e785da288753d1569
4,377
py
Python
src/python/pants/backend/java/lint/google_java_format/rules.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/java/lint/google_java_format/rules.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
22
2022-01-27T09:59:50.000Z
2022-03-30T07:06:49.000Z
src/python/pants/backend/java/lint/google_java_format/rules.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import logging from dataclasses import dataclass from pants.backend.java.lint.google_java_format.skip_field import SkipGoogleJavaFormatField from pants.backend.java.lint.google_java_format...
37.410256
99
0.750514
a10e35c692626fb189938bec139466b637e8ce8d
1,426
py
Python
storyboard/wsgi.py
bopopescu/storyboard
0258fd6f80b6bbd9d0ca493cbaaae87c3a6d16e2
[ "MIT" ]
null
null
null
storyboard/wsgi.py
bopopescu/storyboard
0258fd6f80b6bbd9d0ca493cbaaae87c3a6d16e2
[ "MIT" ]
null
null
null
storyboard/wsgi.py
bopopescu/storyboard
0258fd6f80b6bbd9d0ca493cbaaae87c3a6d16e2
[ "MIT" ]
null
null
null
""" WSGI config for hello project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` se...
43.212121
79
0.803647
42a67217d33926ddddbd74c35daff3dab7ca0426
6,139
py
Python
userbot/modules/profile.py
yonouf/UserBug
23c1d750e58a67eaaaf9a13b8700fe9dccf3bb7d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/profile.py
yonouf/UserBug
23c1d750e58a67eaaaf9a13b8700fe9dccf3bb7d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/profile.py
yonouf/UserBug
23c1d750e58a67eaaaf9a13b8700fe9dccf3bb7d
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2020-01-01T11:36:37.000Z
2020-01-02T05:41:19.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for changing your Telegram profile details. """ import os from telethon.errors import ImageProcess...
34.105556
81
0.622414
fafa29fe1beea0f43629696295c00bd65793b017
201
py
Python
examples/eventloop/client.py
delmic/Pyro4
74e9c18e83a2002d9254c5e867866201121082d3
[ "MIT" ]
6
2015-04-09T07:19:23.000Z
2018-01-15T08:00:15.000Z
examples/eventloop/client.py
delmic/Pyro4
74e9c18e83a2002d9254c5e867866201121082d3
[ "MIT" ]
1
2018-04-18T06:13:22.000Z
2018-04-18T06:13:22.000Z
examples/eventloop/client.py
delmic/Pyro4
74e9c18e83a2002d9254c5e867866201121082d3
[ "MIT" ]
5
2016-04-22T08:17:53.000Z
2019-01-14T12:11:46.000Z
from __future__ import print_function import Pyro4 proxy=Pyro4.core.Proxy("PYRONAME:example.embedded.server") print("5*11=%d" % proxy.multiply(5,11)) print("'x'*10=%s" % proxy.multiply('x',10))
28.714286
59
0.711443
06e75dd4c287d3a88dd51a1d1497e3003a1fe6fd
486
py
Python
src/oscar/apps/order/migrations/0002_auto_20141007_2032.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
4,639
2015-01-01T00:42:33.000Z
2022-03-29T18:32:12.000Z
src/oscar/apps/order/migrations/0002_auto_20141007_2032.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,215
2015-01-02T22:32:51.000Z
2022-03-29T12:16:23.000Z
src/oscar/apps/order/migrations/0002_auto_20141007_2032.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,187
2015-01-02T06:33:31.000Z
2022-03-31T15:32:36.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import oscar.core.utils class Migration(migrations.Migration): dependencies = [ ('order', '0001_initial'), ] operations = [ migrations.AlterField( model_name='order', ...
23.142857
122
0.641975
e2b3f312eb70a601f4218ea7c9795635b7afffaf
581
py
Python
chroma_agent_comms/urls.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
chroma_agent_comms/urls.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
chroma_agent_comms/urls.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. from django.conf.urls import patterns import chroma_agent_comms.views as views from django.views.decorators.csrf import csrf_exempt urlpatterns = patterns( "", ...
32.277778
75
0.700516
e043fb3ce727edcac824aad898a85901e333f3ea
1,878
py
Python
tests/util/settings_dev.py
Mischback/django-calingen
3354c751e29d301609ec44e64d69a8729ec36de4
[ "MIT" ]
null
null
null
tests/util/settings_dev.py
Mischback/django-calingen
3354c751e29d301609ec44e64d69a8729ec36de4
[ "MIT" ]
51
2021-11-15T20:44:19.000Z
2022-02-10T08:33:08.000Z
tests/util/settings_dev.py
Mischback/django-calingen
3354c751e29d301609ec44e64d69a8729ec36de4
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Django imports from django.utils.translation import gettext_noop as _ # local imports from .settings_test import * INSTALLED_APPS += [ "calingen.contrib.layouts.simple_event_list", "calingen.contrib.layouts.year_by_week", "calingen.contrib.layouts.lineatur", "calingen...
23.772152
90
0.644302
517f7838926eca5e5936f7d80d26b6c9df3ef5f8
222
py
Python
Lib/fontTools/__init__.py
tomarcher101/fonttools
0b9348080853ab637c4826a4aa293a2b4d60449c
[ "Apache-2.0", "MIT" ]
null
null
null
Lib/fontTools/__init__.py
tomarcher101/fonttools
0b9348080853ab637c4826a4aa293a2b4d60449c
[ "Apache-2.0", "MIT" ]
1
2020-05-22T09:01:31.000Z
2020-05-22T09:47:18.000Z
Lib/fontTools/__init__.py
tomarcher101/fonttools
0b9348080853ab637c4826a4aa293a2b4d60449c
[ "Apache-2.0", "MIT" ]
null
null
null
from fontTools.misc.py23 import * import logging from fontTools.misc.loggingTools import configLogger log = logging.getLogger(__name__) version = __version__ = "4.10.3.dev0" __all__ = ["version", "log", "configLogger"]
22.2
52
0.761261
bfe283d27cb3f38c174d7660cd2fe6073e99416b
596
py
Python
readthedocs/projects/migrations/0018_fix-translation-model.py
kennethlarsen/readthedocs.org
735d630d83f79ae24772d10e66fd35b8f5675a30
[ "MIT" ]
2
2018-01-14T14:04:00.000Z
2021-02-07T19:25:45.000Z
readthedocs/projects/migrations/0018_fix-translation-model.py
Alig1493/readthedocs.org
c37b00995c1bbc5ee51d3552ef176546373bb912
[ "MIT" ]
4
2021-02-08T21:06:18.000Z
2021-06-10T23:24:55.000Z
readthedocs/projects/migrations/0018_fix-translation-model.py
Alig1493/readthedocs.org
c37b00995c1bbc5ee51d3552ef176546373bb912
[ "MIT" ]
6
2019-02-13T16:08:41.000Z
2020-03-12T14:17:14.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import from django.db import models, migrations import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('projects', '0017_add_domain_https'), ] operations = [ ...
27.090909
157
0.682886
be8da0ffd04cc0806df4cbec88c49ddd0878f317
5,292
py
Python
utils/utils_fit.py
bubbliiiing/classification-tf2
10704d8e1073364eaee76a9f60aed73ca7e7b554
[ "MIT" ]
18
2021-11-16T01:21:23.000Z
2022-03-30T02:11:58.000Z
utils/utils_fit.py
bubbliiiing/classification-tf2
10704d8e1073364eaee76a9f60aed73ca7e7b554
[ "MIT" ]
2
2021-12-07T12:45:47.000Z
2022-03-17T13:59:38.000Z
utils/utils_fit.py
bubbliiiing/classification-tf2
10704d8e1073364eaee76a9f60aed73ca7e7b554
[ "MIT" ]
6
2021-12-25T08:18:31.000Z
2022-03-30T02:12:01.000Z
import os import tensorflow as tf from tqdm import tqdm #------------------------------# # 防止bug #------------------------------# def get_train_step_fn(strategy): @tf.function def train_step(batch_images, batch_labels, net, optimizer): with tf.GradientTape() as tape: #-----...
46.017391
169
0.568594
d181f2ae4b2bea1bdfb3866100f245f4ac5a212d
911
py
Python
var/spack/repos/builtin/packages/py-nbclient/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-16T02:42:57.000Z
2019-06-06T19:18:50.000Z
var/spack/repos/builtin/packages/py-nbclient/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/py-nbclient/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-07-19T20:31:27.000Z
2021-07-19T21:14:14.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) class PyNbclient(PythonPackage): """A client library for executing notebooks. Formally nbconvert's ExecutePrepro...
37.958333
95
0.689352
ae57ff2e0f5ba1b9c83f98850a068d324d7506d5
1,220
py
Python
cdt/independence/__init__.py
koutrgor/CausalDiscoveryToolbox
0d9997294520430e24bd80f1bfb05c0f852984cb
[ "MIT" ]
528
2020-02-05T00:58:18.000Z
2022-03-31T11:32:57.000Z
cdt/independence/__init__.py
Zephyr-29/CausalDiscoveryToolbox
073b13a5076390147e95763bab73775c59e6d891
[ "MIT" ]
73
2020-04-04T08:24:01.000Z
2022-03-29T14:11:04.000Z
cdt/independence/__init__.py
Zephyr-29/CausalDiscoveryToolbox
073b13a5076390147e95763bab73775c59e6d891
[ "MIT" ]
94
2020-02-16T05:04:00.000Z
2022-03-23T07:19:18.000Z
""" .. MIT License .. .. Copyright (c) 2018 Diviyan Kalainathan .. .. 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, c...
46.923077
81
0.763115
9f2179dc28f209c92dbff1dbc40813cba8f65b2a
2,621
py
Python
18-object-detection/Python/test-detector/test-detector.py
vickychenw/AI-Engineer
7c9e8527fa78871b15d98ed8426bdd5eec248d66
[ "MIT" ]
null
null
null
18-object-detection/Python/test-detector/test-detector.py
vickychenw/AI-Engineer
7c9e8527fa78871b15d98ed8426bdd5eec248d66
[ "MIT" ]
null
null
null
18-object-detection/Python/test-detector/test-detector.py
vickychenw/AI-Engineer
7c9e8527fa78871b15d98ed8426bdd5eec248d66
[ "MIT" ]
null
null
null
from azure.cognitiveservices.vision.customvision.prediction import CustomVisionPredictionClient from msrest.authentication import ApiKeyCredentials from matplotlib import pyplot as plt from PIL import Image, ImageDraw, ImageFont import numpy as np import os def main(): from dotenv import load_dotenv try: ...
41.603175
135
0.647463
3a1b1502127f90eb65e82a93d157227436c4792f
3,465
py
Python
tests/test_pk/tests.py
smithdc1/django-localflavor
871ed24461720325d4dd0354daa1832330549c7a
[ "BSD-3-Clause" ]
619
2015-01-08T15:49:06.000Z
2022-03-29T15:06:43.000Z
tests/test_pk/tests.py
smithdc1/django-localflavor
871ed24461720325d4dd0354daa1832330549c7a
[ "BSD-3-Clause" ]
263
2015-01-03T14:08:52.000Z
2022-03-05T15:03:45.000Z
tests/test_pk/tests.py
smithdc1/django-localflavor
871ed24461720325d4dd0354daa1832330549c7a
[ "BSD-3-Clause" ]
262
2015-01-05T12:55:07.000Z
2022-03-22T19:15:23.000Z
import re from django.test import TestCase from localflavor.pk.forms import PKPostCodeField, PKStateSelect from .forms import PakistaniPlaceForm SELECTED_OPTION_PATTERN = r'<option value="%s" selected>' BLANK_OPTION_PATTERN = r'<option value="">' INPUT_VALUE_PATTERN = r'<input[^>]*value="%s"[^>]*>' class PKLocalf...
38.932584
74
0.604618
39a0f4de70aec79cde388f9a270d4b775791c3cc
35,746
py
Python
pints/_optimisers/__init__.py
iamleeg/pints
bd1c11472ff3ec0990f3d55f0b2f20d92397926d
[ "BSD-3-Clause" ]
null
null
null
pints/_optimisers/__init__.py
iamleeg/pints
bd1c11472ff3ec0990f3d55f0b2f20d92397926d
[ "BSD-3-Clause" ]
null
null
null
pints/_optimisers/__init__.py
iamleeg/pints
bd1c11472ff3ec0990f3d55f0b2f20d92397926d
[ "BSD-3-Clause" ]
null
null
null
# # Sub-module containing several optimisation routines # # This file is part of PINTS. # Copyright (c) 2017-2019, University of Oxford. # For licensing information, see the LICENSE file distributed with the PINTS # software package. # from __future__ import absolute_import, division from __future__ import print_fun...
35.183071
79
0.604879
5b14bb4abc97c0dab242161c292dfbb8dcce701c
5,580
py
Python
main.py
Scouterna/skojjt
b47ffb27d25cc23264ebdb59343541c110bd0bee
[ "Apache-2.0" ]
3
2019-07-04T19:15:33.000Z
2022-01-29T12:24:32.000Z
main.py
Scouterna/skojjt
b47ffb27d25cc23264ebdb59343541c110bd0bee
[ "Apache-2.0" ]
43
2019-11-23T23:47:26.000Z
2022-02-04T20:06:59.000Z
main.py
Scouterna/skojjt
b47ffb27d25cc23264ebdb59343541c110bd0bee
[ "Apache-2.0" ]
4
2020-02-01T17:44:24.000Z
2022-02-02T07:15:51.000Z
# -*- coding: utf-8 -*- import logging import sys from data import Meeting, Person, ScoutGroup, Semester, Troop, TroopPerson, UserPrefs from flask import Flask, make_response, redirect, render_template, request from google.appengine.api import users from google.appengine.api import mail from google.appengine.api import...
35.541401
123
0.654301
b4afcbb5e0cf63e340e0912377ff34342e883e2d
8,527
py
Python
config.py
HUANGZHIHAO1994/JRJ_crawl
424185cbeda7f1dbf170860525e7b7d842eb4431
[ "MIT" ]
6
2020-08-31T14:59:45.000Z
2022-02-17T13:51:29.000Z
config.py
HUANGZHIHAO1994/JRJ_crawl
424185cbeda7f1dbf170860525e7b7d842eb4431
[ "MIT" ]
null
null
null
config.py
HUANGZHIHAO1994/JRJ_crawl
424185cbeda7f1dbf170860525e7b7d842eb4431
[ "MIT" ]
null
null
null
# 随机请求头设置 USER_AGENTS = [ 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/44.0.2403.155 Safari/537.36', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36...
50.755952
173
0.659904
ce1752b50e4dd85bd755cefc6f75fb923fcb3294
724
py
Python
Algorithms/0024_Swap_Nodes_in_Pairs/Python/Swap_Nodes_in_Pairs_Solution_2.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
Algorithms/0024_Swap_Nodes_in_Pairs/Python/Swap_Nodes_in_Pairs_Solution_2.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
Algorithms/0024_Swap_Nodes_in_Pairs/Python/Swap_Nodes_in_Pairs_Solution_2.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
# Space: O(1) # Time: O(n) # iterative approach # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def swapPairs(self, head): if head is None or head.next is None: return head...
20.111111
46
0.571823
163483054997b1568583373bc1104338caa4a7b2
85
py
Python
settings/safety_shutter_auto_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
settings/safety_shutter_auto_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
settings/safety_shutter_auto_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
prefix = '14IDA:shutter_auto_enable2' description = 'Shutter 14IDC auto' target = 0.0
28.333333
37
0.776471
327f9024fafad32fa13120384e226ef60cb73c5e
49,507
py
Python
qnarre/models/longformer.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/models/longformer.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/models/longformer.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix 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 applicable l...
39.573941
222
0.645424
2baeb1664ab5ce0c88b5f23c9e629965649644c3
1,758
py
Python
realtime_anon.py
entruv/minerva_hackathon
c542f92b93ddbd08547fafa75b28b2c6e461ed6b
[ "MIT" ]
null
null
null
realtime_anon.py
entruv/minerva_hackathon
c542f92b93ddbd08547fafa75b28b2c6e461ed6b
[ "MIT" ]
null
null
null
realtime_anon.py
entruv/minerva_hackathon
c542f92b93ddbd08547fafa75b28b2c6e461ed6b
[ "MIT" ]
null
null
null
import dlib import cv2 from imutils import face_utils, video from sklearn.cluster import KMeans import numpy as np font = cv2.FONT_HERSHEY_SIMPLEX def anonymizer(image, gray): rects = detector(gray, 0) count = 0 for (i, rect) in enumerate(rects): # Predict keypoints shape = predictor(gray, ...
31.963636
91
0.608646
9d8eefc1c66000f2ae90ca0892c9d20d5aaacfa7
7,614
py
Python
darts_source/model.py
BYRIO/darts_for_nni
5bdb10cb67c3db6f2b956a5473006a8539e089d0
[ "MIT" ]
2
2020-01-15T00:55:47.000Z
2021-02-13T02:09:48.000Z
darts_source/model.py
BYRIO/darts_for_nni
5bdb10cb67c3db6f2b956a5473006a8539e089d0
[ "MIT" ]
null
null
null
darts_source/model.py
BYRIO/darts_for_nni
5bdb10cb67c3db6f2b956a5473006a8539e089d0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable from operations import * from utils import drop_path class Cell(nn.Module): def __init__(self, genotype, C_prev_prev, C_prev, C, reduction, reduction_prev): super(Cell, self).__init__() print(C_prev_prev, C_prev, C) ...
34.297297
90
0.558576
ad475b4a8939019e9cc907e6d14cc086d552df08
16,051
py
Python
techminer/graph_analysis.py
jdvelasq/techminer-new
a4b54c2783aee1a2d0d823ffd270131e42e5ff9a
[ "MIT" ]
1
2020-04-29T20:35:13.000Z
2020-04-29T20:35:13.000Z
techminer/graph_analysis.py
jdvelasq/techminer-new
a4b54c2783aee1a2d0d823ffd270131e42e5ff9a
[ "MIT" ]
null
null
null
techminer/graph_analysis.py
jdvelasq/techminer-new
a4b54c2783aee1a2d0d823ffd270131e42e5ff9a
[ "MIT" ]
null
null
null
import ipywidgets as widgets import matplotlib.pyplot as pyplot import numpy as np import pandas as pd from pyvis.network import Network import techminer.core.dashboard as dash from techminer.core import ( DASH, Network, TF_matrix, add_counters_to_axis, corpus_filter, limit_to_exclude, norm...
29.614391
88
0.494611
32b2dd5806975e10b048b5c02f4918bf23e23be8
4,672
py
Python
tensorflow_federated/python/tests/remote_runtime_integration_test.py
ronaldseoh/federated
50fa06386b7c980e65ff33e645a5dfbf892c9aae
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/tests/remote_runtime_integration_test.py
ronaldseoh/federated
50fa06386b7c980e65ff33e645a5dfbf892c9aae
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/tests/remote_runtime_integration_test.py
ronaldseoh/federated
50fa06386b7c980e65ff33e645a5dfbf892c9aae
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, The TensorFlow Federated 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://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
39.59322
85
0.749358
086bd61f6f73fed0740fa1c62a771869c10b094d
25,256
py
Python
myems-normalization/virtualmeter.py
winnerineast/myems
b3d5816cfc37219c9ed61017e7661bf9f823b4de
[ "MIT" ]
2
2020-06-10T08:42:35.000Z
2021-01-30T14:25:14.000Z
myems-normalization/virtualmeter.py
winnerineast/myems
b3d5816cfc37219c9ed61017e7661bf9f823b4de
[ "MIT" ]
3
2020-10-28T02:26:20.000Z
2021-02-18T09:07:52.000Z
myems-normalization/virtualmeter.py
winnerineast/myems
b3d5816cfc37219c9ed61017e7661bf9f823b4de
[ "MIT" ]
6
2020-09-14T16:43:06.000Z
2021-02-18T14:09:53.000Z
import time from datetime import datetime, timedelta import mysql.connector from sympy import sympify from multiprocessing import Pool import random import config ######################################################################################################################## # PROCEDURES: # Step 1: Query all ...
53.058824
120
0.540505
a0dfa7e18bcae5ac8be1dee8fe2b188a153dbc29
14,361
py
Python
quarkchain/utils.py
QuarkChain/pyquarkchain
af1dd06a50d918aaf45569d9b0f54f5ecceb6afe
[ "MIT" ]
237
2018-09-18T00:47:14.000Z
2022-03-21T21:43:07.000Z
quarkchain/utils.py
QuarkChain/pyquarkchain
af1dd06a50d918aaf45569d9b0f54f5ecceb6afe
[ "MIT" ]
409
2018-09-18T01:02:29.000Z
2022-01-24T20:51:58.000Z
quarkchain/utils.py
QuarkChain/pyquarkchain
af1dd06a50d918aaf45569d9b0f54f5ecceb6afe
[ "MIT" ]
125
2018-09-18T00:47:28.000Z
2022-03-24T20:00:46.000Z
import asyncio import ctypes import hashlib import io import logging import os import re import sys import time import traceback from eth_utils import keccak def int_left_most_bit(v): """ Could be replaced by better raw implementation """ b = 0 while v != 0: v //= 2 b += 1 return ...
27.723938
112
0.599889
ad50600c699e45a4c0520dfd0c78efb25b9e7403
576
py
Python
demo/urls.py
tweepy/django-twango
c192e2c86a49e561047cc6bf1734ec7628cd8067
[ "MIT" ]
4
2017-02-10T21:13:43.000Z
2022-02-16T09:10:48.000Z
demo/urls.py
tweepy/django-twango
c192e2c86a49e561047cc6bf1734ec7628cd8067
[ "MIT" ]
null
null
null
demo/urls.py
tweepy/django-twango
c192e2c86a49e561047cc6bf1734ec7628cd8067
[ "MIT" ]
2
2018-12-30T20:37:58.000Z
2019-06-04T15:03:33.000Z
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^demo/', include('demo.foo.urls')), # Uncomment the admin/doc line below and add 'django.contrib.admindocs' ...
28.8
76
0.671875
de2057ae7f6f8e2f0664c0392cba8b288f7aef57
2,370
py
Python
archive.py
cpausmit/JLabVideo
c7d45b5f2acf783b0d1b97d0b0653c5c61eaa6eb
[ "MIT" ]
null
null
null
archive.py
cpausmit/JLabVideo
c7d45b5f2acf783b0d1b97d0b0653c5c61eaa6eb
[ "MIT" ]
null
null
null
archive.py
cpausmit/JLabVideo
c7d45b5f2acf783b0d1b97d0b0653c5c61eaa6eb
[ "MIT" ]
null
null
null
#!/usr/bin/python #==================================================================================================== # # Archive all oral presentations recorded for junior lab on this computer. # # Requirements: # # - put your public key (usually $HOME/.ssh/id_rsa.pub) into the home server file # (serverUser@serve...
32.465753
101
0.48903
d27b16857505ebdceb029b0064665f554c91161c
207
py
Python
converters/demotrack.py
martinschwinzerl/sixtracklib_testdata
3e74369844fa357d00e422f07d54f460a362e3b9
[ "Apache-2.0" ]
1
2021-03-30T18:28:34.000Z
2021-03-30T18:28:34.000Z
converters/demotrack.py
martinschwinzerl/sixtracklib_testdata
3e74369844fa357d00e422f07d54f460a362e3b9
[ "Apache-2.0" ]
null
null
null
converters/demotrack.py
martinschwinzerl/sixtracklib_testdata
3e74369844fa357d00e422f07d54f460a362e3b9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import struct import numpy as np def float_to_bytes( value, format_str="<d", dtype=np.float64 ): return bytes( struct.pack( format_str, dtype( value ) ) )
23
63
0.676329
2c3d3e8f4df33d6635b7b30f4dd4ba702a3b7e5c
520
py
Python
davarocr/davarocr/davar_det/models/seg_heads/__init__.py
icedream2/DAVAR-Lab-OCR
c8b82f45516850eeadcab2739fb2a4292f2fdca1
[ "Apache-2.0" ]
387
2021-01-02T07:50:15.000Z
2022-03-31T04:30:03.000Z
davarocr/davarocr/davar_det/models/seg_heads/__init__.py
icedream2/DAVAR-Lab-OCR
c8b82f45516850eeadcab2739fb2a4292f2fdca1
[ "Apache-2.0" ]
70
2021-05-04T18:28:18.000Z
2022-03-31T14:14:52.000Z
davarocr/davarocr/davar_det/models/seg_heads/__init__.py
icedream2/DAVAR-Lab-OCR
c8b82f45516850eeadcab2739fb2a4292f2fdca1
[ "Apache-2.0" ]
83
2021-01-05T08:28:26.000Z
2022-03-31T07:14:03.000Z
""" ################################################################################################## # Copyright Info : Copyright (c) Davar Lab @ Hikvision Research Institute. All rights reserved. # Filename : __init__.py # Abstract : # Current Version: 1.0.0 # Date : 2020-05-31 ###...
30.588235
98
0.384615
f251b7f4a567491a21c5c7623ad4671787bf746b
443
py
Python
Collections-a-installer/community-general-2.4.0/tests/integration/targets/lookup_lmdb_kv/test_db.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Collections-a-installer/community-general-2.4.0/tests/integration/targets/lookup_lmdb_kv/test_db.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
Collections-a-installer/community-general-2.4.0/tests/integration/targets/lookup_lmdb_kv/test_db.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import lmdb map_size = 1024 * 100 env = lmdb.open('./jp.mdb', map_size=map_size) with env.begin(write=True) as txn: txn.put('fr'.encode(), 'France'.encode()) txn.put('nl'.encode(), 'Netherlands'.encode()) txn.put('es'.en...
36.916667
66
0.668172
364ed536b52fde90881f4ffe16e0fb831ce1ed7b
860
py
Python
hoods/admin.py
Jackson-coder-arch/Neighbourhood
1ca1e4448d4c1297038daab2f86a36f26cabbb8f
[ "MIT" ]
null
null
null
hoods/admin.py
Jackson-coder-arch/Neighbourhood
1ca1e4448d4c1297038daab2f86a36f26cabbb8f
[ "MIT" ]
null
null
null
hoods/admin.py
Jackson-coder-arch/Neighbourhood
1ca1e4448d4c1297038daab2f86a36f26cabbb8f
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import NeighbourHood,User,Business,Profile @admin.register(NeighbourHood) class NeighbourHood(admin.ModelAdmin): search_fields =['name','location','photo','counts','created_by'] class Meta: model = NeighbourHood # @admin.register(User) # class User(ad...
23.888889
88
0.694186
b281e22cf16ba5109657d8ae4657571685eebefb
51
py
Python
12_b_numpy_generated_types.py
traff/python_completion_benchmark
df25caaabf46f8b6eca34d5618052bff7ea8b0bf
[ "Xnet", "X11" ]
1
2018-11-23T18:53:05.000Z
2018-11-23T18:53:05.000Z
12_b_numpy_generated_types.py
traff/python_completion_benchmark
df25caaabf46f8b6eca34d5618052bff7ea8b0bf
[ "Xnet", "X11" ]
null
null
null
12_b_numpy_generated_types.py
traff/python_completion_benchmark
df25caaabf46f8b6eca34d5618052bff7ea8b0bf
[ "Xnet", "X11" ]
null
null
null
import numpy as np type64 = np.float64 # float64
12.75
30
0.72549
d542fc8de4eb682d23f4a4f4e3812da6e691b839
8,763
py
Python
LipSync/models/lipsync.py
balajimt/thambi-tea-innum-varala
a6262a4b98123f698f2cd856ef2e715bdae290ed
[ "MIT" ]
1
2021-08-10T07:29:11.000Z
2021-08-10T07:29:11.000Z
LipSync/models/lipsync.py
balajimt/thambi-tea-innum-varala
a6262a4b98123f698f2cd856ef2e715bdae290ed
[ "MIT" ]
null
null
null
LipSync/models/lipsync.py
balajimt/thambi-tea-innum-varala
a6262a4b98123f698f2cd856ef2e715bdae290ed
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.nn import functional as F import math from .conv import Conv2dTranspose, Conv2d, nonorm_Conv2d class LipSync(nn.Module): def __init__(self): super(LipSync, self).__init__() self.face_encoder_blocks = nn.ModuleList([ nn.Sequentia...
47.367568
112
0.598311
e5275d2af548e1b6c66a9715b707d2a6a5493685
1,348
py
Python
tests/test_classifier_trainning.py
jasonzhuyx/pyml
fa84edff9e897549f3f1e6c315c5a0756fe0359e
[ "Apache-2.0" ]
null
null
null
tests/test_classifier_trainning.py
jasonzhuyx/pyml
fa84edff9e897549f3f1e6c315c5a0756fe0359e
[ "Apache-2.0" ]
null
null
null
tests/test_classifier_trainning.py
jasonzhuyx/pyml
fa84edff9e897549f3f1e6c315c5a0756fe0359e
[ "Apache-2.0" ]
null
null
null
""" # test_classifier_training.py """ import logging import os import unittest from mock import MagicMock from mock import patch from ml.utils.logger import get_logger LOGGER = get_logger(__name__) class ClassifierTrainingTests(unittest.TestCase): """ ClassifierTrainingTests includes all unit tests for ml...
26.431373
85
0.654303
2cdcec6c0bfa4680b473d0b681c72f376e25a52b
411
py
Python
misc/misc.py
raychorn/microservices-framework_light
b441444842ae6e85f608025173a25b07dbb95578
[ "BSD-3-Clause" ]
2
2021-07-13T00:54:32.000Z
2022-01-04T15:36:09.000Z
misc/misc.py
raychorn/microservices-framework_light
b441444842ae6e85f608025173a25b07dbb95578
[ "BSD-3-Clause" ]
null
null
null
misc/misc.py
raychorn/microservices-framework_light
b441444842ae6e85f608025173a25b07dbb95578
[ "BSD-3-Clause" ]
null
null
null
import datetime import calendar def get_next_monday(year, month, day): date0 = datetime.date(year, month, day) next_monday = date0 + datetime.timedelta(7 - date0.weekday() or 7) return next_monday today = datetime.date.today() print(get_next_monday(today.year, today.month, today.day)) cal = calendar.Cal...
25.6875
70
0.739659
596c2e85aa878d417773b01f995962e61f9e260c
11,863
py
Python
card_composer/compose_cards.py
mikica1986vee/Card-Composer
a9d57070fce38de14859d98e0f4996388496a982
[ "MIT" ]
null
null
null
card_composer/compose_cards.py
mikica1986vee/Card-Composer
a9d57070fce38de14859d98e0f4996388496a982
[ "MIT" ]
null
null
null
card_composer/compose_cards.py
mikica1986vee/Card-Composer
a9d57070fce38de14859d98e0f4996388496a982
[ "MIT" ]
null
null
null
import os from io import open from shutil import copyfile from shutil import rmtree from subprocess import call from subprocess import check_output try: from ConfigParser import SafeConfigParser # for python 2.7 except ImportError: from configparser import SafeConfigParser # for python 3+ class MeasurementsDa...
32.50137
181
0.588384
19c1327c39c4fb1d7b74665fef3ff03f77084a59
423
py
Python
core/views.py
XSonecaX/api-receita
9a293426771bc7bea075c4b6b37c87725720634b
[ "MIT" ]
null
null
null
core/views.py
XSonecaX/api-receita
9a293426771bc7bea075c4b6b37c87725720634b
[ "MIT" ]
null
null
null
core/views.py
XSonecaX/api-receita
9a293426771bc7bea075c4b6b37c87725720634b
[ "MIT" ]
1
2021-11-27T05:46:45.000Z
2021-11-27T05:46:45.000Z
from django.shortcuts import render from rest_framework import generics, filters from .models import Cpf from .serializers import CpfSerializer class CpfList(generics.ListAPIView): serializer_class = CpfSerializer model= CpfSerializer.Meta.model paginate_by = 50 def get_queryset(self): id = s...
26.4375
56
0.742317
e08b8f08152c8e9b0e1f224c3be6b2b5ce7814d2
2,132
py
Python
src/data/sampler.py
arfeen93/ZSDG
21f44071cebebe6da32d1032ef96395de997c6cf
[ "MIT" ]
4
2021-11-27T14:50:04.000Z
2021-12-24T07:08:26.000Z
src/data/sampler.py
arfeen93/ZSDG
21f44071cebebe6da32d1032ef96395de997c6cf
[ "MIT" ]
1
2022-01-10T06:15:35.000Z
2022-01-29T09:49:08.000Z
src/data/sampler.py
arfeen93/ZSDG
21f44071cebebe6da32d1032ef96395de997c6cf
[ "MIT" ]
1
2022-03-22T21:30:22.000Z
2022-03-22T21:30:22.000Z
import numpy as np import random import torch from torch.utils.data import sampler # Here we define a Sampler that has all the samples of each batch from the same domain, # same as before but not distributed # gives equal number of samples per domain, ordered across domains class BalancedSampler(sampler.Sampler): ...
28.810811
89
0.592402
8dbed1f61a1e27b405424b6f573d7211d47bb2cb
3,163
py
Python
omp/__init__.py
paugier/pythran
efc3a5af14256778deeb2eb23f7ddce3109f15bf
[ "BSD-3-Clause" ]
1
2020-07-21T10:01:20.000Z
2020-07-21T10:01:20.000Z
omp/__init__.py
lsix/pythran
dc2b0544c49a8f9fc278fc91de32b0cc97a3ef40
[ "BSD-3-Clause" ]
null
null
null
omp/__init__.py
lsix/pythran
dc2b0544c49a8f9fc278fc91de32b0cc97a3ef40
[ "BSD-3-Clause" ]
null
null
null
"""OpenMP wrapper using a libgomp dynamically loaded library.""" from ctypes.util import find_library from subprocess import check_output, CalledProcessError from numpy.distutils.misc_util import msvc_runtime_major import ctypes import os import sys try: # there may be an environ modification when loading config ...
33.294737
79
0.600379
00a60d3c1be7d2b8e6da038f6a0065fdfe877da4
1,439
py
Python
tests/test_clients.py
b2wads/baas-saque
6315ebaac7b9120b7897a85c43480b2bda2e4db5
[ "BSD-3-Clause" ]
null
null
null
tests/test_clients.py
b2wads/baas-saque
6315ebaac7b9120b7897a85c43480b2bda2e4db5
[ "BSD-3-Clause" ]
2
2021-03-31T19:59:26.000Z
2021-12-13T20:38:23.000Z
tests/test_clients.py
b2wads/baas-saque
6315ebaac7b9120b7897a85c43480b2bda2e4db5
[ "BSD-3-Clause" ]
null
null
null
from aioresponses import aioresponses from asynctest import TestCase from baas.clients.account import AccountClient from baas.models import Account, Saque class AccountClientTest(TestCase): async def test_get_by_id(self): acc = Account(nome="Dalton", cpf="42", saldo=400) with aioresponses() as rs...
33.465116
78
0.585129
651d0cd777eabd7510728e58517b206e0f1f7175
3,743
py
Python
utils/utils.py
ZAKAUDD/-GEU-Net
5251d329afb80c74328e72fd2fc21ff691ef3353
[ "MIT" ]
8
2021-05-17T05:30:51.000Z
2021-12-21T01:08:09.000Z
utils/utils.py
ZAKAUDD/-GEU-Net
5251d329afb80c74328e72fd2fc21ff691ef3353
[ "MIT" ]
2
2021-05-17T07:25:20.000Z
2021-09-29T12:42:00.000Z
utils/utils.py
ZAKAUDD/-GEU-Net
5251d329afb80c74328e72fd2fc21ff691ef3353
[ "MIT" ]
null
null
null
import argparse import os import torchvision.models as models from model.unet_model import * def parse_args(): """Get command line arguments.""" parser = argparse.ArgumentParser(prog='GEU-Net params', formatter_class=argparse.RawDescriptionHelpFormatter, ...
48.61039
105
0.612877
dfab4c289496f47c18b2dbf784311b77465fa92e
1,361
py
Python
modules/fdlibm/doc/frexp.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
1
2022-03-24T03:35:10.000Z
2022-03-24T03:35:10.000Z
modules/fdlibm/doc/frexp.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
modules/fdlibm/doc/frexp.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
[ ## this file was manually modified by jt { 'functor' : { 'arity' : '1', 'call_types' : ['T'], 'ret_arity' : '2', 'rturn' : { 'default' : 'boost::fusion::vector<T,typename nt2::meta::as_integer<T,signed>::type>', }, 'simd_types' : [], ...
30.244444
99
0.374724
5acb42375d99c0b30d1fbd6677bbbb2ac2fcd1cf
4,358
py
Python
Modulo_2/semana3/practica_sabado/operaciones/distribucion_frecuencia.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
Modulo_2/semana3/practica_sabado/operaciones/distribucion_frecuencia.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
Modulo_2/semana3/practica_sabado/operaciones/distribucion_frecuencia.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
from math import sqrt class Distribucion_Frecuencia: """Las distribuciones de frecuencias son tablas en que se dispone las modalidades de la variable por filas. En las columnas se dispone el número de ocurrencias por cada valor, porcentajes, etc. La finalidad de las agrupaciones en frecuencias es fa...
36.621849
103
0.55117
7ada80ebe357be09004b667a6ae74e8f4f92dcbc
199
py
Python
codigos/string.py
Diegosebas206/proyectopython
ef704b694577f69e9648cda07909df5d72999b14
[ "PSF-2.0" ]
null
null
null
codigos/string.py
Diegosebas206/proyectopython
ef704b694577f69e9648cda07909df5d72999b14
[ "PSF-2.0" ]
null
null
null
codigos/string.py
Diegosebas206/proyectopython
ef704b694577f69e9648cda07909df5d72999b14
[ "PSF-2.0" ]
null
null
null
#ejemplo 1 mensaje = "hola a todos" print(mensaje) #ejemplo 2 mensaje1 = "hola" mensaje2 = "a todos" print(mensaje1, mensaje2) #ejemplo 2 nombre = str(input("Escriba su nombre: ")) print(nombre)
13.266667
42
0.703518
10cf0e3f27f8b137f245bb7637c9aa5c6276a967
285
py
Python
python/1546_Average.py
anothel/BOJ
cfc693322e609d319aaa8705d4375d098c034b76
[ "MIT" ]
null
null
null
python/1546_Average.py
anothel/BOJ
cfc693322e609d319aaa8705d4375d098c034b76
[ "MIT" ]
null
null
null
python/1546_Average.py
anothel/BOJ
cfc693322e609d319aaa8705d4375d098c034b76
[ "MIT" ]
null
null
null
from sys import stdin def main(): N = int(stdin.readline().strip()) sub_list = list(map(int, stdin.readline().strip().split())) sum = 0 for i in sub_list: sum += i / max(sub_list) * 100 sum /= len(sub_list) print(sum) if __name__ == "__main__": main()
15
61
0.589474
7e2ba9dfb5f6a5ef7a10759546d833282df6f054
33,604
py
Python
templates/adding_a_new_model/modeling_xxx.py
Daijunxu/transformers
ffadcf8b0bf39a3df273a794d64669a3d3a208dc
[ "Apache-2.0" ]
8
2020-04-29T13:07:53.000Z
2022-03-13T10:36:08.000Z
templates/adding_a_new_model/modeling_xxx.py
Daijunxu/transformers
ffadcf8b0bf39a3df273a794d64669a3d3a208dc
[ "Apache-2.0" ]
null
null
null
templates/adding_a_new_model/modeling_xxx.py
Daijunxu/transformers
ffadcf8b0bf39a3df273a794d64669a3d3a208dc
[ "Apache-2.0" ]
16
2020-04-15T21:07:03.000Z
2022-02-05T13:53:56.000Z
# coding=utf-8 # Copyright 2018 XXX 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://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
52.099225
151
0.650161
d1a6c2aada27774890bd82035e9914bf052eb694
2,373
py
Python
src/data/xes_reader.py
amaraletitia/pm19
ccdb1e1e3f7b8a9efed7ab2319abacc5b870fd87
[ "BSD-2-Clause" ]
null
null
null
src/data/xes_reader.py
amaraletitia/pm19
ccdb1e1e3f7b8a9efed7ab2319abacc5b870fd87
[ "BSD-2-Clause" ]
1
2018-05-12T07:05:20.000Z
2018-05-12T07:05:20.000Z
src/data/xes_reader.py
amaraletitia/pm19
ccdb1e1e3f7b8a9efed7ab2319abacc5b870fd87
[ "BSD-2-Clause" ]
1
2018-05-02T08:10:51.000Z
2018-05-02T08:10:51.000Z
import datetime import xml.etree.ElementTree as ET import collections class XesReader(object): """docstring for XesReader""" def __init__(self, filepath): super(XesReader, self).__init__() #filepath = './example/financial_log.xes' self.tree = ET.parse(filepath) self.root = self.tree.getroot() #need to spec...
31.223684
82
0.675516
e4e9243391c411a027d5d33e214714c27c868577
2,785
py
Python
project/project/config/logger_config.py
jprsurendra/layered_architecture_in_django
e08a4a0e874d98c9110ffe14c9b111f49d87c86e
[ "Apache-2.0" ]
null
null
null
project/project/config/logger_config.py
jprsurendra/layered_architecture_in_django
e08a4a0e874d98c9110ffe14c9b111f49d87c86e
[ "Apache-2.0" ]
null
null
null
project/project/config/logger_config.py
jprsurendra/layered_architecture_in_django
e08a4a0e874d98c9110ffe14c9b111f49d87c86e
[ "Apache-2.0" ]
null
null
null
''' Application logger configuration used in application ''' import datetime LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'standard': { 'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s', 'datefmt': "%d/%b/%Y %H:%M:%S" }, ...
31.292135
87
0.464273
8a1a22cb4a0622899c55ea179ad7177ca1bc9020
4,086
py
Python
src/tracking_webcam_stepper_detector.py
adrian-soch/tracking_webcam
ae24900ecf44969b8c0538a9e9138aee3a179b2f
[ "MIT" ]
null
null
null
src/tracking_webcam_stepper_detector.py
adrian-soch/tracking_webcam
ae24900ecf44969b8c0538a9e9138aee3a179b2f
[ "MIT" ]
2
2020-07-14T18:39:41.000Z
2020-08-16T21:31:44.000Z
src/tracking_webcam_stepper_detector.py
adrian-soch/tracking_webcam
ae24900ecf44969b8c0538a9e9138aee3a179b2f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import cv2 as cv import numpy as np import argparse import sys import rospy from std_msgs.msg import Int16 print(cv.__version__) def servo_move_pub(): freq = 30 pub = rospy.Publisher('stepper', Int16, queue_size=10) rospy.init_node('stepper_move_pub', anonymous=False) rate = ...
32.951613
163
0.563142
ec258a7ec0e806a229b1e033de3cdfb9a3ec5309
2,919
py
Python
test.py
mushfiqurrb/Communicator-for-Deaf-and-Dumb
7fe6c23f49e160681872551da21058678295921a
[ "MIT" ]
1
2020-11-05T08:18:14.000Z
2020-11-05T08:18:14.000Z
test.py
mushfiqurrb/Communicator-for-Deaf-and-Dumb
7fe6c23f49e160681872551da21058678295921a
[ "MIT" ]
null
null
null
test.py
mushfiqurrb/Communicator-for-Deaf-and-Dumb
7fe6c23f49e160681872551da21058678295921a
[ "MIT" ]
null
null
null
from keras.models import load_model from keras.preprocessing import image from keras.preprocessing.image import ImageDataGenerator import numpy as np import cv2 model = load_model('C:/Users/User/Music/mushfiq2/trained_model.h5') img_dim = 128 class_labels = [ 'A', 'B', 'C', 'D', 'E', 'F', ...
25.831858
103
0.55704
464663f0656dba0e9ed26224ba8ed73a1ce96984
4,058
py
Python
tests/compute/lorentz/test_t2.py
pfackeldey/vector
87e9e942f2a9ae09a3e250e12f37505eb22e25ea
[ "BSD-3-Clause" ]
40
2020-03-26T13:28:36.000Z
2022-03-23T22:14:35.000Z
tests/compute/lorentz/test_t2.py
pfackeldey/vector
87e9e942f2a9ae09a3e250e12f37505eb22e25ea
[ "BSD-3-Clause" ]
66
2020-02-14T13:32:18.000Z
2022-03-29T14:35:31.000Z
tests/compute/lorentz/test_t2.py
pfackeldey/vector
87e9e942f2a9ae09a3e250e12f37505eb22e25ea
[ "BSD-3-Clause" ]
14
2020-01-29T22:03:33.000Z
2022-03-16T02:46:25.000Z
# Copyright (c) 2019-2021, Jonas Eschle, Jim Pivarski, Eduardo Rodrigues, and Henry Schreiner. # # Distributed under the 3-clause BSD license, see accompanying file LICENSE # or https://github.com/scikit-hep/vector for details. import pytest import vector._backends.object_ def test_xy_z_t(): vec = vector._backe...
34.683761
94
0.727452
9b488eefd062d1a8a6b3756b0ff0ef0b7241a6b1
3,081
py
Python
examples/retrieval/evaluation/reranking/evaluate_anserini_bm25_ce_reranking.py
gabinguo/beir
1d7f7168fc9c804b561a3fb25c330bde7263c085
[ "Apache-2.0" ]
null
null
null
examples/retrieval/evaluation/reranking/evaluate_anserini_bm25_ce_reranking.py
gabinguo/beir
1d7f7168fc9c804b561a3fb25c330bde7263c085
[ "Apache-2.0" ]
null
null
null
examples/retrieval/evaluation/reranking/evaluate_anserini_bm25_ce_reranking.py
gabinguo/beir
1d7f7168fc9c804b561a3fb25c330bde7263c085
[ "Apache-2.0" ]
null
null
null
from beir.custom_logging import setup_logger, log_map from beir.datasets.data_loader import GenericDataLoader from beir.retrieval.evaluation import EvaluateRetrieval from beir.reranking.models import CrossEncoder from beir.reranking import Rerank from beir.configs import default_ranker, dataset_stored_loc import json ...
42.205479
118
0.676079
5446c5b186c41d567ac5946fe02475fc5109aee5
20,886
py
Python
monitor_check.py
hroncok/mini-mass-rebuild
7e7b6b25436faa9bf3e3268942692c2eeae77aac
[ "CC0-1.0" ]
4
2018-04-30T14:59:46.000Z
2021-06-10T11:32:43.000Z
monitor_check.py
hroncok/mini-mass-rebuild
7e7b6b25436faa9bf3e3268942692c2eeae77aac
[ "CC0-1.0" ]
2
2019-06-07T11:28:00.000Z
2019-06-26T14:04:09.000Z
monitor_check.py
hroncok/mini-mass-rebuild
7e7b6b25436faa9bf3e3268942692c2eeae77aac
[ "CC0-1.0" ]
3
2019-06-07T08:57:47.000Z
2020-10-30T10:42:49.000Z
import aiohttp import asyncio import bugzilla import logging import re import sys from urllib.parse import urlencode, quote, unquote from textwrap import dedent import webbrowser import click from click import secho from collections import Counter import dnf from anytree import Node, RenderTree, findall_by_attr MONI...
34.183306
183
0.630949
df87c1f99f40977ed21b343622dc15245f808049
1,239
py
Python
cubetools/tests/test_pytest.py
CubeElement/cube-tools
d2495747be2a334dc9bc2c5e8b7c815f1788557d
[ "MIT" ]
2
2021-03-23T08:28:53.000Z
2022-02-04T18:21:26.000Z
cubetools/tests/test_pytest.py
CubeElement/cube-tools
d2495747be2a334dc9bc2c5e8b7c815f1788557d
[ "MIT" ]
null
null
null
cubetools/tests/test_pytest.py
CubeElement/cube-tools
d2495747be2a334dc9bc2c5e8b7c815f1788557d
[ "MIT" ]
null
null
null
import pytest import os import pandas as pd from cubetools import config as cfg def test_check_filelist_correct(main_model, test_tool_dir, test_toolt, test_toolptch): cfg.path_to_cnc = {"MACHINE_01": str(test_tool_dir)} expected = {"MACHINE_01": str(test_tool_dir)} assert m...
35.4
80
0.719128
3d570ea99461050687e0b4d63f42b16f05508136
1,318
py
Python
language_tools/tell_the_positions.py
de1401/Coding-Ninjas-Competitive-Programming
c7601ac9f2dcf312e405a26f551d00c89ccfe990
[ "CC0-1.0" ]
19
2020-08-09T11:42:36.000Z
2022-03-10T08:49:00.000Z
language_tools/tell_the_positions.py
de1401/Coding-Ninjas-Competitive-Programming
c7601ac9f2dcf312e405a26f551d00c89ccfe990
[ "CC0-1.0" ]
null
null
null
language_tools/tell_the_positions.py
de1401/Coding-Ninjas-Competitive-Programming
c7601ac9f2dcf312e405a26f551d00c89ccfe990
[ "CC0-1.0" ]
5
2020-10-03T14:01:35.000Z
2022-03-13T14:49:56.000Z
''' In a class there are ‘n’ number of students. They have three different subjects: Data Structures, Algorithm Design & Analysis and Operating Systems. Marks for each subject of all the students are provided to you. You have to tell the position of each student in the class. Print the names of each student according t...
45.448276
532
0.721548
798f741d36962e1e56cf439754636568dbb55130
4,566
py
Python
shipped_app.py
dreamInCoDeforlife/AWSHackathon
06b34b94fe5114ef6a1cee150b5b3dad68909ce9
[ "Apache-2.0" ]
2
2020-04-16T00:36:29.000Z
2020-04-20T01:46:29.000Z
shipped_app.py
dreamInCoDeforlife/AWSHackathon
06b34b94fe5114ef6a1cee150b5b3dad68909ce9
[ "Apache-2.0" ]
6
2021-05-11T10:38:07.000Z
2022-03-12T00:23:44.000Z
shipped_app.py
dreamInCoDeforlife/AWSHackathon
06b34b94fe5114ef6a1cee150b5b3dad68909ce9
[ "Apache-2.0" ]
null
null
null
import hashlib import json from time import time from urllib.parse import urlparse from uuid import uuid4 from flask_cors import CORS import requests from flask import Flask, jsonify, request import boto3 import ast import decimal from boto3.dynamodb.conditions import Key, Attr from botocore.exceptions import ClientErr...
33.822222
122
0.609286