hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f70a75c3e0f6aec1f478f8422ff34adbef44b487
3,812
py
Python
tests/unit/test_diffusion2d_functions.py
constracktor/testing-python-exercise
70b15a9d8e193fc518e46996cbc3e9f52cb1336d
[ "CC-BY-4.0" ]
null
null
null
tests/unit/test_diffusion2d_functions.py
constracktor/testing-python-exercise
70b15a9d8e193fc518e46996cbc3e9f52cb1336d
[ "CC-BY-4.0" ]
null
null
null
tests/unit/test_diffusion2d_functions.py
constracktor/testing-python-exercise
70b15a9d8e193fc518e46996cbc3e9f52cb1336d
[ "CC-BY-4.0" ]
null
null
null
""" Tests for functions in class SolveDiffusion2D """ import numpy as np #import pytest from diffusion2d import SolveDiffusion2D from unittest import TestCase class TestOperations(TestCase): """ Test suite for mathematical operations functions. """ def setUp(self): # Fixture self.w = ...
27.228571
74
0.574239
import numpy as np from diffusion2d import SolveDiffusion2D from unittest import TestCase class TestOperations(TestCase): def setUp(self): self.w = 12. self.h = 20. self.dx = 0.4 self.dy = 0.2 self.D = 0.5 self.T_cold = 300. self.T_hot = 700. d...
true
true
f70a75e1d9bb17e8ca4b66e379fd93f2e4479d40
5,117
py
Python
examples/gto/20-ao_integrals.py
nmardirossian/pyscf
57c8912dcfcc1157a822feede63df54ed1067115
[ "BSD-2-Clause" ]
1
2018-05-02T19:55:30.000Z
2018-05-02T19:55:30.000Z
examples/gto/20-ao_integrals.py
nmardirossian/pyscf
57c8912dcfcc1157a822feede63df54ed1067115
[ "BSD-2-Clause" ]
null
null
null
examples/gto/20-ao_integrals.py
nmardirossian/pyscf
57c8912dcfcc1157a822feede63df54ed1067115
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' Access AO integrals Mole.intor and Mole.intor_by_shell functions can generate AO integrals. Calling Mole.intor with the integral function name returns a integral matrix for all basis functions defined in Mole. If the integral operator has many...
30.825301
82
0.580027
import numpy from pyscf import gto, scf mol = gto.M( verbose = 0, atom = 'C 0 0 0; O 0 0 1.5', basis = 'ccpvdz' ) mf = scf.RHF(mol) mf.kernel() dm = mf.make_rdm1() s = mol.intor('cint1e_ovlp_sph') t = mol.intor('cint1e_kin_sph') v = mol.intor('cint1e_nuc_sph') s1 = mol.intor('cint1e_ipovlp_sph', comp=3)...
true
true
f70a767814ed94c06907f469c28d401cf661137d
1,461
py
Python
setup.py
mcflugen/plume
7fc65ba9461fece372eef4b2bee9ba6e72f42d19
[ "MIT" ]
null
null
null
setup.py
mcflugen/plume
7fc65ba9461fece372eef4b2bee9ba6e72f42d19
[ "MIT" ]
null
null
null
setup.py
mcflugen/plume
7fc65ba9461fece372eef4b2bee9ba6e72f42d19
[ "MIT" ]
1
2018-08-30T17:32:26.000Z
2018-08-30T17:32:26.000Z
from setuptools import setup, find_packages from distutils.extension import Extension import numpy as np import cython_gsl import versioneer def read_requirements(): import os path = os.path.dirname(os.path.abspath(__file__)) requirements_file = os.path.join(path, 'requirements.txt') try: wi...
31.085106
76
0.626283
from setuptools import setup, find_packages from distutils.extension import Extension import numpy as np import cython_gsl import versioneer def read_requirements(): import os path = os.path.dirname(os.path.abspath(__file__)) requirements_file = os.path.join(path, 'requirements.txt') try: wi...
true
true
f70a7759e95a54a93bcca22412d4b186cb575890
791
py
Python
src/home/migrations/0001_initial.py
gatortechuf/gatortechuf.com
8d0ad5f0772a42113c41bf454e96c2fa2c22d1f3
[ "MIT" ]
2
2016-07-18T02:11:37.000Z
2017-08-27T17:28:25.000Z
src/home/migrations/0001_initial.py
gatortechuf/gatortechuf.com
8d0ad5f0772a42113c41bf454e96c2fa2c22d1f3
[ "MIT" ]
66
2016-06-18T04:00:01.000Z
2018-02-03T17:42:17.000Z
src/home/migrations/0001_initial.py
gatortechuf/gatortechuf.com
8d0ad5f0772a42113c41bf454e96c2fa2c22d1f3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-03-17 03:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Semester...
30.423077
114
0.624526
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='SemesterModules', fields=[ ('id', models.AutoField(...
true
true
f70a79fccd50251c7ab4ed1433fa98f79020be5a
3,038
py
Python
guardabinario.py
paatshala1/firststeps
5b91e1ad9a0a1197438d827d23879701cf81afbb
[ "MIT" ]
null
null
null
guardabinario.py
paatshala1/firststeps
5b91e1ad9a0a1197438d827d23879701cf81afbb
[ "MIT" ]
null
null
null
guardabinario.py
paatshala1/firststeps
5b91e1ad9a0a1197438d827d23879701cf81afbb
[ "MIT" ]
null
null
null
import pickle # ============================================================================= # EL MÉTODO __str__ NO PERMITE IMPRIMIR LA INFO DEL OBJETO COMO STRING, YA QUE # DE LO CONTRARIO EL MÉTODO showp() MOSTRARÍA LOS OBJETOS CREADOS EN MEMORIA # PERO NO SU INFO: (<__main__.People object at 0x00000218F088B...
34.134831
81
0.455892
import pickle class Person: def __init__(self , name , nac , age): self.name = name self.nac = nac self.age = age print("\nIt's been created:" , self.name) def __str__(self): return "{} {} {}".format(self.name , self.nac , self.age) # =======...
true
true
f70a7a3f1fea92b6119cb3af8052d25d1baf7caf
737
py
Python
python-algorithm/common/trie_node.py
isudox/nerd-algorithm
c1fbe153953cf3fc24395f75d102016fdf9ea0fa
[ "MIT" ]
5
2017-06-11T09:19:34.000Z
2019-01-16T16:58:31.000Z
python-algorithm/common/trie_node.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
5
2020-03-22T13:53:54.000Z
2020-03-23T08:49:35.000Z
python-algorithm/common/trie_node.py
isudox/nerd-algorithm
c1fbe153953cf3fc24395f75d102016fdf9ea0fa
[ "MIT" ]
1
2019-03-02T15:50:43.000Z
2019-03-02T15:50:43.000Z
# Trie Tree Node from typing import Optional class TrieNode: def __init__(self, char: Optional[str] = None): self.char = char self.children = [] self.counter = 0 self.end = False def add(self, word: str): node = self for char in word: found_in_child...
27.296296
51
0.497965
from typing import Optional class TrieNode: def __init__(self, char: Optional[str] = None): self.char = char self.children = [] self.counter = 0 self.end = False def add(self, word: str): node = self for char in word: found_in_children = False ...
true
true
f70a7a5a3c556402a7e07cce5f17dc361e7a5d74
7,221
py
Python
moto/ec2/responses/elastic_ip_addresses.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
moto/ec2/responses/elastic_ip_addresses.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
1
2022-03-07T07:39:03.000Z
2022-03-07T07:39:03.000Z
moto/ec2/responses/elastic_ip_addresses.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
from moto.ec2.utils import add_tag_specification from ._base_response import EC2BaseResponse class ElasticIPAddresses(EC2BaseResponse): def allocate_address(self): domain = self._get_param("Domain", if_none="standard") reallocate_address = self._get_param("Address", if_none=None) tags = se...
40.340782
113
0.596316
from moto.ec2.utils import add_tag_specification from ._base_response import EC2BaseResponse class ElasticIPAddresses(EC2BaseResponse): def allocate_address(self): domain = self._get_param("Domain", if_none="standard") reallocate_address = self._get_param("Address", if_none=None) tags = se...
true
true
f70a7a9d650cd69fbf70293d70feac3812614d3c
6,344
py
Python
markdown/extensions/headerid.py
koocieyu/interactive-tutorials
873851b37f0a13b6218ba1e656d51169010981fe
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
markdown/extensions/headerid.py
koocieyu/interactive-tutorials
873851b37f0a13b6218ba1e656d51169010981fe
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
markdown/extensions/headerid.py
koocieyu/interactive-tutorials
873851b37f0a13b6218ba1e656d51169010981fe
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#!/usr/bin/python """ HeaderID Extension for Python-Markdown ====================================== Adds ability to set HTML IDs for headers. Basic usage: >>> import markdown >>> text = "# Some Header # {#some_id}" >>> md = markdown.markdown(text, ['headerid']) >>> md u'<h1 id="some_id">Some Hea...
32.367347
112
0.539565
import markdown from markdown import etree import re from string import ascii_lowercase, digits, punctuation ID_CHARS = ascii_lowercase + digits + '-_' IDCOUNT_RE = re.compile(r'^(.*)_([0-9]+)$') class HeaderIdProcessor(markdown.blockprocessors.BlockProcessor): RE = re.compile(r"""(^|\n) ...
true
true
f70a7c482c9860f258e06df2c22abbd6f1f50e9f
60,529
py
Python
xdl-algorithm-solution/Rocket/script/rnn.py
Ru-Xiang/x-deeplearning
04cc0497150920c64b06bb8c314ef89977a3427a
[ "Apache-2.0" ]
4,071
2018-12-13T04:17:38.000Z
2022-03-30T03:29:35.000Z
xdl-algorithm-solution/Rocket/script/rnn.py
laozhuang727/x-deeplearning
781545783a4e2bbbda48fc64318fb2c6d8bbb3cc
[ "Apache-2.0" ]
359
2018-12-21T01:14:57.000Z
2022-02-15T07:18:02.000Z
xdl-algorithm-solution/Rocket/script/rnn.py
laozhuang727/x-deeplearning
781545783a4e2bbbda48fc64318fb2c6d8bbb3cc
[ "Apache-2.0" ]
1,054
2018-12-20T09:57:42.000Z
2022-03-29T07:16:53.000Z
# Copyright (C) 2016-2018 Alibaba Group Holding Limited # # 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...
41.316724
88
0.693321
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.framework import constant_op from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.framework import tensor_shape from tensorf...
true
true
f70a7c8757ec8f2334ab61df77799b4f77e92dfc
1,711
py
Python
libs/cnn/customlayers.py
franckfotso/kr_cnn_models
242f4a6650004af5849404c8e0e7b3621ba020b6
[ "MIT" ]
1
2017-07-06T03:30:33.000Z
2017-07-06T03:30:33.000Z
libs/cnn/customlayers.py
romyny/kr_cnn_models
242f4a6650004af5849404c8e0e7b3621ba020b6
[ "MIT" ]
null
null
null
libs/cnn/customlayers.py
romyny/kr_cnn_models
242f4a6650004af5849404c8e0e7b3621ba020b6
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Written by: Romuald FOTSO # Licensed: MIT License # Copyright (c) 2017 # Based on 'dandxy89' github repository: # https://github.com/dandxy89/ImageModels/blob/master/KerasLayers/Custom_layers.py # -------------------------------------------------------- from ...
33.54902
82
0.484512
from keras.engine import Layer from keras import backend as K class LRN2D(Layer): def __init__(self, alpha=1e-4, k=2, beta=0.75, n=5, **kwargs): if n % 2 == 0: raise NotImplementedError( "LRN2D only works with odd n. n provided: " + str(n)) super(LRN2D, self).__init__(*...
true
true
f70a7c97aa3c694dfc2fdc8eb7fb9de62211e209
119
py
Python
carbon/client/metrics/__init__.py
mosquito/carbonate
5eca69602b9fc03dc0b982f9104c7ebb04159059
[ "MIT" ]
2
2017-12-21T15:40:12.000Z
2018-02-07T10:00:14.000Z
carbon/client/metrics/__init__.py
mosquito/carbonate
5eca69602b9fc03dc0b982f9104c7ebb04159059
[ "MIT" ]
2
2016-12-02T08:53:48.000Z
2016-12-05T21:46:04.000Z
carbon/client/metrics/__init__.py
mosquito/carbonate
5eca69602b9fc03dc0b982f9104c7ebb04159059
[ "MIT" ]
5
2015-07-22T14:31:28.000Z
2020-09-30T08:20:29.000Z
from .timer import Timer from .simple import Counter from .heartbeat import HeartBeat from .collector import Collector
23.8
32
0.831933
from .timer import Timer from .simple import Counter from .heartbeat import HeartBeat from .collector import Collector
true
true
f70a7d0c89eb7ecab3a17df6d81f44d7bf8719a8
928
py
Python
examples/addons/pycsg_sphere_vs_menger_sponge.py
hh-wu/ezdxf
62509ba39b826ee9b36f19c0a5abad7f3518186a
[ "MIT" ]
1
2021-06-05T09:15:15.000Z
2021-06-05T09:15:15.000Z
examples/addons/pycsg_sphere_vs_menger_sponge.py
luoyu-123/ezdxf
40963a2010028f87846241e08434f43ab421f3fb
[ "MIT" ]
null
null
null
examples/addons/pycsg_sphere_vs_menger_sponge.py
luoyu-123/ezdxf
40963a2010028f87846241e08434f43ab421f3fb
[ "MIT" ]
null
null
null
# Copyright (c) 2020, Manfred Moitzi # License: MIT License from pathlib import Path from time import perf_counter import ezdxf from ezdxf.render.forms import sphere from ezdxf.addons import MengerSponge from ezdxf.addons.pycsg import CSG DIR = Path('~/Desktop/Outbox').expanduser() doc = ezdxf.new() doc.layers.new('...
29
83
0.727371
from pathlib import Path from time import perf_counter import ezdxf from ezdxf.render.forms import sphere from ezdxf.addons import MengerSponge from ezdxf.addons.pycsg import CSG DIR = Path('~/Desktop/Outbox').expanduser() doc = ezdxf.new() doc.layers.new('sponge', dxfattribs={'color': 5}) doc.layers.new('sphere', d...
true
true
f70a7dc2646487373bb5e2077dd5a51a79e9d7fb
10,424
py
Python
Code/Model/resnet.py
Jinwon-DK/GaitAnalysis
6b7be4aae9963b8986519af5bcbff39f32ebf2cd
[ "MIT" ]
5
2020-07-23T05:55:54.000Z
2021-07-09T22:15:33.000Z
Code/Model/resnet.py
Jinwon-DK/GaitAnalysis
6b7be4aae9963b8986519af5bcbff39f32ebf2cd
[ "MIT" ]
null
null
null
Code/Model/resnet.py
Jinwon-DK/GaitAnalysis
6b7be4aae9963b8986519af5bcbff39f32ebf2cd
[ "MIT" ]
2
2020-07-23T06:05:54.000Z
2021-04-13T05:55:24.000Z
from __future__ import division import six import keras from keras.models import Model from keras.layers import ( Input, Activation, Dense, Flatten ) from keras.layers import Conv2D, MaxPooling2D, AveragePooling2D from keras.layers import add from keras.layers import BatchNormalization from keras.regul...
37.905455
109
0.647448
from __future__ import division import six import keras from keras.models import Model from keras.layers import ( Input, Activation, Dense, Flatten ) from keras.layers import Conv2D, MaxPooling2D, AveragePooling2D from keras.layers import add from keras.layers import BatchNormalization from keras.regul...
true
true
f70a7e2116a93a54134b28967766017ed21b90c0
633
py
Python
Back-End/Python/Basics/Part -4- OOP/07 - Metaprogramming/04_metaclass.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
25
2021-04-28T02:51:26.000Z
2022-03-24T13:58:04.000Z
Back-End/Python/Basics/Part -4- OOP/07 - Metaprogramming/04_metaclass.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
1
2022-03-03T23:33:41.000Z
2022-03-03T23:35:41.000Z
Back-End/Python/Basics/Part -4- OOP/07 - Metaprogramming/04_metaclass.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
15
2021-05-30T01:35:20.000Z
2022-03-25T12:38:25.000Z
import math class CustomType(type): def __new__(mcls, name, bases, class_dict): print(f'Using custom metaclass {mcls} to create class {name}...') cls_obj = super().__new__(mcls, name, bases, class_dict) cls_obj.circ = lambda self: 2 * math.pi * self.r return cls_obj class Circle(m...
26.375
81
0.606635
import math class CustomType(type): def __new__(mcls, name, bases, class_dict): print(f'Using custom metaclass {mcls} to create class {name}...') cls_obj = super().__new__(mcls, name, bases, class_dict) cls_obj.circ = lambda self: 2 * math.pi * self.r return cls_obj class Circle(m...
true
true
f70a7f477db698ca69684e5e9325cf10a6ff9cb3
1,801
py
Python
main.py
ankurankan/game_of_life
81cf2f7f70a05019e78206d1ee7a8205aa590186
[ "MIT" ]
null
null
null
main.py
ankurankan/game_of_life
81cf2f7f70a05019e78206d1ee7a8205aa590186
[ "MIT" ]
null
null
null
main.py
ankurankan/game_of_life
81cf2f7f70a05019e78206d1ee7a8205aa590186
[ "MIT" ]
null
null
null
from time import sleep import numpy as np import matplotlib.pyplot as plt def get_initial_state(size): return np.random.choice([0, 1], size) def compute_next_state(state): new_state = np.zeros(state.shape, dtype=int) for i in range(state.shape[0]): for j in range(state.shape[1]): low...
28.587302
78
0.533592
from time import sleep import numpy as np import matplotlib.pyplot as plt def get_initial_state(size): return np.random.choice([0, 1], size) def compute_next_state(state): new_state = np.zeros(state.shape, dtype=int) for i in range(state.shape[0]): for j in range(state.shape[1]): low...
true
true
f70a7f830ddc667a9fa64921ab6b3d031ed80d41
42,759
py
Python
tests/auth_tests/test_forms.py
markvdb/django
b08a18f17ba53eb0bc7fd7993924f3d7f8ed5c52
[ "PSF-2.0", "BSD-3-Clause" ]
1
2019-03-04T12:45:49.000Z
2019-03-04T12:45:49.000Z
tests/auth_tests/test_forms.py
Kiku-git/django
b08a18f17ba53eb0bc7fd7993924f3d7f8ed5c52
[ "PSF-2.0", "BSD-3-Clause" ]
1
2019-06-24T07:34:43.000Z
2019-06-24T07:34:43.000Z
tests/auth_tests/test_forms.py
Kiku-git/django
b08a18f17ba53eb0bc7fd7993924f3d7f8ed5c52
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import datetime import re from unittest import mock from django import forms from django.contrib.auth.forms import ( AdminPasswordChangeForm, AuthenticationForm, PasswordChangeForm, PasswordResetForm, ReadOnlyPasswordHashField, ReadOnlyPasswordHashWidget, SetPasswordForm, UserChangeForm, UserCreationForm, ...
40.68411
119
0.634556
import datetime import re from unittest import mock from django import forms from django.contrib.auth.forms import ( AdminPasswordChangeForm, AuthenticationForm, PasswordChangeForm, PasswordResetForm, ReadOnlyPasswordHashField, ReadOnlyPasswordHashWidget, SetPasswordForm, UserChangeForm, UserCreationForm, ...
true
true
f70a801c5d683c1dba1026dff2fe4f7c00cc9e36
1,524
py
Python
NiaPy/benchmarks/chungReynolds.py
tuahk/NiaPy
c863d801fda8e1949a3ca716a4de7c7ca3d0ea16
[ "MIT" ]
null
null
null
NiaPy/benchmarks/chungReynolds.py
tuahk/NiaPy
c863d801fda8e1949a3ca716a4de7c7ca3d0ea16
[ "MIT" ]
null
null
null
NiaPy/benchmarks/chungReynolds.py
tuahk/NiaPy
c863d801fda8e1949a3ca716a4de7c7ca3d0ea16
[ "MIT" ]
null
null
null
# encoding=utf8 # pylint: disable=anomalous-backslash-in-string, old-style-class import math __all__ = ['ChungReynolds'] class ChungReynolds: r"""Implementation of Chung Reynolds functions. Date: 2018 Authors: Lucija Brezočnik License: MIT Function: **Chung Reynolds function** :math:...
25.4
97
0.566273
import math __all__ = ['ChungReynolds'] class ChungReynolds: def __init__(self, Lower=-100.0, Upper=100.0): self.Lower = Lower self.Upper = Upper @classmethod def function(cls): def evaluate(D, sol): val = 0.0 for i in range(D): val += m...
true
true
f70a811a53d750ec8a97ef9cb6bb7b23600aa0f9
3,184
bzl
Python
google/cloud/bigtable/bigtable_client.bzl
millerantonio810/google-cloud-cpp
71582d922bc22b0dcbc58234f36c726ea3b7c171
[ "Apache-2.0" ]
3
2020-05-27T23:21:23.000Z
2020-05-31T22:31:53.000Z
google/cloud/bigtable/bigtable_client.bzl
millerantonio810/google-cloud-cpp
71582d922bc22b0dcbc58234f36c726ea3b7c171
[ "Apache-2.0" ]
2
2020-05-31T22:26:57.000Z
2020-06-19T00:14:10.000Z
google/cloud/bigtable/bigtable_client.bzl
millerantonio810/google-cloud-cpp
71582d922bc22b0dcbc58234f36c726ea3b7c171
[ "Apache-2.0" ]
1
2021-12-09T16:26:23.000Z
2021-12-09T16:26:23.000Z
# Copyright 2018 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...
28.428571
79
0.682789
bigtable_client_hdrs = [ "admin_client.h", "app_profile_config.h", "async_row_reader.h", "cell.h", "client_options.h", "cluster_config.h", "cluster_list_responses.h", "column_family.h", "completion_queue.h", "data_client.h", "expr.h", "filters.h", "iam_binding.h", ...
true
true
f70a8219ec7071e721f28c56f09238a86a3a82ea
312
py
Python
models/devices.py
stephanGarland/PyNotion
74460e4792758c740b4e779772f734f97d7ad371
[ "MIT" ]
9
2017-11-29T04:01:22.000Z
2022-02-06T09:19:24.000Z
models/devices.py
stephanGarland/PyNotion
74460e4792758c740b4e779772f734f97d7ad371
[ "MIT" ]
3
2021-09-01T20:51:32.000Z
2021-09-03T16:30:48.000Z
models/devices.py
stephanGarland/PyNotion
74460e4792758c740b4e779772f734f97d7ad371
[ "MIT" ]
1
2021-09-02T19:28:44.000Z
2021-09-02T19:28:44.000Z
class Device: def __init__(self, id=None, token=None, platform=None, endpoint=None, created_at=None, updated_at=None): self.id = id self.token = token self.platform = platform self.endpoint = endpoint self.created_at = created_at self.updated_at = updated_at
31.2
108
0.650641
class Device: def __init__(self, id=None, token=None, platform=None, endpoint=None, created_at=None, updated_at=None): self.id = id self.token = token self.platform = platform self.endpoint = endpoint self.created_at = created_at self.updated_at = updated_at
true
true
f70a8336bc5479f73419747b75d720f65693f002
3,574
py
Python
django_rq/management/commands/rqworker.py
UKTV/django_rq
681d8797eacda78a46db2897235b84b6929b8d16
[ "MIT" ]
null
null
null
django_rq/management/commands/rqworker.py
UKTV/django_rq
681d8797eacda78a46db2897235b84b6929b8d16
[ "MIT" ]
null
null
null
django_rq/management/commands/rqworker.py
UKTV/django_rq
681d8797eacda78a46db2897235b84b6929b8d16
[ "MIT" ]
1
2017-06-07T16:03:35.000Z
2017-06-07T16:03:35.000Z
from distutils.version import LooseVersion import os import importlib import logging import sys from django.core.management.base import BaseCommand from django.utils.version import get_version from django_rq.queues import get_queues from django_rq.workers import get_exception_handlers from redis.exceptions import Co...
39.274725
92
0.622832
from distutils.version import LooseVersion import os import importlib import logging import sys from django.core.management.base import BaseCommand from django.utils.version import get_version from django_rq.queues import get_queues from django_rq.workers import get_exception_handlers from redis.exceptions import Co...
true
true
f70a8465913381e196aa41c4ceeea530e222a6a2
2,947
py
Python
src/utils/args.py
ioangatop/srVAE
dfee765c53f11f4653e7c6e7118a339832656867
[ "MIT" ]
60
2020-06-11T11:06:15.000Z
2022-03-31T14:35:19.000Z
src/utils/args.py
ioangatop/srVAE
dfee765c53f11f4653e7c6e7118a339832656867
[ "MIT" ]
9
2020-06-28T09:45:28.000Z
2020-12-30T15:20:19.000Z
src/utils/args.py
ioangatop/srVAE
dfee765c53f11f4653e7c6e7118a339832656867
[ "MIT" ]
9
2020-07-28T12:03:32.000Z
2022-03-31T14:34:08.000Z
import torch import argparse # ----- Parser ----- def parser(): PARSER = argparse.ArgumentParser(description='Training parameters.') # Dataset PARSER.add_argument('--dataset', default='CIFAR10', type=str, choices=['CIFAR10', 'CelebA', 'Imagenette', 'ImageNet32', 'ImageNet64'], ...
38.272727
118
0.562606
import torch import argparse def parser(): PARSER = argparse.ArgumentParser(description='Training parameters.') PARSER.add_argument('--dataset', default='CIFAR10', type=str, choices=['CIFAR10', 'CelebA', 'Imagenette', 'ImageNet32', 'ImageNet64'], help="Data...
true
true
f70a84c63ca36138b87e96ed011c0fe5cf9d31bc
9,961
py
Python
third_party/catapult/dashboard/dashboard/models/histogram_test.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/catapult/dashboard/dashboard/models/histogram_test.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/catapult/dashboard/dashboard/models/histogram_test.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import sys from dashboard.common import testing_common from dashboard.common import utils from dashboard.models import histogram from tracing.va...
32.766447
78
0.609979
import json import sys from dashboard.common import testing_common from dashboard.common import utils from dashboard.models import histogram from tracing.value.diagnostics import reserved_infos class SparseDiagnosticTest(testing_common.TestCase): def setUp(self): super(SparseDiagnosticTest, self).setUp() ...
true
true
f70a85945485651bb9a81ecb734bd755346a98cc
3,208
py
Python
meetnowport/settings.py
bonaw/Meetnow
02b77af78db7fa403a5ecee49ee1c64eea893a7a
[ "MIT" ]
null
null
null
meetnowport/settings.py
bonaw/Meetnow
02b77af78db7fa403a5ecee49ee1c64eea893a7a
[ "MIT" ]
null
null
null
meetnowport/settings.py
bonaw/Meetnow
02b77af78db7fa403a5ecee49ee1c64eea893a7a
[ "MIT" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.5. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ i...
26.512397
92
0.668329
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'a6j(qtzl$#pd2g^fm+=g27^^r&%gz6sh!o45ekij=--bj)^qx$' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.c...
true
true
f70a859d84435c0a6414934e105c3751a53b1cad
161
py
Python
uclasm/matching/filters/__init__.py
cfld/uclasm
dbdbe99fa8bd6e85a7e90ac2e666c1e667c62d57
[ "MIT" ]
null
null
null
uclasm/matching/filters/__init__.py
cfld/uclasm
dbdbe99fa8bd6e85a7e90ac2e666c1e667c62d57
[ "MIT" ]
null
null
null
uclasm/matching/filters/__init__.py
cfld/uclasm
dbdbe99fa8bd6e85a7e90ac2e666c1e667c62d57
[ "MIT" ]
null
null
null
"""Provide functions for filtering.""" from .stats_filter import stats_filter from .topology_filter import topology_filter from .run_filters import run_filters
26.833333
44
0.832298
from .stats_filter import stats_filter from .topology_filter import topology_filter from .run_filters import run_filters
true
true
f70a8613e1d5d47e63f3f531a3bb99f989be6e47
11,728
py
Python
libcxx/utils/libcxx/test/features.py
jinge90/llvm
1f3f9b9b1181feb559e85970155678c18a436711
[ "Apache-2.0" ]
null
null
null
libcxx/utils/libcxx/test/features.py
jinge90/llvm
1f3f9b9b1181feb559e85970155678c18a436711
[ "Apache-2.0" ]
null
null
null
libcxx/utils/libcxx/test/features.py
jinge90/llvm
1f3f9b9b1181feb559e85970155678c18a436711
[ "Apache-2.0" ]
null
null
null
#===----------------------------------------------------------------------===## # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # #===----------------------------------...
56.114833
171
0.632418
from libcxx.test.dsl import * import re import shutil import sys import subprocess _isClang = lambda cfg: '__clang__' in compilerMacros(cfg) and '__apple_build_version__' not in compilerMacros(cfg) _isAppleClang = lambda cfg: '__apple_build_version__' in compilerMacros(cfg) _isGCC = lambda cfg: '__GNUC__'...
true
true
f70a86e1f718625d42509fc16e98474c738aa896
4,104
py
Python
lib/composite/LiPolymerDataScaler.py
KanHatakeyama/annealing_project
eac2dfe65c480450a5d12b09db2c1c9f83d03389
[ "MIT" ]
null
null
null
lib/composite/LiPolymerDataScaler.py
KanHatakeyama/annealing_project
eac2dfe65c480450a5d12b09db2c1c9f83d03389
[ "MIT" ]
null
null
null
lib/composite/LiPolymerDataScaler.py
KanHatakeyama/annealing_project
eac2dfe65c480450a5d12b09db2c1c9f83d03389
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.preprocessing import StandardScaler from DataUtility import get_column_names class LiPolymerDataScaler: """ a special class to scale the lithium polymer database """ def __init__(self): self.scaling_dict = {} self.main_val_params = [...
31.813953
116
0.569444
import pandas as pd import numpy as np from sklearn.preprocessing import StandardScaler from DataUtility import get_column_names class LiPolymerDataScaler: def __init__(self): self.scaling_dict = {} self.main_val_params = ["SMILES_wt", "wt_ratio", "inorg_contain_ratio"] self.main_txt_para...
true
true
f70a87ce62cba398e7370660217593d337998146
140
py
Python
python/data_sutram/scraper/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/scraper/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/scraper/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def test_func(i): print(i) if i>10: return else: test_func(i+1) if __name__ == "__main__": test_func(2)
15.555556
26
0.521429
def test_func(i): print(i) if i>10: return else: test_func(i+1) if __name__ == "__main__": test_func(2)
true
true
f70a87f89311f5320018937ff535733ef8e8f539
10,355
py
Python
curtsies/formatstringarray.py
toolforger/curtsies
7f86c07d95aa22b004db9acf8f787e1abf49b581
[ "MIT" ]
3
2015-07-13T12:53:40.000Z
2018-01-21T20:38:46.000Z
curtsies/formatstringarray.py
toolforger/curtsies
7f86c07d95aa22b004db9acf8f787e1abf49b581
[ "MIT" ]
null
null
null
curtsies/formatstringarray.py
toolforger/curtsies
7f86c07d95aa22b004db9acf8f787e1abf49b581
[ "MIT" ]
1
2018-01-21T20:38:03.000Z
2018-01-21T20:38:03.000Z
""" Format String 2D array 2d array for compositing term-formated strings -autoexpanding vertically -interesting get_item behavior (renders fmtstrs) -caching behavior eventually >>> a = FSArray(10, 14) >>> a.shape (10, 14) >>> a[1] = 'i' >>> a[3:4, :] = ['i' * 14] >>> a[16:17, :] = ['j' * 14] >>> a.shape, a[16, 0] ...
33.29582
111
0.547562
import sys import logging from .formatstring import fmtstr from .formatstring import normalize_slice from .formatstring import FmtStr from typing import ( Any, Union, Text, List, Sequence, overload, Tuple, cast, no_type_check, ) actualize = str logger = logging.getLogger(__name__...
true
true
f70a8a2cc7770d9c4ef39696ddde8e9dab7893c8
670
py
Python
leetcode/[cutz]mergekarr.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
3
2019-11-26T14:31:01.000Z
2020-01-10T18:19:46.000Z
leetcode/[cutz]mergekarr.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
null
null
null
leetcode/[cutz]mergekarr.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
null
null
null
import heapq # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def mergeKLists(self, lists: List[ListNode]) -> ListNode: heap = [] root = res = ListNode(None) for i in range...
25.769231
67
0.525373
import heapq class Solution: def mergeKLists(self, lists: List[ListNode]) -> ListNode: heap = [] root = res = ListNode(None) for i in range(len(lists)): heapq.heappush(heap, (lists[i].val, i, lists[i])) print(heap) while heap: m = heapq.heappop(heap...
true
true
f70a8a8f20d027af22a12a78590c0391f8a9a744
6,361
py
Python
monai/metrics/surface_distance.py
danielschulz/MONAI
54ef6e9e700f0de3d50184c0148f953be871a58e
[ "Apache-2.0" ]
null
null
null
monai/metrics/surface_distance.py
danielschulz/MONAI
54ef6e9e700f0de3d50184c0148f953be871a58e
[ "Apache-2.0" ]
null
null
null
monai/metrics/surface_distance.py
danielschulz/MONAI
54ef6e9e700f0de3d50184c0148f953be871a58e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
42.406667
108
0.652413
import warnings from typing import Union import numpy as np import torch from monai.metrics.utils import * from monai.utils import MetricReduction class SurfaceDistanceMetric: def __init__( self, include_background: bool = False, symmetric: bool = False, distance_metric: str = ...
true
true
f70a8ae488be6f9e83f14e6becdc73cfc39e30b3
611
py
Python
src/spyne_smev/server/wsgi.py
barsgroup/m3-spyne-smev
356d190a0f341f3b91d626eba81875cde8ff12f2
[ "MIT" ]
7
2015-10-22T02:57:33.000Z
2021-08-08T16:46:48.000Z
src/spyne_smev/server/wsgi.py
barsgroup/m3-spyne-smev
356d190a0f341f3b91d626eba81875cde8ff12f2
[ "MIT" ]
2
2017-05-01T05:31:41.000Z
2020-03-18T16:26:43.000Z
src/spyne_smev/server/wsgi.py
barsgroup/m3-spyne-smev
356d190a0f341f3b91d626eba81875cde8ff12f2
[ "MIT" ]
8
2015-10-22T02:57:47.000Z
2021-11-08T08:28:32.000Z
# -*- coding: utf- """ wsgi.py :Created: 12 Jun 2014 :Author: tim """ from spyne.server.wsgi import WsgiApplication as _SpyneWsgiApplication from spyne_smev.server import _AllYourInterfaceDocuments class WsgiApplication(_SpyneWsgiApplication): def __init__(self, app, c...
26.565217
79
0.631751
from spyne.server.wsgi import WsgiApplication as _SpyneWsgiApplication from spyne_smev.server import _AllYourInterfaceDocuments class WsgiApplication(_SpyneWsgiApplication): def __init__(self, app, chunked=True, max_content_length=2 * 1024 * 1024, block_length=8 * 1024): super(WsgiAp...
true
true
f70a8c102b413f15a56d9719e7836be3413d7bfe
2,477
py
Python
Advent2020/23.py
SSteve/AdventOfCode
aed16209381ccd292fc02008f1f2da5d16ff1a05
[ "MIT" ]
null
null
null
Advent2020/23.py
SSteve/AdventOfCode
aed16209381ccd292fc02008f1f2da5d16ff1a05
[ "MIT" ]
null
null
null
Advent2020/23.py
SSteve/AdventOfCode
aed16209381ccd292fc02008f1f2da5d16ff1a05
[ "MIT" ]
null
null
null
class Node: def __init__(self, next: int): self.next = next self.up = False def MakeNodes(data: str): values = [int(ch) - 1 for ch in data] nodes = [] for value in range(len(values)): index = values.index(value) next = values[(index + 1) % len(values)] no...
26.634409
52
0.608801
class Node: def __init__(self, next: int): self.next = next self.up = False def MakeNodes(data: str): values = [int(ch) - 1 for ch in data] nodes = [] for value in range(len(values)): index = values.index(value) next = values[(index + 1) % len(values)] no...
true
true
f70a8c1d9d385ae5c5b01cb27f773a0610725826
4,907
py
Python
nextdl/extractor/palcomp3.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
1
2021-12-19T13:55:20.000Z
2021-12-19T13:55:20.000Z
nextdl/extractor/palcomp3.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
nextdl/extractor/palcomp3.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_str from ..utils import int_or_none, str_or_none, try_get from .common import InfoExtractor class PalcoMP3BaseIE(InfoExtractor): _GQL_QUERY_TMPL = """{ artist(slug: "%s") { %s } }""" _ARTIST_FIELDS_TMPL = "...
29.035503
133
0.525372
from __future__ import unicode_literals import re from ..compat import compat_str from ..utils import int_or_none, str_or_none, try_get from .common import InfoExtractor class PalcoMP3BaseIE(InfoExtractor): _GQL_QUERY_TMPL = """{ artist(slug: "%s") { %s } }""" _ARTIST_FIELDS_TMPL = """music(slug: "%...
true
true
f70a8cead3e6860b7b1976560adb6005e93da51d
11,829
py
Python
vissl/data/dataset_catalog.py
NKI-AI/vissl
ddf5a97572c6640438faabba1f91426028520c4b
[ "MIT" ]
null
null
null
vissl/data/dataset_catalog.py
NKI-AI/vissl
ddf5a97572c6640438faabba1f91426028520c4b
[ "MIT" ]
null
null
null
vissl/data/dataset_catalog.py
NKI-AI/vissl
ddf5a97572c6640438faabba1f91426028520c4b
[ "MIT" ]
null
null
null
# 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. """ Data and labels file for various datasets. """ import json import logging import os from typing import List import numpy as np from fvcor...
38.03537
93
0.668442
import json import logging import os from typing import List import numpy as np from fvcore.common.file_io import PathManager from vissl.data.datasets import get_coco_imgs_labels_info, get_voc_images_labels_info from vissl.utils.misc import get_json_data_catalog_file from vissl.utils.slurm import get_slurm_dir c...
true
true
f70a8d36f31dcd5350e51b402a11c45acf9c1b33
100
py
Python
Alys/src/alys/alys.py
PikaBlue107/alys-pronouns
ff86648bdc9a5bc82beaf5c007ad88be94961324
[ "MIT" ]
null
null
null
Alys/src/alys/alys.py
PikaBlue107/alys-pronouns
ff86648bdc9a5bc82beaf5c007ad88be94961324
[ "MIT" ]
null
null
null
Alys/src/alys/alys.py
PikaBlue107/alys-pronouns
ff86648bdc9a5bc82beaf5c007ad88be94961324
[ "MIT" ]
null
null
null
''' Created on Nov 20, 2019 @author: Melody Griesen ''' if __name__ == '__main__': pass
12.5
27
0.59
if __name__ == '__main__': pass
true
true
f70a8d437ab6062a2810b247f87863917ccd942b
4,412
py
Python
dags/python_scripts/load_staging_genre.py
jrderek/Movie_Analytics-Data-Engineering-
9789b2d4a13964b93f7f99b010137e9c4e6cc807
[ "MIT" ]
null
null
null
dags/python_scripts/load_staging_genre.py
jrderek/Movie_Analytics-Data-Engineering-
9789b2d4a13964b93f7f99b010137e9c4e6cc807
[ "MIT" ]
null
null
null
dags/python_scripts/load_staging_genre.py
jrderek/Movie_Analytics-Data-Engineering-
9789b2d4a13964b93f7f99b010137e9c4e6cc807
[ "MIT" ]
null
null
null
import sys import os from datetime import datetime from pyspark import SparkConf, SparkContext from pyspark.sql import SparkSession from pyspark.sql.types import (StructType, StructField as Fld, DoubleType as Dbl, IntegerType as Int, DateType as Date, Boolea...
38.365217
95
0.577289
import sys import os from datetime import datetime from pyspark import SparkConf, SparkContext from pyspark.sql import SparkSession from pyspark.sql.types import (StructType, StructField as Fld, DoubleType as Dbl, IntegerType as Int, DateType as Date, Boolea...
true
true
f70a8ee941ed8c8f91318a8c247810c74106e4af
8,951
py
Python
scripts/enip-logix/gen_pull.py
Vadoola/pulr
d276b94b4ffcc7381b661654cc004c5b8ebc2776
[ "Apache-2.0" ]
13
2020-08-28T17:20:23.000Z
2022-02-03T06:23:51.000Z
scripts/enip-logix/gen_pull.py
Vadoola/pulr
d276b94b4ffcc7381b661654cc004c5b8ebc2776
[ "Apache-2.0" ]
1
2021-05-06T10:43:42.000Z
2021-05-12T13:21:19.000Z
scripts/enip-logix/gen_pull.py
Vadoola/pulr
d276b94b4ffcc7381b661654cc004c5b8ebc2776
[ "Apache-2.0" ]
3
2020-09-02T08:10:12.000Z
2021-05-06T03:37:57.000Z
#!/usr/bin/env python3 """ Generates Pulr "pull" config section from JSON, created with fetch-tags.py """ import sys import argparse from textwrap import dedent try: import rapidjson as json except: import json import yaml DEFAULT_FREQ = 1 DEFAULT_PATH = '1,0' DEFAULT_CPU = 'LGX' DEFAULT_TIMEOUT = 2 def ...
28.597444
80
0.431013
import sys import argparse from textwrap import dedent try: import rapidjson as json except: import json import yaml DEFAULT_FREQ = 1 DEFAULT_PATH = '1,0' DEFAULT_CPU = 'LGX' DEFAULT_TIMEOUT = 2 def generate(tag_list, tag_file=None, tag_data=None, exclude=None, ...
true
true
f70a9017583af2e35cffeb78d26cdec6a68df2ec
9,648
py
Python
makeReadmeMD.py
freehackquest/2016-tasks
3d4a1525213d9ef106bcfa8c5c6e33938489366d
[ "MIT" ]
null
null
null
makeReadmeMD.py
freehackquest/2016-tasks
3d4a1525213d9ef106bcfa8c5c6e33938489366d
[ "MIT" ]
null
null
null
makeReadmeMD.py
freehackquest/2016-tasks
3d4a1525213d9ef106bcfa8c5c6e33938489366d
[ "MIT" ]
1
2019-01-22T18:05:26.000Z
2019-01-22T18:05:26.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import json import os import sys import os.path import re from pprint import pprint from subprocess import Popen, PIPE readme = open('README.md', 'w') readme.write("# Free Hack Quest 2016\n") def getListOfDirsWithTasks(): result = [] dirs = os.listdir('./'); for d in di...
29.595092
134
0.632566
import json import os import sys import os.path import re from pprint import pprint from subprocess import Popen, PIPE readme = open('README.md', 'w') readme.write("# Free Hack Quest 2016\n") def getListOfDirsWithTasks(): result = [] dirs = os.listdir('./'); for d in dirs: print(d); if os.path.isdir(d): ...
true
true
f70a90c74a64770e6bdc44f68bb42a89c0778438
1,441
py
Python
sms.py
Lyokolux/smsNotificationFree
e82290c1d643bc249c9e70bf9df54c05005da789
[ "MIT" ]
null
null
null
sms.py
Lyokolux/smsNotificationFree
e82290c1d643bc249c9e70bf9df54c05005da789
[ "MIT" ]
null
null
null
sms.py
Lyokolux/smsNotificationFree
e82290c1d643bc249c9e70bf9df54c05005da789
[ "MIT" ]
null
null
null
import sys import click import json from urllib.request import urlopen from urllib.parse import quote RESPONSES_CODE = { 200 : "SMS sent", 400 : "One parameter is missing (identifier, password or message).", 402 : "Too many SMS sent.", 403 : "Service not activated or false login/key.", 500 : "Serv...
32.022222
100
0.581541
import sys import click import json from urllib.request import urlopen from urllib.parse import quote RESPONSES_CODE = { 200 : "SMS sent", 400 : "One parameter is missing (identifier, password or message).", 402 : "Too many SMS sent.", 403 : "Service not activated or false login/key.", 500 : "Serv...
true
true
f70a91aa7357a9d5cc499152a4eeee87757d1d2b
1,086
py
Python
Experiments/ARIMA/RunnerARIMA.py
nj-czy/UCTB
bddb8b47953bef1f44cb06f1a57a3d7efbd31c3a
[ "MIT" ]
null
null
null
Experiments/ARIMA/RunnerARIMA.py
nj-czy/UCTB
bddb8b47953bef1f44cb06f1a57a3d7efbd31c3a
[ "MIT" ]
null
null
null
Experiments/ARIMA/RunnerARIMA.py
nj-czy/UCTB
bddb8b47953bef1f44cb06f1a57a3d7efbd31c3a
[ "MIT" ]
null
null
null
import os from tqdm import tqdm # dataset = [['Bike','NYC','all','365','sum','0.1'],['DiDi','Xian','all','all','sum','0.1'], # ['Metro','Chongqing','all','all','sum','0.1'],['ChargeStation','Beijing','all','all','max','0.1'], # ['METR','LA','all','all','average','0.2'],['PEMS','BAY','all','all','average','0.2']] datase...
51.714286
273
0.529466
import os from tqdm import tqdm dataset = [['METR','LA','all','all','average','0.2'],['PEMS','BAY','all','all','average','0.2']] with open("ARIMAresult3.txt","w") as fp: for index in tqdm(range(len(dataset))): fp.write("*********************************************************\n") fp.write("Proce...
true
true
f70a937ccb0deb64a2997b29d55af5c27b1ab97a
1,186
py
Python
python/HyperCube.py
Chrischar/HyperCube
40b565e6639462ca521db70091f84f1e5f59f163
[ "MIT" ]
null
null
null
python/HyperCube.py
Chrischar/HyperCube
40b565e6639462ca521db70091f84f1e5f59f163
[ "MIT" ]
null
null
null
python/HyperCube.py
Chrischar/HyperCube
40b565e6639462ca521db70091f84f1e5f59f163
[ "MIT" ]
null
null
null
import cv2 import sys import pyglet cascade_path = sys.argv[1] classifier = cv2.CascadeClassifier(cascade_path) # https://realpython.com/blog/python/face-detection-in-python-using-a-webcam/ video_capture = cv2.VideoCapture(0) # Scale the video down to size so as not to break performance video_capture.set(cv2.cv.CV_C...
24.708333
77
0.662732
import cv2 import sys import pyglet cascade_path = sys.argv[1] classifier = cv2.CascadeClassifier(cascade_path) video_capture = cv2.VideoCapture(0) video_capture.set(cv2.cv.CV_CAP_PROP_FRAME_WIDTH, 480) video_capture.set(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT, 360) window = pyglet.window.Window(width=480, height=360) ima...
false
true
f70a94376224e4e62b4838d7f26f665e40767945
1,015
py
Python
openstack_dashboard/dashboards/project/overview/urls.py
hashsos/hashcloudos-horizon
0cc080ca6777e4a1dac5cbcc6143202baddab176
[ "Apache-2.0" ]
930
2015-01-04T08:06:03.000Z
2022-03-13T18:47:13.000Z
openstack_dashboard/dashboards/project/overview/urls.py
hashsos/hashcloudos-horizon
0cc080ca6777e4a1dac5cbcc6143202baddab176
[ "Apache-2.0" ]
106
2019-01-18T03:06:55.000Z
2019-11-29T05:06:18.000Z
openstack_dashboard/dashboards/project/overview/urls.py
hashsos/hashcloudos-horizon
0cc080ca6777e4a1dac5cbcc6143202baddab176
[ "Apache-2.0" ]
1,040
2015-01-01T18:48:28.000Z
2022-03-19T08:35:18.000Z
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
36.25
78
0.737931
from django.conf.urls import url from openstack_dashboard.dashboards.project.overview import views urlpatterns = [ url(r'^$', views.ProjectOverview.as_view(), name='index'), url(r'^warning$', views.WarningView.as_view(), name='warning'), ]
true
true
f70a944f916b145fc345dc057278b25d671d9ad4
170
py
Python
app/projects/TestProject.py
cchernn/ProjectsWebsite
ad5a23539f5034956076259b55f628542241d9d8
[ "MIT" ]
null
null
null
app/projects/TestProject.py
cchernn/ProjectsWebsite
ad5a23539f5034956076259b55f628542241d9d8
[ "MIT" ]
null
null
null
app/projects/TestProject.py
cchernn/ProjectsWebsite
ad5a23539f5034956076259b55f628542241d9d8
[ "MIT" ]
null
null
null
class handler(): def __init__(self): self.greeting = "Hello World" def __repr__(self): return self.greeting if __name__ == "__main__": pass
17
37
0.611765
class handler(): def __init__(self): self.greeting = "Hello World" def __repr__(self): return self.greeting if __name__ == "__main__": pass
true
true
f70a94c0e06d3fd4dafc82aa2df645c9cb1dba9e
916
py
Python
script/gimp_histemul.py
matteli/histemul
61f1ea8e1263b92fd2bead0c808f67940faad802
[ "BSD-2-Clause" ]
1
2019-07-05T09:40:50.000Z
2019-07-05T09:40:50.000Z
script/gimp_histemul.py
matteli/histemul
61f1ea8e1263b92fd2bead0c808f67940faad802
[ "BSD-2-Clause" ]
null
null
null
script/gimp_histemul.py
matteli/histemul
61f1ea8e1263b92fd2bead0c808f67940faad802
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from gimpfu import * from gimpenums import * import sys import os def color2id(color): a = (color[0]<<16) | (color[1]<<8) | color[2] b = (a & 0xF00000) >> 12 | (a & 0xF000) >> 8 | (a & 0xF00) << 4 | \ (a & 0xF0) >> 4 c = (b & 0xF000) | (b & 0x800) >> 11 | (b & 0x400) >> 7 | \ ...
24.756757
71
0.469432
from gimpfu import * from gimpenums import * import sys import os def color2id(color): a = (color[0]<<16) | (color[1]<<8) | color[2] b = (a & 0xF00000) >> 12 | (a & 0xF000) >> 8 | (a & 0xF00) << 4 | \ (a & 0xF0) >> 4 c = (b & 0xF000) | (b & 0x800) >> 11 | (b & 0x400) >> 7 | \ (b & 0x200) >> 3 | (b ...
true
true
f70a95254e35822d1e937560e483bbab7dc9a08f
1,510
py
Python
docker_engine/komand_docker_engine/actions/container_remove/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
docker_engine/komand_docker_engine/actions/container_remove/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
docker_engine/komand_docker_engine/actions/container_remove/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Input: FORCE = "force" ID = "id" LINK = "link" V = "v" class Output: SUCCESS = "success" class ContainerRemoveInput(komand.Input): schema = json.loads(""" { "type": "object", "title": "Variables", "pro...
19.868421
82
0.542384
import komand import json class Input: FORCE = "force" ID = "id" LINK = "link" V = "v" class Output: SUCCESS = "success" class ContainerRemoveInput(komand.Input): schema = json.loads(""" { "type": "object", "title": "Variables", "properties": { "force": { "type":...
true
true
f70a95cc159cace0f85857909a871669972e3f9e
31,375
py
Python
scipy/integrate/quadrature.py
maxi-marufo/my-scipy
be6c2597fcee86419592ac512319301c7ddfc118
[ "BSD-3-Clause" ]
1
2020-07-22T17:29:25.000Z
2020-07-22T17:29:25.000Z
scipy/integrate/quadrature.py
maxi-marufo/my-scipy
be6c2597fcee86419592ac512319301c7ddfc118
[ "BSD-3-Clause" ]
null
null
null
scipy/integrate/quadrature.py
maxi-marufo/my-scipy
be6c2597fcee86419592ac512319301c7ddfc118
[ "BSD-3-Clause" ]
null
null
null
import functools import numpy as np import math import types import warnings # trapz is a public function for scipy.integrate, # even though it's actually a NumPy function. from numpy import trapz from scipy.special import roots_legendre from scipy.special import gammaln __all__ = ['fixed_quad', 'quadrature', 'romber...
32.278807
103
0.578135
import functools import numpy as np import math import types import warnings from numpy import trapz from scipy.special import roots_legendre from scipy.special import gammaln __all__ = ['fixed_quad', 'quadrature', 'romberg', 'trapz', 'simps', 'romb', 'cumtrapz', 'newton_cotes'] # Make See Also linking f...
true
true
f70a96e43b69336d19518c9d33a4c86634d2adbd
3,541
py
Python
indy_common/authorize/auth_cons_strategies.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
627
2017-07-06T12:38:08.000Z
2022-03-30T13:18:43.000Z
indy_common/authorize/auth_cons_strategies.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
580
2017-06-29T17:59:57.000Z
2022-03-29T21:37:52.000Z
indy_common/authorize/auth_cons_strategies.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
704
2017-06-29T17:45:34.000Z
2022-03-30T07:08:58.000Z
from abc import abstractmethod, ABCMeta from indy_common.authorize.auth_actions import split_action_id from indy_common.authorize.auth_constraints import AbstractAuthConstraint, AbstractConstraintSerializer from indy_common.state import config from plenum.common.metrics_collector import MetricsName, MetricsCollector f...
35.767677
103
0.663372
from abc import abstractmethod, ABCMeta from indy_common.authorize.auth_actions import split_action_id from indy_common.authorize.auth_constraints import AbstractAuthConstraint, AbstractConstraintSerializer from indy_common.state import config from plenum.common.metrics_collector import MetricsName, MetricsCollector f...
true
true
f70a9784cb666d54aa8b8ed0284ab8fdc2ba59d2
3,518
py
Python
supervisor/backups/validate.py
mib1185/homeassistant-supervisor
d536ac8604e1b5a0f5008c92e3d98fcc8ab16bb5
[ "Apache-2.0" ]
597
2017-04-27T15:10:08.000Z
2019-12-18T16:02:57.000Z
supervisor/backups/validate.py
mib1185/homeassistant-supervisor
d536ac8604e1b5a0f5008c92e3d98fcc8ab16bb5
[ "Apache-2.0" ]
799
2017-05-02T00:26:07.000Z
2019-12-18T21:40:18.000Z
supervisor/backups/validate.py
mib1185/homeassistant-supervisor
d536ac8604e1b5a0f5008c92e3d98fcc8ab16bb5
[ "Apache-2.0" ]
173
2017-04-26T17:03:42.000Z
2019-12-15T10:41:57.000Z
"""Validate some things around restore.""" from __future__ import annotations from typing import Any import voluptuous as vol from ..backups.const import BackupType from ..const import ( ATTR_ADDONS, ATTR_COMPRESSED, ATTR_CRYPTO, ATTR_DATE, ATTR_DOCKER, ATTR_FOLDERS, ATTR_HOMEASSISTANT, ...
28.370968
88
0.608016
from __future__ import annotations from typing import Any import voluptuous as vol from ..backups.const import BackupType from ..const import ( ATTR_ADDONS, ATTR_COMPRESSED, ATTR_CRYPTO, ATTR_DATE, ATTR_DOCKER, ATTR_FOLDERS, ATTR_HOMEASSISTANT, ATTR_NAME, ATTR_PROTECTED, ATTR_...
true
true
f70a978dd0049c27244b57c32fae3ca446d6330a
574
py
Python
utils/heap_queue.py
yeshwanthv5/PruneFL
ad1f7f33b0605d1d79abfbe42ef287fcc613a943
[ "MIT" ]
6
2021-07-01T05:35:08.000Z
2022-03-04T18:53:31.000Z
utils/heap_queue.py
yeshwanthv5/PruneFL
ad1f7f33b0605d1d79abfbe42ef287fcc613a943
[ "MIT" ]
null
null
null
utils/heap_queue.py
yeshwanthv5/PruneFL
ad1f7f33b0605d1d79abfbe42ef287fcc613a943
[ "MIT" ]
1
2021-06-21T14:24:47.000Z
2021-06-21T14:24:47.000Z
import heapq from typing import Iterable class HeapQueue: def __init__(self, init_h: Iterable): self.h = [(-val, index) for index, val in init_h] heapq.heapify(self.h) def replace_largest(self, new_val): heapq.heapreplace(self.h, (-new_val, self.max_index)) def pop(self): ...
22.076923
70
0.625436
import heapq from typing import Iterable class HeapQueue: def __init__(self, init_h: Iterable): self.h = [(-val, index) for index, val in init_h] heapq.heapify(self.h) def replace_largest(self, new_val): heapq.heapreplace(self.h, (-new_val, self.max_index)) def pop(self): ...
true
true
f70a9949d4166222fbcd0e7d65ca4dd9d870cbb4
628
py
Python
dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/LockChangeRequest.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/LockChangeRequest.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/LockChangeRequest.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
## ## # File auto-generated against equivalent DynamicSerialize Java class class LockChangeRequest(object): def __init__(self): self.requests = None self.workstationID = None self.siteID = None def getRequests(self): return self.requests def setRequests(self, requests): ...
20.258065
68
0.664013
class LockChangeRequest(object): def __init__(self): self.requests = None self.workstationID = None self.siteID = None def getRequests(self): return self.requests def setRequests(self, requests): self.requests = requests def getWorkstationID(self): r...
true
true
f70a998e45a9cd53af285a0aff5b0be6fe9d545d
1,642
py
Python
xua/build_tools.py
kmirzavaziri/xua-cli
e442f7522665cf6a4605acce3c023e8194f07176
[ "MIT" ]
null
null
null
xua/build_tools.py
kmirzavaziri/xua-cli
e442f7522665cf6a4605acce3c023e8194f07176
[ "MIT" ]
null
null
null
xua/build_tools.py
kmirzavaziri/xua-cli
e442f7522665cf6a4605acce3c023e8194f07176
[ "MIT" ]
null
null
null
import os from xua import helpers from xua.constants import CLI, BUILD from xua.exceptions import UserError from xua.builders.doc import htmlOld def getBuildEngine(project, config): if project == CLI.PROJECT_SERVER_PHP: # @TODO return None elif project == CLI.PROJECT_MARSHAL_DART: # @T...
37.318182
92
0.629111
import os from xua import helpers from xua.constants import CLI, BUILD from xua.exceptions import UserError from xua.builders.doc import htmlOld def getBuildEngine(project, config): if project == CLI.PROJECT_SERVER_PHP: return None elif project == CLI.PROJECT_MARSHAL_DART: retu...
true
true
f70a9b7fcfa84a960e6cec1bfcbbbdb37659e311
34,480
py
Python
lib/membase/helper/rebalance_helper.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
lib/membase/helper/rebalance_helper.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
lib/membase/helper/rebalance_helper.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
from random import shuffle import time import logger from couchbase_helper.cluster import Cluster from membase.api.exception import StatsUnavailableException, \ ServerAlreadyJoinedException, RebalanceFailedException, \ FailoverFailedException, InvalidArgumentException, ServerSelfJoinException, \ AddNodeExce...
44.779221
171
0.553393
from random import shuffle import time import logger from couchbase_helper.cluster import Cluster from membase.api.exception import StatsUnavailableException, \ ServerAlreadyJoinedException, RebalanceFailedException, \ FailoverFailedException, InvalidArgumentException, ServerSelfJoinException, \ AddNodeExce...
false
true
f70a9cb73c105b012ba90f9d50a5890ed86a8e48
14,491
py
Python
homeassistant/components/notify/html5.py
glogiotatidis/home-assistant
3b83a64f7cdf8a3b90f7f445869155c549c631b0
[ "Apache-2.0" ]
3
2019-01-24T20:32:14.000Z
2022-03-22T14:25:48.000Z
homeassistant/components/notify/html5.py
abusalimov/home-assistant
5b53bd6aa02a45ddcd4bf4358e74ddbc0285d8d3
[ "Apache-2.0" ]
null
null
null
homeassistant/components/notify/html5.py
abusalimov/home-assistant
5b53bd6aa02a45ddcd4bf4358e74ddbc0285d8d3
[ "Apache-2.0" ]
1
2022-03-22T14:25:52.000Z
2022-03-22T14:25:52.000Z
""" HTML5 Push Messaging notification service. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/notify.html5/ """ import datetime import json import logging import time import uuid from aiohttp.hdrs import AUTHORIZATION import voluptuous as vol from volup...
34.502381
79
0.630736
import datetime import json import logging import time import uuid from aiohttp.hdrs import AUTHORIZATION import voluptuous as vol from voluptuous.humanize import humanize_error from homeassistant.util.json import load_json, save_json from homeassistant.exceptions import HomeAssistantError from homeassistant.componen...
true
true
f70a9ce853cb9ce01b71a3e215447fff235084b1
386
py
Python
mysit/urls.py
GhasemMatoo/Mysite_Restaurants
f44e0b0374016850cc47f212db0d5693d6de2ee6
[ "MIT" ]
null
null
null
mysit/urls.py
GhasemMatoo/Mysite_Restaurants
f44e0b0374016850cc47f212db0d5693d6de2ee6
[ "MIT" ]
null
null
null
mysit/urls.py
GhasemMatoo/Mysite_Restaurants
f44e0b0374016850cc47f212db0d5693d6de2ee6
[ "MIT" ]
null
null
null
from django.urls import path from mysit.views import * app_name = 'mysit' urlpatterns = [ path('',index_views, name='index'), path('about',about_views, name='about'), path('contact',contact_views, name='contact'), path('gallery',gallery_views, name='gallery'), path('menu',menu_views, name='menu')...
27.571429
62
0.683938
from django.urls import path from mysit.views import * app_name = 'mysit' urlpatterns = [ path('',index_views, name='index'), path('about',about_views, name='about'), path('contact',contact_views, name='contact'), path('gallery',gallery_views, name='gallery'), path('menu',menu_views, name='menu')...
true
true
f70a9def8d0fc3fb9e3a591155df239d7c97521c
971
py
Python
fizzbuzz/fizzbuzz/number_publisher_node.py
ericboehlke/ros_fizzbuzz
c1bf95a154f78c050be255caa29e6454942ff6f6
[ "MIT" ]
null
null
null
fizzbuzz/fizzbuzz/number_publisher_node.py
ericboehlke/ros_fizzbuzz
c1bf95a154f78c050be255caa29e6454942ff6f6
[ "MIT" ]
null
null
null
fizzbuzz/fizzbuzz/number_publisher_node.py
ericboehlke/ros_fizzbuzz
c1bf95a154f78c050be255caa29e6454942ff6f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rclpy from rclpy.node import Node from std_msgs.msg import Int64 class NumberPublisher(Node): def __init__(self): super().__init__('number_publisher') self.publisher_ = self.create_publisher(Int64, 'numbers', 10) timer_period = 0.5 # seconds self.ti...
23.119048
73
0.661174
import rclpy from rclpy.node import Node from std_msgs.msg import Int64 class NumberPublisher(Node): def __init__(self): super().__init__('number_publisher') self.publisher_ = self.create_publisher(Int64, 'numbers', 10) timer_period = 0.5 self.timer = self.create_timer(timer_per...
true
true
f70a9fa422465f06e33a73da4d25cfab7390d3b8
2,624
py
Python
libs/dscache/odc/dscache/apps/dstiler.py
MatthewJA/odc-tools
4bf902701b858c15f2a5f27974d05daf96df42c3
[ "Apache-2.0" ]
null
null
null
libs/dscache/odc/dscache/apps/dstiler.py
MatthewJA/odc-tools
4bf902701b858c15f2a5f27974d05daf96df42c3
[ "Apache-2.0" ]
null
null
null
libs/dscache/odc/dscache/apps/dstiler.py
MatthewJA/odc-tools
4bf902701b858c15f2a5f27974d05daf96df42c3
[ "Apache-2.0" ]
null
null
null
from functools import partial import click from odc import dscache from odc.dscache.tools.tiling import ( bin_by_native_tile, web_gs, extract_native_albers_tile, parse_gridspec) from odc.dscache._dscache import mk_group_name from odc.index import bin_dataset_stream @click.command('dstiler') @click.op...
34.986667
102
0.653201
from functools import partial import click from odc import dscache from odc.dscache.tools.tiling import ( bin_by_native_tile, web_gs, extract_native_albers_tile, parse_gridspec) from odc.dscache._dscache import mk_group_name from odc.index import bin_dataset_stream @click.command('dstiler') @click.op...
true
true
f70aa03160da76dc14e9f92da4a6fe36ce28dc30
33,730
py
Python
pyrpg/pyrpg25/pyrpg25.py
kenjisatoh/pygame
cf5ba2331dc6b4a930f9c3dacbaa7954f51498db
[ "MIT" ]
22
2016-06-02T06:05:59.000Z
2021-05-17T03:38:28.000Z
pyrpg/pyrpg25/pyrpg25.py
kenjisatoh/pygame
cf5ba2331dc6b4a930f9c3dacbaa7954f51498db
[ "MIT" ]
null
null
null
pyrpg/pyrpg25/pyrpg25.py
kenjisatoh/pygame
cf5ba2331dc6b4a930f9c3dacbaa7954f51498db
[ "MIT" ]
17
2016-03-04T12:29:15.000Z
2020-11-29T13:11:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import pygame from pygame.locals import * import codecs import os import random import struct import sys SCR_RECT = Rect(0, 0, 640, 480) GS = 32 DOWN,LEFT,RIGHT,UP = 0,1,2,3 STOP, MOVE = 0, 1 # 移動タイプ PROB_MOVE = 0.005 # 移動確率 TRANS_COLOR = (190,179,145) # マップチップの透明色 sou...
38.027057
124
0.548236
import pygame from pygame.locals import * import codecs import os import random import struct import sys SCR_RECT = Rect(0, 0, 640, 480) GS = 32 DOWN,LEFT,RIGHT,UP = 0,1,2,3 STOP, MOVE = 0, 1 PROB_MOVE = 0.005 TRANS_COLOR = (190,179,145) sounds = {} def main(): pygame.init() screen = pygame.display.set_m...
false
true
f70aa11c73981f29fb4af7f7835b063d5d965fa2
917
py
Python
flex.py
johndemlon/c-and-c-server
562e5fd21b9b93f68f4e65a4c032f20128eb9c2d
[ "MIT" ]
2
2021-09-01T16:39:46.000Z
2021-09-08T16:44:56.000Z
flex.py
johndemlon/c-and-c-server
562e5fd21b9b93f68f4e65a4c032f20128eb9c2d
[ "MIT" ]
null
null
null
flex.py
johndemlon/c-and-c-server
562e5fd21b9b93f68f4e65a4c032f20128eb9c2d
[ "MIT" ]
null
null
null
# Date: 09/28/2017 # Author: Ethical-H4CK3R # Description: A Simple C&C Server from core.prompt import Prompt from core.server import Server from template.design import Designer from core.console import MainController from core.communicate import Communicate __version__ = 0.1 class Flex(Prompt, Server, Designer, Mai...
21.833333
66
0.718648
from core.prompt import Prompt from core.server import Server from template.design import Designer from core.console import MainController from core.communicate import Communicate __version__ = 0.1 class Flex(Prompt, Server, Designer, MainController, Communicate): def __init__(self): self.ip = '127.0.0.1' sel...
true
true
f70aa1d2ea6632a54b826457990b43dc4fd8bddf
753
py
Python
app.py
MattJAshworth/UniSecrets
9a6bd50cf32cf5231e68c7cd465ad19aa06a95df
[ "MIT" ]
null
null
null
app.py
MattJAshworth/UniSecrets
9a6bd50cf32cf5231e68c7cd465ad19aa06a95df
[ "MIT" ]
null
null
null
app.py
MattJAshworth/UniSecrets
9a6bd50cf32cf5231e68c7cd465ad19aa06a95df
[ "MIT" ]
null
null
null
import os from flask import Flask, flash, render_template, request from helpers import * app = Flask(__name__) app.secret_key = 'dkjkffksks' @app.route('/', methods=["GET", "POST"]) def index(): """Index page""" if request.method == "POST": msg = request.form.get("textarea") img = request.form.get("output_imag...
22.147059
56
0.671979
import os from flask import Flask, flash, render_template, request from helpers import * app = Flask(__name__) app.secret_key = 'dkjkffksks' @app.route('/', methods=["GET", "POST"]) def index(): if request.method == "POST": msg = request.form.get("textarea") img = request.form.get("output_image") if msg: f...
true
true
f70aa1e378ce9d56a15a3aaf346164f9d126b791
9,826
py
Python
admin_manual/conf.py
Acidburn0zzz/documentation-1
fe1e7589ed2d1ca4194ee07983933d0b909933ab
[ "CC-BY-3.0" ]
2
2015-08-15T12:06:32.000Z
2015-11-03T14:28:55.000Z
admin_manual/conf.py
Acidburn0zzz/documentation-1
fe1e7589ed2d1ca4194ee07983933d0b909933ab
[ "CC-BY-3.0" ]
null
null
null
admin_manual/conf.py
Acidburn0zzz/documentation-1
fe1e7589ed2d1ca4194ee07983933d0b909933ab
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # # ownCloud Documentation documentation build configuration file, created by # sphinx-quickstart on Mon Oct 22 23:16:40 2012. # # 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 # autogenerate...
34.356643
211
0.720741
import sys, os extensions = ['sphinxcontrib.phpdomain', 'sphinx.ext.todo', 'rst2pdf.pdfbuilder'] templates_path = ['../_shared_assets/templates'] source_suffix = '.rst' master_doc = 'contents' project = u'ownCloud Server Administration Manual' copyright = u'2012-2015, The ownCloud developers' # |version| an...
false
true
f70aa1f851e87de45e05a82e45e38f5a66e1e297
1,417
py
Python
flaskgallery/models/photos_azuretable.py
davidrpk/FlaskGallery
f9d83e5fa4047b06bc30e0df2dd5372b3843ae52
[ "MIT" ]
1
2018-12-27T09:56:21.000Z
2018-12-27T09:56:21.000Z
flaskgallery/models/photos_azuretable.py
davidrpk/FlaskGallery
f9d83e5fa4047b06bc30e0df2dd5372b3843ae52
[ "MIT" ]
null
null
null
flaskgallery/models/photos_azuretable.py
davidrpk/FlaskGallery
f9d83e5fa4047b06bc30e0df2dd5372b3843ae52
[ "MIT" ]
null
null
null
from azure.cosmosdb.table.tableservice import TableService from azure.cosmosdb.table.models import Entity import uuid class PhotoCollectionAzureTable: _connectionstring = '' def __init__(self, connectionstring): self._connectionstring = connectionstring def fetchall(self): table_service ...
38.297297
78
0.642202
from azure.cosmosdb.table.tableservice import TableService from azure.cosmosdb.table.models import Entity import uuid class PhotoCollectionAzureTable: _connectionstring = '' def __init__(self, connectionstring): self._connectionstring = connectionstring def fetchall(self): table_service ...
true
true
f70aa22a002782b4022717ef4422ec8b2e7b9632
2,670
py
Python
ml_source/src/blocktorch/blocktorch/tests/data_checks_tests/test_data_check_action.py
blocktorch/blocktorch
044aa269813ab22c5fd27f84272e5fb540fc522b
[ "MIT" ]
1
2021-09-23T12:23:02.000Z
2021-09-23T12:23:02.000Z
ml_source/src/blocktorch/blocktorch/tests/data_checks_tests/test_data_check_action.py
blocktorch/blocktorch
044aa269813ab22c5fd27f84272e5fb540fc522b
[ "MIT" ]
null
null
null
ml_source/src/blocktorch/blocktorch/tests/data_checks_tests/test_data_check_action.py
blocktorch/blocktorch
044aa269813ab22c5fd27f84272e5fb540fc522b
[ "MIT" ]
null
null
null
from blocktorch.data_checks import DataCheckAction, DataCheckActionCode def test_data_check_action_attributes(): data_check_action = DataCheckAction(DataCheckActionCode.DROP_COL) assert data_check_action.action_code == DataCheckActionCode.DROP_COL assert data_check_action.metadata == {} data_check_ac...
37.605634
85
0.749438
from blocktorch.data_checks import DataCheckAction, DataCheckActionCode def test_data_check_action_attributes(): data_check_action = DataCheckAction(DataCheckActionCode.DROP_COL) assert data_check_action.action_code == DataCheckActionCode.DROP_COL assert data_check_action.metadata == {} data_check_ac...
true
true
f70aa41c72204d202b0f2f8beb972d7039c822ba
8,846
py
Python
lib/roi_data_da_layer/layer.py
JeromeMutgeert/da-faster-rcnn
73c8a0f765dc202fc284f659ce23c681fc3b6a64
[ "BSD-2-Clause" ]
null
null
null
lib/roi_data_da_layer/layer.py
JeromeMutgeert/da-faster-rcnn
73c8a0f765dc202fc284f659ce23c681fc3b6a64
[ "BSD-2-Clause" ]
null
null
null
lib/roi_data_da_layer/layer.py
JeromeMutgeert/da-faster-rcnn
73c8a0f765dc202fc284f659ce23c681fc3b6a64
[ "BSD-2-Clause" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """The data layer used during training to train a DA Fast R-CNN network...
36.553719
81
0.573366
"""The data layer used during training to train a DA Fast R-CNN network. RoIDataLayer implements a Caffe Python layer. """ import caffe from fast_rcnn.config import cfg from roi_data_da_layer.minibatch import get_minibatch import numpy as np import yaml from multiprocessing import Process, Queue from live_dataset i...
false
true
f70aa42301809fd9f98ccec8576480d2fba80fc4
1,656
py
Python
tests/test_api_sync.py
irux/pdfgen-python
fe7f6beb9dda8e1ddd23356ee44dd89c8367bc02
[ "MIT" ]
null
null
null
tests/test_api_sync.py
irux/pdfgen-python
fe7f6beb9dda8e1ddd23356ee44dd89c8367bc02
[ "MIT" ]
null
null
null
tests/test_api_sync.py
irux/pdfgen-python
fe7f6beb9dda8e1ddd23356ee44dd89c8367bc02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import codecs import io import os import sys import unittest import pytest import pdfgen from pdfgen.errors import InvalidSourceError TEST_PATH = os.path.dirname(os.path.realpath(__file__)) EXAMPLE_HTML_FILE = f'{TEST_PATH}/fixtures/example.html' class TestPdfGenerationSyncApi(unittest.TestC...
30.666667
106
0.675725
import codecs import io import os import sys import unittest import pytest import pdfgen from pdfgen.errors import InvalidSourceError TEST_PATH = os.path.dirname(os.path.realpath(__file__)) EXAMPLE_HTML_FILE = f'{TEST_PATH}/fixtures/example.html' class TestPdfGenerationSyncApi(unittest.TestCase): def setUp(sel...
true
true
f70aa4a2de2bf42538645b9735d80df41cc00a94
6,317
py
Python
SimG4CMS/HcalTestBeam/test/python/run2006_33_cfg.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
2
2020-01-27T15:21:37.000Z
2020-05-11T11:13:18.000Z
SimG4CMS/HcalTestBeam/test/python/run2006_33_cfg.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
8
2020-03-20T23:18:36.000Z
2020-05-27T11:00:06.000Z
SimG4CMS/HcalTestBeam/test/python/run2006_33_cfg.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
3
2017-06-07T15:22:28.000Z
2019-02-28T20:48:30.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("PROD") process.load('SimG4CMS.HcalTestBeam.TB2006Geometry33XML_cfi') process.load('SimGeneral.HepPDTESSource.pdt_cfi') process.load('Configuration.StandardSequences.Services_cff') process.load('FWCore.MessageService.MessageLogger_cfi') process.load("Geom...
43.868056
119
0.610891
import FWCore.ParameterSet.Config as cms process = cms.Process("PROD") process.load('SimG4CMS.HcalTestBeam.TB2006Geometry33XML_cfi') process.load('SimGeneral.HepPDTESSource.pdt_cfi') process.load('Configuration.StandardSequences.Services_cff') process.load('FWCore.MessageService.MessageLogger_cfi') process.load("Geom...
true
true
f70aa50090b5c9275e05b9d12c46f122f2b59ef0
20,793
py
Python
website/canvas/migrations/0200_auto__del_field_comment_reply_text.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
19
2015-11-10T17:36:20.000Z
2021-04-12T07:36:00.000Z
website/canvas/migrations/0200_auto__del_field_comment_reply_text.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
1
2021-06-09T03:45:34.000Z
2021-06-09T03:45:34.000Z
website/canvas/migrations/0200_auto__del_field_comment_reply_text.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
6
2015-11-11T00:38:38.000Z
2020-07-25T20:10:08.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Comment.reply_text' db.delete_column(u'canvas_comment', 'reply_text') def backwards(...
80.281853
198
0.559611
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): db.delete_column(u'canvas_comment', 'reply_text') def backwards(self, orm): db.add_column(u'canvas_comment', '...
true
true
f70aa5dbf19b752d396afe92c981d393af43e061
496
py
Python
povary/apps/gallery/urls.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
povary/apps/gallery/urls.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
povary/apps/gallery/urls.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url urlpatterns = patterns('', # Examples: # url(r'^$', 'povary.views.home', name='home'), # url(r'^povary/', include('povary.foo.urls')), url(r'^recipe_gallery/(?P<recipe_slug>.*)/$', 'gallery.views.recipe_gallery_upload', name='recipe_...
29.176471
89
0.643145
from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^recipe_gallery/(?P<recipe_slug>.*)/$', 'gallery.views.recipe_gallery_upload', name='recipe_gallery_upload' ), )
true
true
f70aa5dfbb682865ae09f99631d5f9e4a343d737
3,128
py
Python
isi_sdk_9_0_0/isi_sdk_9_0_0/models/hdfs_fsimage_job.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/hdfs_fsimage_job.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/hdfs_fsimage_job.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_9_0_0.models.hdfs_f...
26.735043
90
0.563299
import pprint import re import six from isi_sdk_9_0_0.models.hdfs_fsimage_job_job import HdfsFsimageJobJob class HdfsFsimageJob(object): swagger_types = { 'job': 'HdfsFsimageJobJob' } attribute_map = { 'job': 'job' } def __init__(self, job=None): self._job = Non...
true
true
f70aa6ade73961c39dcb9421c207c2719fa61e4d
4,492
py
Python
src/you_get/extractors/universal.py
whohow123/you-get
00f3dfa71f53abd495424c527b5ef3debc6fb6d2
[ "MIT" ]
1
2021-01-18T06:10:46.000Z
2021-01-18T06:10:46.000Z
src/you_get/extractors/universal.py
whohow123/you-get
00f3dfa71f53abd495424c527b5ef3debc6fb6d2
[ "MIT" ]
null
null
null
src/you_get/extractors/universal.py
whohow123/you-get
00f3dfa71f53abd495424c527b5ef3debc6fb6d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python __all__ = ['universal_download'] from ..common import * from .embed import * def universal_download(url, output_dir='.', merge=True, info_only=False, **kwargs): try: content_type = get_head(url, headers=fake_headers)['Content-Type'] except: content_type = get_head(url, h...
37.123967
98
0.477293
__all__ = ['universal_download'] from ..common import * from .embed import * def universal_download(url, output_dir='.', merge=True, info_only=False, **kwargs): try: content_type = get_head(url, headers=fake_headers)['Content-Type'] except: content_type = get_head(url, headers=fake_headers, g...
true
true
f70aa74839e42512f38a961e1c90480641251648
618
py
Python
dataset/corpus_to_txts.py
fubiye/edgar-abs-kg
3973059c7b1cdaab8a4e857a43c702ac0be7e725
[ "MIT" ]
null
null
null
dataset/corpus_to_txts.py
fubiye/edgar-abs-kg
3973059c7b1cdaab8a4e857a43c702ac0be7e725
[ "MIT" ]
null
null
null
dataset/corpus_to_txts.py
fubiye/edgar-abs-kg
3973059c7b1cdaab8a4e857a43c702ac0be7e725
[ "MIT" ]
null
null
null
# coding=utf-8 import pandas as pd from pathlib import Path # extract corpus to seprate files OUT_PUT_DIR = r'D:\data\edgar\example\documents' df = pd.read_csv(r'D:\data\edgar\example\corpus.csv') # def write_to_file(cik,filingId,fileName,content): def write_to_file(cik,filingId,fileName,content): base_dir = Path(...
38.625
102
0.718447
import pandas as pd from pathlib import Path OUT_PUT_DIR = r'D:\data\edgar\example\documents' df = pd.read_csv(r'D:\data\edgar\example\corpus.csv') def write_to_file(cik,filingId,fileName,content): base_dir = Path(OUT_PUT_DIR) file_name = str(cik) + '+' + str(filingId) + '+' + str(fileName) file_name = fil...
true
true
f70aa7996c2228497dd2bb330beb6f83430d396c
1,084
py
Python
var/spack/repos/builtin/packages/r-adsplit/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/r-adsplit/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/r-adsplit/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 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 RAdsplit(RPackage): """This package implements clustering of microarray gene expression ...
40.148148
73
0.697417
from spack import * class RAdsplit(RPackage): homepage = "https://www.bioconductor.org/packages/adSplit/" git = "https://git.bioconductor.org/packages/adSplit.git" version('1.46.0', commit='7e81a83f34d371447f491b3a146bf6851e260c7c') depends_on('r@3.4.0:3.4.9', when='@1.46.0') depends_on('...
true
true
f70aa8f33cdb5f92221c46798f909eb1746b2cac
3,187
py
Python
paintball-pointofsale/group.py
alecspringel/paintball-pointofsale
a1f776e36881afa2815db8babdb1c0aa04a3a33b
[ "MIT" ]
1
2020-10-28T01:49:16.000Z
2020-10-28T01:49:16.000Z
paintball-pointofsale/group.py
alecspringel/paintball-pointofsale
a1f776e36881afa2815db8babdb1c0aa04a3a33b
[ "MIT" ]
null
null
null
paintball-pointofsale/group.py
alecspringel/paintball-pointofsale
a1f776e36881afa2815db8babdb1c0aa04a3a33b
[ "MIT" ]
null
null
null
class Group: """ name: Name of group (String) deposit: $ Amount required to book the group (Float) type: Speedball, Recball, Rental (String) players: ([Object]) paint_bags: list of paint the group has purchased ([Int]) transactions: ([Object]) """ def __init__(self, name, ...
24.328244
62
0.566991
class Group: def __init__(self, name, deposit, type): self.name = name self.deposit = deposit self.type = type self.players = [] self.paint_bags = [] self.transactions = [] def get_name(self): return self.name def get_type(self): ...
true
true
f70aa9af67a7af7f95fc82fb4874f9b5bfbd4072
21,125
py
Python
ezclimate/optimization.py
Yili-Yang/Litterman_Carbon_Pricing
71eeefc5e2d9b4c1473a9a6ae85c33b019e32d84
[ "MIT" ]
null
null
null
ezclimate/optimization.py
Yili-Yang/Litterman_Carbon_Pricing
71eeefc5e2d9b4c1473a9a6ae85c33b019e32d84
[ "MIT" ]
null
null
null
ezclimate/optimization.py
Yili-Yang/Litterman_Carbon_Pricing
71eeefc5e2d9b4c1473a9a6ae85c33b019e32d84
[ "MIT" ]
null
null
null
from __future__ import division, print_function import numpy as np import multiprocessing from tools import _pickle_method, _unpickle_method try: import copy_reg except: import copyreg as copy_reg import types copy_reg.pickle(types.MethodType, _pickle_method, _unpickle_method) class GeneticAlgorithm(object): ...
30.660377
144
0.696
from __future__ import division, print_function import numpy as np import multiprocessing from tools import _pickle_method, _unpickle_method try: import copy_reg except: import copyreg as copy_reg import types copy_reg.pickle(types.MethodType, _pickle_method, _unpickle_method) class GeneticAlgorithm(object): ...
true
true
f70aa9c8456546362c9a960d81b4e7ddc3d4290f
56,584
py
Python
tests/test_disparity.py
steuxyo/Pandora
57db04f31d6cecba93fa3bc0091f624c8b8ec5f1
[ "Apache-2.0" ]
1
2021-03-05T17:35:43.000Z
2021-03-05T17:35:43.000Z
tests/test_disparity.py
steuxyo/Pandora
57db04f31d6cecba93fa3bc0091f624c8b8ec5f1
[ "Apache-2.0" ]
null
null
null
tests/test_disparity.py
steuxyo/Pandora
57db04f31d6cecba93fa3bc0091f624c8b8ec5f1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf8 # # Copyright (c) 2020 Centre National d'Etudes Spatiales (CNES). # # This file is part of PANDORA # # https://github.com/CNES/Pandora # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may...
56.358566
134
0.598579
# # This file is part of PANDORA # # https://github.com/CNES/Pandora # # 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...
true
true
f70aaa0071d96e3d126bd914751dd5bae717ae54
3,238
py
Python
first_lambda/service.py
mylar-pr/DaaS
e41fa9e9fbda66d7150f00e6db13dd3a76cd3501
[ "MIT" ]
null
null
null
first_lambda/service.py
mylar-pr/DaaS
e41fa9e9fbda66d7150f00e6db13dd3a76cd3501
[ "MIT" ]
null
null
null
first_lambda/service.py
mylar-pr/DaaS
e41fa9e9fbda66d7150f00e6db13dd3a76cd3501
[ "MIT" ]
null
null
null
import datetime import json import os import boto3 import pandas as pd import io import requests import numpy as np from io import StringIO import uuid s3 = boto3.resource( service_name='s3', region_name='us-east-2') bucket_name = 'secom-daas-bucket' # already created on S3 link1 = 'https://archive.ics.uci....
26.540984
117
0.665843
import datetime import json import os import boto3 import pandas as pd import io import requests import numpy as np from io import StringIO import uuid s3 = boto3.resource( service_name='s3', region_name='us-east-2') bucket_name = 'secom-daas-bucket' link1 = 'https://archive.ics.uci.edu/ml/machine-learning-...
true
true
f70aaad9e57fa7eb04163e7602797b675c9f999e
1,763
py
Python
import_dataset/check-triggers.py
MarliesG/Alice
661a010a2ecf56aec48dcb407d07ae1b0df6915a
[ "MIT" ]
3
2021-08-14T16:18:12.000Z
2022-01-11T01:27:34.000Z
import_dataset/check-triggers.py
MarliesG/Alice
661a010a2ecf56aec48dcb407d07ae1b0df6915a
[ "MIT" ]
1
2021-12-15T09:18:42.000Z
2021-12-29T21:00:58.000Z
import_dataset/check-triggers.py
MarliesG/Alice
661a010a2ecf56aec48dcb407d07ae1b0df6915a
[ "MIT" ]
2
2021-08-12T13:32:28.000Z
2021-12-10T10:01:47.000Z
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.4.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Check alignments # Ch...
30.396552
314
0.626773
from eelbrain import * from alice import alice gt = {f'{i}': alice.load_predictor(f'{i}~gammatone-1', 0.002, 1000, name='WAV') for i in range(1, 13)} for y in gt.values(): y /= y.std() for subject in alice: events = alice.load_events(raw='raw', data_raw=True) raw = events.info['raw'] raw.load_data...
true
true
f70aad19b18d8123fb6c2b4551fa9c099adc5484
10,940
py
Python
pytorch_lightning/callbacks/lr_monitor.py
calebrob6/pytorch-lightning
4c79b3a5b343866217784c66d122819c59a92c1d
[ "Apache-2.0" ]
1
2021-07-22T14:06:43.000Z
2021-07-22T14:06:43.000Z
pytorch_lightning/callbacks/lr_monitor.py
calebrob6/pytorch-lightning
4c79b3a5b343866217784c66d122819c59a92c1d
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/callbacks/lr_monitor.py
calebrob6/pytorch-lightning
4c79b3a5b343866217784c66d122819c59a92c1d
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
40.973783
118
0.625686
from collections import defaultdict from typing import Any, DefaultDict, Dict, List, Optional, Set, Type from torch.optim.optimizer import Optimizer from pytorch_lightning.callbacks.base import Callback from pytorch_lightning.utilities import rank_zero_warn from pytorch_lightning.utilities.exceptions import Misconfig...
true
true
f70aaedf8077bde4e0dc6f024456789860057f34
16,381
py
Python
vsurfree/lib/python2.7/site-packages/fire/fire_test.py
hexnor/SurfFree----Web-Proxy----Django
ab3d0f6d3a3eb06bd532ac2b4f8c0950608b90ba
[ "MIT" ]
1
2021-02-08T07:49:35.000Z
2021-02-08T07:49:35.000Z
vsurfree/lib/python2.7/site-packages/fire/fire_test.py
yokeshrana/SurfFree
ab3d0f6d3a3eb06bd532ac2b4f8c0950608b90ba
[ "MIT" ]
2
2021-06-01T22:03:20.000Z
2022-01-13T00:43:38.000Z
vsurfree/lib/python2.7/site-packages/fire/fire_test.py
yokeshrana/SurfFree
ab3d0f6d3a3eb06bd532ac2b4f8c0950608b90ba
[ "MIT" ]
1
2020-11-04T08:39:52.000Z
2020-11-04T08:39:52.000Z
# Copyright (C) 2017 Google 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, ...
44.034946
80
0.663635
from __future__ import absolute_import from __future__ import division from __future__ import print_function import fire from fire import test_components as tc from fire import trace import unittest class FireTest(unittest.TestCase): def testFire(self): fire.Fire(tc.Empty) fire.Fire(tc.OldStyleEmpty) ...
true
true
f70aaf1faf473c2707952e2460f03972a42dbb44
69
py
Python
app/config/secure.py
ZeroLoo/FlaskAPI
3dd89e83bd99b2de1796a9dfb52dad7b659e6ad2
[ "MIT" ]
null
null
null
app/config/secure.py
ZeroLoo/FlaskAPI
3dd89e83bd99b2de1796a9dfb52dad7b659e6ad2
[ "MIT" ]
null
null
null
app/config/secure.py
ZeroLoo/FlaskAPI
3dd89e83bd99b2de1796a9dfb52dad7b659e6ad2
[ "MIT" ]
null
null
null
# -*-coding:utf-8-*- from flask import Flask __author__ = 'ZeroLoo'
13.8
23
0.681159
from flask import Flask __author__ = 'ZeroLoo'
true
true
f70ab0237408983ce5e23acbdb327225ffb587d6
4,041
py
Python
others/pytrends.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
4
2016-12-17T20:06:10.000Z
2021-11-19T04:45:29.000Z
others/pytrends.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
11
2021-01-06T05:35:11.000Z
2022-03-11T23:28:31.000Z
others/pytrends.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
3
2015-06-12T10:44:16.000Z
2021-07-26T18:39:47.000Z
import http.client import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse import re import csv from http.cookiejar import CookieJar class pyGTrends(object): """ Google Trends API Recommended usage: from csv import DictReader r = pyGTrends(us...
38.122642
146
0.560257
import http.client import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse import re import csv from http.cookiejar import CookieJar class pyGTrends(object): def __init__(self, username, password): self.login_params = { "continue": 'http://www.goog...
true
true
f70ab04d45cd2b3288ee4efa477201d0066849a2
1,293
py
Python
app/api/utils/readInstanceDetails.py
nurely/lxdui
8cb31dc1117719b140f440f8a705282781db7b35
[ "Apache-2.0" ]
null
null
null
app/api/utils/readInstanceDetails.py
nurely/lxdui
8cb31dc1117719b140f440f8a705282781db7b35
[ "Apache-2.0" ]
null
null
null
app/api/utils/readInstanceDetails.py
nurely/lxdui
8cb31dc1117719b140f440f8a705282781db7b35
[ "Apache-2.0" ]
null
null
null
import platform, sys, os, subprocess import psutil from app.api.models.LXDModule import LXDModule import logging def readInstanceDetails(): instanceDetails = ("Python Version: {}".format(platform.python_version())) instanceDetails +=("\nPython Path: {}".format(' '.join(path for path in sys.path))) instanc...
33.153846
97
0.641145
import platform, sys, os, subprocess import psutil from app.api.models.LXDModule import LXDModule import logging def readInstanceDetails(): instanceDetails = ("Python Version: {}".format(platform.python_version())) instanceDetails +=("\nPython Path: {}".format(' '.join(path for path in sys.path))) instanc...
true
true
f70ab0747198d4d8109e8dca9b2fd2a0a75a1492
241
py
Python
python_work/salvar_nun_predileto.py
lucas-jsvd/python_crash_course_2nd
8404e7769bef7b90b9b0897996c3a3f969bb72bd
[ "Unlicense" ]
null
null
null
python_work/salvar_nun_predileto.py
lucas-jsvd/python_crash_course_2nd
8404e7769bef7b90b9b0897996c3a3f969bb72bd
[ "Unlicense" ]
null
null
null
python_work/salvar_nun_predileto.py
lucas-jsvd/python_crash_course_2nd
8404e7769bef7b90b9b0897996c3a3f969bb72bd
[ "Unlicense" ]
null
null
null
import json filename = "num_predileto.txt" try: numero = int(input("Qual o seu numero predileto? ")) except ValueError: print("Você digitou um valor incorreto.") else: with open(filename, "w") as f: json.dump(numero, f)
21.909091
56
0.66805
import json filename = "num_predileto.txt" try: numero = int(input("Qual o seu numero predileto? ")) except ValueError: print("Você digitou um valor incorreto.") else: with open(filename, "w") as f: json.dump(numero, f)
true
true
f70ab27bcb01927f35c8740cbd127b50bca48faf
4,338
py
Python
fastai2/data/block.py
bearpelican/fastai2
445fa28e42b8d6205adc135527c22883fcfbef41
[ "Apache-2.0" ]
null
null
null
fastai2/data/block.py
bearpelican/fastai2
445fa28e42b8d6205adc135527c22883fcfbef41
[ "Apache-2.0" ]
null
null
null
fastai2/data/block.py
bearpelican/fastai2
445fa28e42b8d6205adc135527c22883fcfbef41
[ "Apache-2.0" ]
1
2020-08-20T14:20:47.000Z
2020-08-20T14:20:47.000Z
#AUTOGENERATED! DO NOT EDIT! File to edit: dev/07_data.block.ipynb (unless otherwise specified). __all__ = ['TransformBlock', 'CategoryBlock', 'MultiCategoryBlock', 'DataBlock'] #Cell from ..torch_basics import * from ..test import * from .core import * from .load import * from .external import * from .transforms imp...
48.2
121
0.693407
__all__ = ['TransformBlock', 'CategoryBlock', 'MultiCategoryBlock', 'DataBlock'] from ..torch_basics import * from ..test import * from .core import * from .load import * from .external import * from .transforms import * class TransformBlock(): def __init__(self, type_tfms=None, item_tfms=None, batch_tfms=Cuda, ...
true
true
f70ab2806f62f35dba6a9c4d850e2fbfb76dd7b6
840
py
Python
setup.py
qri-io/qri-python
ed7b9a0047b3d50623cef40211e9aebf45c05e42
[ "MIT" ]
6
2019-09-25T20:35:04.000Z
2021-02-12T16:33:25.000Z
setup.py
qri-io/qri-python
ed7b9a0047b3d50623cef40211e9aebf45c05e42
[ "MIT" ]
27
2018-08-29T13:50:02.000Z
2020-10-28T16:52:54.000Z
setup.py
qri-io/qri-python
ed7b9a0047b3d50623cef40211e9aebf45c05e42
[ "MIT" ]
3
2020-07-21T20:18:09.000Z
2021-01-16T09:31:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import setuptools with open('README.md', 'r') as fp: long_description = fp.read() pos = long_description.find('# Development') if pos > -1: long_description = long_description[:pos] setuptools.setup( name='qri', version='0.1.5', author='Du...
25.454545
50
0.620238
import setuptools with open('README.md', 'r') as fp: long_description = fp.read() pos = long_description.find('# Development') if pos > -1: long_description = long_description[:pos] setuptools.setup( name='qri', version='0.1.5', author='Dustin Long', author_email='dustmop@qri.io',...
true
true
f70ab361101331e9cbcc4a524b6be7427a7c3df4
40
py
Python
projeto0/test_testando.py
Matheus-Zauza-Maschietto/Python-Django
8f42489ebadbef53863ad00ab474bb213a6cc4bc
[ "MIT" ]
null
null
null
projeto0/test_testando.py
Matheus-Zauza-Maschietto/Python-Django
8f42489ebadbef53863ad00ab474bb213a6cc4bc
[ "MIT" ]
null
null
null
projeto0/test_testando.py
Matheus-Zauza-Maschietto/Python-Django
8f42489ebadbef53863ad00ab474bb213a6cc4bc
[ "MIT" ]
null
null
null
def test_something(): assert 1 == 1
13.333333
21
0.625
def test_something(): assert 1 == 1
true
true
f70ab5c7458892a86950720ad6a41431776a170d
355
py
Python
tests/views.py
iLoveTux/django-slick-reporting
ef88f3bab3094e976bd306a112501d547c88fed1
[ "BSD-3-Clause" ]
null
null
null
tests/views.py
iLoveTux/django-slick-reporting
ef88f3bab3094e976bd306a112501d547c88fed1
[ "BSD-3-Clause" ]
null
null
null
tests/views.py
iLoveTux/django-slick-reporting
ef88f3bab3094e976bd306a112501d547c88fed1
[ "BSD-3-Clause" ]
null
null
null
from slick_reporting.views import SampleReportView from .models import OrderLine class MonthlyProductSales(SampleReportView): report_model = OrderLine date_field = 'date_placed' # or 'order__date_placed' group_by = 'product' columns = ['name', 'sku'] time_series_pattern = 'monthly' time_serie...
29.583333
57
0.746479
from slick_reporting.views import SampleReportView from .models import OrderLine class MonthlyProductSales(SampleReportView): report_model = OrderLine date_field = 'date_placed' group_by = 'product' columns = ['name', 'sku'] time_series_pattern = 'monthly' time_series_columns = ['__total_quan...
true
true
f70ab5e049ad23ad9364f4d20975e6dd5a3fcac6
7,595
py
Python
utilities/generate_schema.py
hep-gc/cloud-scheduler-2
180d9dc4f8751cf8c8254518e46f83f118187e84
[ "Apache-2.0" ]
3
2020-03-03T03:25:36.000Z
2021-12-03T15:31:39.000Z
utilities/generate_schema.py
hep-gc/cloud-scheduler-2
180d9dc4f8751cf8c8254518e46f83f118187e84
[ "Apache-2.0" ]
341
2017-06-08T17:27:59.000Z
2022-01-28T19:37:57.000Z
utilities/generate_schema.py
hep-gc/cloud-scheduler-2
180d9dc4f8751cf8c8254518e46f83f118187e84
[ "Apache-2.0" ]
3
2018-04-25T16:13:20.000Z
2020-04-15T20:03:46.000Z
#!/usr/bin/env python3 """ Synopsis: utilities/generate_schema.py > lib/schema.py This routine pulls the current table definitions from the csv2 database and writes the schema to stdout. To use the schema definitions: from lib.schema import <view_or_table_name_1>, <view_or_table_name_2>, ... """ from sub...
35.325581
127
0.474523
from subprocess import Popen, PIPE from tempfile import mkdtemp import json import os import sys import yaml REMOVE_BRACKETS = str.maketrans('()', ' ') def main(args): gvar = {} fd = open('/etc/cloudscheduler/cloudscheduler.yaml') gvar['csv2_config'] = yaml.full_load(fd.read()) fd.close() ...
true
true
f70ab5e26ff2ae94d430049a05b5c236c13075a0
8,872
py
Python
train.py
antonyvigouret/Text-Recognition-PyTorch
7576480684612e856602169b3229fe6c8f4b4b9d
[ "MIT" ]
2
2020-11-12T17:28:30.000Z
2020-11-13T14:45:52.000Z
train.py
antonyvigouret/Text-Recognition-PyTorch
7576480684612e856602169b3229fe6c8f4b4b9d
[ "MIT" ]
null
null
null
train.py
antonyvigouret/Text-Recognition-PyTorch
7576480684612e856602169b3229fe6c8f4b4b9d
[ "MIT" ]
null
null
null
import string import torch from torch.nn import CrossEntropyLoss from torch.nn import CTCLoss import torch.optim as optim from torch.utils.tensorboard import SummaryWriter from torchsummary import summary from tqdm import tqdm from cnn_seq2seq import ConvSeq2Seq from cnn_seq2seq import Decoder from cnn_seq2seq import...
33.479245
102
0.577435
import string import torch from torch.nn import CrossEntropyLoss from torch.nn import CTCLoss import torch.optim as optim from torch.utils.tensorboard import SummaryWriter from torchsummary import summary from tqdm import tqdm from cnn_seq2seq import ConvSeq2Seq from cnn_seq2seq import Decoder from cnn_seq2seq import...
true
true
f70ab5f20cd07c566f212fef5ff14cea04806a5f
4,204
py
Python
tests/services/test_file_svc.py
emmanvg/caldera
633a3f1ab06543d737791186f9a22c6587e5fa44
[ "Apache-2.0" ]
1
2021-05-24T08:44:09.000Z
2021-05-24T08:44:09.000Z
tests/services/test_file_svc.py
watchmen-coder/caldera
f13521b69ce959dad31911d4afa4e20a21790875
[ "Apache-2.0" ]
1
2021-04-16T00:03:00.000Z
2021-04-16T00:03:00.000Z
tests/services/test_file_svc.py
watchmen-coder/caldera
f13521b69ce959dad31911d4afa4e20a21790875
[ "Apache-2.0" ]
null
null
null
import os import pytest import yaml from tests import AsyncMock from asyncio import Future from app.utility.file_decryptor import decrypt @pytest.mark.usefixtures( 'init_base_world' ) class TestFileService: def test_save_file(self, loop, file_svc, tmp_path): filename = "test_file.txt" paylo...
41.623762
138
0.697193
import os import pytest import yaml from tests import AsyncMock from asyncio import Future from app.utility.file_decryptor import decrypt @pytest.mark.usefixtures( 'init_base_world' ) class TestFileService: def test_save_file(self, loop, file_svc, tmp_path): filename = "test_file.txt" paylo...
true
true
f70ab6303c20b904700391f719907f8e8cc2decf
1,225
py
Python
cifrari-kali/cbc_decode.py
mfranzil/unitn-reti-avanzate
802438239b3b5ff2bdce6e50a60da1c945892def
[ "MIT" ]
null
null
null
cifrari-kali/cbc_decode.py
mfranzil/unitn-reti-avanzate
802438239b3b5ff2bdce6e50a60da1c945892def
[ "MIT" ]
null
null
null
cifrari-kali/cbc_decode.py
mfranzil/unitn-reti-avanzate
802438239b3b5ff2bdce6e50a60da1c945892def
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # # cbc_decode.py # # Programma minimale per l'applicazione di un cifrario # a blocchi su un messaggio, in modalità CBC (Chained Block Cypher) # in cui ogni blocco viene messo in OR esclusivo con il codice # del blocco precedente prima di essere cifrato. # # Nel nostro cas...
18.560606
71
0.634286
# a blocchi su un messaggio, in modalità CBC (Chained Block Cypher) # in cui ogni blocco viene messo in OR esclusivo con il codice # del blocco precedente prima di essere cifrato. # # Nel nostro caso, un blocco corrisponde a un byte, e l'algoritmo # # Istruzioni: # # - creare il file codice.bin come descritto in cbc_en...
true
true
f70ab708cedc7d676fb9539fa566730b57172e01
3,437
py
Python
uvicorn/_handlers/http.py
pacoyang/uvicorn
27f76476a14dac68a62dc2998717997607a36197
[ "BSD-3-Clause" ]
1
2021-07-05T21:49:51.000Z
2021-07-05T21:49:51.000Z
uvicorn/_handlers/http.py
pacoyang/uvicorn
27f76476a14dac68a62dc2998717997607a36197
[ "BSD-3-Clause" ]
null
null
null
uvicorn/_handlers/http.py
pacoyang/uvicorn
27f76476a14dac68a62dc2998717997607a36197
[ "BSD-3-Clause" ]
1
2022-02-03T09:38:16.000Z
2022-02-03T09:38:16.000Z
import asyncio from typing import TYPE_CHECKING from uvicorn.config import Config if TYPE_CHECKING: # pragma: no cover from uvicorn.server import ServerState async def handle_http( reader: asyncio.StreamReader, writer: asyncio.StreamWriter, server_state: "ServerState", config: Config, ) -> None...
38.617978
89
0.686936
import asyncio from typing import TYPE_CHECKING from uvicorn.config import Config if TYPE_CHECKING: from uvicorn.server import ServerState async def handle_http( reader: asyncio.StreamReader, writer: asyncio.StreamWriter, server_state: "ServerState", config: Config, ) -> None: ...
true
true
f70ab8d503bc1a07f2845052f215ca548687a1c6
985
py
Python
axelrod/tests/unit/test_appeaser.py
lipingzhu/Zero-determinant
6e30aa72358d5dfc3975abe433d0d13cc3a750a1
[ "MIT" ]
null
null
null
axelrod/tests/unit/test_appeaser.py
lipingzhu/Zero-determinant
6e30aa72358d5dfc3975abe433d0d13cc3a750a1
[ "MIT" ]
null
null
null
axelrod/tests/unit/test_appeaser.py
lipingzhu/Zero-determinant
6e30aa72358d5dfc3975abe433d0d13cc3a750a1
[ "MIT" ]
null
null
null
"""Test for the appeaser strategy.""" import axelrod from .test_player import TestPlayer C, D = axelrod.Actions.C, axelrod.Actions.D class TestAppeaser(TestPlayer): name = "Appeaser" player = axelrod.Appeaser expected_classifier = { 'memory_depth': float('inf'), # Depends on internal memory. ...
26.621622
69
0.587817
import axelrod from .test_player import TestPlayer C, D = axelrod.Actions.C, axelrod.Actions.D class TestAppeaser(TestPlayer): name = "Appeaser" player = axelrod.Appeaser expected_classifier = { 'memory_depth': float('inf'), 'stochastic': False, 'makes_use_of': set(), ...
true
true
f70ab935221e9aefaf57a36d017a5208e50b8892
2,327
py
Python
_Figure_S18.py
aspuru-guzik-group/routescore
3adedbc1d6193751bd1cd0af33395572b35a8e43
[ "MIT" ]
1
2021-11-05T00:49:40.000Z
2021-11-05T00:49:40.000Z
_Figure_S18.py
aspuru-guzik-group/routescore
3adedbc1d6193751bd1cd0af33395572b35a8e43
[ "MIT" ]
null
null
null
_Figure_S18.py
aspuru-guzik-group/routescore
3adedbc1d6193751bd1cd0af33395572b35a8e43
[ "MIT" ]
1
2021-08-18T02:54:49.000Z
2021-08-18T02:54:49.000Z
#!/usr/bin/env python import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # Custom style plt.style.use('scientific') # absolute tolerances for chimera absolutes = np.array([0.67, 1080000, 0.2, 0.15848931924611134]) # load in gryffin runs with Naive score as objective df_nai...
39.440678
120
0.706919
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns plt.style.use('scientific') absolutes = np.array([0.67, 1080000, 0.2, 0.15848931924611134]) df_naive = pd.read_pickle('Optimization/runs/gryffin_runs_naive.pkl') fig, axes = plt.subplots(nrows=4, ncols=1, sharex=True, fi...
true
true
f70ab9f4ce715b85813408d26899167161dfba41
205
py
Python
save_df.py
ersilia-os/bioassay-db
095ceb93e31577085c23105929ccf271b0dcd8f3
[ "MIT" ]
null
null
null
save_df.py
ersilia-os/bioassay-db
095ceb93e31577085c23105929ccf271b0dcd8f3
[ "MIT" ]
null
null
null
save_df.py
ersilia-os/bioassay-db
095ceb93e31577085c23105929ccf271b0dcd8f3
[ "MIT" ]
null
null
null
from src.json2df import PubChemBioAssayJsonConverter c = PubChemBioAssayJsonConverter("./examples", "PUBCHEM400.json") df = c.get_all_results() c.save_df(df, "./examples") c.get_description("./examples")
29.285714
65
0.77561
from src.json2df import PubChemBioAssayJsonConverter c = PubChemBioAssayJsonConverter("./examples", "PUBCHEM400.json") df = c.get_all_results() c.save_df(df, "./examples") c.get_description("./examples")
true
true
f70aba518e557932c07883c2cc83635918beed14
5,378
py
Python
sctransfer/network.py
jingshuw/sctransfer
380c3f26934c26cd177e63aacf4f3bdcf9a29c47
[ "MIT" ]
4
2019-10-22T21:21:14.000Z
2022-01-05T01:10:37.000Z
sctransfer/network.py
jingshuw/sctransfer
380c3f26934c26cd177e63aacf4f3bdcf9a29c47
[ "MIT" ]
2
2020-03-08T03:27:24.000Z
2020-03-23T21:43:27.000Z
sctransfer/network.py
jingshuw/sctransfer
380c3f26934c26cd177e63aacf4f3bdcf9a29c47
[ "MIT" ]
null
null
null
## code simplified from the dca package import os import numpy as np import scanpy.api as sc import keras from keras.layers import Input, Dense, Dropout, Activation, BatchNormalization from keras.models import Model from keras.objectives import mean_squared_error from keras import backend as K import tensorflow as t...
34.254777
93
0.626255
import os import numpy as np import scanpy.api as sc import keras from keras.layers import Input, Dense, Dropout, Activation, BatchNormalization from keras.models import Model from keras.objectives import mean_squared_error from keras import backend as K import tensorflow as tf from .loss import NB from .layers imp...
true
true
f70aba529a4df60d1cdd1a8cfd66159d60f34dc8
4,649
py
Python
seamm_dashboard/routes/admin/forms.py
paulsaxe/seamm_dashboard
66049c8c58fd34af3bd143157d0138e8fb737f9b
[ "BSD-3-Clause" ]
5
2020-04-17T16:34:13.000Z
2021-12-09T17:24:01.000Z
seamm_dashboard/routes/admin/forms.py
paulsaxe/seamm_dashboard
66049c8c58fd34af3bd143157d0138e8fb737f9b
[ "BSD-3-Clause" ]
55
2020-02-26T20:47:52.000Z
2022-03-12T14:22:10.000Z
seamm_dashboard/routes/admin/forms.py
paulsaxe/seamm_dashboard
66049c8c58fd34af3bd143157d0138e8fb737f9b
[ "BSD-3-Clause" ]
4
2019-10-15T18:34:14.000Z
2022-01-04T20:50:43.000Z
from flask_wtf import FlaskForm from wtforms import ( StringField, PasswordField, SubmitField, SelectMultipleField, BooleanField, ) try: from wtforms.fields import EmailField except ImportError: from wtforms.fields.html5 import EmailField from wtforms.validators import DataRequired, Length,...
24.860963
88
0.649817
from flask_wtf import FlaskForm from wtforms import ( StringField, PasswordField, SubmitField, SelectMultipleField, BooleanField, ) try: from wtforms.fields import EmailField except ImportError: from wtforms.fields.html5 import EmailField from wtforms.validators import DataRequired, Length,...
true
true
f70abbfb7844e4c8dd5a47e9d91ebc2a9a7fe405
3,910
py
Python
aiohue/lights.py
spasche/aiohue
65798ed56f6f123a24a961ac87f604d79a221540
[ "Apache-2.0" ]
27
2020-04-15T18:08:49.000Z
2022-03-30T10:12:05.000Z
aiohue/lights.py
spasche/aiohue
65798ed56f6f123a24a961ac87f604d79a221540
[ "Apache-2.0" ]
38
2020-06-29T20:32:47.000Z
2022-03-24T16:23:17.000Z
aiohue/lights.py
spasche/aiohue
65798ed56f6f123a24a961ac87f604d79a221540
[ "Apache-2.0" ]
10
2020-05-26T07:34:09.000Z
2022-03-29T10:59:39.000Z
from collections import namedtuple from .api import APIItems # Represents a CIE 1931 XY coordinate pair. XYPoint = namedtuple("XYPoint", ["x", "y"]) # Represents the Gamut of a light. GamutType = namedtuple("GamutType", ["red", "green", "blue"]) class Lights(APIItems): """Represents Hue Lights. https://d...
25.38961
80
0.541944
from collections import namedtuple from .api import APIItems XYPoint = namedtuple("XYPoint", ["x", "y"]) GamutType = namedtuple("GamutType", ["red", "green", "blue"]) class Lights(APIItems): def __init__(self, logger, raw, v2_resources, request): super().__init__(logger, raw, v2_resources, request, "...
true
true
f70abd05078edcca034b41322d960ead8ee31528
44
py
Python
python-tkinter-card-game/python-tkinter-card-game/main (i.e. start here).py
lull-the-unknown/python-tkinter-card-game
bc7a1e62e8d6e29017af505dcab4dda2bd73be52
[ "Unlicense" ]
2
2019-10-13T23:36:06.000Z
2020-04-08T12:40:30.000Z
python-tkinter-card-game/python-tkinter-card-game/main (i.e. start here).py
lull-the-unknown/python-tkinter-card-game
bc7a1e62e8d6e29017af505dcab4dda2bd73be52
[ "Unlicense" ]
null
null
null
python-tkinter-card-game/python-tkinter-card-game/main (i.e. start here).py
lull-the-unknown/python-tkinter-card-game
bc7a1e62e8d6e29017af505dcab4dda2bd73be52
[ "Unlicense" ]
2
2020-04-10T13:05:53.000Z
2020-07-01T08:15:41.000Z
import app gameApp = app.app() gameApp.Run()
14.666667
19
0.727273
import app gameApp = app.app() gameApp.Run()
true
true
f70abd71a15afc4c6c020151c56ad1c6df1a0f50
14,347
py
Python
lux/vis/Vis.py
thyneb19/lux
07a282d6a5f60c05942d866fa6f33636c3428abc
[ "Apache-2.0" ]
null
null
null
lux/vis/Vis.py
thyneb19/lux
07a282d6a5f60c05942d866fa6f33636c3428abc
[ "Apache-2.0" ]
null
null
null
lux/vis/Vis.py
thyneb19/lux
07a282d6a5f60c05942d866fa6f33636c3428abc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 The Lux Authors. # # 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...
37.45953
199
0.572454
from typing import List, Callable, Union from lux.vis.Clause import Clause from lux.utils.utils import check_import_lux_widget import lux import warnings class Vis: def __init__(self, intent, source=None, title="", score=0.0): self._intent = intent self._inferred_intent = intent # re-written, ...
true
true
f70abe164281395130c469a9d83bf0c6bc202f8f
1,855
py
Python
stubs/m5stack_flowui-v1_4_0-beta/flowlib/m5mqtt.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/m5stack_flowui-v1_4_0-beta/flowlib/m5mqtt.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/m5stack_flowui-v1_4_0-beta/flowlib/m5mqtt.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'flowlib.m5mqtt' on M5 FlowUI v1.4.0-beta """ # MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-284-g5d8e1c867 on 2019-08-30', machine='ESP32 module with ESP32') # Stubber: 1.3.1 - updated from typing import Any class M5mqtt: """""" def _daemonTask(self, *argv) -> Any: ...
16.415929
141
0.547709
from typing import Any class M5mqtt: def _daemonTask(self, *argv) -> Any: pass def _msg_deal(self, *argv) -> Any: pass def _on_data(self, *argv) -> Any: pass def on_connect(self, *argv) -> Any: pass def publish(self, *argv) -> Any: pass def start(s...
true
true