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
65d6993d98b839d0b1c35f622ef912360fb8837f
3,564
py
Python
ws_server/ws_server2.py
majj/Rexroth
079f2890a39e34776627d53c00d7debbfbd13146
[ "MIT" ]
null
null
null
ws_server/ws_server2.py
majj/Rexroth
079f2890a39e34776627d53c00d7debbfbd13146
[ "MIT" ]
null
null
null
ws_server/ws_server2.py
majj/Rexroth
079f2890a39e34776627d53c00d7debbfbd13146
[ "MIT" ]
null
null
null
#get torque data and send it to browser by websockets import time import asyncio import datetime import random import websockets import ast from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler #LoggingEventHandler, import threading import queue q1 = queue.Queue() q2 = queue...
18.5625
72
0.477553
a6d4c39fc4bc73848b8ad4d958a10d6423ddd1af
55
py
Python
MeltSortGrow/Main.py
ht-932/MeltSortGrow
8cbd7af82dc79c98a7d318efb8a35472ff35a088
[ "MIT" ]
null
null
null
MeltSortGrow/Main.py
ht-932/MeltSortGrow
8cbd7af82dc79c98a7d318efb8a35472ff35a088
[ "MIT" ]
null
null
null
MeltSortGrow/Main.py
ht-932/MeltSortGrow
8cbd7af82dc79c98a7d318efb8a35472ff35a088
[ "MIT" ]
null
null
null
import GUI as g def main(): g.main() main()
6.875
15
0.509091
a0f5a7cd81eed08df5f490f11b18e5adb780a622
1,245
py
Python
app.py
nicohein/dash-okta-auth
216761d8ea9241603574ee3d02fd90b56999fc8d
[ "MIT" ]
null
null
null
app.py
nicohein/dash-okta-auth
216761d8ea9241603574ee3d02fd90b56999fc8d
[ "MIT" ]
null
null
null
app.py
nicohein/dash-okta-auth
216761d8ea9241603574ee3d02fd90b56999fc8d
[ "MIT" ]
null
null
null
from flask import Flask, session from config import FLASK_SECRET_KEY from dash_okta_auth.okta_oauth import OktaOAuth import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output # configure app server = Flask(__name__) server.secret_key = FLASK_SECRET...
22.636364
84
0.591165
ad0e79045135732d9146c94cacb4baec2b99fdc4
733
py
Python
.history/award/models_20201129155153.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
.history/award/models_20201129155153.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
.history/award/models_20201129155153.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
from django.db import models import datetime as dt from django.core.validators import FileExtensionValidator from django.contrib.auth.models import User from tinymce.models import HTMLField from django.db.models.signals import post_save from django.dispatch import receiver from cloudinary.models import CloudinaryField...
43.117647
133
0.784447
8d6e2f079119af5721b55c0cfff3ec8e405fdbf5
7,010
py
Python
model/SiameseStyle.py
interactiveaudiolab/voogle
9654d8602b97bbe5d161092edbe9e4abd9833eeb
[ "MIT" ]
28
2019-07-25T08:23:45.000Z
2022-03-27T06:14:32.000Z
model/SiameseStyle.py
interactiveaudiolab/voogle
9654d8602b97bbe5d161092edbe9e4abd9833eeb
[ "MIT" ]
null
null
null
model/SiameseStyle.py
interactiveaudiolab/voogle
9654d8602b97bbe5d161092edbe9e4abd9833eeb
[ "MIT" ]
1
2021-09-21T08:26:28.000Z
2021-09-21T08:26:28.000Z
import librosa import numpy as np import os import tensorflow as tf from keras.models import load_model from model.QueryByVoiceModel import QueryByVoiceModel class SiameseStyle(QueryByVoiceModel): ''' A siamese-style neural network for query-by-voice applications. citation: Y. Zhang, B. Pardo, and Z. Dua...
37.486631
79
0.607703
b1348d5c0cdf6aa9ac28a1f12a677192e2ff2fa5
2,434
py
Python
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeInstanceMaintenanceAttributesRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeInstanceMaintenanceAttributesRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeInstanceMaintenanceAttributesRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.771429
90
0.767872
9ac8c04e18ec7cef51c292c62d1c33ca48ce4201
1,664
py
Python
test/bsort_f64_test.py
nathants/c-utils
5c8408870182cc48da487547397d266888ffded2
[ "MIT" ]
29
2019-10-10T21:15:31.000Z
2021-11-09T11:03:10.000Z
test/bsort_f64_test.py
nathants/c-utils
5c8408870182cc48da487547397d266888ffded2
[ "MIT" ]
1
2020-05-14T22:26:11.000Z
2020-05-14T22:26:11.000Z
test/bsort_f64_test.py
nathants/c-utils
5c8408870182cc48da487547397d266888ffded2
[ "MIT" ]
2
2020-03-01T04:13:26.000Z
2020-05-14T22:20:38.000Z
import pytest import os import string import shell from hypothesis.database import ExampleDatabase from hypothesis import given, settings from hypothesis.strategies import text, lists, composite, integers, floats from test_util import run, rm_whitespace, clone_source def setup_module(m): m.tempdir = clone_source()...
37.818182
173
0.683293
2d237e4cdb86b510107f323b30377960072b257d
2,397
py
Python
kindred/Relation.py
vj1494/kindred
06d73448c35e65e727cbcaf7b754efa2f725bd5a
[ "MIT" ]
141
2017-08-03T15:51:42.000Z
2022-01-20T05:16:20.000Z
kindred/Relation.py
vj1494/kindred
06d73448c35e65e727cbcaf7b754efa2f725bd5a
[ "MIT" ]
24
2017-08-04T12:07:54.000Z
2021-06-22T12:40:53.000Z
kindred/Relation.py
vj1494/kindred
06d73448c35e65e727cbcaf7b754efa2f725bd5a
[ "MIT" ]
34
2017-08-22T21:44:36.000Z
2022-03-27T11:24:19.000Z
import kindred import six class Relation: """ Describes relationship between entities (including relation type and argument names if applicable). :ivar relationType: Type of relation :ivar entities: List of entities in relation :ivar argNames: Names of relation argument associated with each entity :ivar proba...
31.12987
108
0.751356
3ff3cf88b7c3fa5713ffba3cb8ab6ba2ad529338
6,352
py
Python
covid/models.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
3
2020-04-26T06:28:50.000Z
2021-04-05T08:02:26.000Z
covid/models.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
10
2020-06-05T17:36:10.000Z
2022-03-11T23:16:42.000Z
covid/models.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
5
2021-04-08T08:43:49.000Z
2021-11-27T06:36:46.000Z
# -*- encoding: utf-8 -*- import datetime import json import sys from datetime import timedelta from django.conf import settings from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from accounts.models import Authority, User from reports.models import Repor...
42.346667
103
0.689232
1ac7dcbdf2f1f1701da496ce640ee106b3773c2d
474
py
Python
plugins/snowflake/dbt/adapters/snowflake/__init__.py
ClaySheffler/dbt
588851ac1cd2ef9856706f14cee573dedbc46d8c
[ "Apache-2.0" ]
1
2020-08-11T08:44:33.000Z
2020-08-11T08:44:33.000Z
plugins/snowflake/dbt/adapters/snowflake/__init__.py
ClaySheffler/dbt
588851ac1cd2ef9856706f14cee573dedbc46d8c
[ "Apache-2.0" ]
null
null
null
plugins/snowflake/dbt/adapters/snowflake/__init__.py
ClaySheffler/dbt
588851ac1cd2ef9856706f14cee573dedbc46d8c
[ "Apache-2.0" ]
1
2019-04-16T10:51:10.000Z
2019-04-16T10:51:10.000Z
from dbt.adapters.snowflake.connections import SnowflakeConnectionManager from dbt.adapters.snowflake.connections import SnowflakeCredentials from dbt.adapters.snowflake.relation import SnowflakeRelation from dbt.adapters.snowflake.impl import SnowflakeAdapter from dbt.adapters.base import AdapterPlugin from dbt.inclu...
36.461538
73
0.85654
61720cb09baa7498fdff14059ea78ee9dc360557
2,159
py
Python
tests/test_parsec.py
tudinfse/intel_mpx_explained
9a3d7b060742d8fe89c1b56898f2b2e3617b670b
[ "MIT" ]
15
2018-07-31T07:24:36.000Z
2020-05-31T03:18:25.000Z
tests/test_parsec.py
OleksiiOleksenko/intel_mpx_explained
dd6da57e0fcf22df358d1a742079b414620a7c88
[ "MIT" ]
1
2020-02-01T00:29:32.000Z
2020-02-04T14:25:57.000Z
tests/test_parsec.py
OleksiiOleksenko/intel_mpx_explained
dd6da57e0fcf22df358d1a742079b414620a7c88
[ "MIT" ]
3
2017-02-08T04:02:51.000Z
2018-03-30T07:58:45.000Z
# ATTENTION: the tests are supposed to be run inside a container! # all dependencies have to be installed before running the tests by `./entrypoint install -n benchmark_name` from .abstract_test import BuildAndRun, INPUT_PATH from .abstract_acceptance_test import Acceptance import sys import logging import unittest c...
61.685714
267
0.692913
759314409b221fbe606468ba933ed1c570428af6
1,612
py
Python
api/library.py
chance-nelson/SnowStorm
65352080c8590aa0ec5fa17ce625bd95c16264a7
[ "MIT" ]
6
2019-02-21T08:25:28.000Z
2020-07-22T10:59:24.000Z
api/library.py
chance-nelson/SnowStorm
65352080c8590aa0ec5fa17ce625bd95c16264a7
[ "MIT" ]
12
2019-02-21T20:46:07.000Z
2019-10-27T14:28:47.000Z
api/library.py
chance-nelson/SnowStorm
65352080c8590aa0ec5fa17ce625bd95c16264a7
[ "MIT" ]
14
2019-10-02T01:42:21.000Z
2019-10-27T14:28:59.000Z
import base64 from io import BytesIO from flask import request, make_response, Blueprint, jsonify from mongoengine.errors import DoesNotExist from mutagen.mp3 import MP3 from models.song import Song LIBRARY = Blueprint('library', __name__, url_prefix='/library') def _resolve_songs(*songs): return [ { ...
23.705882
68
0.622829
49110335b8c7edfeab298f3164c5565b2f9eb44a
347
py
Python
Class1/Class1X7.py
GnetworkGnome/Class
b57212622b6fae278d048d09f847d7001238987e
[ "Apache-2.0" ]
null
null
null
Class1/Class1X7.py
GnetworkGnome/Class
b57212622b6fae278d048d09f847d7001238987e
[ "Apache-2.0" ]
null
null
null
Class1/Class1X7.py
GnetworkGnome/Class
b57212622b6fae278d048d09f847d7001238987e
[ "Apache-2.0" ]
null
null
null
# Import Modules import yaml, json # Read YAML File with open("gnome_list.yml") as f: gnome_yaml = yaml.load(f) # Read JSON File with open("gnome_list.json") as f: gnome_json = json.load(f) # Print Out Variations print("The following is the YAML List:") print(gnome_yaml) print("\nThe follwing is the JSON...
16.52381
41
0.708934
a78b60d08f65afe3e5b9454a9e036ac40eb5d40f
4,301
py
Python
botlib/tgclient.py
relikd/botlib
d0c5072d27db1aa3fad432457c90c9e3f23f22cc
[ "MIT" ]
null
null
null
botlib/tgclient.py
relikd/botlib
d0c5072d27db1aa3fad432457c90c9e3f23f22cc
[ "MIT" ]
null
null
null
botlib/tgclient.py
relikd/botlib
d0c5072d27db1aa3fad432457c90c9e3f23f22cc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import telebot # pip3 install pytelegrambotapi from threading import Thread from time import sleep from typing import List, Optional, Any, Union, Iterable, Callable from telebot.types import Message, Chat # typing from .helper import Log class Kill(Exception): ''' Used to intentionally ki...
36.449153
79
0.574053
c35295191bf8f93bbe3873394f2e6bd7e5feca8e
283
py
Python
src/rastervision/commands/eval.py
nholeman/raster-vision
f3e1e26c555feed6fa018183c3fa04d7858d91bd
[ "Apache-2.0" ]
null
null
null
src/rastervision/commands/eval.py
nholeman/raster-vision
f3e1e26c555feed6fa018183c3fa04d7858d91bd
[ "Apache-2.0" ]
null
null
null
src/rastervision/commands/eval.py
nholeman/raster-vision
f3e1e26c555feed6fa018183c3fa04d7858d91bd
[ "Apache-2.0" ]
null
null
null
from rastervision.core.command import Command class Eval(Command): def __init__(self, scenes, ml_task, options): self.scenes = scenes self.ml_task = ml_task self.options = options def run(self): self.ml_task.eval(self.scenes, self.options)
23.583333
52
0.667845
7aa4a1bef0cf3bfdab8a6185967a3086c70f2a8f
2,563
py
Python
src/sima/post/xyitem.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/post/xyitem.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/post/xyitem.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# This an autogenerated file # # Generated with XYItem from typing import Dict,Sequence,List from dmt.entity import Entity from dmt.blueprint import Blueprint from .blueprints.xyitem import XYItemBlueprint from typing import Dict from sima.sima.moao import MOAO from sima.sima.scriptablevalue import ScriptableValue cl...
23.513761
81
0.567694
02cf42ad46f13042670e2ea5e302a5215a925df3
1,461
py
Python
tests/test_functions/test_tanimoto_similarity.py
CMargreitter/ChemCharts
ec47b8f572f6b77518051aafc578557a5a10c2d0
[ "Apache-2.0" ]
16
2022-01-29T05:32:13.000Z
2022-03-02T15:19:17.000Z
tests/test_functions/test_tanimoto_similarity.py
CMargreitter/ChemCharts
ec47b8f572f6b77518051aafc578557a5a10c2d0
[ "Apache-2.0" ]
7
2022-02-01T22:34:57.000Z
2022-03-11T23:02:27.000Z
tests/test_functions/test_tanimoto_similarity.py
CMargreitter/ChemCharts
ec47b8f572f6b77518051aafc578557a5a10c2d0
[ "Apache-2.0" ]
1
2022-01-19T12:41:38.000Z
2022-01-19T12:41:38.000Z
import unittest from rdkit import Chem from chemcharts.core.container.chemdata import ChemData from chemcharts.core.container.fingerprint import FingerprintContainer from chemcharts.core.container.smiles import Smiles from chemcharts.core.functions.tanimoto_similarity import TanimotoSimilarity class TestTanimotoSimi...
45.65625
98
0.644764
4e8641fa9a69985d033161a99747075655998ba4
22,001
py
Python
varifocal/calibrate.py
qenops/dDisplay
3a7846378733d95c17b6274cc3ebe775bbd8f758
[ "Apache-2.0" ]
null
null
null
varifocal/calibrate.py
qenops/dDisplay
3a7846378733d95c17b6274cc3ebe775bbd8f758
[ "Apache-2.0" ]
null
null
null
varifocal/calibrate.py
qenops/dDisplay
3a7846378733d95c17b6274cc3ebe775bbd8f758
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python __author__ = ('David Dunn') __date__ = '2016-09-05' __version__ = '0.1' import cv2, sys, time, os, fnmatch, ctypes import numpy as np from scipy.misc import imsave from scipy.interpolate import interp1d from scipy.signal import medfilt #from main import runDisplay #import expglobals, expgui, explog...
40.667283
183
0.64888
ea37ac0e52f132168518ec4a9b6bdf0f5b34531a
921
py
Python
pack/nn/attentionreadout.py
yippp/SY-GNN
65a1e2566dce549724cef080dfac7efc00fbe91b
[ "MIT" ]
6
2020-05-04T03:37:24.000Z
2021-04-21T15:15:54.000Z
pack/nn/attentionreadout.py
yippp/SY-GNN
65a1e2566dce549724cef080dfac7efc00fbe91b
[ "MIT" ]
null
null
null
pack/nn/attentionreadout.py
yippp/SY-GNN
65a1e2566dce549724cef080dfac7efc00fbe91b
[ "MIT" ]
null
null
null
import torch from torch import nn as nn import torch.nn.functional as F __all__ = [ 'AttentionReadout' ] class AttentionReadout(nn.Module): def __init__(self, f_in, f_attn, f_out): super(AttentionReadout, self).__init__() self.in_features = f_in self.out_features = f_out sel...
32.892857
93
0.618893
682773002935b27fc4b6c471581cae95d1f5ecab
1,885
py
Python
utils.py
Mohamed501258/flask-fileexplorer
e3131a759b7a3803eaf0a848852385ad048fc24e
[ "MIT" ]
null
null
null
utils.py
Mohamed501258/flask-fileexplorer
e3131a759b7a3803eaf0a848852385ad048fc24e
[ "MIT" ]
null
null
null
utils.py
Mohamed501258/flask-fileexplorer
e3131a759b7a3803eaf0a848852385ad048fc24e
[ "MIT" ]
null
null
null
from setup import app from flask import request, Response import os import re video_types = ['mp4', "webm", "opgg"] audio_types = ['mp3', "wav", "ogg", "mpeg", "aac", "3gpp", "3gpp2", "aiff", "x-aiff", "amr", "mpga"] @app.after_request def after_request(response): response.headers.add('Accept-Ranges', 'bytes')...
31.949153
103
0.635544
3f837c753c3cf6651e9b866c343ca8b8367fa0a7
1,300
py
Python
main.py
arathee2/what-movie
122c7a3527209d1ff9c2809fceceabb0bf542d97
[ "MIT" ]
null
null
null
main.py
arathee2/what-movie
122c7a3527209d1ff9c2809fceceabb0bf542d97
[ "MIT" ]
null
null
null
main.py
arathee2/what-movie
122c7a3527209d1ff9c2809fceceabb0bf542d97
[ "MIT" ]
null
null
null
import argparse from what_movie.model.imdb import IMDbDF from what_movie.utils.constants import OUTPUT_COLS, LANGUAGE_FILTER, \ GENRE_FILTER, COLS_TO_NAMES def main(n, year_from, year_to): data = IMDbDF() data.filter_data(LANGUAGE_FILTER, GENRE_FILTER, year_from=...
37.142857
70
0.582308
2788455967ebe512a9cddb3a35c51907a2af817c
8,792
py
Python
bayesian_cut/cuts/spectral_models.py
DTUComputeCognitiveSystems/bayesian_cut
89dc3e5a2f4b9d4ab7bd7aadbc7d0f7314ffc680
[ "BSD-3-Clause" ]
7
2019-03-01T13:58:59.000Z
2021-12-16T00:41:26.000Z
bayesian_cut/cuts/spectral_models.py
DTUComputeCognitiveSystems/bayesian_cut
89dc3e5a2f4b9d4ab7bd7aadbc7d0f7314ffc680
[ "BSD-3-Clause" ]
3
2019-02-28T17:38:18.000Z
2019-03-01T13:55:30.000Z
bayesian_cut/cuts/spectral_models.py
DTUComputeCognitiveSystems/bayesian_cut
89dc3e5a2f4b9d4ab7bd7aadbc7d0f7314ffc680
[ "BSD-3-Clause" ]
1
2019-02-28T17:55:24.000Z
2019-02-28T17:55:24.000Z
#!/usr/bin/env python3 # # -*- coding: utf-8 -*- # # Author: Laurent Vermue <lauve@dtu.dk> # Maciej Korzepa <mjko@dtu.dk> # Petr Taborsky <ptab@dtu.dk> # # License: 3-clause BSD import scipy as sc from sklearn.cluster import KMeans from numpy.linalg import eigh import numpy as np class base_clas...
36.941176
126
0.586215
0986a5b3af838b1abe308e3cd8ee5e386c11a842
416
py
Python
dem fractal boiis/bifur.py
WalrusArtist/FractalBoiis
35b22ac45ad6baa4ad00805ac1bcb314d2ce4b99
[ "MIT" ]
null
null
null
dem fractal boiis/bifur.py
WalrusArtist/FractalBoiis
35b22ac45ad6baa4ad00805ac1bcb314d2ce4b99
[ "MIT" ]
null
null
null
dem fractal boiis/bifur.py
WalrusArtist/FractalBoiis
35b22ac45ad6baa4ad00805ac1bcb314d2ce4b99
[ "MIT" ]
null
null
null
import math from PIL import Image imgx = 10000 imgy = 5000 image = Image.new("RGB", (imgx, imgy)) xa = 3.2388663968 xb = 4.0 maxit = 1000 for i in range(imgx): r = xa + (xb - xa) * float(i) / (imgx - 1) x = 0.00003160718 for j in range(maxit): x = r * x * (1 - x) if j > maxit / 2: ...
19.809524
63
0.550481
560c13946ed1357daf9e8fda4678f474ed9ad394
13,154
py
Python
tools_hu/rule/rule_ddj_total.py
hukefei/chongqing_contest
c38ae3e6f25230282c65cdd568de93f28e88c6d6
[ "Apache-2.0" ]
1
2021-04-12T13:29:54.000Z
2021-04-12T13:29:54.000Z
tools_hu/rule/rule_ddj_total.py
hukefei/chongqing_contest
c38ae3e6f25230282c65cdd568de93f28e88c6d6
[ "Apache-2.0" ]
1
2021-04-12T13:31:27.000Z
2021-04-12T13:33:10.000Z
tools_hu/rule/rule_ddj_total.py
hukefei/chongqing_contest
c38ae3e6f25230282c65cdd568de93f28e88c6d6
[ "Apache-2.0" ]
1
2021-04-21T10:14:15.000Z
2021-04-21T10:14:15.000Z
import numpy as np import os import itertools import pandas as pd import json import pickle import cv2 def bboxes_iou(boxes1, boxes2): """ boxes: [xmin, ymin, xmax, ymax, score, class] format coordinates. """ boxes1 = np.array(boxes1) boxes2 = np.array(boxes2) boxes1_area = (boxes1[..., 2] - ...
36.337017
140
0.564695
aab6054b3354ae3f704edbadfa8f223d8ec0ee26
1,257
py
Python
src/space/space.py
lepisma/zsn
6f2cc759b9261a1f922c86153acad262cb8095fc
[ "MIT" ]
null
null
null
src/space/space.py
lepisma/zsn
6f2cc759b9261a1f922c86153acad262cb8095fc
[ "MIT" ]
null
null
null
src/space/space.py
lepisma/zsn
6f2cc759b9261a1f922c86153acad262cb8095fc
[ "MIT" ]
null
null
null
""" Word vector embedding space """ import numpy as np class Space(object): """ A wrapper for trained word vector model """ def __init__(self, data_file): """ Read output from C version of glove """ self.words = [] self.data = [] ...
24.173077
78
0.521082
592eb2ab1dcb3d7f94aabb81df7679a16fed8e31
669
py
Python
ruuvi_gateway.py
RanzQ/ruuvi-gateway
4f3523efdcd3a6536d2c9a19846bd8e8f4b0640c
[ "MIT" ]
null
null
null
ruuvi_gateway.py
RanzQ/ruuvi-gateway
4f3523efdcd3a6536d2c9a19846bd8e8f4b0640c
[ "MIT" ]
null
null
null
ruuvi_gateway.py
RanzQ/ruuvi-gateway
4f3523efdcd3a6536d2c9a19846bd8e8f4b0640c
[ "MIT" ]
null
null
null
from datetime import datetime from ruuvitag_sensor.ruuvi import RuuviTagSensor from google.cloud import firestore SCAN_TIMEOUT = 4 db = firestore.Client() measurements_ref = db.collection(u'measurements') timestamp = datetime.now() def measurement_to_firestore(mac, payload): result = payload.copy() result[...
26.76
97
0.738416
b0787414236d83ea250ed2ba4ac5a340a6ff50d4
13,568
py
Python
warrior/Framework/ClassUtils/netconf_utils_class.py
YutakaMizugaki/warriorframework
685761cf044182ec88ce86a942d4be1e150a1256
[ "Apache-2.0" ]
24
2017-06-06T15:48:08.000Z
2021-03-17T07:52:52.000Z
warrior/Framework/ClassUtils/netconf_utils_class.py
YutakaMizugaki/warriorframework
685761cf044182ec88ce86a942d4be1e150a1256
[ "Apache-2.0" ]
272
2017-05-19T20:39:12.000Z
2021-12-13T19:34:51.000Z
warrior/Framework/ClassUtils/netconf_utils_class.py
pavithra-gowda/warrior
19b153310552b986b86b5470fcfea9547a74c3a9
[ "Apache-2.0" ]
37
2017-05-17T21:24:37.000Z
2021-07-24T18:09:22.000Z
''' Copyright 2017, Fujitsu Network Communications, 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 w...
37.274725
96
0.579673
1b13dee9ce346e60c9f46dd6df4eb756189fa818
478
py
Python
data/scripts/templates/object/tangible/wearables/shirt/shared_shirt_s34.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/wearables/shirt/shared_shirt_s34.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/wearables/shirt/shared_shirt_s34.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/wearables/shirt/shared_shirt_s34.iff" result.attribute_template_id =...
25.157895
73
0.740586
e53baa3723123d61b304d5262b9c2ce8f624ea63
4,162
py
Python
src/python/pants/backend/codegen/tasks/ragel_gen.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/tasks/ragel_gen.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/tasks/ragel_gen.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import re ...
38.897196
96
0.699664
46277b38cf9820eaaf3114e04320d6e7822a17e8
3,903
py
Python
examples/test_adapter_examples.py
HimashiRathnayake/emea
5e3ddd8393082b7bc7551f6ad7b136ab08ec08f9
[ "Apache-2.0" ]
12
2021-09-13T18:31:09.000Z
2022-03-31T12:10:28.000Z
examples/test_adapter_examples.py
HimashiRathnayake/emea
5e3ddd8393082b7bc7551f6ad7b136ab08ec08f9
[ "Apache-2.0" ]
5
2021-12-01T04:34:07.000Z
2022-01-28T08:28:18.000Z
examples/test_adapter_examples.py
HimashiRathnayake/emea
5e3ddd8393082b7bc7551f6ad7b136ab08ec08f9
[ "Apache-2.0" ]
3
2022-01-18T10:56:05.000Z
2022-01-28T01:46:43.000Z
# coding=utf-8 import logging import os import sys from unittest.mock import patch from transformers.testing_utils import TestCasePlus, require_torch_non_multigpu_but_fix_me SRC_DIRS = [ os.path.join(os.path.dirname(__file__), dirname) for dirname in [ "text-generation", "text-classification...
31.224
90
0.600051
08025cf24f61c11ed7f3ccc628e83cc9bfff6a40
1,137
py
Python
Rubik's Cube/cube_models.py
LucasEmmes/pythonScripts
0316b355795cd7f99012321a94492d57af60dd8d
[ "MIT" ]
null
null
null
Rubik's Cube/cube_models.py
LucasEmmes/pythonScripts
0316b355795cd7f99012321a94492d57af60dd8d
[ "MIT" ]
null
null
null
Rubik's Cube/cube_models.py
LucasEmmes/pythonScripts
0316b355795cd7f99012321a94492d57af60dd8d
[ "MIT" ]
null
null
null
from rubik import Face, Rubiks_Cube stencil = Rubiks_Cube(faces=[ Face(["x","x","x","x","x","x","x","x","x"]), Face(["x","x","x","x","x","x","x","x","x"]), Face(["x","x","x","x","x","x","x","x","x"]), Face(["x","x","x","x","x","x","x","x","x"]), Face(["x","x","x","x","x","x","x","x","x"]), Face(...
34.454545
56
0.329815
ec24cd911f19f080f5a1671a53bedfe28f24d50e
22,962
py
Python
tests/test_batch/test_batch.py
alexsult/moto
ed861ecae1039a048a6350a4ff832ef094cdf2c2
[ "Apache-2.0" ]
2
2019-07-10T14:44:12.000Z
2020-06-08T17:26:29.000Z
tests/test_batch/test_batch.py
alexsult/moto
ed861ecae1039a048a6350a4ff832ef094cdf2c2
[ "Apache-2.0" ]
5
2018-04-25T21:04:20.000Z
2018-11-02T19:59:27.000Z
tests/test_batch/test_batch.py
alexsult/moto
ed861ecae1039a048a6350a4ff832ef094cdf2c2
[ "Apache-2.0" ]
2
2020-07-24T18:14:07.000Z
2020-12-10T10:55:26.000Z
from __future__ import unicode_literals import time import datetime import boto3 from botocore.exceptions import ClientError import sure # noqa from moto import mock_batch, mock_iam, mock_ec2, mock_ecs, mock_logs import functools import nose def expected_failure(test): @functools.wraps(test) def inner(*args...
28.348148
116
0.635398
99a5dda6284f8282bad4158408b4b765e0081e37
1,082
py
Python
Photo_Uploder/accounts/urls.py
GeneraalMaritz/Photo-Uploader
626fc30db052edbac3464e6029a37247fc8a3fbd
[ "MIT" ]
null
null
null
Photo_Uploder/accounts/urls.py
GeneraalMaritz/Photo-Uploader
626fc30db052edbac3464e6029a37247fc8a3fbd
[ "MIT" ]
null
null
null
Photo_Uploder/accounts/urls.py
GeneraalMaritz/Photo-Uploader
626fc30db052edbac3464e6029a37247fc8a3fbd
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('register/', views.registerPage, name="register"), path('login/', views.loginPage, name="login"), path('logout/', view...
43.28
78
0.716266
d7866f4f0054eb8c2d4fbed79db81d64c40a227b
37,441
py
Python
ckan/lib/create_test_data.py
irev/ckan
00947b6dd9611c88ca74500258cbf4e3c5a82c2f
[ "BSD-3-Clause" ]
null
null
null
ckan/lib/create_test_data.py
irev/ckan
00947b6dd9611c88ca74500258cbf4e3c5a82c2f
[ "BSD-3-Clause" ]
2
2020-05-20T10:10:18.000Z
2020-09-21T12:22:42.000Z
ckan/lib/create_test_data.py
irev/ckan
00947b6dd9611c88ca74500258cbf4e3c5a82c2f
[ "BSD-3-Clause" ]
2
2020-05-13T14:01:14.000Z
2021-04-10T20:22:54.000Z
# encoding: utf-8 import logging import datetime import ckan.model as model log = logging.getLogger(__name__) class CreateTestData(object): # keep track of the objects created by this class so that # tests can easy call delete() method to delete them all again. pkg_names = [] tag_names = [] gr...
40.785403
192
0.549772
1154696c8df7ab0863a592e82cb6edd194e8fa87
3,267
py
Python
kw_tests/common_class.py
alex-kalanis/kw_input
ac7beddadc5e766d7b4921352a472abcea6e16cf
[ "BSD-3-Clause" ]
null
null
null
kw_tests/common_class.py
alex-kalanis/kw_input
ac7beddadc5e766d7b4921352a472abcea6e16cf
[ "BSD-3-Clause" ]
null
null
null
kw_tests/common_class.py
alex-kalanis/kw_input
ac7beddadc5e766d7b4921352a472abcea6e16cf
[ "BSD-3-Clause" ]
null
null
null
import unittest class CommonTestClass(unittest.TestCase): """ Used format is list of tuples where first item is string key and second is mixed value Total madness by typing, but something tells me it's correct pythonic way """ def entry_dataset(self): return [ ('foo', 'val1'),...
29.7
90
0.328436
6b7cec4a7b8e0f4180b80e1abbf3877045839a83
978
py
Python
kubernetes/test/test_v1_cluster_role_binding.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
2
2020-07-02T05:47:41.000Z
2020-07-02T05:50:34.000Z
kubernetes/test/test_v1_cluster_role_binding.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
1
2021-03-25T23:44:49.000Z
2021-03-25T23:44:49.000Z
k8sdeployment/k8sstat/python/kubernetes/test/test_v1_cluster_role_binding.py
JeffYFHuang/gpuaccounting
afa934350ebbd0634beb60b9df4a147426ea0006
[ "MIT" ]
1
2021-10-13T17:45:37.000Z
2021-10-13T17:45:37.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
24.45
124
0.729039
7bbfd95e0d48bf38ab2aeb03f5ec8c2ae159fb73
273
py
Python
anonymization/anonymizers/__init__.py
alterway/anonymization
57e6c20f8c97e902f3513b5adfdbc211791aaef0
[ "MIT" ]
15
2020-06-18T12:29:55.000Z
2021-12-14T16:31:26.000Z
anonymization/anonymizers/__init__.py
alterway/anonymization
57e6c20f8c97e902f3513b5adfdbc211791aaef0
[ "MIT" ]
3
2021-03-20T17:47:03.000Z
2021-09-01T14:36:03.000Z
anonymization/anonymizers/__init__.py
alterway/anonymization
57e6c20f8c97e902f3513b5adfdbc211791aaef0
[ "MIT" ]
2
2021-09-24T14:28:10.000Z
2022-03-07T19:54:48.000Z
from .fileAnonymizers import * from .internetAnonymizers import * from .spacyAnonymizers import * from .phoneNumberAnonymizers import * from .dictionaryAnonymizers import * from .bankingAnonymizers import * from .dateAnonymizers import * from .signatureAnonymizers import *
34.125
37
0.827839
790d2055df1fbb87c99f2e8e1b90cb03dfa54398
1,279
py
Python
tools/mo/openvino/tools/mo/front/tf/lrn_ext.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
1
2019-09-22T01:05:07.000Z
2019-09-22T01:05:07.000Z
tools/mo/openvino/tools/mo/front/tf/lrn_ext.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
58
2020-11-06T12:13:45.000Z
2022-03-28T13:20:11.000Z
tools/mo/openvino/tools/mo/front/tf/lrn_ext.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
2
2021-07-14T07:40:50.000Z
2021-07-27T01:40:03.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.mo.front.extractor import FrontExtractorOp from openvino.tools.mo.ops.lrn import AttributedLRN class LRNExtractor(FrontExtractorOp): """ TF and IE(CAFFE) parameters in LRN differs in several places : ...
39.96875
124
0.630962
fb4db9d3aabf69433d15bdf35c9ffe5ca17af852
3,311
py
Python
gitlab_stats/utils.py
anderslindho/gitlab_stats
464d5e22aa3bc67eaaabd9b20b30c33f19236622
[ "MIT" ]
8
2018-10-19T10:17:20.000Z
2022-03-21T06:07:02.000Z
gitlab_stats/utils.py
anderslindho/gitlab_stats
464d5e22aa3bc67eaaabd9b20b30c33f19236622
[ "MIT" ]
10
2019-01-28T19:53:26.000Z
2021-11-30T15:32:35.000Z
gitlab_stats/utils.py
Sylhare/gitlab_stats
157de3b703031ef0de39e187314133624f1ac1bb
[ "MIT" ]
6
2019-01-28T19:07:21.000Z
2021-11-29T21:05:13.000Z
import csv import datetime import os import gitlab_stats GITLAB_TOKEN_ENV = 'GITLAB_TOKEN' def check_token(token): if token is None: try: token = os.environ[GITLAB_TOKEN_ENV] except KeyError: print("\nEnvironment variable containing your gitlab token could not be found" ...
29.04386
94
0.643008
308823f6b12bbd2a3773043b94646afdf604ec53
1,317
py
Python
baidu_code/soap_mockserver/lib/settings.py
deevarvar/myLab
7a5019f5f7fc11e173d350e6e2a7d2c80504782d
[ "MIT" ]
null
null
null
baidu_code/soap_mockserver/lib/settings.py
deevarvar/myLab
7a5019f5f7fc11e173d350e6e2a7d2c80504782d
[ "MIT" ]
null
null
null
baidu_code/soap_mockserver/lib/settings.py
deevarvar/myLab
7a5019f5f7fc11e173d350e6e2a7d2c80504782d
[ "MIT" ]
3
2016-10-08T15:01:49.000Z
2018-05-24T03:14:24.000Z
LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'verbose': { 'format': '%(created)s - %(name)s - %(levelname)s - %(module)s- %(process)d -%(thread)d - %(filename)s - %(funcName)s - %(lineno)d - %(message)s' }, 'simple': { 'format':...
26.877551
157
0.410023
e50ec456f5aede70968f3188e873b9d232f7efa9
844
py
Python
deprecated/dataloaders/deprecated_examples/multimedia/avmnist_low_rank_tensor.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
148
2021-03-06T06:54:13.000Z
2022-03-29T19:27:21.000Z
deprecated/dataloaders/deprecated_examples/multimedia/avmnist_low_rank_tensor.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
10
2021-07-19T22:57:49.000Z
2022-02-04T03:12:29.000Z
deprecated/dataloaders/deprecated_examples/multimedia/avmnist_low_rank_tensor.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
18
2021-07-22T07:17:27.000Z
2022-03-27T16:11:40.000Z
from unimodals.common_models import LeNet, MLP, Constant import torch from torch import nn from datasets.avmnist.get_data import get_dataloader from fusions.common_fusions import LowRankTensorFusion from training_structures.Simple_Late_Fusion import train, test import sys import os sys.path.append(os.getcwd()) filename...
33.76
79
0.766588
0bb916b6c6a28509906763d761a638c27b0fd154
93,949
py
Python
dnacentersdk/api/v2_2_1/event_management.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
32
2019-09-05T05:16:56.000Z
2022-03-22T09:50:38.000Z
dnacentersdk/api/v2_2_1/event_management.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
35
2019-09-07T18:58:54.000Z
2022-03-24T19:29:36.000Z
dnacentersdk/api/v2_2_1/event_management.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
18
2019-09-09T11:07:21.000Z
2022-03-25T08:49:59.000Z
# -*- coding: utf-8 -*- """Cisco DNA Center Event Management API wrapper. Copyright (c) 2019-2021 Cisco Systems. 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 wit...
41.314424
116
0.565073
fea40b45e0642db0f2715c651a05e9f16cbfe8c0
1,486
py
Python
code/apps/testsuite/testsuites/core.py
FHMS-ITS/CORSICA
2bbbf5c0d3b8ec0db756b79c11fa5727f6990683
[ "MIT" ]
null
null
null
code/apps/testsuite/testsuites/core.py
FHMS-ITS/CORSICA
2bbbf5c0d3b8ec0db756b79c11fa5727f6990683
[ "MIT" ]
null
null
null
code/apps/testsuite/testsuites/core.py
FHMS-ITS/CORSICA
2bbbf5c0d3b8ec0db756b79c11fa5727f6990683
[ "MIT" ]
null
null
null
import json from sqlalchemy.orm import sessionmaker from database.models.crawler import TestDevice from database.models.generator.memory import MemWebRoots import pymysql import warnings from utils.log import _info from utils.utils import jsv_save_javascript_value warnings.filterwarnings('ignore', categor...
36.243902
88
0.693136
d40390a529208ca3e70ff2c0ce57eec575b25d31
1,893
py
Python
msmart/client.py
phillcz/midea-msmart
d6e82e527b076a93e6c419817a415cc8d1314e82
[ "MIT" ]
2
2021-05-31T15:56:34.000Z
2021-06-01T16:04:09.000Z
msmart/client.py
phillcz/midea-msmart
d6e82e527b076a93e6c419817a415cc8d1314e82
[ "MIT" ]
null
null
null
msmart/client.py
phillcz/midea-msmart
d6e82e527b076a93e6c419817a415cc8d1314e82
[ "MIT" ]
null
null
null
# This library is part of an effort to get Midea air conditioning devices to work with Home Assistant # This library is based off the work by Yitsushi. The original work was a ruby based commandline utility. # The orignal Ruby version can be found here https://github.com/yitsushi/midea-air-condition # License MIT - ...
34.418182
106
0.689382
05034eb27325773e47de244069a7be32c66ff147
500
py
Python
lizard_ext/__init__.py
BjrnJhsn/lizard
5c3f02b67f72f70f4dbdbd2e97249e0ec20d40fa
[ "MIT" ]
1,255
2015-01-07T20:24:45.000Z
2022-03-31T02:39:50.000Z
lizard_ext/__init__.py
BjrnJhsn/lizard
5c3f02b67f72f70f4dbdbd2e97249e0ec20d40fa
[ "MIT" ]
293
2015-01-05T14:31:16.000Z
2022-03-24T18:12:16.000Z
lizard_ext/__init__.py
sider/lizard
61ad3c1f9989280dfd4157c337e70e08174f7c34
[ "MIT" ]
217
2015-01-07T20:24:49.000Z
2022-03-30T19:20:21.000Z
""" extensions of lizard """ from __future__ import print_function from .version import version from .htmloutput import html_output from .csvoutput import csv_output from .xmloutput import xml_output from .auto_open import auto_open, auto_read def print_xml(results, options, _, total_factory): print(xml_output(t...
26.315789
68
0.78
9464612c97a6eb858a89bd35875b63a0321dd073
4,259
py
Python
source/tests/configuration/setbuilder/test_weekday_setbuilder.py
dgomez407/aws-instance-scheduler
b61839c8b91ed5e4966f590d614d61bd7da35771
[ "MIT" ]
1
2021-05-20T22:49:05.000Z
2021-05-20T22:49:05.000Z
source/tests/configuration/setbuilder/test_weekday_setbuilder.py
dgomez407/aws-instance-scheduler
b61839c8b91ed5e4966f590d614d61bd7da35771
[ "MIT" ]
null
null
null
source/tests/configuration/setbuilder/test_weekday_setbuilder.py
dgomez407/aws-instance-scheduler
b61839c8b91ed5e4966f590d614d61bd7da35771
[ "MIT" ]
1
2019-03-23T15:19:29.000Z
2019-03-23T15:19:29.000Z
import calendar import unittest from configuration.setbuilders.weekday_setbuilder import WeekdaySetBuilder class TestMonthdaySetBuilder(unittest.TestCase): def test_name(self): for i, day_name in enumerate(calendar.day_abbr): self.assertEqual(WeekdaySetBuilder().build(day_name), {i}) ...
47.322222
109
0.540502
88f83b414bf61dd7eee5656d897dfce01ee20b34
8,288
py
Python
dtaidistance/util.py
yasirroni/dtaidistance
d67d7ccd5e67ecc99af389e788f979ee1b424162
[ "Apache-2.0" ]
711
2017-02-07T07:24:58.000Z
2022-03-31T07:46:47.000Z
dtaidistance/util.py
yasirroni/dtaidistance
d67d7ccd5e67ecc99af389e788f979ee1b424162
[ "Apache-2.0" ]
142
2018-04-09T10:36:11.000Z
2022-03-31T11:30:26.000Z
dtaidistance/util.py
yasirroni/dtaidistance
d67d7ccd5e67ecc99af389e788f979ee1b424162
[ "Apache-2.0" ]
155
2017-06-01T08:37:45.000Z
2022-03-23T08:50:13.000Z
# -*- coding: UTF-8 -*- """ dtaidistance.util ~~~~~~~~~~~~~~~~~ Utility functions for DTAIDistance. :author: Wannes Meert :copyright: Copyright 2017-2018 KU Leuven, DTAI Research Group. :license: Apache License, Version 2.0, see LICENSE for details. """ import os import sys import csv import logging from array impor...
34.247934
110
0.591578
3e778ae26944186922ff3f88bd9663efe1eccfc2
3,025
py
Python
tests/test_to_cupyd.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
3
2020-06-22T20:59:14.000Z
2021-04-09T21:24:45.000Z
tests/test_to_cupyd.py
Borda/MONAI
e0db5a564225a7cb62e7a23df97267019006302f
[ "Apache-2.0" ]
null
null
null
tests/test_to_cupyd.py
Borda/MONAI
e0db5a564225a7cb62e7a23df97267019006302f
[ "Apache-2.0" ]
1
2020-06-22T19:22:59.000Z
2020-06-22T19:22:59.000Z
# Copyright (c) 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 writing, so...
40.333333
83
0.678678
27e00f521117dce9e1db61fc2c25ee3530f61b88
12,947
py
Python
lib/doekbase/data_api/interactive/display.py
scanon/data_api2
f453a8e544cb4052feb56f4cf77ba79122aeedf8
[ "MIT" ]
null
null
null
lib/doekbase/data_api/interactive/display.py
scanon/data_api2
f453a8e544cb4052feb56f4cf77ba79122aeedf8
[ "MIT" ]
null
null
null
lib/doekbase/data_api/interactive/display.py
scanon/data_api2
f453a8e544cb4052feb56f4cf77ba79122aeedf8
[ "MIT" ]
null
null
null
""" Objects for displaying the results in the IPython notebook. """ __author__ = 'Dan Gunter <dkgunter@lbl.gov>' __date__ = '8/1/15' # Stdlib import logging # Third-party from IPython.display import display import matplotlib.pyplot as plt import pandas as pd # Qgrid table display try: import qgrid qgrid.nbins...
33.028061
81
0.582529
853c2a04ad17a6f3cf9ac093302a8fa7f10cfc17
23,673
py
Python
test/selenium_tests/framework.py
ashvark/galaxy
71d315cf3692b4a42fb684395a519d53f360ec92
[ "CC-BY-3.0" ]
1
2019-07-27T19:30:55.000Z
2019-07-27T19:30:55.000Z
test/selenium_tests/framework.py
ashvark/galaxy
71d315cf3692b4a42fb684395a519d53f360ec92
[ "CC-BY-3.0" ]
4
2021-02-08T20:28:34.000Z
2022-03-02T02:52:55.000Z
test/selenium_tests/framework.py
ashvark/galaxy
71d315cf3692b4a42fb684395a519d53f360ec92
[ "CC-BY-3.0" ]
1
2018-05-30T07:38:54.000Z
2018-05-30T07:38:54.000Z
"""Basis for Selenium test framework.""" from __future__ import absolute_import from __future__ import print_function import datetime import json import os import traceback import unittest from functools import partial, wraps import requests from gxformat2 import ( convert_and_import_workflow, ImporterGalaxyI...
39.193709
167
0.698348
aa173890ecc41148016348a9fd3e24588ab5b9ec
296
py
Python
Python/code case/code case 130.py
amazing-2020/pdf
8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d
[ "Apache-2.0" ]
3
2021-01-01T13:08:24.000Z
2021-02-03T09:27:56.000Z
Python/code case/code case 130.py
amazing-2020/pdf
8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d
[ "Apache-2.0" ]
null
null
null
Python/code case/code case 130.py
amazing-2020/pdf
8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d
[ "Apache-2.0" ]
null
null
null
def countX(lst, x): count = 0 for ele in lst: if (ele == x): count += 1 return count def countX2(lst, x): return lst.count(x) lst = [1, 21, 2, 12, 21, 21, 21, 21, 1, 1, 21, 545, 44, 45, 78, 9, 89, 89, 8] x = 89 print(countX(lst, x)) print(countX2(lst, x))
17.411765
77
0.513514
21184477d9c003062ef4f6c1a54f9b980eb4cdeb
14,157
py
Python
resolwe/storage/connectors/transfer.py
OtonicarJan/resolwe
5ff4a4b8f87606ad6bf9df9e5c51ba283bd885c9
[ "Apache-2.0" ]
27
2015-12-07T18:29:12.000Z
2022-03-16T08:01:47.000Z
resolwe/storage/connectors/transfer.py
OtonicarJan/resolwe
5ff4a4b8f87606ad6bf9df9e5c51ba283bd885c9
[ "Apache-2.0" ]
681
2015-12-01T11:52:24.000Z
2022-03-21T07:43:37.000Z
resolwe/storage/connectors/transfer.py
OtonicarJan/resolwe
5ff4a4b8f87606ad6bf9df9e5c51ba283bd885c9
[ "Apache-2.0" ]
28
2015-12-01T08:32:57.000Z
2021-12-14T00:04:16.000Z
"""Data transfer between connectors.""" import concurrent.futures import logging from contextlib import suppress from functools import partial from pathlib import Path from time import sleep from typing import TYPE_CHECKING, Iterable, List, Union import wrapt from requests.exceptions import ConnectionError as Requests...
39
88
0.614678
242c69eee02d2f1f2769571ea77c3953229c16bb
149
py
Python
scrapers/WIL-wiltshire/councillors.py
DemocracyClub/LGSF
21c2a049db08575e03db2fb63a8bccc8de0c636b
[ "MIT" ]
4
2018-10-17T13:30:08.000Z
2021-06-22T13:29:43.000Z
scrapers/WIL-wiltshire/councillors.py
DemocracyClub/LGSF
21c2a049db08575e03db2fb63a8bccc8de0c636b
[ "MIT" ]
46
2018-10-15T13:47:48.000Z
2022-03-23T10:26:18.000Z
scrapers/WIL-wiltshire/councillors.py
DemocracyClub/LGSF
21c2a049db08575e03db2fb63a8bccc8de0c636b
[ "MIT" ]
1
2018-10-15T13:36:03.000Z
2018-10-15T13:36:03.000Z
from lgsf.councillors.scrapers import ModGovCouncillorScraper class Scraper(ModGovCouncillorScraper): base_url = "http://cms.wiltshire.gov.uk"
24.833333
61
0.805369
f4f1f491f8d938cd6d1f3f733fbeb6cd5410d975
11,858
py
Python
scripts/transfer.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
2
2016-02-23T00:09:14.000Z
2019-02-11T07:48:44.000Z
scripts/transfer.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
scripts/transfer.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
6
2015-05-27T13:09:50.000Z
2019-02-11T07:48:46.000Z
#!/usr/bin/env python """ Downloads files to temp locations. This script is invoked by the Transfer Manager (galaxy.jobs.transfer_manager) and should not normally be invoked by hand. """ import os, sys, optparse, ConfigParser, socket, SocketServer, threading, logging, random, urllib2, tempfile, time galaxy_root = os....
42.35
138
0.612414
b24816e6797fdd991f5327ff68efce4cf0143ebd
4,049
py
Python
sudoku/graphics.py
kyrellosNasr/sudoku
e6f389b8d16cc662311cf1d5fec7c95e36133d2c
[ "MIT" ]
null
null
null
sudoku/graphics.py
kyrellosNasr/sudoku
e6f389b8d16cc662311cf1d5fec7c95e36133d2c
[ "MIT" ]
null
null
null
sudoku/graphics.py
kyrellosNasr/sudoku
e6f389b8d16cc662311cf1d5fec7c95e36133d2c
[ "MIT" ]
null
null
null
from tkinter import Tk , Frame , Label , LabelFrame , Entry , Radiobutton , BooleanVar , Button , END from initiate import Sudoku , bcolors class MainWin(Tk , Sudoku) : def __init__(self , title , *args , **kwargs) : Tk.__init__(self,*args,**kwargs); self.title(title); self.resizable(False , False); s...
32.134921
126
0.596938
fb800d941ef4bd73be5ddd2c288e4274ac7a13ad
2,646
py
Python
lib/scripts/experiment_instance.py
technoligest/kmeansII
d5326421786990f29fbd1ec18b3bccf4207fd2c0
[ "MIT" ]
1
2019-11-15T14:36:27.000Z
2019-11-15T14:36:27.000Z
lib/scripts/experiment_instance.py
technoligest/kmeansII
d5326421786990f29fbd1ec18b3bccf4207fd2c0
[ "MIT" ]
null
null
null
lib/scripts/experiment_instance.py
technoligest/kmeansII
d5326421786990f29fbd1ec18b3bccf4207fd2c0
[ "MIT" ]
null
null
null
#!/usr/bin/python """ clusters centres averages(distance/area)[] distance ExperimentInstance is the class to help us extract information from a series of experiment runs. """ from lib.scripts.experiment_cluster import * from lib.scripts.experiment_utils import distance import sys class ExperimentInstance: """ re...
36.246575
116
0.6935
572c80f10032da9d12fc77fc7d0b82e2503a992c
608
py
Python
[1] BEGINNER/1003 - Soma Simples.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
1
2022-03-15T03:03:26.000Z
2022-03-15T03:03:26.000Z
[1] BEGINNER/1003 - Soma Simples.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
null
null
null
[1] BEGINNER/1003 - Soma Simples.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
null
null
null
''' Leia dois valores inteiros, no caso para variáveis A e B. A seguir, calcule a soma entre elas e atribua à variável SOMA. A seguir escrever o valor desta variável. Entrada O arquivo de entrada contém 2 valores inteiros. Saída Imprima a variável SOMA com todas as letras maiúsculas, com um espaço em branco antes e d...
40.533333
292
0.751645
af42483ab1204c7cdfc7643bbde49711a37f444b
948
py
Python
setup.py
umangtank/oneNeuron_pypi
c975170f4ce5814e6cf6e44519da288a7edecef9
[ "MIT" ]
null
null
null
setup.py
umangtank/oneNeuron_pypi
c975170f4ce5814e6cf6e44519da288a7edecef9
[ "MIT" ]
null
null
null
setup.py
umangtank/oneNeuron_pypi
c975170f4ce5814e6cf6e44519da288a7edecef9
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() PROJECT_NAME = "oneNeuron" USER_NAME = "umangtank" setuptools.setup( name= f"{PROJECT_NAME}-{USER_NAME}", version="0.0.2", author=USER_NAME, author_email="umangtank08@gmail.com", description="...
27.882353
72
0.640295
a3aae4bc091b083a04833e581d3684d4d1444bf3
7,363
py
Python
pygluu/kubernetes/terminal/prompt.py
WaqasAhmedLatif/cloud-native-edition
1e6002f27ea971c153df59373e30d4506e9932dc
[ "Apache-2.0" ]
23
2020-04-18T14:51:41.000Z
2022-03-31T19:59:40.000Z
pygluu/kubernetes/terminal/prompt.py
WaqasAhmedLatif/cloud-native-edition
1e6002f27ea971c153df59373e30d4506e9932dc
[ "Apache-2.0" ]
236
2020-04-22T08:59:27.000Z
2022-03-31T07:21:12.000Z
pygluu/kubernetes/terminal/prompt.py
WaqasAhmedLatif/cloud-native-edition
1e6002f27ea971c153df59373e30d4506e9932dc
[ "Apache-2.0" ]
23
2020-04-19T15:25:59.000Z
2022-03-16T17:17:36.000Z
""" pygluu.kubernetes.terminal.prompt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains helpers to initialize all terminal prompts to interact with user's inputs for terminal installations. License terms and conditions for Gluu Cloud Native Edition: https://www.apache.org/licenses/LICENSE-2.0 """ from pygluu.ku...
35.570048
112
0.677034
9cf35993c912fa3d328f666b5c66bdb35e741110
6,089
py
Python
fhirclient/models/guidanceresponse.py
carolinarsm/client-py
db1b6e3e28036dee11da75412003c7d90e591c6d
[ "Apache-2.0" ]
418
2015-07-01T08:23:16.000Z
2022-03-31T14:02:30.000Z
fhirclient/models/guidanceresponse.py
carolinarsm/client-py
db1b6e3e28036dee11da75412003c7d90e591c6d
[ "Apache-2.0" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
fhirclient/models/guidanceresponse.py
carolinarsm/client-py
db1b6e3e28036dee11da75412003c7d90e591c6d
[ "Apache-2.0" ]
185
2015-03-30T20:23:16.000Z
2022-03-30T14:39:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/GuidanceResponse) on 2019-05-07. # 2019, SMART Health IT. from . import domainresource class GuidanceResponse(domainresource.DomainResource): """ The formal response to a guidance req...
41.141892
119
0.632124
36d2a21840117e8a872c6d49636dc7a71cee45fd
1,837
py
Python
dynamic_programming/word_break.py
t-gibson/algorithms
d207e9e72b5f04d47508194e66d4603b27668805
[ "MIT" ]
null
null
null
dynamic_programming/word_break.py
t-gibson/algorithms
d207e9e72b5f04d47508194e66d4603b27668805
[ "MIT" ]
null
null
null
dynamic_programming/word_break.py
t-gibson/algorithms
d207e9e72b5f04d47508194e66d4603b27668805
[ "MIT" ]
null
null
null
"""Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words. Note: - The same word in the dictionary may be reused multiple times in the segmentation. - You may assume the dictio...
30.114754
77
0.652695
146ab0cc5bad64bdf8a60d73d6f5dd9abbaa6928
5,861
py
Python
app.py
amcrisan/interactive-model-cards
081ab2e9bddb17f9407e8f8e666633d53ae2b5f9
[ "MIT" ]
null
null
null
app.py
amcrisan/interactive-model-cards
081ab2e9bddb17f9407e8f8e666633d53ae2b5f9
[ "MIT" ]
null
null
null
app.py
amcrisan/interactive-model-cards
081ab2e9bddb17f9407e8f8e666633d53ae2b5f9
[ "MIT" ]
null
null
null
### LIBRARIES ### # # Data import numpy as np import pandas as pd import json from math import floor # Robustness Gym and Analysis import robustnessgym as rg from gensim.models.doc2vec import Doc2Vec from sklearn.metrics import accuracy_score, f1_score, precision_score, recall_score import nltk nltk.download('punkt') ...
32.027322
171
0.669169
011607cc0ea94e958ce9dece67bd5a87d694afb0
1,791
py
Python
lenet.py
maxwell-aladago/slot-machines
a490464933e8dd3279bfa0d1b6937a90ebba5573
[ "MIT" ]
1
2021-11-04T17:53:11.000Z
2021-11-04T17:53:11.000Z
lenet.py
maxwell-aladago/slot-machines
a490464933e8dd3279bfa0d1b6937a90ebba5573
[ "MIT" ]
null
null
null
lenet.py
maxwell-aladago/slot-machines
a490464933e8dd3279bfa0d1b6937a90ebba5573
[ "MIT" ]
1
2021-11-04T17:58:49.000Z
2021-11-04T17:58:49.000Z
from model_construction import construct_classifier from torch import nn class LenetBase(nn.Module): def __init__(self, classifier): super(LenetBase, self).__init__() self.classifier = classifier self._initialize_weights() def forward(self, x): x = x.view(x.size(0), -1) ...
35.82
81
0.523171
c769553e32461ce82e2db5c8821544ac91c97f02
88
py
Python
Condor/python/Lib/site-packages/comtypes/gen/_C866CA3A_32F7_11D2_9602_00C04F8EE628_0_5_4.py
OriolOriolOriol/Condor
5b855ff7170e43149f9e9f81a97b6b88282915c5
[ "MIT" ]
null
null
null
Condor/python/Lib/site-packages/comtypes/gen/_C866CA3A_32F7_11D2_9602_00C04F8EE628_0_5_4.py
OriolOriolOriol/Condor
5b855ff7170e43149f9e9f81a97b6b88282915c5
[ "MIT" ]
null
null
null
Condor/python/Lib/site-packages/comtypes/gen/_C866CA3A_32F7_11D2_9602_00C04F8EE628_0_5_4.py
OriolOriolOriol/Condor
5b855ff7170e43149f9e9f81a97b6b88282915c5
[ "MIT" ]
1
2020-11-04T08:32:26.000Z
2020-11-04T08:32:26.000Z
# -*- coding: mbcs -*- typelib_path = 'C:\\WINDOWS\\System32\\Speech\\Common\\sapi.dll'
29.333333
64
0.647727
84fc8a2b0ff658aed821cc11c3eb55cc5ada2c04
13,115
py
Python
corehq/apps/linked_domain/tasks.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/linked_domain/tasks.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/linked_domain/tasks.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from django.conf import settings from django.template.defaultfilters import linebreaksbr from django.urls import reverse from django.utils.translation import ugettext as _ from celery import chord from celery.task import task from dimagi.utils.logging import notify_exception from ...
42.859477
112
0.66077
58bebd846bd6fa648cfab6ab1056ad10d8415453
664
py
Python
charmhelpers/contrib/hardening/ssh/__init__.py
AurelienLourot/charm-helpers
b5725ac546372e7d4004d15095f79cdd5e7da687
[ "Apache-2.0" ]
19
2016-04-22T10:00:05.000Z
2022-02-09T07:34:12.000Z
charmhelpers/contrib/hardening/ssh/__init__.py
AurelienLourot/charm-helpers
b5725ac546372e7d4004d15095f79cdd5e7da687
[ "Apache-2.0" ]
313
2017-09-15T13:22:58.000Z
2022-02-25T17:55:01.000Z
charmhelpers/contrib/hardening/ssh/__init__.py
AurelienLourot/charm-helpers
b5725ac546372e7d4004d15095f79cdd5e7da687
[ "Apache-2.0" ]
136
2017-09-19T13:37:33.000Z
2022-03-29T11:08:00.000Z
# Copyright 2016 Canonical 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 agreed to in writi...
36.888889
74
0.768072
ecfc0f424841bb63d0e0d3bfa57f6fe66e971d71
36,574
py
Python
code/pngsuite.py
topin89/pypng
dc5df017245b2366133d863e37e9429f80af5a6c
[ "MIT" ]
null
null
null
code/pngsuite.py
topin89/pypng
dc5df017245b2366133d863e37e9429f80af5a6c
[ "MIT" ]
null
null
null
code/pngsuite.py
topin89/pypng
dc5df017245b2366133d863e37e9429f80af5a6c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # pngsuite.py # PngSuite Test PNGs. # https://docs.python.org/3.2/library/argparse.html import argparse import sys """ After you import this module with "import pngsuite" use ``pngsuite.bai0g01`` to get the bytes for a particular PNG image, or use ``pngsuite.png`` to get a dict() of them all. ...
54.506706
69
0.953464
50838ee5f1c9a477e977f0b9a082f3e9f2023439
724
py
Python
test/conftest.py
kavandev/hk1980
0a22fca303bcc1e5cf1eedd45dc92f9854c7466e
[ "MIT" ]
1
2022-01-30T08:11:43.000Z
2022-01-30T08:11:43.000Z
test/conftest.py
kavandev/hk1980
0a22fca303bcc1e5cf1eedd45dc92f9854c7466e
[ "MIT" ]
1
2022-01-30T10:50:01.000Z
2022-01-30T10:50:01.000Z
test/conftest.py
kavandev/hk1980
0a22fca303bcc1e5cf1eedd45dc92f9854c7466e
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def valid_wgs84_point(): return (22.2580467, 114.00876443) # NOTE: same location as valid_hk80_point @pytest.fixture def valid_hk80_point(): return (813259.700, 818940.160) # NOTE: same location as valid_wgs84_point @pytest.fixture def invalid_wgs84_point(): return (122...
17.238095
80
0.734807
ca7133b4aedef6a4ef81897b4fdd362ba341da5f
716
py
Python
utils/average_meter.py
awwong1/pytorch-model-compression
739355f3f6874fc0d480f479d358fa2a5b54ad61
[ "MIT" ]
4
2019-05-29T23:02:52.000Z
2021-01-22T10:07:13.000Z
utils/average_meter.py
awwong1/pytorch-model-compression
739355f3f6874fc0d480f479d358fa2a5b54ad61
[ "MIT" ]
7
2020-03-24T17:07:23.000Z
2022-01-13T01:14:59.000Z
utils/average_meter.py
awwong1/pytorch-model-compression
739355f3f6874fc0d480f479d358fa2a5b54ad61
[ "MIT" ]
1
2021-01-22T10:07:16.000Z
2021-01-22T10:07:16.000Z
class AverageMeter(object): """ Computes and stores the average and current value https://github.com/pytorch/examples/blob/5b1f45057dc14a5e2132b45233c258a1dc2a0aab/imagenet/main.py#L351 """ def __init__(self, name, fmt=':f'): self.name = name self.fmt = fmt self.reset() ...
25.571429
107
0.561453
25fa776eac1943e203444531df4f85250503f1d4
3,123
py
Python
tests/test_qm.py
bjrnfrdnnd/panel-test
4609a259e749825b2a2012d8a7e48ed8e8a78deb
[ "MIT" ]
null
null
null
tests/test_qm.py
bjrnfrdnnd/panel-test
4609a259e749825b2a2012d8a7e48ed8e8a78deb
[ "MIT" ]
1
2019-07-26T22:12:19.000Z
2019-10-31T17:48:51.000Z
tests/test_qm.py
bjrnfrdnnd/panel-test
4609a259e749825b2a2012d8a7e48ed8e8a78deb
[ "MIT" ]
1
2019-09-19T11:54:45.000Z
2019-09-19T11:54:45.000Z
import pathlib import numpy as np from nmrtools.qm import (cache_tm, hamiltonian_dense, hamiltonian_sparse, nspinspec_dense, nspinspec_sparse, so_sparse, spectrum) from tests.accepted_data import HAMILTONIAN_RIOUX, SPECTRUM_RIOUX from tests.simulation_data import rioux...
36.313953
77
0.697086
98941e686c40030f5c715ac302417af6892068bf
2,893
py
Python
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/CreateOTADynamicUpgradeJobRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/CreateOTADynamicUpgradeJobRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/CreateOTADynamicUpgradeJobRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.280488
85
0.769098
ce92fd71c540ea505e18744ad94199651d40fb05
1,484
py
Python
codev/template-library/regex/ip-address/re-ipv6.py
creative-sensor/echo-home
14ed0da26e455ff19425ea9fc2a5e81bba8ca2c2
[ "MIT" ]
null
null
null
codev/template-library/regex/ip-address/re-ipv6.py
creative-sensor/echo-home
14ed0da26e455ff19425ea9fc2a5e81bba8ca2c2
[ "MIT" ]
2
2021-05-11T10:33:39.000Z
2022-01-22T11:35:20.000Z
codev/template-library/regex/ip-address/re-ipv6.py
creative-sensor/echo-home
14ed0da26e455ff19425ea9fc2a5e81bba8ca2c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-------------------------||| IPv6 REGEX PANTHEON |||--------------------------- FULL = '([A-Fa-f0-9]{1,4}):(([A-Fa-f0-9]{1,4}):){6}([A-Fa-f0-9]{1,4})' MIDDLE_ZERO_61 = '(([A-Fa-f0-9]{1,4}:){6}(:[A-Fa-f0-9]{1,4}){1})' MIDDLE_ZERO_52 = '(([A-Fa-f0-9]{1,4}:){5}(:[A-Fa-f0-9]{1,4}){1,2})' MIDDLE_ZE...
30.285714
80
0.463612
994afe8b757117755549cae77b8238fb5b0a184c
1,039
py
Python
src/wanderbot/red_light_green_light.py
plskeggs/ros_wanderbot
697860a3ce7ba6d311f1386ff3c708661d53549a
[ "Apache-2.0" ]
null
null
null
src/wanderbot/red_light_green_light.py
plskeggs/ros_wanderbot
697860a3ce7ba6d311f1386ff3c708661d53549a
[ "Apache-2.0" ]
null
null
null
src/wanderbot/red_light_green_light.py
plskeggs/ros_wanderbot
697860a3ce7ba6d311f1386ff3c708661d53549a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist cmd_vel_pub = rospy.Publisher('cmd_vel', Twist, queue_size=1) rospy.init_node('red_light_green_light') red_light_twist = Twist() green_light_twist = Twist() green_light_twist.linear.x = 0.5 driving_forward = False while rospy.get_time() == 0: ...
28.081081
73
0.694899
7a2add1f7deb4034fd413e72e4fb68733912dea6
252
py
Python
Algorithmic Toolbox/Dynamic Programming/Primitive Calculator/primitive_calculator.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
9
2020-07-02T06:06:17.000Z
2022-02-26T11:08:09.000Z
Algorithmic Toolbox/Dynamic Programming/Primitive Calculator/primitive_calculator.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
1
2021-11-04T17:26:36.000Z
2021-11-04T17:26:36.000Z
Algorithmic Toolbox/Dynamic Programming/Primitive Calculator/primitive_calculator.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
8
2021-01-31T10:31:12.000Z
2022-03-13T09:15:55.000Z
# python3 def compute_operations(n): assert 1 <= n <= 10 ** 6 type here if __name__ == '__main__': input_n = int(input()) output_sequence = compute_operations(input_n) print(len(output_sequence) - 1) print(*output_sequence)
18
49
0.654762
5227032e7056551172b4de15ef1fd442e55a0e0f
929
py
Python
demos/rotating_bar.py
Sh0cktr4p/PhiFlow
cc87c5887bc3abfa1ef3c03252122a06e9fd2c18
[ "MIT" ]
null
null
null
demos/rotating_bar.py
Sh0cktr4p/PhiFlow
cc87c5887bc3abfa1ef3c03252122a06e9fd2c18
[ "MIT" ]
null
null
null
demos/rotating_bar.py
Sh0cktr4p/PhiFlow
cc87c5887bc3abfa1ef3c03252122a06e9fd2c18
[ "MIT" ]
1
2021-09-15T11:14:42.000Z
2021-09-15T11:14:42.000Z
""" Rotating Bar This demo shows how to simulate fluid flow with moving or rotating obstacles. """ from phi.flow import * DOMAIN = Domain(x=100, y=100, boundaries=OPEN, bounds=Box[0:100, 0:100]) DT = 1.0 obstacle = Obstacle(Box[47:53, 20:70], angular_velocity=0.05) obstacle_mask = DOMAIN.scalar_grid(obstacle.geometry...
48.894737
167
0.751346
20dafde7408e1bfe04014ba0110a7201db492a90
140
py
Python
mysite/mysite/views.py
manavpradhan/E-Commerce-website
92120663b2f1c48bb4940e7459f4f69974af6503
[ "MIT" ]
null
null
null
mysite/mysite/views.py
manavpradhan/E-Commerce-website
92120663b2f1c48bb4940e7459f4f69974af6503
[ "MIT" ]
null
null
null
mysite/mysite/views.py
manavpradhan/E-Commerce-website
92120663b2f1c48bb4940e7459f4f69974af6503
[ "MIT" ]
null
null
null
from django.http import HttpResponse as hr from django.shortcuts import render def start(request): return render(request, 'start.html')
28
42
0.785714
b26d9e0ee78bdac35f1e787c42033c3b3c06e8b5
3,399
py
Python
data-hub-api/apps/companieshouse/tests/sources/test_matcher.py
uktrade/data-hub-api-old
5ecf093d88692870982a638ced45de6a82d55672
[ "MIT" ]
null
null
null
data-hub-api/apps/companieshouse/tests/sources/test_matcher.py
uktrade/data-hub-api-old
5ecf093d88692870982a638ced45de6a82d55672
[ "MIT" ]
18
2016-04-04T12:42:45.000Z
2016-09-01T07:21:05.000Z
data-hub-api/apps/companieshouse/tests/sources/test_matcher.py
uktrade/data-hub-api-old
5ecf093d88692870982a638ced45de6a82d55672
[ "MIT" ]
1
2016-06-01T15:45:21.000Z
2016-06-01T15:45:21.000Z
from django.test.testcases import TestCase from companieshouse.sources.matcher import BaseMatcher, FindingResult class MyMatcher(BaseMatcher): """ Testing Matcher that allows settinging findings to check that the logic works """ def set_findings(self, findings): self.findings = findings cla...
26.76378
81
0.543395
50c4453ebba808e61ef6c95e7935a4a1aa928c3f
2,900
py
Python
horizon/horizon/dashboards/nova/access_and_security/tests.py
ttrifonov/horizon
293c2ee9f76231e12142a733f6f916c533648f8f
[ "Apache-2.0" ]
1
2016-10-11T10:21:14.000Z
2016-10-11T10:21:14.000Z
horizon/horizon/dashboards/nova/access_and_security/tests.py
ttrifonov/horizon
293c2ee9f76231e12142a733f6f916c533648f8f
[ "Apache-2.0" ]
null
null
null
horizon/horizon/dashboards/nova/access_and_security/tests.py
ttrifonov/horizon
293c2ee9f76231e12142a733f6f916c533648f8f
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 # no...
36.708861
79
0.658276
1a7283140204b5cf8a1062a7e8563125ec69401c
479
py
Python
nomadgram/users/migrations/0008_auto_20180328_0129.py
zlyanz13/Yonwongram
a340f8ef215d3d8967e6977f89f46fbe2cc1a337
[ "MIT" ]
null
null
null
nomadgram/users/migrations/0008_auto_20180328_0129.py
zlyanz13/Yonwongram
a340f8ef215d3d8967e6977f89f46fbe2cc1a337
[ "MIT" ]
null
null
null
nomadgram/users/migrations/0008_auto_20180328_0129.py
zlyanz13/Yonwongram
a340f8ef215d3d8967e6977f89f46fbe2cc1a337
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-27 16:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0007_auto_20180322_0216'), ] operations = [ migrations.AlterField( model_name='user', name='gender', ...
25.210526
147
0.597077
058682eec430e51860afd24db0429b517087722d
1,277
py
Python
src/2019/second/C.py
veltzerdoron/GCJ
8976b95e1d3c1806ca10b3df5f0a506adef6f1b0
[ "MIT" ]
null
null
null
src/2019/second/C.py
veltzerdoron/GCJ
8976b95e1d3c1806ca10b3df5f0a506adef6f1b0
[ "MIT" ]
null
null
null
src/2019/second/C.py
veltzerdoron/GCJ
8976b95e1d3c1806ca10b3df5f0a506adef6f1b0
[ "MIT" ]
null
null
null
from fractions import * T = int(input()) for t in range(T): n = int(input()) a = [] for i in range(n): a.append([int(i) for i in input().split(' ')]) intersections = set() inf = 10 ** 20 lower, upper = Fraction(0), Fraction(inf, 1) impossible = False for i in range(len(a) - 1): x1, y1 = a[i] ...
23.648148
68
0.509789
aca727ccc46f157ecb3d5230076b04b96a31f9ca
1,006
py
Python
kubernetes/test/test_v1_scale_io_volume_source.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
1
2018-10-20T19:37:57.000Z
2018-10-20T19:37:57.000Z
kubernetes/test/test_v1_scale_io_volume_source.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_scale_io_volume_source.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
2
2018-07-27T19:39:34.000Z
2020-12-25T02:48:27.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.11.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
22.355556
105
0.72167
9fd50f693a9ec17dee420093e7ccb3028018a556
893
py
Python
2015/2015-day05/nice.py
bennettp123/advent-of-code
07b2ada43ad16a842b010c852f456c3ed44b1562
[ "MIT" ]
null
null
null
2015/2015-day05/nice.py
bennettp123/advent-of-code
07b2ada43ad16a842b010c852f456c3ed44b1562
[ "MIT" ]
null
null
null
2015/2015-day05/nice.py
bennettp123/advent-of-code
07b2ada43ad16a842b010c852f456c3ed44b1562
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re strings = [] def vowels(s): return [c for c in s if c in ('a', 'e', 'i', 'o', 'u')] def repeats(s): return re.search(r'(.)\1', s) def blacklisted(s): return [b for b in ('ab', 'cd', 'pq', 'xy') if b in s] def is_nice(s): return len(vowels(s)) > 2 and repeats(s) ...
19
71
0.587906
ae52d2678db2790d90ca0a12fec91f04c83bd2a5
7,773
py
Python
ludwig/utils/batcher.py
mehrdad-shokri/ludwig
f167981683c067b50be6a3656cbf553efbf192e9
[ "Apache-2.0" ]
2
2020-04-02T17:43:34.000Z
2021-11-09T07:20:31.000Z
ludwig/utils/batcher.py
mehrdad-shokri/ludwig
f167981683c067b50be6a3656cbf553efbf192e9
[ "Apache-2.0" ]
6
2020-01-28T22:42:31.000Z
2022-02-10T00:16:09.000Z
ludwig/utils/batcher.py
mehrdad-shokri/ludwig
f167981683c067b50be6a3656cbf553efbf192e9
[ "Apache-2.0" ]
2
2020-03-09T07:19:05.000Z
2020-03-09T07:20:42.000Z
#! /usr/bin/env python # coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 # # Unles...
35.331818
80
0.584974
d8110af2432018d4b13221a62989cd5be9a72023
1,516
py
Python
src/spaceone/inventory/lib/ip_address.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/lib/ip_address.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/lib/ip_address.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import ipaddress class IPAddress(object): @staticmethod def get_ip_object(ip_address): return ipaddress.ip_address(ip_address) @staticmethod def get_network_object(network): return ipaddress.ip_network(network) @staticmethod def check_valid_ip(ip_addr...
24.063492
55
0.611478
536ccf9990f6b7e29712409723ba687b52afa677
125
py
Python
Inheritance - Exercise/project/food.py
DiyanKalaydzhiev23/OOP---Python
7ac424d5fb08a6bd28dc36593e45d949b3ac0cd0
[ "MIT" ]
null
null
null
Inheritance - Exercise/project/food.py
DiyanKalaydzhiev23/OOP---Python
7ac424d5fb08a6bd28dc36593e45d949b3ac0cd0
[ "MIT" ]
null
null
null
Inheritance - Exercise/project/food.py
DiyanKalaydzhiev23/OOP---Python
7ac424d5fb08a6bd28dc36593e45d949b3ac0cd0
[ "MIT" ]
null
null
null
from project.product import Product class Food(Product): def __init__(self, name): super().__init__(name, 15)
15.625
35
0.68
89fdb5767b0ded153c92aa11707943d86d5a2774
24,155
py
Python
src/electionguard/decryption.py
PradyumnaKrishna/electionguard-python
e239478972d76195c64fd715bb57682d526aab6c
[ "MIT" ]
null
null
null
src/electionguard/decryption.py
PradyumnaKrishna/electionguard-python
e239478972d76195c64fd715bb57682d526aab6c
[ "MIT" ]
null
null
null
src/electionguard/decryption.py
PradyumnaKrishna/electionguard-python
e239478972d76195c64fd715bb57682d526aab6c
[ "MIT" ]
null
null
null
from typing import Dict, List, Optional, Tuple from electionguard.chaum_pedersen import ChaumPedersenProof, make_chaum_pedersen from electionguard.elgamal import ElGamalCiphertext from electionguard.utils import get_optional from .ballot import ( SubmittedBallot, CiphertextSelection, CiphertextContest, ) ...
34.262411
116
0.700931
bd5249369153d34a07831b5e0b0e37e0c97ab44c
528
py
Python
scripts/import_data.py
bfontaine/movielens-data-analysis
fa8cc7248ba3c1e5a629a6b2291af3ae191cbc82
[ "MIT" ]
3
2017-01-13T23:53:37.000Z
2019-09-29T06:40:29.000Z
scripts/import_data.py
bfontaine/movielens-data-analysis
fa8cc7248ba3c1e5a629a6b2291af3ae191cbc82
[ "MIT" ]
null
null
null
scripts/import_data.py
bfontaine/movielens-data-analysis
fa8cc7248ba3c1e5a629a6b2291af3ae191cbc82
[ "MIT" ]
1
2021-04-14T14:47:31.000Z
2021-04-14T14:47:31.000Z
#! /usr/bin/env python # -*- coding: UTF-8 -*- import os import sys sys.path.insert(0, '%s/..' % os.path.dirname(__file__)) from movies.data_import import import_data directory = "./data" if len(sys.argv) == 3: directory = sys.argv[1] fmt = sys.argv[2] else: print "Usage:\n\t%s [<directory> <format>]\n...
22
69
0.642045
15185a65c3720c6856f2f1625d66557e5b1a9331
1,544
py
Python
dm_control/mujoco/wrapper/__init__.py
rdaems/dm_control
c682e626fde95a98b53f67f07b0c1021e4200bb8
[ "Apache-2.0" ]
1
2022-03-22T11:53:38.000Z
2022-03-22T11:53:38.000Z
dm_control/mujoco/wrapper/__init__.py
krakhit/dm_control
4e1a35595124742015ae0c7a829e099a5aa100f5
[ "Apache-2.0" ]
null
null
null
dm_control/mujoco/wrapper/__init__.py
krakhit/dm_control
4e1a35595124742015ae0c7a829e099a5aa100f5
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The dm_control 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 to i...
40.631579
78
0.778497
1f362a54b4e7b116abe74f67a7ae2b13b5e9fd59
702
py
Python
setup.py
paramono/djpp
ba70c212595d37e2d3ffbd7313c879979d9d4f3e
[ "MIT" ]
1
2020-07-28T19:08:20.000Z
2020-07-28T19:08:20.000Z
setup.py
paramono/djpaypal_subs
ba70c212595d37e2d3ffbd7313c879979d9d4f3e
[ "MIT" ]
null
null
null
setup.py
paramono/djpaypal_subs
ba70c212595d37e2d3ffbd7313c879979d9d4f3e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # DO NOT EDIT THIS FILE! # This file has been autogenerated by dephell <3 # https://github.com/dephell/dephell try: from setuptools import setup except ImportError: from distutils.core import setup readme = '' setup( long_description=readme, name='djpp', version='0.3.11',...
23.4
62
0.618234
bd283ffd14e3a18b88ac21397831d4756d7ae3e5
329
py
Python
hypervector/errors.py
hypervectorio/hypervector-wrapper
c90ec91363249ec9401898960ea41cf6aa116ced
[ "MIT" ]
8
2021-05-12T15:19:17.000Z
2022-03-06T00:59:25.000Z
hypervector/errors.py
hypervectorio/hypervector-wrapper
c90ec91363249ec9401898960ea41cf6aa116ced
[ "MIT" ]
null
null
null
hypervector/errors.py
hypervectorio/hypervector-wrapper
c90ec91363249ec9401898960ea41cf6aa116ced
[ "MIT" ]
6
2021-04-07T14:03:24.000Z
2021-04-16T15:38:54.000Z
class APIKeyNotSetError(Exception): pass class APIConnectionError(Exception): pass class HypervectorError(Exception): def __init__(self, response=None): self.response = response if response: self.status_code = response.status_code else: self.status_code = ...
16.45
51
0.653495
2e7e7c9f570cf1bd542539dda8da3a7e9463ccd7
38,360
py
Python
src/sparsezoo/models/zoo.py
signalism/sparsezoo
5ca44f8cb514e80844034920d743baba97279ec2
[ "Apache-2.0" ]
116
2021-02-04T17:51:22.000Z
2022-03-25T03:15:19.000Z
src/sparsezoo/models/zoo.py
PIlotcnc/new
6e6413632de01f6acf691dca8fadb84f841444b9
[ "Apache-2.0" ]
15
2021-02-13T12:00:40.000Z
2022-03-17T18:44:54.000Z
src/sparsezoo/models/zoo.py
PIlotcnc/new
6e6413632de01f6acf691dca8fadb84f841444b9
[ "Apache-2.0" ]
11
2021-02-04T22:20:47.000Z
2021-12-03T12:20:09.000Z
# Copyright (c) 2021 - present / Neuralmagic, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
45.830346
87
0.649088
8c95f96085ac2c14d07f2d82ac32691a19bb833d
5,397
py
Python
tests/components/panel_custom/test_init.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
tests/components/panel_custom/test_init.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
tests/components/panel_custom/test_init.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
1
2019-06-19T07:43:11.000Z
2019-06-19T07:43:11.000Z
"""The tests for the panel_custom component.""" from unittest.mock import Mock, patch from homeassistant import setup from homeassistant.components import frontend async def test_webcomponent_custom_path_not_found(hass): """Test if a web component is found in config panels dir.""" filename = 'mock.file' ...
28.555556
64
0.531036
1297b8371d8583b30f985f727d510fc160fc2ab0
93,161
py
Python
Lib/test/test_ipaddress.py
mananpal1997/pyston
d24bcf5690ab09f37d04549e70561656eaea4445
[ "0BSD" ]
2,441
2020-07-31T06:45:53.000Z
2022-03-30T15:56:49.000Z
Lib/test/test_ipaddress.py
mananpal1997/pyston
d24bcf5690ab09f37d04549e70561656eaea4445
[ "0BSD" ]
238
2020-10-21T04:54:00.000Z
2022-03-31T21:49:03.000Z
Lib/test/test_ipaddress.py
mananpal1997/pyston
d24bcf5690ab09f37d04549e70561656eaea4445
[ "0BSD" ]
93
2020-08-09T12:00:17.000Z
2022-03-25T07:57:24.000Z
# Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. """Unittest for ipaddress module.""" import unittest import re import contextlib import functools import operator import pickle import ipaddress import weakref from test.support import LARGEST, SMALLEST class BaseTestCase(unittest.TestC...
44.341266
89
0.593972
f9217ca43ebaf09ce80fdb76d4adc1d668b66d54
482
py
Python
examples/dynamictable/Student.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
739
2015-01-01T02:05:11.000Z
2022-03-30T15:26:16.000Z
examples/dynamictable/Student.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
33
2015-03-25T23:17:04.000Z
2021-08-19T08:25:22.000Z
examples/dynamictable/Student.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
167
2015-01-01T22:27:47.000Z
2022-03-17T13:29:19.000Z
from Schedule import Schedule from Person import Person class Student(Person): def __init__(self, classSchedule=None, **kwargs): Person.__init__(self, **kwargs) if classSchedule is None: self.classSchedule = Schedule() else: self.classSchedule = classSchedule d...
26.777778
60
0.682573
098245ea28c4266e078062f72da43d181af53666
4,962
py
Python
gpMgmt/test/behave/mgmt_utils/steps/gpstate_utils.py
haolinw/gpdb
16a9465747a54f0c61bac8b676fe7611b4f030d8
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/test/behave/mgmt_utils/steps/gpstate_utils.py
haolinw/gpdb
16a9465747a54f0c61bac8b676fe7611b4f030d8
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/test/behave/mgmt_utils/steps/gpstate_utils.py
haolinw/gpdb
16a9465747a54f0c61bac8b676fe7611b4f030d8
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
from behave import given, when, then import os import re from gppylib.db import dbconn from gppylib.gparray import GpArray, ROLE_MIRROR from test.behave_utils.utils import check_stdout_msg, check_string_not_present_stdout from gppylib.commands.gp import get_coordinatordatadir @then('a sample recovery_progress.file is...
42.050847
111
0.696493
3a889a4b201ee3856e9d2829dce5ec21bc4ad613
6,661
py
Python
day04.py
htv2012/advent-of-code-2020
bc884d5e8a8b437d6b3bd52e689b4bd142bb3bfe
[ "MIT" ]
null
null
null
day04.py
htv2012/advent-of-code-2020
bc884d5e8a8b437d6b3bd52e689b4bd142bb3bfe
[ "MIT" ]
null
null
null
day04.py
htv2012/advent-of-code-2020
bc884d5e8a8b437d6b3bd52e689b4bd142bb3bfe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ --- Day 4: Passport Processing --- You arrive at the airport only to realize that you grabbed your North Pole Credentials instead of your passport. While these documents are extremely similar, North Pole Credentials aren't issued by a country and therefore aren't actually valid documentation...
26.751004
79
0.720913
222f86123c6a3185db4a539b4343788ff0f71e44
1,041
py
Python
tests/sentry/tasks/test_store.py
ChadKillingsworth/sentry
ffcb9007a95a83ee267935fe605f8ee8f03a85a5
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/tasks/test_store.py
ChadKillingsworth/sentry
ffcb9007a95a83ee267935fe605f8ee8f03a85a5
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/tasks/test_store.py
ChadKillingsworth/sentry
ffcb9007a95a83ee267935fe605f8ee8f03a85a5
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import mock from sentry.plugins import Plugin2 from sentry.tasks.store import preprocess_event from sentry.testutils import PluginTestCase class BasicPreprocessorPlugin(Plugin2): def get_event_preprocessors(self): def remove_extra(data): del data['extra...
23.659091
54
0.616715
a9501b7e9008ae7402aa838bbdccdf6b1fb6660c
271
py
Python
weibo_base/__init__.py
NewKnowledge/weibo-scraper
a136fb6b88f66597ad38ef5deb4ec54e5eb05941
[ "MIT" ]
58
2018-05-10T20:10:54.000Z
2022-03-15T11:11:31.000Z
weibo_base/__init__.py
NewKnowledge/weibo-scraper
a136fb6b88f66597ad38ef5deb4ec54e5eb05941
[ "MIT" ]
18
2018-05-21T16:20:30.000Z
2021-12-15T19:35:21.000Z
weibo_base/__init__.py
NewKnowledge/weibo-scraper
a136fb6b88f66597ad38ef5deb4ec54e5eb05941
[ "MIT" ]
17
2018-05-25T09:26:51.000Z
2022-03-14T01:56:43.000Z
# -*- coding:utf-8 -*- """ Author: Helixcs Site: https://github.com/Xarrow/weibo-scraper File: __init__.py.py Time: 5/19/18 """ from .weibo_typing import * from .weibo_api import * from .weibo_component import * from .weibo_util import * from .weibo_parser import *
19.357143
46
0.708487
a7f75db08da6b9d4ceeb786d68355635b4f1a59d
1,788
py
Python
Variado_GeekUniversity/guppe/counter.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Variado_GeekUniversity/guppe/counter.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Variado_GeekUniversity/guppe/counter.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
""" Módulo Collections - Counter (Contador) https://docs.python.org/3/library/collections.html#collections.Counter Collections -> High-performance Container Datetypes Counter -> Recebe um interável como parâmetro e cria um objeto do tipo Collections Counter que é parecido com um dicionário, contendo como chave o el...
28.83871
119
0.714206
c9aef418837a2a7b9060778bb644b37ed53e27c8
113
py
Python
venv/lib/python3.9/site-packages/nbformat/_version.py
CMU-IDS-2022/final-project-the-evaluators
3b9262ad1a0f7315208a94a05ea1ce38e679d01d
[ "BSD-3-Clause" ]
null
null
null
venv/lib/python3.9/site-packages/nbformat/_version.py
CMU-IDS-2022/final-project-the-evaluators
3b9262ad1a0f7315208a94a05ea1ce38e679d01d
[ "BSD-3-Clause" ]
null
null
null
venv/lib/python3.9/site-packages/nbformat/_version.py
CMU-IDS-2022/final-project-the-evaluators
3b9262ad1a0f7315208a94a05ea1ce38e679d01d
[ "BSD-3-Clause" ]
null
null
null
# Make sure to update package.json, too! version_info = (5, 3, 0) __version__ = ".".join(map(str, version_info))
28.25
46
0.690265