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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25d1da88d1366f1ccb7cbe8670e06b566940541c | c62c9f5cb72e23d9ac35260d9c556b35ae1861e4 | /collective/z3cform/html5widgets/widget_contenteditable.py | e3cdb08143c1fe06cda58e75623139d08489612d | [] | no_license | collective/collective.z3cform.html5widgets | 667cb567d1873cf0ca439df564df8c0cdf4ea6e6 | 3357495e8b445b5d75ccfc14608c55019b01bf6e | refs/heads/master | 2023-03-22T16:39:43.686088 | 2013-12-05T17:01:54 | 2013-12-05T17:01:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | #-*- coding: utf-8 -*-
from zope import interface
import z3c.form.interfaces
import z3c.form.browser.widget
import z3c.form.widget
class IContentEditableWidget(z3c.form.interfaces.IWidget):
""" ContentEditable widget marker for z3c.form"""
class ContentEditableWidget(
z3c.form.browser.widget.HTMLTextIn... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
059d32bc5a3e43b81b2ed35ff301e7e7da28ee00 | 8b8bd2fd03f2d7cc7681d4d45bb59e0e06fe2284 | /janela_principal.py | 0ff22f01281e00fe2cd6b408774b588786a70bdb | [] | no_license | VitorFariaAssi/Concessionaria | ed70fd279e56b64867f641ab05dd15d626b37c79 | 6be225e5cf06b77db656efde607443c44224afe5 | refs/heads/master | 2020-04-08T09:31:32.371765 | 2018-11-29T21:09:38 | 2018-11-29T21:09:38 | 159,228,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | #Importando as bibliotecas
from tkinter import *
from tkinter import messagebox
from janela_carros import Janela_Carros
from janela_compradores import Janela_Compradores
from janela_vendedores import Janela_Vendedores
class Janela_Principal(Tk):
def __init__(self, controle):
#Atributos
se... | [
"noreply@github.com"
] | VitorFariaAssi.noreply@github.com |
899115ede16865c53b02a851dff925b61a1bf92a | 6eef7d400474384c9e36cafbbae95e3c34dbb6ad | /ben_kremer_clinvitae/urls.py | 61103ac498270fed074b36b27f1ff25b7c810666 | [] | no_license | codeAligned/clinvitae | 61d3c160e9dbc65d548818292681a27501d330ce | 4a75c14113dc562991c7d2d1a5812d2db91e2da0 | refs/heads/master | 2020-05-17T12:02:33.514187 | 2019-02-21T06:47:35 | 2019-02-21T06:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('genomic_variants.urls')),
]
| [
"kremerdesign@gmail.com"
] | kremerdesign@gmail.com |
b5d11cb4fb11f4cf0e5130c36622f8d904058afb | fac42425658ee08e9b28dca702315e6dca592391 | /analysis/markovs_chain/Python/code_with_comments.py | 0a1912e6dcce2f102075a7a73fbebabe0cb5c745 | [
"MIT"
] | permissive | maximzubkov/Python_Project | b77c2e0aad4a08b110143209044b6d79aacf258f | 3e8295b2c2ee6e8c6a32a54037ea3ded2ce7efcf | refs/heads/master | 2022-12-12T01:03:26.280075 | 2019-05-24T07:24:01 | 2019-05-24T07:24:01 | 173,253,159 | 2 | 2 | MIT | 2022-12-08T05:08:56 | 2019-03-01T07:11:07 | Python | UTF-8 | Python | false | false | 11,323 | py | # В этом файле находится много комментариев, которые Илья должен переправить в тех
import numpy as np
import pandas as pd
import networkx as nx
import matplotlib.pyplot as plt
from pprint import pprint
def forward(pi, A, B, obs):
# Длина последовательности наблюдений, она, очевидно, равна длине последовательност... | [
"Zubkov.MD@phystech.edu"
] | Zubkov.MD@phystech.edu |
38ead2deea8618df92b0772d89b4e82bba60f85b | 7ce58197aa5d86e78af9c5fccfec68754d18141e | /Practical1/program6.py | 5ea8497612d5af50bf624a02dcf8f927f5d7b0cb | [] | no_license | k08puntambekar/IMCC_Python | 5187b0c0adeebd0d5caca7fbba21f30e9b10ed8b | 815f0b8fd182826e6acb33710416fcbadb4ce5d4 | refs/heads/master | 2023-04-06T18:41:41.688360 | 2021-04-07T09:45:58 | 2021-04-07T09:45:58 | 355,428,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | age = int(input("Enter the age : "))
if age >= 18:
result = "eligible"
else:
result = "not eligible"
print("You are ", result, " for voting")
| [
"k08puntambekar@gmail.com"
] | k08puntambekar@gmail.com |
fe04336989f089a6befe5b28a0ce88ca13f12742 | 1926b52bd87e8fdfbbacdca086fea7c27c7ce048 | /calibration_app/counter/Controller.py | 2b0e046a3be07e1b462905ef3ff9df4efc93be2f | [] | no_license | mdctleo/calibration_app2 | 6fdc6cf6a44cbb1addda47bf6ac9243935876adf | 2c9223ddf5f4dcb4c0318a4c48172ebdff4e5a92 | refs/heads/master | 2022-03-18T02:20:35.366680 | 2019-12-17T00:16:26 | 2019-12-17T00:16:26 | 201,561,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | from flask_jwt_extended import jwt_required
from calibration_app.counter import bp
from flask import request
from calibration_app.counter.Model import GammaCounter, GammaCounterSchema, DatabaseHelper as db
from flask import jsonify
from response.response import StandardResponse, StandardResponseSchema
from exceptions.... | [
"mdctleo@hotmail.com"
] | mdctleo@hotmail.com |
86a3b5cd4f854327e26eb753b997bdbb0abc70d4 | 05713e211c6e6ec956fd53dff57e0819e684e547 | /Section 4/code/app.py | 9e881a5beab2e11880540bfaf5c971bc4ca572dc | [] | no_license | raunakpalit/RestAPI_Flask | 2f38621b478606d8a96b2aec5c2e24c8c06d13d7 | c8b76cb2686c105ee6fea30fba22c3e711ba5cbf | refs/heads/master | 2022-12-05T11:38:57.597764 | 2020-07-18T17:04:51 | 2020-07-18T17:04:51 | 242,742,854 | 0 | 1 | null | 2022-11-23T10:59:22 | 2020-02-24T13:26:19 | Python | UTF-8 | Python | false | false | 1,690 | py | from flask import Flask, request
from flask_restful import Resource, Api, reqparse
from flask_jwt import JWT, jwt_required
from security import authenticate, identity
app = Flask(__name__)
app.secret_key = 'jose'
api = Api(app)
jwt = JWT(app, authenticate, identity) # /auth
items = []
class Item(Resource):
p... | [
"palit.raunak@gmail.com"
] | palit.raunak@gmail.com |
85a62ad4e2d39d14b6ac3fcf076e854c23c061a7 | fcbf03dc1884855ca90362a00ba077f13e0a58e3 | /toxsign/scripts/management/commands/_signatures.py | e5a88544c5b00f46f12ee37d5c8c3d9bf2aa112c | [
"MIT"
] | permissive | umr1085-irset/toxsign_v2 | ed11f6da404060b6ba6d1314cccb3281f9172d07 | 71ccf4c98226c6d3e757cec7277c8fcafc60004f | refs/heads/master | 2023-05-27T09:33:59.744741 | 2022-02-11T09:44:11 | 2022-02-11T09:44:11 | 194,641,119 | 0 | 2 | MIT | 2022-08-25T08:57:54 | 2019-07-01T09:22:09 | CSS | UTF-8 | Python | false | false | 6,258 | py | import bson
import os
from ._users import get_owner
from ._ontologies import get_ontology, get_ontology_slug
from toxsign.signatures.models import Signature
from django.core.files import File
def process_signatures(path, user_dict, corresp_dict):
with open(path,'rb') as f:
data = bson.decode_all(f.read())... | [
"mateo.boudet@gmail.com"
] | mateo.boudet@gmail.com |
791d0a9fae82a498c3c6ab479b99bb52d29b6763 | 130215e73cd45824fc5b7b2bc85949ce03115f20 | /py/portfol_classical050_1.py | 0607e55cae5a9a34dcf658afe57615f9c5a260ba | [] | no_license | felicitygong/MINLPinstances | 062634bf709a782a860234ec2daa7e6bf374371e | 1cd9c799c5758baa0818394c07adea84659c064c | refs/heads/master | 2022-12-06T11:58:14.141832 | 2022-12-01T17:17:35 | 2022-12-01T17:17:35 | 119,295,560 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 74,910 | py | # MINLP written by GAMS Convert at 11/10/17 15:35:22
#
# Equation counts
# Total E G L N X C B
# 104 52 0 52 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"feligongcity17@gmail.com"
] | feligongcity17@gmail.com |
77916008cef97dbe592ed28bdeb1fc24ef507f5b | 770801815a644df6de1d252799be520f69e467be | /dataResearch.py | 6b536432e9bb4642b8725ba2d3387a16d122c71f | [] | no_license | chutianwen/CapitalOneHackerthon | ad2b693694945ff56fa5e2ebf1c3a00dfec75439 | 5337b954b529c03c87816e8927cf1620a26e8a49 | refs/heads/master | 2021-05-07T13:37:39.336866 | 2017-11-05T17:03:44 | 2017-11-05T17:03:44 | 109,598,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py | from collections import Counter
with open("./Dataset/merchant_list.txt") as f:
text = f.read()
merchant_names = text.split(",")
text = text.lower()
text = text.replace('.', ' <PERIOD> ')
text = text.replace(',', ' <COMMA> ')
text = text.replace('"', ' <QUOTATION_MARK> ')
text = text.replace(';', ' <SEMICOLON> ')
t... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
18ec3b9176c0cadcb71400f69ac095ea871c5eee | b4339826d3def43a2553f0ac8d357ed393a8f471 | /apps/operation/models.py | 1447f0a0a33afa24c352bdb28c638b809f5acae7 | [] | no_license | buzzzzx/MultiUser_blog | e8c19537d29ab4d8bc97a2ca62703110adc9d683 | 1ff6c2c345051406b5862d902ca51939be755528 | refs/heads/master | 2021-08-08T11:47:06.666011 | 2017-11-10T08:51:28 | 2017-11-10T08:51:59 | 110,224,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | from django.db import models
from account.models import UserProfile
from blog.models import Post
# Create your models here.
class PostComment(models.Model):
post = models.ForeignKey(Post, related_name='comments') # 可通过post.comments.all()
user = models.ForeignKey(UserProfile, related_name='blog_comments') ... | [
"buzzzzx233@gmail.com"
] | buzzzzx233@gmail.com |
d8d5f9784b844235aec0bfc1e1d37e1cac1b648a | 5ba2331c7a6a55572072f0d7f1a8337b96dd8e62 | /1-CrashCourse/selectiveCopy/selectiveCopy.py | ada337c26fe39d87d42a29ad345ffb36a767c07d | [] | no_license | vinnav/Automate-with-Python | 3cb25cc6bd9a036e716da74baf96690b7f54dcdc | 004d4c621f61591fea1845285167f271d62aa8aa | refs/heads/master | 2020-09-01T16:52:37.773697 | 2020-05-14T09:50:42 | 2020-05-14T09:50:42 | 219,009,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py |
# selectiveCopy.py - a program that walks through a folder tree and searches
# for files with a certain file extension (such as .pdf or .jpg) to copy
# from current folder to a new folder.
import os, shutil
ext = input("Choose the file extension to copy (\".xxx\"): ")
folder = input("Input directory absolute path, o... | [
"54999963+vinnav@users.noreply.github.com"
] | 54999963+vinnav@users.noreply.github.com |
ea5601e1a9a55b707c0d21519a92b1ec08e69eba | 2075f2b59602ddaf539a5d35c4c84172a6433eb4 | /scrape/pipelines.py | efc55fb66d1201c1de17f15caed225a41a0371e0 | [] | no_license | jokull/orflaedi | 75f5551b5ded6cb57c32cd6e53f402bec3d29e10 | 145847b107f59cccb65393ac015b3a229428561a | refs/heads/master | 2023-07-06T16:59:35.239077 | 2023-06-29T19:35:37 | 2023-06-29T19:35:37 | 244,495,780 | 12 | 1 | null | 2023-06-29T19:35:38 | 2020-03-02T23:14:26 | Python | UTF-8 | Python | false | false | 2,864 | py | import os
import datetime as dt
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from scrapy.utils.project import get_project_settings
from orflaedi.models import Model, Retailer, VehicleClassEnum
def get_or_create_retailer(db, slug):
retailer = db.query(Retailer).filter(Retailer.sl... | [
"jokull@solberg.is"
] | jokull@solberg.is |
101f0bcd26ac93a0d19c04a64193b47edfef9539 | b8069ffd711fc7169d3040805637ada7a02fa3fb | /completed/epi-11:5.py | 352d2ce7ab6aa43de2afe32e21e803f93d3d5f33 | [] | no_license | aaronchu415/LeetCode | afcd1186f066d64e14e5276e589dd0f1d79227ed | cb8d2d13cb3318ae623db2bd3548e37e8400016c | refs/heads/master | 2020-04-13T09:35:57.576275 | 2019-09-09T23:42:13 | 2019-09-09T23:42:13 | 163,115,690 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # // _NAME: Compute the Real Square Root
# // _LINK: https://elementsofprogramminginterviews.com/
# // _CATEGORY: EPI
def squareRoot(val, percision):
l = 0
h = 0
# find high
while h*h < val:
h += 1
if h*h == val:
return h
# divide and conquer to find square root
... | [
"aaronchu415@gmail.com"
] | aaronchu415@gmail.com |
a6e466c3d48ca8393ecaf59191624369d449f64a | 45041dc40c1bccc00ab04404bb550b399eb631e6 | /src/scripts/analysis.py | 6997c12c8830e27188d08d81d58799507fc2ca9c | [] | no_license | rafsanahmed/nlp_pipeline | d034f4e6c20969e7b937f011bb0e03fe5bddbcd5 | b6e472f62fe4ebe9bdb939f232b156fbc037dc68 | refs/heads/master | 2023-03-30T16:02:48.754495 | 2021-03-23T17:18:54 | 2021-03-23T17:18:54 | 350,783,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,796 | py | # coding=utf-8
import numpy as np
import pandas as pd
import math
import itertools as it
import matplotlib.pyplot as plt
import seaborn as sns
from collections import defaultdict
from typing import Any, Dict, List, NamedTuple, Tuple
from sklearn.manifold import TSNE
"""
meeting notes (unrelated to this file)
RESULT
-... | [
"rafsan.ahmed@std.antalya.edu.tr"
] | rafsan.ahmed@std.antalya.edu.tr |
cc8a527ecdbc2c8e12cc19b5a1b62ab019acd526 | e95f621aa7f8bd90079bc5e04f9f1efbd88dace2 | /217.py | 03d7a13a9dead6c75a7a64de427e1d149f9c2fa8 | [] | no_license | viethan/leetcode | 62e489d2fec427ffa19f47aa4ca6df0aa2784d88 | b1769ec8cc69386aabbeee1b0f8f60af50d1d375 | refs/heads/master | 2023-02-24T06:27:41.958500 | 2021-02-03T20:01:57 | 2021-02-03T20:01:57 | 326,131,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
seto = set()
for val in nums:
if val in seto:
return True
seto.add(val)
return False
| [
"vietaing@gmail.com"
] | vietaing@gmail.com |
797b881d586750c964b7f6f98af2c2cda62c8d6f | 78e255a8ddf6f30dd409c094c0e30dd9fcd60d14 | /tensor_contraction/GPU/tensorflow/tensorflow_test.py | 5376d35e8e97d9df65ee648858946baae23964a9 | [] | no_license | leanil/benchmark | 377cd90a64f9a616e125f0933fc4bc3daa5793e8 | f4dc10f6136ca258c69179f6d725fc9e39f400e7 | refs/heads/master | 2020-03-26T19:57:05.549141 | 2019-12-18T13:20:12 | 2019-12-18T13:20:12 | 145,295,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | import baseline
import dim1
import dim2
import util
import os
import sys
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
tests = [#baseline.baseline_sum, baseline. baseline_inc, baseline.baseline_prod,
#dim1.dot, dim1.dot1, dim1.dot2, dim1.dot3, dim1.dot4, dim1.dot5, dim1.dot6,
dim2.t1, dim2.t2,... | [
"leitereg@tesla.gpu.kfki.hu"
] | leitereg@tesla.gpu.kfki.hu |
b474c6cdd565a582e877403b9c33d983b20435c5 | 2e321bfa40d9483a2fab479dbb201dfbe039d9c9 | /simple_main.py | 737298495ddb07bfc6afc30fd9637cdfe5e1e700 | [] | no_license | lukawskikacper/sentiment-analysis-rd | f7d4f91a42a54c4d41276e3a2efd99315af0b0d2 | b43d626556fd4dc6d6934690d62eb98eb6e385f8 | refs/heads/master | 2021-09-24T08:17:45.343159 | 2018-10-05T14:24:57 | 2018-10-05T14:24:57 | 104,850,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,473 | py | # -*- coding: UTF-8 -*-
import copy
import itertools
import logging
import random
from sklearn.ensemble import RandomForestClassifier
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.metrics import accuracy_score
from sentiment.loader import load_airlines_data, load_thinknook_... | [
"kacper.lukawski@codete.com"
] | kacper.lukawski@codete.com |
973bb474b64c7180a6813c4c867dc5d616d93c62 | 784386a14c39f886c6d466a399cb42b3fd2223ee | /Códigos/Aumento dos Trabalhadores.py | d6fde0bcbb4de5de93e1cc338f04843bb60b3138 | [] | no_license | Joao-Godoi/Python_The_Huxley | 7ecf4c20616141e1286c7b35977193ba1da1e123 | 9f9469270cb79ec7c5245c3c97fd52dc8b40a419 | refs/heads/master | 2022-11-28T13:48:16.490584 | 2020-07-31T01:53:46 | 2020-07-31T01:53:46 | 283,913,642 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | sal = float(input())
if sal > 500:
salf = sal + (sal * 0.1)
print("%.2f" % salf)
elif sal > 300 and < 500:
salf = sal + (sal * 0.07)
print("%.2f" % salf)
else:
salf = sal + (sal * 0.05)
print("%.2f" % salf) | [
"jaoo.godoi@gmail.com"
] | jaoo.godoi@gmail.com |
447a4c6bb4a56e90eca9853451f886b92d8691e2 | c07f534ad2282e9077aba43033eb2b5c5d5ba90b | /BST_Cipher.py | 38e3bc80d86dcd90866e37ebfa13a58527df5377 | [] | no_license | rmoore2738/CS313e | 66826e5333a199be6d5dd11aa96ac19dd07994e7 | 89b125087c47016a9ef4a07175242293524bb51c | refs/heads/main | 2023-03-21T04:25:47.673971 | 2021-03-07T05:51:31 | 2021-03-07T05:51:31 | 345,267,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,686 | py | # File: BST_Cipher.py
# Description: assignment 21
# Student Name: Rebecca Moore
# Student UT EID: rrm2738
# Partner Name: Jacob Baack
# Partner UT EID: jb72873
# Course Name: CS 313E
# Unique Number: 50845
# Date Created: 11/15/2020
# Date Last Modified: 11/16/2020
import sys
class Node(object):
... | [
"noreply@github.com"
] | rmoore2738.noreply@github.com |
b623443023541b6e4ddddae8fe77cd330c279da3 | aa4e8b335b6bd3041f91493115aae71af475ca6f | /server/activities/migrations/0012_auto__del_field_relational_scored_nodes__del_field_relational_source_p.py | fad771a00b15d1c466868eb98ae812b5d946f00b | [] | no_license | CulturePlex/DrGlearning | 565165687544eda9b524f4b6ee7477fe017cd16a | 1949ae23f76d9858e9ef3b529035b4a15c1dc5d3 | refs/heads/master | 2021-03-30T16:13:06.814365 | 2014-07-01T22:41:32 | 2014-07-01T22:41:32 | 2,485,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,753 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Relational.scored_nodes'
db.delete_column('activities_relational', 'scored_nodes')
... | [
"escalant3@gmail.com"
] | escalant3@gmail.com |
19129b1d78fce4161c33dcf6af2ae78c65419b8c | ba5648e40aafe40d12a459df72368e5a451520aa | /tripup/asgi.py | c8f761ecab54c5590df8a8aee905310a517cf0cb | [] | no_license | dhanushbmohan7/TripupDjangoDemoTask | ae453237c3582f7878534c3885e0fa6704c199ff | f1bdb792f71ee29e2e9ed97fff9766084ad3360e | refs/heads/master | 2023-01-20T22:02:13.250260 | 2020-11-04T14:10:33 | 2020-11-04T14:10:33 | 308,585,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for tripup project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"dhanushmohan57@gmail.com"
] | dhanushmohan57@gmail.com |
45d2a65651be56165f6cfe5b28a341f127eb57a5 | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage1-model/pytz/zoneinfo/America/Boa_Vista.py | 297b01070fa499ceb5132271bc1a11bdd52ca2e8 | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | '''tzinfo timezone information for America/Boa_Vista.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i
class Boa_Vista(DstTzInfo):
'''America/Boa_Vista timezone definition. See datetime.tzinfo for details'''
zone = 'Amer... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
9851d845473ed6fbc6126a25358bcd7ae744f2b9 | 3043ff697647429b5164806e218a1bf69e96cd3d | /dolon/migrations/0004_auto__del_field_imageitem_image.py | d702793406f90a5723f909e6a3cb40bbb598fb99 | [] | no_license | erickpeirson/Dolon | bc584823bd4dbc468a5b30d4a8045d7729dfe3ab | fa33aa5589c52c4770c7a177314b0a71318e313a | refs/heads/master | 2016-09-11T02:27:07.226209 | 2014-10-15T17:02:15 | 2014-10-15T17:02:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,266 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'ImageItem.image'
db.delete_column(u'dolon_imageitem', '... | [
"erick.peirson@asu.edu"
] | erick.peirson@asu.edu |
663175d84618b1612f00e593024da938380a9840 | 98accbb4d8c8f972bfda31e12fabab7c3ca37533 | /linux_lou_plus/step_7/multiprocess/process_sys.py | 4d33b61e088ad55ac86b641f5138761583f1014d | [] | no_license | qimanchen/interview_plan | 49e5a323f35b8b3496d5dc4baba0f12a1b2c2a13 | 6a11a1927a14ce3fc439149e907a3febbee446a7 | refs/heads/master | 2022-12-10T05:25:54.927847 | 2020-06-13T02:54:25 | 2020-06-13T02:54:25 | 194,584,004 | 0 | 0 | null | 2022-12-08T05:25:13 | 2019-07-01T02:08:27 | Python | UTF-8 | Python | false | false | 555 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
from multiprocessing import Process, Value, Lock
def func(val, lock):
for i in range(50):
time.sleep(0.01)
with lock:
val.value += 1
if __name__ == "__main__":
# 多进程无法使用全局变量,multiprocessing 提供的 Value 是一个代理器,
# 可以实现在多进程中共享这个变量
v = Value('i', 0... | [
"1033178199@qq.com"
] | 1033178199@qq.com |
7f7b81e36271c0a7e841f36abcf7a0493c64449e | 44ea4a4bcf2eb31c53bdab3eca6ec67be2f8f6b0 | /1주차/인공지능기초수학(0736)(2020년도, 1학기, A00000736)-1주차 실습 과제-68270/이재언_108149_assignsubmission_file_/2014122215_week1.py | 62d439fa9a8ed28d6db3ce6b75be10a5855e5ae6 | [] | no_license | seungjae6874/AI_basicmath | 12550a6805c3d71a7d988cfd4f1d36d9768d96bb | ca66ff9601f4a67073190fe256ec326d04d267ae | refs/heads/master | 2021-03-25T21:37:26.313039 | 2020-03-27T17:13:13 | 2020-03-27T17:13:13 | 247,647,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | import numpy as np
#q_1
_1a = np.ones(5)
print('1-a : ', _1a)
_1b = np.zeros(5)
print('1-b : ', _1b)
_1c = np.full(5,5)
print('1-3 : ', _1c)
_1d = np.arange(1,6)
print('1-d : ', _1d)
_1e = np.arange(1,10,2)
print('1-e : ', _1e)
list_1f = [1,5,2,3,9]
_1f = np.array(list_1f)
print('1-f : ' , _1f)
#q_2
_2a = np.a... | [
"qkrtmdwo1@gmail.com"
] | qkrtmdwo1@gmail.com |
0d4cc0aec47d069baf3a3d517d8c41f8f44f7a43 | dc3354ca5cae3cd4dd5e1a17dac160c833368ec6 | /wandb/run-20210616_213902-ndmjb3sa/files/code/basnet_train.py | fe54b6ac7ef1d5030fbed7ff16115c44f2dc1f02 | [
"MIT"
] | permissive | deephog/BASNet | 35169db87d104190343fb90ae3f14630fb29a608 | 7770bc69f00b2bb7421c6ea7b26f38f6ca02082f | refs/heads/master | 2023-05-31T10:53:41.032937 | 2021-06-27T01:09:15 | 2021-06-27T01:09:15 | 371,194,340 | 0 | 0 | MIT | 2021-05-26T23:38:03 | 2021-05-26T23:38:02 | null | UTF-8 | Python | false | false | 10,781 | py | import torch
import torchvision
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, utils
import torch.optim as optim
import wandb
import torchvision.transforms as standard_transforms
import nump... | [
"easonsbox@outlook.com"
] | easonsbox@outlook.com |
75b85fa0661a0216227c774f41798c79fce39204 | 372d8a46cc772ec90185119d8d42abd70bd10a0e | /a5_pacman/.env/lib/python3.6/__future__.py | 81df94d9965d1c3f95a3ce47e730587c5a4f3ed2 | [] | no_license | white99black/CS221 | 30d6c1c3fa860b6fc8a0ccfc7e20e43a91623f19 | 5cdb80dda161671466343ac81ca33875116bca69 | refs/heads/master | 2023-03-17T14:59:52.839330 | 2019-04-22T13:38:00 | 2019-04-22T13:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | /Users/datnguyen/anaconda3/lib/python3.6/__future__.py | [
"lonelyicevalley@icloud.com"
] | lonelyicevalley@icloud.com |
74d2a558a4804828a9145faa9f29cb68befaa600 | d89d79ff58847b32e4fd0bc9c82ac81562e2fa97 | /FindString.py | 67ca79d10a8cd5e7950d32e8e1caccc148fc74ea | [] | no_license | markuswehr/Hackerrank_Practice | a39e6ab5b1e3f8f044fa2946c1a5c5006ff31652 | f8d35711ce00513553f1e96c10921c22b5e7093e | refs/heads/master | 2020-12-23T11:15:54.709744 | 2020-03-02T20:59:51 | 2020-03-02T20:59:51 | 237,134,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Find a string"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"https://www.hackerrank.com/challenges/find-a-string/problem"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata... | [
"51182774+markuswehr@users.noreply.github.com"
] | 51182774+markuswehr@users.noreply.github.com |
61d74a672da4b001da73993e6e359cca323cec19 | feb642a2141e5f52495e05ee186eb58032267f88 | /Python/Basics/Day2/ArpitPardesi_59128_Assignment(Day2)/Tuples/Q12.py | 282e3150aff87c25e164c7d0a8fd4f8ad5e2188b | [] | no_license | arpitpardesi/Advance-Analytics | 51a065122725ef8f77bd61b974528f080acd9662 | 121a1211a0e6a2f065323c1b93c9d4ec510e1663 | refs/heads/master | 2022-12-23T20:11:59.689926 | 2020-09-27T13:53:19 | 2020-09-27T13:53:19 | 283,406,449 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | a = (2, 4, 5, 6, 2, 3, 4, 4, 7)
a=list(a)
a.remove(4)
a=tuple(a)
print(a) | [
"arpit.pardesi6@gmail.com"
] | arpit.pardesi6@gmail.com |
51bb7efa0475ef45fd86ca8920bc1f315a6df292 | 8a70a0b13083fa1405da0b3c5e1f2a4ea961a0b6 | /src/saltext/aws/modules/boto_cloudwatch_event.py | 186cbb7fa7525d6618809155c4c72af5fae6e78b | [
"Apache-2.0"
] | permissive | major0/salt-aws-extension | 2940037302e8bfcb86c1460624154a087248e7f2 | ba3b2456a9829af47e0488157d29fd3188ce12df | refs/heads/master | 2023-04-10T11:53:42.045542 | 2021-03-27T00:39:42 | 2021-03-27T00:49:43 | 351,498,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,704 | py | """
Connection module for Amazon CloudWatch Events
.. versionadded:: 2016.11.0
:configuration: This module accepts explicit credentials but can also utilize
IAM roles assigned to the instance through Instance Profiles. Dynamic
credentials are then automatically obtained from AWS API and no further
configu... | [
"major@homeonderanged.org"
] | major@homeonderanged.org |
aaf49f0a1c7a4fcc25f2f3662a00fbb7b9f63258 | 37f2645e35dca2a7bcd867a322fc194e2add254c | /git_comands.py | 730c8356261505de0bdf755b3e797dd0cbc1287b | [] | no_license | Moldokulovvv/git_practice | 2d0fa78ac3f28ba5f1063e5c252d9b81908f354d | 9e113782294c93e060176adb9ad40cae444c2e47 | refs/heads/test | 2023-02-14T04:36:04.565206 | 2021-01-15T05:41:57 | 2021-01-15T05:41:57 | 329,815,109 | 0 | 0 | null | 2021-01-15T05:41:58 | 2021-01-15T05:11:19 | Python | UTF-8 | Python | false | false | 207 | py | git init -.git
git remote add name url
git pull origin master
git status
git add
git commit -m 'comment'
git branch
git branch name branche
git checkout name branch
got push origin master
git reset filename
| [
"adis_98.kg@mail.ru"
] | adis_98.kg@mail.ru |
ad78618b4ca3864729080a5015d73b1769666863 | 4a9ccb2c3fc568ab391a7d984404187cf35a8fa9 | /python-model-tests/src/laman_tests.py | 6405ecf29fc87e050e4cd06de0587126827fc1e0 | [
"MIT"
] | permissive | listochkin/icfp-contest-2014-cw-Branto | 6cad2c75315ce173e58b3cd233888abadd4f6ce4 | 89b70e240da85e429c9e685d982a30f4310e23a1 | refs/heads/master | 2018-12-29T17:02:14.198703 | 2014-07-30T23:31:24 | 2014-07-30T23:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | import unittest
from laman import *
class TestCase(unittest.TestCase):
def assertDirectionEquals(self, expected, actual):
self.assertEqual(expected, actual, "{} != {}".format(DIRECTION_NAMES[expected], DIRECTION_NAMES[actual]))
text_map_chars = {
'#': WALL,
' ': EMPTY,
'.': PILL,
'o': PO... | [
"singalen@gmail.com"
] | singalen@gmail.com |
858de1928b97fdc5fad1fbb1c8ea95c4fac0d86e | 9e6a38cd8a27c4469617a9ad0a22f45df1dd8996 | /conftest.py | 594eda7460af96367b51c3cf13aab408526587bd | [] | no_license | myd10/Testing-1-2-3-Exercise | 21bd77b34f0f8d21cfab899bd569cb4cdbec74c2 | 53628d05b2815b2135f689a567ae56bcb8caf0e3 | refs/heads/master | 2021-04-18T12:58:50.661317 | 2020-03-23T21:53:00 | 2020-03-23T21:53:00 | 249,546,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | #helps pytest recognize structure of repo
#put it root directory of the repo
| [
"myd10@georgetown.edu"
] | myd10@georgetown.edu |
7ebf3809f66c13bb9a44a6e6f6da11692ab7c74b | 1817aca734cda258cbbfd9e13fbf040d76824621 | /aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/DeleteMetricRulesRequest.py | 6d8233fd23f78159ba6bc9c8e1e4547043fcfd53 | [
"Apache-2.0"
] | permissive | sdk-team/aliyun-openapi-python-sdk | 4bd770718e70e31f19e1e322727c27ba74d9fb80 | 996cb07bfcf010fe3ab65daa73d26df2f3b6e97f | refs/heads/master | 2022-08-04T13:11:56.729215 | 2022-07-25T10:01:10 | 2022-07-25T10:01:10 | 183,356,741 | 0 | 0 | null | 2019-04-25T04:33:24 | 2019-04-25T04:33:24 | null | UTF-8 | Python | false | false | 1,185 | 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 u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
e3b34a1b4d9feee629b04bb027d7e2adb76cfdc4 | 9a4d54b57bf91a25c66056d5c69007c7b5064298 | /Ringzero/SqlInjection/Challenge52/chall.py | 7a5e8609b580dc8a278f016b49715c4001ed4eb0 | [] | no_license | naiame-neltheri/WriteUps | b6b7f4d234eba0891cc316a955f6b83283b479bb | 355b8a46b4eab3d8980cc858c2df222dc659591d | refs/heads/main | 2023-04-20T20:02:23.000470 | 2021-05-04T15:42:06 | 2021-05-04T15:42:06 | 221,709,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from bs4 import BeautifulSoup
import cmd, sys, urllib, requests, urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
SESSIONID = "koctqa7tb0g6fttle10bjk0470"
BASE_URL = "https://ringzer0ctf.com/challenges/52"
HEADERS = {"Content-Type" : "application/www-form-urlencoded", "Origin" : "https://ri... | [
"naiame.pb@gmail.com"
] | naiame.pb@gmail.com |
e62d95153f82bb367e71f172e35efcf46b0d94ff | c65b0d797c4ec076d883b353e5f12f8ec86f817c | /svdca/pages/crawling.py | eda644085b32b192be5f4bba2cfa56bf40ba5055 | [] | no_license | yhx9527/graduate_project_yhx | 18932994d3b2194fb0fa545deb322c0beac757b9 | b89ad6deee41ea2feb6a669889bcfcb040b47086 | refs/heads/master | 2022-10-09T11:34:11.838666 | 2020-06-05T02:45:53 | 2020-06-05T02:45:53 | 255,004,827 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,551 | py | import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
from dash.exceptions import PreventUpdate
from app import app,server
from .common import header, info_crawl
# from douyin_crawler.crawl_post_pt import Douyin, MyRedis
from celery_app.tasks import cr... | [
"540230904@qq.com"
] | 540230904@qq.com |
55a1c422be3f0f8c3fd62f6fc753aeb495aefc55 | 6f80db99e9ff770cfe54f7795479ebe5554ba601 | /src/JustTheTip/__main__.py | bd29640b6734371d16359c8ea0953f1304cf3bf4 | [
"BSD-3-Clause"
] | permissive | CSToddDEV/Just-The-Tip | 591539cf2529a4a6448951aae050ff6b8c48855d | d4c648c7e13a92fee690ff9eadec25b5f854f6d9 | refs/heads/main | 2023-02-04T16:21:01.869034 | 2020-12-24T02:18:28 | 2020-12-24T02:18:28 | 324,043,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from JustTheTip.app import main
if __name__ == '__main__':
main().main_loop()
| [
"CSTodd88@gmail.com"
] | CSTodd88@gmail.com |
fbbdda07981435a1e5b2352eac237437b9b3a56a | 4bdfeb18333b29093e3dc800c30ad3b807f954c4 | /RaspberryPiTemp-dispenser/demo_lcd.py | 23ee796d1641a1cfd07628fad4a7eee24aadb0cf | [] | no_license | munriver98/raspi | df4b8009237f01bfa0ab0c39dc1517736ab429f2 | c16d71a1aa1e1c5d23d0026279289d52e2cd0455 | refs/heads/master | 2023-05-01T09:50:15.851954 | 2021-05-09T13:50:07 | 2021-05-09T13:50:07 | 365,542,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | #! /usr/bin/env python
# Simple string program. Writes and updates strings.
# Demo program for the I2C 16x2 Display from Ryanteck.uk
# Created by Matthew Timmons-Brown for The Raspberry Pi Guy YouTube channel
# Import necessary libraries for communication and display use
import drivers
from time import sleep
# Load ... | [
"munriver@gmail.com"
] | munriver@gmail.com |
0b01324db38b6537c084e6e7d7954b7f84f49fa4 | 45d1478e29cdc173085e9fe2ae092f4c71ea19f2 | /retinaface/modeling/__init__.py | e09b09632129673b7c4c911168f1f58126455bdd | [
"MIT"
] | permissive | OxYunzhe/RetinaFace.detectron2 | 0c5f8659d17fb2e46c194dc0fcbbac7732cd54ab | 3edf1c2d539763115741819bcf16816d7c2e4c91 | refs/heads/master | 2023-03-16T07:50:51.572555 | 2020-06-10T09:41:29 | 2020-06-10T09:41:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | '''
@Copyright (c) tkianai All Rights Reserved.
@Author : tkianai
@Github : https://github.com/tkianai
@Date : 2020-04-21 13:11:05
@FilePath : /RetinaFace.detectron2/retinaface/modeling/__init__.py
@Description :
'''
| [
"tkianai@163.com"
] | tkianai@163.com |
f60664ae99d81c1c149536b8a318aba0325490fe | 24b590a60546b7c5dd5ae570b73de9694078f4d1 | /detector_de_vocales.py | 2cb3b0551e5136d1f56572e5c0fca480f07ece0d | [] | no_license | Eliodas/miprimerprogrma | 1e75b013b1b613937fa77692ad4e545f935f98b2 | cf0abb26612691f0f59e429b143190f92d09a818 | refs/heads/master | 2020-03-22T11:57:35.619987 | 2018-09-20T18:24:19 | 2018-09-20T18:24:19 | 140,007,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
vocales=["a","e","i","o","u"]
vocales_frase=[]
frase_usuario=input("Introduzca frase: ")
for item in frase_usuario:
if item in vocales:
vocales_frase.append(item)
print("Vocales = {}" .format(vocales_frase)) | [
"ijperez32@gmail.com"
] | ijperez32@gmail.com |
1ff299dbd34045ce3d21c1e6df2d76e864630543 | 83457103ecfe48114146c5d7528aa4f22734d529 | /09.已完成/02.数据整理/真菌数据整理/genome_size.py | 86350fdf6e0889b38e469a6a5ae2530d7496b8d6 | [] | no_license | quincy-deng/pathogen-in-BGI | 3edb063cc669ae1202cdd206c92f137a79638035 | ae6688153fbb8464b6e5c58cf0b67a4544894d0d | refs/heads/master | 2021-07-16T19:22:54.795828 | 2020-05-21T01:56:49 | 2020-05-21T01:56:49 | 155,389,968 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | from urllib.request import urlopen
import re
from bs4 import BeautifulSoup
html = urlopen(
"https://morvanzhou.github.io/static/scraping/table.html" # 1, https://morvanzhou.github.io/static/scraping/basic-structure.html2, https://morvanzhou.github.io/static/scraping/list.html
).read().decode('utf-8')
# res = re.fi... | [
"395319225@qq.com"
] | 395319225@qq.com |
389cf87f3f9c3fb92c83a5b57b08662bb56f1ccc | dc47f2f6709767c0f483795e669b5b7826968157 | /project/webPage/migrations/0003_comment.py | 63d65a5da8f7fc213091a2a4316f2f5b783e78be | [] | no_license | edolj/projektSP | 03dc7e43094804491947e863215f5e4d900fb8ab | 04d83543e4fc0822d5021a0a729cc76a07384d5f | refs/heads/master | 2021-01-13T08:13:28.850070 | 2017-01-14T17:57:13 | 2017-01-14T17:57:13 | 71,720,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-05 19:22
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.s... | [
"edo.ljubijankic@hotmail.com"
] | edo.ljubijankic@hotmail.com |
317fc2d90019d443dc720570b4df546458e02942 | b115ad93e5e39b0b62a044601f9c7e41b2ed6398 | /model_training/models/model_concatenated_cx.py | c878439126da0d875f444b3f54607db8a83959de | [
"Apache-2.0"
] | permissive | AdaptiveBProcess/GenerativeLSTM | 0205b2fd25194fb67cdac2aa625483e62d07623f | cf0e2bee25843fa58a9710314a33778821cd92c9 | refs/heads/master | 2023-06-22T04:31:50.807344 | 2023-03-13T09:36:33 | 2023-03-13T09:36:33 | 175,622,389 | 23 | 12 | Apache-2.0 | 2023-04-17T19:05:36 | 2019-03-14T12:58:05 | Python | UTF-8 | Python | false | false | 8,966 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 10:15:12 2019
@author: Manuel Camargo
"""
import os
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Input, Embedding, Concatenate
from tensorflow.keras.layers import Dense, LSTM, BatchNormalization
from tensorflow.keras.optimizers import ... | [
"38304139+Mcamargo85@users.noreply.github.com"
] | 38304139+Mcamargo85@users.noreply.github.com |
264ccf1d747e420a00b8a22c7b1db3529c65867c | a8d68074db5c2b2697650ed0281979d3e00cf5a8 | /python-spider/shuaia.py | 4f3d70d1d53400532bacaf55f467f8d4bb664164 | [] | no_license | 15807857476/bogdata-2 | 9595609ea2ae5ae0a48c511f911df2498456467e | 1934cdfa234b77ca91e349b84688db113ff39e8c | refs/heads/master | 2023-05-26T19:10:18.439269 | 2019-05-24T02:50:41 | 2019-05-24T02:50:41 | 188,327,526 | 3 | 1 | null | 2023-05-22T21:37:27 | 2019-05-24T00:53:28 | Python | UTF-8 | Python | false | false | 1,583 | py | # -*- coding:UTF-8 -*-
from bs4 import BeautifulSoup
from urllib.request import urlretrieve
import requests
import os
import time
if __name__ == '__main__':
list_url = []
for num in range(1,3):
if num == 1:
url = 'http://www.shuaia.net/index.html'
else:
url = 'http://www.shuaia.net/index_%d.html' % num
h... | [
"2397955090@qq.com"
] | 2397955090@qq.com |
bf06d858a1182b07a766f7caca3dbb688350d82b | b62c9492de319688eb7901bf98df4bd87ec53f1a | /main_code.py | a119d08bd136ca09276cded3968216804bea57f2 | [] | no_license | Blond-bay/pan_NR | 6d22b7baef2ab400387731941918c8b653b97eb0 | 1cd1521633023c1f58c7e4d930af126d5179e9bd | refs/heads/main | 2023-01-04T07:15:54.925155 | 2020-10-30T15:53:36 | 2020-10-30T15:53:36 | 308,457,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,926 | py | import tkinter as tk
from PIL import ImageTk,Image,ImageDraw
from functools import partial
import sys
import os.path
app = tk.Tk()
app.title("Pan New Rock")
#Frame pour liste et suppr
frame = tk.Frame()
frame.pack(side='left')
#Canva dans frame pour liste bloc
canvas_boutton = tk.Canvas(frame)
canvas_boutton.pack()... | [
"noreply@github.com"
] | Blond-bay.noreply@github.com |
b0b577e1d26e1a5efa30d56d3c53cf4cbfe21f3d | a04a82c28d502e09d660edae0cc21d1deb27aef6 | /samples/src-py/sample1.py | 4138f1ebfcd54e9a2348cc62709c4b09e49852c4 | [] | no_license | tchin8/python | 5756a9bb00d42044ec22e9318fe0373725a9d889 | 3ea553b8ea3db34b80df307a6901508b2ba8cfcb | refs/heads/master | 2022-12-30T06:41:42.019588 | 2020-10-23T22:43:06 | 2020-10-23T22:43:06 | 294,167,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | for i in range(0, 10):
print(i, 2**i)
| [
"chin.tiffany108@gmail.com"
] | chin.tiffany108@gmail.com |
00d424bf4ff07884de75440c59883958b93898fc | 6fd4ee6c09f26f54ef0e57be4a3d320e7dcd365a | /007-interactive-programming-in-python/5-memory.py | 5f6b072c12cb3b6bdaf9f2140d57279238d9c642 | [] | no_license | batmanbury/Coursera | eb642f727f79caf8c2ddc71f6cf94fcac65b7fa7 | befc4be1efcbb3725a90573b626ec1c9ca9d2f54 | refs/heads/master | 2021-01-20T11:56:30.657474 | 2014-06-16T08:53:50 | 2014-06-16T08:53:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | # Runs on CodeSkulptor.org
# implementation of card game - Memory
import simplegui
import random
deck_half_1 = range(8)
deck_half_2 = range(8)
deck = deck_half_1 + deck_half_2 #build deck size
exposed = range(16)
for c in exposed: #set all cards to not exposed
exposed[c] = False
state = 0
card1 =... | [
"matbanbury@gmail.com"
] | matbanbury@gmail.com |
5bcff5cffd28731828328a79715cde3f608f37b3 | 9fefd87bf65dd0be051988ead6fa532ad968371c | /01_MathBasic/ex15.py | 574694f9302e6bc50f1d3caf72765a3d1df5dfee | [] | no_license | et0511/linear-algebra-basics | b94659832dd16342bdc73bace18ab21d1fc3458d | b9f3a91ea9ba5b1011d619d374f238dd56c09c9a | refs/heads/master | 2023-01-22T05:35:56.850516 | 2020-11-20T08:39:14 | 2020-11-20T08:39:14 | 313,239,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # 행렬의 산술 연산: 곱셈
import numpy as np
m1 = np.array([
[1, 2, 3],
[4, 5, 6]
])
m2 = np.array([
[10, 20, 30],
[40, 50, 60]
])
m3 = m1 * m2
print(m3)
m4 = np.multiply(m1, m2)
print(m4)
| [
"shinwon0511@gmail.com"
] | shinwon0511@gmail.com |
27662d158b11bc9bb0943ec4d1b442d23925248b | b75fa0885bc3ba3f153225fd3396aadef6c1f97e | /slides/pypyjs/lib-py3k/modules/_functools.py | e51a4aa7f3b13c9b4d6cc9168e73ea720b598012 | [
"MIT"
] | permissive | rfk/talk-pypyjs-what-how-why | e084303185167dbc9b704c3568e0c31d0a1f6885 | 1ab62ee32ff9495ae9313ec81e8ee2044212ea71 | refs/heads/master | 2016-09-06T05:27:09.800382 | 2015-04-10T03:12:07 | 2015-04-10T03:12:07 | 22,421,369 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | """ Supplies the internal functions for functools.py in the standard library """
try: from __pypy__ import builtinify
except ImportError: builtinify = lambda f: f
sentinel = object()
@builtinify
def reduce(func, sequence, initial=sentinel):
"""reduce(function, sequence[, initial]) -> value
Apply a function of t... | [
"ryan@rfk.id.au"
] | ryan@rfk.id.au |
67794e8492a8a0d2a239e6a7635aae242e301073 | 2837cecedb2ca8992d5afa9ee54102a1e8fa61b6 | /load_cells.py | 51608b92315052125826d9888039a6bac248bfba | [
"MIT"
] | permissive | mirnylab/pdSim | 9023cfe7eac951feac42e3bd4133ce866a0fe0f0 | f08bd75aabf7213e253baf26d219c374a745c8d4 | refs/heads/master | 2023-08-12T12:02:41.855285 | 2019-02-04T22:56:03 | 2019-02-04T22:56:03 | 167,234,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | import os, time, sys, subprocess, numpy, warnings
compilations = 0
def cells(optimization='O3', driver_distribution=0, passenger_distribution=0, tree=0, shape=1, epistasis=2, ctcs=0, explicit_drivers=0, loci=70, cleanup=True):
"""Compile the `Cells` python class for simulating driver & passenger cancer simulatio... | [
"christopherdmcfarland@gmail.com"
] | christopherdmcfarland@gmail.com |
718c5d6df3fbb7fa4262d036e921f1bc27fbdea6 | 686b1b72afb1304ee588f4c6e3303b59e50637ac | /api/v1/core/serializers.py | 4b6153b46a736da7fc726b7d153c9507d5514bf0 | [] | no_license | musamusa/viLogged | e8c31ac620bc29ef9051b3ed3adc6ed6b82986de | df8c8535f74627e2f694a319de656c16ee13d689 | refs/heads/develop | 2020-12-28T22:01:06.344242 | 2019-08-26T11:38:20 | 2019-08-26T11:38:20 | 23,782,381 | 0 | 0 | null | 2019-08-26T11:38:21 | 2014-09-08T07:21:58 | Python | UTF-8 | Python | false | false | 1,375 | py | from rest_framework import serializers, generics
from api.serializer import UUIDRelatedField
from core.models import RestrictedItems, Vehicle, CompanyDepartments, CompanyEntranceNames
class RestrictedItemsSerializer(serializers.ModelSerializer):
appointment_id = UUIDRelatedField(many=False)
class Meta:
... | [
"musakunte@gmail.com"
] | musakunte@gmail.com |
6391caa9b05e6cdd34e7ec19d86a6e782acb9ba7 | 3e9719b1769c721deff50f221dadf7cdc4246d41 | /tradinglib.py | 67653f462a4c59c5b325aed68bd3ca0f558e579b | [] | no_license | bibiebliss/Stock-Trade | 0fd801536d6a5fb618e38aa886da553e731cc059 | 917ecc8930855b9c7b422fb41e849fae278f39bf | refs/heads/main | 2022-12-23T22:59:52.853599 | 2020-10-05T02:27:48 | 2020-10-05T02:27:48 | 301,264,958 | 0 | 0 | null | 2020-10-05T02:26:25 | 2020-10-05T01:32:49 | null | UTF-8 | Python | false | false | 859 | py | """CSC 161 Project Extra Credit
Blessing Babajide
Lab Section TR 12:30 - 1:45pm
Fall 2019
"""
class Stock:
def __init__(self, stocks, funds, price, qty):
self.stocks = stocks
self.funds = funds
self.price = price
self.qty = qty
def buy_stock(self):
if self.funds < (se... | [
"bibiebabajide@gmail.com"
] | bibiebabajide@gmail.com |
fb522f69fd58577faa2abfcb003275ff90a7558f | e12691441e55eb01e9dd82cf64af4a7240c61b91 | /bookstore/migrations/0006_customer_avatar.py | 3494b7387aeb0071150883d9aa0f72ad960c5370 | [] | no_license | MohamadBarmo/django-blog | 1e73eaa532d4a59a7f3b5fca91a719bb73947e90 | bece5201c4e83426304a04660eff1e72b1f98335 | refs/heads/main | 2023-03-30T19:55:23.559317 | 2021-03-31T15:29:59 | 2021-03-31T15:29:59 | 353,382,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 3.1.7 on 2021-03-26 23:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookstore', '0005_customer_user'),
]
operations = [
migrations.AddField(
model_name='customer',
name='avatar',
... | [
"mohamadbarmo@gmail.com"
] | mohamadbarmo@gmail.com |
257a4c1dfc583b7528d2c1d7f10197ea6fd97379 | d207691d2a4280f504d3cce55c0b07d310872e08 | /fcff.py | 40ed2b9673c2cad113c0358823e0df7bfff4f131 | [] | no_license | alifahsanul/intrinsic_valuation_model | d3fb7409e9eb29415297b7fc78002bf93770a6c8 | 7da27b7de2dc3bed84a9b7608dd9f41dd586b189 | refs/heads/master | 2020-05-19T07:21:01.399981 | 2019-05-05T14:12:55 | 2019-05-05T14:12:55 | 184,895,284 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 2 08:26:41 2019
@author: alifahsanul
"""
#from risk_free_rate import y5_riskfree_rate
| [
"alifahsanul@gmail.com"
] | alifahsanul@gmail.com |
26b4902f81b1b2a437e25cf0a0ec40549404bd41 | 84e9eebb9b312311ea697483e9131f21b14c7c00 | /위젯(스타트누르면 게이지차고 스탑누르면 멈춤).py | 48102aac421b68520cceb72198d3b5a0849eeb93 | [] | no_license | kjfdf/PyQT5 | 93c01c47e104f7462ca779345254a45245345fde | 213978cb930d9d4b87b641bad25348919e281bae | refs/heads/master | 2022-12-26T13:39:51.381849 | 2020-09-30T04:48:03 | 2020-09-30T04:48:03 | 295,914,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | import sys
from PyQt5.QtWidgets import (QWidget,QPushButton,
QFrame,QApplication,QProgressBar)
from PyQt5.QtCore import QBasicTimer
class Exam(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
self.pbar=QProgressBar(self)
... | [
"kjfdf1@gmail.com"
] | kjfdf1@gmail.com |
d3d6add1e6ebdc0b1826c2e7587c301ba05ef0a3 | 17640d29494e46083688b7560064186549423cd8 | /firstapp/urls.py | 3603d631877a4ab16a7fd69366dc71457984cec7 | [] | no_license | cerebro1/bftp-django | f5c2b3a201599c1f9f6a6a7330866d21462c0af5 | 3c85816e2a76bf0b544c0862a060e583b4268006 | refs/heads/master | 2023-08-17T00:46:24.845136 | 2021-10-08T11:07:32 | 2021-10-08T11:07:32 | 414,933,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | """firstapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-base... | [
"srivastava.sonali1@gmail.com"
] | srivastava.sonali1@gmail.com |
9a9873d2f6be35b3704f1d00be9a6e1f9b2b3a54 | 65cd2179650f765b273c21c15cc6b70ba1bed9f7 | /utils/configLoader.py | eabea225f8b091556b3df0ee051945eb21559b51 | [] | no_license | cmuehlich/decisionMaking | bd39c43da6cc316511c4b3055beeaf4e0f89277a | d22e3dbaba62584f7ae96357e0b2bc7ea419f86c | refs/heads/main | 2023-03-10T17:53:05.341359 | 2021-02-24T16:50:53 | 2021-02-24T16:50:53 | 335,104,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | from typing import Dict, TYPE_CHECKING
from agents.baseClass import Agent
from agents.mcm import MCMAgent
from agents.mdp import MDPAgent, MDP_SOLVER
from agents.tdl import TDLAgent, TDL_METHODS
from agents.dynaQ import DynaQ, PREDICTION_MODEL_TYPE
from agents.mcts import MCTSAgent
from agents.reinforce import R... | [
"christopher.muehlich@gmail.com"
] | christopher.muehlich@gmail.com |
a56e1a4d979e7c04e5529f06b36b64e8bd597195 | eade1861db1968645e0e17dfaa5250a4b8245b98 | /instacart/lgb.py | d145e050723dd158e83d255a6eeb91d52741768a | [] | no_license | piupiuup/competition | 5b5da56fed336e07cf99cef8f5bfe89a8f771900 | 076c30df3d2647cb3580c543e604375e84590ca7 | refs/heads/master | 2022-09-30T14:47:01.244084 | 2020-05-30T12:56:02 | 2020-05-30T12:56:02 | 268,074,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,569 | py | import os
import numpy as np
import pandas as pd
import lightgbm as lgb
import scipy.stats as scs
IDIR = r'C:\Users\csw\Desktop\python\instacart\data\\'
def f1(y_true,y_pred):
if (type(y_true) == float) or (len(y_true)==0):
if (type(y_pred) == float) or (len(y_pred)==0):
return 1
else... | [
"278044960@qq.com"
] | 278044960@qq.com |
aad2254aa7065c85d2522d31be2fae285c800751 | c892337f5bc4e5a6083d406b03079ee3403deeed | /test.py | 96b3019e506d706235a4822376aa9882ca019b08 | [] | no_license | colesamson16/BramptonCompWork | 802992c34c485b5af84c36d17e9c1ba341354b9a | 87521be1cc1fb12d5cd4a3114a4a3bba5688f26c | refs/heads/master | 2021-09-16T17:05:57.241366 | 2018-06-22T08:58:26 | 2018-06-22T08:58:26 | 110,122,419 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | print('"You've"') | [
"colesamson16@gmail.com"
] | colesamson16@gmail.com |
e0f0dcb4ef5a5927acf08e5307d58110d774410c | 53450ba14b0254f71f0c1b82270a7e2e1005434a | /src/lc680.py | d4cfc7e3f305c3413752a1d9a0ea8bb10405abbd | [] | no_license | PhoebeDreamer/leetcode | 05722f86690c3fc91f8b240c42a855e6963df65c | 81d8f286b1d277a0e7c2f63c7d72729c82f34efd | refs/heads/master | 2021-04-27T04:47:24.408959 | 2018-03-21T14:46:05 | 2018-03-21T14:46:05 | 122,585,627 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | class Solution(object):
def validPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
t = s[::-1]
if s == t:
return True
i = 0
while i<len(s) and t[i]==s[i]:
i+=1
return s[:i]+s[i+1:] == (s[:i]+s[i+1:])[::-1] or t[:... | [
"pheobedong@outlook.com"
] | pheobedong@outlook.com |
80a7bbe98fb1db2e7affb126f6379fbca8deaffa | 0be27c0a583d3a8edd5d136c091e74a3df51b526 | /pro_6.py | cd9f08e7650bc6d5eabf300b5b77d29d6bc94b75 | [] | no_license | ssangitha/guvicode | 3d38942f5d5e27a7978e070e14be07a5269b01fe | ea960fb056cfe577eec81e83841929e41a31f72e | refs/heads/master | 2020-04-15T05:01:00.226391 | 2019-09-06T10:08:23 | 2019-09-06T10:08:23 | 164,405,935 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | n=int(input())
l=list(map(int,input().split()))
c=0
for i in range(len(l)-2):
for j in range(i+1,len(l)-1):
for k in range(j+1,len(l)):
if l[i]<l[j]<l[k]:
c=c+1
print(c)
#no.of triplet...
| [
"noreply@github.com"
] | ssangitha.noreply@github.com |
52f1d2d0e9262b058e839e3fed8eddcd86da8b2d | 19db22bd1b57e3401ff6a8c24dd952b5c6868f03 | /profiles_api/migrations/0001_initial.py | 5ff5aff234c0babb36899b642fa18c8528fd8f26 | [
"MIT"
] | permissive | Amakson/profiles-rest-api | 1409f2c4df0f127e9fd4a1a0fb3ca3dbb3436452 | a02071a1eb6588c9a964066eb40fbccfd4dc4550 | refs/heads/main | 2023-01-18T16:28:58.335451 | 2020-11-22T20:52:21 | 2020-11-22T20:52:21 | 314,962,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | # Generated by Django 2.2 on 2020-11-22 06:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
name='UserProfile',
... | [
"atm1023@p2es.com"
] | atm1023@p2es.com |
794a8182144f40c1e3061d63669bee07b8bc6720 | 3a982efb12359df8c2d5924215c84f619c6a7b01 | /stock/marketdata/bar.py | c872ca56e26071936d7069ef7915838967a3f689 | [
"MIT"
] | permissive | shenzhongqiang/cnstock_py | 1ce4d4507ee546936597287a9a8b3cd2f5995686 | 00f617a2ceda641fd63ef7bd59f7aa6afe91dcc7 | refs/heads/master | 2023-08-26T17:17:02.342889 | 2023-08-13T12:12:59 | 2023-08-13T12:12:59 | 22,781,111 | 2 | 0 | null | 2020-01-06T02:25:06 | 2014-08-09T06:58:02 | Python | UTF-8 | Python | false | false | 966 | py | from stock.utils.dt import *
class Bar:
def __init__(self, exsymbol, date, dt=None, cnname=None, \
close=None, lclose=None, open=None, volume=None, \
chg=None, chgperc=None, high=None, low=None, \
amount=None, pe=None, ampl=None, cvalue=None, \
value=None):
self.exsymbol = e... | [
"zqshen.1985@gmail.com"
] | zqshen.1985@gmail.com |
f46db137e5ffc06d2d219a96623c75d5281f13d1 | 49986759cb09afe8888e87cb5d3d02defedf7fcf | /examples/openpyxl/openpyxl__loadedFiles_example.py | 43f14fe2d32458d4bd9f8b34649c22fd76ea9b62 | [] | no_license | Ze1598/Python_stuff | ca7e8a85ab693efb1909b1aaf3075906419ab43b | df4d9b85eeff4e14c91533135a347b59d52812c7 | refs/heads/master | 2023-04-10T16:50:37.719570 | 2023-03-26T15:06:31 | 2023-03-26T15:06:31 | 117,886,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,790 | py | '''
File that goes over basic operations with the openpyxl module: a
module for working with Excel files (.xlsx) and LibreOffice Calc
(.xls), that is, workbook files.
This file goes over the basic operations performed with these files,
without touching any writing to the files.
'''
import openpyxl
# Used to pretty-pri... | [
"jose.fernando.costa.1998@gmailcom"
] | jose.fernando.costa.1998@gmailcom |
ac4e0815c5dbc6bfdbe8177c87246a26a5657ab7 | 9bd7627f039071874e2f712020a38f1d947f290e | /LINE/main.py | 72010884100d11ec5726475d7f8d6d00bf49a315 | [] | no_license | xiuyu999/NRL-implement | 3cbe70ea707dcdaf19c6bc37c9a2572beef39d89 | 895ea82099268574a4531d0bb38cd30ce3ced254 | refs/heads/master | 2020-07-05T12:12:45.320163 | 2018-06-01T07:12:32 | 2018-06-01T07:12:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | import numpy as np
import networkx as nx
import warnings
warnings.filterwarnings(action='ignore', category=UserWarning, module='gensim')
from gensim.models import Word2Vec
from graph import Graph
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--embed_dim', type=int, default=128, help=u'Dimensi... | [
"wangyk17@mails.tsinghua.edu.cn"
] | wangyk17@mails.tsinghua.edu.cn |
6f3ef8ad3d317b58bdc8a750c23661686421a08f | 810b7b2bb5829bf9ce0d921395ad6ca22563915c | /question-type-fine-num-classifier-builder.py | 19e0daeeb9bccff0320b77706b209ea2dbd8f908 | [] | no_license | daksh-ddt/QuestionTypeClassifier | 5f1ee8e8f017fbe4836e24f943e92dd14ecaebe5 | 33cffbefe1869612f8d39c83bb3e72602060893d | refs/heads/master | 2020-12-25T03:01:05.344465 | 2014-03-22T16:01:24 | 2014-03-22T16:01:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,500 | py | #!/usr/bin/env python
"""
Best score: 0.928
Best parameters set:
clf__alpha: 1e-06
clf__n_iter: 50
clf__penalty: 'elasticnet'
tfidf__norm: 'l1'
tfidf__use_idf: True
vect__max_df: 0.75
vect__max_features: 5000
vect__ngram_range: (1, 2)
vect__stop_words: None
"""
__author__ = 'gavin ha... | [
"gavinhackeling@gmail.com"
] | gavinhackeling@gmail.com |
d64351067c60d186c1b36d2c2daa144f70f80fb5 | 9d931ad4bb1ee0806a0b1012cf551d77199416ae | /isobar/pattern/harmony.py | b1d8ece983fa44e188235e02acd85ed1e43070e7 | [
"MIT"
] | permissive | EnigmaCurry/isobar | 9d8a92c44f9ba7e0eb8b8527fdb1a61691b85fe4 | 05de0d105984b642eeaca3286abf08e02e309362 | refs/heads/master | 2022-05-24T23:07:35.859526 | 2020-04-28T23:05:08 | 2020-04-28T23:05:08 | 259,672,137 | 1 | 0 | MIT | 2020-04-28T15:11:04 | 2020-04-28T15:11:02 | null | UTF-8 | Python | false | false | 576 | py | from isobar.pattern.core import *
class PFilterByKey(Pattern):
def __init__(self, input, key):
self.input = input
self.key = key
def __next__(self):
note = next(self.input)
key = Pattern.value(self.key)
if note in key:
return note
else:
r... | [
"daniel@jones.org.uk"
] | daniel@jones.org.uk |
afdd78cc2e85a8b3dcd42bcff1d69e39aa534067 | a4eeaed612f8fa75618cfb0f1668c7970d20cd48 | /pacman/graphicsGridworldDisplay.py | 2e69ee47cedfb33ab9034684f0f68bc062da939d | [] | no_license | KarolZerna/CodigoInicial | 6140e737d87e6b92fee5fc8ad6dc87dc2ad75e76 | 1cc82174d59eade2b3b04175383b3f47d5083aca | refs/heads/main | 2023-07-30T15:47:14.839389 | 2021-09-24T05:08:42 | 2021-09-24T05:08:42 | 408,992,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,881 | py | # graphicsGridworldDisplay.py
# ---------------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including... | [
"noreply@github.com"
] | KarolZerna.noreply@github.com |
18969a67bf77c7f9480f09063e3a1d23a09cc0f3 | b548d07ae7f530b952738ef101da255286c9bf84 | /scraper.py | 7caed5731cacf9fcb525408291aa520e297ce9b2 | [] | no_license | twperkins/cfc-tech-challenge | 531cf20756706be234afdda45f6d1174ebe94ac6 | fc3ec5077939dbe5e2bcfeb9d4ee3c002e145945 | refs/heads/master | 2023-08-19T21:35:17.426696 | 2021-10-10T16:49:09 | 2021-10-10T16:49:09 | 415,641,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,785 | py | import json
import requests
from bs4 import BeautifulSoup
# FIRST TWO PARTS:
# taking index url, issuing request and saving response
index_url = 'https://www.cfcunderwriting.com/'
index_page = requests.get(index_url)
# empty dict for externally loaded resources
ext_resources = {}
# json files to be written to
scrap... | [
"85560933+twperkins@users.noreply.github.com"
] | 85560933+twperkins@users.noreply.github.com |
4a6ae07a1102821e916a968b3fa462a80153f751 | 97b6f1884a5b8a024524e2d31ab162cdb37cfac9 | /ba.py | 575385ff9dec8c549c922164013de7e9faf9f6e8 | [] | no_license | argharoy/Routine-Generation-System | 3994d3aa6356167a857fd711acf716cb87d747d0 | d211133065c30e567e6f9d697991538d2239f053 | refs/heads/master | 2021-07-13T22:27:41.184200 | 2017-10-18T16:51:24 | 2017-10-18T16:51:24 | 107,436,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,915 | py | import random
from reportlab.lib import colors
from reportlab.lib.pagesizes import letter, inch
from reportlab.platypus import SimpleDocTemplate, Table, TableStyle
balancer, balancer_2, balancer_3 = ([] for i in range(3))
for i in range(0,6):
l = [None for _ in range(7)]
balancer.append(l)
for i in range(0,6):
l ... | [
"noreply@github.com"
] | argharoy.noreply@github.com |
da3d523da6c6d86cd42eea8058311f7e455f6235 | 3cf28604c1f0fa4cde2bbde3e173daca13c0ed5f | /cooks/widgets.py | 0bedb788cc6474741f9fbecf48139d270cc7a1f7 | [] | no_license | cromanstata/stage9 | ac4761ec62932b391918880ef94053e2c82dffc6 | ae127fcaa21561bd28ea5e815d7bbaa1119978c4 | refs/heads/master | 2021-01-20T07:04:57.004587 | 2017-06-18T22:24:43 | 2017-06-18T22:24:43 | 89,953,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | from django.forms.widgets import ClearableFileInput, CheckboxInput, FileInput
from django.utils.translation import ugettext_lazy
class ClearableIMGInput2(FileInput):
clear_checkbox_label = ugettext_lazy('Clear')
initial_text = ugettext_lazy('Currently')
input_text = ugettext_lazy('Change')
template_na... | [
"cromanstata@gmail.com"
] | cromanstata@gmail.com |
2a5efff102c4a2919f73211d409750b6f210d7c8 | 8aa9ecfe421b196589b6c9fdc0e954d02d927feb | /sphinx/source/docs/user_guide/examples/data_linked_brushing_subsets.py | 49c98cd13e1f65a5c2be6677d3b998058f107edb | [
"BSD-3-Clause"
] | permissive | hongyu9000/bokeh | b384484925c6c145e4eaf87460a3f776095e81ed | b19f2c5547024bdc288d02e73fdb65e65991df5f | refs/heads/master | 2020-09-03T15:57:31.157443 | 2019-11-04T05:25:46 | 2019-11-04T05:25:46 | 219,503,733 | 1 | 0 | BSD-3-Clause | 2019-11-04T13:06:20 | 2019-11-04T13:06:19 | null | UTF-8 | Python | false | false | 1,055 | py | from bokeh.plotting import figure, output_file, show
from bokeh.layouts import gridplot
from bokeh.models import ColumnDataSource, CDSView, BooleanFilter
output_file("linked_selection_subsets.html")
x = list(range(-20, 21))
y0 = [abs(xx) for xx in x]
y1 = [xx**2 for xx in x]
# create a column data source for the plo... | [
"bryanv@continuum.io"
] | bryanv@continuum.io |
89b0febfd0133cdd321c9b75aa4a6821c3ab46b6 | 353bd427a458cdf4ca101da98c9bd8eae35729a5 | /hyperopt/tests/test_mongoexp.py | 474a6504e809bcef286b1540c986529ac11dba2c | [
"BSD-3-Clause"
] | permissive | dodgejesse/random_search_using_discrete_dpp | 2747ff05b0b4f7c1c6878bcd5da76b6e1c8ff0bb | 895b0856952d2177a6eec0e44107d81276fb0cc5 | refs/heads/master | 2021-01-21T21:19:23.480012 | 2017-06-23T21:49:25 | 2017-06-23T21:49:25 | 94,817,460 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,781 | py | import cPickle
import os
import signal
import subprocess
import sys
import threading
import time
import unittest
import numpy as np
import nose
import nose.plugins.skip
from hyperopt.bandits import gauss_wave2
from hyperopt.base import JOB_STATE_DONE
from hyperopt.mongoexp import MongoTrials
from hyperopt.mongoexp im... | [
"dodgejesse@gmail.com"
] | dodgejesse@gmail.com |
e098de09b5f9d21865c2946a31e226326f0089d5 | e07a0b8a5560c20e5205a1609187b3c09e621ba2 | /mininet/mininet/clickgui.py | 08ba93e06e682aca95d171ec914a18f0c8b47cfd | [
"LicenseRef-scancode-x11-stanford"
] | permissive | nemethf/escape | 11958e9280fabc80a62c0a6dfd22720c4d127e7a | fb48c609b689d6a30f437ddd626d62f4ad7a7a5c | refs/heads/master | 2020-05-27T14:28:54.880959 | 2017-03-02T09:16:50 | 2017-03-02T09:16:50 | 23,956,377 | 11 | 12 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | """
Click GUI creation (cleanup is the same as for xterms).
Utility functions to run a click gui (connected via socat(1)) on each host.
Requires socat(1) and clicky.
"""
from pkg_resources import resource_filename
from term import *
from log import error
from util import quietRun, errRun
def defaultCcssFile():
r... | [
"nemethf@tmit.bme.hu"
] | nemethf@tmit.bme.hu |
b9ae2e9946a3611c2159abe0a20a624591d0eeca | 01abb5fe2d6a51e8ee4330eaead043f4f9aad99d | /Repo_Files/Zips/plugin.video.streamhub/resources/lib/ssources/moviesplanet.py | 60b053928b8fa5b276249a2f1673279da57f3e1c | [] | no_license | MrAnhell/StreamHub | 01bb97bd3ae385205f3c1ac6c0c883d70dd20b9f | e70f384abf23c83001152eae87c6897f2d3aef99 | refs/heads/master | 2021-01-18T23:25:48.119585 | 2017-09-06T12:39:41 | 2017-09-06T12:39:41 | 87,110,979 | 0 | 0 | null | 2017-04-03T19:09:49 | 2017-04-03T19:09:49 | null | UTF-8 | Python | false | false | 7,208 | py | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 Exodus
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any l... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
c12557241b90baf692bac665173ae293dc82e536 | 17fb0d661d029a3fe19b0216f1c77b6415663730 | /tune/tune.py | f30873d4f3a57b1097bbdd7ee94180127b5dc431 | [] | no_license | turnaround0/UpliftModeling | 27b3a05641129b793d6945da630e9f766ef9415b | d56c815e1efd4f982cf4b039f046ecfa7c03a2d5 | refs/heads/master | 2020-07-06T18:07:09.372881 | 2019-10-04T04:29:43 | 2019-10-04T04:29:43 | 203,098,585 | 1 | 0 | null | 2019-09-20T03:03:04 | 2019-08-19T04:32:34 | Python | UTF-8 | Python | false | false | 4,091 | py | import time
import numpy as np
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from tune.niv import niv_variable_selection
from tune.param import parameter_tuning
from tune.wrapper import wrapper
from utils.utils import load_json, save_json
def get_tuning_data... | [
"turnaround0@gmail.com"
] | turnaround0@gmail.com |
569642df642f06f1d91ddea7d08f53d9c1b07656 | 2b2002faecb5f5c7d289a3d0114b51a37b717074 | /AWS-Lambda-Function_votd-slack.py | bb5a47eb37389176c47bd4af8d6de3d2136aa133 | [] | no_license | scottteal/viz-of-the-day-slack | d30a2eb477d5d6fb017e3ea16d8d4b9270ae89a8 | 924d5aaa4917ede02ab18427f8f4bd861d1c8db8 | refs/heads/main | 2023-03-08T03:43:50.212140 | 2021-02-18T23:12:01 | 2021-02-18T23:12:01 | 339,567,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | import requests
import json
import os
SLACK_TOKEN = os.environ['SLACK_TOKEN']
SLACK_CHANNEL = '#viz-of-the-day'
votd_url = "https://public.tableau.com/s/api/votd"
response = requests.get(votd_url).json()
description = response["nodes"][0]["node"]["description"]
title = response["nodes"][0]["node"]["title"]
image_src ... | [
"noreply@github.com"
] | scottteal.noreply@github.com |
2225e9a6d6f5339e5320181e36e90882300ebf80 | 0489ccf5efa50115fdb3b1a173f25fd4097e3f91 | /config/urls.py | 5670ef6a1d34ba0af7a17e36606029ab7f73a54e | [
"Apache-2.0"
] | permissive | fleetspace/missioncontrol | 9a9175316c63555b31a727cebe690ec36e2045dc | c5b06e6d81ace1957161ebf2f9dacec05badde7d | refs/heads/master | 2022-12-10T15:20:40.356430 | 2022-04-28T05:30:53 | 2022-04-28T05:30:53 | 165,792,891 | 12 | 5 | Apache-2.0 | 2022-12-08T09:33:06 | 2019-01-15T05:48:38 | Python | UTF-8 | Python | false | false | 1,331 | py | from django.conf import settings
from django.urls import include, path
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpatterns = [
# Django Admin, use {% url 'admin:index' %}
path(se... | [
"louis.deslandes@fleet.space"
] | louis.deslandes@fleet.space |
ed4815baddc34eb47a70d2fc3ba8eeddecc43581 | 302a620683639933011899d6b4421bc650b8b3bf | /python/Individuele oefeningen/Rubriek Iteraties/in_oef_18.py | b4da6ab004c6b25192d4720f7b7f63410b3c4c4e | [] | no_license | SimonDemeyere/courses | 8ee27b8d8d12bfa68e7652ae7dadf4134bdc4076 | edddeb7df6045e32472513859b27d20c9dc868c1 | refs/heads/master | 2023-01-09T11:59:23.795183 | 2019-11-14T22:19:37 | 2019-11-14T22:19:37 | 208,781,695 | 0 | 0 | null | 2023-01-04T16:42:31 | 2019-09-16T11:20:56 | JavaScript | UTF-8 | Python | false | false | 256 | py | import random
number = int(input("Geef een getal:"))
randomNumber = int(random.randint(1, number))
print(randomNumber)
while (number != randomNumber):
number = int(input("Geef een getal"))
print(number)
print("Gefiliciteerd, het getal was ", number) | [
"Simon.demeyere@hotmail.com"
] | Simon.demeyere@hotmail.com |
18fb17180568bcb70b9d29841a11accc9e815bd2 | 8323106ba2d6b8dd9bccdd1f469a3aeef89628c3 | /pursuit/state.py | 08d9f353e875a3760fead04d395cfdf4f3cd4b9a | [
"MIT"
] | permissive | goncalo-rodrigues/thesis | dd46a82860559a769e4100a8e1d805cdbe05998b | c6d531b72ddeaf2320a4346912df5519138d11d7 | refs/heads/master | 2021-10-12T02:48:07.190359 | 2019-01-31T19:33:31 | 2019-01-31T19:33:31 | 122,038,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,453 | py | import random
import numpy as np
from pursuit.helper import neighbors, cornered, distance, directionx, directiony
class PursuitState(object):
def __init__(self, agent_positions, prey_positions, world_size):
assert(isinstance(agent_positions, tuple))
assert(isinstance(prey_positions, tuple))
... | [
"goncalo.alfredo.rodrigues@gmail.com"
] | goncalo.alfredo.rodrigues@gmail.com |
d087519ce02b0b4b2b9a6e50bb93d85e83a78380 | 68b8088530a5f4e22d34fed7c12bdb910180193a | /013/matrix.py | 6c6cc4b5c4947da0658b3409b4b6f825f69b7544 | [] | no_license | hieusydo/Project-Euler-Playground | 85de42e0ef229a509f959fefdd6c1cc989c130c8 | a08e9c7d2e1f3d658f2b9ba32784062dea4a3c58 | refs/heads/master | 2021-06-03T01:52:17.612185 | 2016-02-17T06:30:45 | 2016-02-17T06:30:45 | 43,009,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import timeit
start = timeit.default_timer()
#Load 100 50-digit number
mat =[]
matrix = open('50digitnumber.txt', 'r')
for i in range(100):
line = matrix.readline().strip().split()
for j in line:
mat.append(int(j))
matrix.close()
#++++++++++FASTEST AND EASIEST WAY TO SOLVE++++++++++
print(str(sum(mat)... | [
"hieusydo@gmail.com"
] | hieusydo@gmail.com |
6e193a9bd51bd3f2a5c1c66b2a8fcc1173df3dbe | ab243dd7819418705a89d8d50cbc3c104a60d2f4 | /demo.py | 094a2c22a35ab2ac32374693af873bf5037d708f | [] | no_license | GeekDot/sendMailLib | 20834b9c63bd962d6f3ecd8bb44674e52eed8ae1 | 7d3c44a2b02b2de7bd95ad3f075f411c22c37e6f | refs/heads/master | 2022-11-15T08:40:36.421397 | 2020-07-16T02:37:36 | 2020-07-16T02:37:36 | 280,031,895 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from emailSendLib import es
# 发送文本格式
# 发送文本 send_type 参数需要指定为 plain,因为 plain 为默认参数所以可以忽略
es.send('测试邮件(标题)', '测试邮件(内容) - 文本')
# 发送 html 格式
# 发送 html send_type 参数需要指定为 html
es.send('测试邮件(标题)', '<h2> 测试邮件(内容) - HTML </h2>', send_type='html')
# 发送带有 [附件] 的格式:
# 发送附件 send... | [
"zhangyi@yeeyoon.com"
] | zhangyi@yeeyoon.com |
741af7c3e798bb5ec67f95ad3116c1635c8b4701 | 5b8aaa4f70d6710b81033aaa300563ce23ae114d | /OpenNMT-py/onmt/inputters/text_dataset.py | 4d867f309a88e9534225534c1d672d63b532d725 | [
"MIT"
] | permissive | takatomo-k/Code | 2cbfe9481abc026e3664a16421b9f12c9b550b51 | 54ec9f656579610c86acb3276bf0d26dbe9d8761 | refs/heads/master | 2020-04-04T16:00:15.612724 | 2018-11-27T11:32:59 | 2018-11-27T11:32:59 | 156,060,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,732 | py | # -*- coding: utf-8 -*-
"""Define word-based embedders."""
from collections import Counter
from itertools import chain
import io
import codecs
import sys
import torch
import torchtext
from onmt.inputters.dataset_base import (DatasetBase, UNK_WORD,
PAD_WORD, BOS_WORD, EOS_WORD... | [
"kano.takatomo.km0@is.naist.jp"
] | kano.takatomo.km0@is.naist.jp |
6c9987be0977d39de89f36b3971177e9ea3dd3d8 | 27f23c635b65b60ad9ba35f895c2107b68ef394f | /mcmc/many_chains_ihm.py | 44e32257f2d5bd15f5babdfc8299055d257e7bbb | [] | no_license | marcantoinedor/halomodel_mcmc | 536a51e842386c33ee34083fbb0abeee35104fcb | e2bd2cb018c22b9b3fde8e787f59c653e4a81a08 | refs/heads/master | 2020-06-20T09:31:41.817641 | 2019-08-24T14:12:50 | 2019-08-24T14:12:50 | 197,078,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | import scipy.optimize as op
import numpy as np
import matplotlib.pyplot as plt
import os
import sys
import pygtc
SMALL_SIZE = 8
MEDIUM_SIZE = 10
BIGGER_SIZE = 20
plt.rc('font', size=BIGGER_SIZE) # controls default text sizes
plt.rc('axes', titlesize=BIGGER_SIZE) # fontsize of the axes title
plt.rc('axes'... | [
"marc-antoine.dor@ensta-paristech.fr"
] | marc-antoine.dor@ensta-paristech.fr |
7af29a7adb10691bd1d3489aa0ba317b07c05725 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03433/s436709756.py | e163d74f4c2ebdcbfc9df05eb5845a02f71786d2 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | import sys
def input(): return sys.stdin.readline().strip()
def resolve():
def main():
n=int(input())
a=int(input())
for i in range(21):
for j in range(a+1):
if 500*i+1*j==n:
return 'Yes'
return 'No'
print(main())
resolve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0060ee74ff5f5c20f682b2a84db8a0b7a8ee1871 | 598d9669ddf43e380ae306d120d0b20cf14f1f46 | /pyHomeEnv/bin/flake8 | 530a0d16a3419e0132dad085c1ea738a0f9c7c6e | [] | no_license | piotrek204/pyHome | 4737fcab20fe4041595e76873e66e9dfb4a40128 | 7e3160466210bae9f436cb476c5850c3d0b044e2 | refs/heads/master | 2022-12-13T14:28:17.332597 | 2019-01-28T16:20:02 | 2019-01-28T16:20:02 | 165,508,628 | 0 | 0 | null | 2021-06-01T23:20:48 | 2019-01-13T13:29:50 | Python | UTF-8 | Python | false | false | 251 | #!/home/piotrek/piotro/pyHome/pyHomeEnv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flake8.main.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"piotr@sznapka.pl"
] | piotr@sznapka.pl | |
7fe8b941eeb429f684e65c486671d86484650a8f | 665b955e73418b7a6e1bc24d129b52137153eb78 | /4th_hw/multilayer_perceptron.py | 29314b0ab352d0c6c8c76b9743ed25347ab23c76 | [] | no_license | wattai/Sequential-Data-Modeling | 5afd004c3c633d3a82efd05d10c3ff3fedbad6ac | 39f4296739ca5c6b351fdc5c6e034ec8602baa77 | refs/heads/master | 2020-04-01T10:08:41.911591 | 2018-11-06T07:53:40 | 2018-11-07T01:04:33 | 153,104,522 | 0 | 0 | null | 2018-11-06T07:53:41 | 2018-10-15T11:54:18 | Python | UTF-8 | Python | false | false | 2,523 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 26 11:42:55 2018
@author: wattai
"""
import numpy as np
from copy import copy
import links as L
class Network:
def __init__(self, layers, loss, lr=0.1):
self.lr = lr
self.layers = copy(layers)
self.loss_value = None
self.y = None
... | [
"10399305+wattai@users.noreply.github.com"
] | 10399305+wattai@users.noreply.github.com |
4079e5cf7f40dde9ecad04547aba99f07d454395 | 8a3f0a9db687116211bf87ccfc5ec7b51a379def | /test_framework/config.py | 4f503ae75511888033b0a98bb6c59cdaba43c7f1 | [] | no_license | seehidre/FTSG | 5d991643230dae45dc6f925b1d95b1d83953a5bc | a2dc81433b9dfd7286cd638ebaa138ab1db5bfb4 | refs/heads/master | 2020-06-27T21:29:49.282520 | 2016-06-10T17:54:25 | 2016-06-10T17:54:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | from test import Test
#Compile settings
APP_NAME = "FTSG.exe"
OPENCV_INCLUDES_DIR = "test_framework/opencv/include"
OPENCV_LIBS_DIR = "test_framework/opencv/libs"
COMPILE_DIR = "Debug/"
SLASH = "/"
LIBRARIES = " -llibopencv_calib3d300 -llibopencv_core300 -llibopenc... | [
"k4mil.piszczek@gmail.com"
] | k4mil.piszczek@gmail.com |
69044e85d52cf5fd37ecb0fe0535abe2bd9f288a | b138ca8ad1030f310a1e7685471dd5a177e00a15 | /basico25Conversor/main.py | 6651f819498fe4e6dfbb92aeec9026e1443875f6 | [] | no_license | yoli1980/CursoPython | c191562e444a5d4868c9828a5386dca880d58195 | b3a4f54942b0148a405bde29f66796d067b30c1d | refs/heads/master | 2021-04-08T04:45:49.306699 | 2020-04-19T12:12:01 | 2020-04-19T12:12:01 | 248,741,373 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py |
from PyQt5 import QtCore, QtGui, QtWidgets
from ventanas import ventana_principal
import sys
#tareas sobre el conversor:
# 1- Crear una aplicacion que permita la conversion de euros a un
# tipo de moneda a elegir por el programdor
# 2- Añadir 2 botones mas para poder transformar a otros dos tipos
# de mo... | [
"noreply@github.com"
] | yoli1980.noreply@github.com |
335c87cc93a10de387677484e2a7b19f2b27cc54 | 796a18ac82528968a59e8d3829f2f47415df1778 | /src/transkribusServer.py | 96a8c77d426261220ee5cf86936bbd05525533ae | [] | no_license | qrzeller/transkribus-recognition-improvement | e882eaeb12e95fe32d1d4ca153e31518e88b2321 | 97af203e60203a0086cc2e8ac33e0424801a11d5 | refs/heads/master | 2022-12-15T07:02:26.757604 | 2019-07-03T13:40:59 | 2019-07-03T13:40:59 | 178,247,516 | 1 | 0 | null | 2022-12-08T01:22:13 | 2019-03-28T16:59:48 | Python | UTF-8 | Python | false | false | 2,199 | py | import os
from TranskribusPyClient.src.TranskribusPyClient import client
class TrtanskribusServer():
def __init__(self, user, password, colId=-1):
self.s = client.TranskribusClient()
if self.s.auth_login(user, password): print("Login successful")
else: print("Cannot login")
self.c... | [
"quentin@zeller.xyz"
] | quentin@zeller.xyz |
711ef1d902fdb1f8db2c88e55e3da7671dffe1c3 | c974cf94626d04a83f3d5ccb25e06a99df537e21 | /python/ray/rllib/dqn/models.py | c3f4a08eb943e954dbe72a3c3e31f0a9cde49a0b | [
"MIT",
"Apache-2.0"
] | permissive | vtpp2014/ray | 00db3465812eb85890351dd345c43d2ed29745b8 | 4e4a4e4e062d37f3fb1c518ea5b0d0d7a32e5a60 | refs/heads/master | 2021-01-21T09:20:47.322556 | 2017-08-31T06:40:46 | 2017-08-31T06:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,153 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import tensorflow.contrib.layers as layers
from ray.rllib.models import ModelCatalog
def _build_q_network(inputs, num_actions, config):
dueling = config["dueling"]
hiddens = c... | [
"pcmoritz@gmail.com"
] | pcmoritz@gmail.com |
977adbcee4f7e66c212151bd3cd2debce6e3a296 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/datamgr/metadata/metadata/service/cli/sync.py | c2b92b897f7fd23b10f29fadae1e110bf5e28230 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 2,562 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
---------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
8861ccb2c3b1bf7135e05fdbc7b3f8b9aca4a158 | adeaef2acd48104a6b86a22a0fb10555bb195a6e | /Robotics/roombaSim.py.bak | ef339c6dc119a432a823ce41c0978dc11be76442 | [] | no_license | divir94/Python-Projects | 585d8993688234f19044e4477e131c2c278ab34c | eced0cc854c7165f688ce55b573331492b370e7e | refs/heads/master | 2021-01-18T21:12:33.105877 | 2016-05-01T02:27:57 | 2016-05-01T02:27:57 | 17,325,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,860 | bak |
import random
import time
import math
GLOBAL_DELTA = 10.0 # 1/2 the distance between the wheels
class RoombaOdometricPosition:
def __init__(self, x_in=0., y_in=0., thr_in=0.):
self.x = x_in
self.y = y_in
self.thr = thr_in # radians from 0 to 2pi - change to thr sometime...
self... | [
"divir94@gmail.com"
] | divir94@gmail.com |
515af06f2fbfb307c993a49fbf56281b16588955 | 4d88a5c43a62fa2c302ffca8e747180a81599805 | /dataframe.py | d19dbc43dd5af3ab74250daf95623faf0459cec4 | [] | no_license | ShashankTekriwal/Political | aea5ec6c5e7e8bff1b5f351754e519307a7f3c19 | e64aa40b4dcd87716244957d2a789781712b0fb2 | refs/heads/master | 2020-12-24T13:44:54.136498 | 2015-06-11T11:13:53 | 2015-06-11T11:13:53 | 37,256,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | import os
import json
from datetime import datetime, timedelta
from pandas import DataFrame
from pprint import pprint
import re
import pickle
date = []
# date1 = '2013-8-1'
# date2 = '2013-12-31'
date1 = '2014-1-1'
date2 = '2014-5-31'
start_date = datetime.strptime(date1, '%Y-%m-%d')
end_date = datetime.strptime(date2... | [
"shashank.internet@gmail.com"
] | shashank.internet@gmail.com |
751552682d6dacc501f7a74a2229a18f96618803 | 4d98c4f73fc912a1425d75fde6b843a409928694 | /choraoipsum/__main__.py | 8b2c285cad5887fdc513c814f909d0b1957259f3 | [
"MIT"
] | permissive | williamroot/choraoipsum | a5b5af3e3ba47c8b58800c97fb0e64af08d771c1 | b584a6cc566ee5fc7042f17fcd439cf7d15b2b20 | refs/heads/master | 2021-01-11T04:51:24.954464 | 2016-10-18T20:16:48 | 2016-10-18T20:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | import click
from . import ChoraoIpsum
@click.command()
@click.option('--count', default=100, help='Number of Choratims.')
def main(count):
click.echo(ChoraoIpsum(count).get_text())
# Call application
main()
| [
"igr.exe@gmail.com"
] | igr.exe@gmail.com |
23c16b86ee4cd931eb7d947d7e05dedee65786b6 | 505951fdcbf4e17eb9d3871942cf853650bcec37 | /core/adminpanel.py | 2d4150cfa45073dfd1cad97b35cb4ba673845f5c | [] | no_license | FraternityInfoSec/Blackpearl-framework | 9bf5fa24fc4f554f7c7fbdf4c5fed9f947715654 | e29769a08888590f3291a0278eaba445c9951b39 | refs/heads/master | 2023-04-10T13:04:31.313272 | 2021-04-29T05:26:27 | 2021-04-29T05:26:27 | 275,080,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | from urllib2 import Request, urlopen, URLError, HTTPError
def findAdmin():
f = open("link.txt","r");
link = raw_input("Enter Site Name \n(ex : site.com or www.site.com) > ")
print "\n\nAdmin Panels > \n"
while True:
sub_link = f.readline()
if not sub_lin... | [
"noreply@github.com"
] | FraternityInfoSec.noreply@github.com |
8abc95bec8038849f64be347049b2fc2a6223c08 | 643eb2b2a461549251895379f0a185efbdbb8645 | /env/Scripts/createfontdatachunk.py | 6d5d146812c101a634e3f3421ace16f6a66dbc62 | [] | no_license | MSAmit/aussiestocktrader | 17d0a85f6e4653b6902aad1565fcc9839637f8ea | 54db305230397da993d335bd557fefd493ddb7ed | refs/heads/master | 2022-11-17T01:35:10.901973 | 2017-09-06T14:40:33 | 2017-09-06T14:40:33 | 92,906,927 | 0 | 1 | null | 2022-11-03T08:31:18 | 2017-05-31T05:14:29 | CSS | UTF-8 | Python | false | false | 614 | py | #!c:\users\meamit\desktop\aussiestocktraderdjango\aussiestocktrader\env\scripts\python.exe
from __future__ import print_function
import base64
import os
import sys
if __name__ == "__main__":
# create font data chunk for embedding
font = "Tests/images/courB08"
print(" f._load_pilfont_data(")
print(" ... | [
"shanksamit123@gmail.com"
] | shanksamit123@gmail.com |
4794de09d764f74cfe105525e44b5fe84f3e1959 | b23fc23a782f672f1d6a361deb0677ae32273477 | /Server_Client_Broadcast/server.py | ce5fa15a2b735faa36c4e0d07005e45d1674c642 | [] | no_license | deenee13/Python_Programs | 729af2518ae2bd1821beef7f28888859d0be042a | 15693cedc69057b020f067b60e7a665d8889993c | refs/heads/master | 2022-12-10T16:55:42.465544 | 2020-07-16T01:13:02 | 2020-07-16T01:13:02 | 273,612,790 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | #################################################################
# Date: 06/30/2020
# Name: Deepen Parmar
# Description: This code is about the Server broadcasting the
# message to all the Connected clients
##
##################################################################
# Socket is the endpoint that receives da... | [
"deepen@deepens-air.lan"
] | deepen@deepens-air.lan |
8bc0bea26ee08645ad5f3477454cbb4412ca2cb6 | 747f759311d404af31c0f80029e88098193f6269 | /addons/productivity_analysis/__init__.py | d208633981a8c8e0baff59ac77e9e3b9b6a2b1e5 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | /home/openerp/production/extra-addons/productivity_analysis/__init__.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.