hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1bfb09529160e3112f6b7052c050e2180370fa
3,170
py
Python
messenger.py
taidalab/yunba-smarthome
01027f3d86f3424eea335083456d47c614cf3ad2
[ "MIT" ]
12
2016-01-14T15:10:35.000Z
2019-07-15T08:11:40.000Z
messenger.py
taidalab/yunba-smarthome
01027f3d86f3424eea335083456d47c614cf3ad2
[ "MIT" ]
null
null
null
messenger.py
taidalab/yunba-smarthome
01027f3d86f3424eea335083456d47c614cf3ad2
[ "MIT" ]
6
2016-01-27T03:05:37.000Z
2018-08-21T11:58:01.000Z
#!/usr/bin/env python import time import sys import thread from socketIO_client import SocketIO import config import led class Messenger: def __init__(self, message_callback): self.can_pub = False self.first_connect = True print('messenger init') self.message_callback = message_ca...
31.386139
93
0.643218
4a1bfc208e0bd6eb78d218c6cbca937ed3fb2b5a
5,985
py
Python
data/data_scapers/index_exchanges_tickers.py
AlainDaccache98/Quantropy
5d678a802adb4720c17e6ae4c313b1e37db8f313
[ "MIT" ]
1
2021-02-10T03:50:21.000Z
2021-02-10T03:50:21.000Z
data/data_scapers/index_exchanges_tickers.py
AlainDaccache98/Quantropy
5d678a802adb4720c17e6ae4c313b1e37db8f313
[ "MIT" ]
null
null
null
data/data_scapers/index_exchanges_tickers.py
AlainDaccache98/Quantropy
5d678a802adb4720c17e6ae4c313b1e37db8f313
[ "MIT" ]
null
null
null
import unicodedata import requests import config import pandas as pd import os import urllib from bs4 import BeautifulSoup from datetime import datetime def store_to_csv(file_path, tickers): current_date = datetime.now().strftime('%Y-%m-%d') if not os.path.exists(file_path): df = pd.DataFrame.from_dic...
42.147887
201
0.675021
4a1bfc31dac2bc9b0d78adeda1d2cf5fd12fe5a4
153
py
Python
7_kyu/Smallest_Product.py
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
7_kyu/Smallest_Product.py
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
7_kyu/Smallest_Product.py
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
from typing import List from functools import reduce def smallest_product(a: List[List[int]]) -> int: return min(reduce(int.__mul__,it) for it in a)
30.6
50
0.745098
4a1bfc42143fe9dd620f3a8873c2d17fbcdcb993
7,793
py
Python
projectragan/docs/conf.py
hsiaoyi0504/RaGAN
45b84401964af14fb9642071b81b309a9764f055
[ "MIT" ]
1
2019-07-10T17:57:13.000Z
2019-07-10T17:57:13.000Z
projectragan/docs/conf.py
hsiaoyi0504/RaGAN
45b84401964af14fb9642071b81b309a9764f055
[ "MIT" ]
null
null
null
projectragan/docs/conf.py
hsiaoyi0504/RaGAN
45b84401964af14fb9642071b81b309a9764f055
[ "MIT" ]
4
2018-09-12T16:36:09.000Z
2019-01-10T17:02:32.000Z
# -*- coding: utf-8 -*- # # ProjectRaGAN documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values h...
31.808163
80
0.708071
4a1bfdf750c99279f4f32b78d9e5104f72de9ed9
17,107
py
Python
grr/lib/flows/general/collectors_test.py
ethicalhackeragnidhra/Grr
9ff9178396d9d16575e42dded33627cb09ac3af1
[ "Apache-2.0" ]
1
2020-12-18T00:47:19.000Z
2020-12-18T00:47:19.000Z
grr/lib/flows/general/collectors_test.py
ethicalhackeragnidhra/Grr
9ff9178396d9d16575e42dded33627cb09ac3af1
[ "Apache-2.0" ]
null
null
null
grr/lib/flows/general/collectors_test.py
ethicalhackeragnidhra/Grr
9ff9178396d9d16575e42dded33627cb09ac3af1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Test the collector flows. To reduce the size of this module, additional collector flow tests are split out into collectors_*_test.py files. """ import os import mock import psutil from grr import config from grr.client.client_actions import standard from grr.lib import action_mocks from gr...
39.876457
80
0.680248
4a1bfec4845888649be252b5f55e4b20f4453e54
1,086
py
Python
pytglib/api/types/message_game_score.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/message_game_score.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/message_game_score.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class MessageGameScore(Object): """ A new high score was achieved in a game Attributes: ID (:obj:`str`): ``MessageGameScore`` Args: game_message_id (:obj:`int`): Identifier of the message with the game, can be an identifier of a deleted messa...
26.487805
107
0.606814
4a1bfef20caeb2ffb710c534bb60b1a9f2013c03
8,234
py
Python
options/base_options.py
panaali/pytorch-CycleGAN-and-pix2pix
8e1bead0767ecc5fa472cc3fb906e92a14949761
[ "BSD-3-Clause" ]
null
null
null
options/base_options.py
panaali/pytorch-CycleGAN-and-pix2pix
8e1bead0767ecc5fa472cc3fb906e92a14949761
[ "BSD-3-Clause" ]
null
null
null
options/base_options.py
panaali/pytorch-CycleGAN-and-pix2pix
8e1bead0767ecc5fa472cc3fb906e92a14949761
[ "BSD-3-Clause" ]
null
null
null
import argparse import os from util import util import torch import models import data class BaseOptions(): """This class defines options used during both training and test time. It also implements several helper functions such as parsing, printing, and saving the options. It also gathers additional opti...
59.666667
235
0.663711
4a1bff3811660050e546800ceaf67ce1761b81be
4,544
py
Python
sopaper/fetcher/sciencedirect.py
gonzalorodrigo/SoPaper
0246c1baeb3a863cb6415ab769f363eb86267bd6
[ "CC-BY-4.0" ]
158
2015-02-07T13:19:38.000Z
2022-03-02T15:29:22.000Z
sopaper/fetcher/sciencedirect.py
gonzalorodrigo/SoPaper
0246c1baeb3a863cb6415ab769f363eb86267bd6
[ "CC-BY-4.0" ]
8
2015-06-15T04:06:30.000Z
2020-01-25T14:04:02.000Z
sopaper/fetcher/sciencedirect.py
gonzalorodrigo/SoPaper
0246c1baeb3a863cb6415ab769f363eb86267bd6
[ "CC-BY-4.0" ]
39
2016-01-01T07:14:32.000Z
2021-04-26T08:25:02.000Z
#!/usr/bin/env python2 # -*- coding: UTF-8 -*- # File: sciencedirect.py # Date: 一 6月 09 17:06:26 2014 +0000 # Author: Yuxin Wu <ppwwyyxxc@gmail.com> import re from . import register_parser, RecoverableErr from .base import FetcherBase, direct_download from ..uklogger import * from .. import ukconfig from urlparse imp...
35.5
108
0.529489
4a1c0029440fc0519152835375d426f7913f5bf0
2,590
py
Python
store/migrations/0001_initial.py
kshitizJ/Ecommerce_Website_Django
6484a3493b8f24475b8a48923d9465ace98632b3
[ "MIT" ]
3
2021-03-15T04:57:54.000Z
2021-09-06T12:41:08.000Z
store/migrations/0001_initial.py
Omichougule/Ecommerce_Website_Django
6484a3493b8f24475b8a48923d9465ace98632b3
[ "MIT" ]
null
null
null
store/migrations/0001_initial.py
Omichougule/Ecommerce_Website_Django
6484a3493b8f24475b8a48923d9465ace98632b3
[ "MIT" ]
2
2021-03-24T13:59:14.000Z
2021-09-06T12:40:45.000Z
# Generated by Django 3.0.6 on 2021-04-20 10:19 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', ...
43.166667
125
0.572587
4a1c00e8fd71194ad8988183f48a230039976cfc
455
py
Python
plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name='colorsrc', parent_name='histogram2d.hoverlabel.font', **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=p...
23.947368
67
0.604396
4a1c02ad2614fcf49e67404139c13b35d5dec48c
3,232
py
Python
pysnmp-with-texts/CISCO-WAN-CELL-EXT-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-WAN-CELL-EXT-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-WAN-CELL-EXT-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-WAN-CELL-EXT-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-WAN-CELL-EXT-CAPABILITY # Produced by pysmi-0.3.4 at Wed May 1 12:20:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python ve...
104.258065
477
0.784963
4a1c032717f50b5c9d6314a828cb4aa45cfe48e3
102,082
py
Python
bigquery/tests/system.py
conwaychriscosmo/google-cloud-python
8e7b7f8a5f4bb04d13f4d88ec3848f017faf834a
[ "Apache-2.0" ]
null
null
null
bigquery/tests/system.py
conwaychriscosmo/google-cloud-python
8e7b7f8a5f4bb04d13f4d88ec3848f017faf834a
[ "Apache-2.0" ]
40
2019-07-16T10:04:48.000Z
2020-01-20T09:04:59.000Z
bigquery/tests/system.py
conwaychriscosmo/google-cloud-python
8e7b7f8a5f4bb04d13f4d88ec3848f017faf834a
[ "Apache-2.0" ]
2
2019-07-18T00:05:31.000Z
2019-11-27T14:17:22.000Z
# Copyright 2015 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 agreed to in writing, s...
40.142352
89
0.597725
4a1c03420ab12ccb79733f027ec517ead9262377
355
py
Python
client/verta/verta/monitoring/notification_channel/entities/__init__.py
fool-sec-review/modeldb
44e7f3c1af6768c4c23a2d134f9a322fcf0320b5
[ "Apache-2.0" ]
624
2020-01-18T21:10:12.000Z
2022-03-23T12:11:06.000Z
client/verta/verta/monitoring/notification_channel/entities/__init__.py
fool-sec-review/modeldb
44e7f3c1af6768c4c23a2d134f9a322fcf0320b5
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/monitoring/notification_channel/entities/__init__.py
fool-sec-review/modeldb
44e7f3c1af6768c4c23a2d134f9a322fcf0320b5
[ "Apache-2.0" ]
118
2019-04-12T16:01:21.000Z
2022-03-05T16:29:41.000Z
# -*- coding: utf-8 -*- """Entities for defining notification channels in the Verta backend.""" from verta._internal_utils import documentation from ._notification_channel import NotificationChannel, NotificationChannels documentation.reassign_module( [ NotificationChannel, NotificationChannels, ...
23.666667
76
0.746479
4a1c04c5c154dfaabdd144c7568cba698a8e537e
4,094
py
Python
genmod/vae/lower_bound.py
shuiruge/generative_models
a1765a5ff9aeee8c0325f0c5f40b3537bb82accf
[ "MIT" ]
2
2018-11-23T06:46:59.000Z
2020-09-20T14:42:56.000Z
genmod/vae/lower_bound.py
shuiruge/generative_models
a1765a5ff9aeee8c0325f0c5f40b3537bb82accf
[ "MIT" ]
null
null
null
genmod/vae/lower_bound.py
shuiruge/generative_models
a1765a5ff9aeee8c0325f0c5f40b3537bb82accf
[ "MIT" ]
null
null
null
""" Description ----------- Implements the `LossLowerBound` of variational auto-encoder. However, because of its intrinsic large variance, this implementation is not to be employed, but staying here for keeping remind when the Monte-Carlo integral fails. """ import tensorflow as tf from tfutils.monte_carlo_integral i...
31.984375
78
0.631656
4a1c058c31c8135122bd3a7a24f2fe2d6114b984
5,421
py
Python
convert.py
naojibrainmachine/bert-voice-conversion
7a2493b0b2203736c0b05341d682cda15aee3c90
[ "MIT" ]
null
null
null
convert.py
naojibrainmachine/bert-voice-conversion
7a2493b0b2203736c0b05341d682cda15aee3c90
[ "MIT" ]
null
null
null
convert.py
naojibrainmachine/bert-voice-conversion
7a2493b0b2203736c0b05341d682cda15aee3c90
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import math import sys import glob import os import time #np.set_printoptions(threshold = 1e6) from SpeechSynthesizer import speech_synthesizer from PhoneClassifer import phone_classifer from utils.load_data import get_data_ss,default_config,phns,denormalize_db,db2amp,spec2wav...
30.627119
301
0.696735
4a1c0600062b6b24e5b7bc8a9584297e3f557cac
6,766
py
Python
primrose/transformers/categoricals.py
astro313/primrose
891f001e4e198096edb74eea951d27c9ae2a278f
[ "Apache-2.0" ]
38
2019-09-04T17:39:31.000Z
2021-11-09T21:20:24.000Z
primrose/transformers/categoricals.py
astro313/primrose
891f001e4e198096edb74eea951d27c9ae2a278f
[ "Apache-2.0" ]
66
2019-09-05T15:55:19.000Z
2021-11-21T05:36:54.000Z
primrose/transformers/categoricals.py
astro313/primrose
891f001e4e198096edb74eea951d27c9ae2a278f
[ "Apache-2.0" ]
6
2019-12-02T09:05:30.000Z
2021-12-09T16:12:36.000Z
"""Module to run a basic decision tree model Author(s): Mike Skarlinski (michael.skarlinski@weightwatchers.com) """ import pandas as pd import numpy as np import logging from sklearn import preprocessing from primrose.base.transformer import AbstractTransformer class ExplicitCategoricalTransform(AbstractTransf...
29.806167
123
0.586905
4a1c065d5362c291611c39e8bb87ad51a4437bc5
15,449
py
Python
calltree/calltree.py
vadivelmurugank/calltree
2ffb0c6026c2b609182df3c69e11c588ded75415
[ "MIT" ]
null
null
null
calltree/calltree.py
vadivelmurugank/calltree
2ffb0c6026c2b609182df3c69e11c588ded75415
[ "MIT" ]
null
null
null
calltree/calltree.py
vadivelmurugank/calltree
2ffb0c6026c2b609182df3c69e11c588ded75415
[ "MIT" ]
null
null
null
""" calltree.py Purpose ======= * What is the problem statement? * Model the problem. - Equation * How this Project solves the problem? * Use cases * What is the value add? differentiator? The understanding of the codeflow in a larger source of codebase, requires to list the caller and callee relatio...
33.439394
105
0.511554
4a1c06b702794f86d91e058bed98f9eca894f3d4
38
py
Python
AudioRec/__init__.py
joelbarmettlerUZH/AudioRec
4146a775baeb72fa18de22c78820d9f8a2a95667
[ "MIT" ]
5
2020-03-06T04:42:34.000Z
2021-04-23T21:03:34.000Z
AudioRec/__init__.py
joelbarmettlerUZH/AudioRec
4146a775baeb72fa18de22c78820d9f8a2a95667
[ "MIT" ]
1
2018-04-07T09:06:00.000Z
2019-02-09T16:14:43.000Z
AudioRec/__init__.py
joelbarmettlerUZH/AudioRec
4146a775baeb72fa18de22c78820d9f8a2a95667
[ "MIT" ]
2
2020-04-06T12:52:34.000Z
2022-02-16T20:24:23.000Z
from AudioRec.Recorder import Recorder
38
38
0.894737
4a1c06f6f8c3171d8a7e04186cb0a6ec5f95ace5
484
py
Python
28-ImplementStrStr.py
Ergouzii/LeetCode
690e2e69250fc0af52a7eb1957dd3c44904e4859
[ "MIT" ]
null
null
null
28-ImplementStrStr.py
Ergouzii/LeetCode
690e2e69250fc0af52a7eb1957dd3c44904e4859
[ "MIT" ]
null
null
null
28-ImplementStrStr.py
Ergouzii/LeetCode
690e2e69250fc0af52a7eb1957dd3c44904e4859
[ "MIT" ]
null
null
null
class Solution: def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int """ if needle == '': return 0 if not needle in haystack: return -1 start = 0 end = len(needle) for i in ra...
25.473684
45
0.429752
4a1c07f6f10919eda00cd2e709f6f1adb43c24ab
3,744
py
Python
graphs/perception/perception_2nodes/launch/trace_rectify_resize_fpga_streamlined_xrt.launch.py
dirksavage88/acceleration_examples
97140d08d84e53d7c7cc04340dfefe2c4a954117
[ "Apache-2.0" ]
null
null
null
graphs/perception/perception_2nodes/launch/trace_rectify_resize_fpga_streamlined_xrt.launch.py
dirksavage88/acceleration_examples
97140d08d84e53d7c7cc04340dfefe2c4a954117
[ "Apache-2.0" ]
null
null
null
graphs/perception/perception_2nodes/launch/trace_rectify_resize_fpga_streamlined_xrt.launch.py
dirksavage88/acceleration_examples
97140d08d84e53d7c7cc04340dfefe2c4a954117
[ "Apache-2.0" ]
null
null
null
# ____ ____ # / /\/ / # /___/ \ / Copyright (c) 2021, Xilinx®. # \ \ \/ Author: Víctor Mayoral Vilches <victorma@xilinx.com> # \ \ # / / # /___/ /\ # \ \ / \ # \___\/\___\ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may no...
33.72973
74
0.551816
4a1c097bbf86bec181f09f9602dc414601a7819c
14,643
py
Python
hive/db/db_state.py
Doctor-Victor-Frankenstein/hivemind
ffdc9f849df01973c2f42db56a36aedf346d149c
[ "MIT" ]
2
2019-12-13T15:43:41.000Z
2020-02-18T18:18:13.000Z
hive/db/db_state.py
Doctor-Victor-Frankenstein/hivemind
ffdc9f849df01973c2f42db56a36aedf346d149c
[ "MIT" ]
null
null
null
hive/db/db_state.py
Doctor-Victor-Frankenstein/hivemind
ffdc9f849df01973c2f42db56a36aedf346d149c
[ "MIT" ]
null
null
null
"""Hive db state manager. Check if schema loaded, init synced, etc.""" #pylint: disable=too-many-lines import time import logging from hive.db.schema import (setup, reset_autovac, build_metadata, build_metadata_community, teardown, DB_VERSION) from hive.db.adapter import Db log = logging...
44.105422
185
0.617087
4a1c0b0bfc94282040e2d1504b62afc468780c68
1,017
py
Python
test/test_industry.py
roksela/smartrecruiters-python-client
6d0849d173a3d6718b5f0769098f4c76857f637d
[ "MIT" ]
5
2018-03-27T08:20:13.000Z
2022-03-30T06:23:38.000Z
test/test_industry.py
roksela/smartrecruiters-python-client
6d0849d173a3d6718b5f0769098f4c76857f637d
[ "MIT" ]
null
null
null
test/test_industry.py
roksela/smartrecruiters-python-client
6d0849d173a3d6718b5f0769098f4c76857f637d
[ "MIT" ]
2
2018-12-05T04:48:37.000Z
2020-12-17T12:12:12.000Z
# coding: utf-8 """ Unofficial python library for the SmartRecruiters API The SmartRecruiters API provides a platform to integrate services or applications, build apps and create fully customizable career sites. It exposes SmartRecruiters functionality and allows to connect and build software enhancing it. ...
23.651163
237
0.737463
4a1c0b6a51ac99b26802748a61768b85cb8f14cc
8,014
py
Python
implicit_solver/core/data_block.py
vincentbonnetcg/Numerical-Bric-a-Brac
e71f2305d7452de985e5e9fa8935da611b6d9992
[ "MIT" ]
14
2019-05-04T00:42:47.000Z
2021-09-07T09:57:44.000Z
implicit_solver/core/data_block.py
vincentbonnetcg/Numerical-Bric-a-Brac
e71f2305d7452de985e5e9fa8935da611b6d9992
[ "MIT" ]
null
null
null
implicit_solver/core/data_block.py
vincentbonnetcg/Numerical-Bric-a-Brac
e71f2305d7452de985e5e9fa8935da611b6d9992
[ "MIT" ]
5
2020-12-07T21:44:41.000Z
2021-09-13T05:29:54.000Z
""" @author: Vincent Bonnet @description : Array of Structures of Arrays (AoSoA) Single Block Memory Layout (with x, v, b as channels) |-----------------------------| | x[block_size](np.float) | | v[block_size](np.float) | | b[block_size](np.int) | |-----------------------------| |blockInfo_size (...
35.149123
111
0.606938
4a1c0dc229dad69cb12a68bfdf09ca04f472c120
3,425
py
Python
modules/preferences.py
seirl/lcurse
0e177e1d402d38c29c44e48a83b94ecfb886b2e2
[ "Unlicense" ]
null
null
null
modules/preferences.py
seirl/lcurse
0e177e1d402d38c29c44e48a83b94ecfb886b2e2
[ "Unlicense" ]
null
null
null
modules/preferences.py
seirl/lcurse
0e177e1d402d38c29c44e48a83b94ecfb886b2e2
[ "Unlicense" ]
null
null
null
from PyQt5 import Qt from modules import defines class PreferencesDlg(Qt.QDialog): def __init__(self, parent): super(PreferencesDlg, self).__init__(parent) self.settings = Qt.QSettings() print(defines) layout = Qt.QVBoxLayout(self) layout.addWidget(Qt.QLabel(self.tr("WoW...
40.294118
114
0.632117
4a1c0e24fb75540b2d68d782e5f79fe08f78b6f7
2,395
py
Python
eMG_utilities.py
cristianochesi/PMG
eaf57618ba9e1fada3facb3679cdd05a8e0f8bef
[ "MIT" ]
1
2021-12-30T22:30:29.000Z
2021-12-30T22:30:29.000Z
eMG_utilities.py
cristianochesi/e-MGs
eaf57618ba9e1fada3facb3679cdd05a8e0f8bef
[ "MIT" ]
null
null
null
eMG_utilities.py
cristianochesi/e-MGs
eaf57618ba9e1fada3facb3679cdd05a8e0f8bef
[ "MIT" ]
null
null
null
import copy from eMG_complexity_metrics import * def print_offline_measures(t): # fixme: to be expanded print("\n---Offline-Measures------") print("Sentence: " + t.sentence) print("Steps: " + str(t.step)) print("Pending items im mem: " + str(len(t.mg.current_node.mem))) if t.merge_failed: print("Pending word...
27.528736
122
0.640919
4a1c0e871d91900c75f16ac685665610678dd2b6
1,341
py
Python
Part 4 - Clustering/Part 4 - Hierarchical Clustering.py
MichaelGW123/MachineLearning
e89c5a8c7dad425c3550f96ec1c3e76fc1fdb2cb
[ "MIT" ]
null
null
null
Part 4 - Clustering/Part 4 - Hierarchical Clustering.py
MichaelGW123/MachineLearning
e89c5a8c7dad425c3550f96ec1c3e76fc1fdb2cb
[ "MIT" ]
null
null
null
Part 4 - Clustering/Part 4 - Hierarchical Clustering.py
MichaelGW123/MachineLearning
e89c5a8c7dad425c3550f96ec1c3e76fc1fdb2cb
[ "MIT" ]
null
null
null
# Hierarchical Clustering # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd from pathlib import Path # Importing the dataset path = Path(__file__).parent / 'Mall_Customers.csv' dataset = pd.read_csv(path) X = dataset.iloc[:, [3, 4]].values # Using the dendrogram to find...
36.243243
90
0.686801
4a1c100ca5139f6457aae19a4f7139c472b5469d
4,271
py
Python
src/util.py
jportner/kibbe
72d62ba0c1ca206430fc606c72d19eace6329e41
[ "MIT" ]
2
2021-08-17T15:04:38.000Z
2021-12-28T15:41:42.000Z
src/util.py
jportner/kibbe
72d62ba0c1ca206430fc606c72d19eace6329e41
[ "MIT" ]
7
2021-08-24T07:53:19.000Z
2022-01-26T20:45:24.000Z
src/util.py
jportner/kibbe
72d62ba0c1ca206430fc606c72d19eace6329e41
[ "MIT" ]
2
2021-07-15T16:19:44.000Z
2022-01-19T20:25:30.000Z
import json import os from pathlib import PurePath import re import subprocess import time import click import requests def is_tool(name): """Check whether `name` is on PATH and marked as executable.""" # from whichcraft import which from shutil import which return which(name) is not None def is_...
23.211957
88
0.577851
4a1c1043d8d908f02cb9137ad15fe7c692dc2515
246,178
py
Python
python/ccxt/huobi.py
JulesText/ccxt
e9209fa2f0a3f43ebb073248c04829f3f13b4830
[ "MIT" ]
2
2020-05-18T02:01:37.000Z
2020-06-28T07:20:40.000Z
python/ccxt/huobi.py
alimogh/ccxt
518ea1a6d212605aa19deed74991bc525470e5c9
[ "MIT" ]
null
null
null
python/ccxt/huobi.py
alimogh/ccxt
518ea1a6d212605aa19deed74991bc525470e5c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange # ----------------------------------------------------------------------------- try: basestri...
46.944699
355
0.467312
4a1c1095efb36bca53cc80eebea7e585d050641e
286
py
Python
Release/PythonLib/Lib/action.py
wenhulove333/ScutServer
338a50ff577c0e2ef2276a2883a8bfe28517c79b
[ "MIT" ]
2
2017-05-27T13:32:28.000Z
2019-05-28T15:11:33.000Z
Sample/GameRanking/Server/src/GameRanking.Server/PyScript/Lib/action.py
Jesse1205/Scut
3df3adbcd0588fa2657ff110380210236ae45dae
[ "Unlicense" ]
null
null
null
Sample/GameRanking/Server/src/GameRanking.Server/PyScript/Lib/action.py
Jesse1205/Scut
3df3adbcd0588fa2657ff110380210236ae45dae
[ "Unlicense" ]
4
2016-08-27T05:26:16.000Z
2019-12-27T07:07:09.000Z
class HttpParam(): """httpGet参数""" def __init__(self): self.Result = True class DataResult(object): """Action处理结果""" def __init__(self): self.Result = True def getGbLen(str): """获得中英文长度""" return len(str.encode('gb2312'))
17.875
37
0.548951
4a1c10c526ed0937eca297af06283145d7ad89e5
6,464
py
Python
GitMarco/graphics/plotly.py
GitMarco27/GitMarco
2d9dd93a73a6d7b68d63222512a646cdd988909e
[ "MIT" ]
null
null
null
GitMarco/graphics/plotly.py
GitMarco27/GitMarco
2d9dd93a73a6d7b68d63222512a646cdd988909e
[ "MIT" ]
null
null
null
GitMarco/graphics/plotly.py
GitMarco27/GitMarco
2d9dd93a73a6d7b68d63222512a646cdd988909e
[ "MIT" ]
null
null
null
import plotly.graph_objects as go import numpy as np class Scatter3D(object): def __init__(self, x, y, z, ): """ :param x: np.ndarray or list :param y: np.ndarray or list :param z: np.ndarray or list Creat...
32.32
94
0.44539
4a1c1163051ced61d61b5c49ec396849deac51dc
29,214
py
Python
pymatgen/analysis/chemenv/utils/tests/test_graph_utils.py
munrojm/pymatgen
95514da2c1f4bd0ee897e657de768ca987fe05e9
[ "MIT" ]
null
null
null
pymatgen/analysis/chemenv/utils/tests/test_graph_utils.py
munrojm/pymatgen
95514da2c1f4bd0ee897e657de768ca987fe05e9
[ "MIT" ]
3
2021-11-11T16:01:44.000Z
2021-11-24T22:24:18.000Z
pymatgen/analysis/chemenv/utils/tests/test_graph_utils.py
munrojm/pymatgen
95514da2c1f4bd0ee897e657de768ca987fe05e9
[ "MIT" ]
null
null
null
__author__ = "waroquiers" import numpy as np from pymatgen.analysis.chemenv.connectivity.environment_nodes import EnvironmentNode from pymatgen.analysis.chemenv.utils.graph_utils import ( MultiGraphCycle, SimpleGraphCycle, get_delta, ) from pymatgen.util.testing import PymatgenTest class FakeNode(object...
36.932996
114
0.562539
4a1c118d7864fab7e5c8abd48ac72f2724c82d07
2,327
py
Python
server/predictions.py
xhuang98/Dtect
929d01945fd2768032dbb84d8ba1f62069132172
[ "MIT" ]
1
2021-12-25T01:43:43.000Z
2021-12-25T01:43:43.000Z
server/predictions.py
xhuang98/Dtect
929d01945fd2768032dbb84d8ba1f62069132172
[ "MIT" ]
null
null
null
server/predictions.py
xhuang98/Dtect
929d01945fd2768032dbb84d8ba1f62069132172
[ "MIT" ]
1
2021-09-02T15:30:04.000Z
2021-09-02T15:30:04.000Z
from data.models import Authentication from data_analysis import * from data_analysis.los_alamos_processing import * from data_analysis.predict import evaluate from data_analysis import data_config import logging import sentry_sdk from sentry_sdk.integrations.logging import LoggingIntegration sentry_logging = LoggingI...
35.8
115
0.680705
4a1c12d9680468f517a5e1d27519323ada414672
765
py
Python
tests/factories.py
jacobSingh/allbackgammongroup
587dc751461a575dc8f0cf3cedf83eee2e996520
[ "BSD-3-Clause" ]
null
null
null
tests/factories.py
jacobSingh/allbackgammongroup
587dc751461a575dc8f0cf3cedf83eee2e996520
[ "BSD-3-Clause" ]
null
null
null
tests/factories.py
jacobSingh/allbackgammongroup
587dc751461a575dc8f0cf3cedf83eee2e996520
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Factories to help in tests.""" from factory import PostGenerationMethodCall, Sequence from factory.alchemy import SQLAlchemyModelFactory from abg_stats.database import db from abg_stats.user.models import User class BaseFactory(SQLAlchemyModelFactory): """Base factory.""" class Me...
23.90625
66
0.679739
4a1c13e76c247373764208d09224ea14fffd5fb5
3,130
py
Python
setup.py
zidarsk8/orange3-data-sets
4c2606ab3a449b6770727f34c1f045d44f337345
[ "MIT" ]
1
2018-01-03T03:01:48.000Z
2018-01-03T03:01:48.000Z
setup.py
zidarsk8/world_bank_data
4c2606ab3a449b6770727f34c1f045d44f337345
[ "MIT" ]
2
2017-02-17T09:55:40.000Z
2017-07-28T15:33:56.000Z
setup.py
zidarsk8/world_bank_data
4c2606ab3a449b6770727f34c1f045d44f337345
[ "MIT" ]
3
2017-02-08T02:18:42.000Z
2021-04-07T01:20:39.000Z
#!/usr/bin/env python from setuptools import setup ENTRY_POINTS = { # Entry point used to specify packages containing tutorials accessible # from welcome screen. Tutorials are saved Orange Workflows (.ows files). 'orange.widgets.tutorials': ( # Syntax: any_text = path.to.package.containing.tutoria...
31.938776
77
0.565815
4a1c147d8f0afcb3b6fc183c0c7a23dfb1920ae2
13,203
py
Python
main.py
TusharJ3011/Shop-Management-System
baaae7d537d0eeafc33d9a81f06424a8afc7c841
[ "MIT" ]
null
null
null
main.py
TusharJ3011/Shop-Management-System
baaae7d537d0eeafc33d9a81f06424a8afc7c841
[ "MIT" ]
null
null
null
main.py
TusharJ3011/Shop-Management-System
baaae7d537d0eeafc33d9a81f06424a8afc7c841
[ "MIT" ]
null
null
null
from flask import render_template, url_for, Flask, request, redirect, session import datetime as dt import os # Local Files import dbms import security app = Flask(__name__) app.secret_key = os.environ['APP_KEY'] WORKING_AGE_LIMIT_DAYS = int(14 * 365.25) # Global variable for FindProduct.html global f...
30.704651
118
0.643566
4a1c15d41fa7cd8a96f407c3e1c4920d50fd64ca
753
py
Python
posts/migrations/0002_alter_post_author_alter_post_group.py
DenisFrunza/yatube_project
b60fc3d70a9cb75d3e85c4e2edf20ae3ad624964
[ "BSD-3-Clause" ]
null
null
null
posts/migrations/0002_alter_post_author_alter_post_group.py
DenisFrunza/yatube_project
b60fc3d70a9cb75d3e85c4e2edf20ae3ad624964
[ "BSD-3-Clause" ]
null
null
null
posts/migrations/0002_alter_post_author_alter_post_group.py
DenisFrunza/yatube_project
b60fc3d70a9cb75d3e85c4e2edf20ae3ad624964
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 4.0 on 2022-01-05 07:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ('posts', '0001_initial'), ] operations = [ migratio...
28.961538
145
0.62417
4a1c162d561fd310716db5bbe68721a9e5216c28
3,100
py
Python
test/AS/ASFLAGS.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
test/AS/ASFLAGS.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
test/AS/ASFLAGS.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
27.927928
73
0.676129
4a1c16490b55a253cd627688af7d995f4626d1c6
2,994
py
Python
lib/notification_service/tests/test_notification_server.py
Sxnan/ai-flow
a307e21f5982924a8be58366b3bb9da914a7c3c8
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
lib/notification_service/tests/test_notification_server.py
Sxnan/ai-flow
a307e21f5982924a8be58366b3bb9da914a7c3c8
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
lib/notification_service/tests/test_notification_server.py
Sxnan/ai-flow
a307e21f5982924a8be58366b3bb9da914a7c3c8
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) 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 u...
37.898734
97
0.724449
4a1c164929d24c31609b49c4de2e7b0653268bc9
400
py
Python
phonebook_api/api/permissions.py
AygulNas/phonebook_test_lubimovka
94574e42597c3bbdacfba93e9b3c25a593bccf91
[ "MIT" ]
null
null
null
phonebook_api/api/permissions.py
AygulNas/phonebook_test_lubimovka
94574e42597c3bbdacfba93e9b3c25a593bccf91
[ "MIT" ]
null
null
null
phonebook_api/api/permissions.py
AygulNas/phonebook_test_lubimovka
94574e42597c3bbdacfba93e9b3c25a593bccf91
[ "MIT" ]
null
null
null
from rest_framework import permissions class IsAllowedChangeCompanies(permissions.BasePermission): def has_object_permission(self, request, view, obj): if (request.method in permissions.SAFE_METHODS or request.method == 'POST'): return True return (view.action in ['update', ...
36.363636
74
0.6725
4a1c1676721d890d76124e5c91e116998bf50780
7,554
py
Python
somke_detection.py
Turbo-Dynamic-s/Intelligent-Video-Monitoring
6eb732ebaaa8abe56b3b363cebedc1a3d7bba40c
[ "Apache-2.0" ]
null
null
null
somke_detection.py
Turbo-Dynamic-s/Intelligent-Video-Monitoring
6eb732ebaaa8abe56b3b363cebedc1a3d7bba40c
[ "Apache-2.0" ]
null
null
null
somke_detection.py
Turbo-Dynamic-s/Intelligent-Video-Monitoring
6eb732ebaaa8abe56b3b363cebedc1a3d7bba40c
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt from tensorflow.python.keras.applications import ResNet50 from tensorflow.python.keras.applications import VGG16 from tensorflow.python.keras.models import Sequential from tensorflow.python.keras.layers import Dense, Flatten, GlobalAveragePo...
34.81106
112
0.626688
4a1c169f4ebfa985399e2dd8c75c023152b008fe
4,389
py
Python
Fig10/plot_angle.py
TatsuyaHaga/reversereplaymodel_codes
503d545449efab603e18d224fc2f94158d967530
[ "MIT" ]
6
2019-01-12T14:16:42.000Z
2022-03-07T20:51:03.000Z
Fig10/plot_angle.py
elifesciences-publications/reversereplaymodel_codes
579009d260f32b259994d77c8a66877cf6304dee
[ "MIT" ]
null
null
null
Fig10/plot_angle.py
elifesciences-publications/reversereplaymodel_codes
579009d260f32b259994d77c8a66877cf6304dee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import numpy import scipy.stats import matplotlib matplotlib.use("Agg") import pylab import seaborn seaborn.set(context="paper", style="white", palette="deep") Ntrial_nonrandom=int(sys.argv[1]) Ntrial_random=int(sys.argv[2]) angle_novel=[numpy.load("learningON/trial"+str(i)+"/angle_...
42.201923
137
0.766689
4a1c18915f5a65c06d50e7da6cf4666cfcb168f4
14,706
py
Python
nldrp/experiments/fuse_call_level_loso_opt_feats_KL.py
etzinis/nldrp
3b6e24aa86a6d43bfd6f753b346739c00c282de3
[ "MIT" ]
6
2018-10-27T13:16:36.000Z
2020-09-07T17:34:11.000Z
nldrp/experiments/fuse_call_level_loso_opt_feats_KL.py
etzinis/nldrp
3b6e24aa86a6d43bfd6f753b346739c00c282de3
[ "MIT" ]
null
null
null
nldrp/experiments/fuse_call_level_loso_opt_feats_KL.py
etzinis/nldrp
3b6e24aa86a6d43bfd6f753b346739c00c282de3
[ "MIT" ]
2
2018-10-29T16:20:09.000Z
2020-02-12T16:06:52.000Z
"""! \brief Utterance level classification schema by concatenating vectors and performing classification @author Efthymios Tzinis {etzinis@gmail.com} @copyright National Technical University of Athens """ from sklearn.metrics import recall_score from sklearn.metrics import precision_score from sklearn.metrics import ...
34.683962
99
0.607643
4a1c1a632b3929fc2d983ec1fcc7bcb14f808dcc
5,956
py
Python
simulation/controllers/mavic2dji_cnn/mavic2dji_cnn.py
unic-ailab/flockai-working
32939202f372c9cebbfc62ce27a00e3aaf196b3f
[ "MIT" ]
null
null
null
simulation/controllers/mavic2dji_cnn/mavic2dji_cnn.py
unic-ailab/flockai-working
32939202f372c9cebbfc62ce27a00e3aaf196b3f
[ "MIT" ]
null
null
null
simulation/controllers/mavic2dji_cnn/mavic2dji_cnn.py
unic-ailab/flockai-working
32939202f372c9cebbfc62ce27a00e3aaf196b3f
[ "MIT" ]
null
null
null
import pickle from PIL import Image import numpy as np from dlib import cnn_face_detection_model_v1 from controller import Camera from flockai.PyCatascopia.Metrics import * from flockai.interfaces.flockai_ml import FlockAIClassifier from flockai.models.probes.flockai_probe import FlockAIProbe, ProcessCpuUtilizationMet...
41.075862
145
0.65732
4a1c1b1ff53cf1e4e1767c2757adea2ad022d425
7,428
py
Python
utils/string_utils.py
aldoram5/NLP-Utils
41b8f78c91ba32e44caace0f04142ffef96021e2
[ "MIT" ]
null
null
null
utils/string_utils.py
aldoram5/NLP-Utils
41b8f78c91ba32e44caace0f04142ffef96021e2
[ "MIT" ]
null
null
null
utils/string_utils.py
aldoram5/NLP-Utils
41b8f78c91ba32e44caace0f04142ffef96021e2
[ "MIT" ]
null
null
null
# # Set of utility functions helpful for sentence processing and cleaning # stopwords obtained from NLTK (https://github.com/nltk/nltk/blob/develop/LICENSE.txt) # Contractions gotten from https://en.wikipedia.org/wiki/Wikipedia:List_of_English_contractions # import string import re from difflib import SequenceMatcher...
35.203791
119
0.5521
4a1c1b7f3ea9e8289121379ab7cd8d3e1e4871ad
307
py
Python
pyinstaller.py
jmbreuer/strainer
cf8d5fbb0782ca9d9148107c28cdcd66ac2d6927
[ "Unlicense" ]
2
2020-04-10T22:20:14.000Z
2020-05-14T21:35:12.000Z
pyinstaller.py
jmbreuer/strainer
cf8d5fbb0782ca9d9148107c28cdcd66ac2d6927
[ "Unlicense" ]
31
2020-05-21T14:03:53.000Z
2022-03-11T12:04:50.000Z
pyinstaller.py
jmbreuer/strainer
cf8d5fbb0782ca9d9148107c28cdcd66ac2d6927
[ "Unlicense" ]
1
2022-03-09T18:19:55.000Z
2022-03-09T18:19:55.000Z
# PyInstaller insists on executing a script, then fails to recognize runpy.run_module. # This line alone doesn't work either, because PyInstaller doesn't find the __main__ submodule. # We also have to manually add strainer.__main__ as a hidden import for everything to work... from strainer import __main__
61.4
95
0.80456
4a1c1bd586eba1613386ad9c2d20891b3639a739
1,299
py
Python
setup.py
oahzxl/nerfies
9e8b007d8fc7059f6a42e07233c76c4f356d8439
[ "Apache-2.0" ]
716
2021-02-03T08:37:54.000Z
2022-03-31T19:40:45.000Z
setup.py
oahzxl/nerfies
9e8b007d8fc7059f6a42e07233c76c4f356d8439
[ "Apache-2.0" ]
53
2021-02-04T21:07:44.000Z
2022-03-31T15:58:21.000Z
setup.py
oahzxl/nerfies
9e8b007d8fc7059f6a42e07233c76c4f356d8439
[ "Apache-2.0" ]
107
2021-02-03T09:57:48.000Z
2022-03-29T09:19:33.000Z
# Copyright 2021 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 agreed to in writing, ...
35.108108
74
0.711316
4a1c1c95b07ae409bbab4757a1e5ebcf9bd07b66
4,358
py
Python
pymatgen_diffusion/neb/io.py
LyKex/pymatgen-diffusion
266d882d2502d918ca63641c201d7e95b629af7e
[ "BSD-3-Clause" ]
1
2020-08-21T08:29:58.000Z
2020-08-21T08:29:58.000Z
pymatgen_diffusion/neb/io.py
weforever5/pymatgen-diffusion
39181c61357e8fe983fbd3cc9c0b5e94c6feb410
[ "BSD-3-Clause" ]
null
null
null
pymatgen_diffusion/neb/io.py
weforever5/pymatgen-diffusion
39181c61357e8fe983fbd3cc9c0b5e94c6feb410
[ "BSD-3-Clause" ]
1
2020-08-19T08:30:54.000Z
2020-08-19T08:30:54.000Z
# coding: utf-8 # Copyright (c) Materials Virtual Lab. # Distributed under the terms of the BSD License. import copy from pymatgen.io.vasp.sets import MITRelaxSet, MITNEBSet from pymatgen.core import Structure __author__ = 'Austen' class MVLCINEBEndPointSet(MITRelaxSet): """ Class for writing...
30.055172
80
0.592703
4a1c1d43cd07191b9479df097fa9d238b31d9f1f
1,477
py
Python
demo/baidu.py
allyLei/cmnmt
b4310fb4fc9c022c4a94579d009f6243b7d21e82
[ "MIT" ]
null
null
null
demo/baidu.py
allyLei/cmnmt
b4310fb4fc9c022c4a94579d009f6243b7d21e82
[ "MIT" ]
null
null
null
demo/baidu.py
allyLei/cmnmt
b4310fb4fc9c022c4a94579d009f6243b7d21e82
[ "MIT" ]
null
null
null
#-*- encoding:utf-8 -*- import requests import hashlib import uuid class Baidu(object): """ baidu translation """ def __init__(self, appid, key): self.appid = appid self.key = key self.langList = {} self.initLang() def initLang(self): self.langList['ch'...
27.867925
70
0.572783
4a1c1d7e0b98e881d8d58437fe1480d5b2396999
64,274
py
Python
lib/galaxy/webapps/galaxy/controllers/history.py
biomarble/galaxy
5767dbe975e1ce51fec70541d4b89c55609d45ee
[ "CC-BY-3.0" ]
1
2020-03-11T15:17:32.000Z
2020-03-11T15:17:32.000Z
lib/galaxy/webapps/galaxy/controllers/history.py
biomarble/galaxy
5767dbe975e1ce51fec70541d4b89c55609d45ee
[ "CC-BY-3.0" ]
72
2019-06-06T18:52:41.000Z
2022-02-17T02:53:18.000Z
lib/galaxy/webapps/galaxy/controllers/history.py
biomarble/galaxy
5767dbe975e1ce51fec70541d4b89c55609d45ee
[ "CC-BY-3.0" ]
1
2022-03-01T08:07:54.000Z
2022-03-01T08:07:54.000Z
import logging from markupsafe import escape from sqlalchemy import ( and_, false, null, true ) from sqlalchemy.orm import ( eagerload, joinedload, undefer ) import galaxy.util from galaxy import exceptions from galaxy import managers from galaxy import model from galaxy import web from ga...
52.425775
204
0.603183
4a1c1def3e63292a74be551bc02f658588b92f2d
5,945
py
Python
contrib/experimental/great_expectations_experimental/expectations/expect_column_values_url_is_available.py
mmi333/great_expectations
cc9df78596610002c24e2d46f737179e04f31d29
[ "Apache-2.0" ]
1
2022-03-17T08:05:44.000Z
2022-03-17T08:05:44.000Z
contrib/experimental/great_expectations_experimental/expectations/expect_column_values_url_is_available.py
Tchibo/great_expectations
27220336190039148ab91138cb2fd489d2159183
[ "Apache-2.0" ]
null
null
null
contrib/experimental/great_expectations_experimental/expectations/expect_column_values_url_is_available.py
Tchibo/great_expectations
27220336190039148ab91138cb2fd489d2159183
[ "Apache-2.0" ]
null
null
null
""" This is a template for creating custom ColumnMapExpectations. For detailed instructions on how to use it, please see: https://docs.greatexpectations.io/docs/guides/expectations/creating_custom_expectations/how_to_create_custom_column_map_expectations """ import json import urllib.request from typing import Opti...
37.626582
136
0.623886
4a1c1e2a90a351d60f9a86ad21917cfddee58359
2,443
py
Python
tools/Vitis-AI-Quantizer/vai_q_pytorch/pytorch_binding/pytorch_nndct/nn/qat/modules/pooling.py
bluetiger9/Vitis-AI
a7728733bbcfc292ff3afa46b9c8b03e94b740b3
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Quantizer/vai_q_pytorch/pytorch_binding/pytorch_nndct/nn/qat/modules/pooling.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Quantizer/vai_q_pytorch/pytorch_binding/pytorch_nndct/nn/qat/modules/pooling.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.083333
82
0.623823
4a1c1ef98a8ff9b94b735aab0e5fc816a7d944ab
587
py
Python
models.py
CharlieMinaya/Musify-Backend
7678d932a881333570c2975534c961fa1145c004
[ "MIT" ]
null
null
null
models.py
CharlieMinaya/Musify-Backend
7678d932a881333570c2975534c961fa1145c004
[ "MIT" ]
null
null
null
models.py
CharlieMinaya/Musify-Backend
7678d932a881333570c2975534c961fa1145c004
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Song(models.Model): song = models.CharField(max_length=120) artist = models.CharField(max_length=120) genre = models.CharField(max_length=120) release_date = models.IntegerField() def __str__(self): return self....
29.35
64
0.727428
4a1c1f1444436616ff9df53b308c7316b40d61f8
305
py
Python
2016/02/sanders-trump-trade-20160208/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2016/02/sanders-trump-anger-20160208/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2016/02/sanders-trump-anger-20160208/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1eZbdE-8aeUzmDCp-j0BhZgYp5Lu29Bpl8VhVgtokWnI' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.813115
4a1c1f79ddc790ab5ba4966c71f638e1ee78ba6c
1,347
py
Python
src/sage/coding/bounds_catalog.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/coding/bounds_catalog.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/coding/bounds_catalog.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
r""" Index of bounds on the parameters of codes The ``codes.bounds`` object may be used to access the bounds that Sage can compute. {INDEX_OF_FUNCTIONS} .. NOTE:: To import these names into the global namespace, use: sage: from sage.coding.bounds_catalog import * """ from sage.misc.lazy_import import l...
32.071429
118
0.666667
4a1c1f9272411a8a3ac3859fbc8a04fae0b1dffb
1,718
py
Python
z3/fibonacci.py
Wikunia/hakank
030bc928d2efe8dcbc5118bda3f8ae9575d0fd13
[ "MIT" ]
279
2015-01-10T09:55:35.000Z
2022-03-28T02:34:03.000Z
z3/fibonacci.py
Wikunia/hakank
030bc928d2efe8dcbc5118bda3f8ae9575d0fd13
[ "MIT" ]
10
2017-10-05T15:48:50.000Z
2021-09-20T12:06:52.000Z
z3/fibonacci.py
Wikunia/hakank
030bc928d2efe8dcbc5118bda3f8ae9575d0fd13
[ "MIT" ]
83
2015-01-20T03:44:00.000Z
2022-03-13T23:53:06.000Z
#!/usr/bin/python -u # -*- coding: latin-1 -*- # # Fibonacci (bidirectional) in Z3 # # This Z3 model was written by Hakan Kjellerstrand (hakank@gmail.com) # See also my Z3 page: http://hakank.org/z3/ # # from z3 import * # From https://rise4fun.com/Z3/0pld: # """ # (declare-fun fib (Int) Int) # (assert (= 1 (fib 0...
29.62069
122
0.621071
4a1c2009733199f5fc2f350cd792766f30b309a3
413
py
Python
luz/base/tests/test_home.py
HenriqueCCdA/contaDeLuz
c41433eac32f8ff0aca26d44f9cf1f6d227089cd
[ "MIT" ]
null
null
null
luz/base/tests/test_home.py
HenriqueCCdA/contaDeLuz
c41433eac32f8ff0aca26d44f9cf1f6d227089cd
[ "MIT" ]
21
2021-12-06T03:04:01.000Z
2022-01-30T20:13:57.000Z
luz/base/tests/test_home.py
HenriqueCCdA/contaDeLuz
c41433eac32f8ff0aca26d44f9cf1f6d227089cd
[ "MIT" ]
null
null
null
import pytest from http import HTTPStatus from django.test import Client from luz.base.django_assertions import assertion_contains @pytest.fixture def response(client: Client): return client.get('/') def test_home_status_code(response): assert response.status_code == HTTPStatus.OK def test_home_navbar(r...
20.65
82
0.762712
4a1c218d664b10cdd53d3be9e55885a536cf5d70
14,020
py
Python
clients/kratos/python/ory_kratos_client/model/authenticator_assurance_level.py
russelg/sdk
2515b35981784319bd7d58fcf0b5ab85b501b62f
[ "Apache-2.0" ]
77
2020-02-14T17:27:36.000Z
2022-03-25T08:44:52.000Z
clients/kratos/python/ory_kratos_client/model/authenticator_assurance_level.py
russelg/sdk
2515b35981784319bd7d58fcf0b5ab85b501b62f
[ "Apache-2.0" ]
125
2020-02-07T21:45:52.000Z
2022-03-31T12:54:24.000Z
clients/kratos/python/ory_kratos_client/model/authenticator_assurance_level.py
russelg/sdk
2515b35981784319bd7d58fcf0b5ab85b501b62f
[ "Apache-2.0" ]
44
2020-01-31T22:05:47.000Z
2022-03-09T14:41:22.000Z
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
48.013699
507
0.587803
4a1c221aa326bb1cfd7196fe3ed2ed598b4a93c2
858
py
Python
var/spack/repos/builtin/packages/py-isodate/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-isodate/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-isodate/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyIsodate(PythonPackage): """This module implements ISO 8601 date, time and duration parsi...
39
95
0.737762
4a1c22f022314c1dd0f2bd4f19e38547b62cb253
2,603
py
Python
utils/moments.py
victor5as/RieszLearning
cd6aa6a3736b4bf868770ef5002af8ee2f3c41fa
[ "MIT" ]
null
null
null
utils/moments.py
victor5as/RieszLearning
cd6aa6a3736b4bf868770ef5002af8ee2f3c41fa
[ "MIT" ]
null
null
null
utils/moments.py
victor5as/RieszLearning
cd6aa6a3736b4bf868770ef5002af8ee2f3c41fa
[ "MIT" ]
null
null
null
import torch import numpy as np # Returns the moment for the ATE example, for each sample in x def ate_moment_fn(x, test_fn, device): if torch.is_tensor(x): with torch.no_grad(): t1 = torch.cat([torch.ones((x.shape[0], 1)).to(device), x[:, 1:]], dim=1) t0 = torch.cat([torch.zeros((x...
37.185714
90
0.519785
4a1c2464f18c688452a4ca68d2f631fe1788883e
3,221
py
Python
scout/parse/hgnc.py
mhkc/scout
a7162f28c0f3490c3f3376268118fa8e6072a9db
[ "BSD-3-Clause" ]
111
2015-01-15T11:53:20.000Z
2022-03-26T19:55:24.000Z
scout/parse/hgnc.py
mhkc/scout
a7162f28c0f3490c3f3376268118fa8e6072a9db
[ "BSD-3-Clause" ]
2,995
2015-01-15T16:14:20.000Z
2022-03-31T13:36:32.000Z
scout/parse/hgnc.py
mhkc/scout
a7162f28c0f3490c3f3376268118fa8e6072a9db
[ "BSD-3-Clause" ]
55
2015-05-31T19:09:49.000Z
2021-11-01T10:50:31.000Z
import logging from pprint import pprint as pp logger = logging.getLogger(__name__) def parse_hgnc_line(line, header): """Parse an hgnc formated line Args: line(list): A list with hgnc gene info header(list): A list with the header info Returns: hgnc_info(dict): A dictionary wit...
29.550459
77
0.631791
4a1c252599b7749eee7f86f7d803794f77871375
588
py
Python
nni/runtime/platform/__init__.py
qfyin/nni
59a1ccf8eba68b94974e84fc3834f38d851faf89
[ "MIT" ]
1
2021-01-19T02:48:00.000Z
2021-01-19T02:48:00.000Z
nni/runtime/platform/__init__.py
qfyin/nni
59a1ccf8eba68b94974e84fc3834f38d851faf89
[ "MIT" ]
1
2021-01-17T08:53:56.000Z
2021-01-17T08:53:56.000Z
nni/runtime/platform/__init__.py
qfyin/nni
59a1ccf8eba68b94974e84fc3834f38d851faf89
[ "MIT" ]
1
2020-12-21T11:15:54.000Z
2020-12-21T11:15:54.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from ..env_vars import trial_env_vars, dispatcher_env_vars assert dispatcher_env_vars.SDK_PROCESS != 'dispatcher' if trial_env_vars.NNI_PLATFORM is None: from .standalone import * elif trial_env_vars.NNI_PLATFORM == 'unittest': from .te...
36.75
148
0.748299
4a1c25abbcb576f5c2f9bcd6f418bfee58a4696e
50,196
py
Python
gplearn/tests/test_genetic.py
HengruiX/gplearn
922084857b1a333d4d9925bdca315af8be02673d
[ "BSD-3-Clause" ]
null
null
null
gplearn/tests/test_genetic.py
HengruiX/gplearn
922084857b1a333d4d9925bdca315af8be02673d
[ "BSD-3-Clause" ]
null
null
null
gplearn/tests/test_genetic.py
HengruiX/gplearn
922084857b1a333d4d9925bdca315af8be02673d
[ "BSD-3-Clause" ]
null
null
null
"""Testing the Genetic Programming module's underlying datastructure (gplearn.genetic._Program) as well as the classes that use it, gplearn.genetic.SymbolicRegressor and gplearn.genetic.SymbolicTransformer.""" # Author: Trevor Stephens <trevorstephens.com> # # License: BSD 3 clause import pickle import sys from io im...
37.571856
79
0.63768
4a1c25b674a2a04556106c45387c0c8a6dff17d2
1,784
py
Python
asyncio/asyncio03_api/class_with_async_methods/ex03_module_classmethod.py
levs72/pyneng-examples
d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9
[ "MIT" ]
11
2021-04-05T09:30:23.000Z
2022-03-09T13:27:56.000Z
asyncio/asyncio03_api/class_with_async_methods/ex03_module_classmethod.py
levs72/pyneng-examples
d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9
[ "MIT" ]
null
null
null
asyncio/asyncio03_api/class_with_async_methods/ex03_module_classmethod.py
levs72/pyneng-examples
d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9
[ "MIT" ]
11
2021-04-06T03:44:35.000Z
2022-03-04T21:20:40.000Z
from pprint import pprint import asyncio from itertools import repeat import re import asyncssh class CiscoSSH: @classmethod async def connect(cls, ip, username, password): self = CiscoSSH() self.ip = ip self.username = username self.password = password print(f"Подклю...
29.733333
71
0.6037
4a1c260b56af501744c314feb81cb9df80115516
3,481
py
Python
src/experiment3.py
qwerty29544/Volume_nonStationary_acoustics
5b56e0417804b659f88364f7b8abe0f4ea11a68d
[ "Apache-2.0" ]
1
2022-03-28T18:39:38.000Z
2022-03-28T18:39:38.000Z
src/experiment3.py
qwerty29544/Volume_nonStationary_acoustics
5b56e0417804b659f88364f7b8abe0f4ea11a68d
[ "Apache-2.0" ]
null
null
null
src/experiment3.py
qwerty29544/Volume_nonStationary_acoustics
5b56e0417804b659f88364f7b8abe0f4ea11a68d
[ "Apache-2.0" ]
null
null
null
import numpy as np import random from typing import * import matplotlib.pyplot as plt from iterations_lib.python_inspectors import BiCGStab, TwoSGD, ThreeSGD, utils import pandas as pd def plot_iterations(z_history, iteration_space, color="#FF00FF"): z_history = z_history @ z_history.T z_history = z_history[:...
36.642105
141
0.669922
4a1c263d637619294f021a67467b4c659bf91a5d
965
py
Python
tests/test_gini.py
dave452/pl_curves
7d102c1a4c2e0c86958037c906fa067dfb36601c
[ "MIT" ]
null
null
null
tests/test_gini.py
dave452/pl_curves
7d102c1a4c2e0c86958037c906fa067dfb36601c
[ "MIT" ]
null
null
null
tests/test_gini.py
dave452/pl_curves
7d102c1a4c2e0c86958037c906fa067dfb36601c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' unit test for the gini coefficient function ''' from pl_curve import calculate_gini import pandas as pd import math def test_gini_empty(): '''test calculating a gini coefficient with an empty list This will cause some warnings from python ''' gini = calculate_gini(pd.Series(...
26.081081
71
0.68601
4a1c26ff0b24f1b4f7926f61b40b0855aed3bcec
11,492
py
Python
analysis/tables/table_iv.py
HansGiesen/hudson
7642e50279290bf1e4cc930c88eece5ce025b4ed
[ "MIT" ]
null
null
null
analysis/tables/table_iv.py
HansGiesen/hudson
7642e50279290bf1e4cc930c88eece5ce025b4ed
[ "MIT" ]
null
null
null
analysis/tables/table_iv.py
HansGiesen/hudson
7642e50279290bf1e4cc930c88eece5ce025b4ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math import numpy as np import os import pandas as pd import sqlalchemy import yaml from gzip import zlib from pickle import loads resources = ['luts', 'regs', 'dsps', 'brams'] platforms = {'zcu102': 'ZCU102', 'ultra96': 'Ultra96-V2', 'pynq': 'Pynq-Z1'} benchmarks = {'bnn': 'BNN', 'spam...
49.748918
111
0.6937
4a1c2790cae052c37040388653d44d44cd7a6e29
10,337
py
Python
tests/test_chaum_pedersen.py
iadi7ya/electionguard-python
731e32c221850777c0dab45b2fe94f6af67e76e3
[ "MIT" ]
null
null
null
tests/test_chaum_pedersen.py
iadi7ya/electionguard-python
731e32c221850777c0dab45b2fe94f6af67e76e3
[ "MIT" ]
null
null
null
tests/test_chaum_pedersen.py
iadi7ya/electionguard-python
731e32c221850777c0dab45b2fe94f6af67e76e3
[ "MIT" ]
null
null
null
from unittest import TestCase from datetime import timedelta from hypothesis import given, settings, HealthCheck from hypothesis.strategies import integers from electionguard.chaum_pedersen import ( ConstantChaumPedersenProof, make_disjunctive_chaum_pedersen_zero, make_disjunctive_chaum_pedersen_one, ...
38.570896
88
0.679791
4a1c28c4629c1ef051b6dc84ff8f1cad62851610
4,545
py
Python
ogc_search/wet/templatetags/search_extras.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
null
null
null
ogc_search/wet/templatetags/search_extras.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
30
2019-11-19T22:29:48.000Z
2022-03-31T15:37:24.000Z
ogc_search/wet/templatetags/search_extras.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
1
2020-07-15T16:13:06.000Z
2020-07-15T16:13:06.000Z
# coding=utf-8 from babel.dates import format_date import bleach from django import template from django.conf import settings from django.utils.translation import gettext from dateutil import parser import json import markdown2 from urlsafe import url_part_unescape register = template.Library() @register.filter('...
25.391061
75
0.618482
4a1c298ea2bb87deea8d7ea07faea8fb15a05bb6
433
py
Python
autopylot/__init__.py
mattcaldwell/autopylot
3825432c04451300318b2ec0afb637c5f7800a30
[ "MIT" ]
2
2015-05-14T16:24:13.000Z
2015-11-05T18:02:16.000Z
autopylot/__init__.py
mattcaldwell/autopylot
3825432c04451300318b2ec0afb637c5f7800a30
[ "MIT" ]
null
null
null
autopylot/__init__.py
mattcaldwell/autopylot
3825432c04451300318b2ec0afb637c5f7800a30
[ "MIT" ]
null
null
null
from contextlib import contextmanager from .enum import * import urlparse @contextmanager def ignored(*exceptions): ''' inspired by http://hg.python.org/cpython/rev/406b47c64480''' exceptions = exceptions or Exception try: yield except exceptions: pass def formaturl(url): parsed = ...
24.055556
68
0.685912
4a1c2a3a993d7b4c10f2661aed4cbe34490069c4
359
py
Python
src/rl_agents/agents/__init__.py
mateuspontesm/RL-Agents
70274b2b4b95402f03857818733fc0d52aa3e385
[ "BSD-3-Clause" ]
1
2020-10-30T15:40:01.000Z
2020-10-30T15:40:01.000Z
src/rl_agents/agents/__init__.py
mateuspontesm/RL-Agents
70274b2b4b95402f03857818733fc0d52aa3e385
[ "BSD-3-Clause" ]
null
null
null
src/rl_agents/agents/__init__.py
mateuspontesm/RL-Agents
70274b2b4b95402f03857818733fc0d52aa3e385
[ "BSD-3-Clause" ]
null
null
null
""" The :mod:`rl_agents.agents` module includes the RL agents classes and utilities. It includes the MAB variants, tabular methods and Deep RL. """ import rl_agents.agents.mab from rl_agents.agents.tabular import ( # isort:skip QLearningAgent, SarsaAgent, ExpectedSarsaAgent, ) __all__ = ["QLearningAgent...
22.4375
64
0.746518
4a1c2abc8cb8e060ff63c06b1f4fe23d8eb1f833
226
py
Python
tests/test_manage.py
weichecn/fancy-cron
878f0696b2b51a419c02d974e1a9be7da11a199b
[ "MIT" ]
2
2016-05-20T10:29:25.000Z
2017-10-12T13:55:16.000Z
tests/test_manage.py
weichecn/fancy-cron
878f0696b2b51a419c02d974e1a9be7da11a199b
[ "MIT" ]
null
null
null
tests/test_manage.py
weichecn/fancy-cron
878f0696b2b51a419c02d974e1a9be7da11a199b
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from click.testing import CliRunner import manage runner = CliRunner() def test_initdb(): runner.invoke(manage.initdb) def test_destroy(): runner.invoke(manage.destroy)
13.294118
35
0.699115
4a1c2af6ea276808e2e4345df7130a40bd4d12ed
1,395
py
Python
deprecated/examples_robust/hci/enrico_unimodal_0_robust.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
148
2021-03-06T06:54:13.000Z
2022-03-29T19:27:21.000Z
deprecated/examples_robust/hci/enrico_unimodal_0_robust.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
10
2021-07-19T22:57:49.000Z
2022-02-04T03:12:29.000Z
deprecated/examples_robust/hci/enrico_unimodal_0_robust.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
18
2021-07-22T07:17:27.000Z
2022-03-27T16:11:40.000Z
from unimodals.common_models import VGG16, VGG16Slim, DAN, Linear, MLP, VGG11Slim, VGG11Pruned, VGG16Pruned import torch from memory_profiler import memory_usage from robustness.all_in_one import general_train, general_test from datasets.enrico.get_data_robust import get_dataloader_robust from datasets.enrico.get_data ...
34.02439
107
0.784229
4a1c2bcbcb15afce60596d083de508129e784da3
1,121
py
Python
rxsci/state/state_topology.py
maki-nage/rxsci
64c9956752cbdd4c65aa9f054b6b28318a056625
[ "MIT" ]
3
2021-05-03T13:40:46.000Z
2022-03-06T07:59:30.000Z
rxsci/state/state_topology.py
maki-nage/rxsci
64c9956752cbdd4c65aa9f054b6b28318a056625
[ "MIT" ]
9
2020-10-22T21:08:10.000Z
2021-08-05T09:01:26.000Z
rxsci/state/state_topology.py
maki-nage/rxsci
64c9956752cbdd4c65aa9f054b6b28318a056625
[ "MIT" ]
2
2021-01-05T16:48:54.000Z
2021-08-07T12:51:01.000Z
from collections import namedtuple ProbeStateTopology = namedtuple('ProbeStateTopology', ['topology']) ProbeStateTopology.__doc__ = "Event sent to probe for stateful operators" ProbeStateTopology.topology.__doc__ = "The state topology object to fill" StateDef = namedtuple('StateDef', ['name', 'data_type', 'default_v...
36.16129
75
0.663693
4a1c2bd3fe8c88065ba858b2105ff176e816c266
67,972
py
Python
src/calmjs/parse/tests/test_es5_unparser.py
KristobalJunta/calmjs.parse
0ee6a497404a38670ada1ef029a20f8e6f4499e4
[ "MIT" ]
null
null
null
src/calmjs/parse/tests/test_es5_unparser.py
KristobalJunta/calmjs.parse
0ee6a497404a38670ada1ef029a20f8e6f4499e4
[ "MIT" ]
null
null
null
src/calmjs/parse/tests/test_es5_unparser.py
KristobalJunta/calmjs.parse
0ee6a497404a38670ada1ef029a20f8e6f4499e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import unittest import textwrap from functools import partial from calmjs.parse import asttypes from calmjs.parse import es5 from calmjs.parse.ruletypes import Declare from calmjs.parse.ruletypes import Space from calmjs.parse.ruletypes import RequiredSp...
27.005165
79
0.354278
4a1c2c586703908fbc843b4858b011d7c3179e97
11,303
py
Python
cusim/aux.py
js1010/cusim
b37bd96f734c4ddf9ebc7f50ede7e2db3f31d592
[ "Apache-2.0" ]
27
2021-02-20T16:43:19.000Z
2022-02-13T19:40:27.000Z
cusim/aux.py
js1010/cusim
b37bd96f734c4ddf9ebc7f50ede7e2db3f31d592
[ "Apache-2.0" ]
4
2021-03-29T14:06:07.000Z
2021-10-18T08:37:34.000Z
cusim/aux.py
js1010/cusim
b37bd96f734c4ddf9ebc7f50ede7e2db3f31d592
[ "Apache-2.0" ]
6
2021-02-23T07:47:49.000Z
2022-02-22T12:50:24.000Z
# Copyright (c) 2021 Jisang Yoon # All rights reserved. # # This source code is licensed under the Apache 2.0 license found in the # LICENSE file in the root directory of this source tree. import os import re import sys import json import time import logging import logging.handlers import numpy as np import jsmin from ...
33.440828
80
0.613112
4a1c2cf247cd98aa11052a1d3f911cd4f8e7761e
4,390
py
Python
core/domain/value_generators_domain.py
anubhavsinha98/oppia
9a64ea2e91d2f471ce22bd39da77b43dccd5b51f
[ "Apache-2.0" ]
1
2019-08-31T17:06:41.000Z
2019-08-31T17:06:41.000Z
core/domain/value_generators_domain.py
anubhavsinha98/oppia
9a64ea2e91d2f471ce22bd39da77b43dccd5b51f
[ "Apache-2.0" ]
null
null
null
core/domain/value_generators_domain.py
anubhavsinha98/oppia
9a64ea2e91d2f471ce22bd39da77b43dccd5b51f
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
33.51145
78
0.673349
4a1c2eb7a9e4a9ba3506badffb34f60ff13468b4
352
py
Python
articles/admin.py
osama-mohamed/recipe_django
59fb0597b2903ded743b2843ec4d7291cdeddafa
[ "MIT" ]
3
2018-05-02T20:37:11.000Z
2020-10-15T17:19:26.000Z
articles/admin.py
osama-mohamed/recipe_django
59fb0597b2903ded743b2843ec4d7291cdeddafa
[ "MIT" ]
1
2019-06-10T21:35:13.000Z
2019-06-10T21:35:13.000Z
articles/admin.py
osama-mohamed/recipe_django
59fb0597b2903ded743b2843ec4d7291cdeddafa
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Article # Register your models here. class ArticleAdmin(admin.ModelAdmin): list_display = ['id', 'title', 'slug', 'user', 'timestamp', 'updated'] list_display_links = ['id', 'title'] search_fields = ['title', 'content'] raw_id_fields = ['user'] admin.site....
27.076923
72
0.713068
4a1c2f25931cb97c5fb3c85708b2ca45fa546281
1,690
py
Python
hash-table.py
vector8188/AlgorithmAnalysisPython
026ca8bf846a504c5eae1677680306b0462b49b9
[ "MIT" ]
1
2018-02-01T21:54:48.000Z
2018-02-01T21:54:48.000Z
hash-table.py
vector8188/AlgorithmAnalysisPython
026ca8bf846a504c5eae1677680306b0462b49b9
[ "MIT" ]
null
null
null
hash-table.py
vector8188/AlgorithmAnalysisPython
026ca8bf846a504c5eae1677680306b0462b49b9
[ "MIT" ]
null
null
null
class HashTable: def __init__(self): self.size = 11 self.slots = [None] * self.size self.data = [None] * self.size def put(self,key, data): hashvalue = self.hashfunction(key,len(self.slots)) if self.slots[hashvalue] == None: self.slots[hashvalue] = key self.data[hashvalue] = data else: if self....
19.882353
58
0.632544
4a1c319ba07dd615eabb6cadca5e28472498e35e
97
py
Python
WeatherPy/api_keys.py
i-kkwk/PythonAPI_challenge
bd2924e35a64e7f37327f4573abd3ac403d9a019
[ "ADSL" ]
null
null
null
WeatherPy/api_keys.py
i-kkwk/PythonAPI_challenge
bd2924e35a64e7f37327f4573abd3ac403d9a019
[ "ADSL" ]
null
null
null
WeatherPy/api_keys.py
i-kkwk/PythonAPI_challenge
bd2924e35a64e7f37327f4573abd3ac403d9a019
[ "ADSL" ]
null
null
null
# OpenWeatherMap API Key api_key = "KEY HERE PLEASE" # Google API Key g_key = "KEY HERE PLEASE"
16.166667
27
0.721649
4a1c3369c121478c7144984348e3f65347dcafbe
4,509
py
Python
scape/modules/messages.py
toufikhary/BabangChen
a9332c2d0737cd0c6c777f0ad469fe84a16302ab
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
scape/modules/messages.py
toufikhary/BabangChen
a9332c2d0737cd0c6c777f0ad469fe84a16302ab
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
scape/modules/messages.py
toufikhary/BabangChen
a9332c2d0737cd0c6c777f0ad469fe84a16302ab
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """ scape module for purging unneeded messages(usually spam or ot). """ from asyncio import sleep from telethon.error...
31.753521
78
0.616323
4a1c35be8b03edcb689b3ee7d86d6a04a8a02241
1,439
py
Python
anomaly_detection/deep_geo/main.py
ninatu/anomaly_detection
6fa35f3fd35976ce2b857801d288e17f454241b9
[ "Apache-2.0" ]
22
2020-10-21T07:59:33.000Z
2022-03-18T08:07:49.000Z
anomaly_detection/deep_geo/main.py
ninatu/anomaly_detection
6fa35f3fd35976ce2b857801d288e17f454241b9
[ "Apache-2.0" ]
2
2020-10-26T05:19:39.000Z
2021-09-21T18:16:02.000Z
anomaly_detection/deep_geo/main.py
ninatu/anomaly_detection
6fa35f3fd35976ce2b857801d288e17f454241b9
[ "Apache-2.0" ]
7
2020-11-19T12:32:29.000Z
2022-03-06T21:02:30.000Z
""" Copyright (c) 2018 izikgo Copyright (c) 2020 ninatu This file is a modified file of the project: https://github.com/izikgo/AnomalyDetectionTransformations, which was released under MIT License. Go to https://github.com/izikgo/AnomalyDetectionTransformations/blob/master/LICENSE for full license details. """ import...
28.78
109
0.707436
4a1c35f4d25ccb95c791f362d412443e46a7d075
2,855
py
Python
ding/utils/slurm_helper.py
davide97l/DI-engine
d48c93bcd5c07c29f2ce4ac1b7756b8bc255c423
[ "Apache-2.0" ]
1
2022-03-21T16:15:39.000Z
2022-03-21T16:15:39.000Z
ding/utils/slurm_helper.py
jiaruonan/DI-engine
268d77db3cb54401b2cfc83e2bc3ec87c31e7b83
[ "Apache-2.0" ]
null
null
null
ding/utils/slurm_helper.py
jiaruonan/DI-engine
268d77db3cb54401b2cfc83e2bc3ec87c31e7b83
[ "Apache-2.0" ]
null
null
null
import os import subprocess from typing import Optional, Dict, Tuple MANAGER_NODE_TABLE = { '10.198.8': '10.198.8.31', '10.198.6': '10.198.6.31', '10.5.38': '10.5.38.31', '10.5.39': '10.5.38.31', '10.5.36': '10.5.36.31', '10.5.37': '10.5.36.31', '10.10.30': '10.10.30.91', } def get_ip() -...
31.373626
129
0.610858
4a1c36d9055f6a78ee9a38c31c44a46b8ac55922
9,885
py
Python
neuraxle_tensorflow/tensorflow_v1.py
Neuraxio/Neuraxle-TensorFlow
d4ef1b455ce9ba5bedd1d502498c5440bf1af962
[ "Apache-2.0" ]
5
2019-12-31T16:51:44.000Z
2021-08-24T13:58:35.000Z
neuraxle_tensorflow/tensorflow_v1.py
Neuraxio/Neuraxle-TensorFlow
d4ef1b455ce9ba5bedd1d502498c5440bf1af962
[ "Apache-2.0" ]
15
2019-12-23T00:33:05.000Z
2022-03-16T21:20:56.000Z
neuraxle_tensorflow/tensorflow_v1.py
Neuraxio/Neuraxle-TensorFlow
d4ef1b455ce9ba5bedd1d502498c5440bf1af962
[ "Apache-2.0" ]
2
2020-08-27T20:16:29.000Z
2020-11-09T15:58:35.000Z
""" Neuraxle Tensorflow V1 Utility classes ========================================= Neuraxle utility classes for tensorflow v1. .. Copyright 2019, Neuraxio 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 obta...
33.737201
139
0.621345
4a1c36ec5e97a412d9fa13bac236d2532bd4d8f6
2,889
py
Python
Config/setting.py
roperluo32/proxy_pool
d4ed10f00c56b05d82f5e655d55a0ccb72db3180
[ "MIT" ]
null
null
null
Config/setting.py
roperluo32/proxy_pool
d4ed10f00c56b05d82f5e655d55a0ccb72db3180
[ "MIT" ]
null
null
null
Config/setting.py
roperluo32/proxy_pool
d4ed10f00c56b05d82f5e655d55a0ccb72db3180
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: setting.py Description : 配置文件 Author : JHao date: 2019/2/15 ------------------------------------------------- Change Activity: 2019/2/15: -------------------------------------...
30.734043
114
0.471443
4a1c37dc06d7a9f482a22ad7ed3ce2faebc4a235
2,480
py
Python
main.py
cedar10b/travelapp
992b3a14c9d2f9487c09de637304d7aa0165f19e
[ "MIT" ]
1
2016-07-19T09:27:48.000Z
2016-07-19T09:27:48.000Z
main.py
cedar10b/travelapp
992b3a14c9d2f9487c09de637304d7aa0165f19e
[ "MIT" ]
null
null
null
main.py
cedar10b/travelapp
992b3a14c9d2f9487c09de637304d7aa0165f19e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from sql_functions import * # number of cities to include in search N = 100 # number of cities to include in results top = 10 # read and combine dataframes into one dataframe cities = read_table('cit...
33.972603
84
0.621774
4a1c39128472e48dcf36c8127b63f3681fc56a8c
9,541
py
Python
test/test_oneview_uplink_set.py
bryansullins/baremetalesxi-hpesynergyoneview
e4541d02ce1c93bb9a98a07a3a483a9b2ac90bce
[ "MIT" ]
1
2020-12-11T23:38:00.000Z
2020-12-11T23:38:00.000Z
test/test_oneview_uplink_set.py
bryansullins/baremetalesxi-hpesynergyoneview
e4541d02ce1c93bb9a98a07a3a483a9b2ac90bce
[ "MIT" ]
null
null
null
test/test_oneview_uplink_set.py
bryansullins/baremetalesxi-hpesynergyoneview
e4541d02ce1c93bb9a98a07a3a483a9b2ac90bce
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ### # Copyright (2016-2017) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
37.269531
142
0.723719
4a1c3a1e9e1c8909c820d718aa536a57f2da424f
93,272
py
Python
tests/test_iot/test_iot.py
chrisevett/moto
7d44df5266efa8d9406d9f6ed5ccdea49fb3e299
[ "Apache-2.0" ]
2
2021-06-21T17:50:27.000Z
2021-06-21T19:14:21.000Z
tests/test_iot/test_iot.py
chrisevett/moto
7d44df5266efa8d9406d9f6ed5ccdea49fb3e299
[ "Apache-2.0" ]
1
2021-01-26T13:46:32.000Z
2021-01-26T13:46:32.000Z
tests/test_iot/test_iot.py
chrisevett/moto
7d44df5266efa8d9406d9f6ed5ccdea49fb3e299
[ "Apache-2.0" ]
null
null
null
import json import sure # noqa # pylint: disable=unused-import import boto3 from moto import mock_iot, mock_cognitoidentity from botocore.exceptions import ClientError import pytest def generate_thing_group_tree(iot_client, tree_dict, _parent=None): """ Generates a thing group tree given the input tree stru...
39.707109
100
0.696115
4a1c3ae563c55fb1768fea5c4e3eb467237512bd
7,214
py
Python
tests/feature/test_gherkin_terminal_reporter.py
hristiy4n/pytest-bdd
76ed2ece2aa822cdf764b37a8d042227db9ff9c9
[ "MIT" ]
null
null
null
tests/feature/test_gherkin_terminal_reporter.py
hristiy4n/pytest-bdd
76ed2ece2aa822cdf764b37a8d042227db9ff9c9
[ "MIT" ]
null
null
null
tests/feature/test_gherkin_terminal_reporter.py
hristiy4n/pytest-bdd
76ed2ece2aa822cdf764b37a8d042227db9ff9c9
[ "MIT" ]
null
null
null
import textwrap import pytest FEATURE = """\ Feature: Gherkin terminal output feature Scenario: Scenario example 1 Given there is a bar When the bar is accessed Then world explodes """ TEST = """\ from pytest_bdd import given, when, then, scenario @given('there is a bar') def a_bar(): ...
30.697872
115
0.64555
4a1c3bdf5468b4f818b0945e82064c49a9c403c2
17,742
py
Python
pysnmp/CISCO-LWAPP-LINKTEST-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-LWAPP-LINKTEST-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-LWAPP-LINKTEST-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-LWAPP-LINKTEST-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LWAPP-LINKTEST-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:48:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7....
144.243902
2,912
0.776294
4a1c3d8444d85547c8dd9dc83744f0e17ea348a8
848
py
Python
BotHandler.py
MrAlexandrKolesnikov/TelegramBot
a9189d6612dd089289273f7ebe35d2159886d2f6
[ "MIT" ]
null
null
null
BotHandler.py
MrAlexandrKolesnikov/TelegramBot
a9189d6612dd089289273f7ebe35d2159886d2f6
[ "MIT" ]
null
null
null
BotHandler.py
MrAlexandrKolesnikov/TelegramBot
a9189d6612dd089289273f7ebe35d2159886d2f6
[ "MIT" ]
null
null
null
import requests class BotHandler: def __init__(self, token): self.token = token self.api_url = "https://api.telegram.org/bot{}/".format(token) def get_updates(self, offset=None, timeout=30): method = 'getUpdates' params = {'timeout': timeout, 'offset': offset} resp = r...
29.241379
70
0.606132
4a1c3f3e98017cc49dc3b6aebfd42c0faab6306d
1,988
py
Python
aiotieba/tieba_protobuf/PbPageResIdl_pb2.py
Starry-OvO/Tieba-Manager
da50893edd1c4437f45f2ed50ca9f7a94aef9e11
[ "Unlicense" ]
15
2022-02-04T14:36:39.000Z
2022-03-29T08:54:08.000Z
aiotieba/tieba_protobuf/PbPageResIdl_pb2.py
Starry-OvO/Tieba-Manager
da50893edd1c4437f45f2ed50ca9f7a94aef9e11
[ "Unlicense" ]
null
null
null
aiotieba/tieba_protobuf/PbPageResIdl_pb2.py
Starry-OvO/Tieba-Manager
da50893edd1c4437f45f2ed50ca9f7a94aef9e11
[ "Unlicense" ]
6
2022-03-16T05:01:45.000Z
2022-03-29T08:54:09.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: PbPageResIdl.proto """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_...
56.8
800
0.810362
4a1c412ccf28101bab73b9bc5e6cc143ee68b907
6,028
py
Python
sira.py
gino2010/GICG
56f189e099ac09d20d5c15ef882cee779e2b1778
[ "MIT" ]
null
null
null
sira.py
gino2010/GICG
56f189e099ac09d20d5c15ef882cee779e2b1778
[ "MIT" ]
null
null
null
sira.py
gino2010/GICG
56f189e099ac09d20d5c15ef882cee779e2b1778
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Sort IP and Reverse to Address import argparse import re import operator import requests from requests.packages import urllib3 urllib3.disable_warnings() __author__ = 'gino' IGNORE_IP = ['216.', ] ONLY_IP = [] def filter_ip(ip): if ONLY_IP: for item in ONLY_I...
34.25
119
0.519575
4a1c41d1c7fcf350175623d594bac7f8c1d4515f
3,205
py
Python
testing_suite/filtering/test_filter_talon_transcripts.py
kopardev/TALON
8014faed5f982e5e106ec05239e47d65878e76c3
[ "MIT" ]
47
2020-03-31T19:56:11.000Z
2022-03-31T18:00:21.000Z
testing_suite/filtering/test_filter_talon_transcripts.py
kopardev/TALON
8014faed5f982e5e106ec05239e47d65878e76c3
[ "MIT" ]
44
2020-03-23T02:15:08.000Z
2022-03-30T17:27:26.000Z
testing_suite/filtering/test_filter_talon_transcripts.py
kopardev/TALON
8014faed5f982e5e106ec05239e47d65878e76c3
[ "MIT" ]
11
2020-05-13T18:41:23.000Z
2021-12-28T07:48:58.000Z
import os import optparse_mock_filt as omf from talon.post import filter_talon_transcripts as filt def test_filter_lax(): """ Working with our mock dataset, the very lax settings max_frac_A = 1; min_count = 1; min_datasets = 1 ; allow_genomic = True; should give u...
34.836957
80
0.554758
4a1c424922aeed2a4d51cc098ef63c2dc4857227
4,439
py
Python
lib/tracker_base.py
sumeshpremraj/1RM-Tracker
68650659661c7410d8303ee68b481184369e8b42
[ "MIT" ]
null
null
null
lib/tracker_base.py
sumeshpremraj/1RM-Tracker
68650659661c7410d8303ee68b481184369e8b42
[ "MIT" ]
null
null
null
lib/tracker_base.py
sumeshpremraj/1RM-Tracker
68650659661c7410d8303ee68b481184369e8b42
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging import os import matplotlib.pyplot as plt from collections import OrderedDict from googleapiclient.discovery import build from httplib2 import Http from oauth2client import file, client, tools # If modifying these scopes, delete the file token.json SCOPES = 'https://www.googleapis...
38.267241
121
0.528272
4a1c42d1ef573ceca2cf055e53aa8ae53b1360b8
8,274
py
Python
skills/dff_gaming_skill/dialogflows/common/nlg.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
34
2021-08-18T14:51:44.000Z
2022-03-10T14:14:48.000Z
skills/dff_gaming_skill/dialogflows/common/nlg.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
27
2021-08-30T14:42:09.000Z
2022-03-17T22:11:45.000Z
skills/dff_gaming_skill/dialogflows/common/nlg.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
40
2021-08-22T07:13:32.000Z
2022-03-29T11:45:32.000Z
import logging import os import string from datetime import datetime, timedelta from itertools import product import sentry_sdk from dateparser import parse import common.constants as common_constants import common.dialogflow_framework.utils.state as state_utils import common.gaming as common_gaming import dialogflo...
33.497976
116
0.641165
4a1c42d4705892696cacf53b55f43de6bc08677f
12,380
py
Python
Script/clf_final.py
ywu94/Tencent-Ads-Algo-Comp-2020
8f008fc1cc21c832e6bdb76056d12ad357da5475
[ "MIT" ]
27
2020-06-09T18:33:45.000Z
2021-11-15T11:49:54.000Z
Script/clf_final.py
Wannaman/Tencent-Ads-Algo-Comp-2020
8f008fc1cc21c832e6bdb76056d12ad357da5475
[ "MIT" ]
2
2020-06-21T01:58:56.000Z
2020-11-12T18:12:40.000Z
Script/clf_final.py
Wannaman/Tencent-Ads-Algo-Comp-2020
8f008fc1cc21c832e6bdb76056d12ad357da5475
[ "MIT" ]
15
2020-06-07T14:19:57.000Z
2020-07-16T08:27:42.000Z
import numpy as np import torch from torch import nn import torch.nn.functional as F # ========================== # # Utility Layer # # ========================== # class Kmax_Pooling_Layer(nn.Module): def __init__(self, dim, k, **kwargs): super(Kmax_Pooling_Layer, self).__init__(**kwargs) self.dim...
39.807074
177
0.706139
4a1c42fbf8fe30d66fe52b0cd3eea22798d99572
20,545
py
Python
flux_combined_high_binding/model_609.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_609.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_609.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.115741
798
0.804089
4a1c4352dc9152aa0f20a73eb26aa75d6ab13b37
33,932
py
Python
saleor/checkout/utils.py
qylove516/saleor
12b3901f1bc513b57bc0fb3e7e67d740fd77709b
[ "BSD-3-Clause" ]
2
2019-02-21T01:54:54.000Z
2019-02-21T01:55:04.000Z
saleor/checkout/utils.py
qylove516/saleor
12b3901f1bc513b57bc0fb3e7e67d740fd77709b
[ "BSD-3-Clause" ]
null
null
null
saleor/checkout/utils.py
qylove516/saleor
12b3901f1bc513b57bc0fb3e7e67d740fd77709b
[ "BSD-3-Clause" ]
null
null
null
"""Cart-related utility functions.""" from datetime import date, timedelta from functools import wraps from uuid import UUID from django.conf import settings from django.contrib import messages from django.db import transaction from django.db.models import Sum from django.utils.encoding import smart_text from django.u...
36.329764
79
0.688318
4a1c43f716739e661d8a5ef3da8a82e46db68eb5
18,427
py
Python
code/default/python27/1.0/lib/noarch/front_base/http2_connection.py
wuyongwen/XX-Net
313aefd862b8f230f7c61dc29db1b2b93a17e6ab
[ "BSD-2-Clause" ]
null
null
null
code/default/python27/1.0/lib/noarch/front_base/http2_connection.py
wuyongwen/XX-Net
313aefd862b8f230f7c61dc29db1b2b93a17e6ab
[ "BSD-2-Clause" ]
null
null
null
code/default/python27/1.0/lib/noarch/front_base/http2_connection.py
wuyongwen/XX-Net
313aefd862b8f230f7c61dc29db1b2b93a17e6ab
[ "BSD-2-Clause" ]
null
null
null
import Queue import threading import socket import errno import struct from http_common import * from hyper.common.bufsocket import BufferedSocket from hyper.packages.hyperframe.frame import ( FRAMES, DataFrame, HeadersFrame, PushPromiseFrame, RstStreamFrame, SettingsFrame, Frame, WindowUpdateFrame, GoAway...
38.309771
125
0.612688
4a1c44707caf17cd72ecf16f7c6aa6274cd2c30d
2,720
py
Python
hiddenymouz.py
aliya02/hiddenymouz
bebdda7671315ef8e6a9c3d11eccb8200be0d637
[ "MIT" ]
5
2018-09-19T19:16:07.000Z
2020-11-29T22:06:45.000Z
hiddenymouz.py
aliya02/hiddenymouz
bebdda7671315ef8e6a9c3d11eccb8200be0d637
[ "MIT" ]
null
null
null
hiddenymouz.py
aliya02/hiddenymouz
bebdda7671315ef8e6a9c3d11eccb8200be0d637
[ "MIT" ]
3
2018-09-20T16:52:57.000Z
2020-09-27T15:26:19.000Z
#!/usr/bin/env python import os import sys import base64 import argparse str_decryptor = '<?php /* Mr-Gandrunx - Hiddenymouz */ error_reporting(0); define("__LOCALFILE__",__FILE__); goto RSA; TWOFISH: extract($TripleDES); goto AES; RSA: $TripleDES["\\x69\\x73"] = "\\147\\172\\x69\\x6e\\146\\x6c\\x61\\x74\\145"; goto ...
54.4
1,443
0.741544