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
9189bd886c9975d04c5bf0457398224bb4216946
383
py
Python
lottery/urls.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
null
null
null
lottery/urls.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
null
null
null
lottery/urls.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
4
2018-01-27T06:01:41.000Z
2018-02-21T12:18:35.000Z
from django.conf.urls import url from lottery.views import ProgressTaskView, check_task, finish_task, get_tasks urlpatterns = [ url(r'^progress_task/$', ProgressTaskView.as_view()), url(r'^progress_task/(?P<storename>.+)/$', ProgressTaskView.as_view()), url(r'^finish/$', finish_task), url(r'^check/(?P...
31.916667
78
0.678851
918a037f50d96b063b980963d739cd910698672f
29,010
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/operations/_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/operations/_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/operations/_runs_operations.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 ...
42.350365
215
0.665047
918a0499df3024d5fd730d45eb46f4fceca490a1
2,630
py
Python
cle/address_translator.py
mattrepl/cle
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
2
2019-06-01T23:41:15.000Z
2020-01-21T22:08:50.000Z
cle/address_translator.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
cle/address_translator.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
class AddressTranslator(object): """ Mediates address translations between typed addresses such as RAW, RVA, LVA, MVA and VA including address owner and its state (linked or mapped) Semantics:: owner - object associated with the address (any object class based on `cle.Backend`) ...
27.113402
117
0.588973
918a0dd6ad008242738822dee9989fa4b54569ee
1,428
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_seesaw/samd09.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_seesaw/samd09.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_seesaw/samd09.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2017 Dean Miller for Adafruit Industries # # SPDX-License-Identifier: MIT # pylint: disable=missing-docstring,invalid-name,too-many-public-methods,too-few-public-methods """ `adafruit_seesaw.samd09` - Pin definition for Adafruit SAMD09 Breakout with seesaw ===================================...
25.5
95
0.67437
918a14b1d90a56921b93d2c5b82ab0444a2d0809
884
py
Python
cp-book/ch2/lineards/bitmanip/_11173_GreyCodes.py
andrey-yemelyanov/competitive-programming
f5c5fc9a5951a81dbae1250e17cd3d51a96b7a47
[ "MIT" ]
null
null
null
cp-book/ch2/lineards/bitmanip/_11173_GreyCodes.py
andrey-yemelyanov/competitive-programming
f5c5fc9a5951a81dbae1250e17cd3d51a96b7a47
[ "MIT" ]
null
null
null
cp-book/ch2/lineards/bitmanip/_11173_GreyCodes.py
andrey-yemelyanov/competitive-programming
f5c5fc9a5951a81dbae1250e17cd3d51a96b7a47
[ "MIT" ]
null
null
null
# Problem name: 11173 Grey Codes # Problem url: https://uva.onlinejudge.org/external/111/11173.pdf # Author: Andrey Yemelyanov import sys import math def readline(): return sys.stdin.readline().strip() def main(): n_tests = int(readline()) for i in range(n_tests): n, k = [int(x) for x in readline().split()] p...
21.047619
65
0.66629
918a156ee5ef5bfe2fbb2c9833b0cead3dda0c04
14,111
py
Python
src/grammar.py
vadyushkins/pctm
1bb9e8fafe335ace91ea060190570f78fad44c2a
[ "MIT" ]
1
2020-10-11T14:22:09.000Z
2020-10-11T14:22:09.000Z
src/grammar.py
vadyushkins/pctm
1bb9e8fafe335ace91ea060190570f78fad44c2a
[ "MIT" ]
null
null
null
src/grammar.py
vadyushkins/pctm
1bb9e8fafe335ace91ea060190570f78fad44c2a
[ "MIT" ]
1
2022-01-08T17:48:17.000Z
2022-01-08T17:48:17.000Z
""" Generic Grammar definition module """ import pathlib from collections import deque from typing import Deque from typing import Dict from typing import Iterable from typing import List from typing import Set from typing import Tuple from typing import Union from pyformlang import cfg from src.my_production import...
35.724051
100
0.53717
918a3ca06c65d567140ce1179ac56b7d943f8815
5,263
py
Python
etl/process_data.py
adirastogi/carlemon
a9539f2434ef5c55920ef7d3a9162e09b53aed15
[ "MIT" ]
null
null
null
etl/process_data.py
adirastogi/carlemon
a9539f2434ef5c55920ef7d3a9162e09b53aed15
[ "MIT" ]
null
null
null
etl/process_data.py
adirastogi/carlemon
a9539f2434ef5c55920ef7d3a9162e09b53aed15
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import csv def find_max_freq_value(value_freq): max_val = -1 value_name = "" for key in value_freq: if value_freq[key] > max_val: max_val = value_freq[key] value_name = key return value_name def find_average_numeric_attribute(attribute,example_set): sum_value = 0 num_non_m...
39.571429
131
0.768763
918a68d79a3c4cc23549b59cf04108be67259de9
2,687
py
Python
st2common/tests/unit/test_query_base.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2common/tests/unit/test_query_base.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2common/tests/unit/test_query_base.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
33.5875
74
0.62486
918ab42d956d034aa0f2a8f4f4c8c727b0dc90fc
1,387
py
Python
mmf/datasets/builders/visual_entailment/dataset.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
mmf/datasets/builders/visual_entailment/dataset.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
mmf/datasets/builders/visual_entailment/dataset.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
import copy import json import torch from mmf.common.sample import Sample from mmf.datasets.builders.vqa2 import VQA2Dataset LABEL_TO_INT_MAPPING = {"entailment": 0, "neutral": 1, "contradiction": 2} class VisualEntailmentDataset(VQA2Dataset): def __init__(self, config, dataset_type, imdb_file_index, *args, **...
30.822222
84
0.643115
918ac4062fb6cfdfff9363e0a51da14e29cf7145
107
py
Python
FlaskWebApp/apk_tags.py
ClaudioRizzo/JniFuzzerFramework
520a85fe7c4fe348a0b62c32993bf3ae6e503598
[ "MIT" ]
null
null
null
FlaskWebApp/apk_tags.py
ClaudioRizzo/JniFuzzerFramework
520a85fe7c4fe348a0b62c32993bf3ae6e503598
[ "MIT" ]
null
null
null
FlaskWebApp/apk_tags.py
ClaudioRizzo/JniFuzzerFramework
520a85fe7c4fe348a0b62c32993bf3ae6e503598
[ "MIT" ]
null
null
null
RED = "#ff4444" YELLOW = "#ffbb33" GREEN = "#00C851" BLUE = "#33b5e5" tags = [RED, YELLOW, GREEN, BLUE, ]
15.285714
35
0.598131
918ac9f262d74292e8f753e437388941e5b679f6
2,909
py
Python
ASL_configs/search/gacc_bezier_lr=0.2_eps=0.2.py
fundamentalvision/Auto-Seg-Loss
e2349db444af6f8a147624974a82af375f130587
[ "Apache-2.0" ]
57
2021-03-17T08:35:19.000Z
2022-02-25T11:59:08.000Z
ASL_configs/search/gacc_bezier_lr=0.2_eps=0.2.py
fundamentalvision/Auto-Seg-Loss
e2349db444af6f8a147624974a82af375f130587
[ "Apache-2.0" ]
3
2021-04-08T01:59:17.000Z
2022-01-22T15:34:01.000Z
ASL_configs/search/gacc_bezier_lr=0.2_eps=0.2.py
fundamentalvision/Auto-Seg-Loss
e2349db444af6f8a147624974a82af375f130587
[ "Apache-2.0" ]
5
2021-05-07T15:28:33.000Z
2021-12-13T08:12:06.000Z
_base_ = [ '../../configs/_base_/models/deeplabv3plus_r50-d8.py', '../../configs/_base_/datasets/pascal_voc12_aug.py', '../../configs/_base_/default_runtime.py', '../../configs/_base_/schedules/schedule_20k.py' ] optimizer = dict( type='SGD', lr=0.02, paramwise_cfg = dict( custom_keys={ ...
30.621053
117
0.56033
918ace1e071b1f1b24e5b05c12a83494a0ca2640
5,185
py
Python
tests/unit/fake_data_root/kubernetes/var/lib/juju/agents/unit-kubernetes-master-0/charm/hooks/relations/kube-control/provides.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
6
2021-10-01T19:46:14.000Z
2022-03-31T17:05:08.000Z
tests/unit/fake_data_root/kubernetes/var/lib/juju/agents/unit-kubernetes-master-0/charm/hooks/relations/kube-control/provides.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
111
2021-10-01T18:18:17.000Z
2022-03-29T12:23:20.000Z
tests/unit/fake_data_root/kubernetes/var/lib/juju/agents/unit-kubernetes-master-0/charm/hooks/relations/kube-control/provides.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
10
2021-09-29T14:47:54.000Z
2022-03-18T14:52:16.000Z
#!/usr/local/sbin/charm-env python3 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
32.204969
79
0.597878
918ad1c3191c432137e120c05d197d6477f0046f
1,362
py
Python
ProGED/examples/tee_this.py
smeznar/ProGED
191cfd2b7b1fece819109a4b61e3f7533332fd74
[ "BSD-3-Clause" ]
5
2021-02-04T10:53:10.000Z
2022-03-29T11:14:29.000Z
ProGED/examples/tee_this.py
smeznar/ProGED
191cfd2b7b1fece819109a4b61e3f7533332fd74
[ "BSD-3-Clause" ]
8
2021-02-04T10:11:36.000Z
2022-03-04T13:35:16.000Z
ProGED/examples/tee_this.py
smeznar/ProGED
191cfd2b7b1fece819109a4b61e3f7533332fd74
[ "BSD-3-Clause" ]
null
null
null
"""Not yet finnished template for functionality like in lorenz.py file, which uses arguments from command line for the name of log files that it produces. """ import random as rand import sys # For cmd-line arguments. # from IPython.utils.io import Tee # Log results using 3th package. from ProGED.examples.tee_so imp...
34.923077
87
0.676211
918b176e24089b1f966c5eac70fef90ce3b4ac95
13,869
py
Python
google/cloud/compute_v1/services/region_instance_group_managers/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/region_instance_group_managers/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/region_instance_group_managers/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google 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...
35.470588
101
0.647992
918b22513b23f63e8fd94da50b89e9d80fb4c69e
405
py
Python
BinarySearch/first_bad_version.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
BinarySearch/first_bad_version.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
BinarySearch/first_bad_version.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
""" link : https://leetcode.com/problems/first-bad-version/ """ class Solution: def firstBadVersion(self, n): """ :type n: int :rtype: int """ left , right = 1, n while left < right: mid = (left + right)//2 if isBadVersion(mid): ...
23.823529
55
0.444444
918b572f446143bd8848d5ee389d65a8f8e4120a
203
py
Python
nexusadspy/__init__.py
mathemads/nexusadspy
727a4afd0479c0b03dcf54203c1a9c1601357fb8
[ "BSD-3-Clause" ]
13
2015-11-03T16:59:07.000Z
2019-05-31T01:58:42.000Z
nexusadspy/__init__.py
rocket-internet-berlin/mathemads-nexusadspy
727a4afd0479c0b03dcf54203c1a9c1601357fb8
[ "BSD-3-Clause" ]
5
2015-11-18T18:53:22.000Z
2018-09-11T11:50:08.000Z
nexusadspy/__init__.py
rocket-internet-berlin/mathemads-nexusadspy
727a4afd0479c0b03dcf54203c1a9c1601357fb8
[ "BSD-3-Clause" ]
5
2016-01-07T13:48:29.000Z
2018-09-11T08:46:31.000Z
# -*- coding: utf-8 -*- from __future__ import ( print_function, division, generators, absolute_import, unicode_literals ) from .client import AppnexusClient from .report import AppnexusReport
20.3
41
0.753695
918b8e771ca5b1d05279aa3bc71af87c3bc95b7e
8,066
py
Python
TasksSolution/CodeFormatter(Java)/src/java_formatter_ui.py
Pilipets/Metaprogramming
7659393bc504562b0f74c5a8cb5f4ffd39771e2f
[ "MIT" ]
null
null
null
TasksSolution/CodeFormatter(Java)/src/java_formatter_ui.py
Pilipets/Metaprogramming
7659393bc504562b0f74c5a8cb5f4ffd39771e2f
[ "MIT" ]
2
2020-11-29T16:24:46.000Z
2020-12-14T19:11:02.000Z
TasksSolution/CodeFormatter(Java)/src/java_formatter_ui.py
Pilipets/Metaprogramming
7659393bc504562b0f74c5a8cb5f4ffd39771e2f
[ "MIT" ]
null
null
null
import os import sys from src.java_formatter_core import JavaFormatterCore, java_lexer from config.config_handler import load_config class JavaFormatterUI: def __init__(self, *args, **kwargs): raise NotImplementedError("not intended to initialize the class") help_text = ( "----------------...
46.624277
108
0.562732
918bba3befce4d9906a7f5bd71e6a799e8aa5bbd
470
py
Python
sequential_parser/utils.py
kalessin/sequential-parser
2ed11a217ac78f3b19256730079cef0688bf846e
[ "BSD-3-Clause" ]
null
null
null
sequential_parser/utils.py
kalessin/sequential-parser
2ed11a217ac78f3b19256730079cef0688bf846e
[ "BSD-3-Clause" ]
null
null
null
sequential_parser/utils.py
kalessin/sequential-parser
2ed11a217ac78f3b19256730079cef0688bf846e
[ "BSD-3-Clause" ]
null
null
null
def yield_all_dicts(data): """ Travel all the hierarchy of the given highly structured dict/list, starting from highest level, and yield every dict in all depths """ if isinstance(data, dict): yield data for val in data.values(): for result in get_all_dicts(val): ...
33.571429
134
0.608511
918bde4c309b04c98559d477dc39f82ef9d49ce4
724
py
Python
homecontrol/dependencies/throttle_function.py
jaipradeesh/HomeControl
79ffe8a403fb53e3faf91f55f66d912bb62b4f5f
[ "MIT" ]
null
null
null
homecontrol/dependencies/throttle_function.py
jaipradeesh/HomeControl
79ffe8a403fb53e3faf91f55f66d912bb62b4f5f
[ "MIT" ]
null
null
null
homecontrol/dependencies/throttle_function.py
jaipradeesh/HomeControl
79ffe8a403fb53e3faf91f55f66d912bb62b4f5f
[ "MIT" ]
null
null
null
"""throttle_function""" from functools import wraps import time from typing import Callable # pylint: disable=invalid-name,inconsistent-return-statements # pylint: disable=too-few-public-methods class throttle: """Throttles a function so it only gets called at a fixed frequency""" def __init__(self, s: float...
27.846154
74
0.645028
918beb185dfd580198bdd7aa4108de5a6a8bbeae
2,937
py
Python
test_onf.py
minhduc0711/piano-transcribe
d897d7d2507e3b21e83014bb24467e6ee24da8ac
[ "FTL" ]
1
2021-02-07T12:09:16.000Z
2021-02-07T12:09:16.000Z
test_onf.py
minhduc0711/piano-transcribe
d897d7d2507e3b21e83014bb24467e6ee24da8ac
[ "FTL" ]
null
null
null
test_onf.py
minhduc0711/piano-transcribe
d897d7d2507e3b21e83014bb24467e6ee24da8ac
[ "FTL" ]
null
null
null
from argparse import ArgumentParser from collections import defaultdict import torch from tabulate import tabulate from tqdm import tqdm import numpy as np from src.data.audio import onf_transform from src.data.data_modules import MAPSDataModule from src.eval import compute_note_metrics, compute_frame_metrics from src...
34.151163
97
0.665305
918c402a04d71fe81a51c98f0305728354f7d769
3,165
py
Python
napari_mrcfile_reader/mrcfile_reader.py
jmp1985/napari-mrcfile-reader
e61613c98c129df0610fa57bc3362b85bf7a3a85
[ "BSD-3-Clause" ]
null
null
null
napari_mrcfile_reader/mrcfile_reader.py
jmp1985/napari-mrcfile-reader
e61613c98c129df0610fa57bc3362b85bf7a3a85
[ "BSD-3-Clause" ]
null
null
null
napari_mrcfile_reader/mrcfile_reader.py
jmp1985/napari-mrcfile-reader
e61613c98c129df0610fa57bc3362b85bf7a3a85
[ "BSD-3-Clause" ]
null
null
null
""" This module is an mrc file reader plugin for napari. It implements the ``napari_get_reader`` hook specification to create a reader plugin. see: https://napari.org/docs/plugins/hook_specifications.html Replace code below accordingly. For complete documentation see: https://napari.org/docs/plugins/for_plugin_devel...
34.032258
98
0.673302
918c59974ed1b236d87a80ef86245084a5609427
10,669
py
Python
netpyne/analysis/lfp.py
sanjayankur31/netpyne
d8b7e94cabeb27e23e30853ff17ae86518b35ac2
[ "MIT" ]
null
null
null
netpyne/analysis/lfp.py
sanjayankur31/netpyne
d8b7e94cabeb27e23e30853ff17ae86518b35ac2
[ "MIT" ]
null
null
null
netpyne/analysis/lfp.py
sanjayankur31/netpyne
d8b7e94cabeb27e23e30853ff17ae86518b35ac2
[ "MIT" ]
null
null
null
""" Module for analyzing LFP-related results """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals from __future__ import absolute_import from builtins import range from builtins import round from builtins import str try: basestring except NameError: ...
27.639896
175
0.587778
918c8d53b7888651cb4828260cb029e6e3e33661
4,730
py
Python
datawinners/submission/tests/test_web_sms_request_processor.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/submission/tests/test_web_sms_request_processor.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/submission/tests/test_web_sms_request_processor.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
import unittest from django.contrib.auth.models import User from django.test import TestCase from mangrove.datastore.database import DatabaseManager from mock import patch, Mock from datawinners.accountmanagement.models import Organization, TEST_REPORTER_MOBILE_NUMBER from datawinners.messageprovider.messages import SM...
67.571429
242
0.802326
918cae6721da26d6c62fc5a304aa68980dd27c3e
16,655
py
Python
pyram/analysis/cal_lambda.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
pyram/analysis/cal_lambda.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
pyram/analysis/cal_lambda.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
import numpy as np from ..utils import sampling as smp import collections from ..galaxymodule import galaxy from ..utils import match as mtc import pickle from .. import load from ..tree import halomodule as hmo from .. import general from ..load.part import Part from ..load.hydro import Hydro def get_mstar_min(aexp...
36.127983
115
0.581327
918cb1425e57356486041b589902d5271ae73002
677
py
Python
data_preprocessing/African_Accented_French_proc/Preproc.py
Natalia-T/NeurIPS2021
1b368c6461a9a56a4337f9ee86888e286a55f2f9
[ "MIT" ]
5
2021-10-11T13:44:05.000Z
2022-02-22T12:55:25.000Z
data_preprocessing/African_Accented_French_proc/Preproc.py
Natalia-T/NeurIPS2021
1b368c6461a9a56a4337f9ee86888e286a55f2f9
[ "MIT" ]
null
null
null
data_preprocessing/African_Accented_French_proc/Preproc.py
Natalia-T/NeurIPS2021
1b368c6461a9a56a4337f9ee86888e286a55f2f9
[ "MIT" ]
8
2021-09-09T14:49:14.000Z
2022-03-03T15:53:09.000Z
''' Sina ALISAMIR 2020-2021 ''' import os, glob from funcs import get_files_in_path, printProgressBar def main(): path = "../speech/**/" newPath = "../wavs/" theFiles = get_files_in_path(path) for i, filePath in enumerate(theFiles): fileNewPath = filePath.replace("/speech/", "/wavs/") ...
27.08
99
0.62777
918cb4f12a4e4d4ffd9a5cce82f6cb88178b21de
1,098
py
Python
openstack_dashboard/dashboards/project/network_topology/ports/tables.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/network_topology/ports/tables.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/network_topology/ports/tables.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
4
2015-05-05T08:17:28.000Z
2020-02-05T10:47:06.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 NTT Innovation Institute Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses...
34.3125
78
0.736794
918d0825793454b90b65b9673d6e272e4327ef19
7,208
py
Python
python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_context.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_context.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_context.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import gc import re from contextlib import ExitStack from unittest import mock import pytest from dagster_graphql.test.utils import define_out_of_process_workspace, main_repo_location_name from dagster import lambda_solid, pipeline, repository from dagster.core.host_representation.repository_location import GrpcServe...
39.823204
121
0.689789
918d150c5ef804c2dc99ba9c7f21f42bf6c73adf
2,574
py
Python
evaluate.py
davidmalmstrom/neural_collaborative_filtering
d3d93100d990381f9ef1a10ec37b455b31d38de7
[ "Apache-2.0" ]
null
null
null
evaluate.py
davidmalmstrom/neural_collaborative_filtering
d3d93100d990381f9ef1a10ec37b455b31d38de7
[ "Apache-2.0" ]
null
null
null
evaluate.py
davidmalmstrom/neural_collaborative_filtering
d3d93100d990381f9ef1a10ec37b455b31d38de7
[ "Apache-2.0" ]
null
null
null
''' Created on Apr 15, 2016 Evaluate the performance of Top-K recommendation: Protocol: leave-1-out evaluation Measures: Hit Ratio and NDCG (more details are in: Xiangnan He, et al. Fast Matrix Factorization for Online Recommendation with Implicit Feedback. SIGIR'16) @author: hexiangnan ''' from __future__...
28.6
131
0.653458
918d32a391b82e79780082310875499f405e99e3
8,158
py
Python
vmware_nsx/services/lbaas/nsx_v/v2/member_mgr.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/services/lbaas/nsx_v/v2/member_mgr.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/services/lbaas/nsx_v/v2/member_mgr.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
1
2019-06-21T18:07:53.000Z
2019-06-21T18:07:53.000Z
# Copyright 2015 VMware, 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 a...
42.051546
79
0.593405
918d411502a79986d2e3c3bd1921a7d2a4949f2e
578,912
py
Python
test/test_jit.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
test/test_jit.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
631
2018-06-05T16:59:11.000Z
2022-03-31T16:26:57.000Z
test/test_jit.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
# -*- coding: utf-8 -*- # Owner(s): ["oncall: jit"] import torch # This is how we include tests located in test/jit/... # They are included here so that they are invoked when you call `test_jit.py`, # do not run these test files directly. from jit.test_tracer import TestTracer, TestMixTracingScripting # noqa: F401 f...
35.278001
132
0.535677
918d6d9a96b2ab54836ff3c01d84c4309dc9c106
8,099
py
Python
plugins/os.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
1
2020-10-29T15:44:57.000Z
2020-10-29T15:44:57.000Z
plugins/os.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
null
null
null
plugins/os.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
4
2020-10-28T09:02:35.000Z
2020-12-27T22:45:57.000Z
import asyncio @ItzSjDude(pattern=r"macos", outgoing=True) async def _(event): if event.fwd_from: return animation_interval = 0.5 animation_ttl = range(0, 11) await event.edit("Mac") animation_chars = [ "`Connecting To Hackintosh...`", "`Initiating Hackintosh Login.`"...
48.208333
756
0.553278
918d84920b0dbe0cc6f68ba18a4392e4b233e73f
9,543
py
Python
master/nouvelle-0.90/nouvelle-0.90/Nouvelle/Table.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/nouvelle-0.90/nouvelle-0.90/Nouvelle/Table.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/nouvelle-0.90/nouvelle-0.90/Nouvelle/Table.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
""" Nouvelle.Table A fancy table renderable for Nouvelle. The dataset is represented by a sequence containing arbitrary objects representing rows. Columns are classes that know how to retrieve a particular piece of data from the table and optionally format it. ResortableTable is a Table in which each column heading i...
38.325301
106
0.656502
918d9397b8b6a5a262c2ff19105be86f74f31f1f
9,658
py
Python
src/CC.py
luigiquiros/INVENTA
b210fd0df6980b36f444d0e67557376389a936a3
[ "MIT" ]
null
null
null
src/CC.py
luigiquiros/INVENTA
b210fd0df6980b36f444d0e67557376389a936a3
[ "MIT" ]
1
2022-02-03T17:12:43.000Z
2022-02-03T17:12:43.000Z
src/CC.py
luigiquiros/INVENTA
b210fd0df6980b36f444d0e67557376389a936a3
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import zipfile import os import scipy as sp import matplotlib.pyplot as plt import plotly.express as px import zipfile import pathlib from pandas import Series #Class component: def class_component(df3, filename_header, species_column,genus_column,family_column, min_class_confi...
57.147929
199
0.667633
918d9dcd42e66d29b663cff6f1237ece84d849bd
1,601
py
Python
conohadnsclient/v2/tlds.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
conohadnsclient/v2/tlds.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
conohadnsclient/v2/tlds.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Author: Endre Karlson <endre.karlson@hp.com> # # 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/lice...
32.02
75
0.681449
918dd3e02dfcfd1b207283884dc8019314eeb747
17,503
py
Python
train.py
zaiweizhang/H3DNet
e69f2855634807b37ae12e6db5963c924e64d3e7
[ "MIT" ]
212
2020-06-11T01:03:36.000Z
2022-03-17T17:29:21.000Z
train.py
zaiweizhang/H3DNet
e69f2855634807b37ae12e6db5963c924e64d3e7
[ "MIT" ]
25
2020-06-15T13:35:13.000Z
2022-03-10T05:44:05.000Z
train.py
zaiweizhang/H3DNet
e69f2855634807b37ae12e6db5963c924e64d3e7
[ "MIT" ]
24
2020-06-11T01:17:24.000Z
2022-03-30T13:34:45.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Training routine for 3D object detection with SUN RGB-D or ScanNet. Sample usage: python train.py --dataset sunrgbd --log_dir log_sunrgb...
46.060526
153
0.690967
918df0a5ccedf04e88bd8cf1e6bdf899732c786b
168
py
Python
chatterbot/adapters/storage/__init__.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
1
2016-05-21T21:26:15.000Z
2016-05-21T21:26:15.000Z
chatterbot/adapters/storage/__init__.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
null
null
null
chatterbot/adapters/storage/__init__.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
null
null
null
from .storage import StorageAdapter from .jsondatabase import JsonDatabaseAdapter from .mongodb import MongoDatabaseAdapter from .twitter_storage import TwitterAdapter
33.6
45
0.880952
918df76271098adb751d2a5e465d21f3c1a2d2a6
1,923
py
Python
riak/setup.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
riak/setup.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
riak/setup.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from setuptools import setup from codecs import open from os import path HERE = path.abspath(path.dirname(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, "datadog_checks", "riak", "__about__.p...
28.279412
74
0.672387
918df7e5515cf02c1cc597729e121b3e15478cd8
21,092
py
Python
subsystems/drivesubsystem.py
1757WestwoodRobotics/mentorbot
3db344f3b35c820ada4e1aef3eca9b1fc4c5b85a
[ "MIT" ]
2
2021-11-13T20:18:44.000Z
2021-11-13T20:27:04.000Z
subsystems/drivesubsystem.py
1757WestwoodRobotics/mentorbot
3db344f3b35c820ada4e1aef3eca9b1fc4c5b85a
[ "MIT" ]
null
null
null
subsystems/drivesubsystem.py
1757WestwoodRobotics/mentorbot
3db344f3b35c820ada4e1aef3eca9b1fc4c5b85a
[ "MIT" ]
1
2021-11-14T01:38:53.000Z
2021-11-14T01:38:53.000Z
from math import cos, sin from commands2 import SubsystemBase from wpilib import Encoder, PWMVictorSPX, RobotBase, Timer from ctre import ( AbsoluteSensorRange, CANCoder, ControlMode, ErrorCode, SensorInitializationStrategy, WPI_TalonFX, ) from navx import AHRS from wpimath.geometry import Rotat...
39.059259
100
0.606438
918e1ab8f56aee5f3392e70938177d7874737412
2,498
py
Python
lemur/tests/test_defaults.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/tests/test_defaults.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/tests/test_defaults.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
from .vectors import SAN_CERT, WILDCARD_CERT, INTERMEDIATE_CERT def test_cert_get_cn(client): from lemur.common.defaults import common_name assert common_name(SAN_CERT) == 'san.example.org' def test_cert_sub_alt_domains(client): from lemur.common.defaults import domains assert domains(INTERMEDIATE...
32.025641
105
0.692954
918e3c0f36d2acb7c4d2a6b4c54570acf8277ef9
1,229
py
Python
tests/test_configuration/test_sources/utils.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
12
2019-12-13T10:17:38.000Z
2022-01-05T09:01:36.000Z
tests/test_configuration/test_sources/utils.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
26
2016-04-01T11:55:26.000Z
2021-12-30T17:03:59.000Z
tests/test_configuration/test_sources/utils.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
1
2021-05-31T08:45:22.000Z
2021-05-31T08:45:22.000Z
import os import typing as tp import unittest from satella.coding import wraps from satella.configuration.sources import BaseSource from satella.exceptions import ConfigurationError def mock_env(env: tp.Optional[str] = None, val: tp.Optional[str] = None) -> \ tp.Callable[[tp.Callable], tp.Callable]: """ ...
27.311111
85
0.612693
918e5677e2608062e752a159b67f7646f4201157
6,686
py
Python
sim/data_providers/qcodes_data_provider.py
microsoft/nanotune
68be8f5b74a52d57b74ccac228e120d9ab48e3e4
[ "MIT" ]
5
2021-02-24T14:32:37.000Z
2022-01-05T16:37:26.000Z
sim/data_providers/qcodes_data_provider.py
microsoft/nanotune
68be8f5b74a52d57b74ccac228e120d9ab48e3e4
[ "MIT" ]
149
2021-03-23T14:44:39.000Z
2022-03-31T06:09:07.000Z
sim/data_providers/qcodes_data_provider.py
LaudateCorpus1/nanotune
0ada354597b16f6dbb17ca7be01ab7668b6d5049
[ "MIT" ]
10
2021-03-29T13:36:38.000Z
2022-02-16T23:06:35.000Z
# pylint: disable=too-many-arguments, too-many-locals import os from typing import Any, Optional, Sequence, Union import qcodes as qc from qcodes.dataset.plotting import plot_dataset import xarray as xr from scipy import interpolate from sim.data_provider import DataProvider from sim.mock_device_registry import Mock...
39.56213
116
0.603649
918e645ad6fa516cedd064223157d95f1c7aa1ff
198
py
Python
maps/alpine_run/alpine_run.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/alpine_run/alpine_run.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/alpine_run/alpine_run.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from map import Map class AlpineRun(Map): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.name = 'alpine_run' self.difficulty = 'beginner'
19.8
41
0.611111
918e690791b88dd088197b7d7d0068bac2e5aa2b
5,941
py
Python
applications/popart/resnet/resnet_builder.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/popart/resnet/resnet_builder.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/popart/resnet/resnet_builder.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
# Copyright 2019 Graphcore Ltd. from resnet_base import ResNet import numpy as np import popart # This is all written for: NCHW class PopartBuilderResNet(ResNet): def __init__(self, *args, **kwargs): self.builder = popart.Builder() self.dtype = np.float16 super(PopartBuilderResNet, self)...
40.414966
105
0.553611
918e6d72ba760de0d2cfd625d67d1606382d3bd2
16,759
py
Python
oscar/lib/python2.7/site-packages/_pytest/runner.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/_pytest/runner.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/_pytest/runner.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" basic collect and runtest protocol implementations """ from __future__ import absolute_import, division, print_function import bdb import os import sys from time import time import py from _pytest.compat import _PY2 from _pytest._code.code import TerminalRepr, ExceptionInfo from _pytest.outcomes import...
32.605058
94
0.59747
918e74e5af592a3bc457d2f1d5416a2d35a79f53
8,737
py
Python
preprocessing_utils.py
MoazAshraf/predicting_imdb_ratings
8d6822420586e00c76c4f53bfed533f46bff46cf
[ "MIT" ]
3
2020-05-16T02:03:47.000Z
2020-05-16T18:57:59.000Z
preprocessing_utils.py
MoazAshraf/predicting_imdb_ratings
8d6822420586e00c76c4f53bfed533f46bff46cf
[ "MIT" ]
null
null
null
preprocessing_utils.py
MoazAshraf/predicting_imdb_ratings
8d6822420586e00c76c4f53bfed533f46bff46cf
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin from sklearn.pipeline import Pipeline from sklearn.preprocessing import OneHotEncoder, StandardScaler, PowerTransformer from sklearn.model_selection import train_test_split nominal_columns = ['fn', 'tid', 'title', 'wordsInT...
38.659292
133
0.623326
918e8e403911240f95a9bfd6aff98d096b7de40d
3,217
py
Python
algorithms/simple_perceptron.py
Taosheng-ty/cs6350MLcourse
738bc5ccc50b78a1721986e1a703a575adda2ca6
[ "MIT" ]
null
null
null
algorithms/simple_perceptron.py
Taosheng-ty/cs6350MLcourse
738bc5ccc50b78a1721986e1a703a575adda2ca6
[ "MIT" ]
null
null
null
algorithms/simple_perceptron.py
Taosheng-ty/cs6350MLcourse
738bc5ccc50b78a1721986e1a703a575adda2ca6
[ "MIT" ]
null
null
null
# import sys import os sys.path.append("..") from utils import ml_arg from utils import get_data from utils import Logger import numpy as np from datetime import datetime from utils import calculate_metrics_prediction,calculate_metrics class Perceptron: def train(self,X,label,X_val=None,label_val=None,param=None):...
36.556818
157
0.527821
918e9a9f79b72b0944f412424f14c6031c9e367c
12,162
py
Python
tools/clang/utils/analyzer/CmpRuns.py
GoSSIP-SJTU/TripleDoggy
03648d6b19c812504b14e8b98c8c7b3f443f4e54
[ "Apache-2.0" ]
171
2018-09-17T13:15:12.000Z
2022-03-18T03:47:04.000Z
tools/clang/utils/analyzer/CmpRuns.py
Ewenwan/TripleDoggy
01db804b6570b1e25e29a387aa2addb68b48335f
[ "Apache-2.0" ]
7
2018-10-05T04:54:18.000Z
2020-10-02T07:58:13.000Z
tools/clang/utils/analyzer/CmpRuns.py
Ewenwan/TripleDoggy
01db804b6570b1e25e29a387aa2addb68b48335f
[ "Apache-2.0" ]
35
2018-09-18T07:46:53.000Z
2022-03-27T07:59:48.000Z
#!/usr/bin/env python """ CmpRuns - A simple tool for comparing two static analyzer runs to determine which reports have been added, removed, or changed. This is designed to support automated testing using the static analyzer, from two perspectives: 1. To monitor changes in the static analyzer's reports on real cod...
33.877437
79
0.59357
918ec124ee8ebd16a1388590607039686385f17b
8,146
py
Python
python/pycamera_tx.py
webbbn/realtime_network_av
973307babd44b0bb5908b688c60b1d3c40a0762d
[ "Apache-2.0" ]
4
2019-03-13T14:37:12.000Z
2019-11-07T07:11:53.000Z
python/pycamera_tx.py
webbbn/realtime-network-av
973307babd44b0bb5908b688c60b1d3c40a0762d
[ "Apache-2.0" ]
null
null
null
python/pycamera_tx.py
webbbn/realtime-network-av
973307babd44b0bb5908b688c60b1d3c40a0762d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) lib_dir = os.path.join(root_dir, "lib") if 'LD_LIBRARY_PATH' not in os.environ: os.environ['LD_LIBRARY_PATH'] = lib_dir try: os.execv(sys.argv[0], sys.argv) except Exception as exc:...
40.527363
156
0.629634
918ee3ec9764c7d8eae13515d5bfee4b3cc16578
8,159
py
Python
tfidf-svc-kmeans-lgbm.py
nicapotato/KaggleNotebooks
5fea648e99a92d21710c635db48c808c3ece82b3
[ "MIT" ]
null
null
null
tfidf-svc-kmeans-lgbm.py
nicapotato/KaggleNotebooks
5fea648e99a92d21710c635db48c808c3ece82b3
[ "MIT" ]
null
null
null
tfidf-svc-kmeans-lgbm.py
nicapotato/KaggleNotebooks
5fea648e99a92d21710c635db48c808c3ece82b3
[ "MIT" ]
1
2021-12-03T11:28:09.000Z
2021-12-03T11:28:09.000Z
# Term Frequency-Inverse Document Frequency, Singular Value Decomposition # K-Means, Light Gradient Boosting Multi-Class Classifier # By Nick Brooks, July 2018 # https://www.kaggle.com/nicapotato import time notebookstart= time.time() import numpy as np # linear algebra import pandas as pd # data processing, CSV file ...
37.426606
116
0.661968
918effa64c80d8a4616c699ce6e815a6717b636f
22,668
py
Python
erp/forms.py
maxtastu/acceslibre
daba86a34ed619914780efbefaf4af5cb2f3a936
[ "MIT" ]
null
null
null
erp/forms.py
maxtastu/acceslibre
daba86a34ed619914780efbefaf4af5cb2f3a936
[ "MIT" ]
null
null
null
erp/forms.py
maxtastu/acceslibre
daba86a34ed619914780efbefaf4af5cb2f3a936
[ "MIT" ]
null
null
null
from functools import reduce from django import forms from django.conf import settings from django.contrib.postgres.forms import SimpleArrayField from django.core.exceptions import ValidationError from django.forms import widgets from django.urls import reverse from django.utils.safestring import mark_safe from erp i...
36.15311
143
0.57901
918f0fe024e562e40796b6ada670b9efa82bb4b6
2,307
py
Python
tests/testing_utils.py
evgeni-nikolaev/DL-DB
32e75ed9235aaf5a6183d7f20cfd2dbd59ccbe18
[ "BSD-3-Clause" ]
1
2021-04-22T00:48:45.000Z
2021-04-22T00:48:45.000Z
tests/testing_utils.py
evgeni-nikolaev/DL-DB
32e75ed9235aaf5a6183d7f20cfd2dbd59ccbe18
[ "BSD-3-Clause" ]
null
null
null
tests/testing_utils.py
evgeni-nikolaev/DL-DB
32e75ed9235aaf5a6183d7f20cfd2dbd59ccbe18
[ "BSD-3-Clause" ]
null
null
null
from labeling_utils import create_labels, sample_labels import pandas as pd import featuretools as ft import os def construct_retail_example(ftens_file='retail_binary_files/ftens.csv', labels_file='retail_binary_files/labels.csv', fl_file='retail_binary_files/...
38.45
96
0.535761
918f4edd5a4ef7fd2b30b3ac16285e7bcbdd175f
509
py
Python
collipa/models/follow_class.py
ywmmmw/collipa
cd0e0f102fcd60992915a2a21d39f1b91f4e39d3
[ "WTFPL" ]
null
null
null
collipa/models/follow_class.py
ywmmmw/collipa
cd0e0f102fcd60992915a2a21d39f1b91f4e39d3
[ "WTFPL" ]
null
null
null
collipa/models/follow_class.py
ywmmmw/collipa
cd0e0f102fcd60992915a2a21d39f1b91f4e39d3
[ "WTFPL" ]
null
null
null
# coding: utf-8 import time from pony import orm from ._base import db, BaseModel class FollowClass(db.Entity, BaseModel): user_id = orm.Required(int) name = orm.Required(str) follow_count = orm.Required(int, default=0) created_at = orm.Required(int, default=int(time.time())) active = orm.Requi...
21.208333
60
0.666012
918f5de11dbc5e8253ddfa6553e5e0d0b6710bd2
311
py
Python
scripts/infra-light.py
hairyspider/tomcam
cedbe186a584cc2b08e070fefd83344ec5393dd0
[ "MIT" ]
null
null
null
scripts/infra-light.py
hairyspider/tomcam
cedbe186a584cc2b08e070fefd83344ec5393dd0
[ "MIT" ]
1
2018-06-08T19:17:47.000Z
2018-06-08T19:17:47.000Z
scripts/infra-light.py
hairyspider/tomcam
cedbe186a584cc2b08e070fefd83344ec5393dd0
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import sys state = "OFF" if len(sys.argv)==2: state = sys.argv[1] print("Setting the state of Socket 1 to ", state) pin=26 GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(pin, GPIO.OUT) if state=="ON": GPIO.output(pin, 0) else: GPIO.output(pin, 1) ###GPIO.cleanup()
12.958333
49
0.681672
918f5ffd2678eb7cf63807f05d89dce03ca36fd4
378
py
Python
oscar/lib/python2.7/site-packages/django_extensions/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django_extensions/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django_extensions/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- VERSION = (1, 9, 0) # Dynamically calculate the version based on VERSION tuple if len(VERSION) > 2 and VERSION[2] is not None: if isinstance(VERSION[2], int): str_version = "%s.%s.%s" % VERSION[:3] else: str_version = "%s.%s_%s" % VERSION[:3] else: str_vers...
27
59
0.584656
918fe36ad4dfea70fdc54d891028c9463687b8cd
1,494
py
Python
hy/lex/exceptions.py
Tony1928/hylang
8aeaace7cd719ab1d00b48808cbd53c67c944cb3
[ "MIT" ]
4
2017-08-09T01:31:56.000Z
2022-01-17T01:11:23.000Z
hy/lex/exceptions.py
woodrush/hy
d9a5acbcc93114031c70fd7ea497e4e59c868e25
[ "MIT" ]
null
null
null
hy/lex/exceptions.py
woodrush/hy
d9a5acbcc93114031c70fd7ea497e4e59c868e25
[ "MIT" ]
null
null
null
# Copyright 2017 the authors. # This file is part of Hy, which is free software licensed under the Expat # license. See the LICENSE. from hy.errors import HyError class LexException(HyError): """Error during the Lexing of a Hython expression.""" def __init__(self, message, lineno, colno, source=None): ...
29.88
77
0.535475
918ffccc9918116c262b49283854f657055fcae9
3,178
py
Python
src/dissertation/writeDissertation.py
dhruvtapasvi/implementation
964980f431517f4548a87172a05107cdf700fb84
[ "MIT" ]
1
2020-05-25T10:24:58.000Z
2020-05-25T10:24:58.000Z
src/dissertation/writeDissertation.py
dhruvtapasvi/implementation
964980f431517f4548a87172a05107cdf700fb84
[ "MIT" ]
1
2017-12-18T02:16:44.000Z
2017-12-18T02:16:44.000Z
src/dissertation/writeDissertation.py
dhruvtapasvi/implementation
964980f431517f4548a87172a05107cdf700fb84
[ "MIT" ]
null
null
null
from dissertation import datasetInfo RECONSTRUCTION_TYPES = ["train", "test"] RECONSTRUCTION_TYPE_NAMES = { "train": "Training", "test": "Testing" } def reconstructionSubfig(dataset, arch, reconstructionType): datasetName = datasetInfo.DATASET_NAMES[dataset] archDescription = datasetInfo.DATASET_A...
32.428571
161
0.598804
918ffe59c47d1aceb504c8b839022c7c2b6f808a
3,128
py
Python
backend/app/main/util/test_data.py
mike42/bring-a-plate
a28f9b221502614466ff53c0f870bc01ca29c311
[ "MIT" ]
2
2016-10-14T03:52:17.000Z
2020-02-25T08:58:40.000Z
backend/app/main/util/test_data.py
mike42/bring-a-plate
a28f9b221502614466ff53c0f870bc01ca29c311
[ "MIT" ]
null
null
null
backend/app/main/util/test_data.py
mike42/bring-a-plate
a28f9b221502614466ff53c0f870bc01ca29c311
[ "MIT" ]
null
null
null
from datetime import datetime from app.main import db from app.main.model.allergen import Allergen from app.main.model.dish import Dish, FoodType from app.main.model.event import Event from app.main.model.host import Host from app.main.model.invitation import Invitation, InvitationPerson from app.main.model.special_pr...
49.650794
106
0.701407
919006ea1d384d153f8234b70e6e44b03faaca2a
9,615
py
Python
erichek/eric_config.py
fossabot/Erichek
8069812ab93936259d99d0f6d09d96aa561ee0ac
[ "MIT" ]
2
2020-06-21T12:02:39.000Z
2020-09-02T15:21:49.000Z
erichek/eric_config.py
fossabot/Erichek
8069812ab93936259d99d0f6d09d96aa561ee0ac
[ "MIT" ]
16
2020-05-06T05:39:33.000Z
2020-05-07T17:32:25.000Z
erichek/eric_config.py
fossabot/Erichek
8069812ab93936259d99d0f6d09d96aa561ee0ac
[ "MIT" ]
3
2019-03-16T18:33:06.000Z
2020-09-25T18:56:37.000Z
# -*- coding: utf-8 -*- # @Author: Kristinita # @Date: 2018-01-02 08:35:59 # @Last Modified time: 2019-05-06 10:37:04 # For pydocstyle: # D301: Use r""", if any backslashes in a docstring r"""Patorjk-HeX ASCII-art font. _____ _____ ...
32.8157
119
0.61092
919019b3249a34bfd768ca387ef295620e493bc7
6,109
py
Python
leetcode_python/Linked_list/merge-k-sorted-lists.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Linked_list/merge-k-sorted-lists.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Linked_list/merge-k-sorted-lists.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
""" You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-list and return it. Example 1: Input: lists = [[1,4,5],[1,3,4],[2,6]] Output: [1,1,2,3,4,4,5,6] Explanation: The linked-lists are: [ 1->4->5, 1->3->4, 2->6 ] m...
26.106838
76
0.529055
9190297d00eef13c1caec3652f154d63f36f0f6a
14,061
py
Python
tests/unit/executors/test_decorators.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
tests/unit/executors/test_decorators.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
2
2021-02-15T01:40:38.000Z
2021-02-15T02:00:21.000Z
tests/unit/executors/test_decorators.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import pytest from jina.executors.decorators import ( as_update_method, as_train_method, as_ndarray, batching, require_train, store_init_kwargs, batching_multi_input, single, single_multi_input, ) def test_as_update_method(): class A: def ...
26.184358
107
0.585591
91905eb0b8547ada7edfd97338e1dc95796c4a4b
376
py
Python
Florence/Solver/__init__.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
65
2017-08-04T10:21:13.000Z
2022-02-21T21:45:09.000Z
Florence/Solver/__init__.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
6
2018-06-03T02:29:20.000Z
2022-01-18T02:30:22.000Z
Florence/Solver/__init__.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
10
2018-05-30T09:44:10.000Z
2021-05-18T08:06:51.000Z
from .LinearSolver import LinearSolver from .FEMSolver import FEMSolver from .LaplacianSolver import LaplacianSolver from .TractionBasedStaggeredSolver import TractionBasedStaggeredSolver from .PotentialBasedStaggeredSolver import PotentialBasedStaggeredSolver from .CoupleStressSolver import CoupleStressSolver from .De...
53.714286
72
0.909574
919080689e07b318afe9ead2a3f243f6dfce19d8
5,691
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/privatelinks/_resource_private_link_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/privatelinks/_resource_private_link_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/privatelinks/_resource_private_link_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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 ...
43.442748
170
0.699526
9190c8c494f9dd93b83522b3283c6d8fefdaeb04
1,474
py
Python
examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
36.85
76
0.774084
9190e9eafa1aa1e6daabb6510f2b50e3374acb74
358
py
Python
jobs/celery.py
phatvo2201/jobportal
d40d7ff258518ebbbd68ead7196ccccd8f82ec79
[ "MIT" ]
null
null
null
jobs/celery.py
phatvo2201/jobportal
d40d7ff258518ebbbd68ead7196ccccd8f82ec79
[ "MIT" ]
null
null
null
jobs/celery.py
phatvo2201/jobportal
d40d7ff258518ebbbd68ead7196ccccd8f82ec79
[ "MIT" ]
null
null
null
from __future__ import absolute_import,unicode_literals import os from celery import Celery os.environ.setdefault('DJANGO_SETTINGS_MODULE','jobs.settings') app=Celery('jobs') app.config_from_object('django.conf:settings',namespace='CELERY') app.autodiscover_tasks() @app.task(bind=True) def debug_task(self): print...
29.833333
65
0.796089
9190f4aaf598049079352a4300317f1c9c436c74
229
py
Python
uploader/migrations/__init__.py
cedadev/arrivals-uploader
c4281eef3a332a535ade5438331d9c3668e6f9be
[ "BSD-3-Clause" ]
null
null
null
uploader/migrations/__init__.py
cedadev/arrivals-uploader
c4281eef3a332a535ade5438331d9c3668e6f9be
[ "BSD-3-Clause" ]
null
null
null
uploader/migrations/__init__.py
cedadev/arrivals-uploader
c4281eef3a332a535ade5438331d9c3668e6f9be
[ "BSD-3-Clause" ]
null
null
null
""" App migrations package. """ __author__ = "William Tucker" __date__ = "2018-06-01" __copyright__ = "Copyright 2019 United Kingdom Research and Innovation" __license__ = "BSD - see LICENSE file in top-level package directory"
32.714286
71
0.755459
91910f87ed4b831f8eb143cb3a13e48fdb6bb395
12,900
py
Python
spyder/preferences/general.py
Nicztin/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
1
2019-09-25T15:08:24.000Z
2019-09-25T15:08:24.000Z
spyder/preferences/general.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
spyder/preferences/general.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ General entry in Preferences. For historical reasons (dating back to Spyder 2) the main class here is called `MainConfigPage` and its associated entry in our con...
45.583039
79
0.602791
919133733fa51e7a1368acb161c7407b6d5c6029
5,718
py
Python
mlapp/handlers/file_storages/aml_run_storage_handler.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
33
2021-02-26T10:41:09.000Z
2021-11-07T12:35:32.000Z
mlapp/handlers/file_storages/aml_run_storage_handler.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
17
2021-03-04T15:37:21.000Z
2021-04-06T12:00:13.000Z
mlapp/handlers/file_storages/aml_run_storage_handler.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
9
2021-03-03T20:02:41.000Z
2021-10-05T13:03:56.000Z
import os import shutil import imghdr from mlapp.handlers.file_storages.file_storage_interface import FileStorageInterface from mlapp.handlers.databases.postgres_handler import PostgresHandler from mlapp.integrations.aml.utils.constants import OUTPUTS_FOLDER, AML_MLAPP_FOLDER from mlapp.utils.general import read_json_f...
44.325581
122
0.673837
91913a646c5253d70cd355de300619caeafa8f5e
1,043
py
Python
test/v1/test_simple.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
test/v1/test_simple.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
test/v1/test_simple.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ """ from __future__ import division, print_function, unicode_literals import pytest import os.path as path from wavestate.iirrational.testing import IIRrational_data from wavestate.iirrational import v1 def test_simple1(browser, plotsections, plot_verbosity): # this opens a live plot...
24.255814
82
0.660594
9191603848ff24bbf408e858ba0d25b33c3b9d8d
11,694
py
Python
paragraphvec/data.py
tagizaade/paragraph-vectors
7aa85f6b878a74d00aaea7d3819a9feccda67ef1
[ "MIT" ]
null
null
null
paragraphvec/data.py
tagizaade/paragraph-vectors
7aa85f6b878a74d00aaea7d3819a9feccda67ef1
[ "MIT" ]
null
null
null
paragraphvec/data.py
tagizaade/paragraph-vectors
7aa85f6b878a74d00aaea7d3819a9feccda67ef1
[ "MIT" ]
null
null
null
import multiprocessing import os import re import signal from math import ceil from os.path import join import numpy as np import torch from numpy.random import choice from torchtext.data import Field, TabularDataset from paragraphvec.utils import DATA_DIR def load_dataset(file_name): """Loads contents from a f...
33.895652
79
0.612023
9191608609c27fe1da1ade194e79e159413c117e
18,445
py
Python
cmds.py
Vgr255/Lexive
610ae3be2d3808adf4c6a67a0eba666a24d31535
[ "MIT" ]
3
2020-11-15T18:13:31.000Z
2021-12-11T01:04:30.000Z
cmds.py
Vgr255/Lexive
610ae3be2d3808adf4c6a67a0eba666a24d31535
[ "MIT" ]
2
2021-05-30T14:38:15.000Z
2021-08-01T17:18:45.000Z
cmds.py
Vgr255/Lexive
610ae3be2d3808adf4c6a67a0eba666a24d31535
[ "MIT" ]
4
2020-11-16T02:16:04.000Z
2021-06-13T21:09:48.000Z
import argparse import random import os from typing import List, Tuple, Optional, Iterable import discord from discord.ext.commands.context import Context from loader import ( casefold, load, mechanics, player_cards, player_mats, nemesis_cards, nemesis_mats, waves, treasure_values...
36.743028
160
0.604717
91916adc9e448da263932399edee30730cbc6386
1,053
py
Python
src/petclaw/classic/solver.py
arashb/pyclaw
dbe0bc28ed801b16c501bdff58012c30f7a90b9f
[ "BSD-3-Clause" ]
1
2018-03-26T11:51:17.000Z
2018-03-26T11:51:17.000Z
src/petclaw/classic/solver.py
arashb/pyclaw
dbe0bc28ed801b16c501bdff58012c30f7a90b9f
[ "BSD-3-Clause" ]
null
null
null
src/petclaw/classic/solver.py
arashb/pyclaw
dbe0bc28ed801b16c501bdff58012c30f7a90b9f
[ "BSD-3-Clause" ]
null
null
null
r""" Module containing the PetClaw solvers This file currently only exists so that these solvers have a different __module__ property, used by pyclaw.solver.Solver.__init__ to determine the containing claw_package to use. """ from __future__ import absolute_import from clawpack.pyclaw.classic import solver class Cla...
29.25
70
0.754986
91918a6aa3bc066ac012e2434ade1fab698dd421
1,940
py
Python
contrib/runners/windows_script_runner/setup.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
contrib/runners/windows_script_runner/setup.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
contrib/runners/windows_script_runner/setup.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Licen...
35.925926
76
0.738144
9191e2f29d3df8795f5da8a4fcb1b4c8bc775db7
6,347
py
Python
ts_utils.py
echaussidon/desi_ec
b76665ae62b06bbbf147b2d9612e2ce0f94a3014
[ "CNRI-Python" ]
null
null
null
ts_utils.py
echaussidon/desi_ec
b76665ae62b06bbbf147b2d9612e2ce0f94a3014
[ "CNRI-Python" ]
null
null
null
ts_utils.py
echaussidon/desi_ec
b76665ae62b06bbbf147b2d9612e2ce0f94a3014
[ "CNRI-Python" ]
null
null
null
# coding: utf-8 # Author : Edmond Chaussidon (CEA) # fonction pour calculer les magnitudes / les probas pour la selection des quasars import sys import os import logging logger = logging.getLogger("TS_utils") import numpy as np import healpy as hp from wrapper import time_measurement from desitarget.myRF import my...
32.716495
124
0.634631
9191f81987715b284cb57bda94e188da2d7e70d3
5,574
py
Python
scripts/alignement.py
vdruelle/BH_hiv_seq
634eb461315b7ccd269b20d2a1cebf6a09cbb97b
[ "MIT" ]
null
null
null
scripts/alignement.py
vdruelle/BH_hiv_seq
634eb461315b7ccd269b20d2a1cebf6a09cbb97b
[ "MIT" ]
null
null
null
scripts/alignement.py
vdruelle/BH_hiv_seq
634eb461315b7ccd269b20d2a1cebf6a09cbb97b
[ "MIT" ]
null
null
null
from Bio import AlignIO, SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio.Align import MultipleSeqAlignment from Bio.Alphabet import SingleLetterAlphabet import numpy as np import pandas as pd import os import pickle from treetime import TreeTime from treetime.utils import parse_dates #######...
33.987805
182
0.694295
9192127359ba11b76b0df8d0c0811330182145e6
1,628
py
Python
blocking/blocking.py
henriquecavalcante/ondux
baf75ad097bfc70229e5dad551079a6ff4ae0726
[ "MIT" ]
3
2018-09-28T17:28:33.000Z
2019-12-04T07:20:47.000Z
blocking/blocking.py
henriquecavalcante/ondux
baf75ad097bfc70229e5dad551079a6ff4ae0726
[ "MIT" ]
1
2018-06-15T15:37:14.000Z
2018-06-15T15:37:14.000Z
blocking/blocking.py
henriquecavalcante/ondux
baf75ad097bfc70229e5dad551079a6ff4ae0726
[ "MIT" ]
2
2019-02-12T18:53:13.000Z
2020-12-18T15:55:43.000Z
import logging from pprint import pprint from blocking.block import Block from utils import functions as F logger = logging.getLogger(__name__) def extract_blocks(input_file, k_base): '''Extract block structure for each value in input file''' r_input = [r for r in F.read_input(input_file)] normalized_in...
33.22449
86
0.643735
91926acfb76f1f0e4e3bb19876042e3c1af50c9e
579
py
Python
tests/repos/test_outageTagsRepo.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
null
null
null
tests/repos/test_outageTagsRepo.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
21
2021-01-08T18:03:32.000Z
2021-02-02T16:17:34.000Z
tests/repos/test_outageTagsRepo.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
null
null
null
import unittest from src.appConfig import initAppConfig from src.repos.outageTags.outageTagsRepo import OutageTagsRepo import datetime as dt class TestOutageTagssRepo(unittest.TestCase): def setUp(self): self.appConf = initAppConfig() def test_getRealTimeOutageTags(self) -> None: """tests the...
32.166667
81
0.720207
9192870edd8e399599e76c7fffe10fbe804f1c7e
1,576
py
Python
src/main/python/sender_udp.py
SmartDogHouse/SmartDogHouse-SurveillanceSystem
06bc08e69f3fad7e4a31e3c1ea1daa3f577197d7
[ "MIT" ]
null
null
null
src/main/python/sender_udp.py
SmartDogHouse/SmartDogHouse-SurveillanceSystem
06bc08e69f3fad7e4a31e3c1ea1daa3f577197d7
[ "MIT" ]
1
2021-07-27T18:27:42.000Z
2021-07-27T18:27:42.000Z
src/main/python/sender_udp.py
SmartDogHouse/SmartDogHouse-SurveillanceSystem
06bc08e69f3fad7e4a31e3c1ea1daa3f577197d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division import cv2 import numpy as np import socket import struct import math class FrameSegment(object): """ Object to break down image frame segment if the size of image exceed maximum datagram size """ MAX_DGRAM = 2**16 MAX_IMAGE_DGRAM = MAX_...
25.836066
83
0.598985
9192a0f67bcc76391dc869f8739ddd9bdec91af4
2,989
py
Python
hyperbox/utils/visualize_darts_cell.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
1
2022-01-17T00:34:14.000Z
2022-01-17T00:34:14.000Z
hyperbox/utils/visualize_darts_cell.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
hyperbox/utils/visualize_darts_cell.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
from collections import namedtuple import sys import os import json import numpy as np from graphviz import Digraph from argparse import ArgumentParser Genotype = namedtuple('Genotype', 'normal normal_concat reduce reduce_concat') PRIMITIVES = [ 'max_pool_3x3', 'avg_pool_3x3', 'skip_connect',...
29.594059
144
0.521579
9192e9d0ae03d1cc54af40a4f03624a6ed6168be
3,237
py
Python
opt/tests/test_relu.py
or-fusion/OptML
c0aae08e8504cbf53a94df2b2da42d33c2bc0ff6
[ "BSD-3-Clause" ]
1
2022-03-17T19:44:44.000Z
2022-03-17T19:44:44.000Z
opt/tests/test_relu.py
or-fusion/OptML
c0aae08e8504cbf53a94df2b2da42d33c2bc0ff6
[ "BSD-3-Clause" ]
null
null
null
opt/tests/test_relu.py
or-fusion/OptML
c0aae08e8504cbf53a94df2b2da42d33c2bc0ff6
[ "BSD-3-Clause" ]
null
null
null
import pytest import pyomo.environ as pyo from pyoml.opt.neuralnet import OptMLBlock, ReLUBigMFormulation, ReLUComplementarityFormulation from pyoml.opt.network_definition import NetworkDefinition def test_two_node_bigm(): """ Test of the following model: 1 1 x0 -------- (1) -------...
30.828571
95
0.493976
91930193d965256696296cd25364cc51d4e12e5d
13,352
py
Python
sfepy/solvers/oseen.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
sfepy/solvers/oseen.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
sfepy/solvers/oseen.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import time import numpy as nm import numpy.linalg as nla from sfepy.base.base import output, get_default, Struct from sfepy.base.log import Log, get_logging_conf from sfepy.solvers.solvers import SolverMeta, NonlinearSolver from .nls import conv_test import six class Stabiliza...
35.322751
81
0.509212
91930fe8c4951a19a39eec9a4b39d8be58bccb93
683
py
Python
bellman/environments/transition_model/keras_model/__init__.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
40
2021-03-24T10:41:56.000Z
2022-03-15T09:50:47.000Z
bellman/environments/transition_model/keras_model/__init__.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
12
2021-03-25T18:36:27.000Z
2021-07-27T11:09:34.000Z
bellman/environments/transition_model/keras_model/__init__.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
3
2021-04-25T03:18:44.000Z
2021-11-14T15:54:34.000Z
# Copyright 2021 The Bellman Contributors # # 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...
37.944444
85
0.768668
919328e6c0d08c6db51c4a5fe58638f80264fc1a
1,195
py
Python
toontown/betaevent/CreditsLines.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
null
null
null
toontown/betaevent/CreditsLines.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
null
null
null
toontown/betaevent/CreditsLines.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2020-02-27T00:44:42.000Z
2020-02-27T00:44:42.000Z
# Name, Role, Text Side dubito = ["Dubito", "Source\nThat Guy"] rocket = ["Rocket", "Lead Programmer\nHackerman"] toonjoey = ["toonjoey", "Ideas\nResident Dinosaur Planet Guy"] leo = ["Leo", "Programmer\nMajor Oofenton"] darch = ["Comrade Napoleon AKA DarchYTPs", "Panda3D Detection System\nFriendly Neighborhood Rito"] ...
49.791667
125
0.719665
91932e4eb8a5fb3d297c6c7fc1698b8a4c4742ba
10,364
py
Python
vm_scripts/launch_local_experiment.py
eubr-atmosphere/a-GPUBench
2628db7e4910d36ab34d4307ffd3587c149c1f63
[ "Apache-2.0" ]
2
2019-04-26T08:27:43.000Z
2020-12-17T16:02:41.000Z
vm_scripts/launch_local_experiment.py
eubr-atmosphere/a-GPUBench
2628db7e4910d36ab34d4307ffd3587c149c1f63
[ "Apache-2.0" ]
6
2020-01-28T23:04:45.000Z
2022-02-10T00:36:21.000Z
vm_scripts/launch_local_experiment.py
eubr-atmosphere/a-GPUBench
2628db7e4910d36ab34d4307ffd3587c149c1f63
[ "Apache-2.0" ]
1
2022-01-18T10:32:53.000Z
2022-01-18T10:32:53.000Z
#!/usr/bin/python3 """ Copyright 2018 Marco Lattuada 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 ...
45.45614
349
0.708124
9193312f4a03f5a09b4bac7ba61c3be6919bcf92
101
py
Python
(2)Data Structures/pprint_depth.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(2)Data Structures/pprint_depth.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(2)Data Structures/pprint_depth.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
from pprint import pprint from pprint_data import data pprint(data,depth =1) pprint(data,depth =2)
14.428571
28
0.782178
91933c47f57aa4ca4d778a0df982ce798d6c344b
7,519
py
Python
ais_area_notice/binary.py
schwehr/ais-areanotice-py
4d09beba37533c7ddc3d2bb9260be74989d44ed2
[ "Apache-2.0" ]
7
2016-08-02T04:49:08.000Z
2021-03-10T05:16:49.000Z
ais_area_notice/binary.py
schwehr/ais-areanotice-py
4d09beba37533c7ddc3d2bb9260be74989d44ed2
[ "Apache-2.0" ]
4
2015-03-31T20:47:03.000Z
2015-04-23T20:48:49.000Z
ais_area_notice/binary.py
schwehr/ais-areanotice-py
4d09beba37533c7ddc3d2bb9260be74989d44ed2
[ "Apache-2.0" ]
null
null
null
"""AIS binary helper functions. Code to convert AIS messages between binary BitVectors and strings. AIS messages are usually encoded with ASCII 6-bit packing within NMEA !AIVDM/!AIVDO messages. This module provides tools to transform between VDM characters, BitVectors and integer values. The encoding is similar to b...
26.663121
79
0.685596
91933ca483f427879cac614ac01129bcd9711e6c
10,841
py
Python
classifier_control/classifier/utils/logger.py
s-tian/mbold
85309809e35777b843dafc37d047b84962f17062
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
16
2021-04-20T20:01:10.000Z
2022-03-29T03:19:39.000Z
classifier_control/classifier/utils/logger.py
s-tian/mbold
85309809e35777b843dafc37d047b84962f17062
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
classifier_control/classifier/utils/logger.py
s-tian/mbold
85309809e35777b843dafc37d047b84962f17062
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
1
2021-05-04T00:32:40.000Z
2021-05-04T00:32:40.000Z
import os import pdb import torchvision import torch from tensorboardX import SummaryWriter import matplotlib.pyplot as plt import numpy as np from classifier_control.classifier.utils.vis_utils import draw_text_image import cv2 from classifier_control.classifier.utils.vis_utils import plot_graph class Logger: def ...
44.430328
123
0.636196
9193516985b8bcf7ea42076992828bf86e0d7378
10,831
py
Python
nni/retiarii/oneshot/pytorch/supermodule/_operation_utils.py
Microsoft/nni
b99e26833287c901f6d808d07ea6882014b05f58
[ "MIT" ]
2,305
2018-09-07T12:42:26.000Z
2019-05-06T20:14:24.000Z
nni/retiarii/oneshot/pytorch/supermodule/_operation_utils.py
Eurus-Holmes/nni
45af1d6b79b355d3e013f1eae2f4c193bbd84074
[ "MIT" ]
379
2018-09-10T10:19:50.000Z
2019-05-06T18:04:46.000Z
nni/retiarii/oneshot/pytorch/supermodule/_operation_utils.py
Eurus-Holmes/nni
45af1d6b79b355d3e013f1eae2f4c193bbd84074
[ "MIT" ]
314
2018-09-08T05:36:08.000Z
2019-05-06T08:48:51.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """Thie file handles "slice" commonly used in mixed-operation. The ``slice_type`` we support here, is "slice" or "list of slice". The reason is that sometimes (e.g., in multi-head attention), the tensor slice could be from multiple parts. This t...
36.840136
105
0.630597
91937140ded6812a9653edf273c9a3797bb78493
7,932
py
Python
somaticseq/somatic_xgboost.py
bioinform/somaticseq
71f058dcdfea78ec056aa46f96a40cc737cc559f
[ "BSD-2-Clause" ]
159
2015-07-26T15:14:44.000Z
2022-03-31T03:29:25.000Z
somaticseq/somatic_xgboost.py
lethalfang/somaticseq
e6f5b1c6b98b324d418407154392778164215a65
[ "BSD-2-Clause" ]
77
2016-06-12T21:44:43.000Z
2022-03-31T19:33:49.000Z
somaticseq/somatic_xgboost.py
lethalfang/somaticseq
e6f5b1c6b98b324d418407154392778164215a65
[ "BSD-2-Clause" ]
64
2015-10-26T01:34:32.000Z
2022-03-14T14:43:08.000Z
#!/usr/bin/env python3 import argparse import xgboost as xgb import pandas as pd import numpy as np import re import logging import somaticseq.ntchange_type as ntchange from copy import copy from somaticseq._version import __version__ DEFAULT_PARAM = {'max_depth': 8, 'nthread': 1, 'objective': 'binary:logistic', 's...
40.469388
207
0.656203
91938f81095578502555540f914dba91251d2601
1,420
py
Python
src/decisionengine_modules/tests/test_factory_client.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
2
2020-03-17T15:51:19.000Z
2022-02-23T15:45:37.000Z
src/decisionengine_modules/tests/test_factory_client.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
358
2020-03-02T20:06:38.000Z
2022-03-28T20:39:01.000Z
src/decisionengine_modules/tests/test_factory_client.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
34
2020-02-24T17:17:11.000Z
2022-01-13T21:50:11.000Z
import os import pprint from unittest import mock import pandas from decisionengine_modules.glideinwms.sources import factory_client from decisionengine_modules.htcondor import htcondor_query from decisionengine_modules.util import testutils as utils DATA_DIR = os.path.join(os.path.dirname(__file__), "data") FIXTUR...
30.212766
76
0.724648
919393fb7316205d2bed7c2f012e46eb1215a25c
7,625
py
Python
Python/dictionary/dictionaryAVL.py
MatteoEsposito/ProgettoInItinereII-IngegneriaDegliAlgoritmi-
c37543d2bc1919d0cdad98dbc018eaf65f221cdf
[ "MIT" ]
null
null
null
Python/dictionary/dictionaryAVL.py
MatteoEsposito/ProgettoInItinereII-IngegneriaDegliAlgoritmi-
c37543d2bc1919d0cdad98dbc018eaf65f221cdf
[ "MIT" ]
null
null
null
Python/dictionary/dictionaryAVL.py
MatteoEsposito/ProgettoInItinereII-IngegneriaDegliAlgoritmi-
c37543d2bc1919d0cdad98dbc018eaf65f221cdf
[ "MIT" ]
null
null
null
from dictBinaryTree import DictBinaryTree from tree.binaryTree import BinaryNode from tree.binaryTree import BinaryTree class DictAVL(DictBinaryTree): def __init__(self): self.tree=BinaryTree() #Node's info now is a triple [key,value,height] def height(self,node): """Restituisce l'altezz...
35.138249
126
0.590426
9193ab97706a10ac1188a38357d48b8b13eef8aa
1,752
py
Python
qatrack/middleware/maintain_filters.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
null
null
null
qatrack/middleware/maintain_filters.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
null
null
null
qatrack/middleware/maintain_filters.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
null
null
null
from django import http from django.conf import settings # based on http://code.djangoproject.com/ticket/3777#comment:4 class FilterPersistMiddleware(object): def process_request(self, request): if '/admin/' not in request.path: return None if 'HTTP_REFERER' not in request.META: ...
33.056604
84
0.581621
9193ac6c3d2fff51bdfd4a153a709fa836940e68
17,689
py
Python
models/official/mask_rcnn/spatial_transform_ops.py
skydooms/tpu
4553e1ed26763769768b9ba6744431908f7e37c0
[ "Apache-2.0" ]
null
null
null
models/official/mask_rcnn/spatial_transform_ops.py
skydooms/tpu
4553e1ed26763769768b9ba6744431908f7e37c0
[ "Apache-2.0" ]
null
null
null
models/official/mask_rcnn/spatial_transform_ops.py
skydooms/tpu
4553e1ed26763769768b9ba6744431908f7e37c0
[ "Apache-2.0" ]
1
2020-01-30T21:12:05.000Z
2020-01-30T21:12:05.000Z
# Copyright 2019 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...
41.523474
80
0.658036
9193cc0cf0b7d3f8bfc0d2996cdc1d0f19b3df9c
1,700
py
Python
data_handler.py
svanschalkwyk/seisplot
6d840a03ab6fde16d4fe8aec22d8fba86bfb280c
[ "Apache-2.0" ]
null
null
null
data_handler.py
svanschalkwyk/seisplot
6d840a03ab6fde16d4fe8aec22d8fba86bfb280c
[ "Apache-2.0" ]
null
null
null
data_handler.py
svanschalkwyk/seisplot
6d840a03ab6fde16d4fe8aec22d8fba86bfb280c
[ "Apache-2.0" ]
null
null
null
import psycopg2 #!/usr/bin/python from psycopg2._psycopg import connection hostname = 'localhost' username = 'postgres' password = 'postgres' database = 'seisplot' connection = None table = \ "CREATE SEQUENCE user_id_seq;" \ "CREATE TABLE public.nav_meta (" \ " id bigint NOT NULL DEFAULT nextval('user_id_seq')," \...
27.419355
148
0.653529
9194132d03db855a63161f228081b547182497f9
3,917
py
Python
tests/test_simulate.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
231
2016-05-30T02:34:45.000Z
2022-03-28T17:00:29.000Z
tests/test_simulate.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
77
2016-03-23T16:28:34.000Z
2021-09-30T22:08:03.000Z
tests/test_simulate.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
103
2016-08-10T19:53:09.000Z
2022-03-16T16:34:38.000Z
import os import re from unittest import TestCase import unittest from decimal import Decimal import logging from supplychainpy import simulate from supplychainpy.model_inventory import analyse_orders_abcxyz_from_file from supplychainpy.sample_data.config import ABS_FILE_PATH from supplychainpy.simulate import summar...
42.11828
126
0.603268
91941b814b07b4d6194979d7698cf23025fc2a10
241
py
Python
see-db.py
tgphelps/bj-python
0ef579bc7ab954b9bad5e2f5c061cda89aaf58bf
[ "MIT" ]
null
null
null
see-db.py
tgphelps/bj-python
0ef579bc7ab954b9bad5e2f5c061cda89aaf58bf
[ "MIT" ]
null
null
null
see-db.py
tgphelps/bj-python
0ef579bc7ab954b9bad5e2f5c061cda89aaf58bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python from sqlitedict import SqliteDict # type: ignore DB_FILE = 'results.db' def main() -> None: db = SqliteDict(DB_FILE) for key in db: print(key) db.close() if __name__ == '__main__': main()
14.176471
49
0.614108
91941c5f1c929ab770bd38f1326440f84d97b146
3,215
py
Python
matlab_proxy/mwi_environment_variables.py
chimmy-changa/dummy-mp-npm-test
0737c988ea569bf05b109721f56b0c3f3a150718
[ "BSD-2-Clause" ]
5
2022-01-13T01:51:44.000Z
2022-03-01T14:32:46.000Z
matlab_proxy/mwi_environment_variables.py
chimmy-changa/dummy-mp-npm-test
0737c988ea569bf05b109721f56b0c3f3a150718
[ "BSD-2-Clause" ]
1
2022-02-15T13:39:41.000Z
2022-02-16T10:29:24.000Z
matlab_proxy/mwi_environment_variables.py
chimmy-changa/dummy-mp-npm-test
0737c988ea569bf05b109721f56b0c3f3a150718
[ "BSD-2-Clause" ]
1
2022-03-28T22:46:42.000Z
2022-03-28T22:46:42.000Z
# Copyright 2021 The MathWorks, Inc. """This file lists and exposes the environment variables which are used by the integration.""" import os def get_env_name_network_license_manager(): """Specifies the path to valid license file or address of a network license server""" return "MLM_LICENSE_FILE" def get_e...
30.046729
102
0.712597
91943004d27c99fe9e54f7e13c27aa9dce0b8fac
469
py
Python
src/utils/loss/__init__.py
Jimmy-Tempest/SaNNs
0e564cae4685b2391a51b0e336ae57e7bd352e84
[ "MIT" ]
null
null
null
src/utils/loss/__init__.py
Jimmy-Tempest/SaNNs
0e564cae4685b2391a51b0e336ae57e7bd352e84
[ "MIT" ]
null
null
null
src/utils/loss/__init__.py
Jimmy-Tempest/SaNNs
0e564cae4685b2391a51b0e336ae57e7bd352e84
[ "MIT" ]
null
null
null
from .categorical_cross_entropy import categorical_cross_entropy from jax import jit, vmap import jax.numpy as np def calc_loss(y_hat, y, loss_fn): """ Description: Calculate the loss. Params: y_hat: np.ndarray The predicted output. y: np.ndarray The true ou...
23.45
64
0.624733
9194568d5af8f1cfbdf6a6312ce29decae48b4a4
4,044
py
Python
fastentrypoints.py
MIT-SPARK/spark_vio_evaluation
8f747065f8a76c5628d5402eba90fd79ee438e58
[ "MIT" ]
15
2020-02-20T09:12:36.000Z
2022-03-31T23:52:00.000Z
fastentrypoints.py
MIT-SPARK/spark_vio_evaluation
8f747065f8a76c5628d5402eba90fd79ee438e58
[ "MIT" ]
17
2020-02-20T22:01:27.000Z
2021-04-27T14:17:43.000Z
fastentrypoints.py
ToniRV/spark_vio_evaluation
9c6826e150f25c2696fe4013537982eca68310e5
[ "MIT" ]
6
2019-09-21T20:57:35.000Z
2021-01-11T15:40:53.000Z
# noqa: D300,D400 # Copyright (c) 2016, Aaron Christianson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright # notice, this...
35.165217
79
0.661721
9194cd159a39c5c5e595d758fd1ba502d6a24a38
1,070
py
Python
setup.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
8
2018-10-05T18:02:24.000Z
2021-02-22T20:24:58.000Z
setup.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
6
2019-02-21T04:33:01.000Z
2021-01-06T20:05:25.000Z
setup.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
6
2018-08-11T21:43:59.000Z
2021-12-21T06:32:12.000Z
from setuptools import setup, find_packages from Cython.Build import cythonize import Cython.Compiler import numpy as np # Allows cimport'ing PBCCalculator Cython.Compiler.Options.cimport_from_pyx = True setup( name = 'sitator', version = '2.0.0', description = 'Unsupervised landmark analysis for jump det...
24.318182
105
0.58972
9194d5d56aa7b314848d2664b548524b66a1c4a9
1,623
py
Python
JM_DRF/snippets/models.py
trowa88/drf_study
2e4f99ae6f9a75227edabf99e340a7f8b75975ca
[ "MIT" ]
2
2017-06-19T16:18:11.000Z
2018-01-24T10:00:12.000Z
JM_DRF/snippets/models.py
trowa88/drf_study
2e4f99ae6f9a75227edabf99e340a7f8b75975ca
[ "MIT" ]
9
2017-06-19T16:18:27.000Z
2021-06-10T20:24:23.000Z
JM_DRF/snippets/models.py
trowa88/drf_study
2e4f99ae6f9a75227edabf99e340a7f8b75975ca
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from pygments import highlight from pygments.formatters.html import HtmlFormatter from pygments.lexers import get_all_lexers, get_lexer_by_name from pygments.styles import get_all_styles LEXERS = [item for item in get_all_lexers() if item[1]] LANGUAGE_CHOICE = s...
41.615385
93
0.696242