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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40e0e34dc1c0d39e08775b92089714d9db4af63e | 484b72139db4e2b21268c55e2f32cae242b5abae | /src/tools/adt/test_adt_sql.py | 4cd7abef19fab96d7bce42de488f3e32fcd25a9b | [] | no_license | PIWEEK/piweekr-back | a1b3887358e32d27f7a21913586f77e020c5eae0 | 375dbf17472270dcf34651ff8a86b7ed460eb311 | refs/heads/master | 2020-04-06T07:11:44.175583 | 2016-09-15T06:38:38 | 2016-09-15T06:38:38 | 62,820,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | import pytest
from .types import ADT_WITH_ID, Field, IntField, StrField
from .relationships import Relationship1N, RoleSingle, RoleMulti, Context
from sqlalchemy.sql import select, outerjoin
from .adt_sql import SQLADTRepository
class Card(ADT_WITH_ID):
deck_id = IntField()
title = StrField()
strength =... | [
"andres.moya@kaleidos.net"
] | andres.moya@kaleidos.net |
70ac93f65865b3fb1662de2524dd00f377c1feea | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03474/s623958359.py | 5c4abb6865ad4a5abd0e9ef526ce516ab50152cb | [] | 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 | 165 | py | A, B = input().split(" ")
S = input()
if S[int(A)] == '-' and S[:int(A)].isdecimal() and S[int(A)+1:int(A)+int(B)+1].isdecimal():
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f402f3c6a9657695f8d857cecbdc279ef499cf31 | 640121a717de7b587c56d2136ee9c981bd7c9660 | /server/dvaui/apps.py | b0d4d87d6ecf7c11817286075e99549266b03bd5 | [
"BSD-3-Clause",
"MIT",
"BSL-1.0",
"Apache-2.0"
] | permissive | jbkarle/DeepVideoAnalytics | dd4535e990a7f3af9e53843e6df97340ee0c6b71 | 9a3717ea30a86f97511a150d6538e309e19b7fbc | refs/heads/master | 2020-03-31T15:01:52.854557 | 2018-10-07T17:11:37 | 2018-10-07T17:11:37 | 152,320,716 | 1 | 0 | null | 2018-10-09T21:01:10 | 2018-10-09T21:01:09 | null | UTF-8 | Python | false | false | 150 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class DvauiConfig(AppConfig):
name = 'dvaui'
| [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
6403015b2e85eccd4b5985e9530f4e7ed6ce27bb | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/battle/FishingRod.py | a362c40a58d8ec0d8eed09445dd7b6dcb932ffd6 | [] | 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 | 6,038 | py | import Weapon
import WeaponGlobals
from pirates.audio import SoundGlobals
from pirates.audio.SoundGlobals import loadSfx
from direct.interval.IntervalGlobal import *
from pandac.PandaModules import *
from pirates.uberdog.UberDogGlobals import InventoryType
from pirates.piratesbase import PLocalizer
from pirates.effects... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
6990e4b87e0734225f804e3c1b915ae8f9869911 | 6ecff67d6103ddbd787f78c35182722b83b8a37e | /백준/Python/알고파/최단경로/1613.py | 4ca4e3cd15c8a04c41309bc939b9e462ad70c7a2 | [] | no_license | jsungmin6/Algorithm | 9ef2339aa00921e7df756a8dff569954a008c118 | bc1ea9de9f7ba3f1aa6616ebef8719540d72e0bf | refs/heads/master | 2023-05-27T06:24:16.123307 | 2021-06-11T09:22:21 | 2021-06-11T09:22:21 | 259,299,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | # 역사
# 풀이 과정
'''
여러 출발점과 도착점의 경로가 있냐 없냐를 판단하는 거기 때문에 플로이드 와샬을 사용해
dist를 전부 구한 후 판단한다.
'''
import sys
import collections
input = sys.stdin.readline
n, k = map(int, input().split())
dist = [[0 if i == j else sys.maxsize for i in range(n+1)] for j in range(n+1)]
for _ in range(k):
u, v = map(int, input().split()... | [
"jsungmin506@gmail.com"
] | jsungmin506@gmail.com |
d1a8f1afed15326e2da00c5d6dc38c274523879a | 1eab07420ddbc6774b0dd6f515da5110ed7344af | /brax/experimental/braxlines/experiments/mimax_sweep.py | 09f8390c0598d7fac24c00e990d51f79f848ae95 | [
"Apache-2.0"
] | permissive | TedTinker/brax | a16097d87607a8bdee46f5d0784fff29e66ca22f | 1d5e70c0c96d1a0dde68901bdabef2c9431c32b3 | refs/heads/main | 2023-08-14T08:22:42.316233 | 2021-09-28T20:08:43 | 2021-09-28T20:08:43 | 410,128,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | # Copyright 2021 The Brax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"erikfrey@google.com"
] | erikfrey@google.com |
69cf9b378381c44f262b107a06c246bdbc38bfdd | a148a0a0fb3209c754b9d6836baa837d3c02e30f | /garbage_code_dont_delete_btw/find_optimized_parameters.py | 426e19aca057cbbe4dbbada8cc902f56d9b0225a | [] | no_license | GreenBlitz/Deep-Space-Vision | 645b64f98bf26500ba501651d332a8cd82f0f340 | c0d8ad10cf42fbac79b42141a44c3bbb00beabb7 | refs/heads/master | 2020-03-28T19:32:30.563636 | 2018-12-13T16:59:21 | 2018-12-13T16:59:21 | 148,985,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | import cv2
import random
import numpy as np
def create_params(shape, factor):
return np.random.rand(*shape)*factor
def get_score(item, frame, bbox, func, reg):
frametag = func(frame, item)
f = frametag[bbox[1]:bbox[1] + bbox[3], bbox[0]:bbox[0] + bbox[2]]
s = f.sum()
return s/f.size - (frametag.su... | [
"idohaineman@gmail.com"
] | idohaineman@gmail.com |
b41ba04907184cd37b158434c5d33df39713c56e | 48519d4299911ce2a3ca70043079df419155c156 | /typistry/test/validations_test.py | 2ca7ee5e91bfad1903c8486d39490fa063915396 | [
"Apache-2.0"
] | permissive | kyprifog/typistry | 18c3e010925db5b4a2422bc6eefb69d5da4c2ab9 | aab285d909791106154874eb5331b65fc03849ae | refs/heads/master | 2023-03-12T21:29:09.998425 | 2021-03-02T16:24:48 | 2021-03-02T16:24:48 | 343,979,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | from os import path
from shutil import copytree, rmtree
from typing import List, Union, Any, Tuple
from typistry.test.support.types.other_class import OtherClass
from typistry.protos.invalid_object import InvalidObject
from typistry.test.support.types.test_class import TestClass
from typistry.util.path import from_ro... | [
"kprifogle1@gmail.com"
] | kprifogle1@gmail.com |
d97ca44c9ac250ee5169fb9662a6ae9b5cd84709 | 3bd961816fe9b9048108f8a5a254b931dd79bde4 | /manga_py/providers/mangamew_com.py | 468cfc62dbc030c91cf86ee739264971ff06e7d1 | [
"MIT"
] | permissive | eduhoribe/manga-py | 6243115549d78c1599c6b043fe7cd897e2f517d3 | fe7eb2e08532b3c75b4f7ac8cc4132f0e7a65eb4 | refs/heads/stable_1.x | 2023-01-14T01:48:34.873530 | 2020-11-17T04:30:15 | 2020-11-17T04:30:15 | 307,992,359 | 1 | 0 | MIT | 2020-11-15T00:00:45 | 2020-10-28T11:18:18 | Python | UTF-8 | Python | false | false | 1,069 | py | from manga_py.provider import Provider
from .helpers.std import Std
class MangaMewCom(Provider, Std):
_type = 'manga'
def get_chapter_index(self) -> str:
re = r'%s/[^/]+/.+?-(\d+(?:-\d+)?)-\d+' % self._type
return self.re.search(re, self.chapter).group(1)
def get_main_content(self):
... | [
"sttv-pc@mail.ru"
] | sttv-pc@mail.ru |
5dabeb4a2c1b694a6e37ad5f0562da8805237de6 | adaf5d5cd4c46db0387f6dfd7de34d38cf3b06d0 | /Commands/Mtg.py | 2b91b0e30d456e99519e5a1ddd864ef11a563fa3 | [
"MIT"
] | permissive | CrushAndRun/PyMoronBot-LugNut | b0f23437a18fb27ee22313469ad2a396ddaa8f13 | d695d8f36b23fc584b3c7d795c12a9e4577c806b | refs/heads/master | 2020-02-26T13:42:41.197328 | 2017-12-07T15:36:58 | 2017-12-07T15:36:58 | 67,321,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,358 | py | # -*- coding: utf-8 -*-
from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from CommandInterface import CommandInterface
from Utils import WebUtils
import re
from bs4 import BeautifulSoup
class Mtg(CommandInterface):
triggers = ['mtg', 'mtgf']
help = 'mtg(f) <card name> - f... | [
"matthewcpcox@gmail.com"
] | matthewcpcox@gmail.com |
e8dd5fdaccd0096013f6662954213832a0879e9a | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Link/LinkChecker-9.3/linkcheck/checker/__init__.py | 62202815b17c0292ffab6e86859598e16e02a15a | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ed0ddaf86ed59f018b4cf89cd2abc32f6e966da1ceeb748d5678f763bef305b1
size 6120
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
199e2fbaeb8a63f651532d83d07851ad76bdda71 | 3c92c92f588ba1156c3579683d3d8b7d12aef652 | /test.py | caf3bab175467be3b3c5100db5eaf6157fac8118 | [] | no_license | JoseAVallejo12/sempliMl | 2dace46732c67f9a2b1a035db449e1ee7170a77c | 3117fcd5a473f0fe7756d58f8707cb447193d7fc | refs/heads/master | 2022-12-26T19:23:30.429927 | 2020-10-13T19:45:17 | 2020-10-13T19:45:17 | 303,531,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #!env/bin/python3
import requests
# Response a newUser random using the request.get and parsing to object with json() method
params = requests.get('https://lv2394qpu0.execute-api.us-east-1.amazonaws.com/dev/user/random').json()
# Define the headers for sent an request to API clostering customer
headers = {'Content-Ty... | [
"josealfredovallejo25@gmail.com"
] | josealfredovallejo25@gmail.com |
0a3898ac1c39e49d42d319ba852271926310d148 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/pybites/PyBites-master/NAMES.PY | 31a0aabe5eab8555bb9e8f89529c771d14e56474 | [
"MIT"
] | permissive | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 858 | py | NAMES = ['arnold schwarzenegger', 'alec baldwin', 'bob belderbos',
'julian sequeira', 'sandra bullock', 'keanu reeves',
'julbob pybites', 'bob belderbos', 'julian sequeira',
'al pacino', 'brad pitt', 'matt damon', 'brad pitt']
def dedup_and_title_case_names(names):
"""Should return a li... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
52475cb0f587a30f869a90240fe288a74769a8a0 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_1_1_neat/16_1_1_shaun_lee_lastword.py | 162809f1c2e6062991a66a8085d652bce0400c30 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 648 | py | from __future__ import print_function
import sys
def read_input(in_file):
T = int(in_file.readline().strip())
result = [line.strip() for line in in_file]
return result
def check_case(S):
result = ""
for c in S:
if c + result > result + c:
result = c + result
else:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
e7dfab6a95b879c74086ca60e363d1ccef110c97 | 96a34a048c783a75736bf0ec775df22142f9ee53 | /services/web/server/src/simcore_service_webserver/scicrunch/__init__.py | 338202607956135f6b5d4b7eb2066805397f8190 | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 478 | py | """
Submodule to interact with K-Core's https://scicrunch.org service
- client to validate and get info about RRIDs via scicrunch's API (service_client)
- keeps validated RRIDs in pg-database (scicrunch.db)
- define models for all interfaces: scicrunch API, postgres DB and webserver API (scicrunch_models... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
53dc5dbad44d62299a2771b4f46026d73806497f | 3c750d4d60660fdf6ef84d7b7ab9663fb76d0fa1 | /sopht/numeric/eulerian_grid_ops/poisson_solver_3d/scipy_fft_3d.py | 4e90e7708b6623f2626783e66e3daaf05b5eb5bd | [
"MIT"
] | permissive | SophT-Team/SophT | 25d157a17734600e9aa4f522b4574bfefe202bc7 | 99a094e0d6e635e5b2385a69bdee239a4d1fb530 | refs/heads/main | 2023-08-31T21:14:10.304592 | 2023-08-31T17:00:38 | 2023-08-31T17:00:38 | 498,451,510 | 2 | 2 | MIT | 2023-09-12T15:37:31 | 2022-05-31T18:25:12 | Python | UTF-8 | Python | false | false | 457 | py | """Create reference FFT operations via scipy in 3D."""
import numpy as np
from scipy.fft import irfftn, rfftn
def fft_ifft_via_scipy_kernel_3d(
fourier_field: np.ndarray,
inv_fourier_field: np.ndarray,
field: np.ndarray,
num_threads: int = 1,
) -> None:
"""Perform reference FFT operations via scip... | [
"bhosale2@illinois.edu"
] | bhosale2@illinois.edu |
d5c82675fd32505beabe8291bcae1e2d6bd02ffa | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/46000030.py | 67f8dc02c09f3261e98f8ceb9313e2ba312969dc | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/46000030.py generated: Fri, 27 Mar 2015 16:10:12
#
# Event Type: 46000030
#
# ASCII decay Descriptor: pp -> (X -> ~chi_10 -> (l q q, l l l) + jet ... )
#
from Configurables import Generation
Generation().EventType = 46000030
Generation().SampleGenerationT... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
a3b2f4ad14a1175927087259c39561072d324996 | eef243e450cea7e91bac2f71f0bfd45a00c6f12c | /.history/app/api_service/nlp_processing_20210124215235.py | 849149836d612782e4ed41b1146fa410bb3532f6 | [] | no_license | hoaf13/nlp-chatbot-lol | 910ab2ea3b62d5219901050271fc1a1340e46a2f | 18cb64efa9d6b4cafe1015f1cd94f4409271ef56 | refs/heads/master | 2023-05-08T04:17:19.450718 | 2021-02-02T02:37:38 | 2021-02-02T02:37:38 | 332,535,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | import csv
import json
import numpy as np
import sklearn
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import CountVectorizer
import numpy
from keras.datasets import imdb
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.layers imp... | [
"samartcall@gmail.com"
] | samartcall@gmail.com |
8fe94a63a6e963f1ad1e1f239fe6261d16869520 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /vBwRuR4mF5yQ4cNuc_17.py | cf1ee398857363c1811e1931002d97f5cddeae37 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py |
def count_missing_nums(lst):
out = [int(i) for i in lst if i.isdigit()]
return sum(i not in out for i in range(min(out), max(out)+1))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
092e0a9e39100e338aa1e0c4db77d873972d49ee | 306045a1cd0fb362f46d4db88311f442311bbc16 | /examples/idioms/programs/158.2163-random-sublist.py | 3f736d4ad21fd5030145e3bb3f6f9a976ee7b66f | [
"MIT"
] | permissive | laowantong/paroxython | 608c9010a2b57c8f7ed5ea309e24035c2b2e44a3 | a6d45829dd34f046d20e5bae780fbf7af59429cb | refs/heads/master | 2023-09-01T05:18:29.687916 | 2022-11-07T17:40:31 | 2022-11-07T17:40:31 | 220,820,424 | 36 | 5 | MIT | 2023-09-08T04:44:58 | 2019-11-10T16:54:56 | Python | UTF-8 | Python | false | false | 566 | py | """Random sublist.
Create a new list _y from randomly picking exactly _k elements from list _x.
It is assumed that _x has at least _k elements.
Each element must have same probability to be picked.
Each element from _x must be picked _at _most _once.
Explain if the original ordering is preserved or not.
Sourc... | [
"laowantong@users.noreply.github.com"
] | laowantong@users.noreply.github.com |
8898fd8584b627d6221f4ec6682599576dd3016c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/308/99324/submittedfiles/jogoDaVelha_BIB.py | 3cd55426284682db76a7c18bcbf132edaafce8bb | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,553 | py | # -*- coding: utf-8 -*-
from random import randint
import copy
def verificaVencedor(tabela): #Verifica se há vencedor || Parâmetro: Recebe a tabela para verificar || Retorno: Retorna o simbolo do vencedor
for a in range(0, 3):
if tabela[0][a]==tabela[1][a]==tabela[2][a]:
print('if 1')
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
978517d22ef87134a9543194451cef9bb9403512 | ce66de2e9b099b8b53f52721e649bce3e9d42734 | /python/ray/ml/predictors/integrations/sklearn/sklearn_predictor.py | 91a117cb878acc3efff31d27cb8e260ec6335d6d | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pengzhenghao/ray | 0428d0b7d479f112c7649577534dfdfdfe7ea2e7 | e57ce7efd6ea1d0e4f6942fcf6f526287340e63d | refs/heads/master | 2023-03-10T00:41:17.916609 | 2022-04-18T10:20:12 | 2022-04-18T10:20:12 | 184,541,751 | 0 | 1 | Apache-2.0 | 2023-03-04T08:58:50 | 2019-05-02T07:52:15 | Python | UTF-8 | Python | false | false | 3,452 | py | from typing import Optional, List, Union
import pandas as pd
from ray.ml.checkpoint import Checkpoint
from ray.ml.predictor import Predictor, DataBatchType
from ray.ml.preprocessor import Preprocessor
from sklearn.base import BaseEstimator
class SklearnPredictor(Predictor):
"""A predictor for scikit-learn compa... | [
"noreply@github.com"
] | pengzhenghao.noreply@github.com |
f143b9e6ab91c4c9fa6f94e1f36a988af36b2133 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/web_tests/external/wpt/eventsource/resources/cors.py | 6ed31f2cd7d1782f8b7267d646d3ba26ab1a2a6d | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 1,481 | py | import os
from wptserve import pipes
from wptserve.utils import isomorphic_decode
def run_other(request, response, path):
#This is a terrible hack
environ = {u"__file__": path}
exec(compile(open(path, u"r").read(), path, u'exec'), environ, environ)
rv = environ[u"main"](request, response)
return r... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
ee5635c50525121a7abafdf4f2497ca80d592b88 | ef243d91a1826b490e935fa3f3e6c29c3cc547d0 | /PyQt5/QtSensors/QDistanceReading.py | 93010e1e2e32d6db692726e8427d0fdb40d8b5f6 | [] | no_license | VentiFang/Python_local_module | 6b3d0b22399e817057dfd15d647a14bb1e41980e | c44f55379eca2818b29732c2815480ee755ae3fb | refs/heads/master | 2020-11-29T11:24:54.932967 | 2019-12-25T12:57:14 | 2019-12-25T12:57:14 | 230,101,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # encoding: utf-8
# module PyQt5.QtSensors
# from F:\Python\Python36\lib\site-packages\PyQt5\QtSensors.pyd
# by generator 1.147
# no doc
# imports
import PyQt5.QtCore as __PyQt5_QtCore
import sip as __sip
from .QSensorReading import QSensorReading
class QDistanceReading(QSensorReading):
# no doc
def distanc... | [
"5149528+ventifang@user.noreply.gitee.com"
] | 5149528+ventifang@user.noreply.gitee.com |
1ed5e23a6eec5d59476d6e9f794889ccaf9c1d50 | ba1e90ae6ea9f8f74d9b542e159825341c717712 | /2015/iitbhu3.py | 0b48444d1b36719c8ee5de5dc0558536774e0724 | [] | no_license | sailesh2/CompetitiveCode | b384687a7caa8980ab9b9c9deef2488b0bfe9cd9 | 5671dac08216f4ce75d5992e6af8208fa2324d12 | refs/heads/master | 2021-06-24T22:39:11.396049 | 2020-11-27T05:22:17 | 2020-11-27T05:22:17 | 161,877,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | x=raw_input().split(' ')
a=int(x[0])
b=int(x[1])
y=raw_input().split(' ')
n=int(y[0])
m=int(y[1])
savea=a
saveb=b
if a>b:
while 1:
if a%b==0:
gcd=b
break
temp=a
a=b
b=temp%b
else:
while 1:
if b%a==0:
gcd=a
... | [
"sailesh.ku.upadhyaya@gmail.com"
] | sailesh.ku.upadhyaya@gmail.com |
8eb6dd51ef164ee1452d1e90314b69b391ac91a8 | c0f4104194a7989e44d7f0161b2425c5a5bc3a98 | /senlin/tests/unit/apiv1/test_cluster_policies.py | 547c7f11cea39189106c81f3b497db2e0be8cd0a | [] | no_license | bopopescu/Openstack-2 | f65470bdd0ee4736c45b6f869f0453cb8eb446c8 | 6f06133562e3dfd490695a92c9ddf1a322675104 | refs/heads/master | 2022-11-28T09:19:21.633850 | 2016-06-23T07:55:32 | 2016-06-23T07:55:32 | 282,095,817 | 0 | 0 | null | 2020-07-24T01:44:49 | 2020-07-24T01:44:48 | null | UTF-8 | Python | false | false | 7,295 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | [
"egonmin@CN00119199"
] | egonmin@CN00119199 |
3b9d3f0c092a22bced0ce36744a8a86dec30f188 | f034ce134705b2de79a5aef85496e0ed9eabd700 | /market/migrations/0001_initial.py | 930c638800dc0ee0538596413d50661da2ce1491 | [] | no_license | poudel/animal-farm | 4d7961ae3b8b64f382232f2f3a9c0fc41be392ab | 646a6156fd60a73e6e50de1c2891ae25a13dae30 | refs/heads/develop | 2021-04-06T06:26:35.834800 | 2018-03-14T15:47:12 | 2018-03-14T15:47:12 | 125,237,057 | 8 | 0 | null | 2020-02-11T21:25:44 | 2018-03-14T15:50:45 | Python | UTF-8 | Python | false | false | 3,301 | py | # Generated by Django 2.0.3 on 2018-03-10 06:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('livestock', '0007_auto_2018031... | [
"self@keshab.net"
] | self@keshab.net |
ee633cead836f951cba9e7535fd70d9222b2ba1a | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pb_6025/sdB_pb_6025_lc.py | d912f3768ca33282d331c84172b5370d3149d7de | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[8.2935,1.325956], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pb_6025/sdB_pb_6025_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__ == "__main_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
a6c39c47a9e3abb4901208d7a8d2d9fc8bf7c7d4 | ea79ba14054cd4879968e75dc0cfc4890ba090b8 | /common/xrd-ui-tests-python/tests/xroad_global_groups_tests/XroadMemberAddToGlobalGroup.py | bbb863da99caf10e227ca5120b7869720df39da0 | [
"MIT"
] | permissive | VitaliStupin/X-Road-tests | bf70a5591721243622e6c3a2653aae30af6c4ae4 | 6103f3f5bbba387b8b59b050c0c4f1fb2180fc37 | refs/heads/develop | 2023-04-16T12:20:23.289803 | 2018-06-01T07:59:12 | 2018-06-01T07:59:12 | 84,918,233 | 0 | 0 | null | 2017-03-14T07:21:58 | 2017-03-14T07:21:58 | null | UTF-8 | Python | false | false | 1,725 | py | import unittest
from helpers import auditchecker, xroad
from main.maincontroller import MainController
from tests.xroad_global_groups_tests import global_groups_tests
class XroadMemberAddToGlobalGroup(unittest.TestCase):
"""
SERVICE_37 Add an X-Road Member to a Global Group
RIA URL: https://jira.ria.ee/b... | [
"mardu@varuosakeskus.ee"
] | mardu@varuosakeskus.ee |
8713fa99e22ae736ff68230a7b32a4cdab41f7df | 9d67cd5f8d3e0ffdd4334a6b9b67c93f8deca100 | /configs/12_20share_old.py | cf6e73c0a3255ed59e3802cffdecf6980499f4aa | [] | no_license | SiyuanLee/caps | 0c300a8e5a9a661eca4b2f59cd38125ddc35b6d3 | 476802e18ca1c7c88f1e29ed66a90c350aa50c1f | refs/heads/master | 2021-06-20T22:48:16.230354 | 2021-02-22T13:21:57 | 2021-02-22T13:21:57 | 188,695,489 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,041 | py | """
This is the example config file
same_room
no parameter share
take a look at transfer_config (differences are there)
"""
import numpy as np
# More one-char representation will be added in order to support
# other objects.
# The following a=10 is an example although it does not work now
# as I have not included a '1... | [
"lisiyuan@bupt.edu.cn"
] | lisiyuan@bupt.edu.cn |
706bb6fb18f57fe7fbff7f5b7082205fde6883cf | 5b6ec656a247d10011fd67a920aa002ebdf873c3 | /Ecommerce Website/Ecommerce Website 1.3/EcommerceWebsite/urls.py | 0c1b7936cf2a6e86257310459061cbcc2ef5174e | [] | no_license | KhaledAbuNada-AI/Django-Projects | cfb46d46da5f5358171294ca8c02c62c5babf2cf | ff264426d7a650f3c513678bbd71b5519372f6d3 | refs/heads/master | 2022-04-24T10:52:26.791436 | 2020-04-22T15:27:37 | 2020-04-22T15:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | """EcommerceWebsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"siddhant.shah.1986@gmail.com"
] | siddhant.shah.1986@gmail.com |
8239c124f63cbbc3e2ce479cc233adb943472bcf | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch77_2020_04_08_20_40_26_130258.py | 01494b6b51477f2062e1834d94e0c986db072780 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | def calcula_tempo(dicio):
nome_tempo = {}
i = 0
for e,a in dicio.items():
t = (200/a)**(1/2)
nome_tempo[e] = t
i += 1
return nome_tempo
| [
"you@example.com"
] | you@example.com |
e1a7c547a214c1f8836d35c4c7eacd9583f9394b | 96e74d3d36a8394f2f9a094c1eebe9e292b8123f | /setup.py | 0041bc7c6a46b037e90af71d5841c6cc73fbef18 | [] | no_license | kundajelab/locusselect | cf8073c541c2b363f70ff6e54f3d607701f6a832 | aafebf5e43e514e824a36ae07f5336a683e17b88 | refs/heads/master | 2021-07-02T12:14:14.281841 | 2020-11-12T10:10:16 | 2020-11-12T10:10:16 | 195,343,578 | 2 | 2 | null | 2019-07-19T19:31:13 | 2019-07-05T05:23:27 | Jupyter Notebook | UTF-8 | Python | false | false | 1,040 | py | from setuptools import setup,find_packages
config = {
'include_package_data': True,
'description': 'Compute deep learning embeddings for narrowPeak files; compute pairwise distance between embeddings and cluster with tSNE',
'download_url': 'https://github.com/kundajelab/locusselect',
'version': '0.3',
... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
9fddbd257c40305611a75397a400ebbb4e82b974 | c89e59b4d018e8a2d7dc0dbc3bb7a3768024f849 | /before2021/python/문제풀이/day6/7_건물세우기.py | 2d5eeac2e65309d19d45f900abf451c444c92311 | [] | no_license | leeiopd/algorithm | ff32103a43e467a5a091257cc07cf35365ecbf91 | e41647d3918c3099110d97f455c5ebf9a38d571e | refs/heads/master | 2023-03-08T23:46:34.919991 | 2023-02-22T09:39:46 | 2023-02-22T09:39:46 | 166,131,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | '''
(주)정올에서는 여러 개의 빌딩을 새로 지을 계획이다. 그래서 빌딩을 세울 장소를 선정하였다.
그리고 각 빌딩을 각 장소에 세울 경우에 드는 비용을 추정하였다. 예를 들어서 아래의 표를 보자
1 2 3
A 4 7 3
B 2 6 1
C 3 9 4
A, B, C 는 건물을 나타내고, 1, 2, 3은 장소를 나타낸다.
예를 들어서 건물 B를 장소 1에 세우면 비용이 2가 들고, 장소 2에 세우면 비용이 6, 장소 3에 세우면 비용이 1만큼 든다.
물론 한 장소에... | [
"leeiopd@hanmail.net"
] | leeiopd@hanmail.net |
6f8e8834f52ca848594d52208b0a41a8329f2961 | d23735419170bc51979bd37e6e82909ded61b818 | /image_lucida_project/image_lucida_app/context-processors.py | 97126abdacf5c034ac3bf03e29879d31545689ac | [] | no_license | ZoeLeBlanc/ImageLucida | 7f691d956faa2c5490c7a6b7d1ab69439636ea58 | edf41df372f31cac0682b9bfec85b2846b78a936 | refs/heads/main | 2023-02-20T12:41:20.372916 | 2022-05-30T02:12:26 | 2022-05-30T02:12:26 | 82,299,769 | 1 | 0 | null | 2023-02-15T18:32:12 | 2017-02-17T13:26:13 | Python | UTF-8 | Python | false | false | 1,665 | py | from image_lucida_app.models import *
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.models import User
def navigation(context):
"""
The navigation context processor generates the dynamic navbar for the index.html template.
"""
if context.user.is_authenticated():
... | [
"zoe.leblanc@vanderbilt.edu"
] | zoe.leblanc@vanderbilt.edu |
6ba1f46941ad26b0e5603b42a8af33aca521b913 | 40832e48ef481b4141435459afeaf0706fa6dc13 | /flask/crud/app.py | 0850249ba85737b18275e868b63a0dc907261a18 | [] | no_license | drgarcia1986/python-web-frameworks-crud | 93d85c9c35ae016d21d13549081fab84c33dbfe6 | 1fe110a3af5320ec6aecf277a45f61e3fc7df8be | refs/heads/master | 2021-01-01T16:49:52.529747 | 2015-09-14T13:39:13 | 2015-09-14T13:39:13 | 39,610,696 | 4 | 1 | null | 2015-09-14T13:39:14 | 2015-07-24T03:53:36 | Python | UTF-8 | Python | false | false | 621 | py | # -*- coding: utf-8 -*-
from flask import Flask
from .extensions import db
from .person.views import person_bp
def create_app():
app = Flask(__name__)
app.config.update(
SQLALCHEMY_DATABASE_URI='sqlite:///database.db'
)
register_extensions(app)
register_bluenprints(app)
create_datab... | [
"drgarcia1986@gmail.com"
] | drgarcia1986@gmail.com |
7c016d8b6388aebf0272e9d020906a09f3c9df6b | 4cb189467bf31816fcd8bfb248947b7dd00c2017 | /pixace/__init__.py | 3819954c037ec6693028c42d50dcb3c11351c8bf | [
"MIT"
] | permissive | vishnubob/pixace | 6945861372d70fbbbe8f15ac1d36d65b8f0b0f06 | 8871f3ac79101a2e7780571b8aafb226382ad83d | refs/heads/main | 2023-02-25T14:01:47.110728 | 2020-12-26T03:10:40 | 2020-12-26T03:10:40 | 320,168,163 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | def download_model(model_name=None, checkpoint="default", weights_dir="model-weights"):
from . zoo import ModelZoo
zoo = ModelZoo(weights_dir=weights_dir)
return zoo.download(model_name=model_name, checkpoint=checkpoint)
def get_trainer(
model_name=None,
model_type="reformer",
weigh... | [
"giles@polymerase.org"
] | giles@polymerase.org |
674a462645ec6e5cafacdcf593439c253f7c3c93 | 32dcb7c872cbc5048a2024df73866ee20e7405ec | /0x0B-python-input_output/7-save_to_json_file.py | 16166a4b92ea1c6e34dbec961951bd9ae6613ebe | [] | no_license | Bzhamdi/holbertonschool-higher_level_programming | f52eccc48fe388d6728e59e68da336b392057b8e | d92c749ed64d8b795533105520ddea4e12c2a508 | refs/heads/master | 2023-06-07T08:07:47.579114 | 2021-06-24T22:55:38 | 2021-06-24T22:55:38 | 259,213,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | #!/usr/bin/python3
"""save_to_json_file"""
import json
def save_to_json_file(my_obj, filename):
"""save object to jason file"""
with open(filename, 'w', encoding='utf-8') as file:
return json.dump(my_obj, file)
| [
"bouzouitina.hamdi@gmail.com"
] | bouzouitina.hamdi@gmail.com |
ba621a38f90ffdae0a50420c5fe784f09c301c67 | 0b4d36e45ac9a192982f01ebab15321981a17be5 | /app/admin/views/__init__.py | 2f32a1494d559d8911ab501dcc05d5b027e6a58a | [] | no_license | xuannanxan/maitul | 02f4f3ce85f02915c8d18cb4d291c3c6da4573d5 | 6407415f6beb6677875b23b06ac694996e840256 | refs/heads/master | 2020-07-11T00:10:18.569571 | 2019-11-17T12:39:38 | 2019-11-17T12:39:38 | 204,406,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # -*- coding: utf-8 -*-
# Created by xuannan on 2019-01-26.
__author__ = 'Allen xu'
from datetime import datetime
from flask_login import current_user
from flask import request,session
from app.expand.utils import build_tree,object_to_dict
from app.models import Crud,Menu,Conf,Admin,Role,Auth
from app.models.base impo... | [
"382933169@qq.com"
] | 382933169@qq.com |
333a6c4dfc8182319414de1bdc18d089c1898ac5 | c7a1c1ae40e9d95dfb92251dcfbf3c5010e6ba81 | /picamera/essentials-camera/Chapter 05 - Python/ch5listing2.py | 0b39ad336e65cbd478911fd113792f6648cee2cd | [] | no_license | pranavlathigara/Raspberry-Pi-DIY-Projects | efd18e2e5b9b8369bb1a5f5418782480cf9bc729 | 0c14c316898d4d06015912ac4a8cb7b71a3980c0 | refs/heads/master | 2021-04-06T09:14:28.088223 | 2018-02-19T00:15:22 | 2018-02-19T00:15:22 | 124,649,553 | 1 | 2 | null | 2018-03-10T11:30:59 | 2018-03-10T11:30:59 | null | UTF-8 | Python | false | false | 173 | py | from picamera import PiCamera
from time import sleep
camera = PiCamera()
camera.start_preview()
sleep(5)
camera.capture('/home/pi/Desktop/image.jpg')
camera.stop_preview() | [
"tdamdouni@users.noreply.github.com"
] | tdamdouni@users.noreply.github.com |
df1725401ad1ed3098e58f43cf648d10b867d034 | d45b4db35e5e8baef1aa71bb8ae55236e8e8de67 | /rm2bed.py | e36135ab8501ab8e641e864df18e86f177377c97 | [] | no_license | davek44/utility | a5af6bfff2cf576671dcdfa7bdfdac97a417b26a | 5a2581078bf9dab78cc182f2917ecb671d04570c | refs/heads/master | 2023-04-30T21:19:40.683342 | 2023-04-20T22:30:48 | 2023-04-20T22:30:48 | 7,212,829 | 18 | 11 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | #!/usr/bin/env python
from optparse import OptionParser
import gzip
'''
rm2bed.py
Convert RepeatMasker .out format to BED.
'''
################################################################################
# main
################################################################################
def main():
usage... | [
"drk@calicolabs.com"
] | drk@calicolabs.com |
c1881a3f7167b40d0502938ef8175b49df657c8c | e86364b36b82c24596dd71f9fa2221d036e8defc | /collections/ansible_collections/arista/eos/plugins/modules/eos_l2_interfaces.py | bb55e26753e4377bd7f101bd2b60c9ca4dbcffa8 | [] | no_license | ganeshrn/network_collections_migration | b3f11be5ecb9557787bcd12ca01b227379c7c102 | 8f56b60bfde606b291627665a1218bf7ce15f3a1 | refs/heads/master | 2020-09-12T12:10:58.189645 | 2019-11-18T11:44:48 | 2019-11-18T11:44:48 | 222,419,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,267 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
##############################################
# WARNING #
##############################################
#
# This file is a... | [
"ganesh634@gmail.com"
] | ganesh634@gmail.com |
38cfc7ab0516a8cc95e4612d23acabbe0368a327 | 2c13edf74323021a63697216bb39e1e2e9758342 | /listBackupFiles.py | 7efc89d660b08ec426460fdb5e011811f2a48e75 | [] | no_license | andreycizov/Ahsay-OBC-Restore-tool | 5126d0e9460b3a78ed51c41bacd7d1d3eb7372ea | b94450a8bd5de47ab1d909df93097950cd1af6c6 | refs/heads/master | 2021-01-22T19:13:47.283496 | 2011-08-26T17:53:23 | 2011-08-26T17:53:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | #!/usr/bin/python3
from AhsayAPI import GZStreamRead as GZ
from AhsayAPI import XMLFileList as FL
from AhsayAPI import XMLFileInfo
from AhsayAPI import to_size
from AhsayAPI import salt
from AhsayAPI.urls import ls
from AhsayAPI.urls import urlopen
import sys
t = ls({'dir':sys.argv[1],
'backupjob':'Current',
'start_... | [
"acizov@gmail.com"
] | acizov@gmail.com |
a12ba1e7a58cbb5f71f5e88633c027104e7aa5a3 | 060b4486244008e40137b590397ed1264b4116de | /poetry/core/_vendor/configparser.py | 00c2335b787069a1566bc45f8b959f71f3307322 | [
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Python-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hoefling/core | d8bfa4b59e81a0a86d56c75e4b3d135c9f91ad2b | 7e9fbac94bbd2211b63421dc47fa91cb507c466d | refs/heads/master | 2022-05-08T06:29:41.070632 | 2020-04-22T18:59:34 | 2020-04-22T18:59:34 | 257,990,591 | 0 | 0 | MIT | 2020-04-22T18:46:57 | 2020-04-22T18:46:56 | null | UTF-8 | Python | false | false | 1,586 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Convenience module importing everything from backports.configparser."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from poetry.core._vendor.backports.configparser... | [
"sebastien@eustace.io"
] | sebastien@eustace.io |
07a1b69874544a91d2d108bcfcdd3e27ba9f3de2 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /402/402.remove-k-digits.282089710.Accepted.leetcode.python3.py | 5768f0de4828d4f67130aabc3ed918c82c4573aa | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | class Solution:
def removeKdigits(self, num: str, k: int) -> str:
if k == num:
return "0"
stack = []
for i in range(len(num)):
while k and stack and stack[-1] > num[i]:
stack.pop()
k -= 1
stack.append(num[i])
while k... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
2bc9de9da32d67746c3de41150491c969903db68 | 94d8bb0e323ee478b580f766b7700acd32b519fd | /augmented-reality/stitch.py | 7e6f169b0c70081fb1478e5f69c51dd4d3a04369 | [] | no_license | vanstorm9/SLAM-experiments | d5db1d7680193d664029230e135ddb0d5648d38d | b17c4f83ae2c7a9dfafebd8559953d7341699fc6 | refs/heads/master | 2021-01-17T20:26:38.135564 | 2016-08-20T05:59:06 | 2016-08-20T05:59:06 | 65,873,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | from panorama.panorama import Stitcher
import imutils
import numpy as np
import os
import cv2
widthResize = 600
def cropFocus(img):
subtractThresh = 20
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
_, thresh = cv2.threshold(gray,1,255,cv2.THRESH_BINARY)
contours = cv2.findContours(thresh,cv2.RETR_EXTERNAL,cv2.CH... | [
"antlowhur@yahoo.com"
] | antlowhur@yahoo.com |
43864d0cecc6965fd89fe49768f52b05fda4096d | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/hllbra005/ndom.py | e5b1bd8aa42e852320f2d1d656ace34011f9d230 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | # Functions for ndom calculations
# Brandon Hall (HLLBRA005)
# 4 April 2014
def ndom_to_decimal(ndom): # This method converts ndom to decimal numbers, i.e base 6 to base 10
decimal = ndom
ndomS = str(ndom) # Converts the parsed number ndom to a string
length = len(ndomS) # Length of th... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
ff89354798fc6cbc57a7af70c715c3cdaeb26fd3 | 3fe1b6f36bfd02156f606cf90797d69b18dd19d2 | /creme/optim/newton.py | 4997a95c4ab37fe8b551142380fd0e79804c74ff | [
"BSD-3-Clause"
] | permissive | mihir-thakkar-ai/creme | a19a1975bb462a1a93046b6ea55830e88846cb88 | 008b0c1beb26b36b448fc3d04537e02e66d402b3 | refs/heads/master | 2022-12-18T01:15:18.132117 | 2020-09-15T20:17:16 | 2020-09-15T20:17:16 | 296,288,773 | 0 | 0 | BSD-3-Clause | 2020-09-17T10:04:27 | 2020-09-17T10:04:26 | null | UTF-8 | Python | false | false | 1,182 | py | from .. import utils
from . import base
__all__ = ['Newton']
class Newton(base.Optimizer):
"""Online Newton Step (ONS) optimizer.
This optimizer uses second-order information (i.e. the Hessian of the cost function) in
addition to first-order information (i.e. the gradient of the cost function).
P... | [
"maxhalford25@gmail.com"
] | maxhalford25@gmail.com |
78ed70cfb6eeef227fb3bfb09143da364540ab98 | e4ad15cb20c2701f33c60001841a66fc03cd45ff | /pre_process_3.py | 586671edb3888c4c121c715fe9643c56c4479c0a | [
"MIT"
] | permissive | foamliu/Face-Attributes | 90fb70947155d0c773a4bf2888190a843a280db5 | fbf90cd55b01e4b84ec69d01132b4b77e0417952 | refs/heads/master | 2020-05-21T04:59:33.707892 | 2019-09-23T08:18:15 | 2019-09-23T08:18:15 | 185,909,551 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | import pickle
import cv2 as cv
from tqdm import tqdm
from config import im_size, pickle_file_landmarks, pickle_file_aligned
from utils import crop_image
ONE_SECOND = 1
if __name__ == "__main__":
print('loading {}...'.format(pickle_file_landmarks))
with open(pickle_file_landmarks, 'rb') as file:
data... | [
"liuyang12@focusmedia.cn"
] | liuyang12@focusmedia.cn |
4813e58f082e8347dbf5a8f63497e847b4c8ac7f | f3f19eaa73f2adb4375dbe6fbfa89eaaa8796cbc | /code/preprocessing/feature_engineering/rel_feature_groups/dep.py | 630cbe1fce98362a26687ff7ec077c7681d5248d | [] | no_license | sanjukladher/WNUT_2020_RE | 2b4c172de236a7766d27a588aa09a2f2f5d5a402 | 3ea31038bdc4a3b39def354ebee69ab00805ab0d | refs/heads/master | 2023-01-06T04:38:11.726589 | 2020-10-30T03:19:14 | 2020-10-30T03:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | from corpus.ProtoFile import Relation
from preprocessing.feature_engineering.datasets import RelationWindow
class DependencyFeatureGroup(object):
def __init__(self):
pass
def convert_window(self, window):
result = []
assert isinstance(window, RelationWindow)
if window.relation... | [
"jeniya.tabassum@gmail.com"
] | jeniya.tabassum@gmail.com |
301c79bdf0ec8be3cc4f05ca54b72e601197f4c9 | bba7f5a363d57473f583747af259f5ff60a53631 | /webrobot/app/main/controller/test_controller.py | 4dcd305dc12cb238fc24ba8826df878acd5d3efb | [
"MIT"
] | permissive | githubwangcc/Auto-Test-System | 63f7953c0dd90859a3cd0b9330e102330df064aa | 4462fde8c23fef625f459d51d6bb7560ba29d726 | refs/heads/master | 2020-09-21T13:58:29.185560 | 2019-10-22T01:23:48 | 2019-10-22T01:23:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,858 | py | import os
import time
from pathlib import Path
from flask import Flask, send_from_directory, request
from flask_restplus import Resource
from app.main.util.decorator import token_required, organization_team_required_by_args
from app.main.util.get_path import get_test_result_path, get_back_scripts_root
from ..config i... | [
"panzilla@163.com"
] | panzilla@163.com |
f21aa89b98bd1ddc09335867c23cbf53a8a6c2a7 | 06f238313235b279cad3ade94cb69f8c4f073215 | /model_verbq_working.py | 5638e6d98b9d212a37be48e2a72ecbf0b599877d | [
"MIT"
] | permissive | thilinicooray/mac-network-pytorch | f26f9fac0e67c21abdff6862a696187c4eb3126e | 0e4bf3f7f301570b652490f697758361c866f3c1 | refs/heads/master | 2020-03-29T04:39:35.133060 | 2019-05-14T12:48:00 | 2019-05-14T12:48:00 | 149,541,433 | 0 | 0 | MIT | 2018-09-20T02:44:20 | 2018-09-20T02:44:20 | null | UTF-8 | Python | false | false | 5,018 | py | import torch
import torch.nn as nn
from attention import Attention, NewAttention
from language_model import WordEmbedding, QuestionEmbedding
from classifier import SimpleClassifier
from fc import FCNet
import torch.nn.functional as F
import torchvision as tv
import utils
import numpy as np
import model_verb_directcnn
i... | [
"thilinicooray.ucsc@gmail.com"
] | thilinicooray.ucsc@gmail.com |
9ada941a10b5da9a1d14e5a9f5e8e2771b3c806c | 27440297f68994be89764ec1eb996df19c408749 | /processing/merge.py | f30b74502636511db234e2edb0563fa361bbf836 | [] | no_license | anoop-phoenix/Web_Presentation | ed084dfb56e8c9c6eb8d5e00b339cb7be989da1d | cb253cb6290a6c52183bae40330d8b79de69bbc1 | refs/heads/master | 2022-07-23T06:17:23.962036 | 2020-05-11T01:56:03 | 2020-05-11T01:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,209 | py | import json
import cv2
import numpy as np
from os.path import join as pjoin
import os
from lib_uied.ip_preprocessing import preprocess
from CONFIG import Config
C = Config()
compo_index = {'img':0, 'text':0, 'button':0, 'input':0, 'icon':0}
def draw_bounding_box_class(org, corners, compo_class, color_map=C.COLOR, li... | [
"dsh15325@163.com"
] | dsh15325@163.com |
82910b40db0a306227fb84d75d64878ce5263901 | ac415850ca1926439a5f882c4a3b6c6105247149 | /setup.py | db2d3d2e0e3fbbb8faf3f159cb6b0aae0d70b750 | [] | no_license | RedTurtle/collective.itvalidators | 2a4e816628e48e218f82d626f3d48adf191977c3 | 86f59adf51ea185796d7c8e5007e3fd9ebf66f92 | refs/heads/master | 2020-05-20T16:46:43.456230 | 2012-11-12T13:52:01 | 2012-11-12T13:52:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from setuptools import setup, find_packages
import os
version = '1.0.1.dev0'
tests_require=['zope.testing', 'Products.CMFTestCase']
setup(name='collective.itvalidators',
version=version,
description="A set of Archetypes validators for Plone, some for Italian specific needs, others useful for all",
... | [
"luca@keul.it"
] | luca@keul.it |
3bae7b1543b54747cd569854abb8d5a2f2c55705 | 1ee2087e1879b3d40661940f630f94576b38a75b | /migrations/versions/275b0e49dff7_.py | 8b691a445a1f3fb66ce336331ce9cbe0af46bfb4 | [
"Apache-2.0"
] | permissive | dpdi-unifor/limonero | be332baf0c3596c2195c8aaaefd67def64a57c8a | 3b46f780f82e1d291ebe0120d95c71e82cd46ed9 | refs/heads/master | 2023-01-03T22:00:06.474233 | 2020-08-06T18:04:21 | 2020-08-06T18:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | """empty messagepark-2.3.0/
Revision ID: 275b0e49dff7
Revises: 66d4be40bced
Create Date: 2018-07-11 16:15:33.196417
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import mysql
from sqlalchemy.sql import text
# revision identifiers, used by Alembic.
revision = '275b0e49dff7'
down_revision... | [
"waltersf@gmail.com"
] | waltersf@gmail.com |
5aee70ed6493dc5c7fe1fd68084783b335802ad2 | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/lite/testing/op_tests/space_to_depth.py | 27f5dbde160fea3d10d81554543841f1152f45b4 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | Python | false | false | 2,125 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
64c18dd4c90df51f1a5970e4cc74abafd124de81 | 18619af2eb81d74d9e76d61971da1f0fe57b4bbb | /stochastic_optimizer/framework/__init__.py | 70d7241d62b8ae87c23c2fac6491ab6c84e3725d | [] | no_license | asahi417/StochasticOptimizers | 4b9245c7fc99e660d9298077823972cf86e21205 | d98c91136835206dc36d9409e425e1caf4fbb275 | refs/heads/master | 2020-12-01T04:37:20.798101 | 2020-01-01T07:50:58 | 2020-01-01T07:50:58 | 230,559,078 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from .learning_curve_classifier import LearningCurveClassifier
from .grid_search import GridSearch
__all__ = (
"LearningCurveClassifier",
"GridSearch"
)
| [
"spacefunkspacefunk@gmail.com"
] | spacefunkspacefunk@gmail.com |
8e8baac73edc574040ae13f34cab1d3b1185e8ce | d75371f629cf881de3c49b53533879a5b862da2e | /python/flatten-nested-list-iterator.py | 35a303de0ca7014e654d63308aa377c0f04c99be | [] | no_license | michaelrbock/leet-code | 7352a1e56429bb03842b588ba6bda2a90315a2f4 | 070db59d4e0ded3fb168c89c3d73cb09b3c4fe86 | refs/heads/master | 2020-04-01T05:40:49.262575 | 2019-10-10T22:03:10 | 2019-10-10T22:03:10 | 152,914,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | # """
# This is the interface that allows for creating nested lists.
# You should not implement it, or speculate about its implementation
# """
#class NestedInteger(object):
# def isInteger(self):
# """
# @return True if this NestedInteger holds a single integer, rather than a nested list.
# :rt... | [
"mykel.bock@gmail.com"
] | mykel.bock@gmail.com |
3eb8e8be307b73db69c95441580767c265d74e73 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileHof.py | 84be578dc3dfaf43f6f2f9fbcf9766701417e1b0 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 7,566 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileHof.py
from functools import partial
import BigWorld
from adisp import process
from debug_utils import LOG_WARNING, LOG_ERROR
from helpers import dependency, i18n
from gui.Scaleform impo... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
38af75495681eb2f6ff8f41b12bb003b2b7641d6 | 3daf036e3911c00e50fb76e083ada2134ff1758f | /firefox/export_firefox_cookies.py | 861a3b9d04167e0ea5495f881f256632f0561819 | [
"MIT"
] | permissive | jabbalaci/Bash-Utils | 954b234148745a9d73747392b137884ee7817246 | c880ff48eafb0f8f5f60f62d9cc3ddbbc0dd88b7 | refs/heads/master | 2023-05-01T22:40:46.713341 | 2023-04-24T14:30:25 | 2023-04-24T14:30:25 | 1,561,380 | 91 | 32 | null | null | null | null | UTF-8 | Python | false | false | 3,941 | py | #!/usr/bin/env python3
"""
Extract Firefox cookies
=======================
This script extracts cookies from Firefox's cookies.sqlite file
that are specific to a given host. The exported cookies are saved
in the file cookies.txt .
New! It also exports session cookies from Firefox's recovery.js file.
The exported coo... | [
"jabba.laci@gmail.com"
] | jabba.laci@gmail.com |
fddabc87a3bd3b32b19da51b8a145cb38e9f1ca1 | 7bcec8a9c6a240ec0888bec4179f536046464005 | /moviesys/moviesys/.history/library/admin_20210318134349.py | 76ed2874fbcd5d1186ba17a3a66fef09063aae9c | [] | no_license | yifanzhang13/MovieManagementSystem_group5 | c64e5810914c3d33ae6cd94e8eed5dc5a3962181 | 4cca1a4299311681d69b2347ca8d7b02e0846ebc | refs/heads/main | 2023-03-29T08:30:26.655108 | 2021-04-01T15:42:52 | 2021-04-01T15:42:52 | 344,417,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from django.contrib import admin
# Register your models here.
from .models import Movies, Users, Ratings, Links, Tags
# register models
# admin.site.register(Movies)
admin.site.register(Users)
admin.site.register(Ratings)
admin.site.register(Links)
admin.site.register(Tags)
@admin.register(Movies)
class MoviesAdmin... | [
"yifancheung13@gmail.com"
] | yifancheung13@gmail.com |
ade285186c539e4e1bfac84b045c7a325362486d | 51a37b7108f2f69a1377d98f714711af3c32d0df | /src/leetcode/P5667.py | b91f9dbfe363084ec778918ed185877ab603d56c | [] | no_license | stupidchen/leetcode | 1dd2683ba4b1c0382e9263547d6c623e4979a806 | 72d172ea25777980a49439042dbc39448fcad73d | refs/heads/master | 2022-03-14T21:15:47.263954 | 2022-02-27T15:33:15 | 2022-02-27T15:33:15 | 55,680,865 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,218 | py | import bisect
class Solution:
def canEat(self, candiesCount, queries):
n = len(candiesCount)
s = [0] * (n + 1)
for i, v in enumerate(candiesCount):
s[i + 1] = s[i] + v
ret = []
for q in queries:
t, d, c = q
l = 1 * (d + 1)
r ... | [
"stupidchen@foxmail.com"
] | stupidchen@foxmail.com |
e1488fdab650b9fd0136aa331c3c6462879aeb1a | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.0_rd=0.8_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=37/params.py | 9cc08e99d9f5bb4bdff5449574abf1e1a429bfd7 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.027810',
'max_util': '2.0',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'GSN-EDF',
'trial': 37,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
f32820f7dc5afdb06d623413c51c3fa851319acd | ab5cdf8f2de94c327e4679da84f941b1f3c04db4 | /kubernetes/client/models/v1beta1_host_port_range.py | 580abcc558942c90a636d2190bec5623cb540642 | [
"Apache-2.0"
] | permissive | diannaowa/client-python | a4a92a125178db26004eaef5062f9b1b581b49a8 | 5e268fb0b6f21a535a14a7f968b84ed4486f6774 | refs/heads/master | 2020-12-02T22:06:03.687696 | 2017-06-30T21:42:50 | 2017-06-30T21:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,825 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
f5f364ce6f2c28ed585f25e0559cd6f7cccfc170 | 4302fd10583ccff63ff5693bd2ae5903323cb769 | /curate/migrations/0005_remove_study_is_replication.py | b6ec819551ad0d855253b9dfe55fef304f4a0d25 | [
"MIT"
] | permissive | ScienceCommons/curate_science | 1faf742c8de1e9c9180e4d8ec6a7457ad95bb705 | 4e4072e8c000df0d2e80637016f8f0e667f4df54 | refs/heads/master | 2022-02-12T19:56:51.730534 | 2022-01-25T16:44:54 | 2022-01-25T16:44:54 | 149,122,317 | 14 | 7 | MIT | 2021-03-23T17:27:05 | 2018-09-17T12:32:25 | HTML | UTF-8 | Python | false | false | 334 | py | # Generated by Django 2.1.1 on 2018-09-27 02:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('curate', '0004_auto_20180921_0646'),
]
operations = [
migrations.RemoveField(
model_name='study',
name='is_replication',
... | [
"alex.kyllo@gmail.com"
] | alex.kyllo@gmail.com |
fd4b65d59d854cc6badda13d543369570401228a | f26937e8cd0b07589ba1cf6275596d97488cda7e | /scrapySpider/fenbu/fenbu/spiders/ff.py | aa080ce347819359cc930f96fdb95135e9cc23bc | [] | no_license | HezhouW/hive | 4aa46a045d22de121e2903075e74c3c9fd75ec1f | 3a7de0c18cbe0ec81e0b40c3217dd5b1a15cf464 | refs/heads/master | 2022-02-27T04:52:42.704501 | 2019-05-24T02:40:49 | 2019-05-24T02:40:49 | 123,524,369 | 1 | 0 | null | 2018-03-02T03:18:07 | 2018-03-02T03:18:07 | null | UTF-8 | Python | false | false | 308 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy_redis.spiders import RedisCrawlSpider
from fenbu.items import FenbuItem
import re
import redis
class MoviespiderSpider(RedisCrawlSpider):
name = 'ff'
redis_key = 'fenbuSpider:start_urls'
def parse(self , response):
print(response.text) | [
"954316227@qq.com"
] | 954316227@qq.com |
feb0de67b1279c42a7f67cadd8c3b7566685ac4c | 2a28a94fc8eb08961e76c61ab73889135153502b | /asposecellscloud/requests/delete_horizontal_page_break_request.py | b8b9619e62e7eae4af87a1eeb338ddd0627b0f6f | [
"MIT"
] | permissive | aspose-cells-cloud/aspose-cells-cloud-python | 45fc7e686b442302a29a8223e7dbddb71950438c | 270d70ce7f8f3f2ecd9370b1dacfc4789293097e | refs/heads/master | 2023-09-04T01:29:44.242037 | 2023-08-23T13:13:30 | 2023-08-23T13:13:30 | 123,092,364 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,339 | py | # coding: utf-8
"""
<copyright company="Aspose" file="DeleteHorizontalPageBreakRequest.cs">
Copyright (c) 2023 Aspose.Cells Cloud
</copyright>
<summary>
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 ... | [
"roy.wang@aspose.com"
] | roy.wang@aspose.com |
da0594e90c26aaae98ad9da7493093c03cf47b0b | 0a11a15cf64e25585d28f484bb2118e8f858cfeb | /알고리즘/알고리즘문제/4869_종이붙이기.py | 288c845e4383a2dd1780008c74d376f54243f413 | [] | no_license | seoul-ssafy-class-2-studyclub/GaYoung_SSAFY | 7d9a44afd0dff13fe2ba21f76d0d99c082972116 | 23e0b491d95ffd9c7a74b7f3f74436fe71ed987d | refs/heads/master | 2021-06-30T09:09:00.646827 | 2020-11-30T14:09:03 | 2020-11-30T14:09:03 | 197,476,649 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | def paper(N):
if N == 10:
return 1
if (N // 10) % 2 == 1: # 홀수
return paper(N - 10) * 2 - 1
else:
return paper(N - 10) * 2 + 1
for t in range(int(input())):
N = int(input())
print('#{} {}'.format(t+1, paper(N)))
| [
"gyyoon4u@naver.com"
] | gyyoon4u@naver.com |
d20b982fe3c60329974052d5ba1eeb74eab893e8 | 9c84f9d5dc15a7aa5d1caf05b6ae5ea83e39be3a | /python_stack/django/django_full_stack/BellReview/BellReview/settings.py | e601fdec278ca591be2c1b97ab65472513bdbd3b | [] | no_license | tomnguyen103/Coding_Dojo | 0fc4007296feb775b4bcd6ee98f66286b2786adb | ec46b866fc7e58a37d07b63b26b38d19eaeb96f6 | refs/heads/master | 2022-12-28T03:47:57.172540 | 2020-06-15T23:03:50 | 2020-06-15T23:03:50 | 212,214,976 | 1 | 0 | null | 2022-12-11T18:36:51 | 2019-10-01T22:59:37 | Python | UTF-8 | Python | false | false | 3,123 | py | """
Django settings for BellReview project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | [
"huuthong103@gmail.com"
] | huuthong103@gmail.com |
eca0527dc6e1af8eb14ad2e48ab7b65a7961662a | c1a4742ecd23941140b57cfd61759aa3901e0711 | /src/apps/boards/views.py | 68afa2b13811821ff0bc49eb05d9c7d3ea14862e | [] | no_license | aodarc/django-trello | 31a5b6813f5136b427c483c0d329ec8c231888d0 | ee00fc5a71e2a7003118542b6b8caffaa73bc9b8 | refs/heads/master | 2023-06-29T14:42:05.027572 | 2021-07-26T15:28:28 | 2021-07-26T15:28:28 | 389,680,626 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | from django.contrib.auth.decorators import login_required
from django.db.models import Count, Prefetch
from django.http import HttpResponseRedirect
# Create your views here.
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from django.views import generic
from rest_framework im... | [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
96c18d0ab5d9ca7292ba91d87de1eb104dda90bd | 69145e4b94bd6225138a57305fc09a1c714ebca7 | /home/migrations/0003_resume.py | d1d56477c33b114530c483f060458b5a44616366 | [
"MIT"
] | permissive | SimonOkello/portfolio | 09504163b34559af6119a89c7d3368e45025bbaa | 8b2436399ba1d686769a88c87567ed5e86b797a4 | refs/heads/main | 2021-12-02T18:58:22.120534 | 2021-10-10T10:55:05 | 2021-10-10T10:55:05 | 412,837,378 | 0 | 0 | MIT | 2021-10-09T09:20:20 | 2021-10-02T15:35:14 | Python | UTF-8 | Python | false | false | 832 | py | # Generated by Django 3.2.7 on 2021-10-03 16:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('home', '0002_service'),
... | [
"simonokello93@gmail.com"
] | simonokello93@gmail.com |
b6ef4a8d17124102cba4c340c0adaa7d224bd5c3 | b72b41f8191e44ad4b70355ed2c26ea7feb0e1d0 | /main.py | 904a1e4e5ca193586ed8b1d462e14c5b8b9e4054 | [
"BSD-3-Clause"
] | permissive | dendisuhubdy/neuron-swarms | 6b25bace21f6116790904cc999e0a9540985251b | ceb8854a580abb825155c362dc2e8f801f950ed0 | refs/heads/master | 2021-08-16T10:39:56.229663 | 2017-11-19T17:05:46 | 2017-11-19T17:05:46 | 110,992,001 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | import numpy as np
import time
from visdom import Visdom
from scipy.integrate import odeint
from swarmalators import Swarmalarator
viz = Visdom(server='http://suhubdy.com', port=51401)
def main():
# Load simulation parameters
a, dt, T, n, L = 1, 0.5, 500, 100, 1 # surprisingly, dt = 0.5 seems to work O... | [
"suhubdyd@iro.umontreal.ca"
] | suhubdyd@iro.umontreal.ca |
5c0544ab8f5d844f75a21896e5c0928fd3feac1c | 8dd53a5d1820ae5a3efe799381a90c977afd32c4 | /test/functional/wallet_keypool_topup.py | 8e3ca127b17210112557981640e1cf17922daad5 | [
"MIT"
] | permissive | mulecore/mulecoin | 8b654817a1b78c9e98f96bfef5febaca23347f64 | e52131742938ae433463f32680837981a5cedc0f | refs/heads/master | 2023-03-28T05:37:53.552271 | 2021-03-27T03:22:13 | 2021-03-27T03:22:13 | 351,796,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Copyright (c) 2017-2019 The Raven Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Test HD Wallet keypool restore function.
Two nodes. N... | [
"root@DESKTOP-AOBIGEQ.localdomain"
] | root@DESKTOP-AOBIGEQ.localdomain |
5683033c35209cce456734e560d9bd3c07451980 | b049a961f100444dde14599bab06a0a4224d869b | /sdk/python/pulumi_azure_native/security/v20190801/__init__.py | 6309308fa63d8a40d72ad8c853ec0211cc0f2c9f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-azure-native | b390c88beef8381f9a71ab2bed5571e0dd848e65 | 4c499abe17ec6696ce28477dde1157372896364e | refs/heads/master | 2023-08-30T08:19:41.564780 | 2023-08-28T19:29:04 | 2023-08-28T19:29:04 | 172,386,632 | 107 | 29 | Apache-2.0 | 2023-09-14T13:17:00 | 2019-02-24T20:30:21 | Python | UTF-8 | Python | false | false | 459 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .device_security_group import *
from .get_device_security... | [
"github@mikhail.io"
] | github@mikhail.io |
879437f3995fc2c8af33708e20e65ea71d787eed | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy1998.py | 8ea67d5a234bcee1b81265ef51492d40802ad06f | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,931 | py | # qubit number=4
# total number=32
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5a9fb527004b7c85da090fbd398b277106d50371 | e0c8662a56d89730043146ddc340e9e0b9f7de72 | /plugin/1183fe82-1596.py | 02dad21d9a024d399fccb78fe53c31cad6e8bc1d | [] | no_license | izj007/bugscan_poc | f2ef5903b30b15c230b292a1ff2dc6cea6836940 | 4490f3c36d4033bdef380577333722deed7bc758 | refs/heads/master | 2020-09-22T17:20:50.408078 | 2019-01-18T09:42:47 | 2019-01-18T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | #coding:utf-8
from lib.curl import *
# -*- coding: utf-8 -*-
"""
POC Name : sgc8000 大型旋转机监控系统报警短信模块泄露
Author : a
mail : a@lcx.cc
refer : 打雷 http://www.wooyun.org/bugs/wooyun-2015-0135197/
波及各大能源公司,包括中石油,中石化,中海油,中煤等等等等全国各个化工能源公司
"""
import urlparse
def assign(service, arg):
if service == 'sgc80... | [
"yudekui@wsmtec.com"
] | yudekui@wsmtec.com |
829b93625b164aec03032b7f6b7d6a98b68afbfb | 4522fc52bc43654aadd30421a75bae00a09044f0 | /isis/itzamara/search_item.py | 8508a4237dc9d83db9719b60b26ba7f43ce31d6f | [] | no_license | qesoalpe/anelys | 1edb8201aa80fedf0316db973da3a58b67070fca | cfccaa1bf5175827794da451a9408a26cd97599d | refs/heads/master | 2020-04-07T22:39:35.344954 | 2018-11-25T05:23:21 | 2018-11-25T05:23:21 | 158,779,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | from isis.dialog_search_text import Dialog_Search_Text
from isis.data_model.table import Table
from sarah.acp_bson import Client
class Search_Item(Dialog_Search_Text):
def __init__(self, parent=None):
Dialog_Search_Text.__init__(self, parent)
self.agent_itzamara = None
self.store = None
... | [
"qesoalpe@gmail.com"
] | qesoalpe@gmail.com |
6834426075b03b496ae3de4b06d6f72d73bf5839 | 35a10ea7657fb28b4ae5a95045bc8e715b0b8d1c | /mysite/main/migrations/0005_delete_essaycategory.py | 3baecf7fefd629a67d9303b72c037ffca744b4da | [
"MIT"
] | permissive | nsky80/editorial | d7c978be4b8b8ea1cec6b764dd2e9860ebdf0867 | e85106e32d5d5ff8b9ac7f140b0c8f67d34b2dc0 | refs/heads/master | 2020-04-29T08:41:57.601027 | 2020-03-05T18:37:02 | 2020-03-05T18:37:02 | 175,995,388 | 2 | 0 | MIT | 2019-08-19T18:29:58 | 2019-03-16T16:20:23 | HTML | UTF-8 | Python | false | false | 299 | py | # Generated by Django 2.2.1 on 2019-07-21 09:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20190316_0140'),
]
operations = [
migrations.DeleteModel(
name='EssayCategory',
),
]
| [
"satishkumary80@gmail.com"
] | satishkumary80@gmail.com |
35b09022fa3e5caa076b0ac3a5627233549ded43 | 55c552b03a07dcfa2d621b198aa8664d6ba76b9a | /Algorithm/BOJ/4134_다음 소수_s4/4134.py | 7845e2c7cdb25cd978361a4bf6a02925ddce3a0b | [] | no_license | LastCow9000/Algorithms | 5874f1523202c10864bdd8bb26960953e80bb5c0 | 738d7e1b37f95c6a1b88c99eaf2bc663b5f1cf71 | refs/heads/master | 2023-08-31T12:18:45.533380 | 2021-11-07T13:24:32 | 2021-11-07T13:24:32 | 338,107,899 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # boj 4134 다음 소수 s4
# noj.am/4134
for _ in range(int(input())):
n = int(input())
if n <= 1:
print(2)
continue
maxRange = 80000
flag = [False, False] + [True] * (maxRange - 1)
for num in range(2, maxRange + 1):
if flag[num]:
for i in range(num + num, maxRan... | [
"sys19912002@hanmail.net"
] | sys19912002@hanmail.net |
5dc7334bd95e7f16687b5903ecfc180f29cb6d4a | f6d7c30a7ed343e5fe4859ceaae1cc1965d904b7 | /htdocs/submissions/5dc7334bd95e7f16687b5903ecfc180f29cb6d4a.py | f240b858556dd23d3f4d394931854f0d7c911994 | [] | no_license | pycontest/pycontest.github.io | ed365ebafc5be5d610ff9d97001240289de697ad | 606015cad16170014c41e335b1f69dc86250fb24 | refs/heads/master | 2021-01-10T04:47:46.713713 | 2016-02-01T11:03:46 | 2016-02-01T11:03:46 | 50,828,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | n=' .'
m=' _ .'
e='| |.'
a='|_|.'
r=' |.'
l='| .'
d=' _|.'
s='|_ .'
n=m+e+a,n+r+r,m+d+s,m+d+d,n+a+r,m+s+d,m+s+a,m+r+r,m+a+a,m+a+d
def seven_seg(x):
a=['']*3
for d in x:
l=n[int(d)].split('.')
for z in range(3):a[z]+=l[z]
return '\n'.join(a)+'\n'
| [
"info@pycontest.net"
] | info@pycontest.net |
536ff942f90b91a7fb29e3a9076d36b582318420 | f50f1aa1f8f139d546db3230a1cb1f53043fd9e6 | /multimedia/converter/dvdbackup/actions.py | 2d25a92cb98af0288858998d4ff57bf65653cc77 | [] | no_license | pars-linux/corporate2 | 7887961d1552d39bc3b0bef4a60fd3413d9b82bb | 14d1eacfc824fb8d0bff8173e7ac06b36b88d10d | refs/heads/master | 2020-05-26T15:02:12.005654 | 2017-02-27T03:07:14 | 2017-02-27T03:07:14 | 82,476,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2007-2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
WorkDir = "dvdbackup"
def build()... | [
"ozancaglayan@users.noreply.github.com"
] | ozancaglayan@users.noreply.github.com |
05d70434fa49d8b43242b5bc319959b97b833cbb | f1cb02057956e12c352a8df4ad935d56cb2426d5 | /LeetCode/2402. Meeting Rooms III/Solution.py | e04582cc6433fc14b232d16a3615a444f3a02378 | [] | no_license | nhatsmrt/AlgorithmPractice | 191a6d816d98342d723e2ab740e9a7ac7beac4ac | f27ba208b97ed2d92b4c059848cc60f6b90ce75e | refs/heads/master | 2023-06-10T18:28:45.876046 | 2023-05-26T07:46:42 | 2023-05-26T07:47:10 | 147,932,664 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | MEETING_START = 1
MEETING_END = 0
class Solution:
def mostBooked(self, n: int, meetings: List[List[int]]) -> int:
# Time Complexity: O(M log MN)
# Space Complexity: O(N + M)
events = [(start, MEETING_START, end - start) for start, end in meetings]
pending = []
available_ro... | [
"nphamcs@gmail.com"
] | nphamcs@gmail.com |
d3b472805b2615dba2cc942d9347ee58fddd00d3 | c3c5e21f02dc1ce325e4ba0ea49f04503b2124e5 | /Code/bigger_nn/plot_data.py | db6d913bed2c04cdfd9179ac0b7baf3b67594253 | [] | no_license | Rootpie-Studios/RL-in-HaliteIV | 5fdd76cc5523deec2847059cc6237d638c2a9881 | 431f35d47b898e68983772f9b908764741347ad5 | refs/heads/master | 2023-06-05T20:21:07.543805 | 2021-06-21T11:18:57 | 2021-06-21T11:18:57 | 378,900,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | import tensorflow as tf
import src.plot as plot
import bigger_nn.conf as conf
user_choice = input('Plot exploit data? y/n \n')
if user_choice == 'y':
folder = conf.get('EXPLOIT_GAMES_FOLDER')
else:
folder = conf.get('GAMES_FOLDER')
try:
model = tf.keras.models.load_model(conf.get('SHIP_MODEL'))
except:... | [
"kimhaafi@gmail.com"
] | kimhaafi@gmail.com |
c12b59a23c758ac14e36e2ed849148850d9a5571 | bc441bb06b8948288f110af63feda4e798f30225 | /capacity_admin_sdk/model/container/pod_status_pb2.py | 6de9ae973841286f0c359c4fb191d12570e42f8d | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,896 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pod_status.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf ... | [
"service@easyops.cn"
] | service@easyops.cn |
bc054ee3a41b51ba0c02fd50959e5203a9ce1be3 | cf3e0cd574248629ebeacb224fe96d3df19ea9ca | /django_todo_in_team/settings.py | d5bfaa75efdd103703ca23205c24708053e97cc2 | [] | no_license | ashur-k/Team-work-Hub | 34b9d9ec43cca53d11e072fd6a68e831ee6b4795 | 4da991e3166f8650cb24024ede07c485e9ee9dda | refs/heads/master | 2023-03-12T12:19:15.456078 | 2021-03-01T22:01:11 | 2021-03-01T22:01:11 | 340,626,504 | 0 | 0 | null | 2021-02-20T10:42:06 | 2021-02-20T10:29:03 | Shell | UTF-8 | Python | false | false | 3,416 | py | """
Django settings for django_todo_in_team project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
... | [
"ashurkanwal@yahoo.com"
] | ashurkanwal@yahoo.com |
e2edf2037288c178e8a0f0e1fa79e543746def5c | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Pygame/pygame-vkeyboard/pygame_vkeyboard/examples/numeric.py | 06131ee38998682cbdc8eb7bbac5590455f99b08 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:79af64ea269c1a2a6da43c377fc8ff4650b04b20a967d881019b3c32032044c3
size 1411
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
40a01e3075679851cc169322b9dbbbc9dc892738 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/exclamations/_heeling.py | ffab0ee927e6e8b45a4426cdd4c700dded04cec9 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py |
from xai.brain.wordbase.exclamations._heel import _HEEL
#calss header
class _HEELING(_HEEL, ):
def __init__(self,):
_HEEL.__init__(self)
self.name = "HEELING"
self.specie = 'exclamations'
self.basic = "heel"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2d4172e12adf3d83dd245b7a72488ead42370f77 | 4d675034878c4b6510e1b45b856cc0a71af7f886 | /configs/gcnet/cascade_mask_rcnn_x101_32x4d_fpn_syncbn-backbone_dconv_c3-c5_r16_gcb_c3-c5_1x_coco.py | 50689aadf6cab9414aab1a7a9e72ef8231355e4f | [
"Apache-2.0",
"BSD-2-Clause-Views",
"MIT",
"BSD-2-Clause"
] | permissive | shinya7y/UniverseNet | 101ebc2ad8f15482ee45ea8d6561aa338a0fa49e | 3652b18c7ce68122dae7a32670624727d50e0914 | refs/heads/master | 2023-07-22T08:25:42.646911 | 2023-07-08T18:09:34 | 2023-07-08T18:09:34 | 263,555,721 | 407 | 58 | Apache-2.0 | 2023-01-27T01:13:31 | 2020-05-13T07:23:43 | Python | UTF-8 | Python | false | false | 390 | py | _base_ = '../dcn/cascade_mask_rcnn_x101_32x4d_fpn_dconv_c3-c5_1x_coco.py'
model = dict(
backbone=dict(
norm_cfg=dict(type='SyncBN', requires_grad=True),
norm_eval=False,
plugins=[
dict(
cfg=dict(type='ContextBlock', ratio=1. / 16),
stages=(False, T... | [
"noreply@github.com"
] | shinya7y.noreply@github.com |
5f5b8c3d8d2cd2aa32541dee22abcced270af05c | 18b9251055f88b6fc28108d2c209d2b71b6b6f5d | /rebnypy/lookups.py | 7c5a5411b6df113baed6e7a21d440d6121db1068 | [
"MIT"
] | permissive | justinsteffy/rebnypy | 03335509513e4ad3f7cb999723db284b5936cd98 | e1ca47401d1ffc64d7969a73831de8a63a83751b | refs/heads/master | 2020-04-04T05:22:08.026875 | 2016-08-31T03:17:13 | 2016-08-31T03:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,867 | py | LOOKUPS = {
"AirConditioning": {
"C":"Central",
"F":"Free Standing",
"M":"Multi-Zone",
"N":"None",
"T":"Through the Wall",
"U":"Unknown Type",
"W":"Window Units",
},
"Borough": {
"BK":"Brooklyn",
"BX":"Bronx",
"NY":"Manhattan",
"QN":"Queens",
"SI":"Staten Island",
},
"B... | [
"me@kevinmccarthy.org"
] | me@kevinmccarthy.org |
22ca343e3f7395a467d41262e0894c3079afe3eb | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_9542.py | 377c17d361a2194f088528cf78b28ae16b57ab04 | [] | 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 | 175 | py | # Python: getting lowest integer in list of tuples
>>> nums = [(), (), ('24', '25', '26', '27'), (), (), (), ()]
>>> min(int(j) for i in nums for j in i)
24
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
9f6014f724cb1cccfd86b1c42cd8bece2474f0e8 | d039bfad0e8cc3184b8112e23f9a1ef06b4001d3 | /map_motif_space.py | 4b0987e9c71f09552ac5e8da5b6151b9d3611ae0 | [] | no_license | vhsvhs/prob_motif | 9afa93f8f3c922103be77052641902c105fe4f16 | 7bdc2485ead23c7d092cc89d3975b37c52c31135 | refs/heads/master | 2021-01-01T20:48:55.052391 | 2012-05-29T22:48:04 | 2012-05-29T22:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | #
# Input: a directory of mlib files
#
# Output: a graph where node size = # of motifs bounds by a PWM, edge weight = # of motifs jointly bound by two PWMs
#
from argparser import *
import matplotlib.pyplot as plt
import networkx as nx
import os
ap = ArgParser(sys.argv)
def build_mlib_hash(genes_files):
"""genes... | [
"victorhansonsmith@gmail.com"
] | victorhansonsmith@gmail.com |
cd27c38ac0da5b55f53fe18973011869bb0c24fd | 7a043d45cf0ed0938a10a03121c2b75fdd0cc76a | /081/p081.py | dd354f637d511c2ffdc9af4ac4929a3218868b0c | [] | no_license | tormobr/Project-euler | f8d67292a6426ffba9d589d01c31e2d59249e4ff | b544540b0fee111a6f6cfe332b096fe1ec88935c | refs/heads/master | 2020-05-29T17:27:03.767501 | 2020-02-13T13:06:34 | 2020-02-13T13:06:34 | 189,276,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | from collections import defaultdict
import time
def solve():
return dynamic()
def create_dict():
d = defaultdict(lambda: [])
for i in range(h):
for j in range(w):
d[(i,j)].append((i+1, j))
d[(i,j)].append((i, j+1))
return d
def dynamic():
for i in range(h-1, -1, -1... | [
"tormod.brandshoi@gmail.com"
] | tormod.brandshoi@gmail.com |
68216f6212a047ad3f07031c8093629b15a45287 | c46a3546e58539444e508a97b68cac21e6422baa | /food_order/migrations/0002_auto_20181122_1056.py | 8b876e1ffa6057042762c414128bfa639c38c270 | [] | no_license | ahsanhabib98/Food-service-system | 7b21b9bd3d2f7db381bc01689c6a23d3b16bb933 | 5bbc50e375d1af8c551b1048f2c6504505ac0cf4 | refs/heads/master | 2022-12-11T02:35:05.097986 | 2018-11-28T11:19:23 | 2018-11-28T11:19:23 | 159,385,627 | 0 | 0 | null | 2022-12-08T02:27:40 | 2018-11-27T19:07:25 | Python | UTF-8 | Python | false | false | 1,099 | py | # Generated by Django 2.0.5 on 2018-11-22 04:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('food_area', '0001_initial'),
('food_order', '0001_initial'),
]
operations = [
migrations.CreateMode... | [
"ahredoan@gmail.com"
] | ahredoan@gmail.com |
15a9b3847e9f55cac74d29796b5229c70f430981 | 626da446e92b58808a179c4fc23c3de5b457e472 | /inventory/templatetags/inventory_tags.py | 6afb098ccfdf25cede7943eed30a96877ca09a56 | [
"BSD-3-Clause"
] | permissive | Eraldo/eraldoenergy | 76049cbb06fcc26940b8c004875f8aefbf65a95e | cb07a7722826924df4d416e8930c87f11bec3dd8 | refs/heads/master | 2020-12-23T17:43:21.683449 | 2018-05-05T18:12:43 | 2018-05-05T18:12:43 | 44,062,390 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from classytags.helpers import InclusionTag
from django import template
from django.utils.translation import ugettext_lazy as _
register = template.Library()
@register.tag
class Item(InclusionTag):
name = 'item'
template = 'inventory/widgets/item.html'
def get_context(self, context, **kwargs):
i... | [
"eraldo@eraldo.org"
] | eraldo@eraldo.org |
94730257260c0e6d4e04e0b65fa5129689586ecd | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/OperationTaskDTO.py | 989736892e65777dcec20f04f1a0c7083adda82e | [
"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 | 6,284 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class OperationTaskDTO(object):
def __init__(self):
self._comment = None
self._operation_task_id = None
self._operation_task_name = None
self._operation_task_type = None... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
23dbae54366ea14f75cf9be0f657750d526197d8 | 67055c66ae4bca82ee61dab1757b73cc21559cfd | /miko.py | ebef8e8f43676019b4164ec58017c98197ecbf5a | [] | no_license | kevinelong/network_python | 0482f694c9c050f4226bdfb7cc4fe31df26dd17b | 41158808bac5d127c3f3f3cfaea202cb60d7167c | refs/heads/master | 2023-07-14T12:20:14.550017 | 2021-08-26T00:13:45 | 2021-08-26T00:13:45 | 359,521,517 | 1 | 20 | null | 2021-04-28T18:08:15 | 2021-04-19T16:12:03 | Python | UTF-8 | Python | false | false | 2,195 | py | from netmiko import ConnectHandler
import os
os.environ["NET_TEXTFSM"] = "d:/python37/lib/site-packages/ntc_templates/templates"
linux = {
'device_type': 'linux', #cisco_ios
'host': '3.81.60.164',
'username': 'kevin',
'password': 'S!mpl312',
}
c = ConnectHandler(**linux) # use of kwargs optional, could... | [
"kevinelong@gmail.com"
] | kevinelong@gmail.com |
ee39e7c0980af8ab5743db76e6b42c88addd8bd4 | dead81f54b0aa5292f69bb5fef69e9910a137fc4 | /demo/entrypoint.py | d42cf12bc00a567fb61b3167a8116c7fb936cb17 | [
"MIT"
] | permissive | Nekmo/djangocms-bs3-theme | 0b7274b73b5072cbb8c737f13a94143363ae864d | 1155588414164d6e5d027131e9181856f8a80d5d | refs/heads/master | 2023-01-11T19:58:29.922023 | 2020-03-08T17:10:37 | 2020-03-08T17:10:37 | 56,414,025 | 0 | 0 | MIT | 2022-12-26T20:05:06 | 2016-04-17T01:47:51 | CSS | UTF-8 | Python | false | false | 1,387 | py | #!/usr/bin/env python
import sys
import os
import subprocess
COMMIT_FILE = '.last_build_commit'
os.environ.setdefault('BUILD_DJANGO', '1')
os.environ.setdefault('FORCE_BUILD', '1')
def execute_command(*args):
subprocess.check_call(args)
def get_current_commit():
return subprocess.check_output(['git', 'r... | [
"contacto@nekmo.com"
] | contacto@nekmo.com |
c3acf2f9644f455d0582bdf419bac21f96bab503 | eebacbc58a1c99fb6e32f8cd56cac6e18947d3e7 | /1.python_foundation/2.String_and_encode.py | 266ce0314234e4a8b2c1d08d9bd197a30e5bfb48 | [] | no_license | fzingithub/LearnPythonFromLiao | ad7f959d7e667a464f2b9a6b1cedfd0f08baaf8e | fcb0f2e7f905aca253b3986c4a1ceab6b82b7cae | refs/heads/master | 2020-03-29T19:37:32.831341 | 2018-09-27T10:39:11 | 2018-09-27T10:39:11 | 150,273,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 13 15:25:06 2018
@author: FZ
"""
#string and unicode
#ASCII Unicode 可变长 UTF-8
print ('包含中的string')
print (ord('中'))
print (chr(20013))
#转码
print ('ABC'.encode('ascii'))
print ('中文'.encode('UTF-8'))
#字节流编码
print (b'\xe4\xb8\xad\xe6\x96\x87'.decode('UTF-8'))
print (len(... | [
"1194585271@qq.com"
] | 1194585271@qq.com |
2b5c14efee99ffcc5240e049f48d3ac73d1e0b14 | 762b4373122e5cc791eb81759590008bdfd1f034 | /core/models/others/capsnet_em.py | d64ae0859347d99465b89adabc666fd3340a2ac6 | [] | no_license | StephenTaylor1998/high-resolution-capsule | 50929527e84d57704e1295195c6a1b555367e565 | f999b01893bde98eb053d2778e8a1bad526d8293 | refs/heads/master | 2023-05-11T18:25:50.760820 | 2021-05-24T09:47:27 | 2021-05-24T09:47:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | import torch
import torch.nn as nn
from core import models
from core.layers.others.base import weights_init, resnet20_backbone
from core.layers.others.layers_em import EmRouting2d
from core.models import resnet18_dwt_tiny_half, resnet18_tiny_half, resnet10_tiny_half
class Model(nn.Module):
def __init__(self, num... | [
"2684109034@qq.com"
] | 2684109034@qq.com |
5b20d25002d847a60df58c8f76a76214777c80ff | 7530867a3f3d80600b1f728b65d778f7b4e3deb0 | /layers/linear.py | 7e903791440ba4262e4e1d8e443136de7d048a95 | [
"MIT"
] | permissive | rezer0dai/zer0nets | 1fba5895fcb0397ec481b9cdbfa686f7b4cd83e8 | 982fa69571478dc61c6110f3287fad94af6d4f2c | refs/heads/master | 2020-03-24T09:36:23.499160 | 2018-07-28T00:02:08 | 2018-07-28T00:02:08 | 142,632,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | import numpy as np
from feat_space import *
class Linear(FeatureSpace):
def name(self):
return "linear"
def signal(self, x):
return x
def prime(self, _):
return 1.
| [
"aaa@bbb.ccc"
] | aaa@bbb.ccc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.