blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21c065daa29195c7e52d627c2a60d46bb9f76c6f | fbcecdf2b3c6f995541c142e208ccb6c74e0fee9 | /tests/test_clusters.py | c70eb6aa7993a63ea3efd939f4c03637b95aa747 | [
"MIT"
] | permissive | ISO-B/zigate-1 | da715671db2714492cb1078bb5583cf6fddc0bde | 34032007d2d1971b744ba47abaec368ebeb59dab | refs/heads/master | 2020-04-08T20:02:47.409415 | 2018-12-31T04:30:21 | 2018-12-31T04:30:21 | 159,682,004 | 0 | 0 | MIT | 2018-11-29T14:50:30 | 2018-11-29T14:50:29 | null | UTF-8 | Python | false | false | 1,640 | py | '''
ZiGate clusters Tests
-------------------------
'''
import unittest
from zigate import clusters
class TestResponses(unittest.TestCase):
def test_cluster_0012(self):
# xiaomi cube status
endpoint = {'device': 24321}
data = {"attributes": [{"attribute": 85,
... | [
"sebastien.ramage@gmail.com"
] | sebastien.ramage@gmail.com |
ac6686f284a20fb047e983ae60f82972815b3f89 | 4ca55192b0cb2720c6ff6b221316bcc9cfa07ce1 | /rememberme/responser.py | ef6d88b8508104813f253b6d135d2fdb5de04472 | [] | no_license | alexanderSvito/rememberme | 603cadf1d6700cb9410856df00022bd361632cfb | 9af7b93c627634a10d13160b369b52634a7dcbdd | refs/heads/master | 2023-08-02T14:05:22.791466 | 2021-09-04T19:27:51 | 2021-09-04T19:27:51 | 181,683,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,975 | py | import random
import importlib
from data.answer_schemas import *
class Responser:
def __init__(self, lang):
self.lang = lang
try:
msg = importlib.import_module('data.lang.{}'.format(lang))
except ImportError:
msg = importlib.import_module('data.lang.ru_ru')
... | [
"alexandervirk@gmail.com"
] | alexandervirk@gmail.com |
06bac58a8436394069cb7609e768cbadf4f20137 | 6111ac220d76bb40fd08fc34dfda81fd32685f65 | /src/day1/test_solution_part2.py | 8dd7e5da990ad3d6220a2c4615bb5cfd583a76b1 | [] | no_license | Markus-Ende/adventofcode2019 | 2aea3e62b65b3ac97a46bfdafd5dd7fe49aec9a8 | e03c9d780d65908f456f3a00570f90006c39d8f8 | refs/heads/master | 2020-09-22T12:59:36.263544 | 2019-12-16T22:10:10 | 2019-12-16T22:11:39 | 225,206,766 | 0 | 0 | null | 2019-12-16T22:11:41 | 2019-12-01T18:17:02 | Python | UTF-8 | Python | false | false | 528 | py | import pytest
import day1.solution_part2
@pytest.mark.parametrize("input_mass,expected", [
(12, 2), (14, 2), (1969, 966), (100756, 50346)
])
def test_calculate_fuel_recursively(input_mass, expected):
assert day1.solution_part2.calculate_fuel_recursively(
input_mass) == expected
def test_solution_par... | [
"19502754+Markus-Ende@users.noreply.github.com"
] | 19502754+Markus-Ende@users.noreply.github.com |
a139f38010032600fcc20c2f08653300a538e11f | e15f8e349c9f35fbce68e7c2aab2d3ca10f9cdf9 | /cpss_vimeo/tests.py | 1b19a01e58fb63ba4700d1d4664dc6021cbdbe5d | [
"Apache-2.0"
] | permissive | xgdfalcon/django-cpss-vimeo | 6059a9d8a8f29fe16bb9e03a35fb430c81cb69a4 | fe474e4ab6306b4411df83a74ee8aecf8843a39a | refs/heads/master | 2020-12-06T11:17:41.774940 | 2020-01-20T04:12:28 | 2020-01-20T04:12:28 | 232,449,912 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | #
# @license
# Copyright (c) 2020 XGDFalcon®. All Rights Reserved.
#
#
# XGDFalcon LLC retains all intellectual property rights to the code
# distributed as part of the Control Point System Software (CPSS) package.
#
"""
This python module provides the models for the video vault application.
Written by Larry Latouf ... | [
"xgdfalcon@gmail.com"
] | xgdfalcon@gmail.com |
f170ac1a2e6ba98c415f5e49e892325ff7ce31e1 | 2a365e091c9f9c84decbe50a9504b95f9b68a83a | /api_app/urls.py | 3c6b3a7dd391e83c0150e1610d8531f7346d2644 | [] | no_license | Manikanta-u94/demo1 | 6505fb1c6ecfd7c867058db7cd9abf188f795ab5 | cbbf390af8ab4a003bab5c8ed686328ecf55f93a | refs/heads/main | 2023-03-21T06:34:27.844539 | 2021-03-15T01:53:30 | 2021-03-15T01:53:30 | 347,375,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from django.urls import path,include
from . import views
urlpatterns = [
path('api/',views.PostViews.as_view(),name='posts'),
path('post/<int:pk>/', views.postDetail.as_view()),
] | [
"manikanta.u94@gmail.com"
] | manikanta.u94@gmail.com |
af8ceb2af3f872a54f6d664f9932f2eabcbab643 | 9ac97d1f0a8b6ad5be29f8b0216f00fd85f1bc57 | /debin_consul/wsgi.py | a88fcbdc8b9a7f94a07ea74499e4a361650fed7d | [] | no_license | Mikemetal/consulrest | 4416d74b79a5035774fdccffa635bce30f9e4908 | f434fdbe3c826a35d73b98f36eaa7e70f5fe29d9 | refs/heads/master | 2021-01-13T02:14:15.595438 | 2014-05-03T05:23:25 | 2014-05-03T05:23:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | """
WSGI config for debin_consul project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "debin_consul.settings")
#from dj... | [
"miguelbq88@gmail.com"
] | miguelbq88@gmail.com |
90e2130d02e322b29d8fe681c1460a2e4fcaf0bc | 2a27a5ad947eeb9dafbe7dc11e6233932d977d4c | /crack.py | aaaec7a50564d286b525d32b906d2ad4071320ec | [] | no_license | Boy-Tolkit/s-crack | daab342732b69602850db58b275ec3e5073668da | 1e4550ce2e01abe889efd379f3da5f10c15750b6 | refs/heads/main | 2023-04-27T22:35:28.077169 | 2021-05-16T23:35:37 | 2021-05-16T23:35:37 | 368,006,435 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076,317 | py | # ECRYPT BY Boy HamzaH
# Subscribe Cok Chanel YouTube Gua Anjing
# Dan Jangan Lupa Follow Github Gua
exec(eval((lambda ____,__,_ : ____.join([_(___) for ___ in __]))('',[95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 40, 39, 109, 97, 114, 115, 104, 97, 108, 39, 41, 46, 108, 111, 97, 100, 115],chr))(eval((lambda ____,__,... | [
"noreply@github.com"
] | Boy-Tolkit.noreply@github.com |
e8a482a9b3b788fc66ef4702abfdbbabb5a1cc73 | e2509a9dd209911ff65bed4d30501186bb72323e | /client.py | 242e34ff43e72e1bc585fb55355be44a4665154f | [
"MIT"
] | permissive | pwr22/cloudflare_client | e9d270da36983c17b90c7b2d3f414cedcbf7e3ff | 3b24b497bf7c18aed5acfa13521e378a43e88e39 | refs/heads/master | 2021-01-22T06:40:24.237325 | 2015-02-16T08:54:27 | 2015-02-16T08:54:27 | 30,859,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | # CloudFlare client API module
import requests
from upstream_error import UpstreamError
CF_URL = 'https://www.cloudflare.com/api_json.html'
# Specify object explicitly for Python 2 support
class Client (object):
def __init__(self, email, token):
'''Contruct a CloudFlare Client API object'''
self.... | [
"me+dev@peter-r.co.uk"
] | me+dev@peter-r.co.uk |
14e219344dbabcdff789037c47a7c521856907a4 | 90b55510c7f1041a8ebc5e7cf1da131b488dc87f | /submit_bulk_prof_only.py | 560a8c50a8687e6cb4013d3bb5ef37f2faedf5d8 | [] | no_license | alv53/UIUCExpertSearch | 893fd68022ff536ebde5a0fd8614af2f6afa4b2f | db03238b1e9df96294a25fe56622ef9c66996412 | refs/heads/master | 2021-01-01T15:17:12.460123 | 2015-05-13T07:06:35 | 2015-05-13T07:06:35 | 35,476,028 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | from elasticsearch import Elasticsearch
import timeit
NUM_BULKS = 30
bulk_data = [[] for x in xrange(NUM_BULKS)]
ES_HOST = {"host" : "localhost", "port" : 9200}
INDEX_NAME = "expertsearch_index_prof_only_uiuc"
curr = 0
print "Creating bulks..."
with open('expertsearch_bulk_prof_only_uiuc.txt', 'r') as f:
while True:... | [
"alvjou@gmail.com"
] | alvjou@gmail.com |
c38b951a2d54aed303e5d627666f8a9d612aee54 | 1c29d3282a1caabc4d3cac84319ca5d487725f61 | /app.py | 75169a967b52d772ef537deac97a13638f0b85ba | [] | no_license | FrancoJigo/restaAPI | b5e03aa872a1aa6e59cf6af5f6257259ab48ce9d | 17d184f817feb6babfa2f262645750a11063579a | refs/heads/master | 2021-01-25T14:24:06.209598 | 2018-03-04T09:02:37 | 2018-03-04T09:02:37 | 123,695,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,786 | py | from flask import Flask, url_for
from flask import request
from flask import json , Response , jsonify
from functools import wraps
app = Flask(__name__)
@app.route('/helloworld', methods=['GET'])
def indexhello():
if 'name' in request:
return 'Hello ! Welcome' + request.args['name']
else:
return 'Hello Amega'
... | [
"frankeejigzz@gmail.com"
] | frankeejigzz@gmail.com |
96cfff0c3cebbee5ce519d5146980a0dcec12ef5 | 1caff4eaf08d96c7a6f594499ec8664fc1b8cfe8 | /test.py | c07ddacd8b2b2514c09930d0c90b3370d0cbdce5 | [] | no_license | ravikrranjan/learning-python | f94598454e0a58a6fcce79fb3eea75402e2eac4a | 17d7628f12cec87913d79914d5c8b40b409bd371 | refs/heads/master | 2021-05-17T02:19:54.391310 | 2020-05-19T16:48:09 | 2020-05-19T16:48:09 | 250,573,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | print('Test');
| [
"rkumar792@gmail.com"
] | rkumar792@gmail.com |
4c21860e5affb23d0bbac4e1610f8389b5a570a8 | 750edcf8562215b588c0960c6a0d65857026ad14 | /synonyms_fuse_model/tfidf_vec_generate.py | e6867548e9c29cc7cec3b4a82623fb98d16e38e5 | [] | no_license | laura-zhang-cn/natural_language_preprocessing | 7b1b99129a83bf870a01d9ba8d5009ca46caa23c | 45b400ba705de5499a5b9a0ac333224e03f94043 | refs/heads/master | 2021-06-04T12:31:13.321272 | 2021-05-20T01:10:28 | 2021-05-20T01:10:28 | 122,903,175 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,274 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 12 15:21:04 2018
@author: zhangyaxu
商品描述/标题等数据源 -> 品类上的 合并
训练词的tfidf向量并计算离散向量相似度,返回topn个,并存储到hive中
"""
from pyspark import SparkConf
from pyspark import SparkContext
from pyspark.sql import HiveContext
import gc
import pandas as pds
import numpy as n... | [
"noreply@github.com"
] | laura-zhang-cn.noreply@github.com |
0064709ec9845041deedfc0f5f905b66ebb5d412 | f9d05bcab8304b36087c1e82f5acebe93a638921 | /main.py | 49810a82373abf65b5e056c73032db6cf340da98 | [
"Apache-2.0"
] | permissive | adrien-bellaiche/ia-cdf-rob-2015 | 0fd06cfd1d9fe2e1753058911fefec13c950d6f3 | 6e66b12cb1cc8a8de4e13a951528842311f8dd3a | refs/heads/master | 2016-09-05T19:17:01.600660 | 2015-05-14T06:13:10 | 2015-05-14T06:13:10 | 27,771,013 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | __author__ = 'adrie_000'
# -*- coding: utf8 -*-
from General import Robot
from time import sleep
if __name__ == '__main__':
''' Explication : en lançant ce script, le soft va en permanence checker si la mainduino a la languette tirée (info
stockée dans robot.started, True si tirée, False si en place).
Si ... | [
"adrien.bellaiche@gmail.com"
] | adrien.bellaiche@gmail.com |
241c65e1a9bf79e74f5298faae186db101c10168 | b0abf6ca5075554ca5b1e28c9e9881620670bffc | /evascrapy/pipelines.py | 32043a1449d205291f1da00ecdc88c97f3c0bfd5 | [] | no_license | gianozdp/EvaScrapy | 4ca3aacb1f48fa98386500e385accbc6b61bc432 | c7782098501df0cb63f68bb233773710e86a78a1 | refs/heads/master | 2020-07-26T15:01:49.819957 | 2019-06-28T14:56:41 | 2019-06-28T14:56:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,743 | py | import pathlib
import oss2
import ssl
import os
from urllib.parse import urlparse
from io import BytesIO
from kafka import KafkaProducer
from minio import Minio
from mns.account import Account
from mns.queue import Message
from evascrapy.items import QueueBasedItem, RawTextItem, TorrentFileItem
import logging
import ur... | [
"allo.vince@gmail.com"
] | allo.vince@gmail.com |
378ecbbf34bd6d26ca6133be5c54c69159722ebe | 46eafaa77280475263decdba64a587c9c6dbd48b | /drood/article/urls.py | 5a1281ef320c784967d25355cdd395c259214f7a | [] | no_license | Adyg/drood | 3b19d39e06455a576f7c3a11001c26a22abe31df | d028295afcf6e5f8ddcf1f848882e04f3418febb | refs/heads/master | 2021-01-19T17:59:41.709461 | 2015-12-30T12:27:33 | 2015-12-30T12:27:33 | 35,033,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from django.conf.urls import patterns, url
urlpatterns = patterns('article.views',
url(r'^$', 'list', name='home'),
url(r'^feed/(?P<feed_id>\d+)/$', 'list', name='home-feed'),)
| [
"ady.ghiuta@gmail.com"
] | ady.ghiuta@gmail.com |
c4c0b10223a78356469659f23378cbd2a4413a30 | 1bf423ffbd4e0f2b79224c3109dbb3da7317eb09 | /disguise/forms.py | 05eb03b77b38b43a0b84d44d9c32f06340cf661e | [] | no_license | rahmaniaam/disguisely | 09d189034450a8349b3249f916d048ec5cef0930 | 8fbfdbbf11015bdec009bf7902a8a2d4e8e28985 | refs/heads/master | 2022-12-04T11:24:20.677038 | 2020-03-21T01:51:55 | 2020-03-21T01:51:55 | 239,411,204 | 0 | 0 | null | 2022-11-22T05:24:40 | 2020-02-10T02:27:46 | JavaScript | UTF-8 | Python | false | false | 431 | py | from django import forms
from .models import Disguise, Document
class DisguiseForm(forms.ModelForm):
class Meta:
model = Disguise
exclude = []
widgets = {
'dob': forms.DateInput(format=('%m/%d/%Y'), attrs={'class':'form-control', 'placeholder':'Select a date', 'type':'date'}),
... | [
"rahmania.astrid@ui.ac.id"
] | rahmania.astrid@ui.ac.id |
1fcb488242e10d0c03422d74916f668b21eb791b | 0e69513ca0fda765b5f655c4405aafb209491389 | /input/parse_pcm-dpc_it.py | 4492610a839245b4948d341f93c7abb1d5d1c339 | [] | no_license | adrianrequena/covid19 | 57a54fdaec79c0d1d57de63810e3337513e87b2f | a13cb2c117a68de2740702831f84c17049aa95ab | refs/heads/master | 2023-07-20T01:49:44.583897 | 2020-04-01T19:19:21 | 2020-04-01T19:19:21 | 252,279,864 | 0 | 0 | null | 2023-07-06T21:57:02 | 2020-04-01T20:28:35 | Python | UTF-8 | Python | false | false | 1,687 | py | #!/usr/bin/env python
import os
import sys
from pathlib import Path
from datetime import datetime, timedelta
import pandas
from utils import \
parse_level_args, github_raw_dataframe, github_raw_url, dataframe_output, merge_previous
# Root path of the project
ROOT = Path(os.path.dirname(__file__)) / '..'
# Th... | [
"oscar@wahltinez.org"
] | oscar@wahltinez.org |
60d9422069f85a93dcee9aecd46120c3a7253c69 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/tag/insttask.py | e2820118edd9b39d43659c40ce0995dfd34ecc0b | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 16,985 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
31e8e82b6af220cc0d763eedf710a09f930658f0 | fcf5a2d50638e24e225d62df740d88c686cbc39e | /else/01_PropagateRandomLed/line.py | e4cecefd4010de83653bbd2fa5c6b61241300adb | [] | no_license | AndreaCrotti/wireless-sensors | 001a50832f244b02924d7cdcaa10cf1ca752440e | 33459c4a53c3ac01c742e65c9c72e63b25c08976 | refs/heads/master | 2016-09-10T18:52:46.156303 | 2010-06-14T11:56:08 | 2010-06-14T11:56:08 | 629,601 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/python
# @author oscar.dustmann@rwth-aachen.de
#
# A simple test-scenario.
from TOSSIM import *
from random import *
import sys
t = Tossim([])
#t.addChannel("LedsC",sys.stdout)
t.addChannel("PrlC",sys.stdout)
t.addChannel("PrlC_l",sys.stdout)
nodes = 200
ndb = -1.0
### link setup
r = t.radio()
for i in ... | [
"oscar@querdenker.dyndns.org"
] | oscar@querdenker.dyndns.org |
556a49713f3c38e2aafd9f87264d58fdb55b1646 | 444c5e47a883bff0c116f00f08ade7f6c75ca235 | /install_mac_package_managers | 8e3e4cda322bc4ee7d19d5aea3cb9f2e517e3c06 | [] | no_license | poulh/p3-setup | 86939b4cf69f2ea929cb4789bf7313516daeaa05 | c3199a031b30bde802365624e7cc6400df624d4e | refs/heads/master | 2020-03-07T19:07:53.842552 | 2019-12-01T23:16:49 | 2019-12-01T23:16:49 | 127,662,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,468 | #!/usr/bin/env python
import argparse
import os
import subprocess
import sys
MANAGERS = [
{
'name':'xcode-select',
'cmds' : [
'xcode-select --install'
],
'check': 'xcode-select -p > /dev/null'
},{
'name': 'homebrew',
... | [
"poulh@umich.edu"
] | poulh@umich.edu | |
932e44b66fd1887560fc053e4a525c8d687dc93a | 1b71a47534ec5262c6749e701e85320da523cec1 | /Code/RealOffice/meeting/migrations/0007_auto_20170307_1854.py | 4e84fa10a6abe68d2dd2cae8566409fb0f1d5f2a | [] | no_license | kejriwalrahul/RealOffice | 2a82fd07036e2452af923653e8a251730a67017e | 077764f2d5ab62eba225557967a08b23a52567e9 | refs/heads/master | 2021-03-27T20:01:33.255446 | 2017-04-16T09:21:51 | 2017-04-16T09:21:51 | 80,219,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-07 18:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('meeting', '0006_auto_20170307_1854'),
]
operations = [
migrations.AlterFiel... | [
"kejriwalrahul@outlook.com"
] | kejriwalrahul@outlook.com |
26dace9da5168c53db1423f65ab53c70e82b7187 | d131ad1baf891a2918ae27b0dc57f3c0c1f99586 | /blog/migrations/0001_initial.py | ec6923c8ffb8cbccaa6e420a5a387c7af1f5ae91 | [] | no_license | Alymbekov/TestProjectForDjangoForms | d3bf24844628136f9236d5222d32235e87f7aecd | ce3262e7565e293b691ea70b94b67155c15525bd | refs/heads/master | 2020-04-10T05:35:19.516127 | 2018-12-07T14:24:05 | 2018-12-07T14:24:05 | 160,832,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # Generated by Django 2.1 on 2018-11-18 08:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(auto_... | [
"maxim.makarov.1997@mail.ru"
] | maxim.makarov.1997@mail.ru |
1be16efded94fc0540fb6e7f42f81c7f9d858eec | c2983d006139ea69044233af9ae5ff29fe3640ba | /test/postgres_tests.py | 59fc5330709e9ef47e1505a9b89fd8ef01e83bfe | [
"Apache-2.0"
] | permissive | nkabir/pyschema | b0b608c6397dfe844876c05d25b67ef41b3dbcdf | d8e6de80f00a59c747beaf6ed53b8316e29762de | refs/heads/master | 2021-01-14T09:42:15.671139 | 2015-04-27T15:38:44 | 2015-04-27T15:38:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | from unittest import TestCase
from pyschema import Record, no_auto_store
from pyschema.types import Integer, Text, Float, Boolean, Date, DateTime
from pyschema_extensions import postgres
@no_auto_store()
class MyItem(Record):
name = Text()
value = Integer()
dec = Float()
flag = Boolean()
date = D... | [
"freider@spotify.com"
] | freider@spotify.com |
e3c7ab6be6aaf8422341c9f6c2da618e37250a0c | 8eecff47b3165d91b91a29b311a9f105aa6a25c8 | /combinations.py | de0baa72e882e7f3e6b2cf0ebcae3411dfd25bea | [] | no_license | Temp-Nerd/All-d-Porgrams-in-d-wurld | dbdb394d4afa9cd4028bd406f4e95efc665f518f | 23320f42013f9f5fbd9f1107ac0eea3cdfefb24d | refs/heads/main | 2023-02-18T19:00:43.359747 | 2021-01-22T15:20:50 | 2021-01-22T15:20:50 | 331,982,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | def factorial (a) :
factorial=1
for i in range (a,1,-1) :
factorial*=i
return factorial
def combination (n,r) :
n_fact=factorial(n)
r_fact=factorial(r)
n_r_fact=factorial(n-r)
return(n_fact//(r_fact*n_r_fact))
x=int(input('Enter n :'))
y=int(input('Enter ... | [
"noreply@github.com"
] | Temp-Nerd.noreply@github.com |
bb46853c01135dbca52d0c9a878620334dfa657b | 80a881f0ebb159d1dfe9fa10e93a7f2fcd7f3677 | /planb/feedback/models.py | b5ad0abadca32394f000f47dbbe1908ae48d029a | [] | no_license | Grapheme/mayak | 42d874080f8233a1d0e709afe48cd2135ddaab98 | 4f26c290a7df060c65624328087c39a73a8540e7 | refs/heads/master | 2020-06-06T04:00:10.204791 | 2015-09-15T17:34:48 | 2015-09-15T17:34:48 | 27,764,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | # -*- coding: utf-8 -*-
from django.db import models
class FeedbackManager(models.Model):
"""
Адреса людей, которые должны получать на email записи из "обратной связи".
"""
email = models.EmailField()
class Meta:
verbose_name = u'менеджер обратной связи'
verbose_name_plural = u'ме... | [
"etomarat@gmail.com"
] | etomarat@gmail.com |
1be3440a397de19a2731a7caaf67ed5265d6bc63 | dfa79b5a899b253df02f2bd1695c3a09458de7a4 | /netquants.py~ | f3d1adfaa41fcfb6108d606b375c0866eefd0ca3 | [] | no_license | DanielKoohmarey/netQuants | 806fd9f09a7e52a4d61e9b1588c39b3919229ff6 | d91cfaf2ac4de6521b2782ad007f1d69e5e9bc87 | refs/heads/master | 2020-12-25T10:49:44.228465 | 2013-05-07T00:28:56 | 2013-05-07T00:28:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# 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... | [
"leeanna@berkeley.edu"
] | leeanna@berkeley.edu | |
43a3171c18f24f3e5cf493bcf8576ddb6b9456b6 | ebd2df05eae5875f3edd5c891442b9fe1f3d54ee | /empleados/views.py | 3b8388bd33952007db18e34edaecbd69330d2a7c | [] | no_license | gfcarbonell/app_navidad | 06191ef3b084d40c7a5f387a60407406c2c89d54 | fa290f8cf0b4b0d9237b555417fe38f879938adf | refs/heads/master | 2020-12-24T11:54:10.514150 | 2016-11-16T15:37:09 | 2016-11-16T15:37:09 | 73,115,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | # -*- encoding: utf-8 -*-
from django.conf import settings
from django.views.generic import CreateView, UpdateView, ListView, DetailView
from .models import Empleado
from .forms import EmpleadoModelForm, EmpleadoUsuarioForm
from django.core.urlresolvers import reverse_lazy
from rest_framework import viewsets
from djang... | [
"r.gian.f.carbonell.s@gmail.com"
] | r.gian.f.carbonell.s@gmail.com |
fe24ea8d36456e341af990a617aaf46b1ece5dac | 323caaa8cbbe2b8d3cf3ae433d273a92457e61f7 | /1,回归问题/回归问题.py | 303f41c7c59f0b35df882af4b585356de8227ff1 | [] | no_license | 1414003104/OldSheep_TensorFLow2.0_note | 04e8b23d087295e18db829224cfad4999471012a | 9c0241c01908c9df347d243420d84b292304c20d | refs/heads/main | 2023-08-02T10:32:36.768385 | 2021-09-18T10:08:50 | 2021-09-18T10:08:50 | 407,482,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | import numpy as np
#y=wx+b
#损失计算公式
def compute_error_for_line_given_points(b,w,points):
totalError=0
for i in range(0,len(points)):
x=points[i,0]
y=points[i,1]
#computer mean-squared-error
totalError+=(y-(w*x+b))**2
#average loss for each point
return totalEr... | [
"noreply@github.com"
] | 1414003104.noreply@github.com |
774b67059eddcf1cedf719cb61af7c2ced0de7fa | 8ecf4930f9aa90c35e5199d117068b64a8d779dd | /TopQuarkAnalysis/SingleTop/test/crabs44/SingleTopMC_TTBarQ2upFall11_cfg.py | da0b2fabbd1a6100f2c5fce7261928493357cfcf | [] | no_license | fabozzi/ST_44 | 178bd0829b1aff9d299528ba8e85dc7b7e8dd216 | 0becb8866a7c758d515e70ba0b90c99f6556fef3 | refs/heads/master | 2021-01-20T23:27:07.398661 | 2014-04-14T15:12:32 | 2014-04-14T15:12:32 | 18,765,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,424 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("SingleTop")
ChannelName = "TTBarQ2up";
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(True),
FailPath = cms.untracked.vstring('ProductNotFound','Type Mismatch')
... | [
"Francesco.Fabozzi@cern.ch"
] | Francesco.Fabozzi@cern.ch |
4dacaa30f927134d67f697ebba2cba98678ea517 | efbcdc04e5d2d5917328e23f62f0e2b3b585d393 | /neuron/analog2digital/soma_mt.py | 00beb221c13630b51bd31d82783f2be5ac20ea72 | [] | no_license | satya-arjunan/spatiocyte-models | 7e43457a170348638998a1382410c00e2d091cd6 | b5c29b6be758e971ba016d0334670c2afafd2c31 | refs/heads/master | 2021-01-17T00:39:29.965797 | 2018-09-06T07:46:17 | 2018-09-06T07:46:17 | 11,064,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,501 | py | import numpy as np
import math
volumes = [5.8822e-18]
T = 540000
#nKinesin = 35*2.258e-17/volumes[0]
nKinesin = 100
pPlusEnd_Detach = 1
VoxelRadius = 0.8e-8
nNeurite = 5
nNeuriteMT = 5
EdgeSpace = VoxelRadius*5
neuriteRadius = 0.2e-6
MTRadius = 12.5e-9
KinesinRadius = 0.4e-8
Filaments = 13
neuriteSpace = neuriteRadi... | [
"satya.arjunan@gmail.com"
] | satya.arjunan@gmail.com |
f282c11daf075504bc04c5b5e1c3abc69fdfe691 | ac52ef481402457c9c967d8ed4930fb3c0b8cbdf | /projects/models.py | 3d6cc872327ba8e52a849e8ad74a268deee9e644 | [] | no_license | ShakeelAhmad3/My_Portfolio | 7a2e0f5991b25edb3d9f805effca88c24030a399 | 346ac5599b458d06735fec1af76c7d023e50190a | refs/heads/master | 2023-09-02T17:31:00.809363 | 2021-11-20T11:31:27 | 2021-11-20T11:31:27 | 428,708,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.db import models
# Create your models here.
class projects(models.Model):
title = models.CharField(max_length= 250)
body = models.TextField()
image = models.ImageField(upload_to='media/')
summary = models.CharField(max_length=250)
bub_date = models.DateField()
def __str__(self):
... | [
"buneeri020@gmail.com"
] | buneeri020@gmail.com |
824d42429d0f17582b537a3d9045cc15c2c88584 | 78ec5fbacb0a22842e510eca0d8cf76fbb677af3 | /api_example/languages/urls.py | 7a8ac1f4e794e5ee0cd0d1868b639302e10ab3ba | [] | no_license | FAVORK/Django-Rest | c7302843dff46fcdb339246fcc06c095dda8f1eb | 8ec7411aa8972a7910dc06da424446cd4f08273f | refs/heads/master | 2020-12-02T20:09:35.184824 | 2019-12-31T15:11:54 | 2019-12-31T15:11:54 | 231,105,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.urls import path, include
from . import views
from rest_framework import routers
router = routers.DefaultRouter()
router.register('languages', views.LanguageView)
urlpatterns = [
path('', include(router.urls)),
] | [
"kamaukdan@gmail.com"
] | kamaukdan@gmail.com |
c64909b719e0c584c9a4cdc20015e2e2f8fcf9f0 | 0f66f175320140daf15c8c4f85e6af717ebaeec7 | /test_supporting_commands.py | ca4d2c14c7d759a46a541d09f8c01312c3cb330c | [] | no_license | PVSemk/IADPythonLab_1 | 50541536fd21812d5e28e427baa8c20bf3417d4d | 520edcefd07499b51afaa0960ce723b00a32e735 | refs/heads/master | 2020-07-20T06:16:10.717534 | 2019-09-05T14:51:22 | 2019-09-05T14:51:22 | 206,588,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,001 | py | import supporting_commands as func
# This file contains only testing for functions which are in supporting_commands.py
# In the file commands.py there is a number of functions which contain required input checking
# Which is not in supporting_commands.py (functions delete_person_by_number or search)
# However, prin... | [
"pvsemk@mail.ru"
] | pvsemk@mail.ru |
471b28b164af5875eb9670ed6bdea81faaa98ba6 | 9d1c9a81520437122d9f2f012c2737e4dd22713c | /src/td_clean.py | 0b0e3a8e8ad9f059d56a6f5f5dd04748362a15f8 | [
"MIT"
] | permissive | geophysics-ubonn/crtomo_tools | 136aa39a8a0d92061a739ee3723b6ef7879c57b8 | aa73a67479c4e96bc7734f88ac7b35a74b5d158c | refs/heads/master | 2023-08-24T01:55:29.517285 | 2023-08-08T13:03:46 | 2023-08-08T13:03:46 | 142,049,690 | 2 | 9 | MIT | 2019-06-06T12:46:42 | 2018-07-23T17:54:24 | Standard ML | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Clean a simulation directory of all modeling/inversion files
"""
import numpy as np
import os
import glob
def main():
rm_list = []
required_files_inversion = (
'exe/crtomo.cfg',
'grid/elem.dat',
'grid/elec.dat',
'mod/volt.dat')
... | [
"mweigand@geo.uni-bonn.de"
] | mweigand@geo.uni-bonn.de |
a4885e47195c762b6bbaf2e2a19dfdf4aa3f7fc1 | 2def74312f65dbe7950e9958070a175448d0dcff | /setup.py | 6d8538691297cf80515acf61017b67e3b1b9c01b | [] | no_license | JorgeJuarezM/pyqt-examples | 9847353d93e94534d1193bb1bc3b33e4fc683f9a | 586df9496314c5b62fe0e30d8959feb680a1500e | refs/heads/master | 2021-07-20T18:53:33.081825 | 2017-10-30T04:29:45 | 2017-10-30T04:29:45 | 108,799,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | """
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['main.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True,
'iconfile': './icon.icns'}
setup(
app=APP,
name="Odoo Client",
data_files=DATA_FILES,
options={'py2a... | [
"contacto@jorgejuarez.net"
] | contacto@jorgejuarez.net |
61525717db91dbf05797d7a00755affc2b82f2be | ff0d4899d63071d0517b6be0ffdd01579bc49fea | /quickgrab.py | a7c49d8903ca6f02f7e1a6cc56d9308bef60828c | [] | no_license | kellyelton/octbot | 0bd528e9fc68ddf83f67d228bdba079efba11606 | 3a50ce63b2dc7949fe4febe57b4ca5bb9668fda8 | refs/heads/master | 2021-01-15T16:15:06.890789 | 2013-05-07T01:54:42 | 2013-05-07T01:54:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | from PIL import ImageGrab
import os
import time
import win32gui
def screenGrab(box):
im = ImageGrab.grab(box)
im.save(os.getcwd() + '\\full_snap__' + str(int(time.time())) + '.png', 'PNG')
def winEnumHandler( hwnd, ctx ):
whereIsOctgn = ()
coords = ()
if win32gui.IsWindowVisible( hwnd ):
... | [
"dan.h.johnson@gmail.com"
] | dan.h.johnson@gmail.com |
84ed64371f199639424fba91bfd98c0c5eec0792 | bdff2f51d12aa4329df511ec1f5564c0cb9b14fe | /tests/integration/adapters/test_mongo_projects_repository.py | 8aebb4543a985a1f7445567d2c6bc077072b3526 | [] | no_license | jdgillespie91/projects-api | caec3e5af8979e512100545c4f799f3ccff4e287 | b1df9447dedfd3fe9d875f4372160b9dd770548c | refs/heads/master | 2021-04-29T06:36:30.004810 | 2018-06-03T14:40:04 | 2018-06-07T19:24:18 | 77,964,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | from pymongo import MongoClient
from pytest import fixture
from projects.adapters.mongo_projects_repository import MongoProjectsRepository
from projects.entities.project import ProjectSchema
@fixture(scope='module')
def database():
client = MongoClient(
'mongodb://mongo:27017/',
socketTimeoutMS=3... | [
"jdgillespie91@gmail.com"
] | jdgillespie91@gmail.com |
71cdd0ba41024dbd952e1d2a8ec2527c9e2fb9c6 | 77fe4a852711bf024b4b481fc4d7f9fa5a6c96c4 | /Project 2/Problem 4/problem_4.py | 9f3f332fb423378ddbfa6499318a76d03176eb3e | [] | no_license | Abdelaty/Data-Structure-and-Algorithms-Nanodegree | 88bbd5d62c89c65d96152eec64acf17a8d434a96 | 52cb103084f37655701be3c9acb42888161541f4 | refs/heads/master | 2021-05-17T18:50:17.732854 | 2020-05-02T18:11:34 | 2020-05-02T18:11:34 | 250,926,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | class Group(object):
def __init__(self, _name):
self.name = _name
self.groups = []
self.users = []
def add_group(self, group):
self.groups.append(group)
def add_user(self, user):
self.users.append(user)
def get_groups(self):
return self.groups
def... | [
"Abdelaty.mohammedmagdi@gmail.com"
] | Abdelaty.mohammedmagdi@gmail.com |
f77f5031d2828acf76391e5d475d5883c6790ee9 | d7b4727e74d4a8a339c54dc5a15d8872319e7e7c | /playing_around/cv_test.py | 011ceb3920e2b8e09354eb269026943c91a334d9 | [] | no_license | pussinboot/aal | fbd6a780cb18530f3f72d5b4c4cd9978f37ccfa4 | 53ea549d7f581bb3b8dd4c009925a89e6e9b924b | refs/heads/master | 2022-01-02T19:35:04.817200 | 2015-10-28T19:40:46 | 2015-10-28T19:40:46 | 32,659,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | import numpy as np
import cv2
#image = cv2.imread("cv_test.jpg")
#gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
#gray = cv2.GaussianBlur(gray, (3, 3), 0)
##cv2.imshow("Gray", gray)
#cv2.waitKey(0)
#edged = cv2.Canny(gray, 10, 100)
##cv2.imshow("Edged", edged)
##cv2.waitKey(0)
##cv2.imwrite("edgy.jpg",edged)
## const... | [
""
] | |
fa2af2256e992f5dea361ca6dc8422c6d97e35d1 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /rcc/models/study_events.py | 73804683abfe9626a9ff78782d4aa06520a3ae77 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from rcc.configuration import Configuration
class StudyEvents(object):
"""NOT... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
f349e2ae3c868492cbe120dac5a23192b4e8183c | a2aef0303eceb97e121392c6e23704bc42cf606a | /venv/Scripts/easy_install-script.py | bda2ce6ee9eccc23161dedbf05d9743be3e7f841 | [] | no_license | khisomovkomron/bdd-test-framework | 3dded546d388f54ad765028af605d36f4e1142b3 | 94aa00236336b270bdb0b85484bbfef781068363 | refs/heads/master | 2023-02-04T10:26:05.847056 | 2020-12-25T14:06:15 | 2020-12-25T14:06:15 | 324,369,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!C:\Users\komro\PycharmProjects\BDD_Framework\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"normok_9595@bk.ru"
] | normok_9595@bk.ru |
e46fb5b9471464a721d150046158fc9f3b99a474 | 92e45c3f8460a1b61ba631072af30c1c5fa25c48 | /src/chooseplan/urls.py | 713acd3162b3d090fde22f6353eb15d2d5efa3bc | [] | no_license | elmiraus/HealthcareNow | ad19bff6c7417dcdb3ed035fbc1bcdf1d5956df6 | 3f5877fce0cb6b1366dfe3528d5fc1c628b3ac51 | refs/heads/master | 2020-08-08T07:01:46.378703 | 2019-10-08T20:53:55 | 2019-10-08T20:53:55 | 213,767,892 | 0 | 0 | null | 2019-10-08T22:28:34 | 2019-10-08T22:28:33 | null | UTF-8 | Python | false | false | 121 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.chooseplan, name='chooseplan'),
]
| [
"jacqueline.rollins@cgu.edu"
] | jacqueline.rollins@cgu.edu |
f414faf29603d9e40eddaabc2774538b2a0c5f56 | 0e6f16fe472c164134048f4356662cd91e1ad37c | /DJANGO_PROJECT/settings.py | bfdbc920d1c168d5bfa691afd0f58d913913dd66 | [] | no_license | neel0812/quick | e35d1ec7ff809f4a9a9c9734ed0496f6152e7cde | 142d9e6429ade89f6d43a563dd31cd00a275b316 | refs/heads/master | 2022-12-23T04:30:38.670543 | 2020-10-01T05:32:12 | 2020-10-01T05:32:12 | 300,156,149 | 0 | 0 | null | 2020-10-01T05:27:50 | 2020-10-01T05:27:49 | null | UTF-8 | Python | false | false | 2,183 | py | import os
BASE_DIR = os.path.dirname(
os.path.dirname(os.path.abspath(__file__))
)
SECRET_KEY = "o7fa-3u*pqnf@9_@@-d-)$4@*f56-j+4#cv25_3h3h=5u7)ah%"
DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib... | [
"srpatel980@gmail.com"
] | srpatel980@gmail.com |
80ffd316b9bbc8a682e4c8e9e842d3020e7a8472 | 545536daea315e31e01e388326e21a317f73dc6c | /Guddu on a Date.py | f390db81dd0b921ac0e786f7bc984075e63bfca0 | [] | no_license | calkikhunt/CODE_CHEF | 3cd4db7d2231dc31a045645da08c52a78edda6b6 | 81bb90368822bc77e70582ab3eae1a4244e6c80f | refs/heads/master | 2022-04-18T08:43:23.900118 | 2020-01-29T09:31:35 | 2020-01-29T09:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | t=int(input())
for i in range(t):
ctrcopy=19
n=int(input())
ptr=0
while ptr<(n):
ctr=ctrcopy
check=str(ctrcopy)
doublecheck=str(ctrcopy+19)
sumdigi=0
while ctr>0:
use=ctr%10
ctr=ctr//10
sumdigi+=use
if sumdigi%10==0 and ... | [
"wimpywarlord@gmail.com"
] | wimpywarlord@gmail.com |
07025217cb00bf91a6ba23c519d15a6c2bff30ad | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/api_lib/compute/instances/ops_agents/exceptions_test.py | 6315b0e3b6f56b2dd728bee1157215665d21febe | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 1,861 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. 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 requir... | [
"code@bootstraponline.com"
] | code@bootstraponline.com |
34b4dcbd61262a45e923027007b9cb5f120328f2 | 1391c61927d4074254525950c71d9a2b9a63d2c9 | /My_second_Project/My_second_Project/settings.py | 318f94b331fbe5103e34c7ab11d02b992a45e540 | [] | no_license | bridgecrew-perf7/django-deployment-21 | 69a372d3bb69bb17459d5b6d2e2bc5fcfee66e43 | 4427466274723e66fedabfc94df188b871b620ed | refs/heads/main | 2023-07-13T20:57:58.883444 | 2021-08-15T10:38:28 | 2021-08-15T10:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,399 | py | """
Django settings for My_second_Project project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
fr... | [
"tareqhasan2007@gmail.com"
] | tareqhasan2007@gmail.com |
a17d7cd9fdcdc856d383afb6531cce96e9bb9932 | 1ff376da81912600e0f8b3d45ea061d9418a654c | /backend/weeklypulls/apps/series/models.py | 219c094f4f48347bc1312ed8e9e5114862031b13 | [] | no_license | rkuykendall/weeklypulls | 9c3448665b3a18cc0375ad40a60ad71008bb4e89 | e8300a6f28f6ce959130865e8bcf8c365033b2ce | refs/heads/master | 2021-01-17T19:51:43.702126 | 2017-12-18T12:16:28 | 2017-12-18T12:16:28 | 61,999,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | import os
from django.db import models
from django.contrib.postgres.fields import ArrayField
import marvelous
from weeklypulls.apps.marvel.models import DjangoCache
class Series(models.Model):
series_id = models.IntegerField(unique=True)
read = ArrayField(models.IntegerField(), default=list)
skipped = ... | [
"robert@rkuykendall.com"
] | robert@rkuykendall.com |
b859862094592ded8b548969d924bdcdce8f980c | bf46b65866c1179b49c07e1d428c5a8d6dbdd9c6 | /forecasting_revenue.py | 6be1403fdc743e52ca57c2fbfa86456850307e3a | [] | no_license | goldiekapur/Time-Series-Analysis-Bike-Sharing-Demand-Forecasting | cd3a28775207ba220cf9f2d9851d125ee02a8385 | 7d52c48ff88f7db498c9ecb917c1c3b1b65d1802 | refs/heads/master | 2021-01-09T03:08:35.691840 | 2019-04-24T23:23:38 | 2019-04-24T23:23:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,415 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 29 17:25:47 2019
@author: mayank
"""
import pandas as pd
import numpy as np
from fbprophet import Prophet
from datetime import datetime
from sklearn.model_selection import train_test_split
from matplotlib import pyplot
from sklearn.metrics import mean_squ... | [
"noreply@github.com"
] | goldiekapur.noreply@github.com |
faa5ddf2e6adabec7e26614f98bcb1343fb7633b | d18626d8f6f023e6e583f13dafea677c01b002bc | /test-wi-sub-pipeline.py | 58386666c85cdccfde266d66ee5e0df348e4aeb3 | [] | no_license | kmsmith137/rf_pipelines | b3c596e1977ff9821a906cd279d128baf05edd68 | 4ecf6f9a909ef185cc03335339829f2b438cd1c0 | refs/heads/master | 2022-03-08T13:49:09.400064 | 2020-09-06T22:57:53 | 2020-09-06T22:57:53 | 61,664,765 | 2 | 6 | null | 2022-03-03T18:05:58 | 2016-06-21T20:25:17 | C++ | UTF-8 | Python | false | false | 5,939 | py | #!/usr/bin/env python
#
# Tests wi_sub_pipeline, in special case Dt=1 for now.
# Also indirectly tests jsonize/from_json() for a few transforms.
#
# FIXME cleanup: combine with test-cpp-python-equivalence.py
import numpy as np
import numpy.random as rand
import rf_pipelines
def make_random_transform():
transform... | [
"kmsmith@perimeterinstitute.ca"
] | kmsmith@perimeterinstitute.ca |
dac834b379278ddf5e2bc0403e4ac406d9aea1e4 | 4f6ad7cdea2cab5fe89df34f6e5158e4b77837c3 | /server/dvaapp/serializers.py | 746c7a13a61f2e3b5f38663e2f1bf6dacfb29986 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | ginusxiao/DeepVideoAnalytics | 7194d83b518976340cd834e4e6a8ab9b164a2e3f | 52c38c729b1a114cc46e641943e3e28a68428e25 | refs/heads/master | 2020-03-18T21:40:31.811272 | 2018-05-29T10:16:20 | 2018-05-29T10:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,156 | py | from rest_framework import serializers, viewsets
from django.contrib.auth.models import User
from models import Video, Frame, Region, DVAPQL, QueryResults, TEvent, IndexEntries, \
Tube, Segment, Label, VideoLabel, FrameLabel, RegionLabel, \
SegmentLabel, TubeLabel, TrainedModel, Retriever, SystemState, QueryReg... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
1c332720219986262761e730eb3c9f28373b9757 | 8ca6a90b7db0cd0d7a54f98628359806bf18dcf4 | /lstm/datain.py | 0f42f87d3d8e190da173bab8feb0f66f3992c574 | [] | no_license | kateharline/buckler_lab_projects | 39f47daeaf05925156a4a1db904941db7a06feef | 904888fa836ba365329e66c331ae500e7a888195 | refs/heads/master | 2021-05-18T22:32:28.974481 | 2020-03-31T00:04:07 | 2020-03-31T00:04:07 | 251,437,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,559 | py | # external libraries
import numpy as np
import pandas as pd
import os
import sklearn.preprocessing as sk
import pickfamily as pf
import platform
# import control datasets for testing
import control as c
####--------------making matrices-------------#############
def txt_to_csv(txt_file):
'''
convert txt file... | [
"kharline@wustl.edu"
] | kharline@wustl.edu |
2233f57c3679133af081bb703969e9eb6bbad208 | 710f7ad3af10c79aabb0cf0f64203d968e0057d8 | /add_data.py | a8595e4a9deeb7e872ac759e7cf4414f35164720 | [] | no_license | tentotal/telegram-bot | dc986e79c01fe249c6a0cc16b8cdae8e3f4934d6 | 97bf882c572c4ec22841542bb5d252541bad9a70 | refs/heads/master | 2020-03-07T22:17:29.129819 | 2018-04-02T12:03:36 | 2018-04-02T12:03:36 | 127,750,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,973 | py | import sqlite3
conn = sqlite3.connect('data.db')
c = conn.cursor()
def create_table():
c.execute("CREATE TABLE IF NOT EXISTS BlueCheese (mood TEXT, url TEXT, file_id TEXT, caption TEXT)")
def add(mood, url, file_id, caption):
conn = sqlite3.connect('data.db')
c = conn.cursor()
c.execute("I... | [
"noreply@github.com"
] | tentotal.noreply@github.com |
a13082ba9e21bf1a732e1cfa9a5f593917aa62c5 | 84ac452582ba1f2a5ba48f490a21ef62ecd502d5 | /build/android/tombstones.py | 39fa5050e3a92dc3e847dc5f0152493dc613b183 | [] | no_license | stanislavalbreht/sandbox_test_2016 | e215a45a48be6b31873c1ad5510f232ee80107aa | 0e6e0c265d6af23f6eeac510d57271d6aa0de5c4 | refs/heads/master | 2021-01-10T03:26:10.886636 | 2016-01-27T08:29:27 | 2016-01-27T08:29:27 | 50,448,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,533 | py | #!/usr/bin/env python
#
# 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.
#
# Find the most recent tombstone file(s) on all connected devices
# and prints their stacks.
#
# Assumes tombstone file was created ... | [
"fatalerr@yandex-team.ru"
] | fatalerr@yandex-team.ru |
6197cdabb7c4583ac32673f476142d255aaa856f | d65499ebd34c4fb8095294b12619104efbbd8ee4 | /Airflow Writing/main_code.py | 2c2325b4f3e04e8e185fae5014555c6833c0d61d | [] | no_license | ashishsingh99/AirFlow-Writing | 3135a93a95c0b22e97ca4a8a91584ddaaea9fe3f | 696b66ab44751f5b256b1fe8591bc17abb8d6ebe | refs/heads/main | 2023-05-29T03:14:36.446736 | 2021-06-13T13:28:24 | 2021-06-13T13:28:24 | 376,550,471 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | import cv2
import numpy as np
#### global ####
x,y,k = 200,200,-1
cap = cv2.VideoCapture(0)
################################################
############# func def #########################
def take_inp(event, x1, y1, flag, param):
global x, y, k
if event == cv2.EVENT_LBUTTONDOWN:
x = ... | [
"noreply@github.com"
] | ashishsingh99.noreply@github.com |
90bb35f751c04a00431dcc41c19d92be007cb65d | 731a33f8bb92bad31ab233416d8ef6eb3a9f3fe0 | /minlplib_instances/smallinvSNPr2b020-022.py | 8348bb9863905664e9dffb15877a5b89b31156af | [] | no_license | ChristophNeumann/IPCP | d34c7ec3730a5d0dcf3ec14f023d4b90536c1e31 | 6e3d14cc9ed43f3c4f6c070ebbce21da5a059cb7 | refs/heads/main | 2023-02-22T09:54:39.412086 | 2021-01-27T17:30:50 | 2021-01-27T17:30:50 | 319,694,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167,363 | py | # MINLP written by GAMS Convert at 02/15/18 11:44:29
#
# Equation counts
# Total E G L N X C B
# 4 0 2 2 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"christoph.neumann@kit.edu"
] | christoph.neumann@kit.edu |
21426abe1f48a898a33972d629c9120481bac87b | c59e65267ca6b2cea83cc00a136cd4e1a18da0a1 | /PyBuildingData/PyBuildingData.py | 755af6db79d9301d457890386955c27e25452430 | [
"MIT"
] | permissive | victorcalixto/FOSS-BIM-Experiments | c46bb4cd6a0f1e2d240f98f86296735bcd6748cb | 9a4a126b7ba4bff43dec21fa1560b4d22ae34558 | refs/heads/main | 2023-08-14T20:20:01.833767 | 2021-10-01T09:02:13 | 2021-10-01T09:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,510 | py | # Helpers
#Primitives
def PointXY(x,y)
def PointXYZ(x,y,z)
def Line2D(PointXY,PointXY)
def Arc2D(PointXY,PointXY,PointXY)
def PolyCurve
sqrt2 = 1.414213562 # Squareroot of number 2
def find_in_list_of_list(mylist, char):
for sub_list in mylist:
if char in sub_l... | [
"30430941+DutchSailor@users.noreply.github.com"
] | 30430941+DutchSailor@users.noreply.github.com |
b0707b9174477ff856490eef4c8f850d69768242 | 76dc1118958fdd709a27b826457fede99498a88d | /miner/address.py | 9e610104d7dfe30ac07012f2ed5f64d8dac3c57e | [
"MIT"
] | permissive | JesseEmond/pickaxe | 5246301e0af1c6f573ea509f7524e40757ed690d | 73b5eebbe00d658dc37a23b5bfc2eb0c2e48b2a4 | refs/heads/master | 2020-12-01T11:40:49.336817 | 2016-04-29T04:12:06 | 2016-04-29T04:12:06 | 66,162,585 | 1 | 0 | null | 2016-08-20T18:44:34 | 2016-08-20T18:44:34 | null | UTF-8 | Python | false | false | 558 | py | from base58 import b58decode_check
def p2pkh_address_to_pubkey_hash(address):
"""
Takes a P2PKH address (starting with a 1, m or n symbol) and extracts its
HASH160 hash (used as a public key hash).
:see: https://en.bitcoin.it/wiki/List_of_address_prefixes
:param address: P2PKH public address
... | [
"emond.jesse@gmail.com"
] | emond.jesse@gmail.com |
e7e5c5a12d2160bfbdb3aa8eb09df7b667911baf | 0a8619f073dd199f054eff1947d3d5a66f0f160c | /4.py | cabb6877cdb802c615eceb7b09bd24fcfd2db1e3 | [] | no_license | rainmayecho/applemunchers | 70fc858eb6d9086365398b1515abac9e3fd265dd | cd1e92836eac53a781597bf316d80bcf0cba9dfb | refs/heads/master | 2021-01-18T22:24:48.087329 | 2013-09-10T16:55:47 | 2013-09-10T16:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | def func():
i=900
palindrome = 0
for x in range(i,1000):
for y in range(i+1,1000):
if is_palindrome(str(x*y)) and x*y > palindrome:
palindrome = x*y
return palindrome
def is_palindrome(input):
string = list(input)
string.reverse()
if list(input) == stri... | [
"sanguinex9@gmail.com"
] | sanguinex9@gmail.com |
f8881798d5ff65d89336d5d349a7c1f28b288ccd | 1275fe3e7cfe893c9a5f922c60fa4426eb155dbb | /legacy/cuda-convnet2/python_util/util.py | 7aeec4217ef87546f6414f399ec375ad38272839 | [
"Apache-2.0",
"MIT"
] | permissive | elhuhdron/emdrp | 5f4b057986580139ce4de9a3a01083d717b90541 | 0c48f3325dd255d0ae06a89033e34cdc958ac4ab | refs/heads/master | 2021-12-28T20:45:41.418547 | 2021-10-21T13:33:26 | 2021-10-21T13:33:26 | 47,223,300 | 5 | 1 | MIT | 2021-09-24T14:47:36 | 2015-12-01T23:11:46 | Python | UTF-8 | Python | false | false | 2,867 | py | # Copyright 2014 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... | [
"pwatkins@gmail.com"
] | pwatkins@gmail.com |
dd17b924d8c1cdced32a20a58454603aebae7f7e | dea39b5d71a51923b0690ad2663371f863e56d92 | /app/__init__.py | eb88621efb0d0498123ef26e697cb1983e2c9a9a | [] | no_license | kamillacrozara/flask-base | c41b4a32dd5923e2f414e4d8af475189c1be7cfc | 88efcaaeb8138bbedf7ffecd94fee883977d8a1d | refs/heads/master | 2021-01-21T02:01:28.089332 | 2016-06-15T21:45:25 | 2016-06-15T21:45:25 | 61,230,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from config import config
db = SQLAlchemy()
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
config[config_name].init_app(app)
db.init_app(app)
# attach routes and custom error pages h... | [
"holanda.kamilla@gmail.com"
] | holanda.kamilla@gmail.com |
9aec856b0fb1eb94d3f55b1249194e4c210932aa | 1f3f0dc8799dac1e7974b1b05211c2bb863db787 | /Asakura/3set/part26.py | f09145e1e0d00d37716d85d01ebdf63eb69112a2 | [] | no_license | m-note/100knock2015 | 665bb27bc84a0eacaa795523b5e65a5b64c426ac | 84cd1d0617b0b5c15f64e593dd2e0ae21a4dcef7 | refs/heads/master | 2021-01-18T19:41:54.111994 | 2015-07-28T16:15:53 | 2015-07-28T16:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | #!usr/bin/python
#--*--coding:utf-8--*--
#強調マークアップの除去:025の処理時に、テンプレートの値からMediawikiの強調マークアップを除去してテキストに変換せよ
import sys
import re
if __name__ == '__main__':
inputfile = open(sys.argv[1],'r')
re_start = re.compile('\{\{基礎情報')
re_end = re.compile('\}\}')
re_temp = re.compile('\|(.+?) = (.+)')
re_ref = re.comp... | [
"tennisabc562@gmail.com"
] | tennisabc562@gmail.com |
fee7f65b768ca3c7ee0d20fcf3e77badd3499824 | ed496f92c738f3d6f169b48d9c6f47390a2693b8 | /EasyOrders/wsgi.py | 01ef649a12cbc712df630619cf50a142834744c4 | [] | no_license | yatharta/EasyOrders | 642074db6c03ff00ba28e3dc12ffce3ded1c54cd | 729e3574a82b13b96f9b60a84640e10fe9c664bc | refs/heads/master | 2023-06-19T17:07:14.151804 | 2021-04-17T17:12:06 | 2021-04-17T17:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for EasyOrders project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"60061690+tiwari1302@users.noreply.github.com"
] | 60061690+tiwari1302@users.noreply.github.com |
e47f403cff42f8e7b4e57a819f1862876c988f13 | 23414270f524b36972140bd9044300ada3a28136 | /密码体制算法实现/密码体制---ElGamal/ElGamal.py | 9f44a89c9204be14e6ef8501456a57da819a8bd7 | [] | no_license | Jing0607101510/CryptoAlgorithms | 421f463f5dc3e4701e8d1a5c7fbea6f772e92367 | a0a78b37b1fd07db75ea7e5ef88c2c9cfee95ced | refs/heads/master | 2021-10-09T06:57:25.105848 | 2018-12-23T06:46:20 | 2018-12-23T06:46:20 | 162,868,862 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,331 | py | from PyQt5.QtWidgets import QApplication, QWidget
import sys
from ElGamal_ui import Ui_Form
import random
class ElGamal(QWidget, Ui_Form):
def __init__(self):
super(ElGamal, self).__init__()
self.setupUi(self)
self.setupSignal()
self.setupData()
def setupSignal(self):
s... | [
"1293521172@qq.com"
] | 1293521172@qq.com |
6ac0c907489a203ecfc7642cfbef6fc7477c2e62 | 1287456060aa52a0338ab3928c300a14779f9a30 | /SRP/tasks.py | f054f4a1446e36b72b5887a09929672704735830 | [] | no_license | maxm11/Full-Stack-Senior-Research-Project | 66a9dc0e817556c0a0806740aba65535adeca9ef | 68e5d80343881bdee0335f39e95063897bc4e8d6 | refs/heads/master | 2021-03-27T08:31:03.530687 | 2018-12-05T06:28:55 | 2018-12-05T06:28:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,219 | py | # Create your tasks here
from __future__ import absolute_import, unicode_literals
from .models import Entity, Experience, Sentence, Noun
from decimal import Decimal
from .libs.nlp import tone
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from background_task import background... | [
"maxmrphy@gmail.com"
] | maxmrphy@gmail.com |
5037790cae63e5d0725dbad341711f5906ac6bd6 | 705a1a6b909cb8456780e10e28cb255fc17acde5 | /Jubilacion.py | f3ef2e2c421b3909d50656af5bd7d505ec8ef870 | [] | no_license | danistenia/Calculadora-Pensiones-AFP | 7b321ce4ea8beedde3436547d4acabc886d2663e | 145c20778f975e53e4b3a6fddda0cd427efdc358 | refs/heads/master | 2022-12-06T15:21:50.362452 | 2020-08-15T20:56:35 | 2020-08-15T20:56:35 | 287,823,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | import streamlit as st
from enum import Enum
from typing import List
def jubilacion(sueldo_clp,tasa,tiempo_años,capital_actual,sexo):
for i in range(0,(tiempo_años*12)+1):
if i==0:
aporte = ((sueldo_clp/0.83)*(1+0.01/12))*0.1 + capital_actual
else:
a... | [
"noreply@github.com"
] | danistenia.noreply@github.com |
7ae8008a08ca52e7b57bd92704d3e8870be2f0c6 | 97c6ea9a1e561d9a8ac250c90b15ecf3cda6af44 | /models/pointnet2_seg.py | 68db21bd2f9cb874105111d5f93db8c56ad04153 | [] | no_license | li1901/Pointnet2.PyTorch | 4d216aa92526e294ce38469b48025913a2d5350f | 1b98042fa286ce13db5cbfeb498f0f64dc1487b4 | refs/heads/master | 2023-01-08T23:15:51.981693 | 2020-11-14T03:02:12 | 2020-11-14T03:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from utils.set_abstraction import PointNet_SA_Module, PointNet_SA_Module_MSG
from utils.feature_propagation import PointNet_FP_Module
class pointnet2_seg_ssg(nn.Module):
def __init__(self, in_channels, nclasses):
super(pointnet2_seg_ssg, s... | [
"lifazhu@deepglint.com"
] | lifazhu@deepglint.com |
dc87d52a4a3efca7e2c41d6882afd2891afdd885 | 1b622808bd714e3c770c811bfa6aed0b36693928 | /30.py | 1453dce7785baf4be61fffc89a73d01df55b6983 | [] | no_license | dinob0t/project_euler | a4d9a28b2994b64ea6ad064b05553f13ad38fc6d | b0fed278ae2bfc1bfe44043f2b02482ebc210a56 | refs/heads/master | 2020-09-12T14:07:16.137051 | 2014-09-01T16:16:49 | 2014-09-01T16:16:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py |
def sum_power_digits(num,power):
num_str = str(num)
num_sum = 0
for i in range(len(num_str)):
num_sum = num_sum + int(num_str[i])**power
return num_sum
def find_max(power):
nine_list = []
nine_list.append('9')
nines = int("".join(nine_list))
while nines < sum_power_digits(nines,power):
nine_list.app... | [
"dean.hillan@gmail.com"
] | dean.hillan@gmail.com |
d0ab779d19449025bfcd4a9b8f4ae12d101f3ed3 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/dataflow/modeling/job/job_driver.py | fb79d2645b77791a5e854507749137ec274c3ec8 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 10,200 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
481ae39bdd81c05407a95d88b256471c8e60c9a3 | d7327e6f2a68da73da2f2a99128da0e8a4a1b5d1 | /cache/.mako.tmp/post_helper.tmpl.py | 8989eeefff5685cabf849085b186c2f1957c7e3b | [] | no_license | ryandkerr/nikola-ryandkerr | 62d1d12aa65a05a8ea0aa304431a4e22109e130e | 8c402e7f453948df66d9b4bdb4b2c661ff5213fa | refs/heads/master | 2021-01-23T13:49:47.540182 | 2015-06-30T02:01:15 | 2015-06-30T02:01:15 | 37,417,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,719 | py | # -*- coding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1435629633.56992
_enable_loop = True
_template_filename = u'/home/ryan/.virtualenvs/nikola-web/local/lib/python2.7/site-packages/nikola/da... | [
"ryankerr@college.harvard.edu"
] | ryankerr@college.harvard.edu |
7d57e61792fab366f859e0ad676e16d0a883424a | d51735cfc00ea4e536c44bf8309db5e28f704972 | /myutils.py | 984dda6f6df5a6640dc986d6aac510503c35aa28 | [] | no_license | bhavyagera10/Attn-to-FC | 23733adec8d658788f229aaf17a84f1694ef42ec | ba421d16e317b4b94a2c828f285689a5e2537e97 | refs/heads/master | 2022-11-21T05:54:33.982663 | 2020-07-27T21:30:31 | 2020-07-27T21:30:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,178 | py | import sys
import javalang
from timeit import default_timer as timer
import keras
import numpy as np
import tensorflow as tf
import networkx as nx
import random
# do NOT import keras in this header area, it will break predict.py
# instead, import keras as needed in each function
# TODO refactor this so it imports in ... | [
"shaque@nd.edu"
] | shaque@nd.edu |
881bf26ac89b923944c31b113c5a4250cb30de70 | 780c45da6388931381d911499723c5afa8a44036 | /run_test_c30.py | ce1a8a664e0893aa42c5eaf89ed0835150c1a6ad | [
"Apache-2.0"
] | permissive | daitouli/metaheuristics | f9157bd700957072a69c0be03d8d34378533581c | 9d885e4c9e9f39ad22baa9ea5d263d5daa276f88 | refs/heads/master | 2021-02-04T18:40:47.387347 | 2019-09-30T06:51:26 | 2019-09-30T06:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,520 | py | import pandas as pd
from models.multiple_solution.swarm_based.ABC import *
from models.multiple_solution.swarm_based.BMO import *
from models.multiple_solution.swarm_based.BOA import *
from models.multiple_solution.swarm_based.EPO import *
from models.multiple_solution.swarm_based.HHO import *
from models.multiple_solu... | [
"nguyenthieu2102@gmail.com"
] | nguyenthieu2102@gmail.com |
2a55fd29b450411bb3c2a75e589f5359a2f3f9bf | d580e171f80540923e56fce88655b5c6b42af6c1 | /python_code.py | 76654fcf64c5aa00c0a28167bd11f8e1f80af8d3 | [] | no_license | trushadesign/github-example | b81a8276d4a1ff2cb97b6bc30c172cd669921045 | 4d8f75421a0a75b74b3dbddfa7cee82a5e598bc8 | refs/heads/master | 2020-11-29T11:07:42.071586 | 2019-12-25T12:57:26 | 2019-12-25T12:57:26 | 230,099,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | print("Hello Github!")
git status
| [
"serhii.vichev@MacBook-Air-Serhii.local"
] | serhii.vichev@MacBook-Air-Serhii.local |
1548e71eb3e56b1454fba2ebb60d6ebcd1105cfe | 4f03a65a6af608a8fb2d0049f6b1237532585925 | /src/apconf/mixins/cms.py | 347eaec1e8516b1276f09a493216a5910b076ab1 | [] | no_license | pymallorca/pymallorca | 865f0cfa1fa693b7b488330236691eb8c6c4bf2b | 048d41e02c305d6ccbe67ebf99ca519af6698109 | refs/heads/master | 2020-06-09T04:08:37.359739 | 2014-11-24T23:30:49 | 2014-11-24T23:30:49 | 26,458,565 | 2 | 0 | null | 2014-11-22T11:36:36 | 2014-11-10T22:20:06 | Python | UTF-8 | Python | false | false | 918 | py | # -*- coding: utf-8 -*-
from apconf import Options
opts = Options()
def get(value, default):
return opts.get(value, default, section='CMS')
class CMSMixin(object):
CMS_SEO_FIELDS = True
CMS_REDIRECTS = True
CMS_SOFTROOT = False
CMS_TEMPLATE_INHERITANCE = True
CMS_MENU_TITLE_OVERWRITE = Tr... | [
"gshark@gmail.com"
] | gshark@gmail.com |
e05b8c8908428641797fabbd3dc891fe97237cdb | 8b30f1b8bcee0e8428a183e944ab01d4bd8912a3 | /Trees/_tree_abstract.py | deecacfa9ed3ad4cfc86f7fe9aa76b3fc90a00f5 | [] | no_license | hayleymathews/data_structures_and_algorithms | 1cd2bb4358e8f8a9681b79e2cf862dc51be4a4b6 | ef89e4c89cb014d0acea1669f927cadc6af70225 | refs/heads/master | 2020-09-02T13:27:15.083968 | 2018-01-27T20:42:46 | 2018-01-27T20:42:46 | 219,231,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,872 | py | """python implementation of abstract class for ADT Tree"""
from abc import ABC, abstractmethod
from Queues.linked_queue import LinkedQueue
class Tree(ABC):
"""
abstract class representing a tree structure
"""
class Node:
def __init__(self, value):
self.value = value
def __... | [
"hmathews.tulane@gmail.com"
] | hmathews.tulane@gmail.com |
f26e7859405297b5aea6a72fdb7d7d3d9f8143c0 | 60e277d924751aeda0162060b7d04e455e3de3c9 | /rcnfq/receive_video_zmq.py | 910388461bd21d10d5feec3ce7bf28eec1576817 | [
"MIT"
] | permissive | cosmoharrigan/rc-nfq | 0700e69af9f5af79b04c108190edf04517577bf3 | 0b18d27d0b95644bded258d5a9fbb5cb4f895c91 | refs/heads/master | 2021-07-12T18:10:08.884411 | 2021-03-17T18:25:37 | 2021-03-17T18:25:37 | 53,664,411 | 15 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | '''Receive streaming video from the robot using ZeroMQ
'''
import io
import socket
import struct
from PIL import Image
from scipy.misc import imread
import numpy as np
import zmq
import time
# Configure the following parameter:
IP_ADDRESS = "192.168.0.56"
# Setup SUBSCRIBE socket
context = zmq.Context()
zmq_socket =... | [
"cosmo.harrigan@singularityu.org"
] | cosmo.harrigan@singularityu.org |
23b938e1ab8367b219527b79832098965d421692 | b306123b0b6a7751357bfd553763f2d9cb62689d | /transformers/authors_transformer.py | 21690931b1659e814655a1338a37a909c5e6e461 | [] | no_license | aascode/detecting-deception-in-political-debates | cc3e326493199fbc7fa94d8cf06821dce5d52c10 | 5f7c007e82fef1792aa7982bfb630cd0ddf057aa | refs/heads/master | 2022-03-22T22:05:47.891021 | 2020-01-05T04:07:59 | 2020-01-05T05:26:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from transformers import BaseTransformer
class AuthorsTransformer(BaseTransformer):
def __init__(self, data):
self.names = ['AUTHOR_TRUMP', 'AUTHOR_CLINTON', 'AUTHOR_OTHER']
transformed = []
for author in data:
is_trump = 1 if 'TRUMP' in author else 0
is_clinton = 1... | [
"34142780+fire0@users.noreply.github.com"
] | 34142780+fire0@users.noreply.github.com |
9b7d397ba307c03c0cd50292f30ea2770a2a8816 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02623/s581456736.py | db739a5bab8b529088885d50f94a895ce4eb8e86 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | n, m, k = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
a_num = 0
b_num = 0
book_num = 0
passed_k = 0
for i in range(n):
if a[i] + passed_k <= k:
a_num += 1
passed_k += a[i]
else:
break
for i in range(m):
if b[i] + passed_k <= k:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fda5dcaafbc12d591a25e04eff5dae783cabda9c | 588fc7a74ec467f708a6e0684870929cf4c99234 | /30.py | 35cbe344ed9066e19a2c3529531b46c502dfd342 | [] | no_license | petitviolet/project_euler | 87710cd1b5138d6fea15a563c5a23b23c2b3c870 | 03f62a400708bd5cd4370456178c2ee63fb717db | refs/heads/master | 2020-05-27T10:56:32.187374 | 2013-05-16T00:16:38 | 2013-05-16T00:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # -*- encoding:utf-8 -*-
def sum_order(n):
if n == 1:
return False
str_n = str(n)
order = [int(s) for s in str_n]
result = 0
for o in order:
if o == 0:
pass
else:
result += o ** 5
if n == result:
return True
else:
return False
... | [
"violethero0820@gmail.com"
] | violethero0820@gmail.com |
c83b1d17781b0f8bb755ab8da5af3e52437121b5 | dc397dcb1f6210c6e1bde1c8650428ab84239e72 | /sandbox/mooncake2.py | 9cafb0fcea00859b571a86dcaedb5e2cbc3bc774 | [] | no_license | ccurro/font-bakers | 963a939736ececa9ab8ceb0756fd9507c285de7e | 9e0a7e726a7c2c46e56a8a79168afe3efc4648fb | refs/heads/master | 2020-04-07T01:03:24.898430 | 2019-04-29T21:31:49 | 2019-04-29T21:31:49 | 157,929,015 | 5 | 0 | null | 2019-04-29T21:32:20 | 2018-11-16T22:38:06 | Python | UTF-8 | Python | false | false | 9,070 | py | #!/bin/python
import numpy as np
import torch
from torch import nn, optim
import torch.nn.functional as F
import matplotlib.pyplot as plt
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
BATCH_SIZE = 512
NUM_BLOCKS = 16
NUM_TRAIN_ITERATIONS = 10000
SEED_LENGTH = 20
class CausalConv1d(nn.Conv1d):
# From A... | [
"noreply@github.com"
] | ccurro.noreply@github.com |
6a7aa84cda5df60cadffb73eb06bb8813fea8c4c | 0d1548f0fc2eeabfb663b3523e062df4413cd7ae | /manage.py | b3be62c86cff2966d667623c28727ccca9a80445 | [] | no_license | rachanabhagwat15/Stock-Market-Prediction | 3f6ab7ea3c919cade1e9effa09e79522f82e6447 | bae1b983b846501114228f520dbf9cda0df8caad | refs/heads/main | 2023-02-15T20:41:19.433982 | 2021-01-17T04:47:50 | 2021-01-17T04:47:50 | 330,315,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Stock.settings')
try:
from django.core.management import execute_from_command_line
ex... | [
"noreply@github.com"
] | rachanabhagwat15.noreply@github.com |
cc83e1f6b8d5643656dcc69ec20fd57b14143940 | c79d32b780dccf68c66a693ccc93969bae805d9c | /FP/Treino Exame/ex 3.py | 466640675603564afb5d5eff19f3d11d320333c2 | [] | no_license | Tiburso/Trabalhos-IST | 1ac065bd1328f37ff8d3d90960cae25ddafd5d27 | 2e473c3bf8a536899304c58b24e45f433962f2a4 | refs/heads/master | 2021-01-15T00:56:00.603234 | 2021-01-03T15:51:34 | 2021-01-03T15:51:34 | 242,820,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | def codifica(num):
n_f = 0
i = 0
while num > 0:
if (num % 10) % 2 == 0:
if num % 10 != 8:
n_f += (num % 10 + 2)*10**i
else:
if num % 10 == 1:
n_f += 9*10**i
else:
n_f += (num%10-2)*10**i
... | [
"noreply@github.com"
] | Tiburso.noreply@github.com |
2101e8141de93508a3429d18ac2ef38c874c6d79 | 99df1b7e2323ced0f2b2c9d6e2696136ef7521d7 | /medproject/medapp/migrations/0002_auto_20210126_2242.py | a9c1f27b9f95d15ec1e8c42c71e1a60c9ab7180f | [] | no_license | Resa-Obamwonyi/med_appointment | f3d6abe0e88d38b863a9ebf3eb6dff150b45da68 | 0bd30c267d7726d030c81679b1bd592f6f05708b | refs/heads/main | 2023-02-24T14:35:42.106402 | 2021-01-27T19:32:09 | 2021-01-27T19:32:09 | 333,034,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # Generated by Django 3.1.2 on 2021-01-26 22:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('medapp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='appointment',
name='end_time',
... | [
"theresaobamwonyi@gmail.com"
] | theresaobamwonyi@gmail.com |
6349c63eb24b738a6bd6f609809d3db6989a179c | 230a760662c8e2641dbe834bc41996fb9a7e644d | /app/fac/urls.py | ecb2febbb10c21a9b29c7baa01c2c3465a19d71c | [] | no_license | OrlandoGareca/sistema-de-compra-y-facturacion | 99a37762905bdf216558c5282705e2df4235f235 | 8b3cb64d2f9ebcbe085dd37b40fbc3b3b408dfee | refs/heads/master | 2021-04-17T18:05:53.723207 | 2020-04-13T18:14:05 | 2020-04-13T18:14:05 | 249,464,579 | 0 | 0 | null | 2021-03-19T23:18:23 | 2020-03-23T15:10:38 | HTML | UTF-8 | Python | false | false | 1,038 | py | from django.urls import path, include
from app.fac.views import ClienteView,ClienteNew,ClienteEdit,clienteInactivar,\
FacturaView, facturas,\
ProductoView,\
borrar_detalle_factura
from app.fac.reportes import imprimir_factura_recibo
urlpatterns = [
path('clientes/',ClienteView.as_view(), n... | [
"orlando.dilmar.gareca.pena@gmail.com"
] | orlando.dilmar.gareca.pena@gmail.com |
91c38c6e741d31665a613aefbe52b741dad9f2d3 | e2f133885cfcea86a3c06bba2f1d4d165e50c823 | /api_test/main.py | eb2d68962d74199d1e2afd00f96adc2b336a3364 | [] | no_license | JR1QQ4/app_test | e0d9dc25ea03060d17dc7f29f30706ec4b8c16ea | 1c2ab9a5601e94a28f9bfe485e615d22511bb79b | refs/heads/main | 2023-05-25T14:55:53.326377 | 2021-06-08T14:33:52 | 2021-06-08T14:33:52 | 349,760,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,417 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
from time import sleep
from appium import webdriver
from appium.webdriver.common.mobileby import MobileBy
from appium.webdriver.common.touch_action import TouchAction
from appium.webdriver.extensions.android.gsm import GsmCallActions
from appium.webdriver.webdriver import WebDr... | [
"chenjunrenyx@163.com"
] | chenjunrenyx@163.com |
e49f2894a3ab9c1a654ba0df022d7398b7113dc5 | 85455c059499f6df9648defd7bbf44d9a3963a6a | /app/models.py | 40fa912bd68ea0ad93da96bccf4cd1d190150dcb | [] | no_license | zoneneo/hanzi | 6951024bf99eead7cace58f78b12daa21f610268 | 6f35785120a3733b656c3baef12518112d6df4b6 | refs/heads/main | 2023-02-20T19:40:35.767078 | 2021-01-26T10:05:35 | 2021-01-26T10:05:35 | 327,545,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,543 | py | # -*- coding: utf-8 -
from .exts import db
from sqlalchemy import Column, text, func, Index, outerjoin, and_
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy import distinct
from sqlalchemy import desc
from sqlalchemy import update
from sqlalchemy.orm import aliased
from sqlalchemy.types import Typ... | [
"zoneneo@hotmail.com"
] | zoneneo@hotmail.com |
ca7494f0ff6984b0e87384fffe98c9b39bfd9b3e | 4db4276f7e05c16bc6719b48deb58e40f74230ca | /wordcount.py | 832ac70c7f9a6b322e9e1de8ab38f594d958de59 | [] | no_license | dmrsh/hello-world | ea6e00aa31401f48c46abbd48b35ab1c717530a0 | 2e33d0982e8fb40f8bce87b7b8141f2dc96f7d7e | refs/heads/master | 2016-09-06T15:16:00.456635 | 2015-07-27T20:22:17 | 2015-07-27T20:22:17 | 39,794,669 | 0 | 0 | null | 2015-07-27T20:22:17 | 2015-07-27T19:52:28 | Python | UTF-8 | Python | false | false | 463 | py | import os
cwd = os.getcwd()
wds = open(cwd+'\subdir\muchText.txt')
d = dict()
for line in wds:
for word in line.split():
tok = word.strip().lower()
d[tok] = d.get(tok, 0) + 1
sd = []
for tok in d:
sd.append((d[tok], tok))
sd.sort(reverse=True)
for word in sd:
count = word[0]
if(count > 1):
print(word[1], ... | [
"s99bf19a@yahoo.co.uk"
] | s99bf19a@yahoo.co.uk |
4aab067f7718e6227ed17f2f3bc3df1da3500b6b | 227da5bdfc09fdbe6cea7d694a58470c26aaf94a | /auctions/views.py | 0db9b0d7bac07d817fe2ef4c3e477a9203d95aaa | [
"MIT"
] | permissive | amogyisabogy1/Filesharing | 28db40bba5a909c83fc7142cdc9590a93c76952d | bc1d318af015cd3ede4710ca7c2f1ed823c205e4 | refs/heads/master | 2023-08-25T13:33:57.759426 | 2021-10-11T01:38:12 | 2021-10-11T01:38:12 | 415,744,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,701 | py | from django.contrib.auth import authenticate, login, logout
from django.db import IntegrityError
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
import datetime
from annoying.functions import get_object_or_None
from django.contrib.auth.decor... | [
"amoghganjikunta@gmail.com"
] | amoghganjikunta@gmail.com |
9e373589be438679c33b4a580fe89b840e5164f3 | a8ebc4cccbf1ba346b1de4779dee7d4c803c7106 | /display_pixels/cap_symmetrize_velfield.py | ad419157b76b0cabc104f2eff3144a8894c45ca7 | [] | no_license | Treibeis/python | 6b4680b167e8da7dffdcbe31704f18b0bd4f31fb | e5f467f1db96c99bb8085229f915592f90932802 | refs/heads/master | 2023-07-25T09:18:40.941330 | 2023-07-15T05:51:43 | 2023-07-15T05:51:43 | 143,747,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,828 | py | #######################################################################
#
# Copyright (C) 2004-2015, Michele Cappellari
# E-mail: michele.cappellari_at_physics.ox.ac.uk
#
# This software is provided as is without any warranty whatsoever.
# Permission to use, for non-commercial purposes is granted.
# Permission to modif... | [
"[treibeis1995@gmail.com]"
] | [treibeis1995@gmail.com] |
ed530e3765c93ad395a073bdba2ebcf9db8a922e | 2069ec66ace2e8fb5d55502d1c3ce7fd89f3cdcc | /fp2/example/write.py | 2835c40effeaaa01280a975bc1037885b60af898 | [] | no_license | caimingA/ritsumeiPython | 6812a0233456cf3d5346a63d890f4201160593c5 | bb9c39726dd26fe53f7a41f5367bdab60c36a057 | refs/heads/master | 2022-11-16T22:28:50.274374 | 2020-07-13T14:53:51 | 2020-07-13T14:53:51 | 279,294,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | f = open("yuki.txt", mode="w", encoding="utf-8")
f.write("或冬曇りの午後、わたしは中央線の汽車の窓に一列の山脈を眺めてゐた。")
f.write("山脈は勿論まつ白だつた。")
f.write("が、それは雪と言ふよりも山脈の皮膚に近い色をしてゐた。")
| [
"caiming106@sina.com"
] | caiming106@sina.com |
e232ea8556be487081ad7ae17a32d47bd88efdad | 31e6ca145bfff0277509dbd7c4b44b8deddf3334 | /LeetCode/Graph/combination-sum.py | 1bad4a940655a4357b9828e4c8a4c2eb18a168a3 | [] | no_license | brillantescene/Coding_Test | 2582d6eb2d0af8d9ac33b8e829ff8c1682563c42 | 0ebc75cd66e1ccea3cedc24d6e457b167bb52491 | refs/heads/master | 2023-08-31T06:20:39.000734 | 2021-10-15T10:51:17 | 2021-10-15T10:51:17 | 254,366,460 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | class Solution:
def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]:
result = []
def dfs(csum, index, path):
if csum < 0:
return
if csum == 0:
result.append(path)
return
for i in range(in... | [
"glisteneugene@gmail.com"
] | glisteneugene@gmail.com |
5588a9b58bb4811699015d008966309f1b432923 | 76a01339f7ca19536a07d66e18ff427762157a2a | /codeforces/Python/serval_and_bus.py | 49a999fb8f0c58c2e96f04c61667f1b963aee56a | [] | no_license | shaarangg/CP-codes | 75f99530921a380b93d8473a2f2a588dc35b0beb | 94fc49d0f20c02da69f23c74e26c974dfe122b2f | refs/heads/main | 2023-07-19T21:31:40.011853 | 2021-09-07T05:22:28 | 2021-09-07T05:22:28 | 332,644,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | n,t = map(int,input().split())
m=10**9
j=0
for i in range(n):
s,d = map(int,input().split())
if(t<=s):
a=s-t
else:
a=t-s
if(a%d==0):
a=0
else:
a = (a//d + 1)*d -t + s
if(m>a):
m=a
j=i+1
print(j) | [
"shaaranggsingh@gmail.com"
] | shaaranggsingh@gmail.com |
613ab8ac9d59b0f20df16241ff4defdd691ee164 | 79b6e625fb9fd2533a0e492d0e23fb5bb18f4f18 | /app/config/__init__.py | 2fc2af08e1789ef2352c15615fe8b6bea8adf792 | [] | no_license | schulzsebastian/vdata | 93d57491c1b2553e42539ef5772cd845b1ee9075 | 999270b32ff60f0f17cd13eb0c8b391069bcdfba | refs/heads/master | 2021-01-11T06:51:28.611857 | 2016-11-03T19:40:19 | 2016-11-03T19:40:19 | 71,816,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from .local_config import LocalConfig
current_config = LocalConfig
except:
from .config import Config
current_config = Config
| [
"schulz.siwy@gmail.com"
] | schulz.siwy@gmail.com |
3adc95673cbed3a1842979da20f0907a4b031f28 | bfafc91d672a1ea2bff6178038d93ee3b0d39c3e | /bioinformatics/rosalind/NEED/need.py | 674ed759d673c6b16ac06aea31783b7dd0f2b662 | [] | no_license | danshea/python | c2567644f4e18b98c30b4e908b6e96f5475e6fd6 | 66bd667d525c64dbb23a4248772cb3094c3ae930 | refs/heads/master | 2021-08-06T06:02:05.094272 | 2021-06-21T20:24:28 | 2021-06-21T20:24:28 | 4,727,109 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py | #!/usr/bin/env python
################################################################################
#
# Name: need.py
# Date: 2014-04-25
# Author: dshea
# Description:
# Problem
#
# An online interface to EMBOSS's Needle tool for aligning DNA and RNA strings
# can be found here.
#
# Use:
#
# The DNAfull scoring... | [
"daniel.john.shea@gmail.com"
] | daniel.john.shea@gmail.com |
e093d502ae8e843bd99621c4dbb2bdd8f510aca7 | c265cb56c7f6a5bc532a506188e61cb4d6ac3358 | /example/get_face_enhancement_v1.py | 029237fc791914bc3ec24b1c0dbb6e03fa4672ef | [
"MIT"
] | permissive | tranhoangnguyen03/MobileFace | 00ae926053494d1668004621cebbf5ed0575471b | c94aa16bf5f1fb3b74b67e5685fb39061cf10ef4 | refs/heads/master | 2020-06-25T22:40:46.715046 | 2019-07-29T11:51:51 | 2019-07-29T11:51:51 | 199,442,953 | 0 | 0 | MIT | 2019-07-29T11:50:43 | 2019-07-29T11:50:43 | null | UTF-8 | Python | false | false | 2,818 | py | import os, sys
import argparse
import cv2
from matplotlib import pyplot as plt
import numpy as np
sys.path.append(os.path.abspath(os.path.dirname(__file__)) + os.sep + '../MobileFace_Enhancement/')
from mobileface_enhancement import MobileFaceEnhance
def parse_args():
parser = argparse.ArgumentParser(description='... | [
"helloai777@gmail.com"
] | helloai777@gmail.com |
e4c41ba497ad969a0d1063fd764a5b856b1015ec | fdf96c2a5d0c044dcb9eea210434dfc5448cf2e9 | /el.py | 69d20ce3363d30b857e9ad995a268486ff20be78 | [] | no_license | joquizon/Python-Class | 84f8db181c0c37385d18f4c9b9d616365b96972f | 2341589e9cc63262c5424189a19b48772add5972 | refs/heads/master | 2021-05-21T13:58:36.812773 | 2021-01-29T16:02:56 | 2021-01-29T16:02:56 | 252,673,470 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | from Newdatin import Ndataenter
from Editdatin import Bigeditinput
from Edinfo import editinputFo
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>... | [
"josequizon@jcqfolio.com"
] | josequizon@jcqfolio.com |
77fd709015fd652698b0f4af3bad2db95658244b | 9766c2e479e99cca5bf7cc834c949fc4d5286275 | /TEST/GUI/00190_page_bdyanalysis/cleanup.py | 016dd73ae3dc45790df8a484acfe062a7795a6de | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | UstbCmsPjy/OOF2 | 4c141e8da3c7e3c5bc9129c2cb27ed301455a155 | f8539080529d257a02b8f5cc44040637387ed9a1 | refs/heads/master | 2023-05-05T09:58:22.597997 | 2020-05-28T23:05:30 | 2020-05-28T23:05:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | removefile('bdyanal.log')
| [
"lnz5@rosie.nist.gov"
] | lnz5@rosie.nist.gov |
dc6dfa3596c32270087a4264ab9fb490ee5ddcba | 089a6a7c51af5ca5b28282e9370bd1fc97ff94b5 | /superhero_database/heroes/views.py | a2614fcd574ebbe99743b2e8002c8b43a032cc59 | [] | no_license | plumtree87/superheroes | 95bedd4c354373d15bcea5eae770e4ea368adb35 | 0192a304676cb63de859a61ef9493d8473e7c5c9 | refs/heads/main | 2023-03-29T10:02:12.859584 | 2021-04-08T15:26:53 | 2021-04-08T15:26:53 | 355,323,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from .models import Hero
from django.urls import reverse
# Create your views here.
def index(request):
all_heroes = Hero.objects.all()
context = {
'all_heroes': all_heroes
}
return render(request, 'h... | [
"plumtree87@protonmail.com"
] | plumtree87@protonmail.com |
f0b5d8049387f82fdc10423ed90621cbe0c3bdef | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/nlp/dgu/src/dataset.py | b0e7e7d67e9e558b44bf62623dcbbab8f34c71a8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 21,879 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
a20ec095f9065df80a1ba32f675716abe0875c05 | 26c4426d2c9cd10fd7d4a73609512e69e31b64ba | /justone/mayflower/products/forms.py | 452a35e79f1ecaab5846dfb47812af7c3869b763 | [] | no_license | KirillUdod/html2exc | 550761213eb6edd7d3ea4787938cce65584606c3 | 60569f01822a15b2e5b6884a42774cd428953700 | refs/heads/master | 2021-01-15T17:07:05.906492 | 2016-01-06T11:51:38 | 2016-01-06T11:51:38 | 34,809,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | from django import forms
from products.models import Bouquet
class DependenciesForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(DependenciesForm, self).__init__(*args, **kwargs)
instance = getattr(self, 'instance', None)
dependencies = getattr(self.Meta.model, 'dependenci... | [
"kirilludod@gmail.com"
] | kirilludod@gmail.com |
1353f3961676958e592cf32649e52eeefe94fb13 | 45100ef7950cbac271695d3dc7fe80ae30dec437 | /NSRDB_analysis.py | de2e361d277fc3841ef34f349ecf1dcf5bf1baeb | [] | no_license | shafferpr/solar_radiation_database | 635e628700c69b6dff258e95e310e7952629b88d | 113a80bf25a1cd4db0a8d9124d70b867b38cca51 | refs/heads/master | 2021-01-23T05:44:49.555014 | 2017-05-31T20:04:22 | 2017-05-31T20:04:22 | 92,983,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | #! /usr/local/bin/python
import os
import sys
import string
import requests
import json
import numpy as np
import pandas as ps
import math
from bokeh.plotting import figure, output_file, show
from dateutil.parser import parse
def createDateTimeFigure(repoString):
payload = {}
r=requests.get('https://api.gith... | [
"shafferpr@gmail.com"
] | shafferpr@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.