blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a71b79fa0a6d31dce4cb2c05890195cf13440df7 | e03351079da9ca55bacdebb1c94612bdcf45b5a5 | /allrest/apps.py | ab786fe241e2b1da78b3b5bf0c358e9efb632d61 | [] | no_license | Turza006/food | e3a5f202b90cfe2dbfeca3c1bec5008ffa151eed | 1609bef7d67dee2a07190fadc8e67560a4a40ec5 | refs/heads/master | 2020-06-28T10:33:03.468298 | 2019-08-02T09:51:07 | 2019-08-02T09:51:07 | 200,210,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class AllrestConfig(AppConfig):
name = 'allrest'
| [
"probaldattaturza@gmail.com"
] | probaldattaturza@gmail.com |
3129d119bb1773e4909ac9e1ecf759cef0cad06e | 539789516d0d946e8086444bf4dc6f44d62758c7 | /inference/python/inference.py | 7fc210e7978a31556f20ba12d8a1baa22d2ff6c4 | [] | no_license | hoangcuong2011/etagger | ad05ca0c54f007f54f73d39dc539c3737d5acacf | 611da685d72da207870ddb3dc403b530c859d603 | refs/heads/master | 2020-05-03T15:15:33.395186 | 2019-03-28T01:40:21 | 2019-03-28T01:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,683 | py | from __future__ import print_function
import sys
import os
path = os.path.dirname(os.path.abspath(__file__)) + '/../..'
sys.path.append(path)
import time
import argparse
import tensorflow as tf
import numpy as np
# for LSTMBlockFusedCell(), https://github.com/tensorflow/tensorflow/issues/23369
tf.contrib.rnn
# for QRNN... | [
"hazzling@gmail.com"
] | hazzling@gmail.com |
a46a60c0e2600f4a1681c7b0350edead08cf76fd | 0ff26d3911d405e730910682b4ad62211d9f14a1 | /server/lib/cache.py | d479fc52572f71e56bdb665049fd6e4d8a3da25a | [] | no_license | jzitnik/z-pim | 975ef7af3cd1fb3afcea252cb19695603c9908fd | 6b57d27a04eda3892639935a59970cc7e17fe756 | refs/heads/master | 2016-09-05T19:13:14.377173 | 2012-12-04T19:11:11 | 2012-12-04T19:11:11 | 7,005,253 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 145 | py |
class Cache(object):
def __call__(self):
print "CACHE INIT"
class SessionCached(Cache):
def __call__(self):
print "sess CACHE INIT" | [
"jan@zitnik.org"
] | jan@zitnik.org |
bf179785fa2e221dfcdd53d62e123b18762c8136 | 4610d4365583979b11ec3861c611ac88b4dff67d | /Oefenopdrachten/Oefenopdracht3_3.py | a197ec8d00c25d69bb60abca1f7a6bca9429c756 | [] | no_license | NielsRisseeuw/PROG_Huiswerk | bdd9cc7db78dfdc23796bc7214143f2df1f6db5b | 0349f1575c31f837f39fcde750c502993c8c3796 | refs/heads/master | 2021-08-08T15:04:11.039430 | 2017-11-10T14:52:07 | 2017-11-10T14:52:07 | 103,146,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | leeftijd = eval(input('Wat is je leeftijd: '))
paspoort = input('Heb je een Nederlands paspoort: ')
if leeftijd >= 18 and paspoort == 'ja':
print('Gefeliciteerd, je mag stemmen!')
else:
print('Jammer, je mag niet stemmen') | [
"niels.risseeuw@student.hu.nl"
] | niels.risseeuw@student.hu.nl |
058e0ab5091f1f7f83fac5da38065560b7b2b934 | d40994586c94638aa04c1917c70614b7a8e27de1 | /prize_server/model/base.py | 11bd2e5c802425e31ca087ea2fae5f146f9878b3 | [] | no_license | XTAYJGDUFVF/prize_server | 3b506d39ae1b260933160dbf61726731788585b0 | b4b60a33028ae1c638b8051304576f2b9e4630aa | refs/heads/master | 2021-08-07T12:47:12.064557 | 2017-11-06T10:39:02 | 2017-11-06T10:39:02 | 109,638,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,366 | py | # coding=utf-8
import functools
import aiomysql
import pytds
from tornado.gen import coroutine, sleep
from tornado.log import app_log
from config import Config
from util.struct import Ignore
from util.util import Singleton, Utils
from util.cache import MCachePool as MCachePoolABC, config_redis_default
from util.mem_c... | [
"963480530@qq.com"
] | 963480530@qq.com |
da0de991295a250dbfc4238a27b5f8573f7770a8 | 48c6b58e07891475a2c60a8afbbbe6447bf527a7 | /src/tests/control/test_orders.py | 74c7007fa3a989b7c5f5133361a5abbc1a3dcc33 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | awg24/pretix | a9f86fe2dd1f3269734ed39b3ea052ef292ff110 | b1d67a48601838bac0d4e498cbe8bdcd16013d60 | refs/heads/master | 2021-01-15T23:40:28.582518 | 2015-08-27T14:05:18 | 2015-08-27T14:05:18 | 42,126,402 | 1 | 0 | null | 2015-09-08T16:58:52 | 2015-09-08T16:58:51 | null | UTF-8 | Python | false | false | 3,084 | py | from datetime import timedelta
from decimal import Decimal
import pytest
from django.utils.timezone import now
from pretix.base.models import (
Event, EventPermission, Item, Order, OrderPosition, Organizer,
OrganizerPermission, User,
)
@pytest.fixture
def env():
o = Organizer.objects.create(name='Dummy'... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
1a55c8829671cc809a85bf7ae583aba04d596824 | 7ffbc81ef48926c45e5789c13d167b235c12b150 | /rept.py | 920953c9307d144d688061474229b57988486515 | [] | no_license | s16009/PythonTutorial | b214e2880e17fedd08cfdbf9bca7d45bde94a7c9 | 04fc1c5bea0f26ea0b7681de37451e1fc4f49f63 | refs/heads/master | 2020-12-24T05:40:28.395630 | 2016-08-09T03:03:56 | 2016-08-09T03:03:56 | 63,661,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | for x in range(1, 11):
# print(repr(x).rjust(2),repr(x*x).rjust(3), end=' ')
#print(repr(x*x*x*).rjust(4))
print('{0:2d} {1:3d} {2:4d}'.format(x,x*x,x*x*x)) | [
"s16009@std.it-college.ac.jp"
] | s16009@std.it-college.ac.jp |
56ac5f435c1505b586a07d2bf83a64eff2564702 | 60b5a9a8b519cb773aca004b7217637f8a1a0526 | /customer/urls.py | 2bf028b3dc13eed4b4e9793741b3f478b4d5d355 | [] | no_license | malep2007/dag-bragan-erp-backend | 76ce90c408b21b0bda73c6dd972e2f77b7f21b1f | e98182af2848a6533ddd28c586649a8fee1dc695 | refs/heads/master | 2021-08-11T01:29:27.864747 | 2019-01-15T17:46:26 | 2019-01-15T17:46:26 | 151,831,965 | 0 | 0 | null | 2021-06-10T20:56:21 | 2018-10-06T11:10:12 | Python | UTF-8 | Python | false | false | 437 | py | from django.urls import path, reverse
from . import views
urlpatterns = [
path('', views.CustomerListView.as_view(), name='index'),
path('<int:pk>/', views.CustomerDetailView.as_view(), name="detail"),
path('edit/<int:pk>/', views.CustomerUpdateView.as_view(), name='edit'),
path('add/', views.CustomerC... | [
"ephraim.malinga@gmail.com"
] | ephraim.malinga@gmail.com |
9fab7862569f3b81e8858813a45e4e303cf5f617 | 62ea30dc6f7c36417e0edfaca73fc27141ca43a3 | /user.py | 049fc6ca49d2a55d34cb7baa5c96771c722d17ce | [] | no_license | chulinx/PythonStudy | 2571b484cc182f2568593c1787b0ee2aa0802fba | 178c38ec5abfcb3e952e7c2c9ea94a411014633a | refs/heads/master | 2020-12-24T20:10:13.684778 | 2017-04-04T12:04:33 | 2017-04-04T12:04:33 | 86,238,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/python3
users=[]
zhuce=input("Do you want sign up my web? if you want ,please input Y else input N: ")
while zhuce == 'Y':
name=input("Input your name: ")
if name == 'exit':
break
else:
users.append(name)
print(users)
| [
"chulinx@163.com"
] | chulinx@163.com |
a1b2d1e62a5a9c0b2e499246d138951a2a9f20f9 | 64a80df5e23b195eaba7b15ce207743e2018b16c | /Downloads/adafruit-circuitpython-bundle-py-20201107/lib/adafruit_wsgi/wsgi_app.py | 44171f51cfa9e62e9b7fdc09a66fc806d95d7b4a | [] | no_license | aferlazzo/messageBoard | 8fb69aad3cd7816d4ed80da92eac8aa2e25572f5 | f9dd4dcc8663c9c658ec76b2060780e0da87533d | refs/heads/main | 2023-01-27T20:02:52.628508 | 2020-12-07T00:37:17 | 2020-12-07T00:37:17 | 318,548,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,807 | py | # The MIT License (MIT)
#
# Copyright (c) 2019 Matthew Costi for Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | [
"aferlazzo@gmail.com"
] | aferlazzo@gmail.com |
2ebfb27d864daa8609758160bd3ee3c6122b704a | e147827b4f6fbc4dd862f817e9d1a8621c4fcedc | /apps/doc/views.py | ab450d855ef75b700dd41676295f6518652efa34 | [] | no_license | Jsummer121/DjangoBolgProject | ba3ebe27a1ac67439de67b9f10c17d1c16e43f84 | d64f9579d29ac5e3979d40303e84f4be6852fa96 | refs/heads/master | 2023-01-30T16:26:33.566665 | 2020-12-15T12:00:16 | 2020-12-15T12:00:16 | 321,654,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | from django.shortcuts import render
from django.views import View
from django.http import HttpResponse, FileResponse, StreamingHttpResponse, Http404
from doc import models
import requests
from django.utils.encoding import escape_uri_path
from Django_pro.settings import DOC_FILE_URL
def doc(request):
docs = models... | [
"jxxaizwt@icloud.com"
] | jxxaizwt@icloud.com |
04ffe19889c2d4c88c5284eee383406c5351f78b | c5321690a4c96bc8f1cade3c8ca6ce681b1fe8f2 | /project_hila/questions/urls.py | 860a185491e428db4ec154d123f224cae59214a9 | [] | no_license | ManchiGitHub/project_hila | 93f90d4787a6276d113b6982960c4489144840b9 | 91885f06f42511f304ac4dcf33ab41f3a0742937 | refs/heads/master | 2023-09-02T14:20:40.393068 | 2021-06-23T08:59:16 | 2021-06-23T08:59:16 | 375,990,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from django.urls import path
from django.conf.urls import url
from . import views
urlpatterns = [
path('create_question/', views.create_question_view, name="create_question"),
path('questions_repository', views.questions_repository_view, name="questions_repository"),
path('create_questionnaire/<str:key>/'... | [
"66803951+ManchiGitHub@users.noreply.github.com"
] | 66803951+ManchiGitHub@users.noreply.github.com |
005264f15500de2b29d4e16c24c16ff4bd7582da | 38fcefd669647388d8aa58089cbecc18e0059f35 | /LM/PYTHON/Ejercicios secuenciales/Ejercicio 13.py | 87a5d5a13653cd69dcec8829e6c4e78f211d7312 | [] | no_license | ManuelLoraRoman/Apuntes-1-ASIR | 42309fa4effc576cf1d475c96156a58a1e7af879 | bcbba6ada3b398720261d4a083aa45b670a61af1 | refs/heads/main | 2023-01-20T05:44:35.218782 | 2020-11-28T21:44:07 | 2020-11-28T21:44:07 | 316,726,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py |
#Realizar un algoritmos que lea un número y que muestre su raíz cuadrada y su raíz cúbica.
#Python3 no tiene ninguna función predefinida que permita calcular la raíz cúbica, ¿Cómo se puede calcular?
import math
num = int(input("Dime un número:"))
raizcua = math.sqrt(num)
raizcub = num ** 1/3
print("La... | [
"manuelloraroman@gmail.com"
] | manuelloraroman@gmail.com |
8329fa5bea57d4f6278bd16ce249d56f50672bc7 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pyNet/day06/code/test_poll.py | 5f18a3bc99a060b68f525c9f9e72ac31b6e740a3 | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from multiprocessing import Pool
from time import sleep
L = [1,2,3,4,5]
def a(ne):
print(ne**2)
sleep(2)
pool = Pool()
for i in L:
pool.apply_async(a,(i,))
pool.close()
pool.join() | [
"442315617@qq.com"
] | 442315617@qq.com |
e51792809cd4a793497d9faddab15f893349e70b | cb93a5de78aebd1fdff3ac8cddae5164ba1bced6 | /ctmc/birth_death.py | 54ea3e2ece1684df5fe36fe56a53a8bcf3391799 | [] | no_license | tseller/ctmc | 5e64770ff77c09107cf47fd9e45a41ee4f87e1a0 | 48159c6062e5a2ef010e00edeb1fdeef25e72b7a | refs/heads/dev | 2016-09-06T10:08:48.573210 | 2015-12-04T21:39:30 | 2015-12-04T21:39:30 | 28,284,893 | 1 | 2 | null | 2015-12-04T21:40:19 | 2014-12-21T01:34:06 | Python | UTF-8 | Python | false | false | 1,519 | py | from ctmc import CTMC
import numpy as np
class BirthDeath(CTMC):
''' Birth-Death Process '''
def __init__(
self,
num_states,
forward, # forward rate
backward, # backward rate
):
# turn scalars into arrays
if isinstance(forward, (int, long,... | [
"tseller@gmail.com"
] | tseller@gmail.com |
0a5a579dd0a6d232526835dc574518dcbab6e108 | 8393f28f390e222b0429fc4f3f07590f86333d8d | /linux-stuff/bin/svn-merge-meld | 7c7beb77f18c8c2b9a4dbfe1bd016a679f58f12d | [] | no_license | jmangelson/settings | fe118494252da35b175d159bbbef118f22b189fb | df9291f8947ba1ceb7c83a731dfbe9e775ce5add | refs/heads/master | 2021-01-16T17:39:24.105679 | 2015-02-20T01:17:26 | 2015-02-20T01:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | #!/usr/bin/env python
# svn merge-tool python wrapper for meld
import sys
import subprocess
# path to meld ($ which meld)
meld = "/usr/bin/meld"
log = False
f = open('/tmp/svn-merge-meld.log', 'a')
def main():
if log:
f.write("call: %r\n" % sys.argv)
# file paths
base = sys.argv[1]
theirs = sys... | [
"devnull@localhost"
] | devnull@localhost | |
2af46188232c9dc83f27d7c1db55e7fba17bb0fc | 719da91704a59ec2d64c0ef29a37eade897e566c | /Coffee2Go/Coffee/Lib/site-packages/genopandas/plotting/genomic.py | 3adaf95bca2f792ad0efdbfd6c247bdac9f3c2d4 | [] | no_license | FeliciaWilliamson/Coffee2Go | 7fa42ed3604fd9717f1ff68794ab7c7046b20bdd | f02c5d0232003c15a571fcadb528268bd4ff1c5b | refs/heads/master | 2023-09-01T01:43:09.642547 | 2021-10-19T14:58:37 | 2021-10-19T14:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,924 | py | """Module containing functions for plotting data along a genomic axis."""
from itertools import chain
import numpy as np
import pandas as pd
import toolz
from .base import scatter_plot, step_plot, apply_palette
def genomic_scatter_plot(data,
y,
hue=None,
... | [
"FeliciaWilliamson@users.noreply.github.com"
] | FeliciaWilliamson@users.noreply.github.com |
3ce3fa355f4726bdb74170b7e80c7359ff504db8 | 915aa339b11a68dcf67eabb22def07710c0527c1 | /src/result/Result.py | 1d94ff6b9e785cb5da52fcb9731ec570bafb7d96 | [
"MIT"
] | permissive | charleshamel73/diceroller | ead233aead53a42bafae2226db32613cbb3c1830 | 83cf43922a59e07203b50372804ba79bdfde9940 | refs/heads/master | 2021-01-17T17:46:55.385189 | 2016-06-24T15:51:33 | 2016-06-24T15:51:33 | 60,239,762 | 0 | 0 | null | 2016-06-16T03:49:15 | 2016-06-02T06:53:05 | Python | UTF-8 | Python | false | false | 1,155 | py | class Result(object):
sum = 0
rolls = []
message = ""
def __init__(self, sum, roll=None,message=None):
self.sum = sum
if roll is not None:
self.rolls = roll
if message is not None:
self.message = message
def merge_results(self, result, type,operator_... | [
"charleshamel73@yahoo.com"
] | charleshamel73@yahoo.com |
33d846d15a85d3ab4338299fb35838a398963ec3 | 1db60c220307909be3266ae435f230ce9e7625de | /TDD_String_Calculator.py | e25c7a75e3ce3d5c9dcc8c21187089a1be7824c3 | [] | no_license | viniciusmvf/String-Calculator | ab64a4f2c8562aea510dd9b14ff3ea751950ff22 | 5dff905df13068f6127309cfe28cb3e17d65e317 | refs/heads/master | 2020-06-10T22:11:24.228236 | 2019-06-14T07:48:47 | 2019-06-14T07:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | import re
def sum_func(num_list):
sum =0
for i in num_list:
if i == '':
num = 0
else:
num = int(i)
if num < 0:
raise ValueError('Negatives not allowed')
elif num > 1000:
num = 0
sum += num
return sum
def add(num):
search1 = re.search('^//(.*)', num)
if num == '':
n... | [
"nkumaneandy@gmail.com"
] | nkumaneandy@gmail.com |
4dca72e67c09881156eab57d557b557a221e3668 | da9d4e3fe7d7804b53d742e6ad49fc4b655985bd | /backend/src/api.py | 6343628501da022a937c6faa6e9f7494732cf46a | [] | no_license | RanaEmad/coffee-shop-full-stack | b3c59ecd50ae97e9018ee0874db5af091e499391 | 9f1c979cadbb3a1f401b8288fea0b5d9142387e5 | refs/heads/master | 2022-11-28T11:14:52.357419 | 2020-08-08T21:12:23 | 2020-08-08T21:12:23 | 286,028,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,159 | py | import os
from flask import Flask, request, jsonify, abort
from sqlalchemy import exc
import json
from flask_cors import CORS
from .database.models import db_drop_and_create_all, setup_db, Drink
from .auth.auth import AuthError, requires_auth
app = Flask(__name__)
setup_db(app)
CORS(app)
'''
@TODO uncomment the foll... | [
"rana3emad@gmail.com"
] | rana3emad@gmail.com |
8968c8502e1f77e7db79c40fab30e6f2050ba0e4 | e39382423b52caa7f973496aaf04da0f517223e4 | /RtMonSys/models/models_common.py | bfecb8c13303865388551a9ced03a90a3d9953b8 | [] | no_license | haloooo/2S | 8af7b2d1c2e66415d00f6fa090a8b761eadf831d | 2767cd447a53e91910deb752b70d5d03682d6266 | refs/heads/master | 2020-04-05T06:43:41.143662 | 2018-11-08T04:06:02 | 2018-11-08T04:06:02 | 156,648,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,544 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
from django.db import connections
import os
from RtMonSys.models import model_setting
def get_config(key):
# 加载配置文件
file_path = os.getcwd() + '/config/config.json'
fp = open(file_path)
json_data = json.load(fp)
return jso... | [
"Administrator@TPEC.TPC.LOCAL"
] | Administrator@TPEC.TPC.LOCAL |
8bf72af94dd7843e5a21bcb666896146201ea8a4 | 461a9e33aa76cd6f82f7e5ff23a1fafdc9d76e68 | /apps/departamentos/migrations/0001_initial.py | 93efdfe77a3549cb8590716eb56320bf2b8ba309 | [] | no_license | alex7alves/Gestao_rh | 9bea77a62ca22701555465dd291ee8322da95e16 | 83d7f65cdf1a253cc59e24306874a0d0139ef2ca | refs/heads/master | 2020-08-02T13:52:28.041087 | 2019-10-10T18:37:39 | 2019-10-10T18:37:39 | 211,376,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # Generated by Django 2.2.5 on 2019-09-25 23:34
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Departamento',
fields=[
('id', models.AutoF... | [
"alex7alves10@hotmail.com"
] | alex7alves10@hotmail.com |
daf9ca0b4ab0f407a65d6d2d6af152c79c81fb7d | 164ae0c291dde6c1826bd8fb912527777173f594 | /algorithms/number-of-dice-rolls-with-target-sum.py | a55cf4df0045194f5bcbe0b85290772a53c57a7e | [] | no_license | victorvg17/leet-code | 6ba86ce4d52166056ac849c787c5b528d6ae33ed | 94fcd4c049d1033cb5d3da8902b578eedb7a080e | refs/heads/master | 2023-06-25T14:54:04.470366 | 2021-07-16T09:24:01 | 2021-07-16T09:24:01 | 260,661,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | class Solution:
def numRollsToTarget(self, d: int, f: int, target: int) -> int:
mem = {}
def dp(d: int, target: int) -> int:
if d == 0:
return 0 if target > 0 else 1
if (d, target) in mem:
return mem[(d, target)]
to_return ... | [
"victorgeorge@Victors-MacBook-Pro.local"
] | victorgeorge@Victors-MacBook-Pro.local |
c7711333f4d8e8f37e54110c5e0412dd308ca7ea | afe7a071a7bf3219df96902837d8f299f9683f11 | /contrib/seeds/generate-seeds.py | 4de290d7ccf303e48f7680e9fd8226ab77488815 | [
"MIT"
] | permissive | ArrayCoreDevelopers/Array | 96ece6ccab529ea336f08cd64cf8faaf8fc83894 | dc4d28a14eb1af9235885527fd27c4a1a8bf1a7a | refs/heads/main | 2023-07-14T20:07:34.804029 | 2021-08-12T21:53:20 | 2021-08-12T21:53:20 | 363,210,099 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,379 | py | #!/usr/bin/python
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the directory tha... | [
"83463254+ArrayCoreDevelopers@users.noreply.github.com"
] | 83463254+ArrayCoreDevelopers@users.noreply.github.com |
55b1ef245e9a7cb31d87bfd61a9576b63fdc7fdc | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/scaleform/daapi/view/lobby/cybersport/staticformationunitview.py | 8a3ccb32d12fe54c88e9e5068baa81fe574abd77 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 14,220 | py | # 2015.11.18 11:53:51 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/cyberSport/StaticFormationUnitView.py
import BigWorld
from UnitBase import UNIT_OP
from gui import makeHtmlString
from gui.Scaleform.genConsts.TOOLTIPS_CONSTANTS import TOOLTIPS_CONSTANTS
from gui.shared... | [
"info@webium.sk"
] | info@webium.sk |
d521df7b8411fd72e936546db701ba9a222ee230 | 57cca11dc6c32d5eb134464e34f0a1a4209e8e1f | /OpenCV with Python for Image and Video Analysis(sentdex)/Edge Detection and Gradients - 10.py | 2153521e4307693477b2dd318634f289c1052a4f | [] | no_license | 21tushar/Python-Tutorials | a8d035981f91fd56da0daf9eada4b9a43d1e3439 | ca9d927fd72a758cff9764a1b21fa9cbced10ee2 | refs/heads/master | 2020-03-13T06:14:31.635494 | 2018-07-29T16:46:18 | 2018-07-29T16:46:18 | 131,000,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import cv2
import numpy as np
cap = cv2.VideoCapture(0)
while True:
_, frame = cap.read()
laplacian = cv2.Laplacian(frame, cv2.CV_64F)
sobelx = cv2.Sobel(frame, cv2.CV_64F, 1, 0, ksize=5)
sobely = cv2.Sobel(frame, cv2.CV_64F, 0, 1, ksize=5)
edges = cv2.Canny(frame, 100, 200)
cv2.imshow('lapl... | [
"noreply@github.com"
] | 21tushar.noreply@github.com |
0067be0794868297778b2c58e8e3f9fe379dba44 | 65f4fe32c15614aec492eceb3e810aba54c9a564 | /app/quiz/models/true_false.py | 25a6d7be51440f0c4411d33df6f86d557f922a06 | [] | no_license | tartieret/django-starter | 204da20b550ab2725d1831b663255f7138d8c921 | 4c2199af6a938e51ce84bcacb305d43ca398911d | refs/heads/master | 2023-02-22T06:44:37.243636 | 2021-01-21T03:15:25 | 2021-01-21T03:15:25 | 314,928,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | from django.db import models
from django.utils.translation import gettext_lazy as _
from .question import Question
class TFQuestion(Question):
correct = models.BooleanField(
blank=False,
default=False,
help_text=_(
"Tick this if the question " "is true. Leave it blank for" " f... | [
"thomas.tartiere@panevo.com"
] | thomas.tartiere@panevo.com |
8f9eece8ab82dc05dfd4a860532dd48acb31d2a9 | b800b818a4d405b5fc6a152309563db9f68eacdb | /fmp-django/menu/migrations/0006_menu.py | 150770038e1a15c77e14436bae2c6079984c327f | [
"Unlicense"
] | permissive | dave-leblanc/family-menu-planning | 2bff7e27461c6094c7959817ecc30f6271a300bd | 00e6b300837f7857a7c0f3de5ef175cf77c7a2e3 | refs/heads/main | 2023-02-27T11:56:14.770431 | 2021-02-08T02:27:03 | 2021-02-08T02:27:03 | 333,241,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # Generated by Django 3.1.5 on 2021-01-30 04:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('menu', '0005_auto_20210127_0200'),
]
operations = [
migrations.CreateModel(
name='Menu',
... | [
"dave.leblanc@gmail.com"
] | dave.leblanc@gmail.com |
43e7a13868552bc1df7a5b30ac083213d31dd08d | 60e43b6e98ce173d3820530d90c7300a26b452e0 | /Scripts/zls/__init__.py | 59028eb6790487e1b0a49f22a0322e09d5040b50 | [] | no_license | zolcsielesosvr/OSVR | 32945e8294ff1894152469be48dc91a482b2ed7a | 187054a14265651d8caa20234654851d7845a374 | refs/heads/master | 2020-04-24T06:32:39.448864 | 2019-02-24T21:50:06 | 2019-02-24T21:50:06 | 171,768,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from .SafeDirs import *
from .Platform import *
from .CMake import *
| [
"zolcsieles@gmail.com"
] | zolcsieles@gmail.com |
75d1a00d171815f01a3c90a88f85ddabc2422950 | f77522423e2782b87c22bdd5606b1be339e9223b | /lotto/models.py | f0893acd3039c393dc39e5fa5956171556aafeee | [] | no_license | kwanghee123/project1 | 918936ae36c20f158aa1a99b562c5b7f05e868bb | a8f5c7800ed1bc94e3e8d30ba2219b1a3f9cc9f3 | refs/heads/master | 2020-04-02T16:58:55.132398 | 2018-10-25T08:41:49 | 2018-10-25T08:41:49 | 154,638,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from django.db import models
from django.utils import timezone
import random
class GuessNumbers(models.Model):
name = models.CharField(max_length=24)
lottos = models.CharField(max_length=255, default='[1,2,3,4,5,6]')
text = models.CharField(max_length=255)
num_lotto = models.IntegerField(default=5)
... | [
"ykhzang2@gmail.com"
] | ykhzang2@gmail.com |
77babb978bf5214f4c148626cb7267f0b261cb65 | e151da6d888a3720b608bb40f607e3f9fc6ab16e | /code/dm.py | 41d77a38f7fe147dbb4f24c1ec325671d962d6c2 | [] | no_license | Bearbobs/Mr-downloader | 60f7ceb263372df0b8b968dcd68000e5b662b912 | 69ff898152b415bf0c7fcfe59276a1acd0aa6365 | refs/heads/master | 2020-05-22T16:05:54.622447 | 2020-01-27T06:34:35 | 2020-01-27T06:34:35 | 84,701,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | from PyQt4.QtCore import *
from PyQt4.QtGui import *
import sys
import urllib.request
class downloader(QDialog):
def __init__(self):
QDialog.__init__(self)
layout=QVBoxLayout()
lab1= QLabel(" Hi!!")
lab2= QLabel(" I am Mr. Downloader... | [
"noreply@github.com"
] | Bearbobs.noreply@github.com |
c62f7c54c41cbcdc27f815f27028d52967573ee0 | c656e7bf15f19d376185adcbc8af68541252b8c1 | /apilib/exceptions.py | 81d44460e938389e89b51e47b3f802b3f3c6dad6 | [] | no_license | UnicycleLabs/apilib | 43ca79c832a5cc0ed67921e4fd3c3a8e2c7a82eb | bf58376c9c4d532ae6a12aa5685089f8e38c3d43 | refs/heads/master | 2021-01-10T15:20:31.018677 | 2018-03-31T23:48:14 | 2018-03-31T23:48:14 | 55,811,676 | 1 | 1 | null | 2019-08-07T02:20:13 | 2016-04-08T21:48:36 | Python | UTF-8 | Python | false | false | 595 | py | class ApilibException(Exception):
pass
class UnknownFieldException(ApilibException):
pass
class ModuleRequired(ApilibException):
pass
class ConfigurationRequired(ApilibException):
pass
class NotInitialized(ApilibException):
pass
class DeserializationError(ApilibException):
def __init__(sel... | [
"jonathan@unicyclelabs.com"
] | jonathan@unicyclelabs.com |
abcc634e9e5d0c71bae568b10d3d3802d2dfd3c8 | 21589bcc4596cebee4dee843da139e7a18cd2209 | /t1.py | e1ee97c0de10a52c4bab1d75e69fa21ff40062df | [] | no_license | liangxiaobi/tornado_example | 3be55b75a3057db4bb1f48c552f5f477a63075d5 | ef84c24335999a6e6f4f679844a53531d83bbc58 | refs/heads/master | 2016-09-06T04:30:10.849272 | 2013-05-21T08:04:31 | 2013-05-21T08:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,371 | py | '''
Created on 2013-5-21
@author: lion
'''
from tornado.httpclient import AsyncHTTPClient
import os
import tornado.ioloop
import tornado.web
#
class MainHandler(tornado.web.RequestHandler):
@tornado.web.asynchronous
def get(self):
self.write("Hello,world")
self.finish()
class StoryHan... | [
"11315889@qq.com"
] | 11315889@qq.com |
356835a4616e8a1b5d15cb8791d60dd3a24ebc76 | 997a9e94260606eb4137af785fbc9b12ff0ce11b | /Nueva carpeta (2)/prueba import.py | a6c0a92d50101f682c029825fe2974896119d241 | [] | no_license | GerardoNavaDionicio/Programacion_Orientada_a_Objetos | dc741c28223be81ac844a0bae8ab12d9bfa52076 | 331bab7605e4394605c4a87c05e42ddda739069a | refs/heads/main | 2023-07-15T11:35:06.940089 | 2021-08-25T16:18:24 | 2021-08-25T16:18:24 | 368,373,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from suma import min,max
def sumar (x,y):
return x+y
print (sumar(5,9))
print(min(6,12))
print(max(34,10))
| [
"77888428+GerardoNavaDionicio@users.noreply.github.com"
] | 77888428+GerardoNavaDionicio@users.noreply.github.com |
b4a8f51c98e4d0b78246cec00a5ac088829be5c0 | 1e7b1e719fa9ab0694994575a7add8bf659e4808 | /booksys/books/migrations/0001_initial.py | 73fc1a974897ea558b6aac06fd35d8d41ce7fa66 | [] | no_license | IHaveGoal/Django | 766092c6724435a39926b8e30af73961df4ca1af | 84d0cb7065e63e481a8149da68eb69fe514fdaa7 | refs/heads/master | 2020-05-07T21:39:47.428977 | 2019-06-24T23:37:58 | 2019-06-24T23:37:58 | 180,912,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | # Generated by Django 2.1.7 on 2019-05-18 14:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
... | [
"1043260502@qq.com"
] | 1043260502@qq.com |
cac775ac5f84f62350398129fb0c01a7f572c352 | ec633b1281c518f8c30ef8d261b15530872d635c | /ptd5.py | 881d23f5f9aff853e72423cb0cc521765439b14d | [] | no_license | tomekgaw/PodstawyTD | 26e9efac262acfd1a6cc51837fbe41baa505b9c9 | 7f85b6f78a85288fb4adeb622f876847cb53ff79 | refs/heads/master | 2021-05-10T14:38:18.782861 | 2018-01-30T20:07:56 | 2018-01-30T20:07:56 | 118,526,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py | from matplotlib import pyplot as plt
import numpy as np
import ptd4copy as ptd4
from itertools import accumulate
#######PSK
sp = [(np.sin(2 * np.pi * ptd4.fn * b/ ptd4.fs)) for b in range(1500)]
psk = np.multiply(ptd4.zp,sp)
def sumation(x):
xd = suma = 0
xt = []
for _ in np.arange(ptd4.M):
suma = ... | [
"tomekgaw@gmailc.com"
] | tomekgaw@gmailc.com |
274793a531a7e276d248de7dd9803cdc8f253a90 | d9d4ebdefcdd271b8710c93d7e8dfddc78877eec | /python3/go.py | 5e60c7dfcc87ac81190b71e74be7a8725f3a79cf | [] | no_license | isim95/uniswap-demo | e9ff14e4647afe33258839c067b080278fb9502e | 33d02ba17dd511f945fa47ce0271874ad6f903a6 | refs/heads/master | 2022-03-04T21:07:46.061252 | 2019-03-16T20:52:42 | 2019-03-16T20:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | #!/usr/bin/env python3
from web3.auto import w3
print(w3.eth.blockNumber);
if (w3.eth.blockNumber == 0):
raise Exception("Syncing")
print(w3.eth.getBlock('latest'));
abi = [{"name": "NewExchange", "inputs": [{"type": "address", "name": "token", "indexed": True}, {"type": "address", "name": "exchange", "indexed"... | [
"bryan@stitthappens.com"
] | bryan@stitthappens.com |
6f402e70790e857a892dd3c982f152b9d2b8fa41 | b84c89d0ade21bf8c2df9d0cf8f94d7a27c2824b | /py2neo/text/table.py | 6af607df167d03cbce805799244802ff457d8034 | [
"Apache-2.0"
] | permissive | srlabUsask/py2neo | 931b06678561201d56a36ec10da7ad4614ab6c87 | 80d3cf1ab0b4cfb03b7824fd7a407b33c95a1e8f | refs/heads/master | 2022-11-16T21:17:42.319698 | 2020-07-12T23:00:29 | 2020-07-12T23:00:29 | 279,281,481 | 0 | 0 | Apache-2.0 | 2020-07-13T11:17:53 | 2020-07-13T11:17:50 | null | UTF-8 | Python | false | false | 10,917 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Copyright 2011-2020, Nigel Small
#
# 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
#
# Unle... | [
"noreply@github.com"
] | srlabUsask.noreply@github.com |
f3c023e08f3d224740ac57a5cf8cc6ef2f636636 | 8e25201a060b5acd09670846cd529d005584a4fa | /smirp/build_model.py | da6e8865b33ee08cfb73096c814b04ee887eb205 | [] | no_license | CU-BIC/SMIRP | 2d3e88053d78b9745cec785d05d2d6436284134d | 9ea46ab4133b85e817d3c683c03f0e62b93202b3 | refs/heads/master | 2020-04-07T19:24:10.399804 | 2018-11-22T14:48:27 | 2018-11-22T14:48:27 | 158,647,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | import sys
import getopt
from subprocess import call
from classes.FeatureSet import FeatureSet
# Parameters:
#
# -p: File name for positive feature set (any file type)
# -n: File name for negative feature set (any file type)
# -o: Name of output LibSVM model
opts, extraparams = getopt.getopt(sys.argv[1:], 'o:p:n:')
f... | [
"francoischarih@sce.carleton.com"
] | francoischarih@sce.carleton.com |
c59d88b870e80d47624f1902072e46caf9ed8d9d | 889442ea4f90b6199763c1e973058c04a76d178e | /exceltodocx.py | 6a675480a2b82be91a2b13b18b12c1a275614088 | [] | no_license | El-Ghiffari/SimpleTools | c49c08dddd3308949fb1ab79c24e58505d0439c7 | f6edcf42c59c66d6acf8d7e6b6e80caddbf25eb0 | refs/heads/master | 2023-06-09T08:35:59.620817 | 2023-05-25T09:31:43 | 2023-05-25T09:31:43 | 293,282,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,424 | py | import pandas as pd
import docx
from docx import Document
from docx.shared import Pt
#from docx.oxml.ns import nsdecls
#from docx.oxml import parse_xml
def create_vulnerability_tables(excel_file, docx_file):
# Read the Excel file into a pandas DataFrame
df = pd.read_excel(excel_file)
# Create a... | [
"noreply@github.com"
] | El-Ghiffari.noreply@github.com |
ca13fd7a6424d211800459fd5ffd7561b385d1a8 | a26f4238d17b3cc93edf1cfecaea735e7e905a22 | /problemSheets/flask/hello.py | f41203779f9bc35e00e84e27eeff8e94968d5413 | [] | no_license | Ryan-Gordon/Data-Rep-and-Querying | b513a6746dbe7503412e4d4cdf19afde10d5bb13 | 864dbf6adfdef1c44850fa74f67ded83f71e99e2 | refs/heads/master | 2021-06-09T15:28:50.710120 | 2016-12-22T11:34:54 | 2016-12-22T11:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | from flask import Flask, render_template, request
app = Flask(__name__)
# Hello
@app.route("/")
def hello():
return "Hello World!"
# Simple hello function
@app.route("/name")
def name():
return "Hello Ryan!"
# Route takes input based on URL provide /name/Ryan provides the param user
@app.route("/name/<user>"... | [
"ryangordon210@gmail.com"
] | ryangordon210@gmail.com |
0a551818b8e85dd12f84691ab34b3df1f13c138e | 14ddda0c376f984d2a3f7dcd0ca7aebb7c49648d | /bnn_mcmc_examples/examples/mlp/noisy_xor/setting2/mcmc/metropolis_hastings/pilot_visual_summary.py | 34d2bb1186d2c1da6be83394dc47fe6431283c68 | [
"MIT"
] | permissive | papamarkou/bnn_mcmc_examples | 62dcd9cc0cf57cda39aa46c2f2f237bbcd2d35bb | 7bb4ecfb33db4c30a8e61e31f528bda0efb24e3d | refs/heads/main | 2023-07-12T20:51:28.302981 | 2021-08-22T13:06:17 | 2021-08-22T13:06:17 | 316,554,634 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | # %% Import packages
import kanga.plots as ps
from kanga.chains import ChainArray
from bnn_mcmc_examples.examples.mlp.noisy_xor.setting2.mcmc.constants import diagnostic_iter_thres
from bnn_mcmc_examples.examples.mlp.noisy_xor.setting2.mcmc.metropolis_hastings.constants import sampler_output_pilot_path
from bnn_mcmc... | [
"theodore.papamarkou@gmail.com"
] | theodore.papamarkou@gmail.com |
44dc7ace3c96940a36a7ea468124c78e03900455 | 1620e0af4a522db2bac16ef9c02ac5b5a4569d70 | /Ekeopara_Praise/Phase 2/LIST/Day44 Tasks/Task4.py | e3f303c59954e7bec5cf6fa62b4f49925de56d80 | [
"MIT"
] | permissive | Ekeopara-Praise/python-challenge-solutions | cda07902c9ffc09ba770ae7776e5e01026406a05 | 068b67c05524b5c5a0d6084315eca3424c768421 | refs/heads/master | 2022-12-15T15:29:03.031583 | 2020-09-25T06:46:27 | 2020-09-25T06:46:27 | 263,758,530 | 2 | 0 | null | 2020-05-13T22:37:33 | 2020-05-13T22:37:32 | null | UTF-8 | Python | false | false | 141 | py | '''4. Write a Python program to concatenate elements of a list. '''
num = ['1', '2', '3', '4', '5']
print('-'.join(num))
print(''.join(num)) | [
"ekeoparapraise@gmail.com"
] | ekeoparapraise@gmail.com |
608cdd8f3ba70d04d61965c29c90aa8f48c1ad16 | 77098dac5eccbc041c68da22f6bf4880318e523d | /test_app/urls.py | b072be48f857ae9227a96d5a0e3f51239a82c1c7 | [] | no_license | NineMan/test_app | d458fcd6640b015e5ea18745715d6e7388551108 | bdacb200fd5fd5875da4a210816d709f0bb94d97 | refs/heads/master | 2023-03-30T13:10:30.813862 | 2021-04-05T08:17:24 | 2021-04-05T08:17:24 | 354,690,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('pages.urls')),
path('django-rq/', include('django_rq.urls'))
]
| [
"m.nelyubin@neovox.ru"
] | m.nelyubin@neovox.ru |
46b56de9bf7ead1838fe58206ae4c91ce5bcfbb2 | 00792a90bfa302af8614f4a5f955c071ed320acf | /apps/control_params/tests.py | c93cb528dd87a34cb25ffb1ba372511159998b42 | [] | no_license | elcolie/HT6MInterface | dceb8f5e9b501b8836904559bd40259ccfe49085 | 04abf3cc73618c1cf059fa67da8a043ec9fb43b3 | refs/heads/master | 2022-02-04T08:02:49.023460 | 2021-01-21T06:55:39 | 2021-01-21T06:55:39 | 123,398,906 | 0 | 0 | null | 2022-01-21T20:20:29 | 2018-03-01T07:30:16 | JavaScript | UTF-8 | Python | false | false | 4,395 | py | from django.test import TestCase
from apps.control_params.api.serializers import ControlParameterSerializer
from apps.control_params.models import ControlParameter
from apps.heating_params.models import HeatingParameter
class TestControlParameter(TestCase):
def setUp(self):
pass
def test_blank_initi... | [
"sarit@elcolie.com"
] | sarit@elcolie.com |
07feee452428ecf97bd5edc3add50468a4a465d2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_309/ch26_2019_08_19_14_12_37_089425.py | 8dadd9e96c3304269c01917bc7478e247c45840a | [] | 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 | 187 | py | dias = int(input("dias:"))
horas = int(input("horas:"))
minutos = int(input("minutos:"))
segundos = int(input("segundos:"))
print((dias*86.400 + horas*3.600 + minutos*60 + segundos))
| [
"you@example.com"
] | you@example.com |
d9b0b103fe9af36c303a318f55ab2bc223d3655d | e4f5eec71bed0406bed437aad71099177548baa5 | /test/test_gensim.py | 55036181ab4962a359da22075c0e2e97a48504b9 | [
"Apache-2.0"
] | permissive | smilelight/lightText | 23c2c858635d791bb36c597ea620d23f59c1d8d7 | b015d0e3524722fb5a8ee5ea83b7fbbd7408f797 | refs/heads/master | 2021-08-15T21:17:08.495864 | 2021-07-06T05:38:04 | 2021-07-06T05:38:04 | 168,789,109 | 14 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,958 | py | # -*- coding: utf-8 -*-
from typing import List
import jieba.posseg as pseg
from gensim import corpora, models, similarities
NUM_TOPICS = 350
MODEL_PATH = 'saves/model'
DIC_PATH = 'saves/dic'
def tokenize(text: str) -> List[str]:
# {标点符号、连词、助词、副词、介词、时语素、‘的’、数词、方位词、代词}
# {'x', 'c', 'u', 'd', 'p', 't', 'uj', '... | [
"iamlightsmile@qq.com"
] | iamlightsmile@qq.com |
cde77cd5f408ae6c900695c6a8911f4f533f2713 | e3f9b7a583d38e8c4460754d7d01b87d145ebec3 | /accounts/forms.py | 2fa5e55849b3f4f21a8b6ff0223b09f2c871bceb | [] | no_license | Kanurow/zuri_crud | 3a82021e6ab07f9d6ae91d15dd68e0e17fa67078 | 045abf09473caa6610fcafa2a5517977fab058a6 | refs/heads/main | 2023-04-27T15:58:15.008751 | 2021-05-03T23:55:56 | 2021-05-03T23:55:56 | 361,911,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from django.forms import ModelForm
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import login, authenticate
from django.contrib.auth.models import User
from django import forms
class RegisterForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
... | [
"kanurowland92@gmail.com"
] | kanurowland92@gmail.com |
103c9cd7adacc5f7038df27ad25a009d5dbde33f | f4c2b016818be9b60825818af7f8a1fb77179069 | /Protocols/Socket.py | fcb82f5a65676f532c72b30dd08a0b71561c83ae | [] | no_license | werisonfernandes/python-course | f74f310fc1a16598014680fd7812eeae14e90c60 | 711e3c7e7fd6c0bc5a8d4d61953d1e941455561e | refs/heads/main | 2023-04-18T11:46:09.003617 | 2021-04-29T14:54:46 | 2021-04-29T14:54:46 | 362,198,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import Scoket
resp="S"
while(resp=="S"):
url=input("Digite uma url: ")
ip=Scoket.gethostbyname(url)
print("O IP referente a url informada eh: ", ip)
resp=input("Digite <s> para continuar: ").upper() | [
"waparecf@everis.com"
] | waparecf@everis.com |
b79dff80f9ba01f7effb651281466d39bbff7351 | b6df7630818b1a96f695f9f781f2d4aee3b12c67 | /spacy_cosine_similarity.py | 50a8457d1245a52b1b5642ee0ae441fd6e137d6a | [
"Apache-2.0"
] | permissive | JBAhire/semantic-similarity | 6ad4903377297b3c4f4bbaa54c3c263e56421a46 | 2a5d93cde033d5fa18da2aa4ff3fc5d94bcd652e | refs/heads/master | 2020-08-04T05:03:34.541160 | 2019-10-01T14:12:45 | 2019-10-01T14:12:45 | 212,016,418 | 4 | 1 | Apache-2.0 | 2019-10-01T14:14:52 | 2019-10-01T05:04:23 | Python | UTF-8 | Python | false | false | 1,280 | py | import spacy
import pandas as pd
from common import similarity_test
nlp = spacy.load('en_core_web_md')
'''
common = similarity_test()
data = pd.read_csv('data/sick_dev.csv')
sent_1_list = list(data.sent_1)
data = common.normalize(data, ['sim'])
sim_list = list(data.sim)
sent_2_list = list(data.sent_2)
... | [
"noreply@github.com"
] | JBAhire.noreply@github.com |
dd64f7eec6f6c0a278fb130622ec660cb9b77db2 | 7626985c23e2e0ee1361c7c4aaed8a2ed36567ce | /coursera.py | b766fa2478de671dbca69c619803d6f21ee3cfe9 | [] | no_license | fabiogeraci/Coursera | fff49b1b52beb64e47a75dc84fd9386c28a1362e | fba7aad40689443a750d7ee02474fd5e607a1181 | refs/heads/main | 2023-03-25T16:29:27.290311 | 2021-03-14T21:53:53 | 2021-03-14T21:53:53 | 332,873,168 | 0 | 0 | null | 2021-02-04T11:41:47 | 2021-01-25T20:23:22 | Jupyter Notebook | UTF-8 | Python | false | false | 1,131 | py | class MusicSchool:
students = {"Gino": [15, "653-235-345", ["Piano", "Guitar"]],
"Talina": [28, "555-765-452", ["Cello"]],
"Eric": [12, "583-356-223", ["Singing"]]}
def __init__(self, working_hours, revenue):
self.working_hours = working_hours
self.revenue = reve... | [
"fabio.geraci@gmail.com"
] | fabio.geraci@gmail.com |
ef8433f6bae0df2f57342d5ef4f9efcd844ecde0 | ddf1267a1a7cb01e70e3b12ad4a7bfaf291edb3e | /src/search/tasks.py | 2c428bb843cb84de7aa107d3c9693be9e16496f7 | [
"MIT"
] | permissive | Garinmckayl/researchhub-backend | 46a17513c2c9928e51db4b2ce5a5b62df453f066 | cd135076d9a3b49a08456f7ca3bb18ff35a78b95 | refs/heads/master | 2023-06-17T04:37:23.041787 | 2021-05-18T01:26:46 | 2021-05-18T01:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | from oauth.utils import get_orcid_works, check_doi_in_works
from paper.models import Paper
from paper.utils import download_pdf
from researchhub.celery import app
from utils.orcid import orcid_api
from user.models import Author
from purchase.models import Wallet
VALID_LICENSES = []
@app.task
def download_pdf_by_lice... | [
"lightning.lu7@gmail.com"
] | lightning.lu7@gmail.com |
8dcf5d6849f04540c24cb60627bdd958716b733d | 518e9cbf940b5addb2194a96f277050c44963121 | /Python/Practices/linked_list/sum_lists.py | 883c6a3a1c50252dfa36caced8e265b0494ad9dd | [] | no_license | Mr-Perfection/coding_practice | 58322192b76a2ab70c4ae11cd05b3bf993272c52 | 41df85292a151eef3266b01545124aeb4e831286 | refs/heads/master | 2021-01-11T02:24:26.234486 | 2017-04-11T00:21:10 | 2017-04-11T00:21:10 | 70,965,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | """
Sum Lists: You have two numbers represented by a linked list, where each node contains a single digit.
The digits are stored in reverse order, such that the 1's digit is at the head of the list.
Write a function that adds the two numbers and returns the sum as a linked list.
Suppose the digits are stored in forward... | [
"sungsoolee0127@gmail.com"
] | sungsoolee0127@gmail.com |
c6a165b964fc2334873f89175bfb321c4dc5ec28 | 167b69b2cd1827a2226dbeb048377e6d21ba7dcd | /DL_24_class_function.py | 98f9a58d0160c4fe611f370c11aba104abaece7b | [] | no_license | Drunk-Mozart/card | 67068f6c709531deecaa7fde020858f3cf193106 | 30e43e327721cf09ece5f531fe2a170e8dd7bf8c | refs/heads/master | 2020-09-12T23:37:37.868822 | 2019-12-03T15:40:03 | 2019-12-03T15:40:03 | 222,594,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | # 如果不需要调用实例属性,则可以直接定义类方法或者静态方法
# 调用类属性的类方法@classmethod
class Tool(object):
count = 0
@classmethod
def show_tool_count(cls):
print("工具对象的数量:%d" % cls.count)
def __init__(self, name):
self.name = name
Tool.count += 1
tool = Tool("斧头")
Tool.show_tool_count()
# 静态方法
class ... | [
"longhr@mail2.sysu.edu.cn"
] | longhr@mail2.sysu.edu.cn |
75f7352215afcb05eba0feab15b9bd1c6ea0fb35 | ba0487cc0850502b7c09a16f886a7ecc406582af | /sender.py | 7ac29e850782f8d77852616e378c1e2be24a331f | [
"MIT"
] | permissive | CristianRod21/YOLO_vs_RCNN_qiBullet | 0f7cd5a587b5e8605773db605b6a16bfc0ea88eb | 6f8222e87e7d59920c1370ae1b3d1693f2ec27e2 | refs/heads/master | 2022-11-10T16:09:27.311053 | 2020-07-01T17:19:29 | 2020-07-01T17:19:29 | 267,651,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py |
from npsocket import SocketNumpyArray
import cv2
import sys
import pybullet
import pybullet_data
import time
from qibullet import SimulationManager
from qibullet import NaoVirtual
from qibullet import PepperVirtual
from qibullet import RomeoVirtual
import time
sim_manager = SimulationManager()
client ... | [
"noreply@github.com"
] | CristianRod21.noreply@github.com |
8eccec346ef0c583b129cf4ce4d3a124129b917a | 327b662d9af2fe0647d4d4471bfb1ba65431e6f9 | /marketsim/marketsim.py | 43b7a8ba4da9e91615473e80a1730e751ec98baf | [] | no_license | fords/Machine_Learning_Trade | 414c3fc1ff22251695c414dd7ed5f33344759d55 | 020dedcc93f7a85235f8c0f7ae6d24504d812997 | refs/heads/master | 2021-09-13T09:29:09.980469 | 2018-04-27T20:14:17 | 2018-04-27T20:14:17 | 118,845,905 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,044 | py | """MC2-P1: Market simulator.
Copyright 2017, Georgia Tech Research Corporation
Atlanta, Georgia 30332-0415
All Rights Reserved
"""
import pandas as pd
import numpy as np
import datetime as dt
import os
from util import get_data, plot_data
def author():
return 'zwin3'
def compute_portvals(orders_file = "./orders... | [
"fords@users.noreply.github.com"
] | fords@users.noreply.github.com |
d82be73e49649c2629a116486ba147d0066c196c | a5924186cb3b16a96b682357d0bec2af10d0b5a1 | /model_evaluation/run_FedAvg_all.py | 09d3f15f05a5c9417edc35c8340ebe3246609c28 | [
"MIT"
] | permissive | thesuperorange/deepMI3 | b7cb8dca34e5e00fc932c0dc9d07d28f7d7acf01 | e0dc57b7e3863d3ed1061b9562984e8d8f403cc5 | refs/heads/master | 2022-08-28T22:25:42.161702 | 2022-08-16T18:18:33 | 2022-08-16T18:18:33 | 246,145,167 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | import os
import pascalvoc
import shutil
if __name__ == '__main__':
scene_list = ['Pathway','Doorway']#['Room','Staircase','Bus'] #,'Pathway','Doorway''Staircase']
mode = 'FedWCD' #FedAvg
DATASET='MI3'
ROUND_NUM = 10
NET='vgg16'
wcd_all=True
#isAll = True
for isAll in (True, False):
... | [
"1503054@narlabs.org.tw"
] | 1503054@narlabs.org.tw |
3888d78296a2ddbc02eb9eceebb9ee68652b9c3c | 0a89b8ecca5912cbf086f17de25d543c17d225a0 | /LABS/Pickle/pickle-email.py | fc67297735e8d99054ff71c70b7c34096eddaef7 | [] | no_license | meighanv/05-Python-Programming | 0072051149b8ed3b668250b2c1d4d5503715b0b6 | 5493fc2adfbf5fbf5a03a1e027c269646b639332 | refs/heads/master | 2020-08-29T14:21:19.646870 | 2020-03-13T18:36:07 | 2020-03-13T18:36:07 | 218,059,331 | 0 | 0 | null | 2019-10-28T13:58:16 | 2019-10-28T13:58:16 | null | UTF-8 | Python | false | false | 5,622 | py | """
8. Name and Email Addresses
Write a program that keeps names and email addresses in a dictionary as key-value pairs.
The program should display a menu that lets the user look up a person’s email address, add
a new name and email address, change an existing email address, and delete an existing
name and email addr... | [
"jubei421@gmail.com"
] | jubei421@gmail.com |
4aeb56fe0cc5beeb4e26eadb50619cb4dddf1437 | a6b2d9c522db6c9b47633efc5df8d630ba5be6e2 | /paper_blitz/survey/create_survey.py | 93bcc78421d679c188ab2afe79660c45c2601822 | [] | no_license | Noezor/paper_blitz | be64bbfee6969f928362a6793141a26837df6e08 | 1c4e601fcbf6b64078e8ec217d184ee7384afc9f | refs/heads/master | 2020-12-12T16:08:27.691158 | 2020-02-12T20:40:55 | 2020-02-12T20:40:55 | 234,169,822 | 0 | 0 | null | 2020-02-12T20:40:57 | 2020-01-15T20:45:26 | Python | UTF-8 | Python | false | false | 765 | py | from paper_blitz.stack.model import Participant, Stack, Group
from paper_blitz.articles.article import Article
from paper_blitz.config import db
from datetime import datetime, timedelta
class Article_Selector_Survey(object):
def select_articles(self, group : Group):
non_presented_articles = group.non_pre... | [
"noe.pion@gmail.com"
] | noe.pion@gmail.com |
ccf04a495abae668443c87f8364c24d6438f2ec7 | 13866adfde5a56fc4061f1598d70a02e7c2c960e | /Planck_MMF/analysis/modules/simulate/sim_fs_data.py | 6b0c4cb9a0e176bd0f909806b858be1bfd1ad0db | [] | no_license | adityarotti/MMF-filters-for-rSZ-cluster-detection | 4d8bcdd859f992b0a32e155eb99a66bacceea21b | d79998f2c1bdebc832e4212cd98cbddbcfc0be90 | refs/heads/master | 2023-03-08T12:47:44.231905 | 2021-02-18T15:46:06 | 2021-02-18T15:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,525 | py | ##################################################################################################
# Author: Aditya Rotti, Jodrell Bank Center for Astrophysics, University of Manchester #
# Date created: 15 January September 2019 #
# Date modified: 16 March 2019 ... | [
"adityarotti@gmail.com"
] | adityarotti@gmail.com |
4cf32a4ed4b7852980136c686edbf100e8a3da2b | 67fac9a29db0715b9e55519d952bc595d9807c56 | /05_DataStructures/5.3_TuplesAndSequences.py | 8ae68d8bf49db87d3e1ece82e4f486cff2cfb7fc | [] | no_license | aritrac/SolidPython | ee2b2f14a33e577e1c0728a6bc2649e27ef8c2c2 | 92a788a81afdcaf38fa5d13d8890764a7b62ae47 | refs/heads/master | 2022-12-08T07:40:22.104382 | 2020-09-09T07:50:05 | 2020-09-09T07:50:05 | 293,191,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | t = 12345, 54321, 'hello!'
print(t[0])
print(t)
# Tuples may be nested:
u = t, (1, 2, 3, 4, 5)
print(u)
#Tuples are immutable:
#t[0] = 88888 #This will error out
#but they can contain mutable objects:
v = ([1, 2, 3], [3, 2, 1])
print(v)
empty = ()
singleton = 'hello', # <-- note trailing comma, so it is not... | [
"aritrachatterjee2007@gmail.com"
] | aritrachatterjee2007@gmail.com |
fc863595d297b8d3b60291baa8e91d86337567af | 650c61c25574996faad47a655d68da9169b0e539 | /main/Parenthesis_matching.py | 64b3883a172bdd77d268488c42b4df34bea5c3a6 | [] | no_license | shubhmshr/problem_solving | 26459272b9998281fc549e10cf18675455b9542c | c26d7c7136873bf96864328aac2c9d0ceb563eec | refs/heads/master | 2023-05-23T00:22:24.314804 | 2021-06-06T18:50:11 | 2021-06-06T18:50:11 | 374,407,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from main.stack_adt import ArrayStack
def parenthesis_check(para):
open_list = '({['
close_list = ')}]'
s = ArrayStack()
for ele in para:
if ele in open_list:
#print("pushing",ele)
s.push(ele)
elif ele in close_list:
if s.is_empty():
p... | [
"shubh.mshr+gitkraken@gmail.com"
] | shubh.mshr+gitkraken@gmail.com |
3fa9322ab882012f8dd6fc64efa180bbd27ec444 | f0856e60a095ce99ec3497b3f27567803056ac60 | /keras/keras19~31[scaler, CNN(GAP,DNN)]/keras31_cifar100_3_Djsull.py | 9150dcc697bf72ace67e7f4f1b9da8a5c55e6d9b | [] | no_license | hjuju/TF_Study-HAN | dcbac17ce8b8885f5fb7d7f554230c2948fda9ac | c0faf98380e7f220868ddf83a9aaacaa4ebd2c2a | refs/heads/main | 2023-09-04T09:13:33.212258 | 2021-10-27T08:00:49 | 2021-10-27T08:00:49 | 384,371,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,418 | py | import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler, StandardScaler, RobustScaler, QuantileTransformer,MaxAbsScaler, PowerTransformer, OneHotEncoder
from tensorflow.keras.datasets import cifar100
from tensorflow.keras.models import Sequential, Model
fro... | [
"tkackeowjs@naver.com"
] | tkackeowjs@naver.com |
c97e9f32dd8b94b6bb3365179ef73965eccd8be5 | bedae10cbaf676d8f309fa593028558d9a6e9c6b | /Algorithm/Easy/1000+/1206NextGreaterElementI.py | dfcffec1d8a09564dfb341ed4eb30870284fee73 | [
"MIT"
] | permissive | MartinYan623/Lint-Code | 5800d61a54f87306c25ff2e3d535145312b42c66 | 57d2fa441d6496234615736e3f55d0b71aaa51dc | refs/heads/master | 2021-06-06T13:51:19.587424 | 2021-04-21T12:23:19 | 2021-04-21T12:23:19 | 139,412,536 | 0 | 0 | null | 2020-08-08T10:28:52 | 2018-07-02T08:18:11 | Python | UTF-8 | Python | false | false | 627 | py | class Solution:
"""
@param nums1: an array
@param nums2: an array
@return: find all the next greater numbers for nums1's elements in the corresponding places of nums2
"""
def nextGreaterElement(self, nums1, nums2):
# Write your code here
for i in range(len(nums1)):
i... | [
"Maitong_y@163.com"
] | Maitong_y@163.com |
ac30c543b6bdf9cc9594a8b2d469493f5c9941a5 | 121135b3585ec70b1d0b68962b413b48f75270f8 | /sem_2/task050318/task_2/homo_gramma.py | 0d4e2b224527c8683bed350bdda993210a66d6fd | [] | no_license | Ananaskelly/data_analysis_course_hw | 80d05488bb9c7df114c3b8131971ea9ad04df9a8 | 519d1a66f1056e5b6612206c2de631e24a35699b | refs/heads/master | 2021-09-16T06:07:36.319910 | 2018-06-17T21:36:42 | 2018-06-17T21:36:42 | 106,135,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | import nltk
from nltk import Nonterminal, nonterminals, Production, CFG
def run():
cool_grammar = nltk.CFG.fromstring("""
S -> NP VP
PP -> Det N
NP -> Det N | PP PP | 'я'
VP -> V NP | VP PP
Det -> 'его' | 'своими'
N -> 'семью' | 'глазами'
V -> 'видел'
""")
sent = ['я', 'видел'... | [
"anastasiya_johnni@mail.ru"
] | anastasiya_johnni@mail.ru |
2a961b54a6287de52ac25425a39ede9c95574aba | a00c4056e2dfcc43a0c91cfae76cbff7ec5aa5f3 | /models/models.py | 28a69988b2bed0a414dfd239e69ae5c48ed52518 | [
"MIT"
] | permissive | renfan1/I2V-GAN | 72ce038f9b1ba817074614116d7676eccdbde684 | 0fb2a79548cbbd5952913f9975110c15d01559aa | refs/heads/main | 2023-08-22T05:39:15.643111 | 2021-10-26T04:38:33 | 2021-10-26T04:38:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py |
def create_model(opt):
model = None
# print(opt.model)
if opt.model == 'cycle_gan':
assert(opt.dataset_mode == 'unaligned')
from .cycle_gan_model import CycleGANModel
model = CycleGANModel()
elif opt.model == 'i2vgan':
assert(opt.dataset_mode == 'unaligned_triplet')
... | [
"3120190999@bit.edu.cn"
] | 3120190999@bit.edu.cn |
fabc61328f4c24c15543f48a5cc31cedcdf76354 | 4a6c5b4a04946d2b4b4599a68f957ac9c70fb87c | /code-examples/pytest/foo/bar/bar1.py | efd641db20c3b21d90f24bb4b9fe146165676bd9 | [] | no_license | weichuntsai0217/work-note | 29d2da3b7af7431a2ee67039ad801e0441ed4039 | 425528b59d6b22a8ad54cadcbacaa21d69bb6242 | refs/heads/master | 2021-06-14T10:57:52.025803 | 2021-01-31T10:25:28 | 2021-02-06T07:04:44 | 163,857,958 | 0 | 0 | null | 2021-03-25T23:00:32 | 2019-01-02T15:28:01 | Python | UTF-8 | Python | false | false | 56 | py | from ..foo1 import f1
def b1(x):
return f1(x) * 10
| [
"jimmy_tsai@trendmicro.com"
] | jimmy_tsai@trendmicro.com |
cdaba21d2292e0aee6015161688ac6fee5b5c47a | 5b1a2638cfff6cb15854461eafd36ef5895a2ee4 | /calculating_pi.py | 9d3614cee03723bd481277bf618ad62bfa678941 | [] | no_license | NataliaGuruleva/NataliaGurAU | 883f69c078b107687f656b5dc1e7f119e43ac463 | 587d844ad647abb6d0089aba6dbaa7850d03944e | refs/heads/master | 2023-04-29T21:11:37.749483 | 2021-05-18T00:53:07 | 2021-05-18T00:53:07 | 298,563,783 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import random
import time
import sys
import multiprocessing
from multiprocessing import Pool
n = 100000
curr = 100
def calculate_pi(q):
count = 0
for i in range(q):
x=random.uniform(0, 1)
y=random.uniform(0, 1)
if x * x + y * y <= 1:
count = count +... | [
"noreply@github.com"
] | NataliaGuruleva.noreply@github.com |
c618c313ac7c0543f07fe46761091bec8660f401 | f6087d2a5ddaf930a0b693460f2abea8655c2d2a | /mathematics/sieve_of_eratosthenes/efficient_method.py | ff317ae4dd4be0189e040c1f735cc27a3940fadd | [] | no_license | pragatij17/Algorithms | b9797d9ee9dfa838d4de67a478e3aa9950cd6015 | ef6577e82cbc8e372d066784a5479b9b86463581 | refs/heads/master | 2023-04-22T20:10:29.478963 | 2021-05-14T12:29:16 | 2021-05-14T12:29:16 | 332,750,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | def SieveOfEratosthenes(n):
prime = [True for i in range(n+1)]
p = 2
while (p * p <= n):
if (prime[p] == True):
for i in range(p * p, n+1, p):
prime[i] = False
p += 1
for p in range(2, n+1):
if prime[p]:
print (p),
n=int(input("Enter the n... | [
"pj.pragatijain09@gmail.com"
] | pj.pragatijain09@gmail.com |
e53f90e1a1b7c9990dec171bf0d4195e10c3acdc | 12ca5c99d39c409bc636e30ad52e5b3bb309bbb9 | /5_oblig/kode_uke6/velkomst.py | 5478baf91a1fe90245fe36b60363bdb8444b6ff6 | [] | no_license | emelleby/in1000 | 6b4ee4d6505800b5d4b06ff12a4cca1b69d5c20d | 613115cee2cd33c56df63d3dbb20c60127126fba | refs/heads/master | 2021-07-04T15:58:14.466735 | 2021-05-19T18:09:49 | 2021-05-19T18:09:49 | 239,628,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | def velkomst(navn):
print("Hei " + navn)
gk = "Geir Kjetil"
velkomst(gk)
| [
"emelleby@gmail.com"
] | emelleby@gmail.com |
a93859abc033a0d689816b491aef203030b77bc6 | 6571e0bda7da047d221dd635d668469d62057d02 | /wort/core/config_registry.py | 15e97aae4398be66ac40414f1f9e2e5e1c62a266 | [] | no_license | tttthomasssss/wort | 9a3e1991cb2493d568f46912897beeb7e40e46e5 | 2d7f7ebeac7520a6124273477e7c7f07bf8aa22c | refs/heads/master | 2021-04-09T17:42:34.758312 | 2016-05-12T08:46:33 | 2016-05-12T08:46:33 | 44,681,903 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,815 | py | __author__ = 'thomas'
import os
import sqlite3
import uuid
class ConfigRegistry(object):
def __init__(self, path, min_frequency, lowercase, stop_words, encoding, max_features, preprocessor, tokenizer,
analyzer, token_pattern, decode_error, strip_accents, input, ngram_range, random_state, subsampling_rate,
... | [
"th0mas.ko6er@gmail.com"
] | th0mas.ko6er@gmail.com |
645f7220a627c6fd08ebb1622817b66a7a41d832 | 601ac0c9f7138b3e506c0511d4a3e7f60a499305 | /src/pykeen/datasets/freebase.py | bf7535538e05734b6ca08bdb377b4fa6ed9772b0 | [
"MIT"
] | permissive | cdpierse/pykeen | 9aa551adc05c9e609353d473db1d3da1b92f4ab0 | e8225c066b56bcdd3180ba895ce3e153808e7e38 | refs/heads/master | 2023-09-02T06:30:25.849873 | 2021-11-09T17:32:15 | 2021-11-09T17:32:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,959 | py | # -*- coding: utf-8 -*-
"""Freebase datasets.
* FB15k
* FB15k-237
"""
import os
import click
from docdata import parse_docdata
from more_click import verbose_option
from .base import PackedZipRemoteDataset, TarFileRemoteDataset
__all__ = [
"FB15k",
"FB15k237",
]
@parse_docdata
class FB15k(TarFileRemoteD... | [
"noreply@github.com"
] | cdpierse.noreply@github.com |
b85e78725562d0b612aa34719ff3eb0a496140ca | f0505f73cc535ce7abb3c3fcf1791830271444eb | /Problems/Linkedlists/remove_dup.py | 4b245100ce96d769684376d4cc1eefe98df6bf23 | [] | no_license | ravitejamallozala/DataStructures | 13921efc19919c1b7796e13e8362b1874c488c1e | a7ca3cf4da40e71ee0bfc7a3d2b657c28bd827a9 | refs/heads/master | 2023-07-16T03:09:00.941236 | 2021-09-03T17:23:58 | 2021-09-03T17:23:58 | 103,118,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | """
Remove duplicates from an unsorted linked list
Given an unsorted linked list of N nodes. The task is to remove duplicate elements from this unsorted Linked List. When a value appears in multiple nodes, the node which appeared first should be kept, all others duplicates are to be removed.
Example 1:
Input:
N = 4
v... | [
"raviteja.mallozala@ibigroup.com"
] | raviteja.mallozala@ibigroup.com |
aa550ba6970d764ed8604ac766040589e7cf3368 | 8cf35198f7428541afd2344e329d5555d2331d2e | /battleship_for_34.py | bb6943bed8a6308a266be7ab5a835b22fa9e8ea7 | [] | no_license | CrazeeIvan/Python | 9023efb647d2557fdb727e9099fcfa021548d2d0 | ba9defd812cb670f9d4d7b8c775368c9df9cfdcc | refs/heads/master | 2021-01-10T17:59:07.999948 | 2016-03-29T23:03:37 | 2016-03-29T23:03:37 | 52,006,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | from random import randint
#initialise empty board
board = []
#add list to list to create 2-dimensional array
#["O", "O", "O", "O", "O"]
#["O", "O", "O", "O", "O"]
#["O", "O", "O", "O", "O"]
#["O", "O", "O", "O", "O"]
#["O", "O", "O", "O", "O"]
for x in range(5):
board.append(["O"] * 5)
#draw board function
def ... | [
"ciaranmaher@gmail.com"
] | ciaranmaher@gmail.com |
ce3bf83c1f038e8882a5125b033b0f0a361cc05c | 5c5cac2b58b572cb7e9db7f8d842c42763190c55 | /schemas/data.py | 56853dc7625c43dd396ec91713ec9df14d4ae34e | [] | no_license | JudeMolloy/munchy | 0d54593f55000cbeb1dd0bf3a78f7b5ee90af396 | 3b91a62707ceb64abc2d0fafb87a6ac247dd65f7 | refs/heads/master | 2023-03-31T00:23:01.561307 | 2021-04-04T02:05:03 | 2021-04-04T02:05:03 | 306,475,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from ma import ma
from models.data import ClipDataModel
# Not sure I need this but I'll keep for the time being.
class ClipDataSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = ClipDataModel
# load_only = ("name", "bio")
dump_only = ("id")
load_instance = True
| [
"JudeMolloy07@hotmail.com"
] | JudeMolloy07@hotmail.com |
0acbc4230d3ac700fcfc7b8fc86e10326b0de7c7 | 64c204458891a9185d5646979050db05440f6496 | /api/nest/throttles.py | 0700aad27ce996af9bd2a82dda0c0bbd22b8050f | [] | no_license | radmar2002/data-engineering-exercise | 136565621922bb9fd807fafee39946326ae5c9a1 | 354729ac69a6e3d96a47f95f54f907b9658d16aa | refs/heads/main | 2023-05-02T17:54:25.721339 | 2021-05-20T19:39:23 | 2021-05-20T19:39:23 | 368,662,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from rest_framework.throttling import UserRateThrottle
# Custom Throttle classes
class LimitedRateThrottle(UserRateThrottle):
scope = 'limited'
class BurstRateThrottle(UserRateThrottle):
scope = 'burst' | [
"radu_marius_florin@yahoo.com"
] | radu_marius_florin@yahoo.com |
964de307289972354a1b551f7c32d12f000e98d4 | 95ec5d4d14516be1a1fdcc8bd1fb29279dfaff3c | /settings.py | 513790faf5a80aaabdf246439d26eae875211e35 | [] | no_license | gitter-badger/dev4gov.org | 16e25621a81552a6458cdd21cb96f17c7e222350 | a03165e921d0e76ad4283c970b3e0540f7d53c75 | refs/heads/master | 2021-01-18T06:52:15.360799 | 2011-08-21T09:01:55 | 2011-08-21T09:01:55 | 41,620,266 | 0 | 0 | null | 2015-08-30T07:25:32 | 2015-08-30T07:25:32 | null | UTF-8 | Python | false | false | 5,041 | py | # Django settings for dev4gov_org project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAM... | [
"sirmmo@gmail.com"
] | sirmmo@gmail.com |
d8600af0b88b95f8cda4ccde3d48eef8e17c2e47 | 436177bf038f9941f67e351796668700ffd1cef2 | /venv/Lib/site-packages/sklearn/tests/test_calibration.py | b8585c22bb36278fb772ff8f40c7129b07a1ad2e | [] | no_license | python019/matplotlib_simple | 4359d35f174cd2946d96da4d086026661c3d1f9c | 32e9a8e773f9423153d73811f69822f9567e6de4 | refs/heads/main | 2023-08-22T18:17:38.883274 | 2021-10-07T15:55:50 | 2021-10-07T15:55:50 | 380,471,961 | 29 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,088 | py | # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# License: BSD 3 clause
import pytest
import numpy as np
from numpy.testing import assert_allclose
from scipy import sparse
from sklearn.base import BaseEstimator
from sklearn.model_selection import LeaveOneOut, train_test_split
from ... | [
"82611064+python019@users.noreply.github.com"
] | 82611064+python019@users.noreply.github.com |
6c35b1cfd607a05efda8da84959d5075ad4cce77 | 4db21365bd1f78d0c3258efba0af2cb10696fa32 | /main/settings.py | 073da02a715681d860283236b176447a2fa5284c | [] | no_license | gichimux/beegee_cms | e62a2da86cc23395f3ce8a1dc3041dc9742a2315 | c4395f6d0bc334cb4158208d6d2a124c70da9ed0 | refs/heads/master | 2020-08-07T21:11:53.345827 | 2019-10-08T08:53:52 | 2019-10-08T08:53:52 | 213,588,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
# B... | [
"gichimumwai1@gmail.com"
] | gichimumwai1@gmail.com |
c15becfa4319da5909966337a26fc1120853e50b | a9cdab74360416d3fde84b2ad471f1f952cee2d0 | /experiments/icml2020/support/mexlet/jupyter.py | a5f6291bb0f9c32cbf93f9c91f6d4566c59c4c7c | [
"Apache-2.0"
] | permissive | SoldierY/few-shot-domain-adaptation-by-causal-mechanism-transfer | 4a025f1537b6523f9b183c031af12b9fac3419ce | 2878ced51cfe473aad8fbc1886e2b65dfc9fc060 | refs/heads/master | 2023-01-23T14:38:20.316244 | 2020-07-03T00:26:34 | 2020-07-03T00:26:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | def print_df(df):
from IPython.display import display
display(df)
return df
| [
"takeshi.diadochos@gmail.com"
] | takeshi.diadochos@gmail.com |
54209078b41164b418129f1145ddb6ba7120dacd | bc243dc880dae80e612df65e04f2ff747412c2d2 | /version_0.1/trainingModel.py | 6e0b5630f11e196eec8538ad0c2a219482c723bb | [] | no_license | francs1/ML-Kaggle-Titanic | 837f7c36d19b3bfe5c4a596f7f7da54d3e485bae | 9596af99b2f476a413573266d0f1e034e21da810 | refs/heads/master | 2020-06-17T23:01:33.430264 | 2019-07-11T01:13:51 | 2019-07-11T01:13:51 | 196,090,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | # trainingModel.py
import sys
import pandas as pd
import numpy as np
from sklearn.linear_model import SGDClassifier
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import StratifiedKFold
from sklearn.base import clone
from sklearn import linear_model
from constantInit import *
impor... | [
"noreply@github.com"
] | francs1.noreply@github.com |
b4455a1a07bbfe0f6b6717376cf81f9d093e2d98 | 0f7a2efe20cff389800b32d1fc4a8791402b7aee | /elections_cleaning.py | 62c5848df26bf0d6baadc878afff99c1c796ab4c | [] | no_license | wmceachen/tweetVotes | 1ab322ce9ac7c616d009aa8d4945d5ccadec70e5 | 1192ac5e415c5335b7d07c2e8da9a5973d315ff8 | refs/heads/master | 2022-07-06T00:42:24.634511 | 2020-05-18T21:20:29 | 2020-05-18T21:20:29 | 262,635,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,259 | py | #!/usr/bin/env python
# coding: utf-8
# In[212]:
import pandas as pd
import matplotlib.pyplot as plt
from scipy import stats
import re
# get_ipython().run_line_magic('matplotlib', 'inline')
# In[233]:
states = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut',
'Delawa... | [
"wmceachen@berkeley.edu"
] | wmceachen@berkeley.edu |
96dbfb206fea6616d529302a4dd2d8b79d04dcdb | 4e8876d7b29cf9fb05849da77553b8a7e3783bdc | /src/plugins/processing/algs/gdal/contour.py | e25947294d997251bea2fcf065aa480f5e025270 | [] | no_license | hydrology-tep/hep-qgis-plugin-lite | 48477f504b6fc1a9a9446c7c7f5666f4b2ccfee7 | 781cbaa1b3e9331de6741dd44a22322048ab176c | refs/heads/master | 2021-03-27T17:01:18.284421 | 2018-06-27T12:09:58 | 2018-06-27T12:09:58 | 70,825,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,908 | py | # -*- coding: utf-8 -*-
"""
***************************************************************************
contour.py
---------------------
Date : September 2013
Copyright : (C) 2013 by Alexander Bruy
Email : alexander bruy at gmail dot com
**********... | [
"joaa@localhost.localdomain"
] | joaa@localhost.localdomain |
ab5d8fbd62d3448fb69cf6581a66121ca6459a25 | 459929ce79538ec69a6f8c32e608f4e484594d68 | /venv/Lib/site-packages/virtualbox/__about__.py | 600822f21eb32a6edbdfa087453d0b2e1ea10fc2 | [
"Apache-2.0"
] | permissive | yychai97/Kubernetes | ec2ef2a98a4588b7588a56b9d661d63222278d29 | 2955227ce81bc21f329729737b5c528b02492780 | refs/heads/master | 2023-07-02T18:36:41.382362 | 2021-08-13T04:20:27 | 2021-08-13T04:20:27 | 307,412,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | __title__ = "virtualbox"
__author__ = "Michael Dorman"
__author_email__ = "mjdorma+pyvbox@gmail.com"
__maintainer__ = "Seth Michael Larson"
__maintainer_email__ = "sethmichaellarson@gmail.com"
__version__ = "2.1.1"
__license__ = "Apache-2.0"
__url__ = "https://github.com/sethmlarson/virtualbox-python"
| [
"49704239+yychai97@users.noreply.github.com"
] | 49704239+yychai97@users.noreply.github.com |
dcaa58a6041377c2b534b68af4ccb0c26cce69c5 | c54f0a6db830d8811638391600cfc3431fba5798 | /task/utils.py | ef788b38ba39d57e15d901f08d419a0218e8425d | [] | no_license | las1m0n/GeoInsightFetcher | ed21172c4777a9b017230d0bc78df1ac1704c8ae | 5470189a0c46b5034e6afbe3ea783ca96246d2c6 | refs/heads/master | 2023-02-28T15:33:30.095906 | 2021-02-09T22:11:32 | 2021-02-09T22:11:32 | 337,206,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | from os import path
import argparse
def parse_arguments():
parser = argparse.ArgumentParser(description='GeoInsightFetcher')
parser.add_argument(help='Cities names', nargs="+", dest="cities")
parser.add_argument('-f', "--file", help='file with cities names', dest="file")
return parser.parse_args()
d... | [
"bondarenkonikita295@gmail.com"
] | bondarenkonikita295@gmail.com |
65dce79f30aec774c93591b408df883154300b38 | fee003cd665885f52f6f268855bd40039030e8b5 | /bolsa/backend.py | ed75ba7400b64fc065447aac0e10e3538b045aa2 | [] | no_license | gicornachini/bolsa | 044cc1f0f3441d184eb87cdcca30bc2dea4881f5 | 2133c96c58f371e01a11f37bbe32152d3d77d48a | refs/heads/master | 2023-06-30T07:59:53.155718 | 2021-03-27T21:37:24 | 2021-03-27T21:37:24 | 299,123,383 | 60 | 22 | null | 2021-09-16T11:24:20 | 2020-09-27T21:34:32 | Python | UTF-8 | Python | false | false | 3,401 | py | import asyncio
import logging
from functools import cached_property
import aiohttp
from bolsa.connector import B3HttpClientConnector
from bolsa.http_client import B3HttpClient
from bolsa.responses import (
GetBrokerAccountAssetExtractResponse,
GetBrokerAccountResponse,
GetBrokersResponse
)
logger = loggi... | [
"giovannicornachini@gmail.com"
] | giovannicornachini@gmail.com |
192dba6f7212426e97860967092928411f81219c | 0e86ab6a7906f00b809275cabbc39b1746964cb2 | /Virus Spread Sim_0/SoC-Assignment-1-Abhishek.py | 28a617c60e028e8118d1f28cce87a894849f34e9 | [] | no_license | abhipaiangle/Intelligent_Agent_AbhishekPaiAngle | d8919d45590e0b68f890cea77167b99d5730bbcc | a51d3511bea9633b17fc3fc627163ed2c3c564c5 | refs/heads/master | 2022-12-31T07:24:26.134252 | 2020-10-22T11:00:01 | 2020-10-22T11:00:01 | 268,830,602 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | def swap(l):
for i in range(5):
from random import choice
a=choice(list(range(0,10000)))
b=choice(list(range(0,10000)))
s=[l[a],l[b]]
l[a]=s[1]
l[b]=s[0]
p1=[]
for i in range(1000):
a=[]
for i in range(10000):
a.append(0)
a[4999]=1
prob=[0]*65
for i in range(35):
prob.ap... | [
"abhishekangle6gmail.com"
] | abhishekangle6gmail.com |
a0042c9289a2cd05dd4f98373cb1f9d55fe146b2 | 792e4db2857ddbd21c33541d220531b38af08d86 | /机器学习算法/SVM.py | e6c93497c8f06761482cc4eb08bf54422563a6ba | [] | no_license | moyuweiqing/A-stock-prediction-algorithm-based-on-machine-learning | 4c216d02edeaaf074c4c20b050fcbda1fe289bb6 | f6a1a4f5e305b59950a5b94180067a2bb265e235 | refs/heads/master | 2023-04-11T02:24:20.310395 | 2023-03-30T07:54:35 | 2023-03-30T07:54:35 | 246,313,173 | 292 | 61 | null | null | null | null | UTF-8 | Python | false | false | 2,572 | py | import pandas as pd
from sklearn import svm,preprocessing
import tushare as ts
class SVM_Predict:
stock_code = ''
tsData = pd.DataFrame()
def __init__(self, stock_code):
self.stock_code = stock_code
def date_setting(self, start_date, end_date):
self.tsData = ts.get_hist_data(c... | [
"noreply@github.com"
] | moyuweiqing.noreply@github.com |
4749bf6ccf6bd5a56d395c5462ac67cbfea6b435 | 7936ebf5b94c3d153fb55248b52db2eff724427c | /11/homework11/zhihu_top100.py | 6fb64a0e8b94e74945b6a87d6f31271cd6307984 | [
"MIT"
] | permissive | xiaodongzi/pytohon_teach_material | f9e95f7b294a9e49d86d1a8e25cbef5efef3aaf7 | 13ed128a993637d0203f1f8c5419d781d7212883 | refs/heads/master | 2021-05-30T09:48:16.898483 | 2016-01-24T17:02:34 | 2016-01-24T17:02:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # coding: utf-8
import requests
from pyquery import PyQuery as pq
question_num = 1
page_num = 1
to_stop = False
scrap_questions_num = 100
while True:
url = "http://www.zhihu.com/topic/19776749/top-answers?page=%d" % (page_num)
res = requests.get(url)
# print res.encoding
for p in pq(res.content).find... | [
"seerjk@gmail.com"
] | seerjk@gmail.com |
dc05449b1b6b8decce88de7a50c4979e35579a3f | 3d0fca9603cd54d0dea24370e48eb6c043ce398f | /1-й курс/Программы с пар/зашифруй.py | 3ada209d60e5b09a4a7b57d2ac09201a34c02588 | [] | no_license | bungabakung/my_homeworks | 4357f272bd47469293b93846c6bcf4d474bc71ec | b1f6aedd41f5d8b24fd2e2abd49443be0e1907c6 | refs/heads/master | 2021-06-24T05:23:32.251831 | 2018-06-14T20:52:09 | 2018-06-14T20:52:09 | 67,619,420 | 0 | 1 | null | 2021-06-01T22:19:27 | 2016-09-07T15:25:18 | HTML | UTF-8 | Python | false | false | 1,647 | py | ss=[]
string=''
latinica='abcdefghijklmnopqrstuvwxyz'
LATINICA='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
kirillica='абвгдеёжзийклмнопрстуфхцчшщъыьэюя'
KIRILLICA='АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ'
s=input('Введите что-нибудь ')
while len(s)!=0:
for i in range(len(s)):
if s[i] in latinica:
for j in range(len(... | [
"lilia.blyumina@gmail.com"
] | lilia.blyumina@gmail.com |
0bf78b5a94b1e07dee662b8e341ee34aea435e03 | 54857571461a579bed30cee27871aaa5fe396bcc | /nltk-0.9.7/src/nltk/inference/inference.py | 0b6d64c2a35e50e6cfaa2627aae6c30fe56517a5 | [] | no_license | ahmedBazaz/affective-text-classification | 78375182e800b39e0e309e8b469e273c0d9590f0 | 719e9b26e60863c620662564fb9cfeafc004777f | refs/heads/master | 2021-01-10T14:50:01.100274 | 2009-01-09T03:59:01 | 2009-01-09T03:59:01 | 48,296,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | # Natural Language Toolkit: Interface to Theorem Provers
#
# Author: Dan Garrette <dhgarrette@gmail.com>
# Ewan Klein <ewan@inf.ed.ac.uk>
#
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
from nltk.sem import logic
import api
import tableau
import prover9
import mace
i... | [
"tytung@6129d76e-ddfe-11dd-a37d-c9d1c40e0883"
] | tytung@6129d76e-ddfe-11dd-a37d-c9d1c40e0883 |
dc4466d8625431c97d761145a1d498accb32cc44 | a232988fe8f247fbd56f7a91748ccfbf73326265 | /thinkful/TBay/DBRelationships.py | 5e21b196bc4d8b1d014133ad73849bdeeb7d4655 | [] | no_license | Vigs16/hello-world | 32236f6258ce42e6d8f5ef5139ecd84090be37bd | 4212e0669944f22d0d3148516b97bf9fec95b72d | refs/heads/master | 2021-01-20T13:03:51.843003 | 2017-05-30T04:52:13 | 2017-05-30T04:52:13 | 90,442,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | from sqlalchemy import Column, Integer, String, Date, ForeignKey,create_engine
from sqlalchemy.orm import relationship,sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from datetime import datetime
engine=create_engine('postgresql://ubuntu:thinkful@localhost:5432/tbay')
Session=sessionmaker(bind=en... | [
"vigs16@outlook.com"
] | vigs16@outlook.com |
602d262d87637b80483ed8cf1d334baa5e133929 | 71916e7013d190fb86ab8c666849d3a00cf63484 | /Database/naman.py | 71443a1fe8585e9f6799ddabc132967c88d5e249 | [] | no_license | nrv3098/Projects | e161d892f28970e11403d966c142e3a43e57c2ee | 60662573dcf1429240d1c38225ea46fd84ce584f | refs/heads/master | 2020-04-09T01:52:47.988525 | 2018-12-01T07:44:00 | 2018-12-01T07:44:00 | 159,920,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,349 | py | import tkinter as tk
from tkinter import *
import sqlite3
from tkinter import messagebox
from tkinter import simpledialog
conn = sqlite3.connect('Database.db')
c = conn.cursor()
def create_table(e1,e2,e3,e4,var):
str1=e1.get()
str2=e2.get()
str3=e3.get()
str4=e4.get()
str5=var.get()
#print(st... | [
"nrv3098@gmail.com"
] | nrv3098@gmail.com |
f36f09b4e05bbc16b9f5367879c5ca25aebf7d66 | bd55c7d73a95caed5f47b0031264ec05fd6ff60a | /apps/qa/migrations/0006_coupon_vendor_branch.py | 35b01a8e9fea5a66447f1b448de6613892793c36 | [] | no_license | phonehtetpaing/ebdjango | 3c8610e2d96318aff3b1db89480b2f298ad91b57 | 1b77d7662ec2bce9a6377690082a656c8e46608c | refs/heads/main | 2023-06-26T13:14:55.319687 | 2021-07-21T06:04:58 | 2021-07-21T06:04:58 | 381,564,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Generated by Django 2.0.5 on 2019-03-12 08:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0123_auto_20190312_1736'),
('qa', '0005_auto_20190312_1732'),
]
operations = [
migrations.A... | [
"phonehtetpaing1221@gmail.com"
] | phonehtetpaing1221@gmail.com |
cf51c0cc7167bbbeda4735d54fbf5b33b8042846 | 857237167c71b398c7f9924ce9a4c0d2ce274728 | /testone.py | 5930a8a9ec66ff9e9d5d7e14fab66a297b048805 | [] | no_license | navaneethknair/WeHealth | 821def00a0bbd6d1f00a95457a4d931265c16a29 | 6be7790f16f204bb02c28b3bead45e752fad70ad | refs/heads/master | 2020-03-30T21:34:27.264398 | 2017-08-13T01:05:02 | 2017-08-13T01:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import socket
if __name__ == '__main__':
address = ('127.0.0.1', 8000)
client = socket.socket(family=socket.AF_INET, type=socket.SOCK_STREAM)
client.connect(address)
client.send('hello-world')
data = client.recv(1024)
print data
client.close() | [
"597445175@qq.com"
] | 597445175@qq.com |
8505d4a70065822b96e2bb52f3c8e44ab696d6f6 | f0657bd269d63317aba8bef38c579ed4d57f2d14 | /models/layers/unet_gn_layer.py | d5369cf769eeb864d4aace0bcd6f46e55b91816b | [] | no_license | kehuantiantang/ExFuse | b632a9f6b856fa86487af98e0a442443104a3809 | b8e029e8213ac58689ca63c16f52c85ff6077c62 | refs/heads/master | 2020-05-23T10:57:44.331900 | 2019-05-15T01:49:55 | 2019-05-15T01:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
def weights_init_kaiming(m):
classname = m.__class__.__name__
#print(classname)
if classname.find('Conv') != -1:
nn.init.kaiming_normal_(m.weight.data, a=0, mode='fan_in')
elif classname.find('Linear') != -1:
n... | [
"zsef123@gmail.com"
] | zsef123@gmail.com |
312338e6323865f7023b9bfdb82286528740a82e | 0081be1a6e5dbe941d1b4cdefd4294f4f0753e38 | /ZYLABS_3/ZYLAB_10.11.py | 4ccf7426aed2a7ed055df7f62255ef14fdbe7396 | [] | no_license | KatherynBusch/CIS-2348--14911 | b5dda8d67183626b81d561abd6734e858884a256 | c0f9b448708660de254ba8ee0baf3c6fa82f3d92 | refs/heads/master | 2023-01-28T13:29:30.303081 | 2020-12-14T06:56:35 | 2020-12-14T06:56:35 | 290,910,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | # Katheryn Busch PSID: 1868948
class FoodItem:
def __init__(self, name="None", fat=0.0, carb=0.0, protein=0.0):
self.name = name
self.fat = fat
self.carb = carb
self.protein = protein
def get_calories(self, servings):
calories = ((self.fat * 9) + (self.carb * 4) +... | [
"noreply@github.com"
] | KatherynBusch.noreply@github.com |
49658d0045d2a7230bb89dd775406d26d43ad7bc | fffefcbfa7fa08daf740abf49cccb21efbc01eb3 | /src/data_collection/processing.py | a7c9d08f3fc75014c12e12855b2d2969ffdae678 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | GrigalashviliT/spoilerBlocker | 2b4260549ad3d80fbd7a229313228c591222f5a4 | 18a5e9689099d3b631a15ed20cc84a043f324055 | refs/heads/master | 2022-11-25T07:44:15.388691 | 2020-07-25T18:20:04 | 2020-07-25T18:20:04 | 256,992,634 | 6 | 0 | MIT | 2020-07-25T18:20:05 | 2020-04-19T12:23:24 | Python | UTF-8 | Python | false | false | 1,437 | py |
import spacy
import neuralcoref
class dataprocessing:
"""
dataprocessing class is to process film or serial data
"""
def __init__(self):
"""
@logic:
initialization models and etc.
@param:
"""
self.nlp = spa... | [
"noreply@github.com"
] | GrigalashviliT.noreply@github.com |
2f05050ea1ccc4477c77e75b7a36881dd9aa9857 | d1b15ac88ac517d4ccf78298bccabfe7b6bd1505 | /combine/jinja/exceptions.py | d211f601eff1050c5f7ac78647152aa2ff51efa1 | [
"MIT"
] | permissive | syllogy/combine | 5a6cdb4bd79ca8f61a7d95895bd92bb8a9583fbe | b24e13a46adea1860a23abb6346bea309d46f35c | refs/heads/master | 2023-08-14T13:51:30.096540 | 2021-10-06T02:28:20 | 2021-10-06T02:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | class MissingVariableError(Exception):
def __init__(self, name):
self.name = name
self.message = f'The required variable "{self.name}" is missing'
super().__init__(self.message)
class ReservedVariableError(Exception):
def __init__(self, name):
self.name = name
self.mess... | [
"dave.gaeddert@gmail.com"
] | dave.gaeddert@gmail.com |
6b3dbbcb6756b64d57391c14e942620926fb347f | 4c60293476c437d3b91eb909e60cf46669d7adc4 | /dataset/DeepFakes/faceswap-master/lib/FaceFilter.py | 0dfc23d6baa5e7e6437d1aae157d06c994a2a72a | [
"MIT"
] | permissive | flynn-chen/faceforensics_benchmark | 5d9726cae414cd5e76fbbcb0e13d9084bb2466a0 | 897e474a12e90954318a5e2fce810cde9a824d99 | refs/heads/master | 2022-12-10T15:22:05.122525 | 2019-12-13T23:29:00 | 2019-12-13T23:29:00 | 227,938,897 | 2 | 0 | NOASSERTION | 2022-12-08T01:50:26 | 2019-12-13T23:30:50 | Python | UTF-8 | Python | false | false | 2,863 | py | # import dlib
# import numpy as np
import face_recognition
# import face_recognition_models
def avg(arr):
return sum(arr)*1.0/len(arr)
class FaceFilter():
def __init__(self, reference_file_paths, nreference_file_paths, threshold = 0.6):
images = list(map(face_recognition.load_image_file, reference_file_... | [
"andreas.roessler@tum.de"
] | andreas.roessler@tum.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.