hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
1c2cd1c7866b4166b599bfc1f3c0f6cd7966650c
625
py
Python
gnome/gnome2/gedit/plugins.symlink/ViGedit/actions/insert.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
4
2015-03-17T14:36:49.000Z
2019-06-10T09:34:35.000Z
gnome/gnome2/gedit/plugins.symlink/ViGedit/actions/insert.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
null
null
null
gnome/gnome2/gedit/plugins.symlink/ViGedit/actions/insert.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
1
2019-03-01T13:21:55.000Z
2019-03-01T13:21:55.000Z
def append_After(act): cursor = act.pos.getIter(act) if cursor.ends_line(): act.vibase.doc.insert_at_cursor(" ") else: act.pos.move_Forward(act) return True def insert_BeginLine(act): cursor = act.pos.getIter(act) cursor.backward_sentence_start() act.vibase.doc.place_cur...
26.041667
44
0.6896
def append_After(act): cursor = act.pos.getIter(act) if cursor.ends_line(): act.vibase.doc.insert_at_cursor(" ") else: act.pos.move_Forward(act) return True def insert_BeginLine(act): cursor = act.pos.getIter(act) cursor.backward_sentence_start() act.vibase.doc.place_cur...
true
true
1c2cd1d2776852b9bf6526a221d3934a7740e083
1,023
py
Python
Todoism/todoism/models.py
authetic-x/Flask_Practice
90ca69467cd6de8eb41669d2a87ab072fc11e1c8
[ "MIT" ]
1
2020-07-29T16:46:32.000Z
2020-07-29T16:46:32.000Z
Todoism/todoism/models.py
authetic-x/Flask_Practice
90ca69467cd6de8eb41669d2a87ab072fc11e1c8
[ "MIT" ]
null
null
null
Todoism/todoism/models.py
authetic-x/Flask_Practice
90ca69467cd6de8eb41669d2a87ab072fc11e1c8
[ "MIT" ]
null
null
null
from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from todoism.extensions import db class User(db.Model, UserMixin): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(20), unique=True, index=True) password_hash = db.Col...
31
73
0.71261
from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from todoism.extensions import db class User(db.Model, UserMixin): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(20), unique=True, index=True) password_hash = db.Col...
true
true
1c2cd22eb76d0c92377d54e89f2dbddf4c8d1416
349
py
Python
glc/cli/subs/c_info.py
evinoca/MyCli
bd6fcb98024c403f9562424f8e8acbacf1380a76
[ "MIT" ]
1
2021-06-08T08:18:21.000Z
2021-06-08T08:18:21.000Z
glc/cli/subs/c_info.py
evinoca/MyCli
bd6fcb98024c403f9562424f8e8acbacf1380a76
[ "MIT" ]
12
2020-05-29T07:08:27.000Z
2022-01-12T22:39:49.000Z
glc/cli/subs/c_info.py
evinoca/MyCli
bd6fcb98024c403f9562424f8e8acbacf1380a76
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals import click @click.command("info", short_help="Display Information.") @click.pass_obj def cli(config): """Show current configuration information.""" click.echo("calling sub cmd info") click.echo(f"Profile: {config.profile} Co...
26.846154
73
0.756447
from __future__ import absolute_import from __future__ import unicode_literals import click @click.command("info", short_help="Display Information.") @click.pass_obj def cli(config): click.echo("calling sub cmd info") click.echo(f"Profile: {config.profile} Config Path: {config.config}")
true
true
1c2cd481e5efc64d8c4dadd72d1104ea81e872aa
1,215
py
Python
readSMPS/readCOR.py
siavashtab/readSMPS-Py
41c4c51c59be07a04d13ccf66558961fe5761945
[ "MIT" ]
null
null
null
readSMPS/readCOR.py
siavashtab/readSMPS-Py
41c4c51c59be07a04d13ccf66558961fe5761945
[ "MIT" ]
null
null
null
readSMPS/readCOR.py
siavashtab/readSMPS-Py
41c4c51c59be07a04d13ccf66558961fe5761945
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on May 4 - 2019 ---Based on the 2-stage stochastic program structure ---Assumption: RHS is random ---read cor file (.mps) ---save the distributoin of the random variables and return the ---random variables @author: Siavash Tabrizian - stabrizian@smu.edu """ from gurobipy import * ...
26.413043
64
0.579424
from gurobipy import * class readcor: def __init__(self, name): self.name = name + ".mps" elf): self.mean_model = read(self.name) self.mean_vars = self.mean_model.getVars() self.mean_const = self.mean_model.getConstrs() self.mean_model.optimize() pri...
true
true
1c2cd528ad879234f51f89a48f46337603288a4d
1,744
py
Python
dss_sm_so/sm/log.py
MobileCloudNetworking/dssaas
87b6f7d60ecc397a88326a955b2ddfd3d73205d1
[ "Apache-2.0" ]
null
null
null
dss_sm_so/sm/log.py
MobileCloudNetworking/dssaas
87b6f7d60ecc397a88326a955b2ddfd3d73205d1
[ "Apache-2.0" ]
null
null
null
dss_sm_so/sm/log.py
MobileCloudNetworking/dssaas
87b6f7d60ecc397a88326a955b2ddfd3d73205d1
[ "Apache-2.0" ]
1
2018-10-09T06:28:36.000Z
2018-10-09T06:28:36.000Z
# Copyright 2014-2015 Zuercher Hochschule fuer Angewandte Wissenschaften # 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/lice...
37.913043
125
0.670872
import logging import graypy from sm.config import CONFIG __author__ = 'andy' def config_logger(log_level=logging.DEBUG): logging.basicConfig(format='%(levelname)s %(asctime)s: \t%(message)s', datefmt='%m/%d/%Y %I:%M:%S %p', log_level=log_level) ...
true
true
1c2cd5d4a84a0e4226675df6df00cb071958c524
15,957
py
Python
analytic/Cod_fuente_raytracing.py
jdlar1/ray_tracing
9a63858ee4918c477532d7484a6b09c87682e6dd
[ "MIT" ]
1
2020-12-28T21:32:23.000Z
2020-12-28T21:32:23.000Z
analytic/Cod_fuente_raytracing.py
jdlar1/ray_tracing
9a63858ee4918c477532d7484a6b09c87682e6dd
[ "MIT" ]
null
null
null
analytic/Cod_fuente_raytracing.py
jdlar1/ray_tracing
9a63858ee4918c477532d7484a6b09c87682e6dd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 5 18:37:15 2020 @author: Usuario """ from .imagingpath import * from .laserpath import * from .specialtylenses import * from .axicon import * import raytracing.thorlabs as thorlabs import raytracing.eo as eo import raytracing.olympus as olympus import argparse ap = a...
36.514874
144
0.66134
from .imagingpath import * from .laserpath import * from .specialtylenses import * from .axicon import * import raytracing.thorlabs as thorlabs import raytracing.eo as eo import raytracing.olympus as olympus import argparse ap = argparse.ArgumentParser(prog='python -m raytracing') ap.add_argument("-e", "--examples...
true
true
1c2cd63f83042932d56c695913a71a0a5c9a5726
4,588
py
Python
plotting/paper_hyp_robust_imagenetv2.py
saarimrahman/imagenet-testbed
55a867d091c7193225880010853ed2b4b0b73ec9
[ "MIT" ]
69
2020-07-21T01:17:45.000Z
2022-03-24T16:31:32.000Z
plotting/paper_hyp_robust_imagenetv2.py
saarimrahman/imagenet-testbed
55a867d091c7193225880010853ed2b4b0b73ec9
[ "MIT" ]
6
2020-12-07T19:17:05.000Z
2022-02-23T23:39:22.000Z
plotting/paper_hyp_robust_imagenetv2.py
saarimrahman/imagenet-testbed
55a867d091c7193225880010853ed2b4b0b73ec9
[ "MIT" ]
4
2020-10-31T23:51:58.000Z
2022-03-25T06:15:55.000Z
import os from os.path import join, exists import argparse import pathlib from enum import Enum import click import numpy as np import pandas as pd import download_data import dataframe import plotter from model_types import ModelTypes, model_types_map class HypModelTypes(Enum): HYP_ROBUST = ('Hypothetical robu...
37.917355
146
0.683522
import os from os.path import join, exists import argparse import pathlib from enum import Enum import click import numpy as np import pandas as pd import download_data import dataframe import plotter from model_types import ModelTypes, model_types_map class HypModelTypes(Enum): HYP_ROBUST = ('Hypothetical robu...
true
true
1c2cd79fe4e9e8b1785b4603b0c63b98fa2fcab6
1,371
py
Python
config.py
sproctor/photobooth
58cc86a3f984b2c53fdcb994a33678e86551a501
[ "MIT" ]
1
2019-11-20T17:22:17.000Z
2019-11-20T17:22:17.000Z
config.py
sproctor/photobooth
58cc86a3f984b2c53fdcb994a33678e86551a501
[ "MIT" ]
null
null
null
config.py
sproctor/photobooth
58cc86a3f984b2c53fdcb994a33678e86551a501
[ "MIT" ]
null
null
null
#Config settings to change behavior of photo booth file_path = '/home/pi/Pictures/Photobooth/' # path to save images clear_on_startup = False # True will clear previously stored photos as the program launches. False will leave all previous photos. post_online = False # True to upload images. False to store locally only...
85.6875
257
0.723559
file_path = '/home/pi/Pictures/Photobooth/' clear_on_startup = False post_online = False print_photos = True printer_name = 'Canon_SELPHY_CP1300' print_to_pdf = False make_gifs = False hi_res_pics = True camera_iso = False ...
true
true
1c2cd84388f75b4cb816ea1c0019bf785286caa3
43,504
py
Python
lib/network.py
Legogris/electrum-zcl
fcffa73f944c1ee8f89b0a40f3dabc5c5bbfd4ec
[ "MIT" ]
153
2018-02-26T16:22:27.000Z
2020-10-08T09:15:05.000Z
lib/network.py
Legogris/electrum-zcl
fcffa73f944c1ee8f89b0a40f3dabc5c5bbfd4ec
[ "MIT" ]
89
2018-03-03T23:17:11.000Z
2020-07-13T10:19:29.000Z
lib/network.py
Legogris/electrum-zcl
fcffa73f944c1ee8f89b0a40f3dabc5c5bbfd4ec
[ "MIT" ]
30
2018-03-03T13:41:14.000Z
2019-11-01T18:05:07.000Z
# Electrum - Lightweight Bitcoin Client # Copyright (c) 2011-2016 Thomas Voegtlin # # 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 rig...
39.72968
138
0.588796
import time import queue import os import stat import errno import random import re import select from collections import defaultdict import threading import socket import json import socks from . import util from . import bitcoin from .bitcoin import * from .interface import Connection, Interfac...
true
true
1c2cd86cb2a7af4365c15125b12c4689002cab3c
7,771
py
Python
fhirbug/Fhir/Resources/group.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
8
2019-01-06T18:11:20.000Z
2022-02-24T02:06:55.000Z
fhirbug/Fhir/Resources/group.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
5
2019-01-25T14:15:35.000Z
2021-06-01T23:22:41.000Z
fhirbug/Fhir/Resources/group.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
3
2020-10-14T23:09:29.000Z
2021-08-09T19:27:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Group) on 2019-01-25. # 2019, SMART Health IT. ## from . import domainresource class Group(domainresource.DomainResource): """ Group of multiple entities. Represents a defined co...
35.162896
116
0.62566
from . import domainresource class Group(domainresource.DomainResource): resource_type = "Group" def __init__(self, jsondict=None, strict=True, **kwargs): self.active = None self.actual = None self.characteristic = None self.code = None self.identifier = No...
true
true
1c2cd9ef28cf6bf76316a9a5fb744ba891bdc63e
5,279
py
Python
pyexamples/moran.py
AndySer37/Draw_CNN_Network
5f8c3a3c602d475de3f6d56613cfd88ab368fc75
[ "MIT" ]
null
null
null
pyexamples/moran.py
AndySer37/Draw_CNN_Network
5f8c3a3c602d475de3f6d56613cfd88ab368fc75
[ "MIT" ]
null
null
null
pyexamples/moran.py
AndySer37/Draw_CNN_Network
5f8c3a3c602d475de3f6d56613cfd88ab368fc75
[ "MIT" ]
null
null
null
import sys sys.path.append('../') from pycore.tikzeng import * from pycore.blocks import * # defined your arch arch = [ to_head( '..' ), to_cor(), to_begin(), to_input('../img/hunts.png' , name="input", width=9, height=6), #block-001 to_Pool(name="pool_b1", offset="(0,0,0)", to="(0,0,0)", wid...
59.988636
148
0.620193
import sys sys.path.append('../') from pycore.tikzeng import * from pycore.blocks import * arch = [ to_head( '..' ), to_cor(), to_begin(), to_input('../img/hunts.png' , name="input", width=9, height=6), to_Pool(name="pool_b1", offset="(0,0,0)", to="(0,0,0)", width=1, height=20, depth=40, op...
true
true
1c2cda42a13e7104efdddd228e460b4ad3ef517f
24
py
Python
testing.py
Ilvcardib69/testing123
3ed02e7e8d7aadf9211d41073f208cc58c5198e4
[ "MIT" ]
null
null
null
testing.py
Ilvcardib69/testing123
3ed02e7e8d7aadf9211d41073f208cc58c5198e4
[ "MIT" ]
null
null
null
testing.py
Ilvcardib69/testing123
3ed02e7e8d7aadf9211d41073f208cc58c5198e4
[ "MIT" ]
null
null
null
class Testing: pass
8
14
0.666667
class Testing: pass
true
true
1c2cdbd1f36593d865777d010c87cac4e9f0238d
6,750
py
Python
mistral/tests/unit/engine/test_reverse_workflow_rerun_cancelled.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
205
2015-06-21T11:51:47.000Z
2022-03-05T04:00:04.000Z
mistral/tests/unit/engine/test_reverse_workflow_rerun_cancelled.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
8
2015-06-23T14:47:58.000Z
2021-01-28T06:06:44.000Z
mistral/tests/unit/engine/test_reverse_workflow_rerun_cancelled.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
110
2015-06-14T03:34:38.000Z
2021-11-11T12:12:56.000Z
# Copyright 2016 - Brocade Communications 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 a...
33.75
78
0.63763
from unittest import mock from oslo_config import cfg from mistral.actions import std_actions from mistral.db.v2 import api as db_api from mistral.services import workbooks as wb_service from mistral.tests.unit.engine import base from mistral.workflow import states from mistral_lib import actions as ml_...
true
true
1c2cdc63782d129ae8916ef7cfc9b2ab641a58c5
3,242
py
Python
train_code/train_crnn/prepare_data.py
mathemusician/ocr_pytorch
07e56f4d240ca76d5cb447c912fef573a0869577
[ "MIT" ]
5
2021-08-23T10:25:48.000Z
2022-01-22T23:03:39.000Z
train_code/train_crnn/prepare_data.py
mathemusician/ocr_pytorch
07e56f4d240ca76d5cb447c912fef573a0869577
[ "MIT" ]
null
null
null
train_code/train_crnn/prepare_data.py
mathemusician/ocr_pytorch
07e56f4d240ca76d5cb447c912fef573a0869577
[ "MIT" ]
2
2021-09-04T11:07:50.000Z
2021-12-12T06:13:21.000Z
""" 1) convert image files to text file 2) transfer characters from text file to pickled file """ import os import config import pickle as pl from typing import Any from pathed import Path, filedir, cwd def make_text_file(image_dir): """ makes text_file.txt which contains file_paths to images and the corr...
23.323741
87
0.62955
import os import config import pickle as pl from typing import Any from pathed import Path, filedir, cwd def make_text_file(image_dir): image_dir = Path(image_dir, custom=True) file_list = [ filename for filename in image_dir.ls() if ((os.path.isfile(image_dir / filename))...
true
true
1c2cdc779d8b1de9fa3d958c94c10c2ddb50fa8c
2,341
py
Python
test/test_model.py
tjingrant/onnx-tf
3412d86238bf99bf4908e829af115693df161988
[ "Apache-2.0" ]
16
2017-10-27T20:07:57.000Z
2021-07-14T02:01:27.000Z
test/test_model.py
tjingrant/onnx-tf
3412d86238bf99bf4908e829af115693df161988
[ "Apache-2.0" ]
3
2017-10-29T04:10:04.000Z
2017-10-31T15:06:20.000Z
test/test_model.py
tjingrant/onnx-tf
3412d86238bf99bf4908e829af115693df161988
[ "Apache-2.0" ]
1
2021-03-18T23:23:23.000Z
2021-03-18T23:23:23.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import numpy as np import tensorflow as tf import onnx from onnx_tf.backend import run_node, prepare from onnx import helper from onnx.onnx_pb2 import Ten...
34.426471
79
0.597608
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import numpy as np import tensorflow as tf import onnx from onnx_tf.backend import run_node, prepare from onnx import helper from onnx.onnx_pb2 import Ten...
true
true
1c2cdcee8c20701e6b9c30738803954fe5a98f17
2,347
py
Python
Python/lexer/src/tokens.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
Python/lexer/src/tokens.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
Python/lexer/src/tokens.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
tokens = [ ('{', 'LKEY'), ('}', 'RKEY'), ('[', 'LBRACKETS'), (']', 'RBRACKETS'), ('(', 'LPARENTHESES'), (')', 'RPARENTHESES'), ('+', 'PLUS'), ('-', 'MINUS'), ('/', 'DIVISION'), ('%', 'MODULO'), ('~', 'NOT'), ('=', 'EQUALS'), ('<', 'LT'), ('>', 'GT'), ('<=', 'L...
19.889831
44
0.342991
tokens = [ ('{', 'LKEY'), ('}', 'RKEY'), ('[', 'LBRACKETS'), (']', 'RBRACKETS'), ('(', 'LPARENTHESES'), (')', 'RPARENTHESES'), ('+', 'PLUS'), ('-', 'MINUS'), ('/', 'DIVISION'), ('%', 'MODULO'), ('~', 'NOT'), ('=', 'EQUALS'), ('<', 'LT'), ('>', 'GT'), ('<=', 'L...
true
true
1c2cdd16677c9730abc586127f04cef9da7a2435
5,825
py
Python
server/libs/outputs/output_raspi.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
195
2019-12-26T11:19:27.000Z
2022-03-28T04:20:34.000Z
server/libs/outputs/output_raspi.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
144
2019-09-07T19:10:13.000Z
2022-03-30T07:24:02.000Z
server/libs/outputs/output_raspi.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
51
2019-12-02T00:13:47.000Z
2022-03-29T17:26:47.000Z
from libs.outputs.output import Output # pylint: disable=E0611, E0401 import numpy as np import logging class OutputRaspi(Output): def __init__(self, device): # Call the constructor of the base class. super(OutputRaspi, self).__init__(device) self.logger = logging.getLogger(__name__) ...
50.215517
173
0.647039
from libs.outputs.output import Output import numpy as np import logging class OutputRaspi(Output): def __init__(self, device): super(OutputRaspi, self).__init__(device) self.logger = logging.getLogger(__name__) import _rpi_ws281x as ws output_id = "output_raspi" ...
true
true
1c2cdd4c96a07c86e4063ad6ac2cbf5917e09ecf
6,784
py
Python
bluesky_queueserver/server/server.py
cryos/bluesky-queueserver
26779cfb9795f29718769a0334295101c9c8e928
[ "BSD-3-Clause" ]
null
null
null
bluesky_queueserver/server/server.py
cryos/bluesky-queueserver
26779cfb9795f29718769a0334295101c9c8e928
[ "BSD-3-Clause" ]
null
null
null
bluesky_queueserver/server/server.py
cryos/bluesky-queueserver
26779cfb9795f29718769a0334295101c9c8e928
[ "BSD-3-Clause" ]
null
null
null
import asyncio import logging from enum import Enum import zmq import zmq.asyncio from fastapi import FastAPI, HTTPException logger = logging.getLogger(__name__) """ # The following plans that can be used to test the server http POST http://localhost:8080/add_to_queue plan:='{"name":"count", "args":[["det1", "det2...
30.696833
115
0.667748
import asyncio import logging from enum import Enum import zmq import zmq.asyncio from fastapi import FastAPI, HTTPException logger = logging.getLogger(__name__) class ZMQ_Comm: def __init__(self, zmq_host='localhost', zmq_port='5555'): self._loop = asyncio.get_event_loop() self._ctx ...
true
true
1c2cdd8d2589cf367c8d58ec2633071a4db6a946
3,878
py
Python
karl_markov.py
hawkw/COMINTERNALS
dfa3da4352414e27fa08b0672ec95c65f3807bd5
[ "CC0-1.0" ]
null
null
null
karl_markov.py
hawkw/COMINTERNALS
dfa3da4352414e27fa08b0672ec95c65f3807bd5
[ "CC0-1.0" ]
null
null
null
karl_markov.py
hawkw/COMINTERNALS
dfa3da4352414e27fa08b0672ec95c65f3807bd5
[ "CC0-1.0" ]
null
null
null
import markovify import textwrap import re model_json_path = "karl.json" cite_re = re.compile( r"""([0-9IVXMivx]*[\.\s,;]*(?:[0-9IVXMivx]+[\.\s;,]*c[\.\s;,]*)?[\.\s;,]*(?:(?:(?:t)|(?:Vol)|(?:Book)|(?:Ch))[\.\s,;]+[0-9IVXMivx]+[\.\s;,]*)*[\.\s,]*[p]+(?:[\.\s;,]+[0-9IVXMivx]+[\.\s,;]*)+)""", re.MULTILINE) hyphen_newli...
34.936937
195
0.552347
import markovify import textwrap import re model_json_path = "karl.json" cite_re = re.compile( r"""([0-9IVXMivx]*[\.\s,;]*(?:[0-9IVXMivx]+[\.\s;,]*c[\.\s;,]*)?[\.\s;,]*(?:(?:(?:t)|(?:Vol)|(?:Book)|(?:Ch))[\.\s,;]+[0-9IVXMivx]+[\.\s;,]*)*[\.\s,]*[p]+(?:[\.\s;,]+[0-9IVXMivx]+[\.\s,;]*)+)""", re.MULTILINE) hyphen_newli...
true
true
1c2cddd59cc5334436eae05da35778bc3a6ac137
4,674
py
Python
models/User.py
jacobbieker/smugwrapper
b1ccf198bb6c3c98f7c5dcf77471fad50ca13ae6
[ "MIT" ]
2
2017-12-11T22:33:50.000Z
2021-03-20T23:09:26.000Z
models/User.py
jacobbieker/smugwrapper
b1ccf198bb6c3c98f7c5dcf77471fad50ca13ae6
[ "MIT" ]
10
2018-06-14T18:57:29.000Z
2022-01-06T02:09:26.000Z
models/User.py
jacobbieker/smugwrapper
b1ccf198bb6c3c98f7c5dcf77471fad50ca13ae6
[ "MIT" ]
null
null
null
import http import SmugMug import Image, Album, Folder, Node, UserProfile, AlbumImage class User(object): def __init__(self, name, smugmug=None): self.name = name self.account_status = None self.first_name = "" self.friends_view = False self.image_count = 0 self.is_t...
36.80315
117
0.619812
import http import SmugMug import Image, Album, Folder, Node, UserProfile, AlbumImage class User(object): def __init__(self, name, smugmug=None): self.name = name self.account_status = None self.first_name = "" self.friends_view = False self.image_count = 0 self.is_t...
true
true
1c2cde369b76344112d3b0f62cd45ad785238f20
548
py
Python
python/movedirs.py
fieldingtron/wktvusa.com
42ddfd001decc7c0c45246ec24092f78e0744cf0
[ "MIT" ]
1
2018-11-15T13:14:54.000Z
2018-11-15T13:14:54.000Z
python/movedirs.py
fieldingtron/wktvusa
0e18e217ee68c76d20b6829f20fd5619b48f0e8b
[ "MIT" ]
3
2020-07-17T03:55:37.000Z
2021-05-09T00:07:22.000Z
python/movedirs.py
fieldingtron/wktvusa
0e18e217ee68c76d20b6829f20fd5619b48f0e8b
[ "MIT" ]
null
null
null
import os import shutil path = 'c:\\projects\\hc2\\' path = os.path.join("content", "videos") folders = [] # r=root, d=directories, f = files for r, d, f in os.walk(path): for folder in d: # folders.append(os.path.join(r, folder)) folders.append(folder) print("folder " + folder) o...
26.095238
58
0.580292
import os import shutil path = 'c:\\projects\\hc2\\' path = os.path.join("content", "videos") folders = [] for r, d, f in os.walk(path): for folder in d: folders.append(folder) print("folder " + folder) oldname = os.path.join(r, folder,"index.md") newname = os.path.join...
true
true
1c2cde7f41d93bc9e0314ddb787048325ffe28bd
992
py
Python
diskimager.py
gallimania/lanbackuputil
d873bf852a98dc5c17987e3b6f38d060260a0de4
[ "MIT" ]
1
2020-01-14T06:15:51.000Z
2020-01-14T06:15:51.000Z
diskimager.py
gallimania/lanbackuputil
d873bf852a98dc5c17987e3b6f38d060260a0de4
[ "MIT" ]
1
2018-08-27T03:12:21.000Z
2018-08-27T03:12:21.000Z
diskimager.py
gallimania/netbackuputil
d873bf852a98dc5c17987e3b6f38d060260a0de4
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Garrett Fifer # # This file contains the functions needed to provide to main python file with the ability # create and write ISO image files in order to provide an easy container for backed-up files. # # Begin diskimager.py try: from cStringIO import StringIO as BytesIO except ImportError: fr...
32
101
0.745968
try: from cStringIO import StringIO as BytesIO except ImportError: from io import BytesIO import pycdlib def create_iso_image(): backup_iso = pycdlib.PyCdlib() iso.new() def add_iso_dir(): dir_path = input('Path to directory with files you wish to backup to server: ') iso.add_directory(dir_path...
true
true
1c2cdfc3bee042f498baac38566de655d6a0cdc2
5,117
py
Python
mix_style.py
tien1504/idinvert_pytorch
19999e9945aef4843a464930426a565256863ded
[ "MIT" ]
319
2020-07-21T02:26:55.000Z
2022-03-29T18:12:47.000Z
mix_style.py
tien1504/idinvert_pytorch
19999e9945aef4843a464930426a565256863ded
[ "MIT" ]
29
2020-07-21T03:19:56.000Z
2022-02-15T09:14:56.000Z
mix_style.py
tien1504/idinvert_pytorch
19999e9945aef4843a464930426a565256863ded
[ "MIT" ]
53
2020-07-22T07:47:52.000Z
2022-03-30T15:08:14.000Z
# python 3.6 """Mixes styles with In-domain GAN Inversion. The real images should be first inverted to latent codes with `invert.py`. After that, this script can be used for style mixing. NOTE: This script will mix every `style-content` image pair from style directory to content directory. """ import os import argpa...
41.266129
80
0.693375
import os import argparse from tqdm import tqdm import numpy as np from models.helper import build_generator from utils.logger import setup_logger from utils.editor import mix_style from utils.visualizer import load_image from utils.visualizer import HtmlPageVisualizer def parse_args(): parser = argparse.Argumen...
true
true
1c2ce02887f28d749adfb08b9531827e4142048e
312
py
Python
docs/examples/dns/google/dns_internal_auth.py
zimventures/libcloud
be0765df384f1baccde24539156119856cb96816
[ "Apache-2.0" ]
1,435
2015-01-07T05:32:51.000Z
2022-03-25T19:39:34.000Z
docs/examples/dns/google/dns_internal_auth.py
zimventures/libcloud
be0765df384f1baccde24539156119856cb96816
[ "Apache-2.0" ]
1,158
2015-01-04T18:08:42.000Z
2022-03-24T14:34:57.000Z
docs/examples/dns/google/dns_internal_auth.py
zimventures/libcloud
be0765df384f1baccde24539156119856cb96816
[ "Apache-2.0" ]
832
2015-01-05T09:20:21.000Z
2022-03-24T19:22:19.000Z
from libcloud.dns.types import Provider from libcloud.dns.providers import get_driver # This example assumes you are running an instance within Google Compute Engine # in which case you only need to provide the project ID. DNSDriver = get_driver(Provider.GOOGLE) driver = DNSDriver('', '', project='project ID')
44.571429
79
0.791667
from libcloud.dns.types import Provider from libcloud.dns.providers import get_driver DNSDriver = get_driver(Provider.GOOGLE) driver = DNSDriver('', '', project='project ID')
true
true
1c2ce0a24df2ae151ddf420bead8e986e77917b2
7,167
py
Python
src/clld/cliutil.py
blurks/clld
d9900f88af726eb6a4d2668f517d5af23bcc6f9d
[ "MIT" ]
32
2015-02-22T02:09:29.000Z
2022-02-18T14:40:16.000Z
src/clld/cliutil.py
blurks/clld
d9900f88af726eb6a4d2668f517d5af23bcc6f9d
[ "MIT" ]
199
2015-01-05T11:58:38.000Z
2022-02-22T14:34:52.000Z
src/clld/cliutil.py
blurks/clld
d9900f88af726eb6a4d2668f517d5af23bcc6f9d
[ "MIT" ]
18
2015-01-23T13:00:47.000Z
2022-02-21T16:32:36.000Z
"""Shared functionality for clld console scripts.""" import sys import pathlib import argparse import warnings import functools import importlib import collections from sqlalchemy import engine_from_config from pyramid.paster import get_appsettings, bootstrap from nameparser import HumanName from clldutils.misc import...
33.806604
95
0.619646
import sys import pathlib import argparse import warnings import functools import importlib import collections from sqlalchemy import engine_from_config from pyramid.paster import get_appsettings, bootstrap from nameparser import HumanName from clldutils.misc import slug from clld.db.meta import DBSession, Base from ...
true
true
1c2ce0dd82a785f6abbfad925561a8ddf77a8cb9
3,668
py
Python
huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_engress_eip_v2_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_engress_eip_v2_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_engress_eip_v2_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateEngressEipV2Request: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): ...
26.388489
79
0.56325
import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateEngressEipV2Request: sensitive_list = [] openapi_types = { 'instance_id': 'str', 'body': 'OpenEngressEipReq' } attribute_map = { 'instance_id': 'instance_id', ...
true
true
1c2ce2462fbe0b2370b982dd9c8330ec8406d551
5,573
py
Python
lightconvpoint/nn/conv_fkaconv.py
valeoai/POCO
c6ab56b1b7f01c51d1bc6987eae0a8c79725e63f
[ "Apache-2.0" ]
13
2022-01-07T07:53:15.000Z
2022-03-31T10:53:43.000Z
lightconvpoint/nn/conv_fkaconv.py
valeoai/POCO
c6ab56b1b7f01c51d1bc6987eae0a8c79725e63f
[ "Apache-2.0" ]
2
2022-02-16T18:58:22.000Z
2022-03-28T11:34:03.000Z
lightconvpoint/nn/conv_fkaconv.py
valeoai/POCO
c6ab56b1b7f01c51d1bc6987eae0a8c79725e63f
[ "Apache-2.0" ]
3
2022-01-25T05:24:31.000Z
2022-03-28T07:17:44.000Z
import torch import torch.nn as nn import torch.nn.functional as F from math import ceil # from lightconvpoint.spatial import knn, sampling_quantized from lightconvpoint.utils.functional import batch_gather import torch class Convolution_FKAConv(torch.nn.Module): def __init__(self, in_channels, out_channels, ker...
37.911565
148
0.570967
import torch import torch.nn as nn import torch.nn.functional as F from math import ceil from lightconvpoint.utils.functional import batch_gather import torch class Convolution_FKAConv(torch.nn.Module): def __init__(self, in_channels, out_channels, kernel_size=16, bias=False, dim=3, kernel_separation=False, ada...
true
true
1c2ce26db0156de6165c1332f32d5a91c6348de4
2,279
py
Python
data/p4VQE/R4/benchmark/startQiskit_noisy12.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy12.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy12.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=7 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collection...
26.195402
118
0.628346
import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from qiskit.tes...
true
true
1c2ce294e199b890881d8682eef9ec7edaf7f4f3
1,822
py
Python
mint/types/unfinished_block.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
12
2021-08-18T20:53:31.000Z
2022-03-15T21:45:13.000Z
mint/types/unfinished_block.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
34
2021-08-18T19:12:11.000Z
2022-01-06T17:15:34.000Z
mint/types/unfinished_block.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
7
2021-08-18T20:53:34.000Z
2022-03-15T08:37:40.000Z
from dataclasses import dataclass from typing import List, Optional from mint.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo from mint.types.blockchain_format.program import SerializedProgram from mint.types.blockchain_format.reward_chain_block import RewardChainBlockUnfinish...
42.372093
104
0.791438
from dataclasses import dataclass from typing import List, Optional from mint.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo from mint.types.blockchain_format.program import SerializedProgram from mint.types.blockchain_format.reward_chain_block import RewardChainBlockUnfinish...
true
true
1c2ce3b36a271a491d36bcea60e375acdecee587
2,926
py
Python
src/probabilistic_models/grammars.py
pfreifer/zxcvbn
22674a65bc6ff56281bdd5415ebdb30bb19811ef
[ "MIT" ]
null
null
null
src/probabilistic_models/grammars.py
pfreifer/zxcvbn
22674a65bc6ff56281bdd5415ebdb30bb19811ef
[ "MIT" ]
null
null
null
src/probabilistic_models/grammars.py
pfreifer/zxcvbn
22674a65bc6ff56281bdd5415ebdb30bb19811ef
[ "MIT" ]
null
null
null
import probabilistic_models.grammar_utils as gru from zxcvbn_functions.frequency_lists import FREQUENCY_LISTS import pickle def build_dict(list): d = dict() for w in list: if w in d: d[w] += 1 else: d[w] = 1 return d FREQUENCY_DICTIONARIES = {} def add_frequen...
28.407767
81
0.55434
import probabilistic_models.grammar_utils as gru from zxcvbn_functions.frequency_lists import FREQUENCY_LISTS import pickle def build_dict(list): d = dict() for w in list: if w in d: d[w] += 1 else: d[w] = 1 return d FREQUENCY_DICTIONARIES = {} def add_frequen...
true
true
1c2ce3fd309b26cb12ed1f9e97e75f11dd12f949
5,089
py
Python
neuro-cli/tests/unit/test_click_utils.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-cli/tests/unit/test_click_utils.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-cli/tests/unit/test_click_utils.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
from textwrap import dedent from click.testing import CliRunner from neuro_cli.main import MainGroup from neuro_cli.root import Root from neuro_cli.utils import DeprecatedGroup, command, group def test_print() -> None: @group() def sub_command() -> None: pass @command() async def plain_cmd(...
20.771429
86
0.565927
from textwrap import dedent from click.testing import CliRunner from neuro_cli.main import MainGroup from neuro_cli.root import Root from neuro_cli.utils import DeprecatedGroup, command, group def test_print() -> None: @group() def sub_command() -> None: pass @command() async def plain_cmd(...
true
true
1c2ce440cdcc2c092b20677207323cedbe5e1b4d
5,554
py
Python
data/librispeech.py
Peach-He/deepspeech
ef99c8f3c1eaabc0d5e9b2a7b366d5c0a6456d16
[ "MIT" ]
null
null
null
data/librispeech.py
Peach-He/deepspeech
ef99c8f3c1eaabc0d5e9b2a7b366d5c0a6456d16
[ "MIT" ]
null
null
null
data/librispeech.py
Peach-He/deepspeech
ef99c8f3c1eaabc0d5e9b2a7b366d5c0a6456d16
[ "MIT" ]
null
null
null
import os import wget import tarfile import argparse import subprocess from utils import create_manifest from tqdm import tqdm import shutil parser = argparse.ArgumentParser(description='Processes and downloads LibriSpeech dataset.') parser.add_argument("--target-dir", default='LibriSpeech_dataset/', type=str, help="D...
47.87931
117
0.617213
import os import wget import tarfile import argparse import subprocess from utils import create_manifest from tqdm import tqdm import shutil parser = argparse.ArgumentParser(description='Processes and downloads LibriSpeech dataset.') parser.add_argument("--target-dir", default='LibriSpeech_dataset/', type=str, help="D...
true
true
1c2ce441da030c6da08196c2cdf3f504a68ae65c
47
py
Python
codigofacilito/__init__.py
eduardogpg/codigofacilito_package
f1691f087a0cf567e5f97c939106cc4852d5f6f0
[ "MIT" ]
1
2022-01-13T00:12:54.000Z
2022-01-13T00:12:54.000Z
codigofacilito/__init__.py
eduardogpg/codigofacilito_package
f1691f087a0cf567e5f97c939106cc4852d5f6f0
[ "MIT" ]
null
null
null
codigofacilito/__init__.py
eduardogpg/codigofacilito_package
f1691f087a0cf567e5f97c939106cc4852d5f6f0
[ "MIT" ]
4
2022-01-13T00:29:31.000Z
2022-01-24T23:48:33.000Z
from codigofacilito.workshops import unreleased
47
47
0.914894
from codigofacilito.workshops import unreleased
true
true
1c2ce50f1e76aa809b860bc9c7b496d390f10c10
279
py
Python
Leetcode/921. Minimum Add to Make Parentheses Valid/solution1.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/921. Minimum Add to Make Parentheses Valid/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/921. Minimum Add to Make Parentheses Valid/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
class Solution: def minAddToMakeValid(self, S: str) -> int: result = counter = 0 for c in S: counter += 1 if c == '(' else -1 if counter == -1: counter += 1 result += 1 return result + counter
23.25
47
0.448029
class Solution: def minAddToMakeValid(self, S: str) -> int: result = counter = 0 for c in S: counter += 1 if c == '(' else -1 if counter == -1: counter += 1 result += 1 return result + counter
true
true
1c2ce6145b672cdd2bcd88e082ca1018c3e4ea4d
4,659
py
Python
src/FunctionApps/python/IntakePipeline/fhir.py
CDCgov/prime-public-health-data-infrastructure
7e4849c3a486a84e94765bf0023b80261c510c57
[ "Apache-2.0" ]
3
2022-02-24T18:16:39.000Z
2022-03-29T20:21:41.000Z
src/FunctionApps/python/IntakePipeline/fhir.py
CDCgov/prime-public-health-data-infrastructure
7e4849c3a486a84e94765bf0023b80261c510c57
[ "Apache-2.0" ]
17
2022-02-08T17:13:55.000Z
2022-03-28T16:49:00.000Z
src/FunctionApps/python/IntakePipeline/fhir.py
CDCgov/prime-public-health-data-infrastructure
7e4849c3a486a84e94765bf0023b80261c510c57
[ "Apache-2.0" ]
3
2022-02-27T23:12:50.000Z
2022-03-17T04:51:47.000Z
from datetime import datetime, timezone import json import logging import pathlib import requests from requests.adapters import HTTPAdapter from urllib3 import Retry from azure.core.credentials import AccessToken from azure.identity import DefaultAzureCredential from azure.storage.blob import ContainerClient def get...
36.398438
93
0.68255
from datetime import datetime, timezone import json import logging import pathlib import requests from requests.adapters import HTTPAdapter from urllib3 import Retry from azure.core.credentials import AccessToken from azure.identity import DefaultAzureCredential from azure.storage.blob import ContainerClient def get...
true
true
1c2ce642c0b84948b0a1c1957666b41eb9af6cfb
468
py
Python
corehq/apps/data_dictionary/migrations/0006_caseproperty_group.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/data_dictionary/migrations/0006_caseproperty_group.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/data_dictionary/migrations/0006_caseproperty_group.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data_dictionary', '0005_casetype_fully_generated'), ] operations = [ migrations.AddFi...
22.285714
61
0.641026
from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data_dictionary', '0005_casetype_fully_generated'), ] operations = [ migrations.AddField( model_...
true
true
1c2ce6bfac193cc81e3a31decba1d40c981bad46
14,385
py
Python
test/functional/mempool_accept.py
Bits-Coin/bits-coin
dd8220018f5582e76d43e8c52bd323524e495d8c
[ "MIT" ]
2
2021-11-17T23:05:13.000Z
2021-11-17T23:05:32.000Z
test/functional/mempool_accept.py
Bits-Coin/bits-coin
dd8220018f5582e76d43e8c52bd323524e495d8c
[ "MIT" ]
null
null
null
test/functional/mempool_accept.py
Bits-Coin/bits-coin
dd8220018f5582e76d43e8c52bd323524e495d8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The BitsCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool acceptance of raw transactions.""" from io import BytesIO from test_framework.test_framework ...
48.597973
154
0.64456
from io import BytesIO from test_framework.test_framework import BitsCoinTestFramework from test_framework.messages import ( BIP125_SEQUENCE_NUMBER, COIN, COutPoint, CTransaction, CTxOut, MAX_BLOCK_BASE_SIZE, ) from test_framework.script import ( hash160, CScript, OP_0, OP_E...
true
true
1c2ce766f24df8bf11f59ac9a48bcb2d11b81e6b
24,493
py
Python
src/ros_robodk_post_processors/robodk_post_processors/Comau_C5G_Joints.py
jeritgeorge/ros_robodk_post_processors
dd6fda231c5bcf964bf177b1737dc4b06c27cd33
[ "BSD-3-Clause" ]
null
null
null
src/ros_robodk_post_processors/robodk_post_processors/Comau_C5G_Joints.py
jeritgeorge/ros_robodk_post_processors
dd6fda231c5bcf964bf177b1737dc4b06c27cd33
[ "BSD-3-Clause" ]
null
null
null
src/ros_robodk_post_processors/robodk_post_processors/Comau_C5G_Joints.py
jeritgeorge/ros_robodk_post_processors
dd6fda231c5bcf964bf177b1737dc4b06c27cd33
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 - RoboDK Software S.L. - http://www.robodk.com/ # 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...
41.164706
165
0.548565
SAGE_TP = '''-- Display message on the teach pendant: WIN_DEL ('menu:') -- popup window over window USR1 WIN_POPUP('POP1:', 'USR1:') -- open a lun on window POP1 OPEN FILE lun ('POP1:', 'rw') WRITE lun ('%s', NL) CLOSE FILE lun -- let user read the message DELAY 5...
true
true
1c2ce77bb97a40c4ab8829fd4394cd5dbd6f7523
373
py
Python
core/migrations/0003_alter_address_options.py
Gandabh/E-commerce-Site
8bc4ca85c9cd6f3ed1435e5767aef4ab315df559
[ "MIT" ]
1
2022-01-01T21:46:48.000Z
2022-01-01T21:46:48.000Z
core/migrations/0003_alter_address_options.py
Gandabh/E-commerce-Site
8bc4ca85c9cd6f3ed1435e5767aef4ab315df559
[ "MIT" ]
null
null
null
core/migrations/0003_alter_address_options.py
Gandabh/E-commerce-Site
8bc4ca85c9cd6f3ed1435e5767aef4ab315df559
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-08-20 15:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0002_address'), ] operations = [ migrations.AlterModelOptions( name='address', options={'verbose_name': 'Address', '...
20.722222
84
0.603217
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0002_address'), ] operations = [ migrations.AlterModelOptions( name='address', options={'verbose_name': 'Address', 'verbose_name_plural': 'Addresses'}, ), ...
true
true
1c2ce7b37f5d8879fdad3b05ee37439372f0f157
6,635
py
Python
lib/notetaker/days.py
Ghalko/noteTaker
f294dbc5fe0c9073837562e0466292d18fafc1ff
[ "MIT" ]
null
null
null
lib/notetaker/days.py
Ghalko/noteTaker
f294dbc5fe0c9073837562e0466292d18fafc1ff
[ "MIT" ]
null
null
null
lib/notetaker/days.py
Ghalko/noteTaker
f294dbc5fe0c9073837562e0466292d18fafc1ff
[ "MIT" ]
1
2019-09-07T05:31:15.000Z
2019-09-07T05:31:15.000Z
"""Creates a scrolling canvas in which days are separated into their own text boxes of varying sizes for easier date reading and fewer days loaded.""" from Tkinter import (Tk, Frame, Scrollbar, Canvas, Button, Text, WORD, BOTH, VERTICAL, END, Y, NW, RIGHT, LEFT, FALSE, TRUE) import notetaker.ncore...
37.914286
79
0.593971
from Tkinter import (Tk, Frame, Scrollbar, Canvas, Button, Text, WORD, BOTH, VERTICAL, END, Y, NW, RIGHT, LEFT, FALSE, TRUE) import notetaker.ncore as ncore import notetaker.utils as utils import datetime class VerticalScrolledFrame(Frame): def __init__(self, parent, *args, **kw): Fra...
true
true
1c2ce7e1672b943bb64dd2c1a67898c7f6b659b8
3,629
py
Python
examples/colors.py
Doradx/luma.examples
d4641281fe18ffc5cfd6c307c79e7d7fefc36ffa
[ "MIT" ]
null
null
null
examples/colors.py
Doradx/luma.examples
d4641281fe18ffc5cfd6c307c79e7d7fefc36ffa
[ "MIT" ]
null
null
null
examples/colors.py
Doradx/luma.examples
d4641281fe18ffc5cfd6c307c79e7d7fefc36ffa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014-18 Richard Hull and contributors # See LICENSE.rst for details. # PYTHON_ARGCOMPLETE_OK """ Color rendering demo. """ import math import time import random import os.path from demo_opts import get_device from luma.core.render import canvas from PIL im...
33.601852
104
0.488013
import math import time import random import os.path from demo_opts import get_device from luma.core.render import canvas from PIL import Image def main(): img_path = os.path.abspath(os.path.join( os.path.dirname(__file__), 'images', 'balloon.png')) balloon = Image.open(img_path) \ .tra...
true
true
1c2ce7feb96ee701287ac30e62477274a15affa0
58,647
py
Python
chia/wallet/wallet_state_manager.py
Hydrangea-Network/hydrangea-blockchain
d15662329958dbdaa9cbd99733ba729f0e74ce54
[ "Apache-2.0" ]
1
2022-03-15T06:41:49.000Z
2022-03-15T06:41:49.000Z
chia/wallet/wallet_state_manager.py
Hydrangea-Network/hydrangea-blockchain
d15662329958dbdaa9cbd99733ba729f0e74ce54
[ "Apache-2.0" ]
null
null
null
chia/wallet/wallet_state_manager.py
Hydrangea-Network/hydrangea-blockchain
d15662329958dbdaa9cbd99733ba729f0e74ce54
[ "Apache-2.0" ]
null
null
null
import asyncio import json import logging import multiprocessing import multiprocessing.context import time from collections import defaultdict from pathlib import Path from secrets import token_bytes from typing import Any, Callable, Dict, List, Optional, Set, Tuple import aiosqlite from blspy import G1Element, Priva...
46.471474
120
0.615939
import asyncio import json import logging import multiprocessing import multiprocessing.context import time from collections import defaultdict from pathlib import Path from secrets import token_bytes from typing import Any, Callable, Dict, List, Optional, Set, Tuple import aiosqlite from blspy import G1Element, Priva...
true
true
1c2ce85606808bea6bdcd71ee1e5b60922899ec9
6,190
py
Python
src/examples/VRGameFog-IFogSim-WL/testConvergence.py
vyk1/YAFS
514f8362c90923fa28f871fcf179b755a9315c47
[ "MIT" ]
58
2018-09-19T12:00:01.000Z
2022-03-28T12:14:32.000Z
src/examples/VRGameFog-IFogSim-WL/testConvergence.py
vyk1/YAFS
514f8362c90923fa28f871fcf179b755a9315c47
[ "MIT" ]
55
2018-03-18T09:58:27.000Z
2022-02-19T16:40:02.000Z
src/examples/VRGameFog-IFogSim-WL/testConvergence.py
vyk1/YAFS
514f8362c90923fa28f871fcf179b755a9315c47
[ "MIT" ]
51
2018-05-30T11:33:10.000Z
2022-03-14T15:37:01.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Sep 6 16:48:57 2018 @author: isaaclera """ import numpy as np YFAS4 = [11.270442, 11.270623, 11.270012, 11.270021, 11.270031, 11.269538, 11.269547, 11.268429, 11.270591, 11.269940, 11.268374, 11.270021, 11.268418, 11.268944, 11.268985, 11.269444, 11....
15.097561
35
0.794507
import numpy as np YFAS4 = [11.270442, 11.270623, 11.270012, 11.270021, 11.270031, 11.269538, 11.269547, 11.268429, 11.270591, 11.269940, 11.268374, 11.270021, 11.268418, 11.268944, 11.268985, 11.269444, 11.270576, 11.270090, 11.268944, 11.269489, 11.269405, 11.268916, 11.269418, 11.270576, 11.268837, 11.269988, 11...
true
true
1c2ceabba4122f488ae08dc526fe1f465bea18a9
1,302
py
Python
src/ucar/unidata/idv/resources/python/image.py
slclark/IDV
2d4b857b0f4b42e4cd1059bca2c8a5485baeab57
[ "CNRI-Jython" ]
48
2015-02-22T05:05:01.000Z
2022-03-14T14:23:41.000Z
src/ucar/unidata/idv/resources/python/image.py
slclark/IDV
2d4b857b0f4b42e4cd1059bca2c8a5485baeab57
[ "CNRI-Jython" ]
40
2015-02-09T19:25:29.000Z
2022-02-16T00:21:08.000Z
src/ucar/unidata/idv/resources/python/image.py
slclark/IDV
2d4b857b0f4b42e4cd1059bca2c8a5485baeab57
[ "CNRI-Jython" ]
28
2015-04-03T05:43:00.000Z
2022-01-31T23:41:20.000Z
def makeNavigatedImage (d,ulLat,ulLon,lrLat,lrLon): """This takes a image data object and a lat/lon bounding box and adds a lat/lon domain to the data. Use it in conjunction with a formula: """ from visad import Linear2DSet from visad import RealTupleType ulLat=float(ulLat) ulLon=float(ulLon) lrLa...
37.2
136
0.745776
def makeNavigatedImage (d,ulLat,ulLon,lrLat,lrLon): from visad import Linear2DSet from visad import RealTupleType ulLat=float(ulLat) ulLon=float(ulLon) lrLat=float(lrLat) lrLon=float(lrLon) domain = d.getDomainSet() newDomain = Linear2DSet(RealTupleType.SpatialEarth2DTuple,ulLon,lrLon,domain.getX().g...
true
true
1c2ceacbabd17b9b013f7be8a942911c72c4a22a
19,513
py
Python
google/ads/googleads/v4/services/services/conversion_adjustment_upload_service/client.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/services/services/conversion_adjustment_upload_service/client.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/services/services/conversion_adjustment_upload_service/client.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- 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 o...
41.694444
179
0.641982
from collections import OrderedDict from distutils import util import os import re from typing import Dict, Optional, Sequence, Tuple, Type, Union from google.api_core import client_options as client_options_lib from google.api_core import exceptions from google.api_core import gapic_v1 from goo...
true
true
1c2ceb47acf990e1976742cdc5fdc40fc0cdd355
9,879
py
Python
tools/analysis_tools/confusion_matrix.py
PhilippMarquardt/mmdetection
5979e13f7faea90f4b80079320b93585300c6a4f
[ "Apache-2.0" ]
1
2019-08-18T18:04:21.000Z
2019-08-18T18:04:21.000Z
tools/analysis_tools/confusion_matrix.py
PhilippMarquardt/mmdetection
5979e13f7faea90f4b80079320b93585300c6a4f
[ "Apache-2.0" ]
1
2022-01-06T14:58:44.000Z
2022-01-06T14:58:44.000Z
tools/analysis_tools/confusion_matrix.py
PhilippMarquardt/mmdetection
5979e13f7faea90f4b80079320b93585300c6a4f
[ "Apache-2.0" ]
1
2021-12-13T02:37:50.000Z
2021-12-13T02:37:50.000Z
import argparse import os import matplotlib.pyplot as plt import mmcv import numpy as np from matplotlib.ticker import MultipleLocator from mmcv import Config, DictAction from mmcv.ops import nms from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps from mmdet.datasets import build_dataset from mmdet.utils im...
36.453875
79
0.596012
import argparse import os import matplotlib.pyplot as plt import mmcv import numpy as np from matplotlib.ticker import MultipleLocator from mmcv import Config, DictAction from mmcv.ops import nms from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps from mmdet.datasets import build_dataset from mmdet.utils im...
true
true
1c2cebd45c1f366750dccf8309f4ff80526353ad
129
py
Python
mfi_customization/mfi/patch/set_issue_attachment.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/set_issue_attachment.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/set_issue_attachment.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
import frappe def execute(): for d in frappe.get_all("Task"): task=frappe.get_doc("Task",d.name) task.save()
21.5
42
0.612403
import frappe def execute(): for d in frappe.get_all("Task"): task=frappe.get_doc("Task",d.name) task.save()
true
true
1c2cecb6c89ff9713fb2f8396b5b557db3191585
9,196
py
Python
tests/python/pants_test/backend/jvm/tasks/jvm_compile/java/test_cache_compile_integration.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:24.000Z
2021-11-11T14:04:24.000Z
tests/python/pants_test/backend/jvm/tasks/jvm_compile/java/test_cache_compile_integration.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/jvm_compile/java/test_cache_compile_integration.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:12.000Z
2021-11-11T14:04:12.000Z
# coding=utf-8 # Copyright 2015 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 from colle...
41.053571
100
0.591453
from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from collections import namedtuple from textwrap import dedent from pants.backend.jvm.tasks.jvm_compile.zinc.zinc_compile import ZincCompile from pants....
true
true
1c2cee02a210635e110ba3cbe538ddc3b51710dd
6,958
py
Python
os_vif/objects/vif.py
mail2nsrajesh/os-vif
6a9017d1dcf2a0a4ab8bf35f39d4bfb7cb56027d
[ "Apache-2.0" ]
null
null
null
os_vif/objects/vif.py
mail2nsrajesh/os-vif
6a9017d1dcf2a0a4ab8bf35f39d4bfb7cb56027d
[ "Apache-2.0" ]
null
null
null
os_vif/objects/vif.py
mail2nsrajesh/os-vif
6a9017d1dcf2a0a4ab8bf35f39d4bfb7cb56027d
[ "Apache-2.0" ]
null
null
null
# 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, software # d...
28.4
78
0.672032
from oslo_utils import versionutils from oslo_versionedobjects import base from oslo_versionedobjects import fields from os_vif.objects import base as osv_base from os_vif.objects import fields as osv_fields @base.VersionedObjectRegistry.register class VIFBase(osv_base.VersionedObject, base.ComparableVer...
true
true
1c2cee8f013fa85696748e87d47cd717f7fc700c
328
py
Python
posts/migrations/0006_remove_like_likenumber.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
posts/migrations/0006_remove_like_likenumber.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
posts/migrations/0006_remove_like_likenumber.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-10-30 17:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0005_auto_20201006_1833'), ] operations = [ migrations.RemoveField( model_name='like', name='likenumber', )...
18.222222
47
0.591463
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0005_auto_20201006_1833'), ] operations = [ migrations.RemoveField( model_name='like', name='likenumber', ), ]
true
true
1c2ceea6f34c2496fa1ab5886b8a377f67f00059
11,085
py
Python
nova/api/ec2/ec2utils.py
bopopescu/nova_vmware_compute_driver
60d3936b68030647b9f11970c9e0d060fc286dd9
[ "Apache-2.0" ]
null
null
null
nova/api/ec2/ec2utils.py
bopopescu/nova_vmware_compute_driver
60d3936b68030647b9f11970c9e0d060fc286dd9
[ "Apache-2.0" ]
null
null
null
nova/api/ec2/ec2utils.py
bopopescu/nova_vmware_compute_driver
60d3936b68030647b9f11970c9e0d060fc286dd9
[ "Apache-2.0" ]
2
2019-07-08T22:12:35.000Z
2020-07-24T08:27:24.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
32.795858
78
0.642129
import re from nova import context from nova import db from nova import exception from nova.network import model as network_model from nova.openstack.common import log as logging from nova.openstack.common import timeutils from nova.openstack.common import uuidutils LOG = logging.getLogger(__name__)...
true
true
1c2ceeb87282ee5345ebdfd72f7fea38d9e08d23
15,567
py
Python
Lib/test/test_ftplib.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
3
2015-09-22T14:04:54.000Z
2021-07-15T07:07:11.000Z
Lib/test/test_ftplib.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
1
2020-09-07T15:33:56.000Z
2020-09-07T15:33:56.000Z
Lib/test/test_ftplib.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
2
2019-11-24T12:11:50.000Z
2020-12-26T19:00:20.000Z
"""Test script for ftplib module.""" # Modified by Giampaolo Rodola' to test FTP class and IPv6 environment import ftplib import threading import asyncore import asynchat import socket import StringIO from unittest import TestCase from test import test_support from test.test_support import HOST # the dummy data re...
30.404297
82
0.60821
import ftplib import threading import asyncore import asynchat import socket import StringIO from unittest import TestCase from test import test_support from test.test_support import HOST # the dummy data returned by server over the data channel when # RETR, LIST and NLST commands are issued RETR_DATA = 'abcde123...
true
true
1c2cefc327815da69fad35455065f2b7f216bbf5
5,791
py
Python
test/functional/p2p_fingerprint.py
Kozisto/FreedomCoin-Core
ba4f6def338c58616ece13d890393552e657d3f0
[ "MIT" ]
null
null
null
test/functional/p2p_fingerprint.py
Kozisto/FreedomCoin-Core
ba4f6def338c58616ece13d890393552e657d3f0
[ "MIT" ]
1
2022-02-11T23:23:05.000Z
2022-02-11T23:23:05.000Z
test/functional/p2p_fingerprint.py
FreedomCoin-Project/FreedomCoin-Core
46e09320dd9903137433fc71aa9186fa3cdbe866
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various fingerprinting protections. If an stale block more than a month old or its header are requeste...
38.865772
79
0.689
import time from test_framework.blocktools import (create_block, create_coinbase) from test_framework.messages import CInv from test_framework.mininode import ( P2PInterface, msg_headers, msg_block, msg_getdata, msg_getheaders, wait_until, ) from test_framework.test_framework import Freedo...
true
true
1c2cf0936b8b0a5a65d83390990bd28f150f3bcd
3,645
py
Python
vfit/util.py
zorfling/vfit
50f2aec1be45ece00167107ec469a60564645ae0
[ "MIT" ]
17
2020-07-18T17:00:03.000Z
2022-03-13T13:03:09.000Z
vfit/util.py
zorfling/vfit
50f2aec1be45ece00167107ec469a60564645ae0
[ "MIT" ]
11
2020-11-02T19:10:30.000Z
2022-02-25T02:57:31.000Z
vfit/util.py
zorfling/vfit
50f2aec1be45ece00167107ec469a60564645ae0
[ "MIT" ]
6
2020-12-30T00:02:26.000Z
2022-02-25T02:45:01.000Z
PLAT_MAC = 1 PLAT_WINDOWS = 3 ENC_ROMAN = 0 ENC_UNICODE_11 = 1 LANG_ENGLISH = 1033 MACSTYLE = {'Regular': 0, 'Bold': 1, 'Italic': 2, 'Bold Italic': 3} OVERLAP_SIMPLE = 0x40 OVERLAP_COMPOUND = 0x0400 # Removes spaces from a string. def sanitize(string): return string.replace(" ", "") # Produces a unique ID f...
25.669014
79
0.65048
PLAT_MAC = 1 PLAT_WINDOWS = 3 ENC_ROMAN = 0 ENC_UNICODE_11 = 1 LANG_ENGLISH = 1033 MACSTYLE = {'Regular': 0, 'Bold': 1, 'Italic': 2, 'Bold Italic': 3} OVERLAP_SIMPLE = 0x40 OVERLAP_COMPOUND = 0x0400 def sanitize(string): return string.replace(" ", "") def getUniqueStyleID(style): id = style["name"] ...
true
true
1c2cf10d9603cf300c6a900634fd711d3689f71c
1,823
py
Python
tests/test_observable/test_fromiterable.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
tests/test_observable/test_fromiterable.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
tests/test_observable/test_fromiterable.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
import unittest import rx3 from rx3.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disposed created = ReactiveTest.create...
26.808824
74
0.648382
import unittest import rx3 from rx3.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disposed created = ReactiveTest.create...
true
true
1c2cf128e3ee20ea0554308c2fc57970df75a721
22,701
py
Python
tests/test_periods.py
Mendybaeva/django-scheduler
eff7447993853d7d103995c6142b740aa4868ca5
[ "BSD-3-Clause" ]
null
null
null
tests/test_periods.py
Mendybaeva/django-scheduler
eff7447993853d7d103995c6142b740aa4868ca5
[ "BSD-3-Clause" ]
null
null
null
tests/test_periods.py
Mendybaeva/django-scheduler
eff7447993853d7d103995c6142b740aa4868ca5
[ "BSD-3-Clause" ]
null
null
null
import datetime import pytz from django.conf import settings from django.test import TestCase from django.test.utils import override_settings from django.utils.six.moves.builtins import range, zip from schedule.models import Calendar, Event, Rule from schedule.periods import Day, Month, Period, Week, Year class Tes...
41.883764
127
0.580944
import datetime import pytz from django.conf import settings from django.test import TestCase from django.test.utils import override_settings from django.utils.six.moves.builtins import range, zip from schedule.models import Calendar, Event, Rule from schedule.periods import Day, Month, Period, Week, Year class Tes...
true
true
1c2cf18d17ed5498a5d84cc94afa5ffe58a79da3
530
py
Python
bibbutler_web/migrations/0003_bibliography_addition.py
dolonnen/bibbuttler
a9f672d0321fa6d060e204ecc952ed333edc1d81
[ "MIT" ]
null
null
null
bibbutler_web/migrations/0003_bibliography_addition.py
dolonnen/bibbuttler
a9f672d0321fa6d060e204ecc952ed333edc1d81
[ "MIT" ]
null
null
null
bibbutler_web/migrations/0003_bibliography_addition.py
dolonnen/bibbuttler
a9f672d0321fa6d060e204ecc952ed333edc1d81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-04 12:01 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bibbutler_web', '0002_auto_20160601_2103'), ] operations = [ migrations.AddF...
25.238095
118
0.649057
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bibbutler_web', '0002_auto_20160601_2103'), ] operations = [ migrations.AddField( model_name='bibliography', name='additio...
true
true
1c2cf3a169030dcfe3159a2340d5dcc68743c019
147
py
Python
ajunivel/apps.py
HumbertoDiego/django-ajustamento-redes-nivelamento
47912ccb4ba9fc29709add18bab688af50cfb582
[ "MIT" ]
1
2022-03-06T01:10:43.000Z
2022-03-06T01:10:43.000Z
ajunivel/apps.py
HumbertoDiego/django-ajustamento-redes-nivelamento
47912ccb4ba9fc29709add18bab688af50cfb582
[ "MIT" ]
null
null
null
ajunivel/apps.py
HumbertoDiego/django-ajustamento-redes-nivelamento
47912ccb4ba9fc29709add18bab688af50cfb582
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AjunivelConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'ajunivel'
24.5
56
0.768707
from django.apps import AppConfig class AjunivelConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'ajunivel'
true
true
1c2cf665aa832a0cb1e917a9d43fe054bd1b9894
24,204
py
Python
gcloudc/db/backends/datastore/query.py
potatolondon/django-gcloud-connectors
99ac93c618a5bb8c4200fff14d13b0bff868aa94
[ "BSD-3-Clause" ]
10
2019-03-12T15:01:59.000Z
2021-12-14T02:06:21.000Z
gcloudc/db/backends/datastore/query.py
potatolondon/django-gcloud-connectors
99ac93c618a5bb8c4200fff14d13b0bff868aa94
[ "BSD-3-Clause" ]
9
2019-07-25T14:35:04.000Z
2019-12-19T11:35:49.000Z
gcloudc/db/backends/datastore/query.py
potatolondon/django-gcloud-connectors
99ac93c618a5bb8c4200fff14d13b0bff868aa94
[ "BSD-3-Clause" ]
2
2019-11-08T16:37:20.000Z
2020-05-27T15:10:27.000Z
import datetime import json import logging import re from itertools import chain from django.db import ( NotSupportedError, connections, ) from django.db.models import AutoField from django.core.exceptions import EmptyResultSet from . import POLYMODEL_CLASS_ATTRIBUTE from .indexing import ( add_special_in...
35.857778
116
0.571641
import datetime import json import logging import re from itertools import chain from django.db import ( NotSupportedError, connections, ) from django.db.models import AutoField from django.core.exceptions import EmptyResultSet from . import POLYMODEL_CLASS_ATTRIBUTE from .indexing import ( add_special_in...
true
true
1c2cf6ea1a8354b758be34d8cc95a22caeeb92af
324
py
Python
gif/datasets/setup.py
jm-begon/globally-induced-forest
bf41640a5f0d9db637877dfa077b1d529539dbc6
[ "BSD-3-Clause" ]
6
2018-01-05T11:56:27.000Z
2018-10-13T13:14:05.000Z
gif/datasets/setup.py
jm-begon/globally-induced-forest
bf41640a5f0d9db637877dfa077b1d529539dbc6
[ "BSD-3-Clause" ]
1
2018-01-05T12:04:37.000Z
2018-01-05T13:56:20.000Z
gif/datasets/setup.py
jm-begon/globally-induced-forest
bf41640a5f0d9db637877dfa077b1d529539dbc6
[ "BSD-3-Clause" ]
null
null
null
import os import numpy from numpy.distutils.misc_util import Configuration def configuration(parent_package="", top_path=None): config = Configuration("datasets", parent_package, top_path) return config if __name__ == "__main__": from numpy.distutils.core import setup setup(**configuration().todict...
21.6
64
0.75
import os import numpy from numpy.distutils.misc_util import Configuration def configuration(parent_package="", top_path=None): config = Configuration("datasets", parent_package, top_path) return config if __name__ == "__main__": from numpy.distutils.core import setup setup(**configuration().todict...
true
true
1c2cf78dec9112e6316d9dc8c45b5348f98f1275
3,185
py
Python
Plugins/BoneBox.py
CopyPasteBugs/CryBlendHelpers
0965a3beff900b69cb392df65fe01caded825da2
[ "MIT" ]
null
null
null
Plugins/BoneBox.py
CopyPasteBugs/CryBlendHelpers
0965a3beff900b69cb392df65fe01caded825da2
[ "MIT" ]
null
null
null
Plugins/BoneBox.py
CopyPasteBugs/CryBlendHelpers
0965a3beff900b69cb392df65fe01caded825da2
[ "MIT" ]
null
null
null
bl_info = { "name": "Create Box proxies for Skeletons for CryEngine 5", "author": "ArticLion", "category": "Object", "blender": (2, 77, 0) } import bpy import os import struct import sys import mathutils from math import radians from bpy.props import (BoolProperty) from bpy.props impor...
34.247312
96
0.555102
bl_info = { "name": "Create Box proxies for Skeletons for CryEngine 5", "author": "ArticLion", "category": "Object", "blender": (2, 77, 0) } import bpy import os import struct import sys import mathutils from math import radians from bpy.props import (BoolProperty) from bpy.props impor...
true
true
1c2cf799737827ae82cb008c68687ac40ab5260f
2,613
py
Python
scripts/tests/generate_host_files.py
NDevTK/cel
e97226416b6e12245564bfc1c3631d610d62f052
[ "BSD-3-Clause" ]
null
null
null
scripts/tests/generate_host_files.py
NDevTK/cel
e97226416b6e12245564bfc1c3631d610d62f052
[ "BSD-3-Clause" ]
null
null
null
scripts/tests/generate_host_files.py
NDevTK/cel
e97226416b6e12245564bfc1c3631d610d62f052
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import logging import os import sys def ParseArgs(): parser = argparse.ArgumentParser( description='Host file generator for CELab E...
31.107143
78
0.677
import argparse import logging import os import sys def ParseArgs(): parser = argparse.ArgumentParser( description='Host file generator for CELab E2E tests') all_tokens = ['project_id', 'storage_bucket', 'storage_prefix'] template_help = 'The full path to the *.host.textpb template file to use. ' t...
true
true
1c2cf82cd0a659ee5f05ba5bb1d2a9465cbdc517
5,960
py
Python
py3status/constants.py
obestwalter/py3status
a79d50ae252626bacb14bfcc8f369e59ae500fd1
[ "BSD-3-Clause" ]
null
null
null
py3status/constants.py
obestwalter/py3status
a79d50ae252626bacb14bfcc8f369e59ae500fd1
[ "BSD-3-Clause" ]
null
null
null
py3status/constants.py
obestwalter/py3status
a79d50ae252626bacb14bfcc8f369e59ae500fd1
[ "BSD-3-Clause" ]
null
null
null
# This file contains various useful constants for py3status GENERAL_DEFAULTS = { "color_bad": "#FF0000", "color_degraded": "#FFFF00", "color_good": "#00FF00", "color_separator": "#333333", "colors": False, "interval": 5, "output_format": "i3bar", } MAX_NESTING_LEVELS = 4 TIME_FORMAT = "%Y...
26.607143
84
0.568121
GENERAL_DEFAULTS = { "color_bad": "#FF0000", "color_degraded": "#FFFF00", "color_good": "#00FF00", "color_separator": "#333333", "colors": False, "interval": 5, "output_format": "i3bar", } MAX_NESTING_LEVELS = 4 TIME_FORMAT = "%Y-%m-%d %H:%M:%S" TZTIME_FORMAT = "%Y-%m-%d %H:%M:%S %Z" T...
true
true
1c2cf8860a5d04aba92fd23ccf7aa4598225d065
6,749
py
Python
SDE_CG_C/utils/evaluation.py
Zhanghaotian1/SDE_conf
90773e807ab8ccdc1963e113a2c72df16b8899c1
[ "MIT" ]
null
null
null
SDE_CG_C/utils/evaluation.py
Zhanghaotian1/SDE_conf
90773e807ab8ccdc1963e113a2c72df16b8899c1
[ "MIT" ]
null
null
null
SDE_CG_C/utils/evaluation.py
Zhanghaotian1/SDE_conf
90773e807ab8ccdc1963e113a2c72df16b8899c1
[ "MIT" ]
1
2022-01-28T07:56:28.000Z
2022-01-28T07:56:28.000Z
import numpy as np from tqdm.auto import tqdm import torch from torch_geometric.data import Data from rdkit import Chem from rdkit.Chem.rdForceFieldHelpers import MMFFOptimizeMolecule from SDE_CG import utils def get_rmsd_confusion_matrix(data: Data, useFF=False): data.pos_ref = data.pos_ref.view(-1, data.num_n...
36.090909
154
0.59594
import numpy as np from tqdm.auto import tqdm import torch from torch_geometric.data import Data from rdkit import Chem from rdkit.Chem.rdForceFieldHelpers import MMFFOptimizeMolecule from SDE_CG import utils def get_rmsd_confusion_matrix(data: Data, useFF=False): data.pos_ref = data.pos_ref.view(-1, data.num_n...
true
true
1c2cfa067573151f4c0869d0c10acd318d538534
6,182
py
Python
src/clustering.py
DianaLaboratory/DeepTSS
9f6d7cb94268aedbd9d38944ee6707ef9d6df882
[ "MIT" ]
null
null
null
src/clustering.py
DianaLaboratory/DeepTSS
9f6d7cb94268aedbd9d38944ee6707ef9d6df882
[ "MIT" ]
null
null
null
src/clustering.py
DianaLaboratory/DeepTSS
9f6d7cb94268aedbd9d38944ee6707ef9d6df882
[ "MIT" ]
null
null
null
import pandas as pd import multiprocessing as mp import time import os from src.FindClusters import * from src.Func import * def _args_(input_file): filename = os.path.basename(input_file) name = os.path.splitext(filename)[0] return(filename, name) def findAllRepresentatives(line): line = line.split('...
38.160494
165
0.620511
import pandas as pd import multiprocessing as mp import time import os from src.FindClusters import * from src.Func import * def _args_(input_file): filename = os.path.basename(input_file) name = os.path.splitext(filename)[0] return(filename, name) def findAllRepresentatives(line): line = line.split('...
true
true
1c2cfa1530e0657a58165e5b7d251745010afaf6
113,256
py
Python
pysnmp-with-texts/DATALINK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DATALINK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DATALINK-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 DATALINK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DATALINK-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:37:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019,...
104.191352
8,402
0.772807
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuild...
true
true
1c2cfa80fe0b2e9e9f4ad971d95c5e54f8d46cb0
7,054
py
Python
google/ads/google_ads/v1/proto/enums/local_placeholder_field_pb2.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v1/proto/enums/local_placeholder_field_pb2.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v1/proto/enums/local_placeholder_field_pb2.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v1/proto/enums/local_placeholder_field.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _mess...
41.251462
1,279
0.759002
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database _sym_db =...
true
true
1c2cfac891f520e4a1fb7ea15d7dcced206469ae
3,044
py
Python
tests/test_put_no_body.py
Aryabhata-Rootspring/fastapi
f6237ad05a8468ac19c591181adad38d75372c46
[ "MIT" ]
53,007
2018-12-08T10:05:29.000Z
2022-03-31T23:30:02.000Z
tests/test_put_no_body.py
Aryabhata-Rootspring/fastapi
f6237ad05a8468ac19c591181adad38d75372c46
[ "MIT" ]
4,155
2019-01-05T05:07:49.000Z
2022-03-31T21:25:38.000Z
tests/test_put_no_body.py
Aryabhata-Rootspring/fastapi
f6237ad05a8468ac19c591181adad38d75372c46
[ "MIT" ]
4,092
2018-12-09T16:21:00.000Z
2022-03-31T07:59:45.000Z
from fastapi import FastAPI from fastapi.testclient import TestClient app = FastAPI() @app.put("/items/{item_id}") def save_item_no_body(item_id: str): return {"item_id": item_id} client = TestClient(app) openapi_schema = { "openapi": "3.0.2", "info": {"title": "FastAPI", "version": "0.1.0"}, "pa...
31.061224
86
0.396518
from fastapi import FastAPI from fastapi.testclient import TestClient app = FastAPI() @app.put("/items/{item_id}") def save_item_no_body(item_id: str): return {"item_id": item_id} client = TestClient(app) openapi_schema = { "openapi": "3.0.2", "info": {"title": "FastAPI", "version": "0.1.0"}, "pa...
true
true
1c2cfb5cc57393f63b906668f0e0cb4b599d3a76
16,940
py
Python
tasks/uk/cdrc.py
CartoDB/bigmetadata
a32325382500f23b8a607e4e02cc0ec111360869
[ "BSD-3-Clause" ]
45
2015-12-14T03:05:55.000Z
2021-06-29T22:46:40.000Z
tasks/uk/cdrc.py
CartoDB/bigmetadata
a32325382500f23b8a607e4e02cc0ec111360869
[ "BSD-3-Clause" ]
480
2016-02-19T15:58:44.000Z
2021-09-10T16:38:56.000Z
tasks/uk/cdrc.py
CartoDB/bigmetadata
a32325382500f23b8a607e4e02cc0ec111360869
[ "BSD-3-Clause" ]
13
2016-08-09T21:03:02.000Z
2020-04-29T23:40:20.000Z
# https://data.cdrc.ac.uk/dataset/cdrc-2011-oac-geodata-pack-uk from tasks.base_tasks import (ColumnsTask, TableTask, TagsTask, RepoFileUnzipTask, GeoFile2TempTableTask, MetaWrapper, SimplifiedTempTableTask, RepoFile) from tasks.util import shell, copyfile from tasks.meta import GEOM_REF, ...
40.23753
688
0.56588
from tasks.base_tasks import (ColumnsTask, TableTask, TagsTask, RepoFileUnzipTask, GeoFile2TempTableTask, MetaWrapper, SimplifiedTempTableTask, RepoFile) from tasks.util import shell, copyfile from tasks.meta import GEOM_REF, OBSColumn, OBSTable, OBSTag, current_session from tasks.tags im...
true
true
1c2cfc9242442269152f6a43cae72f34671bae84
2,493
pyw
Python
pyqt/chap04/connections.pyw
liuyangyang2015/PythonDemo
a72c009a31ff833dd12405bb97e688ae91ceda6c
[ "MIT" ]
null
null
null
pyqt/chap04/connections.pyw
liuyangyang2015/PythonDemo
a72c009a31ff833dd12405bb97e688ae91ceda6c
[ "MIT" ]
null
null
null
pyqt/chap04/connections.pyw
liuyangyang2015/PythonDemo
a72c009a31ff833dd12405bb97e688ae91ceda6c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2008-9 Qtrac Ltd. All rights reserved. # This program or module 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 2 of the License, or # version 3 of the Lic...
33.24
74
0.657441
import functools import sys from PyQt4.QtCore import (Qt, SIGNAL) from PyQt4.QtGui import (QApplication, QDialog, QHBoxLayout, QLabel, QPushButton) class Form(QDialog): def __init__(self, parent=None): super(Form, self).__init__(parent) button1 = QPushButton("One") but...
true
true
1c2cfcf83bf68feb3e9f4c26b9bb7bfa82a0b0d2
6,849
py
Python
tools/win32spawn.py
rockonedege/rt-thread
4fe6c709d0bfe719bed6c927f0144ba373bbda5a
[ "Apache-2.0" ]
7,482
2015-01-01T09:23:08.000Z
2022-03-31T19:34:05.000Z
tools/win32spawn.py
rockonedege/rt-thread
4fe6c709d0bfe719bed6c927f0144ba373bbda5a
[ "Apache-2.0" ]
2,543
2015-01-09T02:01:34.000Z
2022-03-31T23:10:14.000Z
tools/win32spawn.py
rockonedege/rt-thread
4fe6c709d0bfe719bed6c927f0144ba373bbda5a
[ "Apache-2.0" ]
4,645
2015-01-06T07:05:31.000Z
2022-03-31T18:21:50.000Z
# # File : win32spawn.py # This file is part of RT-Thread RTOS # COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team # # This program 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 2 ...
36.822581
129
0.644182
import os import threading import sys _PY2 = sys.version_info[0] < 3 if _PY2: import Queue else: import queue as Queue import win32file import win32pipe import win32api import win32con import win32security import win32process import win32event class Win32Spawn(object): def __init...
true
true
1c2cfd302a926b47ec24637ef7aa8c154993ec38
24,689
py
Python
arim/plot.py
will-jj/arim
fc15efe171a41355090123fcea10406ee75efe31
[ "MIT" ]
14
2019-04-05T13:43:36.000Z
2022-02-01T21:38:19.000Z
arim/plot.py
will-jj/arim
fc15efe171a41355090123fcea10406ee75efe31
[ "MIT" ]
2
2019-04-09T10:38:26.000Z
2019-06-17T16:23:16.000Z
arim/plot.py
will-jj/arim
fc15efe171a41355090123fcea10406ee75efe31
[ "MIT" ]
5
2019-04-04T17:02:20.000Z
2020-09-30T15:36:03.000Z
""" Plotting utilities based on `matplotib <http://matplotlib.org/>`_. Some default values are configurable via the dictionary ``arim.plot.conf``. .. py:data:: conf Dictionary of default values. For some functions, if an argument is not populated, its values will be populated from this dictionary. Example:: ...
26.292865
116
0.600348
from warnings import warn import logging from matplotlib import ticker from mpl_toolkits import axes_grid1 import matplotlib.pyplot as plt import numpy as np import scipy.signal from . import ut from .exceptions import ArimWarning from . import geometry as g from .config import Config __all__ = [ "micro_formatt...
true
true
1c2cfdef260371d2f04c95b5d6fd301a62493e68
1,149
py
Python
commserver/setup.py
ErathosthemesAmmoro/track-communities
7afd60aaa62ed0b81c7f785974ea0a8687ea136e
[ "Apache-2.0" ]
12
2015-02-02T13:13:52.000Z
2022-03-16T12:35:32.000Z
commserver/setup.py
ErathosthemesAmmoro/track-communities
7afd60aaa62ed0b81c7f785974ea0a8687ea136e
[ "Apache-2.0" ]
null
null
null
commserver/setup.py
ErathosthemesAmmoro/track-communities
7afd60aaa62ed0b81c7f785974ea0a8687ea136e
[ "Apache-2.0" ]
3
2015-10-05T00:27:38.000Z
2020-03-02T17:51:39.000Z
# # Copyright 2016 Sotera Defense Solutions 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 ag...
32.828571
104
0.750218
# 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, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRAN...
true
true
1c2cfe6635d76e5fb69b8e012ff32daa23046125
567
py
Python
estoque/migrations/0003_auto_20190619_1852.py
Felipebros/mini_curso_django
965dd5e8837db9dea4485e889c2b8703fb5e902d
[ "MIT" ]
8
2019-06-18T20:20:39.000Z
2019-11-09T20:21:06.000Z
estoque/migrations/0003_auto_20190619_1852.py
Felipebros/mini_curso_django
965dd5e8837db9dea4485e889c2b8703fb5e902d
[ "MIT" ]
8
2019-12-04T23:26:42.000Z
2022-02-10T12:02:19.000Z
estoque/migrations/0003_auto_20190619_1852.py
Felipebros/mini_curso_django
965dd5e8837db9dea4485e889c2b8703fb5e902d
[ "MIT" ]
3
2019-06-21T22:37:32.000Z
2019-10-31T00:38:45.000Z
# Generated by Django 2.2.2 on 2019-06-19 21:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('estoque', '0002_auto_20190619_1735'), ] operations = [ migrations.AlterField( model_name='estoque', name='tipo_movim...
29.842105
219
0.634921
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('estoque', '0002_auto_20190619_1735'), ] operations = [ migrations.AlterField( model_name='estoque', name='tipo_movimentacao', field=models.CharField(ch...
true
true
1c2cfe6f65b98c8add69de13446ed21f91e4e0cb
23,312
py
Python
families/block_info/sawtooth_block_info/protobuf/state_context_pb2.py
shmup/sawtooth-core
301655857205f677b0f9383812aaefecd27cc048
[ "Apache-2.0" ]
1
2021-06-09T19:25:41.000Z
2021-06-09T19:25:41.000Z
families/block_info/sawtooth_block_info/protobuf/state_context_pb2.py
shmup/sawtooth-core
301655857205f677b0f9383812aaefecd27cc048
[ "Apache-2.0" ]
null
null
null
families/block_info/sawtooth_block_info/protobuf/state_context_pb2.py
shmup/sawtooth-core
301655857205f677b0f9383812aaefecd27cc048
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: sawtooth_block_info/protobuf/state_context.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.p...
34.536296
2,065
0.754247
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google...
true
true
1c2cfea1595e21192e774b30ce71c1553103954c
3,344
py
Python
src/minecraft/monitor/simple_latency_strategy.py
Cameron-Alberts/MinecraftProcessManager
6ea8b4035fee59ca11f1d8d69df2c6237239d898
[ "MIT" ]
null
null
null
src/minecraft/monitor/simple_latency_strategy.py
Cameron-Alberts/MinecraftProcessManager
6ea8b4035fee59ca11f1d8d69df2c6237239d898
[ "MIT" ]
null
null
null
src/minecraft/monitor/simple_latency_strategy.py
Cameron-Alberts/MinecraftProcessManager
6ea8b4035fee59ca11f1d8d69df2c6237239d898
[ "MIT" ]
null
null
null
import logging as log from .health_monitor_strategy import AbstractHealthMonitorStrategy class SimpleLatencyHealthMonitorStrategy(AbstractHealthMonitorStrategy): def __init__(self, max_latency_in_seconds=1.0, number_of_pings=5, health_checks_queue_size=5, ...
49.176471
111
0.659988
import logging as log from .health_monitor_strategy import AbstractHealthMonitorStrategy class SimpleLatencyHealthMonitorStrategy(AbstractHealthMonitorStrategy): def __init__(self, max_latency_in_seconds=1.0, number_of_pings=5, health_checks_queue_size=5, ...
true
true
1c2cfed1333a7025da594f0f50f1a8d2d2f9bc29
17,151
py
Python
models/convert.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
2
2021-08-08T11:23:14.000Z
2021-09-16T04:05:23.000Z
models/convert.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
1
2021-08-08T11:25:47.000Z
2021-08-08T11:26:15.000Z
models/convert.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
null
null
null
''' Author: your name Date: 2021-08-31 21:36:45 LastEditTime: 2021-08-31 22:09:43 LastEditors: Please set LastEditors Description: In User Settings Edit FilePath: /models/SmallT/convert.py ''' import torch import sys from torch.autograd import Variable from os.path import splitext, getsize from spring.nart.tools.pytorc...
42.140049
133
0.656055
import torch import sys from torch.autograd import Variable from os.path import splitext, getsize from spring.nart.tools.pytorch.onnx_utils import load from spring.nart.tools.pytorch.network_utils import make_network from spring.nart.tools.pytorch.module_utils import convert_mode import threading from spring.nart.tools...
true
true
1c2cff4cf4924b3b8ab3e9ab411e4d167ad36b35
4,470
py
Python
scripts/bump-version.py
dsblank/jupyterlite
b51c265dd7450bd053a0ad2f8d5cd94a70cb0669
[ "BSD-3-Clause" ]
2
2021-09-18T03:05:02.000Z
2021-11-15T11:55:30.000Z
scripts/bump-version.py
dsblank/jupyterlite
b51c265dd7450bd053a0ad2f8d5cd94a70cb0669
[ "BSD-3-Clause" ]
1
2022-03-31T12:32:29.000Z
2022-03-31T12:32:29.000Z
scripts/bump-version.py
dsblank/jupyterlite
b51c265dd7450bd053a0ad2f8d5cd94a70cb0669
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License.import click # Heavily inspired by: # - https://github.com/jupyterlab/jupyterlab/blob/master/buildutils/src/bumpversion.ts # - https://github.com/jupyterlab/retrolab/blob/main/buildutils/src/release-bump.ts # - https://...
30.616438
98
0.655705
import json from pathlib import Path import click from jupyter_releaser.util import get_version, is_prerelease, run OPTIONS = ["major", "minor", "release", "build"] ENC = dict(encoding="utf-8") ROOT = Path(__file__).parent.parent ROOT_PACKAGE_JSON = ROOT / "package.json" APP_PACKAGE_JSON = ROOT / "app" / "p...
true
true
1c2cff78866cc8542cc4ff5da7ec91714d669ea9
8,198
py
Python
websocketsip.py
thr0wforks/pjsip-through-websocket-demo
3b141fde4d39b0b59c788733903963a85e7661f5
[ "MIT" ]
null
null
null
websocketsip.py
thr0wforks/pjsip-through-websocket-demo
3b141fde4d39b0b59c788733903963a85e7661f5
[ "MIT" ]
null
null
null
websocketsip.py
thr0wforks/pjsip-through-websocket-demo
3b141fde4d39b0b59c788733903963a85e7661f5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import signal import pjsua as pj import logging import logging.config from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket from jsonrpc import JSONRPCResponseManager, dispatcher from jsonrpc.jsonrpc2 import JSONRPC20Request import sys if ...
30.589552
80
0.58685
import os import sys import signal import pjsua as pj import logging import logging.config from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket from jsonrpc import JSONRPCResponseManager, dispatcher from jsonrpc.jsonrpc2 import JSONRPC20Request import sys if sys.version_info.major == 3: unicode = s...
true
true
1c2d003aea679272b6063971b88bad61c6b7d23b
77,924
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_rsvp_cfg.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_rsvp_cfg.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_rsvp_cfg.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
1
2020-07-22T04:04:44.000Z
2020-07-22T04:04:44.000Z
""" Cisco_IOS_XR_ip_rsvp_cfg This module contains a collection of YANG definitions for Cisco IOS\-XR ip\-rsvp package configuration. This module contains definitions for the following management objects\: rsvp\: Global RSVP configuration commands This YANG module augments the Cisco\-IOS\-XR\-snmp\-agent\-cfg mo...
39.615658
436
0.512576
from collections import OrderedDict from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64 from ydk.filters import YFilter from ydk.errors import YError, YModelError from ydk.errors.error_handler import handle_type_error as _handle_type_error cl...
true
true
1c2d005be4a9936657d02d76301a9f51bdffde72
10,986
py
Python
dwave/system/composites/virtual_graph.py
mdecandia/dwave-system
263c3cf0f0053ade092c4b72c22d4201148f7ec6
[ "Apache-2.0" ]
null
null
null
dwave/system/composites/virtual_graph.py
mdecandia/dwave-system
263c3cf0f0053ade092c4b72c22d4201148f7ec6
[ "Apache-2.0" ]
null
null
null
dwave/system/composites/virtual_graph.py
mdecandia/dwave-system
263c3cf0f0053ade092c4b72c22d4201148f7ec6
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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...
44.477733
108
0.633261
import dimod from dwave.system.composites.embedding import FixedEmbeddingComposite from dwave.system.flux_bias_offsets import get_flux_biases FLUX_BIAS_KWARG = 'flux_biases' __all__ = ['VirtualGraphComposite'] class VirtualGraphComposite(FixedEmbeddingComposite): def __init__(self, sampler, em...
true
true
1c2d00aed8665fd04416d0f7b83afbb2c85fa80a
25,632
py
Python
tests/python/contrib/test_onnx.py
wjj19950828/tvm
9c63f4fc318652f6fff68342da2d11b26592a3e0
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
3
2021-05-08T17:04:39.000Z
2021-07-11T17:40:54.000Z
tests/python/contrib/test_onnx.py
wjj19950828/tvm
9c63f4fc318652f6fff68342da2d11b26592a3e0
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2019-08-16T20:37:41.000Z
2019-08-16T20:38:15.000Z
tests/python/contrib/test_onnx.py
wjj19950828/tvm
9c63f4fc318652f6fff68342da2d11b26592a3e0
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2019-05-31T20:10:11.000Z
2019-05-31T20:10:11.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...
35.016393
99
0.591097
import pytest pytest.importorskip("onnx") pytest.importorskip("onnxruntime") import numpy as np import onnxruntime as rt import tvm from tvm import relay from tvm.contrib.target.onnx import to_onnx from tvm.relay.testing import run_infer_type def func_to_onnx(func, name): mod = tvm.IRModule() ...
true
true
1c2d0113353ee68262971a2f20cd036da0ee374d
67
py
Python
tests/test_main.py
grahamhome/pifx
0f9aad667ff216aa00a883fc5efddbf147905d53
[ "Apache-2.0" ]
52
2015-12-16T22:59:36.000Z
2021-04-13T07:10:24.000Z
tests/test_main.py
grahamhome/pifx
0f9aad667ff216aa00a883fc5efddbf147905d53
[ "Apache-2.0" ]
13
2015-12-22T00:28:37.000Z
2021-08-08T01:48:25.000Z
tests/test_main.py
grahamhome/pifx
0f9aad667ff216aa00a883fc5efddbf147905d53
[ "Apache-2.0" ]
7
2016-10-11T20:41:51.000Z
2021-08-08T01:39:42.000Z
import sys sys.path.insert(1, '..') from pifx import PIFX # TODO
9.571429
24
0.671642
import sys sys.path.insert(1, '..') from pifx import PIFX
true
true
1c2d03c1316c9260d3a78c67330574544c2622e0
13,476
py
Python
src/tests/test_utils.py
juanalvarezg/script-server
bb0927ada44b6979240cea62a8103eb00abf5627
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/tests/test_utils.py
juanalvarezg/script-server
bb0927ada44b6979240cea62a8103eb00abf5627
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/tests/test_utils.py
juanalvarezg/script-server
bb0927ada44b6979240cea62a8103eb00abf5627
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
import json import os import shutil import stat import threading import uuid from copy import copy from unittest.case import TestCase from unittest.mock import MagicMock import utils.file_utils as file_utils import utils.os_utils as os_utils from execution.process_base import ProcessWrapper from model.script_config im...
26.632411
96
0.608712
import json import os import shutil import stat import threading import uuid from copy import copy from unittest.case import TestCase from unittest.mock import MagicMock import utils.file_utils as file_utils import utils.os_utils as os_utils from execution.process_base import ProcessWrapper from model.script_config im...
true
true
1c2d045bc4ec3a10a114a1b4f089c05bb207e42c
3,003
py
Python
telemetry/telemetry/internal/platform/gpu_info_unittest.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
1,894
2015-04-17T18:29:53.000Z
2022-03-28T22:41:06.000Z
telemetry/telemetry/internal/platform/gpu_info_unittest.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
telemetry/telemetry/internal/platform/gpu_info_unittest.py
atuchin-m/catapult
108ea3e2ec108e68216b1250a3d79cc642600294
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# Copyright 2013 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. from __future__ import absolute_import import unittest from telemetry.internal.platform import gpu_device from telemetry.internal.platform import gpu_info ...
35.75
76
0.646021
from __future__ import absolute_import import unittest from telemetry.internal.platform import gpu_device from telemetry.internal.platform import gpu_info class TestGPUInfo(unittest.TestCase): def testConstruction(self): data = { 'devices': [ {'vendor_id': 1000, 'device_id': 2000, ...
true
true
1c2d05f12b56ab3ee8ae1e1ddbc441a5723ef576
4,595
py
Python
tests/unit/test_organization.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
null
null
null
tests/unit/test_organization.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
21
2019-01-26T20:39:34.000Z
2019-06-20T10:09:57.000Z
tests/unit/test_organization.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
null
null
null
from faker import Faker from faker.providers import address from faker.providers import company import pytest from werkzeug.exceptions import NotFound from app.organization.repositories import OrganizationRepository from app.organization.models import Organization from app.organization.utils import create_organizatio...
29.837662
72
0.717519
from faker import Faker from faker.providers import address from faker.providers import company import pytest from werkzeug.exceptions import NotFound from app.organization.repositories import OrganizationRepository from app.organization.models import Organization from app.organization.utils import create_organizatio...
true
true
1c2d0684c89b81f50f514cc0436a71df4e75e4cf
5,057
py
Python
mmdet/models/detectors/querytrack.py
Joanna0123/QueryInst
6f75240610439e92bca5398054e3f7adc37bfd53
[ "MIT" ]
null
null
null
mmdet/models/detectors/querytrack.py
Joanna0123/QueryInst
6f75240610439e92bca5398054e3f7adc37bfd53
[ "MIT" ]
null
null
null
mmdet/models/detectors/querytrack.py
Joanna0123/QueryInst
6f75240610439e92bca5398054e3f7adc37bfd53
[ "MIT" ]
null
null
null
from ..builder import DETECTORS from .two_stage import TwoStageDetector @DETECTORS.register_module() class QueryTrack(TwoStageDetector): r"""Implementation of `QueryTrack: Parallelly Supervised Mask Query for Instance Segmentation <https://arxiv.org/abs/2105.01928>`, based on SparseRCNN detector. """ ...
38.603053
86
0.57366
from ..builder import DETECTORS from .two_stage import TwoStageDetector @DETECTORS.register_module() class QueryTrack(TwoStageDetector): def __init__(self, *args, **kwargs): super(QueryTrack, self).__init__(*args, **kwargs) assert self.with_rpn, 'QueryTrack do not support external proposals' ...
true
true
1c2d06962ad333a36d67b09c592fec2e4a657d7e
6,137
py
Python
jina/drivers/helper.py
xubiuit/jina
4ab91693c2d51a35eca3cf6c187034e0568b0ac9
[ "Apache-2.0" ]
null
null
null
jina/drivers/helper.py
xubiuit/jina
4ab91693c2d51a35eca3cf6c187034e0568b0ac9
[ "Apache-2.0" ]
null
null
null
jina/drivers/helper.py
xubiuit/jina
4ab91693c2d51a35eca3cf6c187034e0568b0ac9
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import mimetypes import os import urllib.parse import urllib.request from typing import Dict, Any, Iterable, Tuple, Union, List, Callable import numpy as np from ..proto import jina_pb2 def pb2array(blob: 'jina_pb...
37.193939
125
0.648851
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import mimetypes import os import urllib.parse import urllib.request from typing import Dict, Any, Iterable, Tuple, Union, List, Callable import numpy as np from ..proto import jina_pb2 def pb2array(blob: 'jina_pb...
true
true
1c2d06c3fd512f60866a1355b452fca5d3c88d9a
14,273
py
Python
pymatgen/alchemy/materials.py
anjlip/pymatgen
62ecae1c7382a41861e3a5d9b9c8dd1207472409
[ "MIT" ]
2
2017-10-02T03:11:47.000Z
2018-12-02T12:56:12.000Z
pymatgen/alchemy/materials.py
darnoceloc/pymatgen
5cc42912a12a265a603df7e34c856561f76edc1f
[ "MIT" ]
3
2017-07-18T01:13:41.000Z
2019-04-29T18:17:30.000Z
pymatgen/alchemy/materials.py
darnoceloc/pymatgen
5cc42912a12a265a603df7e34c856561f76edc1f
[ "MIT" ]
2
2016-06-15T00:12:59.000Z
2018-12-02T12:56:47.000Z
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import re import json import datetime from copy import deepcopy from monty.json import MontyDecoder, jsanitize from pymatgen.core.structure import Structure from pymatgen.io.cif import CifParser fr...
38.061333
79
0.605899
import os import re import json import datetime from copy import deepcopy from monty.json import MontyDecoder, jsanitize from pymatgen.core.structure import Structure from pymatgen.io.cif import CifParser from pymatgen.io.vasp.inputs import Poscar from monty.json import MSONable from pymatgen.io.vasp.sets impor...
true
true
1c2d06cb9879281b595716f3fff3696c7b8d7bce
373
py
Python
main.py
cr0mbly/TTGO-esp32-micropython-watch
3378ea3b15e19f6bab405b6fc07759f17dd6213d
[ "MIT" ]
6
2020-09-10T20:04:49.000Z
2021-10-10T06:26:05.000Z
main.py
cr0mbly/TTGO-esp32-micropython-watch
3378ea3b15e19f6bab405b6fc07759f17dd6213d
[ "MIT" ]
null
null
null
main.py
cr0mbly/TTGO-esp32-micropython-watch
3378ea3b15e19f6bab405b6fc07759f17dd6213d
[ "MIT" ]
null
null
null
from apps.watch import WatchDisplay from lcd_display import LcdDisplay from system import SystemManager # Setup internal system system_manager = SystemManager() system_manager.update_system() # Setup LCD and eventsB lcd_display = LcdDisplay(system_manager).setup() lcd_display.register_touch_event() # Display initial...
24.866667
48
0.831099
from apps.watch import WatchDisplay from lcd_display import LcdDisplay from system import SystemManager system_manager = SystemManager() system_manager.update_system() lcd_display = LcdDisplay(system_manager).setup() lcd_display.register_touch_event() WatchDisplay(system_manager, lcd_display).run()
true
true
1c2d072085abfe36d7e843393f0e22f4fede76ae
9,187
py
Python
tests/hazmat/primitives/test_aes.py
spagh-eddie/cryptography
8572a9d82e254d348aa674d37d1c19fee8831b19
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
4,492
2015-01-02T23:02:52.000Z
2022-03-31T12:59:57.000Z
tests/hazmat/primitives/test_aes.py
spagh-eddie/cryptography
8572a9d82e254d348aa674d37d1c19fee8831b19
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
3,692
2015-01-01T03:16:56.000Z
2022-03-31T19:20:25.000Z
tests/hazmat/primitives/test_aes.py
sailfishos-mirror/cryptography
bab6faa2622e6ae33ceab40117dbd00f3b0cc9a1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
1,155
2015-01-09T00:48:05.000Z
2022-03-31T23:46:43.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import binascii import os import pytest from cryptography.hazmat.primitives.ciphers import algorithms, base, modes from .utils import _...
33.166065
79
0.579188
import binascii import os import pytest from cryptography.hazmat.primitives.ciphers import algorithms, base, modes from .utils import _load_all_params, generate_encrypt_test from ...doubles import DummyMode from ...utils import load_nist_vectors @pytest.mark.supported( only_if=lambda backend: backend.ciph...
true
true
1c2d073e9e36ccc9b40cc4d130871100baffaf06
750
py
Python
src/explore/data_structure_tree/inorder_traversal.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
1
2022-03-03T15:11:48.000Z
2022-03-03T15:11:48.000Z
src/explore/data_structure_tree/inorder_traversal.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
null
null
null
src/explore/data_structure_tree/inorder_traversal.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
2
2022-01-20T22:49:58.000Z
2022-01-20T22:53:13.000Z
#!/usr/bin/env python """ Github: https://github.com/Jiezhi/myleetcode Created on 2019-03-24 Leetcode: https://leetcode.com/explore/learn/card/data-structure-tree/134/traverse-a-tree/929/ Same as: 94 https://leetcode.com/problems/binary-tree-inorder-traversal/ """ from tree_node import * class Solution: def in...
25.862069
94
0.642667
from tree_node import * class Solution: def inorderTraversal(self, root: TreeNode) -> list: ret = [] if not root: return ret if root.left: ret = ret + self.inorderTraversal(root.left) ret.append(root.val) if root.right: ret = ret + self....
true
true
1c2d08db4f64008bdec6d59094e5b421b130255a
2,442
py
Python
Motif_Analysis/Code/optimizer.py
tanfei2007/DeepM6A
ac8b5543db292516ce10cf42b7506004140d4d41
[ "Apache-2.0" ]
8
2020-08-09T02:21:24.000Z
2022-03-17T03:01:08.000Z
Motif_Analysis/Code/optimizer.py
Cmanco/DeepM6A
ac8b5543db292516ce10cf42b7506004140d4d41
[ "Apache-2.0" ]
null
null
null
Motif_Analysis/Code/optimizer.py
Cmanco/DeepM6A
ac8b5543db292516ce10cf42b7506004140d4d41
[ "Apache-2.0" ]
5
2020-11-30T01:53:38.000Z
2021-07-21T04:08:47.000Z
#********************* # Fei Tan # ft54@njit.edu # March 28, 2017 #******************** import numpy as np import pprint from keras import backend as K from collections import OrderedDict class Optimizer(object): def __init__(self, seq_input, losses, wrt=None): self.seq = seq_input self.loss_functions...
25.978723
109
0.673628
import numpy as np import pprint from keras import backend as K from collections import OrderedDict class Optimizer(object): def __init__(self, seq_input, losses, wrt=None): self.seq = seq_input self.loss_functions = [] self.wrt = self.seq if wrt is None else wrt overall_loss = K.variable(0.) f...
true
true
1c2d0986479155b099c8c5b721fa03b080e59510
248
py
Python
hard-gists/69f4acd1fc094c66ba73/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/69f4acd1fc094c66ba73/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/69f4acd1fc094c66ba73/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
#!/usr/bin/env python3 import time import cron def do_stuff1(): print('stuff1!') def do_stuff2(): #1 / 0 print('stuff2!') cron.init() cron.schedule(5, do_stuff1) #time.sleep(1) #cron.schedule(2, do_stuff2) cron.wait() print('done!')
13.777778
28
0.657258
import time import cron def do_stuff1(): print('stuff1!') def do_stuff2(): print('stuff2!') cron.init() cron.schedule(5, do_stuff1) cron.wait() print('done!')
true
true
1c2d0adc348a4f74b5082e2c56fef04d70aaafb4
3,272
py
Python
Libraries/Python/Turta_Digital.py
Turta-io/LoRaHAT
4f2bc28c2bddde928bb2279a2c519ed163defff9
[ "MIT" ]
1
2021-03-22T22:45:29.000Z
2021-03-22T22:45:29.000Z
Libraries/Python/Turta_Digital.py
Turta-io/LoRaHAT
4f2bc28c2bddde928bb2279a2c519ed163defff9
[ "MIT" ]
null
null
null
Libraries/Python/Turta_Digital.py
Turta-io/LoRaHAT
4f2bc28c2bddde928bb2279a2c519ed163defff9
[ "MIT" ]
1
2020-03-28T21:32:35.000Z
2020-03-28T21:32:35.000Z
# Turta LoRa HAT Helper for Raspbian. # Distributed under the terms of the MIT license. # Python Library for Digital IO Ports. # Version 1.0.0 # Released: November 5th, 2019 # Visit https://docs.turta.io for documentation. import RPi.GPIO as GPIO class DigitalPort(object): """Digital IO Ports.""" #Variable...
27.495798
91
0.552873
import RPi.GPIO as GPIO class DigitalPort(object): is_initialized = False d1, d2, d3, d4 = 21, 22, 23, 24 def __init__(self, d1In = True, d2In = True, d3In = True, d4In = True): GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) if (d1In): GPIO.setup(...
true
true
1c2d0b25119761370d81f6070e27d83543d0b4a7
5,267
py
Python
pysnmp-with-texts/DLINK-3100-SOCKET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DLINK-3100-SOCKET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DLINK-3100-SOCKET-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 DLINK-3100-SOCKET-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DLINK-3100-SOCKET-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:49:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
107.489796
477
0.764382
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuild...
true
true
1c2d0b4a226a5bf9b9851cd369c7c9a0c8439cf0
5,034
py
Python
source/conf.py
stefbaldipr/iPressDocs
3cc5aa6e579b4fa3c3e3e88245db52d02146881d
[ "MIT" ]
null
null
null
source/conf.py
stefbaldipr/iPressDocs
3cc5aa6e579b4fa3c3e3e88245db52d02146881d
[ "MIT" ]
1
2018-03-12T04:31:09.000Z
2018-03-12T04:31:09.000Z
source/conf.py
stefbaldipr/iPressDocs
3cc5aa6e579b4fa3c3e3e88245db52d02146881d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
30.325301
85
0.640644
project = u'iPress API' copyright = u'2018, Stefano Ubaldi' author = u'Stefano Ubaldi' version = u'2.0' release = u'2.0' extensions = [ 'sphinx.ext.imgmath', 'sphinxcontrib.httpdomain', 'sphinxcontrib.httpexample', 'sphinx-jsonschema' ] templates_path = ['_templates...
true
true
1c2d0ca7f4a4ea84b33b558ae0ff250d88a809be
5,276
py
Python
tests/adapters/test_postgres_adapter.py
pietervans/viewflow
3123b1e36ca4b9464d4a8cdf13c520384b71c600
[ "MIT" ]
106
2021-03-25T12:38:54.000Z
2022-03-10T02:56:37.000Z
tests/adapters/test_postgres_adapter.py
pietervans/viewflow
3123b1e36ca4b9464d4a8cdf13c520384b71c600
[ "MIT" ]
null
null
null
tests/adapters/test_postgres_adapter.py
pietervans/viewflow
3123b1e36ca4b9464d4a8cdf13c520384b71c600
[ "MIT" ]
7
2021-04-03T13:30:36.000Z
2021-08-28T03:11:21.000Z
from datetime import datetime from unittest.mock import Mock import jinja2 import viewflow from airflow import DAG from airflow.models import TaskInstance, Connection from airflow.providers.postgres.hooks.postgres import PostgresHook from airflow import settings from airflow.utils import db def _create_postgres_sess...
41.543307
743
0.700531
from datetime import datetime from unittest.mock import Mock import jinja2 import viewflow from airflow import DAG from airflow.models import TaskInstance, Connection from airflow.providers.postgres.hooks.postgres import PostgresHook from airflow import settings from airflow.utils import db def _create_postgres_sess...
true
true
1c2d0e451151d8512422ba9f290e51f88c58564a
4,078
py
Python
src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_12.py
robszewczyk/openweave-core
f452cc55859daea83b3ce7af158c8e78b05cc3bc
[ "Apache-2.0" ]
249
2017-09-18T17:48:34.000Z
2022-02-02T06:46:21.000Z
src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_12.py
robszewczyk/openweave-core
f452cc55859daea83b3ce7af158c8e78b05cc3bc
[ "Apache-2.0" ]
501
2017-11-10T11:25:32.000Z
2022-02-01T10:43:13.000Z
src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_12.py
robszewczyk/openweave-core
f452cc55859daea83b3ce7af158c8e78b05cc3bc
[ "Apache-2.0" ]
116
2017-09-20T07:06:55.000Z
2022-01-08T13:41:15.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016-2017 Nest Labs, 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/lic...
50.975
173
0.655959
from __future__ import absolute_import from __future__ import print_function import unittest import set_test_path from weave_wdm_next_test_base import weave_wdm_next_test_base import WeaveUtilities class test_weave_wdm_next_mutual_subscribe_12(weave_wdm_next_test_base): def test_weave_...
true
true
1c2d0f4e0c15a4c07fa29575d460cd7acb1f0253
10,709
py
Python
rllite/common/gym_utils.py
ZJU-RL/zjurl
6aab83aaba7249bc43d112f21787c45b111d8aa4
[ "MIT" ]
3
2019-03-07T13:24:21.000Z
2019-08-08T12:49:51.000Z
rllite/common/gym_utils.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
rllite/common/gym_utils.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
import gym import numpy as np import torch from collections import deque device = torch.device("cuda" if torch.cuda.is_available() else "cpu") class NormalizedActions(gym.ActionWrapper): def action(self, action): low = self.action_space.low high = self.action_space.high action...
33.361371
117
0.609954
import gym import numpy as np import torch from collections import deque device = torch.device("cuda" if torch.cuda.is_available() else "cpu") class NormalizedActions(gym.ActionWrapper): def action(self, action): low = self.action_space.low high = self.action_space.high action...
true
true