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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d1e1ea3ca62fa8c7eee1ea56bcf21143db9db802 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03962/s618919847.py | 7c3073e9045ef040a154ec5d8acb94554d03edf5 | [] | 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 | 514 | py | import sys
import math
from functools import reduce
import bisect
def getN():
return int(input())
def getNM():
return map(int, input().split())
def getList():
return list(map(int, input().split()))
def input():
return sys.stdin.readline().rstrip()
# input = sys.stdin.buffer.readline
def index... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
92275752bbea081287f13884cac8c5b556fa1fd2 | 5c58587ebfbf56192b3dc6ed6f43bc002c8e2cff | /payments/migrations/0026_auto_20180906_1023.py | bb3127132c77be7ffde946ce16ac96b8870c7008 | [] | no_license | hossamelneily/nexchange | fb9a812cfc72ac00b90cf64d6669a8129c2d2d4b | 6d69274cd3808989abe2f5276feb772d1f0fa8b4 | refs/heads/release | 2022-12-13T09:20:47.297943 | 2019-02-12T08:20:34 | 2019-02-12T08:20:34 | 210,064,740 | 1 | 2 | null | 2022-12-09T00:54:01 | 2019-09-21T23:19:34 | Python | UTF-8 | Python | false | false | 4,388 | py | # Generated by Django 2.0.7 on 2018-09-06 10:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0066_remove_transactionprice_type'),
('payments', '0025_auto_20180822_1537'),
]
operations = [
... | [
"noreply@github.com"
] | hossamelneily.noreply@github.com |
549275e873f106430ed837c7a06752d2258c7bdc | 66a672f802a1d59efaffb9b11dc2f508ccd024e6 | /parse_LN_to_JSON_old.py | 76896c08c8d5f0e0acfb96e9d2a426415a0207d4 | [
"Apache-2.0"
] | permissive | dallascard/LN_tools | 3b7af1a6b064f5b7dc540a04d4fae1a0b2e8f805 | 66be00f1fd11517f7bbf2949cc70f9552f3af4f4 | refs/heads/master | 2021-01-12T16:02:17.130400 | 2019-10-26T00:05:00 | 2019-10-26T00:05:00 | 71,923,543 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,161 | py | """
parse_LN.py
Parse a single file or a directory of raw files from Lexis-Nexis,
which come as text files containing a block of news articles concatenated into one file.
Objective is to split articles into individual files and extract relevant
information
In general, the articles have:
a source (newspaper name)
a w... | [
"dcard@andrew.cmu.edu"
] | dcard@andrew.cmu.edu |
7b10bae824de4ead5ffbb387b689114066ec431d | 5d304c6ec0f01edee73e3b612f84307060c0da54 | /letter_combinations_of_a_phone_number.py | 089f3c0c2377b7e620e80a61fbd5b12517d716e8 | [] | no_license | xartisan/leetcode-solutions-in-python | cfa06b9e02f7ec0446cf6b71df4ea46caa359adc | 7e3929a4b5bd0344f93373979c9d1acc4ae192a7 | refs/heads/master | 2020-03-14T17:10:07.957089 | 2018-07-29T10:11:01 | 2018-07-29T10:11:01 | 131,713,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | class Solution:
def letterCombinations(self, digits):
"""
:type digits: str
:rtype: List[str]
"""
keys = ["", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"]
rv = []
for d in digits:
d = int(d)
tmp = []
for c i... | [
"codeartisan@outlook.com"
] | codeartisan@outlook.com |
d3f0f22a9f875992c367e7fce63ee8366b08f220 | 5254c3a7e94666264120f26c87734ad053c54541 | /Revision de Pares/Semana N°5/Caso 2/05-0-gin-fileparse.py-vir-2020-09-08_19.44.49.py | c1df151428fe518671cc730320bf9ea5a29de07f | [] | no_license | ccollado7/UNSAM---Python | 425eb29a2df8777e9f892b08cc250bce9b2b0b8c | f2d0e7b3f64efa8d03f9aa4707c90e992683672d | refs/heads/master | 2023-03-21T17:42:27.210599 | 2021-03-09T13:06:45 | 2021-03-09T13:06:45 | 286,613,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | #fileparse.py
import csv
def parse_csv(nombre_archivo, select = None, types = None, has_headers=True):
'''
Parsea un archivo CSV en una lista de registros.
Se puede seleccionar sólo un subconjunto de las columnas, determinando el parámetro select, que debe ser una lista de nombres de las columnas a conside... | [
"46108725+ccollado7@users.noreply.github.com"
] | 46108725+ccollado7@users.noreply.github.com |
7cd784758941fdaddfc4f4813a364aa657bacadf | 7f108151d95b49bdcaec90e7b1978859f603d962 | /source/map/map_image.py | c1a0ef2173b42c8f51487752622362033c7b2077 | [] | no_license | thydungeonsean/Shinar | 205b20bf47ace29dde14ef2822449ee31ceeeca0 | 5bbb42aafe4ea1f54a69649a242241c3ca96926c | refs/heads/master | 2021-04-29T10:08:17.300934 | 2017-04-04T12:06:48 | 2017-04-04T12:06:48 | 77,847,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,839 | py | from ..constants import *
import pygame
import os
from ..images.image import Image
class MapImageGenerator(object):
instance = None
@classmethod
def get_instance(cls):
if cls.instance is not None:
return cls.instance
else:
cls.instance = cls()
... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
77646e2ec0616be8c2082741e2ca6efa9902dd3a | ef457162d79be971f52ee96b1891764a2d230e8b | /demo.py | 0b61466993849c1bffa5dd4056ad7be10ebc7073 | [] | no_license | LuoJiaji/modularCNN | f2239f6b4ed378fede4401f6e90d9b1d5acc8c70 | b8591c3924abeccaebfad56289a185f904da8608 | refs/heads/master | 2020-06-18T12:57:59.192061 | 2019-07-11T13:20:08 | 2019-07-11T13:20:08 | 196,309,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,242 | py | import random
import numpy as np
import matplotlib.pyplot as plt
from keras.datasets import mnist
from keras.preprocessing import image
from keras.models import Model, load_model
from keras.layers import Input, Flatten, Dense, Dropout, Lambda
from keras.layers.convolutional import Conv2D
from keras.layers.pooling impor... | [
"lt920@126.com"
] | lt920@126.com |
613558e1f0a6f4199d62e2feae12a2ba06b09eba | 66e45a2760db8a1fc580689586806c2e3cce0517 | /pymontecarlo/options/model/base.py | 8951f563fdc581a862298aeec9784c0e6a2631d2 | [] | no_license | arooney/pymontecarlo | 4b5b65c88737de6fac867135bc05a175c8114e48 | d2abbb3e9d3bb903ffec6dd56472470e15928b46 | refs/heads/master | 2020-12-02T18:01:42.525323 | 2017-05-19T16:44:30 | 2017-05-19T16:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | """
Base models.
"""
# Standard library modules.
import abc
import enum
# Third party modules.
# Local modules.
from pymontecarlo.options.base import Option
# Globals and constants variables.
class ModelMeta(enum.EnumMeta, abc.ABCMeta):
pass
class Model(Option, enum.Enum, metaclass=ModelMeta):
def __init... | [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
bbb0e5789cc95e133b10dc78292d1330aa319f50 | 09d349155446f2f32519cfc7deb7f79b1138a158 | /kraft/actions.py | d7a5fba1e5bcf34353359243e9c51f253c87c7e3 | [] | no_license | marcin-/pardususer.de | 632d7fb4c5a9252dbcf82711a5da126523d3b8e8 | 1d4bb1d1f9da113cf2b8cbcc6b544ec9b9616862 | refs/heads/master | 2016-09-05T23:22:38.726769 | 2012-10-08T20:40:39 | 2012-10-08T20:40:39 | 6,114,809 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \... | [
"marcin.bojara@gmail.com"
] | marcin.bojara@gmail.com |
5005cb8e54066070f254014fede0db6ecb90ed09 | b6df7cda5c23cda304fcc0af1450ac3c27a224c1 | /nlp/preprocessing.py | 441402923997d2e7d7041d50ca10938068282e69 | [] | no_license | vieira-rafael/py-search | 88ee167fa1949414cc4f3c98d33f8ecec1ce756d | b8c6dccc58d72af35e4d4631f21178296f610b8a | refs/heads/master | 2021-01-21T04:59:36.220510 | 2016-06-20T01:45:34 | 2016-06-20T01:45:34 | 54,433,313 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 287 | py |
class PreProcessing:
def __init__(self):
stopwords = ["and","del","from","not","while","as","elif","global","or","with","assert","else","if","pass","yield","break","except","import","print","class","exec","in","raise","continue","finally","is","return","def","for","lambda","try"];
| [
"thaisnviana@gmail.com"
] | thaisnviana@gmail.com |
d425739853edd3970661241960467b810be5829e | ab5731ae6e190a9b44b1cddbd11af89277302de9 | /read_json/data_json.py | 686c168a2ed574d935bcf65b3bbd202919f755d4 | [] | no_license | MachineLP/py_workSpace | e532781aab51c54a87602c387acd3199f9a75140 | 7937f3706e8d2d8a0e25ba0648bee6d1fcb27234 | refs/heads/master | 2021-08-29T02:56:02.415509 | 2021-08-23T10:38:59 | 2021-08-23T10:38:59 | 117,516,956 | 22 | 18 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # -*- coding: utf-8 -*-
"""
Created on 2017 10.17
@author: liupeng
"""
import sys
import numpy as np
import json as js
class load_image_from_json(object):
def __init__(self, json_file):
self.json_file = json_file
def __del__(self):
pass
def js_load(self):
... | [
"noreply@github.com"
] | MachineLP.noreply@github.com |
b35422cbf3d8501bfd9d006f2035134b3d022010 | 327a8fe2743bde7f49b19914e4d62091cb7c79d6 | /upload/wsgi.py | d97d7643e5921ed05ee7ec9f48320185ec321262 | [
"MIT"
] | permissive | danrneal/raft-drf-exercise | 3de78d115e02a3739911feb30e1b96f482b873e0 | f62d2f05cd085f7a8d9b89f4ecee2c76feb4b47e | refs/heads/main | 2023-08-03T17:04:14.583022 | 2021-09-22T19:53:08 | 2021-09-22T19:53:08 | 312,690,985 | 0 | 0 | MIT | 2021-09-22T19:53:09 | 2020-11-13T21:47:48 | Python | UTF-8 | Python | false | false | 389 | py | """
WSGI config for upload 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"dan.r.neal@gmail.com"
] | dan.r.neal@gmail.com |
d87050e9f0620d49c9b7e96014c4fa531605ba4a | 64ab5b65afdf8d950c4b56ad2259133b95fc2fec | /zeus/migrations/e373a7bffa18_unique_build_failures.py | c118ddf8f86aee0ea630a9b38be70d3beae61969 | [
"Apache-2.0"
] | permissive | getsentry/zeus | 3e88895443b23278fdb4c25121422ee214630512 | 6d4a490c19ebe406b551641a022ca08f26c21fcb | refs/heads/master | 2023-09-01T14:20:11.396306 | 2021-04-30T17:08:33 | 2021-04-30T17:08:33 | 96,131,433 | 222 | 27 | Apache-2.0 | 2022-06-01T03:17:16 | 2017-07-03T16:39:35 | Python | UTF-8 | Python | false | false | 897 | py | """unique_build_failures
Revision ID: e373a7bffa18
Revises: 54bbb66a65a6
Create Date: 2020-03-13 09:25:38.492704
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "e373a7bffa18"
down_revision = "54bbb66a65a6"
branch_labels = ()
depends_on = None
def upgrade():
... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
a1ebf96d93a3e1ae78d6189b078630bb4fcf8d52 | 7f90f49237b30e404161b4670233d023efb7b43b | /第二章 python核心/HX02_linux系统编程/01进程/test/jc10_子进程多种方式小结.py | a42c62f02979b3b07ae8548d92ebb3d3b86fd1b6 | [] | no_license | FangyangJz/Black_Horse_Python_Code | c5e93415109699cc42ffeae683f422da80176350 | 34f6c929484de7e223a4bcd020bc241bb7201a3d | refs/heads/master | 2020-03-23T01:52:42.069393 | 2018-07-14T12:05:12 | 2018-07-14T12:05:12 | 140,942,688 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# author: Fangyang time:2018/3/31
# (1) fork, 只用于linux (不推荐)
ret = os.fork()
if ret == 0:
# 子进程
else:
# 父进程
# (2) Process(target=xxx), 还有一个 class Xxx(Process):
p1 = Process(target=func)
p1.start()
# 主进程也能干点活
# (3) pool (推荐)
pool = Pool(3)
pool.apply_async(xxxx)... | [
"fangyang.jing@hotmail.com"
] | fangyang.jing@hotmail.com |
ac4b87c2ef8d46c4149984f849a04f5e20b3fc0e | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/catapult/telemetry/telemetry/timeline/sample.py | 806f60fafa2635a581485698ceee0eed38121471 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 713 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import telemetry.timeline.event as timeline_event
class Sample(timeline_event.TimelineEvent):
"""A Sample represents a sample taken at an instant in time... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
a0d9c35a415b9dd7d28d35a0995ae5dc81209c6a | 4dd1d8fa59e20061e2c12e540fc52b1b305e575b | /source/sims/s89/plt-exact-sol.py | 0d82396776954a630e3f77a1be11e7c2991767ef | [
"MIT"
] | permissive | ammarhakim/ammar-simjournal | f63521906a97d55ab290a5960d94758139944c89 | 5019f4723e20db80a20db6f2bd454c2fd3241412 | refs/heads/master | 2023-06-08T08:18:11.722779 | 2023-06-02T15:06:43 | 2023-06-02T15:06:43 | 204,050,516 | 3 | 3 | null | 2022-02-01T16:53:13 | 2019-08-23T18:28:44 | Lua | UTF-8 | Python | false | false | 765 | py | import pylab
import tables
import math
import numpy
def exactSol(a, b, X):
c0 = -(1/2.0 + a/12.0 + b/30.0)
c1 = 0.0
return X**2/2 + a*X**4/12 + b*X**6/30 + c0*X + c1
fh = tables.openFile("s89-poisson-o3-1d_phi.h5")
q = fh.root.StructGridField
nx, nc = q.shape
Xf = pylab.linspace(0, 1, nx)
qe = q[:,0]
dx ... | [
"11265732+ammarhakim@users.noreply.github.com"
] | 11265732+ammarhakim@users.noreply.github.com |
5d892f45bb5ed49a45551cf2fc71ed94bdb0fec8 | 91365d8ef539a9952f048e1fef03b6f76a0ccf60 | /test/inductor/test_torchinductor.py | 53d0bc4f376ee0abfd531abf66ebe0ea8c747a09 | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | ppwwyyxx/pytorch | 6e68cd816e8197e298c50d7f0e82cc97aff4dbdf | 2883cb464810611c5de37b2ca06771582ddf5f83 | refs/heads/master | 2023-08-10T00:39:48.165007 | 2023-06-07T01:51:59 | 2023-06-07T01:51:59 | 160,557,191 | 3 | 3 | NOASSERTION | 2018-12-05T17:53:38 | 2018-12-05T17:53:37 | null | UTF-8 | Python | false | false | 208,514 | py | # Owner(s): ["module: inductor"]
import contextlib
import copy
import dataclasses
import functools
import importlib
import itertools
import math
import os
import random
import subprocess
import sys
import time
import typing
import unittest
import weakref
from typing import Tuple
from unittest.mock import patch
import ... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
11674a3f0d3e56f5156c92dbc2833e200511d2f2 | a38180435ac5786185c0aa48891c0aed0ab9d72b | /S4/S4 Library/simulation/situations/complex/single_job_situation.py | 567ee8821eebf3d57e66f878dfe22edeb8aac7d7 | [
"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 | 1,366 | py | from role.role_state import RoleState
from sims4.tuning.tunable import TunableTuple
from situations.situation import Situation
from situations.situation_complex import SituationComplexCommon, SituationState, SituationStateData
from situations.situation_job import SituationJob
class SingleJobSituation(SituationComplexC... | [
"40919586+NeonOcean@users.noreply.github.com"
] | 40919586+NeonOcean@users.noreply.github.com |
c88bbd34f0f67cb174f84f0b4cff4aa4f6cd855c | 3969f8402eaa015eb850e041e3dede4978ab9a4c | /pkg/eventlet-0.12.1/tests/patcher_psycopg_test.py | 80988e51fdde3eb2a4aa7f68b40ee7bb7f24f738 | [
"MIT"
] | permissive | seewindcn/pycocos2d | e333bf8ae29d8244e6540ed3d39d76d4002e2908 | b88c8c5df127f9bf82f62c8b4365f4babcdee105 | refs/heads/master | 2023-03-07T10:07:47.167364 | 2013-06-03T10:45:19 | 2013-06-03T10:45:19 | 9,958,133 | 18 | 7 | null | 2013-05-14T03:57:47 | 2013-05-09T11:43:46 | C | UTF-8 | Python | false | false | 1,811 | py | import os
from tests import patcher_test, skip_unless
from tests import get_database_auth
from tests.db_pool_test import postgres_requirement
psycopg_test_file = """
import os
import sys
import eventlet
eventlet.monkey_patch()
from eventlet import patcher
if not patcher.is_monkey_patched('psycopg'):
print "Psycop... | [
"none@none"
] | none@none |
35553d9c5dd5cafe84cfa94fd0c31fdeb3e4b8b7 | 4fc1037af17efa358be6cd886fcfd67c5272e93e | /httpx/_main.py | 7bd6b90846ee1d61fc636a7c077b09bbec5b947f | [
"BSD-3-Clause"
] | permissive | hugovk/httpx | d7e9f6bd463c22f454f31f4065babb53427bd73f | 43a1c1c8269cf56a016891aead091acbc3408e81 | refs/heads/master | 2023-01-09T08:55:42.929163 | 2022-03-08T10:53:15 | 2022-03-08T10:53:15 | 203,822,426 | 0 | 0 | BSD-3-Clause | 2023-09-11T10:32:59 | 2019-08-22T15:26:18 | Python | UTF-8 | Python | false | false | 15,506 | py | import functools
import json
import sys
import typing
import click
import httpcore
import pygments.lexers
import pygments.util
import rich.console
import rich.markup
import rich.progress
import rich.syntax
import rich.table
from ._client import Client
from ._exceptions import RequestError
from ._models import Respons... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
d58ae3c7d5f559290e4ad6aba0e009878635ebe6 | 625daac7e73b98935f9fe93e647eb809b48b712e | /Arcade/Intro/adjacentElementsProduct.py | 07c848e4a7c18445ca0d1d6cf05d6044c620be21 | [] | no_license | aleksaa01/codefights-codesignal | 19b2d70779cc60f62511b6f88ae5d049451eac82 | a57a5589ab2c9d9580ef44900ea986c826b23051 | refs/heads/master | 2022-03-15T04:46:40.356440 | 2019-12-08T15:41:37 | 2019-12-08T15:41:37 | 112,034,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | def adjacentElementsProduct(arr):
max_pair = arr[0]*arr[1]
for i in range(1, len(arr)-1):
if arr[i]*arr[i+1] > max_pair:
max_pair = arr[i]*arr[i+1]
return max_pair
"""
Given an array of integers, find the pair of adjacent elements that has the
largest product and return that product.
... | [
"some12curious@gmail.com"
] | some12curious@gmail.com |
c6492508982755a4e1e8b20b63f7fa75931cdd05 | fbd4ecf7046171c4e96267c5982c964db54578f5 | /business/p201904/110111_2300/server.py | 0872fb79fab8ceec11b2a306e6bc2a815aee5719 | [] | 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 | 3,200 | py | import os.path
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
from tornado.options import define, options
import sys
from gensim.models.word2vec import Word2Vec
import numpy as np
import jieba
from sklearn.externals import joblib
ports = sys.argv[1]
define("port", default=por... | [
"ypducdtu@163.com"
] | ypducdtu@163.com |
f43b801df2a2396b5627c17b19e71a5d8c8eeef8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_258/ch30_2019_03_10_21_05_56_563616.py | c59f95da9501a2311605f0176a60d8e35f2f4a9f | [] | 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 | 255 | py | import math
v=int(input('Qual a velocidade do lançamento? '))
a=int(input('Qual o ângulo do lançamento? '))
d=(v**2)*math.sin(2*math.degrees(a))/9.8
if d<96:
print('Muito perto')
elif d>104:
print('Muito longe')
else:
print('Acertou!')
| [
"you@example.com"
] | you@example.com |
82de4cfcd9dd16a9de9e20740c96e2672531521a | 4cbc8b81d197bc392d1b57856254300331b9738f | /python/apt.py | e87a96e500abda1744a02b482a2c973b8f718a19 | [
"MIT"
] | permissive | vcatafesta/chili | 87b9606f17cda645ba44cbf2bb4cc4637e18d211 | 5c734ac88454db76eb2f4e92c13364a5bbc7a93a | refs/heads/main | 2023-09-01T01:39:09.457448 | 2023-08-29T21:23:28 | 2023-08-29T21:23:28 | 171,972,556 | 2 | 2 | null | 2019-02-22T01:38:49 | 2019-02-22T01:26:46 | null | UTF-8 | Python | false | false | 15,595 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# License: MIT #
#url = 'http://mazonos.com/packages/' # Official Repository
url = 'http://localhost/packages/' # Official Repository
#url = 'https://github.com/vcatafesta/ChiliOS/t... | [
"vcatafesta@gmail.com"
] | vcatafesta@gmail.com |
1f66c2f28360a924a6ad07d2b8c8af414203518d | 50f8d8975b1f17c4c6bcb9be29d4f0ed49cb42a5 | /Week_04/lemonade-change.py | 5e567df5df1217ba3921dd4a56cf9268dd95ae3f | [] | no_license | Jiangjao/-algorithm015 | 098491b7a9b80626c1d9e15a9125e4e460ee8668 | a6969617f4cde1d948cb064c1078d4d510140758 | refs/heads/master | 2023-01-10T17:42:49.495871 | 2020-11-16T07:35:04 | 2020-11-16T07:35:04 | 289,441,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | class Solution(object):
def lemonadeChange(self, bills):
"""
:type bills: List[int]
:rtype: bool
"""
five = ten = 0
for bill in bills:
if bill == 5:
five += 1
elif bill == 10:
if not five: return False
... | [
"918718278@qq.com"
] | 918718278@qq.com |
5f249cf5e48d2382470baa0a978bc3a0abafafc6 | d2ca1ab6ed63983d1bd6497f26a63f0445451844 | /2015/05/fc_2015_05_31.py | dc41dc9178467c3c8859ffc19ce4fdb301b45b7d | [
"MIT"
] | permissive | mfwarren/FreeCoding | 96636367f4f4a53351535372c5691d7805199f23 | 58ac87f35ad2004a3514782556762ee0ed72c39a | refs/heads/master | 2021-01-19T14:30:09.057354 | 2015-07-05T05:59:53 | 2015-07-05T05:59:53 | 24,469,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | #!/usr/bin/env python3
# imports go here
#
# Free Coding session for 2015-05-31
# Written by Matt Warren
#
def factors(x):
values = []
cursor = x
i = 2
while i <= cursor:
v = cursor / i
if int(v) == v:
cursor = v
values.append(i)
else:
i += 1... | [
"matt.warren@gmail.com"
] | matt.warren@gmail.com |
5229abb6be00316ff90cd09e352230cb2bc258fe | a2d5681a37be0d3b0753a0e979cb4fa7b0398f32 | /indexedcorpus.py | 84aa2ea572d830a6ae74aed8e35b0c416de90ad2 | [] | no_license | stephenroller/class-nlp-project | f7c09281336985ac55d25e886e7aa180e2225580 | 0362ec1182dc6d3ab54990bbb097339e7bc386a0 | refs/heads/master | 2020-05-29T23:26:56.024802 | 2011-05-13T18:30:49 | 2011-05-13T18:30:49 | 1,606,152 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | #!/usr/bin/evn python
import sqlite3
import os
from itertools import groupby
from util import context_windows
class IndexedCorpus(object):
def __init__(self, indexfile, corpus_directory=''):
self.indexfile = indexfile
self.corpus_directory = corpus_directory
self.conn = sqlite3.connect(i... | [
"roller@cs.utexas.edu"
] | roller@cs.utexas.edu |
72de8eb136efd770ba9db06215d9ea846c6dd7c9 | ceb4ac75c40cd53f24d8f7e0a2f763de309bcfdb | /main4.py | 24ac83b28e32c4c98c305c1e1b012cf1ea9f8cf3 | [] | no_license | kevinelong/bo | c706d0771dbbf427a67d240f552eef4b7529b877 | e08e2d0e07e240cab440733173578f627e0f25ec | refs/heads/master | 2022-11-08T22:18:04.053714 | 2020-07-12T17:17:31 | 2020-07-12T17:17:31 | 279,112,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | class Coordinate:
def __init__(self, x, y):
self.x = x
self.y = y
class Size:
def __init__(self, width, height):
self.width = width
self.height = height
class Box:
def __init__(self, origin:Coordinate, box_size:Size):
self.origin = origin
self.size = box_size
class Item:
def __init__(self, name:str, loc... | [
"kevinelong@gmail.com"
] | kevinelong@gmail.com |
54b883b64ef60b20fe3d570fc00563c41892ba76 | 0bc8d6abec44e1187499f93803f82514f2b53fc6 | /Base/BaseReq1.py | fa5421d9d89f69e236d3949b433faf8e14ac7258 | [] | no_license | IamBiJav/auto_http_api | 932db2b4f2e1b67f2c0760806afd086494d92007 | 5a7ff01845e43d441fef8ae955b056085ab2dd10 | refs/heads/master | 2023-03-16T22:20:50.102610 | 2021-03-16T13:41:07 | 2021-03-16T13:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,054 | py | import requests
import json
import ast
from Base.BaseElementEnmu import Element
from Base.BaseParams import BaseFuzzParams
from Base.BaseStatistics import writeInfo
class Config(object):
def __init__(self, sessions):
self.sessions = sessions
def config_req(self, kw):
app = {}
header = ... | [
"284772894@qq.com"
] | 284772894@qq.com |
9db0cb4a0ab5668893f4ed5fcb8d6a4515118cab | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-smn/huaweicloudsdksmn/v2/model/list_topics_item.py | 941aeb67db97af3db8459de64cdaa873c70458bf | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,993 | py | # coding: utf-8
import re
import six
class ListTopicsItem:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in def... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7f7621b29075cba866d4c2b7508de19821719201 | 2c6bc39f2adf3731109519bfaf8a3a24ae913834 | /admin/admin/settings.py | 60c38e44516af552aee83c9bf875de446377cff1 | [] | no_license | aliensmart/django-admin | a1289e1a01d64b416f64db1ed435ba23f4c2b8ca | 0732358e4ace57abbf621df66c75b85219226d07 | refs/heads/master | 2022-09-01T15:28:54.664846 | 2020-05-20T20:34:54 | 2020-05-20T20:34:54 | 265,679,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | """
Django settings for admin project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# B... | [
"kaoua17@gmail.com"
] | kaoua17@gmail.com |
07cab7f377e53810bca7f3ea6fd25e8f93c45bf2 | ae7884af1ec3965b7c0eec22edad6b74f78b7ba6 | /server/src/uds/core/workers/stats_collector.py | 23a2506832f5b1b824b8e41f3fa32e05c785c451 | [] | no_license | glyptodon/openuds | f4eefa319a3ead827dad999d24e5ee3854d1345d | 3908c875d30ec332490fc8c049bb537e10f10d08 | refs/heads/master | 2021-07-12T20:58:49.281242 | 2021-03-05T22:42:55 | 2021-03-05T22:42:55 | 62,921,174 | 0 | 1 | null | 2016-07-08T22:33:44 | 2016-07-08T22:33:44 | null | UTF-8 | Python | false | false | 4,456 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2013-2020 Virtual Cable S.L.U.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright not... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
115c7c7c5a07a0ed5e1214fc406d01cf55ee2eef | f1267f4a0fae414f16b2429a5c3b1cbd42df8794 | /lib/Daemon.py | dded7072b2770aaa31cf9b096453386af2a21d63 | [] | no_license | oraant/learn_zabbix_odbm | 3ff3b0318e802ebff9603c8daefdf67cda772b94 | 35a010b5dc0a8bc2989b4d3618f795b08a637063 | refs/heads/master | 2020-12-24T05:46:10.358982 | 2016-03-21T10:25:29 | 2016-03-21T10:25:29 | 73,452,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | # coding:utf-8
import sys,os
class Daemon:
def __init__(self,stdin='/dev/null',stdout='/dev/null', stderr='dev/null'):
'''初始化,指定标准输入输出文件'''
self.stdin = stdin
self.stdout = stdout
self.stderr = stderr
def daemonize(self):
'''Fork当前进程为守护进程,重定向标准文件描述符'''
#Per... | [
"oraant777@gmail.com"
] | oraant777@gmail.com |
1258f388ef158ca0387123f39fb49abe83baedb8 | bc01e1d158e7d8f28451a7e108afb8ec4cb7d5d4 | /sage/src/sage/interfaces/giac.py | a144910f149d64f01f0c0f4ac473b19e74454a0b | [] | no_license | bopopescu/geosci | 28792bda1ec1f06e23ba8dcb313769b98f793dad | 0d9eacbf74e2acffefde93e39f8bcbec745cdaba | refs/heads/master | 2021-09-22T17:47:20.194233 | 2018-09-12T22:19:36 | 2018-09-12T22:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,943 | py | r"""
Interface to Giac
(adapted by F. Han from William Stein and Gregg Musiker maple's interface)
You must have the optional Giac interpreter installed
and available as the command ``giac`` in your PATH in
order to use this interface. You need a giac version
supporting "giac --sage" ( roughly after 0.9.1 ). In this ... | [
"valber@HPC"
] | valber@HPC |
f41facc51474c9c8b75bdf9eb8cbff2452c343ac | f409f0b5be2bccdc76041a308b28964b00565c2b | /untitled/urls.py | 93f59be44255ae6fefe35db65a6c61417a4d3618 | [] | no_license | yingliufengpeng/demo_django_blog | b9df1e9176ffd66fe9cf6b8fcbad34092aaa8c53 | 27b3e88ebc7e84f8b4d2a8844abd35104bec2bdb | refs/heads/master | 2021-01-17T07:50:52.081607 | 2017-06-26T18:48:56 | 2017-06-26T18:48:56 | 95,317,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | """untitled URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c2113be94bd6ef86abbc7380563b0a18cabd088f | f45cc0049cd6c3a2b25de0e9bbc80c25c113a356 | /LeetCode/动态规划法(dp)/背包问题/474. 一和零.py | ee1171e6057672507a105886d84a225938f263c0 | [] | no_license | yiming1012/MyLeetCode | 4a387d024969bfd1cdccd4f581051a6e4104891a | e43ee86c5a8cdb808da09b4b6138e10275abadb5 | refs/heads/master | 2023-06-17T06:43:13.854862 | 2021-07-15T08:54:07 | 2021-07-15T08:54:07 | 261,663,876 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,788 | py | """
474. 一和零
给你一个二进制字符串数组 strs 和两个整数 m 和 n 。
请你找出并返回 strs 的最大子集的大小,该子集中 最多 有 m 个 0 和 n 个 1 。
如果 x 的所有元素也是 y 的元素,集合 x 是集合 y 的 子集 。
示例 1:
输入:strs = ["10", "0001", "111001", "1", "0"], m = 5, n = 3
输出:4
解释:最多有 5 个 0 和 3 个 1 的最大子集是 {"10","0001","1","0"} ,因此答案是 4 。
其他满足题意但较小的子集包括 {"0001","1"} 和 {"10","1","0"} 。{"1110... | [
"1129079384@qq.com"
] | 1129079384@qq.com |
56f16db5640a5744b67e7f88a950990ad72782a6 | 21b0b4c27193898207751c91b8b2ed168a1b1638 | /py/py_0383_divisibility_comparison_between_factorials.py | 6e66399ac758ee89f0245e09912ace51ce300130 | [
"MIT"
] | permissive | lcsm29/project-euler | 67560a4e66968f1671a3d7ecf2dda6c956893dca | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | refs/heads/main | 2023-07-04T11:45:24.374841 | 2021-08-07T08:20:41 | 2021-08-07T08:20:41 | 371,808,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # Solution of;
# Project Euler Problem 383: Divisibility comparison between factorials
# https://projecteuler.net/problem=383
#
# Let f5(n) be the largest integer x for which 5x divides n. For example,
# f5(625000) = 7. Let T5(n) be the number of integers i which satisfy
# f5((2·i-1)!) < 2·f5(i!) and 1 ≤ i ≤ n. It c... | [
"lcsm29@outlook.com"
] | lcsm29@outlook.com |
da31943f12cab72657cccbf301ca3e51137991fa | 6b29d66ba7927129b68bc00db769f0edf1babaea | /SoftLayer/CLI/mq/endpoints_list.py | 179663919c224900057d00eea255084ae140b781 | [
"MIT"
] | permissive | tdurden82/softlayer-python | 65f42923c347a164995dfc267829721032de261d | 0eed20fa4adedd3228d91d929bb8befb1e445e49 | refs/heads/master | 2021-01-17T10:01:48.087450 | 2015-10-19T18:38:53 | 2015-10-19T18:38:53 | 46,301,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | """List SoftLayer Message Queue Endpoints."""
# :license: MIT, see LICENSE for more details.
import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting
import click
@click.command()
@environment.pass_env
def cli(env):
"""List SoftLayer Message Queue Endpoints."""
manager = ... | [
"k3vinmcdonald@gmail.com"
] | k3vinmcdonald@gmail.com |
92916397d8bf8d6741c6ac3a5ea1959e5458d171 | 4d87e41fa51a3f777512982553b9bf4f32325c2f | /Scripts/pip3-script.py | 7e22278ba12539d9a302792add86e495297ccf05 | [] | no_license | Leno1993/RecommendSystem | 75bc8a045abbd83a127133cac80feb3149ce2802 | c97126126e86dd309804aa7b5da8df62b6491472 | refs/heads/master | 2020-05-09T12:59:28.410270 | 2019-03-24T13:53:48 | 2019-03-24T13:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!D:\PycharmWorkSpace\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"gaojiaming24@163.com"
] | gaojiaming24@163.com |
6cd99aa856870945383ad551d176b967727db0ba | 4851d160a423b4a65e81a75d5b4de5218de958ee | /Pig Sursurunga.py | cd4d4594217fdde6c6d1df1dd137ceb730f8f010 | [] | no_license | LarisaOvchinnikova/python_codewars | 519508e5626303dcead5ecb839c6d9b53cb3c764 | 5399f4be17e4972e61be74831703a82ce9badffd | refs/heads/master | 2023-05-05T14:52:02.100435 | 2021-05-25T18:36:51 | 2021-05-25T18:36:51 | 319,399,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | https://www.codewars.com/kata/5536aba6e4609cc6a600003d
import re
def sursurungal(txt):
arr = re.split(r'(\W+)', txt)
res = []
i = 0
while i < len(arr):
if arr[i].isdigit():
n = int(arr[i])
if n in [0,1]:
res.append(f"{arr[i]} {arr[i+2]}")
else:... | [
"larisaplantation@gmail.com"
] | larisaplantation@gmail.com |
8865db146159f578256de4ca7df771ec7049b312 | d2f4eb41c95e35a21c257554efbaf18a557d4f4a | /KneiborsClassfier.py | 9ebdbadd0a59fb28173de4d19d2b21347c5b7885 | [
"Apache-2.0"
] | permissive | madcow2021/Insect_Identification | 1d7fbf5ce4a5d72d4994e5af2078701787eb08b4 | ae9e30c09f47b343664b3cb18e893fedcd84b335 | refs/heads/master | 2022-02-03T22:31:17.108726 | 2019-06-05T01:34:46 | 2019-06-05T01:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # coding=utf-8
import pandas as pd
# 创建特征列表
column_names = ['P_rect', 'P_extend', 'P_spherical', 'P_leaf', 'P_circle', 'Species']
# column_names = ['P_rect', 'P_extend', 'P_spherical', 'P_leaf', 'P_circle','P_complecate', 'Species']
data = pd.read_csv('data/data.csv', names=column_names)
# print data.shape
# 这个功能快要... | [
"veraposeidon@gmail.com"
] | veraposeidon@gmail.com |
cd0dd0ac210bbca6c8922fd1b4b55b90ea0ad896 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /gfsa/model/end_to_end_stack.py | 0dcad41dab30b003212c181acf40bf2de50d6b57 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 16,457 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
cea43589a7bb31e1bf0c658d9ea1813573b2e2bc | ab67bf011764b6c0b6803cd44985a5a2ad3f2593 | /udpsocket.py | 2b222871dc47eb1b8e436bd7d76fd4d52cdb877e | [] | no_license | pr0logas/streamSockets | cba0616ead596bf331eda4f54b6112a212e462fc | 3f759509dfcb556d3b6a25f11c9f512fb7be430b | refs/heads/master | 2022-11-25T06:09:17.503818 | 2020-07-27T13:53:15 | 2020-07-27T13:53:15 | 285,097,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | import socket
import os, sys, time
from time import sleep
MCAST_GRP = '10.10.10.10'
MCAST_PORT = 9004
MULTICAST_TTL = 10
bytes_size_to_process = 1024
time_between_data_seconds = 5
time_between_packets_float = 0.0055
def startSocket():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
s.... | [
"prologas@protonmail.com"
] | prologas@protonmail.com |
4ca7dd8882f263f5749f1eecebddf59f13b12871 | 0969f7c85e5ae0a19982077d6bb702c41b2b1e1f | /nets/mobilenet/mobilenet_v2.py | 02f5fa0510270fecc4ea3bd20c7f4da25bad20b1 | [
"MIT"
] | permissive | 353622088/tianchi | 544e49bb6720c4978188cdbddd88a0ebe9f5669c | e1f378e5fd783eb4cfbfaf8ecdd944b8fcfdd733 | refs/heads/master | 2020-04-19T09:06:35.946147 | 2019-01-30T09:30:05 | 2019-01-30T09:30:05 | 168,099,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,434 | py | # Copyright 2018 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... | [
"chk0125@126.com"
] | chk0125@126.com |
e74010a40ad06fe82916fea9a7e6c222b087a685 | cb83b02ead1cb77c87e117118f7e5cd3ecf46ba1 | /sistema_plantilla/settings/settings.py | 6652e9955e4d55b35976610917e962c7d8b0c985 | [] | no_license | danielhuamani/sistema-plantilla-saas | f834d90157b3d0ab1724fe7d3be5e9224cf753ae | 8802a4b429fdce9ce433539684b52e2177042c35 | refs/heads/master | 2020-12-11T01:48:45.313743 | 2016-01-18T16:10:24 | 2016-01-18T16:10:24 | 48,857,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,996 | py | """
Django settings for settings project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pat... | [
"danielhuamani15@gmail.com"
] | danielhuamani15@gmail.com |
80793db4fcb6d003bcd7f9d86fe4acae5bc1a6c0 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/6ae12eacdae24553a91c0270cb101e66.py | 5d6e3848a1fa367f700bac002a2b381e701f99cc | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 281 | py | #
# Skeleton file for the Python "Bob" exercise.
#
def hey(what):
if what is None or what.strip() == "":
return "Fine. Be that way!"
if what.isupper():
return "Whoa, chill out!"
if what.endswith("?") or what.endswith(" "):
return "Sure."
return "Whatever."
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
89e0353d4de23f2ac613d436afbbec0a40354e19 | e8ef02248600525a114c9ed9a6098e95d8007063 | /qtlab/scripts/sal/ff_powersweep.py | 7966c043a04204757185031af05d8a6ff6e2df04 | [] | no_license | mgely/papyllon | ac264e202298728f6ca69d566c1fe45a9de0dc1c | 490c756da8f08c971864dcd983ea82c944bc8c85 | refs/heads/master | 2021-01-10T06:28:17.250944 | 2016-02-26T13:49:21 | 2016-02-26T13:49:21 | 46,259,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | #prepare environment
import qt
import visa
import numpy as np
from numpy import pi, random, arange, size, array, sin, cos, diff, absolute,zeros, sign,ceil,sqrt,absolute
from time import time, sleep, localtime, strftime
execfile('metagen.py')
#Check and load instrument plugins
instlist = qt.instruments.get_instrum... | [
"m.a.cohen@tudelft.nl"
] | m.a.cohen@tudelft.nl |
eddb1083f72d566a9ba78588b02c0de1582230e7 | 8cb101991346bd6403cfaca88b0445f917e52254 | /tuneuptechnology/tickets.py | d5ccf178b5ba56d3c933e59ce7abdad16b3a0163 | [
"MIT",
"Python-2.0"
] | permissive | TrendingTechnology/tuneuptechnology-python | a06742fbf404fb1afc525ccf1d432c4c374866f1 | 479bbece1722f7e233dbc0f7642205e1afa971c1 | refs/heads/main | 2023-06-08T17:26:41.108769 | 2021-06-22T02:15:45 | 2021-06-22T02:15:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | class Tickets():
def __init__(self, base_url, make_http_request):
self.base_url = base_url
self.make_http_request = make_http_request
def create(self, data):
"""Create a ticket based on the data passed"""
endpoint = f'{self.base_url}/tickets'
response = self.make_http_re... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
3ba4d9a3323a8bb7a9dd944f28bff4943cd98968 | 266947fd84eed629ed0c21f6d91134239512afd9 | /BeginnerContest_B/061.py | 8605568528a2b38ba911c5cdf7aae2aba95aad32 | [] | no_license | SkiMsyk/AtCoder | c86adeec4fa470ec14c1be7400c9fc8b3fb301cd | 8102b99cf0fb6d7fa304edb942d21cf7016cba7d | refs/heads/master | 2022-09-03T01:23:10.748038 | 2022-08-15T01:19:55 | 2022-08-15T01:19:55 | 239,656,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | N, M = map(int, input().split())
res = [0]*N
for _ in range(M):
a, b = map(int, input().split())
res[a-1] += 1
res[b-1] += 1
for _ in range(N):
print(res[_]) | [
"sakaimasayuki@sakaimasayukinoMacBook-puro.local"
] | sakaimasayuki@sakaimasayukinoMacBook-puro.local |
3740b278f395768c4a255c2166677022992d93a9 | 85574bab97569bae7368dc4e2d2aa73c73743a9b | /DSPFromGroundUp/Python/016RunningSumV2/main.py | 9bf1bb6d344340923a786a4e595a379f76fda9cf | [] | no_license | saradhimpardha/UdemyDSPFromGroundUpOnARMProcessors | 3c0fcd7272e892f222871dc412fc214851477aea | 576d4a38992533ed0733278d6b4b6444db58706b | refs/heads/main | 2023-05-04T15:45:30.184864 | 2021-05-28T14:40:46 | 2021-05-28T14:40:46 | 458,248,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | #
# Imports
#
from matplotlib import pyplot as plt
from matplotlib import style
import mysignals as sigs
#
# Global variables
#
#
# Private functions
#
#
def calc_running_sum(sig_src_arr,sig_dest_arr):
for x in range(len(sig_dest_arr)):
sig_dest_arr[x] = 0
for x in range(len(... | [
"franco.polo@ii-vi.com"
] | franco.polo@ii-vi.com |
0751238896833b73c9818850c8150c8aff389c4b | f4b74154a7e50a9cfd325b45046b6c86c1682847 | /src/settings.py | ccb98801ea3144dc52ce825ead5c542150f3330b | [] | no_license | toxicOxygen/personal_website- | 826225a979ef0e62aaddf9730d1fd5d533400310 | 1826ef3de43fc4d162a509f48a1f90392ac136e5 | refs/heads/master | 2021-09-23T09:28:51.103637 | 2020-03-30T02:12:58 | 2020-03-30T02:12:58 | 251,178,977 | 0 | 0 | null | 2021-09-22T18:54:41 | 2020-03-30T02:13:38 | HTML | UTF-8 | Python | false | false | 3,619 | py | """
Django settings for src project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# impo... | [
"kwakukusi30@outlook.com"
] | kwakukusi30@outlook.com |
27cb43ce03426ae33a2a613a5b551d5332371f3c | 4a995ce459f42c372d548eb397e95a7793b8b965 | /cursoshandler/models.py | fe22f8853dc98344edddb248959e587b5692a3c5 | [] | no_license | astandre/chatbot-system | edb1d1835fe61a2140bad53e7f68ce2bc724018a | 99aab3e1e63a05bd475c5af8733b8c771d5e69f5 | refs/heads/master | 2022-12-12T01:37:13.498987 | 2018-10-13T23:03:03 | 2018-10-13T23:03:03 | 145,641,189 | 0 | 0 | null | 2022-12-08T02:47:10 | 2018-08-22T01:49:28 | Python | UTF-8 | Python | false | false | 2,784 | py | from neomodel import *
from neomodel import install_all_labels, remove_all_labels
# remove_all_labels()
# install_all_labels()
# clear_neo4j_database(db)
# TODO set label and help_text
class Curso(StructuredNode):
uid = UniqueIdProperty()
nombre = StringProperty(required=True, unique_index=True)
cod = ... | [
"andreherrera97@hotmail.com"
] | andreherrera97@hotmail.com |
45da61cb3415eb8e07c8366c7b8f0ed58e3c101e | 982539edb302b6bee5dd9285e9de00ad866b4cfd | /Tongji/Mode/PlatUserConf.py | 0128446c9127bba03b5fb549b02ac0e89e624e1b | [] | no_license | chennqqi/OpenSaaSProj | 2149a2066c607636ce2106801be2cb722cc0934d | 0f861a61d1bd1499599207a70a8e180930d96573 | refs/heads/master | 2020-04-04T16:14:08.943396 | 2017-06-01T06:50:32 | 2017-06-01T06:50:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | # -*- coding: utf-8 -*-
from datetime import date
from pony.orm import *
def define_user_conf(db):
class Plat_user_conf(db.Entity):
id = PrimaryKey(int, sql_type="int(20)", auto=True)
tm = Optional(date)
ver = Optional(str)
pub = Optional(str)
nameid = Optional(str)
... | [
"sudazhuang1@163.com"
] | sudazhuang1@163.com |
94b48fd60ae2a1848557d45847013a281ca0bb72 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/VoucherAvailableOutItemInfo.py | d0133f8f8df9195637a3cad5457d1610e907a92c | [
"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 | 1,440 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class VoucherAvailableOutItemInfo(object):
def __init__(self):
self._item_app_id = None
self._out_item_id = None
@property
def item_app_id(self):
return self._item_app_... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
bcf1581afef31e7569bc8ef68a094cb8fad143ea | 70f5f279e051360310f95be895320d8fa6cd8d93 | /extraPackages/matplotlib-3.0.2/examples/userdemo/connectionstyle_demo.py | 1ea2bf5fe8fd2ff9ac9da4674adfb762654d93bd | [
"BSD-3-Clause"
] | permissive | spacetime314/python3_ios | 4b16ab3e81c31213b3db1e1eb00230621b0a7dc8 | e149f1bc2e50046c8810f83dae7739a8dea939ee | refs/heads/master | 2020-05-09T20:39:14.980041 | 2019-04-08T15:07:53 | 2019-04-08T15:07:53 | 181,415,024 | 2 | 0 | BSD-3-Clause | 2019-04-15T05:00:14 | 2019-04-15T05:00:12 | null | UTF-8 | Python | false | false | 1,845 | py | """
====================
Connectionstyle Demo
====================
"""
import matplotlib.pyplot as plt
fig, axs = plt.subplots(3, 5, figsize=(8, 4.8))
x1, y1 = 0.3, 0.3
x2, y2 = 0.7, 0.7
def demo_con_style(ax, connectionstyle, label=None):
x1, y1 = 0.3, 0.2
x2, y2 = 0.8, 0.6
ax.plot([x1, x2], [y1, y2... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
7d2794d66c8af7463d80b6feb07f0a139da4daf6 | 6f54ce52f08806075f0445e7dd206baae96ebdca | /IssueTracker/controllers/default.py | f6f0ad38bfb5a2d5fa0f37f28e66d7e27f9f3aff | [
"BSD-3-Clause"
] | permissive | ykanggit/web2py-appliances | a93d318a214aa5b3e5cd6b47b642f2c12addba46 | 5ca7a04d5403f04aad9e90e99e10dbc05a08a50a | refs/heads/master | 2022-05-06T08:55:11.089350 | 2022-04-14T19:25:02 | 2022-04-14T19:25:02 | 49,680,074 | 0 | 0 | null | 2016-01-14T22:41:45 | 2016-01-14T22:41:45 | null | UTF-8 | Python | false | false | 7,707 | py | # -*- coding: utf-8 -*-
def index():
return dict(message=T('Hello World'))
def projects():
#COLUMNS=('project.name','project.author','project.repo','project.license')
FIELDS=(db.project.id,db.project.name,db.project.created_by,db.project.manager,db.project.phase,db.project.repo)
LINKS=[lambda row: A(... | [
"massimodipierro@Massimos-MacBook-Air.local"
] | massimodipierro@Massimos-MacBook-Air.local |
52327f791bad53af1e5f123f7f1b3f296bffe0bb | dc940e2aa628eff693af36584cfad935990ebe7d | /v3.1.0/tool/SaveBookInfoToMySqlTool.py | c32721874dd569c804662a6f57f96fbcb50f3b77 | [] | no_license | 520wsl/getXs8Novels | 865572ea488e0bf3d4e21664eb576237b6dd18be | ecf6d0bc5dfdbe4b5c3e8a9aac313bf7abce614b | refs/heads/master | 2020-04-18T00:59:56.777416 | 2019-02-15T08:52:11 | 2019-02-15T08:52:11 | 167,101,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = '书籍数据存储工具类'
__author__ = 'Mad Dragon'
__mtime__ = '2019/1/24'
# 我不懂什么叫年少轻狂,只知道胜者为王
┏┓ ┏┓
┏┛┻━━━┛┻┓
┃ ☃ ┃
┃ ┳┛ ┗┳ ┃
┃ ┻ ┃
┗━┓ ┏━┛
┃ ... | [
"395548460@qq.com"
] | 395548460@qq.com |
2e4d4ad192fac1e61c9f8874b8b0b4a41791f5d5 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_4/Areseye/D_a.py | e133bb845631ab5660737f81985ed9f3e3c0f065 | [] | 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 | 585 | py | #encoding:utf8
import os
import pdb
def solve(K,C,S):
ret = [1,]
gap = K**(C-1)
cur = 1
for i in range(0,K-1):
cur += gap
ret.append(cur)
return ret;
if __name__ == '__main__':
with open('d.in','r') as fin:
for ind,line in enumerate(fin):
if ind is 0:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
b4f6555d72c6cacb9fa6eab225aff4ab94ddd2b0 | 77d93431ca903d7f97d0eaa1b46a98fc1b372f33 | /yugires/yugiscrapper.py | 5963d5449b223deede8380f9c5ca07ffd6a40b3c | [
"MIT"
] | permissive | DanielLSM/yugioh-high-res | 160ce52b8e0959add9d82b0595aa3f64ccc24689 | bc0cb2149f967fee46f58bdeed8ea089214f2290 | refs/heads/main | 2023-06-06T02:23:32.827861 | 2021-06-29T16:07:54 | 2021-06-29T16:07:54 | 381,405,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from tools impor
database_endpoint = 'https://db.ygoprodeck.com/api/v7/cardinfo.php'
| [
"daniellsmarta@gmail.com"
] | daniellsmarta@gmail.com |
6b688c2274d062b107eef215f2f6857853970569 | 1333357d463006bb6540fb6f68f140c383d4e676 | /data/data_clean.py | 3bcfe42405065c6c3c2b46f2e42f29c6764ba91d | [] | no_license | markWJJ/classifynetwork | ced1ff5eaa9e1c7e9e6440e08e6744070689a305 | d65f22486434fdfbdce38d063e176eb31c5d7354 | refs/heads/master | 2023-01-09T03:12:01.540254 | 2018-09-17T07:50:02 | 2018-09-17T07:50:02 | 149,088,397 | 0 | 1 | null | 2022-12-21T03:34:27 | 2018-09-17T07:48:54 | Python | UTF-8 | Python | false | false | 8,090 | py | # -*- coding: UTF-8 -*-
import re
from collections import OrderedDict
import jieba
import codecs
from hanziconv import HanziConv
import os
import string
import json
import jieba.posseg as pseg
import numpy as np
FH_NUM = (
(u"0", u"0"), (u"1", u"1"), (u"2", u"2"), (u"3", u"3"), (u"4", u"4"),
(u"5", u"5"), (u"... | [
"363451547@qq.com"
] | 363451547@qq.com |
ac9bc264069f3b02a22624cafb6308e8ec8ae4bf | 79e19819aec49b500825f82a7de149eb6a0ba81d | /leetcode/303.py | f778311ff580a2a44b295e3a1440ef7bab29626f | [] | no_license | seoyeonhwng/algorithm | 635e5dc4a2e9e1c50dc0c75d9a2a334110bb8e26 | 90406ee75de69996e666ea505ff5d9045c2ad941 | refs/heads/master | 2023-05-03T16:51:48.454619 | 2021-05-26T00:54:40 | 2021-05-26T00:54:40 | 297,548,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | class NumArray:
def __init__(self, nums: List[int]):
self.nums = nums
if nums:
self.memo()
def memo(self):
self.dp = [0] * len(self.nums)
self.dp[0] = self.nums[0]
for i in range(1, len(self.nums)):
self.dp[i] = self.dp[i-1] + self.nu... | [
"seoyeon@nowbusking.com"
] | seoyeon@nowbusking.com |
723c8b2001a43c9aa112cd5eba3a02f98544b6f5 | 58ade65dffc7cbe103d93d7c769096a20d9f9815 | /src/smach_based_introspection_framework/online_part/data_collection/StoreVectorToRedisProc.py | d94e5e8102adc6af5a29654d7877be2d0b34a276 | [
"BSD-3-Clause"
] | permissive | birlrobotics/smach_based_introspection_framework | 2cff69ecec030a5b5046dea99f9e15105f52361b | f16742339cddfc86effba4dbf6e5062304704b89 | refs/heads/master | 2021-05-09T12:02:26.946473 | 2019-05-29T02:46:47 | 2019-05-29T02:46:47 | 119,001,821 | 7 | 1 | null | 2018-07-05T04:58:40 | 2018-01-26T03:37:58 | Python | UTF-8 | Python | false | false | 1,512 | py | import multiprocessing
from ConvertTagTopicToInterestedVectorProc import (
data_frame_idx,
smach_state_idx,
data_header_idx,
)
class StoreVectorToRedisProc(multiprocessing.Process):
def __init__(
self,
com_queue,
node_name="StoreVectorToRedisProc_node",
):
multiproc... | [
"sk.law.lsq@gmail.com"
] | sk.law.lsq@gmail.com |
7b5ebbb6b02299b7f47b6077cba156000ceeb9c3 | 8efe9a6c9489d798b5f5b610eb531d86924a1548 | /src/wix/urls.py | c74a0f134076e607c3999dbed8538b6643de2a2f | [] | no_license | MarekBiczysko/naklisze_public | e8e6f7e61cdb83b74ea68862b40c061c0253767b | e53c0e8fefffbcfc3a8859976eb7b81cf6270847 | refs/heads/master | 2022-12-12T02:27:09.824803 | 2019-07-23T10:54:47 | 2019-07-23T10:54:47 | 198,410,666 | 0 | 0 | null | 2022-12-08T01:03:08 | 2019-07-23T10:46:57 | Python | UTF-8 | Python | false | false | 288 | py | from django.views.generic import RedirectView
from django.conf.urls import url
from .views import wix_page
urlpatterns = [
# url(r'^$', RedirectView.as_view(url='https://biczysko.wix.com/foto')),
url(r'^$', wix_page, name='wix'),
url(r'^', RedirectView.as_view(url='/')),
]
| [
"marek.biczysko@stxnext.pl"
] | marek.biczysko@stxnext.pl |
61abe84b1c8861332157ee57244832fe731b1498 | f9bcdd8fe51e94b884752574229bc592a84be6bd | /python/315_Count_of_Smaller_Numbers_After_Self.py | 33e899cb414d1e0faa68834085f58c7d725813e5 | [] | no_license | HankerZheng/LeetCode-Problems | cf46a24444cfc3e6bcff38c10a5bb5945e410b5b | d308e0e41c288f23a846b8505e572943d30b1392 | refs/heads/master | 2021-01-12T17:49:40.072069 | 2017-08-17T04:37:20 | 2017-08-17T04:37:20 | 69,397,987 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | # You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smaller elements to the right of nums[i].
# Example:
# Given nums = [5, 2, 6, 1]
# To the right of 5 there are 2 smaller elements (2 and 1).
# To the right of 2 there is... | [
"zhenghan991@gmail.com"
] | zhenghan991@gmail.com |
688bac0891c7135030e8bf35d07f7a9518baae31 | c5d87c7f25e3fe9b17c1e88993b0ed6831e52acb | /Socket/GPS_Server_Test/GPS_Server_testData.py | 2d6e0b37aa0f879b89e87aa831bf512762c6fe1c | [] | no_license | GIS90/python_base_use | e55d55f9df505dac45ddd332fb65dcd08e8e531f | 7166ca85975bb7c56a5fbb6b723fd8300c4dd5d1 | refs/heads/master | 2020-04-02T08:33:49.461307 | 2018-10-23T03:33:41 | 2018-10-23T03:33:41 | 154,249,857 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,941 | py | # -*- coding: utf-8 -*-
"""
------------------------------------------------
describe:
this tool be used to
------------------------------------------------
"""
import SocketServer
import codecs
import datetime
import os
import threading
from SocketServer import BaseRequestHandler
SOCKET_DATA_MAX =... | [
"mingliang.gao@qunar.com"
] | mingliang.gao@qunar.com |
7e45a200414423d396becba56436abd46f1d731e | 66862c422fda8b0de8c4a6f9d24eced028805283 | /slambook2/3rdparty/opencv-3.3.0/samples/python/floodfill.py | 1b988d3763ef61c3f84e1e5039da4e6540f9914f | [
"MIT",
"BSD-3-Clause"
] | permissive | zhh2005757/slambook2_in_Docker | 57ed4af958b730e6f767cd202717e28144107cdb | f0e71327d196cdad3b3c10d96eacdf95240d528b | refs/heads/main | 2023-09-01T03:26:37.542232 | 2021-10-27T11:45:47 | 2021-10-27T11:45:47 | 416,666,234 | 17 | 6 | MIT | 2021-10-13T09:51:00 | 2021-10-13T09:12:15 | null | UTF-8 | Python | false | false | 2,007 | py | #!/usr/bin/env python
'''
Floodfill sample.
Usage:
floodfill.py [<image>]
Click on the image to set seed point
Keys:
f - toggle floating range
c - toggle 4/8 connectivity
ESC - exit
'''
# Python 2/3 compatibility
from __future__ import print_function
import numpy as np
import cv2
if __name__ ... | [
"594353397@qq.com"
] | 594353397@qq.com |
fe547b0d6f92c919781366e3a1059ab975ea9b14 | 725abfa74e3800622837e60615dc15c6e91442c0 | /venv/Lib/site-packages/django/contrib/messages/storage/session.py | 7dbd24a8da5c105a8955f5695fe53d22b05df70b | [] | no_license | Malak-Abdallah/TODOlist | 4840e2e0a27e6499ae6b37524bb3e58455d08bfb | fd35754e8eac9b262fae17ec16ad9fb510a12f5d | refs/heads/master | 2023-07-16T11:38:48.759232 | 2021-08-31T09:43:11 | 2021-08-31T09:43:11 | 401,600,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | import json
from django.contrib.messages.storage.base import BaseStorage
from django.contrib.messages.storage.cookie import MessageDecoder, MessageEncoder
class SessionStorage(BaseStorage):
"""
Store messages in the session (that is, django.contrib.sessions).
"""
session_key = "_messages"
def _... | [
"malkobeidallah@gmail.com"
] | malkobeidallah@gmail.com |
8770db87586708d0a54dd67e1a2975ec6317d52b | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2772/8317/301956.py | b1c4c2bd1a959d947400f88d06dd30c9659cc1b4 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def solve():
num = int(input())
for _ in range(num):
n = int(input())
print(pow(n, 1/3))
solve() | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0c49b984bf9f2ac8bae5046c1f435df4c90cd46f | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SSD/mmdet/models/builder.py | 05efb838ed26ce7d0c12f1cdf8a678b15d583bdd | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,225 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
de953e1a133d796d7c348777274fe9a4eb25f67e | ddb7916c3962713471044f03bd76414581dbf801 | /Myadmin/templatetags/get_table_rela_name.py | 57099dd00e91e49ac1775475fd5f2fe0ad581a24 | [] | no_license | so1so2so/SuperCrm | 92949819ea2200edd818bfafce8fd2c5ca99076a | ba17faa55b13a611fc579006994af6f0f836764b | refs/heads/master | 2020-03-06T18:24:11.238838 | 2018-05-08T13:42:27 | 2018-05-08T13:42:27 | 127,006,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,845 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
from django import template
from django.utils.safestring import mark_safe
register = template.Library()
@register.simple_tag
def get_rela_name(table_obj):
table_name = table_obj.model._meta.verbose_name_plural or table_obj.verbose_name
if not table_name:
... | [
"1037930435@qq.com"
] | 1037930435@qq.com |
d06ab34fea0bac11e8aa864a35184490730e2a5a | 02b495111594a367405b2bfbf220e38da3a5f7b0 | /devel/lib/python2.7/dist-packages/brics_actuator/msg/_JointValue.py | 0723b3357a381bbe1f9fbd1dbb79f58932d32bef | [
"BSD-2-Clause"
] | permissive | Ashuditya/Rebellious-Cowards | 3f7c6afd314e4bf2ffb72b99ecf58be23f309e97 | 56ec395147f2fc59a26669a74a04fe02227bc7b7 | refs/heads/master | 2023-01-24T10:57:47.533839 | 2020-10-01T15:58:07 | 2020-10-01T15:58:07 | 218,202,193 | 0 | 3 | BSD-2-Clause | 2020-10-01T17:07:44 | 2019-10-29T04:09:46 | Makefile | UTF-8 | Python | false | false | 6,583 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from brics_actuator/JointValue.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import genpy
class JointValue(genpy.Message):
_md5sum = "c8dad5a006889ad7de711a684999f0c6... | [
"srujannwankhede786@gmail.com"
] | srujannwankhede786@gmail.com |
f32e61acab543b074d8350bb2c926e937628cbb7 | 97f285b6f8016a8d1d2d675fffb771df3c9e37b9 | /study/algorithms/sorting/selection_sort.py | b1177b6f5b9e1b1dd7feb0d3974b2999b7447124 | [] | no_license | oskomorokhov/python | ef5408499840465d18852954aee9de460d0e7250 | 8909396c4200bd2fca19d3f216ed5f484fb2192a | refs/heads/master | 2021-05-14T09:27:25.413163 | 2019-12-12T21:00:05 | 2019-12-12T21:00:05 | 116,327,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | # selection sort
def ssort(lst):
""" The algorithm divides the input list into two parts: the sublist of items already sorted, which is built up from left to right at the front (left) of the list,
and the sublist of items remaining to be sorted that occupy the rest of the list. Initially, the sorted sublist ... | [
"oskom85@gmail.com"
] | oskom85@gmail.com |
8ca1e09fb7ee173a14faeb5049dd0aa0737a9ba0 | eff2fc11905f6118dcd70050392f168cd7aea086 | /leetcode/40_combination_sum_ii/solution1.py | df0fa9abba6a73cfa6548fd39c14982c906e75fb | [] | no_license | algobot76/leetcode-python | 28f1e1107fa941a3b40006f074eec6231e674ac1 | ec8bff8978d6915bfdf187c760b97ee70f7515af | refs/heads/master | 2021-07-05T17:06:40.581977 | 2020-09-19T22:02:38 | 2020-09-19T22:02:38 | 199,255,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | class Solution:
def combinationSum2(self, candidates, target):
candidates.sort()
combs = []
self.dfs(candidates, target, 0, [], combs)
return combs
def dfs(self, candidates, target, start, comb, combs):
if target < 0:
return
if target == 0:
... | [
"xkaitian@gmail.com"
] | xkaitian@gmail.com |
0703e5f22212b00ffaf7e02dd00eeaa7b1966ce3 | cc578cec7c485e2c1060fd075ccc08eb18124345 | /cs15211/TopKFrequentWords.py | 7733837228f8d83367a4b89021aa264f1154d5e3 | [
"Apache-2.0"
] | permissive | JulyKikuAkita/PythonPrac | 18e36bfad934a6112f727b4906a5e4b784182354 | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | refs/heads/master | 2021-01-21T16:49:01.482561 | 2019-02-07T06:15:29 | 2019-02-07T06:15:29 | 91,907,704 | 1 | 1 | Apache-2.0 | 2019-02-07T06:15:30 | 2017-05-20T18:12:53 | Python | UTF-8 | Python | false | false | 5,923 | py | __source__ = 'https://leetcode.com/problems/top-k-frequent-words/'
# Time: O()
# Space: O()
#
# Description: Leetcode # 692. Top K Frequent Words
#
# Given a non-empty list of words, return the k most frequent elements.
#
# Your answer should be sorted by frequency from highest to lowest.
# If two words have the same ... | [
"b92701105@gmail.com"
] | b92701105@gmail.com |
01651216a026d86c1a68fac21316efefe8e285b4 | 6b05bddf2e294c8e1b39846aecadfa06b4ff805d | /kubevirt/models/v1_secret_volume_source.py | a4149f175fdbc18ed8d07833b30451edf27ea370 | [
"Apache-2.0"
] | permissive | kubevirt/client-python | 5ca82fe55d48c07f62796d2bed3605a7c189922c | 235fe17f58d41165010be7e4122cb67bdc866fe7 | refs/heads/master | 2023-09-03T12:25:27.272479 | 2023-08-17T00:33:31 | 2023-08-17T00:33:31 | 105,017,761 | 29 | 25 | Apache-2.0 | 2022-10-20T13:52:10 | 2017-09-27T12:51:32 | Python | UTF-8 | Python | false | false | 5,318 | py | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1Secret... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
08777ef56a0df912e73d6c15c9f138bd8b2e87c3 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py | 7c580718d21294e4c46f62a5a71fbf2a0867ba92 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 4,031 | py | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
414558f8f2f2f959546e50c46144100f193f178d | 6d429c1bc185fc8180fc69f1d49fd781e9a90748 | /appuser/codemanager.py | 98381f12400d2cfb23c1cb65a163547d03f84290 | [] | no_license | FirayMa/store | 6bc5d350da4170d0ef87d25748635cd1a32aa717 | 542a955451f78f9f904010383b1c661e2fbef471 | refs/heads/master | 2023-05-28T05:33:13.867339 | 2017-09-07T01:00:30 | 2017-09-07T01:00:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | from django.db import models
import pdb
import random
import string
from django.conf import settings
from common.e_mail import EmailEx
class CodeManager(models.Manager):
"""
验证码的manager
"""
email = EmailEx()
def send_code(self, email):
result={}
if not self.email.EMAIL_R... | [
"281475120@163.com"
] | 281475120@163.com |
90103b4dfe92fcefbca7e03b61049dfd4b387ab2 | cc0c0f99a5cf563ff52a76f2ac17cdad09d22f01 | /venv/Lib/site-packages/itk/itkBinaryMask3DMeshSourcePython.py | 9b1e3354b60a4ae82b8bc30de79fa59d8b65a3ec | [] | no_license | Marxss/carck_detect_system | 9c0d338bde322b4c7304fd0addb524d8697c8a7b | d2480f2108052af8af0aa5265a5239c309885043 | refs/heads/master | 2022-04-15T23:34:20.988335 | 2020-03-29T16:24:00 | 2020-03-29T16:24:00 | 214,625,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96,779 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkB... | [
"274065539@qq.com"
] | 274065539@qq.com |
cbfdc2132564815458464e1f64c86110d7b3e056 | db3d4aa39bc6b3f521ba21afbfedd8164a68e4d5 | /asgiref/conformance_async.py | 5aeeeeacffef2d0bc4747777b7306d1a0c04b24e | [
"BSD-3-Clause"
] | permissive | EdwardBetts/asgiref | 808c55b5089d9c9d8ae33583b0a1728a6313f930 | 0ad52409735109a85238b5b068c77c0f4e60e59e | refs/heads/master | 2021-01-21T22:19:00.404420 | 2017-08-23T03:33:56 | 2017-08-23T03:33:56 | 102,147,619 | 0 | 0 | null | 2017-09-01T19:45:30 | 2017-09-01T19:45:30 | null | UTF-8 | Python | false | false | 743 | py | import asyncio
def test_receive_async(self):
"""
Tests that the asynchronous receive() method works.
"""
# Make sure we can run asyncio code
self.skip_if_no_extension("async")
try:
import asyncio
except ImportError:
raise unittest.SkipTest("No asyncio")
# Test that recei... | [
"andrew@aeracode.org"
] | andrew@aeracode.org |
de6ff1b606ca0939e9cc25ea37d7b88e7f76c315 | b9b19792e1890b56679dc167fb99f9612af477f7 | /deeppy/graph/nodes.py | 17893ad9ede4ed472d8bf3fcd5e5d7a6a94a5bf0 | [
"MIT"
] | permissive | fullstackenviormentss/deeppy_experimental | 7990674a8eda0655671940d3baf25256af8a384b | dc06e294e37a30340c7d02ac12c4d00653baf96c | refs/heads/master | 2020-03-18T22:01:01.964338 | 2015-08-25T18:15:28 | 2015-08-25T18:15:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from ..base import Model, ParamMixin, PickleMixin, PhaseMixin
class Node(PhaseMixin, PickleMixin):
def _setup(self, **shapes):
pass
def fprop(self, **arrays):
pass
def bprop(self, **arrays):
pass
def out_shapes(self, **shapes):
pass
class SupervisedBatch(Node):
d... | [
"anders.bll@gmail.com"
] | anders.bll@gmail.com |
98809dfea4ff4dba9a3ba0d6f49603d5b7cd8938 | f1d67722dcd4c2209eedc0a61e5ea0ee27c95470 | /examples/farmer/farmer_ama.py | 00a79662b473eef48f1d277a7ec361a36bbfb408 | [] | no_license | wangcj05/mpi-sppy | 08204019b466da5e0812b16dd5cb53da1bdbd793 | 42aff4c11dc42fcba8a9520da00e48c6e9ab7d85 | refs/heads/main | 2023-08-25T04:36:58.606490 | 2021-11-01T21:40:14 | 2021-11-01T21:40:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # Copyright 2021 by B. Knueven, D. Mildebrath, C. Muir, J-P Watson, and D.L. Woodruff
# This software is distributed under the 3-clause BSD License.
"""
An example of using amalgomator and solving directly the EF
To execute this:
python farmer_ama.py --num-scens=10 --crops-multiplier=3 --farmer-with-integer
... | [
"noreply@github.com"
] | wangcj05.noreply@github.com |
4ede039a5f8e824cee79fba2efaf8cbcedf0a1bc | 11195ea809c363f834f3fb31eb7de26437e2eb53 | /course3/reachability.py | a1a09b13ad880b57067f789a2d3918fe4ab64d7b | [
"MIT"
] | permissive | ropable/algorithmic_toolbox | e8d517dbc00541ef10fdc8c3e586194ebbd1b30b | b4dcf4fda19c394da2baa6eced0732bf50585237 | refs/heads/master | 2021-09-09T12:15:37.378207 | 2018-03-16T01:58:41 | 2018-03-16T01:58:41 | 110,786,531 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | # python3
import sys
def reach(adj, x, y):
# Determine if x can reach y by exploring all of the nodes that x can reach.
visited = [False] * len(adj) # List of all the edges, and whether they have been visited.
return explore(adj, x, y, visited)
def explore(adj, x, y, visited):
# Explore each edge ... | [
"ashley@ropable.com"
] | ashley@ropable.com |
f4a6ff61bd09f097e3f78db368e0296793dad68d | f1e9f557c5d724dcabbfa17903de93bb82767e35 | /py_opencv_playrtsp.py | 48961e3539f940982eb4128f70fc2a9f5ce1a858 | [] | no_license | gregsheu/python | e5e9ff83dc0ce90541591e726c940e8a1f71a3d4 | 4a77295d58a522974ee85b201ab99cdbe410fd08 | refs/heads/master | 2023-08-18T08:30:15.611727 | 2023-08-08T06:55:44 | 2023-08-08T06:55:44 | 181,270,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | import cv2
import ffmpeg
import time
vcap = cv2.VideoCapture("rtsp://admin:admin12345@192.168.1.77:554/cam/realmonitor?channel=1&subtype=0")
while(1):
ret, frame = vcap.read()
print(frame.tobytes())
cv2.imshow('channel2', frame)
cv2.waitKey(1)
| [
"greg@mymacpro.bluefinops.io"
] | greg@mymacpro.bluefinops.io |
2daa7490a61cc2719677837eea96644bd3d7879a | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/ListDynamicImageRequest.py | ebe94cb925af50eeef533e6e56955b712cd79567 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,447 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
c78e0f7af5816b19efcea2334f9803e925c03c0c | d25eebb25595c25b73fdc64447f7cf5998204b0d | /gtkApi/ReportEditor.py | ca6d3ae8746a0c2d9fb7a526f2f18423739f3bc5 | [] | no_license | BackupTheBerlios/baseui | a3867c0cc4aa30cf2a7b0dcaf9dbeec68dc5ef0b | a8296aa42f0de42c18f7dfb5d20966bad695709b | refs/heads/master | 2021-01-15T22:28:52.114731 | 2012-12-05T16:31:03 | 2012-12-05T16:31:03 | 39,894,612 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
#===============================================================================
# ReportEditor module.
# by Mark Muzenhardt, published under LGPL-License.
#===============================================================================
import pygtk
pygtk.re... | [
"devnull@localhost"
] | devnull@localhost |
462a7046e8a050379388b4c55914328f5e45deca | a34df0359b8aa5ef03c010fe91229e4cbb765d1f | /Step X/twilio/rest/studio/v1/flow/engagement/__init__.py | fe27c9983cdfb3ea2a9b071aeb5806fec9df053a | [
"Unlicense"
] | permissive | wrestlerdude/QuackathonRubeGoldberg2019 | f881d6c131ca8349946d01be29ff4ad272e11159 | fdaafb79add30a3de075fa0ab9c7c88900081f65 | refs/heads/master | 2020-04-20T11:52:01.937292 | 2019-02-04T18:10:54 | 2019-02-04T18:10:54 | 168,828,471 | 1 | 0 | Unlicense | 2019-02-02T21:50:33 | 2019-02-02T12:16:32 | PHP | UTF-8 | Python | false | false | 16,098 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import serialize
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import ... | [
"raishallan2@gmail.com"
] | raishallan2@gmail.com |
97dc0dee0ef8ce0ada8c9102b035a98d5717adee | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /account_voucher/__manifest__.py | 34480401b13ad5043af7067acd03109289d910d1 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
{
'name' : 'Sale & Purchase Vouchers',
'version' : '1.0',
'summary': 'Manage your debts and credits thanks to simple sale/purchase receipts',
'description': """
TODO
old description:
Invoicing & Paymen... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
b56d4fe821cd8462bbda70acd89752b0fbce8a74 | 7c91f92d2d82e0d9fd85af09f9d18226c747f7fa | /rhoci/forms/test.py | bb9d6fe3cf671e23e1b037366251aa9886986d9a | [
"Apache-2.0"
] | permissive | bregman-arie/rhoci | 5488afe8d884cb72a3475eef68ebc54944b45453 | bae1f1d737a12ede50d263a6496faf2b698515b5 | refs/heads/master | 2023-02-25T10:53:01.642377 | 2022-12-10T14:37:40 | 2022-12-10T14:37:40 | 90,493,854 | 12 | 8 | Apache-2.0 | 2023-02-16T07:11:11 | 2017-05-06T22:06:20 | CSS | UTF-8 | Python | false | false | 1,117 | py | # Copyright 2019 Arie Bregman
#
# 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 agree... | [
"abregman@redhat.com"
] | abregman@redhat.com |
0fa2b8c8ec819233bc34543f46cd4fd13fe8509b | 7d75018c3d8e2ac85ea0f5bbaf52ce5eae9761ca | /project/gohelp/settings.py | 3bfa30ab59e9abf68240589b9a17501126484713 | [] | no_license | AVS18/sdp-sem5 | fff484331d9b588558b928e557a974f05652adcb | 238dcc7dfe50dda9678383590a43b23bbcd99553 | refs/heads/main | 2023-01-14T01:01:18.297711 | 2020-11-14T13:43:55 | 2020-11-14T13:43:55 | 288,098,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,850 | py | """
Django settings for gohelp project.
Generated by 'django-admin startproject' using Django 3.1.2.
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/
"""
from pathlib ... | [
"avsadityavardhan18bcs@iiitkottayam.ac.in"
] | avsadityavardhan18bcs@iiitkottayam.ac.in |
4443aa6863038875ca5ad3372f122475c4993118 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/aio/_monitor_management_client.py | 5640ee566505865cb91ec42008e9408f5e7a74d8 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,526 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
712dba93a2621c8f100b375020d6fe1a26b33587 | 155cfef4bb35d20bc574f63f3443039bfcc1ab7e | /srcs/mahjong/admin/admin/admin.py | dae8ebe48a3a7b3d835c15ac939a653d4622e62b | [] | no_license | rolllyroman/fish_web | 3116481a6a16484283f428eb7c98ecea7cee99d4 | eb5a05ea3d56c7d9f599009e8ab6f4cb322e9023 | refs/heads/master | 2020-03-28T01:08:57.346228 | 2018-09-06T03:34:05 | 2018-09-06T03:34:05 | 147,480,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | #-*- coding:utf-8 -*-
#!/usr/bin/python
"""
Author:$Author$
Date:$Date$
Revision:$Revision$
Description:
后台APP应用入口
"""
from bottle import Bottle
from common.install_plugin import install_redis_plugin,install_session_plugin
admin_app = Bottle()
install_redis_plugin(admin_app)
install_session_plugin(admin_app)
i... | [
"1983654762@qq.com"
] | 1983654762@qq.com |
d34c789dde64b5b39999009db01b1063b4be7c34 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4458015.3.spec | e9ca614706903a6b3dabcb4a519425f93b2f6d24 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,311 | spec | {
"id": "mgm4458015.3",
"metadata": {
"mgm4458015.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
0565aa6f020b9a0cec1aadb20a7b89e216fe928b | f0d0ea29240c53b6ce1c4b06095b528ece02fdd7 | /core/championship.py | d714983cb55b99879f051866efec7695e0065120 | [] | no_license | zhifuliu/dianjing | 477529ccd6159329e1bc121aeb2ff328ee499f4a | 7b3f6d58f5bc0738651d8d72c9a24df4ade0ed36 | refs/heads/master | 2020-03-21T09:10:28.343268 | 2017-03-24T03:06:24 | 2017-03-24T03:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,317 | py | # -*- coding: utf-8 -*-
"""
Author: Wang Chao <yueyoum@gmail.com>
Filename: championship
Date Created: 2016-12-09 15:13
Description:
"""
import random
import arrow
import itertools
import requests
from django.conf import settings
from dianjing.exception import GameException
from core.mongo import (
... | [
"yueyoum@gmail.com"
] | yueyoum@gmail.com |
911744a0becf71a9d8142dc9e796c3949f6243a8 | 26c0f80688f75a188097a232c229a73c8e7cc6ed | /user/migrations/0016_auto_20210511_1700.py | c17235302b993169c5ae1b568f59d2271a6b2144 | [] | no_license | creep1g/DjangoWebstore | 8207d7ea53c478fb7e5745e1c6ae6699102b5df5 | bd27340b86bf2289b8c14216462d932ccdf4986d | refs/heads/main | 2023-05-06T09:50:04.846489 | 2021-05-28T14:40:40 | 2021-05-28T14:40:40 | 371,730,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # Generated by Django 3.2 on 2021-05-11 17:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('user', '0015_auto_20210511_1655'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | [
"thorgilshjalmarsson@gmail.com"
] | thorgilshjalmarsson@gmail.com |
31c63484ece90ef1a58d4d8a1c917875e71e42ba | 0729bc2e2236fadb8fb2eac8b30534d939a45b2e | /DistAnnot/Annot/tests.py | e0c741e72f672231d4fd71b9ee91a723a70a444e | [] | no_license | JudoWill/pyMutF | 8ecdc24fbb2efe2a0a721aab164a2b060de11832 | aaf41ab41eb897c10a721c62913bb49c79f2cefc | refs/heads/master | 2021-01-16T20:34:06.705933 | 2010-10-11T16:55:08 | 2010-10-11T16:55:08 | 710,208 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | """
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
from django.core.urlresolvers import reverse
from DistAnnot.Interaction.mode... | [
"judowill@gmail.com"
] | judowill@gmail.com |
ba0f8b5d3e6818f96a7f42132ea32967e054c957 | 2f330fc050de11676ab46b963b7878882e9b6614 | /memsource_cli/models/create_analyse_list_async_dto.py | 0679fd3b864b9449bd836de3615a6545e4f4fed0 | [
"Apache-2.0"
] | permissive | zerodayz/memsource-cli-client | 609f48c18a2b6daaa639d4cb8a61da43763b5143 | c2574f1467539a49e6637c874e88d75c7ef789b3 | refs/heads/master | 2020-08-01T12:43:06.497982 | 2019-09-30T11:14:13 | 2019-09-30T11:14:13 | 210,999,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,872 | py | # coding: utf-8
"""
Memsource REST API
Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis... | [
"cerninr@gmail.com"
] | cerninr@gmail.com |
37321511f55b483428e71701554e9e17bf1df771 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_7/hrnali002/question1.py | bddd72a0b19d90ef62d339aa08a5e015b73c2dc2 | [] | 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 | 593 | py | """A program to print a list with not duplicated words
Alison Hoernle
HRNALI002
27 April 2014"""
# get input and convert to a list
list = []
strings = input("Enter strings (end with DONE):\n")
while strings != "DONE":
list.append(strings)
strings = input()
print()
print("Unique list:")
# create an empty... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
f3a2ad5c32de8876caeae5f5f9095fdd0ef824c5 | 400c569b19d003d0b9d1b31bc1b698ae510cbc46 | /Celestial classification/models.py | d4b60dffc8e997aebb887787f6bf21975ed96fb3 | [] | no_license | as950118/dacon | 05a203ab36375a69549ac39ba3b02a90431c860a | a1489a55a7a53a755d6cf50081522bd7c1c48b4f | refs/heads/master | 2021-02-13T20:06:38.169482 | 2020-03-03T19:51:51 | 2020-03-03T19:51:51 | 244,727,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from catboost import CatBoostClassifier
from lightgbm import LGBMClassifier
from xgboost import XGBClassifier
from data_processing import DataProcessing
random_seed = 0
train_data_path = "./data/train.csv"
test_data_path = "./data/test.csv"
sampl... | [
"na_qa@icloud.com"
] | na_qa@icloud.com |
3994ec01676f94e3b0ed9d34c4e51522f1548082 | 6b3ec47ee410a7d2ed2102cc5bcfa13c7a6342e2 | /bin/easy_install-3.6 | 5d6f8c4e10d68c760d508456eeaaa31b7e59754b | [] | no_license | makkar-nishant123/Refermeframework | fddb912304bdb4ffe3e169fda2d60b4171d8b6c1 | a152f42f6ab63c037bf3f117aa5be1ceb3a1d178 | refs/heads/master | 2020-05-15T23:29:18.684101 | 2019-04-28T17:31:22 | 2019-04-28T17:31:22 | 182,555,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | 6 | #!/Users/nishantmakkar/PycharmProjects/RefermeFramework/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"makkar.nishant123@gmail.com"
] | makkar.nishant123@gmail.com |
f529c2813ffd27be60a2c246cf2853fcf650896f | 78912badbaa634d84a93ac03872f18b3f14092a0 | /photosorter-readbuckets.py | 21e4410b93a348af18e57021e9ae46609456fa81 | [] | no_license | mperry8889/photosorter | fc556054ce2af1a50c91c585c80eb6d65ff23f4f | d20c7a51a6e0e7aef4e4eb9260a344d54c52e539 | refs/heads/master | 2021-05-29T06:55:32.482767 | 2011-05-08T17:04:59 | 2011-05-08T17:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | #!/usr/bin/env python
from photosorter import PhotoSorter
from photosorter import Bucket
from photosorter import Photo
if __name__ == "__main__":
p = PhotoSorter()
for bucket in p.buckets:
for state in ["during", "after", "before", "unknown", "unsorted"]:
for photo in getattr(bucket, stat... | [
"none@none"
] | none@none |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.