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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f0d1c6f1c3a8f8d9e42acba2344603fcafe173d | dc3d310934705034ab2f5bc4d3a96f07dab9b48b | /about_orm/app01/models.py | eb0e65d0120790442bd0561e2021c0df7c9e6ab5 | [] | no_license | createnewdemo/istudy_test | 82197488d9e9fa05e0c6cc91362645fc4555dc1d | 806693f2bee13e3c28571d0d75f6b6ea70acf7a0 | refs/heads/master | 2022-04-19T05:52:53.780973 | 2020-04-17T17:04:10 | 2020-04-17T17:04:10 | 256,507,355 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | from django.db import models
# Create your models here.
class Person(models.Model):
pid = models.AutoField(primary_key=True)
name = models.CharField(db_column='nick',max_length=32,blank=True,null=True) #char
age = models.IntegerField()
birth = models.DateTimeField(auto_now=True)# 新增数据是自动保存
#auto_no... | [
"320783214@qq.com"
] | 320783214@qq.com |
8f96c48c1e4bd9530d879ca2c31181ad9a56ae83 | 6e9f3e81af3ab66b10f8602544695ad9b035ffa5 | /jcoin/scripts/make-account.py | b95b671a8d4502546c79277eb6056937b88e1bef | [
"MIT"
] | permissive | slice/jose | 5ca7074e326e5fcffe7a1abfef249160644faa7c | 13e39b958f58fd024b3ba5b7ccd0a1cd7f02f14c | refs/heads/master | 2021-05-04T22:48:09.804518 | 2018-03-06T02:18:47 | 2018-03-06T02:18:47 | 99,070,186 | 0 | 0 | null | 2017-08-02T03:55:23 | 2017-08-02T03:55:23 | null | UTF-8 | Python | false | false | 198 | py | import requests
def main():
r = requests.post('http://0.0.0.0:8080/api/wallets/162819866682851329', json={
'type': 0,
})
print(r)
if __name__ == '__main__':
main()
| [
"lkmnds@gmail.com"
] | lkmnds@gmail.com |
ed2479409cc4d9b6931d821c5efacab31c8578a8 | 41fa2097f9037047ecb350f5b3efc30bc05f17e0 | /spiketoolkit/version.py | 5434119352b07fd912ca872cfaf3efdf17bfd578 | [
"MIT"
] | permissive | Shawn-Guo-CN/spiketoolkit | 7a670488b4a3009b7b410d4e172f9e547cee9566 | 11e60f3cd80c135c62e27538a4e141115a7e27ad | refs/heads/master | 2020-07-27T09:38:51.337170 | 2019-11-13T14:56:17 | 2019-11-13T14:56:17 | 209,047,879 | 0 | 0 | MIT | 2019-11-13T12:20:59 | 2019-09-17T12:28:09 | Python | UTF-8 | Python | false | false | 18 | py | version = '0.5.0'
| [
"alejoe9187@gmail.com"
] | alejoe9187@gmail.com |
4df461452801f2faf135f7c05f95ba61cea06067 | 9c6decc65c5dc7aed3aff66405cdafa3a750d8a5 | /Problem001-100/001 Multiples of 3 and 5.py | 7bd80a9209855897b4d5ae1373916f32144db95b | [] | no_license | Anfany/Project-Euler-by-Python3 | 9374a6a112843f03f7cda6b689a8fd7db7914a9d | 385e2c1c02b5e81111e054c3807911defde2dc29 | refs/heads/master | 2021-04-06T00:48:03.603738 | 2019-04-18T02:35:02 | 2019-04-18T02:35:02 | 124,505,893 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | #!/usr/bin/python3.5
# -*- coding: UTF-8 -*-
#Author: AnFany
# Problem001 Multiples of 3 and 5
an=sum([i for i in range(1,1000) if i%3==0 or i%5==0])
print(an)
#答案:233168
| [
"noreply@github.com"
] | Anfany.noreply@github.com |
01219c0d59a45dc07bc0fe122f4f98a0001c725f | b665fe52aceca20944f5c7dfc74688370e514666 | /dbaas/physical/migrations/0012_auto__add_field_instance_status.py | 5e0c49703a3e5ac93acc5e802ce304b2ae2c9ef9 | [] | no_license | tsunli/database-as-a-service | 5e68ee22b1b46d30c6d83278407494971097d451 | 73573d495f62829259f656dfa0b642b9be4f2ead | refs/heads/master | 2021-01-24T15:06:42.029936 | 2015-07-02T21:42:44 | 2015-07-02T21:42:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,471 | 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):
# Adding field 'Instance.status'
db.add_column(u'physical_instance', 'status',
self.gf... | [
"raposo.felippe@gmail.com"
] | raposo.felippe@gmail.com |
7355cb8b618bc1bf927c25c2ad8f74d161bec0bb | 6bf19501437a419bfb0b891a1ac55b52ab833b97 | /apps/master/actors/chat.py | c391adc38b6c2b7c8daffee794dcb38e1e27239d | [
"Apache-2.0"
] | permissive | jdelrue/digital_me | 330351edbfa5ffb931f5f0592c5738432c2eaa88 | 5e4699a3c94088fa089e0c1fefab9955cd6bd927 | refs/heads/master | 2020-04-07T16:56:53.703863 | 2018-07-31T13:08:30 | 2018-07-31T13:08:30 | 158,549,943 | 0 | 0 | NOASSERTION | 2018-11-21T13:11:28 | 2018-11-21T13:11:28 | null | UTF-8 | Python | false | false | 1,075 | py | from jumpscale import j
#BE CAREFUL MASTER IS IN: /code/github/threefoldtech/jumpscale_lib/JumpscaleLib/servers/gedis/base/actors/chat.py
JSBASE = j.application.jsbase_get_class()
class chat(JSBASE):
"""
"""
def __init__(self):
JSBASE.__init__(self)
self.chatbot = j.servers.gedis.latest.c... | [
"kristof@incubaid.com"
] | kristof@incubaid.com |
51242aad84f877f6312483b22294f379050c32d6 | c8a7ccfb42628d1100562a053c4334488e1bf239 | /shell_cartesian_product.py | 6fa93aafa24d0d97ef46b832a619ec80dfc50343 | [
"CC0-1.0"
] | permissive | LyricLy/python-snippets | 8487619a916e33e02b5772aba577d9dafdfd803b | 9d868b7bbccd793ea1dc513f51290963584a1dee | refs/heads/master | 2020-04-08T01:57:22.511167 | 2018-11-24T08:12:20 | 2018-11-24T08:12:20 | 158,916,096 | 1 | 0 | CC0-1.0 | 2018-11-24T08:16:59 | 2018-11-24T08:16:59 | null | UTF-8 | Python | false | false | 624 | py | #!/usr/bin/env python3
# encoding: utf-8
import re as _re
def expand(str) -> (str, str):
"""expand a string containing one non-nested cartesian product strings into two strings
>>> expand('foo{bar,baz}')
('foobar', 'foobaz')
>>> expand('{old,new}')
('old', 'new')
>>> expand('uninteresting')
'uninteresting'
"... | [
"bmintz@protonmail.com"
] | bmintz@protonmail.com |
c7efb64ec9be875434887caa7539ac4f76f26d5e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02398/s216293399.py | f27ba33161028edb6af38fe51bdbad406e51b2e2 | [] | 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 | 138 | py | from sys import stdin
a, b, c = [int(x) for x in stdin.readline().rstrip().split()]
print(len([x for x in range(a, b+1) if c % x == 0]))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bc5a5fe7fe9489e01e90443f9ac694caba89f548 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02681/s356994323.py | 1a9332ce96290a7bc4f73232250e7871b5299d84 | [] | 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 | 97 | py | S = input()
T = input()
S = S + T[-1]
if S == T:
ans = 'Yes'
else:
ans = 'No'
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5bed01a254bd62b699ed700ae1d181c947b9b35a | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/B/buttub/basic_twitter_scraper_210.py | 9d1bd12d5fb4a5b4529a86e87666c11c1e6b964c | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | ###################################################################################
# Twitter scraper - designed to be forked and used for more interesting things
###################################################################################
import scraperwiki
import simplejson
import urllib2
# Change QUERY to y... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
7d254cf76a88c8dfee2d600c08809f29ae21763e | d7e131777d76b98d76cc3a37f96313282b1ad69c | /functions.py | 856222fe9fdc0a66c0ab04d04595eca664c857c5 | [] | no_license | prashararchi/spy-chat | bd7e71bbcb627c075e196f1c487d8039ac843db4 | 9d2cb9a81f78ac7afc08642d6669988d3ee67500 | refs/heads/master | 2020-12-02T22:10:09.834229 | 2017-07-03T10:04:17 | 2017-07-03T10:04:17 | 96,092,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | from spy_details import*
from steganography.steganography import Steganography
from colorama import init,Fore,Style
from datetime import datetime
#reading chat_history
def read_chat_history():
read_for = select_friend()
for chat in friends[read_for].chats:
if chat.sent_by_me:
init(autoreset... | [
"="
] | = |
a78dbd6d284e4a6f01a1019211971bc9c0c8c61b | 0d942316070509955bad7ee774ac417e5c7b1235 | /datastructures/minheap.py | 34ab3809f1483e9783635f1a0761b4eb078ad011 | [] | no_license | rlavanya9/hackerrank | 4750ad48d5d249f1d58e6eff205e585f17e6a78b | 64e6686df62c1f1cdaa7dfb6d0c4525d236c197b | refs/heads/master | 2023-03-24T15:50:41.616353 | 2021-03-19T17:26:54 | 2021-03-19T17:26:54 | 349,502,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | """
Min Heap Implementation in Python
"""
class MinHeap:
def __init__(self):
"""
On this implementation the heap list is initialized with a value
"""
self.heap_list = [0]
self.current_size = 0
def sift_up(self, i):
"""
Moves the value up in the tree to m... | [
"rangaswamy.lavanya@gmail.com"
] | rangaswamy.lavanya@gmail.com |
cd3e76b86f9d33e10b10335157e5d340ce734962 | 0fdc732fcdad1c0d76d6ec80cb6e25b6ec17d6e1 | /generic_views/display_views/models.py | 09bf2b21330b7de58380a241d44bb9f07e61cb04 | [
"MIT"
] | permissive | markbirds/Django-Code-Repo | 9b3c8bfba948dd8ea1be71e31cbfd2ef26bfa157 | b55762d2dab00640acf2e8e00ddc66716d53c6b5 | refs/heads/master | 2023-01-05T22:44:16.405853 | 2020-11-03T07:17:50 | 2020-11-03T07:17:50 | 299,615,438 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | import uuid
from django.db import models
class DisplayViewModel(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
name = models.CharField(unique=True,max_length=50)
age = models.IntegerField()
def get_absolute_url(self):
from django.urls import reverse
... | [
"fowenpatrick@gmail.com"
] | fowenpatrick@gmail.com |
b6edf643e623372579197f494e3f4691341ddcb7 | 4d56399b01d06946024822edcdf2b45bbc1dfe8f | /tests/app/TestMnistFlow.py | 8f88a7e2bb5e318f3bfeb41e1b6c8a2ca68253c7 | [] | no_license | fletch22/nba_win_predictor | 961b520b50cd5bebceb8c5d2bc91bc0dc71715ef | aff78780aca8a54c22e904cdcdee569278d4f5fc | refs/heads/master | 2023-08-11T02:44:22.613419 | 2020-04-09T21:32:38 | 2020-04-09T21:32:38 | 181,233,092 | 0 | 0 | null | 2021-08-25T14:57:49 | 2019-04-13T22:01:58 | Python | UTF-8 | Python | false | false | 2,443 | py | import warnings
from app.models.mnist_pretrained import get_vgg16_for_mnist
warnings.filterwarnings('ignore')
import os
from unittest import TestCase
from keras.layers import Convolution2D, MaxPooling2D
from keras.layers import Flatten, Dense
from keras.models import Sequential
from keras.preprocessing.image import... | [
"chris@fletch22.com"
] | chris@fletch22.com |
a4fd68b0396381878daf049a641dec0c58de016d | c5cb9d60da5bab94ccf4dfb28185315521cc2736 | /tests/fountain/test_program.py | 7edc24568ab6f69d4fee090c0a2202d98ada73c7 | [] | no_license | Let-it-Fountain/code-generator | 4aa93ed7688e064d727619f68c902823b5c99e4e | 25560af09d008d5501eb4f68e8db5bb2aeaa8461 | refs/heads/master | 2016-08-12T18:43:30.896931 | 2016-01-07T20:16:02 | 2016-01-07T20:38:42 | 49,221,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | import unittest
from fountain.command import ChangeNozzlePressureAndColorFountainCommand
from fountain.program import FountainProgram
class TestFountainProgram(unittest.TestCase):
def test_parse_json(self):
json = """{
"version": 1,
"commands": [
{
... | [
"0coming.soon@gmail.com"
] | 0coming.soon@gmail.com |
016b7f14678ca082a128d9d26d7fe538516f88ca | 298c86756b741b4c0b706f5178fd26d6d3b63541 | /src/301_400/0330_patching-array/patching-array.py | 272322d30bc46a5f36cd0da0e961270b3653ad2b | [
"Apache-2.0"
] | permissive | himichael/LeetCode | c1bd6afd55479440c21906bf1a0b79a658bb662f | 4c19fa86b5fa91b1c76d2c6d19d1d2ef14bdff97 | refs/heads/master | 2023-02-12T07:25:22.693175 | 2023-01-28T10:41:31 | 2023-01-28T10:41:31 | 185,511,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | class Solution:
def minPatches(self, nums: List[int], n: int) -> int:
patches, x = 0, 1
length, index = len(nums), 0
while x <= n:
if index < length and nums[index] <= x:
x += nums[index]
index += 1
else:
x <<= 1
... | [
"michaelwangg@qq.com"
] | michaelwangg@qq.com |
8235e8dcebb8c85c71c21f2c8a9467bf62a6ff4b | e5a511e346f5be8a82fe9cb2edf457aa7e82859c | /Python/ListPrograms/shuffleList.py | 87719058859c7a7cc65a26310471c5e2ace1e816 | [] | no_license | nekapoor7/Python-and-Django | 8397561c78e599abc8755887cbed39ebef8d27dc | 8fa4d15f4fa964634ad6a89bd4d8588aa045e24f | refs/heads/master | 2022-10-10T20:23:02.673600 | 2020-06-11T09:06:42 | 2020-06-11T09:06:42 | 257,163,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | """Write a Python program to shuffle and print a specified list. """
from random import shuffle
words = list(input().split())
shuffle(words)
print(words) | [
"neha.kapoor070789@gmail.com"
] | neha.kapoor070789@gmail.com |
35e12a74b76bdfabf580cd443df340d7e4f27584 | 565548ff49844ed69ae16d5104e500f01c973402 | /models/PST.py | 2592e69433fc0f5746b4d5cfa9e4f09e85a9eae1 | [] | no_license | jaisenbe58r/Pebrassos | 159ce5a8b372590fd9368d9b5b3c1b0513895bba | 7516a1f7bbba78547af86a9858ee381224964d28 | refs/heads/master | 2023-02-27T05:42:50.652697 | 2021-01-31T20:57:59 | 2021-01-31T20:57:59 | 299,698,630 | 3 | 1 | null | 2021-01-31T20:58:01 | 2020-09-29T18:04:36 | Jupyter Notebook | UTF-8 | Python | false | false | 1,169 | py | """Copyright (c) 2020 Jaime Sendra Berenguer & Carlos Mahiques Ballester
Pebrassos - Machine Learning Library Extensions
Author:Jaime Sendra Berenguer & Carlos Mahiques Ballester
<www.linkedin.com/in/jaisenbe>
License: MIT
"""
import pandas as pd
import numpy as np
from sklearn.preprocessing import MinMaxScaler
... | [
"jsendra@autis.es"
] | jsendra@autis.es |
bbf4f55b09e09fe087a85c3b9f7f3de103ee6cff | 7c5b8af0ef2af6f43fad895bae835ea323b2c236 | /accounts/migrations/0001_initial.py | 76ce2fcad8a9b87b624eb374769fc175fa18fb89 | [] | no_license | Tushant/ariadne_tutorial | 51f0d30b79172adc7548b43db9d5abe4048464a6 | 73b9054a88df1d130cbc965e4c6e1d33c5a38063 | refs/heads/master | 2021-11-23T11:25:59.885883 | 2020-01-25T11:05:55 | 2020-01-25T11:05:55 | 236,158,115 | 1 | 1 | null | 2021-11-01T06:52:23 | 2020-01-25T10:56:34 | Python | UTF-8 | Python | false | false | 8,421 | py | # Generated by Django 3.0.2 on 2020-01-25 05:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import multiselectfield.db.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(setting... | [
"programmertushant@gmail.com"
] | programmertushant@gmail.com |
8760723ee95d31f6a5cbdb418e9be59736b266df | 931ae36e876b474a5343d0608ef41da6b33f1048 | /062.py | 65898c09041b8f9ab2b9ef1e6e95318adaac13bd | [] | no_license | mucollabo/py100 | 07fc10164b1335ad45a55b6af4767948cf18ee28 | 6361398e61cb5b014d2996099c3acfe604ee457c | refs/heads/master | 2023-01-27T13:48:57.807514 | 2020-12-10T12:49:10 | 2020-12-10T12:49:10 | 267,203,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | import openpyxl
from openpyxl.styles import Alignment
import os
# 워크북(Workbook) 객체 만들기
wb = openpyxl.Workbook()
# 시트(Sheet) 객체 만들기
ws = wb.create_sheet(index=0, title='Merge')
wb.remove(wb['Sheet'])
# 데이터 입력하기
tuple_of_rows = ((1, 2),
(3, 4),
(5, 6),
(7, 8),
... | [
"mucollabo@gmail.com"
] | mucollabo@gmail.com |
cff20af9ca952b1c601ab44b87a8efd7effd6b35 | cff2b7c96ca0355a44116f6d18f026da69e412b0 | /script.module.Galaxy/lib/resources/lib/sources/en/Galaxy (31).py | 393be8d1d8c6c5e1d22fd97aa6d10bfc39403e53 | [
"Beerware"
] | permissive | krazware/therealufo | cc836e4e7049d277205bb590d75d172f5745cb7d | 4d6341c77e8c2cc9faec0f748a9a2d931b368217 | refs/heads/master | 2020-03-19T00:41:22.109154 | 2019-11-12T05:06:14 | 2019-11-12T05:06:14 | 135,496,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,918 | py | '''
The Martian Add-on
***FSPM was here*****
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
T... | [
"krazinabox@gmail.com"
] | krazinabox@gmail.com |
084b701db876a7a9cc96de46ba22410822435bef | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/2768.py | 40e17f65e0ef41dbbc7a6fbe6147c990164a2ac2 | [] | 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 | 958 | py | T = int(input())
for t in range(1, T + 1):
result = ""
N, K = [int(i) for i in input().split(" ")]
if N == K:
result = "{} {}".format(0, 0)
else:
s = [0 for i in range(N)]
for c in range(K):
Ls = [0 for i in range(N)]
Rs = [0 for i in range(N)]
for i in range(N):
if s[i] == 0:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c92647660bee53af23986221cb7ab6c32ab5ce7f | 8a3d282ffb9830b01a3b698e2930ba8da6617d99 | /Lesson4/exercise1.py | 325205e8b230c4e4ebd0d2c7fbf211e9164ab04a | [] | no_license | papri-entropy/pynet-py3 | 08ba96adc9e0163990c7a8064ed8207b898748ff | 5554fa8a61b2e57f652046815e60f1b6db361d1e | refs/heads/master | 2023-04-03T17:51:45.105739 | 2021-04-15T14:33:05 | 2021-04-15T14:33:05 | 344,288,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | #!/usr/bin/env python
"""
1. Create a dictionary representing a network device. The dictionary should have key-value pairs representing the 'ip_addr', 'vendor', 'username', and 'password' fields.
Print out the 'ip_addr' key from the dictionary.
If the 'vendor' key is 'cisco', then set the 'platform' to 'ios'. If th... | [
"cosminpetrache4@gmail.com"
] | cosminpetrache4@gmail.com |
1c77ea48c7fcd5eb428149cef29095ba678ce323 | d9a22d4dcdfc0c28176c0e8afd784b30d275597e | /test_suite/system_tests/sequence.py | 6366e36289697ac02974e7ee733bfa98c9e73436 | [] | no_license | jlec/relax | fda1b3ff77be0afc21c2e6cc52348ae7635cd07a | c317326ddeacd1a1c608128769676899daeae531 | refs/heads/master | 2016-09-08T00:27:57.256090 | 2015-02-10T12:24:55 | 2015-02-10T12:24:55 | 30,596,131 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,738 | py | ###############################################################################
# #
# Copyright (C) 2006-2015 Edward d'Auvergne #
# Copyright (C) 2013-2014 Troels E. Linnet #
... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
986648f850c2baa86b81a830fe9aa86b1cb75ddc | ff60a647a3cc566220f5cefc8ddec7e1f865ac20 | /0x13-count_it/2-recurse.py | 01d85f2ffb597b45e64d288db5d85c4b052c9f42 | [] | no_license | mag389/holbertonschool-interview | cf6c2cc568bc321dcd705fbb76ad1e13ff8ba4f7 | 6f5b621d7a03efb990970e8c28ac41c1498aa6cd | refs/heads/main | 2023-07-19T05:57:50.296276 | 2021-09-09T14:34:02 | 2021-09-09T14:34:02 | 319,713,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | #!/usr/bin/python3
""" script to scrape and count words from reddit hot posts
"""
import requests
import time
import urllib
import sys
def recurse(subreddit, hot_list=[], after=""):
""" uses reddit api to give top 10 hot posts
in a subreddit
"""
custom_user = {"User-Agent": "custom"}
url = "ht... | [
"mag389@cornell.edu"
] | mag389@cornell.edu |
2abce665437b0f3f3ab17d70c43c98a0c6ebc291 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayInsSceneFamilydoctorItemBatchqueryModel.py | 4a78f51f516c09e2559b61451709e855a8a875f6 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,638 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayInsSceneFamilydoctorItemBatchqueryModel(object):
def __init__(self):
self._ant_ser_contract_no = None
self._disease_name_list = None
self._emergency = None
s... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
de6378f101239d52c399e53d1291b84af868b941 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /22_专题/implicit_graph/RangeFinder/Finder-fastset.py | ce22f608c5a5bd551f47efa704b5fe7821690be3 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | # 寻找前驱后继/区间删除
from typing import Optional
class Finder:
"""利用位运算寻找区间的某个位置左侧/右侧第一个未被访问过的位置.
初始时,所有位置都未被访问过.
"""
__slots__ = "_n", "_lg", "_seg"
@staticmethod
def _trailingZeros1024(x: int) -> int:
if x == 0:
return 1024
return (x & -x).bit_length... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
af395d8bcd9241eb4c44624c39fe7ebc590dfbfb | fc04d8c88c98e85b349ba7e2e83f777382f0b723 | /backend/env/bin/isort | b6a6064048de9614320dc7fb78844625762b07be | [] | no_license | Iamprakashkhatri/DjangoReact | b4a653a410195c9fe97a6ca80db579a37d9db8ba | 9196c5ccda4821e054c85dafcc9873dd49ca8121 | refs/heads/master | 2022-12-08T14:18:58.491257 | 2020-08-23T12:52:47 | 2020-08-23T12:52:47 | 289,685,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/prakash/Downloads/DjangoReact/backend/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"prakash"
] | prakash | |
1ef40b11592352d2630e7e1c9536c6dc9c1fa5ee | 2463da77ab902e3728a71fc0a09fb92f687e755d | /contentful_proxy/handlers/files.py | ac9a51f1a693722ac68d98e5b4cf05a01ac3cd13 | [
"MIT"
] | permissive | stanwood/gae-contentful-proxy | 5c2f0aa41819483aa8e428134cc94d4f26c90141 | 739a8b370eb714e27a9f2b50e3772701f52f81df | refs/heads/master | 2020-03-24T20:41:06.798623 | 2019-02-28T10:22:46 | 2019-02-28T10:22:46 | 142,991,557 | 2 | 0 | MIT | 2019-02-28T10:22:47 | 2018-07-31T09:19:16 | Python | UTF-8 | Python | false | false | 4,576 | py | # The MIT License (MIT)
#
# Copyright (c) 2018 stanwood GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, m... | [
"rivinek@gmail.com"
] | rivinek@gmail.com |
f35a141a6b9327cb830d2aa9efce7a27e0ecb22c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02797/s548875738.py | 1e4c657afd00f60237371da34c8f737408e516b4 | [] | 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 | 197 | py | N,K,S=map(int,input().split())
ans=[]
if S<10**9:
ans=[S for i in range(K)]
ans+=[S+1 for i in range(N-K)]
else:
ans=[S for i in range(K)]
ans+=[1 for i in range(N-K)]
print(*ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d1bf2049a59457c56b84b74c34d47389cacbb62b | 13f4a06cd439f579e34bf38406a9d5647fe7a0f3 | /script/finger_tree_ops.py | 4642df8feb8f57e7fb70984082e457c293f5e93e | [] | no_license | edt-yxz-zzd/python3_src | 43d6c2a8ef2a618f750b59e207a2806132076526 | 41f3a506feffb5f33d4559e5b69717d9bb6303c9 | refs/heads/master | 2023-05-12T01:46:28.198286 | 2023-05-01T13:46:32 | 2023-05-01T13:46:32 | 143,530,977 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 121,767 | py | #HHHHH
r'''
the -> cls The... ISingleton
assert the is T()
arg:iterator/seq/tree
reverse
L/R end
insert at?
replace
extend/join
times/mul
split at?
delete at?
cased_tuple/tuple/FrozenDict-record
per element monoid_ops
measure by index
grep '^def|^class|^\w+\s*=' __file__
grep '^[a-zA-Z_]' __file__
_debug... | [
"wuming_zher@zoho.com.cn"
] | wuming_zher@zoho.com.cn |
4d27f8a2e3a7a4c655602b958bdd5755afb6049f | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/nist_data/list_pkg/unsigned_int/schema_instance/nistschema_sv_iv_list_unsigned_int_enumeration_5_xsd/__init__.py | aac688dac1eef59628983e92d248aa85f031d7b3 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 395 | py | from output.models.nist_data.list_pkg.unsigned_int.schema_instance.nistschema_sv_iv_list_unsigned_int_enumeration_5_xsd.nistschema_sv_iv_list_unsigned_int_enumeration_5 import (
NistschemaSvIvListUnsignedIntEnumeration5,
NistschemaSvIvListUnsignedIntEnumeration5Type,
)
__all__ = [
"NistschemaSvIvListUnsign... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
ebba29e91a30057168a0cd0f69ce39d84363309c | aa9e472929a1f3f87bbcd5cc272be99a68bf047a | /tuples/find_repeated_items.py | f5ead828d7bb5bb8c756c383020eb510d31fe6c4 | [] | no_license | stradtkt/Python-Exercises | 226706542f88973f77e6f2870b21cd87a278bf2b | 18353443b146ce6e8345fcf618d07de2bae6eb86 | refs/heads/master | 2020-03-19T16:09:51.006809 | 2018-06-30T20:28:34 | 2018-06-30T20:28:34 | 136,703,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | my_tuple = 2,4,6,2,4,6,5,2,4,6,7
count1 = my_tuple.count(2)
count2 = my_tuple.count(4)
count3 = my_tuple.count(6)
print(count1)
print(count2)
print(count3) | [
"stradtkt22@gmail.com"
] | stradtkt22@gmail.com |
b281272d10fb31464d7d8a0cb4e290739c32189e | 634367d6a94d9bce231a8c29cf9713ebfc4b1de7 | /covid_dashboard/views/get_day_wise_district_details/tests/test_case_02.py | f45bf3a2ba5ff1d48aed35ca3ba4a418dcc8c048 | [] | no_license | saikiranravupalli/covid_dashboard | 5a48c97597983ada36a3bf131edf5ca15f1dedec | 954dd02819fb8f6776fa2828e8971bd55efa657c | refs/heads/master | 2022-11-08T10:11:27.836507 | 2020-06-30T09:00:27 | 2020-06-30T09:00:27 | 269,610,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | """
# TODO: get_day_wise_district_details with valid district_id returns details
"""
from covid_dashboard.utils.custom_test_utils import CustomTestUtils
from . import APP_NAME, OPERATION_NAME, REQUEST_METHOD, URL_SUFFIX
REQUEST_BODY = """
{}
"""
TEST_CASE = {
"request": {
"path_params": {"district_id": "... | [
"saikiranravupalli@gmail.com"
] | saikiranravupalli@gmail.com |
5d51b6541ffc22ba6dbade62616ccfd70e03dba4 | e2d22f12f8e540a80d31de9debe775d35c3c5c22 | /blousebrothers/users/migrations/0002_auto_20161009_0739.py | 5caaeef0f9d6ef6321c753470fdeb2432fd49587 | [
"MIT"
] | permissive | sladinji/blousebrothers | 360c3b78ec43379977dbf470e5721e6a695b2354 | 461de3ba011c0aaed3f0014136c4497b6890d086 | refs/heads/master | 2022-12-20T10:24:07.631454 | 2019-06-13T13:17:35 | 2019-06-13T13:17:35 | 66,867,705 | 1 | 0 | NOASSERTION | 2022-12-19T18:15:44 | 2016-08-29T18:04:33 | Python | UTF-8 | Python | false | false | 757 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-10-09 07:39
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
m... | [
"julien.almarcha@gmail.com"
] | julien.almarcha@gmail.com |
bbc0d7036c3b0d1661ec5acc2b80f06806aeda93 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /L4HM6uMHDCnepz5HK_7.py | d5c57b4d97b416320f6e56898bb1695785da62cf | [] | 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 | 401 | py | """
Create a function that takes date in the format **yyyy/mm/dd** as an input and
returns `"Bonfire toffee"` if the date is October 31, else return `"toffee"`.
### Examples
halloween("2013/10/31") ➞ "Bonfire toffee"
halloween("2012/07/31") ➞ "toffee"
halloween("2011/10/12") ➞ "toffee"
### N... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e628538fa02d09604b3f2fe873cba3fcd99a1d5c | 80e527f63953a43f7f70112759f27a75d0b25179 | /pytext/data/test/kd_doc_classification_data_handler_test.py | 8d0108c8284547354a1c3e5775a04351fee3bc40 | [
"BSD-3-Clause"
] | permissive | shruti-bh/pytext | 901c195b74a03c6efe965cbfce8fde28560e47db | ae84a5493a5331ac07699d3dfa5b9de521ea85ea | refs/heads/master | 2020-04-22T13:11:20.178870 | 2019-02-12T20:56:34 | 2019-02-12T21:20:25 | 170,400,331 | 1 | 0 | NOASSERTION | 2019-02-12T22:20:47 | 2019-02-12T22:20:47 | null | UTF-8 | Python | false | false | 3,136 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import unittest
from pytext.config.field_config import FeatureConfig
from pytext.config.kd_doc_classification import ModelInputConfig, Target, TargetConfig
from pytext.data import KDDocClassificationDataHandler
from pytext.d... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f83506a11c7bb222bdbd4f3d5c0f18adfbef24c5 | 385ab972316b41cb0643f1050f9220b8eaeb4647 | /cutTheSticks.py | b33dc260c16a89e751d1f3844911ef48097f6cb2 | [] | no_license | Rpratik13/HackerRank | 09174c9b331e25cec33848a80e9109800cdbc894 | 38b9a39261bfb3b2fc208ad1e3d8a485585b419a | refs/heads/master | 2020-03-22T05:24:03.516086 | 2020-01-31T16:08:19 | 2020-01-31T16:08:19 | 139,563,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | def cutTheSticks(arr):
ans = []
while max(arr)!=0:
while min(arr)==0:
arr.remove(0)
min1 = min(arr)
count = 0
for i in range(0,len(arr)):
arr[i]-=min1
count+=1
ans.append(count)
return ans
n = int(input())
arr = list(map(int, input().rstrip().split()))
result = cutTheSticks(arr)
for i in resul... | [
"r.pratik013@gmail.com"
] | r.pratik013@gmail.com |
3019e63efae8bf251345dedc6ade8214439b4276 | d9504b779ca6d25a711c13fafc1b8669c60e6f62 | /shape_recognition/libraries/braile_recognition/plotScript.py | 4a9bd429775020ba0b1151785b48933dbe7560e2 | [
"MIT"
] | permissive | ys1998/tactile-shape-recognition | dcdd3f4da66b4b3f6159dccf9cec4d367f6483d9 | b5ab6f1cdf04ff23e14b467a590533e7ee740b52 | refs/heads/master | 2020-03-18T03:01:17.985074 | 2018-07-28T09:46:16 | 2018-07-28T09:46:16 | 134,218,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | import numpy as np
import matplotlib.pyplot as plt
c = 0
r = 3
s = np.loadtxt('./NewData_BRC/BRC_B5.txt')
taxel = []
for k in range(c,len(s),4):
taxel.append(s[k,r])
print len(taxel)
plt.figure()
plt.plot(taxel)
plt.show()
| [
"yashshah2398@gmail.com"
] | yashshah2398@gmail.com |
8d5a89a05b311b9d5137c404950505cd7eac5bfa | f3f7099576adfb683fb74c575b235bdd6c2900c7 | /examples/demos_by_system/pendulum_double/double_pendulum_with_lqr.py | cda2f8818732a357ed072532029e056e2fe8a0f4 | [
"MIT"
] | permissive | SherbyRobotics/pyro | a1fac4508162aff662c4c6073eb2adf357b1bc8b | baed84610d6090d42b814183931709fcdf61d012 | refs/heads/master | 2023-08-08T16:16:31.510887 | 2023-07-26T17:36:26 | 2023-07-26T17:36:26 | 153,139,985 | 35 | 23 | MIT | 2023-07-26T17:36:27 | 2018-10-15T15:45:09 | Python | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun May 24 11:51:18 2020
@author: alex
"""
import numpy as np
from pyro.dynamic.pendulum import DoublePendulum
from pyro.analysis.costfunction import QuadraticCostFunction
from pyro.dynamic.statespace import linearize
from pyro.control.lqr ... | [
"alx87grd@gmail.com"
] | alx87grd@gmail.com |
ea960fdb336509f7286bd45c359d6f34b4776066 | 3d6704216b1acfe1c97048c1999657537596916c | /django_test/users/validators/password.py | 458a8e4d1aacd4add82592ca255529af6447b942 | [] | no_license | jupiny/django_test | e2310ee485e570e92b3f66e7f23dfa8c36a63c58 | b3ef08259177229166e54ede8f7315e2522af438 | refs/heads/master | 2021-01-17T15:46:06.636001 | 2016-11-03T05:27:34 | 2016-11-03T05:27:34 | 59,828,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | import re
from django.core.exceptions import ValidationError
MINIMUM_LENGTH = 8
def validate_minimum_length(value):
if len(value) < MINIMUM_LENGTH:
raise ValidationError("The password should be at least {0} characters long.".format(MINIMUM_LENGTH))
def validate_letters(value):
# Number
if not... | [
"tmdghks584@gmail.com"
] | tmdghks584@gmail.com |
ca6c45bf21e217f99fdab1def87ac38681fe797e | f901fae034458703f5ca9a9a81433a2dcb1b8b1c | /tests/framework/hooks/test_context_hooks.py | b6b68abfe99bbe9098429bde1747b883483e577a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kiminh/kedro | bb6df5867bcca307adc0b321343da70f5c899540 | 8c0a8ccbffa22daf64a31fea138402a34fd51f2b | refs/heads/master | 2022-12-09T10:05:34.300506 | 2020-09-23T12:28:47 | 2020-09-23T12:28:47 | 299,792,869 | 1 | 0 | NOASSERTION | 2020-09-30T02:49:54 | 2020-09-30T02:49:53 | null | UTF-8 | Python | false | false | 27,700 | py | # Copyright 2020 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS",... | [
"noreply@github.com"
] | kiminh.noreply@github.com |
da46a7bd47b78c6f73bfb13edface03d1800cba5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /z5zpTucxpMLL72FCx_5.py | 707b3eb2d9448862618c21c90f1fd45b21c4bcb1 | [] | 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 | 502 | py | """
Write a function to return the city from each of these vacation spots.
### Examples
grab_city("[Last Day!] Beer Festival [Munich]") ➞ "Munich"
grab_city("Cheese Factory Tour [Portland]") ➞ "Portland"
grab_city("[50% Off!][Group Tours Included] 5-Day Trip to Onsen [Kyoto]") ➞ "Kyoto"
### ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f1910980479f11c5206314612413a19bd533f2d5 | 30f6a276dc667ff8910dd442ddcd7d21198aef58 | /Helicons in Metals/varying_freq_analysis.py | ceb8f7d9db3dd4a1de03630827bd50adf22e6a8e | [] | no_license | ericyeung/PHY424 | 5ddef3b8e95ad253e064736c6da653c7bc260435 | 200ebbed21abbeee5b3e313adfe307d3d7c2068c | refs/heads/master | 2021-05-04T11:46:34.979089 | 2016-08-21T18:37:05 | 2016-08-21T18:37:27 | 49,386,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | #!/usr/bin/env python
from __future__ import division
from math import *
import matplotlib.pyplot as plt
import numpy as np
from varying_freq_data import *
"""
Plots the resonances
Last updated: November 9
"""
__author__ = "Eric Yeung"
plt.plot(frequency26, pickup26)
plt.errorbar(frequency26, pickup26, ferror26, per... | [
"irq.ericyeung@hotmail.com"
] | irq.ericyeung@hotmail.com |
75d11f63a91f6acbedc0504480a733cffdc0e729 | 526b892fa981573f26d55c361b42a9d3fa841db5 | /haas/manage.py | 02a9c9675961e00ed03095bbba46c2c1c4dccfff | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | uranusjr/bbshighlighter | 13d89713245f95906a733b7aa8e7c39c58f6ec22 | da35d483e429e0cbd0619b1bc399f4fe67de9ac3 | refs/heads/master | 2020-05-31T22:36:58.424739 | 2014-03-07T17:24:00 | 2014-03-07T17:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "haas.settings.production")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"uranusjr@gmail.com"
] | uranusjr@gmail.com |
fe25109d046615a0e7e11fb729ba22f26a636fe0 | 3373b2bbe6303dcee3ae7f7f3e715ce674878a7b | /nusoft/package_manager.py | d0fc233a89c3d06f5f4f8f57f886bcfd64b7e5b7 | [
"MIT"
] | permissive | pgjones/nusoft | f3515a6e2fc90622638cde0b8712ba6fcea2aa8e | 442c7bca2f921892ecf9eb3ff6821e2a9da7b156 | refs/heads/master | 2020-09-12T21:44:54.453633 | 2014-10-03T20:22:09 | 2014-10-03T20:22:09 | 17,223,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,243 | py | #!/usr/bin/env python
#
# PackageManager
#
# Manages the packages on the system, installs, removes and updates.
#
# Author P G Jones - 2014-02-08 <p.g.jones@qmul.ac.uk> : First revision
####################################################################################################
import types
import logging
logge... | [
"p.g.jones@qmul.ac.uk"
] | p.g.jones@qmul.ac.uk |
b5503e5ac0863cea991c31606c9d661a6930e00b | 56f1bb713f0651ac63391349deb81790df14e4b5 | /Pet/pet.py | 53de7eb4272d2f2fdb482b88cb1747a7b250ad3a | [
"CC0-1.0"
] | permissive | rajitbanerjee/kattis | 4cd46a2fe335120b8f53ca71544fc0681474118b | 3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad | refs/heads/master | 2022-05-05T03:19:28.744660 | 2020-08-12T18:48:55 | 2020-08-12T18:48:55 | 192,208,120 | 4 | 2 | CC0-1.0 | 2022-04-15T05:50:16 | 2019-06-16T15:38:15 | Python | UTF-8 | Python | false | false | 227 | py | """https://open.kattis.com/problems/pet"""
sums = []
for i in range(5):
enter = list(map(int, input().split()))
sums.append(sum(enter))
winPoints = max(sums)
winner = sums.index(winPoints) + 1
print(winner, winPoints) | [
"rajit.banerjee@ucdconnect.ie"
] | rajit.banerjee@ucdconnect.ie |
860e8cfb6adb792ded6055048d9bc968e99326b1 | c9f67529e10eb85195126cfa9ada2e80a834d373 | /bin/pycodestyle | df2ddc1147f5cce9be2a239439bea29ab02444b8 | [
"Apache-2.0"
] | permissive | chilung/dllab-5-1-ngraph | 10d6df73ea421bfaf998e73e514972d0cbe5be13 | 2af28db42d9dc2586396b6f38d02977cac0902a6 | refs/heads/master | 2022-12-17T19:14:46.848661 | 2019-01-14T12:27:07 | 2019-01-14T12:27:07 | 165,513,937 | 0 | 1 | Apache-2.0 | 2022-12-08T04:59:31 | 2019-01-13T14:19:16 | Python | UTF-8 | Python | false | false | 255 | #!/home/ccma/n1p1/home/ccma/Chilung/lab5-venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pycodestyle import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(_main())
| [
"chilung.cs06g@nctu.edu.tw"
] | chilung.cs06g@nctu.edu.tw | |
721cec5d08493be8d4487e275ec3dac5977eeea6 | fbd4ecf7046171c4e96267c5982c964db54578f5 | /start code/src/Customer.py | 5e8cda2dc0acb09e187f3585b986fb294ad215a5 | [] | no_license | Alvin2580du/alvin_py | 6dddcfbfae214694e9f3dafd976101e681f2a66d | 82d3e9808073f2145b039ccf464c526cb85274e3 | refs/heads/master | 2021-05-05T16:01:43.544783 | 2019-10-29T02:23:59 | 2019-10-29T02:23:59 | 117,328,713 | 12 | 2 | null | 2021-03-20T00:06:37 | 2018-01-13T08:51:49 | Python | UTF-8 | Python | false | false | 1,279 | py | from flask_login import UserMixin
from abc import ABC, abstractmethod
class User(UserMixin, ABC):
__id = -1
def __init__(self, username, password):
self._id = self._generate_id()
self._username = username
self._password = password
@property
def username(self):
return ... | [
"ypducdtu@163.com"
] | ypducdtu@163.com |
8829126941188052375e680fa9fb5c24cf8b972b | 17ca5bae91148b5e155e18e6d758f77ab402046d | /Comparsion/compare_Federica_SED_data/compare_result.py | c3a371fd9726be0f5a55285fd4ac2f393152474a | [] | no_license | dartoon/QSO_decomposition | 5b645c298825091c072778addfaab5d3fb0b5916 | a514b9a0ad6ba45dc9c3f83abf569688b9cf3a15 | refs/heads/master | 2021-12-22T19:15:53.937019 | 2021-12-16T02:07:18 | 2021-12-16T02:07:18 | 123,425,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu May 9 14:00:30 2019
@author: Dartoon
Comparing the fitting between Xuheng and Federica
"""
import numpy as np
import astropy.io.fits as pyfits
import matplotlib.pyplot as plt
import sys
sys.path.insert(0,'../../py_tools')
from load_result import load_... | [
"dingxuheng@mail.bnu.edu.cn"
] | dingxuheng@mail.bnu.edu.cn |
dcc3c59f832a438160969f7eff0db6008ce5f49a | 632dcb4e37cadd87cb7ff8715b0048df5cd0d11b | /CompuCell3D/core/Demos/CC3DPy/scripts/AdhesionDemo.py | a0e3522ec008b21130e6d566bf455e82f0417b33 | [
"MIT"
] | permissive | CompuCell3D/CompuCell3D | df638e3bdc96f84b273978fb479842d071de4a83 | 65a65eaa693a6d2b3aab303f9b41e71819f4eed4 | refs/heads/master | 2023-08-26T05:22:52.183485 | 2023-08-19T17:13:19 | 2023-08-19T17:13:19 | 12,253,945 | 51 | 41 | null | 2023-08-27T16:36:14 | 2013-08-20T20:53:07 | C++ | UTF-8 | Python | false | false | 3,763 | py | """
This example demonstrates how to specify cell adhesion on the basis of molecular species.
"""
__author__ = "T.J. Sego, Ph.D."
__email__ = "tjsego@iu.edu"
from cc3d.core.PyCoreSpecs import Metadata, PottsCore
from cc3d.core.PyCoreSpecs import CellTypePlugin, VolumePlugin, ContactPlugin
from cc3d.core.PyCoreSpecs i... | [
"tjsego@gmail.com"
] | tjsego@gmail.com |
783ec51dceb9fa9c98c3845feb2efa5b9fc3a98a | fb3caa66ac0b2254b422303d670a70e597067758 | /201911_AI_Sec_Baidu/core-attack-codes/b_04.py | 03f7281f7068cfaf99a57ec7f5d848afd55c0a40 | [] | no_license | dyngq/Competitions | 065ec9f153919950b161aaa9fff6a9de9e29ba32 | e9b7ff8fbe038e148bc61b21b077f35cdc5368a9 | refs/heads/master | 2021-06-13T13:55:11.352531 | 2021-05-08T09:49:24 | 2021-05-08T09:49:24 | 186,392,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,927 | py | #coding=utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import functools
import numpy as np
import paddle.fluid as fluid
#加载自定义文件
import models
from attack.attack_pp import FGSM, PGD
from utils import init_prog, save_adv_image, proces... | [
"dyngqk@163.com"
] | dyngqk@163.com |
c4554c601893281110fded6f14187ef73c6df8da | 5086e9d2ae0c146f80f546e97788a2e4b1e5438f | /stumpy/aampdist_snippets.py | cbf29b4fd5eb31168e0994c1091e9d1e56555ee2 | [
"BSD-3-Clause"
] | permissive | HuoHuoisAlan/stumpy | a6c9952c2dd3343710521858295145b7eca8f727 | 01e867cfbef6f827b5b28913fd76a4eda59c5fed | refs/heads/main | 2023-04-18T17:42:47.952135 | 2021-05-09T23:47:01 | 2021-05-09T23:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,043 | py | # STUMPY
# Copyright 2019 TD Ameritrade. Released under the terms of the 3-Clause BSD license.
# STUMPY is a trademark of TD Ameritrade IP Company, Inc. All rights reserved.
import math
import numpy as np
from .core import check_window_size
from .aampdist import _aampdist_vect
def _get_all_aampdist_profiles(
T,
... | [
"seanmylaw@gmail.com"
] | seanmylaw@gmail.com |
43bb8e261178ccdbc8e0f38e34e559c1b2793e98 | 7bfb0fff9d833e53573c90f6ec58c215b4982d14 | /1688_count_matches.py | 0df81efb7ce040266c81c8a31339b3ec5db755e9 | [
"MIT"
] | permissive | claytonjwong/leetcode-py | 6619aa969649597a240e84bdb548718e754daa42 | 16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7 | refs/heads/master | 2023-07-14T23:40:26.569825 | 2021-08-22T17:23:20 | 2021-08-22T17:23:20 | 279,882,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | #
# 1688. Count of Matches in Tournament
#
# Q: https://leetcode.com/problems/count-of-matches-in-tournament/
# A: https://leetcode.com/problems/count-of-matches-in-tournament/discuss/970250/Kt-Js-Py3-Cpp-1-Liners
#
class Solution:
def numberOfMatches(self, N: int) -> int:
return 0 if N == 1 else N // 2 + ... | [
"claytonjwong@gmail.com"
] | claytonjwong@gmail.com |
8149d78a21a4530ab537abc4fe3892b1c77bac7f | a47ac7c64cb6bb1f181eadff8e4b24735c19080a | /PythonStudy/7-模块/a/Titan.py | 957bf78140bb6a110f980f0763207417854d9978 | [
"MIT"
] | permissive | CoderTitan/PythonDemo | 6dcc88496b181df959a9d43b963fe43a6e4cb032 | feb5ef8be91451b4622764027ac684972c64f2e0 | refs/heads/master | 2020-03-09T09:15:28.299827 | 2018-08-21T03:43:25 | 2018-08-21T03:43:25 | 128,708,650 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 669 | py |
# 一个.py文件就是一个模块
'''
def sayGood():
print('good')
def sayNice():
print('nice')
def sayBad():
print('bad')
age = 20
name = 'titan'
print('这是Titan模块')
'''
# 每一个模块中都有一个__name__属性, 当其值等于__main__时, 表明该模块自身在执行, 否则被引入了其他文件
# 当前文件如果为程序的入口文件, 则__name__属性的值为__main__
if __name__ == '__main__':
print('... | [
"quanjunt@163.com"
] | quanjunt@163.com |
fa060e2a53f5effc20a8ce419c69bbe06bf117b4 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_22416.py | 84c894c7c3f546ab1aaffeb33d766e1d830f19d6 | [] | 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 | 134 | py | # Iron Python Error: expected <type 'bytes'> or bytearray, got <type 'str'> for Serial comm
ser.write(bytes(message.encode('utf-8')))
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
8bd9e1c2de7c0fb1b38880603978273791276919 | 854ec5a700af132a3423be5a27a8857d2d8357a6 | /project/tests/test__config.py | c7f681e4c786c681690d511179d626d9967463b3 | [
"MIT"
] | permissive | mohammad-chavoshipor/flask-challenge | 8f53ce80b84e88c101eec4e7e216a9e7625eec62 | 6902a43d6c5f435edc668bc51fc08cd785ffb965 | refs/heads/master | 2021-06-12T15:04:27.211542 | 2017-03-10T19:02:58 | 2017-03-10T19:02:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | # project/server/tests/integration/test_config.py
import unittest
from flask import current_app
from flask_testing import TestCase
from project.server import app
class TestDevelopmentConfig(TestCase):
def create_app(self):
app.config.from_object('project.server.config.DevelopmentConfig')
retu... | [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
5d5edef53054c600d6795dfea1de892c610022d3 | aa8fac8fc911912b21658b00febb3e23383c617e | /util/network.py | 99cfe79ccc6c2b040a83ff9414ae9682245e6a2a | [] | no_license | atrox3d/1HDOC-flask-secrets | 26606c96e8ce82265dba3761a142bb1e25da1c8d | c28cdab14cb7932e59baec0f9e9976311a381907 | refs/heads/master | 2023-04-08T17:38:18.443428 | 2021-04-19T16:32:25 | 2021-04-19T16:32:25 | 355,586,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | import socket
def get_ipaddress():
return socket.gethostbyname(socket.gethostname())
| [
"atrox3d@gmail.com"
] | atrox3d@gmail.com |
83bcec5f7f7b822b4d5ee74bb80925b5e1c023e9 | 689eff74c3687f8386cbbdf4ff1d0c6b01568ba6 | /app/base/views.py | 281a6fd672ab301a139d9efebe1d4050f82f5bff | [] | no_license | huyquyet/projectBRS | fc50aac595112823c44952e137f11d6a3f6765a3 | 5a2f994a98f97db4b1717bc6187910ce9ad889e6 | refs/heads/master | 2021-01-10T10:09:44.265887 | 2015-12-16T03:53:39 | 2015-12-16T03:53:39 | 44,585,735 | 0 | 0 | null | 2015-12-15T07:16:39 | 2015-10-20T06:08:22 | HTML | UTF-8 | Python | false | false | 815 | py | from django.db.models import Avg
from django.views.generic.base import ContextMixin
from app.book.models import Book
from app.category.models import Category
__author__ = 'FRAMGIA\nguyen.huy.quyet'
class BaseView(ContextMixin):
model = Book
def get_context_data(self, **kwargs):
ctx = super(BaseView... | [
"nguyenhuyquyet90@gmail.com"
] | nguyenhuyquyet90@gmail.com |
a58b5f4e97d7f6162d8a7c522dc379644b1730e2 | 13130259156f6f9d16670cea88aa2608dd477d16 | /goeievraag/category/categorize_question.py | a12d559ec35a110035014a626c69944b5e85b342 | [] | no_license | fkunneman/DiscoSumo | d459251d543be5f4df38292a96f52baf4b520a0b | ed8f214834cf0c2e04a3bc429253502f7e79fbf8 | refs/heads/master | 2022-12-14T13:34:41.496963 | 2019-07-31T15:57:02 | 2019-07-31T15:57:02 | 140,422,779 | 2 | 1 | null | 2022-12-08T04:57:55 | 2018-07-10T11:36:00 | Python | UTF-8 | Python | false | false | 1,203 | py |
from qcat import QCat
import sys
model_file = sys.argv[1]
label_encoder_file = sys.argv[2]
category2id_file = sys.argv[3]
vocabulary_file = sys.argv[4]
qc = QCat(model_file,label_encoder_file,category2id_file,vocabulary_file)
test_questions = ["Kunnen we volgende week weer schaatsen op natuurijs",
... | [
"thiago.castro.ferreira@gmail.com"
] | thiago.castro.ferreira@gmail.com |
a1b9bf680534dbbfbc310a822deb14f1bb4e2dad | 51205b1a93bce66f1f47bd9eb5410e6f9b4c4da1 | /py/loop.py | e301447f632f4950299dabe067ddf745977ba7b9 | [
"MIT"
] | permissive | prataprc/gist | 70c2534079efb97cafd7bf58f1df4bb4284d13d1 | 4814ee6600d9f33dd940e4b3b9a98a0764a03bb5 | refs/heads/master | 2021-04-12T05:38:48.153925 | 2020-12-07T15:06:24 | 2020-12-07T15:06:24 | 32,151,350 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | #! /usr/bin/python
# Some examples using the looping constructs in python
a = ['cat', 'dog', 'elephant']
x = 10
print type(x)
for x in a :
print x, type(x), len(x)
b = 'hello \n world'
for x in b :
print x, type(x), len(x)
# Dangerous iteration on a mutable sequence (list)
# for x in a :
# a.insert(1,... | [
"prataprc@gmail.com"
] | prataprc@gmail.com |
c4e566e7859ca5d0c9129e87c6823acbc30ec828 | dd9e7df6b7dd915e749f537f490f62d38b7fa214 | /maintenance/management/commands/init_foreign_uiks.py | 4dc74e932e8ed0915027885c5da01ffad9782c2f | [] | no_license | mikpanko/elections_network | 383039b5310d006811f3638924bed41184bc2a64 | 6c14c79d9ec74c30d9998533ef73819f0e2e91bd | refs/heads/master | 2020-12-31T03:16:49.742384 | 2012-06-30T14:19:22 | 2012-06-30T14:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | import os.path
from django.conf import settings
from django.core.management.base import BaseCommand
from scrapy.selector import HtmlXPathSelector
from grakon.utils import print_progress, read_url
FOREIGN_UIKS_URL = 'http://www.foreign-countries.vybory.izbirkom.ru/region/region/foreign-countries?action=show&root=100... | [
"sergkop@gmail.com"
] | sergkop@gmail.com |
6d9273b5b0345cc09ca089ba02ca5e9fd109dddc | 2d4380518d9c591b6b6c09ea51e28a34381fc80c | /CIM16/IEC61968/Metering/ComFunction.py | 5e3b93609661efbb5adef5b2bc8c60c312ecd3ea | [
"MIT"
] | permissive | fran-jo/PyCIM | 355e36ae14d1b64b01e752c5acd5395bf88cd949 | de942633d966bdf2bd76d680ecb20517fc873281 | refs/heads/master | 2021-01-20T03:00:41.186556 | 2017-09-19T14:15:33 | 2017-09-19T14:15:33 | 89,480,767 | 0 | 1 | null | 2017-04-26T12:57:44 | 2017-04-26T12:57:44 | null | UTF-8 | Python | false | false | 3,308 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
f82ef33cd4738f58765f3bcd648b1aa0d96dccc1 | 7f0c02b3eef636cc382484dd8015207c35cc83a8 | /lib/python/treadmill/sproc/warpgate.py | 95edca71b68bbd55ec900b55895d40d054d10f07 | [
"Apache-2.0"
] | permissive | ceache/treadmill | 4efa69482dafb990978bfdcb54b24c16ca5d1147 | 26a1f667fe272ff1762a558acfd66963494020ca | refs/heads/master | 2021-01-12T12:44:13.474640 | 2019-08-20T23:22:37 | 2019-08-20T23:22:37 | 151,146,942 | 0 | 0 | Apache-2.0 | 2018-10-01T19:31:51 | 2018-10-01T19:31:51 | null | UTF-8 | Python | false | false | 1,587 | py | """Warpgate client CLI.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import click
from treadmill import cli
from treadmill.warpgate import client
_LOGGER = logging.getLogger(__name__)
def i... | [
"ceache@users.noreply.github.com"
] | ceache@users.noreply.github.com |
78b511df1413545c20fdc14e03b3e4029917fce7 | 492d3e666b87eff971628a74fe13facde01e2949 | /htmlcov/_python_Django_My Projects_student-portal_Lib_site-packages_django___init___py.html.py | e61033f22d45a3153fac5dd081bb80af1fa7fa18 | [] | no_license | OmarFateh/Student-Portal | 42050da15327aa01944dc79b5e00ca34deb51531 | 167ffd3a4183529c0cbc5db4ab232026711ea915 | refs/heads/master | 2023-06-13T01:03:16.475588 | 2021-07-08T11:09:09 | 2021-07-08T11:09:09 | 382,895,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,063 | py | XXXXXXXXX XXXXX
XXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXX XX
XXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXX
XXXXX XXXXXXXXXX XXXXXX... | [
"66747309+OmarFateh@users.noreply.github.com"
] | 66747309+OmarFateh@users.noreply.github.com |
2b4389ecb7063df9de2c1a85552f21e19513c7d6 | da99b8e2a22318f1cafb0c78adb17c8fdebe01df | /PythonBookAdditional/第12章 Windows系统编程/code/CheckAndViewAutoRunsInSystem.py | 63a8ea52863a56fe57da939232caf9e2e9061c8b | [
"MIT"
] | permissive | lsjsss/PythonClass | f185873113d54ed6ae9b3ccc22cc5a71bf8f611d | 0d38d2ca4d14d5e0e2062e22ae2dbbefea279179 | refs/heads/master | 2023-02-18T13:43:32.453478 | 2023-02-08T07:17:09 | 2023-02-08T07:17:09 | 247,711,629 | 0 | 0 | null | 2022-04-25T07:03:53 | 2020-03-16T13:38:15 | Python | UTF-8 | Python | false | false | 1,579 | py | #check and view autoruns in the system
from win32api import *
from win32con import *
def GetValues(fullname):
name=str.split(fullname,'\\',1)
try:
if name[0]=='HKEY_LOCAL_MACHINE':
key=RegOpenKey(HKEY_LOCAL_MACHINE,name[1],0,KEY_READ)
elif name[0]=='HKEY_CURRENT_USER':
... | [
"lsjsss@live.cn"
] | lsjsss@live.cn |
6e2dd713422373ca3f97052be06e0a16981f04f9 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/aiplatform/v1/aiplatform-v1-py/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_classification.py | 2a302fc41f2bfb1ed6a3bebcbc1e33f705293c69 | [
"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 | 2,307 | 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 |
8a9a097acec7f7248d2a0353f0e6c921b0e9d855 | 7298d1692c6948f0880e550d6100c63a64ce3ea1 | /deriva-annotations/catalog1/catalog-configs/Vocab/ihm_external_reference_info_reference_type_term.py | bfd555a03816d7b8e5783424965c8f5f426649a4 | [] | no_license | informatics-isi-edu/protein-database | b7684b3d08dbf22c1e7c4a4b8460248c6f0d2c6d | ce4be1bf13e6b1c22f3fccbb513824782609991f | refs/heads/master | 2023-08-16T10:24:10.206574 | 2023-07-25T23:10:42 | 2023-07-25T23:10:42 | 174,095,941 | 2 | 0 | null | 2023-06-16T19:44:43 | 2019-03-06T07:39:14 | Python | UTF-8 | Python | false | false | 6,342 | py | import argparse
from deriva.core import ErmrestCatalog, AttrDict, get_credential, DerivaPathError
from deriva.utils.catalog.components.deriva_model import DerivaCatalog
import deriva.core.ermrest_model as em
from deriva.core.ermrest_config import tag as chaise_tags
from deriva.utils.catalog.manage.update_catalog import... | [
"brinda.vallat@rcsb.org"
] | brinda.vallat@rcsb.org |
97590902ea45bc7e04b8feaeccdb37e092426808 | 3520f9f1b6d804a6d95233493972bf04dca67fb4 | /revisited_2021/math_and_string/valid_anagram.py | 0d690178b7d6f34a5c35933bc51c1c498ce42777 | [] | no_license | Shiv2157k/leet_code | 8691a470148809f0a7077434abdc689f33958f34 | 65cc78b5afa0db064f9fe8f06597e3e120f7363d | refs/heads/master | 2023-06-17T02:59:20.892561 | 2021-07-05T16:42:58 | 2021-07-05T16:42:58 | 266,856,709 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py |
class Anagram:
def is_valid(self, s: str, t: str):
"""
Approach: Hash Table
Time Complexity: O(N)
Space Complexity: O(1)
:param s:
:param t:
:return:
"""
if len(s) != len(t):
return False
counter = [0] * 26
for ... | [
"shiv2157.k@gmail.com"
] | shiv2157.k@gmail.com |
218920ee7ecdcf630aa9ccd3a3b4fddcfa2ffa7e | 5608a9cd3bec8cab1c3f9d7f42896107b78593cc | /tests/unit/core/providers/aws/s3/test_bucket.py | f85370b5252ce422d7ef0108365dfc1490f475ea | [
"Apache-2.0"
] | permissive | troyready/runway | cdee6d94f42173c8aa0bd414620b68be36a510aa | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | refs/heads/master | 2021-06-18T16:05:30.712211 | 2021-01-14T01:44:32 | 2021-01-14T01:44:32 | 151,314,626 | 0 | 0 | Apache-2.0 | 2018-10-02T19:55:09 | 2018-10-02T19:55:08 | null | UTF-8 | Python | false | false | 8,634 | py | """Test runway.core.providers.aws.s3._bucket."""
# pylint: disable=no-self-use
import logging
from mock import MagicMock
from runway.core.providers.aws import BaseResponse
from runway.core.providers.aws.s3 import Bucket
from runway.http_backport import HTTPStatus
MODULE = "runway.core.providers.aws.s3._bucket"
cla... | [
"kyle@finley.sh"
] | kyle@finley.sh |
c0d577a00e14252c2e94df73db2729d4a5836254 | 5963c12367490ffc01c9905c028d1d5480078dec | /tests/components/home_plus_control/test_config_flow.py | 4a7dbd3d3ee4e3f02c6a53aa014845151bec6ce1 | [
"Apache-2.0"
] | permissive | BenWoodford/home-assistant | eb03f73165d11935e8d6a9756272014267d7d66a | 2fee32fce03bc49e86cf2e7b741a15621a97cce5 | refs/heads/dev | 2023-03-05T06:13:30.354545 | 2021-07-18T09:51:53 | 2021-07-18T09:51:53 | 117,122,037 | 11 | 6 | Apache-2.0 | 2023-02-22T06:16:51 | 2018-01-11T16:10:19 | Python | UTF-8 | Python | false | false | 6,431 | py | """Test the Legrand Home+ Control config flow."""
from unittest.mock import patch
from homeassistant import config_entries, data_entry_flow, setup
from homeassistant.components.home_plus_control.const import (
CONF_SUBSCRIPTION_KEY,
DOMAIN,
OAUTH2_AUTHORIZE,
OAUTH2_TOKEN,
)
from homeassistant.const imp... | [
"noreply@github.com"
] | BenWoodford.noreply@github.com |
64ab6dc9d426016042fc73847036810389e9d621 | 1f244254465ce36f116b7d1c255f9a9ae9594bb4 | /typeidea/typeidea/wsgi.py | 859bfc426728341b7d6955eef2c8ef45d9865831 | [] | no_license | sunye088/typeidea | a45e7093b3b553fd38a5a6ba1971a7e3651cb161 | 2b84392e926fd72b1975947626db7362f0729a5c | refs/heads/master | 2023-04-29T15:20:18.049406 | 2019-11-30T13:31:39 | 2019-11-30T13:31:39 | 226,258,490 | 0 | 0 | null | 2023-04-21T20:41:54 | 2019-12-06T06:10:25 | Python | UTF-8 | Python | false | false | 532 | py | """
WSGI config for typeidea 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('DJANGO_SE... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
cedff764c6d15c2ce22525b3220ee19a35077ac5 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_13033.py | 8a6142db23b900da6715c215e263e247e680ca0f | [] | 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 | # How to get POST variables in Python, when using gevent?
environ['wsgi.input'].read()
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4bc76b786fe6931ca452ac6acf19df76b08600dd | 2898e585a2396738e49e33d322e8c65c823e6cf8 | /content/migrations/0073_comment.py | 0db929fda7cd4c263f7df602e0253eea7adf4179 | [] | no_license | kshutashvili/carshops | 4a4f384856c7cae6d09c9ca6e8b6c703ab88be80 | 885c6ed85d33c1cc9333ef9d224a3000b08959dc | refs/heads/master | 2022-12-12T12:50:49.618195 | 2018-02-22T18:04:00 | 2018-02-22T18:04:00 | 203,865,092 | 0 | 0 | null | 2022-11-22T02:24:12 | 2019-08-22T20:06:14 | JavaScript | UTF-8 | Python | false | false | 2,007 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-02-21 15:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import mptt.fields
class Migration(migrations.Migration):
dependencies = [
('content', '0072_auto_20180220_1531'),
... | [
"vetal969696@gmail.com"
] | vetal969696@gmail.com |
c6f06eb98d128fd78f6d7854db6a54d8e17d525b | e4fcd551a9d83e37a2cd6d5a2b53a3cc397ccb10 | /codes/eval_metrics/writing/mmocr/tests/test_datasets/test_preparers/test_parsers/test_wildreceipt_parsers.py | f4e5510db441116c73cc4881d23d270c83338ff1 | [
"Apache-2.0"
] | permissive | eslambakr/HRS_benchmark | 20f32458a47c6e1032285b44e70cf041a64f842c | 9f153d8c71d1119e4b5c926b899bb556a6eb8a59 | refs/heads/main | 2023-08-08T11:57:26.094578 | 2023-07-22T12:24:51 | 2023-07-22T12:24:51 | 597,550,499 | 33 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | # Copyright (c) OpenMMLab. All rights reserved.
import json
import os.path as osp
import tempfile
import unittest
from mmocr.datasets.preparers.parsers.wildreceipt_parser import (
WildreceiptKIEAnnParser, WildreceiptTextDetAnnParser)
from mmocr.utils import list_to_file
class TestWildReceiptParsers(unittest.Test... | [
"islam.bakr.2017@gmail.com"
] | islam.bakr.2017@gmail.com |
733bd03e660fcd79cb70a76ffa9a75004ae3605a | 6858cbebface7beec57e60b19621120da5020a48 | /ply/comment.py | 93db508a01fa2d7c64d4b2e5db56e7acd82ef5a0 | [] | no_license | ponyatov/PLAI | a68b712d9ef85a283e35f9688068b392d3d51cb2 | 6bb25422c68c4c7717b6f0d3ceb026a520e7a0a2 | refs/heads/master | 2020-09-17T01:52:52.066085 | 2017-03-28T07:07:30 | 2017-03-28T07:07:30 | 66,084,244 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | def t_COMMENT(t):
r'\#.*'
pass
# No return value. Token discarded | [
"dponyatov@gmail.com"
] | dponyatov@gmail.com |
2bb760da30a8595078e7478130aaa509aa687334 | d9a22d4dcdfc0c28176c0e8afd784b30d275597e | /test_suite/unit_tests/_pipe_control/test_pipes.py | 19956b94af0d81e497f8ddcfe27054bd39176ce1 | [] | no_license | jlec/relax | fda1b3ff77be0afc21c2e6cc52348ae7635cd07a | c317326ddeacd1a1c608128769676899daeae531 | refs/heads/master | 2016-09-08T00:27:57.256090 | 2015-02-10T12:24:55 | 2015-02-10T12:24:55 | 30,596,131 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,472 | py | ###############################################################################
# #
# Copyright (C) 2007-2014 Edward d'Auvergne #
# #
... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
3536260316053a84bfe9507e9c17029afa97708e | 3c9004d310ef124d6eb3872d7e6b02799a4dfbfb | /面向对象/多重继承.py | 33e0fe0390bccf03408e5f7415b2fa8bdc15166c | [] | no_license | iguess1220/python | c2eae6011a4806e4a7f68ef9351dbffc2d9635f3 | 3be7fd4e130247715bc89525b3ab66a755863480 | refs/heads/master | 2020-04-08T22:33:01.218992 | 2018-12-18T08:09:23 | 2018-12-18T08:09:23 | 112,563,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | class Animal:
pass
class Mammal(Animal):
def body(self):
print("eat milk")
class Bird(Animal):
def body(self):
print("有翅膀")
class Runable(Animal):
def run(self):
print("running")
class Flyable(Animal):
def fly(self):
print("fly")
class Bat(Mammal,Flyable):
pass
b ... | [
"17710890916@163.com"
] | 17710890916@163.com |
b9c1b57faec38343cc0531c69ae241bf31fc54fd | bc8a0e87417add0325c9124ee847efaf88d2daa1 | /PycharmProjects/week5/coursera_forms/formdummy/views.py | 1409ed3df327284e005f02b1e0ab417cf904ce4c | [] | no_license | Ivanlasich/python | f0034426ea91d956d4d47a0a41e099785a6ddf1a | d8ed501537581f01d07733bd81911d0f523d7bfc | refs/heads/master | 2022-12-12T21:06:46.473608 | 2019-12-08T19:03:41 | 2019-12-08T19:03:41 | 226,704,894 | 0 | 0 | null | 2022-12-08T02:40:00 | 2019-12-08T17:28:07 | Python | UTF-8 | Python | false | false | 242 | py | from django.shortcuts import render
from django.views import View
import requests
class FormDummyView(View):
def get(self, request):
r = requests.get('https://api.github.com/events')
return render(request,'form.html',{})
| [
"ivanlazichny@gmail.com"
] | ivanlazichny@gmail.com |
3bc8e2ac6257c4f60d8e100e9230c5b365aa231f | c83fe2005a44b436a8be1e0787834a8a93b2024b | /scripts/dynamic_programming/longest_common_substring.py | 6c200f0878b158a8bb9db30e056545648c26fb10 | [] | no_license | wulfebw/algorithms | 9eb0bacd8a7851d28beecb608a895925e26f543b | cbae6aba464a021ada842adb4eaed9dbd16dc0f2 | refs/heads/master | 2021-01-19T02:28:12.666777 | 2019-05-02T02:52:08 | 2019-05-02T02:52:08 | 49,041,959 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | '''
I think the difference between finding the lcsubstring and lcsubseq is that in the substring case you erase your progress, whereas with the subsequence you do not
'''
import numpy as np
def lcs(a,b):
n, m = len(a), len(b)
v = np.zeros((n+1, m+1))
for i in range(n):
for j in range(m):
... | [
"wulfebw@stanford.edu"
] | wulfebw@stanford.edu |
5fecb3d42317d7666bb4cf7e590626bd078063ef | d7998eacdd2ecd9623b520ec1c36524a2c3ab827 | /conwhat/__main__.py | 86cee1f77db13de34af7a5a1156f2579c0a8759e | [
"BSD-3-Clause"
] | permissive | raamana/ConWhAt | d50674e3d790704d8105eb69dfa96e8164c0c402 | 098ae8088f6d320ed414355be3d31a65b8bf43de | refs/heads/master | 2021-08-20T00:35:54.446433 | 2017-11-27T20:17:13 | 2017-11-27T20:17:13 | 112,232,400 | 0 | 0 | null | 2017-11-27T18:26:35 | 2017-11-27T18:26:34 | null | UTF-8 | Python | false | false | 488 | py |
def main():
"Entry point."
raise NotImplementedError('The command line interface for ConWhAt is not currently supported. '
'Please use it via API in a script or jupyter notebook. \n'
'Example usages : \n'
'from conwhat... | [
"raamana@gmail.com"
] | raamana@gmail.com |
f00f2c84d5ce3a1e7902935d2bd5bc439c1b790b | 59212f32b5b3a274fde0875101b37aafe72891f1 | /crawller/selenium_base/classifier.py | 4da4ec8aaf59ec25d2fcb3bff2b7ea2920d5af49 | [] | no_license | afcarl/rehabilitation | b2dd1626deaa606469d7150982f130a2272dd3b0 | 67c6719d805201e0c9ee97fe9130398a9b93881a | refs/heads/master | 2020-03-22T09:59:09.623992 | 2017-02-03T01:06:05 | 2017-02-03T01:06:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,126 | py | from sklearn.feature_extraction.text import CountVectorizer
import json
from sklearn import svm
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import cross_val_score
import random
from nltk.tokenize import sent_tokenize, word_tokenize
from functools import reduce
import numpy as np
fro... | [
"zhaosanqiang916@gmail.com"
] | zhaosanqiang916@gmail.com |
b9b83013d4f1fab6c0ae403a06f74021bb5f9f05 | dec494542217437afa7f38e8703328b25b183cb8 | /999.py | 207d2953c1b147a171c8398e49277b1fa5063386 | [] | no_license | Transi-ent/LeetcodeSolver | ee44c9c4d5bce9f11c079c5b27b4b967790cb5cd | a89e19753666657a6f15c1be589b9b2dbd4b6c84 | refs/heads/master | 2021-04-16T20:37:34.710175 | 2021-02-24T03:51:43 | 2021-02-24T03:51:43 | 249,383,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | class Solution:
"""
先进行遍历,求出白车所在的位置(Row,Col),
再次进行遍历,查询所在的行和列可以捕获的卒
"""
def numRookCaptures(self, board: list) -> int:
r, c = None, None
flag = False
for i in range(8):
for j in range(8):
if board[i][j]=="R":
r, c = i, j
... | [
"1305113016@qq.com"
] | 1305113016@qq.com |
8c9cae3aba8d5b6fe82416613e41926a36508ce1 | 38bed8ec0229b2d42ebdb33e09930ba8ee6ba5b7 | /torchvision/prototype/models/depth/__init__.py | 0ff02953c242c42c461c32acfa468735252cf401 | [
"BSD-3-Clause",
"CC-BY-NC-4.0"
] | permissive | pytorch/vision | 10443ac1eddf7a32ecb288fe8f58e28cab2a60a1 | 1f94320d8db8d102214a7dc02c22fa65ee9ac58a | refs/heads/main | 2023-09-06T03:48:02.303020 | 2023-09-04T18:25:36 | 2023-09-04T18:25:36 | 73,328,905 | 15,620 | 8,564 | BSD-3-Clause | 2023-09-14T17:52:49 | 2016-11-09T23:11:43 | Python | UTF-8 | Python | false | false | 21 | py | from . import stereo
| [
"noreply@github.com"
] | pytorch.noreply@github.com |
cfe8be1936ffb48572be726f0bcc6d06589a4f7f | 070b693744e7e73634c19b1ee5bc9e06f9fb852a | /python/problem-bit-manipulation/reverse_bits.py | db3e7500f8dee52f9f70c219edb95dbf38ef56fb | [] | no_license | rheehot/practice | a7a4ce177e8cb129192a60ba596745eec9a7d19e | aa0355d3879e61cf43a4333a6446f3d377ed5580 | refs/heads/master | 2021-04-15T22:04:34.484285 | 2020-03-20T17:20:00 | 2020-03-20T17:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # https://leetcode.com/problems/reverse-bits
# 33.75%
class Solution:
# @param n, an integer
# @return an integer
def reverseBits(self, n):
bits, bit = [], 0x1
for i in range(32):
print('bit {}, n & bit {}'.format(bit, n & bit))
if 0 == n & bit:
... | [
"morpheus.0@kakaocorp.com"
] | morpheus.0@kakaocorp.com |
a841c652172a7aa0a01324d759390454a36c21f2 | c7044393f89ffee67f30a277019372506d3b0af4 | /tests/integration/test_billpayment.py | c16f8a530034dc79212393f29a91faa2cace5663 | [
"MIT"
] | permissive | stephanelsmith/python-quickbooks | 66845f54aef86dc43a081dd49345a9c090642433 | 20fd4b6e92fe5a5e8dac43daefb0568f0465b62c | refs/heads/master | 2020-06-17T19:22:15.175039 | 2019-07-09T14:34:44 | 2019-07-09T14:34:44 | 196,022,916 | 0 | 0 | MIT | 2019-07-09T14:16:53 | 2019-07-09T14:16:52 | null | UTF-8 | Python | false | false | 2,408 | py | import os
import unittest
from datetime import datetime
from quickbooks.auth import Oauth1SessionManager
from quickbooks.client import QuickBooks
from quickbooks.objects.account import Account
from quickbooks.objects.bill import Bill
from quickbooks.objects.billpayment import BillPayment, BillPaymentLine, CheckPayment... | [
"edward.emanuel@gmail.com"
] | edward.emanuel@gmail.com |
b74b3f64c971504ff7beaf4a8b24756ffbbd7933 | a38180435ac5786185c0aa48891c0aed0ab9d72b | /S4/S4 Library/simulation/sims/university/university_telemetry.py | 3d65d5f99c17da1c0b69dc34bea11a7d0f241659 | [
"CC-BY-4.0"
] | permissive | NeonOcean/Environment | e190b6b09dd5dbecba0a38c497c01f84c6f9dc7d | ca658cf66e8fd6866c22a4a0136d415705b36d26 | refs/heads/master | 2022-12-03T13:17:00.100440 | 2021-01-09T23:26:55 | 2021-01-09T23:26:55 | 178,096,522 | 1 | 1 | CC-BY-4.0 | 2022-11-22T20:24:59 | 2019-03-28T00:38:17 | Python | UTF-8 | Python | false | false | 3,176 | py | import build_buy
import services
import sims4.telemetry
import telemetry_helper
TELEMETRY_GROUP_UNIVERSITY = 'UNIV'
TELEMETRY_HOOK_UNIVERSITY_HOUSING = 'UNHO'
TELEMETRY_HOOK_UNIVERSITY_ACCEPTANCE = 'UNAC'
TELEMETRY_HOOK_UNIVERSITY_ENROLL = 'UNEN'
TELEMETRY_HOOK_UNIVERSITY_TERM = 'UNTE'
TELEMETRY_HOOK_UNIVERSITY_COURSE ... | [
"40919586+NeonOcean@users.noreply.github.com"
] | 40919586+NeonOcean@users.noreply.github.com |
c92b9ff5f6511b9cfc629cace269b98af358d96a | 3f28b697f570ded0502de70c706200005ab62525 | /env/lib/python2.7/site-packages/sklearn/neighbors/kde.py | 8d940264f4374324ce9e5916eab9b797b0fd9d09 | [
"MIT"
] | permissive | Ram-Aditya/Healthcare-Data-Analytics | 5387e41ad8e56af474e10fa2d1c9d8a2847c5ead | d1a15d2cc067410f82a9ded25f7a782ef56b4729 | refs/heads/master | 2022-12-09T12:49:59.027010 | 2019-11-23T20:10:55 | 2019-11-23T20:10:55 | 223,639,339 | 0 | 1 | MIT | 2022-11-22T00:37:48 | 2019-11-23T19:06:20 | Jupyter Notebook | UTF-8 | Python | false | false | 7,925 | py | """
Kernel Density Estimation
-------------------------
"""
# Author: Jake Vanderplas <jakevdp@cs.washington.edu>
import numpy as np
from scipy.special import gammainc
from ..base import BaseEstimator
from ..utils import check_array, check_random_state
from ..utils.extmath import row_norms
from .ball_tree import BallT... | [
"ramaditya.danbrown@gmail.com"
] | ramaditya.danbrown@gmail.com |
3c66085bda3a774bb6434ae9fc4233056dbbd85b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/Python/alexamici/A.py | 1cade536bfb429e80d1ec2be059a5be3fb11af7c | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | """Usage:
pypy X.py < X-size.in > X-size.out
or sometimes
python X.py < X-size.in > X-size.out
"""
def setup(infile):
#C = {}
return locals()
def reader(testcase, infile, C=None, **ignore):
#N = int(infile.next())
#P = map(int, infile.next().split())
#I = map(int, infile.next().split())
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
386d31faf6a46dfb07690904507a892a1c2708d7 | 43e0cfda9c2ac5be1123f50723a79da1dd56195f | /python/paddle/fluid/tests/unittests/test_eager_run_program.py | a04c544e9025732bcea5e8f43a232c46e494c447 | [
"Apache-2.0"
] | permissive | jiangjiajun/Paddle | 837f5a36e868a3c21006f5f7bb824055edae671f | 9b35f03572867bbca056da93698f36035106c1f3 | refs/heads/develop | 2022-08-23T11:12:04.503753 | 2022-08-11T14:40:07 | 2022-08-11T14:40:07 | 426,936,577 | 0 | 0 | Apache-2.0 | 2022-02-17T03:43:19 | 2021-11-11T09:09:28 | Python | UTF-8 | Python | false | false | 4,235 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | jiangjiajun.noreply@github.com |
bd7f8f43434bce3c16ea97db4e907dd0e2835440 | 0cc8dd3549d12e24fb4ceb007001676a4dc27130 | /awd/shell.py | b103d3dce3c86c0c33f1f195501d91b5786e3a19 | [] | no_license | virink/vFuckingTools | 78c98a2093deac438e173e0ef2d72cc8453f33bd | 71cafcf60b347d09ff5c62fb9d7a27daea85b5e2 | refs/heads/master | 2021-01-22T18:29:00.926553 | 2019-05-05T05:51:38 | 2019-05-05T05:51:38 | 85,087,381 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | #!/usr/bin/env python
import requests
import random
ip_pass = {}
shell_pass = []
shell_address = '/WordPress/shell.php'
ips = ['40.10.10.57',
'40.10.10.26',
'40.10.10.11',
'40.10.10.62',
'40.10.10.24',
'40.10.10.59',
'40.10.10.47',
'40.10.10.42',
'40.10.10.15',... | [
"virink@outlook.com"
] | virink@outlook.com |
3d10909823fee7ad8aaaea67770d346387aefd7b | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/pirates/leveleditor/worldData/interior_shanty_npc_house.py | 6876fa8755c7e22fe3463a653ba427fbe5d6d7e2 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 38,302 | py | from pandac.PandaModules import Point3, VBase3, Vec4, Vec3
objectStruct = {
'Objects': {
'1156371286.47luzd0': {
'Type': 'Building Interior',
'Name': '',
'Instanced': True,
'Objects': {
'1165344228.45kmuller': {
'Type': 'Fur... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
9da2c36775a99673d80810536059cc0b7380e907 | b0885fde23fff880927c3a6248c7b5a33df670f1 | /models/im_retrieval_transformer/edit_encoder.py | 0e4567075df31d82bd11666f71d482f72c5f7c10 | [] | no_license | mrsalehi/paraphrase-generation | ceb68200e9016c5f26036af565fafa2d736dc96b | 3e8bd36bd9416999b93ed8e8529bfdf83cf4dcdd | refs/heads/master | 2020-07-22T03:50:40.343595 | 2019-08-26T11:29:08 | 2019-08-26T11:29:08 | 207,065,580 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | import tensorflow as tf
from models.common import graph_utils, vocab
from models.common.config import Config
from models.im_all_transformer import edit_encoder
from models.im_all_transformer.edit_encoder import TransformerMicroEditExtractor, WordEmbeddingAccumulator
from models.im_all_transformer.transformer import mo... | [
"ub.maka@gmail.com"
] | ub.maka@gmail.com |
6aaa0670890d94adae6318b188461250bd09151a | e601ff328271d102d6b38259129a588416279a3d | /Snek.py | 919628a5ef5b52837032d57a91758f83bef3c66f | [] | no_license | AlliterativeAnchovies/GameJamYamHam | 383c357adb2375cd7cf2f0cdd846e2824c4e69c1 | cba2c07098a7316d1b415c377151e8ba0902ecdf | refs/heads/master | 2021-05-07T01:27:46.474053 | 2017-11-13T16:55:29 | 2017-11-13T16:55:29 | 110,340,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py |
snekPosition = [0,0]
snekParts = []
def moveSnek(x, y):
snekPosition[0] += x
snekPosition[1] += y
def changeSnekSizeBy(count):
if count > 0:
pass
#snekParts.extend([pass for i in range(count)]) | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
cb66fb20161657cdfa2e432eef049a08fc5795c3 | b169439ff77e4df4730b1efa09b3f306fbcd979f | /pyclownfish/clownfish_subsystem_service.py | 8f90b175b024d8dc03a87c36ffc03cc8bfe4b7fe | [
"MIT"
] | permissive | KnightKu/clownfish | 76d85030411d520ba3fcd301a796505cbfb863e7 | fb9209e99a22caa84e4ce8a7afa23dce46b0104c | refs/heads/master | 2022-07-28T21:41:40.351343 | 2020-02-16T14:47:08 | 2020-02-16T14:47:08 | 259,587,234 | 0 | 0 | null | 2020-04-28T09:11:14 | 2020-04-28T09:11:13 | null | UTF-8 | Python | false | false | 5,966 | py | # Copyright (c) 2020 DataDirect Networks, Inc.
# All Rights Reserved.
# Author: lixi@ddn.com
"""
Subsystem of service
"""
from pyclownfish import clownfish_command_common
from pylcommon import lustre
SUBSYSTEM_SERVICE_COMMNAD_MOVE = "move"
SUBSYSTEM_SERVICE_NAME = "service"
SUBSYSTEM_SERVICE = clownfish_command_com... | [
"lixi@ddn.com"
] | lixi@ddn.com |
2773b3c2eb933aa1def2296c9be9cc09597c93b0 | 369e260e100db9ab5cc8b1711e99ef5e49aec173 | /data/dacon/comp1/dacon1_8_feature_importances.py | 63fbb471f1ea288e16cd5ce5ffd2e0ab4d5872ed | [] | no_license | HWALIMLEE/study | 7aa4c22cb9d7f7838634d984df96eed75f7aefea | 8336adc8999126258fe328d6b985a48e32667852 | refs/heads/master | 2023-03-26T09:11:19.606085 | 2021-03-29T23:03:04 | 2021-03-29T23:03:04 | 259,555,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,666 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
train=pd.read_csv('./data/dacon/comp1/train.csv',header=0,index_col=0) #0행이 header, 0열이 index/ header와 index모두 존재
test=pd.read_csv('./data/dacon/comp1/test.csv',header=0, index_col=0)
submission=pd.read_csv('./data/dacon/comp1/sample_submission.c... | [
"hwalim9612@gmail.com"
] | hwalim9612@gmail.com |
a419d98b7e7020b5597fbd248dee1c7eec735a51 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/smtbx/refinement/constraints/tests/tst_constrained_structure.py | 26b0ce0053bab5553d753b971f90eeb004be5266 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 28,930 | py | from __future__ import absolute_import, division, print_function
from operator import itemgetter
from cctbx import crystal, xray
from cctbx.array_family import flex
from smtbx.refinement import constraints
import smtbx.refinement.constraints.all as _
import smtbx.refinement.constraints as core
import smtbx.utils
from s... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
a5e9844ef7a8111c56eb3a1649bb77022f0d4a5c | 49c3abd2b3fbb3bc5d1df47b1fddd09694ee4835 | /scripts/translate_figs.py | 6d2ad35b0719ad7472ee6b8091d0baa8be07d3e2 | [] | no_license | phaustin/e213_2019 | 0b9970745e1bee29b58fa97bd425b66e01c20db8 | ff66cc94cba57f53955cbbb4a72885146cabd5e4 | refs/heads/master | 2021-05-18T18:48:38.507719 | 2019-04-18T18:48:12 | 2019-04-18T18:48:12 | 251,362,114 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,387 | py | """
Usage: python translate_figs.py notebook.py
Given a jupytext python:percent notebook,
change all occurances of an image tag like:
<img src="figures/2d_flux.png" alt="pic05" width="20%" >
to a python Image call like this:
# Image(figures/2d_flux.png){width="20%"}
and write it out as a new file called notebook_... | [
"paustin@eos.ubc.ca"
] | paustin@eos.ubc.ca |
2ebe41aa7b83bf751f563796d36307ca3e0d94da | 8e6546515c8094f2df7fca4be343b57a1716257a | /tests/algorithms/associative/test_kohonen.py | d8a23d2f1bcfb9f72d8e7f49994c478d12883f70 | [
"MIT"
] | permissive | FGDBTKD/neupy | b51e5870ef75df8aa3dcfb6753648a235f39e50b | 1f5e1ae9364e8c7816df79678a4648c689d2a5d1 | refs/heads/master | 2020-03-31T13:32:57.099935 | 2018-10-29T15:52:19 | 2018-10-29T15:52:19 | 152,260,277 | 0 | 0 | MIT | 2018-10-29T15:52:20 | 2018-10-09T13:56:16 | Python | UTF-8 | Python | false | false | 1,731 | py | import numpy as np
from neupy import algorithms
from base import BaseTestCase
input_data = np.array([
[0.1961, 0.9806],
[-0.1961, 0.9806],
[0.9806, 0.1961],
[0.9806, -0.1961],
[-0.5812, -0.8137],
[-0.8137, -0.5812],
])
class KohonenTestCase(BaseTestCase):
def test_kohonen_success(se... | [
"mail@itdxer.com"
] | mail@itdxer.com |
cd680ed3da608dd25b4d2a60a4c8907d52b8dba8 | 3fdaa54102e0be999e3fc664a917ea0a7a603675 | /cloudprint/Lib/site-packages/web.py-0.40.dev0-py3.5.egg/web/db.py | a8eb75f5b2dc6d4ec7403c2f4c04c59e95ae1321 | [
"MIT"
] | permissive | William-An/CloudPrint | ba8033175a11e25a2c68ccf7b8a3387e78ac1719 | 952f25341ea0423b83ee2ded1927ba0cf160a095 | refs/heads/master | 2022-11-04T13:58:27.715234 | 2017-04-17T05:33:25 | 2017-04-17T05:33:25 | 88,139,548 | 9 | 3 | MIT | 2022-10-20T01:19:11 | 2017-04-13T07:53:55 | Python | UTF-8 | Python | false | false | 43,930 | py | """
Database API
(part of web.py)
"""
from __future__ import print_function
from .utils import threadeddict, storage, iters, iterbetter, safestr, safeunicode
import datetime, time, os, urllib, re
from .py3helpers import PY2, string_types, numeric_types, iteritems
try:
from urllib import parse as urlparse
from... | [
"China_Aisa@live.com"
] | China_Aisa@live.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.