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
7274d5d6acd06026bb0e3945cca73daf74e06bf3
4e163aa4aa0f4c4ddc22f74ae21b6fb1c85a7a09
/134.加油站.py
2f5d07a462e88ceb77dbdc591efd179e9402385b
[]
no_license
dxc19951001/Everyday_LeetCode
72f46a0ec2fc651168129720ad0b1e7b5c372b0b
3f7b2ea959308eb80f4c65be35aaeed666570f80
refs/heads/master
2023-08-03T09:22:08.467100
2023-07-23T17:08:27
2023-07-23T17:08:27
270,723,436
1
0
null
null
null
null
UTF-8
Python
false
false
1,093
py
# coding=utf-8 """ @project: Everyday_LeetCode @Author:Charles @file: 134.加油站.py @date:2023/1/10 15:35 """ class Solution(object): def canCompleteCircuit(self, gas, cost): """ :type gas: List[int] :type cost: List[int] :rtype: int """ # 贪心算法 ...
[ "870200615@qq.com" ]
870200615@qq.com
e1dcd2a11d7423ba518efc1697c3a148293ffa2a
5456502f97627278cbd6e16d002d50f1de3da7bb
/components/google/core/browser/DEPS
26e9743a04d2db628f4a7357a7d73e4ad5cf843a
[ "BSD-3-Clause" ]
permissive
TrellixVulnTeam/Chromium_7C66
72d108a413909eb3bd36c73a6c2f98de1573b6e5
c8649ab2a0f5a747369ed50351209a42f59672ee
refs/heads/master
2023-03-16T12:51:40.231959
2017-12-20T10:38:26
2017-12-20T10:38:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
135
include_rules = [ "+components/data_use_measurement/core", "+components/keyed_service/core", "+components/pref_registry", ]
[ "lixiaodonglove7@aliyun.com" ]
lixiaodonglove7@aliyun.com
bfe6d113c6248860931cd8d1870126fdd8a59693
2194b6c17f3153c5976d6ac4a9ab78211027adab
/otoroshi_admin_api_client/models/otoroshimodels_rs_algo_settings.py
d3bb0d40170f95f52921aa7d6749dcfb1d4114f7
[]
no_license
krezreb/otoroshi-admin-api-client
7fab5e873c9c5950d77fffce6bcf80d3fdf4c319
9b3156c11eac227024cfe4a26c0129618deb2c4d
refs/heads/master
2023-05-08T08:32:00.982987
2021-05-27T09:55:00
2021-05-27T09:55:00
371,324,636
0
0
null
null
null
null
UTF-8
Python
false
false
3,732
py
from typing import Any, Dict, List, Type, TypeVar, Union, cast import attr from ..models.null import Null from ..models.otoroshimodels_rs_algo_settings_type import OtoroshimodelsRSAlgoSettingsType from ..types import UNSET, Unset T = TypeVar("T", bound="OtoroshimodelsRSAlgoSettings") @attr.s(auto_attribs=True) cla...
[ "josephbeeson@gmail.com" ]
josephbeeson@gmail.com
f38e52cda7f5a3f771a65f7eeb92d6375981bb4a
f25440c9f9fd470ba44394a36d5659dd47ee8800
/tests/conftest.py
6ee0b688b6b226162706d75c8e1acd7eadcb3541
[]
no_license
kqf/hubmap
75010d9109f8b8656e244179de5de226be584d5b
37b3d839f0ad3f47dc39c1b9b036cb1acc27ca2c
refs/heads/master
2023-02-20T04:06:00.145932
2021-01-23T07:56:13
2021-01-23T07:56:13
317,635,257
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
import pytest import tempfile from pathlib import Path from models.preprocess import write from models.mc import make_blob, blob2image @pytest.fixture def size(): return 256 @pytest.fixture def fake_dataset(size=256, nfiles=5): with tempfile.TemporaryDirectory() as dirname: path = Path(dirname) ...
[ "noreply@github.com" ]
kqf.noreply@github.com
5fd5f69280f7e2c8dfa60b2c1d5a770471cc61ab
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2520/60790/274856.py
18e4e0a2884251d28a2c4c3bc79d6f4d2f5ba4c8
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
168
py
R=int(input()) C=int(input()) r0=int(input()) c0=int(input()) print(sorted([[i, j] for i in range(R) for j in range(C)], key=lambda x: abs(x[0] - r0) + abs(x[1] - c0)))
[ "1069583789@qq.com" ]
1069583789@qq.com
b903d4dafdaad69917379130429923b552115ff8
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-workbench-ide/aliyunsdkworkbench_ide/request/v20210121/AddEnvironmentRequest.py
0d20b6717b9971baad3c4aba3f7c1bdd0b316b36
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
2,700
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...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
62c20ca9fb15d381b187ac793e03b1b5242e6d37
495b0b8de3ecc341511cdb10f11368b35b585bea
/SoftLayer/CLI/modules/filters.py
1e4274ac04ae064468c5d1d0736b540b8f35416c
[]
no_license
hugomatic/softlayer-api-python-client
cf6c1e6bfa32e559e72f8b0b069339ae8edd2ede
9c115f0912ee62763b805941593f6dd50de37068
refs/heads/master
2021-01-18T11:09:19.122162
2013-04-09T01:44:51
2013-04-09T01:44:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
996
py
""" usage: sl help filters Filters are used to limit the amount of results. Some commands will accept a filter operation for certain fields. Filters can be applied across multiple fields in most cases. Available Operations: Case Insensitive 'value' Exact value match 'value*' Begins with value '*value...
[ "k3vinmcdonald@gmail.com" ]
k3vinmcdonald@gmail.com
af585888517df64c46a62653fa6ff3912e6b9f0d
508c5e01aa7dce530093d5796250eff8d74ba06c
/code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/tests/test_schema_get.py
d39692be0008269bf1791e585f1e0e92b09181fa
[ "MIT", "PostgreSQL" ]
permissive
jhkuang11/UniTrade
f220b0d84db06ff17626b3daa18d4cb8b72a5d3f
5f68b853926e167936b58c8543b8f95ebd6f5211
refs/heads/master
2022-12-12T15:58:30.013516
2019-02-01T21:07:15
2019-02-01T21:07:15
166,479,655
0
0
MIT
2022-12-07T03:59:47
2019-01-18T22:19:45
Python
UTF-8
Python
false
false
2,132
py
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2017, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## from pgadmin.brow...
[ "jhkuang11@gmail.com" ]
jhkuang11@gmail.com
6c16d977d5da188d8203250fd478cfac76c891cc
85c9d6fdff58b9cb40f5fdb9f01ff1a0dd386113
/bot_tests/reminder.py
ef7aa772e1bbf39b40113c0d3d7e94d3036748d1
[]
no_license
jmccormac01/karmafleet
5874644c496b0bbcb2037404ad7ed43a1e4caaae
57ebefbbc6ec3aae634cd9196950f103d48eae95
refs/heads/master
2020-03-25T17:24:39.187176
2019-04-20T18:17:05
2019-04-20T18:17:05
143,976,406
0
0
null
null
null
null
UTF-8
Python
false
false
1,922
py
""" Bot for converting EVE times to local timezones """ from datetime import datetime from pytz import timezone import discord from discord.ext import commands import asyncio # pylint: disable=invalid-name Client = discord.Client() client = commands.Bot(command_prefix="!") reminders = {} async def reminder_handler(r...
[ "jmccormac001@gmail.com" ]
jmccormac001@gmail.com
41dfb043debbb31d564d9bdcdda0dd997a4a98a5
dca5705c291da76cbfaf3897680eb0ae2eb56e2b
/aayushg_assgn/myauth/views.py
face35c4566395dead6248d30c8430cf8b2fedf8
[]
no_license
gadia-aayush/Django-API-1
41a40598653009def8ca5bda9a578a26b8bf9115
307202ad0aa4357408e756cd74f3723e74fca253
refs/heads/master
2022-12-13T23:09:45.960562
2020-08-30T19:36:16
2020-08-30T19:36:16
273,763,155
0
0
null
null
null
null
UTF-8
Python
false
false
5,723
py
from django.shortcuts import render from django.contrib.auth.models import User from django.shortcuts import redirect from django.contrib.auth import authenticate, login, logout from django.http import JsonResponse from rest_framework.response import Response from rest_framework.views import APIView from rest_framework...
[ "gadia.aayush@gmail.com" ]
gadia.aayush@gmail.com
ab04985a81690a29fc99f93e08d4a4ec4e364ad5
847273de4b1d814fab8b19dc651c651c2d342ede
/.history/Sudoku_II_004_20180618143456.py
c999da2e6ae97112548cc81b5e4e3de4c117dc62
[]
no_license
Los4U/sudoku_in_python
0ba55850afcffeac4170321651620f3c89448b45
7d470604962a43da3fc3e5edce6f718076197d32
refs/heads/master
2020-03-22T08:10:13.939424
2018-07-04T17:21:13
2018-07-04T17:21:13
139,749,483
0
1
null
null
null
null
UTF-8
Python
false
false
3,415
py
from random import randint # Sudoku1 almost solved sudoku1 = [ [5, 9, 8, 6, 1, 2, 3, 4, 7], [2, 1, 7, 9, 3, 4, 8, 6, 5], [6, 4, 3, 5, 8, 7, 1, 2, 9], [1, 6, 5, 4, 9, 8, 2, 7, 3], [3, 2, 9, 7, 6, 5, 4, 1, 8], [7, 8, 4, 3, 2, 1, 5, 9, 6], [8, 3, 1, 2, 7, 6, 9, 5, 4], [4, 7, 2, 8, 5, 9, 6,...
[ "inz.kamil.wos@gmail.com" ]
inz.kamil.wos@gmail.com
c75ea51b954cef8081502d553948e07b0487abe9
bf813d2b877fb8ba62feb4263484db3d0f26d5cd
/early-phd/map_to_flux.py
1c2d0eab20e2c6fa5e1fe3228a8f9507a9b7ba48
[]
no_license
9217392354A/astro-scripts
1e8e8c827097a877518d1f3e10870a5c2609417c
cd7a175bd504b4e291020b551db3077b067bc632
refs/heads/master
2021-01-13T00:40:57.481755
2016-03-25T17:04:28
2016-03-25T17:04:28
54,730,096
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
#Program created by Chris Fuller to test a function for extracting flux's from a fits file using appature photomotry #import stuff from numpy import * import numpy import scipy import math import sys import os from os.path import join as pj #File stuff cat = "bigcoma.csv" catfolder = "/Users/chrisfuller/Dropbox/coma...
[ "chrisfuller@Chriss-MBP.lan" ]
chrisfuller@Chriss-MBP.lan
8d8b46573115c470483434c30bc2fd15efceb159
73785aea08895d0fc15e914ce329716712f057ec
/recipes/errorAnal.py
9208c6a48ac906004212b9520360e38dbc9b8806
[]
no_license
Peder2911/ModelComp
5e93e6db7fbc809e7444448729a91ff7a762b0cc
91ee3835ddc560adeb4af457953905aaeca79cd6
refs/heads/master
2020-05-20T05:09:01.877547
2019-05-18T13:37:34
2019-05-18T13:37:34
185,397,609
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
ppSentences(sentences,y,x): for i,s in enumerate(errorSents): print('#'*38) print(f'{s} - pred: {prediction[err][i]} | actual: {actual[err][i]}') print('\n')
[ "pglandsverk@gmail.com" ]
pglandsverk@gmail.com
99cd43a8c940db281d4db4d33d06b1cee795bc61
c5291e50a3c72c885922378573a0ad423fcedf05
/analysis/data/urls.py
e7638f31b2b04491d30e6f29d5a4d9826f2a05c3
[]
no_license
raghurammanyam/django-projects
bcc3ed6285882af437a2995514cef33760fb063e
dd20ae354f7f111a0176a1cc047c099bd23e9f05
refs/heads/master
2022-12-12T19:22:31.698114
2018-12-09T09:41:45
2018-12-09T09:41:45
137,443,359
0
0
null
2022-11-22T03:01:07
2018-06-15T05:08:15
Python
UTF-8
Python
false
false
196
py
from django.conf.urls import url from django.urls import path from .views import test,get from django.http import HttpResponse urlpatterns = [ url(r'^date/',test), url(r'^get/',get) ]
[ "manyamraghuram@gmail.com" ]
manyamraghuram@gmail.com
f231f73dec833a474cefcee2707d8742f92f9d51
125bc51efb95f383257e7bdb50ae74e5dc05b7f7
/src/belajarIntegerString.py
f28765c84ddfefc5911c0710cd851199053fcd21
[]
no_license
frestea09/learn_ch1_python
f9688fffda5f0fa312b82bd25081b986fa0779e9
510ea59bf85ec024ebc473db2533e92becaefbf3
refs/heads/master
2020-05-26T18:22:31.171688
2019-05-26T05:42:08
2019-05-26T05:42:08
188,334,119
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
from __future__ import print_function def main(): variabelNama = input('nama : ') variabelInteger = int(input('Umur')) print('Nama anda %s dan umur anda %d'%(variabelNama,variabelInteger)) if __name__ == "__main__": main()
[ "ilmanfrasetya@gmail.com" ]
ilmanfrasetya@gmail.com
a6d6d50572836ba4614154dce36cf5e2c21f9c51
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02679/s613915096.py
fec86a56bc93ae2efcf62264eb570f7a448a4ed4
[]
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
667
py
import math, collections N = int(input()) AB = [[int(_) for _ in input().split()] for _ in range(N)] mod = 10**9 + 7 C = collections.Counter() gcd = math.gcd a0 = 0 for a, b in AB: if a == b == 0: a0 += 1 elif a == 0: C[0, -1] += 1 else: g = gcd(a, b) a //= g b //= g ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8951afe2b51d654fd469ed7fd936879e3610aa30
35894bca47cf0c9a51a05caf7b56a0d69c05b033
/04_subrotinas_numpy/25_fibonacci.py
1067f8b8abc1c15bc44a985e9b4f892471d34f46
[]
no_license
alcebytes/Phyton-Estudo
0a2d33f5f3e668e6ab2f99e5e4499545a3bc1273
a3f9a0b3e0a91d71a9359480d6ec17e692572694
refs/heads/master
2023-01-14T17:24:16.486956
2020-10-08T02:02:02
2020-10-08T02:02:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
942
py
import time as time num_iter = int(input("Digitar o valor do número máximo para a sequência de Fibonacci = ")) tempo_inicio = time.time() #tempo_inicio_CPU = time.clock() #ABSOLETO tempo_inicio_CPU = time.process_time() tempo_inicio_CPU_2 = time.perf_counter() # f(0) f = [] f.append(0) print(f) # f(1) f.append(1)...
[ "x_kata@hotmail.com" ]
x_kata@hotmail.com
9a0f0433298aaf2b0b0aa33f5a64b0273f639e93
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
/eXe/rev2669-2722/left-trunk-2722/twisted/internet/iocpreactor/udp.py
3bf7a5bba392de8252482bdf0e1ba0600cfe27fa
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
joliebig/featurehouse_fstmerge_examples
af1b963537839d13e834f829cf51f8ad5e6ffe76
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
refs/heads/master
2016-09-05T10:24:50.974902
2013-03-28T16:28:47
2013-03-28T16:28:47
9,080,611
3
2
null
null
null
null
UTF-8
Python
false
false
6,644
py
import socket from twisted.internet import interfaces, defer, error, protocol, address from twisted.internet.abstract import isIPAddress from twisted.persisted import styles from twisted.python import log, failure, reflect from ops import ReadFileOp, WriteFileOp, WSARecvFromOp, WSASendToOp from util import StateEventMa...
[ "joliebig@fim.uni-passau.de" ]
joliebig@fim.uni-passau.de
1d539066706ca4f69d3130d49688deb922c477b3
98311c7b2b2257f14f0f4a0657363e893872798e
/project/src/python/practicum.py
e3f1dfcf9ef76f4b71a4dd1106d26832dc48802f
[ "MIT" ]
permissive
aslupin/Yak-Ngaen-Project
fed9a264a863e1174c00ec8ad360f1c03422f393
c91b3cc83d2eda22b62fe877276bdd1a8a1b24fd
refs/heads/master
2022-01-28T02:44:39.385903
2019-05-09T13:36:04
2019-05-09T13:36:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,616
py
import usb # RQ_SET_LED = 0 # RQ_SET_LED_VALUE = 1 # RQ_GET_SWITCH = 2 # RQ_GET_LIGHT = 3 RQ_GET_SOUND_PLAYER_I = 1 RQ_GET_SOUND_PLAYER_II = 2 #################################### def find_mcu_boards(): ''' Find all Practicum MCU boards attached to the machine, then return a list of USB device handles for a...
[ "poon_arsene_lupin@hotmail.com" ]
poon_arsene_lupin@hotmail.com
5dcf1531f3266b5a1c867bd6a62ba36a36b2bbc2
7b08ceb8c901a09e41d4a67804e2adf94142cb17
/description2process/__init__.py
2f99a8019b7c0dace78658a646cc5d28bfb7d318
[]
no_license
simrit1/Description2Process
1e7cfcc4dc6bb762d69f27bbe1eedd4e0cef6a38
223372f3588f7ac67537eae3012667951b5543e0
refs/heads/master
2023-08-25T23:12:50.838804
2019-05-16T16:51:51
2019-05-16T16:51:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,370
py
import tensorflow as tf # We need to enable eager execution for inference at the end of this notebook. tfe = tf.contrib.eager tfe.enable_eager_execution() TFVERSION='1.13' import os os.environ['TFVERSION'] = TFVERSION # Import library from description2process import data_generation from description2process import c...
[ "noreply@github.com" ]
simrit1.noreply@github.com
d008e616c943f18e5f7f5c090bc112e713db99cf
c4b7b5a9c56a9b6394a14704d2faf76754175473
/rooms/templatetags/is_booked.py
da615b5d82465d9cb146e16beb8eeaefaf53bbc4
[]
no_license
seungjinhan/airbnb_clone_django
71a15e5242bad28fd96d5f47652a049a77f12f61
4c38780746409ea1ed9b4f5b02abca60326752c2
refs/heads/master
2022-12-02T15:14:39.341441
2020-08-23T13:50:42
2020-08-23T13:50:42
280,878,495
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
import datetime from django import template from reservations import models as reservation_model register = template.Library() @register.simple_tag def is_booked(room, day): if day.number == 0: return False try: date = datetime.datetime( year=day.year, month=day.month, day=day.numb...
[ "hanblues@gmail.com" ]
hanblues@gmail.com
e5f7852757d20d9217562defb3d22da0c1893cb6
5e809acc62b080f1adad2c34e647241cdc5ad297
/myenv/bin/markdown_py
fa2c63491a1647ccda5e1725538898c521cfc6a8
[ "MIT" ]
permissive
RootenberG/My-blog-project
f520af79a2f3eb416b3dadee46813a812ce9d53d
7ef4670cfa9d54d9345d52ca008aae5fed5605bc
refs/heads/master
2020-08-15T20:04:29.478049
2020-02-08T21:57:46
2020-02-08T21:57:46
215,400,930
0
0
MIT
2019-10-30T20:54:38
2019-10-15T21:34:30
Python
UTF-8
Python
false
false
255
#!/home/den/devspace/My-blog-project/myenv/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from markdown.__main__ import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "savichevdenis244@gmail.com" ]
savichevdenis244@gmail.com
cb87f2390f4328b284144e4fa1564341cb8bdcf7
c27c51f5c33e0431dbe7db6e18c21b249d476cfa
/OpenSource_Python_Code/nova-2013.2/nova/tests/api/ec2/test_faults.py
36cee0663bf4ff4b4c640f0b081a869d016d26a6
[ "Apache-2.0" ]
permissive
bopopescu/Python_Stuff
9bef74e0db17bb5e3ba2d908ced01ee744820d80
9aa94a0fa5e4e802090c7b29ec88b840e304d9e5
refs/heads/master
2022-11-20T06:54:36.581623
2017-12-04T18:56:02
2017-12-04T18:56:02
282,171,169
0
0
null
2020-07-24T08:54:37
2020-07-24T08:54:36
null
UTF-8
Python
false
false
1,914
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
[ "thelma1944@gmail.com" ]
thelma1944@gmail.com
8de31727528745859574b0a71d4d7f4265c46740
2718b6f68a717b24cd6238a20d4116b3dea3201b
/BlogTemplate/mysite_env/mysite/apps/blog/views.py
39b584eea388bcf248d6a6d595bae4840b4bf60b
[]
no_license
tminlun/BlogTemplate
e94654e01e170f27c97c197c898c102518ad13ab
d475587fdd9e111961bbfa56666255d38cfdc056
refs/heads/master
2022-12-11T00:51:53.019391
2018-12-05T14:54:04
2018-12-05T14:54:04
138,825,320
0
0
null
2022-12-08T02:25:29
2018-06-27T03:30:20
Python
UTF-8
Python
false
false
4,519
py
from django.shortcuts import render,get_object_or_404 from django.core.paginator import Paginator from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.db.models.aggregates import Count from read_statistics.utils import read_statistics_once_read from comment.models impo...
[ "1272443075@qq.com" ]
1272443075@qq.com
4da9c1e6ca004b93d1f275e2bd86ea3be8e69b31
52bb1d25a8c146b81b876343f861025e034fa964
/roglick/dungeon/utils.py
fcf6a2a864c5ae7cc6c50f2c302b33b63529bf23
[ "MIT" ]
permissive
Kromey/roglick
b3fc7a6bce7e60a150c9a9ed1cc825ef3988cf8a
b76202af71df0c30be0bd5f06a3428c990476e0e
refs/heads/master
2020-12-14T15:49:53.163385
2016-05-24T16:29:06
2016-05-24T16:29:06
21,549,421
6
0
null
null
null
null
UTF-8
Python
false
false
2,519
py
from roglick.engine import random from roglick.utils import clamp def smoothstep(a, b, x): """Basic S-curve interpolation function. Based on reference implementation available at https://en.wikipedia.org/wiki/Smoothstep """ x = clamp((x - a)/(b - a), 0.0, 1.0) return x*x*(3 - 2*x) def smooth...
[ "travisvz@gmail.com" ]
travisvz@gmail.com
c2a6d24f20bb1c2478b4feea8182623aca53bac4
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_14413.py
5e67c83692878ae8becbb59fe8019e05781959d1
[]
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
140
py
# changing type of a entry in dictionary throws error d = {'today': datetime.today()} d['today'] = d['today'].strftime(<your format>)
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
eeb85c0763b4b58838c030ceccd1de9ec42a82e6
5cea11c9373d997430b523227ce81b61972ad1e3
/tests/test_client_events.py
bd3bc8ac4bf3a96cd62673408ee09427626646ff
[ "BSD-3-Clause" ]
permissive
tinylambda/grpclib
fcc0d4f5723fe36359ceb9655764e9a37c87ebc1
948e32a29a4ad82ebbfdbb681f7a797f6233bff3
refs/heads/master
2023-07-15T16:19:59.776603
2021-08-25T19:56:10
2021-08-25T19:56:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,234
py
import pytest from multidict import MultiDict from google.rpc.error_details_pb2 import ResourceInfo from grpclib.const import Status from grpclib.events import listen, SendRequest, SendMessage, RecvMessage from grpclib.events import RecvInitialMetadata, RecvTrailingMetadata from grpclib.testing import ChannelFor from...
[ "vladimir@magamedov.com" ]
vladimir@magamedov.com
31dd5fd0705bfebccf299f10eb6ba594038b885d
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/5ejvPTQeiioTTA9xZ_0.py
9b5d0b04aa8e5dca2af5037100305f74b9f4c108
[]
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
395
py
""" Create a function that checks if the argument is an integer or a string. Return `"int"` if it's an integer and `"str"` if it's a string. ### Examples int_or_string(8) ➞ "int" int_or_string("Hello") ➞ "str" int_or_string(9843532) ➞ "int" ### Notes Input will either be an integer or a str...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
7b288b67b9fa3473f2fb3c72085b6de7ea893109
6cecdc007a3aafe0c0d0160053811a1197aca519
/apps/receiver/management/commands/generate_submissions.py
ae672ba20a318c1fc46d7ecce22a17363b20c062
[]
no_license
commtrack/temp-aquatest
91d678c927cc4b2dce6f709afe7faf2768b58157
3b10d179552b1e9d6a0e4ad5e91a92a05dba19c7
refs/heads/master
2016-08-04T18:06:47.582196
2010-09-29T13:20:13
2010-09-29T13:20:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,172
py
""" This script generates all the necessary data to synchronize with a remote CommCareHQ server on that server. This is only really useful if you intend to manually scp/rsync data to your local server, which requires a login to the remote server. So this is not the standard synchronization workflow (but is necess...
[ "allen.machary@gmail.com" ]
allen.machary@gmail.com
5a5a5583911ddb9db5402f6b3d6030070b115f57
1e50f1643376039ca988d909e79f528e01fa1371
/leetcode/editor/cn/292.nim-游戏.py
174da887a6b080c9b99b41e140bf445662a9f611
[]
no_license
mahatmaWM/leetcode
482a249e56e2121f4896e34c58d9fa44d6d0034b
4f41dad6a38d3cac1c32bc1f157e20aa14eab9be
refs/heads/master
2022-09-04T17:53:54.832210
2022-08-06T07:29:46
2022-08-06T07:29:46
224,415,259
0
0
null
null
null
null
UTF-8
Python
false
false
981
py
# # @lc app=leetcode.cn id=292 lang=python3 # # [292] Nim 游戏 # # https://leetcode-cn.com/problems/nim-game/description/ # # algorithms # Easy (69.45%) # Likes: 326 # Dislikes: 0 # Total Accepted: 50K # Total Submissions: 71.9K # Testcase Example: '4' # # 你和你的朋友,两个人一起玩 Nim 游戏:桌子上有一堆石头,每次你们轮流拿掉 1 - 3 块石头。 拿掉最后一块石头...
[ "chrismwang@tencent.com" ]
chrismwang@tencent.com
22f4ffa79f304c929e6c0680c0a2228d0e15dd2b
dbf2d3f8eb11d04123894e398446b56ca791c9f6
/examples/02.py
c9847666ba51a1574e379280d847d651e7982b21
[]
no_license
podhmo/nendo
ed8d9a62ab23f7409a8ce519f28deff7d3642942
841ec7a990019596c769a2f581a1190aeb8cbd56
refs/heads/master
2021-01-22T17:47:58.964323
2015-06-28T11:37:38
2015-06-28T11:37:38
37,828,656
1
0
null
null
null
null
UTF-8
Python
false
false
550
py
# -*- coding:utf-8 -*- import logging logger = logging.getLogger(__name__) """ -- select explicitly SELECT open_emp_id, product_cd FROM account ORDER BY open_emp_id, product_cd; """ from nendo import Query, make_record, render from nendo.value import List Account = make_record("account", "account_id product_cd open_...
[ "podhmo+altair@beproud.jp" ]
podhmo+altair@beproud.jp
e5ae86739f26139d2a56b19277ea7832e21d41bd
f74dd098c3e665d8f605af5ebe7e2874ac31dd2f
/aiogithubapi/namespaces/user.py
1d1bd8b8cab4928b70f10f1d9836568e6cc2db64
[ "MIT" ]
permissive
ludeeus/aiogithubapi
ce87382698827939aaa127b378b9a11998f13c06
90f3fc98e5096300269763c9a5857481b2dec4d2
refs/heads/main
2023-08-20T19:30:05.309844
2023-08-14T20:24:21
2023-08-14T20:24:21
198,505,021
21
20
MIT
2023-09-11T06:12:10
2019-07-23T20:39:53
Python
UTF-8
Python
false
false
2,993
py
""" Methods for the authenticated user namespace https://docs.github.com/en/rest/reference/users#get-the-authenticated-user """ from __future__ import annotations from typing import Any, Dict from ..const import GitHubRequestKwarg from ..models.organization import GitHubOrganizationMinimalModel from ..models.reposit...
[ "noreply@github.com" ]
ludeeus.noreply@github.com
88c38efa8ff0a8056b6fc309011e034888426fa0
26acc7e23024098661a42da37e2cb4ed56c21b44
/dgp/genera/load/loader.py
daf5ca8acee012f9dd328fd48ef0fb2baf85a38a
[ "MIT" ]
permissive
dataspot/dgp
80536c0e296570c109511de3dae6e0297bb8b0fd
e86d604c8af5534985f9b788ba809facbc325152
refs/heads/master
2023-03-16T05:15:38.362702
2023-03-09T07:07:28
2023-03-09T07:07:28
169,378,970
1
0
null
null
null
null
UTF-8
Python
false
false
2,879
py
import os import json import requests from hashlib import md5 from dataflows import Flow, load, dump_to_path from dataflows.base.schema_validator import ignore from ...core import BaseDataGenusProcessor, Required, Validator, ConfigurableDGP from .analyzers import FileFormatDGP, StructureDGP from ...config.consts impo...
[ "adam.kariv@gmail.com" ]
adam.kariv@gmail.com
a0bcf1146515c5da0c64441490de32599b91f02e
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/12/01/14.py
fd0cb48a6c9d059526138c98e8ba82d309f6802b
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,517
py
#!/usr/bin/python2 ### Google Code Jam template # Futures from __future__ import division from __future__ import with_statement from __future__ import print_function ## Library # @memoized def memoized(func): mem = {} def wrapped(*args): if args not in mem: mem[args] = func(*args) re...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
5efd766bb70d94a197cb80cb858d7211c005cb27
4de2b914e4607dd0ca7eec60b21026af6b6c4797
/Old_work/valdambrini_cheli_papallo_tarmati/catkin_ws/build/navigation/clear_costmap_recovery/catkin_generated/pkg.develspace.context.pc.py
cb8deb76dfb119ed5c90cb0df8ac2a426a6fc434
[]
no_license
ABiondi12/project_sgn
5203d21f2753dcdf7c53b153324dc75bc1221549
570b7be0b01e7c83cb927945e532d6a2213ebf65
refs/heads/main
2023-06-18T12:59:18.337096
2021-07-21T10:27:08
2021-07-21T10:27:08
307,121,028
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/robot/catkin_ws/src/navigation/map_server/include".split(';') if "/home/robot/catkin_ws/src/navigation/map_server/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;nav_msgs;tf2".replace(';'...
[ "petracci.francesco@gmail.com" ]
petracci.francesco@gmail.com
0a948854e027da6e1d313f2c60f11f0684e5b0f2
e7e497b20442a4220296dea1550091a457df5a38
/main_project/AdHot/monitorsystem/monitorsystem/controllers/zoom_graph.py
4e70d23eb63430c0430abba719d0b4142562c92e
[]
no_license
gunner14/old_rr_code
cf17a2dedf8dfcdcf441d49139adaadc770c0eea
bb047dc88fa7243ded61d840af0f8bad22d68dee
refs/heads/master
2021-01-17T18:23:28.154228
2013-12-02T23:45:33
2013-12-02T23:45:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,518
py
import logging import rrdtool from pylons import request, response, session, tmpl_context as c, url from pylons.controllers.util import abort, redirect from monitorsystem.lib.base import BaseController, render from monitorsystem.lib.app_globals import Globals as g from monitorsystem.lib.get_chart_info import GetAll...
[ "liyong19861014@gmail.com" ]
liyong19861014@gmail.com
d1a37f55af2498bbddef30e64ab5cf173cdc0d1e
7f2612e5132e1583e5ba9758f299a8f301f0dc70
/FB/257-binary-tree-paths.py
eada330e2dcde3095e5ceb1523f68ee52d0cba47
[]
no_license
taeheechoi/coding-practice
380e263a26ed4de9e542c51e3baa54315127ae4f
9528b5e85b0ea2960c994ffea62b5be86481dc38
refs/heads/main
2022-07-09T11:22:18.619712
2022-06-28T14:55:51
2022-06-28T14:55:51
447,082,854
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
# https://leetcode.com/problems/binary-tree-paths/ # Input: root = [1,2,3,null,5] # Output: ["1->2->5","1->3"] # Example 2: # Input: root = [1] # Output: ["1"] class Solution: def binaryTreePath(self, root): elements = [] def dfs(node, s): if not node: return if node.left ...
[ "dadac76@hotmail.com" ]
dadac76@hotmail.com
ebe6ba66f1743f17d66488c547d62eb1dd646dc3
a972c5de4144940d1c5903bb5636df4bcaf4b283
/ejerciciokenwin/__init__.py
bcbe09dd494756b2f4afdb3392ceb03bc3b19d99
[]
no_license
apocalipsys/ejerciciopyramid-2020
5dafe2926bb78338eb1eca17d2be8f6ef2eba8fa
2411601f4e2e0dd9aa49951251f9acfe73d43777
refs/heads/master
2020-12-21T00:51:38.700245
2020-02-07T07:24:51
2020-02-07T07:24:51
236,258,661
3
1
null
2020-02-05T06:29:14
2020-01-26T02:42:08
Python
UTF-8
Python
false
false
802
py
#This is a config file, necesary to include the views, moludes, models and so on #Este archivo de configuracion sirve para incluir las vistas, modelo de base de datos, modulos etc. from pyramid.config import Configurator from pyramid.session import SignedCookieSessionFactory import os static_dir = os.path.abspath(os....
[ "martinvargas82@gmail.com" ]
martinvargas82@gmail.com
05316d88a35289d491a107f6328cede2a1c6eb9f
4eaa1b9b08914e0a2cc9276363e489ccef19d3a2
/ch9/electric_car.py
a3903742781c7a56beb7c524f66ba35a4bb8f545
[]
no_license
melihcanyardi/Python-Crash-Course-2e-Part-I
69b3b5b3f63cdbd7be6fabd6d4f2ddfd9a3434a3
0c9b250f512985c04b2c0397f3afaa8bf3a57f17
refs/heads/main
2023-03-12T21:43:14.012537
2021-03-03T19:23:41
2021-03-03T19:23:41
344,236,741
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
from car import Car class Battery(): """A simple attempt to model a battery for an electric car.""" def __init__(self, battery_size=75): """Initialize the battery's attributes.""" self.battery_size = battery_size def describe_battery(self): """Print a statement describing the bat...
[ "melihcanyardi@hotmail.com" ]
melihcanyardi@hotmail.com
4331f303b88abc1007c44aedec54876888a6b860
1a74a9ec3e51e7776e5c15e98c66b4cb5a9f8144
/source/webapp/views/base_views.py
3bf9e6278427c473397fb2e32f09ab53e41e9079
[]
no_license
Aitmatow/issue_tracker
d66e47a7f633a455e28a1921c5220c60a4c5907f
96f482be1251d9c557446bc0bfa0e949cc3129d9
refs/heads/master
2022-11-26T19:59:12.929073
2019-12-09T12:52:13
2019-12-09T12:52:13
211,033,057
0
0
null
2022-11-22T04:47:23
2019-09-26T07:57:27
Python
UTF-8
Python
false
false
4,098
py
from django.db.models import Q from django.shortcuts import get_object_or_404, render, redirect from django.utils.http import urlencode from django.views import View from django.views.generic import TemplateView, ListView class DetailView(TemplateView): context_key = 'objects' model = None def get_contex...
[ "aitmarowd@gmail.com" ]
aitmarowd@gmail.com
466c50bd91fc4be61abb950479c4d47fb1041ed9
8ed80561e1b3c0bcdb6201cae8af845d5da23edc
/guppe/exercicios_secao_8/ex_10.py
62a551fc304de9116280ee458a9d1eaa9680822e
[]
no_license
Fulvio7/curso-python-guppe
42d5a1ecd80c1f3b27dc3f5dad074a51c9b774eb
98966963f698eb33e65ed58a84f96e28f675848a
refs/heads/main
2023-08-28T13:31:12.916407
2021-10-09T19:03:17
2021-10-09T19:03:17
415,393,122
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" 10- Faça uma função que receba dois números e retorne qual deles é o maior. """ def retorna_maior(n1, n2): if n1 > n2: return f'{n1} é maior.' elif n2 > n1: return f'{n2} é maior.' return 'Os dois números são iguais! XP ' print('Descubra o maior número') num1 = int(input('Num1 = ')) ...
[ "fulvio.barichello@gmail.com" ]
fulvio.barichello@gmail.com
3518fd2cc14d2ce5ab3297741d351dc4635fe976
5a04919d14d3f34815987a202d520609c17cc605
/problems/forritun/hefja_i_veldi/tests/gen.py
1397acd8903770e81c30e87255b3e79a5210b121
[]
no_license
SuprDewd/forritunarverkefni
49e9864c6efaa192747b3f004f79a53a4519c10a
702819f9fa2d106fede4ff2284a00b5141662493
refs/heads/master
2021-01-15T11:14:44.316308
2014-08-09T15:09:09
2014-08-09T15:09:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
import math tests = [ (10, 4), (10, -4), (15, -1), (1, 4), (0, 3), (1, -2), (-1, 2), (-1, 3), (-1, 0), (13, 2), (-13, 2), (13, 3), (-13, 3), (-5, -6) ] for i, t in enumerate(tests): with open('T%d.in' % i, 'w') as f: f.write('%d %d\n' % tuple(t)) with open('T%d.out' % i, 'w') as f: f.write('%f\n' % math.pow(t[...
[ "suprdewd@gmail.com" ]
suprdewd@gmail.com
1dfaa8cf11a2d14dd19b5bf31b58f44bf15e34a0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03379/s477030145.py
93534519416891d22f6c4c276609f50101689a1d
[]
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
539
py
def main(): n = int(input()) x_lst = list(map(int, input().split())) x_sorted_lst = sorted(x_lst) median1 = x_sorted_lst[n // 2 - 1] median2 = x_sorted_lst[n // 2] if median1 == median2: lst = [median1] * n else: lst = [] for i in range(n): x = x_lst[i]...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1a19af9a0fadedcb4bd7e45597b3e62571e51821
3c6b0521eb788dc5e54e46370373e37eab4a164b
/holistic_eval/roberta_mnli/examples/scripts/scripts/run_experiment.py
9d5f149859a049824f329d3eeca723f861738f66
[ "Apache-2.0" ]
permissive
y12uc231/DialEvalMetrics
7402f883390b94854f5d5ae142f700a697d7a21c
f27d717cfb02b08ffd774e60faa6b319a766ae77
refs/heads/main
2023-09-02T21:56:07.232363
2021-11-08T21:25:24
2021-11-08T21:25:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,598
py
import os import smtplib from email.mime.text import MIMEText mail_host = 'smtp.163.com' mail_user = 'aigu3525' mail_pass = 'WOaibaobao' sender = 'aigu3525@163.com' receivers = ['liuyixian0317@gmail.com'] def run_training(ex_title, type, paras_dict, node, GPU, logger=None , print_=False): print('_'*100) if ty...
[ "yitingye@cs.cmu.edu" ]
yitingye@cs.cmu.edu
53b6f743c52e16229449c9f99dc18438957c017f
4290daae480aabfc35c85374a468085a6fa1a1ac
/ctt-server/openapi_server/test/test_result_controller.py
652d6ffdfa52d2b04f99be41db1f222c6a23aec6
[ "Apache-2.0" ]
permissive
pjakovits/radon-ctt
01c8bc760372f6887798722c291674971b10a86d
8c73e05a83ef66bd6e9dba6608d2bee089df7e86
refs/heads/master
2021-05-20T19:13:35.919410
2021-03-28T17:07:20
2021-03-28T17:07:20
252,386,523
0
0
Apache-2.0
2020-04-02T07:34:24
2020-04-02T07:34:23
null
UTF-8
Python
false
false
2,596
py
# coding: utf-8 from __future__ import absolute_import import unittest from flask import json from six import BytesIO from openapi_server.models.result import Result # noqa: E501 from openapi_server.test import BaseTestCase class TestResultController(BaseTestCase): """ResultController integration test stubs""...
[ "duellmann@iste.uni-stuttgart.de" ]
duellmann@iste.uni-stuttgart.de
a8612ac222aae209f9c985d771c92a8900557d7e
f76e8b03862264731be92bc16e4ced7b7e078b0a
/instagram/urls.py
64a8b30ddbdcb0ea06908f107e67a02fbccf2f17
[ "MIT" ]
permissive
bryomajor/instalite
b8d400d6b1ecc337e5008ddd6738e8df4653df05
c3854b30235960fae89682c55c88637fb8fb05ad
refs/heads/master
2022-12-11T15:06:32.222163
2021-04-07T10:13:46
2021-04-07T10:13:46
221,914,550
0
1
MIT
2021-06-10T22:16:42
2019-11-15T11:54:53
Python
UTF-8
Python
false
false
1,134
py
from django.conf.urls import url from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns = [ url(r'^home/', views.timeline, name = 'index'), url(r'^$', views.home, name = 'home'), url(r'^signup/$', views.signup, name = 'signup'), url(r'^activate/(?P<u...
[ "bryomajor@gmail.com" ]
bryomajor@gmail.com
2c5ad861fcce9b4203e5ff1c9b6fbdabf1e10047
7c0ac74b1215a5e53698924b69b89221fec0cfd6
/torch_geometric/utils/matmul.py
8e8f4bb6aaea1430f1a94da1c9239473e4b18be1
[ "MIT" ]
permissive
ZackPashkin/pytorch_geometric
b30c1a220f3f5f593ec4ac12b696f2cac1ae4e0a
3663a96c8e649af46c29a32beb03f49cc97f5b86
refs/heads/master
2020-03-20T09:33:51.497347
2019-03-19T05:07:30
2019-03-19T05:07:30
137,341,025
0
0
null
2018-06-14T10:05:30
2018-06-14T10:05:29
null
UTF-8
Python
false
false
415
py
from torch_scatter import scatter_add def matmul(index, value, tensor): tensor = tensor if tensor.dim() > 1 else tensor.unsqueeze(-1) assert (value is None or value.dim() == 1) and tensor.dim() == 2 row, col = index out_col = tensor[col] out_col = out_col if value is None else out_col * value.uns...
[ "matthias.fey@tu-dortmund.de" ]
matthias.fey@tu-dortmund.de
5ffb982e62eb751b952318b60fb800f712713ca9
f3f732881b813dd5d6e1239618f5d4d6bb394db7
/160.intersectionLinkedList.py
6fc29a7e0f2285d1531677f1a175803bb8ec1e0d
[]
no_license
umnstao/leetcodeOJ
45917528abb693fa23678356497267e4ce571a4f
f7cb7cfa6e1f04efd741c2456ad930db48101573
refs/heads/master
2021-01-21T14:57:22.257064
2017-11-22T22:57:48
2017-11-22T22:57:48
95,362,154
0
0
null
null
null
null
UTF-8
Python
false
false
1,000
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def getIntersectionNode(self, headA, headB): """ :type head1, head1: ListNode :rtype: ListNode """ lenA = 0 ...
[ "umnstao@gmail.com" ]
umnstao@gmail.com
e3927f2bbe1447e57c5f9862e6bdbbed472c3f4d
ef72a7df3c39c215dd90ac5e72b164eb9d7da892
/rpg/monsters/imp.py
b23f023017e8acdf3b1f1eebfbf51bb93c44f41b
[]
no_license
thebmo/messing_around
d49a87fc1ff722428ea67bc710ca99ad287098bd
4cb12e0b224cf7d1f93cb4ae6ff7603619fb7aa9
refs/heads/master
2021-01-13T02:18:50.799898
2015-04-08T01:12:41
2015-04-08T01:12:41
28,570,375
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
""" Imp monster sub-class of parents Monster and NPC. """ from monster import Monster from npc import NPC class Imp(Monster, NPC): NAME = 'Imp' STATS = { 'STR': 5, 'AGI': 3, 'INT': 1, 'CHA': 0, 'LCK': 0, 'max_hp': 6, 'max_ap': 1, '...
[ "bmosier@gmail.com" ]
bmosier@gmail.com
247c239100ef619a331be5d46ae4dabbf1f51393
bf69394cc6015f2c8ac28ae927be2a83b96facf3
/lib/utils/training_stats.py
6aff48aa5ddbb6c269cd19eb13e3b1621d6a791a
[ "MIT" ]
permissive
fangyuan-ksgk/Detectron.pytorch
bf1133b73763ec682b4f219a857e81515d86ebf5
e8dfb86fbc68d30b9f443bc6aec722c5e4ce301e
refs/heads/master
2023-03-16T04:48:22.648717
2018-04-30T14:54:28
2018-04-30T14:54:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,618
py
#!/usr/bin/env python2 # Copyright (c) 2017-present, Facebook, 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 ...
[ "roytseng.tw@gmail.com" ]
roytseng.tw@gmail.com
58387329bb15b94260f2528c77fccfb21cdb8190
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/SqbyWYwqChQroXfhu_23.py
85771451090fc8484ee47a515d24c515837f537c
[]
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
1,362
py
""" This challenge concerns _square matrices_ (same number of rows and columns) as the below example illustrates: [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ] The entries in the diagonal line from the top left to the bottom right form the _main diagonal_ of the matrix. In this case, 1,5,9 form the...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
788398854e79143d77bd7bcbbc79202a74d49414
3e1beedf80c60153482192b086347d0530701c37
/problem solving/cinema.py
cfee1d1abc3a0f3637d3211ba9876bb01e88668e
[]
no_license
rishi772001/Competetive-programming
ac130bde426844e09a3e5162e279d61278c7c502
3493991cac55f225eeee67dd49f1caed8211465c
refs/heads/master
2023-04-12T14:59:59.447354
2021-04-30T05:05:13
2021-04-30T05:05:13
267,785,820
8
1
null
null
null
null
UTF-8
Python
false
false
1,133
py
# https://leetcode.com/problems/cinema-seat-allocation/ n = 2 booked = [[1,6],[1,8],[1,3],[2,3],[1,10],[1,2],[1,5],[2,2],[2,4],[2,10],[1,7],[2,5]] theatre = [[0]*10 for i in range(n)] for i in range(len(booked)): theatre[booked[i][0] - 1][booked[i][1] - 1] += 1 print(theatre) count = 0 for i in ra...
[ "noreply@github.com" ]
rishi772001.noreply@github.com
c697d125b0367a7834e07b1127c2335e79570e79
2dfbb018568209864544375de59a157c8752689a
/skimreads/comments/migrations/0002_auto__del_field_comment_reading__add_field_comment_note.py
7b339a69401d147362ef5085086bdfaa985c3fb8
[]
no_license
tommydangerous/skimreads
7df4bde603c6122f20242d4591357802a4484f9f
6e73341ab034b52bb48cde4f076948946944d2a9
refs/heads/master
2020-05-17T23:20:15.020065
2014-09-27T06:28:34
2014-09-27T06:28:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,250
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Comment.reading' db.delete_column('comments_comment', 'reading_id') ...
[ "quantumventuress@gmail.com" ]
quantumventuress@gmail.com
95085f0f6148d3aeba523e3cba43e37d56a4cc60
908336e941d7d95d2ff168f8d132bf5656b87752
/datasets/weibo_senti_100k/parse.py
ad104fde40447e6e0371f6df42df4903898a6e89
[]
no_license
cyy0523xc/ChineseNlpCorpus
364437b5662bc0a138281afc817b375c50a7fecf
a027225e9caf963d0d4e38d96b402ce515505850
refs/heads/master
2020-03-22T05:45:09.343135
2018-12-18T02:14:08
2018-12-18T02:14:08
139,587,654
2
0
null
2018-07-03T13:29:28
2018-07-03T13:29:27
null
UTF-8
Python
false
false
612
py
# -*- coding: utf-8 -*- # # # Author: alex # Created Time: 2018年07月03日 星期二 21时51分54秒 import csv with open('./weibo_senti_100k.csv', encoding='utf8') as r, \ open('../../format_datasets/weibo_senti_100k/weibo_senti_100k_pos.txt', 'w', encoding='utf8') as pos, \ open('../../format_datasets/weibo_senti_100k/weib...
[ "cyy0523xc@gmail.com" ]
cyy0523xc@gmail.com
fa6df867465274ac8444a135a311aa00afd86d2c
48d08e7c20628479ea69b4a1a51f99a3db26c79d
/MathPy/04_sympy_intro.py
9a8b4683b4bf945cb6a3376f182c1efe1b83b73d
[]
no_license
PyRPy/stats_py
59ae0975c5b549fb47f7630b1f232caf715fe2ff
0c87ebf7f84eb7a21bcedb3234170ef220ca2f14
refs/heads/master
2022-09-27T21:01:53.316765
2022-09-17T01:52:09
2022-09-17T01:52:09
167,268,454
4
6
null
null
null
null
UTF-8
Python
false
false
379
py
from sympy import Symbol # ------------------Defining Symbols and Symbolic Operations ------------------- x = Symbol('x') print(x + x + 1) a = Symbol('x') print(a + a + 1) # find the original symbol object print(a.name) # define multiple symbols from sympy import symbols x, y, z = symbols('x, y, z') s ...
[ "noreply@github.com" ]
PyRPy.noreply@github.com
34019fe74d66ee473c9f78d9730d9b933cee8973
4007a7626ccb18480e73ac304b0010f6aeba33fb
/proj_preproc/db.py
cb9defbbd56297c1bca17df0cef2ee205afdb103
[]
no_license
olmozavala/air_pollution_forecast
68030748b975d463158f1ce7c7f16eb038493ced
5b543b3f4a190d7ae33a55c4f5b30f56b17347c3
refs/heads/master
2023-07-22T15:16:31.166036
2023-06-08T18:55:14
2023-06-08T18:55:14
226,166,662
0
0
null
2023-02-16T18:40:24
2019-12-05T18:41:50
Python
UTF-8
Python
false
false
129
py
def eliminateNonContinuousTimes(data, numhours): """It eliminates those 'rows' that do not contain 'numhours' continuously"""
[ "olmozavala@gmail.com" ]
olmozavala@gmail.com
bdce9ca6acb87cf1e40299efade42b89dec4c38a
9de27e623c85b0d55da4afe4d843fe321b77954d
/Configuration/Geometry/python/GeometryDD4hepExtended2026D76_cff.py
1905e4de5a22bdb37bd5f0728b7fe57a842f0dc7
[ "Apache-2.0" ]
permissive
PFCal-dev/cmssw
a97d566d691bc5ac900e48c632f4e87a005f94a2
232187f0f8a201210426312b27a1b62e55b6084c
refs/heads/hgc-tpg-devel-CMSSW_12_0_0_pre3
2022-06-01T08:27:39.166655
2021-11-23T15:28:18
2021-11-23T15:28:18
14,498,276
4
7
Apache-2.0
2022-02-08T11:01:38
2013-11-18T16:34:32
C++
UTF-8
Python
false
false
924
py
import FWCore.ParameterSet.Config as cms # This config was generated automatically using generate2026Geometry.py # If you notice a mistake, please update the generating script, not just this config from Configuration.Geometry.GeometryDD4hep_cff import * DDDetectorESProducer.confGeomXMLFiles = cms.FileInPath("Geometry...
[ "sunanda.banerjee@cern.ch" ]
sunanda.banerjee@cern.ch
bc47d286fda4479958fbd49dd8f596957c627662
d83118503614bb83ad8edb72dda7f449a1226f8b
/src/dprj/platinumegg/app/cabaret/views/application/scoutevent/resultanim.py
e2efa0cc4796d7c81b9432230cea05603a9db449
[]
no_license
hitandaway100/caba
686fe4390e182e158cd9714c90024a082deb8c69
492bf477ac00c380f2b2758c86b46aa7e58bbad9
refs/heads/master
2021-08-23T05:59:28.910129
2017-12-03T19:03:15
2017-12-03T19:03:15
112,512,044
0
0
null
null
null
null
UTF-8
Python
false
false
4,483
py
# -*- coding: utf-8 -*- from platinumegg.app.cabaret.util.cabareterror import CabaretError from platinumegg.app.cabaret.util.api import BackendApi import settings from platinumegg.app.cabaret.util.url_maker import UrlMaker from platinumegg.app.cabaret.views.application.scoutevent.base import ScoutHandler import urllib ...
[ "shangye@mail.com" ]
shangye@mail.com
6e6f3dccdbcc5e1215398c4c2605d64ab759adb7
4cdf4e243891c0aa0b99dd5ee84f09a7ed6dd8c8
/python/decorator/12.py
88fcefe3e80c692e7cf23963349684364a407982
[ "MIT" ]
permissive
gozeon/code-collections
464986c7765df5dca980ac5146b847416b750998
13f07176a6c7b6ac13586228cec4c1e2ed32cae4
refs/heads/master
2023-08-17T18:53:24.189958
2023-08-10T04:52:47
2023-08-10T04:52:47
99,432,793
1
0
NOASSERTION
2020-07-17T09:25:44
2017-08-05T15:56:53
JavaScript
UTF-8
Python
false
false
395
py
#coding=utf-8 # -*- coding=utf-8 -*- from functools import wraps def my_decorator(func): @wraps(func) def wrapper(*args, **kwargs): '''decorator''' print('Calling decorated function...') return func(*args, **kwargs) return wrapper @my_decorator def example(): """Docstring""" ...
[ "goze.qiu@gmail.com" ]
goze.qiu@gmail.com
e4b9ae8070fb64421cd1a17b81be4ca33bd507bd
b3b066a566618f49ae83c81e963543a9b956a00a
/Intermediate Data Visualization with Seaborn/04_Creating Plots on Data Aware Grids/04_Building a PairGrid.py
9a654d32b4feb9d7dc4923d50e47cef330e416b7
[]
no_license
ahmed-gharib89/DataCamp_Data_Scientist_with_Python_2020
666c4129c3f0b5d759b511529a365dfd36c12f1a
f3d20b788c8ef766e7c86c817e6c2ef7b69520b8
refs/heads/master
2022-12-22T21:09:13.955273
2020-09-30T01:16:05
2020-09-30T01:16:05
289,991,534
2
0
null
2020-08-24T17:15:43
2020-08-24T17:15:42
null
UTF-8
Python
false
false
1,354
py
""" Building a PairGrid When exploring a dataset, one of the earliest tasks is exploring the relationship between pairs of variables. This step is normally a precursor to additional investigation. Seaborn supports this pair-wise analysis using the PairGrid. In this exercise, we will look at the Car Insurance Premium d...
[ "Your-Email" ]
Your-Email
ed82d43819a50cc8adfb850789934e1c87866bb5
2daa3894e6d6929fd04145100d8a3be5eedbe21c
/tests/artificial/transf_sqrt/trend_poly/cycle_0/ar_12/test_artificial_128_sqrt_poly_0_12_100.py
d9d41e9db30a39012110217754bd29484e6124f5
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Henri-Lo/pyaf
a1f73a0cc807873bd7b79648fe51de9cfd6c126a
08c968425d85dcace974d90db7f07c845a0fe914
refs/heads/master
2021-07-01T12:27:31.600232
2017-09-21T11:19:04
2017-09-21T11:19:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "poly", cycle_length = 0, transform = "sqrt", sigma = 0.0, exog_count = 100, ar_order = 12); art.process_dataset(dataset);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
8e578b5c5e911fbe8995ba795536316e66e5a61b
0ee72dc1b03070e25d3036bf6b562fc9b809ee72
/freeze/__init__.py
18f5610c310bc0963162bfdbec6dfe13797a4bdd
[ "MIT" ]
permissive
fabiocaccamo/django-freeze
d36a9c7a9e197b23fa63dc77f0901aba89e4dfaf
c2d5dfbf38b072d79e1a37489b07e91c8af9461c
refs/heads/main
2023-08-29T12:50:19.069297
2023-07-18T07:35:52
2023-07-18T07:35:52
44,330,200
91
19
MIT
2023-09-08T13:52:25
2015-10-15T16:20:55
Python
UTF-8
Python
false
false
269
py
from freeze.metadata import ( __author__, __copyright__, __description__, __license__, __title__, __version__, ) __all__ = [ "__author__", "__copyright__", "__description__", "__license__", "__title__", "__version__", ]
[ "fabio.caccamo@gmail.com" ]
fabio.caccamo@gmail.com
983525aeb3a369cf1bd12f914b3440516b86d99a
7950c4faf15ec1dc217391d839ddc21efd174ede
/leetcode-cn/0670.0_Maximum_Swap.py
33229f1e40f8b51a167f593d9fa16ce58ddebd89
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
832
py
''' 执行用时:36 ms, 在所有 Python3 提交中击败了68.71% 的用户 内存消耗:14.9 MB, 在所有 Python3 提交中击败了49.11% 的用户 通过测试用例:111 / 111 ''' class Solution: def maximumSwap(self, num: int) -> int: digits = list(str(num)) s_digits = sorted(digits, reverse=True) if digits == s_digits: return num def max...
[ "838255715@qq.com" ]
838255715@qq.com
3c5b293c6d389c7c7dc932dead2e0c0535d49fc5
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res/scripts/client/gui/shared/formatters/__init__.py
95539a9befb1c59e1830abe651b2f06f1e199360
[]
no_license
webiumsk/WOT-0.9.12-CT
e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2
2506e34bd6634ad500b6501f4ed4f04af3f43fa0
refs/heads/master
2021-01-10T01:38:38.080814
2015-11-11T00:08:04
2015-11-11T00:08:04
45,803,240
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
776
py
# 2015.11.10 21:29:02 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/shared/formatters/__init__.py import BigWorld from gui.shared.formatters import icons from gui.shared.formatters import text_styles from gui.shared.formatters import time_formatters __all__ = ('icons', 'text_styles', 'time_formatt...
[ "info@webium.sk" ]
info@webium.sk
3bb2bda63bb05e17d287b72bc50bda27aba736b4
18fe3f034f203bc8a22d08f15b29297ebcc7dfaf
/py/qlazypy/lib/densop_mcx.py
e7a3b8c9e9d186908e9c3aa923a516079358fdfc
[ "Apache-2.0" ]
permissive
katou-boop/qlazy
b8802c48b0cba0ba89cc1e1a69f551e0f4fdcc73
6b62fff65939a589603af7ed8be921c9f1669bb3
refs/heads/master
2023-02-17T12:30:05.419650
2021-01-17T23:20:20
2021-01-17T23:20:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
# -*- coding: utf-8 -*- from qlazypy.error import * from qlazypy.config import * from qlazypy.util import * # multi-controlled X gate def __gray_code(de, n): for k in range(2**n): yield k^(k>>1) def densop_mcx(de,qid=[]): # controled and target register qid_ctr = qid[:-1] qid_tar = qid[-1] ...
[ "saminriver33@gmail.com" ]
saminriver33@gmail.com
6db1394c31c689f64f58cffb4a65caedab7887b6
55c46d50ed426a3dccef8c44904df4524de43aa1
/oldp/apps/cases/api_views.py
ff02e857cdc98c72953bdf206858a565d1bfcd76
[ "MIT" ]
permissive
docsuleman/oldp
1a438a9c669a54aab2f76133200e566d627d9668
8dcaa8e6e435794c872346b5014945ace885adb4
refs/heads/master
2020-06-29T10:45:18.787344
2019-08-04T18:21:02
2019-08-04T18:21:02
200,513,942
0
0
MIT
2019-08-04T17:36:52
2019-08-04T16:07:25
Python
UTF-8
Python
false
false
2,439
py
import coreapi import coreschema from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from django_filters.rest_framework import DjangoFilterBackend from drf_haystack.filters import HaystackFilter from drf_haystack.generics import HaystackGenericAPIView from rest_fram...
[ "gitlab@i.mieo.de" ]
gitlab@i.mieo.de
fc696582a78cdd7c5d1899b2b36105b5ae57fb27
cc2029f40a12e82712072275fc76a07ac59b5940
/battles/tourneys/20170409_2015.py
47a50e202ae61271c8e51095af49e9ed277655a0
[ "MIT" ]
permissive
heitorchang/learn-code
d3fb8e45d539d302372126fe28e85032590b5707
5e6e56f7257de1910830619c01d470e892d7f9d8
refs/heads/master
2023-08-09T13:46:18.623772
2023-07-21T16:57:11
2023-07-21T16:57:11
147,522,837
1
0
null
null
null
null
UTF-8
Python
false
false
1,482
py
from math import log description = """ You are playing a number guessing game with your friend. Your friend thought of some integer x from 1 to n. In order to guess the number, you can ask two types of questions: "is x smaller or equal to a?" for some integer a; "is x greater or equal to a?" for some integer a. If th...
[ "heitorchang@gmail.com" ]
heitorchang@gmail.com
1f9b109192968687be953ae31ed89405140c4775
4a63e96d7015e3e13d9b5204fc0261c05f600d3b
/Standard Library/tempfile/app.py
7fc029dac7ed9b6e14fd7f28165dcf25da70c0c0
[ "Apache-2.0" ]
permissive
shubhamnag14/Python-Documents
0e38f58298d35b4df5b61adb361d720337148a00
d3fee0ad90232b413f6ac1b562588fb255b79e42
refs/heads/master
2023-06-08T23:51:26.089840
2021-06-20T15:07:44
2021-06-20T15:07:44
380,832,776
0
0
Apache-2.0
2021-06-27T20:33:08
2021-06-27T20:31:41
null
UTF-8
Python
false
false
320
py
import tempfile def one(): file = tempfile.mkstemp() with open(file[1], 'w+') as f: f.write("This is a test") f.seek(0) print(f.read()) print(tempfile.gettempdir()) print(tempfile.gettempdirb()) print(tempfile.gettempprefix()) print(tempfile.gettempprefixb()) print(tempfile.tempdir)
[ "subhadeep@klizos.com" ]
subhadeep@klizos.com
7c21708c07f793fe8b7ea0a740e301f39cdba0f3
00ce7b1e677abbfe7912a472e74b3fab92b9fc50
/Data_processing/MNIST/checkSource.py
0ca2d86a677aa1ee43da5cc7832283efb90ac5f8
[]
no_license
Xharlie/MultiGen
a19b8cd76bc1933773411d69200e86bf1ba8ed74
e3e646289249ce9418fb40f5a246310ac37e9a96
refs/heads/master
2021-01-22T10:56:16.432939
2017-12-02T03:34:41
2017-12-02T03:34:41
82,051,628
3
0
null
null
null
null
UTF-8
Python
false
false
877
py
import h5py from PIL import Image import numpy as np DIGIT=2 FORM=4 COLOR=0 TRANSFORM=1 def check(): imgArray = [] with h5py.File('../../Source/MNIST/all_info.h5', 'r') as f: imgArray = f['data'] segm = f['segm'] digit = f['digit'] form = f['form'] color = f['color'] transform = f['transfo...
[ "charlie.xu007@yahoo.com" ]
charlie.xu007@yahoo.com
8f0f47ef704ca1bf13b6b054d960ad79eb855848
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_02_01/aio/operations/_operations.py
8379386a6db3839f741ead07cbbbe9c6844a901e
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
4,659
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
scbedd.noreply@github.com
c1ea1c2df956749c6deeb18f05376f849453d2e6
3c3c274f266736c97dc14608511f039e65e31694
/chalicelib/auth.py
ad8d2d2a8ff3cc74580968dde491e1779e63a446
[]
no_license
craymaru/chalice-todoapp-training
b2de9a7bff52ae3675a36ac44c7886a003199c7c
5a3229f3f4d185457812777432bd99adb9b7c56a
refs/heads/master
2023-01-11T18:03:50.712684
2020-11-18T04:29:34
2020-11-18T04:29:34
313,465,965
0
0
null
null
null
null
UTF-8
Python
false
false
1,168
py
import hashlib import hmac import datetime from uuid import uuid4 import jwt from chalice import UnauthorizedError # TODO: Figure out what we want to do with this. # We can either move this out to env vars in config.json, # use KMS to encrypt/decrypt this value, or store this in SSM. # Until we figure it out I'll st...
[ "craymaru@gmail.com" ]
craymaru@gmail.com
a7b55848abbb88a94997e6304eb564af957d682f
e012ac032de8bf5bf880d4917fb6329f99f47d2b
/grdient_decent.py
13306f92fd7645e6b5595b881733dbdf2c385b6e
[]
no_license
janakiraam/ML-ToyProbelm
d1d0b8ffe55fb68cea22ea2326be3aeb23e64423
f8775ebce8f6b464e023bda92890fc30bcf923e6
refs/heads/main
2023-03-15T11:06:32.252230
2021-03-13T17:19:08
2021-03-13T17:19:08
341,291,350
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
import numpy as np def gradient_decent(x,y): m_curr=0 b_curr=0 iteration=100 n = len(x) learning_rate=0.001 for i in range(iteration): y_predict=m_curr*x+b_curr md=-(2/n)*sum(x*(y-y_predict)) bd=-(2/n)*sum(y-y_predict) m_curr=m_curr - learning_rate*...
[ "noreply@github.com" ]
janakiraam.noreply@github.com
4cd37584ef4a0d01cd88ff800395b7ab860f7b52
7950c4faf15ec1dc217391d839ddc21efd174ede
/problems/0530.0_Minimum_Absolute_Difference_in_BST.py
93ad4e5a1a70ef0a7e5a3df60900e33c8cd38472
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
763
py
''' Runtime: 99 ms, faster than 5.10% of Python3 online submissions for Minimum Absolute Difference in BST. Memory Usage: 18.5 MB, less than 69.94% of Python3 online submissions for Minimum Absolute Difference in BST. ''' # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=...
[ "laoxing201314@outlook.com" ]
laoxing201314@outlook.com
dd6b99605f2ad07b00b76fab12d2dfa0ec787223
0f949dc62b728b2cf6e0e172eb7c1cc31012244d
/script/tft_touch.py
5190129c1503eb022011cef240009dfb42cc3187
[ "MIT" ]
permissive
jeguzzi/mt_screen
74c4314012ddb9471650d8b1f10c889265101f92
f06ea6404474e8a71a4d61ec381a6e99e03e0ebb
refs/heads/master
2020-03-19T09:39:44.114549
2018-06-06T09:46:05
2018-06-06T09:46:05
136,307,460
0
0
null
null
null
null
UTF-8
Python
false
false
2,953
py
#!/usr/bin/env python from __future__ import division import threading import evdev import rospy import wiringpi2 as wp from evdev.ecodes import ABS_X, ABS_Y, BTN_TOUCH, EV_ABS, EV_KEY from sensor_msgs.msg import Joy from std_msgs.msg import Bool KEYS = [1, 4, 5] IN = 0 OUT = 1 class TFTouch(object): def __i...
[ "jerome@idsia.ch" ]
jerome@idsia.ch
e9a4edfe1026ffae7f0e4077a0753cd8224ef2a4
d18ed72d6f8d27dd8a13eab5c6366f9dca48aa6b
/espresso/jobmanager/jobmanager/temp/bin/packjobdir.py
697971511dcfa49909f268637571980c629e1286
[]
no_license
danse-inelastic/AbInitio
6f1dcdd26a8163fa3026883fb3c40f63d1105b0c
401e8d5fa16b9d5ce42852b002bc2e4274afab84
refs/heads/master
2021-01-10T19:16:35.770411
2011-04-12T11:04:52
2011-04-12T11:04:52
34,972,670
1
2
null
null
null
null
UTF-8
Python
false
false
719
py
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Jiao Lin # California Institute of Technology # (C) 2009 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
[ "dexity@gmail.com" ]
dexity@gmail.com
ff30e8932a6292b69bb900155874ffcfa1e06431
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_136/2930.py
97be09473c78d8ee4bccfb81bd58eb99d9cd14ca
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
from __future__ import division T = input() for i in range(T): C, F, X = [float(x) for x in raw_input().split()] cookiesRate = 2 if C >= X : print "Case #%d: %.7f" % (i+1, X/cookiesRate) else: timeElapsed = 0 while(C/cookiesRate + X/(cookiesRate+F) < X/cookiesRate): timeElapsed += C/cooki...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
c633ac2470e05a99614be9f9f82a751daa8489db
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/c4ccaa8b4474471f993db5910720bf59.py
53dba6ce82f915abfd9d8828c4b03607686fbbc1
[]
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
1,305
py
import unicodedata STANDARD_RESPONSES = { 'question': 'Sure.', 'exclamation': 'Woah, chill out!', 'empty': 'Fine. Be that way!', 'other': 'Whatever.' } def hey(*statements): for statement in statements: if type(statement) != str: try: statement = str(statement) ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
141edf402032a4bbe9c3349258944e9dcfa2c803
fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd
/chrome/browser/android/digital_asset_links/DEPS
7023254e344e39b9b94c5db81d7a70a7df505240
[ "BSD-3-Clause" ]
permissive
wzyy2/chromium-browser
2644b0daf58f8b3caee8a6c09a2b448b2dfe059c
eb905f00a0f7e141e8d6c89be8fb26192a88c4b7
refs/heads/master
2022-11-23T20:25:08.120045
2018-01-16T06:41:26
2018-01-16T06:41:26
117,618,467
3
2
BSD-3-Clause
2022-11-20T22:03:57
2018-01-16T02:09:10
null
UTF-8
Python
false
false
296
# It is likely that this code will eventually be shared across platforms, so # excluding dependencies that would make this being a component impossible. include_rules = [ "-content", "-chrome", "+base", "+content/public/test", "+chrome/browser/android/digital_asset_links", "+net", ]
[ "jacob-chen@iotwrt.com" ]
jacob-chen@iotwrt.com
9836c4db6976992908c3e2fdd5c42aee5b2c2e44
66d352e30036b0917e22b2ccde6e0bbc05f9758c
/TelluricSpectra/TellRemoval_interptest.py
54d1373f0ce141d99b8b9bb15b17c2674b949ca8
[]
no_license
jason-neal/Phd-codes
8354563b1d2b0fcce39d72adbfd82b65557399b4
c947ffa56228746e2e5cdb3ab99e174f6c8e9776
refs/heads/master
2023-08-30T23:11:55.394560
2022-04-24T09:25:28
2022-04-24T09:25:28
42,106,284
0
1
null
2023-08-16T02:22:59
2015-09-08T10:40:26
Jupyter Notebook
UTF-8
Python
false
false
5,575
py
#!/usr/bin/env python # -*- coding: utf8 -*- """ Codes for Telluric contamination removal Interpolates telluric spectra to the observed spectra. Divides spectra telluric spectra can plot result """ import argparse import os import time import matplotlib.pyplot as plt import numpy as np import scipy as sp ...
[ "jason.neal@astro.up.pt" ]
jason.neal@astro.up.pt
9c1b67405acfc447e0bcde61a0b406ab29189c33
f4713830c8519daca9d75ec692a6937ee03c74d4
/Problems/Algorithms/953. Verifying an Alien Dictionary/alien_dictionary.py
af8a014ae986a3a0467e9a3207355cbfdb4b4240
[ "MIT" ]
permissive
xuedong/leet-code
a0dd38cb884292de9d947718bb00160eff2b0f00
285d49cd7061ec43368d63b7c7c56763be520570
refs/heads/master
2023-09-03T02:38:55.932182
2023-09-02T18:35:42
2023-09-02T18:35:42
189,745,542
1
0
null
null
null
null
UTF-8
Python
false
false
332
py
#!/usr/bin/env python3 from typing import List class Solution: def isAlienSorted(self, words: List[str], order: str) -> bool: map = {ch: idx for idx, ch in enumerate(order)} words = [[map[ch] for ch in word] for word in words] return all(word1 <= word2 for word1, word2 in zip(words[:-1], ...
[ "shang.xuedong@yahoo.fr" ]
shang.xuedong@yahoo.fr
3791527cea4f9b19510cd2511f27d307b569de22
4d2de834ecea6ef444b1c45afb5a41e717900858
/app/app_todo/__init__.py
33a8204e60a9ea5ebfaf02b5c996d4aafaf808af
[]
no_license
florije1988/flask_regular
19da04c59fbf600274d206750ccb8cf355db2d24
1219e4efbad76202d6dca7e4b2148344ea9edf8c
refs/heads/master
2020-12-24T13:21:29.840919
2014-12-16T00:58:15
2014-12-16T00:58:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
# -*- coding: utf-8 -*- __author__ = 'florije' from flask import Blueprint from app.custom_api import Api app_todo = Blueprint('app_task', __name__) api_todo = Api(app_todo, catch_all_404s=True) from . import views api_todo.add_resource(views.HelloHandler, '/hello')
[ "florije1988@gmail.com" ]
florije1988@gmail.com
0ba9aca97b1c1f59da1afb823752e4f46a680b96
feae88b4a8bc0aba388dcc2eeb7debb49d736809
/apps/second_app/urls.py
fb99d9914ffc2c2fedcdee10fd14c61afe4e550b
[]
no_license
john-gore/belt3_retry
ec8a5582382fc00f0bcb3cf973fe9cd073ed571c
03aa6d7ff9988615a96d2c882282107d389b1c52
refs/heads/master
2021-07-21T11:11:42.972344
2017-10-29T21:34:09
2017-10-29T21:34:09
108,772,325
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
from django.conf.urls import url from django.contrib import admin from . import views from ..first_app.models import User # This line is new! urlpatterns = [ url(r'^$', views.index, name='index') # This line has changed! ]
[ "johngore@Johns-MBP.localdomain" ]
johngore@Johns-MBP.localdomain
fbc05970539a311c1532e03d1461d962abe1cae2
5b4312ddc24f29538dce0444b7be81e17191c005
/autoware.ai/1.12.0/devel/.private/vector_map_msgs/lib/python2.7/dist-packages/vector_map_msgs/msg/_PointArray.py
302c83b9f7d628767effb2ae4bd898435e6dc65f
[ "MIT" ]
permissive
muyangren907/autoware
b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2
5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38
refs/heads/master
2020-09-22T13:08:14.237380
2019-12-03T07:12:49
2019-12-03T07:12:49
225,167,473
0
0
null
null
null
null
UTF-8
Python
false
false
7,546
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from vector_map_msgs/PointArray.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import vector_map_msgs.msg import std_msgs.msg class PointArray(genpy.Message): _md5sum ...
[ "907097904@qq.com" ]
907097904@qq.com
8735f5b0e9167684495efe5852cebc7defa664f7
930309163b930559929323647b8d82238724f392
/abc155_c.py
6b0f7c6960bceb99ef3c1e6274c2f06a7b5baa8f
[]
no_license
GINK03/atcoder-solvers
874251dffc9f23b187faa77c439b445e53f8dfe1
b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7
refs/heads/master
2021-11-07T14:16:52.138894
2021-09-12T13:32:29
2021-09-12T13:32:29
11,724,396
3
1
null
null
null
null
UTF-8
Python
false
false
193
py
import collections N=int(input()) S=[input() for i in range(N)] S=collections.Counter(S) max_v = max(S.values()) for k,v in sorted(list(filter(lambda x:x[1]==max_v, S.items()))): print(k)
[ "gim.kobayashi@gmail.com" ]
gim.kobayashi@gmail.com
2326a5cd67d0e36dfc987657a3b77f64b1108019
5de646fb3ecf10ecb45e05018a23b6345fb9ca53
/codejam/2020 Qualification Round/d.py
e358bdc477498577b9dcea874b2bbacb4f08905f
[]
no_license
PPinto22/LeetCode
5590d6ca87efcd29f9acd2eaed1bcf6805135e29
494a35542b61357c98c621202274d774e650a27c
refs/heads/master
2022-04-29T20:37:31.085120
2022-04-02T12:02:30
2022-04-02T12:02:30
201,478,904
0
0
null
null
null
null
UTF-8
Python
false
false
3,118
py
from typing import Union, List, Tuple, Optional def solve(B): def set(index, value): nonlocal control_equal, control_complement, known # Fix to prevent unpaired bits right before a fluctuation if (not control_complement or not control_equal) \ and (query % 10 == 0) \ ...
[ "pedropinto24@hotmail.com" ]
pedropinto24@hotmail.com
e79db74e458b1f23bf9c7d355f33c7457e7e49b8
45272da6d64161a586b1dd41df63b8f701f38e39
/Easy Problems/1-10/1easy.py
075277c849e0a410bcde57f4d5bf459e7c1e8fad
[]
no_license
Lucas-Guimaraes/Reddit-Daily-Programmer
559f813d2ee1a06e80a2b260bcb43718ae50b8bf
45d554d0e0f8bc67e2111bede3a45f77f5512d7b
refs/heads/main
2023-07-31T18:36:48.774791
2021-09-13T04:08:09
2021-09-13T04:08:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
#https://www.reddit.com/r/dailyprogrammer/comments/pih8x/easy_challenge_1/ user_name = raw_input("Put in your name: ") user_age = raw_input("Whhat's your age?: ") user_screenname = raw_input("How about a username?: ") print("Your name is " + user_name + " your are " + user_age + " years old, and your username is " + ...
[ "noreply@github.com" ]
Lucas-Guimaraes.noreply@github.com
d5c5909ea6644335136f2d82bcda8a30fa14ccab
48477a15ad96505def8097a6c098826b1e5cfe1a
/2_basic_algorithms/2_sorting_algorithms/14_pair_sum.py
9e1422278c00aead20f8116beaac4b3230077a6d
[]
no_license
450703035/Data-Structures-Algorithms
02cd5bbb92ce25019fce4955af38b0317b4f4cac
dde33560fcb3e3ff41cf8bd37a454f8c13b15138
refs/heads/master
2021-05-22T02:25:03.554870
2020-06-27T14:23:24
2020-06-27T14:23:24
252,927,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,832
py
# Pair Sum ''' Problem Statement Given an input array and a target value (integer), find two values in the array whose sum is equal to the target value. Solve the problem without using extra space. You can assume the array has unique values and will never have more than one solution. ''' def pair_sum(arr, target): ...
[ "danny.wangle@gmail.com" ]
danny.wangle@gmail.com
26520cf0e4d572626cca7f3ae58470069e37fd63
5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5
/blimgui/dist/OpenGL/raw/GLES2/NV/read_buffer.py
638349916933fad25c3ba754755ffda4f1e717dc
[ "MIT" ]
permissive
juso40/bl2sdk_Mods
8422a37ca9c2c2bbf231a2399cbcb84379b7e848
29f79c41cfb49ea5b1dd1bec559795727e868558
refs/heads/master
2023-08-15T02:28:38.142874
2023-07-22T21:48:01
2023-07-22T21:48:01
188,486,371
42
110
MIT
2022-11-20T09:47:56
2019-05-24T20:55:10
Python
UTF-8
Python
false
false
617
py
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLES2 import _types as _cs # End users want this... from OpenGL.raw.GLES2._types import * from OpenGL.raw.GLES2 import _errors from OpenGL.constant import Constant as _C import...
[ "justin.sostmann@googlemail.com" ]
justin.sostmann@googlemail.com
410559c8f26e95c96374a7fea4724d3d00169ba7
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/number-of-ways-to-earn-points.py
6707c76b184e8c02c07e41ef08fcbd9b81e9220e
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
1,069
py
# Time: O(n * t * c) # Space: O(t) # knapsack dp class Solution(object): def waysToReachTarget(self, target, types): """ :type target: int :type types: List[List[int]] :rtype: int """ MOD = 10**9+7 dp = [0]*(target+1) dp[0] = 1 for c, m in ty...
[ "noreply@github.com" ]
kamyu104.noreply@github.com
6f0cf4d61aa094e7e4958d5d2d42c7ee379e097f
942a82cd1e34cd8f57e1d7f3272e4086605256ee
/config/settings.py
4ab609f97c0680e52cc1f2490a6f0d441b5e6b02
[]
no_license
hanieh-mav/SocialNetwork-with-drf
d451126f93e3735a8c9d6dbf714a8179785e15cc
d929704a3d9f26e1e0ca5d961a01ba7dd5c6bf84
refs/heads/main
2023-06-13T08:17:46.591597
2021-07-09T13:37:06
2021-07-09T13:37:06
353,754,846
2
0
null
2021-07-09T13:27:27
2021-04-01T16:04:26
Python
UTF-8
Python
false
false
4,482
py
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ f...
[ "h.mehdiabadi@gmail.com" ]
h.mehdiabadi@gmail.com
13420aecf149f66ef9cb63a68a5a090dbc8a2e3c
6c3e475dcd95d14875a199466b8a7c744f61478b
/userProfile/userProfile.py
1395f4986a45fed5e4b88da12ed0cb114aa8c04b
[]
no_license
webclinic017/tripleATradeBot
b4cce7a330e76f9f207c4d6f4d16327b1717a17a
40b6130f52eb969336c7b602e698f41a2d8f947b
refs/heads/main
2023-01-04T04:16:38.338563
2020-10-29T10:33:34
2020-10-29T10:33:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
from eventLogger import eventLogger as logger from pathList import pathList from alice_blue import * import openpyxl class userProfile: userProfileWorkBook="" profileName="" userName = "" password = "" apiSecret = "" accessToken = "" aliceObj = "" exchangeList = ['NSE']...
[ "noreply@github.com" ]
webclinic017.noreply@github.com
8723a4a6f9bb16968b5f83ec44895b30cb9da123
d82b879f41e906589a0a6ad5a6a09e0a0032aa3f
/ObservationScripts/on_off/observe_moon_spec_analyser.py
176f9c75c90dd4f6945052404f93c17615964d9f
[]
no_license
SETIatHCRO/ATA-Utils
66718eed669882792148fe0b7a2f977cd0f6ac2e
59f4d21b086effaf41d5e11e338ce602c803cfd0
refs/heads/master
2023-08-16T20:41:44.233507
2023-08-10T20:39:13
2023-08-10T20:39:13
137,617,987
5
5
null
2023-08-10T20:39:14
2018-06-17T00:07:05
Jupyter Notebook
UTF-8
Python
false
false
867
py
#!/home/obsuser/miniconda3/envs/ATAobs/bin/python from ATATools import ata_control, logger_defaults from SNAPobs import snap_dada, snap_if import time import atexit import numpy as np import sys import argparse import logging import os def main(): logger = logger_defaults.getProgramLogger("observe", ...
[ "wael.a.farah@gmail.com" ]
wael.a.farah@gmail.com
567c4f1b87268b45b3e5955082e71554b4e4551e
e3abb55ba514fb102ce01601ab0e9ebc15f5d26f
/code/l010_await.py
1c1c6228bf6292b72ebae15c80d040f4c8a0b5a4
[]
no_license
joshmarshall/coroutine-presentation
1d8dec7a6c31a0ee5e8875883a326ea801300e93
a6d07e70bdff286f45785f4127d854ea701a6a08
refs/heads/master
2023-09-03T04:23:20.422823
2018-01-03T10:19:50
2018-01-03T10:19:50
64,452,999
1
0
null
2017-11-19T21:17:58
2016-07-29T05:29:08
Python
UTF-8
Python
false
false
1,248
py
import asyncio class Session(object): @classmethod def connect(cls): return Session() async def __aenter__(self): print("Creating session...") await asyncio.sleep(1) return self async def __aexit__(self, exc_typ, exc, tb): # can also handle exceptions as nece...
[ "catchjosh@gmail.com" ]
catchjosh@gmail.com
9967bfbb48682fff74e8fa93da453b918a2d908b
43715a10381ec37c275850c2e4f5302cde18de8c
/rooms/models.py
8544758b5c7d49ad504a4a43c4f38656f611174b
[]
no_license
dongdong-e/airbnb-clone
443f290baca4ea5c8f22f6c573383d11de4140f4
32c083c4e7f562d968639099d8439f26a666b175
refs/heads/master
2023-05-02T22:08:32.232594
2019-11-25T12:13:13
2019-11-25T12:13:13
219,305,006
0
0
null
2023-04-21T20:42:00
2019-11-03T13:27:34
Python
UTF-8
Python
false
false
2,842
py
from django.db import models from django.urls import reverse from django_countries.fields import CountryField from core import models as core_models class AbstractItem(core_models.TimeStampedModel): """ Abstract Item """ name = models.CharField(max_length=80) class Meta: abstract = True de...
[ "youngdong9800@gmail.com" ]
youngdong9800@gmail.com
7ab917ac2d5b6dbd613df8ad73eaa04c6fd703b9
e042a2437aa60fdc966c4bb97d87f27fb6378c9c
/vae-mnist/utils.py
cbc53886b453559793ea1d4b8a743196b76eca8f
[]
no_license
JZDBB/OOC-for-research
a8653f69a01fe9edd024411234ca422e220a437f
265fbd1732460acbe2a36f4273635485abf0eb0c
refs/heads/master
2020-07-04T04:08:51.130198
2019-08-21T13:00:38
2019-08-21T13:00:38
202,150,646
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
import numpy as np def merge(images, size): h, w = images.shape[1], images.shape[2] img = np.zeros((h * size[0], w * size[1])) for idx, image in enumerate(images): i = idx % size[1] j = idx / size[1] img[j*h:j*h+h, i*w:i*w+w] = image return img
[ "oxuyining@gmail.com" ]
oxuyining@gmail.com
7d167e1feb92203517a6bf08e8597b19369c565e
42ffa887ca0ac7b54f0473880613865fe523fbfc
/src/viztracer/__init__.py
38fd0acde24ec07503595c6da251f4e74a45e921
[ "Apache-2.0" ]
permissive
tianxie1989/viztracer
e61090ac286a5b4ffe4c8f0265fde38bca68837b
39a6314b2a5a30ede71be96bd5e174b2bdaa2664
refs/heads/master
2022-12-11T08:21:25.415858
2020-08-21T00:21:00
2020-08-21T00:21:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/gaogaotiantian/viztracer/blob/master/NOTICE.txt from .viztracer import VizTracer from .flamegraph import FlameGraph from .decorator import ignore_function __version__ = "0.3.0" __all__ = [ "__version...
[ "gaogaotiantian@hotmail.com" ]
gaogaotiantian@hotmail.com
d2a67d571a6ae128e18235f827a76b271bc6e6e8
cbd2eee46663fad5b5375b13c8c21b1b06eb4c6b
/ecloud/code/src/main/python/manor/streamlet/create_nodes.py
159486c27b7fd7132e26361dfada9a5c35673aba
[]
no_license
1026237416/Python
ef474ee40d7efcd6dabb6fb0ecba81b4dcfc7e14
ffa8f9ffb8bfec114b0ca46295db05c4213c4c30
refs/heads/master
2021-07-05T00:57:00.456886
2019-04-26T10:13:46
2019-04-26T10:13:46
114,510,323
0
0
null
null
null
null
UTF-8
Python
false
false
5,090
py
# coding=utf-8 import yaml from tornado import gen from manor.screwdriver import stack_util from manor.screwdriver.vendor_ecloud import list_app_resources from manor.streamlet import StreamletBase,get_stack_resources from manor.streamlet import download_path from manor.util import generals from manor.util import redis...
[ "1026237416@qq.com" ]
1026237416@qq.com
8f1829ee69b87b02cc106601fc364e928bd4864f
6275b8eee6f8f0f69c1f7d1b74a82db22329d560
/src/train_v4.py
fe583be223d6b303b0b94e9af04e688c97169fb1
[ "MIT" ]
permissive
khodwe56/kaggle-birdsong-recognition
081575ea02e663f98292c5e579c14de4bcdb7e22
95a902c37355619cf02558968f000038e487db47
refs/heads/master
2023-01-01T21:35:20.101880
2020-10-27T17:03:06
2020-10-27T17:03:06
299,716,450
0
0
MIT
2020-09-29T19:21:48
2020-09-29T19:21:47
null
UTF-8
Python
false
false
721
py
from argparse import ArgumentParser, Namespace from engine.main_engine_v4 import MainEngineV4 import importlib import torch import ignite.distributed as idist torch.backends.cudnn.benchmark = True def run(local_rank, config): pe = MainEngineV4(local_rank, config) pe.train(config.run_params) def main(hyperpara...
[ "ryancwongsa@gmail.com" ]
ryancwongsa@gmail.com
f74296653aa5f909d55be6b01db02cd11a8f0142
69533190b829ae8d37fe87e6990ecb9cc250bef3
/old/teach_pendant/switch_map.py
d91d5db1a81cd2eaa23f0f5cc8e4f22691e1cba2
[]
no_license
chxb1987/idx6dof
a3ebd70d9901845b3a72f611e021caaba8814602
b6a2a1b79673cdc3d929c469116ff4eaf3f7583d
refs/heads/master
2020-08-03T21:46:51.620409
2017-06-14T20:50:22
2017-06-14T20:50:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
SWITCH_UP=1 SWITCH_DOWN=3 sw_map = ( ( 4, 2, SWITCH_UP), ( 12, 2, SWITCH_DOWN), ( 16, 17, SWITCH_UP), ( 17, 16, SWITCH_UP), ( 18, 15, SWITCH_UP), ( 19, 14, SWITCH_UP), ( 20, 13, SWITCH_UP), ( 21, 12, SWITCH_UP), ( 22, 10, SWITCH_UP), ( 23, 11, SWITCH_UP), ( 24, 17, SWITCH_DOWN), ( 25, 16, SWITCH_DOWN), ( 26, 15, SWITC...
[ "eric@clarinova.com" ]
eric@clarinova.com
9c5ae5f21eb5f1a36093fe5f764a1835128a01d2
dc67e70a303f265ee6cb4c1a2d61fe811053fb3d
/beginner/095/C.py
e641e597678f29556c9fceffadc8270b970f8ac8
[]
no_license
cry999/AtCoder
d39ce22d49dfce805cb7bab9d1ff0dd21825823a
879d0e43e3fac0aadc4d772dc57374ae72571fe6
refs/heads/master
2020-04-23T13:55:00.018156
2019-12-11T05:23:03
2019-12-11T05:23:03
171,214,066
0
0
null
2019-05-13T15:17:02
2019-02-18T04:24:01
Python
UTF-8
Python
false
false
623
py
def half_and_half( A: int, B: int, C: int, X: int, Y: int) -> int: """ :param A: A ピザの値段 :param B: B ピザの値段 :param C: AB ピザの値段 :param X: A ピザの必要数 :param Y: B ピザの必要数 """ min_price = float('inf') for num_ab in range(max(X, Y)+1): num_a, num_b = max(0, X-num_ab), max(0, Y...
[ "when.the.cry999@gmail.com" ]
when.the.cry999@gmail.com