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
c7d75d84ab48e0f55426fa5ef9b76cbde3951e30
7,027
py
Python
src/ipywidgets_toggle_buttons/abc_toggle_buttons_with_hide.py
stas-prokopiev/ipywidgets_toggle_buttons
84d1afde1d02c19fb6a41b20e17b9d2b1c7980e2
[ "MIT" ]
null
null
null
src/ipywidgets_toggle_buttons/abc_toggle_buttons_with_hide.py
stas-prokopiev/ipywidgets_toggle_buttons
84d1afde1d02c19fb6a41b20e17b9d2b1c7980e2
[ "MIT" ]
null
null
null
src/ipywidgets_toggle_buttons/abc_toggle_buttons_with_hide.py
stas-prokopiev/ipywidgets_toggle_buttons
84d1afde1d02c19fb6a41b20e17b9d2b1c7980e2
[ "MIT" ]
null
null
null
"""Abstract class for all toggle buttons""" # Standard library imports import logging from collections import OrderedDict # Third party imports import ipywidgets # Local imports from .abc_toggle_buttons import BaseToggleButtons from .layouts import DICT_LAYOUT_HBOX_ANY LOGGER = logging.getLogger(__name__) class Ba...
40.154286
91
0.672549
6,714
0.955458
0
0
1,788
0.254447
0
0
1,714
0.243916
c7d7886d9a5f7ae38bdb7d01f1fc136b75bb2a50
3,899
py
Python
Players/DWPMPlayer.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
Players/DWPMPlayer.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
Players/DWPMPlayer.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
__author__ = 'Pat McClernan and Dan Wegmann' import Player import Message # input #0 for rock #1 for paper #2 for scissors # past move is array of numbers # our move followed by their move #Our strategy is to look at all past moves #In a large number of games, you would expect # each move to be seen an even amount ...
32.22314
108
0.598359
2,918
0.748397
0
0
815
0.209028
0
0
1,580
0.405232
c7d7ef9a92fb0bfab05a3bc1de9e8efb6f62b67d
1,023
py
Python
example/example.py
mowshon/age-and-gender
e5c912f6ba739f30a45c04208b6d16500e4488cd
[ "MIT" ]
81
2020-06-17T12:53:03.000Z
2022-03-11T20:02:46.000Z
example/example.py
mowshon/age-and-gender
e5c912f6ba739f30a45c04208b6d16500e4488cd
[ "MIT" ]
4
2020-06-18T09:28:12.000Z
2021-07-13T09:16:29.000Z
example/example.py
mowshon/age-and-gender
e5c912f6ba739f30a45c04208b6d16500e4488cd
[ "MIT" ]
17
2020-06-18T07:08:09.000Z
2022-03-31T03:56:58.000Z
from age_and_gender import * from PIL import Image, ImageDraw, ImageFont data = AgeAndGender() data.load_shape_predictor('models/shape_predictor_5_face_landmarks.dat') data.load_dnn_gender_classifier('models/dnn_gender_classifier_v1.dat') data.load_dnn_age_predictor('models/dnn_age_predictor_v1.dat') filename = 'test...
31
118
0.672532
0
0
0
0
0
0
0
0
337
0.329423
c7d86ca9e9717fc1914525f4cf4555781fc27cb0
1,463
py
Python
code/generate_games.py
jppg/pygame-tictactoe
f7283a71bb289601b4b8ee0b0bdbe731e67fa8a7
[ "MIT" ]
null
null
null
code/generate_games.py
jppg/pygame-tictactoe
f7283a71bb289601b4b8ee0b0bdbe731e67fa8a7
[ "MIT" ]
null
null
null
code/generate_games.py
jppg/pygame-tictactoe
f7283a71bb289601b4b8ee0b0bdbe731e67fa8a7
[ "MIT" ]
null
null
null
from tictactoe import TicTacToe import random import csv import os gameNr = 1 gameLimit = 10000 lst_moves_1 = [] lst_moves_2 = [] while gameNr <= gameLimit: print("+++++++++++") print("Game#", gameNr) game = TicTacToe() tmp_moves_1 = [] tmp_moves_2 = [] while game.get_winner() == 0 and game....
27.603774
87
0.580314
0
0
0
0
0
0
0
0
247
0.168831
c7d9eaf5171771685897ba7e8ba2988b57091181
350
py
Python
applications/CoSimulationApplication/custom_data_structure/pyKratos/IntervalUtility.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
2
2019-10-25T09:28:10.000Z
2019-11-21T12:51:46.000Z
applications/CoSimulationApplication/custom_data_structure/pyKratos/IntervalUtility.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
13
2019-10-07T12:06:51.000Z
2020-02-18T08:48:33.000Z
applications/CoSimulationApplication/custom_data_structure/pyKratos/IntervalUtility.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
null
null
null
from __future__ import print_function, absolute_import, division # makes these scripts backward compatible with python 2.6 and 2.7 # TODO this should be implemented, see "kratos/utilities/interval_utility.h" class IntervalUtility(object): def __init__(self, settings): pass def IsInInterval(self, curr...
38.888889
131
0.757143
140
0.4
0
0
0
0
0
0
141
0.402857
c7dc267a8e2592a1c24d3b8c06a265a370010c46
2,906
py
Python
stixcore/tmtc/tests/test_packets.py
nicHoch/STIXCore
16822bbb37046f8e6c03be51909cfc91e9822cf7
[ "BSD-3-Clause" ]
1
2022-03-31T13:42:43.000Z
2022-03-31T13:42:43.000Z
stixcore/tmtc/tests/test_packets.py
nicHoch/STIXCore
16822bbb37046f8e6c03be51909cfc91e9822cf7
[ "BSD-3-Clause" ]
192
2020-11-03T22:40:19.000Z
2022-03-31T15:17:13.000Z
stixcore/tmtc/tests/test_packets.py
nicHoch/STIXCore
16822bbb37046f8e6c03be51909cfc91e9822cf7
[ "BSD-3-Clause" ]
3
2020-11-09T15:05:18.000Z
2022-01-21T07:52:51.000Z
import bitstring import pytest from stixcore.data.test import test_data from stixcore.idb.manager import IDBManager from stixcore.tmtc.packets import ( SOURCE_PACKET_HEADER_STRUCTURE, TC_DATA_HEADER_STRUCTURE, TM_DATA_HEADER_STRUCTURE, SourcePacketHeader, TCPacket, TMDataHeader, TMPacket, ...
41.514286
97
0.699931
0
0
0
0
674
0.231934
0
0
152
0.052306
c7dcc75b55961bd952da5e374d98d1ab7d3f5c96
40,969
py
Python
python/thunder/rdds/fileio/seriesloader.py
broxtronix/thunder
4dad77721e2c9e225f94a6a5366d51ec83ac4690
[ "Apache-2.0" ]
null
null
null
python/thunder/rdds/fileio/seriesloader.py
broxtronix/thunder
4dad77721e2c9e225f94a6a5366d51ec83ac4690
[ "Apache-2.0" ]
null
null
null
python/thunder/rdds/fileio/seriesloader.py
broxtronix/thunder
4dad77721e2c9e225f94a6a5366d51ec83ac4690
[ "Apache-2.0" ]
null
null
null
"""Provides SeriesLoader object and helpers, used to read Series data from disk or other filesystems. """ from collections import namedtuple import json from numpy import array, arange, frombuffer, load, ndarray, unravel_index, vstack from numpy import dtype as dtypeFunc from scipy.io import loadmat from cStringIO impo...
48.772619
124
0.631648
39,027
0.952598
0
0
3,632
0.088652
0
0
19,247
0.469794
c7dcceeeb44aada8315f0c77d81c291531d15b79
3,097
py
Python
mxnet/local_forward.py
rai-project/onnx_examples
45db7b3e03dd674f28aeef3fcb1e60f5bca47948
[ "MIT" ]
null
null
null
mxnet/local_forward.py
rai-project/onnx_examples
45db7b3e03dd674f28aeef3fcb1e60f5bca47948
[ "MIT" ]
null
null
null
mxnet/local_forward.py
rai-project/onnx_examples
45db7b3e03dd674f28aeef3fcb1e60f5bca47948
[ "MIT" ]
null
null
null
# run local models given a path, default to './mxnet_models/' import os import argparse import time import mxnet as mx import numpy as np file_path = os.path.realpath(__file__) dir_name = os.path.dirname(file_path) os.environ["MXNET_CUDNN_AUTOTUNE_DEFAULT"] = "0" class cuda_profiler_start(): import numba.cuda ...
27.651786
84
0.683242
164
0.052954
0
0
0
0
0
0
486
0.156926
c7de097e9b9739100654b069d9cac10ffe5b515c
1,198
py
Python
tests/test_get_angles.py
Mopolino8/lammps-data-file
5c9015d05fa1484a33c84e6cfb90cd4a7d99d133
[ "MIT" ]
13
2017-05-30T17:43:10.000Z
2021-08-06T04:21:44.000Z
tests/test_get_angles.py
njustcodingjs/lammps-data-file
3a0729b5ab4d2344326d09ac4ee1aab41442f14a
[ "MIT" ]
2
2018-05-28T15:35:32.000Z
2018-05-28T16:21:09.000Z
tests/test_get_angles.py
njustcodingjs/lammps-data-file
3a0729b5ab4d2344326d09ac4ee1aab41442f14a
[ "MIT" ]
10
2017-05-23T21:19:21.000Z
2022-03-08T02:18:00.000Z
from lammps_data.angles import get_angles def test_separate_diatomic_molecules_should_have_no_angles(): bonds = [(0, 1), (2, 3)] assert get_angles(bonds) == [] def test_molecule_with_two_bonds_should_have_one_angle(): bonds = [(0, 1), (1, 2)] assert get_angles(bonds) == [(0, 1, 2)] def test_differ...
33.277778
87
0.520033
0
0
0
0
0
0
0
0
0
0
c7dedb48cc1d235760b585e1ff0e7c005780aeec
491
py
Python
api/scheduler/migrations/0001_initial.py
jfaach/stock-app
9cd0f98d3ec5d31dcd6680c5bf8b7b0fcdf025a6
[ "CC0-1.0" ]
null
null
null
api/scheduler/migrations/0001_initial.py
jfaach/stock-app
9cd0f98d3ec5d31dcd6680c5bf8b7b0fcdf025a6
[ "CC0-1.0" ]
null
null
null
api/scheduler/migrations/0001_initial.py
jfaach/stock-app
9cd0f98d3ec5d31dcd6680c5bf8b7b0fcdf025a6
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.1 on 2020-12-16 03:07 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Scheduler', fields=[ ('id', models.AutoFiel...
22.318182
114
0.578411
398
0.810591
0
0
0
0
0
0
75
0.152749
c7e12276bc98092252c4149244dfdf01adca03b0
477
py
Python
9-Wine-Scaling.py
Pawel762/Class-7_homework
e79d2f8d218980d814443951dae7840f521ba191
[ "MIT" ]
null
null
null
9-Wine-Scaling.py
Pawel762/Class-7_homework
e79d2f8d218980d814443951dae7840f521ba191
[ "MIT" ]
null
null
null
9-Wine-Scaling.py
Pawel762/Class-7_homework
e79d2f8d218980d814443951dae7840f521ba191
[ "MIT" ]
null
null
null
from sklearn.preprocessing import StandardScaler from sklearn.datasets import load_wine from sklearn.model_selection import train_test_split wine = load_wine() columns_names = wine.feature_names y = wine.target X = wine.data print('Pre scaling X') print(X) scaler = StandardScaler() scaler.fit(X) scaled_features = sc...
21.681818
88
0.796646
0
0
0
0
0
0
0
0
31
0.06499
c7e14941f3967e5d720a9a0637e48720262f173d
4,057
py
Python
tests/conftest.py
szkkteam/flask-starter
7019036e7ee017ca5df9059d0b4a0d29005beab5
[ "MIT" ]
null
null
null
tests/conftest.py
szkkteam/flask-starter
7019036e7ee017ca5df9059d0b4a0d29005beab5
[ "MIT" ]
2
2021-03-31T19:36:44.000Z
2021-12-13T20:30:11.000Z
tests/conftest.py
szkkteam/flask-starter
7019036e7ee017ca5df9059d0b4a0d29005beab5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Common Python library imports import os import pytest # Pip package imports from collections import namedtuple from flask import template_rendered from flask_security.signals import ( reset_password_instructions_sent, user_confirmed, user_registered, ) # In...
22.792135
79
0.689426
0
0
2,666
0.657136
3,360
0.828198
0
0
439
0.108208
c7e1894d1594534627afedcd4ba2104fda1ac3a6
927
py
Python
setup.py
YiuRULE/nats.py
3a78ba4c385e2069daf5ff560aadc30968af1ccd
[ "Apache-2.0" ]
null
null
null
setup.py
YiuRULE/nats.py
3a78ba4c385e2069daf5ff560aadc30968af1ccd
[ "Apache-2.0" ]
null
null
null
setup.py
YiuRULE/nats.py
3a78ba4c385e2069daf5ff560aadc30968af1ccd
[ "Apache-2.0" ]
null
null
null
from setuptools import setup from nats.aio.client import __version__ EXTRAS = { 'nkeys': ['nkeys'], } setup( name='nats-py', version=__version__, description='NATS client for Python', long_description='Python client for NATS, a lightweight, high-performance cloud native messaging system', cla...
29.903226
109
0.636462
0
0
0
0
0
0
0
0
524
0.565264
c7e2f163fdb11300c85e2c17e27cb56d8ee3f07e
12,844
py
Python
example_python_files/MagicDAQ,MABoard,FullDemo.py
MagicDAQ/magicdaq_docs
896a2565a28d80c733d8a137211212816ef3fbe2
[ "MIT" ]
1
2021-05-20T21:11:13.000Z
2021-05-20T21:11:13.000Z
example_python_files/MagicDAQ,MABoard,FullDemo.py
MagicDAQ/magicdaq_docs
896a2565a28d80c733d8a137211212816ef3fbe2
[ "MIT" ]
null
null
null
example_python_files/MagicDAQ,MABoard,FullDemo.py
MagicDAQ/magicdaq_docs
896a2565a28d80c733d8a137211212816ef3fbe2
[ "MIT" ]
null
null
null
############################################################## #*** MagicDAQ USB DAQ and M&A Board General Demo Script *** ############################################################## #*** Websites *** # MagicDAQ Website: # https://www.magicdaq.com/ # API Docs Website: # https://magicdaq.github.io/magicdaq_docs/ #*...
34.342246
196
0.617642
0
0
0
0
0
0
0
0
9,312
0.725008
c7e321ea7df7191ba4707163a3bf9a97bdfd5999
252
py
Python
src/onenutil/schemas/__init__.py
LemurPwned/onenote-utils
07778e6b2433cf28fab2afdbb01a318f284989dc
[ "MIT" ]
null
null
null
src/onenutil/schemas/__init__.py
LemurPwned/onenote-utils
07778e6b2433cf28fab2afdbb01a318f284989dc
[ "MIT" ]
null
null
null
src/onenutil/schemas/__init__.py
LemurPwned/onenote-utils
07778e6b2433cf28fab2afdbb01a318f284989dc
[ "MIT" ]
null
null
null
from .results import (ArticleSearchResult, EmbeddingsResult, SearchResult, TagResult, ZoteroExtractionResult) __all__ = [ "TagResult", "EmbeddingsResult", "ZoteroExtractionResult", "SearchResult", "ArticleSearchResult" ]
31.5
78
0.714286
0
0
0
0
0
0
0
0
88
0.349206
c7e32e60b520a7528f6c33e61490ce039febd1e0
2,257
py
Python
src/account/api/serializers.py
amirpsd/drf_blog_api
58be081a450840114af021e7412e469fad90456d
[ "MIT" ]
33
2022-02-11T12:16:29.000Z
2022-03-26T15:08:47.000Z
src/account/api/serializers.py
amirpsd/django_blog_api
58be081a450840114af021e7412e469fad90456d
[ "MIT" ]
null
null
null
src/account/api/serializers.py
amirpsd/django_blog_api
58be081a450840114af021e7412e469fad90456d
[ "MIT" ]
5
2022-02-11T13:03:52.000Z
2022-03-28T16:04:32.000Z
from django.contrib.auth import get_user_model from rest_framework import serializers class UsersListSerializer(serializers.ModelSerializer): class Meta: model = get_user_model() fields = [ "id", "phone", "first_name", "last_name", "author", ] class U...
23.030612
70
0.613646
2,149
0.952149
0
0
0
0
0
0
292
0.129375
c7e5a0b18daf16984d985969f34fb443eae76979
3,733
py
Python
generate_figure9.py
IBM/Simultaneous-diagonalization
385545401395a2e07f109441db4751a5dcf8f0a4
[ "Apache-2.0" ]
null
null
null
generate_figure9.py
IBM/Simultaneous-diagonalization
385545401395a2e07f109441db4751a5dcf8f0a4
[ "Apache-2.0" ]
null
null
null
generate_figure9.py
IBM/Simultaneous-diagonalization
385545401395a2e07f109441db4751a5dcf8f0a4
[ "Apache-2.0" ]
1
2022-03-14T18:36:12.000Z
2022-03-14T18:36:12.000Z
# Copyright 2022 IBM Inc. All rights reserved # SPDX-License-Identifier: Apache2.0 # 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 ...
31.905983
103
0.682561
0
0
0
0
0
0
0
0
1,351
0.361907
c7e5bf2a376cfb8077d1056296fc71ad74e416d7
793
py
Python
undeployed/legacy/Landsat/L7GapFiller_ArcInterface.py
NASA-DEVELOP/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
65
2015-09-10T12:59:56.000Z
2022-02-27T22:09:03.000Z
undeployed/legacy/Landsat/L7GapFiller_ArcInterface.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
40
2015-04-08T19:23:30.000Z
2015-08-04T15:53:11.000Z
undeployed/legacy/Landsat/L7GapFiller_ArcInterface.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
45
2015-08-14T19:09:38.000Z
2022-02-15T18:53:16.000Z
#------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: qgeddes # # Created: 25/04/2013 # Copyright: (c) qgeddes 2013 # Licence: <your licence> #------------------------------------------------------------------------------- import L7...
26.433333
80
0.600252
0
0
0
0
0
0
0
0
320
0.403531
c7e62258b56e4e6157b37bc5877b4350133a63c1
1,676
py
Python
tests/sentry/api/serializers/test_saved_search.py
practo/sentry
82f530970ce205696469fa702246396acfd947a1
[ "BSD-3-Clause" ]
4
2019-05-27T13:55:07.000Z
2021-03-30T07:05:09.000Z
tests/sentry/api/serializers/test_saved_search.py
practo/sentry
82f530970ce205696469fa702246396acfd947a1
[ "BSD-3-Clause" ]
99
2019-05-20T14:16:33.000Z
2021-01-19T09:25:15.000Z
tests/sentry/api/serializers/test_saved_search.py
practo/sentry
82f530970ce205696469fa702246396acfd947a1
[ "BSD-3-Clause" ]
1
2020-08-10T07:55:40.000Z
2020-08-10T07:55:40.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import six from sentry.api.serializers import serialize from sentry.models import SavedSearch from sentry.models.savedsearch import DEFAULT_SAVED_SEARCHES from sentry.testutils import TestCase class SavedSearchSerializerTest(TestCase): def test_sim...
33.52
70
0.648568
1,414
0.843675
0
0
0
0
0
0
235
0.140215
c7e63e3b77d732305764d664c862b2625865bf3a
864
py
Python
xastropy/files/general.py
bpholden/xastropy
66aff0995a84c6829da65996d2379ba4c946dabe
[ "BSD-3-Clause" ]
3
2015-08-23T00:32:58.000Z
2020-12-31T02:37:52.000Z
xastropy/files/general.py
Kristall-WangShiwei/xastropy
723fe56cb48d5a5c4cdded839082ee12ef8c6732
[ "BSD-3-Clause" ]
104
2015-07-17T18:31:54.000Z
2018-06-29T17:04:09.000Z
xastropy/files/general.py
Kristall-WangShiwei/xastropy
723fe56cb48d5a5c4cdded839082ee12ef8c6732
[ "BSD-3-Clause" ]
16
2015-07-17T15:50:37.000Z
2019-04-21T03:42:47.000Z
""" #;+ #; NAME: #; general #; Version 1.0 #; #; PURPOSE: #; Module for monkeying with files and filenames #; 172Sep-2014 by JXP #;- #;------------------------------------------------------------------------------ """ # Import libraries import numpy as np from astropy.io import fits from astropy.io import as...
19.2
80
0.508102
0
0
0
0
0
0
0
0
425
0.491898
c7e69418daeb84532c16aa76c96e7a0136b72521
655
py
Python
setup.py
muatik/genderizer
9866bf0371d1d984f6c4465ff78025d911f6a648
[ "MIT" ]
54
2015-01-19T22:53:48.000Z
2021-06-23T03:48:05.000Z
setup.py
nejdetckenobi/genderizer
9866bf0371d1d984f6c4465ff78025d911f6a648
[ "MIT" ]
4
2016-05-23T13:52:12.000Z
2021-05-14T10:24:37.000Z
setup.py
nejdetckenobi/genderizer
9866bf0371d1d984f6c4465ff78025d911f6a648
[ "MIT" ]
18
2015-01-30T00:06:40.000Z
2021-03-12T14:56:12.000Z
#!/usr/bin/env python try: from setuptools.core import setup except ImportError: from distutils.core import setup setup(name='genderizer', version='0.1.2.3', license='MIT', description='Genderizer tries to infer gender information looking at first name and/or making text analysis', lo...
31.190476
115
0.668702
0
0
0
0
0
0
0
0
293
0.447328
c7e75b487c0cdec2958e2495ad3a66ff9804a5e3
1,855
py
Python
ingestion/tests/unit/great_expectations/test_ometa_validation_action.py
ulixius9/OpenMetadata
f121698d968717f0932f685ef2a512c2a4d92438
[ "Apache-2.0" ]
null
null
null
ingestion/tests/unit/great_expectations/test_ometa_validation_action.py
ulixius9/OpenMetadata
f121698d968717f0932f685ef2a512c2a4d92438
[ "Apache-2.0" ]
null
null
null
ingestion/tests/unit/great_expectations/test_ometa_validation_action.py
ulixius9/OpenMetadata
f121698d968717f0932f685ef2a512c2a4d92438
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Collate # 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...
34.351852
82
0.755256
0
0
0
0
803
0.432884
0
0
878
0.473315
c7e7bdfc8b236f444e8faf6ff083ca3ec5dec358
1,285
py
Python
tests/integration/Containers.py
adnrs96/runtime
e824224317e6aa108cf06968474fc44fa33488d6
[ "Apache-2.0" ]
null
null
null
tests/integration/Containers.py
adnrs96/runtime
e824224317e6aa108cf06968474fc44fa33488d6
[ "Apache-2.0" ]
null
null
null
tests/integration/Containers.py
adnrs96/runtime
e824224317e6aa108cf06968474fc44fa33488d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from storyruntime.Containers import Containers from storyruntime.constants.ServiceConstants import ServiceConstants import storyscript def test_containers_format_command(story): """ Ensures a simple resolve can be performed """ story_text = 'alpine echo msg:"foo"\n' story....
26.770833
68
0.529183
0
0
0
0
0
0
0
0
269
0.209339
c7e91e12c70be5743a54ddceae5d419516ca3301
1,367
py
Python
project_name/core/admin.py
cosmunsoftwares/django-boilerplate
147aa7f59901d0fb95d41acf8ec118c6830267f8
[ "MIT" ]
3
2018-11-30T19:51:35.000Z
2020-10-20T00:28:49.000Z
project_name/core/admin.py
cosmun-softwares/django-boilerplate
147aa7f59901d0fb95d41acf8ec118c6830267f8
[ "MIT" ]
6
2020-04-09T20:00:45.000Z
2022-02-10T08:25:47.000Z
project_name/core/admin.py
cosmunsoftwares/django-boilerplate
147aa7f59901d0fb95d41acf8ec118c6830267f8
[ "MIT" ]
1
2018-08-27T21:44:44.000Z
2018-08-27T21:44:44.000Z
from django.contrib import admin from django.shortcuts import redirect from django.utils.safestring import mark_safe from django.contrib.admin.widgets import AdminFileWidget class AdminImageWidget(AdminFileWidget): def render(self, name, value, attrs=None, renderer=None): output = [] if value and ...
37.972222
104
0.688369
793
0.580102
0
0
0
0
0
0
256
0.187271
c7e9c8cc7086c2b1fd149895cfcda90298ab4af1
1,222
py
Python
src/5vents.py
subhash686/aoc-2021
a01fa07f94148b7072c3ba4c854b546862d3486a
[ "Apache-2.0" ]
null
null
null
src/5vents.py
subhash686/aoc-2021
a01fa07f94148b7072c3ba4c854b546862d3486a
[ "Apache-2.0" ]
null
null
null
src/5vents.py
subhash686/aoc-2021
a01fa07f94148b7072c3ba4c854b546862d3486a
[ "Apache-2.0" ]
null
null
null
import os plane = [[0 for i in range(1000)] for j in range(1000)] count = [0] def overlapping_vents(): path = os.getcwd() file_path = os.path.join(path, 'vents.txt') file1 = open(file_path, 'r') Lines = file1.readlines() for line in Lines: input = line.strip() points = input.spli...
22.218182
55
0.488543
0
0
0
0
0
0
0
0
36
0.02946
c7eb057d4134335a7eb1bab05618a4866e334bff
1,217
py
Python
problems/test_0073_m_plus_n_space.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0073_m_plus_n_space.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0073_m_plus_n_space.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import unittest class Solution: def setZeroes(self, matrix): """ :type matrix: List[List[int]] :rtype: void Do not return anything, modify matrix in-place instead. """ rows = [0] * len(matrix) cols = [0] * len(matrix[0]) for i, row in enumerate(matrix): ...
23.403846
76
0.419063
1,146
0.94166
0
0
0
0
0
0
140
0.115037
c7eb49aae87e95e2b4d243e5c05c7251bfbcbd52
2,508
py
Python
xlsxwriter/test/worksheet/test_write_print_options.py
Aeon1/XlsxWriter
6871b6c3fe6c294632054ea91f23d9e27068bcc1
[ "BSD-2-Clause-FreeBSD" ]
2
2019-07-25T06:08:09.000Z
2019-11-01T02:33:56.000Z
xlsxwriter/test/worksheet/test_write_print_options.py
Aeon1/XlsxWriter
6871b6c3fe6c294632054ea91f23d9e27068bcc1
[ "BSD-2-Clause-FreeBSD" ]
13
2019-07-14T00:29:05.000Z
2019-11-26T06:16:46.000Z
xlsxwriter/test/worksheet/test_write_print_options.py
Aeon1/XlsxWriter
6871b6c3fe6c294632054ea91f23d9e27068bcc1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ...worksheet import Worksheet class TestWritePrintOptions(unittest.TestCase): """ ...
28.179775
79
0.637161
2,243
0.894338
0
0
0
0
0
0
811
0.323365
c7ebfcaf02d689a33ed8274d051230038106dff7
1,011
py
Python
neo4j_helper.py
smartaec/OpenBridgeGraph
61ca64ed339af4e77d928f83934a308277a79d81
[ "MIT" ]
null
null
null
neo4j_helper.py
smartaec/OpenBridgeGraph
61ca64ed339af4e77d928f83934a308277a79d81
[ "MIT" ]
null
null
null
neo4j_helper.py
smartaec/OpenBridgeGraph
61ca64ed339af4e77d928f83934a308277a79d81
[ "MIT" ]
null
null
null
from neo4j.v1 import GraphDatabase #neo4j==1.7.0 uri="bolt://localhost:7687" driver=GraphDatabase.driver(uri, auth=("neo4j", "testneo4j")) def execute_queries(scripts,message=None): with driver.session() as session: tx=session.begin_transaction() res=tx.run(';'.join(scripts)) tx.commit() ...
29.735294
105
0.69634
0
0
0
0
0
0
0
0
169
0.167161
c7edb1043a4f03dfdc950843e15b617197779da3
9,077
py
Python
tests/unit/test_juju.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
null
null
null
tests/unit/test_juju.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
null
null
null
tests/unit/test_juju.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
null
null
null
import os import tempfile import mock from . import utils from hotsos.core.config import setup_config from hotsos.core.ycheck.scenarios import YScenarioChecker from hotsos.core.issues.utils import KnownBugsStore, IssuesStore from hotsos.plugin_extensions.juju import summary JOURNALCTL_CAPPEDPOSITIONLOST = """ Dec 2...
51.282486
344
0.637435
6,335
0.697918
0
0
4,551
0.501377
0
0
4,126
0.454555
c7ef7d842b61d4e084cbe5d2d84903334c53e8d0
9,626
py
Python
tools/SPGAN/main.py
by-liu/OpenUnReID
2260d8e16588a992631c9c84e6cee4304ae8593d
[ "Apache-2.0" ]
null
null
null
tools/SPGAN/main.py
by-liu/OpenUnReID
2260d8e16588a992631c9c84e6cee4304ae8593d
[ "Apache-2.0" ]
null
null
null
tools/SPGAN/main.py
by-liu/OpenUnReID
2260d8e16588a992631c9c84e6cee4304ae8593d
[ "Apache-2.0" ]
null
null
null
import argparse import collections import shutil import sys import time from datetime import timedelta from pathlib import Path import torch from torch.nn.parallel import DataParallel, DistributedDataParallel try: # PyTorch >= 1.6 supports mixed precision training from torch.cuda.amp import autocast amp_su...
31.980066
117
0.60108
4,495
0.466964
0
0
0
0
0
0
1,468
0.152504
c7efcc01c957ea47bff3471d2bc47b9aa1291cde
1,907
py
Python
utility/data_download.py
LatvianPython/wind-experience
b634c020dff0a01152bb95b38e5f6f0e368d47f5
[ "MIT" ]
2
2018-12-20T20:31:21.000Z
2018-12-29T14:51:42.000Z
utility/data_download.py
LatvianPython/wind-experience
b634c020dff0a01152bb95b38e5f6f0e368d47f5
[ "MIT" ]
null
null
null
utility/data_download.py
LatvianPython/wind-experience
b634c020dff0a01152bb95b38e5f6f0e368d47f5
[ "MIT" ]
null
null
null
import logging import requests import multiprocessing import pathlib from typing import List from typing import Optional from typing import Tuple from typing import Dict from joblib import delayed from joblib import Parallel from datetime import date from datetime import timedelta logger = logging.getLogger(__name__) ...
32.322034
89
0.677504
0
0
231
0.121133
0
0
0
0
84
0.044048
c7f2afbcc386f15d0c1677f0f7647f383dcc88bb
7,625
py
Python
model/net_qspline_A.py
jercoco/QSQF
6c435f8d4e1baf1937b06a52e63446f9a29f5ad8
[ "Apache-2.0" ]
null
null
null
model/net_qspline_A.py
jercoco/QSQF
6c435f8d4e1baf1937b06a52e63446f9a29f5ad8
[ "Apache-2.0" ]
null
null
null
model/net_qspline_A.py
jercoco/QSQF
6c435f8d4e1baf1937b06a52e63446f9a29f5ad8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 21 19:52:22 2020 #Plan A @author: 18096 """ '''Defines the neural network, loss function and metrics''' #from functools import reduce import torch import torch.nn as nn from torch.nn.functional import pad from torch.autograd import Variable import logging ...
40.131579
89
0.571148
5,072
0.665093
0
0
0
0
0
0
1,268
0.166273
c7f39bdc2218cef3b2fe963ee01b122a395a8bc3
227
py
Python
tests/repositories/helpers/methods/test_reinstall_if_needed.py
traibnn/integration
cf5920a677fdaa8408074e533371141828b0b30f
[ "MIT" ]
1
2021-07-31T00:34:30.000Z
2021-07-31T00:34:30.000Z
tests/repositories/helpers/methods/test_reinstall_if_needed.py
traibnn/integration
cf5920a677fdaa8408074e533371141828b0b30f
[ "MIT" ]
45
2021-07-21T13:32:44.000Z
2022-03-28T06:15:40.000Z
tests/repositories/helpers/methods/test_reinstall_if_needed.py
traibnn/integration
cf5920a677fdaa8408074e533371141828b0b30f
[ "MIT" ]
null
null
null
import pytest @pytest.mark.asyncio async def test_reinstall_if_needed(repository): repository.content.path.local = "/non/existing/dir" repository.data.installed = True await repository.async_reinstall_if_needed()
25.222222
55
0.784141
0
0
0
0
210
0.92511
189
0.832599
19
0.0837
c7f3bbfe8ecf852146009a98359ee99148f7760a
11,124
py
Python
workflow_parser/datasource/log_engine.py
cyx1231st/workflow_parser
d2e78c191c75c7addda89e6e336be90f6ca9717d
[ "Apache-2.0" ]
null
null
null
workflow_parser/datasource/log_engine.py
cyx1231st/workflow_parser
d2e78c191c75c7addda89e6e336be90f6ca9717d
[ "Apache-2.0" ]
null
null
null
workflow_parser/datasource/log_engine.py
cyx1231st/workflow_parser
d2e78c191c75c7addda89e6e336be90f6ca9717d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Yingxin Cheng # # 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 wr...
36.352941
89
0.567242
5,869
0.527598
1,200
0.107875
1,231
0.110662
0
0
2,215
0.199119
c7f405a9090e4db54d759cf9f413be8921191675
3,890
py
Python
IPython/lib/tests/test_irunner_pylab_magic.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/lib/tests/test_irunner_pylab_magic.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
3
2015-04-01T13:14:57.000Z
2015-05-26T16:01:37.000Z
IPython/lib/tests/test_irunner_pylab_magic.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
1
2021-10-06T07:59:25.000Z
2021-10-06T07:59:25.000Z
"""Test suite for pylab_import_all magic Modified from the irunner module but using regex. """ # Global to make tests extra verbose and help debugging VERBOSE = True # stdlib imports import StringIO import sys import unittest import re # IPython imports from IPython.lib import irunner from IPython.testing import dec...
32.689076
87
0.608226
3,325
0.854756
0
0
1,749
0.449614
0
0
1,905
0.489717
c7f4992bb494868e3842c501796146ce55443adc
2,241
py
Python
checkpoint.py
GooLee0123/MBRNN
c313bc286b34a2f6e0cbc1ec0941c511ff8dc8d3
[ "MIT" ]
1
2021-12-07T03:59:51.000Z
2021-12-07T03:59:51.000Z
checkpoint.py
GooLee0123/MBRNN
c313bc286b34a2f6e0cbc1ec0941c511ff8dc8d3
[ "MIT" ]
null
null
null
checkpoint.py
GooLee0123/MBRNN
c313bc286b34a2f6e0cbc1ec0941c511ff8dc8d3
[ "MIT" ]
1
2022-02-23T02:15:56.000Z
2022-02-23T02:15:56.000Z
import logging import os import shutil import time import torch model_state = 'model_state.pt' trainer_state = 'trainer_state.pt' class Checkpoint(): def __init__(self, step, epoch, model, optim, path=None, opt=None): self.step = step self.epoch = epoch self.model = model self.o...
30.69863
76
0.583222
2,106
0.939759
0
0
1,094
0.488175
0
0
244
0.10888
c7f4e1c0cff8588ab79a5f138125b800da16d5b8
4,250
py
Python
test/eval_mines_color.py
alalagong/LEDNet
5dee5ee4edc75c24e6cda50dc1661d8f0b1e6469
[ "MIT" ]
3
2019-08-13T07:21:23.000Z
2020-06-27T16:18:22.000Z
test/eval_mines_color.py
alalagong/LEDNet
5dee5ee4edc75c24e6cda50dc1661d8f0b1e6469
[ "MIT" ]
1
2020-12-14T05:56:44.000Z
2020-12-14T05:56:44.000Z
test/eval_mines_color.py
alalagong/LEDNet
5dee5ee4edc75c24e6cda50dc1661d8f0b1e6469
[ "MIT" ]
1
2019-11-13T12:09:58.000Z
2019-11-13T12:09:58.000Z
import numpy as np import torch import os import cv2 import importlib from dataset import * from PIL import Image from argparse import ArgumentParser from torch.autograd import Variable from torch.utils.data import DataLoader from torchvision.transforms import Compose, CenterCrop, Normalize, Resize from torchvision.tr...
31.481481
141
0.675059
0
0
0
0
0
0
0
0
1,470
0.344908
1bdbd0dddd803ccbb1c990600d899d8ab9de0788
2,440
py
Python
tests/test_resource_linkage.py
firesock/pydantic-jsonapi
b7dc891892ab3439a71f78a9a5fd067c4d651ca8
[ "MIT" ]
null
null
null
tests/test_resource_linkage.py
firesock/pydantic-jsonapi
b7dc891892ab3439a71f78a9a5fd067c4d651ca8
[ "MIT" ]
null
null
null
tests/test_resource_linkage.py
firesock/pydantic-jsonapi
b7dc891892ab3439a71f78a9a5fd067c4d651ca8
[ "MIT" ]
null
null
null
import pytest from pytest import raises from pydantic_jsonapi.resource_linkage import ResourceLinkage from pydantic import BaseModel, ValidationError class ThingWithLinkageData(BaseModel): data: ResourceLinkage class TestResourceLinks: @pytest.mark.parametrize( 'linkage, message', [ ...
34.857143
97
0.527869
2,283
0.935656
0
0
1,050
0.430328
0
0
755
0.309426
1bdd2e9e5e9fd87db022a69e90bc6723cd058b21
2,046
py
Python
src/tensorflow/keras_cnn.py
del680202/MachineLearning-memo
29284ca24041969eeb59851a43ab6c28c685fae5
[ "Apache-2.0" ]
4
2017-04-24T15:01:55.000Z
2019-11-03T11:11:54.000Z
src/tensorflow/keras_cnn.py
aasd145tw/MachineLearning-memo
29284ca24041969eeb59851a43ab6c28c685fae5
[ "Apache-2.0" ]
null
null
null
src/tensorflow/keras_cnn.py
aasd145tw/MachineLearning-memo
29284ca24041969eeb59851a43ab6c28c685fae5
[ "Apache-2.0" ]
12
2017-05-10T13:39:17.000Z
2019-12-15T14:01:05.000Z
import numpy as np from keras.datasets import mnist from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation from keras.optimizers import SGD from keras.utils import np_utils import keras.callbacks import keras.backend.tensorflow_backend as KTF import tensorflow as tf batch_size = 1...
31
112
0.725806
0
0
0
0
0
0
0
0
304
0.148583
1be156b5a97033cae1d2dce7ad771f398dbde2ad
4,942
py
Python
tests/blas/nodes/ger_test.py
xiacijie/dace
2d942440b1d7b139ba112434bfa78f754e10bfe5
[ "BSD-3-Clause" ]
1
2021-07-26T07:58:06.000Z
2021-07-26T07:58:06.000Z
tests/blas/nodes/ger_test.py
xiacijie/dace
2d942440b1d7b139ba112434bfa78f754e10bfe5
[ "BSD-3-Clause" ]
null
null
null
tests/blas/nodes/ger_test.py
xiacijie/dace
2d942440b1d7b139ba112434bfa78f754e10bfe5
[ "BSD-3-Clause" ]
1
2021-03-04T13:01:48.000Z
2021-03-04T13:01:48.000Z
#!/usr/bin/env python3 # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. from dace.transformation.dataflow.streaming_memory import StreamingMemory from dace.transformation.interstate.sdfg_nesting import InlineSDFG from dace.transformation.interstate.fpga_transform_sdfg import FPGATransformSDF...
33.849315
84
0.633347
0
0
0
0
0
0
0
0
551
0.111493
1be16c8b647df2316a1c8f8f394a926e8273c86d
1,925
py
Python
spp.py
ninfueng/torch-cifar
f829c3375a9d9823cef4659f8bdfbd3800d51e80
[ "MIT" ]
null
null
null
spp.py
ninfueng/torch-cifar
f829c3375a9d9823cef4659f8bdfbd3800d51e80
[ "MIT" ]
null
null
null
spp.py
ninfueng/torch-cifar
f829c3375a9d9823cef4659f8bdfbd3800d51e80
[ "MIT" ]
null
null
null
import math from typing import List, Union import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor @torch.jit.script def spatial_pyramid_pool( input: Tensor, bins: Union[int, List[int]], mode: str = "max" ) -> Tensor: """Spatial Pyramid Pooling: https://arxiv.org/pdf/1406....
29.166667
88
0.603636
317
0.164675
0
0
1,314
0.682597
0
0
471
0.244675
1be1d0ad6c2cd6a6b3082cd64ad7f9633b3033de
21,417
py
Python
src/SparseSC/utils/AzureBatch/azure_batch_client.py
wofein/SparseSC
fd8125015c65829458bfee2ae94c24981112d2d8
[ "MIT" ]
null
null
null
src/SparseSC/utils/AzureBatch/azure_batch_client.py
wofein/SparseSC
fd8125015c65829458bfee2ae94c24981112d2d8
[ "MIT" ]
null
null
null
src/SparseSC/utils/AzureBatch/azure_batch_client.py
wofein/SparseSC
fd8125015c65829458bfee2ae94c24981112d2d8
[ "MIT" ]
null
null
null
""" usage requires these additional modules pip install azure-batch azure-storage-blob jsonschema pyyaml && pip install git+https://github.com/microsoft/SparseSC.git@ad4bf27edb28f517508f6934f21eb65d17fb6543 && scgrad start usage: from SparseSC import fit, aggregate_batch_results from SparseSC.utils.azure_batch_clie...
34.487923
178
0.693561
0
0
0
0
0
0
0
0
8,273
0.386282
1be2bb16aca1a3770cbb4668f10786667f95971a
63
py
Python
src/vilbert/datasets/__init__.py
NoOneUST/COMP5212
171b564f08841e426545f58e3b52870c0e090586
[ "MIT" ]
3
2020-04-05T06:50:46.000Z
2020-04-05T08:20:33.000Z
src/vilbert/datasets/__init__.py
NoOneUST/COMP5212Project
171b564f08841e426545f58e3b52870c0e090586
[ "MIT" ]
2
2021-05-21T16:24:54.000Z
2022-02-10T01:21:54.000Z
src/vilbert/datasets/__init__.py
NoOneUST/COMP5212Project
171b564f08841e426545f58e3b52870c0e090586
[ "MIT" ]
1
2020-06-15T16:22:20.000Z
2020-06-15T16:22:20.000Z
from .visual_entailment_dataset import VisualEntailmentDataset
31.5
62
0.920635
0
0
0
0
0
0
0
0
0
0
1be2fe74c868aa22cedb699484c807fd62b32107
14,174
py
Python
Dungeoneer/Treasure.py
jameslemon81/Dungeoneer
8a2a1bfea06ae09f1898583999bf449c82ba4ce9
[ "BSD-3-Clause" ]
12
2015-01-29T17:15:46.000Z
2022-02-23T05:58:49.000Z
Dungeoneer/Treasure.py
jameslemon81/Dungeoneer
8a2a1bfea06ae09f1898583999bf449c82ba4ce9
[ "BSD-3-Clause" ]
null
null
null
Dungeoneer/Treasure.py
jameslemon81/Dungeoneer
8a2a1bfea06ae09f1898583999bf449c82ba4ce9
[ "BSD-3-Clause" ]
8
2016-07-04T18:09:50.000Z
2022-02-23T05:58:48.000Z
# Basic Fantasy RPG Dungeoneer Suite # Copyright 2007-2012 Chris Gonnerman # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # Redistributions of source code must retain the above copyright # no...
32.734411
79
0.417172
0
0
0
0
0
0
0
0
2,726
0.192324
1be31bb2955f81221fbda20bbf33d2351c12d6c3
20,773
py
Python
covid19/COVID19/code/controller/main.py
zhanqingheng/COVID-19
d050ad2effedb9090865d1104ccd5c5d04343f53
[ "MIT" ]
16
2020-06-08T10:14:13.000Z
2022-03-30T02:44:04.000Z
covid19/COVID19/code/controller/main.py
zhanqingheng/COVID-19
d050ad2effedb9090865d1104ccd5c5d04343f53
[ "MIT" ]
1
2021-11-18T10:03:42.000Z
2021-11-18T10:03:42.000Z
covid19/COVID19/code/controller/main.py
zhanqingheng/COVID-19
d050ad2effedb9090865d1104ccd5c5d04343f53
[ "MIT" ]
4
2021-03-06T04:44:03.000Z
2021-12-09T07:22:50.000Z
from flask import Flask, current_app from flask import render_template from flask import jsonify from jieba.analyse import extract_tags import string from DB import chinaSQL from DB import worldSQL app = Flask(__name__, template_folder='../../web', static_folder='../../static') @app.route('/', methods=["get", "post"...
33.078025
98
0.588264
0
0
0
0
20,475
0.978962
0
0
3,714
0.177576
1be38ec637c07219a45f7c7ba15326a16a343d58
396
py
Python
T2API/migrations/0008_product_weight.py
hackhb18-T2/api
c42be466492d07d6451ff3145985cd8cc0927257
[ "Apache-2.0" ]
null
null
null
T2API/migrations/0008_product_weight.py
hackhb18-T2/api
c42be466492d07d6451ff3145985cd8cc0927257
[ "Apache-2.0" ]
null
null
null
T2API/migrations/0008_product_weight.py
hackhb18-T2/api
c42be466492d07d6451ff3145985cd8cc0927257
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.2 on 2018-02-17 10:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('T2API', '0007_apiuser_deviceuser'), ] operations = [ migrations.AddField( model_name='product', name='weight', ...
20.842105
63
0.60101
303
0.765152
0
0
0
0
0
0
96
0.242424
1be41a8ed3e94194a6131c0c94be533e83696d98
3,402
py
Python
contrib/cirrus/podbot.py
juhp/libpod
bc7afd6d71da4173e4894ff352667a25987fa2ea
[ "Apache-2.0" ]
2
2021-09-20T00:29:06.000Z
2021-11-28T08:36:20.000Z
contrib/cirrus/podbot.py
juhp/libpod
bc7afd6d71da4173e4894ff352667a25987fa2ea
[ "Apache-2.0" ]
2
2020-01-04T03:31:18.000Z
2021-05-17T09:54:03.000Z
contrib/cirrus/podbot.py
juhp/libpod
bc7afd6d71da4173e4894ff352667a25987fa2ea
[ "Apache-2.0" ]
1
2019-04-08T21:58:07.000Z
2019-04-08T21:58:07.000Z
#!/usr/bin/env python3 # Simple and dumb script to send a message to the #podman IRC channel on frenode # Based on example from: https://pythonspot.com/building-an-irc-bot/ import os import time import random import errno import socket import sys class IRC: response_timeout = 10 # seconds irc = socket.sock...
34.363636
87
0.569959
2,794
0.821282
0
0
85
0.024985
0
0
811
0.238389
1be5b77cc2bbea8d65329992b137d52e24f4e227
441
py
Python
changes/api/build_coverage.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
443
2015-01-03T16:28:39.000Z
2021-04-26T16:39:46.000Z
changes/api/build_coverage.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
12
2015-07-30T19:07:16.000Z
2016-11-07T23:11:21.000Z
changes/api/build_coverage.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
47
2015-01-09T10:04:00.000Z
2020-11-18T17:58:19.000Z
from changes.api.base import APIView from changes.lib.coverage import get_coverage_by_build_id, merged_coverage_data from changes.models.build import Build class BuildTestCoverageAPIView(APIView): def get(self, build_id): build = Build.query.get(build_id) if build is None: return '',...
25.941176
79
0.730159
280
0.634921
0
0
0
0
0
0
2
0.004535
1be723fadb484c2875b98748f51d456625b23262
5,251
py
Python
topopt/mechanisms/problems.py
arnavbansal2764/topopt
74d8f17568a9d3349632e23840a9dc5b0d6c4d1f
[ "MIT" ]
53
2020-04-14T10:13:04.000Z
2022-02-24T03:16:57.000Z
topopt/mechanisms/problems.py
arnavbansal2764/topopt
74d8f17568a9d3349632e23840a9dc5b0d6c4d1f
[ "MIT" ]
5
2020-11-12T23:56:30.000Z
2021-09-30T19:24:06.000Z
topopt/mechanisms/problems.py
arnavbansal2764/topopt
74d8f17568a9d3349632e23840a9dc5b0d6c4d1f
[ "MIT" ]
15
2020-02-12T01:32:07.000Z
2022-02-20T02:44:55.000Z
"""Compliant mechanism synthesis problems using topology optimization.""" import numpy import scipy.sparse from ..problems import ElasticityProblem from .boundary_conditions import MechanismSynthesisBoundaryConditions from ..utils import deleterowcol class MechanismSynthesisProblem(ElasticityProblem): r""" ...
33.234177
79
0.591316
4,998
0.951275
0
0
433
0.082413
0
0
3,645
0.693757
1be7ab6f787e652d44d15533e2b5246954d6801d
932
py
Python
tests/test_parse_icao24bit.py
Collen-Roller/arp
08eaa2dda3adb1dbd600597a6d03603669c8e06d
[ "MIT" ]
2
2020-10-28T17:03:14.000Z
2021-01-27T10:44:33.000Z
tests/test_parse_icao24bit.py
Collen-Roller/arp
08eaa2dda3adb1dbd600597a6d03603669c8e06d
[ "MIT" ]
8
2020-12-08T16:42:43.000Z
2020-12-29T00:41:33.000Z
tests/test_parse_icao24bit.py
Collen-Roller/arp
08eaa2dda3adb1dbd600597a6d03603669c8e06d
[ "MIT" ]
1
2020-12-09T20:35:52.000Z
2020-12-09T20:35:52.000Z
import unittest from flydenity import Parser class TestParseIcao24Bit(unittest.TestCase): def setUp(self): self.parser = Parser() def test_parse_simple(self): match = self.parser.parse("3D2591", icao24bit=True) self.assertEqual(match, {"nation": "Germany", "description": "general", ...
35.846154
133
0.713519
834
0.89485
0
0
0
0
0
0
104
0.111588
1be82da5cbe879b6b36fe90dd23217980058a69e
465
py
Python
ever/util/_main.py
Bobholamovic/ever
f38060674a40ed53072b9d9be99cc656a830398f
[ "Apache-2.0" ]
22
2021-08-21T00:13:18.000Z
2022-03-28T19:38:10.000Z
ever/util/_main.py
Bobholamovic/ever
f38060674a40ed53072b9d9be99cc656a830398f
[ "Apache-2.0" ]
2
2021-09-01T06:28:38.000Z
2021-12-06T07:17:57.000Z
ever/util/_main.py
Bobholamovic/ever
f38060674a40ed53072b9d9be99cc656a830398f
[ "Apache-2.0" ]
6
2021-08-21T06:32:47.000Z
2022-02-10T07:41:29.000Z
import os def create_project(path): dirs = ['configs', 'module', 'data'] dirs = [os.path.join(path, d) for d in dirs] for d in dirs: os.makedirs(d) train_script = r""" import ever as er def train(trainer_name): trainer = er.trainer.get_trainer(trainer_name)() trainer.run() ...
19.375
56
0.597849
0
0
0
0
0
0
0
0
196
0.421505
1be88ec83f0700967a841e75b99ce2ed109f8dfc
473
py
Python
src/app/services/metrics_service.py
chrisbpoint/the-app
960307718c2cef7cdd86d348d380381aafaab10a
[ "MIT" ]
null
null
null
src/app/services/metrics_service.py
chrisbpoint/the-app
960307718c2cef7cdd86d348d380381aafaab10a
[ "MIT" ]
null
null
null
src/app/services/metrics_service.py
chrisbpoint/the-app
960307718c2cef7cdd86d348d380381aafaab10a
[ "MIT" ]
null
null
null
class MetricsService: def __init__(self, adc_data, metrics_data): self._adc_data = adc_data self._metrics_data = metrics_data @property def metrics_data(self): return self._metrics_data def update(self): self._metrics_data.is_new_data_available = False if self....
29.5625
59
0.69556
472
0.997886
0
0
71
0.150106
0
0
0
0
1bea69b9a810613a8cdcc7d4cd5f8e74e2b87b61
687
py
Python
resthelper/tests/test_build_url.py
rklonner/resthelper
c129a7ff3efb5447aeb9794142c4d640261d962d
[ "MIT" ]
null
null
null
resthelper/tests/test_build_url.py
rklonner/resthelper
c129a7ff3efb5447aeb9794142c4d640261d962d
[ "MIT" ]
null
null
null
resthelper/tests/test_build_url.py
rklonner/resthelper
c129a7ff3efb5447aeb9794142c4d640261d962d
[ "MIT" ]
null
null
null
import unittest from resthelper.utils import build_restful_url class TestBuildUrl(unittest.TestCase): def test_is_restful_https_url(self): url = build_restful_url('https://jenkins1.tttech.com', 'testuser', '/rest/1.0/request') self.assertEqual(url, 'htt...
32.714286
68
0.622999
572
0.832606
0
0
0
0
0
0
234
0.340611
1beb0ef06d9c6f7de745f499f7af1a9f705e4a88
929
py
Python
sendsms/backends/rq.py
this-is-the-bard/django-sendsms
8944b7d276f91b019ad6aa2e7e29324fa107fa01
[ "MIT" ]
null
null
null
sendsms/backends/rq.py
this-is-the-bard/django-sendsms
8944b7d276f91b019ad6aa2e7e29324fa107fa01
[ "MIT" ]
null
null
null
sendsms/backends/rq.py
this-is-the-bard/django-sendsms
8944b7d276f91b019ad6aa2e7e29324fa107fa01
[ "MIT" ]
null
null
null
""" python-rq based backend This backend will send your messages asynchronously with python-rq. Before using this backend, make sure that django-rq is installed and configured. Usage ----- In settings.py SENDSMS_BACKEND = 'sendsms.backends.rq.SmsBackend' RQ_SENDSMS_BACKEND = 'actual.backend.to.use.SmsBack...
22.119048
68
0.787944
111
0.119483
0
0
124
0.133477
0
0
374
0.402583
1bed3f78be12183f03bd98f78582fb16d8457339
2,435
py
Python
venv/Lib/site-packages/openpyxl/worksheet/errors.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
venv/Lib/site-packages/openpyxl/worksheet/errors.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
venv/Lib/site-packages/openpyxl/worksheet/errors.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#Autogenerated schema from openpyxl.descriptors.serialisable import Serialisable from openpyxl.descriptors import ( Typed, String, Bool, Sequence, ) from openpyxl.descriptors.excel import CellRange class Extension(Serialisable): tagname = "extension" uri = String(allow_none=True) def __...
25.904255
64
0.631622
2,208
0.906776
0
0
0
0
0
0
140
0.057495
1bee0a3b08699aa37d40800889d795e3cdf9fb23
2,918
py
Python
cwbot/kolextra/request/ItemDescriptionRequest.py
zeryl/RUcwbot
734716506066da599fcbc96d0a815a5e30f6e077
[ "BSD-3-Clause" ]
null
null
null
cwbot/kolextra/request/ItemDescriptionRequest.py
zeryl/RUcwbot
734716506066da599fcbc96d0a815a5e30f6e077
[ "BSD-3-Clause" ]
1
2019-04-15T02:48:19.000Z
2019-04-15T03:02:36.000Z
cwbot/kolextra/request/ItemDescriptionRequest.py
rlbond86/cwbot
2432a9c9d048b7600b53d5cb8f7ef608c6613258
[ "BSD-3-Clause" ]
null
null
null
from kol.request.GenericRequest import GenericRequest from kol.manager import PatternManager import re class ItemDescriptionRequest(GenericRequest): "Gets the description of an item and then parses various information from the response." _itemIdPattern = re.compile(r'(?i)<!--\s*itemid:\s*(\d+)\s*-->') def...
42.911765
100
0.675805
2,801
0.959904
0
0
0
0
0
0
744
0.254969
1beeb9bf708d482300442a926d31325bbdca0e33
619
py
Python
SmartMove/SmartConnector/cpapi/utils.py
themichaelasher/SmartMove
074c6e1a854fdfc21fb292e575a869719d56c5d5
[ "Apache-2.0" ]
24
2018-03-15T09:00:51.000Z
2022-03-17T05:19:47.000Z
SmartMove/SmartConnector/cpapi/utils.py
themichaelasher/SmartMove
074c6e1a854fdfc21fb292e575a869719d56c5d5
[ "Apache-2.0" ]
8
2020-01-20T15:44:42.000Z
2021-10-18T05:39:04.000Z
SmartMove/SmartConnector/cpapi/utils.py
themichaelasher/SmartMove
074c6e1a854fdfc21fb292e575a869719d56c5d5
[ "Apache-2.0" ]
22
2018-06-04T20:36:41.000Z
2022-03-16T17:10:44.000Z
import json import sys def compatible_loads(json_data): """ Function json.loads in python 3.0 - 3.5 can't handle bytes, so this function handle it. :param json_data: :return: unicode (str if it's python 3) """ if isinstance(json_data, bytes) and (3, 0) <= sys.version_info < (3, 6): ...
24.76
92
0.610662
0
0
0
0
0
0
0
0
241
0.389338
1bef48d1f47271bb3d6c33f78c3cf6b32220029d
3,578
py
Python
VokeScan.py
DaduVoke/VokeScan
a80c8e99ab74dd15a4f9bc3ba7e01abd81840f2c
[ "MIT" ]
2
2021-12-05T04:00:50.000Z
2022-03-24T17:53:26.000Z
VokeScan.py
DaduVoke/VokeScan
a80c8e99ab74dd15a4f9bc3ba7e01abd81840f2c
[ "MIT" ]
null
null
null
VokeScan.py
DaduVoke/VokeScan
a80c8e99ab74dd15a4f9bc3ba7e01abd81840f2c
[ "MIT" ]
null
null
null
import sys,time def sprint(str): for c in str + '\n': sys.stdout.write(c) sys.stdout.flush() time.sleep(3./90) from colorama import Fore, Back, Style sprint (Fore.RED + "გამარჯობა. tool-ი შექმინლია ლევან ყიფიანი-DaduVoke-ის მიერ @2021") import socket import _thread im...
18.162437
139
0.488262
3,213
0.734568
0
0
0
0
0
0
1,575
0.360082
1bef4c913e56949ae48100d1d528ebecb2bb01d8
53,296
py
Python
agent/src/clacks/agent/objects/object.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
2
2015-01-26T07:15:19.000Z
2015-11-09T13:42:11.000Z
agent/src/clacks/agent/objects/object.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
null
null
null
agent/src/clacks/agent/objects/object.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
null
null
null
# This file is part of the clacks framework. # # http://clacks-project.org # # Copyright: # (C) 2010-2012 GONICUS GmbH, Germany, http://www.gonicus.de # # License: # GPL-2: http://www.gnu.org/licenses/gpl-2.0.html # # See the LICENSE file in the project's top-level directory for details. """ The object base class. ...
38.287356
158
0.564001
50,723
0.951722
0
0
2,558
0.047996
0
0
16,055
0.301242
1bef7a1aa389a58d40ce648d1ed75a0579e889d3
8,752
py
Python
tests/test_benchmark.py
fossabot/BIRL
62e91523ac5797a13a7b78b9869ccfdf61cc60d8
[ "BSD-3-Clause" ]
null
null
null
tests/test_benchmark.py
fossabot/BIRL
62e91523ac5797a13a7b78b9869ccfdf61cc60d8
[ "BSD-3-Clause" ]
null
null
null
tests/test_benchmark.py
fossabot/BIRL
62e91523ac5797a13a7b78b9869ccfdf61cc60d8
[ "BSD-3-Clause" ]
null
null
null
""" Testing default benchmarks in single thred and parallel configuration Check whether it generates correct outputs and resulting values Copyright (C) 2017-2019 Jiri Borovec <jiri.borovec@fel.cvut.cz> """ import argparse import logging import os import shutil import sys import unittest try: # python 3 from uni...
38.725664
114
0.63654
7,546
0.862203
0
0
860
0.098263
0
0
1,969
0.224977
1bf02d45108f641ace7558443cc9e030c46ebd2f
65
py
Python
python/UdemyCourse/2022_Python_Bootcamp/basics/errors_exception_handling/__init__.py
pradyotprksh/development_learning
b6c5494196842f3c273965063815ad222a18b4da
[ "MIT" ]
9
2021-09-03T06:20:48.000Z
2022-03-19T12:43:30.000Z
python/UdemyCourse/2022_Python_Bootcamp/basics/errors_exception_handling/__init__.py
pradyotprksh/development_learning
b6c5494196842f3c273965063815ad222a18b4da
[ "MIT" ]
null
null
null
python/UdemyCourse/2022_Python_Bootcamp/basics/errors_exception_handling/__init__.py
pradyotprksh/development_learning
b6c5494196842f3c273965063815ad222a18b4da
[ "MIT" ]
6
2021-08-16T01:13:36.000Z
2022-03-19T12:44:10.000Z
from .errors_exception_handling import errors_exception_handling
32.5
64
0.923077
0
0
0
0
0
0
0
0
0
0
1bf0738223b67b02abba6e6aa0c92e93cd84b652
470
py
Python
mtstub.py
shimniok/rockblock
7a84d7da7df34c2dbe1a288fb6de24558eb4485f
[ "MIT" ]
1
2020-05-30T01:29:06.000Z
2020-05-30T01:29:06.000Z
mtstub.py
shimniok/rockblock
7a84d7da7df34c2dbe1a288fb6de24558eb4485f
[ "MIT" ]
1
2017-10-16T03:30:55.000Z
2018-01-14T19:05:43.000Z
mtstub.py
shimniok/rockblock
7a84d7da7df34c2dbe1a288fb6de24558eb4485f
[ "MIT" ]
1
2019-08-05T10:31:46.000Z
2019-08-05T10:31:46.000Z
#!/usr/bin/env python ################################################################################################## ## mtstub.py ## ## emulates rockblock api so I don't have to burn credits testing... ################################################################################################## import cgi #i...
24.736842
98
0.417021
0
0
0
0
0
0
0
0
387
0.823404
1bf2d4c209e500db17a5c6d33e7442b5b858b75b
343
py
Python
sum.py
PraghadeshManivannan/Built-in-Functions-Python
a3120641e03e7be8e1408dd467997ad6fdf04d87
[ "MIT" ]
null
null
null
sum.py
PraghadeshManivannan/Built-in-Functions-Python
a3120641e03e7be8e1408dd467997ad6fdf04d87
[ "MIT" ]
null
null
null
sum.py
PraghadeshManivannan/Built-in-Functions-Python
a3120641e03e7be8e1408dd467997ad6fdf04d87
[ "MIT" ]
null
null
null
#sum(iterable, start=0, /) #Return the sum of a 'start' value (default: 0) plus an iterable of numbers #When the iterable is empty, return the start value. '''This function is intended specifically for use with numeric values and may reject non-numeric types.''' a = [1,3,5,7,9,4,6,2,8] print(sum(a)) pr...
24.5
78
0.676385
0
0
0
0
0
0
0
0
263
0.766764
1bf4cd25d9e85b2b0cb4131798b2cd2ef33b36d7
10,926
py
Python
idaes/apps/matopt/materials/lattices/diamond_lattice.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
112
2019-02-11T23:16:36.000Z
2022-03-23T20:59:57.000Z
idaes/apps/matopt/materials/lattices/diamond_lattice.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
621
2019-03-01T14:44:12.000Z
2022-03-31T19:49:25.000Z
idaes/apps/matopt/materials/lattices/diamond_lattice.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
154
2019-02-01T23:46:33.000Z
2022-03-23T15:07:10.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
43.185771
114
0.507139
9,873
0.903624
0
0
1,930
0.176643
0
0
1,928
0.17646
1bf4f3ec8b611663d899f073f4f41ae66286507f
12,055
py
Python
elateridae_baits.py
AAFC-BICoE/elateridae-ortholog-baitset
8e17212a26539dfd79b414ffe8f243a906d32149
[ "MIT" ]
null
null
null
elateridae_baits.py
AAFC-BICoE/elateridae-ortholog-baitset
8e17212a26539dfd79b414ffe8f243a906d32149
[ "MIT" ]
null
null
null
elateridae_baits.py
AAFC-BICoE/elateridae-ortholog-baitset
8e17212a26539dfd79b414ffe8f243a906d32149
[ "MIT" ]
null
null
null
# coding: utf8 """ Ortholog Based Bait Design Script for creating Elateridae ortholog based baits suitable submission to myBaits Compares t_coffee AA alignment scores with nucleotide tranalignments to find conserved blocks Author Jackson Eyres jackson.eyres@canada.ca License: MIT Copywright: Government of Canada """ i...
36.41994
117
0.616093
0
0
0
0
0
0
0
0
4,435
0.367897
1bf638f00910b809a7d45e1aeabdb75e4e5aef9c
1,361
py
Python
poilab.py
octeufer/Annotate_Optimize
32d9cecc0159882d3f962990aba07168c4a023f5
[ "Apache-2.0" ]
null
null
null
poilab.py
octeufer/Annotate_Optimize
32d9cecc0159882d3f962990aba07168c4a023f5
[ "Apache-2.0" ]
null
null
null
poilab.py
octeufer/Annotate_Optimize
32d9cecc0159882d3f962990aba07168c4a023f5
[ "Apache-2.0" ]
null
null
null
import sys import numpy as np sys.path.append("d:/data/annooptimize") import triangle import time tinternal = list() def labstart(): points,tri = triangle.gentri("d:/data/annooptimize/Annodata/200600/poise.shp") plabels = triangle.dynamicSize(points) conflictg = triangle.conflictgraphdy(points,...
38.885714
87
0.722998
0
0
0
0
0
0
0
0
169
0.124173
1bf69ac1479d462fb413d5e64a7b2f979173894e
5,091
py
Python
t_core/tc_python/xrule.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
t_core/tc_python/xrule.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
t_core/tc_python/xrule.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from util.infinity import INFINITY from tc_python.arule import ARule from t_core.rollbacker import Rollbacker from t_core.resolver import Resolver class XRule(ARule): ''' Applies the transformation on one match with roll-back capability. ''' def __init__(self, LHS, RHS, max_iterations=...
37.433824
111
0.575329
4,924
0.967197
0
0
0
0
0
0
1,195
0.234728
1bf74b762d2902af1c8ee402ce83c52345c29025
5,266
py
Python
tests/commonsense/semantic_lexicon_knowledge/ai2_lexicon_test.py
keisks/propara
49fa8fe0481291df18b2c7b48e7ba1dafaad48e2
[ "Apache-2.0" ]
84
2018-06-02T02:00:53.000Z
2022-03-13T12:17:42.000Z
tests/commonsense/semantic_lexicon_knowledge/ai2_lexicon_test.py
keisks/propara
49fa8fe0481291df18b2c7b48e7ba1dafaad48e2
[ "Apache-2.0" ]
3
2018-10-31T00:28:31.000Z
2020-05-12T01:06:53.000Z
tests/commonsense/semantic_lexicon_knowledge/ai2_lexicon_test.py
keisks/propara
49fa8fe0481291df18b2c7b48e7ba1dafaad48e2
[ "Apache-2.0" ]
13
2018-09-14T20:37:51.000Z
2021-03-23T09:24:49.000Z
from unittest import TestCase from propara.commonsense.semantic_lexicon_knowledge.ai2_lexicon import AI2Lexicon, AI2LexiconPredicate, AI2LexiconArg, AI2LexiconIndications, \ AI2LexiconPattern class TestAI2Lexicon(TestCase): def setUp(self): self.lexicon_fp = "tests/fixtures/ie/TheSemanticLexicon-v3.0...
71.162162
143
0.681732
5,066
0.962021
0
0
0
0
0
0
1,629
0.309343
1bf7f1bc739f582663b9e33d97b9d4189cae0d04
473
py
Python
fitbit/__init__.py
erichilarysmithsr/python-fitbit
38cf916d0318aedc91b31d15431fa9c49a13d15f
[ "Apache-2.0" ]
null
null
null
fitbit/__init__.py
erichilarysmithsr/python-fitbit
38cf916d0318aedc91b31d15431fa9c49a13d15f
[ "Apache-2.0" ]
null
null
null
fitbit/__init__.py
erichilarysmithsr/python-fitbit
38cf916d0318aedc91b31d15431fa9c49a13d15f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Fitbit API Library ------------------ :copyright: 2012-2015 ORCAS. :license: BSD, see LICENSE for more details. """ from .api import Fitbit, FitbitOauthClient, FitbitOauth2Client # Meta. __title__ = 'fitbit' __author__ = 'Issac Kelly and ORCAS' __author_email__ = 'bpitcher@orcasinc.com' ...
18.192308
62
0.684989
0
0
0
0
0
0
0
0
276
0.58351
1bf7f576395a0ca86f448e1c60010a3d363f6af6
468
py
Python
bitcoinExchange/exchange/api/urls.py
pogginicolo98/start2impact_exchange
559c42cdeb2dec890d4b1145ed66a1a2f7c362cb
[ "MIT" ]
1
2021-09-08T16:39:07.000Z
2021-09-08T16:39:07.000Z
bitcoinExchange/exchange/api/urls.py
pogginicolo98/start2impact_exchange
559c42cdeb2dec890d4b1145ed66a1a2f7c362cb
[ "MIT" ]
null
null
null
bitcoinExchange/exchange/api/urls.py
pogginicolo98/start2impact_exchange
559c42cdeb2dec890d4b1145ed66a1a2f7c362cb
[ "MIT" ]
null
null
null
from django.urls import include, path from exchange.api.views import LatestOrdersListAPIView, OrderViewSet, ProfileAPIView from rest_framework.routers import DefaultRouter router = DefaultRouter() router.register(r'orders', OrderViewSet, basename='orders') urlpatterns = [ path('profile/', ProfileAPIView.as_view()...
36
84
0.767094
0
0
0
0
0
0
0
0
76
0.162393
1bf850828538bccd6c9bdc855d6c93aec2b25061
52
py
Python
python/testData/formatter/indentInGenerator_after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/formatter/indentInGenerator_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/formatter/indentInGenerator_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def dbl(): return ( (a, a) for a in [])
13
27
0.384615
0
0
0
0
0
0
0
0
0
0
1bf8ddafa4dc0ba6cd6a406c255c3270696943bb
848
py
Python
kevin/aggregate/process_html.py
toddoh/thisisallabout_backend
a0c7bad675bd3fff97f99c3e2b49f19a1fef7640
[ "MIT" ]
null
null
null
kevin/aggregate/process_html.py
toddoh/thisisallabout_backend
a0c7bad675bd3fff97f99c3e2b49f19a1fef7640
[ "MIT" ]
5
2021-03-18T22:18:49.000Z
2022-03-11T23:40:56.000Z
kevin/aggregate/process_html.py
toddoh/thisisallabout_backend
a0c7bad675bd3fff97f99c3e2b49f19a1fef7640
[ "MIT" ]
1
2019-10-16T19:29:12.000Z
2019-10-16T19:29:12.000Z
from bs4 import BeautifulSoup import requests import re def retrieveText(): print("Parsing text from online target") url = "https://www.whitehouse.gov/the-press-office/2017/10/16/remarks-president-trump-and-senate-majority-leader-mitch-mcconnell-joint" response = requests.get(url) soup = BeautifulSoup(...
38.545455
173
0.660377
0
0
0
0
0
0
0
0
309
0.364387
1bf9ff44f1b06f0e0c18c710168ee340dcb2a97f
869
py
Python
cfmacro/_resources/examples/lambda.py
gchiesa/cfmacro
9c546b7930a54a9b44efffdf87401726981e1b2a
[ "MIT" ]
null
null
null
cfmacro/_resources/examples/lambda.py
gchiesa/cfmacro
9c546b7930a54a9b44efffdf87401726981e1b2a
[ "MIT" ]
1
2019-07-30T08:49:20.000Z
2019-07-30T08:49:20.000Z
cfmacro/_resources/examples/lambda.py
gchiesa/cfmacro
9c546b7930a54a9b44efffdf87401726981e1b2a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from cfmacro.processors import SgProcessor from cfmacro.core.engine import ProcessorEngine from cfmacro.core.template import TemplateProcessor def lambda_handler(event, context): """ Implement a core handler for security groups ingress / egress :param event: :param context: ...
28.966667
99
0.674338
0
0
0
0
0
0
0
0
301
0.346375
1bfcaa846cbe80234230889e864b2dd049be6c62
8,038
py
Python
tf2qa/predict_long.py
mikelkl/TF2-QA
3bca786d26565335df45538714532d6d3c070a2b
[ "MIT" ]
17
2020-01-29T10:31:07.000Z
2022-01-10T03:36:00.000Z
tf2qa/predict_long.py
mikelkl/TF2-QA
3bca786d26565335df45538714532d6d3c070a2b
[ "MIT" ]
null
null
null
tf2qa/predict_long.py
mikelkl/TF2-QA
3bca786d26565335df45538714532d6d3c070a2b
[ "MIT" ]
4
2021-01-27T15:42:45.000Z
2021-12-12T20:41:51.000Z
import torch import argparse from roberta_modeling import RobertaJointForLong from transformers.modeling_roberta import RobertaConfig, RobertaModel from torch.utils.data import TensorDataset, SequentialSampler, DataLoader import utils from tqdm import tqdm import os import json import collections import pickle import p...
43.923497
122
0.686365
0
0
0
0
0
0
0
0
1,812
0.225429
1bfcf985c108d567ad3614fe9d2baeec4a87e0f1
9,385
py
Python
city-infrastructure-platform/settings.py
City-of-Helsinki/city-infrastructure-platform
c14513a9e54405412085f1047f91ec58b263eac0
[ "CC0-1.0" ]
2
2020-11-23T22:08:58.000Z
2022-03-02T13:13:20.000Z
city-infrastructure-platform/settings.py
City-of-Helsinki/city-infrastructure-platform
c14513a9e54405412085f1047f91ec58b263eac0
[ "CC0-1.0" ]
170
2019-12-31T13:37:04.000Z
2022-03-12T14:03:35.000Z
city-infrastructure-platform/settings.py
City-of-Helsinki/city-infrastructure-platform
c14513a9e54405412085f1047f91ec58b263eac0
[ "CC0-1.0" ]
3
2020-05-08T05:58:02.000Z
2022-03-15T16:07:25.000Z
""" Django settings for city-infrastructure-platform project. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os import environ import sentry_sdk from djan...
31.599327
90
0.716356
0
0
0
0
0
0
0
0
4,871
0.51902
1bfd7e8367e5e96a626394bb27f0b9266054e693
1,184
py
Python
test/tc/tet_tc_base_predict_multiclass.py
dumpmemory/Pytorch-NLU
864fb9acc7751fc51abd3d05d24b5a9a7eab7110
[ "Apache-2.0" ]
115
2021-08-29T04:28:40.000Z
2022-03-29T22:57:48.000Z
test/tc/tet_tc_base_predict_multiclass.py
dumpmemory/Pytorch-NLU
864fb9acc7751fc51abd3d05d24b5a9a7eab7110
[ "Apache-2.0" ]
2
2022-01-14T01:52:07.000Z
2022-03-04T11:40:10.000Z
test/tc/tet_tc_base_predict_multiclass.py
dumpmemory/Pytorch-NLU
864fb9acc7751fc51abd3d05d24b5a9a7eab7110
[ "Apache-2.0" ]
18
2021-09-23T06:41:10.000Z
2022-03-22T04:37:05.000Z
# !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2021/7/25 19:30 # @author : Mo # @function: predict model, 预测模块-多类分类 # 适配linux import platform import json import sys import os path_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")) path_sys = os.path.join(path_root, "pytorch_nlu", "pyto...
32
104
0.663007
0
0
0
0
0
0
0
0
1,053
0.635103
1bfe4bc4102702ea9b7f00d3aaa75d9c6a870a4d
5,645
py
Python
tests/test_create_spreadsheet_values.py
Tunous/StringSheet
3b0bd00db6ae780c523524b71774f6d3da44435f
[ "MIT" ]
14
2017-09-17T12:41:39.000Z
2020-12-15T07:42:55.000Z
tests/test_create_spreadsheet_values.py
Tunous/StringSheet
3b0bd00db6ae780c523524b71774f6d3da44435f
[ "MIT" ]
10
2017-09-12T20:06:47.000Z
2021-03-22T17:16:10.000Z
tests/test_create_spreadsheet_values.py
Tunous/StringSheet
3b0bd00db6ae780c523524b71774f6d3da44435f
[ "MIT" ]
1
2017-09-18T04:55:34.000Z
2017-09-18T04:55:34.000Z
import unittest from stringsheet.parser import create_spreadsheet_values from stringsheet.parser import create_language_sheet_values from stringsheet.parser import parse_resources class BaseTestCase(unittest.TestCase): def setUp(self): self.resources = parse_resources('test-resources/res') class Create...
46.270492
80
0.478654
5,403
0.95713
0
0
0
0
0
0
2,423
0.429229
1bff3ce09a664d524ed5b17fd85a06acad12da24
195
py
Python
libs/imgutils.py
EpicKiwi/projet-datascience
90b59fc674fc2146634d1c1681f9b65083a7aa91
[ "MIT" ]
null
null
null
libs/imgutils.py
EpicKiwi/projet-datascience
90b59fc674fc2146634d1c1681f9b65083a7aa91
[ "MIT" ]
null
null
null
libs/imgutils.py
EpicKiwi/projet-datascience
90b59fc674fc2146634d1c1681f9b65083a7aa91
[ "MIT" ]
2
2020-01-14T07:53:50.000Z
2020-01-14T12:24:35.000Z
import cv2 def img_path2array(path): return cv2.cvtColor(cv2.imread(path, 10), cv2.COLOR_BGR2RGB) def img_array2file(path, array): cv2.imwrite(path, cv2.cvtColor(array, cv2.COLOR_RGB2BGR))
27.857143
64
0.769231
0
0
0
0
0
0
0
0
0
0
1bff51099f471eb1158044ba33a024f093e0aed7
3,079
py
Python
bin/nsa_fail/nsa_fail.py
changhoonhahn/SEDflow
4561ecfe3a38cc4c25df263d971a87e8a83f88ce
[ "MIT" ]
18
2022-03-16T03:11:04.000Z
2022-03-30T16:01:42.000Z
bin/nsa_fail/nsa_fail.py
changhoonhahn/SEDflow
4561ecfe3a38cc4c25df263d971a87e8a83f88ce
[ "MIT" ]
null
null
null
bin/nsa_fail/nsa_fail.py
changhoonhahn/SEDflow
4561ecfe3a38cc4c25df263d971a87e8a83f88ce
[ "MIT" ]
null
null
null
import os, sys import numpy as np from sedflow import obs as Obs from sedflow import train as Train from provabgs import infer as Infer from provabgs import models as Models #################################################### # input #################################################### sample = sys.argv[1] itrain...
33.107527
92
0.528743
0
0
0
0
0
0
0
0
950
0.308542
400075fe46c49c54066ef8f12574919b2debe75a
2,709
py
Python
studio/gs_provider.py
NunoEdgarGFlowHub/studio
42b221892a81535842ff25cbbcc434d6422a19e5
[ "Apache-2.0" ]
null
null
null
studio/gs_provider.py
NunoEdgarGFlowHub/studio
42b221892a81535842ff25cbbcc434d6422a19e5
[ "Apache-2.0" ]
null
null
null
studio/gs_provider.py
NunoEdgarGFlowHub/studio
42b221892a81535842ff25cbbcc434d6422a19e5
[ "Apache-2.0" ]
null
null
null
import json import time import re from .keyvalue_provider import KeyValueProvider from .gcloud_artifact_store import GCloudArtifactStore from .util import timeit class GSProvider(KeyValueProvider): def __init__(self, config, blocking_auth=True, verbose=10, store=None): self.config = config self.b...
31.137931
79
0.51495
2,544
0.939092
0
0
1,608
0.593577
0
0
85
0.031377
40007ef606785b22cbc7c72b9274d6584b3f3fb5
46,830
py
Python
gslib/tests/test_ls.py
MikeJeffrey/gsutil
12f4258540ee83aee255ec1baf50e7e6faee10e2
[ "Apache-2.0" ]
null
null
null
gslib/tests/test_ls.py
MikeJeffrey/gsutil
12f4258540ee83aee255ec1baf50e7e6faee10e2
[ "Apache-2.0" ]
null
null
null
gslib/tests/test_ls.py
MikeJeffrey/gsutil
12f4258540ee83aee255ec1baf50e7e6faee10e2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. 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 require...
44.137606
103
0.688661
43,327
0.92498
0
0
23,738
0.506778
0
0
13,851
0.295702
4001312cef0d9f28268935ec40cf1f39b54d853e
131
py
Python
onadata/libs/utils/audit.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/libs/utils/audit.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/libs/utils/audit.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import HOME_ACCESSED = "home-accessed"
32.75
82
0.824427
0
0
0
0
0
0
0
0
30
0.229008
4001b461738a1a675ced54e42a87a9e7681bbab2
2,217
py
Python
places/management/commands/load_places.py
aevtikheev/dvmn-yandex-afisha
7112977d6615124412b7e7ffc4abdcaa969b4078
[ "MIT" ]
null
null
null
places/management/commands/load_places.py
aevtikheev/dvmn-yandex-afisha
7112977d6615124412b7e7ffc4abdcaa969b4078
[ "MIT" ]
null
null
null
places/management/commands/load_places.py
aevtikheev/dvmn-yandex-afisha
7112977d6615124412b7e7ffc4abdcaa969b4078
[ "MIT" ]
null
null
null
import logging from urllib.parse import unquote, urlparse from pathlib import PurePosixPath import requests from requests.exceptions import ReadTimeout, ConnectionError, HTTPError from django.core.management.base import BaseCommand from django.core.files.base import ContentFile from places.models import Place, Image ...
39.589286
90
0.59991
1,817
0.819576
0
0
0
0
0
0
361
0.162833
4002a9f7b6d3888657a9b000e3fb8c2cb6fac5dd
18,227
py
Python
gslib/utils/ls_helper.py
dickmao/gsutil
3b61bf0e6188f65f78c72c79ea3cb69e9c61da4b
[ "Apache-2.0" ]
1
2021-09-11T23:58:39.000Z
2021-09-11T23:58:39.000Z
gslib/utils/ls_helper.py
shinfan/gsutil
45b5fc020bed44c6342fe70ce8b081aa222d9213
[ "Apache-2.0" ]
null
null
null
gslib/utils/ls_helper.py
shinfan/gsutil
45b5fc020bed44c6342fe70ce8b081aa222d9213
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 Google Inc. 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 require...
36.971602
80
0.681242
8,159
0.447633
0
0
0
0
0
0
7,383
0.405058
4003c8b3ef448fd698e5fde8ffd4368a0004acc2
2,250
py
Python
app/config/cnMysql.py
itay-moav/rahl_commander
79b9bb7d16f4f9511820d0e0ffcbba6ee8e0e42b
[ "MIT" ]
1
2016-12-19T16:09:02.000Z
2016-12-19T16:09:02.000Z
app/config/cnMysql.py
itay-moav/rahl_commander
79b9bb7d16f4f9511820d0e0ffcbba6ee8e0e42b
[ "MIT" ]
19
2015-01-08T18:34:13.000Z
2018-02-26T14:51:22.000Z
app/config/cnMysql.py
itay-moav/rahl_commander
79b9bb7d16f4f9511820d0e0ffcbba6ee8e0e42b
[ "MIT" ]
null
null
null
''' Created on Dec 28, 2021 @author: Itay Abstracting the DB connection piece ''' import mysql.connector as My from app import logging as L from app import exceptions as exceptions class Connection(): ''' Abstracting the actions on a DB ''' def __init__(self, connection_config): self._debug_c...
34.615385
158
0.636444
2,066
0.918222
0
0
0
0
0
0
451
0.200444
4004bec8c10906a7cd716dc8ff33d14546f3a2fe
1,527
py
Python
src/detector/pre_process_test_data.py
DomGonthier/PecheFantome
d031a8fe5faa2ef35f2c1dbb8241281ffda22429
[ "MIT" ]
null
null
null
src/detector/pre_process_test_data.py
DomGonthier/PecheFantome
d031a8fe5faa2ef35f2c1dbb8241281ffda22429
[ "MIT" ]
8
2020-02-19T20:03:44.000Z
2022-02-03T19:27:24.000Z
src/detector/pre_process_test_data.py
DomGonthier/PecheFantome
d031a8fe5faa2ef35f2c1dbb8241281ffda22429
[ "MIT" ]
3
2020-02-19T19:02:19.000Z
2021-12-14T14:06:25.000Z
import os from tqdm import tqdm import cv2 import numpy as np #pre process test data: path = "raw_test_data/" list_width = [] list_height = [] list_image = [] def pre_process(): print("analyze images") for Files in tqdm(os.listdir(path)): if "jpg" in Files: #print(Files) img = ...
31.163265
115
0.59201
0
0
0
0
0
0
0
0
340
0.222659
4004f14ddc4bfb878b0872bfe2604774deea7bcf
4,934
py
Python
tensorflow/python/training/localhost_cluster_performance_test.py
connectthefuture/tensorflow
93812423fcd5878aa2c1d0b68dc0496980c8519d
[ "Apache-2.0" ]
101
2016-12-03T11:40:52.000Z
2017-12-23T02:02:03.000Z
tensorflow/python/training/localhost_cluster_performance_test.py
connectthefuture/tensorflow
93812423fcd5878aa2c1d0b68dc0496980c8519d
[ "Apache-2.0" ]
9
2016-12-14T03:27:46.000Z
2017-09-13T02:29:07.000Z
tensorflow/python/training/localhost_cluster_performance_test.py
connectthefuture/tensorflow
93812423fcd5878aa2c1d0b68dc0496980c8519d
[ "Apache-2.0" ]
47
2016-12-04T12:37:24.000Z
2018-01-14T18:13:07.000Z
# Copyright 2016 The TensorFlow 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 applica...
37.097744
80
0.694366
3,153
0.639035
0
0
0
0
0
0
1,534
0.310904
4007ccb371063c993bd22bb2370d18838e357a3f
3,218
py
Python
extractor/util.py
bcskda/vk-archive-deepercopy
3619b94eb3e0f5f67860022cdfb2074e457c0cd2
[ "Unlicense" ]
1
2020-04-24T09:24:31.000Z
2020-04-24T09:24:31.000Z
extractor/util.py
bcskda/vk-archive-deepercopy
3619b94eb3e0f5f67860022cdfb2074e457c0cd2
[ "Unlicense" ]
null
null
null
extractor/util.py
bcskda/vk-archive-deepercopy
3619b94eb3e0f5f67860022cdfb2074e457c0cd2
[ "Unlicense" ]
null
null
null
import functools import glob import itertools import logging import os from progressbar import progressbar import re import requests from typing import List class ValueSingleDispatch: def __init__(self): self._handlers = dict() def register(self, key): def decorator(fn: callable): ...
38.771084
134
0.657551
537
0.166874
462
0.143567
0
0
0
0
627
0.194842
400afc4da001a8c030925a65e03f44b9ed050772
1,637
py
Python
setup.py
gillins/pyshepseg
bfa8d157d610bf4f581a2500d0afb42d4f92d59b
[ "MIT" ]
5
2021-02-03T05:02:56.000Z
2022-01-31T07:55:20.000Z
setup.py
gillins/pyshepseg
bfa8d157d610bf4f581a2500d0afb42d4f92d59b
[ "MIT" ]
14
2021-02-03T04:18:48.000Z
2022-01-24T03:50:22.000Z
setup.py
gillins/pyshepseg
bfa8d157d610bf4f581a2500d0afb42d4f92d59b
[ "MIT" ]
13
2021-02-03T03:41:17.000Z
2022-01-24T04:21:23.000Z
#Copyright 2021 Neil Flood and Sam Gillingham. All rights reserved. # #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, cop...
46.771429
106
0.756261
0
0
0
0
0
0
0
0
1,377
0.841173
400c696eb52726be2cb58df8b7625711faea5a60
3,846
py
Python
src/utils.py
daochenzha/SimTSC
6e3200510e8e464049eab95db9540afdaf397f9c
[ "MIT" ]
23
2022-01-06T05:15:35.000Z
2022-03-28T08:08:14.000Z
src/utils.py
daochenzha/SimTSC
6e3200510e8e464049eab95db9540afdaf397f9c
[ "MIT" ]
2
2022-02-10T02:22:35.000Z
2022-03-28T16:45:17.000Z
src/utils.py
daochenzha/SimTSC
6e3200510e8e464049eab95db9540afdaf397f9c
[ "MIT" ]
5
2022-01-09T08:58:24.000Z
2022-01-19T09:52:43.000Z
import os import numpy as np import pandas as pd from sklearn.preprocessing import LabelEncoder def read_dataset_from_npy(path): """ Read dataset from .npy file """ data = np.load(path, allow_pickle=True) return data[()]['X'], data[()]['y'], data[()]['train_idx'], data[()]['test_idx'] def read_dataset...
29.584615
103
0.621945
171
0.044462
0
0
0
0
0
0
342
0.088924
400d71727dfe67b72a8bc6849bc10bc05b88d55b
17,458
py
Python
mpinterfaces/mat2d/friction/analysis.py
yw-fang/MPInterfaces
ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e
[ "MIT" ]
56
2015-06-23T03:03:18.000Z
2022-02-06T16:41:34.000Z
mpinterfaces/mat2d/friction/analysis.py
yw-fang/MPInterfaces
ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e
[ "MIT" ]
21
2015-09-03T17:50:18.000Z
2022-03-01T02:26:34.000Z
mpinterfaces/mat2d/friction/analysis.py
joshgabriel/MPInterfaces
2799ae161fa94c78842092fb24ef468607afa465
[ "MIT" ]
50
2015-09-17T19:09:36.000Z
2021-11-15T19:13:20.000Z
from __future__ import print_function, division, unicode_literals import os import warnings import numpy as np from scipy import interpolate import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt from pymatgen.io.vasp.outputs import Vasprun from pymatgen.core.structure import Structure from pymatg...
32.815789
94
0.592966
0
0
0
0
0
0
0
0
4,543
0.260225
400f0a8fc2e264478738eb502734b3f76efaa361
1,380
py
Python
aiopylimit/tests/test_aiopylimit.py
zealotous/aiopylimit
0f93a06e751b97959835187a05311deaffaed9d8
[ "Apache-2.0" ]
4
2019-05-09T12:39:14.000Z
2022-01-05T20:36:06.000Z
aiopylimit/tests/test_aiopylimit.py
zealotous/aiopylimit
0f93a06e751b97959835187a05311deaffaed9d8
[ "Apache-2.0" ]
null
null
null
aiopylimit/tests/test_aiopylimit.py
zealotous/aiopylimit
0f93a06e751b97959835187a05311deaffaed9d8
[ "Apache-2.0" ]
1
2022-01-05T19:56:49.000Z
2022-01-05T19:56:49.000Z
from aiopylimit import AIOPyRateLimit from aiopylimit import AIOPyRateLimitException import asynctest import asyncio class TestPyLimit(asynctest.TestCase): async def test_exception(self): limit = AIOPyRateLimit(10, 10) await self.assertAsyncRaises(AIOPyRateLimitException, ...
39.428571
72
0.642754
1,260
0.913043
0
0
0
0
1,205
0.873188
137
0.099275
4010464a9caf650b2a6706b3ea8adb7b2458ae14
5,772
py
Python
bookworm/platform_services/_win32/tesseract_download.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
18
2019-07-19T22:12:15.000Z
2020-08-26T17:45:19.000Z
bookworm/platform_services/_win32/tesseract_download.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
44
2019-07-15T10:17:00.000Z
2020-07-26T11:22:53.000Z
bookworm/platform_services/_win32/tesseract_download.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
9
2019-09-03T13:13:31.000Z
2020-08-25T13:55:27.000Z
# coding: utf-8 import sys import shutil import requests import wx from pathlib import Path from urllib.parse import urljoin, urlsplit from tempfile import TemporaryFile from zipfile import ZipFile from bookworm import typehints as t from bookworm import app from bookworm.http_tools import RemoteJsonResource, HttpReso...
26
139
0.573458
0
0
0
0
0
0
0
0
1,602
0.277547
4010dc640b95065e204f3d03308d81598d5d3d22
2,448
py
Python
python/plugins/processing/algs/grass7/ext/v_proj.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
python/plugins/processing/algs/grass7/ext/v_proj.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
python/plugins/processing/algs/grass7/ext/v_proj.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
# -*- coding: utf-8 -*- """ *************************************************************************** v_proj.py --------- Date : November 2017 Copyright : (C) 2017 by Médéric Ribreux Email : medspx at medspx dot fr ****************************************...
36
75
0.561683
0
0
0
0
0
0
0
0
1,534
0.625102
401141d52ec8be8928fc937b5ae582051fa62e45
1,919
py
Python
examples/diode/gmsh_diode2d.py
QuantumOfMoose/devsim
22f888119059a86bfc87ba9e7d9ac2cc90dadfb6
[ "Apache-2.0" ]
null
null
null
examples/diode/gmsh_diode2d.py
QuantumOfMoose/devsim
22f888119059a86bfc87ba9e7d9ac2cc90dadfb6
[ "Apache-2.0" ]
null
null
null
examples/diode/gmsh_diode2d.py
QuantumOfMoose/devsim
22f888119059a86bfc87ba9e7d9ac2cc90dadfb6
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Devsim LLC # # 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, s...
30.951613
93
0.755602
0
0
0
0
0
0
0
0
913
0.475769
40114e46f1a2c773c276da8bbeeb5529999aac68
470
py
Python
python/astro_imaging/config.py
taranu/astro_imaging
a5a712576bd12762dc69f826703e077a859d8ec0
[ "Apache-2.0" ]
null
null
null
python/astro_imaging/config.py
taranu/astro_imaging
a5a712576bd12762dc69f826703e077a859d8ec0
[ "Apache-2.0" ]
null
null
null
python/astro_imaging/config.py
taranu/astro_imaging
a5a712576bd12762dc69f826703e077a859d8ec0
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass import os path_base_default = os.getenv('ASTRO_IMAGING_DATA_PATH', default='./') @dataclass class Paths: base: str = path_base_default catalogs: str = None images: str = None def __post_init__(self): if self.catalogs is None: self.catalogs = os.p...
22.380952
70
0.66383
314
0.668085
0
0
325
0.691489
0
0
47
0.1
4011b94aee384459cb359f2d52855f8d32eb9b50
8,018
py
Python
AT.py
MTandHJ/roboc
43e5b2f9ea520b76221a7334d34ef4aaf9b3334b
[ "MIT" ]
8
2021-06-07T11:02:38.000Z
2022-03-17T11:30:28.000Z
AT.py
MTandHJ/roboc
43e5b2f9ea520b76221a7334d34ef4aaf9b3334b
[ "MIT" ]
null
null
null
AT.py
MTandHJ/roboc
43e5b2f9ea520b76221a7334d34ef4aaf9b3334b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from typing import Tuple import argparse from src.loadopts import * METHOD = "RobOC-AT" SAVE_FREQ = 5 PRINT_FREQ = 20 FMT = "{description}={scale}-{leverage}" \ "={learning_policy}-{optimizer}-{lr}" \ "={attack}-{epsilon:.4f}-{stepsize}-{steps}" \ "={batch_size}={trans...
33.974576
109
0.669494
0
0
0
0
0
0
0
0
1,619
0.201921
4012033dc557a9acee5693b0291d1d05afe295c0
680
py
Python
notesapp/api_v1/models.py
kampkelly/drf_template
44cda3fd4ebf0dc073a46205b392d5e783d9ceea
[ "MIT" ]
null
null
null
notesapp/api_v1/models.py
kampkelly/drf_template
44cda3fd4ebf0dc073a46205b392d5e783d9ceea
[ "MIT" ]
null
null
null
notesapp/api_v1/models.py
kampkelly/drf_template
44cda3fd4ebf0dc073a46205b392d5e783d9ceea
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class CommonFieldsMixin(models.Model): """Add created_at and updated_at fields.""" created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True, null=True) class Meta: """Define metadata options....
23.448276
80
0.733824
611
0.898529
0
0
0
0
0
0
99
0.145588
401276c3187f1d2baed3d5f8ab8ae0afba6d8f18
8,534
py
Python
src/main_TS_tsconv_jma.py
inoue0406/radarJMA
f8996c3fe201f97d414fc96c4abfc6f930738d47
[ "MIT" ]
6
2018-12-20T00:32:17.000Z
2021-05-24T08:29:08.000Z
src/main_TS_tsconv_jma.py
inoue0406/radarJMA
f8996c3fe201f97d414fc96c4abfc6f930738d47
[ "MIT" ]
null
null
null
src/main_TS_tsconv_jma.py
inoue0406/radarJMA
f8996c3fe201f97d414fc96c4abfc6f930738d47
[ "MIT" ]
4
2018-09-20T07:08:03.000Z
2020-06-07T21:43:31.000Z
# seq2seq LSTM (no-convolutional model) for time series prediction import numpy as np import torch import torchvision import torch.utils.data as data import torchvision.transforms as transforms import pandas as pd import h5py import os import sys import json import time import pdb from jma_timeseries_dataset import...
40.832536
99
0.522498
0
0
0
0
0
0
0
0
1,525
0.178697
40131096d61db66fe053946df5d75b8d65c51a7a
556
py
Python
bell2014/energy/prob_abs_s.py
dmaugis/intrinsic
e223fc8abceb2bf26f9a7752d72afe598ac4e1fd
[ "MIT" ]
134
2015-01-04T04:54:19.000Z
2021-10-16T07:39:02.000Z
bell2014/energy/prob_abs_s.py
dmaugis/intrinsic
e223fc8abceb2bf26f9a7752d72afe598ac4e1fd
[ "MIT" ]
10
2016-07-30T21:45:11.000Z
2021-03-03T14:12:50.000Z
bell2014/energy/prob_abs_s.py
dmaugis/intrinsic
e223fc8abceb2bf26f9a7752d72afe598ac4e1fd
[ "MIT" ]
34
2015-01-14T16:39:27.000Z
2021-10-31T11:29:50.000Z
import numpy as np class ProbAbsoluteShading(object): def __init__(self, params): self.params = params def cost(self, s_nz): if self.params.abs_shading_weight: if self.params.abs_shading_log: return self.params.abs_shading_weight * \ np.abs(np.l...
30.888889
85
0.591727
534
0.960432
0
0
0
0
0
0
0
0