hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9e254518e87ac47c64407d71337b694d702402e6
11,520
py
Python
tensorbay/healthcheck/catalog_check.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
tensorbay/healthcheck/catalog_check.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
tensorbay/healthcheck/catalog_check.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # """Method check_catalog. :meth:`check_catalog` checks the catalog of :class:`~tensorbay.dataset.dataset.Dataset` or :class:`~tensorbay.dataset.dataset.FusionDataset`, including subcatalog, categories and attributes. For :class:`~tensorba...
33.008596
100
0.707552
9e255f62c085b13256f1ea9809fa90d015e51907
5,361
py
Python
utilities/ACEdataImport.py
carsault/ace_pytorch
fbed64990001afdafe44ef7b0d5567f94c81a3c3
[ "MIT" ]
null
null
null
utilities/ACEdataImport.py
carsault/ace_pytorch
fbed64990001afdafe44ef7b0d5567f94c81a3c3
[ "MIT" ]
null
null
null
utilities/ACEdataImport.py
carsault/ace_pytorch
fbed64990001afdafe44ef7b0d5567f94c81a3c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jul 2 15:12:15 2019 @author: carsault """ #%% import numpy as np import torch import torch.utils.data as data_utils from torch.utils.data.dataset import * from torch.utils import data import pickle from sklearn.model_selection import train_test_split ...
32.889571
132
0.541877
9e256bcf29478f8b7d97d2efaf447dcde3945665
6,236
py
Python
program_files/csv_dedupe/csv_link.py
gs221/RegistryDataTool
f0efb2cc39c5be0d19ea73d4b51da5c2f8523f2f
[ "MIT" ]
2
2021-07-23T21:29:41.000Z
2021-10-17T13:40:08.000Z
program_files/csv_dedupe/csv_link.py
gs221/RegistryDataTool
f0efb2cc39c5be0d19ea73d4b51da5c2f8523f2f
[ "MIT" ]
null
null
null
program_files/csv_dedupe/csv_link.py
gs221/RegistryDataTool
f0efb2cc39c5be0d19ea73d4b51da5c2f8523f2f
[ "MIT" ]
null
null
null
""" CSV Link: Used by record_matched to identify duplicates accross two csv files. """ import os import dedupe import logging from io import open from . import csv_helpers from dedupe.core import BlockingError from program_files.helpers import error from program_files.settings import DATA_PATH, TEMP_PATH class Csv...
38.732919
142
0.644003
9e25776c39e03e2c999c8f2eaf1b11d02598979d
2,518
py
Python
tube/JIT.py
wolongyuan/lift-js
95b2012a3993e787f07d0ace3acafbd855bc7c45
[ "MIT" ]
null
null
null
tube/JIT.py
wolongyuan/lift-js
95b2012a3993e787f07d0ace3acafbd855bc7c45
[ "MIT" ]
null
null
null
tube/JIT.py
wolongyuan/lift-js
95b2012a3993e787f07d0ace3acafbd855bc7c45
[ "MIT" ]
null
null
null
import copy import pprint import Registers import Processor optimizable = ['typeof', 'la', 'getvar', 'findvar', 'getfield', 'findfield'] shortpaths = {} state = {'cur': -1, 'block': None, 'records': {}} def snapshot(pc): cur = state['cur'] if cur == -1: return records = state['records'] if p...
31.873418
91
0.509531
9e257975449bfaa69f4485780c3f49da05372499
1,031
py
Python
hackerrank_algorithm_path/Implementation/between-two-sets.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
hackerrank_algorithm_path/Implementation/between-two-sets.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
hackerrank_algorithm_path/Implementation/between-two-sets.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
# https://www.hackerrank.com/challenges/between-two-sets #!/bin/python3 import sys # finds gcd between two numbers def gcd(x, y): if(x == 0): return y return gcd(y % x, x) # finds lcm of a array of numbers def lcm(arr): ans = arr[0] for i in range(1, len(arr)): ans = ((arr[i] * an...
18.745455
56
0.559651
9e258023de484346587e36657105dba9ced603ec
21,593
py
Python
pypykatz/lsadecryptor/packages/msv/templates.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
1
2018-08-19T11:53:30.000Z
2018-08-19T11:53:30.000Z
pypykatz/lsadecryptor/packages/msv/templates.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
null
null
null
pypykatz/lsadecryptor/packages/msv/templates.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # import io import logging from minidump.win_datatypes import * from pypykatz.commons.common import * from pypykatz.commons.win_datatypes import * from pypykatz.lsadecryptor.package_commons import * class MsvTemplate(PackageTemplate): def __init__(self): su...
37.422877
110
0.755986
9e25985dc8b1bf6969f726ba5a4d95e901b2c8db
1,297
py
Python
scripts/execute_reverse_auction_v1.py
fb1n15/maddpg
ce0fd8028c09dc4f13c5c4ab015c9ad980469443
[ "MIT" ]
null
null
null
scripts/execute_reverse_auction_v1.py
fb1n15/maddpg
ce0fd8028c09dc4f13c5c4ab015c9ad980469443
[ "MIT" ]
null
null
null
scripts/execute_reverse_auction_v1.py
fb1n15/maddpg
ce0fd8028c09dc4f13c5c4ab015c9ad980469443
[ "MIT" ]
null
null
null
import pickle from multi_agent_sarsa import execute_multi_agent_sarsa seed = 0 auction_type = "first-price" # auction_type = "second-price" number_of_tasks = 100 num_actions = 10 valuation_coefficient_ratio = 10 resource_ratio = 3 high_value_proportion = 0.1 time_length = int(number_of_tasks / 10) num_trials = seed +...
35.054054
98
0.773323
9e25adb0ab348f6533a091f189e2f0582d76066c
3,440
py
Python
robosat_pink/models/albunet.py
HugoPopo/robosat.pink
daa6a0cd6dff68103b9bcc78a8c9a15d8912c42d
[ "MIT" ]
2
2019-05-16T03:45:20.000Z
2022-01-10T07:06:57.000Z
robosat_pink/models/albunet.py
CorentinLemaitre/robosat.pink
6ec29a4dd4c0cbf953e73818d7338ee68b2451d3
[ "MIT" ]
null
null
null
robosat_pink/models/albunet.py
CorentinLemaitre/robosat.pink
6ec29a4dd4c0cbf953e73818d7338ee68b2451d3
[ "MIT" ]
1
2021-09-28T19:47:51.000Z
2021-09-28T19:47:51.000Z
import torch import torch.nn as nn import torchvision.models class ConvRelu(nn.Module): """3x3 convolution followed by ReLU activation building block.""" def __init__(self, num_in, num_out): super().__init__() self.block = nn.Conv2d(num_in, num_out, kernel_size=3, padding=1, bias=False) ...
39.090909
113
0.64564
9e25bb48ee6aebd8ffa9d2c1dea04719cc9e8f96
16
py
Python
resources/__init__.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
resources/__init__.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
resources/__init__.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
1
2022-01-29T11:00:25.000Z
2022-01-29T11:00:25.000Z
#from . import *
16
16
0.625
9e25d0ce18077a905ab9d33ff24fac2479c3d4ac
2,742
py
Python
readthedocs/core/utils/extend.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
readthedocs/core/utils/extend.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
readthedocs/core/utils/extend.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
"""Patterns for extending Read the Docs""" import inspect from django.conf import settings from django.utils.module_loading import import_string def get_override_class(proxy_class, default_class=None): """Determine which class to use in an override class The `proxy_class` is the main class that is used, an...
36.078947
80
0.715536
9e25e8aa599e041301bfc17884d8536fea37aa1b
1,458
py
Python
app/core/tests/test_admin.py
justinwkUKM/django-app-api
a55231ac1d938ff3678ff06d47cfdbcc5301f371
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
justinwkUKM/django-app-api
a55231ac1d938ff3678ff06d47cfdbcc5301f371
[ "MIT" ]
4
2021-03-19T01:28:34.000Z
2021-09-22T18:49:45.000Z
app/core/tests/test_admin.py
justinwkUKM/django-app-api
a55231ac1d938ff3678ff06d47cfdbcc5301f371
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): '''setup the client for django admin and user''' self.client = Client() self.admin_user = get_user_model().objects.creat...
31.695652
68
0.637174
9e25e937534c57f8278257ba737098e44ec9cb63
7,158
py
Python
code/model/graphsage_maxpool.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
code/model/graphsage_maxpool.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
code/model/graphsage_maxpool.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from .base_model import BaseModel from .layers import * from .model_utils import * import time class GraphSageMaxPool(BaseModel): def __init__(self, hidden_num, hidden_dim, input_dim, output_dim, node_num, cate_num, learning_rate, epochs, weight...
33.138889
133
0.588433
9e260ddbeb38121f63f0455e6b5e1b89f3672a54
5,677
py
Python
appflow/views/login_github.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
13
2021-09-27T14:53:15.000Z
2022-02-15T05:48:01.000Z
appflow/views/login_github.py
dyvenia/timeflow
7852872f591fbdb88be19f7b41ebb226e805fbd9
[ "MIT" ]
62
2022-02-15T09:52:52.000Z
2022-03-31T12:50:13.000Z
appflow/views/login_github.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
4
2022-03-02T15:24:03.000Z
2022-03-30T10:59:38.000Z
from datetime import datetime import os from fastapi import APIRouter from fastapi.responses import HTMLResponse, RedirectResponse from fastapi import Request from requests_oauthlib import OAuth2Session from applications.timeflow.data.users import to_user router = APIRouter() # to be removed and replaced with docker...
32.073446
129
0.680113
9e261f655a3d34ac9ab599c95014c47e5966c7ac
1,779
py
Python
setup.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
setup.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
setup.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'Click>=7.0', "toolspy>=0.3.1", "Flask>=1.0.2", ...
26.552239
65
0.624508
9e2623a6c1915cd6eed46b7ad3daf51cb58f6548
543
py
Python
test/integrationtests/test_output_red.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
test/integrationtests/test_output_red.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
test/integrationtests/test_output_red.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
# -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from __future__ import unicode_literals from test_output import TestOutput class elm_fork_TestOutput(TestOutput): """ Tests model generated output versus known static output. """ __test__ = True @cl...
27.15
94
0.694291
9e266bac2c937864e7aea86de8953e3ffc13c96f
14,911
py
Python
chroma/event.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/event.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/event.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np # Photon history bits (see photon.h for source) NO_HIT = 0x1 << 0 BULK_ABSORB = 0x1 << 1 SURFACE_DETECT = 0x1 << 2 SURFACE_ABSORB = 0x1 << 3 RAYLEIGH_SCATTER = 0x1 << 4 REFLECT_DIFFUSE = 0x1 << 5 REFLECT_SPECULAR = 0x1 << 6 SURFACE_REEMIT = 0x1 << 7 SURFA...
32.699561
125
0.58031
9e2670926b39219b802c10ecf3f586d3f25d4153
979
py
Python
tests/conftest.py
M-Shadow/robotpy-wpilib-utilities
ba95d45041e00842afadaedd2f3cbf2a3ac9cdf7
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/conftest.py
M-Shadow/robotpy-wpilib-utilities
ba95d45041e00842afadaedd2f3cbf2a3ac9cdf7
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/conftest.py
M-Shadow/robotpy-wpilib-utilities
ba95d45041e00842afadaedd2f3cbf2a3ac9cdf7
[ "MIT", "BSD-3-Clause" ]
1
2019-04-14T14:47:41.000Z
2019-04-14T14:47:41.000Z
# TODO: remove this once WPILib is public, and use the real thing import sys import pytest from unittest.mock import MagicMock, call class FakeSensorBase: pass def pytest_runtest_setup(): import networktables networktables.NetworkTables.startTestMode() def pytest_runtest_teardown(): import netw...
18.471698
65
0.702758
9e2688758ac76a7ab1be97ec459d8b7907500121
8,292
py
Python
undistort.py
JiatianWu/tf-monodepth2
8f8ade9ac1268ec2c80db41386df47d26074eaf8
[ "MIT" ]
null
null
null
undistort.py
JiatianWu/tf-monodepth2
8f8ade9ac1268ec2c80db41386df47d26074eaf8
[ "MIT" ]
null
null
null
undistort.py
JiatianWu/tf-monodepth2
8f8ade9ac1268ec2c80db41386df47d26074eaf8
[ "MIT" ]
null
null
null
# Copyright 2019 Nod Labs import os import cv2 import numpy as np import pdb class Undistort(): def __init__(self, input_dir, output_dir): # # device 33-d cam 0 # scale = 0.5 # fx = 583.780379265 # fy = 581.614977546 # cx = 651.918915441 # cy = 393.602999407 ...
41.049505
169
0.57055
9e26b6a0e0b703ed8f466c2bf429511b8566621b
1,982
py
Python
ddrev/utils/_colorings.py
akari-doichan/Arcade-Dancing-System
668153fb1c54c0b82782c623fe3441e7c7fd0bb1
[ "MIT" ]
2
2021-07-08T05:14:43.000Z
2021-07-08T16:34:32.000Z
ddrev/utils/_colorings.py
akari-doichan/Arcade-Dancing-System
668153fb1c54c0b82782c623fe3441e7c7fd0bb1
[ "MIT" ]
5
2021-07-06T12:19:15.000Z
2021-07-12T02:05:17.000Z
ddrev/utils/_colorings.py
akari-doichan/Arcade-Dancing-System
668153fb1c54c0b82782c623fe3441e7c7fd0bb1
[ "MIT" ]
null
null
null
# coding: utf-8 from typing import Callable, Dict, Tuple SUPPORTED_COLORINGS: Dict[str, Tuple[str, str]] = { "ACCENT": ("\x1b[01m", "\x1b[01m"), "BLACK": ("\x1b[30m", "\x1b[40m"), "RED": ("\x1b[31m", "\x1b[41m"), "GREEN": ("\x1b[32m", "\x1b[42m"), "YELLOW": ("\x1b[33m", "\x1b[43m"), "BLUE": ("\...
38.115385
69
0.64329
9e26c7f3a599d30ea46a36ec0bbbe912621f35aa
285
py
Python
tql/algo_ml/features/ts/__init__.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/algo_ml/features/ts/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/algo_ml/features/ts/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python #-*- coding: utf-8 -*- # @Project : iWork. # @File : __init__.py # @Time : 2019-06-13 23:14 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description : from .DateTimeFeats import DateTimeFeats
23.75
40
0.57193
9e26ceb75bb1b3e89235d56c38cab873f098dca9
132
py
Python
cmsc_210/examples/lecture_02/cats.py
mazelife/cmsc-210
dbaa1604ef49bcfe5a70e09c17fbd243a8b80220
[ "MIT" ]
null
null
null
cmsc_210/examples/lecture_02/cats.py
mazelife/cmsc-210
dbaa1604ef49bcfe5a70e09c17fbd243a8b80220
[ "MIT" ]
5
2022-01-16T23:30:12.000Z
2022-01-30T23:03:21.000Z
cmsc_210/examples/lecture_02/cats.py
mazelife/cmsc-210
dbaa1604ef49bcfe5a70e09c17fbd243a8b80220
[ "MIT" ]
null
null
null
from animals import feed def change_litter(): print("Litter box is changed.") feed("Percy", 4, "Lil' Bits") change_litter()
13.2
35
0.681818
9e26dafeaa0f691aa71ea24c30b5e9eea8f9e835
1,347
py
Python
massif_to_csv.py
mpoquet/massif_to_csv
aeb5d21529c389819766bed86aeb8672ad47dcb5
[ "MIT" ]
null
null
null
massif_to_csv.py
mpoquet/massif_to_csv
aeb5d21529c389819766bed86aeb8672ad47dcb5
[ "MIT" ]
null
null
null
massif_to_csv.py
mpoquet/massif_to_csv
aeb5d21529c389819766bed86aeb8672ad47dcb5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 '''Convert a Valgrind Massif output file to a CSV file.''' import argparse import msparser def massif_to_csv(massif_filename): '''Convert a Massif file to a CSV string.''' data = msparser.parse_file(massif_filename) header = 'time,stack,heap,heap_extra' lines = [header] for...
31.325581
110
0.686711
9e26e1847bd8fe9f21e3f4f84d341f16edeedd1b
3,134
py
Python
mnist/run_eat_mnist.py
whxbergkamp/RobustDL_GAN
a622faf1c7d5e803bca3091dd035c616b5736bd7
[ "MIT" ]
22
2019-02-27T12:37:39.000Z
2021-04-19T04:08:36.000Z
mnist/run_eat_mnist.py
whxbergkamp/RobustDL_GAN
a622faf1c7d5e803bca3091dd035c616b5736bd7
[ "MIT" ]
3
2019-06-28T21:51:04.000Z
2021-03-19T08:08:50.000Z
mnist/run_eat_mnist.py
whxbergkamp/RobustDL_GAN
a622faf1c7d5e803bca3091dd035c616b5736bd7
[ "MIT" ]
4
2019-04-07T08:18:00.000Z
2021-12-22T00:45:19.000Z
# run ensemble adversarial training (EAT) using previously generated adversarial examples import numpy as np import argparse from adversarial_networks.train_eat_standard_mnist import train import pprint from adversarial_networks import models import tensorflow as tf from tensorflow.examples.tutorials.mnist import inp...
46.776119
130
0.744735
9e2740d88976d194a219271fa7d5339d89433b40
7,394
py
Python
api/base/utils.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
api/base/utils.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
api/base/utils.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import urllib import urlparse import furl from django.core.exceptions import ObjectDoesNotExist from modularodm import Q from rest_framework.exceptions import NotFound from rest_framework.reverse import reverse from api.base.authentication.drf import get_session_from_cookie from api.base.excep...
36.068293
113
0.684474
9e275c3f1284cf02c8f375e84cb4f86e30ca45d2
928
py
Python
app/app/urls.py
hertweckhr1/api_foodcycle
b19f1a17779b36e2a7356f2914be3d8ab15a7a00
[ "MIT" ]
null
null
null
app/app/urls.py
hertweckhr1/api_foodcycle
b19f1a17779b36e2a7356f2914be3d8ab15a7a00
[ "MIT" ]
null
null
null
app/app/urls.py
hertweckhr1/api_foodcycle
b19f1a17779b36e2a7356f2914be3d8ab15a7a00
[ "MIT" ]
null
null
null
"""app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
35.692308
77
0.709052
9e27943e1cd663c889e5aab73e6507c5c7e7b732
4,504
py
Python
leetcode_python/Two_Pointers/reorder-list.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Two_Pointers/reorder-list.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Two_Pointers/reorder-list.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 class Solution: # @param head, a ListNode # @return nothing def reorderList(self, head): if head is None: return head #find mid slow = head fast = head while fast.next and fast.next.next: slow = slow.next fast = fast.next.nex...
25.446328
75
0.508437
9e27b9209b59d9c529a37ca7cb6c05d99b20ea5d
20,782
py
Python
openpnm/models/physics/hydraulic_conductance.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
1
2021-07-20T13:56:57.000Z
2021-07-20T13:56:57.000Z
openpnm/models/physics/hydraulic_conductance.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
openpnm/models/physics/hydraulic_conductance.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
r""" .. autofunction:: openpnm.models.physics.hydraulic_conductance.hagen_poiseuille .. autofunction:: openpnm.models.physics.hydraulic_conductance.hagen_poiseuille_2D .. autofunction:: openpnm.models.physics.hydraulic_conductance.hagen_poiseuille_power_law """ import numpy as _np def hagen_poiseuille( target, ...
35.831034
89
0.656963
9e27bf34368a63db7bce1153cef73f19f968cf2d
289
py
Python
towers/dart_monkey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
towers/dart_monkey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
towers/dart_monkey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from tower import Tower from config import keybinds class DartMonkey(Tower): name = 'dart_monkey' range = 172 width = 65 height = 57 size = 'small' keybind = keybinds[name] aquatic = False def __init__(self, **kwargs): super().__init__(**kwargs)
18.0625
34
0.629758
9e27e1c60bf8fecfbcd3015db6f50ef8f2d49fa6
64
py
Python
pyre_/server/__init__.py
ChillFish8/Pyre
dc17ffd11e53c0dd75c88cba4e7ed6887e2e7f64
[ "MIT" ]
null
null
null
pyre_/server/__init__.py
ChillFish8/Pyre
dc17ffd11e53c0dd75c88cba4e7ed6887e2e7f64
[ "MIT" ]
null
null
null
pyre_/server/__init__.py
ChillFish8/Pyre
dc17ffd11e53c0dd75c88cba4e7ed6887e2e7f64
[ "MIT" ]
null
null
null
from .shared import PartialTask, FileDescriptorPartial, Server
21.333333
62
0.84375
9e280bd8f52a4535c67ec119cc4c29d045384cfc
7,004
py
Python
jnl/entries.py
rtimmons/jnl
858f660efbbee0d1e0b7e447df2ffc834f65e547
[ "OML" ]
null
null
null
jnl/entries.py
rtimmons/jnl
858f660efbbee0d1e0b7e447df2ffc834f65e547
[ "OML" ]
null
null
null
jnl/entries.py
rtimmons/jnl
858f660efbbee0d1e0b7e447df2ffc834f65e547
[ "OML" ]
null
null
null
import os import re from typing import Optional, Match, AnyStr, List, Generator, Pattern, TextIO, Tuple from colorama import Fore import jnl.system class Tag(object): TAG_RE = re.compile( r""" @ ( # group 1: tag name [^(\s]+ # anything other than ( ...
29.062241
90
0.508995
9e280f9b3685ca54863ccaa405cbf2815fbc89b8
1,212
py
Python
queue/migrations/0001_initial.py
gdi3d/move_my_files
235d99219ea6cf31b81bd00f2a0b6a562efe0144
[ "MIT" ]
1
2018-04-02T09:01:41.000Z
2018-04-02T09:01:41.000Z
queue/migrations/0001_initial.py
gdi3d/move_my_files
235d99219ea6cf31b81bd00f2a0b6a562efe0144
[ "MIT" ]
null
null
null
queue/migrations/0001_initial.py
gdi3d/move_my_files
235d99219ea6cf31b81bd00f2a0b6a562efe0144
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('main', '__first__'), ] operations = [ migrations.CreateModel( name='TaskPool', fields=[ ...
41.793103
183
0.584983
9e2847230dc074c993b0a8cd9b02fe858cf63afc
985
py
Python
phenotype/Func/Invoker.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/Func/Invoker.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/Func/Invoker.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
from phenotype.Func.Instance import __Instance__ from phenotype.Func.Partials import Reduction #1 GENERIC class Invoker: ''' ''' Instances = __Instance__() def __init__(self, cls): ''' ''' if cls not in self.Instances: self.Instances.add(cls) self._instance = self.Instan...
30.78125
98
0.62132
9e284ed41fabab4c80bba5ed66a8bf3ee70513b8
3,487
py
Python
pareto-optimal.py
wayne-wang-1119/divide-and-conquer-cs170-algorithm
691d0b2ee98d3509ee87a1daa1820943240f2367
[ "MIT" ]
1
2022-02-09T06:42:30.000Z
2022-02-09T06:42:30.000Z
pareto-optimal.py
wayne-wang-1119/divide-and-conquer-cs170-algorithm
691d0b2ee98d3509ee87a1daa1820943240f2367
[ "MIT" ]
null
null
null
pareto-optimal.py
wayne-wang-1119/divide-and-conquer-cs170-algorithm
691d0b2ee98d3509ee87a1daa1820943240f2367
[ "MIT" ]
null
null
null
from typing import List from sys import stderr def debug(*args): """ Use this function to print debug info without affecting the autograder """ print(*args, file=stderr) def split_by_x(points): """Partitions an array of points into two by x-coordinate. All points with the same x-coordinate ...
30.060345
78
0.512762
9e28510c6773f54d46d8a18da47f1d8f05923b5a
5,969
py
Python
Analytics/resources/Widgets/save_widgets.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
4
2018-11-21T14:42:18.000Z
2020-05-11T10:52:59.000Z
Analytics/resources/Widgets/save_widgets.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
60
2018-11-21T15:11:59.000Z
2019-12-02T10:46:44.000Z
Analytics/resources/Widgets/save_widgets.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
7
2018-11-21T14:42:44.000Z
2019-11-28T16:24:14.000Z
import logging import json from http import HTTPStatus from flask_jwt_extended import get_jwt_identity from flask_jwt_extended import jwt_required from flask_restful import Resource, inputs from flask_restful import abort from flask_restful import reqparse from sqlalchemy import exc from db import db from models.user...
40.060403
92
0.544312
9e2858eec59686bb39266ae089c556f3fd892700
9,249
py
Python
Pycounter converter.py
ChrisHergert/PyCounter-Conversion
de4828209666a920455088f9e9130bc230b7c016
[ "BSD-3-Clause" ]
null
null
null
Pycounter converter.py
ChrisHergert/PyCounter-Conversion
de4828209666a920455088f9e9130bc230b7c016
[ "BSD-3-Clause" ]
null
null
null
Pycounter converter.py
ChrisHergert/PyCounter-Conversion
de4828209666a920455088f9e9130bc230b7c016
[ "BSD-3-Clause" ]
null
null
null
import pycounter.sushi import csv import pandas as pd import datetime import calendar as cal import os def tsv_name_temp(rep, num): return rep+str(num)+'.tsv' ####################################################################################################################################################...
61.251656
158
0.611309
9e286cb9155f93eb81666c7c7c4ce97e5f0eb1f3
1,765
py
Python
etl/logo_detection_model.py
Ayazdi/MNIST_ANN
1419edcee275503030b418f0a64e094edffaa1b0
[ "MIT" ]
8
2020-05-21T18:57:57.000Z
2021-05-18T22:27:52.000Z
etl/logo_detection_model.py
Ayazdi/MNIST_ANN
1419edcee275503030b418f0a64e094edffaa1b0
[ "MIT" ]
5
2020-05-18T13:56:12.000Z
2020-05-18T15:31:33.000Z
etl/logo_detection_model.py
Ayazdi/MNIST_ANN
1419edcee275503030b418f0a64e094edffaa1b0
[ "MIT" ]
1
2020-08-16T16:09:16.000Z
2020-08-16T16:09:16.000Z
import sys sys.path.append("../") import numpy as np from tensorflow.keras.models import model_from_json from tensorflow.keras.applications.inception_v3 import InceptionV3 from tensorflow.keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img import logging from PIL import Im...
25.955882
106
0.643059
9e287d37708ef00d2bf515fda1776931c697bb66
6,864
py
Python
contrib/performance/benchlib.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
contrib/performance/benchlib.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
contrib/performance/benchlib.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2010-2015 Apple 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 required by applicab...
31.486239
111
0.593969
9e2884516127eacfe5ddfb239b2e5d20f1ec4fa6
6,790
py
Python
rally/plugins/openstack/context/sahara/sahara_cluster.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/sahara/sahara_cluster.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/sahara/sahara_cluster.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# Copyright 2014: Mirantis 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 required by applicable law or ...
36.702703
78
0.535641
9e2884bcbbda172115dab07510206290d65a4915
566
py
Python
toolbox/caching.py
keunhong/toolbox
e8d1dadab4d9ccf8d78fe86ea933819ac6a07fca
[ "MIT" ]
null
null
null
toolbox/caching.py
keunhong/toolbox
e8d1dadab4d9ccf8d78fe86ea933819ac6a07fca
[ "MIT" ]
null
null
null
toolbox/caching.py
keunhong/toolbox
e8d1dadab4d9ccf8d78fe86ea933819ac6a07fca
[ "MIT" ]
null
null
null
import os from pathlib import Path import contextlib toolbox_home = Path(os.path.expanduser(os.getenv('K_TOOLBOX_HOME', '~/.toolbox'))) def exists(name): return get_path(name).exists() def get_path(name): ask_make_path() return toolbox_home / name def ask_make_path(): if not toolbox_home.exists(...
20.214286
82
0.676678
9e28a17e1e20beca5074ed088fde4956915b8121
3,912
py
Python
alipay/aop/api/request/KoubeiMallEventSendRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/KoubeiMallEventSendRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/KoubeiMallEventSendRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiMallEventSendModel import KoubeiMallEventSendModel class KoubeiMallEventSendRequest(object): def __init__(self, biz_model...
26.97931
148
0.639571
9e28b8d8b403075b79fa94902cd6440b2b1407f4
17,842
py
Python
cartridge/shop/views.py
AlexHill/cartridge
cb8599d43600442a223a484dc75726bfbbec68a0
[ "BSD-2-Clause" ]
null
null
null
cartridge/shop/views.py
AlexHill/cartridge
cb8599d43600442a223a484dc75726bfbbec68a0
[ "BSD-2-Clause" ]
null
null
null
cartridge/shop/views.py
AlexHill/cartridge
cb8599d43600442a223a484dc75726bfbbec68a0
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals from future.builtins import int, str from json import dumps from django.contrib.auth.decorators import login_required from django.contrib.messages import info from django.core.urlresolvers import reverse from django.db.models import Sum from django.http import Http404, HttpResp...
42.480952
78
0.622744
9e28d8f6ad2e868e6ee7303b298a158a3a24538d
84
py
Python
lleaves/compiler/codegen/__init__.py
jonashaag/lleaves
a9181059090953aecf20b6ef13b5e5c823e9d4d6
[ "MIT" ]
null
null
null
lleaves/compiler/codegen/__init__.py
jonashaag/lleaves
a9181059090953aecf20b6ef13b5e5c823e9d4d6
[ "MIT" ]
null
null
null
lleaves/compiler/codegen/__init__.py
jonashaag/lleaves
a9181059090953aecf20b6ef13b5e5c823e9d4d6
[ "MIT" ]
null
null
null
from lleaves.compiler.codegen.codegen import ir_from_ast __all__ = ["ir_from_ast"]
21
56
0.809524
9e28e991ac24e4a6c180734ebed20dd49b76b700
101,112
py
Python
pyogg/flac.py
mattgwwalker/PyOgg
7da10d799c6a5d36570743724921530964073ddb
[ "BSD-3-Clause", "Unlicense" ]
null
null
null
pyogg/flac.py
mattgwwalker/PyOgg
7da10d799c6a5d36570743724921530964073ddb
[ "BSD-3-Clause", "Unlicense" ]
null
null
null
pyogg/flac.py
mattgwwalker/PyOgg
7da10d799c6a5d36570743724921530964073ddb
[ "BSD-3-Clause", "Unlicense" ]
null
null
null
############################################################ # Flac license: # ############################################################ """ Copyright (C) 2000-2009 Josh Coalson Copyright (C) 2011-2016 Xiph.Org Foundation Redistribution and use in source and binary forms...
50.080238
275
0.785832
9e291bb85babf3128c5b0579204881993b7ba761
1,002
py
Python
tests/test_xtb_runner.py
hkneiding/gaxtb
11fa491b27c0b30e4ac0edd34dce608dc0c303a1
[ "MIT" ]
null
null
null
tests/test_xtb_runner.py
hkneiding/gaxtb
11fa491b27c0b30e4ac0edd34dce608dc0c303a1
[ "MIT" ]
null
null
null
tests/test_xtb_runner.py
hkneiding/gaxtb
11fa491b27c0b30e4ac0edd34dce608dc0c303a1
[ "MIT" ]
null
null
null
import unittest from parameterized import parameterized from .utils.helpers import assertDeepAlmostEqual from gaxtb.xtb_runner import XtbRunner from gaxtb.xtb_output_parser import XtbOutputParser from gaxtb.molecule_handler import MoleculeHandler class TestXtbRunner(unittest.TestCase): @parameterized.expand([ ...
32.322581
157
0.706587
9e292125f77c41f6692a254fc2628a948229dd97
9,565
py
Python
devito/yask/transformer.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
2
2019-04-05T20:52:23.000Z
2019-11-03T21:36:53.000Z
devito/yask/transformer.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
9
2019-06-11T20:54:19.000Z
2020-04-06T17:56:10.000Z
devito/yask/transformer.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
2
2018-11-15T12:03:48.000Z
2018-11-15T13:16:19.000Z
from devito.ir.iet import FindNodes, Expression from devito.ir.support import Backward from devito.logger import yask_warning as warning from devito.symbolics import IntDiv from devito.yask import nfac __all__ = ['yaskit', 'make_yask_ast'] def yaskit(trees, yc_soln): """ Populate a YASK compiler solution wi...
43.477273
90
0.589127
9e29348347e39a0d9e064e630eabb4df7e240afb
760
py
Python
tests/integration/client/syndic.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2016-09-03T06:26:42.000Z
2019-06-30T13:04:53.000Z
tests/integration/client/syndic.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
tests/integration/client/syndic.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class TestSyndic(integration.SyndicCase): ''' Validate the syndic interface by testing the test module ''' def test_ping(self): ...
20.540541
60
0.530263
9e293db8358889cc1052c0dfb141899eca017eaa
1,781
py
Python
slackchatbakery/views/mixins/statics/publishing.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
null
null
null
slackchatbakery/views/mixins/statics/publishing.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
9
2018-10-19T20:12:23.000Z
2021-06-08T19:30:27.000Z
slackchatbakery/views/mixins/statics/publishing.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
null
null
null
import os from django.conf import settings as project_settings from django.test.client import RequestFactory from django.utils.text import slugify from rest_framework.renderers import JSONRenderer from slackchatbakery.utils.aws import defaults, get_bucket from slackchatbakery.conf import settings class StaticsPublis...
32.381818
69
0.630545
9e293de98bfbd5fd09eea26437bcaaaba123c11e
2,450
py
Python
dnacentersdk/models/validators/v2_1_2/jsd_62b05b2c40a9b216.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_62b05b2c40a9b216.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_62b05b2c40a9b216.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Version Template data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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, includ...
32.666667
78
0.623265
9e2940d856b0025222ba646dcde3817d93eee5d6
4,029
py
Python
tests/e2e/bitforex.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
90
2020-04-09T18:34:49.000Z
2022-03-09T14:29:32.000Z
tests/e2e/bitforex.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
44
2020-04-03T17:02:20.000Z
2022-01-29T14:51:51.000Z
tests/e2e/bitforex.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
28
2020-04-25T21:34:53.000Z
2022-03-31T07:20:07.000Z
import unittest import os import logging from cryptoxlib.CryptoXLib import CryptoXLib from cryptoxlib.clients.bitforex import enums from cryptoxlib.Pair import Pair from cryptoxlib.clients.bitforex.exceptions import BitforexRestException from CryptoXLibTest import CryptoXLibTest api_key = os.environ['BITFOREXAPIKEY'...
40.29
135
0.694217
9e295c90879ef732e1ba9d52fb7fbbeb89dc2a8e
548
py
Python
large_app/python/user_module/models/mixins.py
sahilGupta89/large_flask_app
e1ab54431bb935c02186f586d9246b741d9f2d33
[ "MIT" ]
null
null
null
large_app/python/user_module/models/mixins.py
sahilGupta89/large_flask_app
e1ab54431bb935c02186f586d9246b741d9f2d33
[ "MIT" ]
null
null
null
large_app/python/user_module/models/mixins.py
sahilGupta89/large_flask_app
e1ab54431bb935c02186f586d9246b741d9f2d33
[ "MIT" ]
null
null
null
from sqlalchemy import Column, DateTime, func, Integer class IdMixin(object): id = Column(Integer, primary_key=True) class LifeCycleMixin(object): created = Column( DateTime, default=func.now(), server_default=func.now(), nullable=False ) updated = Column( DateTime, default=f...
22.833333
79
0.664234
9e298c1defebc6df0ec51d3e783cacd0cc90fb67
5,086
py
Python
chainer/functions/batch_normalization.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
chainer/functions/batch_normalization.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
chainer/functions/batch_normalization.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
import numpy from chainer import cuda from chainer import function from chainer.utils import type_check class BatchNormalization(function.Function): """Batch normalization on outputs of linear or convolution functions. Args: size (int or tuple of ints): Size (or shape) of channel dimens...
33.682119
79
0.590641
9e298d408c172e0e8a988d94131032263437a03a
5,123
py
Python
docs/conf.py
shantanuchhabra/coremltools
4a0d816a0013aba530c067b3a2b2023061d2f620
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
shantanuchhabra/coremltools
4a0d816a0013aba530c067b3a2b2023061d2f620
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
shantanuchhabra/coremltools
4a0d816a0013aba530c067b3a2b2023061d2f620
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Core ML documentation build configuration file import coremltools import sys import os for m in [ 'converters', 'utils', ]: module_name = 'coremltools.' + m sys.modules[module_name] = eval(module_name) sys.path.insert(0, os.path.abspath('.')) # -- G...
28.943503
92
0.661526
9e298fa54b284d32138773a298c6d54b75c18814
349
py
Python
services/users/urls.py
Bellboy-Capstone/Services
36888d90fe7ba4b2afc2ea8ad4839a8e13c7f98b
[ "MIT" ]
1
2020-11-11T20:20:42.000Z
2020-11-11T20:20:42.000Z
services/users/urls.py
RyanFleck/AuxilliaryWebsiteServices
bcaa6689e567fdf9f20f7f4ea84043aa2b6f1378
[ "MIT" ]
17
2020-11-09T19:04:04.000Z
2022-03-01T18:08:42.000Z
services/users/urls.py
RyanFleck/AuxilliaryWebsiteServices
bcaa6689e567fdf9f20f7f4ea84043aa2b6f1378
[ "MIT" ]
2
2020-10-04T23:57:00.000Z
2020-10-10T03:14:18.000Z
from django.urls import path from services.users.views import user_detail_view, user_redirect_view, user_update_view app_name = "users" urlpatterns = [ path("~redirect/", view=user_redirect_view, name="redirect"), path("~update/", view=user_update_view, name="update"), path("<str:username>/", view=user_de...
31.727273
87
0.73639
9e2a03b6077969797ec65a9ac7f0371734e70377
11,782
py
Python
robot-server/tests/service/protocol/test_analyze.py
soroushjp/opentrons
f7e82834417630d5e6c90ed452de35d80eb1be8a
[ "Apache-2.0" ]
null
null
null
robot-server/tests/service/protocol/test_analyze.py
soroushjp/opentrons
f7e82834417630d5e6c90ed452de35d80eb1be8a
[ "Apache-2.0" ]
null
null
null
robot-server/tests/service/protocol/test_analyze.py
soroushjp/opentrons
f7e82834417630d5e6c90ed452de35d80eb1be8a
[ "Apache-2.0" ]
null
null
null
from json import JSONDecodeError from pathlib import Path from mock import patch, MagicMock import pytest from opentrons.protocols.api_support.types import APIVersion from opentrons.protocols.execution.errors import ExceptionInProtocolError from opentrons.protocols.types import PythonProtocol, JsonProtocol from robot...
31.502674
77
0.670175
9e2af28b5c3275f62cdcfeba5af02829146e1207
3,462
py
Python
lib/rucio/client/lifetimeclient.py
jamesp-epcc/rucio
d36d346ea569e89ea413d4241bb69189dfeee7db
[ "Apache-2.0" ]
187
2017-11-07T10:19:34.000Z
2022-03-13T11:59:40.000Z
lib/rucio/client/lifetimeclient.py
jamesp-epcc/rucio
d36d346ea569e89ea413d4241bb69189dfeee7db
[ "Apache-2.0" ]
2,592
2017-10-25T06:57:46.000Z
2022-03-31T22:53:51.000Z
lib/rucio/client/lifetimeclient.py
jamesp-epcc/rucio
d36d346ea569e89ea413d4241bb69189dfeee7db
[ "Apache-2.0" ]
322
2017-10-10T06:36:36.000Z
2022-03-31T17:13:23.000Z
# Copyright 2017-2018 CERN for the benefit of the ATLAS collaboration. # # 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...
40.255814
162
0.684864
9e2b02d3f6a3abb9a0e29141768a98a9174fa298
1,248
py
Python
main/gp_reg.py
rsluo/ALPaCA
16a4c05a0144fb531192b7c7bd3c15dcd5d2f023
[ "MIT" ]
34
2018-07-28T21:31:36.000Z
2022-03-14T06:34:58.000Z
main/gp_reg.py
randomblbl/ALPaCA
d06391a1bf11beda573078a6a1d62418aac367c4
[ "MIT" ]
3
2019-03-28T16:45:18.000Z
2019-08-01T14:10:48.000Z
main/gp_reg.py
randomblbl/ALPaCA
d06391a1bf11beda573078a6a1d62418aac367c4
[ "MIT" ]
10
2018-10-02T00:40:40.000Z
2021-06-29T18:31:09.000Z
import numpy as np from sklearn.gaussian_process import GaussianProcessRegressor from sklearn.gaussian_process.kernels import RBF, ExpSineSquared, ConstantKernel, WhiteKernel class GPReg: def __init__(self): self.kernel = 2**2*RBF(0.5, (1e-1, 1e0)) + WhiteKernel(0.01,(0.09999,0.010001)) #self.kerne...
36.705882
93
0.516026
9e2b0abc9d9585e4e5006efea79bd82c6d02b84a
9,204
py
Python
alipay/aop/api/domain/AlipayEbppMerchantExternalbillSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayEbppMerchantExternalbillSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayEbppMerchantExternalbillSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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.constant.ParamConstants import * class AlipayEbppMerchantExternalbillSyncModel(object): def __init__(self): self._alipay_bill_id = None self._bill_amount = None self._bill_date_desc = None self._bill_da...
32.754448
81
0.599087
9e2b186244b0d447b10a0c927468edb5157e4667
10,474
py
Python
scripts/02-analysesample.py
OlafHaag/NeuroPsyResearchAnalysis
83d750310ee2467979d503d2fb4b6011ead9e9fc
[ "MIT" ]
null
null
null
scripts/02-analysesample.py
OlafHaag/NeuroPsyResearchAnalysis
83d750310ee2467979d503d2fb4b6011ead9e9fc
[ "MIT" ]
null
null
null
scripts/02-analysesample.py
OlafHaag/NeuroPsyResearchAnalysis
83d750310ee2467979d503d2fb4b6011ead9e9fc
[ "MIT" ]
null
null
null
# notebook source: 02-oh-analyze_sample.ipynb # %% [markdown] # # Analyze Sample # We'll detect outliers and remove them. Participants who didn't perform the tasks sufficiently well will be excluded # from further analyses. It's important to note, however, that for these individuals the task was either to difficult ...
42.75102
120
0.706989
9e2b310447ed93534bfb357c33f1a4c99a89fb0b
469
py
Python
reachapp/migrations/0003_reachtrackerlog_code.py
nityaoberoi/reach
78444afdf49baad702ebb09f3e72379763cbc709
[ "MIT" ]
null
null
null
reachapp/migrations/0003_reachtrackerlog_code.py
nityaoberoi/reach
78444afdf49baad702ebb09f3e72379763cbc709
[ "MIT" ]
3
2015-04-29T22:56:50.000Z
2015-06-15T17:56:54.000Z
reachapp/migrations/0003_reachtrackerlog_code.py
joedoublej/reach
78444afdf49baad702ebb09f3e72379763cbc709
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('reachapp', '0002_auto_20150125_0410'), ] operations = [ migrations.AddField( model_name='reachtrackerlog', ...
22.333333
75
0.61194
9e2b32765d33ac86b13b50392eed3eba8ff7a27c
1,736
py
Python
venv/Lib/site-packages/tests.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
import os import sys import unittest import re import glob import config if sys.version_info >=(3,3 ): from io import StringIO else: import io class IbmDbTest(unittest.TestCase): slash = '/' # Currently, this function serves no purpose. # However, this function has to be defined if the # unitt...
29.931034
105
0.658986
9e2b332202e12abbbfcd6c6c288c2501859e1bd5
10,083
py
Python
scattertext/test/test_scatterChart.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
1
2020-08-11T03:27:28.000Z
2020-08-11T03:27:28.000Z
scattertext/test/test_scatterChart.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
null
null
null
scattertext/test/test_scatterChart.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
1
2020-01-08T00:25:31.000Z
2020-01-08T00:25:31.000Z
from unittest import TestCase import numpy as np from scattertext import LogOddsRatioUninformativeDirichletPrior from scattertext import ScatterChart from scattertext.ScatterChart import CoordinatesNotRightException, TermDocMatrixHasNoMetadataException from scattertext.test.test_semioticSquare import get_test_corpus ...
43.83913
116
0.641575
9e2b44c380c3e9866417a6747243fa55436da0f7
5,472
py
Python
tests/test_delete.py
benhoyt/cdnupload
41a46108506a0a7811e6d664e79c16bb0befa124
[ "MIT" ]
39
2017-06-10T08:57:24.000Z
2022-02-03T09:41:37.000Z
tests/test_delete.py
benhoyt/cdnupload
41a46108506a0a7811e6d664e79c16bb0befa124
[ "MIT" ]
null
null
null
tests/test_delete.py
benhoyt/cdnupload
41a46108506a0a7811e6d664e79c16bb0befa124
[ "MIT" ]
2
2021-04-12T19:36:40.000Z
2021-09-22T14:51:13.000Z
"""Test delete() function.""" import os import pytest from cdnupload import (SourceError, DestinationError, DeleteAllKeysError, FileSource, FileDestination, delete, upload) def list_files(top): lst = [] for root, dirs, files in os.walk(top): for file in files: ful...
33.987578
85
0.658808
9e2b4e8d2370a6c2ad9368c812fb145a11da9b89
3,974
py
Python
src/rosserial_python/nodes/serial_node_4.py
buivn/ara_navigation
5f9f1bb713882cede745523acea86499db34387a
[ "BSD-2-Clause" ]
null
null
null
src/rosserial_python/nodes/serial_node_4.py
buivn/ara_navigation
5f9f1bb713882cede745523acea86499db34387a
[ "BSD-2-Clause" ]
null
null
null
src/rosserial_python/nodes/serial_node_4.py
buivn/ara_navigation
5f9f1bb713882cede745523acea86499db34387a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python ##################################################################### # Software License Agreement (BSD License) # # Copyright (c) 2011, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that th...
40.141414
99
0.679919
9e2b80197a74a20eb316c67f4faa42ecbf476108
2,734
py
Python
doubly_stochastic_dgp/layer_initializations.py
naiqili/GPGene-TCBB
30f889b583930ba58030e7d903dd7ef98da4824c
[ "MIT" ]
21
2020-10-14T12:12:25.000Z
2022-01-25T08:42:57.000Z
doubly_stochastic_dgp/layer_initializations.py
naiqili/DGPG-journal
2770ce58185091afff5eca8e295086b42f4d874e
[ "MIT" ]
2
2021-01-14T19:10:31.000Z
2021-02-17T14:29:16.000Z
doubly_stochastic_dgp/layer_initializations.py
naiqili/DGPG-journal
2770ce58185091afff5eca8e295086b42f4d874e
[ "MIT" ]
4
2020-11-11T08:36:25.000Z
2021-01-07T05:04:02.000Z
import tensorflow as tf import numpy as np from gpflow.params import DataHolder, Minibatch from gpflow import autoflow, params_as_tensors, ParamList from gpflow.models.model import Model from gpflow.mean_functions import Identity, Linear from gpflow.mean_functions import Zero from gpflow.quadrature import mvhermgauss...
33.753086
95
0.608632
9e2b9a3d922f7ac4862de3436d42d02c29711ab1
3,070
py
Python
experiments/ashvin/icra2021/data_utils/compile_goals_ccrig.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/data_utils/compile_goals_ccrig.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/data_utils/compile_goals_ccrig.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import time import glob from rlkit.misc.asset_loader import load_local_or_remote_file from skimage import data, color from skimage.transform import rescale, resize, downscale_local_mean import cv2 import rlkit.torch.pytorch_util as ptu def crop(img): img = resize...
41.486486
112
0.715309
9e2ba013c33361a03c18e2ef64327289c8e2581b
3,922
py
Python
ExtentionPackages/paramiko/__init__.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
14
2018-02-20T07:11:40.000Z
2021-09-23T08:31:59.000Z
SLpackage/private/thirdparty/pythonpkgs/paramiko/paramiko_1.15.2/lib/python2.7/site-packages/paramiko/__init__.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
269
2015-01-09T15:41:29.000Z
2020-11-16T09:29:57.000Z
SLpackage/private/thirdparty/pythonpkgs/paramiko/paramiko_1.15.2/lib/python2.7/site-packages/paramiko/__init__.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
10
2017-06-18T08:29:10.000Z
2021-06-07T12:16:27.000Z
# Copyright (C) 2003-2011 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
37.711538
103
0.722336
9e2bb8db7a1ef54b0e7213c13bc63bea669f7677
11,726
py
Python
projects/oscope/software/main.py
BerkeleyLab/Bedrock
fb6d23ae675d45cc9deb43361e20a88af9c64084
[ "RSA-MD" ]
17
2019-09-29T14:52:18.000Z
2022-03-28T21:16:25.000Z
projects/oscope/software/main.py
BerkeleyLab/Bedrock
fb6d23ae675d45cc9deb43361e20a88af9c64084
[ "RSA-MD" ]
null
null
null
projects/oscope/software/main.py
BerkeleyLab/Bedrock
fb6d23ae675d45cc9deb43361e20a88af9c64084
[ "RSA-MD" ]
4
2019-12-04T17:30:38.000Z
2021-11-01T01:52:13.000Z
#!/usr/bin/env python # Considering KIVY itself has no args, the following helps transfer # the CLargs to python import os os.environ["KIVY_NO_ARGS"] = "1" from kivy.logger import Logger from kivy.garden.matplotlib.backend_kivyagg import FigureCanvas from kivy.clock import Clock from kivy.uix.boxlayout import BoxLayo...
35.75
102
0.573085
9e2bfdb0741c7378d1ff6a2cd4bda933a960ac9e
424
py
Python
app/models/instagram.py
yakinaround/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
null
null
null
app/models/instagram.py
yakinaround/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
2
2021-03-31T18:30:32.000Z
2021-12-13T19:44:07.000Z
app/models/instagram.py
myadventure/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
null
null
null
""" instagram.py Instagram mongoengine model """ from mongoengine import EmbeddedDocument from mongoengine import fields class Instagram(EmbeddedDocument): """A Instagram model.""" access_token = fields.StringField(required=True) client_secret = fields.StringField(required=True) def to_dict(self): ...
20.190476
53
0.70283
9e2c4c973ac6f8fe0bc56a3a448da37b46f7f2ab
6,035
py
Python
sktime/forecasting/tests/test_naive.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2020-09-02T19:39:59.000Z
2020-09-02T19:39:59.000Z
sktime/forecasting/tests/test_naive.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-04-20T12:26:42.000Z
2020-04-22T17:09:14.000Z
sktime/forecasting/tests/test_naive.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2020-12-28T15:24:15.000Z
2020-12-28T15:24:15.000Z
#!/usr/bin/env python3 -u # coding: utf-8 # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) __author__ = ["Markus Löning", "Piyush Gade"] import numpy as np import pandas as pd import pytest from sktime.forecasting.naive import NaiveForecaster from sktime.forecasting.tests import TEST_OOS_FHS fr...
33.342541
78
0.646562
9e2c93bf69b16add8db485afe15efd83e2d1a5df
4,058
py
Python
Followup v0.79/fup/views/createbatch.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
Followup v0.79/fup/views/createbatch.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
Followup v0.79/fup/views/createbatch.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
from flask import Blueprint from flask import render_template, request, redirect, url_for #Extra imports import os # pylint: disable=E0611 from werkzeug import secure_filename #App imports from fup.utils.jsoninfo import configInfo, sessionInfo from fup.utils.commun import generateID, current_date, movetobin ...
32.206349
131
0.654756
9e2c9bcba82f7c8884fe5d62c79f5ac43380c96d
1,028
py
Python
Tests/lih_mp2.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
8
2016-08-26T14:57:01.000Z
2019-12-23T07:39:37.000Z
Tests/lih_mp2.py
nicodgomez/pyquante
483571110b83cab406d3d4d8f2eba5cae0a2da58
[ "DOC" ]
1
2019-02-03T10:44:02.000Z
2019-02-03T10:44:02.000Z
Tests/lih_mp2.py
globulion/pyq-mod
ee32b6685e9c1e915c5c515ef7ab83adc200fa9b
[ "DOC" ]
8
2016-02-23T19:22:11.000Z
2021-08-28T12:12:59.000Z
#!/usr/bin/env python from PyQuante.Ints import getbasis,getints from PyQuante.hartree_fock import rhf from PyQuante.Molecule import Molecule from PyQuante.MP import MP2 # jaguar scf energy: -7.981340 # jaguar mp2 corr -0.020364 # jaguar mp2 energy: -8.001704 # Gamess-UK energy # Energy -8.00219125 energy = -8.0...
24.47619
67
0.620623
9e2cd2b22fdbdd9bf0f30fb97fefcbadb7439bb0
1,797
py
Python
alipay/aop/api/domain/StoreAddressInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/StoreAddressInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/StoreAddressInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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.constant.ParamConstants import * class StoreAddressInfo(object): def __init__(self): self._address = None self._latitude = None self._longitude = None @property def address(self): return self._...
25.309859
69
0.567056
9e2cd866ef174aacb699a7ddf62a1115d917d152
62
py
Python
generalized_elastic_net/version.py
yujiading/generalized-elastic-net
e04b4117aeaddcc4e633fc56eb2a8a1ada38b4da
[ "MIT" ]
null
null
null
generalized_elastic_net/version.py
yujiading/generalized-elastic-net
e04b4117aeaddcc4e633fc56eb2a8a1ada38b4da
[ "MIT" ]
null
null
null
generalized_elastic_net/version.py
yujiading/generalized-elastic-net
e04b4117aeaddcc4e633fc56eb2a8a1ada38b4da
[ "MIT" ]
null
null
null
# Note that setup.py uses this version. __version__ = '1.0.1'
20.666667
39
0.709677
9e2cd9a37a2762b2ac8fbb70dbe6da76cf822f2c
5,604
py
Python
src/inhibitor_urea_denaturation/1_initial_cleanup.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
src/inhibitor_urea_denaturation/1_initial_cleanup.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
src/inhibitor_urea_denaturation/1_initial_cleanup.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os import re from ProteomicsUtils import FileHandling, StatUtils, PlotUtils, DataWrangling from loguru import logger logger.info('Import OK') pd.set_option('display.max_columns', 500) def tmt_peptides(input_path, sample_names=None, pep_cols=[]): peptides = pd.re...
44.832
169
0.678979
9e2cf268c39c849d762906d451c858d5dfe6246b
264
py
Python
Exercicios do curso em video/pythonProject/pythonexercicios/ex064.py
HiCosta/Exercicios-de-Python
1dabbe8764f6742aba1d62a9ea14705534aaf6f7
[ "MIT" ]
null
null
null
Exercicios do curso em video/pythonProject/pythonexercicios/ex064.py
HiCosta/Exercicios-de-Python
1dabbe8764f6742aba1d62a9ea14705534aaf6f7
[ "MIT" ]
null
null
null
Exercicios do curso em video/pythonProject/pythonexercicios/ex064.py
HiCosta/Exercicios-de-Python
1dabbe8764f6742aba1d62a9ea14705534aaf6f7
[ "MIT" ]
null
null
null
num = cont = soma = 0 num = int(input('Digite m número [999 para parar]: ')) while num != 999: soma += num cont += 1 num = int(input('Digite um número [999 para parar]: ')) print('Você digitou {} números e a soma entre eles foi {}'.format(cont, soma))
33
78
0.617424
9e2d0f4e2d211bb00ca755e2c8197b578524027f
957
py
Python
python/jiminy_py/setup.py
matthieuvigne/jiminy
f893b2254a9e695a4154b941b599536756ea3d8b
[ "MIT" ]
null
null
null
python/jiminy_py/setup.py
matthieuvigne/jiminy
f893b2254a9e695a4154b941b599536756ea3d8b
[ "MIT" ]
null
null
null
python/jiminy_py/setup.py
matthieuvigne/jiminy
f893b2254a9e695a4154b941b599536756ea3d8b
[ "MIT" ]
null
null
null
from setuptools import setup, dist, find_packages # force setuptools to recognize that this is # actually a binary distribution class BinaryDistribution(dist.Distribution): def has_ext_modules(foo): return True setup(name = 'jiminy_py', version = '1.1.5', license = 'MIT', description =...
35.444444
106
0.681296
9e2d1a77d530791a2f30444d32694c4df7d90d36
3,746
py
Python
classifier/model_definitions.py
jscant/gnina_tensorflow
0f590987ceb136cee2d819682fab0f305b2d05fe
[ "MIT" ]
null
null
null
classifier/model_definitions.py
jscant/gnina_tensorflow
0f590987ceb136cee2d819682fab0f305b2d05fe
[ "MIT" ]
null
null
null
classifier/model_definitions.py
jscant/gnina_tensorflow
0f590987ceb136cee2d819682fab0f305b2d05fe
[ "MIT" ]
1
2020-11-30T12:08:20.000Z
2020-11-30T12:08:20.000Z
""" Created on Tue Jun 16 19:46:06 2020 @author: scantleb @brief: Baseline and DenseFS models. Baseline (gnina; Ragoza et al., 2017) is the name we have given to the simpler original CNN built on top of the gnina framework. [1] DenseFS (Imrie et al., 2018) is a more advanced neural network built on top of the gnina ...
32.573913
79
0.655366
9e2d1e40810f5df3efbb24f99d504d79f8b5f8fd
756
py
Python
src/olympia/git/models.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-11-15T20:06:40.000Z
2020-11-15T20:06:40.000Z
src/olympia/git/models.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1,398
2020-10-08T06:32:26.000Z
2022-03-31T12:06:24.000Z
src/olympia/git/models.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2021-11-24T07:29:55.000Z
2021-11-24T07:29:55.000Z
from django.db import models from olympia.addons.models import Addon from olympia.amo.models import ModelBase class GitExtractionEntry(ModelBase): """ This is a model that represents an entry in a "queue" of add-ons scheduled for git extraction. When an add-on is in this queue, its versions should be ...
30.24
79
0.691799
9e2d272df32daae7ec5cbc4f200aedf9a184e57c
407
py
Python
kubi_ecs_logger/models/fields/field_set.py
kumina/kubi_ecs_logger
64d9519e0759a24253a4edc53e0c024675033d1c
[ "BSD-3-Clause" ]
6
2019-12-15T12:47:06.000Z
2022-01-11T08:54:58.000Z
kubi_ecs_logger/models/fields/field_set.py
kumina/kubi_ecs_logger
64d9519e0759a24253a4edc53e0c024675033d1c
[ "BSD-3-Clause" ]
null
null
null
kubi_ecs_logger/models/fields/field_set.py
kumina/kubi_ecs_logger
64d9519e0759a24253a4edc53e0c024675033d1c
[ "BSD-3-Clause" ]
null
null
null
from marshmallow import post_load from kubi_ecs_logger.models import RootSchema class FieldSet: def __init__(self, *args, **kwargs): for k, v in kwargs.items(): if not hasattr(self, k): setattr(self, k, v) class FieldSetSchema(RootSchema): class Meta: model = Fie...
18.5
45
0.626536
9e2d2948c351c143ea5a237ec6f143a7e7c11f84
2,462
py
Python
savu/plugins/basic_operations/data_threshold.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/basic_operations/data_threshold.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/basic_operations/data_threshold.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2019 Diamond Light Source Ltd. # # 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 t...
36.746269
111
0.694557
9e2d34240c39a986670ac992264d6721e6275d59
2,632
py
Python
rest-service/manager_rest/archiving.py
acidburn0zzz/cloudify-manager
ee2224c52347f7461a95976179ab61aee74a49dd
[ "Apache-2.0" ]
1
2015-11-03T14:27:11.000Z
2015-11-03T14:27:11.000Z
rest-service/manager_rest/archiving.py
acidburn0zzz/cloudify-manager
ee2224c52347f7461a95976179ab61aee74a49dd
[ "Apache-2.0" ]
2
2021-03-20T05:33:19.000Z
2021-03-26T00:38:21.000Z
rest-service/manager_rest/archiving.py
acidburn0zzz/cloudify-manager
ee2224c52347f7461a95976179ab61aee74a49dd
[ "Apache-2.0" ]
1
2019-10-29T06:15:31.000Z
2019-10-29T06:15:31.000Z
######### # Copyright (c) 2013 GigaSpaces Technologies Ltd. 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...
31.333333
77
0.691109
9e2d465e80c7980a52d6a7d700ab941cef85b4ef
3,341
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.42029
172
0.698593
9e2d6eeb374bfac45ed2e5f1c64808561f70f81e
4,739
py
Python
Testing/Strings.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Testing/Strings.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Testing/Strings.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # # P A G E B O T E X A M P L E S # # Licensed under MIT conditions # # Supporting DrawBot, www...
31.805369
171
0.641275
9e2d859218853af7e4407373d57f674d759f58b1
5,456
py
Python
docs/source/conf.py
just4jc/cuml
bd7824bff0a60634b11c1f036dd41cc7f8c05bc1
[ "Apache-2.0" ]
1
2019-02-14T05:32:35.000Z
2019-02-14T05:32:35.000Z
docs/source/conf.py
just4jc/cuml
bd7824bff0a60634b11c1f036dd41cc7f8c05bc1
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
just4jc/cuml
bd7824bff0a60634b11c1f036dd41cc7f8c05bc1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2018, NVIDIA CORPORATION. # # pygdf documentation build configuration file, created by # sphinx-quickstart on Wed May 3 10:59:22 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible con...
29.814208
79
0.68695
9e2d89c696a0476536691b55cf61876c12ddd3c0
1,271
py
Python
askci/apps/main/views/tags.py
hpsee/askci
ef1e2e75481b71db7fbe774cb81938055aa596d0
[ "MIT" ]
3
2019-11-21T09:04:36.000Z
2019-11-23T13:29:43.000Z
askci/apps/main/views/tags.py
hpsee/askci
ef1e2e75481b71db7fbe774cb81938055aa596d0
[ "MIT" ]
13
2019-11-21T20:28:23.000Z
2019-11-26T19:34:22.000Z
askci/apps/main/views/tags.py
hpsee/askci
ef1e2e75481b71db7fbe774cb81938055aa596d0
[ "MIT" ]
null
null
null
""" Copyright (C) 2019-2020 Vanessa Sochat. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. """ from django.db.models import Count from django.shortcuts import render from...
28.244444
88
0.711251
9e2d8dbd36ebd2ec66c5969b405c524ad0ae18f3
2,282
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/registry_update_parameters_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/registry_update_parameters_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/registry_update_parameters_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
44.745098
141
0.666082
9e2d9a9c763764b345946ccff72ca8f6797915dc
1,604
py
Python
oscar/lib/python2.7/site-packages/django/contrib/redirects/migrations/0001_initial.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/redirects/migrations/0001_initial.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/redirects/migrations/0001_initial.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sites', '0001_initial'), ] operations = [ migrations.CreateModel( name='Redirect', fi...
36.454545
119
0.481297
9e2db3c173428205e8b694069d5d90eea48a28bb
734
py
Python
sis-api/core/model/insurance_policy.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
sis-api/core/model/insurance_policy.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
sis-api/core/model/insurance_policy.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
from copy import copy from dataclasses import dataclass, field from datetime import date from enum import Enum from typing import Optional from core.model.base_model import BaseModel from core.model.meta import PK, GENERATED class InsuranceType(Enum): Home = "Home" Motor = "Motor" @dataclass(frozen=True, e...
22.9375
67
0.682561
9e2e2467a8aa3ed1f2696ead619ba02b3c0645bd
1,532
py
Python
kg/diff/real_abs_1e_13.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
6
2019-11-30T17:03:13.000Z
2021-09-30T05:08:31.000Z
kg/diff/real_abs_1e_13.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
1
2020-01-20T12:13:03.000Z
2020-01-20T12:13:03.000Z
kg/diff/real_abs_1e_13.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
null
null
null
# Checks for an absolute error # with an error of at most 1e-13 # Don't edit this file. Edit real_abs_rel_template.py instead, and then run _real_check_gen.py from itertools import zip_longest from decimal import Decimal, InvalidOperation from kg.checkers import * ### @import EPS = Decimal('1e-13') EPS *= 1+Deci...
41.405405
94
0.603133
9e2e322419296d047c98d4a5c7a3cc9a4f1426a5
1,750
py
Python
twistlock/setup.py
blaines/integrations-core
ff54d2d864bf37eea3a021d316e42742d499e3ca
[ "BSD-3-Clause" ]
null
null
null
twistlock/setup.py
blaines/integrations-core
ff54d2d864bf37eea3a021d316e42742d499e3ca
[ "BSD-3-Clause" ]
null
null
null
twistlock/setup.py
blaines/integrations-core
ff54d2d864bf37eea3a021d316e42742d499e3ca
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from codecs import open # To use a consistent encoding from os import path from setuptools import setup HERE = path.dirname(path.abspath(__file__)) # Get version info ABOUT = {} with open(path.join(HER...
31.25
79
0.678857
9e2e34db3f915c037b081643961d721e1dde8727
138
py
Python
tests/test_classical/test_common/__init__.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
1
2020-06-20T21:20:14.000Z
2020-06-20T21:20:14.000Z
tests/test_classical/test_common/__init__.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
3
2020-08-21T08:58:44.000Z
2020-09-01T11:22:38.000Z
tests/test_classical/test_common/__init__.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
2
2020-06-13T15:29:06.000Z
2021-08-20T15:48:53.000Z
from tests.test_classical.test_common.test_models import TestModels from tests.test_classical.test_common.test_trainer import TestTrainer
46
69
0.898551
9e2e39e9d8e164e923a6c4fcaaa4d9db66266b00
14,421
py
Python
python_modules/dagster/dagster_tests/core_tests/asset_defs_tests/test_asset_group.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/asset_defs_tests/test_asset_group.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/asset_defs_tests/test_asset_group.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import re import warnings import pytest from dagster import ( AssetKey, DagsterInvalidDefinitionError, IOManager, Out, fs_asset_io_manager, graph, in_process_executor, io_manager, mem_io_manager, repository, resource, ) from dagster.core.asset_defs import AssetGroup, AssetI...
30.946352
182
0.689966
9e2e429df7fea9179d27b83378b572fe0b530f02
4,433
py
Python
modeltranslation/forms.py
intelligenia/modeltranslation
64d6adeb537747321d5020efedf5d7e0d135862d
[ "MIT" ]
4
2016-08-08T11:50:30.000Z
2020-09-12T16:31:22.000Z
modeltranslation/forms.py
intelligenia/modeltranslation
64d6adeb537747321d5020efedf5d7e0d135862d
[ "MIT" ]
1
2019-10-28T03:05:56.000Z
2019-10-28T04:03:04.000Z
modeltranslation/forms.py
intelligenia/modeltranslation
64d6adeb537747321d5020efedf5d7e0d135862d
[ "MIT" ]
3
2016-08-23T18:36:37.000Z
2021-12-22T14:04:27.000Z
# -*- coding: utf-8 -*- import copy from django import forms from django.conf import settings #from django.utils.translation import ugettext as _ from modeltranslation.models import trans_attr, trans_is_fuzzy_attr ######################################################################## ## Useful ModelForm to trans...
42.625
119
0.668171
9e2e63211506135a7ef7a7bebabfd11b3ef38367
2,389
py
Python
signalworks/processors/filter.py
j9ac9k/signalworks
ca1c9ea77f6fc6d26c1e1b3a21eb9d9465041fb5
[ "MIT" ]
null
null
null
signalworks/processors/filter.py
j9ac9k/signalworks
ca1c9ea77f6fc6d26c1e1b3a21eb9d9465041fb5
[ "MIT" ]
null
null
null
signalworks/processors/filter.py
j9ac9k/signalworks
ca1c9ea77f6fc6d26c1e1b3a21eb9d9465041fb5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import NamedTuple, Optional, Tuple import numpy as np from scipy import signal from signalworks.processors.processing import DefaultProgressTracker, Processor from signalworks.tracking import Wave class Filter(Processor): name = "Linear Filter" # acquire = {'wave': trackin...
30.628205
86
0.544998
9e2e7fc6d258f044d1014774eee5fe6806480138
6,032
py
Python
hydrus/data/db_models.py
vddesai1871/falcon-http-hydra
5b9fce1387a2ff23564c705bde7da528eb77c526
[ "MIT" ]
7
2018-02-17T13:59:32.000Z
2020-01-03T03:10:28.000Z
hydrus/data/db_models.py
vddesai1871/falcon-http-hydra
5b9fce1387a2ff23564c705bde7da528eb77c526
[ "MIT" ]
1
2018-02-21T17:39:16.000Z
2018-02-27T19:12:18.000Z
hydrus/data/db_models.py
vddesai1871/falcon-http-hydra
5b9fce1387a2ff23564c705bde7da528eb77c526
[ "MIT" ]
3
2018-02-17T14:04:13.000Z
2018-03-08T13:09:26.000Z
"""Models for Hydra Classes.""" from sqlalchemy import create_engine, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String from typing import Any # from hydrus.settings import DB_URL engine = create_engine('sqlite:///database.db') Base = declarative_base()...
29.281553
108
0.647215
9e2e8719dff33b45f3660607b315c7feb349a7ed
98
py
Python
test/python/LIM2Metrics/py2/base/common/Python028/Python028.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
20
2015-06-16T17:39:10.000Z
2022-03-20T22:39:40.000Z
test/python/LIM2Metrics/py2/base/common/Python028/Python028.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
29
2015-12-29T19:07:22.000Z
2022-03-22T10:39:02.000Z
test/python/LIM2Metrics/py2/base/common/Python028/Python028.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
12
2015-08-28T01:22:18.000Z
2021-09-25T08:17:31.000Z
for n in range(1, 3): try: print 'before break' break except StandardError: print 'error'
16.333333
22
0.673469
9e2e8b17284f4c2cd506c2a68341638a8ca857c6
3,112
py
Python
tests/unit/benchmark/scenarios/availability/test_attacker_baremetal.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
tests/unit/benchmark/scenarios/availability/test_attacker_baremetal.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
tests/unit/benchmark/scenarios/availability/test_attacker_baremetal.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompan...
35.770115
78
0.602506
9e2eb0fbaa7f963a2ab6679ffaf60be3123a514f
771
py
Python
hw4/cs285/policies/argmax_policy.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
1
2021-04-05T11:40:10.000Z
2021-04-05T11:40:10.000Z
hw4/cs285/policies/argmax_policy.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
8
2020-09-26T01:29:18.000Z
2022-02-10T02:07:53.000Z
hw4/cs285/policies/argmax_policy.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
3
2020-12-16T15:24:39.000Z
2022-01-27T21:29:34.000Z
import tensorflow as tf class ArgMaxPolicy(object): def __init__(self, sess, critic): self.sess = sess self.critic = critic # TODO: Define what action this policy should return # HINT1: the critic's q_t_values indicate the goodness of observations, # so they should be use...
32.125
114
0.638132
9e2eb74a27899382149f96be56da37c4bf4e6d02
613
py
Python
setup.py
inwe-boku/medea
465280d2637e43b5603bb4e87573d1c51e17afc1
[ "MIT" ]
2
2020-08-19T04:13:56.000Z
2020-12-10T15:57:02.000Z
setup.py
inwe-boku/medea
465280d2637e43b5603bb4e87573d1c51e17afc1
[ "MIT" ]
null
null
null
setup.py
inwe-boku/medea
465280d2637e43b5603bb4e87573d1c51e17afc1
[ "MIT" ]
4
2020-01-07T13:57:59.000Z
2022-03-16T09:03:48.000Z
import matplotlib import openpyxl import pandas import pyyaml import setuptools with open('README.md', 'r', encoding='utf-8') as readme_file: readme = readme_file.read() setuptools.setup( name='medea', version='0.1', author='Sebastian Wehrle', author_email='sebastian.wehrle@boku.ac.at', descri...
25.541667
61
0.7031
9e2eb90bea8af3ac1bc95784c5140936cd2b1421
6,783
py
Python
hpcrocket/core/workflows/stages.py
SvenMarcus/ssh-slurm-runner
91ea1a052a0362b5b8676b6e429aa3c890359e73
[ "MIT" ]
2
2021-04-16T15:53:38.000Z
2021-04-16T20:36:05.000Z
hpcrocket/core/workflows/stages.py
SvenMarcus/ssh-slurm-runner
91ea1a052a0362b5b8676b6e429aa3c890359e73
[ "MIT" ]
18
2021-04-16T15:53:55.000Z
2021-09-13T17:38:44.000Z
hpcrocket/core/workflows/stages.py
SvenMarcus/ssh-slurm-runner
91ea1a052a0362b5b8676b6e429aa3c890359e73
[ "MIT" ]
null
null
null
from typing import List, Optional, cast from hpcrocket.core.environmentpreparation import (CopyInstruction, EnvironmentPreparation) from hpcrocket.core.errors import get_error_message from hpcrocket.core.filesystem import FilesystemFactory from hpcrocket.core.slurmbat...
30.146667
112
0.642636