blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
821ea7523c5959a398829fb2dd77f072c2311362 | d1fb8bb087564052674cb33ac6d75daca4ae586a | /剑指 Offer/2 - Basic Knowledge/204. Singleton.py | 6d26797474972df16cdea4d889d0b7b8e8788ea9 | [] | no_license | YunsongZhang/lintcode-python | 7db4ca48430a05331e17f4b79d05da585b1611ca | ea6a0ff58170499c76e9569074cb77f6bcef447a | refs/heads/master | 2020-12-24T03:05:43.487532 | 2020-01-30T19:58:37 | 2020-01-30T19:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | class Solution:
instance = None
# @return: The same instance of this class every time
@classmethod
def getInstance(cls):
if not cls.instance:
cls.instance = cls()
return cls.instance
| [
"haixiang6123@gmail.com"
] | haixiang6123@gmail.com |
8b715ffbecda4a7156431b050ff562a63fd15913 | bda804b2922af42b25fd066ba5fb172b7acf8477 | /primev2.py | fd83ea575382b3744332528f07334193d6c76f47 | [] | no_license | kammitama5/Distracting_KATAS | c8fb813afee3a8527320c794dff5274c61551bbc | d10984bef26fada09a6ba0a8493ef640f22b2acc | refs/heads/master | 2020-06-27T19:09:55.518148 | 2018-05-02T04:14:44 | 2018-05-02T04:14:44 | 74,521,719 | 0 | 1 | null | 2017-08-10T04:15:40 | 2016-11-22T23:17:00 | Python | UTF-8 | Python | false | false | 279 | py | def is_prime(num):
if num == 0:
return False
if num == 1:
return False
if num == -1:
return False
if num > 1:
for i in range(2, num):
if ((num % i) == 0):
return False
break;
else:
return True
| [
"noreply@github.com"
] | kammitama5.noreply@github.com |
3277c96da2e20561075e06d8ab739b35ba3cc42a | 1c962341f3b580f2be0529a2d5804d49804470f6 | /judge_1174.py | e1d78a0fbe2f5f0c3cfb89883182f8d7e280bc9e | [] | no_license | andersonmarquees/-uri_python | 7bc14b50198bd238f9594b37a86553ecfb277f76 | 379518cd17433725d6a859526de356162b26aa40 | refs/heads/master | 2020-05-05T09:08:51.483638 | 2019-04-14T16:42:24 | 2019-04-14T16:42:24 | 179,892,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | lista = []
for i in range(0, 100):
n = float(input())
lista.append(n)
for j, k in enumerate(lista):
if k <= 10:
print("A[{}] = {:.1f}".format(j, k))
| [
"anderson_fisico@yahoo.com.br"
] | anderson_fisico@yahoo.com.br |
51bb7aadd3bde9da6217ca8038bb747ce7301abe | cec0c23d35bbbc47401a21cd953cbede7973776b | /loginsys/views/admin.py | 04be9d841f65b6be1c62cd77b654e90e22a8d841 | [] | no_license | svabis/qual | 5723d55b9531e91399afaead5f835271c051c76e | c094099818a4de3888aa8cda67af146442be5ca1 | refs/heads/master | 2021-06-20T18:09:21.521215 | 2021-03-10T19:51:54 | 2021-03-10T19:51:54 | 82,610,851 | 1 | 0 | null | 2020-11-13T18:34:15 | 2017-02-20T22:51:59 | Python | UTF-8 | Python | false | false | 1,555 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.contrib import auth
#from django.core.context_processors import csrf
#from kamera.models import Kamera
from loginsys.models import User_data, User_kamera, Username_list
from django.contrib.auth.models import User # autorisation libra... | [
"fizmats@inbox.lv"
] | fizmats@inbox.lv |
0684f6ff147d207a6123d1fe71b93fe240af9ae3 | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/py2/toontown/coghq/CashbotHQBossBattle.pyc.py | d045f2def9d440ab825ef63b10bdf076284f63a1 | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | # 2013.08.22 22:18:11 Pacific Daylight Time
# Embedded file name: toontown.coghq.CashbotHQBossBattle
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from toontown.suit import DistributedCashbotBoss
from direct.directnotify import DirectNotifyGlobal
from toontown.coghq import CogHQBo... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
d17ee84b7dac4ae3c8fe312542f6b0b08eca8164 | ae45ba3e8e5882d31f923c047867ba48a4b253ea | /order_portal_21054/wsgi.py | 5a027717efde404d13af123f4ff8ec9d9b6e09da | [] | no_license | crowdbotics-apps/order-portal-21054 | 5e5c195a34d5ff256b7fcc65bf15ef7cf5766dc8 | 9df74ffb4a891ad462604654d03627aed32ad7d2 | refs/heads/master | 2022-12-24T21:36:12.517374 | 2020-10-04T12:26:20 | 2020-10-04T12:26:20 | 301,123,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for order_portal_21054 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
38fb349ccf915d3a8559d3146e3a7cf52b7b93d7 | 4bf3aaf77c309a489100b98a8c03532632df152c | /Python/BOJ/1697.py | aa0f60e0ab1f5ab7484968db210e9f1cc71284e3 | [] | no_license | murane/PS | 7fbfc54d962231949efc67f1a35c4b0119de0780 | e938c6c503aeac08bf65e1e66709172b0e5da6ef | refs/heads/master | 2023-05-06T22:51:54.105811 | 2021-05-30T03:34:53 | 2021-05-30T03:34:53 | 293,699,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | import sys
from collections import deque
r=sys.stdin.readline
N,K=map(int,r().split())
visit=[-1]*1000001
def bfs(cur):
q=deque()
q.append(cur)
visit[cur]=0
if cur==K:
return visit[cur]
while q:
cur=q.popleft()
curtime=visit[cur]
for _next in [cur+1,cur-1,cur*2]:
... | [
"murane@naver.com"
] | murane@naver.com |
e801f15bb117aa31299ed32ae49cda859c38ea0d | 272397006cad5448c573018fa1e2d33bf581c73f | /gripper/test-graph/gripper_client.py | 5b4387fde694ed9accced09aea507d7e4bb79839 | [
"MIT"
] | permissive | bmeg/grip | 490a9c15caac151526016a6151a655d514927c3c | 44878a84b8df9577f32803f0e7d0daad4f913957 | refs/heads/main | 2023-08-18T13:52:27.138495 | 2023-08-14T22:41:47 | 2023-08-14T22:41:47 | 79,270,328 | 24 | 4 | MIT | 2023-08-29T23:55:03 | 2017-01-17T20:47:59 | Go | UTF-8 | Python | false | false | 2,599 | py | #!/usr/bin/env python
import grpc
import argparse
import gripper_pb2
import gripper_pb2_grpc
from google.protobuf import json_format
def list_collections(conn, args):
res = conn.GetCollections(gripper_pb2.Empty())
for l in res:
print(l.name)
def list_ids(conn, args):
req = gripper_pb2.Collection... | [
"kellrott@gmail.com"
] | kellrott@gmail.com |
6dfc857ab007939b65615d5ad63b5579b816fa96 | 2b94263155a0c3bdc2d6cf841184771a82c23fcc | /evidently/profile_sections/num_target_drift_profile_section.py | 00994daa045e874515ecdbcb55a9acb4959c18fc | [
"Apache-2.0"
] | permissive | RadionBik/evidently | 69ce5ddbf29da71c9bde8b074a19a63c1ce271f9 | c3e1fface7c7df41b39d974af7a86d5676ae4ccd | refs/heads/main | 2023-08-03T11:13:23.504842 | 2021-09-11T06:45:04 | 2021-09-11T06:45:04 | 406,320,238 | 0 | 0 | Apache-2.0 | 2021-09-14T10:21:31 | 2021-09-14T10:21:31 | null | UTF-8 | Python | false | false | 1,244 | py | from datetime import datetime
import json
from evidently.analyzers.num_target_drift_analyzer import NumTargetDriftAnalyzer
from evidently.profile_sections.base_profile_section import ProfileSection
class NumTargetDriftProfileSection(ProfileSection):
def part_id(self) -> str:
return 'num_target_drift'
... | [
"emeli.dral@gmail.com"
] | emeli.dral@gmail.com |
83228c2ba68caeb02a63162fa287c37c5525ac07 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v4/googleads-py/tests/unit/gapic/googleads.v4/services/test_ad_group_feed_service.py | 307263dc6c46e9f7fb0b02cf84c036eb25f92c5d | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,818 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
40f4b45ba5f304d25f28ef8098c5c971b51ee17a | b646db8f8cd2bc2488caaf0aa164be2be4048a45 | /kodla/apps/activity/migrations/0001_initial.py | 1245c7afc53dad75c416feba209cbafcdc5d5844 | [] | no_license | alperbek/kodla-website | 0b160b3d8ea9289d2f78439de41272bdc715bf73 | 0aef95c8d87e19883d194ae3582091d943d01405 | refs/heads/master | 2021-10-24T18:21:51.323042 | 2019-03-24T12:32:55 | 2019-03-24T12:35:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,152 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-03-01 09:52
from __future__ import unicode_literals
import activity.models
from django.db import migrations, models
import django.db.models.deletion
import geoposition.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"kenansubasiceng@gmail.com"
] | kenansubasiceng@gmail.com |
49a4086dbd8eb3cac605a7b7cff1e45a2bd3218f | 3bd89e4411da33ec24e3d59b8dbd4a941fdf4d4b | /scripts/perf/timing.py | 5ea96b177c40f9743ce85bef065a8bf49b4cddd5 | [
"MIT"
] | permissive | mfkiwl/rocFFT | d117f20e67721b37251ba9105149fcee950c7526 | 5849f54180a4ce979193a11e205199841ff888c1 | refs/heads/master | 2022-12-09T11:20:17.259175 | 2020-09-11T18:32:31 | 2020-09-11T18:32:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,621 | py | #!/usr/bin/env python3
# a timing script for FFTs and convolutions using OpenMP
import sys, getopt
import numpy as np
from math import *
import subprocess
import os
import re # regexp package
import shutil
import tempfile
usage = '''A timing script for rocfft
Usage:
\ttiming.py
\t\t-w <string> set test executable p... | [
"noreply@github.com"
] | mfkiwl.noreply@github.com |
1e2e51d7122176e671aa996b808a9ae8374f0952 | 665a90f568b911706ff3c633e5dd9ec2233aee7e | /OOP/exam_preparation/battlefield__game_with_cards/player/beginner.py | a192816d83d1ab9a639d3c4d010535509043ee07 | [] | no_license | branchev/SoftUni | 5e33546f659e41619c6ae5c1899ae7b62332edf3 | f0f67e929ce9091232f899817b7ac10e649de7ed | refs/heads/main | 2023-04-05T13:56:29.438986 | 2021-04-21T06:04:19 | 2021-04-21T06:04:19 | 324,530,244 | 0 | 0 | null | 2021-01-06T20:40:04 | 2020-12-26T10:22:25 | Python | UTF-8 | Python | false | false | 208 | py | from project.player.player import Player
class Beginner(Player):
INITIAL_HEALTH_POINTS = 50
def __init__(self, username):
super().__init__(username, health=Beginner.INITIAL_HEALTH_POINTS)
| [
"ranchev.boris@abv.bg"
] | ranchev.boris@abv.bg |
00f13c6fa23822cab979675cc780df1726efd3ee | dd681dd7874c80c2804ca8d66cdbfdf2abec537e | /Python/venv/Lib/site-packages/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.py | c760d1a92ace7be6c1cbc2b77116f7518a55a48a | [] | no_license | khaled147/Koneked | cbbaec78cf3828575e835445f45b9dd72c39d808 | 98bdc701a3d126c742e076ee3ad34719a0ac5309 | refs/heads/main | 2023-04-03T11:37:07.941179 | 2021-04-14T02:09:35 | 2021-04-14T02:09:35 | 345,202,202 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | true | 72,666 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow/core/protobuf/tpu/optimization_parameters.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import... | [
"elmalawanykhaled@gmail.com"
] | elmalawanykhaled@gmail.com |
7d65d8b9b14e32deb89f383a16c728ab6eb964e5 | 424d4e47d4e05cdb25d5733cf8acbcb234ac4df2 | /frontend/option_def.py | a460d8a3031bc0476240204434286d0d6c6d6713 | [] | no_license | pombredanne/CS350ProjectCreatingALinuxCommand | eae516c97ba7a7b2fe1b6c53d6ad6af92266e0ba | 7be4139adffc3446d0b518f383cd566e3436dc68 | refs/heads/master | 2022-09-16T03:58:55.189852 | 2020-05-31T18:06:58 | 2020-05-31T18:06:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,689 | py | #!/usr/bin/env python2
"""
option_def.py
"""
from __future__ import print_function
from typing import List, Dict, Optional, Any
class Option(object):
def __init__(self, index, name, short_flag=None, builtin='shopt',
default=False, implemented=True, groups=None):
# type: (int, str, str, Optional... | [
"andy@oilshell.org"
] | andy@oilshell.org |
77e12189472271305d4f8f016ccebed70369ce09 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /PhysFit/B2DXFitters/data/cFit/personality/2011PaperDsPi-Agn70-sFit.py | 4d3cc9512ac54bb42f1ae6e86b752c7887fe6fc9 | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,724 | py | # personality for 2011 Paper - mode DsPi
{
'Modes': [
'Bs2DsPi',
'Bd2DPi', 'Bs2DsstPi',
'Bd2DsPi',
'Bs2DsK',
'Lb2LcPi',
'CombBkg'
],
'SampleCategories': [
'phipi'
],
'DeltaMs': ... | [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
7c368fd837f1ff417ba1fc847fc23c05a26e8569 | e34d16260855771666778837e195bf40fa383839 | /utils.py | 85904bf50e49d7b75278dd7757f439072e2e45e5 | [] | no_license | tvtrong/esp32_workspace | 88921619257d56c904db398ec5c6558a2d8b2b00 | f5c3d6cfe3997e80f5b4b12ca3fc25d282804d22 | refs/heads/master | 2022-12-27T22:30:53.483105 | 2020-10-10T12:46:03 | 2020-10-10T12:46:03 | 302,900,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | import usocket as socket
import os
import socket
if os.name != "nt":
import fcntl
import struct
def get_interface_ip(ifname):
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
return socket.inet_ntoa(fcntl.ioctl(
s.fileno(),
0x8915, # SIOCGIFADDR
str... | [
"phongtaitieu@gmail.com"
] | phongtaitieu@gmail.com |
6d4bca73dcc280b2bc603d90d94b25c6f0e64c8f | 8e867355b18f43864d50e02873980c19c8e4e03d | /api/views/doctors/doctors.py | 8e6a593952a56e55c5264e1dd6c8fabfb07a2747 | [] | no_license | Alweezy/appointment-app | 938d03d008f8925ad7c872959959c7159e4b31d8 | 979e72890b961373c0c99acddb36d49eb3a2b3f0 | refs/heads/master | 2020-05-23T18:06:48.059659 | 2019-05-17T08:35:01 | 2019-05-17T08:35:01 | 186,881,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | from flask import json, request, jsonify, make_response
from models.doctor import Doctor
from api import app
@app.route('/api/v1/doctors/', methods=["POST"])
def create_doctor():
"""Creates a doctor
:return: a success message
"""
details = json.loads(request.data)
doctor = Doctor(
first... | [
"alvinmutisya@gmail.com"
] | alvinmutisya@gmail.com |
c25f20369130033ba45a19117aba05ddbe032597 | 8b9888d9502cc74daee7999b759ae1c6424b222f | /amelie/tools/utf8mb4_mysql_backend/base.py | 90277f0b6e56e2fb89cc810c5d2b9c06f3338603 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | Inter-Actief/amelie | e3bdb69b81081dc71a2dab150f4b596f89319400 | 5e46b82cab225b452eceffd4a5be6dadccceddd2 | refs/heads/main | 2023-09-01T21:33:14.633957 | 2023-06-19T15:12:09 | 2023-06-19T15:12:09 | 60,258,872 | 11 | 4 | BSD-3-Clause | 2023-09-10T09:52:08 | 2016-06-02T11:33:40 | Python | UTF-8 | Python | false | false | 837 | py | # Custom MySQL backend to set the default row format to dynamic to support utf8mb4 encoding
# Source: https://github.com/wikimedia/debmonitor/blob/6219784ec0187a5f4465dd368931bfb8c77e2f50/debmonitor/mysql/base.py
# See also https://bd808.com/blog/2017/04/17/making-django-migrations-that-work-with-mysql-55-and-utf8mb4/... | [
"kevin@kevinalberts.nl"
] | kevin@kevinalberts.nl |
4e8e85541c00c8389ca49acf8673f57e2e7f5971 | baeebadd5786ee0e96626741da650d5c2e277b52 | /lib/bes/common/hash_util.py | 2a1fa8f02e77138845a867d3488e8ac1ed2f597c | [
"Apache-2.0"
] | permissive | reconstruir/bes | e75b25868d0a97a1a167d92b62e11996cb6c4774 | b9dd35b518848cea82e43d5016e425cc7dac32e5 | refs/heads/master | 2023-08-31T21:11:45.482193 | 2023-08-19T20:07:04 | 2023-08-19T20:07:04 | 421,598,217 | 0 | 1 | NOASSERTION | 2022-12-21T11:50:29 | 2021-10-26T22:08:30 | Python | UTF-8 | Python | false | false | 1,545 | py | #-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*-
import hashlib
import sys
from bes.system.check import check
class hash_util(object):
'Hash util'
@classmethod
def hash_string_md5(clazz, s, encoding = 'utf-8'):
'Return true if the given object can be encoded as js... | [
"git@fateware.com"
] | git@fateware.com |
d8ff29eac3ac18f9bab6fcfb937141ccb9bac012 | f3a0f6fa4aea4a3f03594b7c2b863fc0ab9955ae | /plaid/model/loan_filter.py | 2e90c5079cd3e0d405eb28d5f452c5a0d09e3fdd | [
"MIT"
] | permissive | DougVaderJr/plaid-python | 78aac933703e5bc58e0a3e924dc9933c9954f825 | e9aee4f492c14c3eeda8158f84aafcd7e9c3ba0b | refs/heads/master | 2023-07-12T16:44:25.289248 | 2021-08-16T21:27:42 | 2021-08-16T21:27:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,978 | py | """
The Plaid API
The Plaid REST API. Please see https://plaid.com/docs/api for more details. # noqa: E501
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from plaid.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal... | [
"noreply@github.com"
] | DougVaderJr.noreply@github.com |
6539c5a58def214f6ee4a07fb8ed4806359d7e82 | 8e79cd235925317e8f4456ea47512357bf8177ff | /code/ynacc/12/2ft_cl_cut.py | 0d6baebc59ced5be73093158db9682263fe07a7e | [
"MIT"
] | permissive | jfilter/masters-thesis | 30decb6a7f099f7a6526efdb7e4ee8e2d278ac30 | 39a3d9b862444507982cc4ccd98b6809cab72d82 | refs/heads/master | 2020-05-16T18:36:45.105863 | 2019-05-10T19:21:22 | 2019-05-10T19:21:22 | 183,230,951 | 5 | 0 | MIT | 2019-11-05T17:14:57 | 2019-04-24T13:07:30 | Jupyter Notebook | UTF-8 | Python | false | false | 5,811 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
#!/usr/bin/env python
# In[10]:
import argparse
import datetime
from pathlib import Path
import shutil
import fastai
import pandas as pd
import pymongo
import sacred
import sklearn.metrics
from fastai.basic_train import get_preds
from fastai.callbacks import *
from... | [
"hi@jfilter.de"
] | hi@jfilter.de |
f31eab523b64474f2c46af0c103f5823dca6d040 | dce2e3b11804fdb141feaa48299fa8cd751f0e5d | /205.同构字符串.py | ca57f11fed700af1ea5d97dcf25aa6f245b312fe | [] | permissive | Cosmos-Break/leetcode | bf056efb6f3eb6448df7fb3fc4869992a3e7eb48 | 9f5f3d24e35b0a482ed40594ea665e9068324dcc | refs/heads/main | 2023-06-26T04:29:25.135826 | 2021-07-19T12:29:29 | 2021-07-19T12:29:29 | 293,397,157 | 0 | 0 | MIT | 2020-09-07T01:55:39 | 2020-09-07T01:55:38 | null | UTF-8 | Python | false | false | 445 | py | #
# @lc app=leetcode.cn id=205 lang=python3
#
# [205] 同构字符串
#
# @lc code=start
class Solution:
def isIsomorphic(self, s: str, t: str) -> bool:
a2b, b2a = {}, {}
n = len(s)
for i in range(n):
a, b = s[i], t[i]
if (a in a2b and a2b[a] != b) or (b in b2a and b2a[b] != a... | [
"438854233@qq.com"
] | 438854233@qq.com |
bb3a6881bd2bfdd7559d1700a1f68039a90b1c8f | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Genability/TariffData/GetLoadServingEntities.py | bd577f4a02e20494abc6935c1a34b664280c65c2 | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,830 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# GetLoadServingEntities
# Returns a list of LoadServingEntity objects based a specified search criteria.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Ve... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
d9bb663a675297f44d22832b6c8fcb60b9af4647 | 39c485a9c4446b36c79d026ec6671809d97f04d8 | /apps/postimage/views.py | dc0b9a81222ae53185c23a520a6fd3048b0edead | [] | no_license | kaitlin/HollaBackDC | 2682ff20b3613cef02b686e298d62781243cb05f | 1956aeaba95fb16718f4a24ec9217ef1107b9fcf | refs/heads/master | 2021-01-19T06:18:08.520250 | 2010-10-09T22:12:49 | 2010-10-09T22:12:49 | 412,397 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | from django.template import Context, RequestContext, loader
from django.http import HttpResponseRedirect, HttpResponse
from django.views.decorators.cache import never_cache
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from django.contrib.auth.decorators import user_pas... | [
"kaitlin@kaitlin-laptop.(none)"
] | kaitlin@kaitlin-laptop.(none) |
b72f4c694bacfacd83a9423be6e428511533b441 | 3e261a79cf30ae98091ced063ae11e972951a250 | /transfers/migrations/0001_initial.py | a422e48b777c7bc3ba017b620661df0280fee218 | [] | no_license | Sloshpit/budget | 861f4904d8bace7a5802fa73d95ff6d00d0ad246 | bfd9440c6c2b3cac0a64469726370f517e1a57a5 | refs/heads/master | 2022-11-18T20:01:49.504785 | 2020-07-11T13:35:30 | 2020-07-11T13:35:30 | 258,333,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Generated by Django 3.0.5 on 2020-05-01 02:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='... | [
"neel.maheshwari@gmail.com"
] | neel.maheshwari@gmail.com |
49345202639f487fb1af8008c965d5c54ae1a7e6 | 37d2a09c274ce31f1e6f690c234c3447d4708d6a | /staicoin/util/make_test_constants.py | fbe26a9d4fe6d52931bdea8819270a8abf5a0806 | [
"Apache-2.0"
] | permissive | jzblanco/staicoin-blockchain | 60aedc566f475922e845ea019f2d8468f510a947 | 75a148429f6d39c36802c83b928ad8effbfc56a8 | refs/heads/main | 2023-08-17T13:11:46.094703 | 2021-10-08T23:13:49 | 2021-10-08T23:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from typing import Dict
from staicoin.consensus.default_constants import DEFAULT_CONSTANTS, ConsensusConstants
def make_test_constants(test_constants_overrides: Dict) -> ConsensusConstants:
return DEFAULT_CONSTANTS.replace(**test_constants_overrides)
| [
"em@iguru.team"
] | em@iguru.team |
eb66a302576a58fdfc5efcf2beaca4a88e7248cc | 0d4fa6785ff3d9fc8b8db32021424d3daee02186 | /django_new_backend_d_1115/urls.py | eb8e30a555e72a075a51e382621820c89f0c2f3a | [] | no_license | crowdbotics-apps/django-new-backend-d-1115 | b043e9cfd957f298b10a126034914d6cae76f77d | 77fa4086a0f357944b108c7899b925300e1d598b | refs/heads/master | 2022-03-21T22:40:04.745691 | 2019-12-04T11:37:53 | 2019-12-04T11:37:53 | 223,223,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | """django_new_backend_d_1115 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
71a9602ad190e5d2aa0a0720ca1a78840425ee7d | de4da7c45581f72adaf8e328a89cb3d57fe3613f | /fundamentos/basicos/maior.py | 2bbd78e423931170e85370a5dd41b37b00c2dd5c | [] | no_license | ramalho/propython | 2469be7492554762d05f9b0ce5c0dc3a51bd3a18 | 76c2b52755e08d49929cdc2a523db72735240e72 | refs/heads/master | 2022-06-01T22:51:07.659074 | 2022-05-22T18:22:21 | 2022-05-22T18:22:21 | 140,458 | 39 | 13 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def maior(a, b):
if a > b:
return a
else:
return b
print maior(10,20)
print maior(20,10)
print maior(15,15)
| [
"luciano@ramalho.org"
] | luciano@ramalho.org |
4a32374244e8907fc8c0bce0d9226df951a0cb95 | c2b0ee4ef8fb8e933966c7219a6cac6484ce03fb | /lib/python3.7/site-packages/dpd_components/__init__.py | 097bb034718e07c5346dd6856586f85e7c47ce94 | [
"MIT"
] | permissive | dukuaris/Django | 0b40e79d9e461c28064a83cc42d7710b49b43a19 | d34f3e3f09028511e96b99cae7faa1b46458eed1 | refs/heads/master | 2022-12-09T04:05:09.329256 | 2020-03-21T02:17:20 | 2020-03-21T02:17:20 | 236,935,131 | 0 | 0 | MIT | 2022-12-08T01:51:39 | 2020-01-29T08:24:36 | Python | UTF-8 | Python | false | false | 795 | py | import os as _os
import dash as _dash
import sys as _sys
from .version import __version__
_current_path = _os.path.dirname(_os.path.abspath(__file__))
_components = _dash.development.component_loader.load_components(
_os.path.join(_current_path, 'metadata.json'),
'dpd_components'
)
_this_module = _sys.module... | [
"dukuaris@gmail.com"
] | dukuaris@gmail.com |
179a299170feb18db2602ee44f12e1a9b479919f | 78d5a6e0846cb6b03544e4f717651ca59dfc620c | /treasury-admin/util/admin.py | 06eb7d344eaec8ea2d549acdc53b8517cc8f5214 | [] | no_license | bsca-bank/treasury-admin | 8952788a9a6e25a1c59aae0a35bbee357d94e685 | 5167d6c4517028856701066dd5ed6ac9534a9151 | refs/heads/master | 2023-02-05T12:45:52.945279 | 2020-12-13T08:07:41 | 2020-12-13T08:07:41 | 320,323,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,223 | py | from django.contrib import admin
from django.contrib.contenttypes.admin import GenericTabularInline
#
from .fx.models import *
from .workflow.models import *
from .catalog.models import *
from .fileStorage.models import *
from .forms import WorkflowForm, StatutForm, CatalogTypeCommercialForm,CatalogTypeProductForm
# ... | [
"cn.makodo@gmail.com"
] | cn.makodo@gmail.com |
b5be631614e5afbd6267c527845598d56bfc466e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03087/s048432908.py | 617b9db6a991774c47878ffd6d76551ce7b40bfb | [] | 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 | 241 | py | #累積和的な
n,q = map(int,input().split())
s = input() + 'A'
li = [0]*(n+1)
for i in range(n):
li[i+1] = li[i] + (1 if s[i] + s[i+1] == 'AC' else 0)
for j in range(q):
l,r = map(int,input().split())
print(li[r-1] - li[l-1]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
69c0d063b213574b1f18a1d513c60ee6b49ba486 | c9d31b048b30eaa35c451c87092686cb58e5cffe | /pytorch/pytorchcv/model_provider.py | ff1a68dd267ad16302a47976b17ffcaaced334c6 | [
"MIT"
] | permissive | anishLearnsToCode/imgclsmob | a6b5f904321131ae0bbf45145988faa928cc9842 | 8af0b9c490dc4d277eb2843d85c97259638969f8 | refs/heads/master | 2023-01-19T16:05:22.638234 | 2020-11-16T17:25:34 | 2020-11-16T17:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,842 | py | from .models.alexnet import *
from .models.zfnet import *
from .models.vgg import *
from .models.bninception import *
from .models.resnet import *
from .models.preresnet import *
from .models.resnext import *
from .models.seresnet import *
from .models.sepreresnet import *
from .models.seresnext import *
from .models.s... | [
"osemery@gmail.com"
] | osemery@gmail.com |
aecdab95bea3e980c08d6b151f26ed28a9ecdc3b | 8b2b497069ed3db150e15863559dc0e9a44dc8c1 | /pure_protobuf/io/wrappers.py | 2ab631be7b5f401cca6f53fae5f9dda5899bcd53 | [
"MIT"
] | permissive | eigenein/protobuf | 2aec2c544cf9f6571b161b1e62ec3675a5b141eb | cf14bc702302c9334c7c9cc839b0b24334a725ef | refs/heads/master | 2023-08-31T21:23:29.258800 | 2023-08-27T12:00:26 | 2023-08-28T12:36:25 | 1,890,285 | 216 | 20 | MIT | 2023-09-13T12:58:54 | 2011-06-13T18:26:55 | Python | UTF-8 | Python | false | false | 4,976 | py | from io import BytesIO
from typing import IO, Generic, Iterable, Iterator, Optional, cast
from pure_protobuf.exceptions import UnexpectedWireTypeError
from pure_protobuf.interfaces._repr import ReprWithInner
from pure_protobuf.interfaces._vars import FieldT_contra, RecordT
from pure_protobuf.interfaces.read import Rea... | [
"eigenein@gmail.com"
] | eigenein@gmail.com |
205a4791c1233218cadb7f646b0cddee33639c81 | fb82fdf706863465b1f357cd1fa0447474cd8a70 | /ServerComponent/venv/Lib/site-packages/pythonrv/django_utils.py | 43ca5d235ad67fcb7e94e432a0aae9bf996934cd | [
"MIT"
] | permissive | CDU55/FakeNews | d79e2a069b3f1392f779d5b2256cd54c696e789a | 707bd48dd78851081d98ad21bbdadfc2720bd644 | refs/heads/main | 2023-02-20T06:27:18.618837 | 2021-01-17T15:14:27 | 2021-01-17T15:14:27 | 305,167,221 | 0 | 1 | MIT | 2020-12-07T19:51:46 | 2020-10-18T18:16:49 | Python | UTF-8 | Python | false | false | 1,170 | py | # -*- coding: utf-8 -*-
# I do sincerely apologise for the mess below. But the idea is quite simple:
# A callback is registered as a receiver to the signals. When called, this
# callback calls a monitoree, which is the function returned for monitoring.
#################################################################... | [
"48147775+BiancaChirica@users.noreply.github.com"
] | 48147775+BiancaChirica@users.noreply.github.com |
907ef309141c268830ed18645f176f92ae154f51 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/BDP/FPythonCode/FPaceAelTaskConsumer.py | d7c232e235f1a5e96ce27e8023edf3479c8eb6e9 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | """ Compiled: 2020-09-18 10:38:51 """
#__src_file__ = "extensions/pace_runner/etc/FPaceAelTaskConsumer.py"
#----------------------------------------------------------------------------
# (c) Copyright 2020 SunGard Front Arena. All rights reserved.
#-------------------------------------------------------------------... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
a0e283db6573e05d8b75fa2f8e2a3fb2ece8db79 | 4ed3db861ae2fe727c7be604d42d540a00923320 | /samsung_multiroom/service/service.py | a143ec33607665a1f157063282b1a9d65d464cb0 | [
"MIT"
] | permissive | kusma/samsung_multiroom | 7cac147283a52bf491d7f50a6569c64de53eb4a5 | 09ca86d27b87a4aa0c97ec2accbd4ec67dd0cc61 | refs/heads/master | 2020-12-04T07:46:19.688568 | 2019-04-20T16:29:44 | 2019-04-20T16:29:44 | 231,683,383 | 0 | 0 | MIT | 2020-01-03T23:47:29 | 2020-01-03T23:47:28 | null | UTF-8 | Python | false | false | 850 | py | """Speaker music service integrations."""
import abc
class Service(metaclass=abc.ABCMeta):
"""
Abstract service
"""
def __init__(self, browser):
"""
:param browser: Browser instance specific to implementing service
"""
self._browser = browser
@property
@abc.ab... | [
"k.galutowski@gmail.com"
] | k.galutowski@gmail.com |
68eb7d3871704d7793b1b520cffa9e5f41aa038a | ad129f7fc03f10ef2b4734fa2c2b9cb9367c84fa | /Aula 17 - Listas - pt1/Exe081.py | 82a4b1dad07aa03d8cd5923ae2ebdd5a50e23436 | [] | no_license | LucasDatilioCarderelli/Exercises_CursoemVideo | c6dc287d7c08a0349867a17185474744513dbaac | 67c2d572a4817a52dababbca80513e4b977de670 | refs/heads/master | 2022-03-31T20:20:52.827370 | 2020-01-27T13:15:19 | 2020-01-27T13:15:19 | 236,491,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Exe081 - Digite varios números colocando numa lista, mostre:
# Quantos números foram digitados; Em ordem decrescente e se tem 5.
números = list()
c = 0
while True:
n = int(input('Digite um número: ')) # números.append(input...)
números.append(n)
parada = input('Continuar? [S/N]: ')
c += 1
prin... | [
"noreply@github.com"
] | LucasDatilioCarderelli.noreply@github.com |
4d987f1c3a5cceb45d17c260becbd35781ef4cb7 | de9f52d6ad91856bf95f42966fe382dbf2c00781 | /lib/hachoir_metadata/version.py | 7893f6ffab3ee00b0c63a657948607a37ae55543 | [] | no_license | Cristina-Gabriela/soundstorm-2 | 3a3a86a944ea41c95ba601cba1b6cda741503271 | 64f0b7c33fe26bc0577b5a222cb7ee00d4a4241c | refs/heads/master | 2023-06-05T07:38:22.881079 | 2016-03-07T02:00:02 | 2016-03-07T02:00:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | PACKAGE = "hachoir-metadata"
VERSION = "1.2.2"
WEBSITE = "http://hachoir.org/wiki/hachoir-metadata"
LICENSE = "GNU GPL v2"
| [
"justquick@gmail.com"
] | justquick@gmail.com |
bebf38d26c6920de8fe7360f1c8081fb8b169924 | 3ca2ef8b35000232e2ad7bdf782e06c22dd4decd | /akrr/parsers/mpipi_parser.py | 2f29c0f3a792f25c6143193b9ea44f80976cdbe4 | [] | no_license | ubccr/akrr | 9bfe443e5d7266909725453b112cf1a0dcd2cc33 | 599dec716740eaa0cb8f9f1003eddc53848a7aff | refs/heads/master | 2023-09-01T08:19:17.672213 | 2023-08-25T20:58:49 | 2023-08-25T20:58:49 | 49,070,293 | 6 | 6 | null | 2023-04-11T22:03:22 | 2016-01-05T14:18:11 | Python | UTF-8 | Python | false | false | 3,418 | py | # Generic Parser
import re
import os
import sys
from akrr.parsers.akrrappkeroutputparser import AppKerOutputParser
def process_appker_output(appstdout=None, stdout=None, stderr=None, geninfo=None, proclog=None,
resource_appker_vars=None):
# set App Kernel Description
if resource_app... | [
"nikolays@buffalo.edu"
] | nikolays@buffalo.edu |
a1fd74c7a8b8fd2c742298688ab2e8d4c1a23606 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/_exercises/_templates/Advanced_Python_Scripting/008_Class_widget/006_Tree_widget_QTreeWidget.py | 42e3c8b3d439469bcb7a4b818b84bc86300e4849 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,101 | py | # ____ ?.? ______ _
# ____ ?.? ______ _
# ____ ?.? ______ _
# ______ __
# path = __.pa__.di.. __.pa__.di.. -f
#
#
# c_ simpleWindow ?W..
# ___ -
# s__ ? ? -
# ly _ ?HBL..
# ?sL.. ?
# ?tree _ ?TW..
# l_.aW.. ?
# ?t__.he__.h..
# # connect
# ?t__.iCh__.co... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
44d1b9fa5fe6d1b7582ea37cbc5b13fbd4a40200 | 1b9bd441c500e79042c48570035071dc20bfaf44 | /sources/Tur/choshen_mishpat_bach_bi.py | 3ea784fa0282b282705095f989d041dc82b9d9e2 | [] | no_license | Sefaria/Sefaria-Data | ad2d1d38442fd68943535ebf79e2603be1d15b2b | 25bf5a05bf52a344aae18075fba7d1d50eb0713a | refs/heads/master | 2023-09-05T00:08:17.502329 | 2023-08-29T08:53:40 | 2023-08-29T08:53:40 | 5,502,765 | 51 | 52 | null | 2023-08-29T11:42:31 | 2012-08-22T00:18:38 | null | UTF-8 | Python | false | false | 11,720 | py | # -*- coding: utf-8 -*-
import urllib
import urllib2
from urllib2 import URLError, HTTPError
import json
import pdb
import os
import sys
from bs4 import BeautifulSoup
import re
p = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.insert(0, p)
sys.path.insert(0, '../Match/')
from ma... | [
"skaplan@brandeis.edu"
] | skaplan@brandeis.edu |
87ed8fe91444156adc6725f68e56b4faa1e35e1c | 3c079a02a5b3e87c96eb80701c6e4c5634b028dd | /tests/users/models.py | 5c007ace85db2f76157cb2cbf9a89a07973e97e7 | [] | permissive | ulule/pybbm | 58ac31cd300cb82b7046ee6ab6c1e6f91b6872b2 | 0e7ab7ef60f15951660015f2b9be0ff7192f1095 | refs/heads/master | 2022-03-27T12:21:08.870745 | 2020-01-03T10:27:35 | 2020-01-03T10:27:35 | 7,613,534 | 1 | 1 | BSD-2-Clause | 2018-07-17T20:29:31 | 2013-01-14T21:58:22 | Python | UTF-8 | Python | false | false | 1,656 | py | from django.contrib.auth.models import AbstractUser, UserManager as BaseUserManager
from django.core.exceptions import ImproperlyConfigured
from django.apps import apps
from pybb.compat import SiteProfileNotAvailable
class UserManager(BaseUserManager):
pass
class User(AbstractUser):
objects = UserManager()... | [
"florent.messa@gmail.com"
] | florent.messa@gmail.com |
b4f943c6fb0ec2e53a111bf01876273aae9e2e4e | 846c067f53006d18caa467997b2143ae4df50519 | /dancealytics/api/__init__.py | 056a2d00d6747b2be86c71fee078b411853bb941 | [] | no_license | radusuciu/dancealytics | 7e791d9732c8a19f3b6df2f61bb2837360cf4c65 | 7246ab8a32f2b7cbf7a42e08605e58c4a61b8a38 | refs/heads/master | 2022-12-13T23:12:54.065740 | 2017-07-14T02:21:49 | 2017-07-14T02:21:49 | 97,040,963 | 0 | 0 | null | 2022-12-08T00:01:27 | 2017-07-12T18:38:53 | JavaScript | UTF-8 | Python | false | false | 755 | py | from spotipy.oauth2 import SpotifyClientCredentials
import config.config as config
import spotipy
client_credentials_manager = SpotifyClientCredentials(
client_id=config.config.SPOTIFY_CLIENT_ID,
client_secret=config.config.SPOTIFY_CLIENT_SECRET
)
sp = spotipy.Spotify(client_credentials_manager=client_creden... | [
"radusuciu@gmail.com"
] | radusuciu@gmail.com |
8c06cf367aa68e1d58a169fdbe8be3e448b0c277 | b260e47d68664c943079be5046e708733a02473a | /BOJ/example/math.py | e49200e123c7151f5522c1ab10d8b6bce4b1f1db | [] | no_license | 21nkyu/note001 | 911c52a990676fb44cf619872c370a5b451f9da3 | edcf5ad61d71bc1ed113266bf40bd69183755a89 | refs/heads/main | 2023-08-16T12:29:20.871412 | 2021-09-28T11:11:40 | 2021-09-28T11:11:40 | 385,918,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | import math
#gcd
a, b = map(int, input().split())
math.gcd(a, b) | [
"adele7178@naver.com"
] | adele7178@naver.com |
1290c032bb43e3e3af6813284296829dcc7b66fc | 5dd7c4ec44b76180040badc67849ad44f81690f9 | /unittests/test_modalhook.py | 583e8b9379077987b9be90d323d5296b957e236b | [] | no_license | myluco/Phoenix | 68f9abe15a673fe56da6ef4375849ba6a642622d | 2de746beda35b8b5db547658cae1c65cfe164039 | refs/heads/master | 2021-01-18T15:59:05.001240 | 2016-12-04T00:08:36 | 2016-12-04T00:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import unittest
from unittests import wtc
import wx
#---------------------------------------------------------------------------
class modalhook_Tests(wtc.WidgetTestCase):
def test_modalhook1(self):
class MyModalDialogHook(wx.ModalDialogHook):
def __init__(self):
wx.ModalDialo... | [
"robin@alldunn.com"
] | robin@alldunn.com |
deb99f30da4cedaa0da303f77107a13f240e8350 | 09996c147d498e61352683c5e7df0f3cd517ea27 | /test/crab_MC_ElMu_GH_10.py | a695894571ea3c8c4996aa499d92c5ba7a8593a9 | [] | no_license | shchenarani/whelicityAnalyzer | 3e3320a6d03eab21de6d51dad60f057b6a2f3d47 | 8b4586f7210c6a166b949470c22310b25683da4f | refs/heads/master | 2021-09-10T12:22:52.088849 | 2018-03-26T07:52:54 | 2018-03-26T07:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'crabMC'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transferLogs = False
config.JobType.pluginName = 'Analysis'
config.JobType.psetName = 'test/wheli... | [
"hesam.kaveh@gmail.com"
] | hesam.kaveh@gmail.com |
eeda5b7e49d61400cb50d853fed18b948ff91fe3 | c6eb175980e148809846090ac3334cb4a4a4bd16 | /test62.py | a53a1cba78595ec825153b4325c7e4757e8330d5 | [] | no_license | yukitomo/NLP_100_Drill_Exercises | a44c627dae07b6b6465d4161363cd11fd09224a2 | dcc279a1573e4d99f3f04543bbdf2d8a3fb0653e | refs/heads/master | 2016-09-06T10:22:11.308524 | 2014-10-24T09:25:36 | 2014-10-24T09:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | #!/usr/bin/python
#-*-coding:utf-8-*-
#test61:コーパスディレクトリ中の各ファイルに対して,cabochaを適用し,適当なディレクトリに係り受け解析の結果を格納せよ.
"""
cabocha -f1 ./corpus/japanese_2.txt > ./work/ja_2_cabocha.txt
"""
#test62:61で作成した各ファイルから,名詞句(文節中の名詞の連接)を抜き出して,個別のファイルに格納せよ.
import sys
from collections import defaultdict
import os, os.path
from test53 import... | [
"over.the.tr0ouble@gmail.com"
] | over.the.tr0ouble@gmail.com |
34f86e2c17d3e2a5a8a533b1789a958aac3abd15 | 1f4204f903657884d9cccfd44b19ecb531b59ded | /test_settings/9_3_5_200.py | 384225fc2f2e9831d4193916cc836944cebaedd9 | [] | no_license | fmcc/StylometricAnalyser | 795a8e4abe264ee18ab3bcb34bd128bcd06ac5ca | e86305a63c95d8b533cab4a3be0010c2fee0ff14 | refs/heads/master | 2021-01-23T08:38:44.961082 | 2013-08-31T20:23:36 | 2013-08-31T20:23:36 | 11,097,508 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py |
import os
DB_PATH = os.getcwd() + '/database/greek_texts.db'
LOGGING = True
DB_LOGGING = False
NGRAM_WORDS = False
NGRAM_LENGTHS = {
'MIN': 3,
'MAX': 5
}
NO_SPACES = False
RESTRICT_VECTOR_SPACE = 200
# If selected, texts will be divided according to their original top-level divisions (Books etc... | [
"finlaymccourt@gmail.com"
] | finlaymccourt@gmail.com |
e53447774a8287cf5fdb80efa3715febd1717f10 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnisabel.py | 19fc18bc1e25a72c7057805f0538db274f0dd874 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 295 | py | ii = [('GodwWSL2.py', 1), ('AdamWEP.py', 1), ('FitzRNS3.py', 2), ('CarlTFR.py', 1), ('IrviWVD.py', 2), ('GilmCRS.py', 1), ('WestJIT2.py', 2), ('WadeJEB.py', 1), ('GodwWLN.py', 1), ('WheeJPT.py', 2), ('FitzRNS.py', 7), ('MereHHB2.py', 1), ('RogeSIP.py', 1), ('HogaGMM2.py', 1), ('BeckWRE.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
42750085c8ce05494d3736699ffc96ace249c7c8 | 1713334f9b68255f9adab70175c21f399d0460f3 | /python/071_Simplify_Path.py | 39fa5e2250f4ba3c19bc106e7091b5baa6f943e8 | [
"MIT"
] | permissive | coy0725/leetcode | 0a798b7adafe80f726e51c06c34835c4aa51b563 | 743a0bfa22402ec39858dc9c4c7dc531f825b953 | refs/heads/master | 2020-05-21T18:25:09.683714 | 2019-05-11T13:00:40 | 2019-05-11T13:00:40 | 186,132,894 | 2 | 0 | MIT | 2019-05-11T12:55:22 | 2019-05-11T12:55:21 | null | UTF-8 | Python | false | false | 571 | py | class Solution(object):
def simplifyPath(self, path):
"""
:type path: str
:rtype: str
"""
result = []
plist = path.split('/')
for pos in plist:
if pos:
if pos == '..':
try:
# up one level
... | [
"qiyuangong@gmail.com"
] | qiyuangong@gmail.com |
23ed6f71db9663dc28c67f15d697c7386569b0db | 4ffd71e14c531dbef920a35b448be441c6027a9b | /venv/bin/pip3.7 | 281b117ced25be1d37d1c7bdbb8321fd39f71fb3 | [] | no_license | burnmg/SmileDetection | ca51606136ddb5fbacf35deaba7797cf42a1b921 | bbf0e3697318fafb0d870b4200fb4d1b98058ed1 | refs/heads/master | 2020-04-03T03:50:39.683955 | 2018-10-27T23:03:36 | 2018-10-27T23:03:36 | 154,996,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | 7 | #!/Users/rl/PycharmProjects/SimleyBudding/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"rlin1992@hotmail.com"
] | rlin1992@hotmail.com |
9122028a9a97621bdaf7dfb703a6e3fa32d9e16a | 7ff851f9759d62b6e22355b6ab138fb1addf3e3c | /app/server/routers/grading.py | dbde4caebcc05365e1bde8134979d2d5a5e51034 | [] | no_license | brlala/adminhub_backend | 150c5beb31df8aa0c02b35113470a81bc68fed21 | 202fdf25b9a44abd3a94e3b6ada79554b6d05abe | refs/heads/master | 2023-08-11T13:02:43.410806 | 2021-09-25T03:30:17 | 2021-09-25T03:30:17 | 326,932,435 | 0 | 1 | null | 2021-09-24T16:20:44 | 2021-01-05T08:18:39 | Python | UTF-8 | Python | false | false | 3,088 | py | from datetime import date
from fastapi import APIRouter, Query
from ..db_utils.grading import get_grading_messages_and_count_db, skip_message_db, update_message_db
from ..models.current_user import CurrentUserSchema
from ..models.message import GetGradingsTable, SkipMessage, UpdateMessageResponse
router = APIRouter(... | [
"liheng@pand.ai"
] | liheng@pand.ai |
ee0d486aad8fbe3e072bc3e2b17db6da9282d96e | 00bacf1f7648b4d74fd4c42b4a06faa8c29ce725 | /optimizer/__init__.py | 3650074409b9a310ccdaa5f6f1ffc135943c0f64 | [
"MIT"
] | permissive | 15805658608/IFCB | 225d0291a7d4be71e7b706e327b73b9fe8e3dc61 | 4a5936f93e4e317915dfcd12682829cf20a39552 | refs/heads/main | 2023-03-03T18:32:52.382242 | 2021-02-10T09:50:11 | 2021-02-10T09:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | #!/usr/bin/env python
# ------------------------------------------------------------------------------------------------------%
# Created by "Thieu" at 15:31, 06/01/2021 %
# ... | [
"nguyenthieu2102@gmail.com"
] | nguyenthieu2102@gmail.com |
95296d381630b8783bc8dea0a05337c235899f0b | 55647258df0565f19179ffb97ac217708d84ba4a | /crawlers/parliamentdotuk/tasks/membersdataplatform/active_members.py | 3435dd499d6f0b9f79a53bba027ec90e568a10c6 | [] | no_license | beatonma/snommoc | 25de0e81af0d9940bdc3aa6420cb5764d50c6d11 | 0a9d37dcad112c5dd98609c1566e74176ae3d89d | refs/heads/main | 2022-03-11T07:53:33.038649 | 2022-03-05T17:03:56 | 2022-03-05T17:03:56 | 188,595,195 | 0 | 0 | null | 2022-02-18T17:54:30 | 2019-05-25T17:35:58 | Python | UTF-8 | Python | false | false | 15,954 | py | """
Tasks for updating details on active members.
Active members are of higher interest than historical ones so we maintain
more details data about them.
"""
import logging
from typing import Callable, List, Optional, Tuple, Type
from celery import shared_task
from phonenumber_field.phonenumber import PhoneNumber
fro... | [
"beatonma@gmail.com"
] | beatonma@gmail.com |
ae3fc10730d1f73f25238fefc0b8cfe09fdb13f1 | 2cbe3e535e8a126156f94e8254f4fdd11ff84b85 | /django_project/core/settings/dev.py | 6d563b7e560791b99c1cf51d502451480fa26a72 | [] | no_license | kartoza/plugin-host | 8c3f8071d699a0afaa824d9e9d8532c21189360e | d542df9b5b0241501ad70ba6fec085adfc4722db | refs/heads/develop | 2021-09-03T21:11:41.687102 | 2017-05-05T01:51:07 | 2017-05-05T01:51:07 | 81,546,843 | 0 | 1 | null | 2017-05-07T09:40:22 | 2017-02-10T09:01:37 | Python | UTF-8 | Python | false | false | 521 | py | from .project import * # noqa
# Set debug to True for development
DEBUG = True
TEMPLATE_DEBUG = DEBUG
LOGGING_OUTPUT_ENABLED = DEBUG
LOGGING_LOG_SQL = DEBUG
ALLOWED_HOSTS = ['*']
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Disable caching while in development
CACHES = {
'default': {
... | [
"dimas.ciputra@gmail.com"
] | dimas.ciputra@gmail.com |
ff9fbef3c7b0f93d7ff56224d66977aa88776677 | 3d0f3d57dfbe22b84307b0e86aa0713bcbd11a42 | /dvc/commands/experiments/clean.py | 890eb34f3ddfb70ff87dd2ca83e3da058764ac84 | [
"Apache-2.0"
] | permissive | syahrulhamdani/dvc | 160cddc87fa8aefb57fc6852c827938bb7932e6e | 2cf3a12e462a4429dc9d31726ff2645f496486e7 | refs/heads/master | 2023-04-08T14:38:30.683863 | 2023-03-02T05:37:44 | 2023-03-02T06:44:34 | 213,338,952 | 0 | 0 | Apache-2.0 | 2023-04-03T22:17:21 | 2019-10-07T09:05:59 | Python | UTF-8 | Python | false | false | 747 | py | import argparse
import logging
from dvc.cli.command import CmdBase
from dvc.cli.utils import append_doc_link
logger = logging.getLogger(__name__)
class CmdExperimentsClean(CmdBase):
def run(self):
self.repo.experiments.clean()
return 0
def add_parser(experiments_subparsers, parent_parser):
... | [
"peter@pmrowla.com"
] | peter@pmrowla.com |
dfe7e41b346fa815fe35f40d01cc3a77e719a21a | c9dc1ddbcf752318ab5ee42bc997493fbe6c6689 | /electrum_mue/gui/kivy/nfc_scanner/__init__.py | 49d864d39db3e0769dc0b4b59ce9aad0589dcfe8 | [
"MIT"
] | permissive | Hser2bio/electrum-mue | 7ea770bda0ddfbf81bdda6627e4be2745700ec00 | 5369056b54e862826b6c3132d15ecd3a3d6b6bc0 | refs/heads/master | 2020-12-10T15:13:15.878787 | 2020-01-13T15:37:30 | 2020-01-13T15:37:30 | 233,629,634 | 0 | 0 | MIT | 2020-01-13T15:36:34 | 2020-01-13T15:36:33 | null | UTF-8 | Python | false | false | 1,349 | py | from kivy.uix.widget import Widget
from kivy.properties import ObjectProperty
from kivy.core import core_select_lib
__all__ = ('NFCBase', 'NFCScanner')
class NFCBase(Widget):
''' This is the base Abstract definition class that the actual hardware dependent
implementations would be based on. If you want to def... | [
"sotblad@monetaryunit.org"
] | sotblad@monetaryunit.org |
1994d92c94965e6899ef0dfd81fcdce25aa8e38a | ca8ca02cbecb105b065a0be0ea375c6843bc01f4 | /app/api/v1/user.py | 02638be022fe4230cf3f2c4a3b7105b6e73954e6 | [] | no_license | to2bage/ginger | fc892b01c20b92fc8a4125b55079aab43ccb71e8 | 6c548e8dc19aa8b876b42a005ea1d86ea2e5612e | refs/heads/master | 2022-11-20T14:50:52.586992 | 2020-07-26T08:20:09 | 2020-07-26T08:20:09 | 282,606,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | """
*@ClassName user
*@Description TODO 关于User的视图函数 127.0.0.1:5000/v1/user/get
*@Author to2bage
*@Date 2020-07-26 10:20
*@Version 1.0
"""
from app.libs.redprint import Redprint
api = Redprint("user")
@api.route("/get")
def get_user():
return " i am totobage" | [
"to2bage@hotmail.com"
] | to2bage@hotmail.com |
f0e2559ab86b665c7912a314f85fac7c6dcb20ee | fa9d997898664b23688a5dd1ec0e9dcdf86e8dfa | /dedupsqlfs/db/migrations/m20220907001.py | 70f323eef56abf07507f0184f5e31e802e5b888e | [
"MIT"
] | permissive | sergey-dryabzhinsky/dedupsqlfs | 9cfca1ba5badcf9bdb0fceb17f141d4a7b68851d | 25f36188d930a85d9fcfd01aef712a34f1a2e006 | refs/heads/master | 2023-07-10T05:40:01.755012 | 2023-06-27T01:52:31 | 2023-06-27T01:52:31 | 12,789,703 | 28 | 8 | MIT | 2023-06-27T01:52:33 | 2013-09-12T17:16:30 | C | UTF-8 | Python | false | false | 1,741 | py | # -*- coding: utf8 -*-
#
# DB migration 001 by 2022-09-07
#
# - Remove old compression methods
#
__author__ = 'sergey'
__NUMBER__ = 20220907001
def run(manager):
"""
:param manager: Database manager
:type manager: dedupsqlfs.db.sqlite.manager.DbManager |
dedupsqlfs.db.mysql.manager.D... | [
"sergey.dryabzhinsky@gmail.com"
] | sergey.dryabzhinsky@gmail.com |
f66ae1a0958072b25f22f4d950bb3fa3f72600ec | 8537ecfe2a23cfee7c9f86e2318501f745078d67 | /Practise_stuff/object/object_dict.py | 14c03c974e1fdd640ecf7a6b07c0b2882c7b7116 | [] | no_license | oolsson/oo_eclipse | 91d33501d9ed6c6b3c51bb22b635eb75da88e4e1 | 1828866bc4e1f67b279c5a037e4a6a4439ddb090 | refs/heads/master | 2021-01-01T20:17:12.644890 | 2015-11-30T09:49:41 | 2015-11-30T09:49:41 | 23,485,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | '''
Created on Jan 29, 2012
@author: oo
'''
#class is the blueprint for objects
class exampleClass:
pos={}
eyes='b'
def testmethod(self):
return 'oskar is king'
#you need to create an object to acces values in a class
exampleobject=exampleClass()
print exampleobject.eyes
exampleob... | [
"o.h.olsson@gmail.com"
] | o.h.olsson@gmail.com |
5bfe8d0a5c5fc5d3bed7a1aec0dd043910d91215 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04000/s067389484.py | e0655b149f803870a10ba7c37061eef6b0d9c922 | [] | 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 | 613 | py | import collections
h, w, n = [int(i) for i in input().split()]
s = [tuple(int(i) for i in input().split()) for j in range(n)]
def dictadd(d, si):
dc = d
for i in range(si[0]-2, si[0]+1):
if 1 <= i <= h-2:
for j in range(si[1]-2, si[1]+1):
if 1 <= j <= w-2:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a81f62a435be12e4c8402fb93a56c8323c233ee9 | 03c9bb7e3cc687afecd57c6c6e3d5c1d54ed7ab0 | /smilejakdu/3week/1day/SearchInsertPosition.py | 36516fb032fb949aa2f807b6863b6860c94403da | [] | no_license | smilejakdu/python_algorithm_study | 541aa3de77e9f432d41b5627790a6f3e10f5a07d | 5119b31b6ae781e12bf97134ca6f10fec662abd8 | refs/heads/master | 2023-04-06T15:41:41.156021 | 2020-08-10T08:58:34 | 2020-08-10T08:58:34 | 282,879,639 | 0 | 0 | null | 2020-08-01T07:04:38 | 2020-07-27T11:36:31 | Python | UTF-8 | Python | false | false | 1,086 | py | ''':arg
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the array.
Example 1:
Input: [1,3,5,6], 5
Output: 2
Example 2:
Input: [1,3,5,6], 2
Output: 1
Example 3:
Input: [1,3,5,6]... | [
"ash982416@gmail.com"
] | ash982416@gmail.com |
13d42930263fb46db5342fdee02518c5acb1e33d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/338/107885/submittedfiles/principal.py | 042207f68555c3eab0794c59f29c83192f27f14a | [] | 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 | 3,245 | py | """
from time import sleep
#def tabuleiro():
nome_do_jogador = input("Digite o seu nome: ")
simb = input("Digite o simbolo com o qual vocÊ quer jogar [X ou O] : ")
while(True):
if simb == "X" or simb == "O" :
break
else:
simb = input("Digite um simbolo válido %s : " % nome_do_jogador)
j_d_v... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
32852b7becba6790215910a175253c592896d77c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /i5KL9xzKt6WSBsds9_18.py | c8fdba6b821d32372a0c6f105656265c47579eb4 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py |
def can_move(piece, pos1, pos2):
# converts each character of pos1 and pos 2
# to their int character codes
pos1_R = ord(pos1[1])
pos1_C = ord(pos1[0])
pos2_R = ord(pos2[1])
pos2_C = ord(pos2[0])
colDif = abs(pos1_C - pos2_C)
if (piece == "Pawn"):
rowDif = pos2_R - pos1_R
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3ab556224c44f7a029f8a08bb8b2d834cef3caaf | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_manifested.py | 51fef153f2afb0a9ddd14a840b7c1904b0fd4be7 | [
"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 | 232 | py |
#calss header
class _MANIFESTED():
def __init__(self,):
self.name = "MANIFESTED"
self.definitions = manifest
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['manifest']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
eb6a7362bcb10732cacdcce320eb17071ac50d81 | 1bff22bcc681c9024818bc2a7e453c6fe0bc1e93 | /scripts/add_date_confirmed.py | 55f6482edee6e6ebb5b1fc2db44f22c8ae61d46b | [
"BSD-2-Clause",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | hmoco/osf.io | b1f04ab02299375ca5f1a9a2684b8bca295849a2 | a02869f9b5c198bafae7cea0c216674bbcba62f7 | refs/heads/develop | 2020-04-05T10:15:08.544806 | 2017-05-09T22:18:21 | 2017-05-09T22:18:21 | 36,302,791 | 1 | 0 | Apache-2.0 | 2018-08-13T16:03:00 | 2015-05-26T14:49:58 | Python | UTF-8 | Python | false | false | 596 | py | """
With email confirmation enabled, the `date_confirmed` is used to filter users
for e.g. search results. This requires setting this field for all users
registered before confirmation was added. This migration sets each user's
`date_confirmed` to his / her `date_registered`.
"""
from website.app import init_app
from ... | [
"jm.carp@gmail.com"
] | jm.carp@gmail.com |
0027b3694b81436321f3cebc16cde57edf244776 | 46183b20d715715731b8ad31fd41b6a2f4bff824 | /src/morphforgeexamples/exset_testallcomponents/test_all.py | 5cb3281c8dd544cb1cd1bfb46d6b5b19469df748 | [
"BSD-2-Clause"
] | permissive | mikehulluk/morphforge | 452265a9880157863a2bc8d236fe5fb4dd3af024 | 2a95096f144ed4ea487decb735ce66706357d3c7 | refs/heads/master | 2021-01-25T10:21:15.574461 | 2015-11-11T21:44:57 | 2015-11-11T21:44:57 | 3,786,364 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py |
from morphforge.stdimports import *
from morphforgecontrib.stdimports import *
def test_channels():
#for every type of channel, lets make a cell with channel and some leak:
for key,chlfunctor in ChannelLibrary._channels.items():
def my_new_cell(sim):
cell = CellLibrary.create_cell(
... | [
"mikehulluk@googlemail.com"
] | mikehulluk@googlemail.com |
9f9e1f5b3dbe77b5e807675462bf29700a56ce2f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetCode_with_solution/317 Shortest Distance from All Buildings.py | edac67958a857a6f3d02b99589174f2f516bb1b1 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,493 | py | """
Premium Question
"""
_______ ___
__author__ 'Daniel'
c_ Solution(o..
___ -
dirs [(-1, 0), (1, 0), (0, -1), (0, 1)]
___ shortestDistance grid
"""
BFS & collect all distance
ideas:
Pruning: don't use a fresh "visited" for each BFS. Instead, I walk only
ont... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
3e55ddfc38fdf08e87a62d248f007317cadc8f9d | 5dcaf0c31a8362d64134d0dcd9131fb8e827307a | /footmark/slb/connection.py | fb1742391752c604381ee690de926f72396752e2 | [
"Apache-2.0"
] | permissive | lixue323/footmark | 10a94ef97cefdab2264088cda70c937c63b819ec | 30cbb2f4b61546d530d955079ccbb38f22fa3edb | refs/heads/master | 2020-08-11T21:57:07.782124 | 2019-10-15T16:15:17 | 2019-10-15T16:16:08 | 211,007,645 | 0 | 0 | Apache-2.0 | 2019-09-26T05:34:05 | 2019-09-26T05:34:05 | null | UTF-8 | Python | false | false | 58,908 | py | # encoding: utf-8
"""
Represents a connection to the SLB service.
"""
import json
from footmark.connection import ACSQueryConnection
from footmark.slb.regioninfo import RegionInfo
from footmark.exception import SLBResponseError
from footmark.slb.slb import BackendServer, LoadBalancerListener
from footmark.slb.load_bal... | [
"guimin.hgm@alibaba-inc.com"
] | guimin.hgm@alibaba-inc.com |
5ebc3e0352c325b72bf9831a2c4cd50121c91cb0 | ec8e7afc16a315c918dacee50d60037c82335b91 | /day12a.py | 86042abe0ac5521748b118a460e3be061d362240 | [] | no_license | PetraVidnerova/AdventOfCode2017 | fd87e2358be290c5340e34e882c3ef3fe6b62ed5 | bea2fc385b558e149fe95d07a1c745e1fbd989fa | refs/heads/master | 2018-09-12T23:08:23.263050 | 2018-06-17T19:26:56 | 2018-06-17T19:26:56 | 112,755,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | pipes = {}
all_programs = []
#read input
with open("input12.txt") as f:
for line in f:
left, right = line.split("<->")
pipes[int(left)] = list(map(int, right.split(",")))
all_programs.append(int(left))
def find_group(xx):
expand = [ xx ]
programs = { xx }
while expand... | [
"petra.vidnerova@gmail.com"
] | petra.vidnerova@gmail.com |
740b8d776b898c62e53d2bb6c8bf278cd78f4a14 | 80301f1cffc5afce13256e2ecab6323c5df00194 | /cn.sc/py/T3300.py | f38febd8c4e57823c042da7e329f6f466cc248c3 | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 75,810 | py | from ED6SCScenarioHelper import *
def main():
SetCodePage("gbk")
# 蔡斯
CreateScenaFile(
FileName = 'T3300 ._SN',
MapName = 'Zeiss',
Location = 'T3300.x',
MapIndex = 1,
MapDefaultBGM = "ed60016",
Flags ... | [
"zhenjian.c.yang@gmail.com"
] | zhenjian.c.yang@gmail.com |
bb1dd91ea4e025a4504d3ad62840d7605a3a9fab | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-artifact-registry/samples/generated_samples/artifactregistry_v1beta2_generated_artifact_registry_list_repositories_sync.py | 7475025c6ee53ab492d3eaa99e20c2d6f4e7de42 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,977 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
22d70b7fc0cfc3755d1131bf9c1884e18911fd12 | e055690de408c8e0a6ca97b43912b1482528b98c | /package_forecaster.py | a836b7a1f098c63ce35cd107fd9bf56291594a2e | [] | no_license | webclinic017/Dissertation-1 | 88155419cfa6b9d8a1834fadecdadda5c22498db | 1e118c0697f0785dc2db30e46c26af154b269813 | refs/heads/master | 2021-09-08T06:37:21.633294 | 2016-11-29T11:07:02 | 2016-11-29T11:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Project: Dissertation
# File name: package_forecaster
# Author: Mark Wang
# Date: 18/10/2016
from setuptools import setup, find_packages
setup(
name="stockforecaster",
version="0.1",
packages=find_packages(exclude=("src", 'get_data', 'StockSimulator', 'Stoc... | [
"wangyouan0629@hotmail.com"
] | wangyouan0629@hotmail.com |
6384b578cabf913b210d25de3888977246df02d8 | 1c7c0e2fbdbe2b8d90472378c924a92e112a80f4 | /trash_code/get_3D_direction.py | 621aab74d2f3e41a3e4970da2e29feb150782fee | [] | no_license | NoisyLeon/pyxray | 3d9afb91a0ea05f80409209b2c1dbeeff48c5e9a | b02a97d52e884435cc74c98043cd05a88d9ad68b | refs/heads/master | 2021-01-01T15:28:58.302560 | 2017-12-28T04:47:21 | 2017-12-28T04:47:21 | 97,627,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,353 | py | import numpy as np
import scipy.stats
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import axes3d
from scipy.stats import multivariate_normal
import numba
def get_polar_angles(u, v, w):
"""
Define a wave propagation vector in a Cartesian coordinate.
It is always explicitly normalized to lie on... | [
"lili.feng@colorado.edu"
] | lili.feng@colorado.edu |
32b4d8161bc98a20141997a9d3dbb01e14ec8b8f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02394/s856842825.py | 8fdbeff5c3a1b7e2be95aa83ebba3ba7fcd7b037 | [] | 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 | 270 | py | # -*- coding:utf-8 -*-
array = input()
array = array.split()
for i in range(len(array)):
array[i] = float(array[i])
W,H,x,y,r = array[0],array[1],array[2],array[3],array[4]
if x-r >= 0 and y+r <= H and x+r <= W and y-r >= 0:
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8e44efc89ce8f223295d13fdbc005f265f00f33f | 6552a65454c688029ea1c4c0b55a02259989e745 | /mmf/datasets/databases/image_database.py | 90839d09b919afe3716f250892e491367430cab5 | [
"BSD-3-Clause"
] | permissive | facebookresearch/worldsheet | 66b2b9e83c59c638914124c2f7a8ffb283741130 | 13175f8f5e10b13436546ebf1600dc21005124d0 | refs/heads/main | 2023-08-03T07:08:16.573571 | 2021-09-17T22:18:38 | 2021-09-17T22:18:38 | 398,332,164 | 45 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,125 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import collections
import os
import torch
import torchvision
import torchvision.datasets.folder as tv_helpers
from... | [
"nikhilar@fb.com"
] | nikhilar@fb.com |
4896322d68782ed985c5c16e2305fa87575a49ad | f72fe33d1a181f89d2464cc07744dbd275a7d071 | /CNNectome/utils/convert_unaligned.py | d05399ed0162f3d27faa40486153554b21d90648 | [
"BSD-2-Clause"
] | permissive | saalfeldlab/CNNectome | 6c8d44d8cc2e161a91b10abb7b4a425d7fc64d1b | c043e3111ff5ec6707a68edffae54eb902a1652d | refs/heads/master | 2023-04-03T15:11:36.586030 | 2022-06-15T14:12:17 | 2022-06-15T14:12:17 | 124,144,317 | 8 | 10 | BSD-2-Clause | 2023-03-24T22:16:04 | 2018-03-06T22:04:16 | Python | UTF-8 | Python | false | false | 8,336 | py | import h5py
import sys
import numpy as np
import logging
def pad(labels_in, shape, raw_offset=(0, 0, 0)):
logging.info("padding...")
off_vox = (
np.array((labels_in.attrs["offset"]) - np.array(raw_offset))
/ np.array(labels_in.attrs["resolution"])
).astype(np.int)
logging.debug(
... | [
"heinrichl@janelia.hhmi.org"
] | heinrichl@janelia.hhmi.org |
aa7dee7fa710035a6586944c4b7734f16e2f8154 | 7f114a1fb511b816c116d5b9e67cb998e3e23956 | /Pys103.py | cc33183fee57d0ef1c85ec3e2f39253f8af2e7d6 | [] | no_license | Bharanij27/bharanirep | 90ac34eb28deaa7ec96d042de456de71b96866d7 | 982133a7939c889d433c178a601441fa087293d9 | refs/heads/master | 2021-08-07T20:22:36.244395 | 2020-06-05T04:58:10 | 2020-06-05T04:58:10 | 186,580,768 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | n=int(input())
x=n+273
print(x)
| [
"noreply@github.com"
] | Bharanij27.noreply@github.com |
91e909245374638673601e05e6aa933d7e1e341d | 01c3ff1d74e754e0d4ce0fb7f8a8b329ec3766e1 | /python_exercises/19others/file3.py | b74c0b83e8492f78db75e1257a55e885ec512424 | [] | no_license | vineel2014/Pythonfiles | 5ad0a2b824b5fd18289d21aa8306099aea22c202 | 0d653cb9659fe750cf676a70035ab67176179905 | refs/heads/master | 2020-04-28T03:56:22.713558 | 2019-03-11T08:38:54 | 2019-03-11T08:38:54 | 123,681,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py |
book=open('treasure.txt','r')
n_lines=0
n_words=0
n_chars=0
for line in book:
n_lines+=1
n_words+=len(line.split())
n_chars+=len(line)
print("number of lines in the given file:",n_lines)
print("number of words in the given file:",n_words)
print("number of characters in the given file:",n_chars)
book.c... | [
"vineel2006@gmail.com"
] | vineel2006@gmail.com |
89de9d3395edaf28a6ce9b156b22d418af16d67e | 4c77087dcdcecb54a4e66c4123d8c572a27ae2bc | /tests/test_block.py | e3fdc43788a0c622a3e28d6c0396756ed6074a8d | [
"BSD-3-Clause"
] | permissive | safehammad/picraft | 6a432fb56e00540df946729a46f69c180eac1691 | 014a3648e9e28af86f317ce208515b63d4030b9f | refs/heads/master | 2021-01-20T16:18:40.123265 | 2015-06-08T21:49:53 | 2015-06-08T21:49:53 | 37,177,777 | 0 | 0 | null | 2015-06-10T05:41:27 | 2015-06-10T05:41:26 | null | UTF-8 | Python | false | false | 6,514 | py | # vim: set et sw=4 sts=4 fileencoding=utf-8:
#
# An alternate Python Minecraft library for the Rasperry-Pi
# Copyright (c) 2013-2015 Dave Jones <dave@waveform.org.uk>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# ... | [
"dave@waveform.org.uk"
] | dave@waveform.org.uk |
8c8c1ebac4a1f1647d4cc729932c6e66a57fadfa | 5ee9d9b59283c9f471cbb0f01546048e5ca8e64e | /ethereumetl/aws_glue_scripts/convert_blocks_to_parquet.py | 61721bc6b358519b2ba6a8355e7c6adec7fdc5fe | [
"MIT"
] | permissive | blockchain-etl/ethereum-export-pipeline | 7e829b37d31fec57548df259e22f9eba2c8a3a5d | 05d04488c670e5f3be4c5dcfdd322ec002466b0e | refs/heads/master | 2022-10-26T00:10:49.181181 | 2022-10-10T10:38:32 | 2022-10-10T10:38:32 | 136,138,405 | 6 | 4 | null | 2022-06-21T16:31:37 | 2018-06-05T07:35:14 | Python | UTF-8 | Python | false | false | 4,260 | py | import sys
from awsglue.transforms import *
from awsglue.utils import getResolvedOptions
from pyspark.context import SparkContext
from awsglue.context import GlueContext
from awsglue.job import Job
## @params: [JOB_NAME]
args = getResolvedOptions(sys.argv, ['JOB_NAME'])
sc = SparkContext()
glueContext = GlueContext(s... | [
"medvedev1088@gmail.com"
] | medvedev1088@gmail.com |
0d7de1150c0629aa68201245b309d28a9c989f37 | 91bccfbec581b4a582c88382b8c95b7755a092dc | /apptSchedule/apps.py | bef80c9cea9ac3e26d2e15014d8f66cb78145cf2 | [
"MIT"
] | permissive | MyMedicalAssistant/MyMedicalAssistant | 51d3278d91afff1e2e72611549d9b9fa4c5dcf13 | e03758109167cef13efed7ee1d450dbd18a1fed7 | refs/heads/dev | 2022-12-16T21:27:18.718893 | 2020-09-12T00:39:08 | 2020-09-12T00:39:08 | 285,404,211 | 0 | 0 | MIT | 2020-08-08T06:35:10 | 2020-08-05T21:06:47 | Python | UTF-8 | Python | false | false | 99 | py | from django.apps import AppConfig
class ApptscheduleConfig(AppConfig):
name = 'apptSchedule'
| [
"vijayetar@gmail.com"
] | vijayetar@gmail.com |
27e3bc434ae7d10577cadeac12ac6db47d8ac4a6 | 1136b760ad4cc4bf4db35365df83478418c0e0d4 | /serialize/py/Book.py | 20b87476548adc86192f81109d8ff7f2462f591c | [] | no_license | duckladydinh/distributed_systems | bb47051122572f9e7a2f2326e4e1a5b2dc93996b | 7a6e0d162df0a90441b3723a0107f1faadfc4d96 | refs/heads/master | 2021-01-01T16:33:41.319406 | 2019-11-13T17:41:52 | 2019-11-13T17:41:52 | 97,855,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | class Book(object):
def __init__(self, n = "I am a little book"):
self.n = n
self.p = []
def add(self, p):
self.p += [p]
def show(self):
print(self.n)
for p in self.p:
print(p.read())
| [
"="
] | = |
a963f13ad15c07cf609a8e9f2a7524b5627e7fd1 | 9abd182d02355ddf0b79afd4a35f7127a4a66f7a | /docs/tutorials/deployment/export_network.py | 98877e2fd489d5b368a14f95f3a4f6cf04c1e5cc | [
"Apache-2.0"
] | permissive | dmlc/gluon-cv | e1303086419a5733661d0fcb9095c09d4f2382ad | 567775619f3b97d47e7c360748912a4fd883ff52 | refs/heads/master | 2023-07-19T12:02:36.824294 | 2023-01-19T00:37:33 | 2023-01-19T00:37:33 | 122,896,249 | 6,064 | 1,458 | Apache-2.0 | 2023-01-19T00:37:35 | 2018-02-26T01:33:21 | Python | UTF-8 | Python | false | false | 2,557 | py | """1. Export trained GluonCV network to JSON
============================================
It is awesome if you are enjoy using GluonCV in Python for training and testing.
At some point, you might ask: "Is it possible to deploy the existing models to somewhere out of Python environments?"
The answer is "Absolutely!", ... | [
"noreply@github.com"
] | dmlc.noreply@github.com |
2102b13b28a56cabe56cf7fa8a6f15241c648a5c | 99ac2a38eaa9a6da1ea48c92cf2e42c71247d188 | /p3/test.py | 18455908356112ceca791787c695f53c9acb4fed | [
"MIT"
] | permissive | Vayne-Lover/Business-Analysis | fc55dcd70ded2552e757627ab2424e8dfc88845e | 42b807dee14d45f2c79014019751962690b2d898 | refs/heads/master | 2021-09-08T07:11:57.471534 | 2018-03-08T08:01:17 | 2018-03-08T08:01:17 | 117,828,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | # -*- coding: utf-8 -*-
# Author: vayne@zju.edu.cn
import time
import openpyxl as xl
def main():
fileName = "movies.xlsx"
wb = xl.Workbook()
sheetName = wb.get_sheet_names()
ws = wb.get_sheet_by_name(sheetName[0])
wb2 = xl.load_workbook(fileName)
ori_sheetName = wb2.get_sheet_names()
ori... | [
"406378362@qq.com"
] | 406378362@qq.com |
993859c5da1878006730aef0db7549df5c56ff83 | c086a38a366b0724d7339ae94d6bfb489413d2f4 | /PythonEnv/Lib/site-packages/win32/Demos/win32console_demo.py | 80b9bcf28a2f1cf97b3deb8e425e423a6c89fcfe | [] | no_license | FlowkoHinti/Dionysos | 2dc06651a4fc9b4c8c90d264b2f820f34d736650 | d9f8fbf3bb0713527dc33383a7f3e135b2041638 | refs/heads/master | 2021-03-02T01:14:18.622703 | 2020-06-09T08:28:44 | 2020-06-09T08:28:44 | 245,826,041 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,723 | py | import win32console, win32con
import traceback, time
virtual_keys = {}
for k, v in list(win32con.__dict__.items()):
if k.startswith('VK_'):
virtual_keys[v] = k
free_console = True
try:
win32console.AllocConsole()
except win32console.error as exc:
if exc.winerror != 5:
raise
## only fre... | [
"="
] | = |
374702ab9ef2d3146fe7964eff76e0276aebcc25 | 2d3aba0bf1d3a5e018ded78218859b31dd0930dd | /4.스택1/factorial.py | 6e5946910823975e982ce7c605ffc02b69f2944c | [] | no_license | CS-for-non-CS/Data-Structure | 7018203de7d14a0be7da2308963082b93fac8e21 | efce4c13578bd3d143aa570e9317c505b6424c40 | refs/heads/master | 2022-12-17T14:04:05.521164 | 2020-09-21T02:18:24 | 2020-09-21T02:18:24 | 297,205,549 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 154 | py |
def fact(n): # f(n) = n * f(-1)
if n == 1: # basic
return 1
else: # inductive(유도)
return n * fact(n-1)
print(fact(4)) | [
"onsy2788@gmail.com"
] | onsy2788@gmail.com |
c2065af1433ad24ac568f1da12311b408195bbbe | 5edfe965a10c9370b0861ff9e6a473df295efa61 | /grr/gui/wsgiapp.py | 60ce1069d7832c56a705f301b9b71de6cc239d2e | [
"DOC",
"Apache-2.0"
] | permissive | OG-MrB/grr | 861c7ac176195fd16c6e62c0bf512aa084f7c62b | b0f26752a130f45edeeb2806fa07d266021f4551 | refs/heads/master | 2021-01-01T18:32:05.037218 | 2017-07-25T10:03:23 | 2017-07-25T10:03:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,964 | py | #!/usr/bin/env python
"""GRR HTTP server implementation."""
import base64
import hashlib
import hmac
import os
import string
from cryptography.hazmat.primitives import constant_time
import jinja2
import psutil
from werkzeug import exceptions as werkzeug_exceptions
from werkzeug import routing as werkzeug_routing
... | [
"realbushman@gmail.com"
] | realbushman@gmail.com |
aae15824831f6469d3836adabfc037d5193eeb16 | 929d12e11ed2fb69476b9d07932e38662f0ce6fc | /Dynamic Programming/Stairs.py | e9fb854ec50f35f1ee4bcc1b07603b887d38558f | [] | no_license | arnabs542/Data-Structures-And-Algorithms | b8f341a31ca18044bf179294fbcb0fac1f835216 | ffcc2f8a25520ce37cd1f67e6225281c85141a65 | refs/heads/master | 2022-12-13T14:09:55.005341 | 2020-09-13T11:58:58 | 2020-09-13T11:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | """
Stairs
Problem Description
You are climbing a stair case and it takes A steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Problem Constraints
1 <= A <= 36
Input Format
The first and the only argument contains an integer A, the number... | [
"rishu1998jain@gmail.com"
] | rishu1998jain@gmail.com |
2658e2755f75056cbaec4ed36583d053bc2279d2 | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/pandas/tests/series/methods/test_values.py | 479c7033a3fb558708fefda5a00fc049c76e1b33 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 741 | py | import numpy as np
import pytest
from pandas import (
IntervalIndex,
Series,
period_range,
)
import pandas._testing as tm
class TestValues:
@pytest.mark.parametrize(
"data",
[
period_range("2000", periods=4),
IntervalIndex.from_breaks([1, 2, 3, 4]),
],
... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
d57b67f3ef83b39cb415ba6b42e6a797fcc8095e | 22a512da07e42b1df8d2dc433c60ee875fb8ad1c | /reading/migrations/0021_page_image_url.py | 440f0a638dd3f197726d1e831e71539e097c9e1f | [] | no_license | evg-cv/BookReader | 445eff31dc222f9a3b5f85b11a3f179b0bbde8bb | 7b7bd6406ecd36700dade10b4d754296af93b7b1 | refs/heads/master | 2023-02-07T21:19:55.237687 | 2020-12-27T19:05:46 | 2020-12-27T19:05:46 | 324,828,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Generated by Django 2.2.1 on 2019-06-17 11:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reading', '0020_auto_20190617_0727'),
]
operations = [
migrations.AddField(
model_name='page',
name='image_url',
... | [
"evgenijkolotov333@gmail.com"
] | evgenijkolotov333@gmail.com |
30defc417d8832a8a31f722f67acdb83be61bfcb | 2c574bcbc9d0e7862b2250296387ab3e145d357e | /social_rl/multiagent_tfagents/multiagent_gym_env.py | d6d64e571e03ccbb91ad8278e8b992f375b5ff8c | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | deepneuralmachine/google-research | 08f3336adf3e98cd7100448e65fe511687c44289 | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | refs/heads/master | 2023-02-12T14:10:42.692252 | 2021-01-06T07:20:23 | 2021-01-06T07:20:23 | 279,343,517 | 0 | 0 | Apache-2.0 | 2021-01-06T07:20:24 | 2020-07-13T15:38:18 | null | UTF-8 | Python | false | false | 4,222 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
8199a65662fa9f217417e2ba1b244e69baa11820 | fda201d7cca34e216a17d97665c8457c72e66cb2 | /httptester/tests.py | 26a0d2c542facf55487074e7502f2d27635de8c6 | [
"Apache-2.0"
] | permissive | SmartElect/SmartElect | 94ab192beb32320e9ae8ae222f90ee531037c1c6 | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | refs/heads/develop | 2020-12-26T04:04:42.753741 | 2019-07-17T17:08:25 | 2019-07-17T17:08:25 | 44,687,036 | 24 | 12 | Apache-2.0 | 2020-06-06T07:16:48 | 2015-10-21T15:47:07 | Python | UTF-8 | Python | false | false | 6,549 | py | from io import StringIO
from unittest.mock import patch
from django.conf import settings
from django.urls import reverse
from django.test import TestCase
from rapidsms.backends.database.models import INCOMING
from rapidsms.tests.harness import RapidTest
from .forms import MessageForm
from .storage import store_and_qu... | [
"vinod@kurup.com"
] | vinod@kurup.com |
1aa35f835efb10c1ce8a862beb4dd56797d5f538 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_6064.py | 8f17dd5b1b2092852a4ed5ab5cfac2270521c843 | [] | 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 | 87 | py | # Loading modules at runtime from functions
module_loader('datetime', globals, locals)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
7a5f34ce3879e26b1fefa3e1c7f02955bcfbc53a | a7e3ffcd2e011f091763370a66aab9bd04d4ffec | /OnlineMarket/apps/users/admin.py | a4d2dd9f59f54a10e0deb842a6f21b42a2a71499 | [] | no_license | jiangyuwei666/Shop | 0363a5c1c55c796e5ff56f07c663eea4bc08de71 | 78d7d4647f5c101c89fc5188808cddecf16d1ee6 | refs/heads/master | 2022-12-27T11:05:57.190555 | 2019-08-18T07:50:37 | 2019-08-18T07:50:37 | 189,996,974 | 0 | 0 | null | 2022-12-16T09:43:17 | 2019-06-03T12:02:22 | Python | UTF-8 | Python | false | false | 281 | py | from django.contrib import admin
# Register your models here.
from apps.users import models
class UserAdmin(admin.ModelAdmin):
list_display = ('id', 'username', "name", "phone", 'email', 'gender', 'birthday', 'head_img')
admin.site.register(models.UserProfile, UserAdmin)
| [
"739843128@qq.com"
] | 739843128@qq.com |
3671530c674cfdedc063c4738e5b1cfad3922ce2 | 6cf381f2824329c5ddf301c231886e8992dbe2da | /web_glossary_crawler.py | c3c0b025416008fde0c8dee58bab4b04d72e7e8d | [] | no_license | YhHoo/LiteratureReviewClassifier | 82f9ed8fbce3c95b0ea5e1544286f53f7fe5b08d | d17954700312fd3c5ad13f75b8760424e3d890e3 | refs/heads/master | 2021-09-10T08:44:06.878888 | 2018-03-23T05:33:06 | 2018-03-23T05:33:06 | 115,078,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,390 | py | # --------------------[Web Crawler 1]------------------------------
# This script is just to crawl all the glossary from the 3 websites
# to used in analyzing the pdf.
import requests
from bs4 import BeautifulSoup
def web_crawler_1():
# download the page source fr URL below and convert to text
url = 'https:/... | [
"hooyuheng@gmail.com"
] | hooyuheng@gmail.com |
0f4424130a542e0987654b6f812dc7765361a23b | 6646f6b92e9ff31f2f74b749ea12ace53cfc135c | /app/__init__.py | 99e1a1b66bcab55e8e18a267b547fdb44d33c2aa | [] | no_license | EricMontague/SponsorMatch | 0a6685edb44b2694824d3d3a4d15dfcb42fdb68e | 864aa3cfe25d74c2b97b9f09f45eb9fa10dac892 | refs/heads/master | 2022-12-08T22:43:21.684165 | 2021-03-19T00:50:06 | 2021-03-19T00:50:06 | 241,396,411 | 0 | 0 | null | 2022-12-08T03:38:23 | 2020-02-18T15:27:42 | Python | UTF-8 | Python | false | false | 2,772 | py | import stripe
from flask import Flask
from app.extensions import (
bootstrap,
db,
mail,
login_manager,
images,
configure_uploads,
patch_request_class,
)
from app.search import FlaskSQLAlchemyMiddleware, ElasticsearchClient
from config import CONFIG_MAPPER
import os
def register_blueprints(a... | [
"eric.g.montague@gmail.com"
] | eric.g.montague@gmail.com |
df1dc42570f881d00cc26c5bfcd6be05b14fdc84 | 648add68d9639a7831ef859d2f72004672ca4f0e | /{{cookiecutter.project_name}}/server/__init__.py | 6af37d46e424f630cd981f7c4aea9c78ba3f9755 | [
"MIT"
] | permissive | FrolovIlya78/wemake-django-template | 148dadcce245e967827b70eb1a04b9b2a7298f62 | 31f05fc49791364856ef0b447f650bd00d59414a | refs/heads/master | 2020-03-29T13:53:04.009141 | 2018-09-19T06:48:15 | 2018-09-19T06:48:15 | 149,986,948 | 0 | 0 | MIT | 2018-09-23T13:27:48 | 2018-09-23T13:27:48 | null | UTF-8 | Python | false | false | 171 | py | # -*- coding: utf-8 -*-
"""
This file specifies project version.
Consider using SemVer:
https://semver.org/
"""
# TODO: Change version on release
__version__ = '0.0.0'
| [
"mail@sobolevn.me"
] | mail@sobolevn.me |
b41112c7b1e9c3c1a34368e6f7168c2adc053e5c | f2171e2f2c78d616a381b3308d13a600d687587f | /x.Machine Learning Foundation/NumPy and Pandas Part 1/numpy_arrays.py | 0e0033bf30b2b2702890e640b965a55c3298ea5f | [] | no_license | vinkrish/ml-jupyter-notebook | bda01343118869bd2bfb44f3c3122853834d314a | ef5d05512b8387d7a3e494f024416f6ca7336827 | refs/heads/master | 2021-06-09T00:53:51.638551 | 2021-05-08T15:13:51 | 2021-05-08T15:13:51 | 168,104,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | import numpy as np
# First 20 countries with employment data
countries = np.array([
'Afghanistan', 'Albania', 'Algeria', 'Angola', 'Argentina',
'Armenia', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas',
'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium',
'Belize', 'Benin', 'Bhutan', 'Bolivia',
... | [
"vinaykrishna1989@gmail.com"
] | vinaykrishna1989@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.