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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
def14b97b24d65690fbdd0f7194895e0f080a4b2 | 1fc18cbfb1fcbb1d68265de0472b52efa2f8cf45 | /python/dht111/Dhtreading.py | 1115043338789f9f7ae0d8f3b9004820d649c758 | [] | no_license | sunnyprime/Raspberry-pi | ae42510b13bb7e8a10c7e293b14cc8a98352d330 | ae3183dc2729069a2a397a3df5bd72af395d30e9 | refs/heads/master | 2020-03-28T09:43:46.141696 | 2018-09-11T13:58:44 | 2018-09-11T13:58:44 | 148,055,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/python
import sys
import Adafruit_DHT
print 'running'
while True:
humidity, temperature = Adafruit_DHT.read_retry(11, 4)
print 'Temp: {0:0.1f} C Humidity: {1:0.1f} %'.format(temperature, humidity) | [
"kr.vivek.kr@gmail.com"
] | kr.vivek.kr@gmail.com |
2e37a656e0edae2639a95df75b96978d92948395 | 6c547e3312e2d1bd3dab123b831053ed7aef7b6d | /pages/MYCL/gain_loss/realized.py | cdacebeed29d6225098e87c9886c149079ecb7fb | [] | no_license | kenito2050/BICL | 8c4239f1e897e4dfc04aa35e827816242b41d5dd | 82891aba56cc49c9cf96ce82472847c4cb10828f | refs/heads/master | 2020-12-31T22:10:44.784193 | 2020-02-10T23:00:10 | 2020-02-10T23:00:10 | 239,039,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from selenium.webdriver.common.by import By
from config_globals import *
class realized():
def __init__(self, driver):
self.driver = driver
def Page_Elements(self):
# Table Header
self.table_header = self.driver.find_element(By.XPATH, "/html/body/div[1]/div[3]/div/div/ui-view/div/div... | [
"ken.villarruel@gmail.com"
] | ken.villarruel@gmail.com |
b7c52a665189f194d3ae5023e42cd32fef26b8e8 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/lqi.py | c5b5b09a028ae3b0d4730ed13c933d52455fff36 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
f3f359f19bc868c40df1cf380dd330e2eb5295ba | 9d267dff1b40b7387256689e6d22fcd9cec2afc2 | /actions/actions.py | b69d5c613c8021146ae7739d0089eb261980bc90 | [] | no_license | Ankur-lohiya/Rasa-Chatbot | bd033ef47541467e5165f6ee6a0652d9aee0f916 | 163ce0b7bfd3fb04ee7d069662c34b8b7047727e | refs/heads/master | 2023-07-03T21:16:40.464021 | 2021-08-02T02:47:47 | 2021-08-02T02:47:47 | 391,796,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | # This files contains your custom actions which can be used to run
# custom Python code.
#
# See this guide on how to implement these action:
# https://rasa.com/docs/rasa/custom-actions
# This is a simple example for a custom action which utters "Hello World!"
# from typing import Any, Text, Dict, List
# from rasa_s... | [
"ankurlohiya3@gmail.com"
] | ankurlohiya3@gmail.com |
f041d1c94aaae1bc128640b5fdd9ce8e7b855f3c | 3944ebdee61e76e54f96efa1b083e20ec3c5fb23 | /par.py | e739adadb65db589c3ba50ae7ff0dc5511bcb345 | [] | no_license | JNMcLane/DI-Code | ef855d6aa51d0ae7be653214064be68dc514e2e3 | 27e5c19454f5d21820db2197f4ed21d45c836aa1 | refs/heads/master | 2016-08-12T20:45:03.947716 | 2015-10-01T10:27:40 | 2015-10-01T10:27:40 | 43,490,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | """
Par.py
Written by Jacob N. McLane
Simple code for grabing projected seperation and position
angle from a system.
"""
from math import *
import numpy as np
xp=632 #Target Position in x
yp=510 #Target Position in y
xcen=511.5 #center of motion for body in x
ycen=511.5 #center of motion for body in y
scale... | [
"jnmclane@astro.as.utexas.edu"
] | jnmclane@astro.as.utexas.edu |
cdd0f9308b7996c6e3f6fff28b372374ae29bfae | 1d5cca6e0118f9d5d4ca30e9a4264456e050ba81 | /first_function/main.py | 5c29e19f81d4e7e989c1949813446b0e2e2b521f | [
"MIT"
] | permissive | nheijmans/cloud_workshop | 63b4380e4f0146d1fb8ce3d997eb22f8800a5e81 | ee4c0651b98b56d45b72ad1cd2cfd73105f06fa1 | refs/heads/master | 2020-08-28T21:50:12.296220 | 2019-10-27T09:26:23 | 2019-10-27T09:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | #!/usr/bin/python3
import boto3
import json
def lambda_handler(event, context):
print("I'm in here!")
return {
"statusCode": 200,
"body": json.dumps(
{"message": "success!"}
)
}
| [
"niels_heijmans@icloud.com"
] | niels_heijmans@icloud.com |
7090bf5034d330c9beff79ad19d27c7832fde1eb | f198a53f350fe743536a590a25d4dbb7ee7ce05e | /code/code_day1.py | 5f780ba8349446eef7fd675b15c033003c8533b3 | [] | no_license | pin0S/pokemon_python_region | b743058422515e1c8000f9e215fd7962b0b715f9 | bc6c33c29fa63ce9123d51fa1a23a654af9e31a3 | refs/heads/master | 2020-04-09T12:08:35.652056 | 2019-01-01T05:19:41 | 2019-01-01T05:19:41 | 160,336,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | class PythonRegionMember:
"""
Creates members of the Python region
"""
def __init__(self, name, age, gender):
self.name = name
self.age = int(age)
self.gender = gender
def speaks(self, words):
return f'{self.name} says: {words}'
if __name__ == '__main__':
prof... | [
"pete.g.lynch@gmail.com"
] | pete.g.lynch@gmail.com |
166b787fa7859370b2e788d5c6a5414671899d1a | 3f976e0336e8fd0c9d376dd65d566ecc248f05e1 | /python/for-the-minimum.py | 4b1536dedfe587cd013c17d8d0471df04fbc69f3 | [] | no_license | rdvnkdyf/codewars-writing | 4f22a923d45b4023dd4bbb3ab41decde4762f8da | 121e522097139a808aa6b56a130ac082003ae777 | refs/heads/main | 2023-05-09T03:41:18.967620 | 2021-06-06T16:29:30 | 2021-06-06T16:29:30 | 373,818,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | """
Task
Given a list of digits, return the smallest number that could be formed from these digits, using the digits only once (ignore duplicates).
Notes:
Only positive integers will be passed to the function (> 0 ), no negatives or zeros.
Input >> Output Examples
minValue ({1, 3, 1}) ==> return (13)
Explanation:
(1... | [
"ridvangs77@gmail.com"
] | ridvangs77@gmail.com |
9e1b481c155ab876f149924fe1cfe64027114a4a | cfef2592146bc214cde1237d96c0d8a45e097dd2 | /python/problems/problem102.py | e519a34ca512b3c0d026d58bc7b05dc496f467e4 | [] | no_license | malaffoon/euler | 620f6a31ada7b043146bcafe82fa0fa870ad2c1d | 3502426e5dc0b60fb9863f20715467f3e305a2f9 | refs/heads/master | 2021-06-26T05:12:03.921685 | 2021-03-04T22:47:40 | 2021-03-04T22:47:40 | 65,938,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | """Problem 102 - Project Euler
Triangle containment
Three distinct points are plotted at random on a Cartesian plane, for which -1000 ≤ x, y ≤ 1000,
such that a triangle is formed.
Consider the following two triangles:
A(-340,495), B(-153,-910), C(835,-947)
X(-175,41), Y(-421,-714), Z(574,-645)
It can be verified... | [
"laffoon@san.rr.com"
] | laffoon@san.rr.com |
4995b1f7950f6b31f14e5825967b62e47923713a | 128686fbcf0c959a33cb8aaf79d83c01e70675f4 | /backend/movies/migrations/0001_initial.py | da25815c584e9e3b00b16f61483c34c4ae6d532f | [] | no_license | M3nti0nL3Ss/Movies-list-fake-api | a9f23cb1c3b8dee9f901c5632fad7d9bf9152ea6 | 57e1ab02c52cf69a57818e48868257318794a056 | refs/heads/master | 2023-07-24T13:57:29.491458 | 2020-07-09T16:49:47 | 2020-07-09T16:49:47 | 275,874,653 | 0 | 0 | null | 2021-09-03T05:11:47 | 2020-06-29T16:51:27 | JavaScript | UTF-8 | Python | false | false | 737 | py | # Generated by Django 3.0.8 on 2020-07-08 19:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('genre', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Mov... | [
"ayoub-sifo@live.fr"
] | ayoub-sifo@live.fr |
b3a24a025db1bae137fcccfb70095b5b8c212ebc | b72db05010445f6ea1c5f0464af98806274d315a | /src/trydjango/pages/views.py | 38926465d11779ef5a680d8d1ac942f41dc1646b | [] | no_license | kokot300/mess_up_django | ec35d949e1c43792506d8d20383d8c8615ef48a9 | fe0982b5251bd7af9b510ba938aa92e26beb99d4 | refs/heads/master | 2022-11-20T19:10:11.062085 | 2020-07-21T09:09:09 | 2020-07-21T09:09:09 | 273,881,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from django.shortcuts import render
from django.http import HttpResponse
from products.models import Product
# Create your views here.
def home_view(request, *args, **kwargs):
print(request)
print(request.user)
print(args, kwargs)
play_dict = {
'me': 'Krzysiek',
'lst': [123, 321, 231],... | [
"kokot300@gmail.com"
] | kokot300@gmail.com |
87ea9cac9150fd3fd974e1e95c63258513f9e73c | 42c1da082e8a830fd7620687ab29c818cbb7c1ed | /GooglePlaystoreRating.py | 446065eb0725f663f6752038f8621bf009c030dc | [] | no_license | lohitraja/SamaplePython | a9f4e1e7fd60321c127ca635e0a42bf83411e8eb | 883e29d3464b2f6225c23a0d3c1b006c7d6c03b8 | refs/heads/master | 2022-07-09T16:17:47.013999 | 2020-05-16T02:49:51 | 2020-05-16T02:49:51 | 264,345,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,740 | py | import pandas as pd
import numpy as np
df = pd.read_csv("googleplaystore.csv")
df.head(5)
print(pd.isna(df['App']).value_counts())
print(pd.isna(df['Category']).value_counts())
print(pd.isna(df['Rating']).value_counts())
print(pd.isna(df['Reviews']).value_counts())
print(pd.isna(df['Size']).value_counts())
p... | [
"noreply@github.com"
] | noreply@github.com |
0c2ff7283abf6a1130ff24fc9db676b51157a96f | 0e274ad13c967b8c49a3b4d786ed06b99741b204 | /shackbureau/cashaccounting/migrations/0005_auto_20160204_1259.py | 27a53da9763a80de0f58779c1c7ba7331307f860 | [] | no_license | shackspace/shackbureau | edec901a858c4cfd22fdd1d45922505456e559be | bef3aa651652c694689696ee127c9423abff91a6 | refs/heads/master | 2020-04-12T07:31:26.921538 | 2018-10-18T21:57:44 | 2018-10-18T21:57:44 | 39,296,069 | 7 | 3 | null | 2017-10-07T21:08:12 | 2015-07-18T11:24:16 | Python | UTF-8 | Python | false | false | 7,534 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cashaccounting', '0004_auto_20160204_1253'),
]
operations = [
migrations.AddField(
model_name='cashtransaction',... | [
"ttb@shackspace.de"
] | ttb@shackspace.de |
88065cf2fd2349c82ab8c1843bf968f43a975af1 | 98be00ee32971cade82d10c067aff532c3394a62 | /geeksforgeeks/linked_list_merge_sort.py | 200e6d2c43b2057dfa6cccd4818f7680ebebc6f6 | [] | no_license | vigneshhari/Competitive_solutions | 5ab34933ea8d84eab67bdef9bb9e4562f6b90782 | 7a35e1386e5cff71cb5746b6797ccc0f03ceb3f4 | refs/heads/master | 2023-01-11T02:53:01.456863 | 2022-12-29T13:50:03 | 2022-12-29T13:50:03 | 115,146,700 | 4 | 2 | null | 2019-10-26T09:15:03 | 2017-12-22T20:03:51 | Python | UTF-8 | Python | false | false | 391 | py |
class ll:
next = None
def __init__(self,val):
self.val = val
def setnext(self,next):
self.next = next
def stringll(node):
if(node == None):return ""
return str(node.val) + " " + stringll(node.next)
head = ll(-1)
looper = head
for i in range(input()):
temp = ll(input())
... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
6adb28741b885ab2ab3b8863a3a069ffb16181bb | df38fbd2f8cf10affb1dbef07a8640e6077218fd | /portfolioflask.py | 70f15746d42e2ee66da3b59f44486a2b24797977 | [] | no_license | nooraishah/portfoliointern | 8626fa7db5e218600046a95a4f9e345ef04b9291 | a1482ce8bfe06cd9a98b082d4059aa9be9867f79 | refs/heads/main | 2023-02-23T21:08:05.045982 | 2021-01-17T02:47:04 | 2021-01-17T02:47:04 | 327,627,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from flask import Flask, render_template, url_for
app = Flask(__name__)
app.static_folder = 'static'
@app.route("/")
@app.route("/home")
def home():
return render_template('home.html')
if __name__ == '__main__':
app.run(debug=True) | [
"noreply@github.com"
] | noreply@github.com |
ac4b149e26f26b9324a174ca7a7fc4740d919b0a | bfa5115fe79463de4316d8877c01152301511fe5 | /palindrome.py | 7dce96b1ff61d2efe3867a96f3359f9b6a20e96a | [] | no_license | markser/InClassGit3 | 294ba9d3acc1e7cac80a6ab1427d257809ae706d | c83399c688e16bab38ad7f357386f187320583bd | refs/heads/main | 2023-04-12T15:31:23.179158 | 2021-05-14T01:03:46 | 2021-05-14T01:03:46 | 367,205,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | # to run the program
# python3 palindrome.py
# then input string that we want to test as palindrome
def palindrome(userInputString):
return (userInputString == userInputString[::-1])
def retrieve_input():
userInputString = (input('Input a string to test if palindrome: '))
if (isinstance(userInputString, ... | [
"serm@oregonstate.edu"
] | serm@oregonstate.edu |
9137b4b1bc0d434921790dbb3b1ea233760b6e87 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /4_set/6300. 最小公共值-集合交集.py | aa23a024dc580e11d35f90f6d3c465c7f728a010 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | from typing import List
# 给你两个整数数组 nums1 和 nums2 ,它们已经按非降序排序,
# 请你返回两个数组的 最小公共整数 。
# 如果两个数组 nums1 和 nums2 没有公共整数,请你返回 -1 。
class Solution:
def getCommon(self, nums1: List[int], nums2: List[int]) -> int:
"""数组已经排序"""
i, j = 0, 0
while i < len(nums1) and j < len(nums2):
... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
48d7a5623a28fd8850c9a75b902961b65414ea76 | c0e0538419f7b88857bd688234554f67f879473d | /webhooksocket/routing.py | 69bf68d9c1b17c62992716f88b14312633df4b57 | [
"MIT"
] | permissive | ToxicFrazzles/django-webhooksocket | 46fea34349056daa986a37a8e27b7937800c7b7e | 4ce5bb4e66052ec419c32dc7e281c16a69a7a2a3 | refs/heads/main | 2023-05-11T07:59:38.204912 | 2021-06-05T13:02:39 | 2021-06-05T13:02:39 | 373,279,874 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from django.urls import path, register_converter
from . import views
from . import consumers
app_name = "webhooksocket"
class IdentConverter:
regex = r'[a-zA-Z0-9]{64}'
def to_python(self, value):
return value
def to_url(self, value):
return value
register_converter(IdentConverter, 'i... | [
"frazzles740@gmail.com"
] | frazzles740@gmail.com |
e1808e68ce72be78e436ef5d6fe28d05045d445d | 61d498e081a8239eb2f80fffc42fab3819253523 | /aula10/forum/polls/migrations/0002_question_votes.py | cebc62710ae4b2d1a44dc2585c1e9a7ba3715798 | [] | no_license | Era-conectada-python/aulas-2019 | a818d1403f352d9c09b24ffe21e1f2bf42cf38ba | cd7eeb0d36184204e2e13312d0c118e16686cffc | refs/heads/master | 2022-05-28T02:13:47.331349 | 2019-10-09T01:01:12 | 2019-10-09T01:01:12 | 189,125,536 | 3 | 0 | null | 2022-04-22T22:14:40 | 2019-05-29T01:02:06 | Python | UTF-8 | Python | false | false | 371 | py | # Generated by Django 2.2.4 on 2019-08-14 00:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='question',
name='votes',
fiel... | [
"mariopekenossalro@gmail.com"
] | mariopekenossalro@gmail.com |
a5f600093d4f646f0d1bb5523cee6f1ea7398955 | 420866136286a288d4e02d7502c7469c4adb64ea | /option with database.py | 93cc912c34e336bb0dfd60137b90ae91ac4850f4 | [
"MIT"
] | permissive | Babar-Awan/CP19_13 | f9433963cb65edd6c9c3eac0b09c5394004667f1 | 5d852cc4bac724aba3acec6bcefc2e3a1d3b0a58 | refs/heads/master | 2020-05-15T11:11:56.179461 | 2019-05-21T18:28:44 | 2019-05-21T18:28:44 | 182,216,519 | 0 | 0 | MIT | 2019-04-27T10:56:18 | 2019-04-19T06:49:21 | Python | UTF-8 | Python | false | false | 640 | py | import tkinter as tk
root = tk.Tk()
v = tk.IntVar()
v.set(1) # initializing the choice, i.e. Python
languages = [
("Python",1),
("Perl",2),
("Java",3),
("C++",4),
("C",5)
]
def ShowChoice():
print(v.get())
tk.Label(root,
text="""Choose your favourite
programming language:""",
... | [
"Sp19-bsse-0016@maju.edu.pk"
] | Sp19-bsse-0016@maju.edu.pk |
076dac4616dd5d42f7549af431d3a17466cd6f65 | ee6cd39386c677b348b89f983e2050e584e19bb8 | /app.py | 9e3e21cbeb2add61611fccc4421f0ee124e4fa72 | [] | no_license | snar2019/mlops-GA | 9b5dfc2a460120272f51554762996f7191f58a48 | ca963dc1e86c10dbe704d9055c90b8d917ad6391 | refs/heads/master | 2023-04-11T14:11:09.937743 | 2021-04-13T00:52:49 | 2021-04-13T00:52:49 | 355,628,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | from prediction_service import prediction
from flask import Flask, render_template, request,jsonify
import os
from application_logging.logger import App_Logger
webapp_root = "webapp"
static_dir = os.path.join(webapp_root, "static")
template_dir = os.path.join(webapp_root, "templates")
logger = App_Logger()
... | [
"narain.narain21@gmail.com"
] | narain.narain21@gmail.com |
87ece04732cb2acc1a56a4842377caf258f57fdf | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_securely.py | 354e1a50d4dc2383607cb4a3d91f2d7302d29de2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py |
#calss header
class _SECURELY():
def __init__(self,):
self.name = "SECURELY"
self.definitions = [u'in a way that avoids someone or something being harmed by any risk, danger, or threat: ', u'positioned or fastened firmly and correctly and therefore not likely to move, fall, or break: ']
self.parents = []
s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
338e6155446f12936361868c3f5f32353cdd0881 | 1c85fbdfed49956241d940542fd677bcadea9a04 | /photo/urls.py | 03aaa3e25a596fd57947a46624f991d34630fa39 | [] | no_license | Shruti-2303/Album | f121e1d305e09dba914a5ec16697e8de3e63f3aa | 64f8fb77317910952879f6247279da3f2c04d469 | refs/heads/main | 2023-08-03T00:12:42.444210 | 2021-09-21T19:38:29 | 2021-09-21T19:38:29 | 408,951,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.gallery,name='gallery'),
path('photo/<str:pk>',views.viewPhoto,name='photo'),
path('add/',views.addPhoto,name='add')
] | [
"sharmas23032001@gmail.com"
] | sharmas23032001@gmail.com |
e53342acf5ac799daad13212a04607e109bfa889 | b714aba2601c9b7f3ddfb2602720423c534d48ef | /Problem Set - 3/ps3c.py | 811b31962b1df1ec7620d33a841b924bcde1c3b1 | [] | no_license | adamA113/MITx-6.00.1x-Introduction-to-Computer-Science-and-Programming-Using-Python | afbe7601f971b6b22a602a77efabed539b74dfd0 | 5e69c2e5bfc40b99c8c618069763dbefee1a1743 | refs/heads/master | 2020-04-01T21:33:32.623474 | 2017-11-13T15:58:25 | 2017-11-13T15:58:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 9 10:15:24 2017
course: MITx 6.00.1x: Introduction to Computer Science and Programming Using Python
source: https://courses.edx.org/courses/course-v1:MITx+6.00.1x+2T2017
"""
"""
Problem Set 3 - Problem 3 - Printing Out all Available Letters
Next,... | [
"jjw244@users.noreply.github.com"
] | jjw244@users.noreply.github.com |
10c05f415a20e162c8784ead32add78941c5f55b | 209dcb7a14a7aa33446c3093f482b78875ea74b8 | /UE2/if_name_main_first.py | 51ddbc57956aaa99a38c79ce929625b74194223d | [
"MIT"
] | permissive | FHSTPICMT/BSE_Python | 944750f142377e160a4facf37591662bdbd1fe32 | 082927789fe6b0551ab5ca6d7036ff16bb761658 | refs/heads/main | 2023-01-22T06:11:16.552167 | 2020-11-12T14:32:35 | 2020-11-12T14:32:35 | 306,693,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
def main():
print("First modules name: {}".format(__name__))
print("Run main")
if __name__ == '__main__':
main()
else:
print("Run Import")
| [
"noreply@github.com"
] | noreply@github.com |
2f8469c4adbac372b64cf871784fceef5ba0a94b | 4aa6bf61aef341d839d84804a5f41dc0b0b24fae | /fromWebScrapper_v3_old.py | d5919d465e564b5eabe4ea3fb8fa5b0f60cfdcae | [] | no_license | Scathelock/UBI | 8f1b6b91d780009ba07d6a3b36ac3fe82defc5a5 | 3eadbb4aefbec6d1888ce5d7455c31c038d26cc1 | refs/heads/master | 2020-03-26T20:53:43.961379 | 2018-09-08T22:15:35 | 2018-09-08T22:15:35 | 145,353,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.automap import automap_base
import requests
from bs4 import BeautifulSoup
import sys, io
import datetime
import time
import random
from connect_PF import *
from grab_page import *
def add_link_to_PFdb(artist, album, reviewer, review_date, lin... | [
"Scathelock@users.noreply.github.com"
] | Scathelock@users.noreply.github.com |
d33844f5999eecaaefe93172bd2931327828ec99 | 76b0305684f9a87575d5ae709edf0453c4251f75 | /tests/unittest.py | 7c81f9bf533cfeafe470e393afcd32da4eea7840 | [] | no_license | harrisonnc/GE-cloud-anomaly-detection | aa0adc244af5fcb54e189af2b717daf4bdb023eb | 37818673d66f0f02f4f588b3e2e5b07b5b8d1197 | refs/heads/master | 2021-01-21T21:15:40.484408 | 2016-04-05T20:36:44 | 2016-04-05T20:36:44 | 94,804,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | import data_logs
import unittest
#def main():
conf_file=data_logs.retrieve_conf_file(self)
print(conf_file)
#if __name__ == "__main__":
# main() | [
"jemurphy@vcu.edu"
] | jemurphy@vcu.edu |
9858c8e9156dc48e16455ee148507ff587b8f7a6 | 5d7d8f2f0dcbdbc990bc0783e0bc30b0737c5ece | /bboard/urls.py | a5fb4e5e1c122777141950691c38fb3b62f6647a | [] | no_license | vadimnemov/bboard | 51d3a92f4f61c723d671096c1796b16c57e7622a | 7145f7aefc392af2c4247d4ffcf2c7fad5c43ef4 | refs/heads/main | 2023-02-25T16:15:49.036267 | 2021-02-01T18:44:09 | 2021-02-01T18:44:09 | 335,036,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.contrib.staticfiles.views import serve
from django.views.decorators.cache import never_cache
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('main.urls', namespace=''))
]
if se... | [
"69323011+vadimnemov@users.noreply.github.com"
] | 69323011+vadimnemov@users.noreply.github.com |
3330941132fe14f300fcae6ac1c3a05cb2126aeb | eb357b4715e440e31895a5d93fb17422a51b46fe | /tvdordrecht/race/forms.py | f9ef572cdc07244d647ba140a5b52fcf7b436ac2 | [
"MIT"
] | permissive | allcaps/tvdordrecht.nl | 54af56f2fa0169deba4ef511a8d817c58ae6a391 | a2ff1b5ade88378f1a72a7ab36d51965b06509b9 | refs/heads/master | 2022-12-08T07:32:10.572800 | 2021-06-11T20:30:10 | 2021-06-11T20:30:10 | 38,977,988 | 0 | 0 | MIT | 2022-11-22T00:34:10 | 2015-07-12T21:04:46 | JavaScript | UTF-8 | Python | false | false | 2,848 | py | # -*- coding: utf-8 -*-
from django import forms
from django.contrib.auth.models import User
from crispy_forms.helper import FormHelper
from crispy_forms.layout import (
Layout,
Field,
Div,
)
from crispy_forms.bootstrap import (
StrictButton,
)
from .models import (
Event,
Distance,
Result... | [
"c.van.der.kamp@zestsoftware.nl"
] | c.van.der.kamp@zestsoftware.nl |
d514e5aff53a3dcd35b8c78abd5190993260d038 | f5ef5f844e9e92fc369e20189955e1ef2d356fd4 | /Excel.py | 8499fef42097c7c94aef6b78c6b0e472655c4ec7 | [] | no_license | scarforhere/Piggy | efa07410fc9956ef2593e302c36954c66085c080 | 90cb6647e3c58435119b9a6a7dd556aa7990276d | refs/heads/master | 2023-04-05T22:44:16.120523 | 2021-05-02T22:53:16 | 2021-05-02T22:53:16 | 361,451,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,126 | py | # Programmed by Scar
from Backup import backup
from Cal import PointData
from Cal import PointDataCylinder
import pandas as pd
import math
def calculate_z(file,
column_x, column_y,
suffix="z"):
"""
Import file's path , data of x,y \n
Give back value of z after the last colu... | [
"scarforhere@gmail.com"
] | scarforhere@gmail.com |
e91387930f5567e18777387742ee3e9d0dab5e2f | 080a6b7be74dc2d2fac61e0bb60a5402533294de | /week5/lines-to-list.py | 18865f91e5129c888d0af875ca2d0827de409e87 | [] | no_license | rosmoke/DCU-Projects | cfec4c59ba00beb68d174cf869952b7a88e5c1dc | 1478f476e1d81756d00a206b8f5bfcd0a1094649 | refs/heads/master | 2021-01-20T17:03:59.642966 | 2016-06-23T15:06:46 | 2016-06-23T15:06:46 | 61,814,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | lines = []
i = 1
while i == 1:
input = raw_input()
if input != "end":
lines.append(input)
else:
i = 0
print lines | [
"danielasofiei@yahoo.ie"
] | danielasofiei@yahoo.ie |
b7f532970dea4a974a86f2127fc16ce635441971 | 0ec1825afa3626695735e91a1f61149983c3d490 | /tsp.py | fd49f5404e6a10c9931f096ae15d8f4b8efce4c7 | [] | no_license | indpab/BeerTrip | c43ee829836862599debef16754f9cf191f9310b | 276e329eb5539aad71a263d030a4388193c48062 | refs/heads/main | 2022-12-22T21:04:34.421096 | 2020-10-01T22:14:58 | 2020-10-01T22:14:58 | 300,437,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,237 | py | import numpy as np
from distance_matrix import DistanceMatrix
import random
import pandas as pd
import os
matrix = DistanceMatrix(os.path.dirname(os.path.abspath(__file__)))
limit = 2000
def __initialize__(size):
random_list = random.sample(range(1, 1305), size)
route = np.array([0] + random_list + [0])
... | [
"pabijonaviciute.indre@gmail.com"
] | pabijonaviciute.indre@gmail.com |
8cd065138546caa19d8dfb80cad98bd36cc575af | 1f4505ed66f4fd68c6d1edf18ecff58362742fad | /algorithm/TwoPointer/18_4Sum.py | 97632d69454427fc6ac5b7ebff3128538fed3770 | [
"MIT"
] | permissive | nishitpatel01/Data-Science-Toolbox | 0d9b63a365698cc4a423abd5881cde8f6bf672be | 80dc1310d103c9481feff8792426c550ddcc0a36 | refs/heads/master | 2020-05-19T08:26:40.319321 | 2019-05-04T05:58:48 | 2019-05-04T05:58:48 | 184,921,541 | 1 | 1 | MIT | 2019-05-04T16:53:21 | 2019-05-04T16:53:20 | null | UTF-8 | Python | false | false | 2,264 | py | class Solution:
# combination of two fixed number, reducing the rest of the problem to 2-sum
def fourSumPart1(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[List[int]]
"""
nums.sort()
print(nums)
N = 4
ans = [... | [
"shawlu@github.com"
] | shawlu@github.com |
d8b39a1c516d2f5c17f94296c319054c25bd24e2 | 871690900c8da2456ca2818565b5e8c34818658e | /boj/silver/14501.py | 3000b1c08b7c01ae991fcf0d109895fc4640310b | [] | no_license | kobeomseok95/codingTest | 40d692132e6aeeee32ee53ea5d4b7af8f2b2a5b2 | d628d72d9d0c1aef2b3fa63bfa9a1b50d47aaf29 | refs/heads/master | 2023-04-16T09:48:14.916659 | 2021-05-01T11:35:42 | 2021-05-01T11:35:42 | 311,012,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from sys import stdin
READ = lambda : stdin.readline().strip()
n = int(READ())
t, p = [], []
dp = [0] * (n + 1)
for _ in range(n):
ti, pi = map(int, READ().split())
t.append(ti)
p.append(pi)
max_val = 0
for i in range(n-1, -1, -1):
time = t[i] + i
if time <= n:
dp[i] = max(p[i] + dp[time],... | [
"37062337+kobeomseok95@users.noreply.github.com"
] | 37062337+kobeomseok95@users.noreply.github.com |
afdb65a20fdb994f7d7dbccf15d2118167cc8ad5 | 35eab30f5742a3327fed2546e94b56165496788c | /ES.py | 687833cbe1999c3ce195441016f620630bcd475b | [] | no_license | Yukkiasuna-sao/sklearnML | 08bf176deccb1c5f20d03bf78607c56474edfbe7 | c2d80a890d552bddbe5a698ae7d1654e65591097 | refs/heads/master | 2021-08-14T14:48:31.839231 | 2017-11-16T02:23:00 | 2017-11-16T02:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | # coding=utf-8
#数据导入和预处理
import pandas as pd
titanic = pd.read_csv('http://biostat.mc.vanderbilt.edu/wiki/pub/Main/DataSets/titanic.txt')
#观察数据
#print titanic.head(), titanic.info()
X = titanic[['pclass', 'age', 'sex']]
y = titanic['survived']
#探查x中的元素的情况以制定数据预处理的方法
#print X.info()
X['age'].fillna(value=X['age'].mean(... | [
"noreply@github.com"
] | noreply@github.com |
94ca7f6851d3d45719e191e3a5718b9208d04923 | f9642defb659ddea7838b81000528fb211e257d9 | /src/CandidateFinder.py | ccd0cf7089368cf44341f2a2e61ce17ded28b307 | [] | no_license | Rantzur1992/gloat-backend | c8df266f64f552116b4dc912ece29feb10d3b5ef | 4b583011ec0fc3cdca4d90de89c8fcc553482551 | refs/heads/master | 2023-03-04T02:00:20.789209 | 2021-02-19T18:58:57 | 2021-02-19T18:58:57 | 340,454,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | import json
from pkg_resources import resource_stream as rs
from src.Job import Job
from src.Candidate import Candidate
def run_matcher(job: Job) -> [Candidate]:
"""
search matching Candidate for given Job
:param job: Job object for search criteria
"""
candidates_list = __extract_json()['candida... | [
"rantzrur@gmail.com"
] | rantzrur@gmail.com |
b41b6d17177d2576edcafb7c2692ea634c2d003b | c97fc7658c39feb51c0ed42c04783797c8675b8a | /2018/pcy1/day28上--算法/算法6_重复范围.py | e72fd01cd5d72606f8d44868a30549fcced23ef7 | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 1,648 | py | #_*_coding:utf-8_*_
'''
经典语句:程序就是算法加数据结构。
算法(Algorithm):一个计算机的计算过程,用来解决问题的方法
'''
'''
给定一个升序列表和一个整数,返回该整数在列表中的下标范围。
例如:列表[1,2,3,3,3,4,4,5],若查找3,则返回(2,4);若查找1,则返回(0,0)。
思路:
因为是有序,所以可以用二分查找找到3,
找到3后,定义左右两个指针,左指针左移,看是不是3,是就继续左移,直到不是就退出。
右指针同理,最后返回左右两指针,就得到了范围。
注意,指针不能越界
'''
def bin_serach_sum(olist,v):
#初始化指针
low=... | [
"sgq523@163.com"
] | sgq523@163.com |
1b86c9cfdddd0628d6c56e3cdd522b0b23889b15 | 62c10b93d7c80df17b6a38f53300d697dea04b00 | /cryptoparty/mixins.py | 340e284535616cc7a9f6b33b5f4eea158cae7b93 | [] | no_license | cryptopartydk/cryptoparty.dk | bf2512330b2776c70c71b677df2a6ee36cba48d8 | 49d5fa04ed253c771d5c72f395a9819fec4d8fe6 | refs/heads/master | 2021-01-17T07:05:31.314722 | 2016-05-15T10:48:18 | 2016-05-15T10:48:18 | 28,929,476 | 1 | 1 | null | 2016-04-22T09:26:20 | 2015-01-07T19:14:05 | JavaScript | UTF-8 | Python | false | false | 284 | py | from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
class LoginRequiredMixin:
@method_decorator(login_required)
def dispatch(self, request, *args, **kwargs):
return super().dispatch(request, *args, **kwargs) | [
"valberg@orn.li"
] | valberg@orn.li |
ad053600f8d9de656c77bf437dad3b8952136ab6 | 10b1c787ad295d03f9872a71e6c3ba699e3cedcf | /homework_2/pt2.py | a6562f5811fa1168cb1bb4116d67db17298cb68b | [] | no_license | igc5972/comp_meth | 4aa82a0e2e9fe33e713ae1ae876d1a9180f4ef7f | f885868e5035f9633412426bce280c82fa51eabe | refs/heads/master | 2023-01-23T12:57:50.453732 | 2020-12-03T14:43:45 | 2020-12-03T14:43:45 | 290,013,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,307 | py | ### PURPOSE: ASTP 720 (Computational Methods) HW #2 Pt. 2
### Task 2
### [Isabella Cox, Sept. 2020]
# Import Statements
import numpy
import numpy as np #for natural log
from matplotlib import pyplot as plt #for plotting
from calculus_library import derivative, trapezoid
# Plotting Parameters for pretty plots
params ... | [
"41637773+igc5972@users.noreply.github.com"
] | 41637773+igc5972@users.noreply.github.com |
f14980ac0bf82ecaf233ca9e8cad6c3dbb13e8b6 | f8b9e5de8823ff810ec445b6fa6d0e34f7b6319f | /Django/PracticeExam2_project/apps/Dashboard_app/models.py | 27d48bb144c743729cd67c2f88ef043234207b43 | [] | no_license | amalfushi/Python | 6c042443a8aeae15fc96a41a692abdbea05db863 | 067c2cef722457e884833f77baf9f44f45a4a165 | refs/heads/master | 2021-01-24T04:08:21.278071 | 2018-02-26T06:25:59 | 2018-02-26T06:25:59 | 122,923,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from ..LoginReg3_app.models import User
# Create your models here.
class CommentManager(models.Manager):
def createComment(self, postData):
tempComment = self.create(
comment_text = postData['newComment... | [
"dustin.p.schroeder@gmail.com"
] | dustin.p.schroeder@gmail.com |
9a2147565b1ba65de24b5cc99f64ed5f4e1fa0ee | e6871ff61d28e5e2acf201b459da29c20a8d3dca | /setup.py | 79685d9e4a85ba9dad9f06f7069a611467159ac2 | [
"Apache-2.0"
] | permissive | csams/squerly | 9d2f38b23cae4034308806f1ebdcc99a0208d868 | 62e416dfc8b418d1cc361b59f401accc8c111b52 | refs/heads/master | 2022-11-29T09:32:48.019336 | 2020-08-12T22:17:06 | 2020-08-12T22:17:06 | 261,189,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
runtime = set([
"pyyaml",
])
develop = set([
"coverage",
"flake8",
"pytest",
"pytest-cov",
"setuptools",
"twine",
"wheel",
])
docs = set([
"Sphinx",
"sphinx_rtd_theme",
])... | [
"csams@redhat.com"
] | csams@redhat.com |
2a547c4ff9dedc29a1110bc0dcfbffbb45e21485 | d3db86788b4594144179623b22fe7c4dd053e00b | /zhihu_zhuanlan.py | 3bda47f280cc433426adaa1624470af3af220dd4 | [] | no_license | TonyCCCC/First_test | 1fbe222ebe1d4cfe5cfc23879021f7424545c460 | 0a1c464bc248dc6e74020e3ba9bb3d24eb142298 | refs/heads/master | 2020-03-27T17:38:10.646041 | 2018-09-18T03:35:29 | 2018-09-18T03:35:29 | 146,863,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | import requests
from bs4 import BeautifulSoup
from lxml import etree
class getIndex:
def get(self):
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0'
}
url = 'http://www.zhihu.com/api/v4/columns/crossin/articles?limit=10&... | [
"42052811+TonyCCCC@users.noreply.github.com"
] | 42052811+TonyCCCC@users.noreply.github.com |
846725942a24ef2efdfd2ca28e11fb1254735801 | fbe5a6538bbb029f025521a9b6f434b6cc8b69c7 | /frontend.py | ee2ee6b7b11edf52e6d7a59c65e9391bacdade46 | [] | no_license | gnudrew/BookshopDatabaseApp-sqlite3-tkinter | 69cca9026f22a399607f534c7fd1383299ad5b1e | 1b0698890a96e1a3759b3e3fbbc98ff409d94b05 | refs/heads/main | 2023-05-26T05:50:04.366388 | 2021-06-10T02:36:14 | 2021-06-10T02:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | """
A program for storing book information:
Title, Author
Year, ISBN
User can:
View all records
Search for an entry
Add entry
Update entry
Delete entry
Quit
"""
from tkinter import *
from tkinter import ttk
import backend
def get_selected_row(event):
# if list1.size() != 0:
try:
... | [
"noreply@github.com"
] | noreply@github.com |
f8337cceff2742fc8e0488c9ed9833cc0cb05521 | a36eb4685fd050c8e1ecb4a333470724bd76df60 | /Leetcode/Jul20/050720/AntPlank/test.py | c4254221c68a019d0bd254ce37bb1ae5ea5e8bcb | [] | no_license | phibzy/Contests | c9cff976909234cfafc51db9d9dde01c26123168 | 24aac4c81f34916945be03ed0b7c916dae4dbbb4 | refs/heads/master | 2023-01-20T06:23:06.837937 | 2020-11-30T06:54:58 | 2020-11-30T06:54:58 | 265,750,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!/usr/bin/python3
"""
Test Cases:
"""
import unittest
from antPlank import Solution
class testPlank(unittest.TestCase):
a = Solution()
def testAllRight(self):
self.assertEqual(self.a.getLastMoment(7, [], [0,1,2,3,4,5,6,7]), 7)
def testAllLeft(self):
self.assertEqual(self.a.getLa... | [
"phibzy@gmail.com"
] | phibzy@gmail.com |
2f63132445b3df93f4628ce1cbae85de6f4b999c | b43842e7d3417e46309978bf83dea2e514a2b07e | /brokers/apps.py | 810a575fca082071c5a6255f3fd6b949c05b4d92 | [] | no_license | parisk/insurance | 3f6c285bd62602a209c533f32950fd04ee346f62 | d9d2a2c81a0b2bacaeedf1d7670efdf8a0d0b5f9 | refs/heads/master | 2021-01-17T17:48:12.771661 | 2016-10-01T12:38:41 | 2016-10-01T12:38:41 | 69,729,632 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class BrokersConfig(AppConfig):
name = 'brokers'
| [
"paris@sourcelair.com"
] | paris@sourcelair.com |
dd6d61330f144fc0906e8ea1be56d19b8a4c54e4 | e1ad4f2d9b29d5131dca6043b64fa5e656cdf7da | /src/simulations/setup.py | 6dd892c027919e305d92d50b0f5d02d2c7c7c7c0 | [] | no_license | aeberspaecher/Numpy-Tip-Complex-Modeling | 647c00c6eba31c3d3c23663520b02130c3347780 | 1e263b423358c5a3b2aa1d0a55d211e698ae3edf | refs/heads/master | 2016-09-06T06:57:08.663607 | 2012-04-04T09:28:22 | 2012-04-04T09:28:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | '''
Created on Mar 19, 2012
@author: federicov
'''
## usage: python setup.py build_ext --inplace
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
setup(
cmdclass={'build_ext': build_ext},
ext_modules=[Extension("cython_arc_distance"... | [
"alex.eberspaecher@gmail.com"
] | alex.eberspaecher@gmail.com |
fbb4ce7292b75c77504d3408177443a56cbf6a6f | 7c4878b4881d79dd4daa3291e9c498e0706a7603 | /lesson15/index/task1.py | 7ec8ad71cd52424fb426eb3959d9f4db69b6d38c | [
"MIT"
] | permissive | zainllw0w/skillbox | 4cbdbb44762439c1aa1793a07683d7620500ddd7 | 896287b6f7f5612cf589094131fd1a12b0b192ba | refs/heads/main | 2023-04-27T16:07:16.613359 | 2021-05-20T14:12:11 | 2021-05-20T14:12:11 | 329,755,030 | 0 | 0 | null | 2021-05-20T14:06:42 | 2021-01-14T23:01:15 | Python | UTF-8 | Python | false | false | 471 | py | nums_list = []
N = int(input('Кол-во чисел в списке: '))
for _ in range(N):
num = int(input('Очередное число: '))
nums_list.append(num)
maximum = nums_list[1]
minimum = nums_list[1]
for i in nums_list:
if maximum < i:
maximum = i
if minimum > i:
minimum = i
print('Максимальное ... | [
"77465388+zainllw0w@users.noreply.github.com"
] | 77465388+zainllw0w@users.noreply.github.com |
0f98315c678f4277a75f80aaeafbe5e930da2a88 | 4d65ecebf65391df2f43ca55d70d8c2d9684ccfd | /lightning_modules/GNN/Models/interaction_multistep_gnn.py | 3123f5036360eaf2629a464f635c7b172218a0ce | [] | no_license | murnanedaniel/end-to-end | bd23ac75cae7796cde58658e9e0451835d46e11b | c455d5208b616ae1ac0312f60f827a6c92d233d1 | refs/heads/master | 2023-06-20T10:15:03.602547 | 2021-07-21T23:05:20 | 2021-07-21T23:05:20 | 285,630,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,526 | py | import sys
import pytorch_lightning as pl
from pytorch_lightning import LightningModule
from pytorch_lightning.callbacks import Callback
import torch.nn as nn
from torch.nn import Linear
import torch.nn.functional as F
import torch
from torch_scatter import scatter_add
from torch_geometric.nn.conv import Mes... | [
"murnanedaniel@hotmail.com"
] | murnanedaniel@hotmail.com |
a21d261d4e49f2e73907bc59971d1248acea7193 | 77608e8aadb0693b990227c0ad49d27b66c7e245 | /006_joining_dataframes/old_syllabus/006_merging_dataframes/002_concatenating_data/012_resampling_and_concatenating_dataframes_with_inner_join/script.py | 39069299cc2cd71f0a619766d1078b2997cf9024 | [] | no_license | clementgohchangming/datacamp_playground | d563fefe956d75dffc8e548892d3e4e17d9d507f | d171628619ae64771b318eee195a3965e1a7ab0e | refs/heads/master | 2023-06-23T22:04:09.647677 | 2021-07-31T14:59:04 | 2021-07-31T14:59:04 | 357,218,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Resample and tidy china: china_annual
china_annual = china.resample('A').last().pct_change(10).dropna()
# Resample and tidy us: us_annual
us_annual = us.resample('A').last().pct_change(10).dropna()
# Concatenate china_annual and us_annual: gdp
gdp = pd.concat([china_annual, us_annual], join='inner', axis=1)
# Resa... | [
"clement@leadiq.com"
] | clement@leadiq.com |
c79b0645329cf6d9eb5b20d1430672e0d0dc2f1d | e51742f3b8026d6ae44761445689ac47f1f2e495 | /plot_two_file_groups.py | 57eed9c40f8b30805a5ecb90effe559dc0679f8d | [] | no_license | igridchyn/neuro-analysis | a2979692ea6a2c99dc0991bc371125f0ec6edb5d | c0b1bb6abc9b34328aa515ce4a9098f3cbc9f05a | refs/heads/main | 2023-06-26T09:48:46.250806 | 2021-07-29T09:34:53 | 2021-07-29T09:34:53 | 390,671,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | #!/usr/bin/env python
# plot data from two groups of files (obtained by find through given
from matplotlib import pyplot as plt
from sys import argv
import subprocess
import numpy as np
from math import sqrt
import os
from scipy.stats import ttest_ind
if len(argv) < 2:
print '(1)<wildcard 1> (2)<wildcard 2>'
wc1 ... | [
"igor.gridchin@gmail.com"
] | igor.gridchin@gmail.com |
2cb1c735b9eef7af8cc6c86d68ed47beaba9f612 | de22baf37c1211d7d08b809a08be3e7a562970e3 | /algorithms/F1to50/ValidSudoku.py | 5963e00017c00855d73551611bc93313ec42af34 | [] | no_license | freefly0706/leetcode_python | a940b40e469a5b38784abf7d40c5343c82ef6586 | 2788fcbcf692e03236cf45e0c6210f8f4c416596 | refs/heads/master | 2021-01-16T17:52:59.064002 | 2018-03-02T02:39:55 | 2018-03-02T02:39:55 | 100,020,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | # -*- coding:utf-8 -*-
class Solution(object):
def isValidSudoku(self, board):
"""
:type board: List[List[str]]
:rtype: bool
"""
n = len(board)
round = 1
grid = [[False for i in range(n)] for i in range(3)]
for i in range(n):
row = [False] ... | [
"1741093834@qq.com"
] | 1741093834@qq.com |
4fa85d0dc5849a81b8efb186fdbcd9856726b7cc | a4c4409748d2b1f4985890c50c4fd79b5905c7fd | /src/somang/S_TrafficLight.py | 3f02994050bf5319100dc8a9c86a4a71c5e14e86 | [] | no_license | EndlessLoops/Turtlebot3-1 | 11718e9a88c065f422ec4c8633a013085dfd5001 | f3eb67e2d83374223994df622a86a6fd2f24e7db | refs/heads/main | 2023-01-04T00:11:45.170975 | 2020-10-30T09:31:54 | 2020-10-30T09:31:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- # 한글 주석쓰려면 이거 해야함
import rospy
import cv2
import numpy as np
from cv_bridge import CvBridge
from sensor_msgs.msg import CompressedImage
class Light:
def __init__(self,frame):
self.cam_img = frame
self.green_lower=np.array([50,80,80],np.uint8)
self.green_upper=np... | [
"akfls_thakd@naver.com"
] | akfls_thakd@naver.com |
29e0b24e50ed7dcdc03ec061e44e67025bd5c68a | fb97818d65e20b625508384aab47dcb7ab2c02a2 | /posefinder/my_position.py | 9c7e8d13f8f7558b4318e30711e483d8efe56239 | [
"Apache-2.0"
] | permissive | zehranrgi/hand_track-pose_estimation | 28619cbc2d81a09fdf2c50fb6933983df273a172 | f8c52fea6da7222342a0063f9f2d5a209bad698a | refs/heads/main | 2023-06-27T10:47:15.366393 | 2021-07-31T21:40:54 | 2021-07-31T21:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | import cv2
import mediapipe as mp
import time
# cap = cv2.VideoCapture("/home/zehranrgi/Documents/Projects/hand_tracking/position/zoom_0.mp4")
cap = cv2.VideoCapture("/home/zehranrgi/Videos/zoom_0.mp4")
mpPosition = mp.solutions.pose
pose = mpPosition.Pose()
mpDraw = mp.solutions.drawing_utils
#FOR FRAME RATE
... | [
"noreply@github.com"
] | noreply@github.com |
4717038c84c1c01cbc9e34d3d74d2868e09bf421 | 70d171dd22d9ae613327d0dfba2315d97ffb6939 | /app/core/migrations/0003_ingredient.py | e603b97d07b0aebf2b2257554b4e08d89704a4cc | [
"MIT"
] | permissive | syamcode/recipe-app-api | f4e4db5c3a3bcebb406cb325bfb58a66653f0b05 | 57e313585df70a35de234f6181a5875434b2ffdc | refs/heads/master | 2020-07-07T20:12:34.524748 | 2019-09-13T23:06:16 | 2019-09-13T23:06:16 | 203,464,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # Generated by Django 2.2.4 on 2019-09-11 04:13
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0002_tag'),
]
operations = [
migrations.CreateModel(
n... | [
"syamcode@gmail.com"
] | syamcode@gmail.com |
459f40f5198fa6e892d8a8fa7a96f60e4f6eff43 | a707312fc63fdf0b1b719d8d593695de082cad7f | /betterRest_jira_example/__init__.py | 875da41c9e3be43e1c5860b292e19e04e70a3fc2 | [] | no_license | fdev31/bugrest | e75f7c1f387ead4636f56994bfbdbb5afca24368 | 2713712b8ae2b2d9b3b5a8b43c8c5e302da6271a | refs/heads/master | 2023-02-08T19:48:55.702820 | 2023-01-27T19:02:51 | 2023-01-27T19:02:51 | 83,884,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | __all__ = ["commands"]
class CFG:
@classmethod
def asDict(kls):
return {}
jira_plugin = {}
def init(env, opts):
# must be loaded after the jira plugin !!
jira_plugin["mod"] = env["plugins"]["jira"]
jira_plugin["cfg"] = env["plugins"]["jira"].CFG
def get_jira_object():
return jira... | [
"fdev31@gmail.com"
] | fdev31@gmail.com |
93ac5c9fca596f3b01d69b676da1ea2bc27f262c | 220529721e151c6cc088ebecf4d3c19fd4716df3 | /HackerRank/Interview Preparation Kit/Recursion And Backtracking/FibonacciNumbers.py | 685ca7a8259d1bde5b9f8cd83489c2e1b93859a6 | [
"MIT"
] | permissive | jahid-coder/competitive-programming | baa2311796e3ffad3ded4789e43f4f37b95673ef | e7878de2445019c916404238180959dc9308ed4a | refs/heads/master | 2023-08-26T10:13:57.816451 | 2021-10-18T04:26:32 | 2021-10-18T04:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | def fibonacci(n):
if(n is 0 or n is 1) :
return n
else :
return fibonacci(n-1)+fibonacci(n-2)
n = int(input())
print(fibonacci(n))
| [
"thedevelopersanjeev@gmail.com"
] | thedevelopersanjeev@gmail.com |
ae5444777050fe5c3dc19a0c48d1e8a96a90b956 | c37cb658a5c5fb3dc1aafa959c86866dc1ed9e39 | /10-30/进度条.py | a4b0b400bf0ee768f6c82a8548eb608d9f5b0d70 | [] | no_license | Dragonet-D/python3-study | 6fe7a7f049dd8067593c865e58d125e12b1de55a | b057d75a2421798d27e2d15e0eee35d9eb8dbf27 | refs/heads/master | 2021-10-10T21:18:30.319066 | 2021-10-01T07:52:27 | 2021-10-01T07:52:27 | 98,364,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | import sys,time
for i in range(20):
sys.stdout.write('#')
sys.stdout.flush()
time.sleep(0.1) | [
"Dragonet-D@163.com"
] | Dragonet-D@163.com |
88181d49242a84e85aa17f9e8c5e203a41cbf39f | 2ce0c37ac7d9beeac23db688f97a1f502b92d13a | /products/migrations/0001_initial.py | 8c3c7cb80e517b9df5e5a887ea84aba26a843734 | [] | no_license | AmrElsayedEG/inventory-system | 0cdb0634b33117b13bfcae8642f979448d831369 | d4bc483612c3b721918d75f24ab0d7fa29b78ce3 | refs/heads/main | 2023-08-20T22:32:25.113740 | 2021-10-04T08:55:44 | 2021-10-04T08:55:44 | 413,344,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | # Generated by Django 3.2 on 2021-09-02 12:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('merchants', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='C... | [
"elsayed.amr50@gmail.com"
] | elsayed.amr50@gmail.com |
9a1eca59e17a9a3b56544a6497970a5b4013e006 | 65bcb58c359242e40d9b1c4a95e0e4cc2f85247e | /fibonacci.py | f7638430acf9e863ab85f58b4ef95e405edc2c17 | [] | no_license | chandankuiry/datastructure | af0913708ea29b5684ac76f9e50ed34707c412ae | 585526a8a4fe0bc7763fc46a35f077b9af0730ee | refs/heads/master | 2021-01-17T06:38:36.643914 | 2016-07-07T19:13:20 | 2016-07-07T19:13:20 | 54,668,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py |
x = int(raw_input("Please enter an integer: "))
c,b=0,1
while c<x:
print c
c,b=b,c+b
| [
"kuirychandan@gmail.com"
] | kuirychandan@gmail.com |
1ce14504f16c3b356c9fcaa5a18dd1984fc960e9 | 2c5b10c8d4d3bb0cc355098f2159441edce4310c | /hw3/reducer.py | 110ade6ed5a4f3d1d8614b6e3bed12e2a84a8b09 | [
"MIT"
] | permissive | mrgsv/made_bigdata | e2624a9f404e2a72d5a01ca17d7e9bdf7a67d91d | 5d219be86129b4ba64878d5abfc993d554d765b2 | refs/heads/main | 2023-06-06T05:08:48.489699 | 2021-06-26T13:14:39 | 2021-06-26T13:14:39 | 349,197,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | #! /usr/bin/python3
import sys
current_year_tag = None
year_tag_count = 0
for line in sys.stdin:
year_tag, counts = line.rsplit("\t", 1)
counts = int(counts)
if year_tag == current_year_tag:
year_tag_count += counts
else:
if current_year_tag:
print(current_year_tag, year_t... | [
"margasovarsenij@gmail.com"
] | margasovarsenij@gmail.com |
1d10ff7135088afa90175be8163062d01867eefd | 80a9c86dea3359a9d24529499bba5f7a04f52416 | /class/classmy2.py | 30b589bdd5ad3a3623bc8bce7cd526b178e8f018 | [] | no_license | StarsSkys/python_class | 4bdae29ef9b355abe8d256f3dcd3342d199a1315 | 065c3954951cb9d4bb9014b094bc74ee7da14c52 | refs/heads/master | 2020-08-18T13:22:08.011076 | 2019-10-17T13:04:01 | 2019-10-17T13:04:01 | 215,793,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | #类的基本操作例子
class User():
"""一个表示用户的简单类。"""
def __init__(self, first_name, last_name, username, email, location):
"""初始化用户。"""
self.first_name = first_name.title() #实例属性,在类中self.属性名
self.last_name = last_name.title()
self.username = username
self.email = email
self... | [
"864822381@qq.com"
] | 864822381@qq.com |
f927c4a2620a629025c33537233ce96b06dcb58f | b8f240cb47cfebb47f0af043eaf63b80a805434a | /implement_table/shared/insurance/models.py | 4ca6c6de375f05531f07c1fc5f12068b04ccf156 | [] | no_license | merylb/implement_table | 97c55fdb45e0d2104a066c4bdf6b39692f0ed902 | aadc11c867d3f8d89d2fa32ccc8b8f1d2dac51fd | refs/heads/master | 2021-09-05T06:13:29.983519 | 2018-01-24T17:29:46 | 2018-01-24T17:29:46 | 113,853,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from mongoengine.fields import FloatField, EmbeddedDocumentListField, ReferenceField, StringField, BooleanField, \
EmailField, ListField
from mongoengine.document import EmbeddedDocument
from implement_table.core.classes import BDocument
from implement_table.shared.convention.models import Convention
class Organ... | [
"m.labied@vivaceconsulting.ma"
] | m.labied@vivaceconsulting.ma |
08dde62354b5ebb4becafcb7178e2993c7d045d1 | f087cb23faddac6c0deb59f543e963612ea271ba | /srm_test.py | 76ca1b282c8a9e4a712e78cd17bc30c9eb24cd50 | [
"BSD-2-Clause"
] | permissive | ka-petrov/LibSRM | 8f311b8805d72a07ff96ff0ffd6cdfa9f5072537 | 7db2df68147ea07c93be0973fb04da7e4bbdaa11 | refs/heads/master | 2023-01-08T07:16:29.025936 | 2020-11-05T17:07:17 | 2020-11-05T17:07:17 | 97,029,265 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import matplotlib.pyplot as plt
from skimage import io, img_as_ubyte
from skimage.exposure import equalize_hist
from pysrm import srm
if __name__ == '__main__':
img = img_as_ubyte(equalize_hist(io.imread('test.tif')))
avg_out, lbl_out = srm.segment(img, q=10)
f, ax = plt.subplots(2, 2)
ax = ax.ravel()... | [
"petroff.cat@gmail.com"
] | petroff.cat@gmail.com |
17db822015120732281d4104084abc3c1655202b | e1f5cf7055e54f24f4bea5b1232f337fcbcae63c | /operators/solution/operators_even_odd.py | f3f801e876e0c2dfea17daa14392451f26302dde | [
"MIT"
] | permissive | revirevy/book-python | fcd64d44840b68e528422de785383f9d4a81fb98 | 9da7bfd43117f33530e708e889c26152dc8c7a25 | refs/heads/master | 2020-04-01T05:13:50.394724 | 2018-10-13T14:58:19 | 2018-10-13T14:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | number = input('Podaj liczbę: ')
if int(number) % 2 == 0:
print('Even')
else:
print('Odd')
| [
"matt@astrotech.io"
] | matt@astrotech.io |
26e63d280008291df5eaf2259ca0e1f0bf42c840 | 1792af43b0d3e3896dd4b8269ab152a899a88113 | /deadshot/config/__init__.py | d0e5d37c1b86712706cb10ddb91ec0ecaa757f3a | [] | no_license | wax8280/deadshot | 3c2066014971140032b7762c7f5314dfa2f0647b | a3154f83124b1171c920154d85bb39edbf17a4ea | refs/heads/master | 2021-01-21T06:38:37.071994 | 2017-03-24T08:28:12 | 2017-03-24T08:28:12 | 83,261,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | # !/usr/bin/env python
# coding: utf-8
import yaml
config = yaml.load(open('./deadshot/config.yml', 'r'))
| [
"wax8280@163.com"
] | wax8280@163.com |
0780be161c5032f929cffb4b9d4136455f39b935 | add0e545ad2ed20a1d9e3096f2a159f15f03f045 | /csdn/linkexample.py | 9c0b05d78230cdfd40e7d69f38b9629ca2c863c3 | [] | no_license | wingsthy/data_structure | c058a374ae669e7625bbeafdf6ad0825809ea261 | ffcdad14e52056b5c39210d646c06f77ba51ae5a | refs/heads/master | 2020-04-15T09:56:35.551680 | 2019-01-30T14:10:14 | 2019-01-30T14:10:14 | 164,572,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,766 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
class Node(object):
def __init__(self, value=None, next=None): # 这里我们 root 节点默认都是 None,所以都给了默认值
self.value = value
self.next = next
def __str__(self):
"""方便你打出来调试,复杂的代码可能需要断点调试"""
return '<Node: value: {}, next={}>'.format(self.val... | [
"wingsthy@163.com"
] | wingsthy@163.com |
800575f2be3eb0266842357718d5d8ab7a32dc18 | 5b347e39860e5af9a2120b82100c71ba9d253f72 | /src/SQL_border_crossing_statistics.py | ae531d3e09a066d5e3ce55d7ad77f98a7aced006 | [
"MIT"
] | permissive | bolor23erdene/border-crossing-analysis | ffd8d02b9ab48a4f677cce59d4fafa612d3dffd6 | b7de26cc69c63e1715442b1a8a6e5a99063bbbf5 | refs/heads/master | 2022-01-04T15:04:09.882552 | 2020-02-04T06:52:49 | 2020-02-04T06:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,021 | py | """This script performs the same operation as in border_crossing_statistics, except
it uses SQL."""
import csv
import sqlalchemy as db
from utils import convert_date_to_sql, convert_date_back_to_original_format, \
parse_args
def main():
"""Using the specified border crossing entry data (input file),
... | [
"sonofhotmale@gmail.com"
] | sonofhotmale@gmail.com |
58d4ba551376243f65ebf57907a539de63520c05 | b30429ced22829a80b68f93efa33a1c47a5036d1 | /annotator/migrations/0007_auto_20190424_1459.py | 11f975ed5e9c1479777cfa3dddefb4ee642efd2d | [] | no_license | sunatthegilddotcom/Intelligent-Annotator | a522d07941ad79866a6453054121a412c2b4dbb0 | 93f12cdc5f09b6cfc87c8d2fae4f3adf9673234f | refs/heads/master | 2022-01-19T19:47:53.221394 | 2019-05-04T13:36:46 | 2019-05-04T13:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # Generated by Django 2.1.7 on 2019-04-24 06:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('annotator', '0006_auto_20190424_1226'),
]
operations = [
migrations.RemoveField(
model_name='unlabeleddata',
name='e1_end',
... | [
"976508106@qq.com"
] | 976508106@qq.com |
a60c614528014efc6364c27ec71eb4021066faab | 82b3ffaf54eef5edc61557d36008233805487174 | /Python Music Player/MAIN.py | a1baea5b2ea1a0b833b9120529f7788fbc6386f8 | [] | no_license | jillvp/Personal_Projects | fc3c0c2d6ca6490304a958d6b4b16b376dbf7d2a | 8bf8699c8cc9dcf16f0400a3c2d38b105d9017c5 | refs/heads/master | 2020-08-17T05:29:29.759394 | 2019-10-21T15:38:29 | 2019-10-21T15:38:29 | 215,615,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,150 | py | import os
import tkinter.messagebox
from tkinter import *
from tkinter import filedialog
from mutagen.mp3 import MP3
from pygame import mixer # use pygame to play music - import mixer class => responsible for audio + sound effects
root = Tk()
# Create the menubar (top bar)
menubar = Menu(root) # create em... | [
"noreply@github.com"
] | noreply@github.com |
3165e50dd296edb0a5d28b024e1c4e2ee1969e43 | 7a2d2cfbe99a13920e55e462bd40627e34d18f23 | /openbb_terminal/cryptocurrency/overview/sdk_helpers.py | ccec6062d9340aec34117974ad16ac948ae80aba | [
"MIT"
] | permissive | conrad-strughold/GamestonkTerminal | b9ada627929dbc1be379f19c69b34e24764efcff | c9aa674d979a7c7fd7f251410ceaa1c8a4ef2e6e | refs/heads/main | 2023-06-24T02:59:45.096493 | 2023-05-16T15:15:20 | 2023-05-16T15:15:20 | 342,313,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | """Crypto OV SDK Helper Functions."""
__docformat__ = "numpy"
import pandas as pd
from openbb_terminal.cryptocurrency.dataframe_helpers import (
lambda_long_number_format_with_type_check,
)
from openbb_terminal.cryptocurrency.overview import coinpaprika_model, pycoingecko_model
def globe(source: str = "CoinGeck... | [
"noreply@github.com"
] | noreply@github.com |
ed28ecbe4b263d453c4bfa10eb82c7ecadb6e1c2 | e837f326361d997407e48b32504447889106a016 | /test.py | b81189c887727fff0ec2cc07d583a61114b461bc | [] | no_license | juanengml/api-gt-services | 4723ee89c34ec87048a768b3b52c622b199430a7 | d8bef2d5a688032ce750803f15bf5464b096b9de | refs/heads/master | 2023-07-04T15:34:05.332969 | 2021-08-14T16:39:03 | 2021-08-14T16:39:03 | 395,791,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from time import sleep
from requests import get
endpoint = "https://api-gt-services.juanengml.repl.co"
list_endpoints = ["/api/v1/coffe/ativos","/api/v1/food/ativos",
"/api/v1/address/ativos","/api/v1/blood/ativos"]
while True:
for endpt in list_endpoints:
url = endpoint + endpt
print(url)
r = get(url).json(... | [
"37448831+juanengml@users.noreply.github.com"
] | 37448831+juanengml@users.noreply.github.com |
e5b8b5cddd77544e0ac30428f62d1745371724dc | ef1604c1201332bded6484f3e0b76ca029274b99 | /bossmode.py | 793a90acba95260ac707a107c7d05e4c9f77b95e | [] | no_license | Lukc/sample_data | 8eadbb394e9da2c3532ae2e09df60a2c5139125b | 6f3e8763467fad8e31d7eddedf5131698cbc50e2 | refs/heads/master | 2021-01-10T19:36:49.356182 | 2014-03-20T15:35:10 | 2014-03-20T15:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,316 | py | # -*- encoding: utf-8 -*-
from pytouhou.game.enemy import Callback
current_card = -1
# TODO:
# - Screen cleaning.
# - Lives counting.
# - Hitpoints counting.
# - Scoring.
# - Spellcards data.
# - Many other things.
class Spell(object):
def __init__(self, spellcard, code, life, timeout, end_of_life =... | [
"lukc@upyum.com"
] | lukc@upyum.com |
5e76891c6fd61b4b76cbc83b35b90119affe864e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_188/ch43_2019_04_16_13_18_38_414865.py | 9d7a9dc016757aa22b66c02a79763c38cff18db9 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | def sequencia_collatz(n):
contador = -1
while n!= 1:
if n % 2 == 0:
n /= 2
else:
n = (3*n) + 1
contador += 1
return contador
numero = 1000
maior = 0
while numero > 0:
teste = sequencia_collatz(numero)
if teste > maior:
maior = teste
re... | [
"you@example.com"
] | you@example.com |
acee2230f346b81691e84117dae7502b306289d8 | 2a6da3a51304f37952400fbf8ffdadca805028e3 | /model.py | d05e9b3e53c8460d80cc10de553085c225fc4178 | [] | no_license | JonTChrome/SDC_BehavioralCloning | 3123d0dec8654bbc0fbeeac3d7b95c9c567761f3 | 0825696b372d5c771621f5034e643f5af8673acd | refs/heads/master | 2021-05-14T11:54:51.069084 | 2018-01-05T14:43:37 | 2018-01-05T14:43:37 | 116,394,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | import csv
import cv2
import numpy as np
from keras.models import Sequential
from keras.layers import Flatten, Dense, Lambda
from keras.layers.convolutional import Convolution2D, Cropping2D
from keras.layers.pooling import MaxPooling2D
lines = []
images = []
measurements = []
with open('./data/driving_log.csv') as cs... | [
"jtracy9@ford.com"
] | jtracy9@ford.com |
eeaca050f85a8469d941da81394dbfc600b85fc2 | 1b42b04a27c33bfa704f4f108c9986cd558d7545 | /external_libs/pyzmq-14.5.0/python3/ucs4/32bit/zmq/tests/test_pair.py | 48473f08b608acc7577818b210bc9c2b80ae0831 | [] | no_license | Nandan307/trex_stl_lib | addbe9e42cc69a84fba59b385b108f4f22165534 | 8b3a204308475bff79a6bb7dd1419bbf18c10ffd | refs/heads/master | 2021-01-25T00:33:17.552192 | 2018-02-28T14:41:56 | 2018-02-28T14:41:56 | 123,301,115 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # Copyright (C) PyZMQ Developers
# Distributed under the terms of the Modified BSD License.
import zmq
from zmq.tests import BaseZMQTestCase, have_gevent, GreenTest
x = b' '
class TestPair(BaseZMQTestCase):
def test_basic(self):
s1, s2 = self.create_bound_pair(zmq.PAIR, zmq.PAIR)
msg1 = b'me... | [
"nakulkar@nakulkar.bos.csb"
] | nakulkar@nakulkar.bos.csb |
b85823bf3f7b7fc4e483208651b3b7da6c0b3437 | 981532f898e67ce17507fe9d9ae081384df3bf5f | /datacommons/test/stat_vars_test.py | b4f409d295cc304e47f1c7ce564ae793eb17937a | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | tjann/api-python | cdeb5b8335dcaa1ad8638ed51217cda769376d11 | e44151c9c35c7fcc4bc2e688d36e0a46980fd86f | refs/heads/master | 2021-01-07T00:23:34.901376 | 2020-11-14T00:06:13 | 2020-11-14T00:06:13 | 241,524,474 | 0 | 0 | Apache-2.0 | 2020-02-19T03:33:17 | 2020-02-19T03:33:17 | null | UTF-8 | Python | false | false | 12,877 | py | # Copyright 2020 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | noreply@github.com |
d5a7272af68287027f53c865feafe95b269c8f1c | 09d93f4e60263a9c1a13830f4ba79bd46eb2a546 | /steps/step44.py | 2c02c1eee4b2acfdf470bb1530a98cf8987477d2 | [] | no_license | koi-7/deep_learning_from_scratch_3 | a37d6eadfd7b7ddb2371b2d2bbfd1ebab93c738a | 8869df0f0c0310822151dce7bb1604bce1f5dc4a | refs/heads/master | 2022-12-08T20:26:39.562080 | 2020-09-07T09:29:18 | 2020-09-07T09:29:18 | 291,399,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | #!/usr/bin/python3
# coding: utf-8
if '__file__' in globals():
import os, sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import numpy as np
from dezero import Variable
import dezero.functions as F
import dezero.layers as L
# データセット
np.random.seed(0)
x = np.random.rand(100, 1)
y = np.si... | [
"kkoiwa.1720+git@gmail.com"
] | kkoiwa.1720+git@gmail.com |
262f911284f7e2e19c33f1635b19882c10bbde34 | a132817e35f57166c77df847763db19887ff7984 | /examples/sample_plugins/toyplugins.py | 710ed45ec1bdb9743c263af4da7f0d092b406b42 | [
"MIT"
] | permissive | ryankeleti/pybtex | 9787a1c4032318d251b0958d267e6493a154aa69 | 0b0e0d39f0f4aedd1588c6d08a55a1ad59521ad3 | refs/heads/master | 2020-09-10T01:32:13.914789 | 2019-11-14T05:11:57 | 2019-11-14T05:11:57 | 221,616,271 | 0 | 0 | MIT | 2019-11-14T05:07:33 | 2019-11-14T05:07:32 | null | UTF-8 | Python | false | false | 2,018 | py | # Copyright (c) 2006-2019 Andrey Golovigin
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publi... | [
"ag@sologoc.com"
] | ag@sologoc.com |
225d3c41f8775d4f67ace94f237c4f9fb1b3dee2 | 15097e3428df1193b25d8476f49b3f98e9d31e2a | /funs/pass_by_ref.py | 3921c27fdb913da28f256b3c07cfbc8363f91dc9 | [] | no_license | srikanthpragada/PYTHON_28_JAN_2019_DEMO | 4c19d5116726d7e2b254a50aabe56ccfc0864c3c | 12cba58f76029ec035e2a7c7a6c075528597714b | refs/heads/master | 2020-04-20T04:24:13.066635 | 2019-03-01T02:28:04 | 2019-03-01T02:28:04 | 168,626,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 95 | py |
def prepend(lst,value):
lst.insert(0,value)
nums = [1,2,3]
prepend(nums,0)
print(nums)
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
5072ea5d23fdff3d70a3bb7c00566d5eafeb2462 | d552a3c92155d82ad146cd99ea9b8b4a3b65eab7 | /openstack/tests/unit/accelerator/v2/test_device.py | 22b17b336ec7b59cf89ffb03febaf3e54fa4d5c5 | [
"Apache-2.0"
] | permissive | jlyheden/openstacksdk | 600201d4fbf23fd8a4fa9a53b398b29811446051 | 7e0dcaaa4a69b17b97e746ce8de104689c60becc | refs/heads/master | 2022-11-30T19:15:16.113961 | 2020-06-07T18:02:22 | 2020-06-07T18:02:23 | 270,694,856 | 0 | 0 | Apache-2.0 | 2020-06-08T14:15:36 | 2020-06-08T14:15:35 | null | UTF-8 | Python | false | false | 2,029 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
af1c86ddc948a92b244825c1fb31352a733dbef1 | 03374e5500835c395cfcc8fdfaebc7d33f8e425d | /dex/section/item_annotation_item.py | 0dbb25853987599311b088e9f68865f78efd9a97 | [] | no_license | WanQingGit/dexfactory | dbb4b886ef0b35c64d6fee888c01177ef1b599b0 | ca41780d8b4765364944930cac8032f9126d5619 | refs/heads/master | 2023-01-29T06:20:20.251344 | 2020-12-06T16:19:44 | 2020-12-06T16:19:44 | 306,493,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | # -- coding: utf-8 --
from base import *
"""
annotation_item中的visibility的描述映射
"""
annotation_item_visibility_desc_map = {
0x00: 'VISIBILITY_BUILD',
0x01: 'VISIBILITY_RUNTIME',
0x02: 'VISIBILITY_SYSTEM',
}
class AnnotationItemItem(BaseItem):
"""
section子结构: annotation_item
... | [
"1109162935@qq.com"
] | 1109162935@qq.com |
4fd5872538497ddefc32a9afbb191cc29aaefc25 | 9cbacb28ae219c3b16e0ba0e5fc9e14a7f36e4c6 | /paper-code/tensorflow_src/models/task/task_chatter.py | 3c8bc4ac778984da4cb57f12b2ce7f7af574b9f4 | [
"Apache-2.0"
] | permissive | hquzhuguofeng/nlp-paper-1 | 7be27a30d304d789d9f6b45bef0803ff90e31aa2 | e710574c95b671e848f4e3b6ad1d275a4adbf1fb | refs/heads/master | 2023-08-27T07:47:54.575198 | 2021-10-22T12:28:22 | 2021-10-22T12:28:22 | 420,844,157 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,215 | py | import os
import sys
import time
import tensorflow as tf
import model.model as task
from common.kb import load_kb
sys.path.append(sys.path[0][:-10])
from model.chatter import Chatter
import common.data_utils as _data
from common.common import CmdParser
import config.get_config as _config
from common.pre_treat import p... | [
"1210212670@qq.com"
] | 1210212670@qq.com |
95055415eb7f9d2a9e5370e8511d3e55418643f9 | a5e0ad3a8745e90e79e516e5cb799bad00e42319 | /etc/pip_install/setup.py | 25388a67a6a7455ae0927b5852fea02ae73363bb | [
"Apache-2.0"
] | permissive | asoriano-stratio/incubator-toree | 621df8807bd045e56c1a6b3a7270bf9b16b1156c | 3f1279dfc287ba36fc08c36a67b21bbba3291a81 | refs/heads/master | 2021-06-06T20:42:42.330846 | 2016-10-08T11:14:43 | 2016-10-08T11:14:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"cstubbs@us.ibm.com"
] | cstubbs@us.ibm.com |
767aced29017929d835b699cfc0fd937a9b8de7c | b3cd67ffa56b92c588fb17d70c2155a04f528028 | /main_app/urls.py | b6e8981e1bcd0bb805bd27f313ab40981b16b801 | [] | no_license | mohsenifarm/dogcollector | 7e773139e3479b66172bf64f6adf992bff749338 | 5e44dee7d8cb1b3ab376f435511ab7c8d01f8d64 | refs/heads/master | 2020-06-04T23:32:46.966111 | 2019-06-16T20:25:30 | 2019-06-16T20:25:30 | 192,233,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | from django.urls import path,include
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('about/', views.about, name='about'),
path('dogs/', views.index_dogs, name='index'),
path('dogs/<int:dog_id>/',views.detail,name='detail'),
path('dogs/create/', views.DogCreate.as_view()... | [
"MJ@Mohammads-MacBook-Pro.local"
] | MJ@Mohammads-MacBook-Pro.local |
1b9e6effd428d243ba00d7a5188336d87022f590 | e1ad3c03db822be64c14236e4e7b9d1ef601e820 | /Algoritmos Traduzidos/Python/Algoritmos traduzidos[Diogo]/ex3.py | eed9fbb72241035a74fc9f950d736e5020aa6c00 | [] | no_license | portugol/decode | 7a0f107db201bb528f249c4b76744372bc0da44d | 8e49d61af48b5a6b444e42bec9345b0c576887af | refs/heads/master | 2021-01-06T20:41:52.739487 | 2013-07-02T22:49:26 | 2013-07-02T22:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | a=input('Digite o numero de três casas:')
d=0
d=int(a)/10%10
print('Algarismo na casa das dezenas:',int(d))
| [
"tiago.mdt@gmail.com"
] | tiago.mdt@gmail.com |
bafcfb78e38c42cf6c23be6f509de455a905319b | f7e64890f56e1cb171edaff4a27927cbeaa3b6d4 | /Part 1/secret_num.py | 7922bd0fb5012e05cc7c8d01c528a0e38049404b | [] | no_license | mezla/6001x | e9ed127d3d55980fc28ee490fa99965912474c83 | e6b7ce7499b3deb4176e3813d24d96aaa60da21e | refs/heads/master | 2020-07-03T16:58:19.920705 | 2016-11-19T23:05:14 | 2016-11-19T23:05:14 | 74,240,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | print 'Please think of a number between 0 and 100!'
epsilon = 1
step = 1
low = 0
high = 100
ans = (high+low)/2
while abs(ans**2-100) >= epsilon:
print 'Is your secret number ' + str(ans) + '?'
info = str(raw_input('Enter \'h\' to indicate the guess is too high. Enter \'l\' to indicate the guess is t... | [
"mezla42@gmail.com"
] | mezla42@gmail.com |
54cb08721221bc79d4e2996113fd84edbcbc3a1f | 545aedc0e425f0eb7cb5d35ae18f771da915757f | /tester2.py | 4c6da9ac82f615dffed41c063220b87aa073bd3d | [] | no_license | Geniussh/HARD_Hack | 947d8c250f4af8adb197fe4cf79641667a0aaba5 | bc0e7ba0d153669735527c379c99a3a28c90c528 | refs/heads/master | 2020-04-17T16:11:03.908340 | 2019-01-20T15:12:16 | 2019-01-20T15:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | from tester1 import Tester1
print(Tester1.tester1(1, 2)) | [
"noreply@github.com"
] | noreply@github.com |
f1905277edc4ede3808ba32c2600771cc11cb93f | 210691d0d62955bb1cb45e4221718418545c37f8 | /t/test_wc.py | 12001d56bf64f7578b338f0d5b81beb4c5fabe16 | [] | no_license | szabgab/pytools | d0445e1fc612592beb5706cb7af617ed2fb56df8 | c0cd51768a1a728b55c7d78fbba35c2aeda53d7c | refs/heads/master | 2021-01-18T18:25:15.914492 | 2012-11-15T07:51:26 | 2012-11-15T07:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import unittest
#import sys
#sys.path.append('bin')
#import wc
class TestWC(unittest.TestCase):
def setUp(self):
pass
# create temporary file
def test_wc(self):
self.assertTrue(True)
if __name__ == '__main__':
unittest.main() | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
b06b74f1887da1b761e0b20410ca23b7696ec341 | feab20def7ca9752c1ea410a5d439167f2fcadfb | /manage.py | 0fadf1e2b050b0f1b7391d0f438b00551bb855c5 | [] | no_license | loganeb/mope-reviews | 94dd15d10cde794144d1d26053c88513384715e9 | f29ed1dd818829ac1f20349e26bdb1ccdda55b6e | refs/heads/master | 2020-04-21T15:32:15.711376 | 2019-03-21T20:14:29 | 2019-03-21T20:14:29 | 169,672,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mope.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you... | [
"logan.bynes@gmail.com"
] | logan.bynes@gmail.com |
d07db74f35b7ef761cad3644f2da9781116fef0f | 3f4ecfae04ea4d7f8c16efff47b10ed58be92de0 | /back_end/api/data_access/__init__.py | 19db99b3aa3df13912702c2dc30f99a7bc2a82c8 | [] | no_license | Esteban108/cripto_test | f6f0c6e99980c0852a9269876937619d84c30265 | ec4123001740fcb58963fb38059ea39f77ebe326 | refs/heads/master | 2022-12-09T20:40:00.964753 | 2020-03-06T16:07:28 | 2020-03-06T16:07:28 | 236,856,843 | 0 | 0 | null | 2022-12-08T03:33:53 | 2020-01-28T22:30:28 | CSS | UTF-8 | Python | false | false | 322 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from ..config import DB_URI
Base = declarative_base()
metadata = Base.metadata
engine = create_engine(DB_URI)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine... | [
"estebangaudenti1@gmail.com"
] | estebangaudenti1@gmail.com |
6c7fd73a3bbfeecbede7350da9bf01e4d2c64628 | fd6e7c8469f2ec0c551dee16c31711a1e6ead1c1 | /tests/test_04_title.py | 6743c2aa55c809ea5aa6c7ad863191aedcccae95 | [] | no_license | maxsnegir/yandex_api_example | 8856de7381d3a5920d08b055f6cf81dae9062c96 | 7974faae3cb4ee17f00890c73999d2752edb3aff | refs/heads/main | 2023-02-19T05:55:14.388989 | 2021-01-18T07:17:28 | 2021-01-18T07:17:28 | 330,584,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,377 | py | import pytest
from .common import create_users_api, auth_client, create_genre, create_categories, create_titles
class Test04TitleAPI:
@pytest.mark.django_db(transaction=True)
def test_01_title_not_auth(self, client):
response = client.get('/api/v1/titles/')
assert response.status_code != 404... | [
"goshasnegir@icloud.com"
] | goshasnegir@icloud.com |
4a30a8be7eb3355e7a0894a55bba9d3ebda5c8b2 | ef434ebcffccb9f2182ff69f91d7520c9334c22a | /parseXML.py | d736647d5ab80d35c7efc667abd9c92860f7aae0 | [] | no_license | mnechita/bda | a22e7aeeb39c4cc8353f407bc04990fa0a90f17d | 72d904466bccd07d24e5229da2bb08ad13094163 | refs/heads/master | 2020-03-19T21:46:30.795366 | 2018-06-12T05:58:55 | 2018-06-12T05:58:55 | 136,949,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,115 | py | import json
import os
import os.path as op
import re
from gzip import GzipFile
from bs4 import BeautifulSoup
DATA_FOLDER = 'data'
def getallfiles(path):
return [op.join(dp, fn) for dp, dn, fns in os.walk(path) for fn in fns if fn.endswith('gz')]
def process_front(front):
to_return = {}
jm = front.fin... | [
"mihai.nechita95@yahoo.com"
] | mihai.nechita95@yahoo.com |
9f1b7837d52566b3b15773c7c481b18f2e0285b7 | ad7329edb9f527e605270c7a6b83686d995e3774 | /util.py | 53dd5f09f25c8b0124f53acc043157883280eb46 | [
"MIT"
] | permissive | Khoross/mtgatracker | 2f2202f2b1540224c08be9fe5a05a0de9ae5dadb | 6b71eae13b03fadcaad59f4e1f4f4983872c45c7 | refs/heads/master | 2020-04-01T17:47:04.510562 | 2018-10-14T23:55:47 | 2018-10-14T23:55:47 | 153,450,040 | 0 | 0 | NOASSERTION | 2018-10-17T12:04:57 | 2018-10-17T12:04:57 | null | UTF-8 | Python | false | false | 9,350 | py | """ util.py
generally stuff that is useful but just hasn't quite found a home elswhere in the project yet. Anything here is subject
to being moved at random! """
import json
import os
import sys
import time
from tailer import Tailer
import app.models.set as set
from mtga.set_data import all_mtga_cards
depth = {"dep... | [
"hawkins.spencer@gmail.com"
] | hawkins.spencer@gmail.com |
80c7edc2b12e2b709d6b9590b782ee3cad5da629 | 2d9f4c6186e1c1f23c87ed39f1018fca4fd32d78 | /feature_selection/__init__.py | 538f18a206ebd756d2c878f47d081bce9764f6a1 | [] | permissive | gonzalesMK/MetaHeuristic | b9c485cc44c217ebb807d6298e9092e99aecdb37 | 101664ffd3fd65f1d8ea689b6d263518ce176886 | refs/heads/master | 2022-03-12T00:53:29.791560 | 2022-02-17T22:00:02 | 2022-02-17T22:00:02 | 98,462,704 | 13 | 2 | BSD-3-Clause | 2019-10-16T19:06:04 | 2017-07-26T20:21:34 | Python | UTF-8 | Python | false | false | 508 | py | from .harmonic_search import HarmonicSearch
from .genetic_algorithm import GeneticAlgorithm
from .random_search import RandomSearch
from .binary_black_hole import BinaryBlackHole
from .simulated_anneling import SimulatedAnneling
from .brkga import BRKGA
from .spea2 import SPEA2
from .pso import PSO
__all__ = [
... | [
"judcnegri@gmail.com"
] | judcnegri@gmail.com |
604d1bfdf1304afd809fc455d249728bea4fcbd1 | cac95416584e4bd3556b14c58abee8d157c80ba0 | /public/baiduspider/_spider.py | b1ea8666058e2f19d29bcd92f2a1e1824984d2a6 | [
"MIT"
] | permissive | gdtool/Aggregate-search | 21204872b3f7ed32c5e39b240bb290c0d639b69d | a8014bc7ccc7152833ee70405244d20ec9d8be5c | refs/heads/main | 2023-07-19T20:49:39.643211 | 2021-08-18T20:06:27 | 2021-08-18T20:06:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,697 | py | from baiduspider.util import convert_time
import re
from typing import Union
import requests
import os
from datetime import datetime, timedelta
import math
class BaseSpider(object):
def __init__(self) -> None:
"""所有爬虫的基类
此类包括了常用的util和自定义方法,继承自`object`。
"""
super().__init__()
... | [
"l834159672@gmail.com"
] | l834159672@gmail.com |
7e2d1999fde789a7b872a3d1ca6abcbc796026ad | e7baf07eb177a0dc4db1808cdd846cc4f756880c | /lesson5/jobparser/spiders/hhru.py | 79e0e43614bfde9d3a16c82b2b4bbc5de5527b49 | [] | no_license | SQMmm/internetData | e6f1fc89a5350d49ef98adc50dbe390e4c833eac | ea6168aee440e4dbc5aa9093cef7742303c776e5 | refs/heads/master | 2020-08-15T02:59:18.598921 | 2019-11-08T14:03:52 | 2019-11-08T14:03:52 | 215,269,455 | 0 | 0 | null | 2019-11-08T14:03:54 | 2019-10-15T10:19:20 | Python | UTF-8 | Python | false | false | 1,316 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.http import HtmlResponse
from jobparser.items import JobparserItem
class HhruSpider(scrapy.Spider):
name = 'hhru'
allowed_domains = ['hh.ru']
start_urls = ['https://hh.ru/search/vacancy?text=Python&area=113&st=searchVacancy']
def parse(self, response:... | [
"m.ivanova@corp.mail.msk"
] | m.ivanova@corp.mail.msk |
8fef98c2654ba9af7518648c1307f2dfd67c0ac1 | 8246092010e656920e7199f889f9cbf54b83a729 | /pycoin/symbols/ric.py | 0cb5179b08fc317c81336784f54f585757c5fe15 | [
"MIT"
] | permissive | richardkiss/pycoin | 5717411a11445773ac922c1d1c1b7dbe4835cd77 | b41ad7d02e52d9869a8c9f0dbd7d3b2b496c98c0 | refs/heads/main | 2023-08-07T12:14:04.974934 | 2023-04-18T02:27:15 | 2023-04-18T02:27:15 | 10,917,677 | 1,306 | 489 | MIT | 2023-06-03T23:24:50 | 2013-06-24T19:17:52 | Python | UTF-8 | Python | false | false | 319 | py | from pycoin.networks.bitcoinish import create_bitcoinish_network
network = create_bitcoinish_network(
symbol="RIC", network_name="Riecoin", subnet_name="mainnet",
wif_prefix_hex="80", address_prefix_hex="3c", pay_to_script_prefix_hex="05",
bip32_prv_prefix_hex="0488ade4", bip32_pub_prefix_hex="0488b21e")
| [
"him@richardkiss.com"
] | him@richardkiss.com |
ac0a4159f7663a02d156c1c0dd52ccbf90f9801b | 91695334c9a9d8f462dd2fa7b82f3e6ccd7a764c | /testinformation/migrations/0016_auto_20211108_1702.py | 2ef95c256e3450bcc9dd1983563ed565e78dd1c5 | [] | no_license | bcavinee/testcatalog | b9ae003c910d4d24c4c4812dee7ef786cdc035c0 | ec8cdc7e21e0b39b4d52ffb47a5ec99ca05418e1 | refs/heads/master | 2023-09-03T07:30:14.716098 | 2021-11-17T23:44:07 | 2021-11-17T23:44:07 | 429,234,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,119 | py | # Generated by Django 3.2.6 on 2021-11-08 22:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('testinformation', '0015_auto_20211105_1624'),
]
operations = [
migrations.AlterField(
model_name='test_information',
... | [
"51139252+bcavinee@users.noreply.github.com"
] | 51139252+bcavinee@users.noreply.github.com |
354ddae4632496cd952b20b64e8f1d9a1e94981c | 86fe84197c897c4b12be6d574fa90beaa5c155fb | /great_number_project/urls.py | ad4c62a5c195eed01adb03dcce59b4f596129a45 | [] | no_license | raqueloropeza/CodingDojo_Django_GreatNumberGame | 225c60f5c15fefe49e1387380c76291181fccff6 | 6924b0470fab0e2d9d1894375f4410bb7a03b287 | refs/heads/master | 2023-05-18T17:51:32.122339 | 2021-05-31T18:34:13 | 2021-05-31T18:34:13 | 372,594,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | """great_number_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home'... | [
"rockuzaki@gmail.com"
] | rockuzaki@gmail.com |
96d963db5e2da3dd2f9038e078d6078c794b722a | d1ab09e85c14fd35c8c9f31753b11772a6047088 | /Python0005_IncrementDecrementOperators.py | 157343e235c9243fad708c4f1e8a730a313a8084 | [] | no_license | Abdullah06444/0005_IncrementDecrementOperators | 2cc527778c49cb3153cf754f0990c1d23335dde8 | ad3b7d7549cbd6e4e4f5821611c080a8281d7261 | refs/heads/master | 2022-12-11T10:33:42.421812 | 2020-09-06T18:10:34 | 2020-09-06T18:10:34 | 265,377,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | x = 2
y = 3
z = -4
x = y + 2
z = x - 3
# x = 5 , y = 3 , z = 2
print("x ---> ",x,"\ty ---> ",y,"\tz--> ",z)
z -= x - 5
y += z - 7
# x = 5 , y = -2 , z = 2
print("x ---> ",x,"\ty ---> ",y,"\tz--> ",z)
'''
If you are familiar with other programming languages like C, Java, PHP
then you know there exists two operators ... | [
"abdullah44gur@gmail.com"
] | abdullah44gur@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.