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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b19f24fb25557d90c289eb5bc08d12d6d4953a00 | 8d46cf39d641244cd8a4bd368779d91ff75dbf78 | /map_neigh/migrations/0002_auto_20200122_1357.py | 46c1d0574bc3a16a02756d7a879be70318233112 | [] | no_license | RanneKapcie/nofences | 9242d8e9bfe740c20ddf9d2b0393eabf10ee5c3a | a4c3ee5e8f1c546c505e6ffa5a294d0c9b3d5e79 | refs/heads/master | 2020-12-20T05:33:00.225046 | 2020-04-23T13:35:52 | 2020-04-23T13:35:52 | 235,978,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # Generated by Django 2.2b1 on 2020-01-22 13:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('map_neigh', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='customusermode... | [
"kurasz.leszek@gmail.com"
] | kurasz.leszek@gmail.com |
c5daf96e1ec9ac90dc1db252619f073fb6d4df6d | 179a0f995f5a3eb7a6005f8e96498ef21b2bf166 | /docs/conf.py | 45ccdf6d81b9baf63f859bf4fc96836c47707904 | [
"MIT"
] | permissive | VB6Hobbyst7/pycatia | 845052a4584318bf0cf0861512203ddd337a7bca | cff309fe2b4802ff2b2c5c984f8064747f81065d | refs/heads/master | 2023-04-14T20:28:51.427101 | 2021-04-27T11:03:42 | 2021-04-27T11:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,936 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"evereux@gmail.com"
] | evereux@gmail.com |
87cfca3de3f6d49048d1a833f67859a87f6d1a0b | 1d35b5254d8b13773ddc58d48092b9e92e049a04 | /10K-NearestNeighbour.py | e9256fa591c9cb24dd7d5cdcd584f026e60f45a8 | [] | no_license | ngthotuan/LearnOpenCV | f7b9cf9e3455f7eba1f4c263a25ec3e0a45bf8c9 | 34e9b0be292e54f5cd39802ca9ccf0d616e7275c | refs/heads/master | 2022-12-29T10:13:58.666053 | 2020-10-15T15:39:21 | 2020-10-15T15:39:21 | 304,267,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import numpy as np
import cv2 as cv
import matplotlib.pyplot as plt
n = 50
trainData = np.random.randint(0, 100, [n, 2]).astype(np.float32)
color = np.random.randint(0, 2, n).astype(np.float32)
red = trainData[color == 1]
blue = trainData[color == 0]
plt.scatter(red[:, 0], red[:, 1], 100, 'r', '<')
plt.scatter(blue[:... | [
"ngthotuan@gmail.com"
] | ngthotuan@gmail.com |
ff0772f888c25c316c0745c323b99f6f4d5bc740 | 66e0c0d863d2c8781600f7be443a7ef728886478 | /zo/log/_level.py | 0a2f2535c1335ddfc59a8dc3ef20116d5a23d8ca | [] | no_license | daiooo/zo | 2257007c3f8b3ecdf444ab9f60ee0f3ce0e6eae7 | a087674ff8f1e3f006869721138b13a76973b766 | refs/heads/master | 2021-04-23T11:00:29.723706 | 2020-04-03T08:42:50 | 2020-04-03T08:42:50 | 249,921,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | critical = 'critical'
error = 'error'
warning = 'warning'
info = 'info'
debug = 'debug'
trace = 'trace'
| [
"dai.z2@dai3.com"
] | dai.z2@dai3.com |
2df161b5e78c9a4e8785bf57251bffd0a81699a4 | 769daa54ddd3b29c9315f4f7b98adc0cc905dc42 | /backend/vfriendo/wsgi.py | 9425c74a21479899304cd5273234977580191b27 | [] | no_license | JoosepAlviste/vfriendo | 59714f94aee024a1a39dee4cf9f7401e1f5bc970 | 70553daaffe0fb2689259b33a6bca2ffea6752a2 | refs/heads/master | 2020-04-08T01:57:38.894106 | 2018-11-25T07:56:15 | 2018-11-25T07:56:15 | 158,916,274 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for vfriendo project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"joosep.alviste@gmail.com"
] | joosep.alviste@gmail.com |
792e7719059f16c21235baf5e55607f71e6a86f2 | 96dae2618033385c35aa47fb81f6df6caa23080d | /post/admin.py | a203d538bd55fdf2ec4c804e26948bc18ee17e55 | [] | no_license | syuuuu/4a6g0002-post | 353bd8c27e872f1c0c83b84152a4fe6e77c498ec | 200acaa7fcf41e8cc27981433ca5d67b65694257 | refs/heads/main | 2023-06-02T23:55:56.972786 | 2021-06-11T13:06:16 | 2021-06-11T13:06:16 | 376,026,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | from django.contrib import admin
from .models import Post
class PostAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'content')
search_fields = ('title', 'content')
admin.site.register(Post, PostAdmin) | [
"4a6g0002@stust.edu.tw"
] | 4a6g0002@stust.edu.tw |
abeee8d0392b7afe75264c15ed88f63325e041ff | 37ffba8fbfd0c41c43244359694d177e528ae0e7 | /apps/soundcloud/forms.py | f20c3b5f19233bb0d404cc733889bcb8d6d20740 | [] | no_license | cherylchoon/soundcloud_clone | 714fccdaee3e83bf8f32caede5e9ba7021d32913 | adf6efa4c78319e76064fb5186471c336baefee0 | refs/heads/master | 2021-01-23T05:36:01.058354 | 2017-05-10T16:31:07 | 2017-05-10T16:31:07 | 92,976,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | from django import forms
from ..loginandreg.models import User
from ..upload.models import *
from .models import Comment
from django.utils.translation import ugettext_lazy as _
class PlaylistForm(forms.ModelForm):
class Meta:
model = Playlist
fields = ['name', 'genre', 'description']
widget... | [
"cherylchoon@Cheryls-MacBook.local"
] | cherylchoon@Cheryls-MacBook.local |
e2ff68a089392acaf328b36ae2b681894f45a8a9 | 3a25c8c80f855b642bd1feaddfc69053e811f00f | /main.py | 67f030da428da6053d30792d03cc9f1fbd84f4b7 | [] | no_license | joshjo/exercises | 2753cad9a5bfaf4c52708c9ec34b6de605027fb1 | 80fec56d08c10ef50d9fbaf8a9ee987411eee905 | refs/heads/master | 2023-06-08T18:09:01.864934 | 2021-07-02T00:14:55 | 2021-07-02T00:14:55 | 382,186,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | import re
import rocksdb
from slugify import slugify
db = rocksdb.DB("./dbreverse.db", rocksdb.Options(create_if_missing=True))
WEB = 'web'
LINKEDIN = 'lnkd'
NAME = 'name'
class ReverseIndex:
@staticmethod
def _to_bytes(key):
return str.encode(str(key))
@staticmethod
def set(key, value):
... | [
"josue.ttito@ucsp.edu.pe"
] | josue.ttito@ucsp.edu.pe |
8c1605776199c122465a2aa10d3dade49beec409 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02748/s229745856.py | 07e6ff9b4f694f31ed7e0dfb26750d3f2b624a60 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | _, _, M = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
xyc = [tuple(map(int, input().split())) for i in range(M)]
print(min([min(A)+min(B)]+[A[x-1]+B[y-1]-c for x, y, c in xyc]))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
48230167eab0fc5f43cae9b6ac5bad38ed650a80 | e2e1e4ee601b4fd86dfca7449989feac94c77a33 | /classic_kernel_k_means.py | 8051ae49ae84f315a5f274078555c973d2ab93e1 | [] | no_license | sajid-r/Kernel-K-Means-Project-2014 | 5b140a3d0e6d96d5feb78497b63d2d1206eefa3a | a0b3bd5a4ba143cfe0e1563894b432a5130b973d | refs/heads/master | 2021-01-19T14:57:22.038775 | 2015-03-13T15:48:08 | 2015-03-13T15:48:08 | 32,164,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,755 | py | import numpy as np
from sklearn.base import BaseEstimator, ClusterMixin
from sklearn.metrics.pairwise import pairwise_kernels
from sklearn.utils import check_random_state
from sklearn import metrics
import os, glob
from sklearn.decomposition import TruncatedSVD
from sklearn.feature_extraction.text import T... | [
"sajidur1993@gmail.com"
] | sajidur1993@gmail.com |
23cbe79ede4070b03edeae58671d8be72e87e109 | 2d0febf1a63b4c4d5af31e3d5066a599ddb39356 | /search/searchAgents.py | adbd7d065e324787eddd21c886b530fec2ee9926 | [] | no_license | jakenemiroff/Berkeley_AI_Pacman | 902f73c4c93e423ad088661ee40d7a91c2036ade | b13e4722e3be93fd207110e14cf859ab29055513 | refs/heads/master | 2022-07-16T00:51:38.523019 | 2020-05-17T20:15:53 | 2020-05-17T20:15:53 | 264,567,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,027 | py | # searchAgents.py
# ---------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley... | [
"jakenemiroff@gmail.com"
] | jakenemiroff@gmail.com |
41b078d3ab88b489b6dd3cf7982d2e7d3dc17c18 | 67e9873f5b71e0329b6b6249283829dd33dba01e | /sales/main_app/initialize_db.py | 94c7d1ffd5c754891fec85690ee5ad7c484c20e1 | [] | no_license | daniel-leinad/subtotal | 07da87ef89273ac372cc26a745c172653e0642a1 | 33df4523986e402fc7642b8be6b9d81bf383bab3 | refs/heads/master | 2022-12-10T02:05:49.449912 | 2020-09-12T13:14:28 | 2020-09-12T13:14:28 | 294,690,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import os
import sys
import transaction
from datetime import datetime
from sqlalchemy import engine_from_config
from pyramid.paster import (
get_appsettings,
setup_logging,
)
from .models import (
DBSession,
Sale,
Product,
Base,
)
def usage(argv):
cmd = os.p... | [
"noreply@github.com"
] | noreply@github.com |
5d62a8b15b3e6cd9a71bfda0160a18e3204ac376 | ae0ad01d2b7432c5f28239c47f341336a439ec3c | /djangotest/djangotest/urls.py | 4c99b83786cf529383bbe21fa4b0a85e69514175 | [
"MIT"
] | permissive | meghaggarwal/Django-Forum | c37feb4567f83d6ad95f25e5b6559118f3f606af | 5bae07ad9545eaf076d58942e5bce8cbad5219fd | refs/heads/master | 2022-11-14T06:36:53.586786 | 2020-07-04T19:40:39 | 2020-07-04T19:40:39 | 274,471,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | """djangotest URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"meghaa.2703@gmail.com"
] | meghaa.2703@gmail.com |
572938151b792f0f6e8e2bb10d5c6bd6a452af48 | e5504d8c4880993b82d5583a11c5cc4623e0eac2 | /Arrays/loopInCircularArray__IMP.py | 768b8bdc06fdc4ba7a36f6287179bf3b4b92d756 | [] | no_license | noorulameenkm/DataStructuresAlgorithms | e5f87f426fc444d18f830e48569d2a7a50f5d7e0 | 7c3bb89326d2898f9e98590ceb8ee5fd7b3196f0 | refs/heads/master | 2023-06-08T19:29:42.507761 | 2023-05-28T16:20:19 | 2023-05-28T16:20:19 | 219,270,731 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | def circular_array_loop_exists(arr):
# TODO: Write your code here
for i in range(len(arr)):
slow = fast = i
is_forward = arr[i] >= 0
# if slow or fast becomes '-1' this means we can't find cycle for this number
while True:
# move one step for slow pointer
slow = get_next_index(arr, is_f... | [
"noorul.km@people10.com"
] | noorul.km@people10.com |
d1684f57fb28491ecde85c741f45fcd4e4659cf8 | ed9e4027cbd76fbac19598163b9673628cb07eea | /anjia/asgi.py | 372aac7872de8b88fd3e438e294b71fb8dafce32 | [
"BSD-2-Clause"
] | permissive | ankiwoong/python_kindergarten | 3a1f9a486a32866b5f37ba4673dfc2135a85eec0 | 43b1e15969f0d35073e2f7fb1286d8c094fd80a8 | refs/heads/master | 2022-09-01T08:11:27.374802 | 2020-05-27T08:45:14 | 2020-05-27T08:45:14 | 258,760,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for anjia project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"ankiwoong@gmail.com"
] | ankiwoong@gmail.com |
73fbb3301c1acd0601b2b5f5a1dbbe3fd2a828be | 804c9acec2cfe400c80f380fcb18557b1e926478 | /assistant.py | 4e2100750cb9c6aa32f41b9cd02b8289f8198350 | [] | no_license | Harshil78/Python | f8f10f271b936c45241c972922fe2b35f02ae928 | 600b4ff27cfa28b14be9f1281b129516173e862b | refs/heads/master | 2023-06-17T13:07:10.658296 | 2021-07-05T04:11:41 | 2021-07-05T04:11:41 | 379,554,120 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,614 | py | import datetime
import os
import random
import smtplib
import sys
import webbrowser
import pyttsx3
import speech_recognition as sr
engine = pyttsx3.init('sapi5')
# client = wolframalpha.Client('Your_App_ID')
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[len(voices) - 1].id)
def speak(au... | [
"harshildalal1718@gmail.com"
] | harshildalal1718@gmail.com |
3aefb338c74473c31e9b8b9f5b57d93c9d53d0e5 | 5f957add3e3f7a1885d4f1b106de72e93c8fcb1a | /ExerciciosPython/ex072.py | a2215342cdcfa208efd442734fd5f94405993530 | [
"MIT"
] | permissive | mpatrickaires/curso-python | 6e32cf785a3bc0076bb3ea24cd6d896604f4e774 | aba023648527d53bfe18833b91210a7e528a84d7 | refs/heads/main | 2022-12-27T00:57:07.467940 | 2020-10-14T00:48:09 | 2020-10-14T00:48:09 | 302,203,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | extenso = ('zero', 'um', 'dois', 'três', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez', 'onze',
'doze', 'treze', 'catorze', 'quinze', 'dezesseis', 'dezessete', 'dezoito', 'dezenove', 'vinte')
while True:
numero = int(input('Digite um número entre 0 e 20: '))
while numero < 0 or numero > 2... | [
"mpatrickaires@gmail.com"
] | mpatrickaires@gmail.com |
bb474b239a91648af44dd841343b2853899bbb38 | da38287bf935ce68321f63f17c24433384312786 | /generate&inference no texons/inference_demo_v1.2.py | 51c6887b269101830e3f04d67e3685f1a59fe4bb | [] | no_license | ningtangla/sceneParsing | 08eb5e58bceba5171e2b60a63e3b30661428e2c3 | 5b425e4203d725ac628c6b43bf1d5fa889eae7e0 | refs/heads/master | 2022-12-25T09:21:53.192613 | 2019-06-18T00:48:19 | 2019-06-18T00:48:19 | 192,429,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,323 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 24 13:52:00 2017
@author: Edward Coen
"""
from __future__ import division
from scipy.misc import comb
import math
import scipy.stats
import numpy as np
import networkx as nx
from networkx.algorithms.traversal.depth_first_search import dfs_successors
import ... | [
"ningtangzju@gmail.com"
] | ningtangzju@gmail.com |
5b32271db5c92ee02645aa87c392e218c743cf69 | 4e8ac215b672b333f19da87787c0d8768fee439e | /MIDI Remote Scripts/ableton/v2/control_surface/control/control.py | b050616c5b7e2facc9c92208f7c4ed9e683e3dbf | [
"MIT"
] | permissive | aarkwright/ableton_devices | 593f47293c673aa56f6e0347ca6444b7fce2812a | fe5df3bbd64ccbc136bba722ba1e131a02969798 | refs/heads/master | 2020-07-02T08:11:21.137438 | 2019-08-09T13:48:06 | 2019-08-09T13:48:06 | 201,467,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,384 | py | # uncompyle6 version 3.3.5
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\ableton\v2\control_surface\control\control.py
# Compiled at: 2019-05-... | [
"apollo.arkwright@gmail.com"
] | apollo.arkwright@gmail.com |
d534d3152604f66aba374500f80ac6a5d72d800e | a87c9544082acb38e74d25ced2f22370ffdca413 | /main.py | c7ecfba74fb9cf42f04bd48a49ed95f915597ec4 | [] | no_license | vladbusov/chess | ac3312e90d08408203ef93336b8dde1fc8d5b760 | ff63a45e22fbb4daebfa31bce88681a96b6c7043 | refs/heads/master | 2020-03-27T04:50:54.408867 | 2018-08-24T09:54:33 | 2018-08-24T09:54:33 | 145,973,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,571 | py | import pygame as pg
import math
import figure as fig_char
import draw
import random
def check_collision(list,col,row):
for fg in list:
if fg.col == col and fg.row == row:
return True
return False
def show_step(screen,col, row, color = (0, 255, 0) ):
if col < 1 or col > 8 or row > 8 or... | [
"to2002to2002@gmail.com"
] | to2002to2002@gmail.com |
90cb95220e9cdd80cd0f3a564548daa712b91caa | 1440dff537b6dd19d210ff6cfea425b2383a4949 | /PythonForEverybody/Ch2/Ex5_temp_converter.py | 567498e4b0ad7c975ab7855f0baaedff33d5fcc6 | [] | no_license | kieranmcgregor/Python | 519b183d0e3a306cc515dc04f53325ae9a880922 | 4750e46316910492b3763369d0b0d85d0ead812b | refs/heads/master | 2020-07-07T00:19:51.597429 | 2018-06-17T05:29:45 | 2018-06-17T05:29:45 | 74,042,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | celsius_empty = True
print("This program converts Celsius to Fahrenheit for all you yanks.")
while celsius_empty:
celsius = input("Please enter a temperature in Celsius.\n")
try:
celsius = float(celsius)
celsius_empty = False
except:
print ("Invalid entry, please enter a number.")
... | [
"kieranmcgregor@gmail.com"
] | kieranmcgregor@gmail.com |
48b211d3ffc2fe351f125460bfa2de347c5ad89c | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/frenetic-lang_pyretic/pyretic-master/pyretic/tests/test_mac_learner.py | 19c0e4482c157a77029346d963681440c374e52d | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,387 | py | #!/usr/bin/python
from mininet.net import Mininet
from mininet.node import RemoteController
import os, shlex, subprocess, utils, time
from utils import init
### Module Parameters
def get_controller():
return 'pyretic.modules.mac_learner'
def run_mininet():
# mn = Mininet()
# s1 = mn.addSwitch('s1')
# ... | [
"659338505@qq.com"
] | 659338505@qq.com |
89e2e5baa7853e3655458c8e7b859fabd2958057 | f10c419e99854949856536322f7e0f229fa54731 | /usagov-midterm-1/1-6.py | b038bc04456cea540299f21665495a2f0f3bdc32 | [] | no_license | ljforman/compjour-hw | 1f0fc598724cef7dbd121d5cb6097dcc15ba789b | 265b0206bb6890b0124a6aa10b4caf66f032a890 | refs/heads/master | 2016-09-05T11:21:09.297356 | 2015-05-07T21:11:00 | 2015-05-07T21:11:00 | 33,689,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | import requests
BASE_USAJOBS_URL = "https://data.usajobs.gov/api/jobs"
names = ['California', 'Florida', 'Maryland', 'New York']
thelist = []
thelist.append(["State", "Job Count"])
for n in names:
atts = {'CountrySubdivision': n, 'NumberOfJobs': 1}
resp = requests.get(BASE_USAJOBS_URL, params = atts)
jobco... | [
"ljlandry@gmail.com"
] | ljlandry@gmail.com |
7a36dd518dea63f2ff45446ae44a9e43136e79d1 | 10d23d6a193f1298513c0b472fae975c5e620a46 | /educational_centre/urls.py | 6ef7f712e325a321133ce887ca4267d5faf5ed88 | [] | no_license | RahimjonPc/centre | 7bc1a57dd49212a5dafb90d203a4234b29bd4336 | d90b43f417c522b21a0f8e92eb09add44764d85a | refs/heads/main | 2023-04-12T12:43:44.767769 | 2021-05-15T11:14:03 | 2021-05-15T11:14:03 | 339,373,487 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | """educational_centre URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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')
... | [
"abduganievrahimjon@gmail.com"
] | abduganievrahimjon@gmail.com |
d920d5b1e072cf4e51a188331916ae577e8a0295 | 2fa75564dd61bd3f66d424064b985285ffb9bcb6 | /tests/openmetrics/test_exposition.py | 564627224d2c6d41bf3d5485683a668fe5863941 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | leecalcote/client_python | dbbe858d5e21f3ada39a7f3fdb934afeb17b91ae | c0cee96e3cbd6f9c2a768502dcc2be3a7330abb1 | refs/heads/master | 2020-03-29T20:57:13.305625 | 2018-09-24T14:54:56 | 2018-09-24T14:54:56 | 149,500,043 | 0 | 0 | Apache-2.0 | 2018-09-19T19:14:04 | 2018-09-19T19:14:03 | null | UTF-8 | Python | false | false | 8,001 | py | from __future__ import unicode_literals
import sys
import time
if sys.version_info < (2, 7):
# We need the skip decorators from unittest2 on Python 2.6.
import unittest2 as unittest
else:
import unittest
from prometheus_client import Gauge, Counter, Summary, Histogram, Info, Enum, Metric
from prometheus_... | [
"brian.brazil@robustperception.io"
] | brian.brazil@robustperception.io |
28e1256708ac01d0ef1439aa6f1a4581420b3bb9 | 0498b81e07dd428fe6b1e405b7589e636aece8cb | /DonneesFormulaire/venv/Scripts/pip3.7-script.py | f4c7d2468e286929af7ce8285f323aa1de21ed93 | [] | no_license | YasmineSAYAD/FormationPython | 03edcc1c2588d9371f75e268333a12e4afb6e362 | b22cca087c29bdf20cab794340c4b510d55bf543 | refs/heads/main | 2023-01-20T23:02:15.575437 | 2020-11-30T17:37:32 | 2020-11-30T17:37:32 | 317,310,445 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 428 | py | #!C:\Users\hp\PycharmProjects\DonnéesFormulaire\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"yasminesayad123@gmail.com"
] | yasminesayad123@gmail.com |
c9df41b736180146356179434bb8859b8b1e2619 | 4278102a326700c8020356864724b510062a93a3 | /venv/bin/rstpep2html.py | 84316fec067be6b188aef009426cacf25bdabff3 | [] | no_license | kuda1992/CloudComputingCapstoneStreaming | 6ca77e657a695857067a4db5fceb1525b4fd7608 | 0415fbbf0b49d690db08193ac0f30257eba72600 | refs/heads/master | 2020-06-09T20:17:18.610304 | 2019-07-07T22:01:43 | 2019-07-07T22:01:43 | 193,499,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #!/Users/kuda/PycharmProjects/CloudComputingCapstone/venv/bin/python
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML from PEP
(Python ... | [
"kuda.nyamainashe@ext.soprasteria.com"
] | kuda.nyamainashe@ext.soprasteria.com |
4486200e73e58d84f2c643939596b3276a0507e6 | 91a39a4644200fc6c4ed5d8cc98c81411152767d | /app/v0/resources/Status.py | 7c4b782309566bf505f93a17df0229508e57c29f | [] | no_license | supratik94/algoshelf_backend_engineer | d652b8324ab673252c534c6389683528a2cd7234 | e50fb7842b11ec98b5c292f01e644ad5a08d2745 | refs/heads/master | 2020-08-22T11:47:46.576926 | 2019-10-21T15:56:30 | 2019-10-21T15:56:30 | 216,387,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | __author__ = "Supratik Majumdar"
__status__ = "Development"
from .Resource import API_Resource_v0
from ...models import Status as StatusSchema
class Status(API_Resource_v0):
def get(self):
statuses = list()
results = self.session.query(StatusSchema).all()
for result in results:
... | [
"supratikmajumdar94@gmail.com"
] | supratikmajumdar94@gmail.com |
872c78f5a5158413f4da1dcfb0918b692309b540 | 97af030d489f0bcc2d6d6a6cd2790e2e870d1a81 | /socks5-node-docker/server.py | 6665937ebea1948cdaf0950151aab7e84bd5ef0a | [
"MIT"
] | permissive | sentinel-official/sentinel | 42b44484795fbf41974868f3d88d5e4be298f0a6 | d0238f4ff21d0a7f2d684f645e47cff85550f0d9 | refs/heads/master | 2021-06-02T01:48:27.452187 | 2021-04-13T16:50:00 | 2021-04-13T16:50:00 | 102,737,071 | 359 | 78 | MIT | 2021-04-13T16:50:01 | 2017-09-07T12:57:06 | JavaScript | UTF-8 | Python | false | false | 583 | py | # coding=utf-8
import json
import falcon
from sentinel.server import GetSockCreds
from sentinel.server import Token
from sentinel.utils import JSONTranslator
class Up(object):
def on_post(self, req, resp):
resp.status = falcon.HTTP_200
resp.body = json.dumps({'status': 'UP'})
def on_get(sel... | [
"riotcse@gmail.com"
] | riotcse@gmail.com |
02023b78130a61af3e1d7572f7dbd62210699420 | b09a75d77f618a51e1aa01a95939b54835c73da5 | /Lab 2/Q2.py | 947141649db4c899ecbaf7a78a10c92958168bf3 | [] | no_license | itzzhammy/Data-Science | 1017a3bc8f4bd673b385d074e8f99583a1856ee5 | 9d9781523b45e26e927bb0827eb6c5e3d4ab5fe4 | refs/heads/master | 2021-01-25T11:55:17.931962 | 2018-03-01T13:51:24 | 2018-03-01T13:51:24 | 123,440,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from math import pi
r=int(input("enter r \n"))
c=2*pi*r
print (c)
a=pi*r**2
print (a) | [
"humza.murtaza@gmail.com"
] | humza.murtaza@gmail.com |
1114a68d8b2e5c4fd05992b6c8ee4ca498cc92af | 755e4e6e966433fe887f0f28f14916696b1588d7 | /code/exceptions/exceptions.py | 7e62995995ecbc57b12ce62c9ad0de8d73a94b9e | [] | no_license | phildue/FingerspellingRecognition | f18518a6e2e29b769d131e5b54846f00213f3ff1 | 1b5236142734d7b50f0f4161ecc533b7d10347b8 | refs/heads/master | 2021-03-24T10:40:24.507766 | 2017-07-03T09:33:09 | 2017-07-03T09:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | class NotTrained(Exception):
pass
class NoRoiFound(Exception):
pass
class NoContoursFound(Exception):
pass
class DescriptorFailed(Exception):
pass | [
"phild@protonmail.com"
] | phild@protonmail.com |
3b08996888e72dea09176f6ad60355a106ca9859 | c1fe92bcaaffe896bac77ed1f1b24afb94bcf7df | /turboquant/blueprints/billing/gateways/stripecom.py | f05f083442633e79c6a298c06734df101a06904f | [] | no_license | cg94301/turboquant | a7eff8a04e468a5b77dc893aff16e3709715ac51 | 501c5440eb76cf4d8225e3d83bb2795bd8b22945 | refs/heads/master | 2023-02-17T20:07:34.955772 | 2021-01-17T16:44:22 | 2021-01-17T16:44:22 | 312,879,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,872 | py | import stripe
class Event(object):
@classmethod
def retrieve(cls, event_id):
"""
Retrieve an event, this is used to validate the event in attempt to
protect us from potentially malicious events not sent from Stripe.
API Documentation:
https://stripe.com/docs/api#retr... | [
"cg94301@gmx.com"
] | cg94301@gmx.com |
c3b9ff5b8152f420b706905dcff70884f3058ed5 | 6daf7a3b7efa5b78c93dca8f672b2f84c6cdc680 | /test_app.py | 597613c907de2442b18e5d131200b35cb24fe7dc | [] | no_license | Jakejamesreid/Interview-For-Tines | 6411ced1dd6a6fa74def629d4e816a9bf7de926b | b8e163dd4d5c79992a357859de2cb2282fa0983c | refs/heads/master | 2022-10-13T23:51:50.735501 | 2020-06-13T10:04:07 | 2020-06-13T10:04:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,485 | py | import unittest
import os
import app
import datetime
"""
This test suite tests that the methods defined in app.py work as expected
"""
class TinesTestCase(unittest.TestCase):
"""
Positive test cases
"""
# Test findEventParameters method with 1 parameter
def test_findEventParameters_single_paramet... | [
"jakejamesreid@gmail.com"
] | jakejamesreid@gmail.com |
6a50f6dc840ad5ee463050db663639df9a8ea7dd | e8b12e314782bf68347838599c8168e4a8019373 | /CompareAlternatives.py | 0d80231eb7ed1c3ac5094ee2f446c2fa5eed2155 | [] | no_license | HPM573/Lab_ParallelProcessing | 0ce7e4b615afe9e2e2a281f79684e9067003aa1b | f2e6401f4a5dc057a150914653079c0284c92b4b | refs/heads/main | 2023-05-12T06:03:15.275404 | 2023-05-02T13:58:18 | 2023-05-02T13:58:18 | 180,822,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | import EconEvalInputData as D
import ProbabilisticSupport as Support
import ProbilisticParamClasses as P
from ParallelClasses import ParallelMultiCohort
N_COHORTS = 200 # number of cohorts
if __name__ == '__main__': # this line is needed to avoid errors that occur on Windows computers
# create a mu... | [
"reza.yaesoubi@yale.edu"
] | reza.yaesoubi@yale.edu |
88428e03fec38c48b75093bd1e9e491db1ccb30e | 274de9c53f1eb41be27433cd969211d741a3b640 | /Clean/migrate.py | aa60e1082b9432ed1cb6373382032666f1fcd3c8 | [] | no_license | cheddarek/cheddarekproject | 3a9428b310e55b782722652115ce2806bec464f0 | 648e374ec03f4d0d59fad23c6a54be3314a0f79d | refs/heads/master | 2021-05-26T23:33:40.448712 | 2020-04-13T20:28:38 | 2020-04-13T20:28:38 | 254,188,998 | 0 | 0 | null | 2020-04-10T03:11:54 | 2020-04-08T20:05:54 | HTML | UTF-8 | Python | false | false | 311 | py | from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from Model import db
from run import create_app
app = create_app('config')
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
| [
"noreply@github.com"
] | noreply@github.com |
1b8b4359bdbbabbe6d0256e83de7ef2f1abc8482 | 793de7bd510c0b6509f1413353d912bc8ef9bfb0 | /asset-v1_MITx+6.00.1x+2T2017+type@asset+block@Lecture13/dataExample.py | 36cd4a9ac941b27d8585c211845009333bf3a56b | [] | no_license | DamienOConnell/MIT-600.1x | eb24490bb5148348d4b092db5a776a41ec1c6819 | 319d45bbbea991b9342c99874d8aad1dd6dc5d38 | refs/heads/master | 2020-06-06T03:37:19.904231 | 2019-12-15T04:40:17 | 2019-12-15T04:40:17 | 192,628,180 | 0 | 0 | null | 2019-10-21T09:25:54 | 2019-06-19T00:05:07 | Python | UTF-8 | Python | false | false | 435 | py | #!/usr/bin/env python3
#
# -*- coding: utf-8 -*-
#
"""
Created on Sun Jun 12 13:33:39 2016
@author: ericgrimson
"""
import pylab as plt
def fib(n):
if n == 1 or n == 2:
return 1
else:
return fib(n - 1) + fib(n - 2)
inputs = []
results = []
for i in range(5):
print(fib(i))
def displa... | [
"oconnell.damien@gmail.com"
] | oconnell.damien@gmail.com |
dc4ee8e84412fbe9e26fa41aea2ba61f0a80d687 | 3b11dc40c7d772fffeb4d8683e5c9791c41f6454 | /custom/clients/ecobank/ecobank_inventory/models/inventory_account.py | 54cf03c640a891acbae5ed78bf433efd0cd027f2 | [] | no_license | Jacky-odoo/Ecobank | b986352abac9416ab00008a4abaec2b1f1a1f262 | 5c501bd03a22421f47c76380004bf3d62292f79d | refs/heads/main | 2023-03-09T18:10:45.058530 | 2021-02-25T14:11:12 | 2021-02-25T14:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | from odoo import api, fields, models
from odoo.exceptions import ValidationError
class InventoryUser(models.Model):
_name = 'inventory.account'
_rec_name = 'name_and_code'
name = fields.Char(string='Name', required=True)
code = fields.Char(string='Code', required=True)
name_and_code = fields.Char... | [
"francisbnagura@gmail.com"
] | francisbnagura@gmail.com |
44e249876f0bd5aca94dc32337cd2e718f6e302a | 8f64409717f221474fab2ce4d53d0f37cdb2bed0 | /products/forms.py | 864f1084a91337e18a6638c227bc4006f0b4f59c | [] | no_license | teemoteemo0318/PBC_final | 5e7626dfe7b16c20247cee529e457e4b95ecd3b9 | f0d965d947aca84b3a9a2e42b6d24951e540e997 | refs/heads/main | 2023-02-14T15:44:46.302694 | 2021-01-05T16:56:15 | 2021-01-05T16:56:15 | 321,557,381 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | from django import forms
from django.core.exceptions import ValidationError
from datetime import date
import requests
import pandas as pd
class Ticker(forms.Form):
ticker = forms.CharField(label='股票代碼', initial='0050')
start_date = forms.DateField(label='開始日期', initial='2020-01-01', widget=forms.DateInput(attr... | [
"teemoteemo0318@gmail.com"
] | teemoteemo0318@gmail.com |
38eaeac29ebaa70dc88d888b36fe8d2e3156dd76 | 083b3f5b0d23c269c6a9ff1ea413e70fb799a497 | /Leetcode Challenge/09_September_2020/Python/Week 5/2_First Missing Positive.py | 5daf39e470ef89206f9440b17c1cc1717578a4f7 | [] | no_license | HectorIGH/Competitive-Programming | b2e02dff140d9ebb06c646f7be0b53ea0afe90c9 | 467058c63e8a7e76805feebe3020bac4d20516a6 | refs/heads/master | 2022-12-31T18:32:46.824626 | 2020-10-16T20:38:33 | 2020-10-16T20:38:33 | 279,733,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | #Given an unsorted integer array, find the smallest missing positive integer.
#
#Example 1:
#
#Input: [1,2,0]
#Output: 3
#Example 2:
#
#Input: [3,4,-1,1]
#Output: 2
#Example 3:
#
#Input: [7,8,9,11,12]
#Output: 1
#Follow up:
#
#Your algorithm should run in O(n) time and uses constant extra space.
#
# Hide Hint #1
#T... | [
"HectorIGH@users.noreply.github.com"
] | HectorIGH@users.noreply.github.com |
77c326d8b4be8828d4ff340158b1355fd541aecb | b97edfc765baa1432fcef82596e2a2d48310cce0 | /algorithms/say.py | d6b5ed481550797d2a4d690ecaf72ebaaa5c6346 | [] | no_license | NicholasPiano/scripts | 4dadaa97bb1bb18bd51c5526b0a57c7ddc554fce | 76b610af49128f0434419fcd75be606ef5efbb37 | refs/heads/master | 2020-05-31T01:29:43.284877 | 2015-01-05T02:00:28 | 2015-01-05T02:00:28 | 27,193,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | #!usr/bin/python3
import os
os.system('say vizontlatahshrah') | [
"nicholas.d.piano@gmail.com"
] | nicholas.d.piano@gmail.com |
101e6d98e6ea5327b9632183ef8eb52de0c552e9 | ff5eea95bb0827cb086c32f4ec1c174b28e5b82d | /gammapy/background/tests/test_ring.py | 047cad9a887193d1551fbd48446204c72bfc2e9e | [] | no_license | pflaumenmus/gammapy | 4830cc5506a4052658f30077fa4e11d8c685ede0 | 7b5caf832c9950c886528ca107203ce9b83c7ebf | refs/heads/master | 2021-01-15T23:27:46.521337 | 2013-09-25T14:23:35 | 2013-09-25T14:23:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import division
import unittest
import pytest
import numpy as np
from numpy.testing import assert_almost_equal
from astropy.io import fits
from ..maps import Maps
from ..ring import RingBgMaker, outer_ring_radius
try:
import scipy
... | [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
b383b5c92021bb5c8a33532a9403d85bb62c3711 | 1b426a96bade22b522e87f61ed2834c536bfa70a | /SRC/XieCheng/11.py | 579f5a919702e969647df48c505377edc1d5275f | [] | no_license | wyt843/MyPython | 4b82ab1fca909d631f51dd075390276b7c0fd9b2 | 10b8aec3480e800f8009771794a65033249d9c01 | refs/heads/master | 2020-04-14T14:53:55.733807 | 2019-01-12T04:39:55 | 2019-01-12T04:39:55 | 163,910,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | #! -3
# coding:utf-8
import threading
# 引入异步IO包
import asyncio
# 使用协程
#@asyncio.coroutine
async def hello():
print("hello world!{}".format(threading.currentThread()))
print("start.....{}".format(threading.currentThread()))
# yield from asyncio.sleep(10)
await asyncio.sleep(10)
print("Done......{}"... | [
"wenyitao880901@126.com"
] | wenyitao880901@126.com |
6825136be63fc66500e4203d076fa8e265b566b4 | 70500d9a4f67970f0a92b2d5815357c064d972fd | /proj/settings.py | ba3d5cf2a77dd4d8ddf1aaceed7dd153adbcb473 | [] | no_license | 668Jerry/javascripttraining | e715a8a2553c91bf9d0b1d2ccc104fa516fe61cd | 50a325694e4f8959a77ff700b9ed2cb8f395bdbd | refs/heads/master | 2021-01-21T23:03:52.421167 | 2014-07-08T16:27:41 | 2014-07-08T16:27:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,470 | py | """
Django settings for proj project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | [
"668Jerry@gmail.com"
] | 668Jerry@gmail.com |
aed3798cdd0145f3e20c5e1702297ae9239874bb | 4641ae98ca768ec76787f18f2e5ceb764dcee9da | /mongo.py | cc9c2d5d0220b802557def2eb074127f43233c31 | [] | no_license | cashblxxd/ozon_site | 4663c2963a51e44a149c8f344d51836f2093c3d3 | 50097fc93546241c0edd8496a7f09d5fcbc4d5dc | refs/heads/master | 2023-02-05T07:19:06.995993 | 2020-09-24T12:54:13 | 2020-09-24T12:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,672 | py | import pymongo
from pprint import pprint
import secrets
from mongo_queue.queue import Queue
import string
import random
import gridfs
import datetime
from bson.objectid import ObjectId
def user_exist(email, password, client):
data = client.userdata.users.find_one({
"email": email,
"password": pass... | [
"gcc0xff@gmail.com"
] | gcc0xff@gmail.com |
30c0de57c10ed526a1bc89beaa8aed33b6c0e89f | cb40fda810fa7889e0324b254320168ccde84bc5 | /scope.py | 098cd2085216ac03a0c41ae6208ef28c83a25f35 | [] | no_license | gsmith98/Compilers-Interpreters | 434621e204c23002195d016adc5e49af02823f7f | 0d1c4a75f954bcfe13cf1adffc981fed9b416776 | refs/heads/master | 2020-03-06T20:57:01.274889 | 2018-03-28T01:38:16 | 2018-03-28T01:38:16 | 127,066,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | # Graham Smith gsmith98@jhu.edu
from customexception import CustException
from entry import *
class Scope(object):
def __init__(self, out):
self.__outer = out # pointer to outer scope
self.__table = {} # dictionary: the symbol table
def insert(self, name, entry):
if name in self.__t... | [
"smitgw11@gmail.com"
] | smitgw11@gmail.com |
9d1bf787ebd696de47a90e2ffeb0890f15f54314 | e58340c84c35922ddac12c3eb4d7e4534ec62bd3 | /blockchain/lib/data/historical/__init__.py | 6b236f5d1542ed4898e21c5c2d89fb93259f5614 | [] | no_license | niki-rohani/blockchainanalysis | 106d1b10fd582fcc9a643a72efe8cf12be315e86 | fa43fe0e116ea951c0f0bc9f9de971a8d55148d1 | refs/heads/master | 2021-06-29T22:17:33.169284 | 2017-09-17T16:36:40 | 2017-09-17T16:36:40 | 102,991,795 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from .getter import Getter
from .quandl_getter import *
from .poliniex_getter import * | [
"niki@clustaar.com"
] | niki@clustaar.com |
ff31f03d357f8dd02d1fef1e8193bb092e608bea | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02708/s465285057.py | b9e8c08a651992f50a225309892a6784c1a1572f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from itertools import accumulate
N,K = map(int,input().split())
acc = list(accumulate(range(N+1), lambda x,y:x+y))
ans = 0
mod = 10**9+7
for i in range(K, N+1):
r = acc[N] - acc[N-i]
l = acc[i-1]
ans = (ans+r-l+1) % mod
ans += 1
print(ans % mod) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
261e311327b98944fe31f1d14e3811f0bd482d99 | 499b635838407840f350d1dd5eebb9e999537ef3 | /leetcode/841.py | 1de28de431307bb12b4f24a251b1303701ab309b | [] | no_license | DzwS/python | f57f1d671c523b8b10196f5e7e830998dae8056d | 69145c23fe5d43346e17cd6c88cd987ebbd32dc5 | refs/heads/master | 2021-06-12T12:25:22.098692 | 2020-06-18T05:30:54 | 2020-06-18T05:30:54 | 98,389,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | # -*- coding:utf-8 -*-
import json
class Solution(object):
def canVisitAllRooms(self, rooms):
"""
:type rooms: List[List[int]]
:rtype: bool
"""
pass_room = [0]
if len(pass_room) == len(rooms):
return True
else:
for i in range(len(rooms[... | [
"zhiwei.deng@quantil.com"
] | zhiwei.deng@quantil.com |
5b2e346f5c8b6a03ce20a7f271cc29b680d72174 | 9d177a8d997545a2be5e2e6d1cc18fd274bdd07c | /python/algorithm/dfs_graph.py | 5f74387f452e5bf2831c2377f1d5144e9b4b701f | [] | no_license | hamidb/interview-questions | e33ff1a8a54e5eb161c6dcc8d32dd6faf031545c | 54c7a037dcc4f2a62e0193875049338cdbcf5e78 | refs/heads/master | 2021-11-27T20:03:50.350437 | 2021-11-15T17:41:03 | 2021-11-15T17:41:03 | 238,605,239 | 18 | 7 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | """Graph dfs"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from adt.graph import Graph
def dfs_recursive(graph):
assert isinstance(graph, Graph)
assert graph.size > 0
def dfs(graph, i, visited):
if visited[i]:
return 0
visited[i] ... | [
"hamidbazargani@gmail.com"
] | hamidbazargani@gmail.com |
9908a56a061eff21e4ceac0b1022f1a7490368bd | 52070bb0c7801e927c137ef0c3c1280e35e8ff62 | /setup.py | 1abef2de6614eb9052f7a6abaaa0f5904ac17d61 | [
"MIT"
] | permissive | frommie/rasahub-humhub | 0dd24fcfc73a7496672087465427add14ce26a9a | fe8b2f64caa37f05fcc977d331285668a7fcbb84 | refs/heads/master | 2020-03-14T12:40:52.803384 | 2018-05-29T11:45:43 | 2018-05-29T11:45:43 | 131,617,272 | 0 | 1 | MIT | 2018-05-29T11:04:52 | 2018-04-30T16:06:24 | Python | UTF-8 | Python | false | false | 1,009 | py | from setuptools import setup, find_packages
install_requires = [
'rasahub',
'mysql-connector',
'nltk',
'rasahub-google-calendar',
]
tests_requires = [
'testing.common.database',
'testing.mysqld'
]
extras_requires = {
'test': tests_requires
}
setup(name='rasahub-humhub',
version='0.... | [
"christian.frommert@gmail.com"
] | christian.frommert@gmail.com |
28dd7802ca94809fb9c83ef1872020eeb3df4970 | 43078a93c7c0b1f0ff9d4038ddb70b091a019851 | /backend/api/main.py | ef9b8f8c2597d6d24a46bcc2f5617e5a2e8aa370 | [] | no_license | danherre/fakebook-marketplace | 3d9dbcbe7413629c819bbcf693c2ae240abad78c | e62d83f2ac074f20d6efe88316881aa0fb66af69 | refs/heads/master | 2023-01-23T15:48:42.266358 | 2020-12-08T01:11:44 | 2020-12-08T01:11:44 | 319,466,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from flask import Flask, request, session, abort
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run() | [
"amanzhan@umich.edu"
] | amanzhan@umich.edu |
dd05a3660265b3bb6cf0d8000feff2f9889e8c5a | ee4b296cc4a76aef70a619a72388646e8a375966 | /main_app/migrations/0006_dog_user.py | a2532b67574add8e8e764a2b62176e7916a4d78d | [] | no_license | sweetvanloan/dogcollector | 2c4868ce6ea09b1d4c090c2713e4c7490e5fb73d | f55ac06d50413f570ea648daf2b215001bc80407 | refs/heads/master | 2022-12-22T07:58:42.545424 | 2020-09-22T00:32:39 | 2020-09-22T00:32:39 | 297,463,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Generated by Django 3.1 on 2020-09-21 23:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main_app', '0005_photo'),
... | [
"Sweet@SweetVanLoan.com"
] | Sweet@SweetVanLoan.com |
14d9b13c4985317a5d54ac63e32834cff9f3ed42 | 6531330231a8ea568534cf8c73bdab9422288a9e | /authentication/settings.py | 7fcef2268dad295ce816c2690db028241483fd0b | [
"MIT"
] | permissive | mateusvictor/Authentication-System | 7bbb1cc45f237b22cfa2f88ba93ac9f19507d302 | c94d97f38bfaf5d6861de633a4f7e2c375874d7e | refs/heads/main | 2023-04-10T08:34:10.871198 | 2021-04-25T19:41:45 | 2021-04-25T19:41:45 | 361,516,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,266 | py | """
Django settings for authentication project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from ... | [
"mateus_victors@outlook.com"
] | mateus_victors@outlook.com |
41dc432df23214ff9f97ee36dd737200733c996b | c7792f3ef178fcc36ceea9c54903c18c32a562a1 | /problems/258. Add Digits.py | 60d891c576d4d60c5f22bc2f0ba26cc124cffafd | [] | no_license | yukiii-zhong/Leetcode | ed69cc9a96aac5ed7ce7fa4acb048cadf50dc568 | 0fc972e5cd2baf1b5ddf8b192962629f40bc3bf4 | refs/heads/master | 2020-03-10T12:17:23.211124 | 2018-07-17T13:43:57 | 2018-07-17T13:43:57 | 129,374,261 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | class Solution:
def addDigits(self, num):
"""
:type num: int
:rtype: int
"""
while num >=10:
temp = 0
while num > 0:
temp += num % 10
num = num // 10
num = temp
return num | [
"30614747+yukiii-zhong@users.noreply.github.com"
] | 30614747+yukiii-zhong@users.noreply.github.com |
3784c3442149346ad2ad5f0b39e5d50c865b2abc | d019baf5ec7911a72b335d2a3dc5165294cf87ad | /practice 2/Built_in_function_1.py | c725fde604b06d82a2d9e3019f52b15f430ee197 | [] | no_license | EunSe-o/Python | aaf56ec210d60dd48c3983d5e597da44ec49b3e6 | f062f40b7051e888fda6976cee6fbf9634244a73 | refs/heads/master | 2023-02-16T20:50:54.557663 | 2021-01-09T07:13:36 | 2021-01-09T07:13:36 | 287,592,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | print(abs(-5)) # abs : 절댓값
print(pow(2,3)) # pow(a,b) : a^b의 값
print(max(5,22)) # max : 최댓값
print(min(4,11)) # min : 최솟값
print(round(3.14)) # 3 / # round : 반올림
print(round(5.99)) # 6
from math import * # math library 안에 있는 모든 것을 사용
print(floor(5.99)) # 5 / # floor : 내림 , 소숫점 이하를 모두 삭제
print(ceil(3.14)) # 4 / # ceil : ... | [
"dkan601@gmail.com"
] | dkan601@gmail.com |
1ba19442b8c3c6088b2d7f91c116de4870e58ec3 | 8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4 | /pyobjc-framework-SpriteKit/Lib/SpriteKit/_metadata.py | 133d826139cade678d14d84de54d9b4985ef7ec4 | [
"MIT"
] | permissive | strogo/pyobjc | ac4201c7742eb75348328eeecb7eedf4e3458de3 | 2579c5eaf44b0c5af77ee195c417d2c65e72dfda | refs/heads/master | 2023-07-13T00:41:56.448005 | 2021-08-24T06:42:53 | 2021-08-24T06:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,549 | py | # This file is generated by objective.metadata
#
# Last update: Sun Jul 11 21:54:16 2021
#
# flake8: noqa
import objc, sys
if sys.maxsize > 2 ** 32:
def sel32or64(a, b):
return b
else:
def sel32or64(a, b):
return a
if objc.arch == "arm64":
def selAorI(a, b):
return a
else:... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
33a6c66ed1fcda77e23c93fbeb6b2dd5e4301723 | 3168f262d0e9ae151b04a0deed4642081679e319 | /scripts/datadownload.py | cfbd1e7b313e07bd8866f28530fef00b6fd0a74c | [] | no_license | mariamsm1/ShortProject2020 | ef71106b6ce905b41b38dd05f6067f748a63c746 | c3ef79668613589e42719e73fdd5fef9c8e1b5f0 | refs/heads/master | 2023-04-28T17:20:15.281680 | 2021-05-17T09:25:50 | 2021-05-17T09:25:50 | 257,231,231 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,196 | py | #MARIAM MIARI
#
#2020-2021
#
#SCRIPT TO DOWNLOAD ALL DATA USED IN THIS SHORT PROJECT.
#
#---------------------------------
#Downloading .tar.gz files from "The Autophagy database"(release version January. 18, 2017). It requires wget and tarfile libraries.
#save the url of the file to a variable
url = "http://www.tanpak... | [
"noreply@github.com"
] | noreply@github.com |
b4ad40bd61d3ddb2d873ab757843b5d2b03823d7 | 9ce6a0eaba9f82d536ca4348a1594f90f5d67638 | /PrG14.py | 4f6cebbd15b25ed6a45025222b4684b470f0b358 | [] | no_license | Jeevankv/LearnPython | 028d57ac7b6b68d129e9769541ae509df8ef204d | 504b96795b6ccd107f0b176adc142246f9a26094 | refs/heads/master | 2022-12-21T15:53:27.669206 | 2020-09-01T10:36:38 | 2020-09-01T10:36:38 | 279,399,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # actor1.py
#
# Simple attempt at actors
_registry = { }
def send(name, msg):
_registry[name].send(msg)
def actor(func):
def wrapper(*args, **kwargs):
gen = func(*args, **kwargs)
next(gen)
_registry[func.__name__] = gen
return wrapper
if __name__ == '__main__':
... | [
"noreply@github.com"
] | noreply@github.com |
5a5c3fab36ff919f45dc99298d251d4dee6b9026 | 5706ba3be1f7e11fee1cdef9a70e20e6c4e624c8 | /src/utils/ImageResizer.py | 94be85853d11a1aa251f94bc1ead17021029bf33 | [] | no_license | KoenduBuf/CVbyDL-Object-Property-Inference | 157269e41c0277aa6eb1ce5703a2c6e1089ffbec | 56711dc3092fb93ccd0dd4dbc04a1ac2ea0a4272 | refs/heads/main | 2023-05-10T11:19:36.908014 | 2021-06-18T19:25:46 | 2021-06-18T19:25:46 | 362,487,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | #!/usr/bin/env python3
import os
from PIL import Image
def img_file_extension(filename):
ext = os.path.splitext(filename)[1]
if not isinstance(ext, str):
ext = ext.decode('utf-8')
return ext.lower() in { '.jpg', '.jpeg', '.png' }
class Resizer:
def __init__(self, folder, tofolder):
se... | [
"koen.du.buf@gmail.com"
] | koen.du.buf@gmail.com |
21cc1ba23778a7ba76d8b97034ae2a2236266abf | 864acf7235e330123c3d68ed14cdd8bf8eed800b | /crm/accounts/models.py | be98a7f2e0926b1e0b0ec5e7fd8a599dfe9597b2 | [] | no_license | wahid999/djangostuff | 83f0ae53df5c53d192603d7aaf7ee72f8665c240 | c102edfb13b8ba39930e44069122c5e545ef00ee | refs/heads/main | 2023-07-04T20:02:32.550831 | 2021-08-13T16:07:20 | 2021-08-13T16:07:20 | 399,344,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Customer(models.Model):
user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE)
name = models.CharField(max_length=200, null=True)
phone = models.CharField(max_length=200, null=True)... | [
"wahidhussainturi@gmail.com"
] | wahidhussainturi@gmail.com |
30c7dc196abffb5095f86a1a8f6e193b52fd75a4 | 80f9605422d4c219f87341446c46a38610b47b79 | /code/calculation.py | 0530b390cc18eaece1041143f933561640cb5ec7 | [] | no_license | shashwatpritish/magnemite | e2d778103fcbcba3bde09bf1613d6c4447e1220c | 717d7129c4d9d32d2d3279df2a193fdaf8de8559 | refs/heads/master | 2023-04-30T04:11:38.735038 | 2016-12-18T22:33:48 | 2016-12-18T22:33:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | import math
f_c = 5200
f_s = 11700
delta = 21
F_s = 3 * f_s
lambda_c = 2 * math.pi * f_c / F_s
print("Digital Frequency: ", lambda_c) # цифровая частота
lambda_s = 2 * math.pi * f_s / F_s
print("Sampling Frequency: ", lambda_s) # частота выборки
omega_c = math.tan(lambda_s/2) / math.tan(lambda_c/2)
print("Band Ed... | [
"noreply@github.com"
] | noreply@github.com |
79a0777522365b672aa322c73f3064e169938708 | 36a2a49f367346f1907487749c0eb107cb16bc7b | /filters.py | 1eaf841eeadc223a6fbb03251ee726d9d0a72e87 | [] | no_license | lukatmyshu/qrassassin | 78c505f67d83d8fb6b1d766a54fd6c986fb33b13 | 8435b6556f731a2429f3628a7169934a77b21320 | refs/heads/master | 2021-01-20T23:26:31.028930 | 2011-01-07T21:46:39 | 2011-01-07T21:47:29 | 1,231,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from google.appengine.ext import webapp
from util import *
register = webapp.template.create_template_register()
@register.filter
def make_user_url(userid):
digest = make_digest(userid)
return "/user/%s/%s" % (userid, digest)
| [
"vijay@vcr.corp.meebo.com"
] | vijay@vcr.corp.meebo.com |
7e06dd17c6c8f3382921b07d5a29bfd3f67c4817 | 846e642fd9b01d3b500d3efba4790761039eec24 | /code/smtp.py | 978b10738307ac891f4680f1e0a033f0d1ac1892 | [] | no_license | sachinyadav3496/Machine_Learning_Workshop | ffea23799c0f8477d9b5cc19b98e7d33a6364390 | 37f433631d1ae4e4db37c4baae6cdc3a7619423e | refs/heads/master | 2020-11-24T11:49:45.936367 | 2020-05-01T08:38:10 | 2020-05-01T08:38:10 | 228,130,385 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py |
import smtplib
import getpass
def Main():
print("\n\n*************************welcome************************\n")
print("\nWelcom to Email Service \n")
print("Enter your login details - \n")
gmail_user = input("\n\nUserName : ")
gmail_password = getpass.getpass("Password : ")
... | [
"sachinyadav3496@gmail.com"
] | sachinyadav3496@gmail.com |
7c5b1c7af5084e6f3d0c140bf2c27010d19889f6 | 42cfca63174c61b759fb853708acf4c0ff25cda2 | /mayeye/WebSocket.py | df28b95b0616ebe64dd6fd5837981b3241896b2c | [] | no_license | Ericgoodboy/mayeye | 4a4e84413ccdd07c6b446abefaf34e6533d68902 | d27c50302c5ca694d04b9784bfaec53f735687e9 | refs/heads/master | 2020-03-18T03:14:03.376295 | 2019-09-18T13:20:10 | 2019-09-18T13:20:10 | 134,229,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | from socket import *
import _thread
def log(*args):
print(*args)
ip_port = ("127.0.0.1",1923)
class WebSocket(object):
def __init__(self):
self.back_log = 5 # 连接池
self.server = socket(AF_INET, SOCK_STREAM)
self.server.bind(ip_port)
self.handleMap = {}
#self.loadMiddleWa... | [
"776938336@qq.com"
] | 776938336@qq.com |
61f0e4b2c9282b83977912f198e755183d4531c0 | 33753890e0af2afa1bf0a1ccae74d12088cbdfad | /inventory/admin.py | c31657e3618e7fc734e32c51b9caef33a9e16fc5 | [] | no_license | MihailShishow/inventory | 4530fa5a6e299509464cfd228c771a8535244b66 | 627f83d1bc64114bc408d122710eaa14ab4b2c54 | refs/heads/master | 2022-12-13T00:45:12.062871 | 2020-01-29T13:16:40 | 2020-01-29T13:16:40 | 224,256,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(ProductCategory)
admin.site.register(Product)
admin.site.register(Counterparty)
admin.site.register(ProductIncome)
admin.site.register(ProductOutcome)
admin.site.register(IncomeWarrant)
admin.site.register(OutcomeWa... | [
"fanoffm@gmail.com"
] | fanoffm@gmail.com |
6ad749b446664d9299143f36496269a2281f3e3d | 8cb7e95552d9b55282a26b39eef8223ad5a998a5 | /tests.py | 93e1e420b7f8dedbe4386bb28761d13079a3eb66 | [
"MIT"
] | permissive | coleifer/ucache | c3f8949a710edd2e19ae18ae32eeccc1e1100837 | 1b2ac7ca8c67dd895b45d0fddcc7b5542b0b8fd9 | refs/heads/master | 2022-12-28T00:49:59.736055 | 2022-12-14T02:41:29 | 2022-12-14T02:41:29 | 165,595,140 | 72 | 8 | null | 2019-05-12T12:37:44 | 2019-01-14T04:26:22 | Python | UTF-8 | Python | false | false | 10,273 | py | #!/usr/bin/env python
import glob
import os
import sys
import time
import unittest
from ucache import *
class BaseTestCache(object):
cache_files = []
def get_cache(self, **kwargs):
raise NotImplementedError
def cleanup(self):
for filename in self.cache_files:
if os.path.exi... | [
"coleifer@gmail.com"
] | coleifer@gmail.com |
186763da45df57b945fb4e25891451e063e0e17b | 897a8d338f42a0f76cc415d3366d6032f32f65b0 | /homework/3주차숙제_최종용.py | db2a326986ebe580205e99ba318a9a5d2fd32874 | [] | no_license | dreambear00/sparta00 | 351ab9695176a68f7ca19bb1babd0b3edc194765 | 190621bc5044602265730c10717fa46c8bc662d6 | refs/heads/master | 2022-09-27T11:39:43.124220 | 2020-06-05T18:31:40 | 2020-06-05T18:31:40 | 264,386,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | import requests
from bs4 import BeautifulSoup
headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'}
data = requests.get('https://www.genie.co.kr/chart/top200?ditc=D&rtm=Y',headers=headers)
soup = BeautifulSoup(data.text, 'html.par... | [
"dreambear00@users.noreply.github.com"
] | dreambear00@users.noreply.github.com |
577b5b8dfaff572f4dc8c07ec7bfae8a445d82d5 | 4ba1235ec618513df3f13c243f4430fe657f5610 | /ex35.py | 10d3e51a84c50b037e8e290a607ba86aead44ddd | [] | no_license | AuraIV/lpthw | 414e79e4be182b98da9cde2f9b7134903783b47d | 573d3e17684791f25fd34b0289d4a622db6e5312 | refs/heads/master | 2021-01-13T00:55:55.173380 | 2015-12-31T20:24:31 | 2015-12-31T20:24:31 | 48,452,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | from sys import exit
def gold_room():
print "This room is full of gold. How much do you take?"
choice = raw_input("> ")
#if "0" in choice or "1" in choice:
try:
how_much = int(choice)
except ValueError:
dead("Man, learn to type a number.")
if how_much < 50:
print "Nice, you're not greedy, you win!"
... | [
"aura.velarde@gmail.com"
] | aura.velarde@gmail.com |
93e0d1af53bc2b9efd06b47d2a1c4276bdb0b0bd | 5390d79dad71ad0d9ff9d0777435dcaf4aad16b3 | /chapter_06/favorite_number.py | 124b9763eeac8593df0e93e0c0e845aa9bc3e5dd | [] | no_license | JasperMi/python_learning | 19770d79cce900d968cec76dac11e45a3df9c34c | 8111d0d12e4608484864dddb597522c6c60b54e8 | refs/heads/master | 2020-11-26T08:57:02.983869 | 2020-03-11T10:14:55 | 2020-03-11T10:14:55 | 218,935,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | favorite_numbers = {
'bob': 2,
'sarah': 6,
'martin': 8,
'katy': 9,
'tom': 10
}
print('bob' + "'s favorite number is " + str(favorite_numbers['bob']) + ".")
print('sarah' + "'s favorite number is " + str(favorite_numbers['sarah']) + ".")
print('martin' + "'s favorite number is " + str(favorite_numbe... | [
"darmi19@163.com"
] | darmi19@163.com |
5581a91ff324a9d01492f9aa470ca5b410c748e3 | f2053594612d1b3e56a93653892941875d305288 | /ordenamiento.py | 1c6005d0834e18925702ca9b925622a83e7de323 | [] | no_license | jesuslz/Automatization | 3b3c87c38005c533c2d08a1c8eda97cf7c7f8f79 | 082353be1bd094afe17dda405c17248089d2ef98 | refs/heads/master | 2020-03-25T19:09:05.467184 | 2018-11-21T17:28:43 | 2018-11-21T17:28:43 | 144,067,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py |
import openpyxl
import numpy as np
def alignment(a, b):
'''El primer parametro de esta funcion siempre debe ser
el vector base'''
a.sort()
b.sort()
#hacerlos del mismo tamaño
for i in range(len(a)-len(b)):
b.append(None)
for i in range(len(a)):
if not a[i] == b[i]:... | [
"jlopez@integssoft.com"
] | jlopez@integssoft.com |
d0a3294bde5578af9e31e1a16451cde36d4dccd7 | 326e58cc44ebba305b37b7cb74387d9ac1e72703 | /keras_wide_deep_98_table_15GB/python/lib/read_conf.py | b08fb022b1d7ce9d91175da3e1f90f4ad80076fb | [
"MIT"
] | permissive | WenqiJiang/FPGA-Accelerator-for-Recommender-Systems | ef0d02abf75d522b511ee1b51bd5c2f591b6f79a | 6c3031487cd1447b7f5362483c14b108177387bb | refs/heads/master | 2021-07-07T22:23:13.270004 | 2021-06-09T21:46:22 | 2021-06-09T21:46:22 | 244,604,800 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,581 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: lapis-hong
# @Date : 2018/1/24
"""Read All Configuration from wide_deep/conf/*.yaml"""
import os
import yaml
from os.path import dirname, abspath
BASE_DIR = os.path.join(dirname(dirname(dirname(abspath(__file__)))), 'conf')
SCHEMA_CONF_FILE = 'schema.yaml'
DAT... | [
"wejiang@alveo0.ethz.ch"
] | wejiang@alveo0.ethz.ch |
d43b4ac02dac484f79232529a81775994b074d56 | 766b6f7029be1123451c772dcd30ec76303f0557 | /gxpbin/experimental/ucpw | 8cc03e919913c5ce9de2348ec12cafbf033fdfcc | [
"BSD-3-Clause"
] | permissive | qnu/gxp | 774cd582ef5c1237cb7e5ab95b79d849b5009fd4 | 8dd9d396102e254cb4712fe572b64e398a5f069b | refs/heads/master | 2020-12-14T08:53:19.583854 | 2018-08-03T17:25:45 | 2018-08-03T17:25:45 | 34,555,726 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 26,534 | #!/usr/bin/env python
# -*- python -*-
import sys,time,os,select,mmap,random
from ucp_common import *
# Please set options in ucp_common.py
############################################################
# from sock.py
############################################################
"""
'sock.py'
Wrapped socket implementat... | [
"dun@cs.uchicago.edu"
] | dun@cs.uchicago.edu | |
4ce6947775dab7af88e1fc6fdad91346ee7eeae3 | 0e9499a04019c844b1c5570ad401fc887aecfda1 | /ability.py | 1c5dd1771e15851e6e7b7706ef814db3fe2e7345 | [] | no_license | stanleychow/Superhero-Team-Dueler | 3365bf6722e193ff2a66f8868edaba72cf830262 | 9e12d24bf716037374259cd1aef0fe524063f4da | refs/heads/main | 2023-01-18T20:17:52.354410 | 2020-11-30T01:52:46 | 2020-11-30T01:52:46 | 314,967,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #Random Module
import random
#Ability Constructor
class Ability:
def __init__(self, name, max_damage):
self.name = name
self.max_damage = max_damage
def attack(self):
random_value = random.randint(0, self.max_damage)
return random_value
if __name__ == "__main__":
ability ... | [
"chowtech1022@gmail.com"
] | chowtech1022@gmail.com |
0070d9d32bf7e024587c9d7fad59d432a7f11e4e | 0a3940d6f8c083900db072876f3afd769bbfdb71 | /2019 Mar 24/bricks.py | e08fbc399a62434e0ca89e3ebeb800ae16364394 | [] | no_license | HelioStrike/Arjuna-Code | 174a104d4c8687535ae06ca28d71188eeb95784e | 1679ba15990116e6abba80979f228b0860ce8dc4 | refs/heads/master | 2020-04-21T23:38:11.147929 | 2019-09-08T05:05:36 | 2019-09-08T05:05:36 | 169,952,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | n = int(input())
mapp = [0 for i in range(100)]
for i in range(n):
s = input().split(' ')
summ = 0
for val in s[:-1]:
summ += int(val)
mapp[summ] += 1
print(n-max(mapp)) | [
"rageofepicfury@gmail.com"
] | rageofepicfury@gmail.com |
282ae6e15473678f51124dfb45ce9e9e04bf37aa | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/birdlik.py | b5d428582689d4d0a1ff28dc6b984b99dcdccca4 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 82 | py | ii = [('LandWPA.py', 1), ('MedwTAI.py', 1), ('MedwTAI2.py', 1), ('WordWYR.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
15f5e625e8e2207124235ed86414a25fa7c30103 | b059726917ad9a6e6df20a489e86edcdb5ba47f8 | /negentropy/negentropy_kitchen_order/doctype/employee_pending_amount/employee_pending_amount.py | 22b25e6905aef4aab87a047d26c1afbed30a7821 | [
"MIT"
] | permissive | pjamsheer/Negentropy | f9a9283186ea6f00d9a9b91939b3cdabf96a61df | aae618a42faef75880c012d9e6d8bca69c02f340 | refs/heads/master | 2022-04-12T14:13:35.667430 | 2019-12-31T11:33:03 | 2019-12-31T11:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Kaynes Technology India Pvt Ltd and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class EmployeePendingAmount(Document):
pass
| [
"ramya.a@kaynestechnology.net"
] | ramya.a@kaynestechnology.net |
ad3bb9cee62e36edbee53a574699af1e1489a8af | a06596102ed51de6b7786c1a3260f8d75bae676c | /adanet/core/eval_metrics_test.py | 8b5251e4bbd59810c4c26ccf00943c06677a0940 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | phymucs/adanet | 803b07cea49cc3821657085252c222ebe487be20 | 9fcd68cc220371d75923dcbf4eae9c1c6b9ed106 | refs/heads/master | 2020-08-11T18:56:26.858537 | 2019-10-02T16:09:17 | 2019-10-02T16:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,088 | py | """Tests for AdaNet eval metrics.
Copyright 2019 The AdaNet Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless re... | [
"weill@google.com"
] | weill@google.com |
8e298b1a973704c70cc3155b17995c14b3711113 | 7621431120b33ebfad572747c9d230134399b1ac | /Codechef Long June Div 2/try.py | 229dc7f1510cf81c1a716b472e8ecb52894b6d58 | [] | no_license | Anmol-Sri/Competitive-Environment | 018a9e2c0dbdc7655b508630da46aaab21916eca | 0a9fec631a10def56ddb01c0da7fb9d04277eeae | refs/heads/master | 2023-06-26T20:54:46.750369 | 2021-07-30T18:30:53 | 2021-07-30T18:30:53 | 301,129,278 | 0 | 1 | null | 2021-07-27T19:48:06 | 2020-10-04T12:52:41 | C++ | UTF-8 | Python | false | false | 479 | py | import math
def check(num):
if(num==0):
return False
x=(int)(math.sqrt(num))
if(x*(x+1)==num):
return True
return False
s=input()
n=len(s)
ans=[]
for i in range(n):
for end in range(i+1,n+1):
sub=s[i:end]
num=int(sub)
if check(num):
ans.append(num)
if not ans:
print("-1")
else:
ans.sort()
res = ... | [
"anmolsrirocks@gmail.com"
] | anmolsrirocks@gmail.com |
5a2178dd2a85a60fc79ccabda55c29d08be598ea | 44b924fdd119b7953c7ef69f03e62ae0b23722a9 | /hyperdex-datastructures-fuzz-test | 7be53a8181af1b953caafe89a1c798ce5eb59641 | [
"BSD-3-Clause"
] | permissive | hyc/HyperDex | 7ecd1b5b0b16ee52a9d253239e5ab4fff0b78532 | f6b010fba61e654e2f1f0602383cab9c04787766 | refs/heads/master | 2021-01-17T04:24:06.741553 | 2013-12-10T09:40:26 | 2013-12-10T09:40:26 | 8,479,640 | 16 | 3 | null | null | null | null | UTF-8 | Python | false | false | 25,274 | #!/usr/bin/env python
# Copyright (c) 2012, Cornell University
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# ... | [
"me@robescriva.com"
] | me@robescriva.com | |
a014ff2a43c5baa438da77c270f14acfde2096ba | 1046bc7b2deea022926551ca47084dfdabe82fdf | /regression/urls.py | 8a69c2886d0bca087e91976b2818c6e91dc652b4 | [] | no_license | sking8484/quantcore | 00d1b23e2261635d098946a9eaf955ddec5c3388 | f780108673e12f3d362884cf23da78cc9e65c17d | refs/heads/master | 2022-12-11T19:44:21.636514 | 2019-09-21T23:22:40 | 2019-09-21T23:22:40 | 143,889,230 | 0 | 0 | null | 2022-06-21T21:23:27 | 2018-08-07T14:58:53 | HTML | UTF-8 | Python | false | false | 240 | py | from django.urls import path
from . import views
app_name = 'regression'
urlpatterns = [
path('', views.regression_home, name = 'regression_home'),
path('simple_regression/', views.simple_regression, name = 'simple_regression')
]
| [
"sking8484@gmail.com"
] | sking8484@gmail.com |
284de7e065a248d3b43485969f7b6466a126241a | 8a7cd267ad123524b51ae86710854e9674769c54 | /5/5_1_0.py | 9a57d1e3eef5144e02b430bb1fad1870c2b85ad7 | [] | no_license | wjwjwj2223/NeteaseAlgorithm | 3601d6b21d1654ff993894bc8a80428fb071b163 | 8371e0f11a01a82d50ddbe15c04d34bfd2e698fa | refs/heads/master | 2022-11-13T23:46:14.821761 | 2020-07-06T17:44:13 | 2020-07-06T17:44:13 | 268,696,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | class MinHeap(object):
def __init__(self):
self.__datas = [None]
self.__size = 0
def add(self, value):
self.__datas.append(value)
self.__size += 1
self.shitUp(self.__size)
def get_smallest(self):
return self.__datas[1]
def extractMin(self):
min... | [
"17054214@qq.com"
] | 17054214@qq.com |
509f1fbff89c90660823404621862865de42034f | d11680f0a9de67e742d050b8b45f8c2a21a5cdaf | /Distribucion_Modulos/setup.py | 8c2884a8161e18cdf87687b90cbfd317ae2ee324 | [] | no_license | elaris6/PythonPildoras | eba330dd830e7e215930bc82cdbc996224c8b7d4 | 028610870aa2a7129cee94c69c70ee363b786cae | refs/heads/master | 2023-05-27T19:45:53.336629 | 2021-06-13T15:41:28 | 2021-06-13T15:41:28 | 376,576,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,394 | py | """
Plantilla base para la configuración de la función setup
INFO COMPLETA: https://docs.hektorprofe.net/python/distribucion/setuptools/
INFO OFICIAL: https://docs.python.org/3/distutils/setupscript.html
"""
from setuptools import setup
setup(name="Funciones Matematicas", # Nombre
version="0.1", # ... | [
"elaris6@gmail.com"
] | elaris6@gmail.com |
4fec274bfab24eb6ba90fb5a46ec128bbc6be095 | baacc8032435bb79a44a1662ebb34cea788ef716 | /correct/mapper.py | 65befa763ec2db0e14da41542df82ec609e7cad4 | [] | no_license | CHIAHSINHOU/NLPProject | de2a9bd2d65dd167b973e936bd9e224a5ba7761d | c4ff0de0978ec2b3d91a09e0a0379facbd480b1d | refs/heads/master | 2021-01-09T20:57:29.240764 | 2016-06-20T05:29:39 | 2016-06-20T05:29:39 | 61,518,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import fileinput
import random
import codecs
from itertools import izip
from sqlite import bncTag
from collections import defaultdict
import nltk
from nltk.stem import WordNetLemmatizer
feq = defaultdict(lambda: defaultdict(lambda: 0))
def words(text): return r... | [
"marquis.js1215@gmail.com"
] | marquis.js1215@gmail.com |
c4a3021747748314e5d24317a1443dab666f7ea8 | 357f48ccbd3e856ed8b4ce5d6954c8fee2de292b | /got10k/trackers/tracker_evaluate.py | 3726b8dd77cd3eb845f57d2fd1dc0b55b0aab13c | [
"MIT"
] | permissive | whjzsy/ESiamFC | f01057f14d84151842b5050aa2a17ce72d774743 | 742ac17323f0a13bcb03a0087583afc3aa13ddc0 | refs/heads/main | 2023-04-13T02:20:29.966522 | 2021-04-25T03:12:06 | 2021-04-25T03:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from got10k.trackers import Tracker
from got10k.experiments import ExperimentGOT10k, ExperimentOTB, ExperimentUAV123, ExperimentVOT,\
ExperimentDTB70, ExperimentNfS, ExperimentLaSOT, ExperimentTColor128
from siamfc import SiamFCTrackerMixCw
import cv2
import numpy as np
tracker_names = ['SiamFC', 'siamf... | [
"noreply@github.com"
] | noreply@github.com |
ce3be2e0574e1ed136c469dfa1ef2ac357ed40cc | dfb8d3c365bd2ea27cef9af5cb00b7be1dae978d | /train.py | b23821e543d1b2a73205ead7e410f2b5b7bac887 | [
"MIT"
] | permissive | Windstudent/IRM-based-Speech-Enhancement-using-DNN | dd0cedfd4150fed69c55d33a744d0a6520fdf2d5 | 27a6f73b5b7fa91a4796e093e6ea3e30508a5c15 | refs/heads/master | 2020-07-05T15:34:52.712226 | 2019-05-07T14:36:40 | 2019-05-07T14:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | import argparse
import json
import os
import numpy as np
import torch
from torch.utils.data import DataLoader
from data.test_dataset import TestDataset
from data.train_dataset import TrainDataset
from trainer.trainer import Trainer
from utils.utils import initialize_config
def main(config, resume):
... | [
"haoxiangsnr@gmail.com"
] | haoxiangsnr@gmail.com |
b88a7058a2033f293cfcbc9c5e9fdc372f1fd63b | 7341fa30ae20d00e9df62bff3cdf2f185c41b33a | /Codeup/src_6/1076.py | 31a1bacb367fc451e2acaf2a14b2745eb366f86c | [] | no_license | kkimke/Algorithm | 4ecaee6f90e796ed0bf66bed0d17128f8d0f48d0 | 8f8a692dda850b626ae443bf25fdefb160649c36 | refs/heads/master | 2023-03-07T13:55:37.730743 | 2021-02-21T15:17:23 | 2021-02-21T15:17:23 | 334,133,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | value = input()
value_chr = ord(value)
a = ord('a')
while a <= value_chr:
print(chr(a), end=' ')
a += 1
| [
"k_k_eun@naver.com"
] | k_k_eun@naver.com |
dd4307bb2aab043668db4211e55bef131034b27d | cf3d8e0edb97b96dc996b52d13ea740f40a7758e | /hw5/calc_emp_exp.py | 5ed3465c7677bb6b492d48846f4324c123617d57 | [] | no_license | HanfeiChen/ling572 | e76b80efdc0d5bd59963a39a9d7c0a27908069ce | ea70faaf21c09151d416e8d43035f00d798af407 | refs/heads/main | 2023-04-29T11:01:59.883541 | 2021-03-10T22:37:02 | 2021-03-10T22:37:02 | 328,307,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | import sys
from collections import Counter, defaultdict
from typing import Tuple
def load_data(file_path: str) -> Tuple:
x, y = [], []
with open(file_path, 'r') as in_file:
for line in in_file:
if len(line.strip()) > 0:
parts = line.split()
label, feature_str... | [
"hanfec@cs.washington.edu"
] | hanfec@cs.washington.edu |
ae67ba6fa52cde3b51fcce22a0b076528d1ae5d6 | 21b632797ed6257b13574c341cdd14e6534728a9 | /ryu/app/simple_switch_13.py | e0b90fb2286134a15afe5653cb7a916d20db0bbd | [
"Apache-2.0"
] | permissive | MrCocoaCat/ryu | 0473f04e2a840e027e9002f8a6af81745eaf7094 | 9e9571991a73380099b7ba7c6f37e0e587080a6a | refs/heads/master | 2021-06-19T18:09:52.833590 | 2020-05-12T08:17:21 | 2020-05-12T08:17:21 | 163,072,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,319 | py | # -*- coding: utf-8 -*-
from ryu.base import app_manager
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_3
from ryu.lib.packet import packet
from ryu.lib.packet import ethernet
fro... | [
"liyubo_liyubo@163.com"
] | liyubo_liyubo@163.com |
ccb2f81c785195a99f73977f2c1b74bdc2d3aaf2 | d224718f35e0f2bb9bfeac383f02f4def63b4ab9 | /manage.py | 62097d715b7c9913ff93648238519ea43ac74cac | [
"MIT"
] | permissive | sknzl/django_scooter | aab33f0427b4f1366e95266612290fa046812fe1 | f567d745057dbbcb72fb874fff3761d7b61781da | refs/heads/master | 2022-12-12T10:20:37.055888 | 2020-02-08T19:30:04 | 2020-02-08T19:30:04 | 226,722,024 | 3 | 0 | MIT | 2022-12-08T03:16:49 | 2019-12-08T19:46:50 | JavaScript | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_scooter.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"swenkuenzel@gmail.com"
] | swenkuenzel@gmail.com |
b24ceb6287ace19ba8f665a9ecd677df1c9687e5 | d211cad66692c969da1fb6537b6d166278cd3041 | /tr_project/tr_project/wsgi.py | 3d4ec084c7132dbd4908af5fd9c6500f780c93ad | [] | no_license | breabrown/Treasure-Roam | 795658d04c69702a1eebeb382138f86d300a76a3 | 587ca52b1c90079ec63cf00b7296a9ed0e29cec7 | refs/heads/main | 2023-08-11T20:37:12.232934 | 2021-09-17T23:10:13 | 2021-09-17T23:10:13 | 402,581,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for tr_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"breabrown96@gmail.com"
] | breabrown96@gmail.com |
1fcbc83052d0923c11d5d540ba267bcd6be93890 | 0d39507b93a285b87d619a2871cd56a8d3b5981f | /time_entries/migrations/0002_auto_20190617_1639.py | c95dccec31d3ab1b9e8c2b1985f3ae03aade9d19 | [] | no_license | alexveklenko/project_management_system | 0d4c848f044196da0fec0fb46e29ad5d517bce29 | 5da512ed74cecda6ca0841fd8aec713e62290867 | refs/heads/master | 2022-12-11T16:03:10.837320 | 2019-06-26T15:38:30 | 2019-06-26T15:38:30 | 191,401,515 | 0 | 0 | null | 2022-12-08T06:19:44 | 2019-06-11T15:35:45 | JavaScript | UTF-8 | Python | false | false | 381 | py | # Generated by Django 2.2.1 on 2019-06-17 13:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('time_entries', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='timeentry',
name='comment',
... | [
"alexi.veklenko@gmail.com"
] | alexi.veklenko@gmail.com |
b0b1ff9b1713b7cd34558ecca67f4f5512693ffb | 4261aab803f59d4ac2c63c34e43517ed73a36c87 | /anno_lemur/ebola/nist/findmore2.py | bcf40fc1f1e4e1894a0d7df258322730bffd6b77 | [] | no_license | zigchg/MemexCHT | 0a9c5b37b84c5dc5e932df2fb11de5a8abd5c1ef | c22c830821c56f79b9230b0a0ca5e9298125dde3 | refs/heads/master | 2021-06-19T05:42:38.471138 | 2017-06-22T05:11:29 | 2017-06-22T05:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | import requests
from requests.auth import HTTPBasicAuth
import sys
import json
'''
solrURL = "http://cs-sys-1.uis.georgetown.edu/solr/ebola/browse?wt=json&start=0&rows=150&q=%s"%sys.argv[1]
username = "infosense"
password = "test@123"
r = requests.get(solrURL, auth=HTTPBasicAuth(username, password))
data = json.load... | [
"cz211@cs-sys-1.uis.georgetown.edu"
] | cz211@cs-sys-1.uis.georgetown.edu |
241fc145e05f64e44afafeafac15d1ad80858bfa | 1e24c2340f13da991a50a297d050eee790905267 | /swigibpy/IButils.py | 8501e3b647b6d5c17a1d745d139bfaebcc380a2a | [] | no_license | viponedream/quantway | 5f0c49b3cd40b6d005f7b3c33c20f00526205fed | f7c2ecfca3533cb2c1a41ab3e8496004dc7b17d2 | refs/heads/master | 2020-12-11T05:35:12.461213 | 2016-02-16T08:48:09 | 2016-02-16T08:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | import pandas as pd
import numpy as np
DEFAULT_VALUE=np.nan
class autodf(object):
'''
Object to make it easy to add data in rows and return pandas time series
Initialise with autodf("name1", "name2", ...)
Add rows with autodf.add_row(name1=..., name2=...., )
To data frame with autodf.to_pandas
... | [
"borderj@gmail.com"
] | borderj@gmail.com |
59ba99753b2ed65816cd83e17a727c06c3945eb8 | 3f69114d6af9a978f976452ad177faeaee0b9c20 | /seq2seq.py | 2c7adec4ce8af33f0f4f42d2562a26d735d71cd2 | [] | no_license | JisuHann/2019-Naver-AIHackerton | b41ee393cf9fab9245d9d54ae6c772aec9c1ce64 | 4df41da6897714ee8c2ee62c990c7b2dcb2a5a74 | refs/heads/master | 2022-11-07T04:26:35.858170 | 2020-07-04T06:33:02 | 2020-07-04T06:33:02 | 213,789,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | import time
import sys
import torch.nn as nn
import torch.nn.functional as F
class Seq2seq(nn.Module):
#기본 설정
def __init__(self, encoder, decoder, decode_function=F.log_softmax):
super(Seq2seq, self).__init__()
self.encoder = encoder
self.decoder = decoder
self.decode_function... | [
"jshcdi6658@gmail.com"
] | jshcdi6658@gmail.com |
0b2c7b6c78f2f20e685b99106e28b2dcfabe7a03 | 9d852841463c64f75da8a8579c32cea856d2073d | /leetcode/validate_binary_search_tree.py | 4931cdb9a7da506dea78bd8a759a89b592284296 | [] | no_license | LarsIndus/algorithms-DS | 2d94a5ba3e17de7c8d9e7ac4ace8eb70bb2a7331 | 32a64a4522f8474ab63421b06e945f6e44a441e1 | refs/heads/master | 2023-04-26T00:13:06.026785 | 2021-05-20T18:55:12 | 2021-05-20T18:55:12 | 243,239,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | """
Leetcode Problem 98: Validate Binary Search Tree (Medium)
Given the root of a binary tree, determine if it is a valid binary search tree (BST).
A valid BST is defined as follows:
- The left subtree of a node contains only nodes with keys less than the node's key.
- The right subtree of a node contains on... | [
"test@test.com"
] | test@test.com |
917ee22efda930af791d71d0b9bbed0db2238f83 | 86fad291feed8c051a7690956698f2d82d2a3f8d | /Tomato_all_other.py | 16b4064e0592bbf4817272b2c5a158df3b54bf3c | [] | no_license | abhinavshukla021/AgroMl | 94289624dea63ec4d72c825fbec8a0e82ff0186e | 178a480b96c043569a4410a0145f056b53188585 | refs/heads/master | 2020-06-04T05:05:51.515755 | 2019-07-18T07:55:05 | 2019-07-18T07:55:05 | 191,883,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,515 | py | def Tomato_all_others():
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from array import *
from sklearn.model_selection import train_test_split
from sklearn.utils import shuffle
from sklearn.preprocessing import StandardScaler
from sklearn.svm import SVC, Li... | [
"noreply@github.com"
] | noreply@github.com |
c5f2db5dd1aae4f0c5402f0642cd0648f098b6d5 | 7d556e5c3dc0b5fe15c57795574a5adbb79e8ebc | /api.py | 7e4549bf70b9eb6f9d21d4cc50fa6e24a93ea8a7 | [] | no_license | Ummamali/burgerBuilderBackend | 6ef385a410929c74d3d288e4e1b6f4f2093933c6 | 150a7c247cdb59d023e66405af03c06fcf669a6e | refs/heads/master | 2023-08-17T07:47:26.986055 | 2021-09-14T19:10:02 | 2021-09-14T19:10:02 | 356,675,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | from flask import Flask, jsonify, request
from flask_cors import cross_origin
from time import sleep
from json import dumps, loads, load, dump
app = Flask(__name__)
prices = {
'salad': 10,
'bacon': 10,
'cheese': 10,
'meat': 10
}
orders = 0
@app.route('/prices')
@cross_origin()
def data_loader():
... | [
"ummamali1@gmail.com"
] | ummamali1@gmail.com |
5bba101ad14c50d3036fcbeb1308b66a5996c235 | 38744aa4f3ba165a8c043ac51c87b849882ea129 | /game/lib/python3.7/site-packages/Security/_metadata.py | 7cce69ed3c96048306a7eabc4a36fc086d625bc0 | [] | no_license | CleverParty/containers | 5be3c82e38e65ccbaf703fe68f35992ad9941219 | a0d45e62fda2cb7b047c7a930cf6437e71a31d80 | refs/heads/master | 2023-08-04T01:32:58.122067 | 2021-02-07T15:14:35 | 2021-02-07T15:14:35 | 266,421,416 | 2 | 0 | null | 2021-09-22T19:39:31 | 2020-05-23T21:20:17 | Python | UTF-8 | Python | false | false | 107,766 | py | # This file is generated by objective.metadata
#
# Last update: Sun Mar 22 17:27:39 2020
#
# flake8: noqa
import objc, sys
if sys.maxsize > 2 ** 32:
def sel32or64(a, b):
return b
else:
def sel32or64(a, b):
return a
misc = {}
misc.update(
{
"AuthorizationExternalForm": objc.cr... | [
"shanatmail@gmail.com"
] | shanatmail@gmail.com |
53958bdf8d98274e02100244da10842fb11fe873 | dd1ceeb7e7ad5e49d901daf2bc697feb80d5f9c7 | /11b.py | 9b128c7132c9faa897c460c6e29af8d35560b810 | [] | no_license | MrVineetPatil/unix | d30ecccdfa9ba8a1d4431a76cb7a7c2b4a09d041 | 0dee7563baa0a18627a0db1a743bd14f5d3aa84b | refs/heads/master | 2020-05-27T19:20:54.091297 | 2019-05-27T02:47:13 | 2019-05-27T02:47:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | def remove(l,r):
k=[]
k+=l
if r in l:
k.remove(r)
return k
def subsetsum(l,t):
k=[ (x,y,z) for x in l for y in remove(l,x) for z in remove(remove(l,x),y) if
x+y+z==t]
if len(k):
return True
return False
print("Enter the list elements:",end='')
l=[in... | [
"noreply@github.com"
] | noreply@github.com |
c394f35d81a2eb6ac4c455dd44b7add384a8b18b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/84/usersdata/203/57032/submittedfiles/lista1.py | 4fe9d85ddd31f1891fa346e0bba2e39623b993ce | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # -*- coding: utf-8 -*-
n=int(input('tamanho da lista: '))
l=[]
somai=0
qi=0
somap=0
qp=0
for i in range (1,n+1,1):
a=int(input('elemento da lista: '))
l.append(a)
for i in range (1,len(lista),1):
if l(i)%2==0:
somap=somap+l(i)
qp=qp+1
else:
somai=somai+l(i)
qi=qi+1
print... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.