blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9fdc2f6d35a0c927ed5c7fcd8ea4da2b50d75df | 2cac78287ff705168f3610d6f6292aa61582eb84 | /identification.py | bda2f6c4ecc6f97241018d9b79813bff4ff46789 | [] | no_license | yermandy/ijbb | 637501e960dfe4441ef2ea61aa12e04eb651c3d1 | 55bd8f8c38e163b91fada6e1a642eb181ac00aaa | refs/heads/master | 2022-12-21T11:23:26.789110 | 2020-08-24T09:46:07 | 2020-08-24T09:46:07 | 248,194,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,992 | py | import numpy as np
from json import load
from time import time
from plot import *
from config import *
from aggragation import Aggregation
class Identification(Aggregation):
def __init__(self, template_faces_dict, features, quality_scores=None, method=None):
super().__init__(
template_faces_di... | [
"yermaand@gmail.com"
] | yermaand@gmail.com |
5e1ff58c7020893003e992fe3be58f0a404105ff | 4bf8e353ce0c3073522dc33afe30d31facd66645 | /Menu.py | 0a76391f6e3d19e511a1222cab4dac4313c28ed5 | [] | no_license | CarlosMtz98/ProyectoFinal-1 | cefb96d33a83f18d11b9076843463a2193bb10fc | 44d9a95fcf2847f67b8c32bb5f354e67feb77422 | refs/heads/master | 2020-03-16T17:53:20.908681 | 2018-05-10T13:30:57 | 2018-05-10T13:30:57 | 132,850,826 | 0 | 0 | null | 2018-05-10T05:03:20 | 2018-05-10T05:03:19 | null | UTF-8 | Python | false | false | 6,884 | py | # encoding: UTF-8
# Autor: Roberto Martínez Román
# Muestra cómo utilizar pygame para escribir programas que dibujan en la pantalla
import pygame
# Dimensiones de la pantalla
ANCHO = 800
ALTO = 600
# Colores
BLANCO = (255, 255, 255) # R,G,B en el rango [0,255]
VERDE_BANDERA = (0, 122, 0)
ROJO = (255, 0, 0)
AZUL = (0... | [
"noreply@github.com"
] | noreply@github.com |
09be8dca5ceacb21fe25c7dffea510e79c928207 | 2379e840d0a9e47331ac247f4d6164cdfd548cbd | /tools/docs/docload.py | 6cdadb8d0f4de2a0db4459bf4ad0b6d8bf40ee44 | [
"BSD-3-Clause",
"PostgreSQL"
] | permissive | jberkus/pgweb | b9d04bc60da437f2f60c8e4cf844e0cfa601a160 | fa07ed84b8708240264fe9f091b2087b7f872b8c | refs/heads/master | 2020-04-03T10:12:04.734671 | 2017-05-11T13:00:07 | 2017-05-11T13:00:20 | 30,271,195 | 0 | 0 | null | 2015-02-03T23:49:04 | 2015-02-03T23:49:04 | null | UTF-8 | Python | false | false | 3,730 | py | #!/usr/bin/env python
# Script to load documentation from tarballs
import sys
import os
import tarfile
import re
import tidy
from optparse import OptionParser
from ConfigParser import ConfigParser
import psycopg2
pagecount = 0
quiet = False
re_titlematch = re.compile('<title\s*>([^<]+)</title\s*>', re.IGNORECASE)
... | [
"magnus@hagander.net"
] | magnus@hagander.net |
608b91ef49bdcf91ae244f0073ec6a7bb4b05a22 | 87163acf1614292be250754f28114f89013f73a3 | /HackerRank/Problem Solving/Implementation/Easy/Cut the sticks.py | 400aa182819db47b8f08baf51c32151e0dddc50c | [] | no_license | khush-01/Python-codes | 742a9d9966d2ceb3ad2e7c78e34ef88e55df955a | da3cae8df0aafe763399066eefc9b786538fdb35 | refs/heads/main | 2023-03-20T04:37:14.020134 | 2021-03-12T04:56:30 | 2021-03-12T04:56:30 | 346,941,048 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | n = int(input())
arr = list(map(int, input().split()))
while len(arr):
print(len(arr))
low = min(arr)
arr = [x for x in arr if x != low]
for x in arr:
x -= low
| [
"noreply@github.com"
] | noreply@github.com |
79dbfae2255d7885ef97cf29cb7752d4252a1afb | c407675181e80ea03df94da010986882d65ee0a3 | /addParamToConfig.py | 85348d3f84359948257438cb8d421a8bb9efa64a | [] | no_license | DGoes-IDM/Tools | d8a799916f69c3ec5efd25e335eef6d5cfc41375 | 4abd4cd0c61a941c0e635f83d6e45e86708808b0 | refs/heads/master | 2020-04-01T12:03:23.934544 | 2019-06-28T20:31:44 | 2019-06-28T20:31:44 | 153,189,225 | 0 | 0 | null | 2020-02-03T18:56:33 | 2018-10-15T22:23:53 | Python | UTF-8 | Python | false | false | 1,934 | py | import sys
import argparse
import json
def add_param(file_data, key, value):
file_data["parameters"][key] = value
def add_to_files_in_collection(file_path, key, value, ignore_missing):
files = []
# Read in the collection
with open(file_path, "r") as file:
for line in file:
files.... | [
"dgoes@idmod.org"
] | dgoes@idmod.org |
051ee80b650a4c463db1feb568ae4c7bc5b019ca | eba1e37dd58ce0f6378bf8b357d56992e2e5d10e | /burger/offer/admin.py | 26061305c7e7e51b754d16a756a4caca4c433aa9 | [] | no_license | josejonatasoliveira/america-burger | dfc658129916da4005e53a498aa166bcf5d9651c | dae4e54dc820b4fb96bf84f9b2a9d61b20a8c047 | refs/heads/master | 2023-08-02T13:28:43.689058 | 2021-09-24T22:03:31 | 2021-09-24T22:03:31 | 410,112,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | from burger.offer.models import Offer, TicketRaffle
from burger.people.models import Profile
from django.contrib import admin
from .forms import OfferForm
class OfferAdmin(admin.ModelAdmin):
reversion_enable = True
class ProfileInline(admin.TabularInline):
model = Profile
class TicketAdmin(admin.ModelAdmin):
... | [
"jose.jonatas@triasoftware.com.br"
] | jose.jonatas@triasoftware.com.br |
eac9f58cb80d56f1c9c329d42b8d6d1ac5691f1d | 9b79b70b8590853a035ca0ff6fab71ad57815847 | /proto_scraping/medium_scrap/migrations/0001_initial.py | 34b9147d401345321eb65dc9f3646608359763e8 | [] | no_license | manavgoyal53/medium_scrapping | dfae29bef05c6df2eb8ba06c19f2f823f718928b | 37acc8648f35081698e6086c3f55bb14fa81a9f0 | refs/heads/master | 2022-12-29T06:04:34.824209 | 2020-10-13T06:35:44 | 2020-10-13T06:35:44 | 301,785,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | # Generated by Django 3.1.2 on 2020-10-04 04:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"manavgoyal53@gmail.com"
] | manavgoyal53@gmail.com |
9b3c7aa794eeb63fb248d72b6ca964dd9447485e | 6535b15408b09d4dad5b9f3589ee69f8848813b0 | /test.py | 08d965634d9262e3604c47115d59823f02539d6c | [] | no_license | jizongFox/Rongs_fleur | 86b6c82dd6a85920ed2f8ff60afe093bb93aabfb | 51575d558647cf52c97b60fe6f017b94bfe2885e | refs/heads/master | 2020-03-26T02:24:16.578065 | 2018-08-11T18:19:22 | 2018-08-11T18:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import os,pandas as pd, numpy as np
sheet_names = ['花境苗木分类清单','春季','夏季','秋季','冬季']
file_name = '四季花境苗木.xls'
fleurnames = []
for sheetname in sheet_names:
fleurlist1 = pd.read_excel(file_name,sheet_name=sheetname).iloc[2:,1].values.ravel().tolist()
fleurnames.extend([{x:sheetname} for x in fleurlist1])
# fleurn... | [
"pengjizong@sjtu.edu.cn"
] | pengjizong@sjtu.edu.cn |
38bfd9428ec551d1e7378c0bed6889e115ea4cdb | a8499deff2fa4abde885891d655c3f53ab741d37 | /rotkehlchen/typing.py | baf11f828d8959e799887993f4df71e0658772a7 | [
"BSD-3-Clause"
] | permissive | georgerobescu/rotkehlchen | 4c6d2cadcf8b1a8a20f33bb7352b3924a492af54 | 817c880b771b8daf5635b02642861dd9949689e2 | refs/heads/master | 2020-06-25T00:22:20.442607 | 2019-07-26T11:42:13 | 2019-07-26T11:42:13 | 199,137,746 | 0 | 0 | BSD-3-Clause | 2019-07-27T08:25:06 | 2019-07-27T08:24:59 | Python | UTF-8 | Python | false | false | 3,836 | py | from enum import Enum
from typing import Dict, NamedTuple, NewType, Optional, Union
from rotkehlchen.fval import FVal
T_BinaryEthAddress = bytes
BinaryEthAddress = NewType('BinaryEthAddress', T_BinaryEthAddress)
T_Timestamp = int
Timestamp = NewType('Timestamp', T_Timestamp)
T_ApiKey = bytes
ApiKey = NewType('ApiK... | [
"lefteris@refu.co"
] | lefteris@refu.co |
1ff249bf258e5aca78c45c32f29f4c64fb783fe4 | 75d3cc29b78047cf78111d49e51cc72152e89bb2 | /GeeksForGeeks Questions/LinkedListPrograms/DeleteMiddleElementFromLinkedList.py | 34fd48a072a742c34bdecd67ccd3c4ee72592a0d | [] | no_license | tusharsappal/GeneralInterViewquestions | 7a806e28378e6f3c8c800f683fd88548bd1cd188 | 10d93abcbf94a2371b2aafc9e916977bc21f2b0d | refs/heads/master | 2021-01-06T20:42:35.584907 | 2017-07-08T07:44:29 | 2017-07-08T07:44:29 | 22,373,235 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py |
class Node(object):
def __init__(self,initData):
self.data = initData
self.next = None
def getData(self):
return self.data
def getNext(self):
return self.next
def setData(self,newData):
self.data = newData
def setNext(self,nextNode):
self.next =... | [
"sappal.tushar@gmail.com"
] | sappal.tushar@gmail.com |
7ede6ea1f20c296a327afbead3ad7608bfd01bea | b8f51bdd77ee42ba71e72b3b2f6914f2953dd769 | /colony/services/version.py | 7628805ff49d7ce5500cf891f7d9802183c281b6 | [
"Apache-2.0"
] | permissive | QualiSystemsLab/colony-cli | 651a1501fb325de26ab6aa6d917e5597561d9963 | d3c82af62193388eef586877e788e7e780d49336 | refs/heads/master | 2023-07-17T18:19:56.979370 | 2021-08-31T18:26:41 | 2021-08-31T18:26:41 | 309,738,574 | 1 | 5 | Apache-2.0 | 2021-08-31T18:26:43 | 2020-11-03T16:04:57 | Python | UTF-8 | Python | false | false | 2,970 | py | import logging
import traceback
from typing import Dict, List
import requests
import semantic_version
from colony.commands.base import BaseCommand
logger = logging.getLogger(__name__)
class VersionCheckService:
def __init__(self, current_version):
self.current_version = current_version
def check_f... | [
"aazarh@gmail.com"
] | aazarh@gmail.com |
cd2b22ed4db6ed174c49bdf5e356e847797a5d82 | cc729df8c0f5d80026d45bd812616cacb4982995 | /DrillStep103.py | 3034f61f407bd8747b131a79d1936535e480e0e5 | [] | no_license | TLyons830/The-Tech-Academy-Python-Coding-Projects | 182001094460e9721449b320dab489b586ce6b5b | e7b8d1ce3eebaf19dd6c107df73eb089d6fc2869 | refs/heads/master | 2022-11-04T08:47:23.790164 | 2019-10-31T22:00:54 | 2019-10-31T22:00:54 | 207,920,575 | 0 | 1 | null | 2022-10-27T18:37:06 | 2019-09-11T22:54:48 | Python | UTF-8 | Python | false | false | 1,044 | py | import sqlite3
fileList = ('information.docx', 'Hello.txt','myImage.png', \
'myMovie.mpg', 'World.txt', 'data.pdf', 'myPhoto.jpg')
conn = sqlite3.connect('DrillStep103DB.db')
with conn:
cur = conn.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS tbl_TextFiles ( \
ID INTEGER PRIMARY KEY... | [
"tlyons030@gmail.com"
] | tlyons030@gmail.com |
db48869ea0f674f99266337d24c77ce00bb65997 | 0707a36271a75963771a54042809246599234d99 | /mainapp/mixins.py | 2b2c4469937d14e7b7568d3613f15233c62d3501 | [] | no_license | vvp1488/Project | 6f8cac79d290f4e2d5dca67216e062a7d51f1464 | da155f90a4b156bd5d5be47de8ebeed127ae5b6e | refs/heads/master | 2023-04-06T01:48:24.459534 | 2021-05-12T09:21:31 | 2021-05-12T09:21:31 | 366,659,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | from django.views.generic.detail import SingleObjectMixin
from django.views.generic import View
from .models import Category ,Customer , Cart ,Notebook, Smartphone
class CategoryDetailMixins(SingleObjectMixin):
CATEGORY_SLUG2PRODUCT_MODEL = {
'notebooks': Notebook,
'smartphones': Smartphone
... | [
"drozdik24011994@gmail.com"
] | drozdik24011994@gmail.com |
9cf7cb07290ecae47e97659cfebef7f3eec30e2e | e0dae451c6bc4a1c75eb22c5fd8d3d018d626ea4 | /Solgema/EnvironmentViewlets/__init__.py | 3c17b18db26db242274b4447f7a38080d1a17e73 | [] | no_license | Martronic-SA/Solgema.EnvironmentViewlets | 090263bbb2da0b3ddcf934cb16a30e3a1997cfac | 1b0068a43883e82b57534d2473c657e761199c7f | refs/heads/master | 2020-12-04T09:29:24.648459 | 2016-10-03T09:08:37 | 2016-10-03T09:08:37 | 67,020,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from Products.CMFCore import DirectoryView
GLOBALS = globals()
ATTR = 'Solgema.EnvironmentViewlets'
DirectoryView.registerDirectory('skins', GLOBALS)
import config
def initialize(context):
"""Initializer called when used as a Zope 2 product."""
| [
"martronic@martronic.ch"
] | martronic@martronic.ch |
36f05b169016c2c99ca72126c17f2a7e7c7c47ec | c80108a56c0e675d92b8f9326f073f62a49dba5c | /euler112.py | 33f0f6f47674fa692d1a9101c9ccedf3840495a0 | [] | no_license | mswift42/project-euler-2 | dd91a11f27fabfb24aa79efe338e26f9c17e0811 | 6bef5ee50ec1897aad68672ba29fccfbfc11f2c9 | refs/heads/master | 2016-09-01T17:04:26.328959 | 2013-11-03T17:34:44 | 2013-11-03T17:34:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | #!/usr/bin/python3
""" I only added a python version of my lisp solution because I wanted to see
how much slower it would be. Lisp: 6 sec, Python3 45 sec."""
def number_to_list(number):
"""Convert int to list of its digits"""
return [int(i) for i in str(number)]
def is_increasing(lst):
"""Check if nu... | [
"martin.haesler@gmail.com"
] | martin.haesler@gmail.com |
fccc88ef1c7f70d062c0de2180c827a5c8f0dc74 | 928a229a5b981dcf4fa704a373c178e4e541185c | /Load_MasterDictionary.py | b8186d5bf50f58926c97e2820d6fbfd99c0c19c4 | [] | no_license | vkelk/factiva-rtf-db | ac57fd6730cbb17e06b69ee94ba56d981c2eafab | 774da71ae488cfcc57d32f3ba9d844725b17de8c | refs/heads/master | 2021-06-07T20:09:41.549650 | 2020-05-04T20:24:32 | 2020-05-04T20:24:32 | 138,073,926 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,813 | py | #!/usr/bin/python3
"""Routine to load MasterDictionary class"""
# BDM : 201510
import time
def load_masterdictionary(file_path, print_flag=False, f_log=None, get_other=False):
_master_dictionary = {}
_sentiment_categories = ['negative', 'positive', 'uncertainty', 'litigious', 'constraining',
... | [
"pisimina@gmail.com"
] | pisimina@gmail.com |
0656dbdbdd8cd2a14140308867d069997c09680a | 6ce0244294fe09e4f16b4e95e33cce87c8aa27ce | /Functions.py | ad8ec18e391f5e16c253f4f89a5b0ec4d2179d63 | [] | no_license | MattWise/ProbabilityProject | 108488d0c6f45162fb9685227c321131a8da9073 | 18cb86048ce120770ed8ed5dfbe73f8c87aad39f | refs/heads/master | 2021-01-10T17:04:26.661703 | 2015-12-11T06:01:56 | 2015-12-11T06:01:56 | 46,384,822 | 0 | 0 | null | 2015-12-11T06:01:57 | 2015-11-18T00:37:32 | Python | UTF-8 | Python | false | false | 8,520 | py | from __future__ import division,print_function
import functools
import cPickle as pickle
import os
import random as r
import numpy as np,itertools as it
import collections
import decorator
"""
File for small, general purpose classes and functions used by other modules.
"""
#region Decorators
"""
Decorators
"""
def am... | [
"ttam.esiw@gmail.com"
] | ttam.esiw@gmail.com |
24e9696f68829ffa95e820265805c9cb8d43abbf | 6d02c1c52cdf4c4564c3afe3f62e9643cc25f5fa | /test/test_ScikitWrapper.py | 02f4c71741e729565e52e4b3f1ba3c3ca52e7cc7 | [] | no_license | orestiskats19/Word_Classifier | d13c07f3c9a008e93549c90ec08971339e7a4246 | 314e5e026a98b3d69be71ef7dc9ff092594f7417 | refs/heads/master | 2022-04-06T12:05:44.638252 | 2020-02-23T23:49:24 | 2020-02-23T23:49:24 | 242,220,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import unittest
import numpy as np
from sklearn import svm
from src.wrapper import ScikitWrapper
class TestScikitWrapper(unittest.TestCase):
def test_that_train_an_svm_model_and_get_the_score(self):
scikit_wrapper = ScikitWrapper(svm.SVC(decision_function_shape='ovo'))
test_data = [np.ones(100), ... | [
"42997545+orestiskats@users.noreply.github.com"
] | 42997545+orestiskats@users.noreply.github.com |
77f95e114740dc8521fd658eaf7aeede3d5def6c | 8ef64630a3343fa75786dd64712bd608c0a89d78 | /build.spec | 13f0977270306349ab020ac5a87d2f86bd39a6cb | [
"BSD-3-Clause"
] | permissive | SemaphoreTO/socketmixer | a32ecc4f3714101d4fcb2c5b4feae3c843726e1a | 37afc4f230bcd76bed69e76929644a99ef717d17 | refs/heads/master | 2021-01-20T21:52:38.509318 | 2015-09-16T06:07:59 | 2015-09-16T06:07:59 | 28,105,045 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | spec | ##### include mydir in distribution #######
def extra_datas(mydir):
def rec_glob(p, files):
import os
import glob
for d in glob.glob(p):
if os.path.isfile(d):
files.append(d)
print d
else:
print 'blah\n'
rec_gl... | [
"applekey@gmail.com"
] | applekey@gmail.com |
70978088559548f9e4706daaaf75f2f7535e7bbb | 8fbf261409ae746fd44762f5ab433e10fc856728 | /2-5/2-5/2-5/_2_5.py | 0baf4032286fa81bfc8862bf209e6f1f1f6b5e97 | [] | no_license | LxxWxxP/Python.advanced-level | 9eed5b23594168fa6f3ccf8457c727357470ee84 | ea064bd44aa3c341841b7bec35035bba8d69bf48 | refs/heads/master | 2020-05-27T19:25:25.424797 | 2019-06-09T01:21:36 | 2019-06-09T01:21:36 | 188,760,828 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | def prod(x, y):
return x * y
print reduce(prod, [2, 4, 5, 7, 12])
| [
"46910891+LxxWxxP@users.noreply.github.com"
] | 46910891+LxxWxxP@users.noreply.github.com |
ff2921be3e53bb57a802f21445f685d8aa6bbabf | bc441bb06b8948288f110af63feda4e798f30225 | /notify_sdk/model/easy_flow/package_info_pb2.py | be3f54867be88fa1063e26c8f7b235927c5b2589 | [
"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 | 13,382 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: package_info.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.protobu... | [
"service@easyops.cn"
] | service@easyops.cn |
621285e6f2695f530fbf30438fbb139d905fd4f5 | 84c15d89367afbba0cbd05788ede90bc7aab0db2 | /rel.py | e79ab02a8f04af1da4dca46a5013bfb9f0c44451 | [] | no_license | Cignoraptor-ita/cignosecret | 33ea3bb3fa11d1979e146460da2c163796839bad | eac1c995ce85fb492d3b89edf4d477d63df9a97d | refs/heads/master | 2021-01-25T09:43:31.278211 | 2019-02-01T16:06:43 | 2019-02-01T16:06:43 | 93,872,868 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | #canaccio
import sys, os, webbrowser, platform
import time
import webbrowser
def __limpiar():
if os.name == 'nt':
os.system('cls')
else:
os.system('clear')
def menu():
__limpiar()
print "****||||CIGNOSECRET ==****|||| "
print '''
CIGNOSECRET
'''
print "LEVEL 15"
d = raw_i... | [
"noreply@github.com"
] | noreply@github.com |
f79437dead3a3f2da4ac3c147ffb54b09f9745f9 | c131f4cab6534d6f770c38b442e4d6084c2e527a | /lesson_2/physics.py | 5fa197d2a03d5fd58a5175c6609b48f8fe786c6a | [] | no_license | bird-in-hat/dvmn-1 | 042a700f979507a3d0a24d73b39ac3fcba1c6cc1 | ca6f54264a5aecd0f84f4376a42ae101a6488bc5 | refs/heads/main | 2023-03-23T12:52:29.662812 | 2021-03-21T09:10:26 | 2021-03-21T09:10:26 | 314,854,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | import math
def _limit(value, min_value, max_value):
"""Limit value by min_value and max_value."""
if value < min_value:
return min_value
if value > max_value:
return max_value
return value
def _apply_acceleration(speed, speed_limit, forward=True):
"""Change speed — accelerate or... | [
"vladislav.buldakov@openmedia.co"
] | vladislav.buldakov@openmedia.co |
5fa37b2cd3d9af291d495919fbffe4284e0508ef | f3cdfde180a6e2ef079d959a90eb3c0421dc73cc | /R-B_Shipping_marks/Main_SM.spec | d152b8e555197ed290a666b6f68c3fd2086d3aa8 | [] | no_license | V1TO-C/Python_projects | 64c6dea745a9b12f2937af5ef8925b0773f727d4 | 8a315c326d12d62365fc7fb845838cbea9e86392 | refs/heads/master | 2022-12-07T12:27:16.351901 | 2020-08-30T10:56:06 | 2020-08-30T10:56:06 | 260,661,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['Main_SM.pspec'],
pathex=['C:\\Code_Projects\\Python_Projects\\Python_projects_public\\R-B_Shipping_marks'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
ru... | [
"v.cermak.v@gmail.com"
] | v.cermak.v@gmail.com |
b3305b39cd894d4e5bb295a10bedfc5a27e0d140 | e358b0c801b0173e2b5fe31820af2a45d5fff8ae | /altair_saver/savers/tests/test_html.py | 6899fec8d9fd514217be3d235d24a1e5c2dde027 | [
"BSD-3-Clause"
] | permissive | steevensmelo/altair_saver | a3270d2a4c2615c0b86b6d10f87e67f04c3bd40f | d8dfc9a8d40b3ad20d152e014b37e3b1e6d512ef | refs/heads/master | 2022-06-11T11:53:12.329070 | 2020-05-13T14:50:11 | 2020-05-13T14:50:11 | 263,651,277 | 0 | 0 | BSD-3-Clause | 2020-05-13T14:19:45 | 2020-05-13T14:19:44 | null | UTF-8 | Python | false | false | 5,557 | py | import io
import json
import os
from typing import Any, Dict, IO, Iterator, Optional, Tuple
from altair_data_server import Provider
from PIL import Image
import pytest
import selenium.webdriver
from selenium.webdriver.remote.webdriver import WebDriver
from altair_saver import HTMLSaver
from altair_saver._utils import... | [
"jakevdp@google.com"
] | jakevdp@google.com |
73caf2ee28236bb1cbd19e9b515e476b7049fe2a | e99bd3c16b7faf78c00cff97d1819d3be71fc6b4 | /Season 2013/Brazil/Projects/TaskKilla-master/task_handles.py | 0b61d2784312922d690e83d566ba5b726ea078b4 | [
"Apache-2.0"
] | permissive | LookThisCode/DeveloperBus | a132657a07dbb546e0b47c6fc5133028b45a710c | 81fe1cafd59a6b8cbe37b18b3b1ea1ec8995f1d1 | refs/heads/master | 2021-01-01T17:05:02.121763 | 2013-11-25T22:56:32 | 2013-11-25T22:56:32 | 13,576,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py |
import json
import webapp2
from model import Project,Quest,Task
from google.appengine.ext import ndb
class TaskListHandle(webapp2.RedirectHandler):
def get(self):
tasks = Task.query().fetch()
tasks = [t.to_dct() for t in tasks]
self.response.write(json.dumps(tasks))
class TaskCreateHandle... | [
"nbortolotti@gmail.com"
] | nbortolotti@gmail.com |
2ece9826a7c51f922007dd4b37ea17ae54963ccc | c609730a43596a2d3303f072fc97d9cf681fac7b | /cagey/kache/kache/spiders/woniuhc.py | 954c5f0dbca656d7d140c892215686432f16e2ad | [] | no_license | sinnettluo/ChenProject | 5403311c0c7b78c484145e16d692abff00d2a110 | 0e33ecf1683afb22f1deb4bd54294c41aed8a46b | refs/heads/master | 2023-03-22T23:48:08.430178 | 2020-09-02T15:05:02 | 2020-09-02T15:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,182 | py | # -*- coding: utf-8 -*-
import scrapy
import time
import json
from copy import deepcopy
from kache.items import woniuItem
class WoniuhcSpider(scrapy.Spider):
name = 'woniuhc'
allowed_domains = ['woniuhuoche.com']
# start_urls = ['http://woniuhuoche.com/']
@classmethod
def update_settings(cls, set... | [
"1316446041@qq.com"
] | 1316446041@qq.com |
7b5cbe0847dd7ee161252a3f29692ab99f07de36 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/carts/models_20211010234636.py | 41796b5b857bad7162f4bffa6392f2ca23d6f216 | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.db import models
# Create your models here.
class Cart(models.Model):
cart_id = models.CharField(max_length=255, blank=True)
date_added = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.cart_id
class CardItem(models.Model):
product = models.ForeignKey(Produ... | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
76dc68fb3fe760087f98d3966455e9f50c8e0e40 | c5d6e21744f10c6e57d58b57bba2763b82a9726b | /Bimestre_03_Aula_03/exercicios/04_somando_forcas.py | ccae92fe26f595c8832a0e1be2f97b2d84922e72 | [] | no_license | valeriacavalcanti/ALP-2020-R | bf32af707d49db650deb6d122a1abdf58d94ae4f | 62e0be861ad7439b99ae5d0b0e14d97c887424c7 | refs/heads/main | 2023-05-05T02:05:00.128872 | 2021-06-04T10:30:05 | 2021-06-04T10:30:05 | 316,784,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # declarar as matrizes
matriz1 = []
for i in range(6):
matriz1.append([0] * 4)
matriz2 = []
for i in range(6):
matriz2.append([0] * 4)
matriz_soma = []
for i in range(6):
matriz_soma.append([0] * 4)
# ler os dados das matrizes
for i in range(6):
for j in range(4):
matriz1[i][j] = int(input("M... | [
"valeria.cavalcanti@ifpb.edu.br"
] | valeria.cavalcanti@ifpb.edu.br |
79327309f705b2ef775384e31930c5baec7b9ddd | 094312a5727a70d351094290bcd0cf0d06b11890 | /app/main/errors.py | b889e6932f11f95ce9a1a2428e80e1443de01b57 | [] | no_license | runnart/flask-microblog | 714865b22d73a7c2d9a27771968a5e4e0aae77c4 | edb9b94b9ecad79065be763963bc2b58e6449067 | refs/heads/master | 2021-07-03T17:51:15.651320 | 2017-09-26T10:05:06 | 2017-09-26T10:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # app/main/errors.py
from flask import render_template
from . import main
@main.app_errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
@main.app_errorhandler(500)
def internal_server_error(e):
return render_template('500.html'), 500
@main.app_errorhandler(403)
def forbidden(e):... | [
"guseyin.gasimov@gmail.com"
] | guseyin.gasimov@gmail.com |
63634cefca549027c6af6ecbedd2210f68b1ff15 | ba4abbbad5466e4916c9e1be7407d35533ad3177 | /assignment2/question1.py | 7b92a6eefaefdd584cf9f54633fdea9ffdaea23c | [] | no_license | DhanushUB/python-assignment | be4b5b8ad5ff4a60bd822504ba740931f733e55e | ffd0b8340e3a68c1d8a5e53a86c6c2f56229d2a4 | refs/heads/master | 2021-09-16T09:45:48.112528 | 2018-06-19T02:37:11 | 2018-06-19T02:37:11 | 115,067,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | def one():
# 1. If you are given three sticks, you may or may not be able to arrange them in a triangle.
# For example, if one of the sticks is 12 inches long and the other two are 1‐inch‐long,
# you will not be able to get the short sticks to meet in the middle. For any given three
# values, there i... | [
"mcdhanush.2009@gmail.com"
] | mcdhanush.2009@gmail.com |
ab912ca102219b4e7067bfd67e916e9807c60b1f | 4d4c51a5c88c74c37abd8fff5f0638d1cbbf26c0 | /src/setup.py | fcfac2d5ebfc749db09dab2df6beb6a2b2266fbf | [
"MIT"
] | permissive | sphereflow/space_combat | 2eb99eb2724fe9e96e1cb5aaae1fa927e2a795cc | f9cafe6bd774dfced8a494d38bbed082c3e5dc74 | refs/heads/master | 2021-01-22T09:47:31.666020 | 2013-12-13T13:23:21 | 2013-12-13T13:23:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
from Cython.Build import cythonize
setup(name = 'math_3d', ext_modules = cythonize("math_3d.pyx"),)
setup(name = 'billboard', ext_modules = cythonize("billboard.pyx"),)
| [
"johannprescher@gmx.de"
] | johannprescher@gmx.de |
b6a17e212d5ead5e2665f0c2c842fddc0f891f16 | 799466d11c8994baf8c611b3b3e5a51f015635af | /ecommerce_django/wsgi.py | afddec2d9dbc0559a0ee7643795fade4c9b344d5 | [] | no_license | nihitx/ecommerce-django | d19a90d7db220714695c987c948b47c1710ff744 | bdb86a46f2c08f17f74c65e4d32df6dd305b6585 | refs/heads/master | 2021-01-21T22:22:27.398270 | 2017-09-01T22:07:30 | 2017-09-01T22:07:30 | 102,156,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | """
WSGI config for ecommerce_django 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJ... | [
"masnadhossain@live.com"
] | masnadhossain@live.com |
6bc2f2f74fa4f7f954d72f9f188aa154ec803c32 | 4f7aa44d21ae38093869e79e10f5cdc8842d48b7 | /01-python-academy-intro-lab/exceptions_01.py | 743b25bface618a473cf911dd91b8165a4e2d8b3 | [
"Apache-2.0"
] | permissive | iproduct/intro-python | 31e802c2c21a4df3361656f12d267ec52c2d6564 | 7e08e144da2907fcf45dc734ab4e896631625d75 | refs/heads/master | 2023-02-19T11:42:37.522624 | 2023-02-13T15:54:03 | 2023-02-13T15:54:03 | 128,980,155 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import sys
class MyException(Exception):
def __init__(self, *args):
# Exception.__init__(self, *args)
super().__init__(*args)
def erroneuos():
try:
return 1 / 0
except:
print("Within except.")
raise
finally:
print("Within finally.")
if __name__ == "__... | [
"office@iproduct.org"
] | office@iproduct.org |
030b21b38f2feadf4c34c43c4c48c94c6acb207a | ca1251a3a42fc9ba54b2f405c698508ef0e94d81 | /emails_project/urls.py | 3b06fa50d48583886895c704251eb2a783caa367 | [] | no_license | Malodar/mail_sender | 381f372f32447ae22117a37d99b2f34f83df2a9c | cd3bc2569420ce98f7f5266232a6d1222964456b | refs/heads/master | 2023-04-28T16:58:27.414202 | 2019-06-24T15:39:19 | 2019-06-24T15:39:19 | 193,380,082 | 0 | 0 | null | 2023-04-21T20:38:42 | 2019-06-23T18:05:37 | JavaScript | UTF-8 | Python | false | false | 805 | py | """emails_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"kunitsyn-a-v@yandex.ru"
] | kunitsyn-a-v@yandex.ru |
0b2c5577000faca97aeac50aefa4f9f6a92a8ae5 | e236eeffaabfebf09519649530c43939a49d5a88 | /debug.py | 036d27c930a6c764a84d0662a3805fa606ea945d | [] | no_license | tomik/euler | df0c3e05495bef6fba208fdd3241d26f25bd2ab7 | d8dd75abf9168945e61e38a032914ca87bdc7c0a | refs/heads/master | 2016-09-08T02:49:01.296096 | 2012-05-09T09:12:40 | 2012-05-09T09:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import time
class Timer():
def __enter__(self):
self.start = time.time()
def __exit__(self, *a):
print time.time() - self.start
| [
"tomas.kozelek@gmail.com"
] | tomas.kozelek@gmail.com |
6c6ca35bcb1cae919f48bc7f70104caabf953925 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/2329.py | bf535ce3f6a4ddf821921237facfb76044f407d5 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | ipt = open('B-large.in').read().splitlines()
cases = int(ipt[0])
fw = open('B-large.out','w')
for i in xrange(cases):
c_per_sec = 2.0
c,f,x = map(lambda x: float(x), ipt[i+1].split(' '))
just_wait = x / c_per_sec
sub_total = 0
while True:
#print just_wait
sub_total += c/c_per_sec
c_per_sec += f
total =... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e8cc9f9a200cb7f12b053ada699b9854e69c152b | 1b340699e4c6e03d669552eea22c81e34b5b70f2 | /learning/naive-bayes-multinomial_11st_opt.py | 8e834c676a2bc2d3220965f311cb98d434b66e4b | [] | no_license | codelifehoon/ml_training | 8ba45588aff14ade865f0d47172ceb9a20a40d81 | 6dd5fbc02cac52ffb1913fc34052e5cad8f44c78 | refs/heads/master | 2020-04-14T18:53:34.918496 | 2019-01-04T01:24:34 | 2019-01-04T01:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,847 | py | from sklearn.feature_extraction.text import TfidfVectorizer, HashingVectorizer, CountVectorizer
from sklearn.naive_bayes import MultinomialNB
from sklearn.pipeline import Pipeline
from sklearn.model_selection import cross_val_score, KFold
from sklearn.externals import joblib
from konlpy.tag import Okt
import numpy as n... | [
"codelife@11st.co.kr"
] | codelife@11st.co.kr |
39206f967b85c346cbdc8e07a4ef22f156337c56 | 30fd0c0bcddb7d415717d34fe6ded675e9f49ad2 | /ajax/migrations/0001_initial.py | 7816dbcc11fc0e141eb2b34caad981562ee4dc08 | [] | no_license | korol7/AjaxDemo01 | ddada7022d282485cbdb04969c9b8ebea688c355 | a17a07fe098f1b481cc8cbe7cb584c42abd87559 | refs/heads/master | 2020-06-23T09:28:56.494813 | 2019-07-24T11:28:05 | 2019-07-24T11:28:05 | 198,584,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-07-23 08:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
... | [
"korol7@163.com"
] | korol7@163.com |
a237b60b9a1ae679161fc716c8bb356fe9d09c4b | ae8d5f0e69c12c6ade83ab342cbc5ef4d8fbe6a0 | /music.py | 2c166ad4a0c915a9287238b0e00c9db9a68f4b68 | [] | no_license | andrewhml/andrewhml | 4079763d458556da1f7d0f5bcb156dd7d2e4e607 | 52f28a899e70b4f496ee9515fd1217607c0aaaeb | refs/heads/master | 2021-01-18T14:06:02.782061 | 2014-01-18T20:46:03 | 2014-01-18T20:46:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | import flask, flask.views
import os
import utilities
class Music(flask.views.MethodView):
@utilities.login_required
def get(self):
songs = os.listdir('static/music/')
return flask.render_template('music.html', songs=songs) | [
"ALee@Andrews-MacBook-Pro-5.local"
] | ALee@Andrews-MacBook-Pro-5.local |
6468b0cc701fa7e030ede8bfb8d9ff5124112991 | 6882a2b0f4ef3712f31a5ba4fdceacd69bd95954 | /MerkleTree/HashFunction.py | 79706c1a7d6962f88f341152d8167373059e48c1 | [] | no_license | derMoooooser/quantcryptlib | feb5d5187af83bb4209629a884a8f05549208521 | 6eb177eff87a035ece2919d84b17ac4b7e2c94d5 | refs/heads/master | 2020-09-28T02:15:57.820986 | 2019-12-19T18:16:03 | 2019-12-19T18:16:03 | 226,665,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | import hashlib
class Hashfunction:
def __init__(self, usedHashfunction):
if usedHashfunction == "sha512":
self.hashFunction = hashlib.sha512
self.algortihm = "sha512"
if usedHashfunction == "sha256":
self.hashFunction = hashlib.sha256
self.algorithm =... | [
"moser.sandro2@googlemail.com"
] | moser.sandro2@googlemail.com |
c8c1f0c9004e8cbb273ed57873f87de5bf01dedf | b5c05863ba3f6ff196c7184c0cd016d95d5ecaaf | /main_app/migrations/0005_review_listing.py | 5e2636de59855ea592492839029818313e3f0419 | [] | no_license | jqchiu/Project-baro | e3d9fe717814e97845db2dba9baed13d9d929d30 | 5e808fe826bdde7c4ee1dd5a429606a9bfff3a58 | refs/heads/master | 2023-03-26T23:30:41.159995 | 2021-03-24T19:46:37 | 2021-03-24T19:46:37 | 350,975,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # Generated by Django 3.1.7 on 2021-03-04 17:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main_app', '0004_auto_20210304_1731'),
]
operations = [
migrations.AddField(
model_name='review... | [
"jqchiu@yahoo.com"
] | jqchiu@yahoo.com |
9c1cbc1268b0a33d2984fca6ccc5e5a227829056 | 9665f920d79741bd2fbe12b39513d63ee3a584d0 | /MyDirectory/MyPackage/rectangle.py | ecaf583c004f10a644fa573bf0ee515da6e01663 | [] | no_license | hmwang2000/firstPython | c4997ae625b3c47d9769aa92ddc624719d5b73b5 | b4e37c3ec38c37825e8adb42ea8cbbc487347840 | refs/heads/master | 2020-04-09T02:04:24.066156 | 2019-01-02T07:06:28 | 2019-01-02T07:06:28 | 159,926,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | class rectangle():
def __init__(self, breadth, length):
self.breadth = breadth
self.length = length
def area(self):
return self.breadth * self.length
a = int(input("Enter length of rectangle: "))
b = int(input("Enter breadth of rectangle: "))
obj = rectangle(a, b)
print("Area of recta... | [
"hmwang2000@yahoo.com"
] | hmwang2000@yahoo.com |
5e6cdf4edc9dc9c9d2f8fb40591b1ad2f813a64d | 05805ab879654cdcf61df3653847f435b624dc77 | /Dictator_service/bin_gui/main_class_based_backup.py~ | 45eccae17af540925ac58c58102ba94e6188ffab | [] | no_license | Wuwqhnsya/Dictator | 3d57db6bc0138464884ddc9fe7378907ab86e3ef | 45388fec03a4acdac3620611b3bccfa3c991d65f | refs/heads/master | 2020-04-28T21:57:39.309165 | 2019-01-28T19:10:28 | 2019-01-28T19:10:28 | 175,600,478 | 1 | 0 | null | 2019-03-14T10:34:02 | 2019-03-14T10:34:02 | null | UTF-8 | Python | false | false | 31,361 | #!/usr/bin/python
import time
import threading
import time
import nmap
import multiprocessing
import os
import sys
import ConfigParser
#import mysql.connector
import MySQLdb
import atexit
import IPtable
import texttable as tt
import Simple_Logger
r = '\033[31m' #red
b = '\033[34m' #blue
g = '\033[32m' #green
y =... | [
"furqankhan08@gmail.com"
] | furqankhan08@gmail.com | |
f1261bac3ffda0033a2ba7e8d8affa0cb1de796b | 571c06f31fd8a55b4c4ad2703a67666bd22329e1 | /class2/class2soln3.py | 8f2a649788aaa477a22e306a9fd139645fc9db7e | [
"MIT"
] | permissive | TronVerma/Python-SIG-2015 | b271db8dca3a4435e5e243a1d96c08786c9df7ce | 706a92dadefc9de1b4c307712615b8db2fb131c7 | refs/heads/master | 2020-12-28T23:16:39.250385 | 2015-12-28T10:59:59 | 2015-12-28T10:59:59 | 48,688,180 | 0 | 0 | null | 2015-12-28T10:53:47 | 2015-12-28T10:53:47 | null | UTF-8 | Python | false | false | 1,032 | py | # Python SIG 2015, BMSCE, Bangalore
# Python SIG in-class assignment - Class 2 - PYA - 29-9-15
# Question by Tarun Verma
# Solution by Pranav S Bijapur
# Question statement:
# Input an angle as degrees. And find a trigonometric ratio based on users choice[out of sin, cos and tan].
# Do this 'n' times, where 'n' w... | [
"b.pranavshankar@gmail.com"
] | b.pranavshankar@gmail.com |
d1ec62a1a39029406e4931b1030ca1fc287e0ef6 | 8985ee04b6d9af28c324e1567f73b114853c3f24 | /src/ts_models/discrete_sparse/tsb.py | 077e943ef31160d8dae4d5fdca012be68999e6f5 | [] | no_license | longgb246/MLlearn | 97f242dda7a43b2b1fee8458c24f121dcbb05e08 | db2d0b05020a1fcb9f0cfaf9386f79daeaad759e | refs/heads/master | 2020-03-29T14:02:43.778113 | 2019-04-04T02:53:59 | 2019-04-04T02:53:59 | 149,995,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,492 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/10/19 9:11
# @Author : zhengdepeng
# @concat : zhengdepeng@xxx.com
# @File : crost.py.py
# @Software: PyCharm
"""
description:function to forecast intermittent demand or slow moving items series / this function
Reference :R version package,http://kou... | [
"lgb453476610@163.com"
] | lgb453476610@163.com |
61b8dbbbc2d89a236263828285aac5e64b2dec48 | e8d719fe45dfbff9cbbc4ed872832cec6cabaca6 | /128_Longest_Consecutive_Sequence.py | 1ccccaf698c6be4b9c5f01f29d570fac2016dac6 | [] | no_license | nlfox/leetcode | 64f4f48d7f4be6df0542e51cc7037df40bf184a3 | d61363f99de3d591ebc8cd94f62544a31a026d55 | refs/heads/master | 2020-12-21T01:43:01.792899 | 2016-11-14T23:10:12 | 2016-11-14T23:10:12 | 56,680,839 | 2 | 0 | null | 2016-05-17T17:16:37 | 2016-04-20T11:19:58 | Python | UTF-8 | Python | false | false | 500 | py | class Solution(object):
def longestConsecutive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums=list(set(nums))
nums.sort()
maxCnt = 1
cnt = 1
for i in xrange(1, len(nums)):
if nums[i] - 1 == nums[i - 1]:
... | [
"nlfox@msn.cn"
] | nlfox@msn.cn |
802a7327d916397d8630ea076cfee736f0d6d998 | b3a2c8dac634301c19a62c03e8e7c9de76d8b12d | /api/models/photo.py | 3c05e9f04949165ffdcb30c39255469434f3ae86 | [] | no_license | davidfisher24/cycling_climbs_api | 24f0f84376997f77a992d42a9896e3c0ff0eaf35 | e8c2326ccb30ba2e5f2898018d0cebae97e1d896 | refs/heads/master | 2022-06-15T07:22:16.195487 | 2020-02-27T15:18:02 | 2020-02-27T15:18:02 | 181,348,284 | 0 | 0 | null | 2022-05-25T04:35:53 | 2019-04-14T17:59:21 | Python | UTF-8 | Python | false | false | 850 | py | # -*- coding: utf-8 -*-
from django.conf import settings
from django.contrib.gis.db import models
from .user import User
from .climb import Climb
class Photo(models.Model):
path = models.CharField(max_length=200)
fileType = models.CharField(max_length=50)
fileSize = models.IntegerField()
text = models... | [
"davidfisher24@gmail.com"
] | davidfisher24@gmail.com |
b6e56625e4878d42c442758635bac8b3a3be6851 | 8fb840dd3cadb4684eef6532dc9cba3a48e79553 | /bag8.py | 419e9e3eb2bae73916071f76b0b9c58b81759b14 | [] | no_license | chellamuthu/beginer | ddbfa588193b00a53ecf90e61f9421eec8fc8156 | ed4eb07b1ff257b471c8e3d0343ee6ecb86aa577 | refs/heads/master | 2020-06-05T03:08:25.917456 | 2019-06-18T08:56:02 | 2019-06-18T08:56:02 | 192,292,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | p=int(input())
q=list(map(int,input().split()))
r=[]
for i in q:
if(i==l.index(i)):
r.append(i)
print(*(sorted(r)))
if(len(r)==0):
print(-1)
| [
"noreply@github.com"
] | noreply@github.com |
360826c9d54c53412f463d98e4c247151a877b01 | 16d159d6d3fe69d513717caad3e2c21320f93224 | /AtCoder/ABC/ABC101-150/abc141/abc141b.py | 23b49e7105c52df065df47863ad2a802a189189d | [] | no_license | tsushiy/competitive-programming-submissions | d4f068a5157c0de0f1822367e0ca66dd978e43f9 | 9011d855d9252134179cc9cc8f328f6e0ca32407 | refs/heads/master | 2023-04-11T08:34:01.015316 | 2021-04-11T15:16:17 | 2021-04-11T15:17:35 | 175,807,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | s = input()
flag = True
for i, e in enumerate(s):
if i%2==0 and e not in "RUD":
flag = False
elif i%2==1 and e not in "LUD":
flag = False
if flag:
print("Yes")
else:
print("No") | [
"28962399+tsushiy@users.noreply.github.com"
] | 28962399+tsushiy@users.noreply.github.com |
57538fabfad0775b8be6d941a451d0ff719a9026 | 1e13e9e2d7e053ee0e62e15ba1fcdbdd4ed34b33 | /analyze.py | 3b9acb67d8a55593670f1a5f6dfa903620ea3c2d | [] | no_license | colelemahieu/PHSX815_Project4 | 66d594fcb7ea8c5913da1ff2998e02f3708c23f3 | d095c7ae2cb6e730a49221a6fc36a4c4e4d9142a | refs/heads/main | 2023-04-21T02:10:42.102589 | 2021-05-11T00:59:37 | 2021-05-11T00:59:37 | 364,025,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,268 | py | # Cole Le Mahieu Project 4 - analyze.py
# import packages
import sys
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
from scipy.stats import norm
from math import *
from fractions import Fraction
from Random import Random
# instantiate random class
random = Random()
# get file input... | [
"colelemahieu@ku.edu"
] | colelemahieu@ku.edu |
077b6aa36383cc68bf8c5562d9736eb525f7d7ad | 6b28c27b59783878058e4beb25b8fa226e255ddd | /settings.py | 0a890b269120b37a1e097e330d46714359a6a950 | [] | no_license | danrocha/techlabs-data-scraping | 3dd14aab2d376a234fed34cfb462bc88e2e9b15b | ecacd1cff401b4cd5c51dcdab88dea5ff85eeadc | refs/heads/master | 2022-09-29T11:56:55.745040 | 2020-05-31T11:04:34 | 2020-05-31T11:04:34 | 268,254,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | ROTATING_PROXY_LIST_PATH = 'proxies/proxies.txt'
DOWNLOADER_MIDDLEWARES = {
'rotating_proxies.middlewares.RotatingProxyMiddleware': 610,
}
| [
"danrocha@gmail.com"
] | danrocha@gmail.com |
0624e309b69581086dc11b357a9e2a102f5fd625 | c69d8437285433dcda76e02f45af83ca2af39008 | /1-intro/solution-2.py | 08026a6d837f11472fb94ad5aae1d009ec9fb509 | [] | no_license | SvetiStefan/Data_Science_Workshop | 67bfcb930e42cb76bda9d1011b73a8cc30a2f162 | 467b3e38a8cb22f6b3d66794aedc8e383ff4f1ed | refs/heads/master | 2021-05-05T09:37:03.041986 | 2015-05-20T07:33:54 | 2015-05-20T07:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | from BanditGame import BanditGame
class PlayBandit(object):
def __init__(self):
self.__bandit = BanditGame()
self.__celling = self.__bandit.celling()
self.__arm_num = self.__bandit.arm_num()
self.__stat = {}
for arm in range(1, self.__arm_num+1):
self.__stat[arm] = [0, 0, 0] # total, win, profit
def pl... | [
"azeng@thoughtworks.com"
] | azeng@thoughtworks.com |
0e6972ba1814b181834b8a4ee83c1c2e340dec69 | 088cb86a097b2c385967774473b1ca033665c1e8 | /Milky Way/HI4PI/get_cubeinfo.py | 49bb44a2a0ea671c50f4a3851c5f48bfda665b82 | [] | no_license | rushisy/Milky-Way | 4796976dfd897b53de80a28a7726956acaf430d7 | 55a28858a6911f52350b26ab68f4e9710a103b29 | refs/heads/main | 2023-08-01T04:23:30.260060 | 2023-07-19T09:45:36 | 2023-07-19T09:45:36 | 668,033,669 | 1 | 0 | null | 2023-07-18T21:37:11 | 2023-07-18T21:37:10 | null | UTF-8 | Python | false | false | 3,678 | py | from __future__ import print_function
import sys
import astropy.wcs as wcs
import numpy as np
# a function to read in header and generate RA, DEC and VLSR array
def get_cubeinfo(header, returnHeader=False, origin=1):
'''
A function created to parse the RA, DEC, (and velocity) information from the 2D (3D) head... | [
"72711330+tvh0021@users.noreply.github.com"
] | 72711330+tvh0021@users.noreply.github.com |
6e6e1991a34c11354f69814d4470d27f07744b55 | 8e02228b5857d876de244d37b1d6ec3bbd21227e | /python_modules/dagit/dagit_tests/test_debug_cli.py | 8131baa4613455e33bad678940c7646f893f743e | [
"Apache-2.0"
] | permissive | ChocoletMousse/dagster | 4af255d5ab99c25d1a2be379a5bbd83fa3221b64 | a256cb43cde0ab5a800a87ee1f55de560587a4ab | refs/heads/master | 2022-12-26T00:04:31.172150 | 2020-09-25T21:36:15 | 2020-09-26T02:15:35 | 297,765,844 | 1 | 0 | Apache-2.0 | 2020-09-22T20:35:23 | 2020-09-22T20:35:22 | null | UTF-8 | Python | false | false | 1,226 | py | from os import path
from click.testing import CliRunner
from dagit.debug import dagit_debug_command
from gevent import pywsgi
from dagster import execute_pipeline, lambda_solid, pipeline
from dagster.cli.debug import export_command
from dagster.core.test_utils import instance_for_test
@lambda_solid
def emit_one():
... | [
"alex@elementl.com"
] | alex@elementl.com |
a78952e8a65a5fb38a96c2e3d790e98d291adb7b | 70b2f8731dc39bd02eed6fde857d5d59fe7ce4bf | /qa/rpc-tests/wallet-dump.py | 4ae601e270ad54df2829d761fb03534361664655 | [
"MIT"
] | permissive | RegulusBit/coinium | a441b6d77d25ec7124b0ee0ebcb226fc9ef6ae2f | 13472e0f83c469ca83c2d1023e7308032de5f514 | refs/heads/master | 2020-03-19T20:39:32.745303 | 2018-06-11T11:35:18 | 2018-06-11T11:35:18 | 136,910,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,788 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Coinium Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import CoiniumTestFramework
from test_framework.util import (start_nodes, s... | [
"icdct1995@gmail.com"
] | icdct1995@gmail.com |
6e90feef68bd9864371fd4f53ab78f6764ab0edf | d51d147245aeddc1f4f45398239be06471ed82e9 | /blog/forms.py | 071c75dee7bded539448e529695537c2b645df9e | [] | no_license | TanyaOl/my-blog | e7739b5273d44a7a46db8adf38ade39173dbca17 | c51a2430dc030f7abcdb3fa65d55795167416a0e | refs/heads/master | 2020-04-05T14:05:48.147690 | 2017-06-29T06:40:33 | 2017-06-29T06:40:33 | 94,765,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from django import forms
from .models import Post, Comment
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ('title', 'text',)
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
fields = ('author', 'text',) | [
"oltanyaleon@gmail.com"
] | oltanyaleon@gmail.com |
08a6fe350bd23f142bad00a4690285eba2230d71 | a9dc497a723917d4256ef15b2e9c3cf88a3fae4f | /GPinv/mean_functions.py | e2f7bd94404647f0cc8161fe0941bcca89455f3f | [
"Apache-2.0"
] | permissive | chaoshunh/GPinv | 83b8773870f7ccc8a636fc88ac9a96acfa306c54 | e46964991459cb43752cd344c18be0e197d439f8 | refs/heads/master | 2023-03-16T06:42:39.966449 | 2016-10-15T05:39:58 | 2016-10-15T05:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,458 | py | import tensorflow as tf
import numpy as np
from GPflow import mean_functions
from GPflow.param import Param,ParamList
from GPflow._settings import settings
float_type = settings.dtypes.float_type
np_float_type = np.float32 if float_type is tf.float32 else np.float64
class MeanFunction(mean_functions.MeanFunction):
... | [
"fujiisoup@gmail.com"
] | fujiisoup@gmail.com |
5287d112eb1165a9727401db4b2e285cb26d3f96 | 9be65e97001b43bccf3cf91105a06968d4c625f2 | /case/conftest.py | 778a0121a3427682c9a1c45ef5f38fcbc7b7aca7 | [] | no_license | JaosnGithub/web_auto | d970d8e300407dbcc185b3240b4889c49c595f82 | c5c6f2146212fe352e6201cf3b5f456fd5c5de60 | refs/heads/master | 2023-05-13T15:53:37.711109 | 2021-06-06T05:49:58 | 2021-06-06T05:49:58 | 373,768,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | import pytest
from selenium import webdriver
from time import sleep
from pages.register_page import RegisterPage
from pages.users_login_page import UsersLoginPage
from pages.users_feedbackiframe_page import UsersFeedbackiframePage
from pages.users_userinfo_page import UsersUserinfoPage
from common.connect_mysql import ... | [
"928371344@qq.com"
] | 928371344@qq.com |
8f1ad2f8765959e86316c7bf0ab8d91cc8ace7c1 | 8fc2ab3d29a30e603e19b30bb9517928de529167 | /recursion_count7.py | da54e1e6515b053de42599e4a335a9a73680a757 | [] | no_license | rushilchugh/Practise | 35a9861bec6786580dc0a440eb25d78e43cb7bc9 | 98fd593b95dad641bef1d519c6c6ed1daaae630f | refs/heads/master | 2020-03-13T21:14:14.013604 | 2018-04-27T12:23:50 | 2018-04-27T12:23:50 | 131,291,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | __author__ = 'Rushil'
def count7(n):
if n == 0:
return 0
if n%10 == 7:
return 1 + count7(n//10)
else:
return count7(n//10)
print(count7(77177)) | [
"noreply@github.com"
] | noreply@github.com |
e7a6f45aaa3d3894d2088adac960ef035895b62e | 8b135fc7922750f90bf89c2afd78e827d2744fd3 | /lab2/resolution.py | 241b34ffdf8aa50b0d376e65a9eb0fa23e144d45 | [] | no_license | m43/fer-ui | 3659dde03e20aa3d66c63746ac59f3f75aab504d | 8a5fe9ac945c262bc4f0c2089001369440f53021 | refs/heads/master | 2022-11-12T12:49:53.339396 | 2020-06-26T21:20:45 | 2020-06-26T21:20:45 | 249,174,128 | 0 | 0 | null | 2020-06-26T21:20:46 | 2020-03-22T12:01:42 | Python | UTF-8 | Python | false | false | 5,961 | py | import itertools
from clause import Clause
class Resolution:
horizontal_line = "=" * 13 + "\n"
clause_counter = 0
@staticmethod
def check_deduction(facts, goal_clause, debug: bool = False) -> (str, str):
output = ""
(prove_true, steps_true) = Resolution.refute_by_resolution_proof(fac... | [
"frano.rajich@gmail.com"
] | frano.rajich@gmail.com |
63c238fb79bd102fc4c18ace975c001acfa866d3 | cc1b87f9368e96e9b3ecfd5e0822d0037e60ac69 | /dashboard/dashboard/pinpoint/models/change/commit.py | aca059a9444f5d268ace099bd531f27d6f1d8525 | [
"BSD-3-Clause"
] | permissive | CTJyeh/catapult | bd710fb413b9058a7eae6073fe97a502546bbefe | c98b1ee7e410b2fb2f7dc9e2eb01804cf7c94fcb | refs/heads/master | 2020-08-19T21:57:40.981513 | 2019-10-17T09:51:09 | 2019-10-17T18:30:16 | 215,957,813 | 1 | 0 | BSD-3-Clause | 2019-10-18T06:41:19 | 2019-10-18T06:41:17 | null | UTF-8 | Python | false | false | 12,099 | py | # Copyright 2016 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.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import collections
import datetime
import re
f... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
4a0c1e8d1a92ee27a6cdebe5957353eb350f8112 | 858d847c028b278393828a10ea52880874c64977 | /backend/models.py | 1a7731f1ead7293a046fe04ff3db51c9534aa53a | [] | no_license | cedwin/UofAMaps | 92dac57e13bb1c4cb976cef08cad60df7506d4cb | 6d2a6de472a92a3573643a0199a34abb1e03c2ea | refs/heads/master | 2020-06-06T05:00:10.772275 | 2013-04-11T01:07:40 | 2013-04-11T01:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # Create your models here.
"""
For Example:
import datetime
from django.utils import timezone
from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __unicode__(self):
return self.question
def ... | [
"edwin.chung@ualberta.ca"
] | edwin.chung@ualberta.ca |
a47b26b0f1e2d0a3d1782d125848d850a0a4748b | bc9e5cbc7ca6c5e6f2b4acffffc787862e9da33d | /abay/decorators.py | 77cdc52237763dbf58631808f5077d406aa1511b | [] | no_license | ZeeshanSameed/Online-Shopping | b5f25377749a91fa4fd52fa57db9fd6916cb645f | 7a1651f8a27edd029d449852bcb79778ce1ef09b | refs/heads/master | 2020-11-28T23:01:54.757991 | 2020-01-23T10:12:22 | 2020-01-23T10:12:22 | 229,943,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | from django.contrib.auth import REDIRECT_FIELD_NAME
from django.contrib.auth.decorators import user_passes_test
# def customer_required(function=None, redirect_field_name=REDIRECT_FIELD_NAME, login_url='login'):
# '''
# Decorator for views that checks that the logged in user is a customer,
# redirects to ... | [
"zeeshanmalik6061@gmail.com"
] | zeeshanmalik6061@gmail.com |
f0ed2475d298322f885931e2c382287437b8f4b4 | 7fd8a754179c5afcede6d86a6c5bde3e857977c5 | /utils/algos.py | 926f1818bb0ae932e92014eb31ca7eafbb6c5457 | [] | no_license | KevinDelcourt/M1AlgoAvanceeTP3 | 9f084f6c8ba3a904d3d969eb45e1f63511e2d54e | 42cd7ddb5a32a19e814ed5365bd3196c624ccbf3 | refs/heads/master | 2020-09-23T06:16:22.205014 | 2019-12-03T12:14:29 | 2019-12-03T12:14:29 | 225,425,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | from utils.tabou import Tabou
from utils.log import Log
import math
def steepest_hill_climbing(problem, depart, args=(math.inf), log=None):
(max_depl) = args
if log is None:
log = Log()
log.write("START Steepest Hill Climbing", 2)
log.write("MAX_DEPL = %s" % str(max_depl), 3)
log.write(pr... | [
"delcokevgmail.com"
] | delcokevgmail.com |
09ebae87ad75de364e87d977675ff1986faa59cc | 0e9dc11e7b352616b17be94499777868cf83507a | /manage.py | 5c58500a321d6150bf390abd6bcdea8b06829fad | [
"MIT"
] | permissive | babygame0ver/kisanmill | 52a782d50638da14cf631dd2617c553d098c8a3b | 55a0cfc35ae31851b62fed5766b27cb5c931f1f2 | refs/heads/master | 2021-08-22T16:47:37.119128 | 2020-02-03T06:32:15 | 2020-02-03T06:32:15 | 115,346,138 | 0 | 0 | MIT | 2018-02-26T10:18:15 | 2017-12-25T15:08:28 | Python | UTF-8 | Python | false | false | 807 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kisanmill.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that th... | [
"Akshatkathpal29@gmail.com"
] | Akshatkathpal29@gmail.com |
472044e752d68a4fdb699ce05e0e059b80d169c0 | 7882ca50a06197dcbf0490c0318083e0a90f9f84 | /cython/wrap_arrays/test_cython_wrapper.py | 366b02fbedb75e936290d32cd6d39165d607e3ba | [
"MIT"
] | permissive | hannesk95/Python-Interface-Cpp | c8637a4c0c597b9b56facafeba7888ebc5ecb04a | 398eab0c6e7f5e0358edb6644c71b5fdc6b2606a | refs/heads/master | 2022-03-08T15:35:58.597336 | 2019-11-09T18:11:10 | 2019-11-09T18:11:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | # coding=utf-8
import cyfastlz
def test_compress_and_decompress_roundtrip():
# Beginning of the United States Constitution
text ="""We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welf... | [
"todd.leonhardt@gmail.com"
] | todd.leonhardt@gmail.com |
ba5d92c4fd39fbc617bcf12b86af2334631f9a34 | 306dc56bdbe12120541ec0ad80cf6e428ded2d0c | /LastQue!/connect7.py | 34d3a54688e069e243bd9b468b07e056267fca73 | [] | no_license | DevTotti/Challenges | bf286b11a5405c0ae8853e00b6c4024149a77be8 | 448521de19d48ad7d061ae33c87838d661c67868 | refs/heads/master | 2020-06-21T00:37:15.330204 | 2019-07-17T02:39:14 | 2019-07-17T02:39:14 | 197,300,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | import mechanicalsoup
import re
import json
import csv, sys
import requests
from statistics import mean
import numpy as np
from sklearn import preprocessing, cross_validation, neighbors
import pandas as pd
import scipy
import scipy.stats as st
from scipy.spatial.distance import cdist
from scipy.interpolate import *
imp... | [
"paul.bIncoM@gmail.com"
] | paul.bIncoM@gmail.com |
ac820e4c6e6081439f4a5a313f11126d907dcfb9 | 561b57b8dbad7b02898032a115825c37f3125062 | /summarization/text_media_matching/text_media_matcher.py | 33f8f0d1fd253fe42f98b37de48d7c74ec33e2ad | [
"Apache-2.0"
] | permissive | DanisHack/stampify | c2c687dbb992b870c2d55669fdc3249f6991a2fb | 95f95ec98aa3f0b05d8ad39ce5dd3d89858b4488 | refs/heads/master | 2022-11-20T17:47:13.002219 | 2020-07-22T10:00:49 | 2020-07-22T10:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | ''' Text Media Matching interface '''
from summarization.text_media_matching.text_media_matching_helper import \
TextMediaMatchingHelper
from summarization.text_media_matching.text_media_matching_preprocessor import \
TextMediaMatchingPreprocessor # noqa
class TextMediaMatcher:
'''Class to integrate the... | [
"noreply@github.com"
] | noreply@github.com |
124725afdc57143c28ced035f0eb881c79dd09dc | 71a52f9b7e6ed03530f2129683934b4870804161 | /MainApplication.py | 1525c49e156a77a28116acf8afd2fc20a617e7c8 | [] | no_license | freelancer1845/qtcarpi | b0d821cb8a4f947a941399436d10a94d330b712b | 9b48e29d97946e5cf0c3fb5ae2b415f07372d139 | refs/heads/master | 2020-12-25T19:03:17.444436 | 2017-07-18T22:47:49 | 2017-07-18T22:47:49 | 94,020,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | '''
Created on 10.06.2017
@author: Jascha Riedel
'''
from PyQt5 import QtCore
from PyQt5.Qt import QApplication, QFontDatabase
from Gui.MainWindow import MainWindow
from Backend.core.MainController import MainController
from PyQt5.QtCore import qCritical
from PyQt5.QtCore import qDebug
from PyQt5.QtCore imp... | [
"jaschelite@googlemail.com"
] | jaschelite@googlemail.com |
8aa3830b5d6e6b36ef4f824227075add2a5fdede | 77219e66e51301e5022b8727fc153a339f88c4e6 | /simple_https_server.py | feffda6cace90025f8cdeaea4571f51594fc6718 | [] | no_license | cantino/ultrastound | 0e2b9469c23f35bee2e18d0ceb5fbcd3dda41b21 | 127d6c2053e66dd3679eb4bdceb3a5b74b9ee516 | refs/heads/master | 2020-08-21T22:26:08.309826 | 2019-10-20T21:44:47 | 2019-10-20T21:44:56 | 216,260,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | # taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
... | [
"michael.eickenberg@gmail.com"
] | michael.eickenberg@gmail.com |
6f18a172071f40d653790e315d7b142c8fb1f080 | fb85171300753fac73096baed13f2380928a3f48 | /mipt2019-bird-aircraft/model4.py | 4070dc61b56871fbc6fb8ff599cb82c5ad7a2d02 | [] | no_license | pvva/kaggle | 1809ba9197fba71c8f39a420007585572a3c6e9e | b8fb59f5e068ba9a0c5da6c45b7cc1d8a51d396a | refs/heads/master | 2020-06-24T19:58:00.331887 | 2019-08-24T07:04:43 | 2019-08-24T07:04:43 | 199,069,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,146 | py | import pandas as pd
import numpy as np
from pandas.api.types import is_string_dtype
import torch
import torch.nn as nn
import random
from PIL import Image
# Competition: https://www.kaggle.com/c/mipt2019-bird-aircraft
# This model gives score of 0.93
def convert_strings_to_categories_codes(df):
for n, c in df.i... | [
"dae.fromru@gmail.com"
] | dae.fromru@gmail.com |
670cf57ba7c63646b289b947011568ca7a22145d | 9df2b97e7010995945565dc29c41a3fde41720d3 | /plugin.video.salts/default.py | f0c927345ce1bb40fd038689504f5aa516d904b9 | [] | no_license | Kodi-4-Beginners/tknorris-beta-repo | 8c00f5e1e80c09279c4f91794b9041a27d1815a0 | 9e76f396fb0832c2ef4f204fc95b63af6763f405 | refs/heads/master | 2021-01-17T07:55:26.934163 | 2015-02-04T02:49:58 | 2015-02-04T02:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94,741 | py | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
T... | [
"tknorris@gmail.com"
] | tknorris@gmail.com |
2d90be2e1a6b6bc6c2fe03c9b529449c1127a540 | fd0604a74b72e273e194cae9145b4a299d2e1858 | /cogs/helpers/context.py | e5289d13bd928bfaecd26cf9b74ac09ac4cc12da | [] | no_license | DuckHunt-discord/DuckHunt-Community-Rewrite | 4610f0f5a503ae072b6092ddd031264842c6919c | c53ed8c994527052bcf588824ce6519280974056 | refs/heads/master | 2020-03-23T05:14:02.442187 | 2018-11-03T00:37:17 | 2018-11-03T00:37:17 | 141,131,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | import logging
from discord.ext import commands
class CustomContext(commands.Context):
def __init__(self, **attrs):
super().__init__(**attrs)
@property
def logger(self):
# Copy that to log
if self.channel:
cname = self.channel.name
else:
cname = "... | [
"jovart.arthur@gmail.com"
] | jovart.arthur@gmail.com |
a87152f3a008ec4832177a68b36f5aa27bf07c1b | cda43bf6a84f7e55fab26aa70cda934683a51fe5 | /MainMajor/cifar_loader.py | fa597d04eb30e7dc0e3b560acb21758dfb94fd31 | [] | no_license | nikolaosdionelis/NeuralNetworksNNs | abb55622882e31c8d130a8986868b3d19ede186f | 8a217490ad5bb3f7fccf4002c6b43a06c1e562fc | refs/heads/master | 2022-11-13T00:50:23.578197 | 2020-07-12T18:52:20 | 2020-07-12T18:52:20 | 279,042,013 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | py | """
Utilities for downloading and unpacking the CIFAR-10 dataset, originally published
by Krizhevsky et al. and hosted here: https://www.cs.toronto.edu/~kriz/cifar.html
"""
import os
import sys
import tarfile
from six.moves import urllib
import numpy as np
def maybe_download_and_extract(data_dir, url='http://www.cs.t... | [
"noreply@github.com"
] | noreply@github.com |
4027ced29368e990c7c98471953733e5bd69a38f | a6adb794ac4fe4a1c86326a8c39ccfb59afc6910 | /torch/account/models.py | 2bdcf45333e1e030bb3890d041272bb55dc114cf | [] | no_license | studioaceofspade/Torch | f5755cee7cd3e5b4b8a55e57fc28499cd1149a46 | f100efabbbc9a5ef36be29455f9f2a3fa6f12f44 | refs/heads/master | 2021-01-10T03:30:43.897377 | 2013-03-25T15:33:15 | 2013-03-25T15:33:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | import uuid
from textwrap import dedent
from django.contrib.auth.models import User
from django.core.mail import send_mail as django_send_mail
def send_email(username):
user = User.objects.get(
username=username,
)
new_password = str(uuid.uuid4())
user.set_password(new_password)
user.save... | [
"jason.ward@policystat.com"
] | jason.ward@policystat.com |
a4722baba6cd04f17782bc06165709521c841af1 | ba38d0a0653860c5eabf2b4f6575a26936631e50 | /models/state.py | 6d56f4588aa4225d90d17f097b2e5135e325e6f6 | [] | no_license | fernandogmo/AirBnB_clone | b0918e678b35aa627e52c4bbdf84099efe793472 | 0b49fea9a54d1e608796d3073e830abc9162414e | refs/heads/master | 2020-04-23T00:33:20.205216 | 2019-04-01T04:15:58 | 2019-04-01T04:15:58 | 170,783,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | #!/usr/bin/python3
"""Entry point for State"""
from models.base_model import BaseModel
class State(BaseModel):
"""Basic state class.
Args:
*args: Variable length argument list.
**kwargs: Arbitrary keyword arguments.
Attributes:
name (str): State name (in unknown format).
To... | [
"542@holbertonschool.com"
] | 542@holbertonschool.com |
8064b3ab94bba0206c0df6abb5ec6f15205ccb42 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2023_06_01_preview/operations/_registry_environment_containers_operations.py | 3d50fb87236f18b2d65c3947e9abaf674c8455ba | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",... | 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 | 29,392 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
84daa4bab698d61d1a3138546b6930b0d72f9d13 | d7545d4505a4aec91eaa07aaf3edc749b5bb4b62 | /music/migrations/0002_song_is_favorite.py | 42589568d3beec4e5760a6e6a9fd4ec0ad7b14eb | [] | no_license | cbicsabi/django-tutorial | d0ff1172770a79274116b8a1bb14b5278ddc1328 | e37d6bf72a4cc6d631df796e8a6279b770a6fb60 | refs/heads/master | 2021-01-19T06:14:55.123607 | 2016-07-28T11:32:02 | 2016-07-28T11:32:02 | 64,380,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-07-26 07:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"cbicsabi@EN61061.endava.net"
] | cbicsabi@EN61061.endava.net |
31179b3b337c588adca95e89088525bd446ce1e8 | b01182728eb4a657f9bd8974ba8508010cc8173e | /manage.py | 314bde693826fb496c2d2cd9215db691ca17844c | [
"BSD-3-Clause"
] | permissive | pombredanne/django-buildbot | 459a6d8a942c8c5f857626f4772010a3aaba2a6e | 660ec35473aec081428a115eab6460f5a1cd2a0d | refs/heads/master | 2021-01-17T19:57:01.296286 | 2014-07-29T06:25:03 | 2014-07-29T06:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djbuildbot.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"xordoquy@linovia.com"
] | xordoquy@linovia.com |
5346399c6a993b187ca9da9efc14b634abbd2bac | 7af63d1e9dd24c5c0e6d6068f3e0e2c1d6fa2edb | /DFS.py | 467c97dd58a88ab52467534c383f798f49835331 | [] | no_license | festoni/MazezamSolvers | 3d8e5cede35d4905f85e9258cb1ecc9baea140fe | 98af79b7c66a7efed5889482fba990c8acf557cf | refs/heads/master | 2020-03-11T05:53:57.829318 | 2018-04-16T22:59:13 | 2018-04-16T22:59:13 | 129,815,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,202 | py | from BFS import neighbors, is_goal
import time
import rank, unrank, read
def DFS(start, goal, verbose=False):
frontier = []
frontier.append([start])
while frontier:
path = frontier.pop() #select and remove last path from frontier
last_vertex = path[-1]
if is_goal(last_vertex, goal):... | [
"fkastrati13@simons-rock.edu"
] | fkastrati13@simons-rock.edu |
7b7715f3d80d8e535313168fe923e4fea3b9e139 | 11619024d15b244e37174afdf0809e6330ea9262 | /triangle_match_12f.py | f48aa9c55295411080532514020f9b657b108035 | [] | no_license | StellEdge/RETINATCH | 30dcf6b1a3195e94555e4933f77e079f84898c99 | b42fa23c07d2b24d2481bc50f5478dc42fdd2338 | refs/heads/master | 2022-10-13T00:27:41.411276 | 2020-06-12T09:09:26 | 2020-06-12T09:09:26 | 263,220,053 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | import random
import numpy as np
import math
def build_baseline_vectors_model(model_bifur_map):
'''
:param model_bifur_map: the bifurcation point map of model, include n points.
:return: all possible baseline vectors. len = n/2
'''
points = []
h,w = model_bifur_map.shape
for i in... | [
"noreply@github.com"
] | noreply@github.com |
376417249c8ac5cf00d9b98b39fc07556b64b0fa | 2875f9e36a4849aa2a46e30ec7997fbbe5d0c8ec | /kaigo_scraping/tests/test_kihon_page.py | d9a0f2bd98da77dc21929a41c55dcad0b56ed695 | [
"MIT"
] | permissive | msuz/sandbox | 86a58a7e22f5597d52141f71dcc10debca8045c2 | c2a1eb9326ff932dca15c2ee51b9e58f0e155e9f | refs/heads/master | 2023-05-11T16:43:49.733336 | 2022-10-07T06:21:24 | 2022-10-07T06:21:24 | 170,093,502 | 0 | 0 | MIT | 2023-05-01T22:17:04 | 2019-02-11T08:28:46 | Jupyter Notebook | UTF-8 | Python | false | false | 24,867 | py | # coding: UTF-8
from unittest import TestCase
from kaigokensaku.kihon_page import KihonPage
from bs4 import BeautifulSoup
class TestKihonPage(TestCase):
def test_parse(self):
f = open('testdata/kihon_01-0171000268-00-022.html', 'r')
page_text = f.read()
f.close()
self.assertTrue('... | [
"m.suzuki@datumstudio.jp"
] | m.suzuki@datumstudio.jp |
c377555c2f0b5965254d6b7ac73814194212cf28 | 2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5 | /archive/298BinaryTreeLongestConsecutiveSequence.py | 92d9aa4d93f3055c85599dd48eacc42d05e24958 | [] | no_license | doraemon1293/Leetcode | 924b19f840085a80a9e8c0092d340b69aba7a764 | 48ba21799f63225c104f649c3871444a29ab978a | refs/heads/master | 2022-10-01T16:20:07.588092 | 2022-09-08T02:44:56 | 2022-09-08T02:44:56 | 122,086,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | # coding=utf-8
'''
Created on 2017�?6�?16�?
@author: Administrator
'''
from data_structure.Tree import list_to_tree
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def longe... | [
"yanhuang1293@gmail.com"
] | yanhuang1293@gmail.com |
96d43f1a35c9c9165c78ba179013dff2edcaf777 | 69dfda87224e60e2e6a6c69a393ff6f62d533049 | /common/metrics.py | 33f260401ceb6c34531f830b1b861ad8ab67f499 | [] | no_license | markmo/federated_trainer | 49d6de3ccff59575bddde6fc38845e2100c32990 | b2a1733a914e3c43d4ab7393fea30515389bf8a4 | refs/heads/master | 2020-05-19T07:10:38.553656 | 2019-05-11T10:46:00 | 2019-05-11T10:46:00 | 184,891,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | import numpy as np
def mean_squared_error(y_pred, y_true):
return np.mean((y_pred - y_true) ** 2)
| [
"markmo@me.com"
] | markmo@me.com |
78b336ee659a5392d2c1a77ed2af305e5d3a4b19 | 412541bcc726c8deb5a2850fb81361bd13b994aa | /todosList/manage.py | d1634d0a9d8ce5fe7601757b88519f6abe5a4003 | [] | no_license | saswata04/Todos-List | c3cc44354aa4aec3ed67dafcc754d1125379b0c1 | 36cfdb5144205a236a4f0f64a2a04c1edfcdbc4e | refs/heads/master | 2023-01-14T16:49:56.837980 | 2020-11-10T15:49:08 | 2020-11-10T15:49:08 | 311,587,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'todosList.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"saswata04das@gmail.com"
] | saswata04das@gmail.com |
3ed68fbcf32ccdb5921f710be52a098dc739463d | c46754b9600a12df4f9d7a6320dfc19aa96b1e1d | /examples/research_projects/xtreme-s/run_xtreme_s.py | f00286f3d2b831ad00d7e351354baf7ed9f578c8 | [
"Apache-2.0"
] | permissive | huggingface/transformers | ccd52a0d7c59e5f13205f32fd96f55743ebc8814 | 4fa0aff21ee083d0197a898cdf17ff476fae2ac3 | refs/heads/main | 2023-09-05T19:47:38.981127 | 2023-09-05T19:21:33 | 2023-09-05T19:21:33 | 155,220,641 | 102,193 | 22,284 | Apache-2.0 | 2023-09-14T20:44:49 | 2018-10-29T13:56:00 | Python | UTF-8 | Python | false | false | 38,649 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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/LI... | [
"noreply@github.com"
] | noreply@github.com |
1100682aa5e7b61c6a35f3946000cc9cbe00a907 | cd428d1bc2ea05361d8d05b71db77f42aae327ff | /websiteqna/migrations/0006_delete_question.py | b02490943a597a3133df011200777b5386e0ef5e | [] | no_license | edmund-project/websiteqna | 43dc5fcb6cf19fd7bfb33f102444a863e349cc2a | f76046e3770093592b768d799fc4ba4d9cec362d | refs/heads/main | 2023-02-02T08:09:18.175228 | 2020-12-18T03:50:35 | 2020-12-18T03:50:35 | 321,672,541 | 0 | 0 | null | 2020-12-16T08:45:05 | 2020-12-15T13:14:36 | Python | UTF-8 | Python | false | false | 307 | py | # Generated by Django 2.2.12 on 2020-12-13 12:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('websiteqna', '0005_question'),
]
operations = [
migrations.DeleteModel(
name='Question',
),
]
| [
"noreply@github.com"
] | noreply@github.com |
36c7630adaee0011f298f2b5daaa682935d10da2 | 76b983258793d294b81791ebe72591bfebf78625 | /tools/pesearch.py | d6b57f8548ff6441b7acce963e476872846cc4ae | [
"BSD-2-Clause"
] | permissive | lotusexpeditor/syringe | 18ac9cb800a7fefb7d67e31936db6a84e47df9eb | 34a8386b90f534f9a856d0a436bba04dbf5100bd | refs/heads/master | 2023-02-08T10:08:20.295797 | 2020-12-27T00:06:09 | 2020-12-27T00:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,743 | py | import os,sys
import pecoff
from ptypes import utils
def traverse_address(address):
def edges(self, address=address, **kwargs):
if not isinstance(self, ptypes.ptype.container):
return
for item in self.value:
if item.contains(address):
yield item
c... | [
"arizvisa@gmail.com"
] | arizvisa@gmail.com |
5db7a4d5bc8b5b4506ae04cc4d6726faf70ef396 | ac986496e4bddf66750ea99a8027bb3dbd382e7f | /tests/__init__.py | 6ac9b1b78373169eff72dbc47c7888f6d4265e93 | [] | no_license | finleysg/clubmanager-api | d79d807b76ba9d187f85f34685216db700be47d4 | 1290c34d26a3ceaed7779641b71831f8e74e7150 | refs/heads/master | 2022-02-23T07:51:22.403353 | 2020-08-04T01:29:33 | 2020-08-04T01:29:33 | 45,760,454 | 0 | 0 | null | 2022-02-10T07:25:38 | 2015-11-08T00:18:58 | Python | UTF-8 | Python | false | false | 31 | py | from .test_course_api import *
| [
"stuart.finley@genmills.com"
] | stuart.finley@genmills.com |
f0307bbf78ac3d22c095c0416010a131c8bb6ac3 | f71c6c5e75de1d9037217a0f2fe13bfad9bc7944 | /tesserocr_content/zhiwang_tesserocr.py | 06bb2eabc5f2c52b38f90fe8728d7c382762118f | [] | no_license | fubst0318/webscrawl_cn | 8bbc3d868bf5f2436777c5b074145287a2069c95 | cd739d36c5c1b165afa88abc014eba2f0b9bd486 | refs/heads/master | 2021-06-03T08:40:16.713386 | 2020-08-22T04:05:41 | 2020-08-22T04:05:41 | 138,358,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
这里使用tesserocr 来自动识别验证码
"""
import tesserocr
from PIL import Image
if __name__ =='__main__':
image = Image.open('yanzhen.jpg')
result = tesserocr.image_to_text(image)
print(result) | [
"fubst0318@126.com"
] | fubst0318@126.com |
d4b650487c8b2faac33fd12b4eef7bd65383809f | c8af9216f711491a1c9c4ae0cae43a70ed0c5ad7 | /env/bin/easy_install | 8df3ce3fbf852edf26b553bff4e4570cd79ee530 | [] | no_license | qodecraft/flaskblog | 79f6ee9b3bd34f7827ef28106e18de32933de6b1 | 00eef396578a959f0724079e7f26f8b70971d1f5 | refs/heads/master | 2021-08-17T16:13:53.215662 | 2021-07-26T12:55:31 | 2021-07-26T12:55:31 | 86,850,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/home/kyanam/Desktop/RP/flaskblog/env/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"karan.kyanam@gmail.com"
] | karan.kyanam@gmail.com | |
ef66bd008737521cb889d975cc0f44db6d49fc27 | e5c3772f5d70eb4eaba69261c0a6af9e522aad3c | /proj_euler/problems/p107.py | fe689cbf141ae070d58eae9829d85f015b9d5747 | [] | no_license | ztalloC/ProjectEuler | 60b1600150a2f7256b8eade83175bbbd0d98bf12 | 39d37ddd257c52f536bb6cfe3703eda4cd365f92 | refs/heads/main | 2021-05-31T00:03:29.025752 | 2016-04-01T03:43:39 | 2016-04-01T03:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,273 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 6 12:24:35 2016
@author: mjcosta
"""
import argparse
from collections import namedtuple
from collections import defaultdict
from proj_euler.utils.timing import timefunc
WeightEdge = namedtuple('WeightEdge', 'src, dest, weight')
# Given a list of strings, parses the ... | [
"cosmic@seas.upenn.edu"
] | cosmic@seas.upenn.edu |
eb614105a9b4653f0fc76ecac49170dbbfe055c3 | 1561c3bab9abcfd0b943ef33695dcd1919e19fb2 | /backend/editors/desktop_app_parser.py | c4aaec36998bbf85e7f43ae04969b7fa251e187d | [] | no_license | Cyki89/RealTimeTrackingApplication | 6dd7d8aefa9699cb75d3f8af3df0776f16e1d8ae | c5bbbf2ec80223f09b3e139fe02731d236dff29b | refs/heads/master | 2022-12-14T08:16:55.097769 | 2020-09-10T17:53:32 | 2020-09-10T17:53:32 | 291,335,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,578 | py | import json
import os
import re
from datetime import datetime
from backend.editors.regex_dict import RegexDict
from backend.utils.utils import get_specyfic_time, singleton
from settings import *
@singleton
class DesktopAppParser():
def __init__(self):
self.unknown_apps = self._get_unknown_apps()
... | [
"jakub.cykowski@gmail.com"
] | jakub.cykowski@gmail.com |
b6fd30b9e93d506b20a2f7300a425481303482b1 | 12ac246df4bdc5f7a2d2ce58cc4666392fed639d | /utils/metrics.py | 0c937f8db3b6f5329e2b82c6a75ec4dbc507578b | [] | no_license | yitian0507/Bladder | 8cbf0f00b80bf158f1480f1249478488d9b295bc | 4c85d6277c39e1e4ce215001d20e3476c2df007a | refs/heads/master | 2023-04-06T12:28:24.865420 | 2021-03-29T06:17:22 | 2021-03-29T06:17:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,193 | py | # metircs.py
import torch
import torch.nn as nn
import numpy as np
"""
True Positive (真正, TP)预测为正的正样本
True Negative(真负 , TN)预测为负的负样本
False Positive (假正, FP)预测为正的负样本
False Negative(假负 , FN)预测为负的正样本
"""
def diceCoeff(pred, gt, eps=1e-5, activation='sigmoid'):
r""" computational formula:
dice = (2 * (pr... | [
"1033741293@qq.com"
] | 1033741293@qq.com |
7f7e6202d1b1aa73181f18176a9a42fd131c5023 | 9cef4ef20efd0eec18846242e78be0b9be144c30 | /homework/20200717/子进程中修改全局变量.py | 9a7989b2eec30662def98571d1867a21fc6cbba9 | [] | no_license | Vaild/python-learn | 4e6511a62a40b6104b081e0f8fe30f7d829901f5 | 5d602daf3b4b7e42349b7d9251df1f4dd62c299c | refs/heads/master | 2022-11-19T00:47:48.808384 | 2020-07-20T14:27:49 | 2020-07-20T14:27:49 | 279,044,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | #!/usr/bin/python3
# coding = UTF-8
# code by va1id
# 定义全局变量
import os
import time
from multiprocessing import Process
N= [1, 2]
def change_process():
print('未修改之前的列表:', N)
print('列表此时的ID是:', os.getpid())
for i in range(10):
N.append(i)
print('修改之后的列表:', N)
print('修改之后的ID:', os.get... | [
"cubersongwenbo@gmail.com"
] | cubersongwenbo@gmail.com |
2944eed6f9c864a3995b33a0432eba6a2771fd81 | 9fc1b92e098a54475b661ad02958f983af042e11 | /alphaGen/reader.py | 562896aa1b1db80395946db90f54d48ebcbdc0dd | [] | no_license | sergiomazucato/device00 | ad03ac1def7e6e0c7cf5df9313a4746e299a4fd2 | 1357bffc66dd6ae71a21ce7dd61301870242c018 | refs/heads/master | 2021-08-28T15:45:29.399545 | 2021-08-25T09:09:21 | 2021-08-25T09:09:21 | 122,837,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,301 | py | import glob, cv2
import numpy as np
class Reader():
def __init__(self):
self.fileName = '' #file name
self.highBit = 'X' #define what is a high bit on the file
self.letter = [] #define the list which will store the final letter
def getFilename(self):
"""
This func... | [
"sergiomazucato@gmail.com"
] | sergiomazucato@gmail.com |
f7393076c4d3db21151411cedcf5ef2c358afb24 | 8165f128348d5a77043dc7b198253c9c4abb9687 | /accounts/views.py | f54c76bd1d62750a55a9f58c9d72c93fddc05afa | [] | no_license | S-H-GAMELINKS/eato | 1a61534609045e000b8730d4fbba5139313f99ff | 5c9c0847aa992f1d58c5e5494ebff19efae4e237 | refs/heads/master | 2023-08-15T10:52:20.247969 | 2021-09-18T06:31:40 | 2021-09-18T06:31:40 | 391,376,022 | 1 | 0 | null | 2021-09-18T06:31:40 | 2021-07-31T14:17:12 | HTML | UTF-8 | Python | false | false | 2,258 | py | import os
from django.core.files.storage import default_storage
from django.core.files.storage import FileSystemStorage
from django.conf import settings
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.models import User
from restaurants.models import Restaurant, Favorite, Revie... | [
"gamelinks007@gmail.com"
] | gamelinks007@gmail.com |
fe8bc6b1e305d6f955d5f51ccdbcbb03567c3c5f | 33787153c4f85cb626cf16e0e4d40d5970df2871 | /reservation_system/order/admin.py | 873c45edd8890e68e2a1d428784197d437bc8309 | [] | no_license | nazaninsbr/E-Commerce-Website | 93e14576d69618f749d7fd6f19b6b1b989fa47a8 | 46bed8c58f4adac37dc4ddd881f57e694961b9b2 | refs/heads/master | 2021-09-22T14:20:56.940950 | 2018-09-11T05:01:23 | 2018-09-11T05:01:23 | 125,370,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from django.contrib import admin
from .models import Order, OrderItem
class OrderItemInline(admin.TabularInline):
model = OrderItem
raw_id_fields = ['product']
class OrderAdmin(admin.ModelAdmin):
list_display = ['id', 'first_name', 'last_name', 'email', 'address', 'postal_code', 'department', 'paid', 'c... | [
"nazanin.sabrii@gmail.com"
] | nazanin.sabrii@gmail.com |
d5b03f9b69c097fd51d4d968aca8daa313092d05 | b747063a7eddcdc473a37262b0f293da39f9a4e9 | /projecteuler/023-Non-abundantSums.py | 8551363fe10f223c14e3a385fd97042351ebd48b | [] | no_license | Iiridayn/sample | 2a8d6693e80d53ca5e63d79cad09aa9da2b373bc | 0dfc4eb0f17c7bf4618f07d1483878e333441500 | refs/heads/master | 2023-07-07T11:31:25.401037 | 2023-06-23T22:34:28 | 2023-06-23T22:34:28 | 24,160,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from euler import divisors
from math import ceil
# see https://en.wikipedia.org/wiki/Abundant_number for assertions
# see http://oeis.org/A048242/b048242.txt for pre-generated complete list
bound = 28123 # all int > can be written as sum of two abundant
abundant = set()
for i in range(12, bound):
if i in abundant: c... | [
"iiridayn@skylords.com"
] | iiridayn@skylords.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.