hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
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
209
max_issues_repo_name
stringlengths
5
121
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
209
max_forks_repo_name
stringlengths
5
121
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
fd2f2da9817cb2ebe1d33135f4099948be966f70
1,141
py
Python
my_lambdata/yt_link.py
vjmiyagi/lambdata-vjm
d3e7f2f5151b17b907a7151b0c495788d57d6c63
[ "MIT" ]
null
null
null
my_lambdata/yt_link.py
vjmiyagi/lambdata-vjm
d3e7f2f5151b17b907a7151b0c495788d57d6c63
[ "MIT" ]
null
null
null
my_lambdata/yt_link.py
vjmiyagi/lambdata-vjm
d3e7f2f5151b17b907a7151b0c495788d57d6c63
[ "MIT" ]
null
null
null
""" This function takes a YouTube Link, an hour mark, minute mark and second mark and creates a modified link that will start the video at the precise time desired. It is very useful for creating lecture notes. """ def ytlink(): # Get user inputs: print() print("This function will modify a YouTube link...
27.829268
67
0.595968
4dd21891ba9d238c4391ac78a0968f5da6fe303b
17,769
py
Python
build/lib/transitleastsquares/main.py
lgbouma/tls
9b5728d7bb4f010f7f046050762bc6dee0b411b4
[ "MIT" ]
null
null
null
build/lib/transitleastsquares/main.py
lgbouma/tls
9b5728d7bb4f010f7f046050762bc6dee0b411b4
[ "MIT" ]
null
null
null
build/lib/transitleastsquares/main.py
lgbouma/tls
9b5728d7bb4f010f7f046050762bc6dee0b411b4
[ "MIT" ]
null
null
null
from __future__ import division, print_function from os import path import multiprocessing import numpy import sys import warnings from functools import partial from tqdm import tqdm # TLS parts from transitleastsquares.results import transitleastsquaresresults import transitleastsquares.tls_constants as tl...
39.57461
218
0.564635
5f9096161646e0b82eae621373f5558402e3f7e8
1,172
py
Python
kubernetes_asyncio/test/test_v1beta1_custom_resource_definition_condition.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1beta1_custom_resource_definition_condition.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1beta1_custom_resource_definition_condition.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.13.5 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
29.3
152
0.773891
48b656dba95e53fa41e2375623db31ccc7579e42
553
py
Python
score/scripts/utils.py
GeoPlatform/justice40-tool
ab80cd36ec2c6df0e0df751d205bb1d9a5a80d2b
[ "CC0-1.0" ]
null
null
null
score/scripts/utils.py
GeoPlatform/justice40-tool
ab80cd36ec2c6df0e0df751d205bb1d9a5a80d2b
[ "CC0-1.0" ]
1
2021-06-21T21:06:22.000Z
2021-06-21T21:06:22.000Z
score/scripts/utils.py
GeoPlatform/justice40-tool
ab80cd36ec2c6df0e0df751d205bb1d9a5a80d2b
[ "CC0-1.0" ]
null
null
null
# common usage functions import csv from pathlib import Path def get_state_fips_codes(): data_path = Path.cwd() / "data" fips_csv_path = data_path / "fips_states_2010.csv" fips_state_list = [] with open(fips_csv_path) as csv_file: csv_reader = csv.reader(csv_file, delimiter=",") line_c...
26.333333
56
0.600362
ab06559e01dec0b22d577b654cb627fbb83d4e88
5,518
py
Python
fn_sep/tests/test_sep_helpers.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_sep/tests/test_sep_helpers.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_sep/tests/test_sep_helpers.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use # (c) Copyright IBM Corp. 2010, 2019. All Rights Reserved. """Test helper functions""" import pytest from fn_sep.lib.helpers import * from mock_artifacts import mocked_res_client, get_computers, get_command_status_processed import time from ...
42.775194
168
0.659478
a8b3abd37ae94e5d52675ad26a553573104bfac9
4,957
py
Python
openpeerpower/components/stream/core.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
openpeerpower/components/stream/core.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
openpeerpower/components/stream/core.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
1
2019-04-24T14:10:08.000Z
2019-04-24T14:10:08.000Z
"""Provides core stream functionality.""" import asyncio from collections import deque import io from typing import Any, List from aiohttp import web import attr from openpeerpower.components.http import OpenPeerPowerView from openpeerpower.core import callback from openpeerpower.helpers.event import async_call_later...
26.650538
85
0.601574
5edbdd74eecd3a1e8fe464d030ea4987a1bf270c
1,281
py
Python
venv/Lib/site-packages/nipype/interfaces/afni/tests/test_auto_Detrend.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
585
2015-01-12T16:06:47.000Z
2022-03-26T14:51:08.000Z
nipype/interfaces/afni/tests/test_auto_Detrend.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
2,329
2015-01-01T09:56:41.000Z
2022-03-30T14:24:49.000Z
nipype/interfaces/afni/tests/test_auto_Detrend.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
487
2015-01-20T01:04:52.000Z
2022-03-21T21:22:47.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..preprocess import Detrend def test_Detrend_inputs(): input_map = dict( args=dict( argstr="%s", ), environ=dict( nohash=True, usedefault=True, ), in_file=dict( argstr...
25.117647
67
0.531616
f46453485f66518f2ce40ef51b8b1b13de015f90
644
py
Python
data_analysis/plt_01.py
dxxzst/python-test
ab84b541a2374c55714b31d7d4445cda5c914a55
[ "MIT" ]
null
null
null
data_analysis/plt_01.py
dxxzst/python-test
ab84b541a2374c55714b31d7d4445cda5c914a55
[ "MIT" ]
null
null
null
data_analysis/plt_01.py
dxxzst/python-test
ab84b541a2374c55714b31d7d4445cda5c914a55
[ "MIT" ]
1
2021-06-01T05:46:51.000Z
2021-06-01T05:46:51.000Z
import matplotlib.pyplot as plt # 支持中文 plt.rcParams['font.sans-serif'] = ['Microsoft YaHei'] # 用来正常显示中文标签 plt.rcParams['axes.unicode_minus'] = False # 用来正常显示负号 # 设置style: plt.style.available plt.style.use('ggplot') input_values = [x for x in range(-100, 100)] squares2 = [y ** 2 for y in input_values] squares3 = [y...
24.769231
67
0.718944
92d9e2b81a0cebfb00ce3558a5b5026538a12d75
14,799
py
Python
tools/data_converter/neolix_data_utils.py
neolixcn/mmdetection3d
45b5b8c2b2cc35762f27b020b34d2c3ee6be97af
[ "Apache-2.0" ]
null
null
null
tools/data_converter/neolix_data_utils.py
neolixcn/mmdetection3d
45b5b8c2b2cc35762f27b020b34d2c3ee6be97af
[ "Apache-2.0" ]
null
null
null
tools/data_converter/neolix_data_utils.py
neolixcn/mmdetection3d
45b5b8c2b2cc35762f27b020b34d2c3ee6be97af
[ "Apache-2.0" ]
null
null
null
import numpy as np from collections import OrderedDict from concurrent import futures as futures from os import path as osp from pathlib import Path from skimage import io def get_image_index_str(img_idx, use_prefix_id=False): return img_idx # if use_prefix_id: # return '{:07d}'.format(img_idx) # ...
38.438961
88
0.516589
0382cad62528153063be4c93315434c54eb13baf
3,249
py
Python
debug_toolbar/panels/history/panel.py
andytwoods/django-debug-toolbar-hack
99d28a596d89844b0bbe2eba4cd34ef391322ab6
[ "BSD-3-Clause" ]
1
2021-07-23T03:19:30.000Z
2021-07-23T03:19:30.000Z
debug_toolbar/panels/history/panel.py
andytwoods/django-debug-toolbar-hack
99d28a596d89844b0bbe2eba4cd34ef391322ab6
[ "BSD-3-Clause" ]
null
null
null
debug_toolbar/panels/history/panel.py
andytwoods/django-debug-toolbar-hack
99d28a596d89844b0bbe2eba4cd34ef391322ab6
[ "BSD-3-Clause" ]
null
null
null
import json from collections import OrderedDict from django.http.request import RawPostDataException from django.template.loader import render_to_string from django.templatetags.static import static from django.urls import path from django.utils import timezone from django.utils.translation import gettext_lazy as _ f...
31.543689
84
0.574946
46255babd27c47977b706fc30237d5a934a324dc
12,854
py
Python
bitmovin_api_sdk/models/cenc_drm.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
null
null
null
bitmovin_api_sdk/models/cenc_drm.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
1
2020-07-06T07:13:43.000Z
2020-07-06T07:13:43.000Z
bitmovin_api_sdk/models/cenc_drm.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
1
2020-07-06T07:07:26.000Z
2020-07-06T07:07:26.000Z
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model from bitmovin_api_sdk.models.cenc_fair_play import CencFairPlay from bitmovin_api_sdk.models.cenc_marlin import CencMarlin from bitmovin_api_sdk.models.cenc_play_ready import CencPl...
31.048309
227
0.601136
d428eff621f04bdf2a7defcc4d176c2b7d220004
6,547
py
Python
danceschool/register/cms_plugins.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
32
2017-09-12T04:25:25.000Z
2022-03-21T10:48:07.000Z
danceschool/register/cms_plugins.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
97
2017-09-01T02:43:08.000Z
2022-01-03T18:20:34.000Z
danceschool/register/cms_plugins.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
19
2017-09-26T13:34:46.000Z
2022-03-21T10:48:10.000Z
from django.utils.translation import gettext_lazy as _ from django.utils import timezone from django.middleware.csrf import get_token from django.contrib.admin import TabularInline from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from collections import OrderedDict from adminsortable2...
34.277487
95
0.606385
4f694d86cbbec86b12b6c9ea652b7037226870a3
233
py
Python
coding-challenges/firecode/better-fibonacci.py
acfromspace/infinitygauntlet
8d0d3c7229d6adabdfea6147a47ca5509c2946fd
[ "MIT" ]
3
2018-12-28T21:11:46.000Z
2021-04-03T05:19:56.000Z
coding-challenges/firecode/better-fibonacci.py
acfromspace/infinitygauntlet
8d0d3c7229d6adabdfea6147a47ca5509c2946fd
[ "MIT" ]
4
2019-07-11T21:52:55.000Z
2020-07-21T20:18:51.000Z
coding-challenges/firecode/better-fibonacci.py
acfromspace/infinitygauntlet
8d0d3c7229d6adabdfea6147a47ca5509c2946fd
[ "MIT" ]
null
null
null
""" @author: acfromspace """ def better_fibonacci(n): n1, n2 = 0, 1 for index in range(n): n1, n2 = n2, n1 + n2 return n1 n = int(input("Input an integer: ")) print("better_fibonacci():", better_fibonacci(n))
15.533333
49
0.592275
ee45d8ac669f8efb3f8b40841c7e819acb980bf3
4,863
py
Python
research/dp-flows/utils.py
telegraphroad/jax-flows
26a47b5c0f9797a631bcd4d52cef76beefaeb79d
[ "MIT" ]
198
2020-03-29T02:39:53.000Z
2022-03-31T00:33:40.000Z
research/dp-flows/utils.py
telegraphroad/jax-flows
26a47b5c0f9797a631bcd4d52cef76beefaeb79d
[ "MIT" ]
5
2021-01-07T07:00:41.000Z
2022-03-12T00:51:39.000Z
research/dp-flows/utils.py
telegraphroad/jax-flows
26a47b5c0f9797a631bcd4d52cef76beefaeb79d
[ "MIT" ]
15
2020-09-03T08:09:10.000Z
2022-03-04T18:07:47.000Z
from datasets import * from jax.experimental import optimizers from dp import moments_accountant, gdp_accountant import jax.random as random import matplotlib.pyplot as plt import numpy as onp import jax.numpy as np import os import pickle import flows from itertools import islice def make_dir(path): try: os.mk...
33.308219
113
0.693399
53987703018136c194e468d2b9a3ecf700919ddc
2,235
py
Python
scrapers/scrape_be_districts.py
loleg/covid_19
3fe3b1d3970591a32972157e8644be09ca2219c2
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_be_districts.py
loleg/covid_19
3fe3b1d3970591a32972157e8644be09ca2219c2
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_be_districts.py
loleg/covid_19
3fe3b1d3970591a32972157e8644be09ca2219c2
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from bs4 import BeautifulSoup import scrape_common as sc # https://www.bfs.admin.ch/bfs/de/home/statistiken/kataloge-datenbanken/karten.assetdetail.5688189.html district_ids = { 'Jura bernois': 241, 'Biel/Bienne': 242, 'Seeland': 243, 'Oberaargau': 244, ...
31.928571
207
0.658166
ed27909710cf317d1aafcb6a51c6e066e795c08a
5,966
py
Python
frameworks/kafka/tests/test_active_directory_zookeeper_auth.py
amolde/dcos-kafka-service
4ec069750421d70633cf66d47aac9e4463d091c0
[ "Apache-2.0" ]
33
2016-08-01T16:50:53.000Z
2020-12-15T20:50:16.000Z
frameworks/kafka/tests/test_active_directory_zookeeper_auth.py
amolde/dcos-kafka-service
4ec069750421d70633cf66d47aac9e4463d091c0
[ "Apache-2.0" ]
148
2016-08-01T20:10:13.000Z
2020-06-02T02:13:43.000Z
frameworks/kafka/tests/test_active_directory_zookeeper_auth.py
amolde/dcos-kafka-service
4ec069750421d70633cf66d47aac9e4463d091c0
[ "Apache-2.0" ]
38
2016-08-08T17:14:20.000Z
2020-07-08T03:33:56.000Z
""" This module tests the interaction of Kafka with Zookeeper with authentication enabled """ import logging import uuid import pytest import sdk_cmd import sdk_install import sdk_marathon import sdk_utils from tests import active_directory from tests import auth from tests import config from tests import test_utils ...
29.681592
105
0.604593
a17c0fb4eb47bc343fa63ba36ef5e634d0ed350b
4,107
py
Python
benchmark/startQiskit_Class1967.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class1967.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class1967.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=38 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
34.225
140
0.646214
8a9ac98716d85fb9ebafe45a3b8d09bf5feab658
3,505
py
Python
pose_generation/utils/utils.py
touristCheng/Learning2Regrasp
2823c8da5506bcf7d6328976a1e1e7ede84d90cb
[ "MIT" ]
18
2021-11-05T01:02:49.000Z
2021-11-15T06:56:53.000Z
pose_generation/utils/utils.py
touristCheng/Learning2Regrasp
2823c8da5506bcf7d6328976a1e1e7ede84d90cb
[ "MIT" ]
null
null
null
pose_generation/utils/utils.py
touristCheng/Learning2Regrasp
2823c8da5506bcf7d6328976a1e1e7ede84d90cb
[ "MIT" ]
null
null
null
import torch from torch.optim.lr_scheduler import LambdaLR import torchvision.utils as vutils import torch.distributed as dist import errno import os import re import sys import numpy as np from bisect import bisect_right def dict2cuda(data: dict): new_dic = {} for k, v in data.items(): if isinstance...
31.576577
123
0.576034
075ae35aa60f4efb71031c7d8553dd6b91edf2e2
8,572
py
Python
replicator-schema-translation/docs/conf.py
vengky/kafka-docker
6722867402e582da94a8b75a903e5eeb71370db0
[ "Apache-2.0" ]
null
null
null
replicator-schema-translation/docs/conf.py
vengky/kafka-docker
6722867402e582da94a8b75a903e5eeb71370db0
[ "Apache-2.0" ]
2
2020-04-07T05:33:25.000Z
2022-03-26T06:41:46.000Z
replicator-schema-translation/docs/conf.py
vengky/kafka-docker
6722867402e582da94a8b75a903e5eeb71370db0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # CP Demo documentation build configuration file, created by # sphinx-quickstart on Wed Dec 17 14:17:15 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
32.225564
79
0.719202
47a9d0f9e0352089baffed6f9c67950ab4aafa75
10,463
py
Python
BOReL/environments/mujoco/rand_param_envs/gym/envs/box2d/car_dynamics.py
hai-h-nguyen/pomdp-baselines
629180d56641810d99653a116cca41ede65172eb
[ "MIT" ]
40
2021-10-15T14:53:00.000Z
2022-03-31T02:27:20.000Z
BOReL/environments/mujoco/rand_param_envs/gym/envs/box2d/car_dynamics.py
hai-h-nguyen/pomdp-baselines
629180d56641810d99653a116cca41ede65172eb
[ "MIT" ]
1
2022-03-13T04:02:30.000Z
2022-03-13T04:02:30.000Z
BOReL/environments/mujoco/rand_param_envs/gym/envs/box2d/car_dynamics.py
hai-h-nguyen/pomdp-baselines
629180d56641810d99653a116cca41ede65172eb
[ "MIT" ]
5
2021-11-28T04:08:13.000Z
2022-03-17T02:33:51.000Z
import numpy as np import math import Box2D from Box2D.b2 import ( edgeShape, circleShape, fixtureDef, polygonShape, revoluteJointDef, contactListener, shape, ) # Top-down car dynamics simulation. # # Some ideas are taken from this great tutorial http://www.iforce2d.net/b2dtut/top-down-car ...
34.876667
112
0.466214
27f68fad69ff21ec957fdd35c1183b9a815df210
828
py
Python
scripts/shacl_breaker.py
surroundaustralia/ndesgateway-testclient
fe6aa6ed7bc2e3664edde16ce4f82fdf8b3b47f2
[ "BSD-3-Clause" ]
1
2022-03-08T02:32:20.000Z
2022-03-08T02:32:20.000Z
scripts/shacl_breaker.py
surroundaustralia/ndesgateway-testclient
fe6aa6ed7bc2e3664edde16ce4f82fdf8b3b47f2
[ "BSD-3-Clause" ]
2
2022-03-16T06:40:48.000Z
2022-03-17T00:08:05.000Z
scripts/shacl_breaker.py
surroundaustralia/ndesgateway-testclient
fe6aa6ed7bc2e3664edde16ce4f82fdf8b3b47f2
[ "BSD-3-Clause" ]
1
2022-03-09T23:10:39.000Z
2022-03-09T23:10:39.000Z
"""Removes triples from a valid TestClient dataset to deliberately force TERN Ontology shapes errors Use: on the command line: ~$ python shacl_breaker.py {input_rdf_file_path} Adds ".broken" to the input_rdf_file_path to create a file path for the output e.g.: ~$ python shacl_breaker.py ../test_client_conservation...
26.709677
120
0.770531
93805a52270c2c8d06e3aee99369abedd14f9f75
6,184
py
Python
pyccel/ast/omp.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
null
null
null
pyccel/ast/omp.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
null
null
null
pyccel/ast/omp.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
null
null
null
# coding: utf-8 #------------------------------------------------------------------------------------------# # This file is part of Pyccel which is released under MIT License. See the LICENSE file or # # go to https://github.com/pyccel/pyccel/blob/master/LICENSE for full license details. # #------------------------...
29.169811
105
0.63632
1800413c19dee4312bf5095e8a68d6b026f88143
10,999
py
Python
art/attacks/evasion/universal_perturbation.py
david-shmailov/adversarial-robustness-toolbox
ad8b94d3928abe218cd6ab2eed1c5c21f1d6e420
[ "MIT" ]
1
2022-01-31T15:17:20.000Z
2022-01-31T15:17:20.000Z
art/attacks/evasion/universal_perturbation.py
david-shmailov/adversarial-robustness-toolbox
ad8b94d3928abe218cd6ab2eed1c5c21f1d6e420
[ "MIT" ]
1
2022-03-18T00:41:02.000Z
2022-03-18T00:41:02.000Z
art/attacks/evasion/universal_perturbation.py
david-shmailov/adversarial-robustness-toolbox
ad8b94d3928abe218cd6ab2eed1c5c21f1d6e420
[ "MIT" ]
1
2022-03-22T05:30:31.000Z
2022-03-22T05:30:31.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2018 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # r...
39.996364
120
0.647332
94640e9ea5068e184eff1637cf7ad5bcb41c1eba
4,080
py
Python
label_studio/data_manager/actions/basic.py
xhuaustc/label-studio
b787824a9e16f488a9b4cd2cef83e1ac526a64f3
[ "Apache-2.0" ]
1
2021-06-23T19:47:46.000Z
2021-06-23T19:47:46.000Z
label_studio/data_manager/actions/basic.py
xhuaustc/label-studio
b787824a9e16f488a9b4cd2cef83e1ac526a64f3
[ "Apache-2.0" ]
null
null
null
label_studio/data_manager/actions/basic.py
xhuaustc/label-studio
b787824a9e16f488a9b4cd2cef83e1ac526a64f3
[ "Apache-2.0" ]
1
2021-09-15T08:22:13.000Z
2021-09-15T08:22:13.000Z
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license. """ from django.db.models import signals from tasks.models import Annotation, Prediction, update_is_labeled_after_removing_annotation from core.utils....
35.478261
168
0.647059
bcb2089dd727c3bf0aa878a7cc9a7d130ac922c9
2,646
py
Python
synapse/config/database.py
natamelo/synapse
3d870ecfc5353e455917166cb5c2bb8ba48a6ebd
[ "Apache-2.0" ]
null
null
null
synapse/config/database.py
natamelo/synapse
3d870ecfc5353e455917166cb5c2bb8ba48a6ebd
[ "Apache-2.0" ]
null
null
null
synapse/config/database.py
natamelo/synapse
3d870ecfc5353e455917166cb5c2bb8ba48a6ebd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.075
86
0.615268
1a070411d50f2d9f699f2f194e6699ae0d9f797d
340
py
Python
SocialPlanner/derivative.py
ntuecon/2018groupCE
51c4442bcae8fbd3841b12b8f87d5eefe11e23f8
[ "MIT" ]
3
2018-03-13T07:30:47.000Z
2018-06-12T15:02:44.000Z
SocialPlanner/derivative.py
ntuecon/2018groupCE
51c4442bcae8fbd3841b12b8f87d5eefe11e23f8
[ "MIT" ]
null
null
null
SocialPlanner/derivative.py
ntuecon/2018groupCE
51c4442bcae8fbd3841b12b8f87d5eefe11e23f8
[ "MIT" ]
1
2018-03-20T08:10:22.000Z
2018-03-20T08:10:22.000Z
import numpy as np from scipy.misc import derivative def partial_derivative(func, var=0, point=[]): args = point[:] def wraps(x): args[var] = x return func(*args) return derivative(wraps, point[var], dx = 1e-6) def MRSh_hkhl(utility,k,l,point): def MRSh_ikh1(utility_i,utility_h,k,l=0...
18.888889
51
0.655882
686fae15e8bf319c7190c1773e0f85f4d571a315
186
py
Python
packages/seacas/libraries/ioss/src/visualization/catalyst/phactori/RunPhactoriUnitTests.py
jschueller/seacas
14c34ae08b757cba43a3a03ec0f129c8a168a9d3
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "NetCDF", "BSL-1.0", "X11", "BSD-3-Clause" ]
82
2016-02-04T18:38:25.000Z
2022-03-29T03:01:49.000Z
packages/seacas/libraries/ioss/src/visualization/catalyst/phactori/RunPhactoriUnitTests.py
jschueller/seacas
14c34ae08b757cba43a3a03ec0f129c8a168a9d3
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "NetCDF", "BSL-1.0", "X11", "BSD-3-Clause" ]
206
2015-11-20T01:57:47.000Z
2022-03-31T21:12:04.000Z
packages/seacas/libraries/ioss/src/visualization/catalyst/phactori/RunPhactoriUnitTests.py
jschueller/seacas
14c34ae08b757cba43a3a03ec0f129c8a168a9d3
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "NetCDF", "BSL-1.0", "X11", "BSD-3-Clause" ]
68
2016-01-13T22:46:51.000Z
2022-03-31T06:25:05.000Z
from paraview.simple import * #from Operation.test_PhactoriVtkCellOperations import * from Operation.PhactoriOperationUnitTest import * if __name__ == '__main__': unittest.main()
20.666667
55
0.790323
9fc7dc4c6844e43f51cc1996b1560557e6b03157
3,855
py
Python
supervisely/train/src/sly_train_renderer.py
supervisely-ecosystem/FairMOT
493aa8b626e0eac1a71d27af8eefb680210b8a11
[ "MIT" ]
null
null
null
supervisely/train/src/sly_train_renderer.py
supervisely-ecosystem/FairMOT
493aa8b626e0eac1a71d27af8eefb680210b8a11
[ "MIT" ]
null
null
null
supervisely/train/src/sly_train_renderer.py
supervisely-ecosystem/FairMOT
493aa8b626e0eac1a71d27af8eefb680210b8a11
[ "MIT" ]
null
null
null
import sly_globals as g import os from supervisely_lib.app.widgets import CompareGallery from datetime import timedelta def update_charts(e, data): charts_data = preprocess_train_metrics(e, data) send_fields(charts_data, need_append=True) def preprocess_train_metrics(e, data): charts_data = {} de...
34.419643
104
0.70869
560abf8618a94af234d0e21d8ca472f641e1d768
26,238
py
Python
sem_com.py
yawatajunk/Wi-Sun_EnergyMeter
8405510c67425ecfb3c6a3f9ccd5da80dca2b933
[ "MIT" ]
10
2016-11-11T06:46:22.000Z
2022-03-01T10:16:08.000Z
sem_com.py
yawatajunk/Wi-Sun_EnergyMeter
8405510c67425ecfb3c6a3f9ccd5da80dca2b933
[ "MIT" ]
null
null
null
sem_com.py
yawatajunk/Wi-Sun_EnergyMeter
8405510c67425ecfb3c6a3f9ccd5da80dca2b933
[ "MIT" ]
3
2017-05-27T14:46:31.000Z
2022-02-22T15:10:06.000Z
#!/usr/bin/python3 # coding: UTF-8 import argparse import binascii import datetime import glob import json import threading import time import os import pickle import socket import sys import RPi.GPIO as gpio from y3module import Y3Module from echonet_lite import * import user_conf # 定数定義 Y3RESET_GPIO = 18 # Wi-S...
34.890957
117
0.471873
dfbf4d9c90c04c487104a578d7088fd8dd4f392a
2,012
py
Python
submission/settings.py
tinkoff-ai/sigir-2021
adff717d222e65439f9d810c719b743d7c98548f
[ "Apache-2.0" ]
5
2021-09-17T12:05:54.000Z
2021-12-13T11:41:20.000Z
submission/settings.py
tinkoff-ai/sigir-2021
adff717d222e65439f9d810c719b743d7c98548f
[ "Apache-2.0" ]
null
null
null
submission/settings.py
tinkoff-ai/sigir-2021
adff717d222e65439f9d810c719b743d7c98548f
[ "Apache-2.0" ]
null
null
null
import os import path PROJECT_ROOT = path.Path(os.path.dirname(__file__)).abspath() DATA_ROOT = PROJECT_ROOT.joinpath("data") EMAIL = "" BUCKET_NAME = "" PARTICIPANT_ID = "" AWS_ACCESS_KEY = "" AWS_SECRET_KEY = "" most_popular_sku = [ "093f87a220846c0c454de3ccb752bfe4ba00f94dfad925f0f1c5b56ca6033891", "1789...
45.727273
71
0.85338
4ab74700f2b4e844566cdd994ff7ddc50bca6346
3,226
py
Python
BankingInferences/code.py
SatyapriyaChaudhari/ga-learner-dsmp-repo
a51711526705a563eb826449d46557c3f3ae8751
[ "MIT" ]
1
2020-03-02T06:32:04.000Z
2020-03-02T06:32:04.000Z
BankingInferences/code.py
SatyapriyaChaudhari/ga-learner-dsmp-repo
a51711526705a563eb826449d46557c3f3ae8751
[ "MIT" ]
null
null
null
BankingInferences/code.py
SatyapriyaChaudhari/ga-learner-dsmp-repo
a51711526705a563eb826449d46557c3f3ae8751
[ "MIT" ]
null
null
null
# -------------- import pandas as pd import scipy.stats as stats import math import numpy as np import warnings warnings.filterwarnings('ignore') #Sample_Size sample_size=2000 #Z_Critical Score z_critical = stats.norm.ppf(q = 0.95) # path [File location variable] #Code starts here data ...
27.338983
169
0.66336
7d635da1f7888531d2c50bf64c7200a2d5eb053c
5,138
py
Python
app/user/tests/test_user_api.py
viveksudani/recipe-app-api
5fe33c846123f1ccdbe445df28d43c2f322f7c79
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
viveksudani/recipe-app-api
5fe33c846123f1ccdbe445df28d43c2f322f7c79
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
viveksudani/recipe-app-api
5fe33c846123f1ccdbe445df28d43c2f322f7c79
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**params...
34.483221
77
0.642273
8c89fdf665069746e42bb8b5779aa7c899a5e5c5
832
py
Python
students/admin.py
tnemisteam/cdf-steps
78896eebd08ba9975a2dece97f73dca9aa781238
[ "MIT" ]
null
null
null
students/admin.py
tnemisteam/cdf-steps
78896eebd08ba9975a2dece97f73dca9aa781238
[ "MIT" ]
null
null
null
students/admin.py
tnemisteam/cdf-steps
78896eebd08ba9975a2dece97f73dca9aa781238
[ "MIT" ]
null
null
null
from django.contrib import admin from students.models import Child_detail class ChildAdmin(admin.ModelAdmin): def queryset(self, request): """ Filter the Child objects to only display those for the currently signed in user. """ qs = super(ChildAdmin, self).queryset(reque...
34.666667
72
0.683894
961b9875f552330303cfa859a3cb3cfddc1b8cf0
13,040
py
Python
blueoil/cmd/tune_ray.py
Joeper214/blueoil
5aeb6634770011753b8d5ae283b91b7a0050101e
[ "Apache-2.0" ]
null
null
null
blueoil/cmd/tune_ray.py
Joeper214/blueoil
5aeb6634770011753b8d5ae283b91b7a0050101e
[ "Apache-2.0" ]
null
null
null
blueoil/cmd/tune_ray.py
Joeper214/blueoil
5aeb6634770011753b8d5ae283b91b7a0050101e
[ "Apache-2.0" ]
1
2018-12-21T05:21:04.000Z
2018-12-21T05:21:04.000Z
# -*- coding: utf-8 -*- # Copyright 2019 The Blueoil Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
40.371517
118
0.672699
256f2d329b0bbb9d2288a1967bdeebd70dbd6e5e
2,351
py
Python
env/lib/python3.4/site-packages/django_extensions/mongodb/fields/json.py
dj-amadeous/deficit
cd086acd2165c96d3d0ed9c53fbc98da33afa83d
[ "MIT" ]
1
2015-08-10T16:03:34.000Z
2015-08-10T16:03:34.000Z
env/lib/python3.4/site-packages/django_extensions/mongodb/fields/json.py
dj-amadeous/deficit
cd086acd2165c96d3d0ed9c53fbc98da33afa83d
[ "MIT" ]
null
null
null
env/lib/python3.4/site-packages/django_extensions/mongodb/fields/json.py
dj-amadeous/deficit
cd086acd2165c96d3d0ed9c53fbc98da33afa83d
[ "MIT" ]
1
2019-11-02T03:07:07.000Z
2019-11-02T03:07:07.000Z
""" JSONField automatically serializes most Python terms to JSON data. Creates a TEXT field with a default value of "{}". See test_json.py for more information. from django.db import models from django_extensions.db.fields import json class LOL(models.Model): extra = json.JSONField() """ import datetime fro...
27.988095
83
0.657593
5fd308ec1a928aec079296f602158424c8700873
1,769
py
Python
lpcvc/LPCVC2020/scoring.py
SionHu/2021-LPCVC-Referee
c9fd0ef01607731c78d34f3729bc607c4d9cfbc2
[ "MIT" ]
null
null
null
lpcvc/LPCVC2020/scoring.py
SionHu/2021-LPCVC-Referee
c9fd0ef01607731c78d34f3729bc607c4d9cfbc2
[ "MIT" ]
null
null
null
lpcvc/LPCVC2020/scoring.py
SionHu/2021-LPCVC-Referee
c9fd0ef01607731c78d34f3729bc607c4d9cfbc2
[ "MIT" ]
null
null
null
import sys from ld_calc import distance_calculator MAX_POWER = 6.28232727 MIN_POWER = 0.000544746733 def parsePowerFile(powerFile): """Returns Accumulated Energy from csv file""" try: with open(powerFile, "r") as f: lines = f.readlines() if lines: powerline = lines[-1]...
32.163636
94
0.624081
80b73a3ea03a98e75403f6612e662fb9d652f67b
21,518
py
Python
transitfeed/shapelib.py
opentransitmap/transitfeed
65d9a789dd8f58ffcb1a158a1807e1ee74b688ee
[ "Apache-2.0" ]
null
null
null
transitfeed/shapelib.py
opentransitmap/transitfeed
65d9a789dd8f58ffcb1a158a1807e1ee74b688ee
[ "Apache-2.0" ]
null
null
null
transitfeed/shapelib.py
opentransitmap/transitfeed
65d9a789dd8f58ffcb1a158a1807e1ee74b688ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2.4 # # Copyright 2007 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
33.727273
88
0.582164
eb29149c8c10a35cae1a3611bf7a1ad532ee970d
4,304
py
Python
MQTT_Broker.py
Adilius/MQTT-Broker-Python
9e541a0f257cdb78545335d70865469407e62a02
[ "MIT" ]
null
null
null
MQTT_Broker.py
Adilius/MQTT-Broker-Python
9e541a0f257cdb78545335d70865469407e62a02
[ "MIT" ]
null
null
null
MQTT_Broker.py
Adilius/MQTT-Broker-Python
9e541a0f257cdb78545335d70865469407e62a02
[ "MIT" ]
null
null
null
import socket import sys from threading import Thread import MQTT_decoder import MQTT_database from MQTT_packet_handler import packet_router import time from MQTT_control_packets import PUBLISH import MQTT_packet_handler HOST = "127.0.0.1" PORT = 1883 connected_clients = [] def main(): # Initialize database ...
30.524823
103
0.619191
fb173f2e5b44c254850614b3a2d8881ff09fdca8
1,350
py
Python
model/cnn.py
jiruifu-jerry0219/EMG_Deep_Features
8265e9262e8d5a6534aa91b9b81edf414651510a
[ "MIT" ]
null
null
null
model/cnn.py
jiruifu-jerry0219/EMG_Deep_Features
8265e9262e8d5a6534aa91b9b81edf414651510a
[ "MIT" ]
null
null
null
model/cnn.py
jiruifu-jerry0219/EMG_Deep_Features
8265e9262e8d5a6534aa91b9b81edf414651510a
[ "MIT" ]
null
null
null
#updated CNN import torch import torch.nn as nn import torchvision.transforms as transforms import torchvision.datasets as dsets from torch.autograd import Variable class CNNModel(nn.Module): def __init__(self): super(CNNModel, self).__init__() # Convolution 1 self.cnn1 = nn.Conv2d(in_chan...
25
98
0.581481
584a70801d85fe5d6242e1bd7de55730883dcb13
47,550
py
Python
presubmit_canned_checks.py
e12009/chromium-tools-depot_tools
cb62e48b5424c4bc36b919cc7ed61484599bbc70
[ "BSD-3-Clause" ]
null
null
null
presubmit_canned_checks.py
e12009/chromium-tools-depot_tools
cb62e48b5424c4bc36b919cc7ed61484599bbc70
[ "BSD-3-Clause" ]
null
null
null
presubmit_canned_checks.py
e12009/chromium-tools-depot_tools
cb62e48b5424c4bc36b919cc7ed61484599bbc70
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 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. """Generic presubmit checks that can be reused by other presubmit checks.""" import os as _os _HERE = _os.path.dirname(_os.path.abspath(__file__)) # Ju...
36.831913
80
0.683575
4eee02a81b925b979d36dcc0a9a79ad85890224b
1,163
py
Python
tests/test_util.py
bwbeach/smugmug-to-b2
7812948d01e22e64700fd99245e0ab380aa6fadf
[ "MIT" ]
null
null
null
tests/test_util.py
bwbeach/smugmug-to-b2
7812948d01e22e64700fd99245e0ab380aa6fadf
[ "MIT" ]
1
2019-01-06T08:51:41.000Z
2019-01-06T18:42:23.000Z
tests/test_util.py
bwbeach/smugmug-to-b2
7812948d01e22e64700fd99245e0ab380aa6fadf
[ "MIT" ]
null
null
null
import pytest from smugmug_to_b2.util import Reader, ordered_zip from typing import TypeVar T = TypeVar('T') def identity(x: T) -> T: return x def test_reader_normal(): reader = Reader([1, 2, 3], identity) assert 1 == reader.current reader.advance() assert 2 == reader.current reader.advan...
21.145455
71
0.591574
4f072a78e8bee1b9a4b01eed449e90225ef7d623
19,452
py
Python
macOS/Xcode/Maestral/Maestral/app_packages/stone/backend.py
samschott/maestral-cocoa
270574545267dcd32f643f12daf4b5e31edd29bf
[ "MIT" ]
2
2022-01-08T11:18:20.000Z
2022-01-26T13:41:34.000Z
macOS/Xcode/Maestral/Maestral/app_packages/stone/backend.py
samschott/maestral-cocoa
270574545267dcd32f643f12daf4b5e31edd29bf
[ "MIT" ]
4
2022-01-05T09:16:30.000Z
2022-03-29T09:32:44.000Z
macOS/Xcode/Maestral/Maestral/app_packages/stone/backend.py
samschott/maestral-cocoa
270574545267dcd32f643f12daf4b5e31edd29bf
[ "MIT" ]
1
2022-01-05T08:56:59.000Z
2022-01-05T08:56:59.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from abc import ABCMeta, abstractmethod from contextlib import contextmanager import argparse import logging import os import six import textwrap from stone.frontend.ir_generator import doc_ref_re from stone.ir import ( is_alias, ...
38.904
96
0.580969
d170ae4f8e50c5a0196af84ef89a1f0d5124413b
7,005
py
Python
sdk/python/pulumi_azure_native/azurestack/v20170601/registration.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/azurestack/v20170601/registration.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/azurestack/v20170601/registration.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
40.726744
676
0.6404
ecc55ca133a686aed1d8d9221003a88406ea655f
1,733
py
Python
setup.py
fx-kirin/add_custom_key_binding
f2e20425ed7017b29c5d970290ab23421f1a7262
[ "MIT" ]
null
null
null
setup.py
fx-kirin/add_custom_key_binding
f2e20425ed7017b29c5d970290ab23421f1a7262
[ "MIT" ]
null
null
null
setup.py
fx-kirin/add_custom_key_binding
f2e20425ed7017b29c5d970290ab23421f1a7262
[ "MIT" ]
null
null
null
import re from setuptools import find_packages, setup from pathlib import Path def read(filename): file_path = Path(__file__).parent / filename text_type = type(u"") with open(file_path, mode="r", encoding="utf-8") as f: return re.sub(text_type(r":[a-z]+:`~?(.*?)`"), text_type(r"``\1``"), f.read...
30.403509
86
0.609348
7711f849d27546192a1a1b0d46284361102e940c
7,024
py
Python
pytest_pgtap/uri.py
lmergner/pytest-pgtap
566c28e185b970951e62743ab933f3a403b8ac4f
[ "MIT" ]
8
2018-11-09T07:33:56.000Z
2020-08-10T07:17:54.000Z
pytest_pgtap/uri.py
lmergner/pytest-pgtap
566c28e185b970951e62743ab933f3a403b8ac4f
[ "MIT" ]
15
2018-07-22T06:40:43.000Z
2020-11-25T22:26:00.000Z
pytest_pgtap/uri.py
lmergner/pytest-pgtap
566c28e185b970951e62743ab933f3a403b8ac4f
[ "MIT" ]
1
2020-07-24T21:39:24.000Z
2020-07-24T21:39:24.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018 Luke Mergner and contributors # Note: much of this module is from SqlAlchemy and Michael Bayer # https://bitbucket.org/zzzeek/sqlalchemy/src/1ed3803654c122f91d5910adf4078627464b0692/lib/sqlalchemy/engine/url.py """ Database URI parsing, 90% borrowed from SQLAlchemy lib/...
31.217778
115
0.570188
9fdcfd020537195ae4091af1df456c0056387985
17,111
py
Python
lkml/simple.py
fbertsch/lkml
188b5598bf32f33d556487b62834e0ba4910d300
[ "MIT" ]
null
null
null
lkml/simple.py
fbertsch/lkml
188b5598bf32f33d556487b62834e0ba4910d300
[ "MIT" ]
null
null
null
lkml/simple.py
fbertsch/lkml
188b5598bf32f33d556487b62834e0ba4910d300
[ "MIT" ]
null
null
null
"""Interface classes between the parse tree and a data structure of primitives. These classes facilitate parsing and generation to and from simple data structures like lists and dictionaries, and allow users to parse and generate LookML without needing to interact with the parse tree. """ import logging from typing ...
35.647917
88
0.59564
b4c52075e5a93f61f97653aa92cfcc0f91d07009
827
py
Python
sensor_program/sensor_data.py
Adilius/CoAP-MQTT-pipeline-implementation
3fd7a31c3d897bf2135d916010b2883e0ad61418
[ "MIT" ]
null
null
null
sensor_program/sensor_data.py
Adilius/CoAP-MQTT-pipeline-implementation
3fd7a31c3d897bf2135d916010b2883e0ad61418
[ "MIT" ]
null
null
null
sensor_program/sensor_data.py
Adilius/CoAP-MQTT-pipeline-implementation
3fd7a31c3d897bf2135d916010b2883e0ad61418
[ "MIT" ]
null
null
null
import random # Sensor class class sensor(): # Initialize mean, sigma, and starting value of sensor generation def __init__(self, mean, sigma, value): self.mean = mean self.sigma = sigma self.value = value # Get a new sensor data def get_sensor_data(self): # Get curren...
25.060606
69
0.621524
c96c9452ec60b2b0f387cc641c697ec2f1ef25b0
26,381
py
Python
sarpy/io/complex/sicd_elements/RMA.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
1
2021-02-04T08:44:18.000Z
2021-02-04T08:44:18.000Z
sarpy/io/complex/sicd_elements/RMA.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
sarpy/io/complex/sicd_elements/RMA.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The RMAType definition. """ import logging from typing import Union import numpy from numpy.linalg import norm from scipy.constants import speed_of_light from .base import Serializable, DEFAULT_STRICT, \ _StringEnumDescriptor, _FloatDescriptor, _BooleanDescriptor, _SerializableDescrip...
45.56304
121
0.607824
c56a6d95ab49d247d7dbee07485690bf18b4c78c
23,911
py
Python
tests/wallet/cat_wallet/test_cat_lifecycle.py
nur-azhar/chia-blockchain
890da94024b4742bbbb93e47f72113e8344a20b3
[ "Apache-2.0" ]
1
2021-11-16T18:59:19.000Z
2021-11-16T18:59:19.000Z
tests/wallet/cat_wallet/test_cat_lifecycle.py
nur-azhar/chia-blockchain
890da94024b4742bbbb93e47f72113e8344a20b3
[ "Apache-2.0" ]
2
2022-02-14T00:16:34.000Z
2022-02-14T00:16:44.000Z
tests/wallet/cat_wallet/test_cat_lifecycle.py
neurosis69/chia-blockchain
d346ef89f1e1aa9eec1e06f1ef93862c097f6bd7
[ "Apache-2.0" ]
null
null
null
from typing import List, Tuple, Optional, Dict import pytest from blspy import PrivateKey, AugSchemeMPL, G2Element from clvm.casts import int_to_bytes from chia.clvm.spend_sim import SpendSim, SimClient from chia.types.blockchain_format.coin import Coin from chia.types.blockchain_format.program import Program from ch...
38.816558
120
0.512693
8af31cebda5f8c6f1477674a43aca0b8d25e27d8
17,443
py
Python
venv/lib/python3.8/site-packages/ansible_collections/kubernetes/core/plugins/inventory/k8s.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
7
2019-06-17T21:46:31.000Z
2022-03-03T07:43:59.000Z
venv/lib/python3.8/site-packages/ansible_collections/kubernetes/core/plugins/inventory/k8s.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
223
2019-01-17T19:22:40.000Z
2022-03-31T16:12:49.000Z
release/ansible/ansible_collections/kubernetes/core/plugins/inventory/k8s.py
jmrodri/ocp-release-operator-sdk
fe08de5bb8fe56f3ea2868da7f467dae03cd3829
[ "Apache-2.0" ]
24
2019-01-17T19:19:49.000Z
2022-02-03T13:34:08.000Z
# Copyright (c) 2018 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' name: k8s plugin_type: inventory author: - Chris Houseknecht <...
47.92033
152
0.62988
0e3a4482036fe59a0d4f74568310c1d6b9d70d2a
3,242
py
Python
src/model/cashFlowManagement.py
Sothis-baka/Funny-Nations
a248e16b6413e87729857bd8f67e5e519af0ed3d
[ "MIT" ]
null
null
null
src/model/cashFlowManagement.py
Sothis-baka/Funny-Nations
a248e16b6413e87729857bd8f67e5e519af0ed3d
[ "MIT" ]
null
null
null
src/model/cashFlowManagement.py
Sothis-baka/Funny-Nations
a248e16b6413e87729857bd8f67e5e519af0ed3d
[ "MIT" ]
null
null
null
from loguru import logger from datetime import datetime from src.model.makeDatabaseConnection import makeDatabaseConnection def addNewCashFlow(db, userID, amount, msg) -> bool: """ Add new cash flow to database :param db: database connection object :param userID: user's ID int :param amount: amoun...
31.475728
160
0.625848
5ea8cd21945bf6470f4d595b82dc722cd69f36a7
1,856
py
Python
velbus/messages/cover_up.py
gitd8400/python-velbus
ca5bcbb347b82f2e41b599e7544f560b5f355251
[ "MIT" ]
null
null
null
velbus/messages/cover_up.py
gitd8400/python-velbus
ca5bcbb347b82f2e41b599e7544f560b5f355251
[ "MIT" ]
null
null
null
velbus/messages/cover_up.py
gitd8400/python-velbus
ca5bcbb347b82f2e41b599e7544f560b5f355251
[ "MIT" ]
null
null
null
""" :author: Tom Dupré <gitd8400@gmail.com> """ import json import logging import struct import velbus COMMAND_CODE = 0x05 class CoverUpMessage(velbus.Message): """ sent by: received by: VMB2BLE """ def __init__(self, address=None): velbus.Message.__init__(self) self.channel = 0 ...
27.701493
91
0.595366
c54f3022763078a70c4b85e2b138a5df238987eb
6,614
py
Python
mltrace/server/__init__.py
vishwanath1306/mltrace
73301e90e413f6d40beac6ef449f547c687cbb55
[ "Apache-2.0" ]
null
null
null
mltrace/server/__init__.py
vishwanath1306/mltrace
73301e90e413f6d40beac6ef449f547c687cbb55
[ "Apache-2.0" ]
null
null
null
mltrace/server/__init__.py
vishwanath1306/mltrace
73301e90e413f6d40beac6ef449f547c687cbb55
[ "Apache-2.0" ]
null
null
null
from mltrace.client import flag_output_id, unflag_output_id from dateutil import parser from flask import Blueprint, Flask, request, Response from http import HTTPStatus from mltrace.entities import Component, ComponentRun, IOPointer from mltrace import ( get_component_information, get_component_run_information...
29.792793
78
0.657998
7fa46b0a1f290736ba132754384263ec9acb6bc9
5,612
py
Python
rasa/core/validator.py
utkalsinha/rasa
f824d3d7ac52779ea9fd673196aeb560e63752b3
[ "Apache-2.0" ]
1
2019-07-11T13:09:19.000Z
2019-07-11T13:09:19.000Z
rasa/core/validator.py
gautamsharma0095/rasa
44353b20f7ded290bd87365880c193fb4c25a905
[ "Apache-2.0" ]
21
2019-12-16T17:37:54.000Z
2020-07-06T06:19:04.000Z
rasa/core/validator.py
zijiannc/RASA_NLU
4ffafb62b7414cabae07149533e01afe5fc26c14
[ "Apache-2.0" ]
1
2019-07-24T11:35:47.000Z
2019-07-24T11:35:47.000Z
import logging import asyncio from typing import List, Text from rasa.core.domain import Domain from rasa.nlu.training_data import load_data, TrainingData from rasa.core.training.dsl import StoryFileReader, StoryStep from rasa.core.training.dsl import UserUttered from rasa.core.training.dsl import ActionExecuted from r...
35.518987
88
0.58072
9dc5636d1efb2baab0f3f43745432191557cf205
45,009
py
Python
desktop/core/ext-py/phoenixdb/phoenixdb/avatica/proto/requests_pb2.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/phoenixdb/phoenixdb/avatica/proto/requests_pb2.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/phoenixdb/phoenixdb/avatica/proto/requests_pb2.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
36.862408
3,576
0.743851
08f84793476c4c250b9a66c0cafe25586a029928
28,592
py
Python
lib/services/cdn/ncloud_cdn/model/global_cdn_rule.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
lib/services/cdn/ncloud_cdn/model/global_cdn_rule.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
lib/services/cdn/ncloud_cdn/model/global_cdn_rule.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
# coding: utf-8 """ cdn OpenAPI spec version: 2018-06-21T02:27:10Z Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class GlobalCdnRule(object): """NOTE: This class is auto generated by the swagger code generator program. ...
35.168512
805
0.682639
4df6f958152457966074f4ce865675f58c08f72f
16,807
py
Python
open_spiel/python/mfg/games/predator_prey.py
PhilippOesch/open_spiel
930e1bd6de91fe46a5c61d63076cce0e48eae502
[ "Apache-2.0" ]
null
null
null
open_spiel/python/mfg/games/predator_prey.py
PhilippOesch/open_spiel
930e1bd6de91fe46a5c61d63076cce0e48eae502
[ "Apache-2.0" ]
null
null
null
open_spiel/python/mfg/games/predator_prey.py
PhilippOesch/open_spiel
930e1bd6de91fe46a5c61d63076cce0e48eae502
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies 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 law or agr...
37.599553
82
0.685726
f282de99966ac4bf2681895b2de0ab025b8d5566
23,496
py
Python
pysnmp/HPNSAEVENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HPNSAEVENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HPNSAEVENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HPNSAEVENT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPNSAEVENT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:30:08 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2...
151.587097
3,733
0.77792
919d82d0db6ccaf6cf35dfc0db08f9dab4ae84a4
2,238
py
Python
AttributePool.py
Kayzaks/VividNet
acee3fcd9a06c91e07652398e9eecdca595b3e69
[ "MIT" ]
8
2019-05-24T03:22:17.000Z
2020-10-21T20:27:20.000Z
AttributePool.py
Kayzaks/VividNet
acee3fcd9a06c91e07652398e9eecdca595b3e69
[ "MIT" ]
null
null
null
AttributePool.py
Kayzaks/VividNet
acee3fcd9a06c91e07652398e9eecdca595b3e69
[ "MIT" ]
5
2019-09-04T20:33:01.000Z
2021-09-10T07:47:13.000Z
from AttributeType import AttributeType from AttributeType import AttributeLexical from Attribute import Attribute class AttributePool: def __init__(self): self._pool : dict = dict() # AttributeType - AttributeList self._names : dict = dict() # AttributeName - AttributeType self._order ...
31.083333
84
0.610366
9049caeacd1621a08cd9f1aa63e93575d00aa416
639
py
Python
data/external/repositories_2to3/188283/classifying-text-master/fofe/driver.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/188283/classifying-text-master/fofe/driver.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/188283/classifying-text-master/fofe/driver.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
import numpy as np from sklearn.feature_extraction.text import CountVectorizer from .fofe import FofeVectorizer as FOFE input_file = 'sample.txt' docs = [ line for line in open( input_file, 'rb' ) ] vectorizer = CountVectorizer( binary = True ) x = vectorizer.fit_transform( docs ) print(x.toarray()) d...
26.625
77
0.729264
741d7d54806d322cec3af7df0726d76d50978759
3,481
py
Python
Non-React Stuff/alexa/lambda/skill_env/ask_sdk_model/application.py
ReciPull/reciprogram
b8c7e4610f95c5beafad3c9880fc5beceec523e7
[ "MIT" ]
1
2019-09-16T19:13:13.000Z
2019-09-16T19:13:13.000Z
Non-React Stuff/alexa/lambda/skill_env/ask_sdk_model/application.py
ReciPull/reciprogram
b8c7e4610f95c5beafad3c9880fc5beceec523e7
[ "MIT" ]
5
2021-03-09T03:30:14.000Z
2022-02-26T10:42:17.000Z
alexa/reciPullLambda/ask_sdk_model/application.py
ReciPull/recipull.github.io
e6b800af02658bb7948297c4ddc1b7af6d978839
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
32.231481
121
0.597529
cbff7871c13656ee0a93688e3fa1e0a8bcb66c0c
3,262
py
Python
cyber_sdk/util/contract.py
SaveTheAles/cyber.py
69211d4f9e861e3c64990725a4a483d2cbee0be1
[ "MIT" ]
null
null
null
cyber_sdk/util/contract.py
SaveTheAles/cyber.py
69211d4f9e861e3c64990725a4a483d2cbee0be1
[ "MIT" ]
null
null
null
cyber_sdk/util/contract.py
SaveTheAles/cyber.py
69211d4f9e861e3c64990725a4a483d2cbee0be1
[ "MIT" ]
null
null
null
"""Useful contract-related functions.""" import base64 from typing import Dict, List, Union from cyber_sdk.core import AccAddress from cyber_sdk.core.auth import TxInfo from cyber_sdk.core.broadcast import BlockTxBroadcastResult __all__ = [ "read_file_as_b64", "get_code_id", "get_contract_address", "...
33.979167
96
0.634273
3d59aec6a7163d5091a5ce245ad9604431638f60
1,798
py
Python
gallery/gravmag/radial_average_spectrum.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
179
2015-03-08T08:50:45.000Z
2022-03-20T08:19:05.000Z
gallery/gravmag/radial_average_spectrum.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
207
2015-01-12T17:04:57.000Z
2021-01-08T23:36:11.000Z
gallery/gravmag/radial_average_spectrum.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
114
2015-01-29T18:51:22.000Z
2022-03-25T12:35:43.000Z
""" Radial Average Power Spectrum ----------------------------- This example uses the Hawaii gravity data to compute the radial average of its power spectrum. """ from __future__ import division, print_function from fatiando import mesher, gridder, utils from fatiando.datasets import fetch_hawaii_gravity from fatiand...
32.690909
79
0.669077
95dc3761e068d53d8e096803af31bce340dc99c6
71,943
py
Python
python/pyarrow/tests/test_csv.py
rijukk/arrow
bee67c5f2ff84a1759d02b45d7a0cea9b494175b
[ "Apache-2.0" ]
1
2022-01-17T02:58:50.000Z
2022-01-17T02:58:50.000Z
python/pyarrow/tests/test_csv.py
rijukk/arrow
bee67c5f2ff84a1759d02b45d7a0cea9b494175b
[ "Apache-2.0" ]
3
2022-02-09T03:24:57.000Z
2022-02-14T22:26:27.000Z
python/pyarrow/tests/test_csv.py
rijukk/arrow
bee67c5f2ff84a1759d02b45d7a0cea9b494175b
[ "Apache-2.0" ]
1
2020-08-27T22:54:09.000Z
2020-08-27T22:54:09.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.765354
79
0.540775
eecc6d7995c939054b78d4f4be4115849a79a8cd
6,036
py
Python
sdk/python/pulumi_azure_native/documentdb/v20200601preview/get_sql_resource_sql_container.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/documentdb/v20200601preview/get_sql_resource_sql_container.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/documentdb/v20200601preview/get_sql_resource_sql_container.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
38.202532
505
0.650099
caf9effa5613dbb26d42e18b4277d54ad840e2f8
2,944
py
Python
api/namex/resources/name_requests/api_models.py
riyazuddinsyed/namex
c100ef4378794f509b738d38276e3b902d26067a
[ "Apache-2.0" ]
null
null
null
api/namex/resources/name_requests/api_models.py
riyazuddinsyed/namex
c100ef4378794f509b738d38276e3b902d26067a
[ "Apache-2.0" ]
null
null
null
api/namex/resources/name_requests/api_models.py
riyazuddinsyed/namex
c100ef4378794f509b738d38276e3b902d26067a
[ "Apache-2.0" ]
null
null
null
from flask_restplus import fields from .api_namespace import api applicant_model = api.model('applicant_model', { 'partyId': fields.Integer('partyId'), 'lastName': fields.String(attribute='lastName'), 'firstName': fields.String(attribute='firstName'), 'middleName': fields.String('Applicant middle name ...
49.066667
93
0.700747
51499c055aa55e7809212565edff14528adb6759
8,252
py
Python
simpledsapp_moc/simpledsapp_moc.py
FNNDSC/pl-simpledsapp_moc
e3ee19f252fa74492241445421deaa02dcfcd675
[ "MIT" ]
null
null
null
simpledsapp_moc/simpledsapp_moc.py
FNNDSC/pl-simpledsapp_moc
e3ee19f252fa74492241445421deaa02dcfcd675
[ "MIT" ]
null
null
null
simpledsapp_moc/simpledsapp_moc.py
FNNDSC/pl-simpledsapp_moc
e3ee19f252fa74492241445421deaa02dcfcd675
[ "MIT" ]
null
null
null
#!/usr/bin/env python # _ # simpledsapp_moc ds app # # (c) 2016-2019 Fetal-Neonatal Neuroimaging & Developmental Science Center # Boston Children's Hospital # # http://childrenshospital....
40.650246
150
0.481701
bed819227c3433b03f05b68ead22fc9d02e8cfd1
1,286
py
Python
demo.py
tjppires/tf_flownet2
6e27adaf7bdf23a98812ea9e8c9f1b4eaf3b7ec3
[ "MIT" ]
null
null
null
demo.py
tjppires/tf_flownet2
6e27adaf7bdf23a98812ea9e8c9f1b4eaf3b7ec3
[ "MIT" ]
null
null
null
demo.py
tjppires/tf_flownet2
6e27adaf7bdf23a98812ea9e8c9f1b4eaf3b7ec3
[ "MIT" ]
null
null
null
import cv2 import matplotlib.pyplot as plt import numpy as np import tensorflow.compat.v1 as tf import flowlib import models def load_image(path: str) -> np.ndarray: img = cv2.imread(path, cv2.IMREAD_COLOR) # OpenCV stores images as BGR, but the model expects RGB. img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) ...
29.227273
73
0.732504
8d43698d9d9873da81ad099013bf546df30eb354
621
py
Python
awacs/rds_db.py
alanjjenkins/awacs
0065e1833eae6a6070edb4ab4f180fd10b26c19a
[ "BSD-2-Clause" ]
358
2015-01-01T05:11:05.000Z
2022-03-20T14:11:39.000Z
awacs/rds_db.py
alanjjenkins/awacs
0065e1833eae6a6070edb4ab4f180fd10b26c19a
[ "BSD-2-Clause" ]
171
2015-01-17T00:32:48.000Z
2022-03-28T02:02:57.000Z
awacs/rds_db.py
michael-k/awacs
ed3dc822d268f10b0cd83feb90fd279277e54ed4
[ "BSD-2-Clause" ]
100
2015-01-04T16:34:34.000Z
2022-02-21T06:17:17.000Z
# Copyright (c) 2012-2021, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from .aws import Action as BaseAction from .aws import BaseARN service_name = "Amazon RDS IAM Authentication" prefix = "rds-db" class Action(BaseAction): def __init__(self, action: str = None) -> N...
23.884615
88
0.663446
d10a182bea9b883ad321be470dc3a0057336853a
391
py
Python
acquisitions/migrations/0002_auto_20160527_2144.py
18F/acqstackdb
7d939e7deb1cb8749f16fe6b6bc092f5db5c4469
[ "CC0-1.0" ]
2
2016-06-03T16:33:34.000Z
2016-07-22T12:10:31.000Z
acquisitions/migrations/0002_auto_20160527_2144.py
18F/acqstackdb
7d939e7deb1cb8749f16fe6b6bc092f5db5c4469
[ "CC0-1.0" ]
26
2016-06-02T11:21:15.000Z
2016-07-18T14:10:03.000Z
acquisitions/migrations/0002_auto_20160527_2144.py
18F/acqstackdb
7d939e7deb1cb8749f16fe6b6bc092f5db5c4469
[ "CC0-1.0" ]
2
2017-07-14T08:33:32.000Z
2021-02-15T10:16:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-27 21:44 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('acquisitions', '0001_initial'), ] operations = [ migrations.RenameModel( ...
19.55
47
0.611253
8ef039a24d4f73206b4851f231f54f37a1f52583
658
py
Python
btypes/migrations/0001_initial.py
itmonitoringcommunity/backend
3107cceecc29bbc94ba692bd67922f679a61d2fd
[ "MIT" ]
null
null
null
btypes/migrations/0001_initial.py
itmonitoringcommunity/backend
3107cceecc29bbc94ba692bd67922f679a61d2fd
[ "MIT" ]
2
2021-03-19T09:46:09.000Z
2021-06-04T23:34:54.000Z
btypes/migrations/0001_initial.py
smiley-py/backend
3107cceecc29bbc94ba692bd67922f679a61d2fd
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-05-01 12:51 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='BType', fields=[ ('id', models.AutoField(p...
26.32
76
0.557751
7a81cb1b48e9ee34adcb8716e5a7faa6043ef229
5,476
py
Python
tictactoe/player.py
protago90/tictactoe-arena
13576fd1e950268f263de4a4818252b9d7f9b200
[ "Beerware" ]
null
null
null
tictactoe/player.py
protago90/tictactoe-arena
13576fd1e950268f263de4a4818252b9d7f9b200
[ "Beerware" ]
null
null
null
tictactoe/player.py
protago90/tictactoe-arena
13576fd1e950268f263de4a4818252b9d7f9b200
[ "Beerware" ]
null
null
null
# by protago90 from tictactoe.board import BoardAPI from abc import abstractmethod from typing import Callable, List, Optional, Tuple import random import time class PlayerAPI(): SIGNS = BoardAPI.SIGNS # TicTacToe's board hardcoded signs NAP = 0 ID = 'none' def __init__(self, sign: str) -> None: ...
31.113636
88
0.605004
8d13a024264b07d6f2d02d4955de7ef1f6887249
5,506
py
Python
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/restore_new_instance_flavor_option.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/restore_new_instance_flavor_option.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/restore_new_instance_flavor_option.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class RestoreNewInstanceFlavorOption: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name a...
29.132275
178
0.580639
5870d3a63887d6da90fce0c9a7774e901b31bf4b
4,066
py
Python
tools/load_gfile_mds.py
JakeMaeker/utk-fusion
26a3b20814ee42325b964cf77c16f6c38dbde3ec
[ "MIT" ]
1
2021-12-17T14:00:35.000Z
2021-12-17T14:00:35.000Z
tools/load_gfile_mds.py
JakeMaeker/utk-fusion
26a3b20814ee42325b964cf77c16f6c38dbde3ec
[ "MIT" ]
null
null
null
tools/load_gfile_mds.py
JakeMaeker/utk-fusion
26a3b20814ee42325b964cf77c16f6c38dbde3ec
[ "MIT" ]
1
2021-09-22T20:00:54.000Z
2021-09-22T20:00:54.000Z
import MDSplus as mds import numpy as np def load_gfile_mds(shot, time, tree="EFIT02", exact=False, connection=None, tunnel=True, verbal=True): """ This is scavenged from the load_gfile_d3d script on the EFIT repository, except updated to run on python3. shot: Shot to get gfi...
35.356522
97
0.539843
bdedcfb85c4af37eb6d9ab6acdbb0c8be645b2b9
3,845
py
Python
utils/meta_utils.py
allenai/interactron
2be41b34adf6917348cb2440cded9975ec4f5d0d
[ "Apache-2.0" ]
4
2022-03-30T06:07:32.000Z
2022-03-31T02:05:18.000Z
utils/meta_utils.py
allenai/interactron
2be41b34adf6917348cb2440cded9975ec4f5d0d
[ "Apache-2.0" ]
null
null
null
utils/meta_utils.py
allenai/interactron
2be41b34adf6917348cb2440cded9975ec4f5d0d
[ "Apache-2.0" ]
2
2022-03-30T10:05:42.000Z
2022-03-31T02:05:23.000Z
def get_parameters(model): # get children form model! children = list(model.children()) flatt_children = [] if children == []: # if model has no children; model is last child! :O params = [] for name, param in model._parameters.items(): if param is not None and param....
37.696078
95
0.608583
80955f232203548b6e6f602ec54e9143d119b2aa
3,502
py
Python
datasets/gen_coco_from_voc.py
liweijia1243/AdelaiDet
e2abe62497dfcd3e169a01ea756a3d71a48be6bf
[ "BSD-2-Clause" ]
null
null
null
datasets/gen_coco_from_voc.py
liweijia1243/AdelaiDet
e2abe62497dfcd3e169a01ea756a3d71a48be6bf
[ "BSD-2-Clause" ]
null
null
null
datasets/gen_coco_from_voc.py
liweijia1243/AdelaiDet
e2abe62497dfcd3e169a01ea756a3d71a48be6bf
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import cv2 import os import json import argparse import glob import matplotlib.pyplot as plt import pandas def create_coco_files(datapath : str): result_json= { "info": {"contributor": "li weijia"}, "categories" :[ {"id": 0, "name": "dash"}, {"id": 1, "nam...
29.677966
89
0.579954
3863a132243fb5b643fb8cb46caef781f8c79a44
13,032
py
Python
ws2122-lspm/Lib/site-packages/pm4py/algo/evaluation/precision/variants/align_etconformance.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/evaluation/precision/variants/align_etconformance.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/evaluation/precision/variants/align_etconformance.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
38.785714
189
0.653085
7aadcd8c3927f15b474b33d8d3ddc9d6e3c55a8b
9,022
py
Python
tests/core/test_handshake_schemes.py
pipermerriam/ddht
7e0b66ac96591a590e40c7e15d880af01e1f1a36
[ "MIT" ]
2
2021-06-20T19:47:22.000Z
2021-07-04T17:16:29.000Z
tests/core/test_handshake_schemes.py
pipermerriam/ddht
7e0b66ac96591a590e40c7e15d880af01e1f1a36
[ "MIT" ]
null
null
null
tests/core/test_handshake_schemes.py
pipermerriam/ddht
7e0b66ac96591a590e40c7e15d880af01e1f1a36
[ "MIT" ]
null
null
null
from hashlib import sha256 from eth_keys.datatypes import NonRecoverableSignature, PrivateKey from eth_utils import ValidationError, decode_hex, keccak from hypothesis import given import pytest from ddht.constants import ID_NONCE_SIGNATURE_PREFIX from ddht.handshake_schemes import ( V4HandshakeScheme, ecdh_a...
35.242188
118
0.721569
2d2c7e8d70e71523c1346ea15eacf6da51a9308f
597
py
Python
pumpwerk/food/migrations/0029_auto_20200620_1509.py
bruecksen/pumpwerk
137ddeb7262c4f7cbc175ad9f15476f31331a416
[ "MIT" ]
null
null
null
pumpwerk/food/migrations/0029_auto_20200620_1509.py
bruecksen/pumpwerk
137ddeb7262c4f7cbc175ad9f15476f31331a416
[ "MIT" ]
1
2021-05-11T08:35:39.000Z
2021-05-11T08:35:39.000Z
pumpwerk/food/migrations/0029_auto_20200620_1509.py
bruecksen/pumpwerk
137ddeb7262c4f7cbc175ad9f15476f31331a416
[ "MIT" ]
null
null
null
# Generated by Django 2.2.11 on 2020-06-20 13:09 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('food', '0028_auto_20200620_1501'), ] operations = [ migrations.AlterModelOptions( name='payment', o...
24.875
106
0.59799
c2cc25020bd193626ef4f081baf77c9865807dcf
5,222
py
Python
azext_iot/digitaltwins/command_map.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
null
null
null
azext_iot/digitaltwins/command_map.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
1
2020-09-02T23:25:39.000Z
2020-09-09T14:18:33.000Z
azext_iot/digitaltwins/command_map.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------...
36.517483
101
0.647453
f8bc70eaf7ab1d4a871cd724f1f3069df7ffc0c6
894
py
Python
twindb_backup/modifiers/bzip2.py
denssk/backup
292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e
[ "Apache-2.0" ]
null
null
null
twindb_backup/modifiers/bzip2.py
denssk/backup
292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e
[ "Apache-2.0" ]
1
2021-04-30T20:47:57.000Z
2021-04-30T20:47:57.000Z
twindb_backup/modifiers/bzip2.py
denssk/backup
292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e
[ "Apache-2.0" ]
1
2019-09-17T08:32:52.000Z
2019-09-17T08:32:52.000Z
# -*- coding: utf-8 -*- """ Module defines modifier that compresses a stream with bzip2 """ from twindb_backup.modifiers.base import Modifier class Bzip2(Modifier): """ Modifier that compresses the input_stream with bzip2. """ suffix = ".bz" def __init__(self, input_stream, level=9): """ ...
25.542857
69
0.610738
da3061688b69cc5171c8c1d5a4c54fcefc87fc4a
1,722
py
Python
samples/generated_samples/aiplatform_generated_aiplatform_v1beta1_metadata_service_purge_contexts_sync.py
lclc19/python-aiplatform
d8da2e365277441abadb04328943f23345d72b0e
[ "Apache-2.0" ]
180
2020-09-23T17:21:15.000Z
2022-03-30T17:25:47.000Z
samples/generated_samples/aiplatform_generated_aiplatform_v1beta1_metadata_service_purge_contexts_sync.py
lclc19/python-aiplatform
d8da2e365277441abadb04328943f23345d72b0e
[ "Apache-2.0" ]
601
2020-09-23T16:23:44.000Z
2022-03-31T19:08:23.000Z
samples/generated_samples/aiplatform_generated_aiplatform_v1beta1_metadata_service_purge_contexts_sync.py
lclc19/python-aiplatform
d8da2e365277441abadb04328943f23345d72b0e
[ "Apache-2.0" ]
109
2020-09-23T16:22:04.000Z
2022-03-28T21:18:29.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
33.764706
108
0.761905
3fa7986f9e3fe5b9dd5de2cda8cdddeebe8ac236
18,224
py
Python
mysensors/mysensors.py
Br3nda/whareora-serial-listener
1334b96f24cc5cc79a905c4f6530920695a7301a
[ "MIT" ]
null
null
null
mysensors/mysensors.py
Br3nda/whareora-serial-listener
1334b96f24cc5cc79a905c4f6530920695a7301a
[ "MIT" ]
null
null
null
mysensors/mysensors.py
Br3nda/whareora-serial-listener
1334b96f24cc5cc79a905c4f6530920695a7301a
[ "MIT" ]
null
null
null
"""pymysensors - Python implementation of the MySensors SerialGateway.""" import time import threading import logging import pickle import os import json from queue import Queue from importlib import import_module import serial LOGGER = logging.getLogger(__name__) class Gateway(object): """Base implementation fo...
35.733333
79
0.568701
66440a900cd27853f7b20a24a6f4eb2bedffd77a
1,734
py
Python
Command.py
alexpeissel/NASmon
5e7ce0d9b7b15d978a59f7bbbcff5653d5280c59
[ "MIT" ]
null
null
null
Command.py
alexpeissel/NASmon
5e7ce0d9b7b15d978a59f7bbbcff5653d5280c59
[ "MIT" ]
null
null
null
Command.py
alexpeissel/NASmon
5e7ce0d9b7b15d978a59f7bbbcff5653d5280c59
[ "MIT" ]
null
null
null
import logging import re import subprocess from loguru import logger class Command(): def __init__(self, name, command, run_once=False, numeric=False): self.name = name self.command = command self.run_once = run_once self.numeric = numeric self.last_execution = None ...
34
129
0.607843
75110e7079bb86e6d9c468c216c5bd2c14921235
2,087
py
Python
App/prenodes_REDUX2.py
zeffii/shazbat
95bb4e2d23578b48247d948b7b93f7ca9beacc5d
[ "MIT" ]
2
2017-01-20T14:59:02.000Z
2022-01-31T02:31:41.000Z
App/prenodes_REDUX2.py
zeffii/shazbat
95bb4e2d23578b48247d948b7b93f7ca9beacc5d
[ "MIT" ]
null
null
null
App/prenodes_REDUX2.py
zeffii/shazbat
95bb4e2d23578b48247d948b7b93f7ca9beacc5d
[ "MIT" ]
null
null
null
''' Experiments with Kivy drawing. ''' from math import sin, cos, pi from kivy.uix.scatter import Scatter from kivy.uix.button import Button from kivy.uix.widget import Widget from kivy.uix.label import Label from kivy.uix.scatterlayout import ScatterLayout from kivy.uix.boxlayout import BoxLayout from kivy.uix.floatl...
27.826667
64
0.626258
52ee30f5a6d45fc8db4215559039253adf5913b6
216
py
Python
moto/mediaconnect/exceptions.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
5,460
2015-01-01T01:11:17.000Z
2022-03-31T23:45:38.000Z
moto/mediaconnect/exceptions.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
4,475
2015-01-05T19:37:30.000Z
2022-03-31T13:55:12.000Z
moto/mediaconnect/exceptions.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
1,831
2015-01-14T00:00:44.000Z
2022-03-31T20:30:04.000Z
from moto.core.exceptions import JsonRESTError class NotFoundException(JsonRESTError): code = 400 def __init__(self, message): super(NotFoundException, self).__init__("NotFoundException", message)
24
77
0.75463
8da30db7313e551b0de9f6e19291c0f0e10320ea
3,154
py
Python
migrations/versions/43e7babf26c1_initial_migration.py
YaJunCui/bhbmjsfwzx
1241b433663d5bcd170d61ab3e31423304f8a257
[ "Apache-2.0" ]
null
null
null
migrations/versions/43e7babf26c1_initial_migration.py
YaJunCui/bhbmjsfwzx
1241b433663d5bcd170d61ab3e31423304f8a257
[ "Apache-2.0" ]
null
null
null
migrations/versions/43e7babf26c1_initial_migration.py
YaJunCui/bhbmjsfwzx
1241b433663d5bcd170d61ab3e31423304f8a257
[ "Apache-2.0" ]
null
null
null
"""initial migration Revision ID: 43e7babf26c1 Revises: Create Date: 2020-11-22 16:12:17.433004 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '43e7babf26c1' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto ...
41.5
103
0.680406
532105f1e1c7f0c26c26179512672eff1059ebb3
94
py
Python
statsme/errors.py
Fyssion/StatsMe
7e28675548c09853c838ef261cdd09f2fae70020
[ "MIT" ]
2
2020-07-16T19:43:09.000Z
2020-07-18T00:18:59.000Z
statsme/errors.py
Fyssion/StatsMe
7e28675548c09853c838ef261cdd09f2fae70020
[ "MIT" ]
null
null
null
statsme/errors.py
Fyssion/StatsMe
7e28675548c09853c838ef261cdd09f2fae70020
[ "MIT" ]
null
null
null
class StatsMeException(Exception): pass class NotConfigured(StatsMeException): pass
13.428571
38
0.765957
7b69b4b81e26d7065b98d1ac51bff9c12ca6af85
9,154
py
Python
rasa/core/evaluation/marker.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
9,701
2019-04-16T15:46:27.000Z
2022-03-31T11:52:18.000Z
rasa/core/evaluation/marker.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
6,420
2019-04-16T15:58:22.000Z
2022-03-31T17:54:35.000Z
rasa/core/evaluation/marker.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
3,063
2019-04-16T15:23:52.000Z
2022-03-31T00:01:12.000Z
from rasa.shared.core.domain import Domain from typing import Optional, Text, List from rasa.core.evaluation.marker_base import ( OperatorMarker, ConditionMarker, MarkerRegistry, Marker, ) from rasa.shared.core.events import ActionExecuted, SlotSet, UserUttered, Event import logging logger = logging.ge...
34.156716
87
0.653594
a1a10c09c030743ef297e75073c55e56d92dc997
1,355
py
Python
SNELECT/snelect.py
nipil/codechefy-submissions
0799bc0cc59b42adb42fba81efee93c2e291d98e
[ "MIT" ]
null
null
null
SNELECT/snelect.py
nipil/codechefy-submissions
0799bc0cc59b42adb42fba81efee93c2e291d98e
[ "MIT" ]
null
null
null
SNELECT/snelect.py
nipil/codechefy-submissions
0799bc0cc59b42adb42fba81efee93c2e291d98e
[ "MIT" ]
null
null
null
import os def debug(*args): if os.environ.get('DEBUG') is None: return print(*args) def solve(n, row): debug("n", n) snakes = 0 mongooses = 0 debug("row before:", row) i = -1 while i < n: i += 1 if i >= n: break debug("i", i) i...
17.371795
61
0.4
7c80665b334b0857ba64c9a15e734cb67492ddba
10,340
bzl
Python
packages/typescript/src/internal/devserver/ts_devserver.bzl
marcus-sa/rules_nodejs
9ce8c85b295b47f63705f7b9c10700a01cc20421
[ "Apache-2.0" ]
null
null
null
packages/typescript/src/internal/devserver/ts_devserver.bzl
marcus-sa/rules_nodejs
9ce8c85b295b47f63705f7b9c10700a01cc20421
[ "Apache-2.0" ]
null
null
null
packages/typescript/src/internal/devserver/ts_devserver.bzl
marcus-sa/rules_nodejs
9ce8c85b295b47f63705f7b9c10700a01cc20421
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
42.55144
129
0.651064
0f751796123feea5de5dd998f340ed7ab4c09295
7,256
py
Python
baidu_speech_and_tuling_chatbot/src/simple_speek.py
fengmao31/ros-demo
a256768d68d6646bce42a17207381735929ebcd5
[ "Apache-2.0" ]
2
2018-08-06T08:37:35.000Z
2019-08-21T14:43:07.000Z
baidu_speech_and_tuling_chatbot/src/simple_speek.py
fengmao31/ros-demo
a256768d68d6646bce42a17207381735929ebcd5
[ "Apache-2.0" ]
null
null
null
baidu_speech_and_tuling_chatbot/src/simple_speek.py
fengmao31/ros-demo
a256768d68d6646bce42a17207381735929ebcd5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Copyright (c) 2016 Xu Zhihao (Howe). All rights reserved. This program is free software; you can redistribute it and/or modify This programm is tested on kuboki base turtlebot. This is TTS""" from pyaudio import PyAudio from pyaudio import paInt16 import json import o...
23.635179
102
0.606946
7505a97128aab3ad24f6a1d61316c331c9b08769
1,979
py
Python
ielex/lexicon/management/commands/clonelanguagelist.py
lingdb/CoBL-public
e50b441c4281b9299fb1cd0b46f906887cb86dd1
[ "BSD-2-Clause" ]
3
2017-05-30T04:40:43.000Z
2019-04-25T14:54:54.000Z
ielex/lexicon/management/commands/clonelanguagelist.py
lingdb/CoBL-public
e50b441c4281b9299fb1cd0b46f906887cb86dd1
[ "BSD-2-Clause" ]
null
null
null
ielex/lexicon/management/commands/clonelanguagelist.py
lingdb/CoBL-public
e50b441c4281b9299fb1cd0b46f906887cb86dd1
[ "BSD-2-Clause" ]
3
2018-07-02T13:42:12.000Z
2019-05-17T13:11:13.000Z
from __future__ import print_function from optparse import make_option from django.core.management.base import CommandError from ielex.lexicon.models import LanguageList from ielex.utilities import LexDBManagementCommand class Command(LexDBManagementCommand): help = """Export a nexus file from the database""" ...
38.057692
78
0.599293
635e4609f01624b501491a6dc14d94280470d235
3,342
py
Python
tests/test_views.py
randomir/dimod
8f636168a620e0dc9d969fb0a813f6b4ba5a755c
[ "Apache-2.0" ]
1
2019-07-12T18:43:48.000Z
2019-07-12T18:43:48.000Z
tests/test_views.py
randomir/dimod
8f636168a620e0dc9d969fb0a813f6b4ba5a755c
[ "Apache-2.0" ]
24
2021-07-09T08:19:47.000Z
2022-03-08T08:15:48.000Z
tests/test_views.py
randomir/dimod
8f636168a620e0dc9d969fb0a813f6b4ba5a755c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 D-Wave Systems 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...
37.977273
87
0.601137
51abd2a9b95bbd776ce158063080f61849196e33
390
py
Python
Stream-3/Full-Stack-Development/3.Hello-Django-Models/5.Viewing-Records-In-The-Shell/challenge_solution/Quotes/Quotes/wsgi.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
4
2017-10-10T14:00:40.000Z
2021-01-27T14:08:26.000Z
Stream-3/Full-Stack-Development/3.Hello-Django-Models/5.Viewing-Records-In-The-Shell/challenge_solution/Quotes/Quotes/wsgi.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
115
2019-10-24T11:18:33.000Z
2022-03-11T23:15:42.000Z
Stream-3/Full-Stack-Development/3.Hello-Django-Models/5.Viewing-Records-In-The-Shell/challenge_solution/Quotes/Quotes/wsgi.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
5
2017-09-22T21:42:39.000Z
2020-02-07T02:18:11.000Z
""" WSGI config for Quotes project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
22.941176
78
0.784615
01933df042b6b047edbf6fb2931de31c5e80d471
7,900
py
Python
pypdf/pdftypes.py
harshavardhana/bungee-plugins
d1042b4fd3654890d67393ed65e0064bb30086f8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
pypdf/pdftypes.py
harshavardhana/bungee-plugins
d1042b4fd3654890d67393ed65e0064bb30086f8
[ "ECL-2.0", "Apache-2.0" ]
1
2021-03-05T13:16:30.000Z
2021-03-05T15:20:22.000Z
pypdf/pdftypes.py
harshavardhana/bungee-plugins
d1042b4fd3654890d67393ed65e0064bb30086f8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys import zlib from decoders.lzw import lzwdecode from decoders.ascii85 import ascii85decode, asciihexdecode from decoders.runlength import rldecode from pypdf.psparser import PSException, PSObject from pypdf.psparser import LIT, KWD, STRICT LITERAL_CRYPT = LIT('Crypt') # Abbreviation...
30.152672
100
0.567468
4cf86087eb78cc9330efd9dec54c2800abd918fc
446
py
Python
scripts/fitnessMutations/name_internal_nodes.py
felixhorns/BCellSelection
e2f693b25d6f2802ee7f362f9aa54420b408a4e3
[ "MIT" ]
3
2019-05-30T17:34:02.000Z
2020-03-25T17:14:55.000Z
scripts/fitnessMutations/name_internal_nodes.py
felixhorns/BCellSelection
e2f693b25d6f2802ee7f362f9aa54420b408a4e3
[ "MIT" ]
null
null
null
scripts/fitnessMutations/name_internal_nodes.py
felixhorns/BCellSelection
e2f693b25d6f2802ee7f362f9aa54420b408a4e3
[ "MIT" ]
null
null
null
import sys import ete3 def name_internal_nodes(T): i = 1 for node in T.traverse(): if not node.is_leaf(): node.name = str(i) + "_" i += 1 return None if __name__ == "__main__": infile = sys.argv[1] outfile = sys.argv[2] print infile T = ete3.Tree(infile, ...
18.583333
38
0.58296
b1372227f5c12c2563f4d925209b8570b262aee5
1,068
py
Python
real_estate_api/accounts/migrations/0015_auto_20190208_1422.py
rossi1/RES
729196bfa45cc2b47acc93c49c07c7e8f0f6ea93
[ "MIT" ]
null
null
null
real_estate_api/accounts/migrations/0015_auto_20190208_1422.py
rossi1/RES
729196bfa45cc2b47acc93c49c07c7e8f0f6ea93
[ "MIT" ]
null
null
null
real_estate_api/accounts/migrations/0015_auto_20190208_1422.py
rossi1/RES
729196bfa45cc2b47acc93c49c07c7e8f0f6ea93
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2019-02-08 22:22 import cloudinary.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0014_auto_20190102_0007'), ] operations = [ ...
31.411765
121
0.606742
c2693e18329e81ed7b06327a945a7aef6ec4dcdd
860
py
Python
2. Trees/2. Binary Tree/fullTree.py
palashsharma891/CLRS-Solutions
2f35be0af93046f2eabdb28eb4ed697fe47293cd
[ "MIT" ]
null
null
null
2. Trees/2. Binary Tree/fullTree.py
palashsharma891/CLRS-Solutions
2f35be0af93046f2eabdb28eb4ed697fe47293cd
[ "MIT" ]
null
null
null
2. Trees/2. Binary Tree/fullTree.py
palashsharma891/CLRS-Solutions
2f35be0af93046f2eabdb28eb4ed697fe47293cd
[ "MIT" ]
null
null
null
class Node: def __init__(self, item): self.item = item self.leftChild = None self.rightChild = None # Checking full binary tree def isFullTree(root): # Tree empty case if root is None: return True # Checking whether child is present if root.leftChild is None and ...
22.051282
75
0.683721
9365aeb8cde7e4766dfe11e9234dc0be262cf983
2,223
py
Python
classifiers/bundle_wrapper.py
uvasrg/AutomaticallyEvadeClassifiers
961e0ddb9b5e13033ea5692b369b6008e271c597
[ "MIT" ]
104
2016-01-21T13:38:23.000Z
2021-06-25T02:15:17.000Z
classifiers/bundle_wrapper.py
uvasrg/AutomaticallyEvadeClassifiers
961e0ddb9b5e13033ea5692b369b6008e271c597
[ "MIT" ]
8
2015-12-30T15:33:57.000Z
2020-09-25T04:50:58.000Z
classifiers/bundle_wrapper.py
uvasrg/AutomaticallyEvadeClassifiers
961e0ddb9b5e13033ea5692b369b6008e271c597
[ "MIT" ]
45
2016-02-14T03:15:16.000Z
2021-09-26T03:02:07.000Z
import sys, os from pdfrate_wrapper import pdfrate from hidost_wrapper import hidost import math def hidost_pdfrate(file_paths): # hidost = lambda *args:query_classifier('hidost', *args) # pdfrate = lambda *args:query_classifier('pdfrate', *args) hidost_scores = hidost(file_paths) pdfrate_scores = pdf...
30.040541
83
0.624381