hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
94a5039b294b19f899d02f2f5de400c68e3189cc
6,310
py
Python
depot/depot/settings.py
qianyu668899/Django
fe4d6a90c5e5a1a2ddd0379427ea7b167d195ae0
[ "Apache-2.0" ]
null
null
null
depot/depot/settings.py
qianyu668899/Django
fe4d6a90c5e5a1a2ddd0379427ea7b167d195ae0
[ "Apache-2.0" ]
null
null
null
depot/depot/settings.py
qianyu668899/Django
fe4d6a90c5e5a1a2ddd0379427ea7b167d195ae0
[ "Apache-2.0" ]
null
null
null
# Django settings for depot project. import os DEBUG = True #TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = True ADMINS = ( ('Yu Qian', 'jinggeqianyu1991@gmail.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or ...
35.649718
122
0.695404
1687dec7ab0cbf81bd2c3d79beef3b3e42854815
1,436
py
Python
script/py-app/utils.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
script/py-app/utils.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
script/py-app/utils.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
import base64 import io import argparse import pickle from options import Configer from models.models_select import * torch.nn.Module.dump_patches = True def object_serialize(d): bd = pickle.dumps(d) return base64.b64encode(bd).decode() def object_deserialize(s): p = base64.b64decode(s) return pic...
24.758621
73
0.677577
7ffb8b16c53d98788aacd8f6a92bfbbe226bd803
13,698
py
Python
src/preproc/slicetime.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
2
2018-11-07T07:54:34.000Z
2022-01-13T13:06:06.000Z
src/preproc/slicetime.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
null
null
null
src/preproc/slicetime.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Helper functions for Slice Timing Correction """ import os.path as op import nipype.pipeline.engine as pe from nipype.interfaces.base import traits, isdefined from nipype.interfaces.utility import IdentityInterface from nipype.algorithms.misc import Gunzip from .slicetime_params im...
31.635104
114
0.552781
51d65899e0060955d473d4787f781020a6e5fc16
1,016
py
Python
pyaff4/version.py
Enqueuing/pyaff4
60617a8738465d6590201ba0b4891fabd2dab8fa
[ "Apache-2.0" ]
null
null
null
pyaff4/version.py
Enqueuing/pyaff4
60617a8738465d6590201ba0b4891fabd2dab8fa
[ "Apache-2.0" ]
null
null
null
pyaff4/version.py
Enqueuing/pyaff4
60617a8738465d6590201ba0b4891fabd2dab8fa
[ "Apache-2.0" ]
null
null
null
class Version(object): def __init__(self, major, minor, tool): self.major = major self.minor = minor self.tool = tool @staticmethod def create(dic): return Version(int(dic["major"]),int(dic["minor"]),dic["tool"]) def is10(self): if self.major == 1 and self.minor...
27.459459
85
0.565945
bcee8a9f00599140276d33372a8b80be30295dd3
159
py
Python
test_dropout.py
liyiran/Machine-learning-2
6f81c8276fd8e106eaf2ccca1631fa3e077b422c
[ "Apache-2.0" ]
null
null
null
test_dropout.py
liyiran/Machine-learning-2
6f81c8276fd8e106eaf2ccca1631fa3e077b422c
[ "Apache-2.0" ]
null
null
null
test_dropout.py
liyiran/Machine-learning-2
6f81c8276fd8e106eaf2ccca1631fa3e077b422c
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase class TestDropout(TestCase): def test_forward(self): self.fail() def test_backward(self): self.fail()
15.9
29
0.660377
9f8da2de460a4492bd61e4ad4fc05c13cfd615ed
110
py
Python
Programming Fundamentals/Text Processing/substring.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
Programming Fundamentals/Text Processing/substring.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
Programming Fundamentals/Text Processing/substring.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
first = input() second = input() while first in second: second = second.replace(first, '') print(second)
15.714286
38
0.672727
95f4c8eeb78afc8b4c951e058f06090fb02373b0
1,209
py
Python
serializers/Pose_Serializer.py
AdarshK1/rosbag-dl-utils-mirror
6139b8a7d43ecd43c4ec079d2f673540491692ce
[ "Apache-2.0" ]
null
null
null
serializers/Pose_Serializer.py
AdarshK1/rosbag-dl-utils-mirror
6139b8a7d43ecd43c4ec079d2f673540491692ce
[ "Apache-2.0" ]
null
null
null
serializers/Pose_Serializer.py
AdarshK1/rosbag-dl-utils-mirror
6139b8a7d43ecd43c4ec079d2f673540491692ce
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) Ghost Robotics - All Rights Reserved Written by Adarsh Kulkarni <adarsh@ghostrobotics.io> """ import rospy from geometry_msgs.msg import PoseStamped from serializers.Base_Serializer import BaseSerializer import numpy as np class PoseSerializer(BaseSerializer): def __init__(self, topic_name, ski...
32.675676
94
0.649297
42f865bd828736292f8365cdfb6832c16393b84f
348
py
Python
src/model/headers/victory_header.py
arubenruben/IART-Ball-Sort-Puzzle
0d71c533e9a329b61220cb90c0bc5a67ae404b89
[ "MIT" ]
null
null
null
src/model/headers/victory_header.py
arubenruben/IART-Ball-Sort-Puzzle
0d71c533e9a329b61220cb90c0bc5a67ae404b89
[ "MIT" ]
null
null
null
src/model/headers/victory_header.py
arubenruben/IART-Ball-Sort-Puzzle
0d71c533e9a329b61220cb90c0bc5a67ae404b89
[ "MIT" ]
null
null
null
from model.drawable import Drawable class VictoryHeader(Drawable): def __init__(self): pass def update(self): pass def draw(self, view): first_line = view.font_72.render("You Win", True, (255, 255, 255)) view.screen.blit(first_line, (view.width // 2 - first_line.get_width...
24.857143
103
0.62931
b684a79d65c67e12e492ebb945f4c5c86154272e
8,915
py
Python
indra/sources/bbn/visualize_causal.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
2
2020-01-14T08:59:10.000Z
2020-12-18T16:21:38.000Z
indra/sources/bbn/visualize_causal.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
null
null
null
indra/sources/bbn/visualize_causal.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
null
null
null
# Visualize causal relationships amongst events import sys import json def split_long_sentence(sentence, words_per_line): """Takes a sentence and adds a newline every "words_per_line" words. Parameters ---------- sentence: str Sentene to split words_per_line: double Add a newline...
31.613475
87
0.606282
dd317d1cdf0d9620840fb843919bd83bf43254d7
829
py
Python
model/project.py
mmelikhova/mantis
cd8bd7cba90f805247bcf1f51cf129d50caea1d5
[ "Apache-2.0" ]
null
null
null
model/project.py
mmelikhova/mantis
cd8bd7cba90f805247bcf1f51cf129d50caea1d5
[ "Apache-2.0" ]
null
null
null
model/project.py
mmelikhova/mantis
cd8bd7cba90f805247bcf1f51cf129d50caea1d5
[ "Apache-2.0" ]
null
null
null
from sys import maxsize class Project: def __init__(self, name = None, status = None, view_state = None, description = None, id = None): self.name = name self.status = status self.view_state = view_state self.description = description self.id = id def __repr__(self): ...
31.884615
106
0.558504
f8104c83f61c36110bd3093af9c0615664ca4141
6,055
py
Python
pl_bolts/models/autoencoders/basic_ae/basic_ae_module.py
dandelin/pytorch-lightning-bolts
8652a8a9f6c3e0d4b034e12d1f7b3a339f92cd0f
[ "Apache-2.0" ]
null
null
null
pl_bolts/models/autoencoders/basic_ae/basic_ae_module.py
dandelin/pytorch-lightning-bolts
8652a8a9f6c3e0d4b034e12d1f7b3a339f92cd0f
[ "Apache-2.0" ]
null
null
null
pl_bolts/models/autoencoders/basic_ae/basic_ae_module.py
dandelin/pytorch-lightning-bolts
8652a8a9f6c3e0d4b034e12d1f7b3a339f92cd0f
[ "Apache-2.0" ]
null
null
null
from argparse import ArgumentParser import pytorch_lightning as pl import torch import torch.nn as nn from torch.nn import functional as F from pl_bolts.models.autoencoders.components import resnet18_encoder, resnet18_decoder from pl_bolts.models.autoencoders.components import resnet50_encoder, resnet50_decoder cla...
32.907609
116
0.650206
6975c86e74554f07b1452a747cbaafdb1ee44899
6,779
py
Python
tests/geometric/test_geometric_compoundstate.py
ericpairet/ompl
25c76431cef25f0100ed74d09dd88944ecca5ee1
[ "BSD-3-Clause" ]
837
2015-01-07T12:01:20.000Z
2022-03-31T08:42:42.000Z
tests/geometric/test_geometric_compoundstate.py
ericpairet/ompl
25c76431cef25f0100ed74d09dd88944ecca5ee1
[ "BSD-3-Clause" ]
271
2015-01-12T22:05:06.000Z
2022-03-30T22:16:01.000Z
tests/geometric/test_geometric_compoundstate.py
ericpairet/ompl
25c76431cef25f0100ed74d09dd88944ecca5ee1
[ "BSD-3-Clause" ]
452
2015-02-10T08:48:21.000Z
2022-03-23T06:53:33.000Z
#!/usr/bin/env python ###################################################################### # Software License Agreement (BSD License) # # Copyright (c) 2010, Rice University # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that t...
34.237374
92
0.61189
c14eabd93eb2808c75211ebe312d582f315ed63e
14,408
py
Python
zusha/registrations/views.py
samsonmuoki/zusha_web_app
5ea788402e48855e8d77a92e379730ad646aad27
[ "MIT" ]
1
2020-02-24T08:06:26.000Z
2020-02-24T08:06:26.000Z
zusha/registrations/views.py
samsonmuoki/zusha_web_app
5ea788402e48855e8d77a92e379730ad646aad27
[ "MIT" ]
6
2021-02-08T20:41:46.000Z
2021-09-22T18:34:32.000Z
zusha/registrations/views.py
samsonmuoki/zusha_web_app
5ea788402e48855e8d77a92e379730ad646aad27
[ "MIT" ]
null
null
null
# import pyrebase from django.contrib.auth import ( # authenticate, login, logout ) from django.shortcuts import render, get_object_or_404, redirect from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.utils import timezone from django.http import HttpResponse from django.cor...
28.931727
79
0.63201
d560adc1f38b0bf2493ad313a24936700e3190f5
5,592
py
Python
flavorsync/exceptions.py
Fiware/ops.Flavor-sync
d4f3eb1ff3a76eb824b327f5b23632f09ebf2cda
[ "Apache-2.0" ]
null
null
null
flavorsync/exceptions.py
Fiware/ops.Flavor-sync
d4f3eb1ff3a76eb824b327f5b23632f09ebf2cda
[ "Apache-2.0" ]
null
null
null
flavorsync/exceptions.py
Fiware/ops.Flavor-sync
d4f3eb1ff3a76eb824b327f5b23632f09ebf2cda
[ "Apache-2.0" ]
null
null
null
from flavorsync import app from flask import request from flask import Response from flavorsync.parser.parser_factory import ParserFactory class UnAuthorizedMethodError(Exception): status_code = 405 def __init__(self): Exception.__init__(self, "UnAuthorized method") class UnimplementedMethodError(Exc...
37.530201
151
0.721388
59a202ab4b715dad6516235e93787d7a40462271
5,854
py
Python
sales/forms.py
rajeshr188/django-onex
f1086a4159b1d135e54327c77c93fcc6c446338f
[ "MIT" ]
2
2019-06-08T22:50:59.000Z
2020-07-12T14:13:18.000Z
sales/forms.py
rajeshr188/django-onex
f1086a4159b1d135e54327c77c93fcc6c446338f
[ "MIT" ]
13
2020-02-11T23:51:43.000Z
2021-06-05T13:10:49.000Z
sales/forms.py
rajeshr188/django-onex
f1086a4159b1d135e54327c77c93fcc6c446338f
[ "MIT" ]
null
null
null
from django import forms import datetime from tempus_dominus.widgets import DateTimePicker from .models import Invoice, InvoiceItem, Receipt,ReceiptLine,ReceiptItem from django_select2.forms import Select2Widget from contact.models import Customer from approval.models import Approval from product.models import Stock fr...
43.686567
139
0.595149
193a55bf89a60d647c80e3883ed69d933864857e
2,111
py
Python
tests/test_one_to_many_relations.py
quantus/sqlalchemy-continuum
1453888e4e696dac835f8b907b7f819433b27e6c
[ "BSD-3-Clause" ]
null
null
null
tests/test_one_to_many_relations.py
quantus/sqlalchemy-continuum
1453888e4e696dac835f8b907b7f819433b27e6c
[ "BSD-3-Clause" ]
null
null
null
tests/test_one_to_many_relations.py
quantus/sqlalchemy-continuum
1453888e4e696dac835f8b907b7f819433b27e6c
[ "BSD-3-Clause" ]
null
null
null
from tests import TestCase class TestOneToManyRelationships(TestCase): def test_single_insert(self): article = self.Article() article.name = u'Some article' article.content = u'Some content' article.tags.append(self.Tag(name=u'some tag')) self.session.add(article) s...
35.779661
68
0.623875
a50e4d51d55faf7dbefd99f1716dcaaa19c405fe
755
py
Python
solutions/day02/sol02.py
trisjoh/aoc-2020
17761b76bbeb47b0fb72edfb005f5c581f69ac57
[ "MIT" ]
null
null
null
solutions/day02/sol02.py
trisjoh/aoc-2020
17761b76bbeb47b0fb72edfb005f5c581f69ac57
[ "MIT" ]
null
null
null
solutions/day02/sol02.py
trisjoh/aoc-2020
17761b76bbeb47b0fb72edfb005f5c581f69ac57
[ "MIT" ]
null
null
null
def getSol(): problemInput = open("input02", "r").read().split("\n") del problemInput[len(problemInput)-1] checkList = [] answer = [0, 0] for val in problemInput: firstSplit = val.split(" ") secondSplit = firstSplit[0].split("-") checkList.append([int(secondSplit[0]),...
32.826087
99
0.549669
52d16d5fad09b5a12573ea7a6dbba95d4cdd85af
150
py
Python
environments/gym-visual/setup.py
zhihanyang2022/hierarchical_pomdp
18bb0d1f148ab69366e64c1ef2c90142113bf787
[ "MIT" ]
null
null
null
environments/gym-visual/setup.py
zhihanyang2022/hierarchical_pomdp
18bb0d1f148ab69366e64c1ef2c90142113bf787
[ "MIT" ]
null
null
null
environments/gym-visual/setup.py
zhihanyang2022/hierarchical_pomdp
18bb0d1f148ab69366e64c1ef2c90142113bf787
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='gym_visual', version='0.0.1', install_requires=['gym'] # And any other dependencies foo needs )
25
70
0.693333
00769f86fab237ce31d794d360e6921ba2fffe34
13,435
bzl
Python
proto/proto.bzl
klochek/rules_rust
027bf41af9973c4b70f2d07486aa871c78bf4884
[ "Apache-2.0" ]
3
2020-11-30T15:35:37.000Z
2022-01-06T14:17:18.000Z
proto/proto.bzl
klochek/rules_rust
027bf41af9973c4b70f2d07486aa871c78bf4884
[ "Apache-2.0" ]
54
2020-06-23T17:34:04.000Z
2022-03-31T02:04:06.000Z
proto/proto.bzl
klochek/rules_rust
027bf41af9973c4b70f2d07486aa871c78bf4884
[ "Apache-2.0" ]
12
2020-07-14T23:59:57.000Z
2022-03-22T09:59:18.000Z
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
32.373494
102
0.641384
3d347b89bd2829023de68259b22ae5e29984737d
3,340
py
Python
constants.py
cheyannemanivong/ConstrutoraSAMBot
4c612922c27975ea4ad914a81e36faefd9993f1d
[ "CNRI-Python" ]
1
2021-08-09T15:55:52.000Z
2021-08-09T15:55:52.000Z
constants.py
cheyannemanivong/ConstrutoraSAMBot
4c612922c27975ea4ad914a81e36faefd9993f1d
[ "CNRI-Python" ]
null
null
null
constants.py
cheyannemanivong/ConstrutoraSAMBot
4c612922c27975ea4ad914a81e36faefd9993f1d
[ "CNRI-Python" ]
null
null
null
API_KEY = 'insert your token here' # switch between languages -> comment out whichever version you're not using # english version cancelString = 'Send /cancel to end command or start over.' helpMenu = 'Here are the available commands for this bot:\n' + \ '/driver - Change the name of a vehicle\'s driver....
35.157895
101
0.632036
822a1ca232c496e776e5b0dd4d397fb19989d849
25,851
py
Python
committees/migrations/0018_auto__add_field_committee_hide.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
69
2015-02-03T12:02:56.000Z
2022-02-16T13:08:01.000Z
committees/migrations/0018_auto__add_field_committee_hide.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
446
2015-01-01T11:10:33.000Z
2021-11-01T08:15:39.000Z
committees/migrations/0018_auto__add_field_committee_hide.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
67
2015-01-01T09:13:58.000Z
2021-11-01T07:51:08.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Committee.hide' db.add_column(u'committees_committee', 'h...
90.073171
216
0.56346
9bd31e79407f8e7e94d236c9b0e620403d1e3d85
3,734
py
Python
utils/logger.py
m0r13/VCN
770298416d93c9edc498d43cc9eccae6911e0c06
[ "MIT" ]
148
2019-10-28T15:02:01.000Z
2022-03-16T07:14:46.000Z
utils/logger.py
m0r13/VCN
770298416d93c9edc498d43cc9eccae6911e0c06
[ "MIT" ]
23
2019-11-30T15:45:07.000Z
2021-12-07T07:16:51.000Z
utils/logger.py
m0r13/VCN
770298416d93c9edc498d43cc9eccae6911e0c06
[ "MIT" ]
24
2019-12-19T09:53:38.000Z
2022-01-22T01:33:02.000Z
""" File: logger.py Modified by: Senthil Purushwalkam Code referenced from https://gist.github.com/gyglim/1f8dfb1b5c82627ae3efcfbbadb9f514 Email: spurushw<at>andrew<dot>cmu<dot>edu Github: https://github.com/senthilps8 Description: """ import pdb import tensorflow as tf from torch.autograd import Variable import numpy...
32.754386
89
0.580878
7735bd28818940cb65ba90dc9a6f2f1940cf52c9
3,998
py
Python
egs/sre16/v1/local/make_musan.py
ks555/idlak
7a86876b17925fda1f0c9357589506729657b6d7
[ "Apache-2.0" ]
74
2017-01-10T21:27:24.000Z
2022-03-05T07:30:30.000Z
egs/sre16/v1/local/make_musan.py
ks555/idlak
7a86876b17925fda1f0c9357589506729657b6d7
[ "Apache-2.0" ]
38
2018-04-03T14:25:35.000Z
2022-02-19T21:03:11.000Z
egs/sre16/v1/local/make_musan.py
ks555/idlak
7a86876b17925fda1f0c9357589506729657b6d7
[ "Apache-2.0" ]
28
2017-01-23T10:49:04.000Z
2022-03-05T07:30:21.000Z
#!/usr/bin/env python3 # Copyright 2015 David Snyder # Apache 2.0. # # This file is meant to be invoked by make_musan.sh. import os, sys def process_music_annotations(path): utt2spk = {} utt2vocals = {} lines = open(path, 'r').readlines() for line in lines: utt, genres, vocals, musician = line.rstrip()....
33.316667
113
0.647574
5810c70144624d2f5ada22530f5b83b1a8e858ab
2,347
py
Python
Aula_60/ForTwo/r2/viagem.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
Aula_60/ForTwo/r2/viagem.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
Aula_60/ForTwo/r2/viagem.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
from Aula_60.ForTwo.r2.embarque import embarque from Aula_60.ForTwo.r2.desembarque import desembarque from Aula_60.ForTwo.r2.terminal import Terminal from Aula_60.ForTwo.r2.aviao import Aviao from Aula_60.ForTwo.r2.local import Local from Aula_60.ForTwo.r2.fortwo import Fortwo terminal = {'descricao':'terminal', 'pes...
37.854839
152
0.646357
68de2528da25d8698e6239933ea0210b28d11f32
2,479
py
Python
docs/conf.py
thedeadofblackfire/centrifuge
5963289a579f6e1f52a7a9e6f677cb1dd8eb934b
[ "MIT" ]
null
null
null
docs/conf.py
thedeadofblackfire/centrifuge
5963289a579f6e1f52a7a9e6f677cb1dd8eb934b
[ "MIT" ]
null
null
null
docs/conf.py
thedeadofblackfire/centrifuge
5963289a579f6e1f52a7a9e6f677cb1dd8eb934b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.append(os.path.abspath('_th...
29.86747
92
0.70956
8dd7a8853a18b40b9c40bdb019778ef7751778e7
1,040
py
Python
generate.py
g8a9/example-CharLM
4917cb6153241222bde359e0db80d3f87195e1ff
[ "MIT" ]
null
null
null
generate.py
g8a9/example-CharLM
4917cb6153241222bde359e0db80d3f87195e1ff
[ "MIT" ]
null
null
null
generate.py
g8a9/example-CharLM
4917cb6153241222bde359e0db80d3f87195e1ff
[ "MIT" ]
null
null
null
import pytorch_lightning as pl from main import CharLM, PySourceDataset import argparse import secrets parser = argparse.ArgumentParser() parser.add_argument("model") parser.add_argument("--steps", type=int, default=200) args = parser.parse_args() model = CharLM.load_from_checkpoint(args.model) name = f"{secrets.toke...
28.108108
70
0.736538
4cb7c4ef470010d7e06ea607a33e9a9152275ba5
1,052
py
Python
tests/forms_tests/widget_tests/test_passwordinput.py
beniwohli/django
514b2c989a948e3c59bda0da0c9427acf643cf5b
[ "PSF-2.0", "BSD-3-Clause" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
tests/forms_tests/widget_tests/test_passwordinput.py
287977288/test
142e3626ab3c676574631383ae6b5a4eced5a10e
[ "PSF-2.0", "BSD-3-Clause" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
tests/forms_tests/widget_tests/test_passwordinput.py
287977288/test
142e3626ab3c676574631383ae6b5a4eced5a10e
[ "PSF-2.0", "BSD-3-Clause" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
from django.forms import PasswordInput from .base import WidgetTest class PasswordInputTest(WidgetTest): widget = PasswordInput() def test_render(self): self.check_html(self.widget, 'password', '', html='<input type="password" name="password" />') def test_render_ignore_value(self): sel...
38.962963
108
0.653042
0d52bfcf8420a009139091f04e59cf9fee3fdfee
4,460
py
Python
views.py
jasonjalufka/shuttle.me
09d50b439e60281083c1c0605f3b7238fead8ce4
[ "MIT" ]
null
null
null
views.py
jasonjalufka/shuttle.me
09d50b439e60281083c1c0605f3b7238fead8ce4
[ "MIT" ]
null
null
null
views.py
jasonjalufka/shuttle.me
09d50b439e60281083c1c0605f3b7238fead8ce4
[ "MIT" ]
null
null
null
from init import app import flask from doublemap import DoubleMap from flask import url_for import json, os #dictionary of stops to send to the front end display = {} preferences = {} preferences['configuration'] = {'isConfigured': False} tracker = DoubleMap('txstate') validStops = [1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13...
33.787879
126
0.612108
c831277e3397aca8f0b03540a3f3920d3fc314f4
7,370
py
Python
pilot/commands/project/index.py
globusonline/pilot1-tools
d3f3f35ac89721ab67ca221da0dbb6d36ed61196
[ "Apache-2.0" ]
1
2021-04-13T23:03:12.000Z
2021-04-13T23:03:12.000Z
pilot/commands/project/index.py
globusonline/globus-pilot
d3f3f35ac89721ab67ca221da0dbb6d36ed61196
[ "Apache-2.0" ]
70
2019-06-04T17:46:03.000Z
2020-07-29T15:13:31.000Z
pilot/commands/project/index.py
globusonline/globus-pilot
d3f3f35ac89721ab67ca221da0dbb6d36ed61196
[ "Apache-2.0" ]
5
2019-05-21T15:05:38.000Z
2019-10-10T18:42:21.000Z
import logging import uuid import sys import click from fair_research_login import ScopesMismatch from pilot import commands, exc from pilot.commands.project.project import project_command from pilot.context import DEFAULT_PROJECTS_CACHE_TIMEOUT from pilot.commands import input_validation log = logging.getLogger(__n...
38.586387
79
0.611805
1a3e8d5702244055faf850d848dfb06f0632436b
7,625
py
Python
data/external/repositories_2to3/267667/kaggle-heart-master/configurations/j7_meta.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/267667/kaggle-heart-master/configurations/j7_meta.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/267667/kaggle-heart-master/configurations/j7_meta.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
"""Single slice vgg with normalised scale. """ import functools import lasagne as nn import numpy as np import theano import theano.tensor as T import data_loader import deep_learning_layers import image_transform import layers import preprocess import postprocess import objectives import theano_print...
39.921466
161
0.712525
0f2640381a88c651b3305b12a34e7a51bee94c85
13,198
py
Python
mainapp/views.py
mjzac/rescuekerala
d7c907fc1bc11a10ebdd055696ab3512d7de9f5e
[ "MIT" ]
null
null
null
mainapp/views.py
mjzac/rescuekerala
d7c907fc1bc11a10ebdd055696ab3512d7de9f5e
[ "MIT" ]
null
null
null
mainapp/views.py
mjzac/rescuekerala
d7c907fc1bc11a10ebdd055696ab3512d7de9f5e
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render from django.views.generic.edit import CreateView, UpdateView from django.views.generic.base import TemplateView from .models import Request, Volunteer, DistrictManager, Contributor, DistrictNeed, Person, RescueCamp, NGO, Announcements import djang...
35.28877
170
0.653735
bafbac0f5e4965f3d0ab49c1cb8e6cee14100d73
10,782
py
Python
subprocessOp.py
HalfMAI/AutoYtB
d72a169aca0d33a3a8b71b5c415c1947d9229391
[ "Unlicense" ]
46
2018-09-16T15:36:26.000Z
2021-11-19T11:54:21.000Z
subprocessOp.py
HalfMAI/AutoYtB
d72a169aca0d33a3a8b71b5c415c1947d9229391
[ "Unlicense" ]
1
2018-11-11T15:42:53.000Z
2018-11-12T09:41:07.000Z
subprocessOp.py
HalfMAI/AutoYtB
d72a169aca0d33a3a8b71b5c415c1947d9229391
[ "Unlicense" ]
7
2018-09-27T09:06:17.000Z
2019-09-08T20:10:34.000Z
import os, shutil import subprocess import time, datetime import json import traceback import re import utitls import questInfo import myRequests def __runCMDSync(cmd, isLog=True): try: p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) pid = p.pid if i...
45.112971
197
0.595066
56c4b314f15a5d850885575f9906fecded57a31e
177
py
Python
w3/finterstellar/__init__.py
finterstellar/lecture
fb14fb1c6a842e2ee2f79b0225ac9f4d11c3ca47
[ "MIT" ]
2
2020-05-14T05:53:15.000Z
2020-09-29T03:45:59.000Z
w3/finterstellar/__init__.py
finterstellar/lecture
fb14fb1c6a842e2ee2f79b0225ac9f4d11c3ca47
[ "MIT" ]
null
null
null
w3/finterstellar/__init__.py
finterstellar/lecture
fb14fb1c6a842e2ee2f79b0225ac9f4d11c3ca47
[ "MIT" ]
6
2020-03-01T13:50:23.000Z
2022-03-29T05:47:28.000Z
from .common import * from .prep import * from .trading import * from .trading_intraday import * from .visualization import * from .valuation import * from .coin_price import *
22.125
31
0.762712
6bfa9edec0880b3fb33aec1dee70cba16f361850
5,568
py
Python
d3rlpy/algos/torch/awr_impl.py
alxlampe/d3rlpy
af7e6bd018a51f95138d121f59c50dc36ec87e3a
[ "MIT" ]
null
null
null
d3rlpy/algos/torch/awr_impl.py
alxlampe/d3rlpy
af7e6bd018a51f95138d121f59c50dc36ec87e3a
[ "MIT" ]
null
null
null
d3rlpy/algos/torch/awr_impl.py
alxlampe/d3rlpy
af7e6bd018a51f95138d121f59c50dc36ec87e3a
[ "MIT" ]
null
null
null
import torch from torch.optim import SGD from d3rlpy.models.torch.v_functions import create_value_function from d3rlpy.models.torch.policies import squash_action, create_normal_policy from d3rlpy.models.torch.policies import create_categorical_policy from .utility import torch_api, train_api, eval_api from .utility im...
38.937063
78
0.593211
dfefb763a5ac18fff2a9a40876ad923c5299fb40
7,373
py
Python
machine_repository_3.py
2021-SE-Lab-Mindstorm-Project/Smart-Warehouse-Machine
8e25ecd00772bc17c33b95ede91c09a90c21f66f
[ "Apache-2.0" ]
null
null
null
machine_repository_3.py
2021-SE-Lab-Mindstorm-Project/Smart-Warehouse-Machine
8e25ecd00772bc17c33b95ede91c09a90c21f66f
[ "Apache-2.0" ]
null
null
null
machine_repository_3.py
2021-SE-Lab-Mindstorm-Project/Smart-Warehouse-Machine
8e25ecd00772bc17c33b95ede91c09a90c21f66f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env pybricks-micropython import time from threading import Thread import ujson import urequests from pybricks.ev3devices import Motor, ColorSensor, UltrasonicSensor from pybricks.parameters import Port, Stop, Direction from pybricks.tools import wait # Initialize the motors belt_motor = Motor(Port.D, Direc...
30.466942
116
0.534789
e65156668c4652ec084a9ccbdccbab8ff050b139
81,217
py
Python
nova/tests/unit/objects/test_instance.py
jeffrey4l/nova
35375133398d862a61334783c1e7a90b95f34cdb
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/objects/test_instance.py
jeffrey4l/nova
35375133398d862a61334783c1e7a90b95f34cdb
[ "Apache-2.0" ]
1
2019-01-02T01:30:35.000Z
2019-01-02T01:38:02.000Z
nova/tests/unit/objects/test_instance.py
jeffrey4l/nova
35375133398d862a61334783c1e7a90b95f34cdb
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 IBM Corp. # # 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 agree...
47.774706
79
0.594666
0ac776603731afe58f8b17074383fe0ff55031d5
297
py
Python
mysql_taobao_blog/mysql_taobao_blog/pipelines.py
yunqingqing/scrapy_toy
1da70b8d4483376d2143cf4b2490672416f745f7
[ "Apache-2.0" ]
1
2020-04-15T13:58:16.000Z
2020-04-15T13:58:16.000Z
mysql_taobao_blog/mysql_taobao_blog/pipelines.py
yunqingqing/scrapy_toy
1da70b8d4483376d2143cf4b2490672416f745f7
[ "Apache-2.0" ]
1
2022-03-02T15:01:29.000Z
2022-03-02T15:01:29.000Z
mysql_taobao_blog/mysql_taobao_blog/pipelines.py
yunqingqing/scrapy_toy
1da70b8d4483376d2143cf4b2490672416f745f7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html class MysqlTaobaoBlogPipeline(object): def process_item(self, item, spider): return item
24.75
66
0.720539
add570f0deab5000d2177d565c5a8d3d8026ee9a
5,288
py
Python
grr/server/grr_response_server/databases/mem.py
4ndygu/grr
cfc725b5ee3a2626ac4cdae7fb14471612da4522
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/databases/mem.py
4ndygu/grr
cfc725b5ee3a2626ac4cdae7fb14471612da4522
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/databases/mem.py
4ndygu/grr
cfc725b5ee3a2626ac4cdae7fb14471612da4522
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """An in memory database implementation used for testing.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import collections import sys import threading from grr_response_core.lib import rdfvalue from grr_response_core.lib import...
34.337662
79
0.719554
7da18482db8cd064268b68524f4386568f9b5b5a
1,755
py
Python
ciphers/simple_substitution_cipher.py
czuo0303/Python
4b71e2647b38f146e795a645957b311905c6c33f
[ "MIT" ]
7
2020-03-29T08:20:07.000Z
2022-03-19T06:41:19.000Z
ciphers/simple_substitution_cipher.py
Mathewsmusukuma/Python
4866b1330bc7c77c0ed0e050e6b99efdeb026448
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
ciphers/simple_substitution_cipher.py
Mathewsmusukuma/Python
4866b1330bc7c77c0ed0e050e6b99efdeb026448
[ "MIT" ]
4
2020-03-06T00:53:00.000Z
2021-01-05T13:42:35.000Z
import sys, random LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" def main(): message = input("Enter message: ") key = "LFWOAYUISVKMNXPBDCRJTQEGHZ" resp = input("Encrypt/Decrypt [e/d]: ") checkValidKey(key) if resp.lower().startswith("e"): mode = "encrypt" translated = encryptMessage(ke...
22.5
69
0.612536
cb6de1ff997d5104ef2ccefdb05f75b03da20ab7
14,276
py
Python
ccgnet-OB/ccgnet/layers.py
Saoge123/ccgnet
9359c642bd1faa4c15cae829615385761ebd8d92
[ "MIT" ]
17
2020-11-09T08:07:36.000Z
2022-03-17T13:53:46.000Z
ccgnet-OB/ccgnet/layers.py
Saoge123/ccgnet
9359c642bd1faa4c15cae829615385761ebd8d92
[ "MIT" ]
2
2021-05-05T14:18:36.000Z
2021-10-22T02:58:53.000Z
ccgnet-OB/ccgnet/layers.py
Saoge123/ccgnet
9359c642bd1faa4c15cae829615385761ebd8d92
[ "MIT" ]
2
2021-10-16T14:34:17.000Z
2021-10-21T06:49:32.000Z
# -*- coding: utf-8 -*- import tensorflow as tf import numpy as np import math class GraphCNNKeys(object): TRAIN_SUMMARIES = "train_summaries" TEST_SUMMARIES = "test_summaries" class GraphCNNGlobal(object): BN_DECAY = 0.999 GRAPHCNN_INIT_FACTOR = 1. GRAPHCNN_I_FACTOR = 1.0 def make_variable(...
52.678967
196
0.66223
bc5b13a5a99c26d891d9ef49fa29655d5ad2fa06
1,845
py
Python
RollDice.py
SwethaGudla/Dice_POC
818b343773027791508b59badf7159b1fee5f2f8
[ "BSD-3-Clause" ]
null
null
null
RollDice.py
SwethaGudla/Dice_POC
818b343773027791508b59badf7159b1fee5f2f8
[ "BSD-3-Clause" ]
null
null
null
RollDice.py
SwethaGudla/Dice_POC
818b343773027791508b59badf7159b1fee5f2f8
[ "BSD-3-Clause" ]
null
null
null
import random #importing random module res=[1,2,3,4,5,6] list_all = [] def dice(x): ''' To print Dice''' print(f' {x[1]} ') print(' +---------+') print(' /| /|') print(f' / | {x[2]} / |') print(' +--+------+ +') print(f'{x[5]}| / ...
23.653846
76
0.465583
72929e50ed42ebe8c33778f7716e8b3d69490e28
1,411
py
Python
apr24 lab.py
seanmacb/COMP-115-Exercises
fbe7e5b158f2db785b886b6c600f1a8beb19ab1f
[ "MIT" ]
null
null
null
apr24 lab.py
seanmacb/COMP-115-Exercises
fbe7e5b158f2db785b886b6c600f1a8beb19ab1f
[ "MIT" ]
null
null
null
apr24 lab.py
seanmacb/COMP-115-Exercises
fbe7e5b158f2db785b886b6c600f1a8beb19ab1f
[ "MIT" ]
null
null
null
import random as rand class Tictactoe: def __init__(self): self.list=[[" "for i in range(3)] for j in range (3)] def printBoard(self): for i in range(3): for j in range (3): print(self.list[i][j], end="") if j<2: print("|", end="")...
27.666667
61
0.467753
a3b24f836ee19ef878b3e36cba4f855afef2e571
480
py
Python
oscar/lib/python2.7/site-packages/django/core/mail/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/core/mail/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/core/mail/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Email message and email sending related helper functions. """ import socket # Cache the hostname, but do it lazily: socket.getfqdn() can take a couple of # seconds, which slows down the restart of the server. class CachedDnsName(object): def __str__(self): return self.get_fqdn() def...
22.857143
78
0.647917
00be830fcf8f06187641131b7ec8d43d3b1a38df
50,068
py
Python
tests/datasets/api_tests.py
xxiao23/superset
cf77a170494c5a2abe43130f81e01f62f89888e2
[ "Apache-2.0" ]
1
2021-03-09T12:27:09.000Z
2021-03-09T12:27:09.000Z
tests/datasets/api_tests.py
spookymotion/superset
d0714a097294f5ab1405b7958994eab1b6af7dec
[ "Apache-2.0" ]
34
2021-03-10T20:27:28.000Z
2022-03-15T18:37:08.000Z
tests/datasets/api_tests.py
spookymotion/superset
d0714a097294f5ab1405b7958994eab1b6af7dec
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.333804
110
0.58824
2070ea9c3fe97292077255bf1ea72f799a5b415c
4,168
py
Python
discord/types/channel.py
ryry013/pycord
6a9ea97d12b919cf4cc55dc46edace9629997c14
[ "MIT" ]
null
null
null
discord/types/channel.py
ryry013/pycord
6a9ea97d12b919cf4cc55dc46edace9629997c14
[ "MIT" ]
null
null
null
discord/types/channel.py
ryry013/pycord
6a9ea97d12b919cf4cc55dc46edace9629997c14
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Copyright (c) 2021-present Pycord Development 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 limit...
24.232558
75
0.759837
296cc9416c994b34096a6c83a9951384f3e55262
1,186
py
Python
genomic_neuralnet/util/ec2_util.py
lambdaman/genomic-neuralnet
67ed4f55dc8d5fefb1d9e3a9fc920a0b643fe9c9
[ "MIT" ]
3
2020-05-25T22:07:15.000Z
2021-07-01T19:17:52.000Z
genomic_neuralnet/util/ec2_util.py
prabaharravichandran/genomic-neuralnet
67ed4f55dc8d5fefb1d9e3a9fc920a0b643fe9c9
[ "MIT" ]
null
null
null
genomic_neuralnet/util/ec2_util.py
prabaharravichandran/genomic-neuralnet
67ed4f55dc8d5fefb1d9e3a9fc920a0b643fe9c9
[ "MIT" ]
8
2018-10-12T17:05:17.000Z
2022-03-07T23:58:12.000Z
from __future__ import print_function import boto3 def get_master_dns(public=False): ec2 = boto3.resource('ec2', region_name='ap-northeast-1') instances = ec2.instances.all() master = None for instance in instances: tags = instance.tags state = instance.state['Name'] for t in ...
26.954545
89
0.616358
c3b20d9ef27a927e1a34e43352d8fffb79aecfde
761
py
Python
tests/test_missed_words.py
glebite/dikteh
c717696420901e7b19fc181ac4a853a698769616
[ "CC0-1.0" ]
null
null
null
tests/test_missed_words.py
glebite/dikteh
c717696420901e7b19fc181ac4a853a698769616
[ "CC0-1.0" ]
null
null
null
tests/test_missed_words.py
glebite/dikteh
c717696420901e7b19fc181ac4a853a698769616
[ "CC0-1.0" ]
null
null
null
import pytest from missed_handler import MissedWords def test_instantiate_object(): x = MissedWords(file_name='tempword.json') if not x: assert False, "Should have been able to instantiate" def test_confirm_initial_empty(): x = MissedWords(file_name='tempword.json') assert len(x.missed_words...
24.548387
63
0.662286
bfd3054576c1b2df2c169f26b2f032e903499370
114,418
py
Python
python-package/lightgbm/basic.py
G-Research/LightGBM
4c3dfa2eb74430ef562771c7b2099c87a0eb217c
[ "MIT" ]
null
null
null
python-package/lightgbm/basic.py
G-Research/LightGBM
4c3dfa2eb74430ef562771c7b2099c87a0eb217c
[ "MIT" ]
null
null
null
python-package/lightgbm/basic.py
G-Research/LightGBM
4c3dfa2eb74430ef562771c7b2099c87a0eb217c
[ "MIT" ]
1
2018-11-27T15:04:50.000Z
2018-11-27T15:04:50.000Z
# coding: utf-8 # pylint: disable = invalid-name, C0111, C0301 # pylint: disable = R0912, R0913, R0914, W0105, W0201, W0212 """Wrapper for C API of LightGBM.""" from __future__ import absolute_import import copy import ctypes import os import warnings from tempfile import NamedTemporaryFile import numpy as np import ...
39.050512
134
0.592022
3b5c5b8c98258e178600df5592a0125e22b987df
207
py
Python
controller/logger.py
adc21/snap-controller
e1c6131859d6ec602e5c8521de41e6e4c9608554
[ "MIT" ]
2
2021-04-21T15:22:23.000Z
2021-05-12T01:45:43.000Z
controller/logger.py
adc21/snap-controller
e1c6131859d6ec602e5c8521de41e6e4c9608554
[ "MIT" ]
null
null
null
controller/logger.py
adc21/snap-controller
e1c6131859d6ec602e5c8521de41e6e4c9608554
[ "MIT" ]
null
null
null
import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(message)s', datefmt='%Y-%m-%d %H:%M:%S') logger = logging.getLogger("snap-controller")
29.571429
55
0.570048
a54187d382d9477ec45af7c5d8d77e86adfaa973
462
py
Python
pollster/polls/migrations/0002_auto_20200328_1709.py
FranSantiago/pollster_project
335bfa90a34cdfe5550a1e570d1e7837ff2121c9
[ "MIT" ]
null
null
null
pollster/polls/migrations/0002_auto_20200328_1709.py
FranSantiago/pollster_project
335bfa90a34cdfe5550a1e570d1e7837ff2121c9
[ "MIT" ]
5
2021-03-19T01:28:08.000Z
2021-09-22T18:51:51.000Z
pollster/polls/migrations/0002_auto_20200328_1709.py
FranSantiago/pollster_project
335bfa90a34cdfe5550a1e570d1e7837ff2121c9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-28 17:09 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('polls', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Choice', new_name='Choices', ), ...
20.086957
47
0.551948
0f4a1cbbee0ebcc3645b2f74bc04896415cf58d7
12,356
py
Python
airflow/gcp/hooks/bigquery_dts.py
penghou620/airflow
7b6045a479edca06732fd766ef8ceabf41c7e82a
[ "Apache-2.0" ]
1
2019-09-19T15:22:15.000Z
2019-09-19T15:22:15.000Z
airflow/gcp/hooks/bigquery_dts.py
penghou620/airflow
7b6045a479edca06732fd766ef8ceabf41c7e82a
[ "Apache-2.0" ]
null
null
null
airflow/gcp/hooks/bigquery_dts.py
penghou620/airflow
7b6045a479edca06732fd766ef8ceabf41c7e82a
[ "Apache-2.0" ]
1
2019-11-26T21:53:20.000Z
2019-11-26T21:53:20.000Z
# -*- coding: utf-8 -*- # # 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 #...
44.446043
109
0.682421
58d6e83655148683662dc59cddc7844759d90a6d
574
py
Python
pystellibs/interpolator/interpolator.py
lcjohnso/pystellibs
3df5d029df61e5488c5dae3422ec8b616298e85f
[ "MIT" ]
5
2016-10-25T13:37:55.000Z
2020-11-03T09:46:17.000Z
pystellibs/interpolator/interpolator.py
lcjohnso/pystellibs
3df5d029df61e5488c5dae3422ec8b616298e85f
[ "MIT" ]
2
2018-06-01T21:50:29.000Z
2019-01-05T21:12:14.000Z
pystellibs/interpolator/interpolator.py
lcjohnso/pystellibs
3df5d029df61e5488c5dae3422ec8b616298e85f
[ "MIT" ]
3
2016-10-18T16:52:39.000Z
2019-11-13T20:09:56.000Z
""" Base interpolator: a dummy class is derived by the different interpolator schemes """ class BaseInterpolator(object): """ Base class for interpolation It sets what can be expected as methods during the interpolation calls """ def __init__(self, osl, *args, **kwargs): pass def interp(...
30.210526
89
0.660279
c01ab32444fdf19e824038d8723d4beffcc59e38
2,391
py
Python
empower/cli/wifislices_commands/upsert_wifi_slice.py
ericbrinckhaus/empower-runtime-modified
ecd7c1e9f1c19a629abdcb5c55257377313246ea
[ "Apache-2.0" ]
null
null
null
empower/cli/wifislices_commands/upsert_wifi_slice.py
ericbrinckhaus/empower-runtime-modified
ecd7c1e9f1c19a629abdcb5c55257377313246ea
[ "Apache-2.0" ]
null
null
null
empower/cli/wifislices_commands/upsert_wifi_slice.py
ericbrinckhaus/empower-runtime-modified
ecd7c1e9f1c19a629abdcb5c55257377313246ea
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2019 Roberto Riggio # # 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 applicabl...
29.158537
75
0.633626
02d7937fe2252ceee279905687703fdc09e2a87b
978
py
Python
tests/template_tests/urls.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
16
2019-08-10T12:24:06.000Z
2020-05-21T09:11:14.000Z
tests/template_tests/urls.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
12
2019-08-10T11:55:29.000Z
2020-05-21T04:46:30.000Z
tests/template_tests/urls.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
3
2019-08-20T13:29:34.000Z
2020-01-30T22:05:10.000Z
from django.urls import include, path, re_path from . import views ns_patterns = [ # Test urls for testing reverse lookups path("", views.index, name="index"), re_path(r"^client/([0-9,]+)/$", views.client, name="client"), re_path( r"^client/(?P<id>[0-9]+)/(?P<action>[^/]+)/$", views.cl...
31.548387
80
0.596115
06c909831f6eccab3053b3d9fb9889d702c465d2
2,398
py
Python
client/statistics.py
terrorizer1980/pyre-check
16659c7f6f19f3c364ba3a56e6c582371a8ff348
[ "MIT" ]
null
null
null
client/statistics.py
terrorizer1980/pyre-check
16659c7f6f19f3c364ba3a56e6c582371a8ff348
[ "MIT" ]
4
2022-02-15T02:42:33.000Z
2022-02-28T01:30:07.000Z
client/statistics.py
terrorizer1980/pyre-check
16659c7f6f19f3c364ba3a56e6c582371a8ff348
[ "MIT" ]
1
2020-11-22T12:08:51.000Z
2020-11-22T12:08:51.000Z
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import logging import os import platform import subprocess import sys import time import traceback from argparse import Namespace from e...
32.849315
84
0.655963
215d7de92b6f4cb8f06efdd13a1fcd7b29a376d3
253
py
Python
test/dump_rom.py
maclobdell/pyOCD
734b0609fa97aee179f96037c283ad89751f5379
[ "Apache-2.0" ]
2
2019-07-18T06:51:27.000Z
2021-06-30T00:36:12.000Z
test/dump_rom.py
jacobjohnson-ON/pyOCD
734b0609fa97aee179f96037c283ad89751f5379
[ "Apache-2.0" ]
null
null
null
test/dump_rom.py
jacobjohnson-ON/pyOCD
734b0609fa97aee179f96037c283ad89751f5379
[ "Apache-2.0" ]
1
2017-07-20T20:47:18.000Z
2017-07-20T20:47:18.000Z
from pyOCD.board import MbedBoard with MbedBoard.chooseBoard() as board: target = board.target data = target.readBlockMemoryUnaligned8(0x2000, 32 * 1024) data = bytearray(data) f = open("dump.bin", "wb") f.write(data) f.close()
25.3
62
0.675889
08a5e137be23e1abea9ba25ebc7ccf869182ec5e
2,350
py
Python
detro/predictors/predictor.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
detro/predictors/predictor.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
detro/predictors/predictor.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
import torch from detro.configs import ConfigBase class PredictConfig(ConfigBase): INPUT_SIZE=None CLASSES=None NUM_CLASSES=None NUM_POINTS=None HEATMAP_DOWNSAMPLE=None MAX_OUTPUT_NUM=None SCORE_THRESH=None DEVICE=None WEIGHTS_PATH=None model=None transform=None def get_...
27.97619
83
0.603404
1b563a6e373dc9d4ae112c11d99c13cccf61898d
3,947
py
Python
freqshow.py
ki7dk/FreqShow
adc4f0278621811e2668c497bf16cb25396fe943
[ "MIT" ]
109
2015-01-01T19:32:51.000Z
2022-03-31T11:41:33.000Z
freqshow.py
ki7dk/FreqShow
adc4f0278621811e2668c497bf16cb25396fe943
[ "MIT" ]
22
2015-03-03T04:44:29.000Z
2022-03-27T23:27:05.000Z
freqshow.py
ki7dk/FreqShow
adc4f0278621811e2668c497bf16cb25396fe943
[ "MIT" ]
60
2015-01-07T12:06:57.000Z
2022-01-05T03:36:36.000Z
# FreqShow main application and configuration. # Author: Tony DiCola (tony@tonydicola.com) # # The MIT License (MIT) # # Copyright (c) 2014 Adafruit Industries # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal...
37.951923
80
0.722574
7f11a435e112445083eb68bb1243bea2affb246a
68,878
py
Python
dask/array/tests/test_routines.py
trivialfis/dask
d5f5b912e4d1b5d4477e5c797ef1e9ebd066c8c9
[ "BSD-3-Clause" ]
null
null
null
dask/array/tests/test_routines.py
trivialfis/dask
d5f5b912e4d1b5d4477e5c797ef1e9ebd066c8c9
[ "BSD-3-Clause" ]
null
null
null
dask/array/tests/test_routines.py
trivialfis/dask
d5f5b912e4d1b5d4477e5c797ef1e9ebd066c8c9
[ "BSD-3-Clause" ]
null
null
null
import itertools from numbers import Number import pytest np = pytest.importorskip("numpy") import dask.array as da from dask.array.utils import IS_NEP18_ACTIVE, AxisError, assert_eq, same_keys from dask.utils import ignoring def test_array(): x = np.ones(5, dtype="i4") d = da.ones(5, chunks=3, dtype="i4")...
30.130359
88
0.561848
b1439bc32b18fb238352dda418cd0111ce367b86
1,624
py
Python
catalogo/migrations/nnn0001_initial.py
prosicon/ybm1
e287eb0c7c6db8eaf7940034334baf1aed940a44
[ "CC0-1.0" ]
null
null
null
catalogo/migrations/nnn0001_initial.py
prosicon/ybm1
e287eb0c7c6db8eaf7940034334baf1aed940a44
[ "CC0-1.0" ]
null
null
null
catalogo/migrations/nnn0001_initial.py
prosicon/ybm1
e287eb0c7c6db8eaf7940034334baf1aed940a44
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-21 03:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
33.833333
115
0.56835
96d7f3ccb9578003eac7ca2c7299bfa7c9cdfe26
1,097
py
Python
libs/external_libs/docutils-0.4/test/test_parsers/test_rst/test_functions.py
google-code-export/django-hotclub
d783a5bbcc06816289565f3eae6d99461188ca4a
[ "MIT" ]
3
2015-12-25T14:45:36.000Z
2016-11-28T09:58:03.000Z
libs/external_libs/docutils-0.4/test/test_parsers/test_rst/test_functions.py
indro/t2c
56482ad4aed150f29353e054db2c97b567243bf8
[ "MIT" ]
null
null
null
libs/external_libs/docutils-0.4/test/test_parsers/test_rst/test_functions.py
indro/t2c
56482ad4aed150f29353e054db2c97b567243bf8
[ "MIT" ]
null
null
null
#! /usr/bin/env python # Author: David Goodger # Contact: goodger@users.sourceforge.net # Revision: $Revision: 778 $ # Date: $Date: 2002-10-09 02:51:53 +0200 (Wed, 09 Oct 2002) $ # Copyright: This module has been placed in the public domain. """ Tests for states.py. """ import unittest from __init__ import DocutilsT...
28.128205
62
0.674567
d87cfe830b069bbedd99af64534bdbfbcb42c189
6,877
py
Python
data/level/level1100.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level1100.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level1100.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = { 'level_index': 1100, 'move_count': 27, 'board_info': { (0, 0): { 'prev': (-1, 0), 'next': (1, 0), 'base': (2, 1) }, (0, 1): { 'prev': (0, 1), 'next': (0, -1), 'base': (6, 1) }, (0, 2): { ...
22.547541
33
0.194998
cf586014652277410f0a79a61ee8af8dd13bacba
1,403
py
Python
bgen_reader/__init__.py
Horta/bgen-reader-py
6c384dafc83d4f4cec5425a583c725cf4b5773fb
[ "MIT" ]
7
2017-06-27T20:04:42.000Z
2020-08-01T15:56:35.000Z
bgen_reader/__init__.py
Horta/bgen-reader-py
6c384dafc83d4f4cec5425a583c725cf4b5773fb
[ "MIT" ]
39
2017-08-10T08:31:23.000Z
2021-12-03T04:32:56.000Z
bgen_reader/__init__.py
Horta/bgen-reader-py
6c384dafc83d4f4cec5425a583c725cf4b5773fb
[ "MIT" ]
4
2017-11-16T06:15:23.000Z
2020-12-09T10:34:48.000Z
""" BGEN file format reader ======================= `BGEN <http://www.well.ox.ac.uk/~gav/bgen_format/>`_ is a file format for storing large genetic datasets. It supports both unphased genotypes and phased haplotype data with variable ploidy and number of alleles. It was designed to provides a compact data representati...
32.627907
87
0.736992
bbf2190733998661541d49f3778f3e9ebc9c9e1a
75,375
py
Python
rllib/agents/trainer.py
wgifford/ray
8acb469b047cd9b327c9477a13b030eb7357860e
[ "Apache-2.0" ]
null
null
null
rllib/agents/trainer.py
wgifford/ray
8acb469b047cd9b327c9477a13b030eb7357860e
[ "Apache-2.0" ]
32
2021-09-04T07:08:45.000Z
2022-02-19T08:08:11.000Z
rllib/agents/trainer.py
wgifford/ray
8acb469b047cd9b327c9477a13b030eb7357860e
[ "Apache-2.0" ]
null
null
null
import copy from datetime import datetime import functools import gym import logging import math import numpy as np import os import pickle import tempfile import time from typing import Callable, Dict, List, Optional, Type, Union import ray from ray.actor import ActorHandle from ray.exceptions import RayError from ra...
45.433996
79
0.624159
6b286d4d1bf6989b94086f33fe4d3fe94f734123
8,061
py
Python
script/core/benchmarks/Defects4J.py
DehengYang/RepairThemAll
4e188e430d9bd3008bc6c15c99afe3a17c253c90
[ "MIT" ]
null
null
null
script/core/benchmarks/Defects4J.py
DehengYang/RepairThemAll
4e188e430d9bd3008bc6c15c99afe3a17c253c90
[ "MIT" ]
null
null
null
script/core/benchmarks/Defects4J.py
DehengYang/RepairThemAll
4e188e430d9bd3008bc6c15c99afe3a17c253c90
[ "MIT" ]
null
null
null
import collections import json import os import re import subprocess from sets import Set from config import DATA_PATH, JAVA7_HOME from config import REPAIR_ROOT from core.Benchmark import Benchmark from core.Bug import Bug from core.utils import add_benchmark FNULL = open(os.devnull, 'w') class Defects4J(Benchmark...
36.808219
105
0.582434
be2d2d316f35fd6d21b6ae9ad953ad61fab51d41
4,972
py
Python
tests/unit/repository/memory/test_candidate_repository.py
sato-mh/savoten
ef8edf842219480777f5872e65aedadc67d9dfd2
[ "MIT" ]
null
null
null
tests/unit/repository/memory/test_candidate_repository.py
sato-mh/savoten
ef8edf842219480777f5872e65aedadc67d9dfd2
[ "MIT" ]
57
2018-04-30T05:59:43.000Z
2019-12-08T12:16:35.000Z
tests/unit/repository/memory/test_candidate_repository.py
sato-mh/savoten
ef8edf842219480777f5872e65aedadc67d9dfd2
[ "MIT" ]
1
2019-11-03T15:11:05.000Z
2019-11-03T15:11:05.000Z
import pytest from savoten.domain import Candidate, User from savoten.repository.memory import CandidateRepository from tests.util import get_public_vars user_args = { 'name': 'test_user', 'email': 'test_user@test.com', 'permission': 100 } user = User(**user_args) class TestSave: def setup_method(s...
36.558824
80
0.680611
1db8efbfd0ac50303badacfccb315accc42cb97c
1,073
py
Python
nova/volume/__init__.py
bopopescu/extra-specs-1
6a14d8d7807727023b4d589af47e8a9605f12db1
[ "Apache-2.0" ]
null
null
null
nova/volume/__init__.py
bopopescu/extra-specs-1
6a14d8d7807727023b4d589af47e8a9605f12db1
[ "Apache-2.0" ]
1
2020-07-24T14:14:13.000Z
2020-07-24T14:14:13.000Z
nova/volume/__init__.py
bopopescu/extra-specs-1
6a14d8d7807727023b4d589af47e8a9605f12db1
[ "Apache-2.0" ]
1
2020-07-24T10:40:59.000Z
2020-07-24T10:40:59.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...
41.269231
78
0.758621
0022851ab5559c4d40726210bd36839e0494885a
2,464
py
Python
python/qibuild/test/test_cmake_profiling.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qibuild/test/test_cmake_profiling.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qibuild/test/test_cmake_profiling.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the COPYING file. import os import qisys.sh import qibuild.cmake from qibuild.cmake.profiling import parse_cmake_log from qibuild.cmake.profiling import gen_annotation...
46.490566
167
0.732955
a45723498bb5172047cd91e0cebabd891771c59a
1,706
py
Python
AzureSeleniumAutomationPythonSampleApp/AzureSeleniumAutomationPythonSampleApp/ASAP.py
flecoqui/AzureAutomation
64f86c7c264c989dfb10f6877010b345d4df80c9
[ "MIT" ]
null
null
null
AzureSeleniumAutomationPythonSampleApp/AzureSeleniumAutomationPythonSampleApp/ASAP.py
flecoqui/AzureAutomation
64f86c7c264c989dfb10f6877010b345d4df80c9
[ "MIT" ]
null
null
null
AzureSeleniumAutomationPythonSampleApp/AzureSeleniumAutomationPythonSampleApp/ASAP.py
flecoqui/AzureAutomation
64f86c7c264c989dfb10f6877010b345d4df80c9
[ "MIT" ]
null
null
null
import time import argparse import sys import os import platform from selenium import webdriver from selenium.webdriver.common.keys import Keys path= 'C:/temp/Chrome/chromedriver.exe' login = "login" password = "password" parser = argparse.ArgumentParser(description='Azure Selenium Automation in Python (ASAP).') parse...
31.592593
91
0.662368
b81df29e2214cf4126112d5f4e4ed721ae3f81b2
679
py
Python
libs/secrets.py
pz325/hornbook
eff8dd71474e64ed6acb7a2eaaa90cff72daef1f
[ "Artistic-2.0" ]
34
2016-07-09T17:30:44.000Z
2022-03-02T16:48:22.000Z
src/server/libs/secrets.py
CuriousLearner/Shopster
79a6c46e6fc2cf15cab3e2ec6ac59ae38905e4ec
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
src/server/libs/secrets.py
CuriousLearner/Shopster
79a6c46e6fc2cf15cab3e2ec6ac59ae38905e4ec
[ "MIT" ]
11
2016-11-08T22:15:28.000Z
2021-06-17T03:01:19.000Z
import json __secrets = { 'secret_key': 'a', } def getter(path): try: with open(path) as handle: return json.load(handle) except IOError: return __secrets def generator(): # Based on Django's SECRET_KEY hash generator # https://github.com/django/django/blob/9893fa12b7...
24.25
132
0.689249
ffc4f4abb02c3689f6d0e74e55ea275b86424bb1
2,146
py
Python
lib/medipy/io/dicom/generate_private_dictionaries.py
bsavelev/medipy
f0da3750a6979750d5f4c96aedc89ad5ae74545f
[ "CECILL-B" ]
null
null
null
lib/medipy/io/dicom/generate_private_dictionaries.py
bsavelev/medipy
f0da3750a6979750d5f4c96aedc89ad5ae74545f
[ "CECILL-B" ]
null
null
null
lib/medipy/io/dicom/generate_private_dictionaries.py
bsavelev/medipy
f0da3750a6979750d5f4c96aedc89ad5ae74545f
[ "CECILL-B" ]
1
2022-03-04T05:47:08.000Z
2022-03-04T05:47:08.000Z
########################################################################## # MediPy - Copyright (C) Universite de Strasbourg, 2011 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Lice...
34.612903
84
0.518639
ab6f6d22d1a35e7c43bf969238eea4a8ce48dc13
86,935
py
Python
asciimatics/screen.py
on4r4p/asciimatics
8ff843e105763533cd89f1f879fabec29824723c
[ "Apache-2.0" ]
null
null
null
asciimatics/screen.py
on4r4p/asciimatics
8ff843e105763533cd89f1f879fabec29824723c
[ "Apache-2.0" ]
3
2021-06-08T23:25:42.000Z
2022-01-13T03:11:27.000Z
asciimatics/screen.py
on4r4p/asciimatics
8ff843e105763533cd89f1f879fabec29824723c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ This module defines common screen output function. For more details, see http://asciimatics.readthedocs.io/en/latest/io.html """ from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import os fr...
37.455838
99
0.540933
3b37f739f30da19ab0b3578a332c6287e3f5b25d
19,000
py
Python
limesurveyrc2api/_survey.py
plascual/limesurveyrc2api
377613100781853499b4a5c58bd2c01221ec2e1f
[ "MIT" ]
3
2019-09-05T14:21:47.000Z
2021-09-23T12:16:56.000Z
limesurveyrc2api/_survey.py
plascual/limesurveyrc2api
377613100781853499b4a5c58bd2c01221ec2e1f
[ "MIT" ]
null
null
null
limesurveyrc2api/_survey.py
plascual/limesurveyrc2api
377613100781853499b4a5c58bd2c01221ec2e1f
[ "MIT" ]
3
2020-02-25T23:54:24.000Z
2022-01-25T14:27:23.000Z
import warnings from collections import OrderedDict from limesurveyrc2api.exceptions import LimeSurveyError from os.path import splitext from base64 import b64encode class _Survey(object): def __init__(self, api): self.api = api def list_surveys(self, username=None): """ List surveys ...
41.758242
80
0.556789
72d8f99620eeb5f9e9e2f5dcba2c3df77ed5efc3
454
py
Python
examples/flask-blueprint/app.py
dstuebe/honeybadger-python
81519b40d3e446b62035f64e34900e08ff91938c
[ "MIT" ]
14
2016-05-02T08:53:56.000Z
2022-01-16T07:29:21.000Z
examples/flask-blueprint/app.py
dstuebe/honeybadger-python
81519b40d3e446b62035f64e34900e08ff91938c
[ "MIT" ]
65
2016-08-22T15:57:36.000Z
2022-03-16T16:48:15.000Z
examples/flask-blueprint/app.py
dstuebe/honeybadger-python
81519b40d3e446b62035f64e34900e08ff91938c
[ "MIT" ]
22
2016-08-05T14:16:57.000Z
2022-03-10T20:27:53.000Z
import logging from flask import Flask from honeybadger.contrib import FlaskHoneybadger from blueprint import simple_page logger = logging.getLogger(__name__) app = Flask(__name__) app.config['HONEYBADGER_ENVIRONMENT'] = 'honeybadger-example' app.config['HONEYBADGER_API_KEY'] = '<your key>' app.config['HONEYBADGER_...
26.705882
74
0.812775
3b405e08eed1dbadf2b0a3151af6f0a3089802c1
802
py
Python
bank_accounts/urls.py
blarmon/bank-account-microservice
84039311e5aac40bcfdee593d3456158a98b001b
[ "MIT" ]
null
null
null
bank_accounts/urls.py
blarmon/bank-account-microservice
84039311e5aac40bcfdee593d3456158a98b001b
[ "MIT" ]
null
null
null
bank_accounts/urls.py
blarmon/bank-account-microservice
84039311e5aac40bcfdee593d3456158a98b001b
[ "MIT" ]
null
null
null
"""bank_accounts URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
34.869565
77
0.705736
142e60d18df5b287496c819f1501e874070bd047
8,652
py
Python
iot/api-client/manager/manager_test.py
spitfire55/python-docs-samples
b8fe0d1c5c9f7f5d27965fa3367117af7b1f0aed
[ "Apache-2.0" ]
4
2018-12-23T18:17:14.000Z
2020-01-05T19:13:58.000Z
iot/api-client/manager/manager_test.py
spitfire55/python-docs-samples
b8fe0d1c5c9f7f5d27965fa3367117af7b1f0aed
[ "Apache-2.0" ]
null
null
null
iot/api-client/manager/manager_test.py
spitfire55/python-docs-samples
b8fe0d1c5c9f7f5d27965fa3367117af7b1f0aed
[ "Apache-2.0" ]
4
2018-06-03T14:43:25.000Z
2019-11-24T04:05:18.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
31.692308
74
0.699029
6dbd6b91d5ab249632ef170f55e32254011ce252
1,346
py
Python
problemSolving/sierpenski_triangle.py
code-knayam/DataStructureAlgorithms
8425911633d4d343c58798a123175289ed0df1fe
[ "MIT" ]
null
null
null
problemSolving/sierpenski_triangle.py
code-knayam/DataStructureAlgorithms
8425911633d4d343c58798a123175289ed0df1fe
[ "MIT" ]
null
null
null
problemSolving/sierpenski_triangle.py
code-knayam/DataStructureAlgorithms
8425911633d4d343c58798a123175289ed0df1fe
[ "MIT" ]
null
null
null
import turtle def drawTriangle(points,color,myTurtle): myTurtle.fillcolor(color) myTurtle.up() myTurtle.goto(points[0][0],points[0][1]) myTurtle.down() myTurtle.begin_fill() myTurtle.goto(points[1][0],points[1][1]) myTurtle.goto(points[2][0],points[2][1]) myTurtle.goto(points[0][0],poin...
31.302326
54
0.537147
c5ca61fb438b586be1a26fe0e09401f84d1f20c9
349
py
Python
constants.py
erinxocon/pybuntu-docker
8f1abb30e6ea660f5dd1066bcb55f1681c5543f1
[ "MIT" ]
6
2018-11-02T23:05:38.000Z
2022-03-21T14:57:52.000Z
constants.py
erinxocon/pybuntu-docker
8f1abb30e6ea660f5dd1066bcb55f1681c5543f1
[ "MIT" ]
1
2021-03-23T11:36:25.000Z
2021-03-23T11:36:25.000Z
constants.py
erinxocon/pybuntu-docker
8f1abb30e6ea660f5dd1066bcb55f1681c5543f1
[ "MIT" ]
null
null
null
from pathlib import Path ROOT = Path(__file__).parent TEMPLATES_DIR = ROOT / "templates" OUT = ROOT / "out" UBUNTU_VERSIONS = {"18.04": "bionic", "20.04": "focal"} PYTHON_VERSIONS = {"3.6.15", "3.7.12", "3.8.12", "3.9.7", "3.10.0rc2"} VERSIONS = ((u_ver, p_ver) for u_ver in UBUNTU_VERSIONS for p_ver in PYTHON_VERSI...
24.928571
85
0.667622
30c58e1c42df5caa19dc262c151de5e4004bd4f6
14,663
py
Python
src/electionguard/tally.py
shivamdn9/electionguard-python
4b091eb96513fd250411151db939e2b1f5fc0bb6
[ "MIT" ]
null
null
null
src/electionguard/tally.py
shivamdn9/electionguard-python
4b091eb96513fd250411151db939e2b1f5fc0bb6
[ "MIT" ]
null
null
null
src/electionguard/tally.py
shivamdn9/electionguard-python
4b091eb96513fd250411151db939e2b1f5fc0bb6
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Iterable, Optional, List, Dict, Set, Tuple from collections.abc import Container, Sized from .ballot import ( BallotBoxState, CiphertextBallotSelection, CiphertextAcceptedBallot, CiphertextSelection, ) from .ballot_store import BallotStore fro...
32.584444
100
0.654777
1d84c7c56dcd01c77c4d5a8a03f35fae35aff09c
41,267
py
Python
electrum/keystore.py
shankerwangmiao/electrum
c87f42248d4d2143e7b6033acd026dd9dc6a4c88
[ "MIT" ]
null
null
null
electrum/keystore.py
shankerwangmiao/electrum
c87f42248d4d2143e7b6033acd026dd9dc6a4c88
[ "MIT" ]
null
null
null
electrum/keystore.py
shankerwangmiao/electrum
c87f42248d4d2143e7b6033acd026dd9dc6a4c88
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- mode: python -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 2016 The Electrum developers # # 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...
37.618049
113
0.656772
dfc99a73018c8d284407a324e956650e06f02d06
5,145
py
Python
test/test_apply_channel.py
NVlabs/sionna
488e6c3ff6ff2b3313d0ca0f94e4247b8dd6ff35
[ "Apache-2.0" ]
163
2022-03-22T19:47:47.000Z
2022-03-31T23:56:45.000Z
test/test_apply_channel.py
Maryammhsnv/sionna
527d0f7866b379afffad34a6bef7ed3bf6f33ad2
[ "Apache-2.0" ]
2
2022-03-24T12:43:07.000Z
2022-03-29T07:17:16.000Z
test/test_apply_channel.py
Maryammhsnv/sionna
527d0f7866b379afffad34a6bef7ed3bf6f33ad2
[ "Apache-2.0" ]
19
2022-03-23T02:31:22.000Z
2022-03-30T06:35:12.000Z
# # SPDX-FileCopyrightText: Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # try: import sionna except ImportError as e: import sys sys.path.append("../") from sionna.channel import ApplyTimeChannel, ApplyOFDMChannel import pytest impor...
41.829268
103
0.408163
41c9c60b5e16189c54ae5890e1e379819eb5f15e
8,308
py
Python
stib_administraciones/horarios/migrations/0001_initial.py
nfheredia/stib-administraciones
05dae746d2fecf75c1d50c4ee679c02ddbf7208a
[ "BSD-3-Clause" ]
null
null
null
stib_administraciones/horarios/migrations/0001_initial.py
nfheredia/stib-administraciones
05dae746d2fecf75c1d50c4ee679c02ddbf7208a
[ "BSD-3-Clause" ]
null
null
null
stib_administraciones/horarios/migrations/0001_initial.py
nfheredia/stib-administraciones
05dae746d2fecf75c1d50c4ee679c02ddbf7208a
[ "BSD-3-Clause" ]
1
2020-10-28T15:46:48.000Z
2020-10-28T15:46:48.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Horarios' db.create_table(u'horarios_horarios', ( ...
72.877193
195
0.578238
3d227cbf2562fcfc5efdccdb72ddd480d6ec0f1c
4,085
py
Python
conans/client/graph/build_mode.py
JoachimKuebart-TomTom/conan
bf716c094d6b3f5acd727eed3c4b4fe1ad9e1c00
[ "MIT" ]
1
2021-05-29T16:44:56.000Z
2021-05-29T16:44:56.000Z
conans/client/graph/build_mode.py
JoachimKuebart-TomTom/conan
bf716c094d6b3f5acd727eed3c4b4fe1ad9e1c00
[ "MIT" ]
1
2019-06-07T03:02:02.000Z
2019-06-07T03:02:02.000Z
conans/client/graph/build_mode.py
JoachimKuebart-TomTom/conan
bf716c094d6b3f5acd727eed3c4b4fe1ad9e1c00
[ "MIT" ]
1
2021-08-20T19:47:51.000Z
2021-08-20T19:47:51.000Z
import fnmatch from conans.errors import ConanException class BuildMode(object): """ build_mode => ["*"] if user wrote "--build" => ["hello*", "bye*"] if user wrote "--build hello --build bye" => ["hello/0.1@foo/bar"] if user wrote "--build hello/0.1@foo/bar" ...
38.17757
101
0.535863
f7164c3b3d1d6ac0d4796def751849537a7f15bf
2,893
py
Python
examples/asyncio/wamp/beginner/server.py
luhn/AutobahnPython
7d519052ab42dc029598ab9e2dbdd7af8e08341f
[ "Apache-2.0" ]
null
null
null
examples/asyncio/wamp/beginner/server.py
luhn/AutobahnPython
7d519052ab42dc029598ab9e2dbdd7af8e08341f
[ "Apache-2.0" ]
null
null
null
examples/asyncio/wamp/beginner/server.py
luhn/AutobahnPython
7d519052ab42dc029598ab9e2dbdd7af8e08341f
[ "Apache-2.0" ]
null
null
null
############################################################################### ## ## Copyright (C) 2014 Tavendo GmbH ## ## 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:/...
31.107527
79
0.620809
2560306b9f40528a3ccd727ce00350f20a4e0e35
5,565
py
Python
python/personal_writer.py
hzla/Pokeweb
203f8449179a5a0aeb4fa5d48e483048f09b24d1
[ "MIT" ]
3
2021-03-30T22:07:40.000Z
2021-06-11T02:32:06.000Z
python/personal_writer.py
hzla/Pokeweb
203f8449179a5a0aeb4fa5d48e483048f09b24d1
[ "MIT" ]
2
2021-07-03T18:04:09.000Z
2022-01-12T18:02:30.000Z
python/personal_writer.py
hzla/Pokeweb
203f8449179a5a0aeb4fa5d48e483048f09b24d1
[ "MIT" ]
1
2021-09-06T18:20:23.000Z
2021-09-06T18:20:23.000Z
import ndspy import ndspy.rom import ndspy.narc import code import io import os import json import copy import sys import sprite_writer # code.interact(local=dict(globals(), **locals())) ######################### CONSTANTS ############################# NARC_FILE_ID = 258 with open(f'session_settings.json', "r") as...
28.834197
169
0.669542
241e95ce2f65e0650db5f97c5a63ba41b6dff11a
6,967
py
Python
FactorKeeper/Core/WorkerNode/WorkerNodeImpl/TickDataUpdateManager.py
JayceSYH/FactorKeeper
c4711c0691aed89b8f38ba47faabbfa40b18c74f
[ "MIT" ]
null
null
null
FactorKeeper/Core/WorkerNode/WorkerNodeImpl/TickDataUpdateManager.py
JayceSYH/FactorKeeper
c4711c0691aed89b8f38ba47faabbfa40b18c74f
[ "MIT" ]
null
null
null
FactorKeeper/Core/WorkerNode/WorkerNodeImpl/TickDataUpdateManager.py
JayceSYH/FactorKeeper
c4711c0691aed89b8f38ba47faabbfa40b18c74f
[ "MIT" ]
null
null
null
from Core.DAO.TickDataDao import TickDataDao from Core.Error.Error import Error from Core.WorkerNode.WorkerNodeImpl.WorkerTaskManager import Task, TaskGroup, TaskConst from Core.WorkerNode.WorkerNodeImpl.Message import FinishACKMessage, KillMessage, MessageLogger from Core.Conf.TickDataConf import TickDataConf from Cor...
36.286458
114
0.681355
333358ee8643584442abed9e9278a4751cd9ef20
1,140
py
Python
snowlipse/EllipseContainer.py
doomsuckle/snowlipse
1e2fa2e10617bdfa0df4dd156803a33d69e822af
[ "MIT" ]
null
null
null
snowlipse/EllipseContainer.py
doomsuckle/snowlipse
1e2fa2e10617bdfa0df4dd156803a33d69e822af
[ "MIT" ]
null
null
null
snowlipse/EllipseContainer.py
doomsuckle/snowlipse
1e2fa2e10617bdfa0df4dd156803a33d69e822af
[ "MIT" ]
null
null
null
import numpy as np class EllipseContainer(object): """ class to contain an ellipse based on the projection with 5 parameters: cx, cy, a, b, angle """ def __init__(self, cx, cy, a, b, angle): """ :param cx: x-center of the ellipse :param cy: y-center of the ellipse :...
27.804878
97
0.544737
d8c7b6354fc1e972977323781e34a589514144dc
11,905
py
Python
atrial_model/iNa/fit_current.py
hundlab/iNaCells2021Code
144017625ba5244c4fb431cccb347f7f2b4853b1
[ "MIT" ]
null
null
null
atrial_model/iNa/fit_current.py
hundlab/iNaCells2021Code
144017625ba5244c4fb431cccb347f7f2b4853b1
[ "MIT" ]
null
null
null
atrial_model/iNa/fit_current.py
hundlab/iNaCells2021Code
144017625ba5244c4fb431cccb347f7f2b4853b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jul 23 13:06:25 2020 @author: grat05 """ from functools import partial import numpy as np from scipy import optimize from scipy import integrate from scipy import linalg from sklearn.preprocessing import minmax_scale from matplotlib import pyplot as p...
36.857585
129
0.618564
eea86d1e701096b8935d9233e1cdf3f2df2f7c9b
594
py
Python
WebexTeams/Lab4.3/.vscode/main.py
kraluc/DevCore
f1631e996e1ba2a5f47911d8680ec04bf18ab4ec
[ "MIT" ]
null
null
null
WebexTeams/Lab4.3/.vscode/main.py
kraluc/DevCore
f1631e996e1ba2a5f47911d8680ec04bf18ab4ec
[ "MIT" ]
8
2021-04-06T18:26:36.000Z
2021-06-02T04:15:34.000Z
WebexTeams/Lab4.3/.vscode/main.py
kraluc/DevCore
f1631e996e1ba2a5f47911d8680ec04bf18ab4ec
[ "MIT" ]
null
null
null
from messenger import Messenger if __name__ = "__main__": msg = Messenger() msg.set_room_id() # Get the first page print('GET FIRST PAGE') msg.get_messages() msg.print_current_message() page_number = 1 while page_number <=3 and msg.has_next_page() is True: print(f'MESSAGES ON ...
24.75
58
0.651515
8217dbe85610fd9e1bc2152c09478867e446dcde
12,850
py
Python
prawtools/mod.py
AndreMiras/prawtools
5c9ccea34c2dff84dcd3540efe852d6a1c10df89
[ "BSD-2-Clause" ]
92
2015-01-04T14:35:32.000Z
2022-03-21T20:42:26.000Z
prawtools/mod.py
TheManFromEarth1/prawtools
5c9ccea34c2dff84dcd3540efe852d6a1c10df89
[ "BSD-2-Clause" ]
27
2015-01-29T01:32:15.000Z
2021-01-23T07:22:18.000Z
prawtools/mod.py
TheManFromEarth1/prawtools
5c9ccea34c2dff84dcd3540efe852d6a1c10df89
[ "BSD-2-Clause" ]
26
2015-02-20T15:32:00.000Z
2020-07-13T21:55:04.000Z
"""prawtools.mod provides the modutils command. This command allows you to view and change some subreddit options. """ from __future__ import print_function import json import re import sys from collections import Counter from optparse import OptionGroup from praw import Reddit from six.moves import input from .hel...
38.130564
88
0.568405
2fbab8f3ac1e9fdcc7213a1b43266b52f5912ae6
6,218
gyp
Python
chrome/common/extensions/api/api.gyp
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-07-29T00:40:03.000Z
2019-07-29T00:40:03.000Z
chrome/common/extensions/api/api.gyp
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/api/api.gyp
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'api', 'type': 'static_library', 'sources': [ '<@(schema_files)', ], # TODO(j...
33.251337
72
0.471695
5df6a22361f3a0d6e8a8ce4ebbe71fc562eb662a
6,036
py
Python
userbot/plugins/pmpermit_menu.py
shub842/IndianBot
19d324a8769309a194c0cfe204bd499e70038350
[ "MIT" ]
1
2021-02-16T05:36:23.000Z
2021-02-16T05:36:23.000Z
userbot/plugins/pmpermit_menu.py
shub842/IndianBot
19d324a8769309a194c0cfe204bd499e70038350
[ "MIT" ]
null
null
null
userbot/plugins/pmpermit_menu.py
shub842/IndianBot
19d324a8769309a194c0cfe204bd499e70038350
[ "MIT" ]
null
null
null
# if you change credits, you get anal cancer and get murdered by russians in 3 days. """ Support chatbox for pmpermit. Used by incoming messages with trigger as /start Will not work for already approved people. Credits: written by Indian Bhai {@pureindialover} """ import asyncio import io import telethon.sync from tel...
53.415929
429
0.575878
d6723e758f935c6c0793800296110667448e546d
949
py
Python
crm/urls.py
talhaibnmahmud/django-crm
63a286c241ee3cb221267431c6688a073190bdea
[ "MIT" ]
null
null
null
crm/urls.py
talhaibnmahmud/django-crm
63a286c241ee3cb221267431c6688a073190bdea
[ "MIT" ]
null
null
null
crm/urls.py
talhaibnmahmud/django-crm
63a286c241ee3cb221267431c6688a073190bdea
[ "MIT" ]
null
null
null
"""crm URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
33.892857
77
0.722866
0f51325920ee53e00b2777fbfae3f1c5fce18852
44,132
py
Python
python_modules/dagster/dagster/core/definitions/graph_definition.py
dehume/dagster
3b55c4e864775b7a70ed8ff539629317a1202505
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/graph_definition.py
dehume/dagster
3b55c4e864775b7a70ed8ff539629317a1202505
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/graph_definition.py
dehume/dagster
3b55c4e864775b7a70ed8ff539629317a1202505
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from typing import ( TYPE_CHECKING, AbstractSet, Any, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union, cast, ) from toposort import CircularDependencyError, toposort_flatten from dagster import check from dagster.config im...
43.097656
133
0.642595
5330c9d9613c7dc9cceff2e56e7dfa1a9fc151ce
8,140
py
Python
editor/environmentdock.py
Vavius/moai-ide
bc48aa85174f5fe8928ad6159409333244a06364
[ "MIT" ]
5
2015-01-25T05:04:13.000Z
2021-09-18T01:14:04.000Z
editor/environmentdock.py
Vavius/moai-ide
bc48aa85174f5fe8928ad6159409333244a06364
[ "MIT" ]
1
2015-09-19T07:01:40.000Z
2015-09-20T07:28:52.000Z
editor/environmentdock.py
Vavius/moai-ide
bc48aa85174f5fe8928ad6159409333244a06364
[ "MIT" ]
3
2015-12-19T10:46:43.000Z
2021-09-18T01:14:06.000Z
import sys, os import PySide from PySide import QtCore, QtGui from PySide.QtGui import QDockWidget from PySide.QtCore import QSettings, QLocale from locales import Languages from layout.environmentdock_ui import Ui_environmentdock as Ui import luainterface class EnvironmentDock(QDockWidget): def __init__(self, ...
39.707317
115
0.676781
e712cd1aff932b0888106d170a5ec5ea6a3708cf
9,337
py
Python
tests/core/test_default_objectstore.py
sanchitcop19/web-api-async
a3fff70c3b62678f3c8ef8cc07f7c9b4fe155c69
[ "ECL-2.0", "Apache-2.0" ]
2
2019-10-21T03:01:39.000Z
2020-06-05T01:43:00.000Z
tests/core/test_default_objectstore.py
sanchitcop19/web-api-async
a3fff70c3b62678f3c8ef8cc07f7c9b4fe155c69
[ "ECL-2.0", "Apache-2.0" ]
56
2019-07-12T21:16:03.000Z
2020-11-06T23:29:22.000Z
tests/core/test_default_objectstore.py
sanchitcop19/web-api-async
a3fff70c3b62678f3c8ef8cc07f7c9b4fe155c69
[ "ECL-2.0", "Apache-2.0" ]
2
2020-02-07T19:56:55.000Z
2020-08-07T11:17:51.000Z
"""Test the functionality of the default object store.""" import os import shutil import unittest from vizier.core.io.base import DefaultObjectStore from vizier.core.io.base import MAX_ATTEMPS, PARA_KEEP_DELETED, PARA_LONG_IDENTIFIER from vizier.core.util import get_short_identifier """Base directory for all resour...
45.10628
84
0.677091
b4bdf9cd120526f4c147c0a8d9fb8a499314dfab
2,140
py
Python
src/calculators/flowing_pressure.py
gpncr-repos/ugntu_hack
6391312531821aa46b066ec5204420c2f674afd5
[ "Unlicense" ]
null
null
null
src/calculators/flowing_pressure.py
gpncr-repos/ugntu_hack
6391312531821aa46b066ec5204420c2f674afd5
[ "Unlicense" ]
null
null
null
src/calculators/flowing_pressure.py
gpncr-repos/ugntu_hack
6391312531821aa46b066ec5204420c2f674afd5
[ "Unlicense" ]
null
null
null
from typing import Optional from math import sin, pi GRAVITY = 9.81 # TODO: тегом #CUT помечены строки, которые потом можно будет убрать для полуготового задания class FPCalculator: """ Класс-калькулятор забойного давления в скважине с ЭЦН """ def __init__(self, md_bh: float, angle: float, md_esp: ...
36.271186
118
0.62243
5891669487b22bb90e72145dd963729d185d1b41
232
py
Python
src/app.py
joduncan/group-of-pictures
a8748805a7e9c51e3f8381ffd7ab5211766c601b
[ "MIT" ]
null
null
null
src/app.py
joduncan/group-of-pictures
a8748805a7e9c51e3f8381ffd7ab5211766c601b
[ "MIT" ]
null
null
null
src/app.py
joduncan/group-of-pictures
a8748805a7e9c51e3f8381ffd7ab5211766c601b
[ "MIT" ]
null
null
null
from flask import Flask from routes.videos_blueprint import videos_blueprint app = Flask(__name__) app.register_blueprint(videos_blueprint, url_prefix='/videos') @app.route('/') def index(): return f"<html><body>Hi</body></html>"
25.777778
62
0.767241
93301ec29c5d6930638ae1f5be5189b92b916bf8
4,127
py
Python
saleor/graphql/account/schema.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
3
2019-06-09T18:00:54.000Z
2019-06-18T10:07:39.000Z
saleor/graphql/account/schema.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
2
2019-07-02T13:39:49.000Z
2019-07-07T09:38:27.000Z
saleor/graphql/account/schema.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
1
2019-05-02T17:30:49.000Z
2019-05-02T17:30:49.000Z
import graphene from graphql_jwt.decorators import login_required, permission_required from ..core.fields import FilterInputConnectionField from ..core.types import FilterInputObjectType from ..descriptions import DESCRIPTIONS from .bulk_mutations import CustomerBulkDelete, StaffBulkDelete, UserBulkSetActive from .enu...
32.753968
88
0.735886
bfd3f89d87b45a73fcafa0645676815bac1e3422
358
py
Python
homebrew/command_line.py
igroen/homebrew
7f97865418230d7174c17b58ec1a60f1bf84819b
[ "0BSD" ]
null
null
null
homebrew/command_line.py
igroen/homebrew
7f97865418230d7174c17b58ec1a60f1bf84819b
[ "0BSD" ]
6
2020-02-24T19:05:50.000Z
2021-11-02T21:31:26.000Z
homebrew/command_line.py
igroen/homebrew
7f97865418230d7174c17b58ec1a60f1bf84819b
[ "0BSD" ]
1
2020-05-02T13:56:03.000Z
2020-05-02T13:56:03.000Z
import argparse import sys from homebrew import ( __version__, HomeBrew, ) def parse_args(args): parser = argparse.ArgumentParser(description="Get homebrew info") parser.add_argument("-v", "--version", action="version", version=__version__) return parser.parse_args(args) def main(): parse_a...
18.842105
81
0.701117