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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
06b43121f55062f22988a5b9411f16234b2dd4c9 | a527ab5e3c2cf34e92117d657eda52bcc76e24f8 | /gender.py | d5e7b764b1601b921cb0f6f51492e26b2ef874a0 | [] | no_license | pankajdahilkar/python_codes | 2e4246aa9b725b28f3cccb4c7a4c7094927b8b5a | 56fda0257fb4769da59f2b5c81536f9a5b9ee2db | refs/heads/master | 2021-05-25T17:16:55.765443 | 2020-04-13T07:21:02 | 2020-04-13T07:21:02 | 253,838,761 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import csv
name = input("Enter your name ")
with open("Female.csv",'r', encoding='utf-8') as f:
reader = csv.reader(f)
for row in reader :
for field in row :
if field == name:
print(name,"is girl")
... | [
"pankajmdahilkar@gmail.com"
] | pankajmdahilkar@gmail.com |
fbad71338ab509e1dfd81e377efb259dc9287a74 | 4e092f6a59c0aad5cfe4235baac06f4f9823c62a | /0026. Remove Duplicates from Sorted Array.py | 3628990533211b662c2e9da54cc9ee0e44197a56 | [] | no_license | xinmiaoo/leetcode_Aug_3 | 72091fd7d23f98fb646ffb6f0b1a3068c930ea3f | 732d8aa126dd5149013a4ce084f37ee8bc123ac7 | refs/heads/master | 2020-07-12T04:34:24.506629 | 2019-08-10T21:54:50 | 2019-08-10T21:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums)<1:
return
if len(nums)==1:
return
i=1
while i<len(nums):
if nums[i]==nums[i-1]:
del n... | [
"noreply@github.com"
] | xinmiaoo.noreply@github.com |
11f2fe4d1f01ee2b1139b7b7076221a351cbf9e4 | cb26d3f745628cd113f4f954ceac23ce262afbb5 | /Day4/answer_day4_question2.py | 93ae2c3f566d420feb9820a96e4d196c55632b24 | [] | no_license | nama-aman/Qiskit-Challenge-India-2020 | 88e56982012221b4153dc9d73e4f09508c3d7807 | 038956e5b241868637c06cbbf81928f3f9a1d796 | refs/heads/master | 2022-12-16T00:11:15.135572 | 2020-09-06T12:58:47 | 2020-09-06T12:58:47 | 293,277,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py |
### WRITE YOUR CODE BETWEEN THESE LINES - START
# import libraries that are used in the functions below.
from qiskit import QuantumCircuit
import numpy as np
### WRITE YOUR CODE BETWEEN THESE LINES - END
def init_circuit():
# create a quantum circuit on two qubits
qc = QuantumCircui... | [
"noreply@github.com"
] | nama-aman.noreply@github.com |
1080efe864c0987d212ee7dc9f93c2eb3b2aac02 | ced90a261ca425d86581ff301c21ce08e005c067 | /tranx/datasets/django/dataset.py | 6e4e64b95bf293feb1a5c1198b55baed0eb6137f | [] | no_license | gaoliujie2016/tranx-1 | 0a9727d9f5bf96ea0874b2c723045d734fa824d6 | f9e4de91f678284f2935e2f9c4cdf71a32d8deca | refs/heads/master | 2022-03-08T14:49:42.148163 | 2019-08-27T18:15:21 | 2019-08-27T18:15:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,743 | py | # coding=utf-8
from __future__ import print_function
import torch
import re
import pickle
import ast
import astor
import nltk
import sys
import numpy as np
from asdl.lang.py.py_asdl_helper import python_ast_to_asdl_ast, asdl_ast_to_python_ast
from asdl.lang.py.py_transition_system import PythonTransitionSystem
from... | [
"alex.dinu07@gmail.com"
] | alex.dinu07@gmail.com |
45a17b83e5063af268f032dd425b660dcf74ebf6 | ae67cd669cb733f0ed7b4b02c1320757c91ebd9f | /lut/__init__.py | ff33cffbf0d228820ebf83cb62a25232e9a5b6ea | [] | no_license | anguelos/lut | bef878485a6ce31195593a504f0a819032e878be | 6898fefc748cbbc323415e96e22c1711dfcce1e1 | refs/heads/master | 2016-09-14T01:29:15.626110 | 2016-05-06T16:50:22 | 2016-05-06T16:50:22 | 58,217,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | import core
import train
import models
import view
import loss
import layers
import metric
import ds
core=reload(core)
models=reload(models)
view=reload(view)
loss=reload(loss)
layers=reload(layers)
metric=reload(metric)
ds=reload(ds)
train=reload(train)
from core import *
from train import *
from models import *
fro... | [
"anguelos.nicolaou@gmail.com"
] | anguelos.nicolaou@gmail.com |
1afefbe7797fabd4b8f9a7ab4164ea1bf07b73e6 | b13c95cb06434a985f9da51575f1eb3fa484cb0c | /helloworld/main.py | 9320a568b423d22b5eaab013607325ea89c83177 | [] | no_license | shandre-github/minikube | aa34294d6355ade16e0155bd5caef6a946840e69 | 94cfe856bf202e90464c2d85ccabe1ce673dbeb2 | refs/heads/master | 2023-03-13T15:11:39.785525 | 2021-02-25T04:53:19 | 2021-02-25T04:53:19 | 341,305,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | import os
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
name = os.environ.get('MY_POD_NAME')
return 'Hello World from {name}'.format(name=name)
app.run(host='0.0.0.0', port=8080) | [
"shpnaruto@gmail.com"
] | shpnaruto@gmail.com |
6ecde04930e4c4d2d909383a6d9ae3c2c8476230 | c089d51e00ace0e2d2c1c08cc7278ea4a43ff8f9 | /classifiers/keras.py | 4ac55c4f41d6fadb0db78e8d3ac6e6246d879ec9 | [] | no_license | salman-kha3/ActiveLearning | 84f088aac802c59edba94c205b4666bfa8e7b15f | 3d6c6c120788ea2fd338cff5d3f5b88b5b8901ec | refs/heads/master | 2021-01-11T20:35:46.977142 | 2017-04-02T12:58:01 | 2017-04-02T12:58:01 | 79,150,978 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | import keras
from libact.base.interfaces import ContinuousModel
import numpy as np
class KerasClassifier(ContinuousModel):
def __init__(self, *args, **kwargs):
self.model = keras.models.Sequential(*args, **kwargs)
def train(self, dataset, *args, **kwargs):
return self.model.fit(*(dataset.for... | [
"salman.khatri3@gmail.com"
] | salman.khatri3@gmail.com |
77f78c54499c89158741dcfdec3c99815d78fd7f | 48399403b64b9d8e52ea573c0cbefb941f33e540 | /server.py | 62775f3592e3fea539d03b16d9b96c25a5d4ac78 | [] | no_license | Henry-Aybar/counter | 97c54c9a3060fb0249ee432ec89163ae796c014e | 8bb089134d502bd334d785751352086340561862 | refs/heads/master | 2023-08-03T09:41:43.420948 | 2021-09-14T20:50:30 | 2021-09-14T20:50:30 | 406,517,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | from flask import Flask, render_template, request, redirect, session
app = Flask(__name__)
app.secret_key = 'Im just Super Sayin!'
@app.route('/')
def index():
if 'visit' in session:
session['visit'] += 1
else:
session['visit'] = 1
if 'count' in session:
session['count'] +=... | [
"aybar.henry.usmc@gmail.com"
] | aybar.henry.usmc@gmail.com |
f4dbe6287f26b3505bbd41c6c3a493e894db9f0e | 43e36f639e69bb3c0ace7b89eee8571d946da1c8 | /scripts/ball_gripping_test.py | 28d81f812fe81d24a1a294c322afcb8d91a80c66 | [] | no_license | mikolak/test_package | 309a07e78b322a0fe378ac595200b473cba0a391 | c9978a440bcdeed54839aeeb1e80795060cc1b5e | refs/heads/master | 2016-09-03T07:24:23.361858 | 2014-09-08T13:36:32 | 2014-09-08T13:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,630 | py | #!/usr/bin/env python
import rospy
import tf
import actionlib
import math
from controller_manager_msgs.srv import *
from std_msgs.msg import *
from diagnostic_msgs.msg import *
from geometry_msgs.msg import *
from trajectory_msgs.msg import *
from control_msgs.msg import *
from cartesian_trajectory_msgs.msg import *
... | [
"mikolak.k@gmail.com"
] | mikolak.k@gmail.com |
c72344f39a2b47d401f7e46eee77380b114764d6 | 32a3a7522546df5f18effcaec43b66115c1cd2c1 | /alpha/migrations/0001_initial.py | deee8f56a15d69afa30df48f53d2484a0ee593bc | [] | no_license | seian/youask | 4b90804a289d3b7d21c9fb9b7b7736279845b95b | 490c8f730e32462eae6a7f69af25fed10c92aba9 | refs/heads/master | 2016-08-09T08:17:19.168489 | 2016-02-17T05:58:46 | 2016-02-17T05:58:46 | 50,502,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-17 04:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Celeb_i... | [
"wnsdud1861@gmail.com"
] | wnsdud1861@gmail.com |
0795e38e200dc99858a29c73d98fbc5eada52473 | 9d8314bcb2cdabb62e6ce97cf61fc79e559e1c4f | /python-ds-practice/fs_5_read_file_list/read_file_list.py | 74b36e94617c01f212c124ad2b7d30a53cadb857 | [] | no_license | hannahsylee/18_Python | 110ac6bfcda571bfafa0a737723616ba0ac87957 | 165465755fd3707b20fa5f7a094826ee2374cbe8 | refs/heads/main | 2023-08-27T02:22:53.879605 | 2021-10-18T04:05:22 | 2021-10-18T04:05:22 | 417,318,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | def read_file_list(filename):
"""Read file and print out each line separately with a "-" before it.
For example, if we have a file, `dogs`, containing:
Fido
Whiskey
Dr. Sniffle
This should work:
>>> read_file_list("dogs")
- Fido
- Whiskey
- Dr. Snif... | [
"hannahsylee@gmail.com"
] | hannahsylee@gmail.com |
595a9e74a588b9a31577ba1c84a3e2bd2e99a3bc | e4c798246339e765f04424d727106e80e810f47c | /Medium/iNo008.py | 7c70fbb6da2f54341b2bef3bbcc9b1e6fae85c2f | [] | no_license | kikihiter/LeetCode | 3a61dc4ee3223d634632e30b97c30a73e5bbe253 | 62b5ae50e3b42ae7a5a002efa98af5ed0740a37f | refs/heads/master | 2021-05-26T08:05:00.126775 | 2019-05-21T09:18:37 | 2019-05-21T09:18:37 | 127,999,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
str = str.lstrip()
posNum = True
if str == "":
return 0
if str[0]=='-':
posNum = False
str = str[1:]
elif str[0]=='+':
... | [
"noreply@github.com"
] | kikihiter.noreply@github.com |
78196c0216eb2c3169434d91e959b6edf1d91d1a | 44d9cdc0ca026036c314b8530a7eeda1fb3ee21c | /src/JZ/JZ14-II.py | ea9dde6589c4ad917732d8c88169b2ff6c251334 | [] | no_license | Sibyl233/LeetCode | 525a2104a4f96e0e701fa175dfad6d02d6cf40f3 | 3e20e54bb11f7a56d8fa8189a0a1a1461f81eb8a | refs/heads/master | 2021-09-06T14:52:31.718922 | 2021-08-20T15:51:37 | 2021-08-20T15:51:37 | 234,050,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | """่งฃๆณ๏ผๆพ่งๅพ
- ๆถ้ดๅคๆๅบฆ๏ผO(logN)ใไธบไบๅๆฑไฝๆณๅคๆๅบฆใ
- ็ฉบ้ดๅคๆๅบฆ๏ผO(1)
"""
class Solution:
def cuttingRope(self, n: int) -> int:
if n <= 3:
return n - 1
# ไธๅไบJZ14-I๏ผๆ นๆฎ้ขๆๆญคๅคๆฑไฝ้็จไบๅๆฑไฝๆณ
a, b, p, x, rem = n // 3 - 1, n % 3, 1000000007, 3 , 1
while a > 0:
if a % 2: rem = (rem * x) % p
... | [
"780598113@qq.com"
] | 780598113@qq.com |
5d5fd3a0fc2112964ec1c90c48196dcdc7468bd7 | d93b337a73a9bc6f6c104cc6eea9ca8d60ef3577 | /stripeAPI/cargo.py | 407cca194cdbced169d8ec5a77e78e9b275ed8e4 | [] | no_license | erivera23/market | 0532c5aefe32bd0102fa18fe6b224af289c4388f | 73bead776f233bd1a79d34122daeff74b2b3ce18 | refs/heads/master | 2022-12-13T00:21:38.163936 | 2020-01-18T22:52:34 | 2020-01-18T22:52:34 | 234,808,623 | 1 | 0 | null | 2022-11-22T04:57:29 | 2020-01-18T22:51:03 | Python | UTF-8 | Python | false | false | 478 | py | from . import stripe
def create_cargo(orden):
if orden.billing_profile and orden.user and orden.user.customer_id:
cargo = stripe.Charge.create(
amount = int(orden.total) * 100,
currency = 'USD',
description = orden.descripcion,
customer=orden.user.customer_id... | [
"riveraefrain5@gmail.com"
] | riveraefrain5@gmail.com |
b4fde878db7746ff13c0a3dedbfbca0736d7249c | 34c91527966ecf29d8adf46becbf3af5032dc3a6 | /basic/armstrongnumber.py | 9552f47dc63cdff9b0b8cf0745e63ea4f047d5bf | [] | no_license | mjohnkennykumar/csipythonprograms | 0a23040a484812b3176b614bf0e18f685c74a375 | 750cdaeda15fe73328902c3de567d6083dfa7a77 | refs/heads/master | 2021-01-21T14:32:37.913617 | 2017-06-24T12:54:03 | 2017-06-24T12:54:03 | 95,297,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | # -*- coding: utf-8 -*-
# Python program to check if the number provided by the user is an Armstrong number or not
# take input from the user
# num = int(input("Enter a number: "))
# initialize sum
sum = 0
num = int(input("Enter a number: "))
# find the sum of the cube of each digit
temp = num
while temp > 0:
digi... | [
"Samuel Henry"
] | Samuel Henry |
acc0e879ddff0fddff0f1c17854d03eba9823789 | be8fe594fae8a4fb66c0cbc1f0e8462891eabb1b | /examsystemapp/api/external.py | ff92d1a6411c523b029c830ee33dfb926c6e41f2 | [] | no_license | ITfyMe/ExamSytemPython | a30cccc1ba4ef832666b23109a772209fcbcea8c | da7506ae9607d69c97744bdc08ac1113fc86237a | refs/heads/master | 2023-06-12T11:48:20.514142 | 2021-07-12T13:16:06 | 2021-07-12T13:16:06 | 369,427,947 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | """
Created By : Nikesh
Created On :
Reviewed By :
Reviewed On :
Version :
"""
from django.http import HttpRequest
from examsystemapp.api.base_controller import BaseController
from examsystemapp.utils.helpers.request_helper import RequestHelper
from django.conf import settings
class External(BaseController):
d... | [
"nikesh.kedlaya@gmail.com"
] | nikesh.kedlaya@gmail.com |
3bf09fa4f79c4ab4f60f4fdf8d3c23e04214b598 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /F5ycABGyZtghMpYjr_16.py | ce3767d6e7a4448df5ed169a0465448836b9b5c5 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py |
def max_num(n1, n2):
if n1 > n2:
return n1
else:
return n2
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
50157256f9b323f313890c0165fa4fe159337357 | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/the/test.py | 8b5458899ae7d4a6053ff37dca0868ce16e83cdb | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11 | py | import the
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
d0e5a0905a4356ef92ac7aaf23d6954bde4d27c3 | 6a2d708c290d5fc8b4eb6d2b6d52186d6ae57406 | /Chef Race (SRTF) Final/srtf.py | 5bbf4bbf634474a5b9be024dfb09b3ce1e213ed3 | [] | no_license | ac-marlon/ChefRaceUD | 64080c1e575234f03113c16d9c017c4f42f55010 | b3c8312af7b6b8e3e6fc0a457169358e4bd1d62b | refs/heads/master | 2021-08-26T01:09:25.324512 | 2021-08-18T15:01:24 | 2021-08-18T15:01:24 | 108,355,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,609 | py | import cola
import time
from procesos import *
import recursos as rs
import queue
import threading
import numpy as np
import pygame
from pygame.sprite import Sprite
from pygame.locals import *
import util
import sys, pygame, util
from receta import Receta
from recursos import CuchillosIma
from recursos import Licuadora... | [
"noreply@github.com"
] | ac-marlon.noreply@github.com |
be4bc8669b12545f0c578c87d72131ebfc8489d0 | 947273c16f8984a20cd002b99b52facd6e63e43b | /server/authentication/urls.py | dacfd5c43349691a7bc454b922558db58c2608aa | [] | no_license | ecuaappgye/App | 8e3b50b4f7a8b9c50876d24343781e8f53a51bbc | 2df7be6fd206d012f6a83acd0aa0cb75cf6d5937 | refs/heads/master | 2023-07-05T00:48:24.341021 | 2021-07-31T17:02:12 | 2021-07-31T17:02:12 | 385,267,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | from django.urls import include, path
from .apis import (UserEmailChange, UserGetApi, UserLoginApi, UserLogoutApi,
UserPasswordChange, UserPasswordReset,
UserPasswordResetCheck, UserRegisterApi,
UserRegisterVerifyApi, UserRegisterVerifyCheckApi,
... | [
"italobarzola18@gmail.com"
] | italobarzola18@gmail.com |
0c8795e3c608547bd7a3663df3bd69eeabac19fa | 1978ed0ffd9264e0b598e82966acd53add379fce | /BK_Scripts/shapes.py | cdc2e922bed34aca1b93307f0e70aaebe4d1941e | [
"MIT"
] | permissive | bkvignesh/manim | 70d30c22d601eccf67108bca52317bfe3e2b4a7b | a4dace8f85113b1605235531f5de8f5d408ac823 | refs/heads/master | 2023-01-22T23:39:57.324803 | 2020-10-12T13:11:21 | 2020-10-12T13:11:21 | 295,242,598 | 0 | 0 | NOASSERTION | 2020-09-13T21:41:33 | 2020-09-13T21:41:32 | null | UTF-8 | Python | false | false | 1,112 | py | from manimlib.imports import *
from math import cos, sin, pi
import numpy as np
class Shapes(Scene):
def construct(self):
circle = Circle(color = YELLOW)
square = Square(color = DARK_BLUE)
square.surround(circle)
rectangle = Rectangle(height=2, width=3, color=RED)
ring = An... | [
"vigneshbk42@gmail.com"
] | vigneshbk42@gmail.com |
92b948fe97b26eb0b10d0f37347f317f1618052f | 47aada5f50fdb6dfe0c8b34ff30de93a32797dca | /tpfa/boundary_conditions.py | 760274d702f7f588864f85db98cb8d975fd5a9bf | [
"MIT"
] | permissive | Filipe-Cumaru/hello-world-1 | 17a7e11ac9f3efa0026c3471538cf4f28323e8ef | b12137beebbf1a4bd87d02583b609d8c68307474 | refs/heads/master | 2020-04-24T23:59:01.077919 | 2019-02-24T02:40:58 | 2019-02-24T02:40:58 | 172,363,231 | 0 | 0 | MIT | 2019-02-24T16:47:05 | 2019-02-24T16:47:05 | null | UTF-8 | Python | false | false | 779 | py | import numpy as np
from scipy.sparse import csr_matrix, lil_matrix
class BoundaryConditions():
def __init__(self, num_elements, nx, ny, coef):
self.coef = coef
self.num_elements = num_elements
self.nx = nx
self.ny = ny
self.coef, self.q = self.pressao_prescrita()
def pr... | [
"renatattavares@hotmail.com"
] | renatattavares@hotmail.com |
9b0b34eb1b3a8edde6ec56f298ac3c0a5bbe79f7 | cb0bad5bd717fef43674ffd2f76a5fe922cf0896 | /eurito_daps/flaskblog.py | 74bf352313b346746653461bbfeb148f1c63290a | [] | no_license | porter22/porter22.github.io | 2b3dbe6f8c6ffcfb3f4ff374e12f769f1ef06b51 | ad15c20fa3f8490642cd831da82eb448c694c746 | refs/heads/master | 2021-06-05T20:46:47.862065 | 2020-03-15T17:27:09 | 2020-03-15T17:27:09 | 122,872,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | from flask import Flask, render_template, url_for
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
app = Flask(__name__) #instantiated flask variable
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db' #/// relative path from the current dir
db = SQLAlchemy(app) #create database instance... | [
"idrissov22@gmail.com"
] | idrissov22@gmail.com |
c009051241a83019b6b7b8d33d001752d3ebe5bb | 428dd6e4ab9ee4916664f13a25f04ae424769d47 | /pwd.py | 162233077798636c35d2030fa2e855c4d0cb7694 | [] | no_license | licmnn/pwd | 16e8ae1113f8a7bed8d16bdb4e989983c3e41f50 | 82921059804619e28f777691cf4d9c46e528deaa | refs/heads/master | 2022-07-10T12:50:05.914564 | 2020-05-19T15:20:21 | 2020-05-19T15:20:21 | 265,280,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | #password = 'a123456'
#x = 3
#while x > 0:
# pw = input('่ฏท่พๅ
ฅๅฏ็ ๏ผ ')
# if pw == password:
# print('็ปๅ
ฅๆๅ') # quit
# break
# elif x != 0:
# x = x - 1
# print('ๅฏ็ ้่ฏฏ๏ผ ่ฟๆ%dๆฌกๆบไผ๏ผ' % x)
# else:
# pirnt('')
'''
pw = input('่ฏท่พๅ
ฅๆจ็ๅฏ็ ๏ผ ')
x = 2
print('ๅฏ็ ้่ฏฏ๏ผ ่ฟๆ%dๆฌกๆบไผ ' % x)
while x > 0 :
if pw != 'a123456' and x > 0:
pw = inp... | [
"licmn@live.com"
] | licmn@live.com |
e944a493701484b85f0930ed5c5c716253ed6a9b | 8227d4cf270ffc45ed9c0c5f94b04f51187751c4 | /srezy.py | eb59c4eaa583d3111c0c3b1040beb6c6948da6cd | [] | no_license | NosevichOleksandr/firstrepository | ced760563a039af88dd1a5588ba0553e5e0cdef6 | 70652118bcdac48f7b638fe2d896d587f79115d1 | refs/heads/master | 2023-04-02T02:46:50.723173 | 2021-04-17T13:34:37 | 2021-04-17T13:34:37 | 356,614,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | print('hello world')
a = input('write your ... something: ')
if len(a) % 2 == 0:
b = a[:len(a)//2]
c = a[len(a)//2:][::-1]
print(b + c)
else:
print('ัั ะฝะตะฟัะฐะฒะธะปัะฝะพ ะฒะฒะตะป')
| [
"bpxnastalgia@gmail.com"
] | bpxnastalgia@gmail.com |
abbef862cd5933de0ed6f118c4196a4adeb7ccc2 | 376dbd781ff32bb5c1fa64b8b2fc2cb7bfeb62bb | /main.py | 46a4a3510a8ea612c0975a28bd3c2053cae6dceb | [] | no_license | ahaggart/image-shatter | db00662c85c6f8b698008757fc38e9b42d733d91 | cca1a392bc3445b117e413bcdb8fd473de82ebfe | refs/heads/master | 2020-05-26T21:55:49.783242 | 2019-05-24T11:03:48 | 2019-05-24T11:03:48 | 188,388,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import argparse
import cv2 as cv
from blobs import caluculate_colorspace_distances, grow_blobs
from polygons import find_edges, order_edges
from colorize import color_blobs, color_edges, color_ordered
def main(config):
image = cv.imread('img/' + config.file)
width, height = image.shape[:2]
print("Calcu... | [
"alex.haggart@gmail.com"
] | alex.haggart@gmail.com |
f1b79ea5db5f487fdf2cfc2259c01ffb58418ed7 | 39c032082a86120d06c6daa33abe81fd228077bb | /tsne-test.py | c86c780cdfe556efdb8c869957eca1457810f9a9 | [] | no_license | briantimar/nn-test1 | 4b3365743f31b6bcd9aa3565a55c1239ccb81312 | 980b29b3909c6b9539a06e771f3fafbc413a2a14 | refs/heads/master | 2020-03-19T15:20:28.541618 | 2018-06-14T18:28:12 | 2018-06-14T18:28:12 | 136,667,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 14 00:13:18 2018
@author: btimar
Visualizing ground states?
"""
import sys
import numpy as np
import tensorflow as tf
sys.path.append("/Users/btimar/Documents/ryd-theory-code/python_code")
from ryd_base import make_1d_TFI_spin
from tools import ... | [
"timarbrian@gmail.com"
] | timarbrian@gmail.com |
a6d1b05a1ca185859368e58727850feec6b840f5 | 209f0d778a673884cf56b83e9bde392f712f84aa | /.venv/bin/chardetect | aa41d066f5dfbc7d9dc51d3bdcff15c0287360f8 | [] | no_license | obiorbitalstar/chess-board | f65e5706405e4a420dfc843b5f18c39a1f16cc7d | 0bb61022fd49a6361813d894f28bcd99c07766aa | refs/heads/Master | 2022-12-18T01:56:50.652476 | 2020-08-30T13:43:38 | 2020-08-30T13:43:38 | 291,475,486 | 0 | 0 | null | 2020-08-30T13:43:39 | 2020-08-30T13:27:49 | Python | UTF-8 | Python | false | false | 264 | #!/home/orphues/codefellows/401/chess-board/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"obiorbitalstar@gmail.com"
] | obiorbitalstar@gmail.com | |
ab6f49788e9c9b703b8119182f349d2b181ec92c | f907f8ce3b8c3b203e5bb9d3be012bea51efd85f | /kaki.py | 2c2c28e9db71f7ea3b53c39e8cf861cadb925d35 | [] | no_license | KohsukeKubota/Atcoder-practice | 3b4b986395551443f957d1818d6f9a0bf6132e90 | 52554a2649445c2760fc3982e722854fed5b8ab1 | refs/heads/master | 2020-08-26T15:17:29.344402 | 2019-10-26T11:14:24 | 2019-10-26T11:14:24 | 217,052,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | S = [input() for _ in range(12)]
cnt = 0
for s in S:
set_ = set(s)
if 'r' in set_:
cnt += 1
print(cnt)
| [
"kohsuke@KohsukeKubotas-MacBook-Air.local"
] | kohsuke@KohsukeKubotas-MacBook-Air.local |
7329c993e5cfe2cf131a107a9c946a0937892cb4 | 098ac9ecdaa67b717182c2aeca2a9d60833e88e7 | /opentcweb/settings/prod.py | fd788fb20c554254729032aeabf64156243e772a | [
"MIT"
] | permissive | cahya-wirawan/opentc-web | c8e758835d129cf7edb6f9dbf640632c2aa9ff2f | fa74c49f3f2b1a74624deca912f7da87afdc7e1b | refs/heads/master | 2021-01-19T19:13:44.629858 | 2018-01-21T13:21:32 | 2018-01-21T13:21:32 | 88,406,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from __future__ import absolute_import
from .base import *
# Production overrides
DEBUG = False
#...
| [
"cahya.wirawan@gmail.com"
] | cahya.wirawan@gmail.com |
46b52fe8e5c60205d2161d38dc9193d19d105f9e | cba90cdd06eced813be6ad80e6295587223c4600 | /betfairlightweight/endpoints/navigation.py | 8795b7d2b4a2e08e79350a3a78ae3dd5e1c20f13 | [
"MIT"
] | permissive | mberk/betfair | 1a22528b881e02567626dbe7e8c4f0197809c38e | 6b064a68c8d2afceda81b70d74b6a0ee9601f228 | refs/heads/master | 2023-03-07T02:33:06.443407 | 2022-08-16T08:06:10 | 2022-08-16T08:06:10 | 192,976,576 | 0 | 1 | MIT | 2023-03-01T12:03:37 | 2019-06-20T19:28:23 | Python | UTF-8 | Python | false | false | 1,510 | py | import requests
from ..exceptions import APIError, InvalidResponse
from ..utils import check_status_code
from .baseendpoint import BaseEndpoint
from ..compat import json
class Navigation(BaseEndpoint):
"""
Navigation operations.
"""
def list_navigation(self, session: requests.Session = None) -> dict... | [
"paulingliam@gmail.com"
] | paulingliam@gmail.com |
42cd98f60f8637e2f8b57280dee6eeb14f3eac98 | bb4dc40ec0b62e5d2fc3ce1234013aebd4e648d5 | /src/modules/customised/payroll/hra/__init__.py | 708a454f4468ac2e8c826538ed0f9f59fab6f7cf | [] | no_license | kakamble-aiims/work | ba6cbaf4c525ff7bc28d0a407f16c829d0c35983 | cd392bf0e80d71c4742568e9c1dd5e5211da56a9 | refs/heads/master | 2022-04-02T14:45:58.515014 | 2019-12-31T14:00:51 | 2019-12-31T14:00:51 | 199,015,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from trytond.pool import Pool
from .hra import *
def register():
Pool.register(
HRA_Allowance,
module='hra', type_='model') | [
"kakamble.aiims@gmail.com"
] | kakamble.aiims@gmail.com |
fb12aa0f0a717a88fe55aac5ace8b0cda17fdc54 | ce39286b958c01cbbd68ecffc33d3724c8c130f1 | /club/app/migrations/0026_paquete_inscrito_horas_consumidas.py | 166d62f8b0c29460f78bc02d7a841840c518c74e | [] | no_license | Rob866/club | eb26c3085bb37908226bfed306d98538eed64dff | f2e58ca773a4e461a9905c0898c1f11bd5e94099 | refs/heads/master | 2022-12-16T00:07:32.423945 | 2020-01-09T04:38:09 | 2020-01-09T04:38:09 | 216,317,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # Generated by Django 2.2.6 on 2019-10-15 20:29
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0025_auto_20191015_1240'),
]
operations = [
migrations.AddField(
model_name='paquete_inscrito',
... | [
"juanrob_10@hotmail.com"
] | juanrob_10@hotmail.com |
6722bcef452c085f75a486160d1e49a88934b6c6 | d92a1eb61863aa0dba7df6a8e787f243715effb2 | /urls.py | 0da45212c15d635f432c6b8adbd8c6e3b4f2a0a7 | [] | no_license | Engaginglab/scoreit | 91a7cc4b610556b45355bdd32c4c608dc2993edd | a54a073e6aded904b14738867c6b9dfa31e744f0 | refs/heads/master | 2021-01-10T19:58:05.162232 | 2012-09-22T14:34:48 | 2012-09-22T14:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.contrib import admin
from django.conf.urls.defaults import *
admin.autodiscover()
urlpatterns = patterns('',
(r'^auth/', include('auth.urls')),
(r'^handball/', include('handball.urls')),
(r'^admin/', include(admin.site.urls))
)
| [
"martin@maklesoft.com"
] | martin@maklesoft.com |
dd8ff876cdff51683095b93c5c1e9985b5a29584 | 9732da539d940904cf09b4164a307cb1a58fbb35 | /superhero/ability_and_armor.py | bb0e7c0ea30847095581385d460942d5d2e5ad75 | [] | no_license | makhmudislamov/fun_python_exercises | f3c7557fa6ed400ee196252a84ad7b6b23b913f1 | 21ab89540fb5f4f04dbdb80f361bf4febd694c11 | refs/heads/master | 2020-05-26T05:42:20.115833 | 2019-10-17T03:28:57 | 2019-10-17T03:28:57 | 188,125,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | from random import randint
class Ability:
def __init__(self, name, max_damage):
'''
Initialize the values passed into this
method as instance variables.
'''
self.name = name
self.max_damage = max_damage
def __str__(self):
return f'This ability is {self.... | [
"sunnatovichvv@gmail.com"
] | sunnatovichvv@gmail.com |
0cd44d57984873ff2dd3d1e25064b5bc50b880c1 | 23fdc97552b7e55b8c5e5eca3046ee95eb29d43c | /leetcode/leetcode_111.py | db8f1ff94b73fffc72e5a91a64d84064cc74e9ef | [] | no_license | qiqimaochiyu/tutorial-python | b999ef63026d05045a33225b1fbe2a5919422961 | a0d50946859798a642aaacdc31fa97cc015ae615 | refs/heads/master | 2018-10-04T18:12:18.017065 | 2018-06-26T09:23:50 | 2018-06-26T09:23:50 | 90,226,235 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def minDepth(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if not root:
retur... | [
"noreply@github.com"
] | qiqimaochiyu.noreply@github.com |
90208cdc6c60917016382d39760b8a3bb14ff4d3 | 8d34c0d29b69028fb1da01499fdac19f9762a8e1 | /lib/python2.7/sunlight/service.py | cf069d357b54bd46632e3a1b8417e69f90c7f8b1 | [] | no_license | politicrowd/politicrowd | 87a98689724c288b5400acd0de6fb7fae7e058d4 | e62c89d234a59f6c7d56fae2c8af6074f426c265 | refs/heads/master | 2021-01-20T00:55:48.083054 | 2013-07-30T00:14:08 | 2013-07-30T00:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | # Copyright (c) Sunlight Labs, 2012 under the terms and conditions
# of the LICENSE file.
"""
.. module:: sunlight.service
:synopsis: Sunlight API Superclass
Base service class. All API classes (such as say -
:class:`sunlight.services.openstates.OpenStates`) inherit from this.
"""
import sys
import sunlight.conf... | [
"paul@politicrowd.com"
] | paul@politicrowd.com |
7be265dac32863a3cb746a50679f132f3cfc6705 | 7d17375998378125fa63b1cf8673b8387d99324f | /core/migrations/0006_auto_20200517_0929.py | 07187c5d3c0bad2459578712f836c9dcc72447db | [] | no_license | priyanka1698/Late-checker | c2f96993340f09c55bd9eac2261cc760c409eae9 | ff1c4615b3abefd65fa789fcd1e684322ddfc9de | refs/heads/master | 2022-08-19T15:22:00.692770 | 2020-05-20T11:45:35 | 2020-05-20T11:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | # Generated by Django 3.0.5 on 2020-05-17 09:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_delete_image'),
]
operations = [
migrations.CreateModel(
name='Timing',
fields=[
('id',... | [
"sanyam19092000@gmail.com"
] | sanyam19092000@gmail.com |
eaed7c034ea788beec33f6c9b31938383407cb09 | 7c98bee73fdd64a8fa08dc3a94e520b175ac190e | /bin/rst2latex.py | 311af3f8a994b04f7ad5f9f586bc0e1fc7cd2fcd | [] | no_license | Barry-Chen-Intersective/Proj-Api-Test | 97015eccb4b6d1652ca8809cbb8ddbe1132008c0 | cc707770578bd35a155f506198ad765d91926daa | refs/heads/master | 2021-07-21T04:45:09.329331 | 2018-10-23T01:25:02 | 2018-10-23T01:25:02 | 135,973,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | #!/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# 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 ... | [
"barry@intersective.com"
] | barry@intersective.com |
d5e72b406d12cc64d1490e7ba89e8b441f0c7d4e | bf511b123d05788e45b17270dc3e651a82a7ee58 | /taskmate/todolist_app/migrations/0001_initial.py | 2f3cc31b47612b0ee866de917ddd0d5a8fd0076f | [] | no_license | joseluis-gc/Django-TodoApp | 36a7350064a66dd917c1383be1eee923f3ffd20e | 2e3f82ba0fe08f76fb0d98bec2bde2717684818e | refs/heads/master | 2023-06-09T18:42:46.580395 | 2021-06-24T05:31:50 | 2021-06-24T05:31:50 | 377,983,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # Generated by Django 3.1.5 on 2021-06-18 00:48
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TaskList',
fields=[
('id', models.AutoField... | [
"joseluisgomezcecegna@gmail.com"
] | joseluisgomezcecegna@gmail.com |
8b579bbef3904192079b88f2eac49f003e9d4eb1 | 7ad7eb81d1dc26edd3b958a5dbbc7d61f19b0640 | /test/test_mode_type.py | 4c28945ba899c6fcde6a31a07364acf1687527cc | [
"MIT"
] | permissive | camptocamp/quickpac-client | a1b6e7164e2ad362c0c6d819a31ace9f6774f926 | 761c08bdc3846c724adbc99b589d2db460a6bcdc | refs/heads/master | 2023-07-16T18:46:48.167193 | 2021-09-02T08:56:46 | 2021-09-02T09:12:46 | 401,749,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # coding: utf-8
"""
Quickpac API
Here you will find all public interfaces to the Quickpac system. # noqa: E501
OpenAPI spec version: v1.00
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import quickpac
from quickpac.mod... | [
"stephane.mangin@camptocamp.com"
] | stephane.mangin@camptocamp.com |
edb363be7d18412f48d26946d0a265a266919f9e | 9d43b8a3b53001f25a347fd96e5c49538b0c509a | /mxshop/apps/trade/views.py | 30e854b8ad252b98ccda10e6bfe8ca3d67cb173a | [] | no_license | w8833531/mxfresh | b81b7e4223536c6bedb049009386015935d33987 | 46b83fafdae8450491344c531de81a45ab5d8aae | refs/heads/master | 2021-04-09T15:53:50.829921 | 2018-08-08T01:41:14 | 2018-08-08T01:41:14 | 125,793,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,746 | py | import random, time
from datetime import datetime
from django.shortcuts import render
from rest_framework import viewsets
from rest_framework import status
from rest_framework import permissions
from rest_framework import authentication
from rest_framework import mixins
from rest_framework.response import Response
from... | [
"w8833531@hotmail.com"
] | w8833531@hotmail.com |
7d6c817fe544b5cc80a68b8c685ce92faf0c9ef5 | a9d6a3b0fe418e4e5cc131ebc05f9b56c0e4543e | /chapter11-django/site02/site02/settings.py | 1ba07484b03cf34c8252583125bc6c301d4cb224 | [] | no_license | Kianqunki/Python_CorePythonApplicationsProgramming | 34a36ba64bdc303814de507c4fcfc3c81ff88b5f | 77263c1fde0d02aade180f7e73d2cdee1d170d58 | refs/heads/master | 2021-05-07T02:41:44.567088 | 2014-10-27T17:43:51 | 2014-10-27T17:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,596 | py | """
Django settings for site02 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, ...)
imp... | [
"georstef@gmail.com"
] | georstef@gmail.com |
890ebb99722d62fb6f06cab56b621f579b3449d8 | 6044e804dc994cb342dee73124e9216d552f6096 | /first_test.py | 4b5fe2ac95c876216633f6dacbfe65f4347e5645 | [] | no_license | jjpikoov/jjblog | 8fc02a84fa45e2d92dcdc2def55b49969b361b2f | fb89e2c6b737075c14ba25f3c3331717ae565b2c | refs/heads/master | 2021-01-10T09:10:51.089560 | 2016-02-17T16:40:53 | 2016-02-17T16:40:53 | 49,321,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import os
import main
import unittest
import tempfile
class JJblogTestCase(unittest.TestCase):
def setUp(self):
self.db_fd, main.app.config['DATABASE'] = tempfile.mkstemp()
self.app = main.app.test_client()
main.database.init_db()
def tearDown(self):
os.close(self.db_fd)
... | [
"jjpikoov@gmail.com"
] | jjpikoov@gmail.com |
1c61b1085a41baf65935cafa23107b1498cffadb | 56c23dfabac2b6cdcecfc20f6cc1e53d0041fd7a | /stanCode projects/find_DNA_complement/complement.py | 555df5d7a6b415aa24d181d33ca43b2eb429b0f0 | [
"MIT"
] | permissive | rogerchang910/stanCode-projects | 174144bcb67b5e141f7acc320e5a14027134bc2a | 92beb09b23a40c09a093dfad80837d97a90c8e3a | refs/heads/main | 2022-12-30T10:11:23.402634 | 2020-10-19T07:57:46 | 2020-10-19T07:57:46 | 303,656,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | """
File: complement.py
Name: Roger(Yu-Ming) Chang
----------------------------
This program uses string manipulation to
tackle a real world problem - finding the
complement strand of a DNA sequence.
The program asks users for a DNA sequence as
a python string that is case-insensitive.
Your job is to output the complem... | [
"noreply@github.com"
] | rogerchang910.noreply@github.com |
9c762d2633df105988229e84fc9d96bc46b0cd65 | e5b72785a1a191ca8ed62dee6048f865caa61fe3 | /gestao/urls.py | c9f849a26b749eccbcb0f922bcf1c04f55871d3d | [] | no_license | MarToxAk/v5 | 344409f98ea0098b272c4e3bc2d21e7c9bbcfe65 | daa76fe9f2346805cf99b62d8f687d8f751defbc | refs/heads/master | 2020-11-27T01:54:06.684511 | 2019-12-20T12:45:43 | 2019-12-20T12:45:43 | 229,263,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | """gestao URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"junior.ilha@hotmail.com.br"
] | junior.ilha@hotmail.com.br |
b642ce9125bc51b5a9f9d0ae69199d2d0bd1bf63 | 2e8ff2eb86f34ce2fc330766906b48ffc8df0dab | /tensorflow_probability/python/experimental/inference_gym/targets/__init__.py | a5ba67a6a9b68bf31372bf5990405fe49fbdf663 | [
"Apache-2.0"
] | permissive | wataruhashimoto52/probability | 9613f9a3cc685ff1a20643c4a05a48f9cf0fe1ae | 12e3f256544eadea6e863868da825614f4423eb0 | refs/heads/master | 2021-07-16T18:44:25.970036 | 2020-06-14T02:48:29 | 2020-06-14T02:51:59 | 146,873,495 | 0 | 0 | Apache-2.0 | 2018-08-31T09:51:20 | 2018-08-31T09:51:20 | null | UTF-8 | Python | false | false | 2,223 | py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
414f254965e2e32371576293af109dfc8fe4d3a5 | a88f90d3aa9eb9fa7bd88458d3b78e1a7a6c3477 | /svplot/jointgrids.py | 3654cfa66dafd821320fc16c36b9de591c2ff3c0 | [
"MIT"
] | permissive | msto/svplot | a43c13ae2ae66b21b8b3176d1b722c9d88118769 | 2e16a7936328079d444bdd1edd8ab93fbbf49dde | refs/heads/master | 2021-01-13T08:14:58.545980 | 2017-03-08T17:14:17 | 2017-03-08T17:14:17 | 72,221,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,851 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright ยฉ 2016 Matthew Stone <mstone5@mgh.harvard.edu>
# Distributed under terms of the MIT license.
"""
Modification of Michael Waskom's JointGrid implementation in Seaborn.
Supports multiple JointGrids in single figure
"""
import numpy as np
import pandas as pd
i... | [
"matthew.stone12@gmail.com"
] | matthew.stone12@gmail.com |
748a3810da0b0659890ef170abef1ea0d6d32b5f | 5961726d2e0d84c4ced32e5cd072c3c0c07153cb | /smart_schedule/line/handlers/__init__.py | 48b1b8553fed5e192692650955bf0185450019e4 | [] | no_license | macinjoke/smart_schedule | 46bc68d712646ffb45dcf1e8bd9d140d7a9fb84f | 605c39f2d465cb8e56bedc941109f3b716608efa | refs/heads/master | 2021-03-19T15:53:35.886128 | 2018-01-13T08:22:50 | 2018-01-13T08:22:50 | 76,947,986 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | from datetime import datetime
import flask
import urllib
import hashlib
import re
from linebot.models import TextSendMessage
from linebot import LineBotApi
from smart_schedule.settings import (
line_env, web_env, hash_env
)
line_bot_api = LineBotApi(line_env['channel_access_token'])
# TODO ไปฅ้ใฎ้ขๆฐใใกใฏใฉใใซใใในใใใใชใใกใฏใฟใชใณ... | [
"shunji.makino@gmail.com"
] | shunji.makino@gmail.com |
a4354d06907b766c2c8e2f23546b79efe0959e4f | 06322e962c80f4c25838318e7d805ae88f0299e5 | /lengths.py | f6546177e6a717d960717d0a920b2e6122347ee7 | [
"BSD-2-Clause"
] | permissive | unixpickle/uno-ai | 6d4ec187e0c158c15cd4240ccf7e894cb599e071 | 3124afc8fa6b0cbcced95ef03ed9672cdb4f35a7 | refs/heads/master | 2020-04-21T10:20:07.310885 | 2019-08-06T15:27:45 | 2019-08-06T15:27:45 | 169,482,953 | 22 | 4 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | """
Measure the lengths of random games.
"""
import random
from uno_ai.game import Game
def main():
while True:
g = Game(4)
num_moves = 0
while g.winner() is None:
action = random.choice(g.options())
g.act(action)
num_moves += 1
print(num_moves... | [
"unixpickle@gmail.com"
] | unixpickle@gmail.com |
9bd919b284a2108b62fb412c5d961bcb422c8d89 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_iapp_template.py | 4437352d228d92f1318fbf343532623181c1e425 | [
"GPL-3.0-only",
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 15,691 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
bcb86e89e8d220c443eda53ff9c0bc4cdc174724 | 1f2342cb4bc357aa6af572a1d705d045e31dd173 | /WORKSHOPS/Workshop 9/factorial.py | 0605102f61fc4fea11ddf30452fca5c02f30e6e3 | [] | no_license | Ogaday/Programming-for-Science | 3702c8362d6a60f106ffa67b5b2a066519c91de3 | 806a9c7849f455777a6ec226fd1918f980191f78 | refs/heads/master | 2021-01-10T15:57:12.831839 | 2015-06-01T23:05:46 | 2015-06-01T23:05:46 | 36,625,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def factorial(n):
"""
return the recursive factorial of n
"""
if n == 1:
return 1
else:
return n*factorial(n-1)
if __name__ == "__main__":
print """Welcome to the FACTORIAL CALCULATOR\n \nTo use the calculator, enter the number for which you want the factorial of, then press enter. In order to quit, type 'q'... | [
"w.ogaday@gmail.com"
] | w.ogaday@gmail.com |
60d320dea98839269dab10b44bf3d83b288fe2b7 | 42b38dd5fe75148a5727760847fcea5597f9d52f | /user_auth/vendors/top/api/rest/__init__.py | 503bd7d8a0e83539629ab85ca8dad1ed8382e3e8 | [] | no_license | naitianliu/hwserver | 9d24c2ea405a6dcfafe7aa38e42a768e496608e6 | 06ddcb114cd4c1b4d8b647998b4b4637789d6b43 | refs/heads/master | 2022-12-14T10:59:43.509971 | 2016-12-18T15:38:29 | 2016-12-18T15:38:29 | 61,244,155 | 0 | 0 | null | 2022-12-07T23:39:07 | 2016-06-15T22:03:04 | Python | UTF-8 | Python | false | false | 1,968 | py | from user_auth.vendors.top.api.rest.TopIpoutGetRequest import TopIpoutGetRequest
from user_auth.vendors.top.api.rest.AlibabaAliqinFcFlowChargeProvinceRequest import AlibabaAliqinFcFlowChargeProvinceRequest
from user_auth.vendors.top.api.rest.HttpdnsGetRequest import HttpdnsGetRequest
from user_auth.vendors.top.api.rest... | [
"naitianliu@gmail.com"
] | naitianliu@gmail.com |
571b5e21a17bb0386eb30bd81b021035a58c3802 | 5b56d0ec345d19c3e9c17764cdfa4ef8180f25e0 | /2020-01-python/api.py | fd5f9add8cd66d0c4436d45b28fc09d9b3c73da0 | [] | no_license | suzuki-hoge/warikan | 6e6d5f814fe4a9130b61a416f495326c316e2a8c | d47c32338421d4c6c88022a7d64a478e79708835 | refs/heads/master | 2020-12-04T08:54:07.960635 | 2020-02-07T03:29:52 | 2020-02-07T10:09:56 | 231,702,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | from bottle import route, get, post, put, request, response, hook, run
import json
import db, party
def handle(f):
def wrapper(*args, **kwargs):
try:
result = f(*args, **kwargs)
return {'status': 'ok', 'result': result} if result is not None else {'status': 'ok'}
except B... | [
"user.ryo@gmail.com"
] | user.ryo@gmail.com |
01df404873ee9e3bba62ab69c2e05d7863ae98c4 | 2ce0c770b6ebf1122cfe2cc02b943101172920f4 | /wwt_data_formats/tests/test_wtml_tree.py | 56668db83d32b8c0c1913e626cf661c4e392067c | [
"MIT"
] | permissive | WorldWideTelescope/wwt_data_formats | 48269945ab835706f75fbf56801c5f19c38c1930 | 8f3a977b87d36c5a903e3bf63ff2ea89547447bb | refs/heads/master | 2022-10-31T02:02:51.003406 | 2022-10-25T19:49:38 | 2022-10-25T19:49:38 | 225,955,212 | 2 | 4 | MIT | 2023-08-18T00:18:54 | 2019-12-04T20:54:27 | Python | UTF-8 | Python | false | false | 833 | py | # -*- mode: python; coding: utf-8 -*-
# Copyright 2019-2020 the .NET Foundation
# Licensed under the MIT License.
from __future__ import absolute_import, division, print_function
import os.path
from .. import cli
from . import tempdir
def test_cli(tempdir):
"Simple smoke test to see if it runs at all."
pr... | [
"peter@newton.cx"
] | peter@newton.cx |
15c2472e0bb613f8974faf6aebc33081848cd35c | f493d8c49fa2c34cb7bb6bc055ae478a6bfb068c | /bike_sharing.py | bd0f8aad95de5553ec75ef08b46807d338f1cdef | [] | no_license | yangshiyu89/bike_sharing | e69e64bd8c2f7982bfb0d84eadb777a553d96699 | bfdd57fb2eb525297901c49879e926e2bb338760 | refs/heads/master | 2021-01-21T11:30:09.827920 | 2017-03-01T16:14:44 | 2017-03-01T16:14:44 | 83,567,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,126 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 1 17:37:44 2017
@author: yangshiyu89
"""
import numpy as np
import pandas as pd
import tensorflow as tf
import matplotlib.pyplot as plt
# Define dl net
def Neural_Net(train_features, train_targets, val_features, val_targets, test_features):
features = tf.place... | [
"noreply@github.com"
] | yangshiyu89.noreply@github.com |
505e01d16c4946a2cc61a71edd7d0ee2504ca6d6 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/network/v20171001/get_virtual_network_gateway_bgp_peer_status.py | ce971110c0cb3c1a127751e2520bf66c4337635f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
ae137b1b1b702ea94707b85faf4024ec372f1832 | 83d36e8795b19d537fab32c4ced52359561a6b3b | /ingredients/apps.py | b0fea569eed9b6ec9258bfa94c37a231c4b4fcd0 | [] | no_license | vubon/django-graphql | b1325ebc31136d19b5ca5b5fd85c6fea98972e6c | 9586b5b5098dfeb25aa26521b24bc6c3beb333bc | refs/heads/master | 2020-04-14T08:02:04.957523 | 2019-12-05T05:02:46 | 2019-12-05T05:02:46 | 163,727,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class IngrdientsConfig(AppConfig):
name = 'ingredients'
| [
"vubon.roy@gmail.com"
] | vubon.roy@gmail.com |
c7a3468c7cae4eb4836690dd475d98f13f9a6ac2 | f854ef28002a3931a8d8b8d0b9cc691b8a449db3 | /home-assistant/custom_components/hacs/helpers/classes/manifest.py | c0e43b9ba3f570e1740dbe3c9e52024391ae5891 | [
"MIT"
] | permissive | Burningstone91/smart-home-setup | 030cdaa13d05fb19a82b28ea455614d3276522ab | c2f34cc8b8243bc6ce620b3f03e3e44ff28150ca | refs/heads/master | 2023-02-23T06:25:04.476657 | 2022-02-26T16:05:02 | 2022-02-26T16:05:02 | 239,319,680 | 421 | 36 | MIT | 2023-02-08T01:16:54 | 2020-02-09T14:39:06 | JavaScript | UTF-8 | Python | false | false | 1,156 | py | """
Manifest handling of a repository.
https://hacs.xyz/docs/publish/start#hacsjson
"""
from typing import List
import attr
from custom_components.hacs.exceptions import HacsException
@attr.s(auto_attribs=True)
class HacsManifest:
"""HacsManifest class."""
name: str = None
content_in_root: bool = Fals... | [
"dimitri.steiner.gl@gmail.com"
] | dimitri.steiner.gl@gmail.com |
7343fb8defbea9a314d6f3be0e874c35f13e8940 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/dlmmin002/question3.py | 7a33ac4f48f3eddf6202f2094e5bd3b2da9e4fde | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | #personal spam message
#nolwazi dlamini
#3 march 2014
name =input("Enter first name: \n")
surname=input("Enter last name: \n")
money=eval(input("Enter sum of money in USD: \n"))
country=input("Enter country name: \n")
print("\nDearest" ,name)
print("It is with a heavy heart that I inform you of the death ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
d24f43978d7bc3dc1bd471970dceef5f2bbfb976 | 8d402df39c18eba7e1c86c762f205c944357c5df | /setup/brython/make_file_system.py | b94bae446d191d813018f82085a1dbda517fd43c | [
"BSD-3-Clause"
] | permissive | brython-dev/brython | 87cc023e25550dec9ce459ba68774189f33712b6 | b33958bff0e8c7a280babc30232dc389a2500a7a | refs/heads/master | 2023-09-04T04:49:29.156209 | 2023-09-01T06:36:08 | 2023-09-01T06:36:08 | 24,046,239 | 6,569 | 625 | BSD-3-Clause | 2023-07-05T06:13:32 | 2014-09-15T06:58:21 | Python | UTF-8 | Python | false | false | 2,113 | py | import json
import os
import stat
import sys
import binascii
def make(vfs_name, prefix=None):
"""Called by
python -m brython --make_file_system <vfs_name> <prefix>
Creates a Virtual File System : a Javascript file with the files in
current directory and its children.
The file is stored in cu... | [
"quentel.pierre@orange.fr"
] | quentel.pierre@orange.fr |
eee5f7823e7fce0bab38226e4c40fa15cbb05802 | 7c8fe9cf38de89dba5ed7afa9558739f037f9cc7 | /01-webtron/webtron/webtron.py | efce6211b9a1a257a1922e78b58141c9b4c10396 | [] | no_license | inigokintana/automating-AWS-python | 94b373dba4902414b37da00d4afe97f97007c1d6 | 4ee5ce245d03f4c339feee5c745b6b1fac982cf7 | refs/heads/master | 2022-02-17T02:34:17.097839 | 2019-08-01T18:16:55 | 2019-08-01T18:16:55 | 162,336,994 | 0 | 0 | null | 2022-01-21T19:45:27 | 2018-12-18T19:37:31 | Python | UTF-8 | Python | false | false | 1,511 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Webotron: Deploy websites with aws.
Webotron automates the process of deploying static websites to AWS.
- Configure AWS S3 buckets
- Create them
- Set them up for static website hosting
- Deploy local files to them
- Configure DNS with AWS Route 53
- Configure a Conte... | [
"inigokintana@gmail.com"
] | inigokintana@gmail.com |
d0bcf451fb15a4a5e6e3ce2d28b88e1a6043437e | 3bbaf5a5dd1d19f207c01f14e06a58f6faf9a1f2 | /helpers.py | 8735343af6dcaf46167a733d832f002d37073425 | [
"MIT"
] | permissive | kelly4strength/hmchallenge | f06e1a5288a73ba523e39e5cfbf0d36c33148478 | 2195d8fa2d9acdad7a088b1422a7fb5aa3b06b28 | refs/heads/master | 2021-01-19T10:45:55.459291 | 2017-02-25T05:42:16 | 2017-02-25T05:42:16 | 82,221,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | """helper functions"""
# from model import word, user_guess, partial_word
# import unnecessary
# def show_correct_guess_letter(word, user_guess, partial_word):
# """function to show current guess letter if it is in the word"""
# for i in range(len(word)):
# if user_guess != word[i]:
# partial_word = partia... | [
"kellyhoffer@Kellys-MacBook-Pro-2.local"
] | kellyhoffer@Kellys-MacBook-Pro-2.local |
6dbdb7e147eb6c53ea0f4d1c2a060d11bbd6dfd2 | 3f6c3ac0800f5915ba1d0a26e7534ac5771145db | /src/software/simulated_tests/er_force_simulator.py | 0553ffb6a5f185f43d24937bb939534a77f40e1a | [
"LGPL-3.0-only"
] | permissive | LiCody/Software | 10b02612ab93b90b423cb0be94a5aa721f059095 | 8105c5f90d5d3b3d4ffa275a10b6fd4e81a4520b | refs/heads/master | 2023-07-09T09:04:30.463000 | 2022-04-13T04:32:30 | 2022-04-13T04:32:30 | 211,555,649 | 0 | 0 | MIT | 2019-10-09T03:30:30 | 2019-09-28T20:07:17 | C | UTF-8 | Python | false | false | 7,447 | py | from subprocess import Popen
from proto.import_all_protos import *
from software.networking.threaded_unix_listener import ThreadedUnixListener
from software.networking.threaded_unix_sender import ThreadedUnixSender
from software.py_constants import *
class ErForceSimulator(object):
def __init__(self, runtime_di... | [
"noreply@github.com"
] | LiCody.noreply@github.com |
c8ef83211988cefbe18916ab9fd7f4531c57ab0d | f9a4e1c39d722daab7de1f7a5ce6c2634fa53845 | /xorGame.py | efd55f4fec19c6b1a3bb13926c7f6b0e05d94837 | [] | no_license | EugenenZhou/leetcode | b26e4198729dd9c42dccb4cdbaa952d9c50086e1 | 03a0316ac317ae48adf2d05be62d536e1b5f2620 | refs/heads/master | 2020-06-17T16:29:54.746645 | 2019-09-21T05:36:23 | 2019-09-21T05:36:23 | 195,977,242 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # ไธไธช้ปๆฟไธๅ็ไธไธช้่ดๆดๆฐๆฐ็ป nums[i] ใ
# ๅฐ็บขๅๅฐๆ่ฝฎๆตไป้ปๆฟไธๆฆๆไธไธชๆฐๅญ๏ผๅฐ็บขๅ
ๆใ
# ๅฆๆๆฆ้คไธไธชๆฐๅญๅ๏ผๅฉไฝ็ๆๆๆฐๅญๆไฝๅผๆ่ฟ็ฎๅพๅบ็็ปๆ็ญไบ 0 ็่ฏ๏ผๅฝๅ็ฉๅฎถๆธธๆๅคฑ่ดฅใย
# (ๅฆๅค๏ผๅฆๆๅชๅฉไธไธชๆฐๅญ๏ผๆไฝๅผๆ่ฟ็ฎๅพๅฐๅฎๆฌ่บซ๏ผๅฆๆๆ ๆฐๅญๅฉไฝ๏ผๆไฝๅผๆ่ฟ็ฎ็ปๆไธบ0ใ๏ผ
# ๆข็ง่ฏดๆณๅฐฑๆฏ๏ผ่ฝฎๅฐๆไธช็ฉๅฎถๆถ๏ผๅฆๆๅฝๅ้ปๆฟไธๆๆๆฐๅญๆไฝๅผๆ่ฟ็ฎ็ปๆ็ญไบ 0๏ผ่ฟไธช็ฉๅฎถ่ท่ใ
# ๅ่ฎพไธคไธช็ฉๅฎถๆฏๆญฅ้ฝไฝฟ็จๆไผ่งฃ๏ผๅฝไธไป
ๅฝๅฐ็บข่ท่ๆถ่ฟๅ trueใ
######################################################################
def xorGame(n... | [
"735159373@qq.com"
] | 735159373@qq.com |
59d3d0e0e07d6c1d41095d2ceff9107905522820 | 32fafd0c16351743360f00b3ca2ecac7488acef2 | /example3/populate_orders.py | fb42ae27516644797345c0949f942f4ff8a509c8 | [] | no_license | unix-way-project/postgresql | 128de649100d0c068cf2cef4a1f0abf48abeed88 | 631ddf194f0f799e97abb37f0b3c9b4f5f4b99a9 | refs/heads/master | 2023-03-17T03:59:40.660690 | 2021-03-14T20:19:39 | 2021-03-14T20:19:39 | 338,542,910 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py |
import psycopg2
import psycopg2.extras
import faker
import random
def add_order(connection):
try:
cursor = connection.cursor(cursor_factory = psycopg2.extras.DictCursor)
# Choose random user
cursor.execute('''
SELECT user_pid
FROM users
ORDER BY rando... | [
"jackalsh@gmail.com"
] | jackalsh@gmail.com |
f71d7ca732dbb65b50967732e07d0777f557e075 | b0a5efbd01e9614392be8eaea595f7f8efda9bfb | /lung.py | d499312a7bcfc052b19f3dd28bfb66694d3bce76 | [] | no_license | Ismail-w/cov19_imgprocess | 4ffc117a26063d3114077e703381653a5db13116 | e707f4574f9c41ab4e58cfa8bcecc5e8d1274f65 | refs/heads/main | 2023-03-31T09:17:09.974067 | 2021-04-08T10:23:12 | 2021-04-08T10:23:12 | 355,859,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py |
import cv2
import numpy as np
img = cv2.imread('Covid1.png')
print("Image Properties")
print("- Number of Pixels: " + str(img.size))
print("- Shape/Dimensions: " + str(img.shape))
cv2.imshow('org',img)
cv2.waitKey(0)
blue, green, red = cv2.split(img) # Split the image into its channels
resized_imag... | [
"noreply@github.com"
] | Ismail-w.noreply@github.com |
626a8f3efe3c44a285bd894dcf720fe9a98984aa | 8ccc0846442ea595015ec772c62d14695d745859 | /Backtesting/strategy/base.py | 7daa9847b42b20ed695cc39f44941ccb586a9169 | [] | no_license | linkenghong/Backtesting | 67c804446b3687a75064c8dc20713f69c11c56d7 | 29509e9e7262410275a92e42407cd8df334ecdad | refs/heads/master | 2020-06-05T02:57:30.582940 | 2019-09-08T05:20:43 | 2019-09-08T05:20:43 | 192,289,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | from abc import ABCMeta, abstractmethod
class AbstractStrategy(object):
"""
AbstractStrategy is an abstract base class providing an interface for
all subsequent (inherited) strategy handling objects.
The goal of a (derived) Strategy object is to generate Signal
objects for particular symbols base... | [
"345852974@qq.com"
] | 345852974@qq.com |
53d2e5d291801ab5cf03ead215d5c4ba7b43273e | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/fb_post_learning/fb_post_learning/settings/base_aws_s3.py | 50a8801a8acf4d0f51a64b61ae58285d2bc56de6 | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | {"filter":false,"title":"base_aws_s3.py","tooltip":"/fb_post_learning/fb_post_learning/settings/base_aws_s3.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":0,"column":0},"end":{"row":0,"column":0},"isBackwards":false},"options":{"guessTab... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
73b124d0407d683b320b426ec9edb5b9f2c86f27 | 351687b2f40e8fe063c546993fb0eaefb58604f6 | /cov/example_cov_estimator_l1_nolam.py | 0118785b04c13dac6581bc07c7c93a7aebc68d0f | [] | no_license | eduff/NI_code | 79cdb22b154070d4b0e8873df810ac535d18c600 | 7b5a984e6931b8fb586f50ab390285bf6b36e785 | refs/heads/master | 2021-01-01T19:10:39.753985 | 2015-02-09T22:33:03 | 2015-02-09T22:33:03 | 9,242,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | # Author: Gael Varoquaux
# Copyright: INRIA
import pylab as pl
import numpy as np
from scipy import linalg
from covariance.generate_data import generate_standard_sparse_mvn
from covariance.cov_estimator_l1 import CovEstimatorL1CV
################################################################################
N_SAMP... | [
"eduff@fmrib.ox.ac.uk"
] | eduff@fmrib.ox.ac.uk |
c72299e7afa25673891cb364c768c19408325154 | f79267b09f4fee621c7aaaa02ab2eef4f59e0dcf | /ag/sorting/graph.py | b2a6a847d623fb418ea65eca15d0c3a908ef7eb9 | [
"MIT"
] | permissive | justyre/jus | 07503972ff4933117f39fe91818c9b63dcfcbb17 | 1339c010ac4499c253061d2cce5e638ec06062bd | refs/heads/master | 2023-07-16T11:54:43.875953 | 2021-08-03T07:49:36 | 2021-09-06T02:26:13 | 389,536,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,359 | py | # Licensed under MIT License.
# See LICENSE in the project root for license information.
"""Several graph algorithms."""
# With DFS, we can classify the edges in a directed or undirected graph:
#
# 1. A tree edge is (u,v) if v was first discovered by exploring edge (u,v). All the edges in the depth-first forest G(pa... | [
"1762873+justyre@users.noreply.github.com"
] | 1762873+justyre@users.noreply.github.com |
c0331309bf2f0dab4193eca0be842d750c839dc8 | c03b615ca32a191672be6ed8d5de1624db9409b0 | /p10.py | 8f59c18d38846c9708889c19091d76c70cae52c3 | [] | no_license | Hemangi3598/chap-8_p10 | b7b768120c8fbaf85e01b8aa699223a66ce75f8b | 8736c342b578100b4f0fada1f84edf6a511e753b | refs/heads/main | 2023-08-07T08:22:48.537950 | 2021-09-19T07:02:29 | 2021-09-19T07:02:29 | 408,056,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # waopp to add students and their rno in class
class student:
def __init__(self, rno, name):
self.rno = rno
self.name = name
def show(self):
print("rno = ", self.rno)
print("name = ",self.name)
data = []
while True:
op = int(input(" 1 add, 2 view and 3 exit"))
if op == 1:
rno = int(input("en... | [
"noreply@github.com"
] | Hemangi3598.noreply@github.com |
84bc2ed6db473e44610fce5decafd84089166c40 | 6e3396980eeee1d8d55e4afbc6148711e9e9a342 | /SPOJ/py/INTEST.py | 63e9b4121738ad4488c4a37461310bf941213675 | [] | no_license | arunpatala/scala-learn | c20ca717899d1752ddb20dfbe4f6839217ad3ac8 | b9e52aec74d360a18af99e841c6b598f2b0165b6 | refs/heads/master | 2021-01-22T23:43:26.608433 | 2015-07-31T17:30:54 | 2015-07-31T17:30:54 | 38,426,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | a = str.split(raw_input())
N = int(a[0])
K = int(a[1])
ret = 0;
for i in range(0,N):
if(int(raw_input())%K==0):
ret = ret + 1
print ret
| [
"arunpatala@gmail.com"
] | arunpatala@gmail.com |
8c67bf15d9d2de2bc24154779e9a522ad89693e5 | c83ba2b21c72fa119fecb1b094fcf7a9745b626c | /CodeFiles/Metrics_L2.py | e0e921f54fcc22481bc26c70c02ba9f53dc28d3f | [] | no_license | amoghgaikwad/Click-Through-Prediction-Rate | 8074d84309e4ff824eafe531a6f62280db091113 | 0dd369a927929e4fa45d092e38cd7756276e9cb2 | refs/heads/master | 2021-01-22T20:50:39.342028 | 2017-03-18T02:58:16 | 2017-03-18T02:58:16 | 85,371,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,043 | py | from pyspark.sql import Row
from pyspark.ml.feature import OneHotEncoder, StringIndexer
from pyspark.ml.feature import VectorAssembler
from pyspark import SparkConf, SparkContext
from pyspark.sql import SQLContext
from pyspark.ml import Pipeline
from pyspark.mllib.classification import LogisticRegressionWithSGD, Logist... | [
"amogh.gk@gmail.com"
] | amogh.gk@gmail.com |
6ddcba986a72f513f2c34d92c5c53b6cd277e169 | b309e6a809cb722f0ee9c42f6fcfacbd9495ad43 | /KMP.py | 96fb793e047549f5d87c349b2d7d49be285f16c9 | [] | no_license | leesen934/leetcode_practices | 0bee0bef00e7459bd4ecbb5a2f98436c270889ad | c93f15bee2ee2eea2e6f276c4907280d110c0467 | refs/heads/master | 2020-03-28T14:24:31.362300 | 2018-09-13T08:19:47 | 2018-09-13T08:19:47 | 148,484,508 | 0 | 0 | null | 2018-09-12T13:26:23 | 2018-09-12T13:26:22 | null | UTF-8 | Python | false | false | 1,029 | py | def getNext(p):
j = 0
k = -1 # next[j]็ๅผ๏ผไนๅฐฑๆฏk๏ผ่กจ็คบ๏ผๅฝP[j] != T[i]ๆถ๏ผjๆ้็ไธไธๆญฅ็งปๅจไฝ็ฝฎใ
next_p = [-1] * len(p)
while j < len(p) - 1:
print("p[k]: " + p[k] + ", p[j]: " + p[j])
if k == -1 or p[k] == p[j]:
j += 1
k += 1
if p[j] == p[k]: # ๅฝไธคไธชๅญ็ฌฆ็ธ็ญๆถ่ฆ่ทณ่ฟ
... | [
"lichunchn0516@gmail.com"
] | lichunchn0516@gmail.com |
fa3510c04357a2e5a1420c7e718ab0f2cde76df7 | f9aecf1d54f9919f48b523ce7e68397a13de4db6 | /cgi-bin/XmlToJson.py | 4757bbb9790b7b26fb990dd842f120c092ae8217 | [] | no_license | zestroly/www | 2ae2dc2aa3de5f47cf03e310e071049ff7790f04 | a7e15dac6e0494dcdf298edda8e1e3e2c81ae3c8 | refs/heads/master | 2021-01-18T03:53:05.678155 | 2017-06-12T01:04:14 | 2017-06-12T01:04:14 | 85,780,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | #!/usr/bin/python3.6
from xml.dom.minidom import parse
import xml.dom.minidom
import os
import sys,json
json_str=sys.argv[1]
#print(json_str)
#print(type(json_str))
json_dict=json.loads(json_str)
xmlstr = ""
for key in json_dict:
if(key == 'data'):
break;
xmlstr +="<Param ErrorCode=\"0\">"
xml... | [
"zestroly@126.com"
] | zestroly@126.com |
bb72ca08e04c6993447c5ba8e25163b95a1d07f8 | cf1636cd2108ae86c5df5bfc1ae9448e3fd9dbf7 | /nash_test.py | 6e61f59897bf12985704bd9184416d09b3079de8 | [] | no_license | ryanpig/MultiagentSystem-FindNE | 991d5db6950eef11b41b400627f9b05b3710759b | 470b5f838d4b9296a91824024cbef412881abcf9 | refs/heads/master | 2021-04-12T04:22:24.828274 | 2019-02-08T10:41:49 | 2019-02-08T10:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,923 | py | import nash
import numpy as np
import datetime
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
from scipy.stats import norm
# Algorithms
def non_duplicate_print(eqs):
tmp1 = []
tmp2 = []
for eq in eqs:
#print("eq:",eq,"tmp:",tmp)
#print(np.any(eq in tmp))
#print(eq in... | [
"ryanpig@gmail.com"
] | ryanpig@gmail.com |
b0de702648187305cb55de4c208e37e3f49e804d | abd7a71f62eb1f85dd8725e2c5ed5f2ff9f43fbf | /tuples_comparing.py | 7a45e1b83fd00b5cffdd9c9883bc405af5b5b1c2 | [] | no_license | danielrhunt/python | 3f97df39f01ac9ef58d0c8d8aaf47a2c6abaeec8 | 6a5e5057b18dc55e317ca3027440765b409b1a43 | refs/heads/master | 2020-04-21T02:51:04.719043 | 2019-03-12T20:22:46 | 2019-03-12T20:22:46 | 169,267,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | '''COMPARING TUPLES'''
'''comparison operators work on tuples, just like other sequences
Python starts by comparing the first element in each sequence
if they are equal, it goes on to the next element, and then on again, and again, until it finds elements that differ
subsequent elements are not considered (even if the... | [
"noreply@github.com"
] | danielrhunt.noreply@github.com |
c72500ece3f030d2acbe56879e08b891d53d15f9 | 408491958cece161e3f7b27d10926b5cd80b4b14 | /Python/Itertools/Compress the String/CompressTheString.py | 9d710345eef369aa0def85dc24211ea56380c842 | [] | no_license | Snoblomma/HackerRank | 279212173fbe0024ecb5e34fdbacc1c01faad7f5 | 1547913ada66d13fd59b06bc2781911c0895fbbf | refs/heads/master | 2021-07-11T09:16:43.323607 | 2021-03-23T22:52:11 | 2021-03-23T22:52:11 | 70,170,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from itertools import groupby
w = list(input())
k = [(len(list(cgen)), int(c)) for c,cgen in groupby(w)]
print(" ".join(str(item) for item in k))
| [
"noreply@github.com"
] | Snoblomma.noreply@github.com |
619f32ab28b0c9805f69cf283ef37f4d1facbada | 2051155a91c262ec951b42cfd6eff52a8ad65707 | /prepare_submission_20180430.py | b60f36c44633830a71f9e6ed20521921cda16014 | [] | no_license | detrout/C1_mouse_limb_combined | 607af5402eebcc79aed68f6c9966d217fb79ee54 | 44d604bf86588bd89db227b20dac589253820bca | refs/heads/master | 2021-07-10T04:50:33.089606 | 2020-06-19T22:39:01 | 2020-06-19T22:39:01 | 152,499,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,426 | py | #!/usr/bin/python3
from argparse import ArgumentParser
import os
import collections
from lxml.html import fromstring
import json
import re
import requests
import glob
import pandas
from urllib.parse import urljoin
from rdflib import Graph, Literal, URIRef
from generate_combined_transcript_C1 import (
paper_433_e... | [
"diane@ghic.org"
] | diane@ghic.org |
21571df9c1f56860a1f9f82333fa6ad56924aaa8 | 51c255de526c7f0b6a0f8b232a184ba69128e7af | /02_QUICKVIEW_hand_made_quick_view_classification/02_1_classification_basic_perceptron.py | 6283dbafd55f24ccb14981fdf16675031075f88f | [] | no_license | jerrychen44/python_machine_learning_sr | eea7e2b873763c15b8582af05dfcd9b20c589123 | bcf5fc0188d4aa956af46496c4498a2bb42bdc3d | refs/heads/master | 2021-01-11T04:16:58.669737 | 2016-11-05T07:46:55 | 2016-11-05T07:46:55 | 71,191,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,400 | py | import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
filepath=os.path.dirname(os.path.realpath(__file__))#root, where the apk_integration_test.py file is.
source_folder='source'
print(filepath)
data_csv_path=filepath+'/'+source_folder+'/iris.csv'
################################
#impleme... | [
"jerrychen040@gmail.com"
] | jerrychen040@gmail.com |
b024aad18dfb436560ff9893287a0262f4a1f76d | d36546287721db2e97e0a4323e143163a14ce0b1 | /2016/19/an_elephant_named_joseph.py | 11737177b14154baaf7b8b0d01877cfaf5f14c2c | [
"Unlicense"
] | permissive | GeoffRiley/AdventOfCode | ca258edee05ad7a4b6e6db2e59b83e8879b48af0 | 567df9cb5645bc6cf4c22063a84a621039069311 | refs/heads/master | 2023-01-12T03:42:11.099541 | 2022-12-25T17:16:20 | 2022-12-25T17:16:20 | 225,139,440 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from collections import deque
def an_elephant_named_joseph(inp, part1=True):
elves = deque(range(1, inp + 1))
elves2 = deque()
if part1:
while len(elves) > 1:
elves.rotate(-1)
elves.popleft()
else:
elf_c = inp
while len(elves) > len(elves2):
... | [
"geoffr@adaso.com"
] | geoffr@adaso.com |
ede10fd47f66d7aee777757eb88519c3ff63a7ee | e7de3d7139e73589e2172384fd114ce0c3e3655c | /test_template.py | e7fcca2adac6e7bd26f9fd3df3517004ef23fd62 | [
"BSD-3-Clause"
] | permissive | jnieuwen/python-default-requirements | 5384d08c50c844e43999409191d1536cb4558164 | f04df6da2b8de0ff20e6c24cea7769383254a552 | refs/heads/master | 2021-04-27T04:21:33.206701 | 2020-06-23T13:47:02 | 2020-06-23T13:47:02 | 122,730,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # Set up the paths.
import os
import sys
sys.path.append(os.path.abspath('.'))
import themodule
def test_hallo():
assert themodule.hallo() == "hallo"
def test_nohallo():
assert themodule.hallo() != "blaat"
| [
"jeroen.van.nieuwenhuizen@jeroen.se"
] | jeroen.van.nieuwenhuizen@jeroen.se |
f3df497c0894663eb52e0d21dc7c21eb0ae41a48 | 63f61f5a8fab6dd89b557666317b3cdc2a27e5af | /partyDataDownload.py | 40340068dabadd97f8ed0a347cbf6ee125baf78d | [] | no_license | Shan-Herald-Agency-for-News/MMElection2020_Scripting | 55d048235d903fafd69355528dc6df419ec27f39 | ea079f64803a49d08599eac2db6d3924f76746c3 | refs/heads/main | 2023-01-23T02:54:19.052822 | 2020-11-23T10:55:54 | 2020-11-23T10:55:54 | 306,220,889 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,866 | py | import json
import requests
import os
import shutil
partyInfoFile = "shanRegionParties.json"
def flag_imageDownload():
image_url = ""
filename = ""
filepath = ""
with open(partyInfoFile) as jFile:
data = json.load(jFile)
for d in data['data']:
attr = d['attributes']
... | [
"noernova666@gmail.com"
] | noernova666@gmail.com |
8239bdcbcbb37d192f3f3cff9af9527dbcdac038 | f66dfa2fc9bfbcc97259eb17e8b54a80727e1ce6 | /migrations/versions/061243403ebc_.py | 5a6c6f619b346ba996dd641501b2ef2f28fe2271 | [] | no_license | tam876/info3180-lab5 | 4ec8ea45e4ca513bd8cd6cf163d579b5ffba1ffa | 2fa6a57dd409788e52a1bee69c0048e843e478b7 | refs/heads/master | 2021-01-26T08:47:04.867508 | 2020-02-29T00:21:47 | 2020-02-29T00:21:47 | 243,389,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | """empty message
Revision ID: 061243403ebc
Revises:
Create Date: 2020-02-28 20:57:43.760065
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '061243403ebc'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"noreply@github.com"
] | tam876.noreply@github.com |
2428e97f642a009fcaf507f939507bb69f6dffab | 916f9880e97016fa9501c52df2cdb10ad89488ec | /Sample.py | 738afcb91b8f3940e95dec5810f61580661be9c7 | [] | no_license | jamunagithub/Sample | 61a027f7fd4d86e3224caa5a24b8bab6affd1a89 | 1539c78553d4fbab2880c7ecec169350ccf7468e | refs/heads/master | 2023-05-15T08:51:56.202120 | 2021-06-12T09:45:40 | 2021-06-12T09:45:40 | 376,249,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | print ("This is the sample GIT code")
| [
"jamunamec@gmail.com"
] | jamunamec@gmail.com |
6f3c7087617984089152d4cc6b9c5fafc46b3f17 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano200.py | 73b13cf0c88c6b8338ab73ca1e913d4a70757784 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
63c131575e15d03798d9cea07eca0474a3a6be3f | 4434118abceaad2388fb8b2e989154fea0e6c07e | /verletPygame.py | cb336f18cdd2b5bf2697ec79de23145d88a00782 | [] | no_license | Kelloggs/verletPygame | bc599803efa34ab0cbecf48be4f17c9545a91c35 | 146789e413313fa022e618f9184cf1270b7df682 | refs/heads/master | 2021-01-06T20:41:51.519263 | 2012-05-29T11:11:49 | 2012-05-29T11:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,857 | py | """
Verlet integration scheme for a deformable object using a mesh-based
Mass Spring System. This has just been written to test pygame.
Require: numpy, pygame
TODO:
- add less naive collision handling and response between objects
Author: Jens Cornelis
"""
from numpy import array, linalg, cross, dot
import math
imp... | [
"mail@jenscornelis.de"
] | mail@jenscornelis.de |
161c51566a4e0d910527636a2197e923a1518102 | 84239d0809dca1c88a33d42e1cda225ae5512f0f | /models/models_3_2.py | dbb8dd0b87933e755fa9ddfed094e529d0f03ca4 | [] | no_license | siebeniris/Understanding-NN | 92e2e9662d9d56e2946dec151d9d8f13bb3ae776 | a6d1553aea8e137827a7b909461664c87f1db238 | refs/heads/master | 2021-05-10T22:43:29.609052 | 2018-01-20T06:05:20 | 2018-01-20T06:05:20 | 118,264,703 | 1 | 0 | null | 2018-01-20T17:25:00 | 2018-01-20T17:25:00 | null | UTF-8 | Python | false | false | 7,861 | py | from tensorflow.python.ops import nn_ops, gen_nn_ops
import tensorflow as tf
class MNIST_CNN:
def __init__(self, name):
self.name = name
def __call__(self, X, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
... | [
"1202kbs@gmail.com"
] | 1202kbs@gmail.com |
1d13b98d948da4230d205362cbabd0696af80cf6 | 2c0e1786044c2818be20062a1c8f75990c61ae26 | /argparse/5_conflicting_options.py | 55541fc040e8ba860bdcc2e766342e231fbcbf87 | [] | no_license | jukim-greenventory/python-practice | 51802bf354c36049f41f539778f576d7e9560305 | 4a1bb17c08204edf6954196c29f6e40a88274ef6 | refs/heads/master | 2023-05-31T21:15:37.770161 | 2021-06-10T12:38:57 | 2021-06-10T12:38:57 | 375,691,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | """
Letโs introduce a third one, add_mutually_exclusive_group().
It allows for us to specify options that conflict with each other.
Letโs also change the rest of the program so that the new functionality makes more sense:
weโll introduce the --quiet option, which will be the opposite of the --verbose one:
"""
import ... | [
"junseok.kim@greenventory.de"
] | junseok.kim@greenventory.de |
b20893d703e00928bbb7b86e4af0fa4b71d78cca | e569c41ec81382630693d3bc0a163c06a6a23d52 | /PythonProgramming/ICP3/Source/3.py | a3abe312b2325a5978f48b2d5217e9b574de48a9 | [] | no_license | Sravanthi-Gogadi/PythonDeeplearningCourse | 20a074763283c3bdbcbc3846576509c5e7a733e9 | 037e94f19362635dd6911cdbd70f60830ec51f5c | refs/heads/master | 2020-03-19T08:21:18.901163 | 2018-07-28T04:39:00 | 2018-07-28T04:39:00 | 136,197,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | from bs4 import BeautifulSoup
import urllib.request
import pandas as pd
import csv
# using tabulate to display the pandas dataframe
from tabulate import tabulate
# Read the web url into a variable
url = "https://en.wikipedia.org/wiki/List_of_state_and_union_territory_capitals_in_India"
# use urllib to open the url
res... | [
"sravanthigogadi@gmail.com"
] | sravanthigogadi@gmail.com |
fafedd086eb52ca3a26667cd17b01a87c8ca5b04 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/791.py | f4c857964fa46a84265cc71f3b483d20abda438d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | __author__ = 'rrampage'
t = int(input())
def input_format():
s = input().split()[1]
return [int(i) for i in s]
def ovation(aud):
extras = 0
tot_standing = 0
for i, a in enumerate(aud):
if a == 0:
continue
if tot_standing >= i:
tot_standing += a
el... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
08028b087d65af74817e4362ee88f3cb8f285acb | ece03546e09b3880222598a6b3955281341283ae | /Scrapy/DouyuPicture/DouyuPicture/settings.py | df93d3fce09547f77e38fb6afd1e5729ab471bba | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | haochen95/python_tutorial | e24bdf603183793680233499adcc94c10d7e90da | ec02114a40b6c42fc54a5504b79d56f4ed1abef8 | refs/heads/master | 2020-04-18T03:26:19.331623 | 2019-02-26T04:47:14 | 2019-02-26T04:47:14 | 167,198,727 | 0 | 3 | Apache-2.0 | 2019-01-28T07:20:59 | 2019-01-23T14:42:05 | Jupyter Notebook | UTF-8 | Python | false | false | 3,337 | py | # -*- coding: utf-8 -*-
# Scrapy settings for DouyuPicture project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/... | [
"haochen273@gmail.com"
] | haochen273@gmail.com |
e5d1427da5952429304f092fff6d772d00a430d1 | 2865d34e84abea09836c9a84e1aa02ba262b8f6d | /Distances/superior.py | f02f8ccc65fe2fee530e93820de28977d1106921 | [] | no_license | magabydelgado/numpy-formulas | f52119ef1387f078e1527c80343ca0de2336bc9f | 093657d4a23dfe82685595254aae50e0c6e46afb | refs/heads/main | 2023-05-08T14:06:48.142258 | 2021-05-25T06:16:41 | 2021-05-25T06:16:41 | 379,125,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | import numpy as np
'''
In mathematics, Chebyshev distance (or Tchebychev distance), maximum metric,
or Lโ metric is a metric defined on a vector space where
the distance between two vectors is the greatest of their differences
along any coordinate dimension.[2] It is named after Pafnuty Chebyshev.
... | [
"mangelladen@gmail.com"
] | mangelladen@gmail.com |
21cf2eb653fc11c07a6ebf96569ea5090c294c25 | a42d240a05ddb7e77f9cd517451fde2c82d5156b | /Problem-089.py | f624636ca0bd14d29e71b74d507211f619c0500b | [] | no_license | spirosrap/Project-Euler | 3d7edc05c677a5edfa084308380839e2c018157e | 83c2a2467b15426216483bfa34aeeb7a21728a16 | refs/heads/master | 2016-09-06T08:07:18.383648 | 2013-11-08T13:19:15 | 2013-11-08T13:19:15 | 3,463,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,053 | py | import math
import re
#Define exceptions
class RomanError(Exception): pass
class OutOfRangeError(RomanError): pass
class NotIntegerError(RomanError): pass
class InvalidRomanNumeralError(RomanError): pass
#Define digit mapping
romanNumeralMap = (('M', 1000),
('CM', 900),
('D', 5... | [
"spirosrap@gmail.com"
] | spirosrap@gmail.com |
1f0050636b553377350ef958e53062abe0a0aec4 | 2db7597686f33a0d700f7082e15fa41f830a45f0 | /Python/String/266. ๅๆๆๅ.py | 2dba117a4cfd0caece5666e521229f85abe7fe4f | [] | no_license | Leahxuliu/Data-Structure-And-Algorithm | 04e0fc80cd3bb742348fd521a62bc2126879a70e | 56047a5058c6a20b356ab20e52eacb425ad45762 | refs/heads/master | 2021-07-12T23:54:17.785533 | 2021-05-17T02:04:41 | 2021-05-17T02:04:41 | 246,514,421 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | '''
ๅฅๆฐไธช็charๆๅคๅช่ฝๆไธไธช
'''
from collections import defaultdict
class Solution:
def canPermutePalindrome(self, s: str) -> bool:
if s == '':
return True
info = defaultdict(int)
for i in s:
info[i] += 1
count = 0
for v in info.values():
... | [
"leahxuliu@gmail.com"
] | leahxuliu@gmail.com |
e432f4e76d689a36074aaa8adfdda869d6809a85 | 491c298283c3af8ca5188e7191758512b758fdc7 | /examples/ex_pyside.py | 4f9f43350bb17fa137396aac3a0d85c186502fe3 | [
"BSD-3-Clause"
] | permissive | merydwin/idascrtipt | 0bda6f2253dd94698a82cb09a7a1855cbced6221 | 431e04847e55adbb1d263aa2aadc2d489d068f50 | refs/heads/master | 2021-01-22T04:48:40.353877 | 2015-03-02T15:54:20 | 2015-03-02T15:54:20 | 38,051,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | from idaapi import PluginForm
from PySide import QtGui, QtCore
class MyPluginFormClass(PluginForm):
def OnCreate(self, form):
"""
Called when the plugin form is created
"""
# Get parent widget
self.parent = self.FormToPySideWidget(form)
self.PopulateForm(... | [
"elias.bachaalany@fccdda4b-c33c-0410-84de-61e1e3e5f415"
] | elias.bachaalany@fccdda4b-c33c-0410-84de-61e1e3e5f415 |
6947929c742bc0792eea07204e55f54a00bbcc60 | 32df7046ccf6ef2dd9b3148c390149f7557101f6 | /Porthole_Detection/Data_to_Image.py | 92b33630fe62b40cc422c8cfec351cef1c485aa5 | [] | no_license | MLJejuCamp2017/Pothole_Detection_using_CNN | 06f849bf9b78b11acf0ef1ec7a75bd9db559e6f5 | 33a6b58837fc36a2d4e04a14d28376a3a456a790 | refs/heads/master | 2021-01-01T18:36:04.602634 | 2017-07-25T06:23:44 | 2017-07-25T06:23:44 | 98,374,940 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | # ํ์ผ ํ๋๋ง ๋ฐ๊ฟ์ค
'''
import numpy as np
from scipy.misc import toimage
x = np.loadtxt("/Users/User/PycharmProjects/network/ML_Camp/Porthole_Detection/all.csv", delimiter=',')
# toimage(x).show()
toimage(x).save('all(grayscale).jpg')
'''
'''
# ๋๋ ํ ๋ฆฌ ๋ด์ ํ์ผ๋ค์ ํ๋ฒ์ ์ผ๊ด ๋ณํ ์ ๊ฐ์ฉ๋ค ๋ ๋
ธ๊ฐ๋คํ๋๋ฐ ใ
ใ
์ง์์ ํ ๊ฑธ
import os
import numpy as np
f... | [
"chzhqk1994@gmail.com"
] | chzhqk1994@gmail.com |
3614b892b438862adb7730b5927fba103d610fdd | 2fdb9f2b2f3ffc13a04de7a13e3f177d88e85798 | /likes/templatetags/likes_tags.py | e4631e6e8eda65d969f91b1b3a7714083e2f1232 | [] | no_license | dyr201500800475/web_novels | 4d0eca0dbe7b1eba75bfc203361caa324d43eaad | df5daafd4661ede64554f19a074bd0581113f4b9 | refs/heads/master | 2020-05-09T15:59:55.266787 | 2019-04-16T01:58:34 | 2019-04-16T01:58:34 | 181,253,766 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | from django import template
from django.contrib.contenttypes.models import ContentType
from ..models import LikeCount, LikeRecord
register = template.Library()
# ่ทๅ็น่ตๆฐ
@register.simple_tag
def get_like_count(obj):
content_type = ContentType.objects.get_for_model(obj)
like_count, created = LikeCount.objects.get_or... | [
"870850834@qq.com"
] | 870850834@qq.com |
8a8eb30d68328005ec249519efc1016a86616c7f | 45bfeba3abab88eeb08b54946a8729d0152a22cc | /src/python/codechef/JAN19B/DPAIRS.py | 0e5f5b1b7ae76609189e196aac939bfee444999f | [
"MIT"
] | permissive | duke79/compro | c32ee2aca9b5adf2d62e18fa8822736821148b0b | a5577e043888df513a78a94a93ed5d08bc6ad2cd | refs/heads/master | 2022-06-13T22:09:52.451149 | 2022-06-12T05:15:28 | 2022-06-12T05:21:44 | 165,487,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | N, M = input().split(" ")
N = int(N)
M = int(M)
A = input().split(" ")
A = [int(elem) for elem in A]
B = input().split(" ")
B = [int(elem) for elem in B]
A_sorted = [i[0] for i in sorted(enumerate(A), key=lambda x: x[1])]
B_sorted = [i[0] for i in sorted(enumerate(B), key=lambda x: x[1])]
A_i = 0
B_i = 0
As_turn = Tr... | [
"pulkitsingh01@gmail.com"
] | pulkitsingh01@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.