blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fbe8c840dba4c6a96ac98a3b1fa2ad50500dd26c | 763841bf8447c5490ebc3bf74523fd5470944a80 | /forms.py | eb7db2f2490088671fcd6c907f89330646e2a20b | [] | no_license | sumy7/little-bolg | bad7e4ad2755cd1e77edb44a3b1a52780714059f | 13d825ad4fb1ad6fc97f41259ff094664a4664bf | refs/heads/app_hxn_1 | 2021-01-10T23:21:22.062356 | 2016-10-08T14:40:36 | 2016-10-08T14:40:36 | 70,610,888 | 1 | 0 | null | 2016-10-11T16:01:40 | 2016-10-11T16:01:40 | null | UTF-8 | Python | false | false | 780 | py | from flask_wtf import FlaskForm
from wtforms import StringField,TextField,IntegerField
from wtforms.validators import DataRequired
class ArticleForm(FlaskForm):
title = StringField('title',validators = [DataRequired()])
content = TextField('content',validators = [DataRequired()])
class UserForm(FlaskForm):
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
11d131e67824ef499030da4c17db0ece1ce20b21 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_21956.py | a1a29e05be6d20512499012515acee2bcd1e343a | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | # Why can't my setup.py-generated script find my also-installed module?
>>> from mkdocs.mkdocs import main_entry_point
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
d980b7457b1a48b0e8331322105ae6eda61bfad7 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/twilio/twilio/rest/events/v1/subscription/__init__.py | 2518ccf20431928bb5df6b6532f2ee53c8234e95 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0255d8652c98e97ffafdedd4dd83a7f814b0062c7bb3a6ea44f2491fa9a04f72
size 15857
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
77757d4c47da531054934f91c32859169ad5780d | 29fa274ae2bf847df8d6f0b03bc28a78f52119aa | /dndsearch/web.py | 9c3dff4f39ba88c1cb4422dbc1f2a7e49bd38744 | [] | no_license | pranav/dndsearch | a6b42d354ea0a3d59dc9dc47f6ec511a820399d7 | 4f63c6b86fb2d53021b409f6ff6527ca8d286799 | refs/heads/master | 2020-12-24T14:45:41.684076 | 2014-12-21T07:31:19 | 2014-12-21T07:31:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | import os
import json
from flask import Flask, render_template
from sql import Page
app = Flask(__name__)
@app.route('/query/<query>', methods=['GET'])
def simple_query(query):
return json.dumps([{'book': p[0], 'page': p[1]} for p in Page.search(query)])
@app.route('/')
def render_home():
return render_temp... | [
"pgandhi@hubspot.com"
] | pgandhi@hubspot.com |
e5ba59f2b9321764767fe0a59be34fd36dd50f78 | d6d0a751d2093b86f733648f9ba0af28e757662b | /serializer/mydev/myapp/models.py | 7e710ed20c5f36054f8faf6c86b19401adc1399c | [] | no_license | nivyashri05/Django_REST_API | 2d2460896d8f61eacfd873dd5d657a46a2f13eeb | 884037e18d11d13921b15f652833f2da10581beb | refs/heads/master | 2022-12-30T21:41:43.707944 | 2020-10-26T11:33:19 | 2020-10-26T11:33:19 | 307,348,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from django.db import models
class Collegetb(models.Model):
deptid=models.IntegerField()
deptname=models.CharField(max_length=256)
depthod=models.CharField(max_length=256)
location=models.CharField(max_length=256)
| [
"nivyainventateq@gmail.com"
] | nivyainventateq@gmail.com |
6770180f243b6a6f2e41b662fcd4326032622ecb | fde950cc136ac38f9bd7e3e3c4a2e469df6c320a | /tests/core/test_commands.py | 4e655f9f3dbbac70f726f768cc6cda2fe954e119 | [
"MIT"
] | permissive | Ilgrim/cwmud | 47180185f7462a1bb9fa3e338c167ffa87c87f63 | bee8b126a5e70edd0593dae9753a6be8d52357cf | refs/heads/master | 2022-03-12T02:39:35.550565 | 2019-10-19T21:51:56 | 2019-10-19T21:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,758 | py | # -*- coding: utf-8 -*-
"""Test for command management and processing."""
# Part of Clockwork MUD Server (https://github.com/whutch/cwmud)
# :copyright: (c) 2008 - 2017 Will Hutcheson
# :license: MIT (https://github.com/whutch/cwmud/blob/master/LICENSE.txt)
import pytest
from cwmud.core.commands import AlreadyExists,... | [
"will.hutcheson@gmail.com"
] | will.hutcheson@gmail.com |
0f21947ee7c2b9045e2bafdf343d409245ab9b40 | fa3e527114cd5799dddb0a25067da4923eae354e | /DataPrepare/FastSim/GAN/BES/Dedx/makeDataSet.py | 65596edf23a6fa591fe64774ab00af09397a15d7 | [] | no_license | wenxingfang/FastSim_ML | e64c6b56ce2afd703d1ddda0ada2de6f65fde049 | d2f1abbb2f6879313d5f4f137b64c4d8bf10fe83 | refs/heads/master | 2022-11-28T01:35:39.727895 | 2020-08-03T15:47:37 | 2020-08-03T15:47:37 | 284,734,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,755 | py | import ROOT as rt
import numpy as np
import h5py
import sys
import gc
import math
import argparse
rt.gROOT.SetBatch(rt.kTRUE)
from sklearn.utils import shuffle
#######################################
# use digi step data and use B field ##
# use cell ID for ECAL ##
# add HCAL
# add HoE cut
###########... | [
"1473717798@qq.com"
] | 1473717798@qq.com |
0d830f5647c98236a85d3ab95cba2544e777ab52 | ba916d93dfb8074241b0ea1f39997cb028509240 | /problems/min_cost_buy_candies.py | 43dde065bba3be50479abf9804d66f154e3f7138 | [] | no_license | satojkovic/algorithms | ecc1589898c61d2eef562093d3d2a9a2d127faa8 | f666b215bc9bbdab2d2257c83ff1ee2c31c6ff8e | refs/heads/master | 2023-09-06T08:17:08.712555 | 2023-08-31T14:19:01 | 2023-08-31T14:19:01 | 169,414,662 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | def min_cost_buy_candies(cost):
cost = sorted(cost, reverse=True)
return sum(cost) - sum(cost[2::3])
def test_min_cost_buy_candies():
assert min_cost_buy_candies([1]) == 1
assert min_cost_buy_candies([1, 2]) == 3
assert min_cost_buy_candies([3, 4, 10]) == 14
assert min_cost_buy_candies([1, 1, ... | [
"satojkovic@gmail.com"
] | satojkovic@gmail.com |
5f8cb45c7040fd7e59a958d419df1cbcb228ccc9 | 8a4bc47685427204365b1668b3d7b5a6fd7546f1 | /packages/example/common/environment.py | 19665e4adcd19fef2aa761bcb6b45bee6664d2dc | [] | no_license | myronww/hello-service | 3b1705ad8c25a6763d5a9673086b01d388b7817a | 8b59054dd4cb09fb5f1697e14a050d8251b3ada8 | refs/heads/master | 2020-04-07T03:43:08.728638 | 2019-04-10T17:12:24 | 2019-04-10T17:12:24 | 158,027,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py |
import os
DEBUG = False
if "DEBUG" in os.environ:
if os.environ["DEBUG"].lower() in ["1", "true", "on"]:
DEBUG = True
DEVELOPER_MODE = False
if "DEVELOPER_MODE" in os.environ:
if os.environ["DEVELOPER_MODE"].lower() in ["1", "true", "on"]:
DEVELOPER_MODE = True
| [
"myron.walker@gmail.com"
] | myron.walker@gmail.com |
6c98862cef6bebdb92b27e051d1e0386d84cef74 | c8296b9479cbefd26bb3ebaaf6ab55bd090f9735 | /mitest/views/module.py | fa86e862af1f5372fd34923fcbb84eca9d020404 | [] | no_license | WangYongjun1990/test-core | 81db49f54e291bd09d329c7c2c560adcbb3b3466 | 0ec13174b58a41f35fce2bd2b895b8ac441dfd37 | refs/heads/master | 2022-12-12T11:45:48.502241 | 2018-08-17T08:38:55 | 2018-08-17T08:40:32 | 138,014,671 | 0 | 0 | null | 2022-12-08T02:10:28 | 2018-06-20T10:05:28 | Python | UTF-8 | Python | false | false | 4,878 | py | # -*- coding:utf-8 -*-
"""
File Name: `module`.py
Version:
Description:
Author: wangyongjun
Date: 2018/6/21 13:44
"""
import json
from flask import Blueprint
from flask_restful import Resource
from mitest.api.comm_log import logger
from mitest.views.wrappers import timer
from mitest.utils.common import get_request_... | [
"yongjun.wang@mi-me.com"
] | yongjun.wang@mi-me.com |
16343f081959d18ba076d1ee9ba2fc91db0493bf | a50bd0cbf51b0578fd8249785a35796dfbcb5728 | /poem/Poem/api/urls_internal.py | c664b83878667a62275dcf8f5dd34587c667d063 | [
"Apache-2.0"
] | permissive | ARGOeu/poem | d24cc8126abec7dbae687ca0f854cabb54f982a4 | 40c17484c6184fe3cf6547401d258b95644fa18f | refs/heads/master | 2020-12-25T17:24:36.601759 | 2019-04-05T11:51:34 | 2019-04-05T11:51:34 | 26,312,136 | 0 | 2 | NOASSERTION | 2020-09-17T09:31:12 | 2014-11-07T09:08:48 | Python | UTF-8 | Python | false | false | 889 | py | from django.urls import path
from . import views_internal
app_name = 'poem'
urlpatterns = [
path('metrics/<str:group>', views_internal.ListMetricsInGroup.as_view(), name='metrics'),
path('tokens/', views_internal.ListTokens.as_view(), name='tokens'),
path('tokens/<str:name>', views_internal.ListTokenForT... | [
"daniel.vrcic@gmail.com"
] | daniel.vrcic@gmail.com |
83f39d930bf9b33f24dae1eff820a417779e8ba2 | a7b6741f345aad73117bc747c4e93e148f5fe769 | /Basic-Course/07-Flask-JWT-Extended/resources/user.py | 80d17e2cd51af9d4af3b4d76b35812651d483995 | [
"MIT"
] | permissive | suzynakayama/python-flask-udemy | e07f2d30d1f4b66aae06d1dcd775bd58ed5d2083 | 95d2c5fa328e2f50d0893d73fd386fb713d1f12b | refs/heads/master | 2022-12-28T16:51:30.507702 | 2020-10-09T22:52:59 | 2020-10-09T22:52:59 | 299,960,039 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | from flask_restful import Resource, reqparse
from werkzeug.security import safe_str_cmp
from flask_jwt_extended import (
create_access_token,
create_refresh_token,
jwt_refresh_token_required,
get_jwt_identity,
jwt_required,
get_raw_jwt
)
from models.user import UserModel
from blacklist import BL... | [
"suzy.nakayama@gmail.com"
] | suzy.nakayama@gmail.com |
3e2a3416e9043be473464f5178214bc1d21ac811 | 2dfbb97b47fd467f29ffb26faf9a9f6f117abeee | /leetcode/151.py | 5ed59c72ca216a929c05706680799872276990c7 | [] | no_license | liuweilin17/algorithm | 0e04b2d36dfb6b7b1b0e0425daf69b62273c54b5 | d3e8669f932fc2e22711e8b7590d3365d020e189 | refs/heads/master | 2020-12-30T11:03:40.085105 | 2020-04-10T03:46:01 | 2020-04-10T03:46:01 | 98,844,919 | 3 | 1 | null | 2018-10-05T03:01:02 | 2017-07-31T03:35:14 | C++ | UTF-8 | Python | false | false | 688 | py | ###########################################
# Let's Have Some Fun
# File Name: 151.py
# Author: Weilin Liu
# Mail: liuweilin17@qq.com
# Created Time: Mon Aug 26 22:38:31 2019
###########################################
#coding=utf-8
#!/usr/bin/python
# 151. Reverse Words in a String
class Solution:
def reverseWor... | [
"liuweilin17@qq.com"
] | liuweilin17@qq.com |
d27a7cc8735ca16e17b623666767925f67dc0aa9 | 3bdf35a266547425501fdfe684ba6049f38b6690 | /Paddy/api/serializers.py | 7f93d5a7ecb0205720eb071b89616eab5485c1cb | [] | no_license | SIBU99/ChhatraViswaKarmaOurServerCode | a7b95a2a3b27c97b4488b1825721cc2b4063568d | b36e0f9e866f76b7d6a104897f62eacceb2faa22 | refs/heads/master | 2023-01-07T09:22:24.428522 | 2020-11-10T09:02:13 | 2020-11-10T09:02:13 | 311,376,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | from rest_framework import serializers
from ..models import Paddy
from Account.api.serializers import FarmerSerializer
from Account.models import Farmer
from rest_framework.exceptions import ValidationError
class PaddySerializer(serializers.ModelSerializer):
"This the serializer for the model : Corn"
farmer = ... | [
"kumarmishra678@gmail.com"
] | kumarmishra678@gmail.com |
0438f4c787caade1a5b8e1a3ef8e3b498ef03a8d | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Fisher/trend_Lag1Trend/cycle_30/ar_12/test_artificial_32_Fisher_Lag1Trend_30_12_0.py | fb2a9442dbc8a4731f3e87bf0942881517feb6bd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 266 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 30, transform = "Fisher", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
bda7687bc1bb236ab785aa669b8d8f79f222c32c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_coffined.py | 156a15c662f97716fc2ceae82faeba7aa8cdc092 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
#calss header
class _COFFINED():
def __init__(self,):
self.name = "COFFINED"
self.definitions = coffin
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['coffin']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1d4a679d7e01b82f721f9675a3b7087c03fc0dfe | b000127408f96db7411f301553585f5da0e426cd | /code/Letter-Tile-Possibilities.py | faf5ee09133f12527c8ee128149d054486b16934 | [] | no_license | SaiVK/Leetcode-Archive | 5f758faf97d1ab559c4c75d26ae5cf7a256baef8 | 56bafeaaced2d0fd3b3d2f1a0365d24d5b41e504 | refs/heads/master | 2022-11-23T08:50:17.610247 | 2020-07-27T02:09:53 | 2020-07-27T02:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | import itertools
class Solution(object):
def numTilePossibilities(self, tiles):
a = 0
for e in range(1, (len(tiles) + 1)):
for val in set(itertools.permutations(tiles, e)):
a += 1
return a
| [
"christopherlambert106@gmail.com"
] | christopherlambert106@gmail.com |
c63f96624ea7308bc8b1af5b80a4d286f0439386 | 06476bc4cb7fc3ce378beb357fac7d5aacb87b3b | /Prototype/env/lib/python3.8/site-packages/pyfilterbank/rbj_audio_eq.py | ea96d6f1ca70909b6076a14e89b3e8c77d95a2cb | [
"MIT"
] | permissive | marc-ortuno/VOPEC | 44d3a74d3e0686474dd57fcb21e845fd5fd48897 | e7ed1f13cc1868a824f4036dd08ec6bed4266c08 | refs/heads/main | 2023-06-12T19:15:18.060897 | 2021-07-01T17:15:03 | 2021-07-01T17:15:03 | 344,433,646 | 0 | 0 | MIT | 2021-06-14T19:15:47 | 2021-03-04T10:22:05 | Python | UTF-8 | Python | false | false | 5,621 | py | from numpy import sqrt, pi, cos, sin, sinh, log
def rbj_sos(filtertype, sample_rate, f0, gain_db=None,
q_factor=None, band_width=None, shelf_slope=None):
if 'shelf' in filtertype and not shelf_slope:
raise(ValueError('shelf_slope mus be specified.'))
w0 = 2*pi * f0/sample_rate
amplit... | [
"you@example.com"
] | you@example.com |
c9886d0249b8595088fa4db7338186268e2c81b8 | 8c77b0d14dd720a89470f2aa6243a8e8d4167424 | /py4e/CodeUp/1072_repeat_execute.py | 619fba19b76681461ab606ae0c0cac0991d2d90d | [] | no_license | oshsage/Python_Pandas | 64909c10fd98b0f2290c081dde9e6b87e17032e4 | a131598d62c834d63979eda56ea15763e35fab4e | refs/heads/master | 2022-12-19T19:32:20.436935 | 2020-10-24T07:17:10 | 2020-10-24T07:17:10 | 298,832,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # n개의 정수가 순서대로 입력된다.
# -2147483648 ~ +2147483647, 단 n의 최대 개수는 알 수 없다.
# n개의 입력된 정수를 순서대로 출력해보자.
# while( ), for( ), do~while( ) 등의 반복문을 사용할 수 없다.
cnt = int(input())
i = 1
list = list(input().split(' '))
while i < cnt+1:
print(list[i-1])
i += 1
# 사용한 개념: while, +=, list[n]
# list[n]: 리스트의 n번째 항. n은 0부터 시작한다! | [
"oh12sung@naver.com"
] | oh12sung@naver.com |
0908c5536c97723509afee287b17b5b5981324ec | 5cec1ff43bf38cf31316254dabe3f972d38744ad | /src/hydrat/classifier/scikits_learn.py | f471c9e8b1665a01199d88be5270701ded21ba07 | [] | no_license | eyadsibai/hydrat | 7fb63f3c54f1fca25d04ab7266712c1077ffa2e3 | 5a68c6b8f32bc6bad59c3f002340bf7ef62e868c | refs/heads/master | 2016-09-06T14:16:46.082697 | 2013-08-06T05:14:02 | 2013-08-06T05:14:02 | 33,199,904 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | """
hydrat's interface to scikit.learn
http://scikit-learn.sourceforge.net
Marco Lui <saffsd@gmail.com> October 2010
"""
import numpy
from hydrat.task.sampler import isOneofM
from hydrat.classifier.abstract import Learner, Classifier, NotInstalledError
class ScikitL(Learner):
"""
Lightweight wrapper for scikit's... | [
"saffsd@gmail.com"
] | saffsd@gmail.com |
8c1f992909d87f31cc7c977d65ad54a7e5165a10 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03200/s727157767.py | 3bb8da266eec20606492b32fc65225b1b0ffa5ff | [] | 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 | 141 | py | s = list(input())
ans = 0
cntB = 0
for i in range(len(s)):
if s[i] == 'B':
cntB += 1
else:
ans += cntB
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5c4983c27b4cef394e0a0bcb7f0283990cd5809d | df7b40e95718ac0f6071a0ba571b42efc81cf6de | /configs/ocrnet/ocrnet_hr18_512x512_40k_voc12aug.py | df79a9cf13963d26384b00ced0cf5efa9f68a420 | [
"Apache-2.0"
] | permissive | shinianzhihou/ChangeDetection | 87fa2c498248e6124aeefb8f0ee8154bda36deee | 354e71234bef38b6e142b6ba02f23db958582844 | refs/heads/master | 2023-01-23T20:42:31.017006 | 2023-01-09T11:37:24 | 2023-01-09T11:37:24 | 218,001,748 | 162 | 29 | Apache-2.0 | 2022-11-03T04:11:00 | 2019-10-28T08:41:54 | Python | UTF-8 | Python | false | false | 1,118 | py | _base_ = [
'../_base_/models/ocrnet_hr18.py',
'../_base_/datasets/pascal_voc12_aug.py', '../_base_/default_runtime.py',
'../_base_/schedules/schedule_40k.py'
]
norm_cfg = dict(type='SyncBN', requires_grad=True)
model = dict(decode_head=[
dict(
type='FCNHead',
in_channels=[18, 36, 72, 144... | [
"1178396201@qq.com"
] | 1178396201@qq.com |
d13d6b5acc64af0811538ebda36d881d4dcf63ca | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/catapult/dashboard/dashboard/email_sheriff_test.py | a66f70d0b3480620b2a4fbb9330bd1a14a74e6d8 | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 6,169 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import sys
import unittest
import mock
from d... | [
"jengelh@inai.de"
] | jengelh@inai.de |
bd455dab671cde472cc785727e4d195135c38a5d | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_3_1_neat/16_3_1_ipince_senate.py | e11f2916855fa67449999b8443738a3141993f9f | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,445 | py | #!/usr/bin/python
import operator
import sys
import random
ALPHA = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
# number -> party
def solve(senators):
evacs = []
tups = senators.items()
while True:
tups = sorted(tups, key=operator.itemgetter(1), reverse=True)
#print tups
if tups[0][1] is 0 and tups[1][1] is 0:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
75240260a004d52337a86bfbe5cd8738addff1a1 | 77f0f0156f27810269bd2542383af3cea97907e5 | /bafs/views/user.py | 77e351840aaa74b869e1b1faadc7afc78482c83f | [] | no_license | schvin/freezingsaddles | 2676808da9b5c025cedc5fc877d855efe211db83 | 5b3e608a05eebf72925d8b8a50b8afa5141f575b | refs/heads/master | 2021-09-02T12:36:00.265585 | 2018-01-02T03:05:50 | 2018-01-02T03:05:50 | 111,460,388 | 0 | 0 | null | 2017-11-20T20:38:49 | 2017-11-20T20:38:49 | null | UTF-8 | Python | false | false | 4,107 | py | import json
import copy
import logging
from collections import defaultdict
from datetime import datetime, timedelta, date
from flask import render_template, redirect, url_for, current_app, request, Blueprint, session, g, jsonify
from sqlalchemy import text
from stravalib import Client
from stravalib import unithelpe... | [
"hans@xmpl.org"
] | hans@xmpl.org |
c16057f28176e9844ca0d10ae26e3b78d5f37bc3 | b19a1baf69d1f7ba05a02ace7dfcba15c8d47cfb | /liste.py | 1d1cf8fda235c256858d262cedca33463379f949 | [] | no_license | MarkHofstetter/20191018-wifi-python | 20ed5de1cf28996902cecf7cd681d054e0d06739 | 7427b896783059a77c541e95df851a492ef5ebb9 | refs/heads/master | 2020-08-15T03:43:42.964992 | 2019-10-28T14:39:17 | 2019-10-28T14:39:17 | 215,275,139 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # 0 1 2 3 4 5 6
f = [1, 1, 2, 3, 5, 8, 13,]
print(f)
print(f[3])
print(f[-1])
print(f[0:3]) # exklusive des letzen Elements
print(f[3:])
# f[4] = 'Hallo'
# print(f)
print(len(f))
print(f[3], f[5])
d = [f[3], f[5]]
f.append(21)
f.insert(0,0) # position, wert(e)
print(f)
f.remove(1) # entfernt den ers... | [
"mark@hofstetter.at"
] | mark@hofstetter.at |
acb2f22c10e5a983885d5d763b965af07ef47eb9 | ea1bb1d4b3227fde47ce1ebf3aadef696f355642 | /0x0F-python-object_relational_mapping/14-model_city_fetch_by_state.py | 15ca6e3120ece11db4e3d16d806045fdf3867f01 | [] | no_license | petehwu/holbertonschool-higher_level_programming | 4f0b0ea76699a60f47cf3dcb0b2b29da35ec2ef1 | 3c1595d1011fcc3c0265f52a1b965e54f4edd94c | refs/heads/master | 2021-07-13T18:41:06.413945 | 2019-02-22T05:33:14 | 2019-02-22T05:33:14 | 148,185,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | #!/usr/bin/python3
"""python script to list all state objects
"""
import sys
from model_state import Base, State
from model_city import City
from sqlalchemy import (create_engine)
from sqlalchemy.orm import sessionmaker
if __name__ == "__main__":
engine = create_engine('mysql+mysqldb://{}:{}@localhost/{}'
... | [
"pete.h.wu@gmail.com"
] | pete.h.wu@gmail.com |
2071d69796f799b401c9dc1bd122c662f52f5d0c | 3d61905cb470e4918027d2b6d995246d60aab2b4 | /python/brenpysandbox/fbx/fbx_import_settings_test_01.py | d0baf17d94994bfbb82d1b191a19c80242170f51 | [] | no_license | brenainnJordan/brenpy-sandbox | 6e36cfba617c4c9c8989bb36b78c3780b9d0959c | 6dd20d8b7722719742613d2efec2c2992fcfdd9a | refs/heads/master | 2020-08-28T17:16:24.041945 | 2020-06-21T19:58:15 | 2020-06-21T19:58:15 | 217,766,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | import fbx
import sys
import os
try:
from Qt import QtCore
from Qt import QtWidgets
from Qt import QtGui
except ImportError:
print "[ WARNING ] Cannot find Qt library, using PySide2 instead"
from PySide2 import QtCore
from PySide2 import QtWidgets
from PySide2 import QtGui
# QtCore.SIGNA... | [
"brenainnjordan@googlemail.com"
] | brenainnjordan@googlemail.com |
2e94f6588aa5777aec5c16eee7d4ea0ca17dd4ea | 7882860350c714e6c08368288dab721288b8d9db | /2407_조합.py | 255617b4bcd46fc1eb2cfadaf6a18e1d263ead7a | [] | no_license | park-seonju/Algorithm | 682fca984813a54b92a3f2ab174e4f05a95921a8 | 30e5bcb756e9388693624e8880e57bc92bfda969 | refs/heads/master | 2023-08-11T18:23:49.644259 | 2021-09-27T10:07:49 | 2021-09-27T10:07:49 | 388,741,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | n,m=map(int,input().split())
cnt=0
top=1
while cnt<m:
cnt+=1
top*=n
n-=1
for i in range(m,1,-1):
top//=i
print(top)
| [
"cucu9823@naver.com"
] | cucu9823@naver.com |
cb114711c20368e1af3bd2e23487fe45e5301fca | 47c01a12f776928a041aee309841d5efc1622e18 | /backend/dailigreen_3612/wsgi.py | 0497660c86729db74a3c245c4c7812b7635d8e36 | [] | no_license | crowdbotics-apps/dailigreen-3612 | 2aa28e1197db65be35fe30a6838efe28d1f9890c | a38bf4be6eacb40d05cf0eee998bb3f0fdaf451e | refs/heads/master | 2020-05-25T10:02:37.845216 | 2019-05-21T03:04:19 | 2019-05-21T03:04:19 | 187,751,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WSGI config for dailigreen_3612 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bd4d17989f1ebd69ef859132dbb57ac3f978ebb0 | 5abb52c3ee859ee5876601025479e9d3214f829f | /meiduo/meiduo/apps/contents/migrations/0001_initial.py | 797d2d8fd8153a0ac6f469e3cd7a43e02e2b0e1a | [] | no_license | RapperDream/meiduo-18 | 05ca46628f5575b31d6a0b2115786dd3f0e57f5a | d7f5aad879f0e420ac16e577d107236bdec816ee | refs/heads/master | 2020-04-22T02:39:01.099998 | 2019-02-23T14:53:39 | 2019-02-23T14:53:39 | 170,057,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-02-23 07:23
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.Cre... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
71fd47eacb61850cec0364459140c654afb663c1 | d9cc042eacfd65912781aad31a57a2709c1e27e4 | /platypush/backend/camera/pi.py | a595c399c9fe28c4578fef15bb5134b787c138c7 | [
"MIT"
] | permissive | shineit/platypush | 914ddb50371cee63669c74f775baf5ae652c9075 | a67b301cd66235b41bff6bfb3de56b903bf9551d | refs/heads/master | 2020-03-15T04:08:02.349413 | 2018-05-03T00:17:31 | 2018-05-03T00:17:31 | 131,958,375 | 1 | 0 | MIT | 2018-05-03T07:31:56 | 2018-05-03T07:31:56 | null | UTF-8 | Python | false | false | 2,443 | py | import logging
import socket
import time
import picamera
from platypush.backend import Backend
class CameraPiBackend(Backend):
def __init__(self, listen_port, x_resolution=640, y_resolution=480,
framerate=24, hflip=False, vflip=False,
sharpness=0, contrast=0, brightness=50,
... | [
"blacklight86@gmail.com"
] | blacklight86@gmail.com |
9fbe0840c86114c15a28c5123e2a28710abe4740 | 2c32cf726e111b8625265c458feeaea436652e83 | /pramp-condility-3month/random_O1.py | 47221cf8aaec833a485f67d72f55e7c969e9e592 | [] | no_license | minhthe/practice-algorithms-and-data-structures | 6fa3bf98e8e2fe98f4e32419fb797b1df4400364 | 488a82dd3a0c797859a6c9e1195d6d579d676073 | refs/heads/master | 2021-05-16T23:01:20.026475 | 2020-09-23T04:17:13 | 2020-09-23T04:17:13 | 250,505,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | '''https://leetcode.com/problems/insert-delete-getrandom-o1'''
import random
class RandomizedSet:
def __init__(self):
"""
Initialize your data structure here.
"""
self.arr = []
self.mp = {}
self.cnt = 0
def insert(self, val: int) -> bool:
"""
I... | [
"minhthe.007@gmail.com"
] | minhthe.007@gmail.com |
7ec4ecdfa91bbe1ffc8d0703684dbf39db4898ca | 535503dc18c38b92f8520289da5b4fa42b0a722a | /code/exp_control/sequencer/sequences/obsolete/general_pulses2.py | dc379fb427becc1d61c5d12714b867915e729148 | [] | no_license | jamesbate/phd_code | fbbbf7657c428a0a1f18768edca1dfce56801cc1 | 7e71d7f041835497fb421dd741c644ab5c8e3805 | refs/heads/master | 2023-05-07T10:31:22.168217 | 2021-05-26T15:00:40 | 2021-05-26T15:00:40 | 371,073,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | # 729 pulse experiment
# 16.2.06 TK
<VARIABLES>
# test-tom=self.set_variable("float","test-tom",9000.123456,0.01,2e7)
phase1=self.set_variable("float","phase1",0,-10,10)
phase2=self.set_variable("float","phase2",0,-10,10)
gl_cam_time=self.set_variable("float","gl_cam_time",5000.000000,0,2e7)
det_time=self.set_variab... | [
"james.bate@oriel.ox.ac.uk"
] | james.bate@oriel.ox.ac.uk |
111e59e47e462a20ed1faf6392b577cdf83b5911 | df8466745f40b2966c69744a78dce62e46e69503 | /AULA7/exercicios/portas_006.py | b8e84668c02f01686b5f4f59a256b9507ef0ebb1 | [] | no_license | sandromelobrazil/YELLOW_aula1 | 42f0e8ffa673a5f95d6ee6330ef1d2b894339a14 | c078fbe235979f365f72c6f160462b394a44765c | refs/heads/master | 2023-02-05T00:52:43.719881 | 2021-08-10T16:00:03 | 2021-08-10T16:00:03 | 300,909,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #!/usr/bin/python
portlist = set()
porteste1 = [ '11-443', 'iE100', 'XYZ','1000', '30', '111', '11', '11', '11', '25', '22', '21', '22', '22', 'Zzz' ]
def testaporta(_ports):
if _port.isdigit():
portlist.add(int(_port))
elif '-' in _port:
portainicial, portafinal = _port.split('-')
... | [
"sandromelo.brazil@gmail.com"
] | sandromelo.brazil@gmail.com |
11c7d56d8a24de673cf13849d9d7c1be58c71029 | 73b158f51285300c1d3456b7af9163939ee206f2 | /DevOps/sprint03/t01_clear_words/clear_words.py | edc4ac2b62b175289d0754c33a8097cc31331b4f | [] | no_license | nnocturnnn/DevOps | 2e332b3552a5b294b36d2af7de854aa18f2da46f | 173c75938e65be8fbbb5c02c3d655d09df9a2931 | refs/heads/master | 2023-06-11T07:21:14.097930 | 2021-06-30T13:58:15 | 2021-06-30T13:58:15 | 352,070,911 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import re
def re_sub_clean(string):
return re.sub(r" |\?|!|\.|:|;|,|-","",string)
def clear_words(s):
return list(map(re_sub_clean, s.split()))
| [
"vikchehovich@gmail.com"
] | vikchehovich@gmail.com |
4d943666d27082a916fe19297f81966b1985dcc9 | 72dc7d124cdac8f2dcab3f72e95e9a646154a6a0 | /byceps/services/shop/order/models/order_item.py | bdf7f5515c1aaaa9557530f6c771a730c2c0e82d | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | m-ober/byceps | e6569802ee76e8d81b892f1f547881010359e416 | 4d0d43446f3f86a7888ed55395bc2aba58eb52d5 | refs/heads/master | 2020-11-30T23:31:33.944870 | 2020-02-12T23:53:55 | 2020-02-12T23:56:04 | 40,315,983 | 0 | 0 | null | 2015-08-06T16:41:36 | 2015-08-06T16:41:36 | null | UTF-8 | Python | false | false | 2,501 | py | """
byceps.services.shop.order.models.order_item
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from decimal import Decimal
from .....database import db, generate_uuid
from ...article.models.article import Article
from ...... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
bcbfda9b43d7eb4d22855efabe65b5b75b4b22a1 | 1dcea2a511f14a43701994f6a7785afd21a20d74 | /Algorithm/389_FindTheDifference.py | 429149c653494ecf639efcc4a8d316ffea12735d | [] | no_license | lingtianwan/Leetcode2 | 66031e256a2928c6197516f83f14748c52e91b8c | 80a604cc09d5d2d62dd05157d8b829de675e4404 | refs/heads/master | 2021-01-13T11:17:18.238465 | 2017-02-09T01:43:38 | 2017-02-09T01:43:38 | 81,395,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # Given two strings s and t which consist of only lowercase letters.
#
# String t is generated by random shuffling string s and then add one more letter at a random position.
#
# Find the letter that was added in t.
#
# Example:
#
# Input:
# s = "abcd"
# t = "abcde"
#
# Output:
# e
#
# Explanation:
# 'e' is the letter ... | [
"lingtian.wan@gmail.com"
] | lingtian.wan@gmail.com |
33a4fb3e793637a89656c533d9a60bdc7161a7de | 0f1849a97b00fefef26756884d1410df2bd3e484 | /app/color.py | ea0f4e4ffb55d6867d91250f186479d3bd4248f2 | [
"Apache-2.0"
] | permissive | yumioi/ci_edit | 62170f8e429f7183cea4f122112c790e3851b210 | 5af80d643e7b16e5e3270771bdbc6b322255d460 | refs/heads/master | 2020-04-09T06:16:07.197122 | 2018-11-28T18:55:10 | 2018-11-28T18:55:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"dschuyler@chromium.org"
] | dschuyler@chromium.org |
6487f8748c0f588a0cf9da0085b7944535d7e7f5 | 0d298b3aff627883b2eed85516bed7e61f174d74 | /bin/delete_downstream.py | 1754ee3365c81b8aba8b74ef4d7d8a1bd33065c9 | [
"BSD-3-Clause"
] | permissive | ellongley/TXPipe | be05bec21181a0d1e13cb2f3dcc2f55633a62369 | 785f93e876a00c528379b1bbacbbf5c42585b789 | refs/heads/master | 2023-08-21T13:53:50.732723 | 2021-10-04T14:28:06 | 2021-10-04T14:28:06 | 416,102,676 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | """
This script prints out the commands to delete all files generated by a pipeline,
downstream of a specified stage.
If one stage was wrong, and you need to re-run everything it affected, this script
will print out the commands to delete the relevant files to that re-running the pipeline
with resume=True will re-run ... | [
"joezuntz@googlemail.com"
] | joezuntz@googlemail.com |
b642949b0d7101af9212e049ba6f11ca4f2ae132 | 08f087f8d07aac2f93f5adccc48bfa7172e7ae6d | /trash/servers_action.py | a5b17eb341b9844e549ba21b6bf4cbc71a54c880 | [] | no_license | bsdpunk/trash | 78a49e2255dbffb212e227ea6fe1d5fbbbf60158 | 2a1f0f1eb4456d9c5ca418a34e94fa61a88f00b6 | refs/heads/master | 2020-04-12T09:34:35.638883 | 2017-01-05T02:53:26 | 2017-01-05T02:53:26 | 64,771,900 | 8 | 2 | null | 2016-09-02T19:52:41 | 2016-08-02T16:05:34 | Python | UTF-8 | Python | false | false | 4,432 | py | import sys
import requests
import json
import re
from pprint import pprint
def linode_list(api_key):
headers = {'content-type': 'application/json'}
endpoint = "https://api.linode.com/?api_key=" + api_key["Linode-API-Key"] + "&api_action=linode.list"
r = requests.get(endpoint, headers=headers)
json_data... | [
"bsdpunk@gmail.com"
] | bsdpunk@gmail.com |
b696eccd4a16cc676cb7faa3e3ac14ad5a53df25 | d2da19b86a134c4213311af568c7166bd10fbc8a | /OGBL_Collab/utils/logger.py | 3daed2535eae606a66945ac26b1f14d17234d746 | [
"MIT"
] | permissive | x-zho14/Unified-LTH-GNN | bc96f89e6bdff18c45cc050de2cbdee8d425fcbf | edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55 | refs/heads/main | 2023-07-19T22:06:57.653044 | 2021-08-22T03:44:53 | 2021-08-22T03:44:53 | 398,705,892 | 0 | 0 | MIT | 2021-08-22T03:33:27 | 2021-08-22T03:33:27 | null | UTF-8 | Python | false | false | 891 | py | import os
import shutil
import csv
def save_best_result(list_of_dict, file_name, dir_path='best_result'):
if not os.path.exists(dir_path):
os.mkdir(dir_path)
print("Directory ", dir_path, " is created.")
csv_file_name = '{}/{}.csv'.format(dir_path, file_name)
with open(csv_file_name, 'a+')... | [
"wiwjp619@gmail.com"
] | wiwjp619@gmail.com |
ce27d4f1720ab3ca03e03f54a6859697aa0b7d55 | 8cd098de61bc569e4247d15ca25bfbd0fb9ef793 | /01_Jump_to_Python/Chap04/149.py | a55e73979cb20208806cdd471eb9977af696e106 | [] | no_license | gaeunPark/Bigdata | 67b8df7a4988f130ed7b45750c5447cf0394c49b | 31388b2ac3a28306caae6d299bb5090aef849403 | refs/heads/master | 2020-03-15T09:27:23.537060 | 2018-11-22T02:18:45 | 2018-11-22T02:18:45 | 132,075,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | def sum_and_num(a,b):
return a+b, a*b
result = sum_and_num(3,4)
print(result)
sum, mul = sum_and_num(3,4)
print("%d %d" %(sum, mul)) | [
"USER@test.com"
] | USER@test.com |
c46a1fd73901ca7b1756224e155dcb5e1ee69bf9 | 1625edfe28b4b0979fd32b4a3c5e55249a993fd5 | /baekjoon2953.py | dec2a6a3720be7c3939a31f421f2c940a1e4d1cc | [] | no_license | beOk91/baekjoon2 | b8bf504c506c6278899d4107ecfe51974ef13f5e | 39569f8effb8e32405a7d74d98bdabcab783ec56 | refs/heads/master | 2023-05-11T20:11:19.015113 | 2020-09-14T23:58:49 | 2020-09-14T23:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | arr=[[0]*5 for _ in range(5)]
arr2=[]
for i in range(5):
arr=list(map(int,input().strip().split()))
arr2.append(sum(arr))
print(arr2.index(max(arr2))+1,max(arr2)) | [
"be_ok91@naver.com"
] | be_ok91@naver.com |
f8edeab01ab18d1ec01ca83f1c589413af276fb3 | 2abefb9b5df4a5fdd782ac43cd1f6e94198fe43a | /Misc/HoWdArEyOu.py | b09e270fc5a17a017c97dade02711916257adef0 | [] | no_license | jb1361/Class-files-repo | e63d339fd9c9add23b78571b2258d6c836c329d4 | b29b80a93655348067a5146a6c7d2d5186ba184a | refs/heads/master | 2023-01-30T09:38:45.786561 | 2021-06-14T22:42:04 | 2021-06-14T22:42:04 | 92,340,613 | 0 | 0 | null | 2023-01-06T11:20:52 | 2017-05-24T22:05:32 | Python | UTF-8 | Python | false | false | 212 | py | word = input()
def howdareyou(s):
ret = ""
i = True # capitalize
for char in s:
if i:
ret += char.upper()
else:
ret += char.lower()
if char != ' ':
i = not i
return ret
print(howdareyou(word)) | [
"justinbutler4@hotmail.com"
] | justinbutler4@hotmail.com |
951292454e8c84b2863f62cb932ec16fb27245f0 | 6dc80929dc2ef3dfdbde4f95fece88e68d4aa4aa | /catalog/migrations/0004_auto_20190623_2357.py | 8bf172be2fb269d620f2dd42f01d270a9062bb65 | [] | no_license | shortnd/local_library | 87d912cd885919d4f9db73cbef058ed7bccd6d11 | 5a8753131193183c81c448d36064c7481843da4e | refs/heads/master | 2022-02-22T07:15:06.096747 | 2019-06-24T04:02:27 | 2019-06-24T04:02:27 | 190,504,303 | 0 | 0 | null | 2021-06-10T18:11:55 | 2019-06-06T03:00:23 | Python | UTF-8 | Python | false | false | 423 | py | # Generated by Django 2.2.2 on 2019-06-24 03:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catalog', '0003_bookinstance_borrower'),
]
operations = [
migrations.AlterModelOptions(
name='bookinstance',
options={'order... | [
"ococncol@gmail.com"
] | ococncol@gmail.com |
e14b578b7338dca6ead87edcb5371d81b75e155b | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/498245_LRU_and_LFU_cache_decorators/recipe-498245.py | 9dd9b93cee6c70ce3a39cb4159b952253e391c9e | [
"Python-2.0",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 5,183 | py | import collections
import functools
from itertools import ifilterfalse
from heapq import nsmallest
from operator import itemgetter
class Counter(dict):
'Mapping where default values are zero'
def __missing__(self, key):
return 0
def lru_cache(maxsize=100):
'''Least-recently-used cache decorator.
... | [
"betty@qburst.com"
] | betty@qburst.com |
60d9dd78e5b4036bf310616dd0cb6ccda32f0d3c | 767b5482f3c5b9c2c85575c711e37561f5b8f198 | /engine/plugins/TrojanCheckScript_yd.py | 914bad369a45d68fa5f1bc5d0bb50d9fc094b964 | [] | no_license | zhupite233/scaner | 8e39c903f295d06195be20067043087ec8baac4f | 7c29c02bca2247a82bcbb91cc86955cc27998c95 | refs/heads/master | 2020-05-18T03:23:03.459222 | 2019-04-15T04:29:10 | 2019-04-15T04:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,165 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import MySQLdb
import MySQLdb.cursors
from engine.engineConfig import *
from engine.engine_utils.common import *
from engine.logger import scanLogger as logger
from urlparse import urlparse
from bs4 import BeautifulSoup
def find_friend_links(content):
friend_link_list = ... | [
"lixiang@yundun.com"
] | lixiang@yundun.com |
f639a2910f5084d10f088248ae867f33930c1c51 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/wiColorJ/pyr_Tcrop255_p60_j15/Sob_k23_s001/pyr_0s/L3/step10_a.py | 89256e72274b6f1679ebbb7044cb26830e0dc4c7 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,983 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
9ab9ef75853c91fce2d10e650eae0aec3515ce68 | 34792ccd315338b2bd12b4251cc8188967bfaf35 | /linkdump/migrations/versions/e510de2bd585_.py | ac2a3c5327709abe4232c408efd0c3f024090750 | [] | no_license | puhoy/linkdump | a32dec709e10e8dda68c1dfbb326d9177d64dd96 | ba03ef64c4286910ac1bb15fea8d4c431a738c2f | refs/heads/master | 2022-12-13T20:35:41.913012 | 2020-07-26T12:55:22 | 2020-07-26T12:55:22 | 245,454,321 | 0 | 0 | null | 2022-12-08T03:45:01 | 2020-03-06T15:29:05 | Python | UTF-8 | Python | false | false | 2,097 | py | """empty message
Revision ID: e510de2bd585
Revises:
Create Date: 2020-03-03 23:24:51.952624
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e510de2bd585'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"jan@kwoh.de"
] | jan@kwoh.de |
b7ba385ad28955eb47603abdc1dda3b37f3712c6 | b5a29700c3516cf12f837e2284e3844546205d09 | /plugins/wywwzjj_web_plugin.py | dcec14bf5b7494fcb6a82521181cf0d1fd25b8e7 | [] | no_license | p1g3/Collect-Info-Research | f609823486f36460186cfde27f4be7c9c5a058ae | e8e7366677a8642c3bcf4b103e43378762e6673c | refs/heads/master | 2020-12-24T03:59:01.190032 | 2020-01-31T06:47:35 | 2020-01-31T06:47:35 | 237,374,792 | 37 | 12 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py |
import asyncio
import feedparser
import ssl
import pymongo
from loguru import logger
import datetime
from dateutil import parser
class wywwzjj_web_plugin:
def __init__(self,loop,collection,lock):
ssl._create_default_https_context = ssl._create_unverified_context
self.headers = {'User-Agent':'Mozilla/5.0 (Window... | [
"p1g3cyx@gmail.com"
] | p1g3cyx@gmail.com |
7f3012a25338bf5c6082fc3d3a1a539d859a756c | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/GDS/shamil_v3/purchase_report/report/purchase_total.py | cef7ba15b5a6a9cdb3f2d74d780ea138dbd3257e | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>).
#
##############################################################################
import time
from report impo... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
71ded94d8ec5f45f496da5eed363bb9ae2d74e09 | fc00b177802c49cf04dc6a8e430093bc14ae9b53 | /venv/Lib/site-packages/mypyc/test/test_tuplename.py | 7f3fd2000d29058fac183cb8157e9c118dc775c8 | [] | permissive | artisakov/vigilant-journey | 9c8264d36da5745374a0d08b0b0288a70f978a11 | 4fed9026071a64489d26422ba7cd1a9b9cb05e16 | refs/heads/master | 2022-11-16T03:10:06.418221 | 2020-07-16T07:33:06 | 2020-07-16T07:33:06 | 238,490,887 | 0 | 1 | MIT | 2020-03-01T10:12:22 | 2020-02-05T16:03:07 | HTML | UTF-8 | Python | false | false | 974 | py | import unittest
from mypyc.ir.rtypes import (
RTuple, object_rprimitive, int_rprimitive, bool_rprimitive, list_rprimitive,
RInstance, RUnion,
)
from mypyc.ir.class_ir import ClassIR
class TestTupleNames(unittest.TestCase):
def setUp(self) -> None:
self.inst_a = RInstance(ClassIR('A', '__main__'))... | [
"60698561+artisakov@users.noreply.github.com"
] | 60698561+artisakov@users.noreply.github.com |
ca252f50d847acea12ba55205c8fe4b0e04c4158 | 75a009b47851ebe8879a61d716bb64c0b1fc4a0d | /app/config/settings/dev.py | 2f02da674fdba7c55f4db0d65627fc5a10b2dc4e | [] | no_license | smallbee3/Airbnb | c55bf97f5ff16105328d44c485f6d2c017c90ea7 | e8f79c15055c53e51fa2b3be549f9896680f63a7 | refs/heads/master | 2020-03-07T13:37:04.668580 | 2018-04-01T22:51:15 | 2018-04-01T22:51:15 | 127,505,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from .base import *
DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS += [
'django_extensions',
]
SECRETS_DEV = os.path.join(SECRETS_DIR, 'dev.json')
secrets_dev = json.loads(open(SECRETS_DEV, 'rt').read())
# DATABASES = secrets_dev['DATABASES']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.... | [
"smallbee3@gmail.com"
] | smallbee3@gmail.com |
4dfefd806d30ea59c8d44aa2cec59209bc551910 | 5bb1ae9b9e6592def632b8a95def32b3a2d742d5 | /headfirst/ch6_sarah.py | 75490cb66f1cb9f23363d8e7c9377d5feff910a7 | [] | no_license | fiso0/my_python | af1132637a4ad92036ea0a949fa93df6f904b190 | 391def01ecdb97b8e3008235910a596bb5a9b52c | refs/heads/master | 2021-01-17T15:52:36.745999 | 2016-10-29T08:37:51 | 2016-10-29T08:37:51 | 58,641,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | def sanitize(time_string):
if '-' in time_string:
splitter = '-'
elif ':' in time_string:
splitter = ':'
else:
return(time_string)
(mins,secs) = time_string.split(splitter)
return(mins+'.'+secs)
def get_coach_data(file_name):
try:
with open(file_name) as f:
data = f.readline().strip().split(',')
myd... | [
"fiso0@126.com"
] | fiso0@126.com |
2693632938ac97d96d8d251bfd165cd7dca0f66f | 428ca6903cc085a0ff51d3d0d85e757bed412330 | /accounts/migrations/0011_auto_20190310_1744.py | 71f9a82d8c822d70c5f6b8dbda3ed92e671a997e | [] | no_license | privalytics/privalytics.io | a261603f51bcf7ec5c8946de88bb240ef1e76666 | 6f5121c798656bc6c6993e873ea56e77fa254a1d | refs/heads/master | 2021-08-07T02:47:50.708936 | 2021-06-20T08:55:28 | 2021-06-20T08:55:28 | 171,507,151 | 4 | 5 | null | 2021-06-20T08:55:47 | 2019-02-19T16:17:16 | CSS | UTF-8 | Python | false | false | 547 | py | # Generated by Django 2.1.7 on 2019-03-10 17:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0010_auto_20190308_0856'),
('subscriptions', '0001_initial')
]
operations = [
migration... | [
"aquiles@aquicarattino.com"
] | aquiles@aquicarattino.com |
b55934894d57fb4858d49c01cf2bdeeff5735d0b | 2eb6d57b4f97fe2ea2cd6ab78512dd2c7a6e6ecc | /chapter5/exercise_2.py | 52c87f388582138ef431ee7857c65c9bb4397dd3 | [] | no_license | afcarl/PythonDataStructures | 4ba98bca168f535dc9c8ed9392ed313592850101 | a620af0a1e0d707556a8883ecb5b79a6f1df56c7 | refs/heads/master | 2020-03-26T06:26:38.637461 | 2014-04-26T15:53:46 | 2014-04-26T15:53:46 | 144,605,553 | 1 | 0 | null | 2018-08-13T16:26:42 | 2018-08-13T16:26:42 | null | UTF-8 | Python | false | false | 482 | py | import math
def hypotenuse(a,b):
"""
>>> hypotenuse(3,4)
5.0
>>> hypotenuse(12,5)
13.0
>>> hypotenuse(7,24)
25.0
>>> hypotenuse(9,12)
15.0
"""
if type(a) == type(int()) or type(a) == type(float()) and type(b) == type(int()) or type(b) == type(float()):
return math.sqr... | [
"ericschles@gmail.com"
] | ericschles@gmail.com |
56140d86cc58f32f4304d03463614711db1e4edb | 60cf862c8b63394d244fbf20f004ede014c26687 | /simple_calculator/Ex2 Simple calculator2.py | c4d92a8ea7016fd58b932f34f3023b9ef1ea5f88 | [] | no_license | bartoszmaleta/2nd-Self-instructed-week-exercises- | bda9af5eabf04f8fa07ebba00b5a382140941fb0 | 22c33b6cc047ad0e293b5b1e04647e741502f9d7 | refs/heads/master | 2020-08-12T01:33:57.630782 | 2019-10-14T09:08:34 | 2019-10-14T09:08:34 | 214,664,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | first_number = input('Enter a number (or a letter to exit): ')
second_number = input('Enter another number: ')
sign = input('Enter an operation: ')
if sign == '+':
first_number_as_int = int(first_number)
second_number_as_int = int(second_number)
sum = first_number_as_int + second_number_as_int
sum_as... | [
"bartosz.maleta@gmail.com"
] | bartosz.maleta@gmail.com |
ea66a53f1ec41732f03fa530e7cff39b927d7b1b | 2da8bcfb9a72e507812a8723e38ad6d030c300f1 | /check_if_a_string_contains_all_binary_codes_of_size_k_1461.py | d908c35cb2d2ea1b12616cc16df50e74de78084a | [] | no_license | aditya-doshatti/Leetcode | 1a4e0f391a7d6ca2d7f8fdc35e535f4ec10fb634 | eed20da07896db471ea6582785335e52d4f04f85 | refs/heads/master | 2023-04-06T02:18:57.287263 | 2023-03-17T03:08:42 | 2023-03-17T03:08:42 | 218,408,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | '''
1461. Check If a String Contains All Binary Codes of Size K
Medium
Given a binary string s and an integer k.
Return True if every binary code of length k is a substring of s. Otherwise, return False.
Example 1:
Input: s = "00110110", k = 2
Output: true
Explanation: The binary codes of length 2 are "00", "01"... | [
"aditya.doshatti@sjsu.edu"
] | aditya.doshatti@sjsu.edu |
00b88efee486df786fb91d829273704caaab765d | 071017425dbb9a175c3b4c5e090501e35b31d4f9 | /docqa/allennlp_custom/modules/similarity_functions/constant_tri.py | 0aaee645c881037f642bef330bfe274c181a0823 | [
"Apache-2.0"
] | permissive | debjitpaul/discourse-aware-semantic-self-attention | 9bf22f3a8dcf61cc85ba56a3cbbc4dd9b371e55d | 5851c95bbe761c980177b2c3e769c9e716551d5f | refs/heads/master | 2022-04-20T17:05:53.216321 | 2020-04-24T09:24:15 | 2020-04-24T09:24:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,087 | py | import numpy as np
import torch
from allennlp.common import Registrable, Params
from allennlp.modules import SimilarityFunction
from allennlp.nn import Activation
from typing import List
from torch.nn import Parameter
from functools import reduce
@SimilarityFunction.register("constant_tri")
class ConstantTriParams(... | [
"tbmihailov@gmail.com"
] | tbmihailov@gmail.com |
0671af8fd937da608bdee27126acbc05573e7a2b | c8cee25ecb60ca3e6ce5e24c37db57f82f9858f6 | /Fundamentos Python/ecuacion_gauss_2.py | 7e786edf7e6daa2a8e045011a83ff06ba796512f | [] | no_license | mecomontes/Python | a0b4a0b69ae33ad3623e908731710563392d1615 | daba4247cca90c43a979e3e3f292cd7b8951b3d0 | refs/heads/master | 2023-05-30T05:24:41.999196 | 2020-03-23T02:30:09 | 2020-03-23T02:30:09 | 249,317,310 | 1 | 0 | null | 2023-05-22T22:42:36 | 2020-03-23T02:29:38 | Python | UTF-8 | Python | false | false | 352 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# Sumatoria de los n primeros números
# Método propuesto por Gauss: PAra cualquier número
Numero = float(input("Ingrese el último Número a incluir en la sumatoria: "))
Sumatoria = ((1 + Numero)/2) * Numero
print("Sumatoria de los primeros: ", Numero, " numer... | [
"1574@holbertonschool.com"
] | 1574@holbertonschool.com |
2b2530136d5c1176b142bb6e61260cf9c0562804 | 50604d2b98220ea485c1ada1d6e5b7c230a621db | /src/python/labbox_ephys/extensions/workspaceview/WorkspaceView/sortingExamples/mountainsort4_example.py | c6d31e33e8bec6b8c5f1bbdfe498d57d20bc2d05 | [] | no_license | stjordanis/labbox-ephys | e9f4ca783947be9c6ab4caf19267d75577cbba10 | 563d112346e4a557f1aa04a052d245b07a0e9ce4 | refs/heads/main | 2023-08-11T21:18:40.122003 | 2021-07-26T18:35:33 | 2021-07-26T18:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | import spikeextractors as se
import numpy as np
import labbox_ephys as le
from labbox_ephys import sorters
import kachery_client as kc
if __name__ == '__main__':
# adjust these values
workspace_uri = '{workspaceUri}'
recording_id = '{recordingId}' # {recordingLabel}
workspace = le.load_workspace(works... | [
"jeremy.magland@gmail.com"
] | jeremy.magland@gmail.com |
7739878c949d613861d03ac303411425ddf611ba | 4c4b4076f960a1e1d0203cc58621090cc3dc45f3 | /architect/manager/urls.py | 376aa0b86346aa1fad7b7d25624b89d0e2854bfb | [] | no_license | michaelkuty/architect-api | 6c62f8a8ada4dc9a62b12ea7b38ae9a70d94290e | 30ebfdafdbdcff4098bf080f00957949e20a71cf | refs/heads/master | 2021-05-02T16:17:53.016373 | 2018-02-08T22:08:24 | 2018-02-08T22:08:24 | 120,673,129 | 0 | 0 | null | 2018-02-07T21:20:43 | 2018-02-07T21:20:43 | null | UTF-8 | Python | false | false | 1,047 | py | from django.urls import path
from . import views
app_name = 'manager'
urlpatterns = [
path('v1', views.ManagerListView.as_view(),
name='manager_list'),
path('v1/manager-check',
views.ManagerCheckView.as_view(),
name='manager_check'),
path('v1/<manager_name>',
views.Manag... | [
"mail@newt.cz"
] | mail@newt.cz |
eea7f772f28657f31564888e9c1bda1ae6088163 | 71bc873c20fbc45bb5e13095d2474496818a23f9 | /code_video clean/query_url.py | 682d51ed8e0b8b6c493923ee3aed28198d7f1e10 | [] | no_license | 2877992943/lianyun | f31c44ea2e266bae51cae4fa464d1bae368c8d3f | a872d6cd1b2eff402bcccb326d33d086816d87af | refs/heads/master | 2021-01-20T16:17:20.226401 | 2017-05-10T06:49:31 | 2017-05-10T06:49:31 | 90,830,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,300 | py | #! -*- coding:utf-8 -*-
import urllib2,time,os,urllib
import pandas as pd
import json
import MySQLdb
import random,cPickle
import csv,re
from MySQLdb import cursors
import numpy as np
import sys,time,os
read_host='rr-2zeg40364h2thw9m6o.mysql.rds.aliyuncs.com'
write_host='rds5943721vp4so4j16ro.mysql.rds.aliyuncs... | [
"2877992943@qq.com"
] | 2877992943@qq.com |
eaddb2f9ccb5d75e4fedfba55196b323ca4778ac | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/beer-song/58a6d9e0b5c9402b8236f1b6d329c093.py | 6c7d5a0ab15761501e144b12e4ed2ee1df7d5554 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 714 | py | def verse(number):
it = lambda n: "it" if n == 1 else "one"
suffix = lambda n: "no more bottles" if n < 1 else \
"1 bottle" if n < 2 else str(n) + " bottles"
if number == 0:
return "No more bottles of beer on the wall, no more bottles of beer.\n" \
"Go to the s... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
be0ea72d88b880a4422662c70a42cd30c368ac6d | 12a5b72982291ac7c074210afc2c9dfe2c389709 | /online_judges/Codeforces/271/B/code.py | 186d8f4e41e3bac292297f62acafa3f9103c1638 | [] | no_license | krantirk/Algorithms-and-code-for-competitive-programming. | 9b8c214758024daa246a1203e8f863fc76cfe847 | dcf29bf976024a9d1873eadc192ed59d25db968d | refs/heads/master | 2020-09-22T08:35:19.352751 | 2019-05-21T11:56:39 | 2019-05-21T11:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | def bin_search(x, lista):
meio = (len(lista))/2
inicio = 0
fim = len(lista)
while inicio < fim:
if lista[meio] < x: inicio = meio + 1
elif lista[meio] > x: fim = meio
else: return meio
meio = (inicio + fim) / 2
return fim
n = int(raw_input())
a = map(int,raw_input().split())
m = int(raw_input())
q = map... | [
"mariannelinharesm@gmail.com"
] | mariannelinharesm@gmail.com |
3e58da2d6dd384b3d47fb8eba862f3472aae4e64 | 4aa6b7c3a5ae3817007e09ad1289c1e9f7a355c0 | /剑指offer/superJumpFloor.py | a4fe01802a8158a111a6560953ab7e0e854d2e99 | [] | no_license | liuhuipy/Algorithm-python | 8f5143e06cf5fa2de2c178e3ba9e5fd12b9bcdf7 | 4e92a0b874f956d1df84d1493f870a5d1f06cde2 | refs/heads/master | 2021-06-03T04:19:01.946149 | 2021-01-08T07:44:40 | 2021-01-08T07:44:40 | 99,838,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'liuhui'
'''
一只青蛙一次可以跳上1级台阶,也可以跳上2级……它也可以跳上n级。求该青蛙跳上一个n级的台阶总共有多少种跳法。
'''
class Solution:
def jumpFloorII(self, number):
# write code here
ans = 1
if number >= 2:
for i in range(number-1):
ans = ans * 2
... | [
"liuhui_py@163.com"
] | liuhui_py@163.com |
81464fa1fbd45533b5eca02d118798b2f058e87a | 54fdaa05078261180cbd7cc94c132527725b189d | /test/crab_ElectronPlots_newskim_eraF_70110.py | 6738548559045b4ba874512b81343c4f103a78bd | [] | no_license | psiddire/ZeeAnalyzer | e488d3b65108ca923bd459cda41e61f3bd746a5b | d94b1fd4f4de19f5cdeaf405e4c0d6629b889888 | refs/heads/master | 2021-09-07T12:20:36.554253 | 2018-02-22T18:31:52 | 2018-02-22T18:31:52 | 113,574,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # from https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookCRAB3Tutorial
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'plots_Zee_newskim_eraF_70110'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.tra... | [
"psiddire@nd.edu"
] | psiddire@nd.edu |
10b1c6ebba927444ab24d8082e2cd7350b1d7db2 | 6abc9b7e59aa2bc77d16bf0579bc2319db4fa20c | /miniverse/dataset/models.py | 8a5b1134e6babae592efd06546ed04c4a3163e1a | [
"MIT"
] | permissive | IQSS/old-miniverse | b05823891fafd40a5b12f18894f3dff19404fe37 | daabcad2fbd6cc29cc05f0091f51157e4fe9e46a | refs/heads/master | 2021-01-21T03:15:54.392430 | 2014-06-27T16:05:55 | 2014-06-27T16:05:55 | 19,803,423 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,210 | py | import os
from hashlib import md5
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.db import models
from django.template.defaultfilters import slugify
from dataverse.models import Dataverse
from core.models import TimeStampedModel
class DatasetState(models.Model)... | [
"raman_prasad@harvard.edu"
] | raman_prasad@harvard.edu |
81955d510e5da2c20cc455a0595ac502556be959 | d402525075cec8d8b1564eadf03024bcc45ada57 | /map_api/app.py | 82162354a9dad36de96f5d9e316d705302a8b7bd | [] | no_license | DevHerles/mapa_telesalud_api | 3d5e0589b88e7178d10edeb798e13d1745d33062 | de361f9857500b594cc16abffed7987777911673 | refs/heads/master | 2023-06-26T00:16:05.174034 | 2021-07-20T20:03:51 | 2021-07-20T22:37:15 | 387,901,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,924 | py | """APP
FastAPI app definition, initialization and definition of routes
"""
# # Installed # #
import uvicorn
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi import status as statuscode
# # Package # #
from .models import *
from .exceptions import *
from .repositories import ... | [
"herles.incalla@gmail.com"
] | herles.incalla@gmail.com |
1c4ffdb96e1a0dc36fd40511b6292b9147273e6f | d8b93e08fdf884ebed89a38831e26e3753efea72 | /recalculation.py | 5aaa0153de63bce8736dbec8ec35e696db6b8732 | [] | no_license | wolfbolin/Everyclass-Occam | 68398ece9f5812aa1a0a31946e98181d559cc7ec | de347014c4237c88e99207fa05cb7fecb5325d1d | refs/heads/master | 2022-12-14T08:25:30.484056 | 2020-04-27T07:30:26 | 2020-04-27T07:30:26 | 156,236,558 | 2 | 1 | null | 2022-12-08T03:37:45 | 2018-11-05T15:08:01 | Python | UTF-8 | Python | false | false | 768 | py | # coding=utf-8
import Util
import Room
import Config
import Course
import Student
import Teacher
import Preprocess
if __name__ == "__main__":
config = Config.load_config("./Config")
# 重新计算所有学期数据
for semester in config["schedule"]:
Util.print_blue("当前计算学期: %s" % semester)
# 重新计算对象信息
... | [
"wolfbolin@foxmail.com"
] | wolfbolin@foxmail.com |
7d77d28bee25dffd3bf67e2bbdf27ef676d79359 | 7d5075610b6358dd9fd57132c8876d533813807c | /bigtempo/processors/tests/simple_task_tests.py | cfe810b0931571c775d7c144cde8515c3a29a7ed | [
"MIT"
] | permissive | rhlobo/bigtempo3 | 152e1f76c94939e0a2d69e264e0b66f24f007731 | 848eda5f07f7e61f7659bac335726c567b41083e | refs/heads/main | 2023-07-05T02:08:15.749854 | 2021-08-11T21:35:38 | 2021-08-11T21:35:38 | 394,079,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | # -*- coding: utf-8 -*-
import unittest
from mockito import mock, when, any as anyx, verify
import bigtempo.processors.simple_task as task
class TestModuleFunctions(unittest.TestCase):
def test_processingtask_factory_should_return_processing_task(self):
instance = mock()
registration = mock()
... | [
"rhlobo+github@gmail.com"
] | rhlobo+github@gmail.com |
d03b33dff1747f43c63760a1a272b4708f3aca49 | c5c56d7c14b4518e53bcde2527b9cc6e53a7e1b9 | /custom_assert/tennis.py | 5df7831abac8b0ca8585aea91cdde3d40996ccc3 | [] | no_license | lancelote/pluralsight-unit-testing-python | 0402a39e3800eec49f2be529e684d028689d3b47 | fd5ce8264bc95ed66109c4fa575a177248c3d49a | refs/heads/master | 2021-01-10T08:06:39.605195 | 2016-03-23T08:15:25 | 2016-03-23T08:15:25 | 51,952,064 | 4 | 6 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | SCORE_NAMES = ('Love', 'Fifteen', 'Thirty', 'Forty')
def tennis_score(player1, player2):
if player1 == player2:
return '%s-All' % SCORE_NAMES[player1]
else:
return '%s-%s' % (SCORE_NAMES[player1], SCORE_NAMES[player2])
| [
"karateev.pavel@ya.ru"
] | karateev.pavel@ya.ru |
bf9470c3ab98fc4a2ed3b629dd2537ada28fcb7e | 6cad5c613306789b9bd6387c2e7af02515b1c0ad | /django_document/inheritance/models/abstract_base_class.py | a42ba4fde37800e90813d8caad6d4f2461dfe01b | [] | no_license | Isaccchoi/django_document_project | ead5eb7b2e932ae5401d5a3cdb3672d3dfd8f9f5 | 980f25c98f99994e6148af16ed82ae4f12d50870 | refs/heads/master | 2021-05-08T06:12:51.261138 | 2017-10-13T05:14:58 | 2017-10-13T05:14:58 | 106,355,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | from django.db import models
__all__ = (
'School',
'CommonInfo',
'Student',
'Teacher',
)
class School(models.Model):
name = models.CharField(max_length=30)
def __str__(self):
return self.name
class CommonInfo(models.Model):
# abstractBaseClass에서 상송진행시 ForeignKey의 related_name을 지... | [
"isaccchoi@naver.com"
] | isaccchoi@naver.com |
adf1a0335935312323435fd90f890423097b9fad | e1fac9437a480e5d1ab9527a28c28f6ee3d7af6e | /skyrock/migrations/0014_auto_20190822_0913.py | db8d986ed406f1fb4ac05d1783a3beab3225eef2 | [] | no_license | LuLue7775/Skyrock-Backend-Training | 3e4c41bcc78fbfabb8a8c1114dd15ca94bc1055e | 3b6d3d697be1875442eeba5127c8798de1ca6499 | refs/heads/master | 2022-06-19T04:26:10.129558 | 2019-09-12T06:41:58 | 2019-09-12T06:41:58 | 207,708,169 | 1 | 1 | null | 2022-05-25T02:24:55 | 2019-09-11T02:45:41 | Python | UTF-8 | Python | false | false | 564 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-08-22 09:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('skyrock', '0013_auto_20190822_0909'),
]
operations = [
migrations.RemoveField(... | [
"astephanerasmus@gmail.com"
] | astephanerasmus@gmail.com |
e2e1180c912988844c5fe890a9b70135731ea883 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /pQavNkBbdmvSMmx5x_2.py | 3582e4157098df37fe07a238039d40ead9325681 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | """
Create a function that returns the **majority vote** in a list. A majority
vote is an element that occurs **> N/2** times in a list (where **N** is the
length of the list).
### Examples
majority_vote(["A", "A", "B"]) ➞ "A"
majority_vote(["A", "A", "A", "B", "C", "A"]) ➞ "A"
majority_vote(... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b55d40212c755128e12ddd2efb8d0f9d653c8573 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/sphinx/venv/Lib/site-packages/setuptools/msvc.py | 467c8192bd17c3c14a577e9b90a44ffaec5dc861 | [
"LicenseRef-scancode-other-permissive",
"BSD-3-Clause"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:1df5ddb5b9a19b10195da6054f634166b5d3f12771ddf66587cc886e594b199d
size 51126
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
359f5287850dad160771b45c8dccdd1bd9ad768b | 59381d3e69e4a288cdeb4aeecc2e9c84a28759b2 | /selvbetjening/sadmin2/tests/ui/dashboard.py | 56194920cccb403216b896dfd25cd46000b0f2ab | [
"MIT"
] | permissive | animekita/selvbetjening | 88cb75164f8ab0b3341a6ba4dd85d425c601ee4d | fee63d178fbd5ce2976c04d3a4b2dde6d8691892 | refs/heads/master | 2021-07-05T01:10:59.900369 | 2015-09-17T15:15:29 | 2015-09-17T15:15:29 | 4,826,342 | 0 | 1 | MIT | 2021-06-10T17:35:22 | 2012-06-28T22:17:15 | Python | UTF-8 | Python | false | false | 347 | py | from django.core.urlresolvers import reverse
from common import UITestCase
class DashboardTestCase(UITestCase):
fixtures = ['sdemo-example-site.json']
def test_load(self):
self.login_admin()
# Check that the dashboard is the first page we see after login
self.assertTrue(self.wd.is_... | [
"casper@svenningjensen.dk"
] | casper@svenningjensen.dk |
271de39a148eac6bca2cf614057de6f6b38f1002 | 8cf427b0574e8e41e5201cc02c3e736f264a2000 | /original/yolo3_auto_label/FLIR_ws/build/catkin_generated/order_packages.py | 34f5c1ed3463d16400524b16c632308592765db4 | [] | no_license | Lin1225/Data_amplification_all | a88561b9cae481561683b32b6cede35461fa0e3e | e988990ea8dd53b28ed2da6046ea7aeeda6a01b6 | refs/heads/master | 2023-05-06T03:41:00.002786 | 2021-05-28T02:48:38 | 2021-05-28T02:48:38 | 296,257,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/lab/Documents/Data_reforement_code/yolo3_auto_label/FLIR_ws/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/lab/Desktop/NEW_hiw... | [
"a3ie9981@gmail.com"
] | a3ie9981@gmail.com |
b80b2f3fb6d3d9ea31fe7f2a79ebb0112b4efb2a | 54ed8b1e0f9d0ae2d67cd86067fd920e82a4d441 | /litex_boards/platforms/gsd_butterstick.py | c1c2849cc2f012f8b4294bd7e6a8f1e8d075b2a5 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | doraemoncito/litex-boards | 88588260371666f23d17b3709794a020084dd7ff | 55ea71bd0199226e3e993fb7bd224b9c6d5d10ef | refs/heads/master | 2023-07-18T19:35:07.831531 | 2021-09-01T17:21:16 | 2021-09-01T17:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,072 | py | #
# This file is part of LiteX-Boards.
#
# Copyright (c) 2021 Greg Davill <greg.davill@gmail.com>
# Copyright (c) 2021 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
from litex.build.generic_platform import *
from litex.build.lattice import LatticePlatform
from litex.build.lattice... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
70d99d01332ce75b3a408d0d03328a3232c04d66 | 340b5d95c9dd0cfc3ff487a7bb927944ac40aa51 | /ch_3 (functions)/005_brote_force.py | 16d537d9bea57e70fa30621463bddcc0ce8d83bf | [] | no_license | sc-199/199 | 200970fb8bf0662755cda9c50599504392b3882f | 618d8e1136c188276135f9a685a878984c3ea644 | refs/heads/master | 2020-05-04T18:33:34.722852 | 2019-03-22T08:13:32 | 2019-03-22T08:13:32 | 167,672,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | '''
ალგორითმები
====================
უხეში ძალის მეთოდი
(Brute force)
გვაქვს განსაზღვრის არე და მნიშვნელობათა არე.
მაგალითად: მოცემულია კონკრეტული რიცხვი. ამ რიცხვისთვის გვაქვს ამონახსნთა სიმრავლე.
გარკვეული პროცედურების გავლის შემდეგ ამონასხნთა სიმრავლიდან ამონახსნს ვარჩევთ სათითაოდ,
რომელიც მო... | [
"pm72github@yahoo.com"
] | pm72github@yahoo.com |
4919d2fe56f781fbadaf6d51a0998a84e7c5aa3c | 491d2fd36f2ca26975b3eb302a3d5600415bf7c4 | /TensorFlow/computer_vision/Resnets/utils/logs/hooks_helper.py | 89b28ade2ae8aeaccd57914ccadefd223d2479c4 | [
"Apache-2.0"
] | permissive | kmanchella-habana/Model-References | 9fa42654d57a867d82f417e9fff668946f9105f6 | 460d3b23ce75f30561e8f725ebcb21298897d163 | refs/heads/master | 2023-08-28T17:42:48.866251 | 2021-09-18T21:38:04 | 2021-09-18T21:38:04 | 411,371,667 | 0 | 0 | null | 2021-09-28T17:08:13 | 2021-09-28T17:08:13 | null | UTF-8 | Python | false | false | 6,251 | py | # Copyright 2017 The TensorFlow 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 applica... | [
"mpandit@habana.ai"
] | mpandit@habana.ai |
adf629c13d106ceb433534d50425de94aee5c25f | 6c2ddf52efccdfa15ce073da0e74d3352d5108c4 | /idact/detail/config/validation/validate_bool.py | f5e1aea27bb8050ac7dc15bc157df871549484c8 | [
"MIT"
] | permissive | intdata-bsc/idact | 4bff248e644629b7ec634b282d790c305fc6703d | 54cb65a711c145351e205970c27c83e6393cccf5 | refs/heads/develop | 2020-05-17T20:33:52.890970 | 2019-12-26T00:03:58 | 2019-12-26T00:03:58 | 183,949,088 | 0 | 0 | MIT | 2019-12-26T00:03:59 | 2019-04-28T19:18:58 | Python | UTF-8 | Python | false | false | 658 | py | """This module contains a function for validating a boolean config entry."""
from typing import Optional
from idact.detail.config.validation.validation_error_message import \
validation_error_message
def validate_bool(value, label: Optional[str] = None) -> bool:
"""Returns the parameter, if it's a :class:`b... | [
"matt.garstka@gmail.com"
] | matt.garstka@gmail.com |
d102b7d9ef0861fbbb91042145d024d4eedb4eab | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/references/discern/pusher.py | 43f5bb6436960491846009eeeb34fb37c8416c8e | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,797 | py | import rlkit.misc.hyperparameter as hyp
from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher
from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in
from rlkit.launchers.launcher_util import run_experiment
from rlkit.torch.grill.launcher i... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
f6495eb9f687d1146f820c4e46e6dcc9b4e71e7e | f64ac4dfdf43d5535c30fd7b58f9e80d45b884db | /GAN/conditional_gan/cifar100_cgan.py | 4a6f02fa7a5ab6843cc19a17df9baa77a8436d30 | [
"Unlicense"
] | permissive | beckybai/generative-models | e13fe109d2a589e90cedba35c1c1614eaef12d03 | dc057e788b8b65ff2dfa7510cb717de6c1bd0b75 | refs/heads/master | 2021-01-20T01:50:03.585856 | 2017-07-08T17:43:03 | 2017-07-08T17:43:03 | 89,329,854 | 1 | 0 | null | 2017-04-25T07:18:31 | 2017-04-25T07:18:31 | null | UTF-8 | Python | false | false | 4,191 | py | import torch
import torch.autograd as autograd
import torch.optim as optim
import numpy as np
from datetime import datetime
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import os
from torch.autograd import Variable
from tensorflow.examples.t... | [
"kebai0624@gmail.com"
] | kebai0624@gmail.com |
3670ebd37aad77b33e512dbf343658f1219a3ec3 | 7ce076dd764fe4b5c7881734f157bc6f77a99ead | /tests/providers/google/ads/hooks/test_ads.py | a2c1a4f06188115057442b3817c57f2dd2819315 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | kaxil/airflow | db31c98e23f2e0d869d857484e56a7c58acef231 | 42f1da179db00491610946a0b089dd82269adc74 | refs/heads/master | 2023-04-28T04:46:38.478352 | 2020-09-28T20:51:16 | 2020-09-28T20:51:16 | 112,322,392 | 1 | 1 | Apache-2.0 | 2020-08-27T20:15:22 | 2017-11-28T10:42:19 | Python | UTF-8 | Python | false | false | 3,482 | py | # 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... | [
"noreply@github.com"
] | kaxil.noreply@github.com |
5d9a50036af925c52e137946772a68b72ec1bfc2 | f62fd455e593a7ad203a5c268e23129473d968b6 | /vitrage-1.5.2/vitrage/datasources/neutron/port/__init__.py | ba3d53285a9c3d37c9cc95bffce2f122fa6717ec | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 1,487 | py | # Copyright 2016 - Nokia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
213dd540eb8864eec2bd1888ba1fac73949e86c7 | 8200e9869cae6699d186a4cf9172800f95bede50 | /rainman/testing.py | 3158b7e3ba15826b2b6982e7f0379b854aa1e8d0 | [] | no_license | wickman/rainman | d3684f0b4fa834b8800650036caf69093ff0504a | 14dec93c76f8c3f902fe769f5e9d7a0ee1db95ca | refs/heads/master | 2016-09-05T12:57:25.794351 | 2014-08-13T22:27:19 | 2014-08-13T22:27:19 | 16,630,229 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,986 | py | from __future__ import print_function
import os
import random
import socket
from .client import Client
from .fileset import FileSet, Fileslice
from .fs import DISK
from .metainfo import MetaInfoBuilder
from .peer_id import PeerId
from .torrent import Torrent
from .scheduler import Scheduler
from tornado.testing impo... | [
"wickman@twitter.com"
] | wickman@twitter.com |
dcee632cb5018883a234ec0cd01f4f23bcc5dca7 | 448c533feb888fd2b64d0d4f130ca4bc1c82e6c2 | /juparc/cli/select_cmd.py | 2f1e52e4d5465b1118e619e2e321a474887eaab1 | [] | no_license | gems-uff/jupyter-archaeology | e2433f745c70cbcc502cfc762127e75e3762ecb4 | 3bf3d6fdf672d2123c599fefa65292de3c3dc1c9 | refs/heads/main | 2023-03-24T21:23:06.999836 | 2021-03-12T00:40:50 | 2021-03-12T00:40:50 | 304,041,226 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,936 | py | """Select command: select notebooks"""
import json
import sys
import re
from ..extract import load, create_default
def value(original):
"""Convert value to int, float, tuple or str"""
if isinstance(original, (float, int, tuple)):
return original
if isinstance(original, str):
try:
... | [
"joaofelipenp@gmail.com"
] | joaofelipenp@gmail.com |
2a4a35023e91fbd52dc123b0da9b6c1f6dfcc06d | 1a2adb80f326435ec4f60bacfcc812566e687f12 | /unit_tests/bigquery/test_schema.py | 44cd8816e277b3a63a12bedf819d6675150fa099 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | runt18/gcloud-python | 66d92095c2b9541cffcb18531f5f5ad3d1adf37f | 3f836eb728488d78793f7aecaa573bd37f1f2d3c | refs/heads/master | 2021-01-23T15:41:53.642420 | 2016-09-06T20:36:13 | 2016-09-06T20:36:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,745 | py | # Copyright 2015 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... | [
"tseaver@palladion.com"
] | tseaver@palladion.com |
291e27fa3dca7be5618fa79c258cbc506a56be91 | 4c535d2c7b76955b014ed87f06f5a9f078730fa7 | /10008_2.py | 20590de890ded052a6f4f8fdd8ae246f9e3df8de | [] | no_license | jennyChing/onlineJudge | cf750b5b68456f8949bed0429c3b4a328ca2eeea | 0d317db29c21a9faec7a7cf43de5fa03fda50b3e | refs/heads/master | 2020-04-06T06:56:34.850903 | 2016-08-21T23:38:08 | 2016-08-21T23:38:08 | 52,972,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import re
from collections import Counter
n = int(input())
line = []
for i in range(n):
line += re.findall('[a-zA-Z]', input().strip())
c = Counter(c.upper() for c in line)
for k, v in c.most_common():
print(k, v)
| [
"jklife3@gmail.com"
] | jklife3@gmail.com |
de5ce76ee7e89d5a5155a27cb0dd2b9425b6015a | b18fb2f2f7955e8830ec1c615ab82c14cd52c8f5 | /server/src/app/http/mods/admin/admin_tools.py | aa5906344bb4426eb3e4a256528544d7997c31fa | [] | no_license | xyzmyall/spff_public | 260492c6ee917093ba3e54364d61e989d184c810 | 9a9a0973bce715de8767e4991ad24515311752c9 | refs/heads/master | 2022-10-13T20:47:08.467510 | 2020-06-10T09:25:30 | 2020-06-10T09:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | import time
from werkzeug.security import check_password_hash, generate_password_hash
from app.http.http_tools.tools import http_tools
from data.server import Data
from common.common import common_tools as common, common_tools
class admin_tool():
@staticmethod
def upload_case(data,user_base):
conten... | [
"campanulamediuml@gmail.com"
] | campanulamediuml@gmail.com |
4b441cd8eaaa31d69a152fb2fafbe683a2a2aac3 | dbf7910f178ff895516c5df286c3cf13e1dd48ca | /dashboard/urls.py | 771e1e715e42ef2b30e0afc8c6b1f5e8ba8114fa | [] | no_license | nimadorostkar/crop_stocks | df5b5ef42e746c4fe66416d33534685eb2d33053 | b382f3d912ad4276882eb7bb47a6147f335e4faa | refs/heads/master | 2023-05-15T00:48:46.889463 | 2021-06-10T08:26:58 | 2021-06-10T08:26:58 | 353,626,010 | 1 | 0 | null | 2021-04-25T07:08:59 | 2021-04-01T08:16:16 | HTML | UTF-8 | Python | false | false | 280 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.dashboard, name='dashboard'),
#path('payment/', views.payment, name='payment'),
path('ticket/', views.ticket, name='ticket'),
path('money_req/', views.money_req, name='money_req'),
]
| [
"nimadorostkar97@gmail.com"
] | nimadorostkar97@gmail.com |
bf4a161f80efb1db0526dcffe7eb8a5ff38a2e0c | d41a7e63204b66b3d3b27dbf1e1a3266080c8396 | /customers/models.py | 32243ad6316aac73f2807db3cd38549951c7a132 | [] | no_license | SimonOkello/salesapp | 552aa3c607a90ad9fea19aa08194750dccda1eca | 3480965fed58c214177f56231e6bd835e47bb201 | refs/heads/main | 2023-03-23T12:08:08.354434 | 2021-03-23T12:48:19 | 2021-03-23T12:48:19 | 350,634,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from django.db import models
# Create your models here.
class Customer(models.Model):
name = models.CharField(max_length=120)
logo = models.ImageField(upload_to='customers', default='default.png')
def __str__(self):
return self.name | [
"simonokello93@gmail.com"
] | simonokello93@gmail.com |
d19f42f3b942444cd6f0918191526326b5240ab2 | 18631e9a657324ef1f83da58f4346e9f2c368d28 | /test/functional/rpc_spentindex.py | d0528a1eb21af3a8430c831774faf5aa8af868f7 | [
"MIT"
] | permissive | thehomosapien/AMLBitcoin | 1e68bf6621d9ee055385ef420b45c9dc289b4f8c | f097ca52c2e8039761f1927d83a9fe0b4c355b1c | refs/heads/master | 2020-05-26T08:27:40.095034 | 2019-05-24T07:31:43 | 2019-05-24T07:31:43 | 188,166,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,158 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Copyright (c) 2017-2018 The AmlBitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test RPC addressindex generation and fetchin... | [
"rishabhshukla@opulasoft.com"
] | rishabhshukla@opulasoft.com |
63e68fda343dd77d5274e64276af8f9dbe8a4cf3 | 18219d0fc95936ded56fe44f9a65ecb27f015232 | /195 processor function.py | 1bb14d07ad6b1b96ff846c371a8b2dc8eb157242 | [] | no_license | JDavid121/Script-Curso-Cisco-Python | 20a61b91b09376dcaef54f8ae5f86fe252de5c33 | 6d68c17ff3c3826e9fc609d110ce9d0e6ebf718b | refs/heads/master | 2021-05-18T04:54:59.948970 | 2020-03-29T20:19:53 | 2020-03-29T20:19:53 | 251,120,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 14 12:07:52 2020
processor fucntion
@author: David
"""
from platform import processor
# The processor() function returns a string filled with
# the real processor name (if possible).
print(processor())
| [
"noreply@github.com"
] | JDavid121.noreply@github.com |
bc994eebc5b04d3239183fd006857bffb91a1af8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/171/usersdata/265/81901/submittedfiles/decimal2bin.py | 877f170e5cf66f6b01ad797c8e446c197b5ab56d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | # -*- coding: utf-8 -*-
d=int(input('digite o valor de d: '))
contador=0
soma=0
while (d>=0):
if d%10==0:
soma = soma + (0*2*contador)
else :
soma = soma + (i*2*contador)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f40c73f9d512cabfc6000d3b2f2aba4bcf4280dc | 210ecd63113ce90c5f09bc2b09db3e80ff98117a | /AbletonLive9_RemoteScripts/Oxygen8v2/__init__.py | 31d05f0dde8d5b0ee169a7f5bebf6abf5dce0303 | [] | no_license | ajasver/MidiScripts | 86a765b8568657633305541c46ccc1fd1ea34501 | f727a2e63c95a9c5e980a0738deb0049363ba536 | refs/heads/master | 2021-01-13T02:03:55.078132 | 2015-07-16T18:27:30 | 2015-07-16T18:27:30 | 38,516,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/Oxygen8v2/__init__.py
from _Generic.GenericScript import GenericScript
import Live
from config import *
def create_instance(c_instance):
""" The generic script can be customised by using parameters (see config.py)... | [
"admin@scoopler.com"
] | admin@scoopler.com |
8b97c1e14adfcb09806e2d37e2f5c4f0b356c009 | 51885da54b320351bfea42c7dd629f41985454cd | /abc088/c.py | 6f50226c2b81dbb528686b2a04839a3d3dee1e8c | [] | no_license | mskt4440/AtCoder | dd266247205faeda468f911bff279a792eef5113 | f22702e3932e129a13f0683e91e5cc1a0a99c8d5 | refs/heads/master | 2021-12-15T10:21:31.036601 | 2021-12-14T08:19:11 | 2021-12-14T08:19:11 | 185,161,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | #
# abc088 c
#
import sys
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.seek(0)
out = sys.stdout.r... | [
"mskt4440@gmail.com"
] | mskt4440@gmail.com |
75ff5701bb8130bd4c6b3ed2171d396f007ef5bc | e8cf96d2c1cef71c0bcbe200a0a65dee59d21d65 | /molotov/quickstart/loadtest.py | 4df0a04ebc981811bb4bc1b6b11fb733a40ba6bf | [
"Apache-2.0"
] | permissive | ronnix/molotov | 11ed38e699bf58ce469b7d96a617ffb98ab7f6f6 | b2684ec13edb6d0ff901398467b16c885c5ff502 | refs/heads/master | 2020-06-20T05:41:36.070912 | 2017-06-09T10:02:01 | 2017-06-09T10:02:01 | 94,195,118 | 0 | 0 | null | 2017-06-13T09:25:58 | 2017-06-13T09:25:58 | null | UTF-8 | Python | false | false | 2,000 | py | """ Molotov-based test.
"""
import json
from molotov import scenario, setup, global_setup, teardown, global_teardown
# This is the service you want to load test
_API = 'http://localhost:8080'
@global_setup()
def test_starts(args):
""" This functions is called before anything starts.
Notice that it's not a ... | [
"tarek@ziade.org"
] | tarek@ziade.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.