hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
706f77988f356002f78f82f354138db4b26d737c
2,989
py
Python
Section_16 _Orientacao_a_objeto/execicios/ex02.py
thiagofreitascarneiro/Python_OOP
037621e334ec7159fe0da937db8418eba6321bdd
[ "MIT" ]
null
null
null
Section_16 _Orientacao_a_objeto/execicios/ex02.py
thiagofreitascarneiro/Python_OOP
037621e334ec7159fe0da937db8418eba6321bdd
[ "MIT" ]
null
null
null
Section_16 _Orientacao_a_objeto/execicios/ex02.py
thiagofreitascarneiro/Python_OOP
037621e334ec7159fe0da937db8418eba6321bdd
[ "MIT" ]
null
null
null
''' Crie uma classe Agenda que pode armazenar 10 pessoas e seja capaz de realizar as seguintes operações: * void armazenaPessoa(String nome, int idade, float altura); * void removePessoa(String nome); * int buscaPessoa(String nome); // informa em que posição da agenda está a pessoa * void imprimeAgenda...
27.675926
142
0.641352
1,675
0.556294
0
0
0
0
0
0
1,391
0.461973
706f947075d48d6e639e35f385287b783e8a5945
3,148
py
Python
get_feature.py
1895-art/stock-price-predict
951a632cd397e969229d793e0c23f0575d154240
[ "MIT" ]
95
2018-07-15T10:04:27.000Z
2022-03-24T11:49:18.000Z
get_feature.py
1895-art/stock-price-predict
951a632cd397e969229d793e0c23f0575d154240
[ "MIT" ]
3
2019-01-18T08:09:57.000Z
2020-01-07T13:19:32.000Z
get_feature.py
kaka-lin/stock-price-predict
951a632cd397e969229d793e0c23f0575d154240
[ "MIT" ]
27
2018-08-07T05:17:05.000Z
2021-06-20T01:53:38.000Z
import getopt, sys, os import csv import pandas as pd import locale from locale import atof locale.setlocale(locale.LC_NUMERIC, '') def main(): try: opts, args = getopt.getopt(sys.argv[1:], "ho:v:f:", ["help", "output=", "filepath"]) except getopt.GetoptError as err: usage() sys.exit(...
26.233333
101
0.495553
0
0
0
0
0
0
0
0
792
0.247037
7070b93051b38b982ed7f6d291e2d1ee4d9fa685
811
py
Python
graphs.py
meyresearch/ANI-Peptides
84684b484119699cb5458f4c2aed5fa8a482c315
[ "Apache-2.0" ]
1
2022-03-31T16:43:55.000Z
2022-03-31T16:43:55.000Z
graphs.py
meyresearch/ANI-Peptides
84684b484119699cb5458f4c2aed5fa8a482c315
[ "Apache-2.0" ]
null
null
null
graphs.py
meyresearch/ANI-Peptides
84684b484119699cb5458f4c2aed5fa8a482c315
[ "Apache-2.0" ]
null
null
null
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import matplotlib.ticker as tkr import os import openmm.unit as unit output_dir = "/home/mbowley/ANI-Peptides/outputs/equilibration_aaa_capped_amber_121250_310322" STATE_DATA_FN = "equilibration_state_data.csv" # Make some graphs report = pd.re...
36.863636
139
0.750925
0
0
0
0
0
0
0
0
275
0.339088
7070e1e2b4357ac3610eef2cb5402b0e25e73572
13,883
py
Python
resources/lib/api/api_requests.py
sajo84/plugin.video.netflix
757cd2866f2c89c777d12a2772484fe675743543
[ "MIT" ]
null
null
null
resources/lib/api/api_requests.py
sajo84/plugin.video.netflix
757cd2866f2c89c777d12a2772484fe675743543
[ "MIT" ]
null
null
null
resources/lib/api/api_requests.py
sajo84/plugin.video.netflix
757cd2866f2c89c777d12a2772484fe675743543
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2018 Caphm (original implementation module) Methods to execute requests to Netflix API SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ from __future__ import absolute_imp...
40.832353
119
0.644961
0
0
0
0
7,115
0.512497
0
0
5,228
0.376576
707187b48b45b72042bc1f7d90faf6f81262ae8b
1,138
py
Python
cybox/test/common/extracted_features_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/test/common/extracted_features_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/test/common/extracted_features_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
1
2019-04-16T18:37:32.000Z
2019-04-16T18:37:32.000Z
# Copyright (c) 2014, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.common import ExtractedFeatures from cybox.test import EntityTestCase # Need to do this so the binding class is registered. import cybox.bindings.cybox_common from cybox.bindings.address...
33.470588
77
0.672232
657
0.577329
0
0
0
0
0
0
542
0.476274
7071e73ce6bf98c0a8ebbcf53ffea1005ca30c0c
5,640
py
Python
openslides/motions/config_variables.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
openslides/motions/config_variables.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
openslides/motions/config_variables.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
from django.core.validators import MinValueValidator from openslides.core.config import ConfigVariable from openslides.poll.models import PERCENT_BASE_CHOICES from .models import Workflow def get_workflow_choices(): """ Returns a list of all workflows to be used as choices for the config variable 'motio...
30.989011
98
0.626064
0
0
5,119
0.907624
0
0
0
0
2,483
0.440248
7071f4925611f43a47a55fea91ffd98ac1480e78
22,743
py
Python
spect.py
philips-software/random_forest
5cbc95aa57ac33260720afd3fc779e7d71b5658c
[ "MIT" ]
2
2020-01-09T23:26:30.000Z
2021-01-27T18:34:15.000Z
spect.py
Charterhouse/random_forest
b842f08fee1054dbff78b6fb3afd4006a7f14a6d
[ "MIT" ]
null
null
null
spect.py
Charterhouse/random_forest
b842f08fee1054dbff78b6fb3afd4006a7f14a6d
[ "MIT" ]
2
2020-03-03T18:30:14.000Z
2021-09-06T13:55:06.000Z
from mpyc.runtime import mpc from src.dataset import ObliviousDataset, Sample from src.output import output from src.secint import secint as s from src.forest import train_forest def sample(ins, out): return Sample([s(i) for i in ins], s(out)) spect_samples = ObliviousDataset.create( sample([1, 0, 0, 0, 1,...
77.357143
83
0.358
0
0
0
0
0
0
235
0.010333
26
0.001143
70727332781524d67d9e08873ec4e97cf38aa95f
6,578
py
Python
projects/wgan/gaussian_gan.py
niujinshuchong/stochastic_processes
ea2538d2f09c39bec1834df5addd37e0699a88bf
[ "MIT" ]
null
null
null
projects/wgan/gaussian_gan.py
niujinshuchong/stochastic_processes
ea2538d2f09c39bec1834df5addd37e0699a88bf
[ "MIT" ]
null
null
null
projects/wgan/gaussian_gan.py
niujinshuchong/stochastic_processes
ea2538d2f09c39bec1834df5addd37e0699a88bf
[ "MIT" ]
null
null
null
import argparse import os import numpy as np import math import sys import matplotlib.pyplot as plt import torchvision.transforms as transforms from torchvision.utils import save_image import random from math import * from torch.utils.data import DataLoader from torchvision import datasets from torch.autograd import Va...
33.390863
129
0.594862
1,554
0.236242
0
0
0
0
0
0
1,094
0.166312
707383f583ad7bbda06c20e6e87636595bd3dd55
1,302
py
Python
_669.py
elfgzp/leetCode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
3
2019-04-12T06:22:56.000Z
2019-05-04T04:25:01.000Z
_669.py
elfgzp/Leetcode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
null
null
null
_669.py
elfgzp/Leetcode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'gzp' # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None from utils import Tree class Solution(object): def trimBST(self, root, L, R): """ :...
22.067797
52
0.523041
788
0.605223
0
0
0
0
0
0
424
0.325653
7074d22367368afc1491da30cd43502d5330386e
3,895
py
Python
spiders/a85.py
senlyu163/crawler
ecf95f7b356c726922b5e5d90000fda3e16ae90d
[ "Apache-2.0" ]
null
null
null
spiders/a85.py
senlyu163/crawler
ecf95f7b356c726922b5e5d90000fda3e16ae90d
[ "Apache-2.0" ]
null
null
null
spiders/a85.py
senlyu163/crawler
ecf95f7b356c726922b5e5d90000fda3e16ae90d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from ..utils import extract_CN_from_content from ..items import ScrapySpiderItem import re from scrapy_splash import SplashRequest class A85Spider(CrawlSpider): name = '85' allowe...
44.261364
149
0.567394
3,630
0.931964
555
0.14249
0
0
0
0
1,209
0.310398
7074f909c5703484cedced7916b80fe2527f9870
118
py
Python
src/GUM_Dispenser/__init__.py
jrdnfike/GUM_Dispenser
b2655339445af4b1fb328676e2ec9f239dcd6bfc
[ "MIT" ]
null
null
null
src/GUM_Dispenser/__init__.py
jrdnfike/GUM_Dispenser
b2655339445af4b1fb328676e2ec9f239dcd6bfc
[ "MIT" ]
null
null
null
src/GUM_Dispenser/__init__.py
jrdnfike/GUM_Dispenser
b2655339445af4b1fb328676e2ec9f239dcd6bfc
[ "MIT" ]
null
null
null
__all__ = ['GUM_Dispenser_Main', 'GUM_setup_parser', 'GUM_Describe_Source', 'GUM_Generate_NOMNOML', 'GUM_Exceptions']
59
117
0.79661
0
0
0
0
0
0
0
0
97
0.822034
70755d5d03c099f6085f0bb0e914a4c7034022e9
2,589
py
Python
skeleton/functional.py
dogoncouch/dogoncouch-misc
46e020cc541cc6cf19edc0114a73f24e96ce15d0
[ "MIT" ]
3
2020-02-05T07:25:01.000Z
2021-12-24T20:08:03.000Z
skeleton/functional.py
dogoncouch/dogoncouch-misc
46e020cc541cc6cf19edc0114a73f24e96ce15d0
[ "MIT" ]
null
null
null
skeleton/functional.py
dogoncouch/dogoncouch-misc
46e020cc541cc6cf19edc0114a73f24e96ce15d0
[ "MIT" ]
2
2018-02-24T18:59:29.000Z
2020-06-14T15:15:19.000Z
#!/usr/bin/env python # MIT License # # Copyright (c) 2017 Dan Persons (dpersonsdev@gmail.com) # # 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 limi...
28.450549
80
0.679413
0
0
0
0
0
0
0
0
1,492
0.576284
7076835d176f91ff169e5946974bfd4dbfe39989
14,077
py
Python
src/silx/gui/plot/tools/RadarView.py
rnwatanabe/silx
b0395f4a06c048b7778dc04ada828edd195ef02d
[ "CC0-1.0", "MIT" ]
94
2016-03-04T17:25:53.000Z
2022-03-18T18:05:23.000Z
src/silx/gui/plot/tools/RadarView.py
rnwatanabe/silx
b0395f4a06c048b7778dc04ada828edd195ef02d
[ "CC0-1.0", "MIT" ]
2,841
2016-01-21T09:06:49.000Z
2022-03-18T14:53:56.000Z
src/silx/gui/plot/tools/RadarView.py
rnwatanabe/silx
b0395f4a06c048b7778dc04ada828edd195ef02d
[ "CC0-1.0", "MIT" ]
71
2015-09-30T08:35:35.000Z
2022-03-16T07:16:28.000Z
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2015-2018 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
38.88674
84
0.617674
12,431
0.883072
0
0
0
0
0
0
4,669
0.331676
707748746f67df072b8d127ebd45987c9f4adb01
1,486
py
Python
purly/py/purly/model/client.py
rmorshea/purly
0d07d6d7636fd81d9c1c14e2df6a32fc28b325f7
[ "MIT" ]
2
2018-08-18T05:39:24.000Z
2018-08-21T19:02:16.000Z
purly/py/purly/model/client.py
rmorshea/purly
0d07d6d7636fd81d9c1c14e2df6a32fc28b325f7
[ "MIT" ]
2
2018-07-27T07:14:19.000Z
2018-07-27T07:17:06.000Z
purly/py/purly/model/client.py
rmorshea/purly
0d07d6d7636fd81d9c1c14e2df6a32fc28b325f7
[ "MIT" ]
null
null
null
import json import time import websocket class Client: def __init__(self, url): self._url = url self._updates = [] self._socket = create_socket(url, connection_timeout=2) def sync(self): recv = [] while True: data = self._socket.recv() if data:...
26.070175
73
0.520188
1,142
0.768506
0
0
0
0
0
0
68
0.04576
707a6afb505aab8fb903afd510d0ef10d069c552
1,378
py
Python
deeplearning-image-gpu/resource/scoring-recipe-helper.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
93
2015-10-28T13:15:45.000Z
2022-03-07T01:16:24.000Z
deeplearning-image-gpu/resource/scoring-recipe-helper.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
130
2015-11-13T17:41:41.000Z
2022-03-30T16:37:44.000Z
deeplearning-image-gpu/resource/scoring-recipe-helper.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
88
2015-10-29T09:36:23.000Z
2021-12-13T20:14:08.000Z
import dataiku import glob import pandas as pd import os def do(payload, config, plugin_config, inputs): if "method" not in payload: return {} client = dataiku.api_client() if payload["method"] == "get-valid-csv-filenames": required_columns = ["id", "className"] sep = "," ...
32.046512
103
0.621916
0
0
0
0
0
0
0
0
227
0.164731
707aa505d5a6e2672f86a0292a8b2705393bee85
1,232
py
Python
practice_problems/prog4_vi.py
vishwasks32/python3-learning
39f39238428727ef0c97c74c8de2570bd84da403
[ "Apache-2.0" ]
3
2018-02-08T21:09:27.000Z
2021-06-15T04:48:46.000Z
practice_problems/prog4_vi.py
vishwasks32/python3-learning
39f39238428727ef0c97c74c8de2570bd84da403
[ "Apache-2.0" ]
null
null
null
practice_problems/prog4_vi.py
vishwasks32/python3-learning
39f39238428727ef0c97c74c8de2570bd84da403
[ "Apache-2.0" ]
1
2018-02-08T21:09:31.000Z
2018-02-08T21:09:31.000Z
#!/usr/bin/env python3 # # Author: Vishwas K Singh # Email: vishwasks32@gmail.com # # Script to convert Celcius Temperature to Farenheit def temp_conv(temp_type, temp_val): ''' Function to convert Temperature from Celcius to farenheit and vice versa''' if(temp_type == 'f'): temp_faren = ((9/5)*t...
35.2
98
0.647727
0
0
0
0
0
0
0
0
563
0.456981
707b95b9e394fd7ccab1823b73b68b69754eb13a
696
py
Python
2020/09/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2020/09/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2020/09/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
import os import sys puzzle_input_path = os.path.join(os.path.dirname(__file__), "input_1.txt") with open(puzzle_input_path) as puzzle_input_file: puzzle_input_raw = puzzle_input_file.read() preamble = 25 numbers = [int(x) for x in puzzle_input_raw.splitlines()] number = next( n for i, n in enumera...
29
81
0.70546
0
0
0
0
0
0
0
0
247
0.354885
707c819d3655d7f0bad5a54fee02df54610cbc35
4,416
py
Python
dualing/core/model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
2
2020-08-03T08:02:48.000Z
2020-11-21T04:11:45.000Z
dualing/core/model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
1
2020-09-29T12:58:33.000Z
2020-09-29T12:58:33.000Z
dualing/core/model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
null
null
null
"""Base architecture and Siamese Network. """ import tensorflow as tf import dualing.utils.exception as e class Base(tf.keras.Model): """A Base class is responsible for easily-implementing the base twin architecture of a Siamese Network. """ def __init__(self, name=''): """Initialization m...
25.234286
97
0.615942
4,302
0.974185
0
0
256
0.057971
0
0
3,298
0.74683
707ebe5c40335557036acfbcae3d06ae69d50f9a
2,642
py
Python
app/dapp_examples/py/media_analysis/image_quality/App.py
TheAdamBC/AdamBC
e854a64c19442e24a50e4d65ce2f2e8f6ea46f4c
[ "BSD-3-Clause" ]
1
2021-12-14T07:28:46.000Z
2021-12-14T07:28:46.000Z
app/dapp_examples/py/media_analysis/image_quality/App.py
TheAdamBC/AdamBC
e854a64c19442e24a50e4d65ce2f2e8f6ea46f4c
[ "BSD-3-Clause" ]
null
null
null
app/dapp_examples/py/media_analysis/image_quality/App.py
TheAdamBC/AdamBC
e854a64c19442e24a50e4d65ce2f2e8f6ea46f4c
[ "BSD-3-Clause" ]
null
null
null
#** # * The Decentralized App (DApp): # * This is where the App developer writes the decentralized app. # * Make sure the code is written within the specified space region. # * # * IMPORTANT: # * 1. Developer DApp CODE MUST BE WRITTEN WITHIN SPECIFIED SPACE REGION. # * 2. DApp MUST return values through the 'results'...
33.443038
142
0.623391
0
0
0
0
0
0
0
0
1,939
0.733914
70811820b7b88435ba6e11176b752f15dc282feb
1,142
py
Python
tests/conftest.py
jmolmo/managed-tenants-cli
fb3dd79f6629884577aa7333fdfe8d78802a79d4
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
jmolmo/managed-tenants-cli
fb3dd79f6629884577aa7333fdfe8d78802a79d4
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
jmolmo/managed-tenants-cli
fb3dd79f6629884577aa7333fdfe8d78802a79d4
[ "Apache-2.0" ]
1
2021-09-02T10:11:52.000Z
2021-09-02T10:11:52.000Z
# Configure different hypothesis profiles import os from hypothesis import HealthCheck, Phase, settings FAST_PROFILE = "fast" CI_PROFILE = "ci" # 'fast' profile for local development settings.register_profile( FAST_PROFILE, # Set to true for test reproducibility # https://hypothesis.readthedocs.io/en/la...
29.282051
95
0.748687
0
0
0
0
0
0
0
0
526
0.460595
70813d4b3c14a6bf03e7e3ca20a7dd8dc96c4b00
1,859
py
Python
app/user/views.py
spark8103/deploy
7a99c5fcb11a93429814d2a519dca5ea3f99ea3a
[ "MIT" ]
2
2017-11-10T18:06:36.000Z
2018-01-25T13:53:10.000Z
app/user/views.py
spark8103/deploy
7a99c5fcb11a93429814d2a519dca5ea3f99ea3a
[ "MIT" ]
null
null
null
app/user/views.py
spark8103/deploy
7a99c5fcb11a93429814d2a519dca5ea3f99ea3a
[ "MIT" ]
null
null
null
# coding: utf-8 from flask import render_template, redirect, request, url_for, flash, current_app from flask_login import login_user, logout_user, login_required, UserMixin from . import user from .forms import LoginForm from .. import login_manager from config import Config import time users = Config.USER_LIST clas...
24.786667
103
0.661646
31
0.016676
0
0
1,497
0.805272
0
0
226
0.121571
70824a33f97bb12dc07fe121ae5ed43e23d5b01c
2,994
py
Python
src/python/exsim3.py
akafael/unb-controle-digital
4c4915eb1c4d070886284c0f79ce3ee26ece8695
[ "MIT" ]
null
null
null
src/python/exsim3.py
akafael/unb-controle-digital
4c4915eb1c4d070886284c0f79ce3ee26ece8695
[ "MIT" ]
null
null
null
src/python/exsim3.py
akafael/unb-controle-digital
4c4915eb1c4d070886284c0f79ce3ee26ece8695
[ "MIT" ]
null
null
null
""" Laboratory Experiment 3 - Script - Rootlocus project @author Rafael Lima """ from sympy import * def simplifyFraction(G,s): """ Expand numerator and denominator from given fraction """ num,den = fraction(G.expand().simplify()) num = Poly(num,s) den = Poly(den,s) return (num/den)...
23.761905
167
0.660655
0
0
0
0
0
0
0
0
820
0.273881
708280686076f210ca6f326f21e8b919249cc576
5,439
py
Python
chase/test.py
dave2328/chase
9bca01b959ba65f526db993fd03a13eaba294941
[ "MIT" ]
3
2016-02-03T04:04:00.000Z
2020-10-31T02:36:49.000Z
chase/test.py
tecoach/chase
2b5a11cf70f295500f07207e26f26f4391902d08
[ "MIT" ]
1
2016-09-27T18:44:22.000Z
2016-09-27T18:44:22.000Z
chase/test.py
tecoach/chase
2b5a11cf70f295500f07207e26f26f4391902d08
[ "MIT" ]
5
2016-02-03T04:04:13.000Z
2020-03-30T04:46:11.000Z
import os import unittest from chase import Profile, Order, Reversal merchant_id = os.environ.get('TEST_ORBITAL_MERCHANT_ID') username = os.environ.get('TEST_ORBITAL_USERNAME') password = os.environ.get('TEST_ORBITAL_PASSWORD') def new_profile(): profile = Profile( merchant_id=merchant_id, usernam...
34.865385
69
0.636882
4,410
0.810811
0
0
0
0
0
0
1,337
0.245817
708413de75cff9f09c32fc7eec77271bf88e6168
2,698
py
Python
model/decoder.py
kefirski/hybrid_rvae
39133e656eeb05c998422e5ad9bfadc913c81b44
[ "MIT" ]
23
2017-10-24T01:30:07.000Z
2021-11-15T04:14:02.000Z
model/decoder.py
analvikingur/hybrid_rvae
39133e656eeb05c998422e5ad9bfadc913c81b44
[ "MIT" ]
1
2017-08-20T00:34:23.000Z
2017-08-21T08:03:30.000Z
model/decoder.py
analvikingur/hybrid_rvae
39133e656eeb05c998422e5ad9bfadc913c81b44
[ "MIT" ]
13
2017-08-22T15:35:00.000Z
2021-11-19T01:24:33.000Z
import torch as t import torch.nn as nn import torch.nn.functional as F class Decoder(nn.Module): def __init__(self, vocab_size, latent_variable_size, rnn_size, rnn_num_layers, embed_size): super(Decoder, self).__init__() self.vocab_size = vocab_size self.latent_variable_size = latent_var...
34.589744
99
0.626019
2,623
0.972202
0
0
0
0
0
0
391
0.144922
7084359911956e6eb8fcc82cb7baa296e5280584
186
py
Python
main/Models/Circle/Simulation/Circle.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/Models/Circle/Simulation/Circle.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/Models/Circle/Simulation/Circle.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
1
2021-02-26T21:50:29.000Z
2021-02-26T21:50:29.000Z
from cc3d import CompuCellSetup from CircleSteppables import CircleSteppable CompuCellSetup.register_steppable(steppable=CircleSteppable(frequency=1)) CompuCellSetup.run()
16.909091
73
0.817204
0
0
0
0
0
0
0
0
0
0
7084652e3d8514cf5a87012b67dbfa4aee0e8d9d
15,329
py
Python
web/olga/analytics/models.py
raccoongang/acceptor
fdc1504912b502c8d789d5478eba8cc1a491934b
[ "Apache-2.0" ]
5
2017-10-20T05:52:59.000Z
2020-02-25T10:46:33.000Z
web/olga/analytics/models.py
raccoongang/OLGA
fdc1504912b502c8d789d5478eba8cc1a491934b
[ "Apache-2.0" ]
233
2017-08-14T10:56:16.000Z
2021-04-07T01:09:17.000Z
web/olga/analytics/models.py
raccoongang/acceptor
fdc1504912b502c8d789d5478eba8cc1a491934b
[ "Apache-2.0" ]
2
2018-03-16T22:22:57.000Z
2018-06-15T20:02:56.000Z
""" Models for analytics application. Models used to store and operate all data received from the edx platform. """ from __future__ import division from datetime import date, timedelta import operator import pycountry from django.contrib.postgres.fields import JSONField from django.db import models from django.db.m...
37.296837
116
0.659339
14,304
0.933133
0
0
12,059
0.786679
0
0
5,974
0.389719
708475a8fdb41ed7fcd4a6f028a2dcd0edaa89ad
20,560
py
Python
pypowervm/tests/tasks/test_cna.py
stephenfin/pypowervm
68f2b586b4f17489f379534ab52fc56a524b6da5
[ "Apache-2.0" ]
24
2015-12-02T19:49:45.000Z
2021-11-17T11:43:51.000Z
pypowervm/tests/tasks/test_cna.py
stephenfin/pypowervm
68f2b586b4f17489f379534ab52fc56a524b6da5
[ "Apache-2.0" ]
18
2017-03-01T05:54:25.000Z
2022-03-14T17:32:47.000Z
pypowervm/tests/tasks/test_cna.py
stephenfin/pypowervm
68f2b586b4f17489f379534ab52fc56a524b6da5
[ "Apache-2.0" ]
17
2016-02-10T22:53:04.000Z
2021-11-10T09:47:10.000Z
# Copyright 2015, 2017 IBM Corp. # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
45.286344
79
0.655302
19,436
0.945331
0
0
15,974
0.776946
0
0
5,370
0.261187
7084a93fe5b577c679276f294fe5764e40d39b1b
390
py
Python
src/dispatch/plugins/dispatch_test/participant_group.py
roor0/dispatch
12c4f567096411abe62abaf61c7c124496764346
[ "Apache-2.0" ]
3,417
2020-02-23T22:54:47.000Z
2022-03-31T13:01:01.000Z
src/dispatch/plugins/dispatch_test/participant_group.py
roor0/dispatch
12c4f567096411abe62abaf61c7c124496764346
[ "Apache-2.0" ]
607
2020-02-24T14:27:02.000Z
2022-03-30T19:15:39.000Z
src/dispatch/plugins/dispatch_test/participant_group.py
roor0/dispatch
12c4f567096411abe62abaf61c7c124496764346
[ "Apache-2.0" ]
359
2020-02-24T19:04:43.000Z
2022-03-29T06:48:12.000Z
from dispatch.plugins.bases import ParticipantGroupPlugin class TestParticipantGroupPlugin(ParticipantGroupPlugin): title = "Dispatch Test Plugin - Participant Group" slug = "test-participant-group" def create(self, participants, **kwargs): return def add(self, participant, **kwargs): ...
24.375
57
0.702564
329
0.84359
0
0
0
0
0
0
66
0.169231
7084e27c49595c6dd313ddb9fd27d9cdb9c9e2f7
17,707
py
Python
tools/stats_gen_lib.py
mtak-/lockfree-stm
00cd5f9a056e999f0cd140106c1d66b321d6fd47
[ "MIT" ]
9
2016-11-14T23:35:30.000Z
2019-01-18T23:21:08.000Z
tools/stats_gen_lib.py
mtak-/lockfree-stm
00cd5f9a056e999f0cd140106c1d66b321d6fd47
[ "MIT" ]
3
2017-01-09T01:22:57.000Z
2017-03-20T04:50:05.000Z
tools/stats_gen_lib.py
mtak-/lockfree-stm
00cd5f9a056e999f0cd140106c1d66b321d6fd47
[ "MIT" ]
null
null
null
#!/usr/bin/python from string import Formatter _STATS_TEMPLATE = '''#ifndef {INCLUDE_GUARD} #define {INCLUDE_GUARD} // clang-format off #ifdef {MACRO_PREFIX}ON {INCLUDES} #include <iomanip> #include <sstream> #include <string> #include <vector> // comment out any stats you don't want, and thing...
39.612975
142
0.550969
0
0
0
0
0
0
0
0
5,549
0.313379
7084f8adc7a1f6ea7b5b0235bc00bc3a8d6d415b
3,138
py
Python
tests/template.py
NehaKeshan/nanomine-graph
d3ebd2415aad95d481bfbde12c279d6176af93ed
[ "MIT" ]
null
null
null
tests/template.py
NehaKeshan/nanomine-graph
d3ebd2415aad95d481bfbde12c279d6176af93ed
[ "MIT" ]
null
null
null
tests/template.py
NehaKeshan/nanomine-graph
d3ebd2415aad95d481bfbde12c279d6176af93ed
[ "MIT" ]
null
null
null
from . import ingest_tester from whyis_test_case import WhyisTestCase class IngestTestSetup(WhyisTestCase): @classmethod def setUpClass(cls): print("Setting Up Class") cls.maxDiff = None cls.expected_data = ingest_tester.autoparse(cls.file_under_test) def setUp(self): inge...
33.031579
73
0.688655
3,063
0.976099
0
0
171
0.054493
0
0
426
0.135755
708607f4e8ad0abd68f63300e62f77ebd76b2725
1,200
py
Python
src/frame/mysql_conf_parser.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
9
2017-05-14T05:12:32.000Z
2022-01-13T08:11:07.000Z
src/frame/mysql_conf_parser.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
null
null
null
src/frame/mysql_conf_parser.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
7
2017-08-28T08:31:43.000Z
2020-03-03T07:18:37.000Z
import copy import ConfigParser import conf_keys from loggingex import LOG_WARNING class mysql_conf_parser: def parse(self, job_conf_path): cp = ConfigParser.SafeConfigParser() cp.read(job_conf_path) sections = cp.sections() conns_info = {} for section in sections: ...
33.333333
77
0.564167
999
0.8325
0
0
0
0
0
0
77
0.064167
7086ab4940faf1fbffd4020ba41b2d8ad3df6cb7
596
py
Python
n3-torch/ffi/python/n3/std/nn/conv/conv2d.py
kerryeon/n3-rs
e3c7325a89ec3eaffae356d2e4dcc4c63ba8caa1
[ "MIT" ]
1
2022-01-18T13:18:58.000Z
2022-01-18T13:18:58.000Z
n3-torch/ffi/python/n3/std/nn/conv/conv2d.py
kerryeon/n3-rs
e3c7325a89ec3eaffae356d2e4dcc4c63ba8caa1
[ "MIT" ]
null
null
null
n3-torch/ffi/python/n3/std/nn/conv/conv2d.py
kerryeon/n3-rs
e3c7325a89ec3eaffae356d2e4dcc4c63ba8caa1
[ "MIT" ]
null
null
null
import torch.nn as nn from n3 import ExternNode class Conv2D(ExternNode): kernel_size: int padding: int stride: int input_channels: int output_channels: int bias: bool def __init__(self, **kwargs): super().__init__(**kwargs) self._inner = nn.Conv2d( in_chan...
19.866667
46
0.600671
544
0.912752
0
0
0
0
0
0
0
0
7086b67b426ff9f8307d4800efd294b1e2f817c3
6,482
py
Python
auto-traveler.py
biomadeira/auto-traveler
38f2c086923925d9819c07bdef297ec24f2ec58f
[ "Apache-2.0" ]
null
null
null
auto-traveler.py
biomadeira/auto-traveler
38f2c086923925d9819c07bdef297ec24f2ec58f
[ "Apache-2.0" ]
null
null
null
auto-traveler.py
biomadeira/auto-traveler
38f2c086923925d9819c07bdef297ec24f2ec58f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Copyright [2009-present] EMBL-European Bioinformatics Institute 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 requ...
34.478723
142
0.67726
0
0
0
0
4,440
0.684974
0
0
2,182
0.336624
7087885e36c0266307dc1789a9c00444a7c21a73
49,994
py
Python
tests/test_make_table.py
kellyjonbrazil/jtbl
9bfc755bc964fbed59a4884bc4be605a5065f3d8
[ "MIT" ]
108
2020-03-10T13:22:03.000Z
2022-03-30T03:09:38.000Z
tests/test_make_table.py
kellyjonbrazil/jtbl
9bfc755bc964fbed59a4884bc4be605a5065f3d8
[ "MIT" ]
9
2020-03-08T00:44:38.000Z
2022-02-15T19:36:04.000Z
tests/test_make_table.py
kellyjonbrazil/jtbl
9bfc755bc964fbed59a4884bc4be605a5065f3d8
[ "MIT" ]
5
2020-03-10T11:34:18.000Z
2021-08-02T10:57:43.000Z
import unittest import textwrap import jtbl.cli class MyTests(unittest.TestCase): def setUp(self): self.SUCCESS, self.ERROR = True, False def test_no_piped_data(self): stdin = None expected = textwrap.dedent('''\ jtbl: Missing piped data ''') self.assertEqu...
116.808411
864
0.173461
49,894
0.998
0
0
0
0
0
0
46,949
0.939093
7087b1595e41533f5047a1198773514a488662fd
11,862
py
Python
Autonomous Car Locator.py
thedrgman/Autonomous-Car-Locator
d21c72d1d110e9f959cfd4d59f454f9c4193f06d
[ "BSD-3-Clause" ]
null
null
null
Autonomous Car Locator.py
thedrgman/Autonomous-Car-Locator
d21c72d1d110e9f959cfd4d59f454f9c4193f06d
[ "BSD-3-Clause" ]
null
null
null
Autonomous Car Locator.py
thedrgman/Autonomous-Car-Locator
d21c72d1d110e9f959cfd4d59f454f9c4193f06d
[ "BSD-3-Clause" ]
null
null
null
""" Autonomous Car Locator This is a program that helps autonomous cars to find out the location and direction of other autonomous cars. It is all based on what is provided by the car and from what the car detects. By David Gameiro """ import random def locator(): cars = [ { "speed" ...
45.623077
121
0.42986
0
0
0
0
0
0
0
0
4,793
0.404063
7087c1f44e1b42fefc6088af0233d3d5c9a7f47d
460
py
Python
jenkins-dashboard.py
jfm/jenkins-dashboard
4dc4cf69f7f6be1f9cfd15b24509a96454c4de09
[ "MIT" ]
null
null
null
jenkins-dashboard.py
jfm/jenkins-dashboard
4dc4cf69f7f6be1f9cfd15b24509a96454c4de09
[ "MIT" ]
3
2021-03-18T20:10:45.000Z
2021-09-07T23:37:52.000Z
jenkins-dashboard.py
jfm/jenkins-dashboard
4dc4cf69f7f6be1f9cfd15b24509a96454c4de09
[ "MIT" ]
null
null
null
from jenkinsdashboard.ci.jenkins import Jenkins from jenkinsdashboard.ui.dashboard import Dashboard import time if __name__ == '__main__': # jenkins = Jenkins('http://10.0.0.102:18081', 'jfm', 'c3po4all') jenkins = Jenkins( 'http://jenkins.onboarding.liquid.int.tdk.dk', 'admin', '0nboarding') das...
28.75
77
0.678261
0
0
0
0
0
0
0
0
139
0.302174
708a394ef1e0df69e0c499106dd15967d32aa202
2,001
py
Python
tutorials/basics/g_app.py
nunoedgarhubsoftphotoflow/py-fmas
241d942fe0cd6a49001b1bf110dd32bccc86bb16
[ "MIT" ]
4
2021-04-28T07:02:54.000Z
2022-01-25T13:15:49.000Z
tutorials/basics/g_app.py
Photonics-Precision-Technologies/py-fmas
241d942fe0cd6a49001b1bf110dd32bccc86bb16
[ "MIT" ]
3
2021-06-10T07:11:35.000Z
2021-11-22T15:23:01.000Z
tutorials/basics/g_app.py
Photonics-Precision-Technologies/py-fmas
241d942fe0cd6a49001b1bf110dd32bccc86bb16
[ "MIT" ]
5
2021-05-20T08:53:44.000Z
2022-01-25T13:18:34.000Z
r""" Using `fmas` as a black-box application ======================================= This examples shows how to use `py-fmas` as a black-box application, that only requires a minimal amount of scripting. .. codeauthor:: Oliver Melchert <melchert@iqo.uni-hannover.de> """ #############################################...
39.235294
79
0.594703
0
0
0
0
0
0
0
0
1,733
0.866067
708b028c1ab718e2fb6ff3f78c3ef2f30aed6475
3,852
py
Python
tests.py
CTPUG/mdx_attr_cols
8aef79857685f9913c703befe717872d4e2d1bea
[ "0BSD" ]
null
null
null
tests.py
CTPUG/mdx_attr_cols
8aef79857685f9913c703befe717872d4e2d1bea
[ "0BSD" ]
null
null
null
tests.py
CTPUG/mdx_attr_cols
8aef79857685f9913c703befe717872d4e2d1bea
[ "0BSD" ]
null
null
null
from unittest import TestCase import xmltodict from markdown import Markdown from markdown.util import etree from mdx_attr_cols import AttrColTreeProcessor, AttrColExtension, makeExtension class XmlTestCaseMixin(object): def mk_doc(self, s): return etree.fromstring( "<div>" + s.strip() + "<...
32.369748
79
0.616044
3,648
0.94704
0
0
0
0
0
0
837
0.21729
708b7c3f2101b8cf722c8c1af351e895b4c6a938
621
py
Python
backend/tiles/migrations/0002_auto_20200526_0100.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/tiles/migrations/0002_auto_20200526_0100.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/tiles/migrations/0002_auto_20200526_0100.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-25 17:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cubes', '0001_initial'), ('tiles', '0001_initial'), ] operations = [ migrations.RemoveField( ...
24.84
116
0.602254
495
0.797101
0
0
0
0
0
0
153
0.246377
708b92b1cb033572a615db2bbf33c6400d6fe304
720
py
Python
Q47_Permutations-II.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q47_Permutations-II.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q47_Permutations-II.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
class Solution: def permuteUnique(self, nums: List[int]) -> List[List[int]]: n = len(nums) if n == 0: return None if n == 1: return [nums] nums.sort() res = [] def dfs(nums, res, path=None): if path is None: ...
26.666667
66
0.370833
710
0.986111
0
0
0
0
0
0
0
0
708c9cd7e0c47f6fd647b59adb4727ab13f448e2
1,764
py
Python
dialogbot/search/local/tfidfmodel.py
ishine/dialogbot
6c3d2f95555a05a3b935dda818e481ddc20eed08
[ "Apache-2.0" ]
68
2019-06-30T07:39:59.000Z
2022-03-30T12:15:40.000Z
dialogbot/search/local/tfidfmodel.py
ishine/dialogbot
6c3d2f95555a05a3b935dda818e481ddc20eed08
[ "Apache-2.0" ]
2
2021-06-30T10:22:17.000Z
2021-07-27T12:41:01.000Z
dialogbot/search/local/tfidfmodel.py
ishine/dialogbot
6c3d2f95555a05a3b935dda818e481ddc20eed08
[ "Apache-2.0" ]
16
2019-08-22T16:05:53.000Z
2022-03-11T07:51:27.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import time from gensim import corpora, models, similarities from dialogbot.reader.data_helper import load_corpus_file from dialogbot.utils.log import logger class TfidfModel: def __init__(self, corpus_file, word2id): time_...
33.923077
108
0.647392
1,520
0.861678
0
0
0
0
0
0
212
0.120181
7090b5633b08f50dcfd4327962f33bf944fbe670
237
py
Python
LeetCode/lc0137-Single Number II.py
rahulbakshee/cp
0299de012e5d09bb13636f4fdcc9481da1fbc54f
[ "MIT" ]
null
null
null
LeetCode/lc0137-Single Number II.py
rahulbakshee/cp
0299de012e5d09bb13636f4fdcc9481da1fbc54f
[ "MIT" ]
null
null
null
LeetCode/lc0137-Single Number II.py
rahulbakshee/cp
0299de012e5d09bb13636f4fdcc9481da1fbc54f
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/single-number-ii/ class Solution: def singleNumber(self, nums: List[int]) -> int: sum_nums = sum(nums) sum_set = sum(set(nums)) * 3 return (sum_set - sum_nums) // 2
26.333333
51
0.586498
185
0.780591
0
0
0
0
0
0
49
0.206751
7091366072f1274a003619cb14cf65bebdc5b41f
6,052
py
Python
aslam_offline_calibration/kalibr/python/kalibr_evaluation_calibration.py
zhixy/multical
b5eeb6283f4ad68def4b62c10416a6764651e771
[ "BSD-3-Clause" ]
27
2021-03-26T12:03:48.000Z
2022-03-29T02:16:56.000Z
aslam_offline_calibration/kalibr/python/kalibr_evaluation_calibration.py
zhixy/multical
b5eeb6283f4ad68def4b62c10416a6764651e771
[ "BSD-3-Clause" ]
2
2021-03-26T14:34:51.000Z
2021-11-03T09:14:16.000Z
aslam_offline_calibration/kalibr/python/kalibr_evaluation_calibration.py
zhixy/multical
b5eeb6283f4ad68def4b62c10416a6764651e771
[ "BSD-3-Clause" ]
9
2021-08-23T11:25:29.000Z
2022-03-28T13:22:39.000Z
#!/usr/bin/env python import argparse import kalibr_common as kc from mpl_toolkits.mplot3d import art3d, Axes3D, proj3d import numpy as np import pylab as pl import sm import glob def parse_arguments(): parser = argparse.ArgumentParser( description='read calibration results from yaml and compare with grou...
45.503759
119
0.666887
0
0
0
0
0
0
0
0
1,169
0.193159
7092b52d42b2a6cc2e1c28dd93180668936123db
3,251
bzl
Python
antlir/vm/bzl/install_kernel_modules.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
28
2020-08-11T16:22:46.000Z
2022-03-04T15:41:52.000Z
antlir/vm/bzl/install_kernel_modules.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
137
2020-08-11T16:07:49.000Z
2022-02-27T10:59:05.000Z
antlir/vm/bzl/install_kernel_modules.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
10
2020-09-10T00:01:28.000Z
2022-03-08T18:00:28.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. load("@bazel_skylib//lib:paths.bzl", "paths") load("//antlir/bzl:image.bzl", "image") load("//antlir/bzl:oss_shim.bzl", "buck_genrule") load("...
38.702381
123
0.538296
0
0
0
0
0
0
0
0
1,809
0.556444
709423185bdfdebb688bc7d5a18f61d78ced662c
22
py
Python
bifrost_min_read_check/__init__.py
ssi-dk/bifrost_min_read_check
120951280c4ca7dab07c59d73e677b701e2a5cca
[ "MIT" ]
null
null
null
bifrost_min_read_check/__init__.py
ssi-dk/bifrost_min_read_check
120951280c4ca7dab07c59d73e677b701e2a5cca
[ "MIT" ]
1
2020-08-21T07:14:36.000Z
2020-08-21T07:14:36.000Z
bifrost_min_read_check/__init__.py
ssi-dk/bifrost_min_read_check
120951280c4ca7dab07c59d73e677b701e2a5cca
[ "MIT" ]
null
null
null
__version__ = 'v2_2_8'
22
22
0.772727
0
0
0
0
0
0
0
0
8
0.363636
70956e742f00e379dd33cde03763c0b2f6948b87
12,173
py
Python
medis/Detector/get_photon_data.py
RupertDodkins/medis
bdb1f00fb93506da2a1f251bc6780e70e97a16c5
[ "MIT" ]
1
2021-06-25T17:35:56.000Z
2021-06-25T17:35:56.000Z
medis/Detector/get_photon_data.py
RupertDodkins/medis
bdb1f00fb93506da2a1f251bc6780e70e97a16c5
[ "MIT" ]
null
null
null
medis/Detector/get_photon_data.py
RupertDodkins/medis
bdb1f00fb93506da2a1f251bc6780e70e97a16c5
[ "MIT" ]
2
2018-12-08T15:05:13.000Z
2019-08-08T17:28:24.000Z
"""Top level code that takes a atmosphere phase map and propagates a wavefront through the system""" import os import numpy as np import traceback import multiprocessing import glob import random import pickle as pickle import time from proper_mod import prop_run from medis.Utils.plot_tools import quicklook_im, view_d...
36.446108
147
0.594348
0
0
0
0
0
0
0
0
3,453
0.283661
70974016c8294426ef58c0a0a53fcfaf197aee1a
332
py
Python
HW3/YaRa1312/Pleshyvtseva PythonCore HW 3.3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW3/YaRa1312/Pleshyvtseva PythonCore HW 3.3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW3/YaRa1312/Pleshyvtseva PythonCore HW 3.3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
#3.3 user_ineteger_1 = int(input("Enter an integer: ")) user_integer_2 = int(input("Enter an other integer or the same as the first one: ")) def sameOrNot(user_ineteger_1, user_integer_2): if (user_ineteger_1 ^ user_integer_2): print("Not Same") else: print("Same") sameOrNot(user_ineteger_1, use...
36.888889
84
0.713855
0
0
0
0
0
0
0
0
95
0.286145
709771a132f3b39704dc8a78fa50fd197c2b9aca
144
py
Python
tests/fixtures/regressors/__init__.py
XavierJingfeng/starter
274566e491d5c7157f3c8deff136c56838022349
[ "MIT" ]
null
null
null
tests/fixtures/regressors/__init__.py
XavierJingfeng/starter
274566e491d5c7157f3c8deff136c56838022349
[ "MIT" ]
null
null
null
tests/fixtures/regressors/__init__.py
XavierJingfeng/starter
274566e491d5c7157f3c8deff136c56838022349
[ "MIT" ]
null
null
null
from tests.fixtures.regressors.simple_gaussian_mlp_regressor import ( SimpleGaussianMLPRegressor) __all__ = ['SimpleGaussianMLPRegressor']
28.8
69
0.840278
0
0
0
0
0
0
0
0
28
0.194444
709b6bd1dc6310e9d17ea3ad5431e576cabcfddb
10,286
py
Python
src/utils/workflow_utils.py
cmikke97/AMSG
ddcfeb6262124e793fcee385405365417e57f91f
[ "Apache-2.0" ]
3
2021-06-30T07:22:46.000Z
2022-03-23T08:21:10.000Z
src/utils/workflow_utils.py
cmikke97/Automatic-Malware-Signature-Generation
ddcfeb6262124e793fcee385405365417e57f91f
[ "Apache-2.0" ]
null
null
null
src/utils/workflow_utils.py
cmikke97/Automatic-Malware-Signature-Generation
ddcfeb6262124e793fcee385405365417e57f91f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Crepaldi Michele. # # Developed as a thesis project at the TORSEC research group of the Polytechnic of Turin (Italy) under the supervision # of professor Antonio Lioy and engineer Andrea Atzeni and with the support of engineer Andrea Marcelli. # # Licensed under the Apache License, Version 2.0 (the "L...
44.336207
118
0.66994
1,159
0.112677
0
0
0
0
0
0
6,235
0.606164
709bdbfb5b18720b7d117f1e6e1e246c7727a60a
1,578
py
Python
tests/test_data.py
joseph-nagel/torchutils
e13b5b156734dc1645e1d6c7b81738ca52904c92
[ "MIT" ]
null
null
null
tests/test_data.py
joseph-nagel/torchutils
e13b5b156734dc1645e1d6c7b81738ca52904c92
[ "MIT" ]
null
null
null
tests/test_data.py
joseph-nagel/torchutils
e13b5b156734dc1645e1d6c7b81738ca52904c92
[ "MIT" ]
null
null
null
'''Tests for the data module.''' import pytest import numpy as np import torch from torch.utils.data import TensorDataset from torchutils.data import mean_std_over_dataset, image2tensor, tensor2image @pytest.mark.parametrize('no_samples', [100, 1000]) @pytest.mark.parametrize('feature_shape', [(), (1,), (10,), (10,10...
38.487805
77
0.707858
0
0
0
0
1,370
0.868188
0
0
274
0.173638
709be0e39f954015ae500d50e9d8b5505b26abc0
8,593
py
Python
src/model_execution_worker/tasks.py
OasisLMF/OasisPlatform_SQL
e3359d0bd3093e47bc46848c810b8876980d5cbc
[ "BSD-3-Clause" ]
1
2020-02-27T13:25:22.000Z
2020-02-27T13:25:22.000Z
src/model_execution_worker/tasks.py
OasisLMF/OasisPlatform_SQL
e3359d0bd3093e47bc46848c810b8876980d5cbc
[ "BSD-3-Clause" ]
3
2019-11-14T10:26:46.000Z
2021-03-25T22:33:52.000Z
src/model_execution_worker/tasks.py
OasisLMF/OasisPlatform_SQL
e3359d0bd3093e47bc46848c810b8876980d5cbc
[ "BSD-3-Clause" ]
2
2019-03-21T09:22:12.000Z
2019-05-24T15:13:51.000Z
from __future__ import absolute_import import importlib import logging import uuid from contextlib import contextmanager import fasteners import json import os import shutil import tarfile import glob import sys import time from oasislmf.model_execution.bin import prepare_model_run_directory, prepare_model_run_input...
39.237443
124
0.718375
585
0.068079
248
0.028861
6,145
0.715117
0
0
2,866
0.333527
709c91d65265a22a647756f08a9dbfdc545c3f18
1,088
py
Python
complejidad_algoritmica.py
francomanca93/poo-algoritmos-python
47bc0289cf1a91e2bee93f354bd39e1b592fa774
[ "MIT" ]
null
null
null
complejidad_algoritmica.py
francomanca93/poo-algoritmos-python
47bc0289cf1a91e2bee93f354bd39e1b592fa774
[ "MIT" ]
null
null
null
complejidad_algoritmica.py
francomanca93/poo-algoritmos-python
47bc0289cf1a91e2bee93f354bd39e1b592fa774
[ "MIT" ]
null
null
null
import time # Importo el modulo sys y aumento el limite de recursión, ya que viene predefinido con 1000 import sys sys.setrecursionlimit(1000000) # 1 000 000 def factorial_iterativo(n): respuesta = 1 while n > 1: respuesta *= n n -= 1 return respuesta def factorial_recursivo(n): ...
23.652174
91
0.647059
0
0
0
0
0
0
0
0
342
0.31405
709f375eec3da89e1429343cd567396c10876145
765
py
Python
wheel/notice/email_sender.py
kong5664546498/half_a_wheel
d50c2359ac7dda55f54dd08bb588091eb6232b81
[ "MIT" ]
null
null
null
wheel/notice/email_sender.py
kong5664546498/half_a_wheel
d50c2359ac7dda55f54dd08bb588091eb6232b81
[ "MIT" ]
null
null
null
wheel/notice/email_sender.py
kong5664546498/half_a_wheel
d50c2359ac7dda55f54dd08bb588091eb6232b81
[ "MIT" ]
null
null
null
import smtplib from email.header import Header from email.mime.text import MIMEText class EmailSender: def __init__(self) -> None: self.receiver = "kongandmarx@163.com" self.sender = "kongandmarx@163.com" self.smtp_obj = smtplib.SMTP_SSL("smtp.163.com", port=994) # self.smtp_obj.co...
34.772727
79
0.616993
679
0.887582
0
0
0
0
0
0
228
0.298039
70a04db5de55b9f9804753c3bf5f7a12c6fc7e92
6,590
py
Python
src/config_common.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
null
null
null
src/config_common.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
null
null
null
src/config_common.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from biothings.www.settings.default import * from www.api.query_builder import ESQueryBuilder from www.api.query import ESQuery from www.api.transform import ESResultTransformer from www.api.handlers import GeneHandler, QueryHandler, MetadataHandler, StatusHandler, TaxonHandler, DemoHandler # *...
43.642384
136
0.57648
0
0
0
0
0
0
0
0
3,683
0.558877
70a079756e35eca1c02df3f616492a74895b5e66
3,785
py
Python
makepip/makepip.py
ao/makepip
6552aa2161e69b63d0564c03b2f36a3f1cd90a34
[ "MIT" ]
null
null
null
makepip/makepip.py
ao/makepip
6552aa2161e69b63d0564c03b2f36a3f1cd90a34
[ "MIT" ]
null
null
null
makepip/makepip.py
ao/makepip
6552aa2161e69b63d0564c03b2f36a3f1cd90a34
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from pathlib import Path home = str(Path.home()) import datetime now = datetime.datetime.now() def main(): print("Please enter the following questions to generate your new Pip!") name = input("Pip name: ") description = input("Description: ") author_name = input("Author name: "...
27.035714
123
0.674769
0
0
0
0
0
0
0
0
2,679
0.707794
70a18e0916fd434d417dcc6ca67ebfa9f0b09899
30
py
Python
utils.py
andreaskleinl/capacity_transmissionline_simulation
023358d03cce5a4c7768eee597d0d6381742e271
[ "Apache-2.0" ]
null
null
null
utils.py
andreaskleinl/capacity_transmissionline_simulation
023358d03cce5a4c7768eee597d0d6381742e271
[ "Apache-2.0" ]
null
null
null
utils.py
andreaskleinl/capacity_transmissionline_simulation
023358d03cce5a4c7768eee597d0d6381742e271
[ "Apache-2.0" ]
null
null
null
def funny(x,y): return x+y
15
15
0.6
0
0
0
0
0
0
0
0
0
0
70a1fd6852d7db5fa6fd60e6b794975a1360fc9b
3,355
py
Python
hangouts-chat.py
matallen/ninja-points
a2af9f358bc302f4638d1516055c687cffa546ab
[ "Apache-2.0" ]
7
2018-11-27T10:13:48.000Z
2022-01-22T07:33:28.000Z
hangouts-chat.py
matallen/ninja-points
a2af9f358bc302f4638d1516055c687cffa546ab
[ "Apache-2.0" ]
29
2018-01-06T05:02:38.000Z
2021-05-20T15:27:15.000Z
hangouts-chat.py
matallen/ninja-points
a2af9f358bc302f4638d1516055c687cffa546ab
[ "Apache-2.0" ]
14
2017-12-09T14:58:53.000Z
2022-01-24T15:56:01.000Z
#!/usr/bin/env python from oauth2client.service_account import ServiceAccountCredentials from os import path import os, requests, sys, argparse SERVICE_ACCOUNT_KEY_FILE_NAME='SERVICE_ACCOUNT_KEY_FILE' HANGOUTS_CHATS_API='https://chat.googleapis.com/v1' GOOGLE_CHAT_SCOPE='https://www.googleapis.com/auth/chat.bot' SPAC...
29.690265
120
0.708793
0
0
0
0
0
0
0
0
672
0.200298
70a52b1be3075c53fa2ae1d2c049a7526d9ddb9b
923
py
Python
pyRoovit/pyRoovit.extension/pyRoovit.tab/Tools.Panel/Document.pulldown/Find.pushbutton/script.py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
5
2022-03-14T01:58:34.000Z
2022-03-21T19:51:09.000Z
pyRoovit/pyRoovit.extension/pyRoovit.tab/Tools.Panel/Document.pulldown/Find.pushbutton/script.py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
1
2022-03-14T10:18:40.000Z
2022-03-14T15:52:25.000Z
pyRoovit/pyRoovit.extension/pyRoovit.tab/Tools.Panel/Document.pulldown/Find.pushbutton/script.py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
1
2022-03-14T10:15:22.000Z
2022-03-14T10:15:22.000Z
# import libraries import clr import os from os import listdir import System from System.IO import SearchOption from System import Environment # import pyrevit libraries from pyrevit import forms from pyrevit import revit,DB # get document doc = revit.doc # try to open cache path try: curdoc = DB.Document.PathNam...
31.827586
193
0.713976
0
0
0
0
0
0
0
0
284
0.307692
70a65f53a022d6fe554e262dd2b61539aad6cfe3
15,323
py
Python
ansible_collection/hpe/nimble/plugins/modules/hpe_nimble_network.py
datamattsson/nimble-ansible-modules
ba306153f98db093a9af47c99bdfce1381660880
[ "Apache-2.0" ]
null
null
null
ansible_collection/hpe/nimble/plugins/modules/hpe_nimble_network.py
datamattsson/nimble-ansible-modules
ba306153f98db093a9af47c99bdfce1381660880
[ "Apache-2.0" ]
null
null
null
ansible_collection/hpe/nimble/plugins/modules/hpe_nimble_network.py
datamattsson/nimble-ansible-modules
ba306153f98db093a9af47c99bdfce1381660880
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2020 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/licenses/LICENSE-2.0 # # Unless require...
34.825
149
0.601775
0
0
0
0
0
0
0
0
6,924
0.45187
70a965ab4266b455f06fc24f6cfc9727034185be
1,428
py
Python
crawler.py
YellowDong/taohua
b61778d0e49d885141756ca52b1e426f03e89218
[ "MIT" ]
null
null
null
crawler.py
YellowDong/taohua
b61778d0e49d885141756ca52b1e426f03e89218
[ "MIT" ]
null
null
null
crawler.py
YellowDong/taohua
b61778d0e49d885141756ca52b1e426f03e89218
[ "MIT" ]
null
null
null
from requests_html import HTMLSession import re from .blog.models import (Article, Tag, Category) class Spider: def __init__(self): self.sesion = HTMLSession() def get_list(self): url = 'http://python.jobbole.com/all-posts/' resp = self.sesion.get(url) if resp.status_code == 2...
30.382979
96
0.556723
1,137
0.795661
0
0
0
0
0
0
323
0.226032
56061be80b560aeb56981297f4a7efbad2518c39
131
py
Python
question_repo/apps/repo/signal/signals.py
Quizas007/question_repo
e377257137077b17ed039b06d3d6990d56d63743
[ "Apache-2.0" ]
null
null
null
question_repo/apps/repo/signal/signals.py
Quizas007/question_repo
e377257137077b17ed039b06d3d6990d56d63743
[ "Apache-2.0" ]
null
null
null
question_repo/apps/repo/signal/signals.py
Quizas007/question_repo
e377257137077b17ed039b06d3d6990d56d63743
[ "Apache-2.0" ]
null
null
null
""" 自定义信号 """ import django.dispatch mysignal = django.dispatch.Signal(providing_args=["arg1","arg2"]) # 内置的信号会自动触发,自定义信号不可以。
10.916667
65
0.709924
0
0
0
0
0
0
0
0
97
0.535912
5607fbf70d32a16b417fbba1a89c53e34ec639fc
4,674
py
Python
ultrasync/create_sync_samples.py
aeshky/ultrasync
0801bcb0312bba2eab07f12f9a68f3a431f5aaeb
[ "Apache-2.0" ]
7
2019-07-29T20:00:25.000Z
2021-06-22T21:21:50.000Z
ultrasync/create_sync_samples.py
aeshky/ultrasync
0801bcb0312bba2eab07f12f9a68f3a431f5aaeb
[ "Apache-2.0" ]
1
2019-10-01T14:25:33.000Z
2019-10-28T15:19:52.000Z
ultrasync/create_sync_samples.py
aeshky/ultrasync
0801bcb0312bba2eab07f12f9a68f3a431f5aaeb
[ "Apache-2.0" ]
null
null
null
""" Date: Jul 2018 Author: Aciel Eshky A script to create positive and negative samples using self-supervision. """ import os import sys import random import pandas as pd from numpy.random import seed as np_seed from ustools.folder_utils import get_utterance_id, get_dir_info from ultrasync.create_sync_samples_uti...
31.369128
111
0.632649
0
0
0
0
0
0
0
0
1,554
0.332478
5608507a8fbe16afc4a2757ca530a21ae1157296
515
py
Python
setup.py
kaynhelga9/64-bit-Ninja
ba3ffa69797a6f52103142515f0ee253e69e0d49
[ "MIT" ]
3
2019-02-11T14:40:29.000Z
2019-04-21T21:59:11.000Z
setup.py
kaynhelga9/64-bit-Ninja
ba3ffa69797a6f52103142515f0ee253e69e0d49
[ "MIT" ]
null
null
null
setup.py
kaynhelga9/64-bit-Ninja
ba3ffa69797a6f52103142515f0ee253e69e0d49
[ "MIT" ]
null
null
null
import cx_Freeze import os os.environ['TCL_LIBRARY'] = r'C:\Users\Khanh Huynh\AppData\Local\Programs\Python\Python36\tcl\tcl8.6' os.environ['TK_LIBRARY'] = r'C:\Users\Khanh Huynh\AppData\Local\Programs\Python\Python36\tcl\tk8.6' executables = [cx_Freeze.Executable('game.py')] cx_Freeze.setup( name = '64...
34.333333
102
0.669903
0
0
0
0
0
0
0
0
273
0.530097
5609ed8bf29ac968a3c75282d2fbdfa0946a74d7
1,475
py
Python
xiAnresturant/graph.py
wangteng200000318/-DataMiningMeiTuan
eb152a090c3025726bcb793484d4a88f2072b744
[ "MIT" ]
4
2020-11-23T04:50:41.000Z
2021-03-12T06:19:59.000Z
xiAnresturant/graph.py
wangteng200000318/-DataMiningMeiTuan
eb152a090c3025726bcb793484d4a88f2072b744
[ "MIT" ]
null
null
null
xiAnresturant/graph.py
wangteng200000318/-DataMiningMeiTuan
eb152a090c3025726bcb793484d4a88f2072b744
[ "MIT" ]
null
null
null
from wordcloud import WordCloud import jieba import matplotlib.pyplot as plt xiaozhai = ['佛伦萨·古典火炉披萨', '蘑菇爱上饭', '珍味林饺子馆', '巷子火锅', '千家粗粮王', '猫堂小站猫咪主题馆', 'CoCo都可', '福气焖锅烤肉', '5号酒馆', '82°C魔力焖锅', '小肥羊', '长安大牌档之长安集市', '泰熙家', '大自在火锅', '拉菲达牛排自助', '猫咪餐厅', '京御煌三汁焖锅', '赵家腊汁肉', '米多多烘焙屋'...
37.820513
69
0.589831
0
0
0
0
0
0
0
0
1,055
0.511639
560adc09db2a2d64ed970d3656db7a5e1e25da54
4,055
py
Python
api/server/routes/catchall.py
corentinthomasset/ibm-call-for-code-2021
2a3cbc7c9a5a21fd0caa9cbc0a57904bb2087872
[ "Apache-2.0" ]
null
null
null
api/server/routes/catchall.py
corentinthomasset/ibm-call-for-code-2021
2a3cbc7c9a5a21fd0caa9cbc0a57904bb2087872
[ "Apache-2.0" ]
null
null
null
api/server/routes/catchall.py
corentinthomasset/ibm-call-for-code-2021
2a3cbc7c9a5a21fd0caa9cbc0a57904bb2087872
[ "Apache-2.0" ]
null
null
null
import logging import json import warnings import time import datetime as dt from ast import literal_eval as make_tuple from flask import jsonify, abort, Response, request from server import app, cln_client from cloudant.error import CloudantException, ResultException from cloudant.query import Query import yfinanc...
33.237705
109
0.568927
0
0
0
0
2,157
0.531936
0
0
610
0.150432
560b81c62a615cdb5ce98cccdf4071f843bedca3
315
py
Python
setup.py
dkasak/pymodoro
fb17cb29f9473727d3607c14da59b12a9b63d02a
[ "MIT" ]
2
2020-06-12T11:11:14.000Z
2020-07-16T08:15:53.000Z
setup.py
dkasak/pymodoro
fb17cb29f9473727d3607c14da59b12a9b63d02a
[ "MIT" ]
null
null
null
setup.py
dkasak/pymodoro
fb17cb29f9473727d3607c14da59b12a9b63d02a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='pymodoro', version='0.4', packages=['pymodoro'], package_data={'pymodoro': ['data/*']}, entry_points={ "console_scripts": [ "pymodoro = pymodoro.pymodoro:main", "pymodoroi3 = pymodoro.pymodoroi3:main" ] }, )
21
51
0.565079
0
0
0
0
0
0
0
0
134
0.425397
560c68d1de24eff114517db2454d489387dbeb48
267
py
Python
src/ralph/dns/apps.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/dns/apps.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/dns/apps.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
from django.conf import settings from ralph.apps import RalphAppConfig class DNS(RalphAppConfig): name = 'ralph.dns' def get_load_modules_when_ready(self): if settings.ENABLE_HERMES_INTEGRATION: return ['publishers'] return []
20.538462
46
0.696629
193
0.722846
0
0
0
0
0
0
23
0.086142
560d0ef05a9d538d23b9e00d5bb4bf708502cb92
1,132
py
Python
RLTutorial/MDPValue.py
fyabc/MSRAPaperProject
2d7974acfe8065523d0c56da695807e94acd0b34
[ "MIT" ]
1
2016-08-17T10:04:30.000Z
2016-08-17T10:04:30.000Z
RLTutorial/MDPValue.py
fyabc/MSRAPaperProject
2d7974acfe8065523d0c56da695807e94acd0b34
[ "MIT" ]
null
null
null
RLTutorial/MDPValue.py
fyabc/MSRAPaperProject
2d7974acfe8065523d0c56da695807e94acd0b34
[ "MIT" ]
null
null
null
#! /usr/bin/python # -*- encoding: utf-8 -*- from __future__ import print_function, unicode_literals from MDP import MDP import version23 __author__ = 'fyabc' # random.seed(0) def getRandomPolicyValue(): values = [0.0 for _ in range(10)] num = 1000000 echoEpoch = 10000 mdp = MDP() for k in ra...
21.769231
72
0.550353
0
0
0
0
0
0
0
0
156
0.137809
560d4c8d48ed8fbb6b163e3376983982a59d0792
19,002
py
Python
tests/test_component/test_task.py
andre-merzky/radical.entk
a63ad9158cf2f58d7bfff017f7da9cd5236429b5
[ "MIT" ]
null
null
null
tests/test_component/test_task.py
andre-merzky/radical.entk
a63ad9158cf2f58d7bfff017f7da9cd5236429b5
[ "MIT" ]
null
null
null
tests/test_component/test_task.py
andre-merzky/radical.entk
a63ad9158cf2f58d7bfff017f7da9cd5236429b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import glob import shutil import pytest import hypothesis.strategies as st from hypothesis import given, settings from radical.entk import Task from radical.entk import states import radical.entk.exceptions as ree # Hypothesis settings settings.register_profile("travis", ma...
41.041037
86
0.393801
0
0
0
0
4,169
0.219398
0
0
5,071
0.266867
560d83927ccbfa6f396f7f59b1122955d5914eea
3,689
py
Python
main.py
MNicaretta/picrosssolver
2919049b6a2beebb47d883ddee7ba830bf809a59
[ "MIT" ]
null
null
null
main.py
MNicaretta/picrosssolver
2919049b6a2beebb47d883ddee7ba830bf809a59
[ "MIT" ]
null
null
null
main.py
MNicaretta/picrosssolver
2919049b6a2beebb47d883ddee7ba830bf809a59
[ "MIT" ]
null
null
null
from enum import Enum class CellState(Enum): UNKNOWN = '.' EMPTY = ' ' BOX = '■' def __str__(self): return self.value class Cell(): def __init__(self, state=CellState.UNKNOWN): self.state = state def __str__(self): return self.state class Clue(): def __init__(sel...
25.797203
100
0.500407
3,472
0.940666
0
0
0
0
0
0
34
0.009212
560df272ec26702a46aac33cc6e289b61e0a8412
3,055
py
Python
legonet_pytorch/module.py
max-liulin/CV-Backbones
b32239d10126c8f84e6f6283b95b42b3b60b1a06
[ "Apache-2.0" ]
220
2019-11-27T03:02:14.000Z
2020-02-26T14:08:41.000Z
legonet_pytorch/module.py
vickyqi7/CV-Backbones
1262dacffdea62f9983ef0231177aea720e25f12
[ "Apache-2.0" ]
3
2019-12-10T15:00:57.000Z
2020-02-02T12:02:47.000Z
legonet_pytorch/module.py
vickyqi7/CV-Backbones
1262dacffdea62f9983ef0231177aea720e25f12
[ "Apache-2.0" ]
35
2019-11-28T05:21:50.000Z
2020-02-26T13:46:11.000Z
''' Copyright (C) 2016. Huawei Technologies Co., Ltd. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the MIT license. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANT...
50.081967
144
0.67365
2,511
0.821931
0
0
0
0
0
0
420
0.13748
560eee76e44697ef904786e1db3a7b3facad82f0
488
py
Python
backend/trucks/migrations/0005_auto_20201029_2137.py
NikogSamonic/Log_app
197fb46b84d102942352d1a30d2a64680b18d943
[ "MIT" ]
11
2020-09-21T18:58:09.000Z
2020-10-21T19:08:50.000Z
backend/trucks/migrations/0005_auto_20201029_2137.py
NikogSamonic/Log_app
197fb46b84d102942352d1a30d2a64680b18d943
[ "MIT" ]
8
2020-09-22T02:59:26.000Z
2020-10-31T07:28:59.000Z
backend/trucks/migrations/0005_auto_20201029_2137.py
NikogSamonic/Log_app
197fb46b84d102942352d1a30d2a64680b18d943
[ "MIT" ]
21
2020-09-21T11:46:42.000Z
2020-10-29T22:57:47.000Z
# Generated by Django 3.1.2 on 2020-10-29 20:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trucks', '0004_auto_20201025_2222'), ] operations = [ migrations.RemoveField( model_name='car', name='truck', ...
21.217391
60
0.561475
395
0.809426
0
0
0
0
0
0
118
0.241803
560fa46d7efbe40812073452461efabc1cf83295
3,719
py
Python
pychron/dvc/util.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/dvc/util.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/dvc/util.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2019 ross # # 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/LICE...
32.33913
91
0.547728
2,773
0.745631
0
0
622
0.167249
0
0
1,516
0.407636
560fcacc1a61a2c757a12a88e6d3d993d2d1a1d4
3,214
py
Python
processor/gen_record.py
Princeton-Penn-Vents/princeton-penn-flowmeter
85a5ca8357ca34e0b543fa1489d48ecbc8023294
[ "MIT" ]
3
2020-04-14T10:45:12.000Z
2022-01-06T16:40:30.000Z
processor/gen_record.py
Princeton-Penn-Vents/princeton-penn-flowmeter
85a5ca8357ca34e0b543fa1489d48ecbc8023294
[ "MIT" ]
36
2020-04-05T16:23:33.000Z
2020-10-02T02:58:21.000Z
processor/gen_record.py
Princeton-Penn-Vents/princeton-penn-flowmeter
85a5ca8357ca34e0b543fa1489d48ecbc8023294
[ "MIT" ]
1
2020-04-05T13:18:47.000Z
2020-04-05T13:18:47.000Z
from __future__ import annotations from typing import Optional from dataclasses import dataclass from logging import Logger from processor.device_names import address_to_name @dataclass class GenRecord: logger: Logger _mac: Optional[str] = None _sid: int = 0 _name: Optional[str] = None # Nurse ...
26.561983
73
0.564717
3,024
0.940884
0
0
3,035
0.944306
0
0
951
0.295893
56115c228ac0c726ff0df0045669becb3ae31e8a
22,024
py
Python
inputs/transformers.py
aayushk614/DTI
f0338918144c0efbb79556ac8e81cbcefc70e22f
[ "MIT" ]
null
null
null
inputs/transformers.py
aayushk614/DTI
f0338918144c0efbb79556ac8e81cbcefc70e22f
[ "MIT" ]
null
null
null
inputs/transformers.py
aayushk614/DTI
f0338918144c0efbb79556ac8e81cbcefc70e22f
[ "MIT" ]
null
null
null
from __future__ import print_function import math import nibabel as nib import nrrd import numpy as np import operator import os import random import torch import warnings from functools import reduce from inputs import Image, ImageType CHANNEL, DEPTH, HEIGHT, WIDTH = 0, 1, 2, 3 class ToNDTensor(object): """ ...
37.265651
120
0.593444
21,698
0.985198
0
0
9,484
0.430621
0
0
4,919
0.223347
56116252a18b3ab533ede58656a33d7beedc09ce
1,198
py
Python
tests/test_image_xpress.py
jni/microscopium
b9cddd8ef5f3003a396ace602228651b3020c4a3
[ "BSD-3-Clause" ]
53
2016-08-30T09:45:12.000Z
2022-02-03T06:22:50.000Z
tests/test_image_xpress.py
jni/microscopium
b9cddd8ef5f3003a396ace602228651b3020c4a3
[ "BSD-3-Clause" ]
151
2015-01-15T06:16:27.000Z
2021-03-22T01:01:26.000Z
tests/test_image_xpress.py
jni/microscopium
b9cddd8ef5f3003a396ace602228651b3020c4a3
[ "BSD-3-Clause" ]
19
2015-01-15T06:13:26.000Z
2021-09-13T13:06:47.000Z
from microscopium.screens import image_xpress import collections as coll def test_ix_semantic_filename(): test_fn = "./Week1_22123/G10_s2_w11C3B9BCC-E48F-4C2F-9D31-8F46D8B5B972.tif" expected = coll.OrderedDict([('directory', './Week1_22123'), ('prefix', ''), ...
39.933333
79
0.477462
0
0
0
0
0
0
0
0
341
0.284641
561183bf158e6122876d8d2dc908ce0fd0c44f33
541
py
Python
tests/test_gui/test_components/test_copy_button.py
ryan-lingle/node-launcher
4f1f7087a28d76f5b8153adac548d09b0558f6d5
[ "MIT" ]
249
2019-02-01T17:17:09.000Z
2022-03-18T21:26:41.000Z
tests/test_gui/test_components/test_copy_button.py
justinmichael3x/node-launcher
5a2a646b01803fe284fa18bee99c13c7cbf04498
[ "MIT" ]
299
2019-02-02T02:01:02.000Z
2022-02-21T05:13:20.000Z
tests/test_gui/test_components/test_copy_button.py
justinmichael3x/node-launcher
5a2a646b01803fe284fa18bee99c13c7cbf04498
[ "MIT" ]
49
2019-02-11T14:46:40.000Z
2022-02-20T04:05:14.000Z
import pytest from PySide2.QtCore import Qt from PySide2.QtGui import QClipboard from PySide2.QtTest import QTest from node_launcher.gui.components.copy_button import CopyButton @pytest.fixture def copy_button() -> CopyButton: copy_button = CopyButton(button_text='Test Me', copy_text='copy_this') return copy...
28.473684
74
0.768946
210
0.38817
0
0
146
0.269871
0
0
31
0.057301
5611a9096513cba2a9a68bf3992b55379db65e5b
3,581
py
Python
examples/vertex_pipeline/pipelines/batch_prediction_pipeline_runner.py
marcosgm/professional-services
f332b425c2f3b6538ebf65afda7e67de3bed1b3d
[ "Apache-2.0" ]
2,116
2017-05-18T19:33:05.000Z
2022-03-31T13:34:48.000Z
examples/vertex_pipeline/pipelines/batch_prediction_pipeline_runner.py
hyuatpc/professional-services
e5c811a8752e91fdf9f959a0414931010b0ea1ba
[ "Apache-2.0" ]
548
2017-05-20T05:05:35.000Z
2022-03-28T16:38:12.000Z
examples/vertex_pipeline/pipelines/batch_prediction_pipeline_runner.py
hyuatpc/professional-services
e5c811a8752e91fdf9f959a0414931010b0ea1ba
[ "Apache-2.0" ]
1,095
2017-05-19T00:02:36.000Z
2022-03-31T05:21:39.000Z
# Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.788889
78
0.726054
0
0
0
0
0
0
0
0
1,576
0.440101
5612459fcdf8951d0bf375d61705d77efffeb9d8
1,642
py
Python
examples/slash_commands.py
z03h/discord.py
7e5831ba9cc3f881e11b3536159a3851fba6ab52
[ "MIT" ]
7
2021-09-12T02:31:57.000Z
2022-02-20T21:15:35.000Z
examples/slash_commands.py
jay3332/discord.py
953f067e3b5ee33f5be62ae614ac724afc289879
[ "MIT" ]
13
2021-11-04T00:32:25.000Z
2022-03-02T03:03:54.000Z
examples/slash_commands.py
jay3332/discord.py
953f067e3b5ee33f5be62ae614ac724afc289879
[ "MIT" ]
null
null
null
import discord from discord.application_commands import ApplicationCommand, ApplicationCommandTree, option tree = ApplicationCommandTree(guild_id=1234) # Replace with your guild ID, or ``None`` to commands global class Ping(ApplicationCommand, name='ping', tree=tree): """Pong!""" async def callback(self, i...
34.93617
117
0.690621
1,287
0.7838
0
0
0
0
649
0.39525
401
0.244214
5612e312b8ffbaa468da026af436acb1c1385add
10,887
py
Python
Examples/tk_simple_dialog.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
2
2021-01-13T21:20:57.000Z
2021-08-18T17:53:53.000Z
Examples/tk_simple_dialog.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
null
null
null
Examples/tk_simple_dialog.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
1
2020-11-05T09:56:55.000Z
2020-11-05T09:56:55.000Z
#!/usr/bin/env python import Tkinter import tkMessageBox import rwkpickle, rwkos, os, glob from Tkinter import StringVar, IntVar, DoubleVar pklpath = rwkos.FindFullPath('pygimp_lecturerc.pkl') class myWindow: def close(self, *args, **kwargs): #print('got close event') self.mw.destroy() ...
32.792169
117
0.524479
10,153
0.93258
0
0
0
0
0
0
2,544
0.233673
5613450d1a3d2afb56deff14d8b5138f01e852ba
3,159
py
Python
gqcnn/grasping/constraint_fn.py
richardliaw/gqcnn
a0930e9d2fef3c930c41dd91cde902d261348fbe
[ "CNRI-Python" ]
1
2019-05-29T00:16:56.000Z
2019-05-29T00:16:56.000Z
gqcnn/grasping/constraint_fn.py
richardliaw/gqcnn
a0930e9d2fef3c930c41dd91cde902d261348fbe
[ "CNRI-Python" ]
null
null
null
gqcnn/grasping/constraint_fn.py
richardliaw/gqcnn
a0930e9d2fef3c930c41dd91cde902d261348fbe
[ "CNRI-Python" ]
4
2019-05-22T17:33:30.000Z
2020-02-18T03:44:01.000Z
""" Constraint functions for grasp sampling Author: Jeff Mahler """ from abc import ABCMeta, abstractmethod import numpy as np class GraspConstraintFn(object): """ Abstract constraint functions for grasp sampling. """ __metaclass__ = ABCMeta def __init__(self, config): # set params ...
29.523364
91
0.598291
3,025
0.957582
0
0
691
0.21874
0
0
1,422
0.450142
5614247b9f08fee16422d09e7313f385f4710f7f
1,198
py
Python
backend/apis/family_group/models/memberships.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
1
2020-10-17T03:39:56.000Z
2020-10-17T03:39:56.000Z
backend/apis/family_group/models/memberships.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
null
null
null
backend/apis/family_group/models/memberships.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
null
null
null
"""Modelo de pacientes""" # Django from django.db import models # Utilidades from apis.utils.models import ModelUtil class Memberships(ModelUtil): """Modelo de pacientes Un paciente puede tener un grupo familiar asociado, si el paciente crea el grupo sera el titular de la familia, los miembros del ...
33.277778
90
0.724541
1,076
0.898164
0
0
0
0
0
0
551
0.459933
56149181b9ac3f4c3f13a262ec51ccae2f8c900c
193
py
Python
django_amenities/apps.py
okfde/django-amenities
a5522e33e27deb93a2ed49f89a6d9222fc146523
[ "MIT" ]
1
2020-09-17T12:27:04.000Z
2020-09-17T12:27:04.000Z
django_amenities/apps.py
okfde/django-amenities
a5522e33e27deb93a2ed49f89a6d9222fc146523
[ "MIT" ]
null
null
null
django_amenities/apps.py
okfde/django-amenities
a5522e33e27deb93a2ed49f89a6d9222fc146523
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class AmenitiesConfig(AppConfig): name = 'django_amenities' verbose_name = _("Amenities App")
24.125
54
0.777202
101
0.523316
0
0
0
0
0
0
33
0.170984
5614d2570169d56a1b186afec8d94e21051b1226
8,051
py
Python
aiida/cmdline/commands/shell.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/commands/shell.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/commands/shell.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
36.931193
85
0.531859
6,475
0.804248
0
0
0
0
0
0
2,785
0.34592
56179b533974125c261d08cc31294d0f7cdd2f1f
4,052
py
Python
hw4/dynamics.py
tombroz/berkeley-cs294_homework
5419b772c734093c750362d2e09b46ce59d79da6
[ "MIT" ]
null
null
null
hw4/dynamics.py
tombroz/berkeley-cs294_homework
5419b772c734093c750362d2e09b46ce59d79da6
[ "MIT" ]
null
null
null
hw4/dynamics.py
tombroz/berkeley-cs294_homework
5419b772c734093c750362d2e09b46ce59d79da6
[ "MIT" ]
null
null
null
import os import tensorflow as tf import numpy as np C = 1e-13 # Predefined function to build a feedforward neural network def build_mlp(input_placeholder, output_size, scope, n_layers=2, size=500, activation=tf.tanh, output_activ...
44.527473
235
0.633761
3,444
0.849951
0
0
0
0
0
0
658
0.162389
56192f9c7a8a841e4444c9e8024df8a56b978917
4,881
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Util/Introspector.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Util/Introspector.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Util/Introspector.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
#!/usr/bin/env python # Copyright (C) 2006 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser Ge...
35.889706
93
0.69453
48
0.009834
0
0
0
0
0
0
4,388
0.898996
56196bbd9c6e856d4ee7624c88862a4b3d4c3852
1,017
py
Python
app/Product/service.py
psyphore/flask-phone-book
cceec3caabdeb03f260d37f3b55d5aa7a52c30c2
[ "MIT" ]
null
null
null
app/Product/service.py
psyphore/flask-phone-book
cceec3caabdeb03f260d37f3b55d5aa7a52c30c2
[ "MIT" ]
2
2021-03-19T03:39:56.000Z
2021-06-08T20:28:03.000Z
app/Product/service.py
psyphore/flask-phone-book
cceec3caabdeb03f260d37f3b55d5aa7a52c30c2
[ "MIT" ]
null
null
null
import maya from py2neo.ogm import Node from app.graph_context import GraphContext from .cypher_queries import get_product_by_id_query class ProductService(): ''' This Product Service houses all the actions can be performed against the product object ''' def fetch(self, id): '''Fetch a sing...
28.25
91
0.610619
877
0.86234
0
0
0
0
0
0
294
0.289086
5619839185e18406d5f02290ccde9ac7b3a514d6
119
py
Python
oimdp/__init__.py
OpenITI/oimdp
9cb0dfb298b90d85f08e248633369c0c3c494c65
[ "MIT" ]
1
2022-02-21T11:55:39.000Z
2022-02-21T11:55:39.000Z
oimdp/__init__.py
OpenITI/oimdp
9cb0dfb298b90d85f08e248633369c0c3c494c65
[ "MIT" ]
7
2022-02-05T09:04:20.000Z
2022-02-06T15:31:28.000Z
oimdp/__init__.py
OpenITI/oimdp
9cb0dfb298b90d85f08e248633369c0c3c494c65
[ "MIT" ]
1
2021-07-09T06:23:26.000Z
2021-07-09T06:23:26.000Z
from .parser import parser def parse(text): return parser(text) __all__ = [ 'parse' ] __version__ = '1.1.0'
9.916667
26
0.638655
0
0
0
0
0
0
0
0
14
0.117647
561cd253e6ea0665afa83c977dd5106cee35aeab
2,041
py
Python
adlib/tests/adversaries/feature_deletion_test.py
xyvivian/adlib
79a93baa8aa542080bbf55734168eb89317df83c
[ "MIT" ]
null
null
null
adlib/tests/adversaries/feature_deletion_test.py
xyvivian/adlib
79a93baa8aa542080bbf55734168eb89317df83c
[ "MIT" ]
null
null
null
adlib/tests/adversaries/feature_deletion_test.py
xyvivian/adlib
79a93baa8aa542080bbf55734168eb89317df83c
[ "MIT" ]
null
null
null
import pytest from adlib.adversaries.feature_deletion import AdversaryFeatureDeletion from sklearn import svm from adlib.learners import SimpleLearner from data_reader.dataset import EmailDataset from data_reader.operations import load_dataset @pytest.fixture def data(): dataset = EmailDataset(path='./data_reader...
35.189655
92
0.748653
0
0
0
0
650
0.318471
0
0
270
0.132288
5620a3700cb215b8dbfe4bc707bf2609413ae823
1,225
py
Python
cut_plist.py
labbbirder/cut-plist
115394d23fbb58044cb421c9c2c220267e80bad5
[ "MIT" ]
1
2021-05-15T14:44:27.000Z
2021-05-15T14:44:27.000Z
cut_plist.py
labbbirder/cut-plist
115394d23fbb58044cb421c9c2c220267e80bad5
[ "MIT" ]
null
null
null
cut_plist.py
labbbirder/cut-plist
115394d23fbb58044cb421c9c2c220267e80bad5
[ "MIT" ]
1
2021-05-15T15:49:58.000Z
2021-05-15T15:49:58.000Z
import plistlib import os import numpy as np from PIL import Image def read_plist(plist_path): with open(plist_path, "rb") as fp: return plistlib.load(fp) def to_list(x): return x.replace("{", "").replace("}", "").split(",") def cut_plist(output, texture, save_dir): if not os.path.exists(save_...
28.488372
79
0.590204
0
0
0
0
0
0
0
0
103
0.084082
56250bc919b313aa73d52cc5859b027f7a03d9eb
18,160
py
Python
aiida/scheduler/plugins/test_pbspro.py
BIGDATA2015-AIIDA-EXTENSION/query_engine
d1cfc7cfe6084854005d2376e3825310c66876b5
[ "MIT", "BSD-3-Clause" ]
null
null
null
aiida/scheduler/plugins/test_pbspro.py
BIGDATA2015-AIIDA-EXTENSION/query_engine
d1cfc7cfe6084854005d2376e3825310c66876b5
[ "MIT", "BSD-3-Clause" ]
null
null
null
aiida/scheduler/plugins/test_pbspro.py
BIGDATA2015-AIIDA-EXTENSION/query_engine
d1cfc7cfe6084854005d2376e3825310c66876b5
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from aiida.scheduler.plugins.pbspro import * import unittest #import logging import uuid text_qstat_f_to_test = """Job Id: 68350.mycluster Job_Name = cell-Qnormal Job_Owner = usernum1@mycluster.cluster job_state = Q queue = Q_express server = mycluster Checkpoint...
40.626398
278
0.691244
3,402
0.187335
0
0
0
0
0
0
15,103
0.831663
5625a3407da98d220cca4d5d9645cc01df5da356
368
py
Python
server/server/posts/migrations/0003_auto_20210727_1618.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
4
2021-07-05T10:49:26.000Z
2021-11-24T11:34:43.000Z
server/server/posts/migrations/0003_auto_20210727_1618.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
39
2021-06-21T15:02:37.000Z
2022-02-28T15:07:42.000Z
server/server/posts/migrations/0003_auto_20210727_1618.py
Eyal-VR/connective
46857dd79dc58f63c3afb9791ecf8adf853a6c57
[ "MIT" ]
17
2021-06-16T08:59:45.000Z
2021-09-29T11:35:38.000Z
# Generated by Django 3.1.11 on 2021-07-27 13:18 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0002_auto_20210727_1319'), ] operations = [ migrations.RenameField( model_name='post', old_name='creation_time', ...
19.368421
48
0.589674
282
0.766304
0
0
0
0
0
0
110
0.298913
562632b9da3d75bd5559f771c9a43df116af2988
3,791
py
Python
examples/lstm2.py
neosensory/tflite_micro_compiler
2c21a364e9763e51706cf6f6b447ed908314e117
[ "Apache-2.0" ]
48
2020-05-10T13:33:02.000Z
2022-03-24T06:47:50.000Z
examples/lstm2.py
neosensory/tflite_micro_compiler
2c21a364e9763e51706cf6f6b447ed908314e117
[ "Apache-2.0" ]
49
2020-05-21T22:03:51.000Z
2022-03-09T08:09:45.000Z
examples/lstm2.py
neosensory/tflite_micro_compiler
2c21a364e9763e51706cf6f6b447ed908314e117
[ "Apache-2.0" ]
16
2020-05-10T12:59:20.000Z
2022-03-09T06:04:22.000Z
#!/usr/bin/python3 import random import math import numpy as np import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, LSTM train_batches=2000 eval_batches=50 train_sequlen=32 train_inputs=1 lstm_states=6 #activation="relu" activation=None rec_activat...
35.429907
214
0.724347
0
0
0
0
0
0
0
0
611
0.161171
5626db7729bb19f378a1f3a643736beccf6c224a
1,251
py
Python
critiquebrainz/frontend/external/musicbrainz_db/includes.py
AbhinavOhri/critiquebrainz
d1c1c175209ec78bcced1dbfd5bd64a46be2d1f4
[ "Apache-2.0" ]
null
null
null
critiquebrainz/frontend/external/musicbrainz_db/includes.py
AbhinavOhri/critiquebrainz
d1c1c175209ec78bcced1dbfd5bd64a46be2d1f4
[ "Apache-2.0" ]
null
null
null
critiquebrainz/frontend/external/musicbrainz_db/includes.py
AbhinavOhri/critiquebrainz
d1c1c175209ec78bcced1dbfd5bd64a46be2d1f4
[ "Apache-2.0" ]
null
null
null
import critiquebrainz.frontend.external.musicbrainz_db.exceptions as mb_exceptions RELATABLE_TYPES = [ 'area', 'artist', 'label', 'place', 'event', 'recording', 'release', 'release-group', 'series', 'url', 'work', 'instrument' ] RELATION_INCLUDES = [entity + '-rels' for ...
35.742857
117
0.666667
0
0
0
0
0
0
0
0
484
0.38689
562700dc0c3f61321ee677178dd5d439d1213e59
801
py
Python
djstripe/migrations/0007_auto_20200507_1913.py
bomba1990/dj-stripe
507593c619145c30264d0e85b39bdba6f671a6d6
[ "MIT" ]
null
null
null
djstripe/migrations/0007_auto_20200507_1913.py
bomba1990/dj-stripe
507593c619145c30264d0e85b39bdba6f671a6d6
[ "MIT" ]
null
null
null
djstripe/migrations/0007_auto_20200507_1913.py
bomba1990/dj-stripe
507593c619145c30264d0e85b39bdba6f671a6d6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.11 on 2020-05-07 19:13 from django.db import migrations, models import djstripe.fields class Migration(migrations.Migration): dependencies = [ ('djstripe', '0006_2_3'), ] operations = [ migrations.AlterField( model_name='plan', name='amo...
30.807692
185
0.635456
684
0.853933
0
0
0
0
0
0
219
0.273408
5627c77651ef6fd4e5b5393b20243c305bd397e3
5,511
py
Python
Gradient Descent/Gradient_Descent_Housing.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
Gradient Descent/Gradient_Descent_Housing.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
Gradient Descent/Gradient_Descent_Housing.py
prasad-madhale/machine-learning
bb611f809c16e1425136052e215ca83bd1148652
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Feb 1 01:07:37 2019 @author: prasad """ import numpy as np import pandas as pd import math import matplotlib.pyplot as plt def get_data(column_names): ''' Args column_names: names of the features in dataset Returns train_d...
27.974619
113
0.633279
0
0
0
0
0
0
0
0
2,507
0.454908
56282d4008935ca3506817cc4fc64ad64b685ddf
2,833
py
Python
teamspirit/preorders/views.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
teamspirit/preorders/views.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
teamspirit/preorders/views.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.urls import reverse_lazy from django.views.generic import ListView from django.views.generic.edit import FormView from teamspirit.catalogs.models import Product from teamspirit.preorders.forms import AddToCartForm, DropFromCartForm from teamspirit.p...
31.831461
78
0.701024
2,138
0.754677
0
0
0
0
0
0
301
0.106248
562c8104d444901a4e792e4529b19010d3a451b2
40,079
py
Python
tasks/prime.py
transcom/milmove_load_testing
b46526d9332c864de8891ef391394c0e9e8e7b95
[ "MIT" ]
2
2021-07-20T13:41:14.000Z
2021-10-07T18:27:48.000Z
tasks/prime.py
transcom/milmove_load_testing
b46526d9332c864de8891ef391394c0e9e8e7b95
[ "MIT" ]
69
2020-07-08T21:05:58.000Z
2022-03-31T11:35:14.000Z
tasks/prime.py
transcom/milmove_load_testing
b46526d9332c864de8891ef391394c0e9e8e7b95
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TaskSets and tasks for the Prime & Support APIs """ import logging import json import random from copy import deepcopy from typing import Dict from locust import tag, task, TaskSet from utils.constants import ( INTERNAL_API_KEY, TEST_PDF, ZERO_UUID, PRIME_API_KEY, SUPPO...
44.384275
120
0.637366
39,434
0.982436
0
0
31,437
0.783203
0
0
16,637
0.414485
562d12ab0b477e0d9a560f4a82cf032a9804cac0
848
py
Python
BubbleSort.py
R-Magnotti/Python.Interesting_Sorting_Algortithms
e10f8105499ac2c90923def7c324c46acda920aa
[ "MIT" ]
null
null
null
BubbleSort.py
R-Magnotti/Python.Interesting_Sorting_Algortithms
e10f8105499ac2c90923def7c324c46acda920aa
[ "MIT" ]
null
null
null
BubbleSort.py
R-Magnotti/Python.Interesting_Sorting_Algortithms
e10f8105499ac2c90923def7c324c46acda920aa
[ "MIT" ]
null
null
null
####################################################################################################################### # Author: Richie Magnotti # # Goal of code is to demonstrate sorting via bubble sort algorithm ################################################################...
28.266667
119
0.325472
0
0
0
0
0
0
0
0
414
0.488208
562ee8fc837ffcba58e8885e34e37a46643ca002
3,350
py
Python
lib/cell.py
rafelafrance/boyd-bird-journal
289744703220015cb61d22a8e6f8eff0040b296f
[ "MIT" ]
null
null
null
lib/cell.py
rafelafrance/boyd-bird-journal
289744703220015cb61d22a8e6f8eff0040b296f
[ "MIT" ]
5
2017-11-02T17:12:31.000Z
2021-04-21T19:07:39.000Z
lib/cell.py
rafelafrance/boyd-bird-journal
289744703220015cb61d22a8e6f8eff0040b296f
[ "MIT" ]
null
null
null
"""Data and functions for dealing with cell contents.""" # pylint: disable=no-member, too-many-instance-attributes, too-many-arguments import numpy as np from skimage import util from skimage.transform import probabilistic_hough_line from lib.util import Crop, Offset, intersection class Cell: """Data and func...
37.222222
77
0.617015
3,061
0.913731
0
0
0
0
0
0
747
0.222985