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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c6ad23573189e89a657dbedf5813bc172c22b7cd | 24b08fe0f9aaf1ae36d592b4e9610bccc0c275e4 | /blog/models.py | 4b7421680e7e743425fc6807bd86f59f015be5e0 | [] | no_license | snehmankad/Corey-Schafer-Django-Blog | 4108f56365982e4588985e374640ae01b5a94980 | f33530d57b6cf1e8dc6eca8b821e51fb16b1c811 | refs/heads/master | 2022-12-15T19:25:13.608175 | 2020-09-06T20:45:57 | 2020-09-06T20:45:57 | 293,356,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length = 100)
content = models.TextField()
date_posted = models.DateTimeField(default... | [
"52824859+snehmankad@users.noreply.github.com"
] | 52824859+snehmankad@users.noreply.github.com |
b3885f80a7017c005cf61766beb7ddaa0369d604 | bba0159d2991ed8e8450cd85d902b89cf6b486f3 | /config/urls.py | c38338a8ed25b8b7a7b3c255370c3e5dfea56754 | [
"MIT"
] | permissive | dzhfrv/django-base-app | 548562f1cb4109f68f4a7e6c104691abe1a6762c | 9dcc27a2e75e7aa3c6d31b468f089e0b70f52df9 | refs/heads/main | 2023-01-02T13:15:11.612938 | 2020-10-29T18:14:11 | 2020-10-29T18:14:11 | 308,393,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py |
from django.contrib import admin
from django.urls import path, include
v1 = [
path('v1/', include('apps.user.urls')),
]
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include(v1)),
] | [
"solomonickey@gmail.com"
] | solomonickey@gmail.com |
0eba2e2b51b28f73626d4731ff56290996caf4eb | 62494569ad62bae44c13499dc222ffa0301541cb | /Final Code/3. Train Network.py | 6b08d436b95f8e9ff96d5cd3d7ee455c3551e972 | [] | no_license | rendorHaevyn/Project_WinLife | b1f5c71a338b366cfe094e7aef296bc982e52a2f | ef409e7e56c57a17ccb69f2183ddca42cae0039a | refs/heads/master | 2021-07-09T15:20:03.979369 | 2018-12-09T22:08:28 | 2018-12-09T22:08:28 | 132,147,130 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 51,940 | py | from __future__ import print_function
import numpy as np
import random
import pandas as pd
import sklearn
import sklearn.decomposition
import sklearn.ensemble
import sklearn.preprocessing
import sklearn.cluster
from sklearn import *
import math
import gc
import os
import sys
import itertools
import threa... | [
"noreply@github.com"
] | rendorHaevyn.noreply@github.com |
f0b2fd63ab10a9a07a323590d9f9ac4a841cc01d | 07a4d568e01ed82ab71f4a5e0916c872249c23c3 | /morris_api.py | 43128f9d9165881b45912c10c32025e04e6ded94 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | joshuaeveleth/MorrisDataDecorator | 04d20bc5c3d0e78f754e47df7ba0315fe38507b5 | a148b579082772c9e43f1aad484e5f8a3520ecc1 | refs/heads/master | 2021-01-12T08:01:44.073946 | 2014-07-30T19:23:58 | 2014-07-30T19:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,715 | py | from bottle import Bottle, template,request,TEMPLATE_PATH,static_file,response
import morris
import morris_memory
import morris_solr
import StringIO
import sys
import logging
import morris_config
logger = logging.getLogger('morris_api_logger')
hdlr = logging.FileHandler('../logs/morris_api.log')
formatter = logging.F... | [
"read.robert@gmail.com"
] | read.robert@gmail.com |
355a6738a78d86716336d103611c3358a7811bbf | d4b775d45053fb791392d956da1f0c427a869e78 | /search.py | f852f5dc2e3ba88461c30a46961114b927a25f93 | [] | no_license | sirlancer/reinforcement_learning | 545d6cbf0c1f6986b2a7f1b1dea0c7495d20d2a6 | f4a23c76a89f9d4babe9a345c5e125f061f25620 | refs/heads/master | 2021-01-23T22:30:55.311524 | 2017-09-09T08:22:11 | 2017-09-09T08:22:11 | 102,938,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | py | import numpy as np
import pandas as pd
import time
np.random.seed(2)
N_STATES = 6
ACTIONS = ['left', 'right']
EPSILON = 0.9
ALPHA = 0.1
LAMBDA = 0.9
#训练回合数
MAX_EPISODES = 13
FRESH_TIME = 0.3
#创建 q 表
def build_q_table(n_states, actions):
table = pd.DataFrame(np.zeros((n_states, len(actions))), colu... | [
"920365914@qq.com"
] | 920365914@qq.com |
795516fb98dfa791ca739785a945225f18ddd615 | a8b311f6c579a70cdca12cdff73aca18ddf5e1f4 | /DataAnalysisMethods2/2cvic.py | 79b6e882c9b92b0d404833d23c1e9d09cd035cce | [] | no_license | MarekUlip/CollegePythonScripts | ec09c7730752b7bd6b85fe523470acf9d124df53 | 9133a864ab301d9076394ce9345faa5c2c878adf | refs/heads/master | 2022-11-13T12:15:56.198341 | 2020-07-06T22:26:26 | 2020-07-06T22:26:26 | 277,658,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,111 | py | import csv
import math
import os
import random
import matplotlib.pyplot as plt
def count_min_probabilty(n):
return math.log(n) / n
def count_prop_for_edges(num_of_edges, n):
return (num_of_edges * 2) / (n * (n - 1))
def create_random_graph(n, p):
edges = []
# p by melo by vetsi nez 0,000921 pro 1... | [
"marek.ulip@gmail.com"
] | marek.ulip@gmail.com |
58072c21f9c9605e3e4037d7720b652bca3fb124 | da2ba8fa3342bb317bed49832310ace66007f5da | /tests/api/utils/test_alembic_util.py | 9ab78537607e8c3ee9814901aad899872234c777 | [
"Apache-2.0"
] | permissive | joaovitor3/mlrun | 8316ee456a3306e2d9674ab875c84fd917412f66 | 9ad9a6b7ad900c29a9fada7223a5a3123a1a53ef | refs/heads/master | 2023-03-12T17:30:40.046032 | 2021-02-28T12:28:16 | 2021-02-28T12:28:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,494 | py | import alembic
import alembic.config
import os.path
import pathlib
import pytest
import shutil
import typing
import unittest.mock
import mlrun.api.utils.alembic
from mlrun import mlconf
class Constants(object):
revision_history = ["revision2", "revision1"]
initial_revision = "revision1"
latest_revision =... | [
"noreply@github.com"
] | joaovitor3.noreply@github.com |
dd15e0124743808ae86ae4b6673293253dba1faa | a127d0feb3bcf4f2581f385bb24f2b789c771c9c | /10syo/95.py | aeb744b4427f8299c65072421e15fe33f65d4d91 | [] | no_license | NgoVanDau/nlp100knock | 01383e4cc5a1470508744668103b9ea1a238b892 | 3ef63c0d2dfb55c0e6a31aced645f284325a98a5 | refs/heads/master | 2023-03-22T13:19:23.932429 | 2018-08-05T05:27:11 | 2018-08-05T05:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # coding: utf-8
import numpy as np
fname_input = 'combined_out.tab'
with open(fname_input, 'rt') as data_file:
# 類似度の配列作成
human_score = []
my_score = []
N = 0
for line in data_file:
cols = line.split('\t')
human_score.append(float(cols[2]))
my_score.append(float(cols[3]))... | [
"kota.k.1132.pda@gmail.com"
] | kota.k.1132.pda@gmail.com |
6deb1c1dc2a5dc573a565342c04f98f906e1d989 | 9f9d699444208a203a0c666c87a64f675a6541e4 | /Recommendations.py | 5c764bfa33509543f355b356cbb73349306814eb | [] | no_license | KiratiBhuva/Yelp-Recommendation-Analytics | ba231e6c1a4f993620abd51e731e1c5cced5225e | 36991fef0aaf5b65cf52cf562e10da18a9ae773d | refs/heads/master | 2020-04-07T06:59:04.242027 | 2018-11-17T22:56:45 | 2018-11-17T22:56:45 | 158,158,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | import numpy as np
import pandas as pd
import os
import sys
from surprise import BaselineOnly
from surprise import Dataset
from surprise import dataset
from surprise import Reader
from surprise.model_selection import cross_validate
from surprise import SVD
from surprise import accuracy
from surprise.model_selection imp... | [
"nikhil.agrawal@sjsu.edu"
] | nikhil.agrawal@sjsu.edu |
e5ef3ebaa0969ae64b22fc95d380e2ab5550fc72 | 5e2c620ef66ecc72d67b6918a63743f8ecc8b5f3 | /backend/app/db/mixins/eagerload.py | e8b5c511fca75d1310052947d5436140e997b4a0 | [
"MIT"
] | permissive | webclinic017/fastapi-admin-panel | 00eda9d9f44346d59818aa76b363afe96ffb4be1 | ba12ad16fe1fdd0f9ec2282b8aa9965bce858cda | refs/heads/main | 2023-09-03T13:13:57.531141 | 2021-11-18T13:52:20 | 2021-11-18T13:52:20 | 482,085,378 | 1 | 0 | MIT | 2022-04-15T21:10:31 | 2022-04-15T21:10:30 | null | UTF-8 | Python | false | false | 3,696 | py | from sqlalchemy import select
from sqlalchemy.orm import joinedload, selectinload
from sqlalchemy.orm.attributes import InstrumentedAttribute
from sqlalchemy.sql import Select
from extra.types import Paths
JOINED = "joined"
SUBQUERY = "subquery"
def eager_expr(schema: dict) -> list:
flat_schema = _flatten_sche... | [
"gsilents226@gmail.com"
] | gsilents226@gmail.com |
9fddd3021dd17be191feceb86765012109d7ceb3 | edf8d011e3d4f30346b10adc6842efa5691fbcaa | /app/models/WfTaskHist.py | ff28484e9bae01e56745fdc4588c68ea8489e2a7 | [] | no_license | tianzhonghai/glaucus | fcdc06c93fdda078fb69f10620167d70cc9b6070 | ef4d92b0cfb81b67c35c19f7d9d8cae4138d467b | refs/heads/master | 2020-04-09T01:27:00.551806 | 2019-01-06T04:28:16 | 2019-01-06T04:28:16 | 159,904,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | from .. import db
class WfTaskHist(db.Model):
__tablename__ = 'wf_task_hist'
id = db.Column("id", db.Integer, primary_key=True, autoincrement=True)
deploy_id = db.Column("deploy_id", db.Integer, unique=False, nullable=False)
act_name = db.Column("act_name", db.String(45), unique=False, nullable=False)... | [
"tianzhh@fosun.com"
] | tianzhh@fosun.com |
0acef9c3808e7a5b7f9f88de92b9ba643d82dab7 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_157/699.py | b61de520301c8729931126c7dd1be5b969307475 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | T = int(raw_input().strip())
I, J, K = 2, 3, 4
def sign(x):
if x < 0:
return -1
else:
return 1
PROD = [
[1, I, J, K],
[I, -1, K, -J],
[J, -K, -1, I],
[K, J, -I, -1]]
def quat(a, b):
return PROD[a - 1][b - 1]
def translate(inp):
if inp == "i":
return I
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
aa6cc554f58f5e5557ef4d3c1753c1802ff1d72e | 67f38b82ff80ac3473457e0ec777a531847d9cfc | /crawlFirehose.py | b5d6df1a954915e93c9a26b0f7c444120f94de85 | [] | no_license | arapat/election-tweets-crawler | 838b12cfaa96ef2c6b6b6f30dd39049c3e3af6ce | 4f9aca7efa839f1d22071b456696ccbbdb9de361 | refs/heads/master | 2021-01-17T13:07:09.176992 | 2016-11-18T21:52:49 | 2016-11-18T21:52:49 | 39,797,792 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | import json
import os
import sys
from time import localtime, strftime, sleep
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
# Twitter API user credentials
vault = json.load(open("credentials.json"))
TWITTER_ACCESS_TOKEN = vault["TWITTER_ACCESS_TOKEN"]
TWITTER_TOK... | [
"jalafate@gmail.com"
] | jalafate@gmail.com |
5a0bd582d2812e2f1ea919c2428e1a0975635904 | 31daf45a61c356f453d8a91a4272fe0ad21906cf | /clients/python/consumer.py | 8ffa1a72bf8f0103fbbd576fec3881c99e2b62ae | [] | no_license | pmdcosta/apache-kafka | ee6953a464f508d5c7ac186624064a535e7a22fd | a8750e1d7b0bebe76e36383ff6c3130ca5fb6569 | refs/heads/master | 2020-04-14T11:50:52.141601 | 2016-02-19T16:51:53 | 2016-02-19T16:51:53 | 51,597,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | from kafka import KafkaConsumer
# To consume latest messages and auto-commit offsets
consumer = KafkaConsumer(group_id='python_01', bootstrap_servers=['172.17.0.3:9092'])
consumer.subscribe(topics=['topic'])
try:
for message in consumer:
print("%s:%d:%d: key=%s value=%s" % (message.topic, message.partitio... | [
"pmdcosta@outlook.com"
] | pmdcosta@outlook.com |
2e38374915f2ecbab48db2b63453ab8b8ee6cc16 | f9459d1eb795f6778c043ac05890af86024fb65b | /Network_Visualization_and_Style_Transfer/visualizers/fooling_image.py | ad16a50dd938097758dbb3684304686f7fdc3d79 | [] | no_license | jiani556/Deep-Learning | a431591b04854121cc133e3545d2452a07d3b710 | 9463299e76ee200518e1448fdaf518339d773238 | refs/heads/main | 2023-09-06T03:53:15.472823 | 2021-11-24T16:00:22 | 2021-11-24T16:00:22 | 367,668,536 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | import torch
from torch.autograd import Variable
class FoolingImage:
def make_fooling_image(self, X, target_y, model):
"""
Generate a fooling image that is close to X, but that the model classifies
as target_y.
Inputs:
- X: Input image; Tensor of shape (1, 3, 224, 224)
... | [
"longjiani556@gmail.com"
] | longjiani556@gmail.com |
1dc881eb407851b67d23e4d50f686b37e45a39a4 | 9233da96e09317d423291d8bf8f1457ce75cfc8e | /2016/8/screen.py | 657f3a4b019b55c2bfd0ef3005d7314ff58921e4 | [] | no_license | ryanfox/advent-of-code | bf6f2d220d29849dca2bda1ddd0813408dde6c3f | 59836ca363e041f31ef933953b82a67f430d38fc | refs/heads/master | 2020-04-09T03:33:18.975018 | 2018-12-03T17:56:23 | 2018-12-03T17:56:23 | 159,987,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,954 | py | inputs = '''rect 1x1
rotate row y=0 by 10
rect 1x1
rotate row y=0 by 10
rect 1x1
rotate row y=0 by 5
rect 1x1
rotate row y=0 by 3
rect 2x1
rotate row y=0 by 4
rect 1x1
rotate row y=0 by 3
rect 1x1
rotate row y=0 by 2
rect 1x1
rotate row y=0 by 3
rect 2x1
rotate row y=0 by 2
rect 1x1
rotate row y=0 by 3
rect 2x1
rotate ... | [
"ryan@foxrow.com"
] | ryan@foxrow.com |
62ee5cf8e0858a9aefaa9d66f8e2f7626cf32e90 | 6289a4a15d51c9d12b94428617a148588097caee | /graph_convergence.py | fd97b10c9078a2ce71458bd6a385c9467f1c4675 | [] | no_license | david-franz/Genetic-Algorithm-Library | 9f482213c021acd98018e1868016cb5463182a10 | f7dd489ee7cd7fca2e1a495e2c4f4514756d7682 | refs/heads/main | 2023-07-18T19:09:23.958331 | 2021-09-05T17:08:16 | 2021-09-05T17:08:16 | 398,702,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | import math
import matplotlib.pyplot as plt
# this file graphs a list of lists, with each list representing the convergence data for each run of the algorithm
class GraphConvergence:
# this will be our data for the x-axis for each graph
# list of lists, representing the
# this can be come from constructor argumen... | [
"davidfranznz@gmail.com"
] | davidfranznz@gmail.com |
9fbf373540f34ff54d25b2d079b04f1b9ec0d203 | d4d69ddf357d385b14d95d8d1e91802d8ac1a165 | /薄荷食物.py | 2727dc2356f060d43e03e01e181f29b389957501 | [] | no_license | leediiaa/getall | 78ffb096efc63ebe5538b75545a568add2256d6b | d0653767a1392581ef0d525e32b0094b3af7106c | refs/heads/master | 2021-01-06T02:51:50.251741 | 2020-02-17T20:47:53 | 2020-02-17T20:47:53 | 241,205,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | #导入所需的库和模块:
from gevent import monkey
monkey.patch_all()
import gevent,requests, bs4, csv
from gevent.queue import Queue
work = Queue()
#创建队列对象,并赋值给work。
#前3个常见食物分类的前3页的食物记录的网址:
url_1 = 'http://www.boohee.com/food/group/{type}?page={page}'
for x in range(1, 4):
for y in range(1, 4):
real_url = url_1.form... | [
"cml13012272310@163.com"
] | cml13012272310@163.com |
f0ecedd383456b40b02ac7a4b0217dad0b0bdceb | 90853c1856ef68dcae1d81dc9c294c5b7feaaf1d | /groger_saque.py | 7fd204a699b7f68ed17569d730415db4046c0da9 | [] | no_license | hugoerico/aula14 | 64568597bb8cbc93220f1dabb27428325be8e272 | 816aea5be64db282570476e5b3389ca2c2af9ac8 | refs/heads/master | 2020-09-21T05:05:23.021271 | 2019-12-17T05:37:16 | 2019-12-17T05:37:16 | 224,687,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | class Banco:
def __init__(self,nome,idade,saldo):
self.nome=nome
self.idade=idade
self.saldo=saldo
def __str__(self):
return f"nome: {self.nome}, idade: {self.idade}, saldo:{self.saldo}"
def saque(self, valor):
self.valor = valor
if self.valor > sel... | [
"hugo.019@hotmail.com"
] | hugo.019@hotmail.com |
ea93677c84c5ab62840d8394d3daebe99f51d6e5 | 350480124d05030a64c0a9b500ea56370fa4532f | /giffer.py | 1585fdee161aec9e2a6bb52d34c1cda9dfcfede9 | [] | no_license | achogovadze/public | aa4556aa05878946868a7885020739c672c79514 | f341035379a39b26da65ad487b30400f909c1d07 | refs/heads/main | 2023-04-26T22:43:30.605479 | 2021-05-27T14:15:05 | 2021-05-27T14:15:05 | 371,396,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import imageio
images = []
filenames = [
'1.png',
'1.png',
'1.png',
'2.png',
'2.png',
'2.png',
'3.png',
'3.png',
'3.png',
'4.png',
'4.png',
'4.png',
'5.png',
'5.png',
'5.png',
'6.png',
'6.png',
'6.png',
'7.png',
'7.png',
'7.png',
'8... | [
"alex@pulsar.ai"
] | alex@pulsar.ai |
4bb5fb7059095abf1ff71ac43d972b1760591690 | eef4344b87418dffc152f5de7217308c28bda2d5 | /sNotebook.py | ed5eb2162450db466b33e7f671d9fced0c660464 | [] | no_license | Thoshh/seer-editor | fa4ec715a0dfe6b939af1c4b896ed98848f1608f | 6b95e6909360c153ef42c9ffd0b3b3efd92a3a65 | refs/heads/master | 2016-08-12T11:08:53.598525 | 2007-08-22T00:54:07 | 2007-08-22T00:54:07 | 55,092,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,634 | py | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# Initial code framework based from DrPython, Copyright 2003-2007 Daniel Pozmanter
# Distributed under the terms of the GPL (GNU Public License)
#
# Seer is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public L... | [
"verbena1@d10d4a45-7336-0410-a5b7-655e53db1087"
] | verbena1@d10d4a45-7336-0410-a5b7-655e53db1087 |
858d39bf587b28bb367e48d73d10a0af61bec0d9 | 280fd34615d5df47f17e423d195fc7d8947c3bec | /korona/html/tags/details.py | ee4430d664956375bfe4f369fa9f825f176f0c85 | [
"MIT"
] | permissive | bharadwajyarlagadda/korona | 051b9ed0c3fd7cb0d7eaa77cfafdee668c078c78 | ee4662b6a29907495e31ed2581dc5484bb03eadc | refs/heads/master | 2023-01-19T08:15:09.546701 | 2016-09-29T20:45:56 | 2016-09-29T20:45:56 | 65,955,404 | 2 | 1 | NOASSERTION | 2022-12-26T20:27:38 | 2016-08-18T01:41:37 | Python | UTF-8 | Python | false | false | 728 | py | # -*- coding: utf-8 -*-
"""Module for constructing <details> tag."""
from __future__ import absolute_import
from ...templates.html.tags import details
class Details(object):
"""Class for constructing details tag.
Args:
open (bool): Specifies that the details should be visible (open) to
... | [
"yarlagaddabharadwaj@gmail.com"
] | yarlagaddabharadwaj@gmail.com |
632c1950978a9b52b8c84997b63de3a8a3fe035b | 88f3fc1a75dad865e9e0f9c4688370fa213b2939 | /NEURON/create_nc_cell.py | ce2b82bf3e803952190d7c5d6c82aaaaa05efb59 | [] | no_license | OpenSourceBrain/korngreen-pyramidal | 87dce9f2f509f93f955e6c9976440f02935ef2af | 79a2354c377bd405bc3467ee5bf700c4dd15b73a | refs/heads/master | 2021-07-10T08:32:45.485875 | 2021-03-10T09:16:35 | 2021-03-10T09:16:35 | 13,787,127 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,633 | py | # utility script for setting model parameters for the Korngreen model
# from .params files, via neuroConstruct
import rlcompleter, readline
readline.parse_and_bind('tab: complete')
from java.io import File
from java.util import ArrayList
from ucl.physiol.neuroconstruct.project import ProjectManager
from ucl.physiol.n... | [
"borismarin@gmail.com"
] | borismarin@gmail.com |
e92d908cafaecefeb041446ec37ddd3296fec8b7 | 819b50e6cbdbe937950930c23cbc291f64599273 | /main.py | b395bda86b77e9ef8165b49ac0cd1f6d6cdaf6fa | [] | no_license | heyandresdjc/moc-data | 60264ddf9ec758557634d0a56fd3cd1be15124b7 | de3bc8e40deb520958d2d65243a95677a901673c | refs/heads/master | 2021-06-13T20:01:33.585442 | 2019-03-25T18:13:45 | 2019-03-25T18:13:45 | 157,810,915 | 0 | 0 | null | 2021-03-20T00:43:06 | 2018-11-16T04:04:32 | Python | UTF-8 | Python | false | false | 759 | py | from random import choice
from string import ascii_letters as A_Z
import csv
CONDITION = [ "AR", "SV", "OH", "RD", "NS", "NE", "FN"]
def random_string(num):
return_str = ""
for _ in range(num):
return_str += choice(A_Z)
return return_str
for _ in range(100000):
part = {
"part number":... | [
"heyandresdjc@gmail.com"
] | heyandresdjc@gmail.com |
d6f19ff2bd531ee3d26e6b95468c8885edf1352f | c00d2cdeb15a159a10aed2ebbe3b15f52ee4ee97 | /setup.py | b73ce184e47212962d9c5ab40ca4a67b0715e09c | [
"Unlicense"
] | permissive | lwerdna/z80dis | 6b76bd2ee5d38ffe09389329726add561cff5e8b | c1e11aed5a5f00c40c07d838f0fdcd282840d0b5 | refs/heads/master | 2020-07-02T13:19:05.986553 | 2020-05-01T15:14:49 | 2020-05-01T15:14:49 | 201,533,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="z80dis",
version="1.0.6",
author="Andrew Lamoureux",
author_email="foo@bar.com",
description="Z80 disassembler library",
long_description=long_description, # load from README.md
lo... | [
"andrew@vector35.com"
] | andrew@vector35.com |
af803e00daf212de7d6cb712d1518f29f7f5bc7b | c078a5fe353c417ad514dbff49ba49a496a0c4a7 | /manage.py | aec9870339a2465a79e30a15dec0bb5ea3e1f514 | [] | no_license | zofy/TicTacToe | 7215f1b8be1ad1ff775b31fbf0152cf5383df71f | 0eada26ae04a4a172548f5e4a5ccf4791104e541 | refs/heads/master | 2022-12-13T11:00:01.925715 | 2021-06-11T07:31:50 | 2021-06-11T07:31:50 | 50,509,892 | 0 | 0 | null | 2022-12-07T23:36:12 | 2016-01-27T13:41:46 | HTML | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TicTacToe.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"zofy11@gmail.com"
] | zofy11@gmail.com |
1bcdfe43cc927df5d11f1e47e7f8c7a24a54ce3f | 273484a9dc7778e2c0310befcf65506e60b468c0 | /neurolab/optimization/metric/__init__.py | e11ae9604fd4147e3ff6b787719c542742621216 | [
"MIT"
] | permissive | GabrieleLagani/HebbianLearning | 942a44778abbaccc14bc624887b5d96c6506bfa5 | a7ed2f8a5925426880b5c315a7caf1ef1891001a | refs/heads/master | 2023-02-14T22:47:07.220429 | 2023-01-23T11:31:32 | 2023-01-23T11:31:32 | 219,447,087 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from .crossent import *
from .mse import *
from .acc import *
from .topkacc import *
from .prec import *
from .map import *
from .elbo import *
from .crossent_elbo import * | [
"gabriele.lagani@gmail.com"
] | gabriele.lagani@gmail.com |
6967a05257a0d60c9f402aaefed8478edcb70175 | 94c8dd4126da6e9fe9acb2d1769e1c24abe195d3 | /qiskit/visualization/timeline/generators.py | a21a6433dbcd447be2c4e9a077425b0e8d9bcd55 | [
"Apache-2.0"
] | permissive | levbishop/qiskit-terra | a75c2f96586768c12b51a117f9ccb7398b52843d | 98130dd6158d1f1474e44dd5aeacbc619174ad63 | refs/heads/master | 2023-07-19T19:00:53.483204 | 2021-04-20T16:30:16 | 2021-04-20T16:30:16 | 181,052,828 | 1 | 0 | Apache-2.0 | 2019-06-05T15:32:13 | 2019-04-12T17:20:54 | Python | UTF-8 | Python | false | false | 15,283 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | levbishop.noreply@github.com |
bdb1af6cfd3542d9d233b67bf76a802451af8e38 | bf413d16c87db978c4abfe7cfaf8c18b1054469f | /program/tests/test_witness_complex.py | b5dca06d326a6c9344c4baee4a13d007beccba80 | [] | no_license | ilonatommy/ShapeVis | b7289d63f81fd9aafefcd7337f7cb52242f4ffd0 | c9f4aaaaaa57130df4dc579cf7f7d23efa05fca6 | refs/heads/master | 2022-11-23T11:31:39.596675 | 2020-07-14T20:21:46 | 2020-07-14T20:21:46 | 260,666,710 | 0 | 0 | null | 2020-07-14T20:21:47 | 2020-05-02T10:50:35 | Python | UTF-8 | Python | false | false | 1,754 | py | import unittest
from unittest.mock import patch, Mock
import numpy as np
from source.witness_complex import WitnessComplexGraphBuilder
from source.randomizer import Randomizer
from source.data_processor import DataProcessor
from source.algo_comparer import AlgoComparer
TEST_DATA = np.array([[1, 1.5], [1.75, 1.75], [2... | [
"mactob25@gmail.com"
] | mactob25@gmail.com |
b824778aad03d683ce7f0228878aefb56b70c1bc | 37d6315233f39d2fc465be29365f1e8c96a69231 | /hocs/parsetab.py | 7c49fdf5308298e44cce8a3f3af5dfb6d4e15f00 | [] | no_license | asdf1234Damian/Compilers | e759600a0803819ff1109a575f91d54716af276b | a74776c344bfc1abcc348415220e5e8bd02152da | refs/heads/master | 2020-04-19T08:11:15.952573 | 2019-06-05T14:16:01 | 2019-06-05T14:16:01 | 168,068,271 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py |
# parsetab.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'rightEQUALSleftPLUSMINUSleftPORDIVIDEDIVIDE EQUALS LPAR MINUS NUMBER PLUS POR RPAR VARexpr : NUMBERexpr : VARexpr : VAR EQUALS exprexpr : expr PLUS exprexpr : expr MINU... | [
"memoriasnaranjo98@gmail.com"
] | memoriasnaranjo98@gmail.com |
8c323d87fbb43ffa0517dd1c18f8fe1239c01308 | d489e64a7ccb20be9289b460ee5de9d55bca3e32 | /src/controller/actorWindow.py | 0990f71b5ab2c1c58783ef6f62e3bd0601e05cc0 | [] | no_license | John-Dilla/imdbScraper | 1d77cbda80281c99f8eae17cbc9f3e93e11cfbd0 | 2ce53c3cfaa518f647cde234130fda1cef3e09fd | refs/heads/main | 2023-05-27T01:21:03.417367 | 2021-06-11T11:52:36 | 2021-06-11T11:52:36 | 360,892,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,567 | py | from os.path import abspath
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QWidget
from PyQt5 import QtCore, QtWidgets
from PyQt5 import uic
from PyQt5.QtGui import QPixmap
import pandas as pd
from src.controller.model import PandasModel
from src.scraper.scrapeController import Controller
import src.utility... | [
"yungdillaa@gmail.com"
] | yungdillaa@gmail.com |
38b811ade0043def5ed94ffae3ed49ec7b0d3f3f | dbd96086e5d882df0f1e0c3637cad7f7a4588e73 | /django_projects/settings.py | 896e03e9dd162c138d60203962e4919c82fe6fa5 | [] | no_license | gusguma/django-projects-model | c649d28b5962cb5480dee33b6cd395c0e499201c | 0947823a18c0f5f4bfa438fe317e1616b1d454c6 | refs/heads/master | 2020-11-24T07:12:22.867145 | 2019-12-14T12:58:52 | 2019-12-14T12:58:52 | 228,023,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | """
Django settings for django_projects project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import... | [
"gusguma@gmail.com"
] | gusguma@gmail.com |
0639f377ef09cc9e3dd6e6c93f5186fac1220199 | 16e266cf50a712ed29a4097e34504aac0281e6cb | /Functions/venv/lib/python3.6/site-packages/_TFL/_SDG/_XML/Decl.py | cb6eb6e6326ae9e70cbb20696ef64a94226130af | [
"BSD-3-Clause"
] | permissive | felix-ogutu/PYTHON-PROJECTS | 9dd4fdcfff6957830587b64c5da3b5c3ade3a27e | 8c1297dbda495078509d06a46f47dc7ee60b6d4e | refs/heads/master | 2023-06-05T04:41:36.727376 | 2021-06-25T20:36:52 | 2021-06-25T20:36:52 | 380,348,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2004 Mag. Christian Tanzer. All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# ****************************************************************************
#
# This module is licensed under the terms of the BSD 3-Clause License
# <http://www.c-tan... | [
"you@example.com"
] | you@example.com |
aec4c0897870b4d304099bc38e94fa771f6bef6e | e9b03fe553fb85f798d44607c57c43b3cb20dc50 | /Exercícios/1177.py | 56b4bf2b1f76f218ce22344d06ea4a2bcfd2f631 | [
"MIT"
] | permissive | aldemirneto/Exercicios-Uri | 89cdebff9b1b02361a251dea83715d51e3ee44c3 | f246f0d3f6f10b9039f12e1e2a50a107d0718000 | refs/heads/main | 2023-04-30T06:04:25.415709 | 2023-04-17T01:56:56 | 2023-04-17T01:56:56 | 337,760,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | c = int(input())
z = 0
lista = []
for i in range(0, 1000):
z = 0
while z < c:
lista.append(z)
z += 1
for c in range(0, 1000):
print('N[{}] = {}'.format(c, lista[c])) | [
"56364675+aldemirneto@users.noreply.github.com"
] | 56364675+aldemirneto@users.noreply.github.com |
7f69ec9258351f20f71e5186e75a162a42c610fd | b33f0a4ce4f353203b0a5f47373943273a04dfd7 | /homework/hw11/tests/stacks.py | c16ae0207a65a10713321d430c5f3fe568ba26c5 | [] | no_license | yngz/cs61a | 113c210d8c6418e54a697c2ea1036845a6727abb | f0e62fb8ccfc36f3eac25ffca50799990c7f8060 | refs/heads/master | 2020-03-27T06:22:44.368193 | 2018-11-30T10:21:02 | 2018-11-30T10:21:02 | 146,101,319 | 34 | 47 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | test = {
'name': 'stack',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
sqlite> SELECT * FROM stacks;
abraham, delano, clinton, barack|171
grover, delano, clinton, barack|173
herbert, delano, clinton, barack|176
fillmore, delano,... | [
"yang0201@outlook.com"
] | yang0201@outlook.com |
5868b3f864520cc54cc9419431f75b323659fb85 | 457be849f07a095184513274650c2ea3d2e6ca34 | /mixed_poisson/mp_train.py | a9312b33c542455eac156ced39286c6b07b4559f | [] | no_license | MiroK/nn-stab-stokes | 03f594afe277345ba43dea87b3a6a25586ddfa6c | 2e8144c80639d3db4637009a245884ff985af347 | refs/heads/master | 2023-02-12T00:56:34.865307 | 2021-01-12T15:02:41 | 2021-01-12T15:02:41 | 312,362,391 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,307 | py | from fenics import *
from fenics_adjoint import *
import ufl
from numpy.random import rand, seed
from mp_make_data import mixed_poisson
seed(21)
# Load observations
def train_mixed_poisson(data, W):
'''Fit data with state in W(ideally unstable)'''
# Define a neural network that will be added as a source ... | [
"miroslav.kuchta@gmail.com"
] | miroslav.kuchta@gmail.com |
55401ba77d9170cc2836d3e8762b6cb1243bc2fc | 8ebc40cba9e1006ab28db457416f1ab8363af92c | /gym/version.py | 595cfe2965b6dc3e897f62fd4e5357385eaf3494 | [
"MIT"
] | permissive | forschumi/gym | 790e3c371827e744f4ac05ded95af867ee0c93a8 | 8a323c9479dd64335556b86daa9061e3cf539021 | refs/heads/master | 2022-06-20T15:55:32.689154 | 2022-06-04T18:28:31 | 2022-06-04T18:28:31 | 87,368,392 | 0 | 0 | null | 2017-04-06T00:22:59 | 2017-04-06T00:22:59 | null | UTF-8 | Python | false | false | 19 | py | VERSION = "0.24.0"
| [
"noreply@github.com"
] | forschumi.noreply@github.com |
baf0311c9c14b3c8c0ff9ed4571b0a9b021aeb20 | 357ce78eb000741b1fa742a200190ead9c87b1b3 | /backend/urls.py | 7fc083a58cee6dc224d0bf1a310eb091d0bcd078 | [] | no_license | LeoKnox/adventure_django2 | 40426bb1195620fb972c102aba66b501042e2d33 | e2491e847c386c6f541497eac768ab671fcf6c04 | refs/heads/main | 2023-06-10T04:09:13.043850 | 2021-06-22T03:18:43 | 2021-06-22T03:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | """backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"noreply@github.com"
] | LeoKnox.noreply@github.com |
ab6a83e15be5c2a3d2a2dc9622e05554ce0ecb03 | d6aae799e18e907fb413b715200c7832252a87e5 | /image-generation/stylegan2-cdc/main.py | 5f404ba2dfa1415fb4068f35840173fd9c7c6b53 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"CC-BY-NC-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sony/nnabla-examples | 0d0bbd5df3028996e790bcf07248fdb0932697d1 | 41f71faa6efff7774a76bbd5af3198322a90a6ab | refs/heads/master | 2023-09-04T03:45:54.023899 | 2023-08-22T03:31:21 | 2023-08-22T03:31:21 | 109,625,584 | 308 | 108 | Apache-2.0 | 2023-08-22T03:31:23 | 2017-11-05T23:30:40 | Python | UTF-8 | Python | false | false | 5,169 | py | # Copyright 2021 Sony Corporation.
# Copyright 2021 Sony Group Corporation.
#
# 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 requi... | [
"Hua.Ding@sony.com"
] | Hua.Ding@sony.com |
f296a88317c734be6c382ba0af2406e75c4df68c | a9062f45d4dee34fff63750f63d1eedd83eb6dde | /gutenberg.py | 3489a59dc7111bd0ab219e1726f013555e1173a5 | [] | no_license | rossjjennings/crypto | f61a881134712461ce33cbc92a5728f5e7a735af | 630e67fde3242c5bb2331a738e55e735265a69eb | refs/heads/master | 2023-03-19T21:53:02.918104 | 2023-03-11T04:09:09 | 2023-03-11T04:09:09 | 181,235,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | from collections import Counter
from glob import glob
from ruamel.yaml import YAML
yaml = YAML(typ='safe')
count = Counter()
bigrams = Counter()
initials = Counter()
finals = Counter()
for filename in glob('Gutenberg/txt/*.txt'):
with open(filename) as f:
text = f.read().replace('\n', ' ')
count +=... | [
"rossjjennings@gmail.com"
] | rossjjennings@gmail.com |
0056b21b1573a9f0a6d99520739148e135749f54 | 292080e4d88bb5e5b10fd9fd744ced8ce7578a03 | /train_cifar_jiaming.py | bb6f733d169fa08b21e17ac60973caf8f151004a | [] | no_license | KirinNg/Training_Framework | 09a1ad0dc1f2425d70cd7a6519d4474786162edc | 607b53ef461193abf96f7f6e65bc5ca69f64a82d | refs/heads/master | 2022-02-23T23:30:27.527276 | 2019-09-08T17:38:24 | 2019-09-08T17:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | from utils import config, data_stream
from utils import utils
import os
import tensorflow as tf
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
Cifar_train_config = config.Cifar_config()
Cifar_common_trainer = utils.Common_Framework(utils.cifar_net, Cifar_train_config)
Cifar_common_trainer.bulid_net()
Cifar_datastream = d... | [
"kirinng0709@gmail.com"
] | kirinng0709@gmail.com |
cd3be5b331a4be5e57dc845d57e4f00222dda992 | 4c267509c3cc6bdce102811480d135ad817dad4d | /srv/main.py | 5fa73cb43b02f578785a6074013e650c71cf4c0f | [
"MIT"
] | permissive | varturas/PnlAITk | 2aba552ca4d147a1167dd077537837e709148711 | 72a19f253d1abd4e35fb48da137bacd69b53f179 | refs/heads/main | 2023-04-07T07:47:01.282114 | 2021-04-21T20:04:57 | 2021-04-21T20:04:57 | 360,289,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,251 | py | import sys,os
from lib.Portfolio import *
import traceback
import logging as log
import os.path,math
import html
from bokeh.layouts import row,column,layout,widgetbox
from bokeh.models import Button,ColumnDataSource,Span,Label,OpenURL,Paragraph
from bokeh.models.widgets import TextInput,DataTable,TableColumn,Div,DateFo... | [
"varturas@gmail.com"
] | varturas@gmail.com |
476179284ddb1b7ce2743515ae21f53e49da1c46 | 5134cb3c4ba10eab149c98ea5fb58dc09b519422 | /resumeroot/resumeroot/views.py | a274a58a021cea5bfe3da380dc8cc4effccb45a1 | [] | no_license | prakharg47/expresscv | 3175de8696c8fb0df4e90d5671c1663d55340863 | 08600e870c59fb6298804e2ad0a06994808ec539 | refs/heads/master | 2021-06-18T20:10:51.600113 | 2019-07-03T07:43:18 | 2019-07-03T07:43:18 | 194,356,452 | 1 | 1 | null | 2021-06-10T21:37:19 | 2019-06-29T02:40:03 | JavaScript | UTF-8 | Python | false | false | 233 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from django.http import *
# Create your views here.
def home(request):
return render(request, 'resumeroot/home.html', context=None)
| [
"prakhar.gupta@loylty.com"
] | prakhar.gupta@loylty.com |
a03ca7da4b114eb56f5900f813eb72c312b68436 | 6cc4608a0f414a592e45057c2694287a9abd5d0b | /Camera_Test/saveVideo.py | f3fae712c08cbbfc166c259804a1711621fae1d4 | [] | no_license | reaf-tamu/REAF-RoboSub-2018 | b496d989b141d6be94002b85840e8bd91f193967 | a96317f7792e80e1b1ae71faf89af45946a56107 | refs/heads/master | 2020-03-23T06:17:42.782195 | 2018-07-31T05:26:13 | 2018-07-31T05:26:13 | 141,201,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | import numpy as np
import cv2
cap = cv2.VideoCapture(0)
cap2 = cv2.VideoCapture(1)
cap3 = cv2.VideoCapture(2)
# Define the codec and create VideoWriter object
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('outputDowny.avi',fourcc, 20.0, (640,480))
fourcc2 = cv2.VideoWriter_fourcc(*'XVID')... | [
"hannahhut@tamu.edu"
] | hannahhut@tamu.edu |
1bc180cb4e0fa860acc4402a221464d973d7a86c | 2f4137631026626bc758e826643628be9fcac58f | /bot/main.py | d86681c6d3ca503893510393a1631fc523574a18 | [] | no_license | Erebusaur/elo_bot | fe41928bc01b5f10f8560d46de5d72b2ed50110d | b228ca8d090fea7a4a4d461609ab356aa27684ab | refs/heads/master | 2023-02-23T20:27:20.106382 | 2021-01-25T17:48:58 | 2021-01-25T17:48:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,628 | py | import discord
import itertools
import math
import os
import requests
import time
import trueskill
from discord.ext import commands
from dotenv import load_dotenv
from state import State
from api import Api
from game import Game
from player import Player
intents = discord.Intents.default()
intents.mem... | [
"lucas.fenart@protonmail.com"
] | lucas.fenart@protonmail.com |
f9648b4e207e988d51a49712c2adc8d36c8d6d5c | 6c34c19aa9ca94751acc3bd9c6d0548838ccce2b | /AbstractDeck.py | 9642961a1c451f4ee027c216c60dd00b4ccbfc55 | [
"MIT"
] | permissive | mleyfman/abstract-card-game | d2614fb7fb1447e7349ae135d481fc9af3d73317 | 5f50508da7413306747a4c4d36891604794a4aeb | refs/heads/master | 2016-09-05T23:51:52.336762 | 2014-08-03T16:26:28 | 2014-08-03T16:26:28 | 22,243,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from random import *
class AbstractDeck:
"""Abstract class for shuffling and iterating over a collection of cards"""
def __init__(self, cards=None):
self.cards = cards
def __len__(self):
return len(cards)
def __iter__(self):
return iter(self.cards)
def shuffle(self):
... | [
"mleyfman@me.com"
] | mleyfman@me.com |
f0e885af8f236263f6f0d54edcb919a801a52753 | bc8e2bec970f67a8a0d1e0e2e8cbc83143503be3 | /luckyMoon2/Lucky.py | 97f3aee2c17a430f0cf04ab3ee0f211c1d7f2303 | [] | no_license | skyinglyh1/temporary-Moon | a7905361c69f9b54777e53e08a1ec1810859c8ff | d28b91267bec3f09c2e191283986aec469c1ffd8 | refs/heads/master | 2020-04-12T03:58:59.320725 | 2018-12-25T06:15:23 | 2018-12-25T06:15:23 | 162,281,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,036 | py | """
Lucky Contract
"""
from boa.interop.System.Storage import GetContext, Get, Put, Delete
from boa.interop.System.Runtime import Notify, CheckWitness
from boa.interop.System.Action import RegisterAction
from boa.builtins import concat, ToScriptHash
TransferEvent = RegisterAction("transfer", "from", "to", "amount")
Ap... | [
"skyinglyh@gmail.com"
] | skyinglyh@gmail.com |
1804cfa845cafaff6ec953c7a7ed647e1d36d48e | 904ff476a67cc6009c6eff83a6e81f50939e6570 | /Practice_15_KM-04_Dubina/exp_root/root.py | 81c71ab622932fd32a9ba7d7a7ed95e25d03ccbb | [] | no_license | Dubina-03/Practice_university | 70b028aac64b6719b6cab79550ff30535d01a13d | 85731b317b766d1862e741e4dd527ae9722c9d0d | refs/heads/master | 2023-02-03T14:59:40.145701 | 2020-12-24T19:27:32 | 2020-12-24T19:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | def root2(n):
return n**(1/2)
def root3(n):
return n**(1/3)
| [
"noreply@github.com"
] | Dubina-03.noreply@github.com |
bac96bf490d83a70af03f523a3588c47d7f35390 | 1958631675a1eda1c2c5a018b636cb1117d90d9e | /0x0B-python-input_output/11-student.py | 50bc5c0d66a5b52457b1d461d72eb5e1a35c3bd9 | [] | no_license | Valinor13/holbertonschool-higher_level_programming | f32d6507546584c3af59e3e8ece345af70a698d6 | 5fad6ea9f28f845820b5a893feb20e83ed3fe7b4 | refs/heads/main | 2023-06-05T21:15:29.774676 | 2021-06-27T23:08:54 | 2021-06-27T23:08:54 | 361,808,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | #!/usr/bin/python3
"""A module with the class Student"""
class Student:
"""A class that stores student with their records"""
def __init__(self, first_name, last_name, age):
self.first_name = first_name
self.last_name = last_name
self.age = age
def to_json(self, attrs=None):
... | [
"jwcalhoun2@gmail.com"
] | jwcalhoun2@gmail.com |
04a569fb495fa2d6b69c5e3dd372fa47ef596909 | d59fe0cad214cb7bfca9bf2e029f3475b3c01ea9 | /Backend-django/project/urls.py | df49f604eef7e03dc24917b5e1c2b0168c6eb9d1 | [] | no_license | nidheesh977/django-ecommerce | 8a82fd41e30b7154caa9bab810064b68aba7af34 | 53eeb0b10f23a4da2944f2591ed535db34bfa0dc | refs/heads/master | 2023-08-06T02:37:57.732349 | 2021-10-06T12:00:58 | 2021-10-06T12:00:58 | 405,357,396 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"bnidheesh844@gmail.com"
] | bnidheesh844@gmail.com |
e8c3fffdddd5e016a38f7ce0dfb435d2a43c62aa | a2cf879bcf9335c53157bfba71d889372fb492b8 | /test/JsonTestResultTest.py | b44ee0d3744ea3faee8b5d8b32791265411c5850 | [] | no_license | colinsullivan/gaeunit | 98ec6dc6ff0d37f2c6d89bdf2695b5049b647955 | bab492355c69139cf1f06d14e5caa4e6ed35de39 | refs/heads/master | 2021-01-19T18:07:35.376204 | 2012-10-27T08:10:48 | 2012-10-27T08:10:48 | 1,329,594 | 3 | 1 | null | 2014-10-03T17:55:03 | 2011-02-04T21:18:40 | Python | UTF-8 | Python | false | false | 853 | py | '''
Created on May 6, 2009
@author: george
'''
import unittest
import gaeunit
class Test(unittest.TestCase):
tr = gaeunit.JsonTestResult()
def test_list(self):
testcase = MockTestCase()
list = [(testcase, "error")]
result_expected = [{"desc":"test","detail":"error"}]
result = ... | [
"jblocksom@google.com@c3911fd6-fc52-0410-b77b-4923be2ec7be"
] | jblocksom@google.com@c3911fd6-fc52-0410-b77b-4923be2ec7be |
9a4d87b577fc8aa2eab994f8557c1a297f9c34b8 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /xdSKkXQkkMroNzq8C_19.py | 66be33593f341b9f30351301eed1aa4976697558 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | """
Create a function that counts how many D's are in a sentence.
### Examples
count_d("My friend Dylan got distracted in school.") ➞ 4
count_d("Debris was scattered all over the yard.") ➞ 3
count_d("The rodents hibernated in their den.") ➞ 3
### Notes
* Your function must be case-insensi... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
026fc6d5be9907085f359fa45819c82d921fca1c | 2726a4c9c5048033e75ce5f959b2716697199952 | /allennlp/data/tokenizers/tokenizer.py | bd45512df3349b96124189700cd9aef2ba697c78 | [
"Apache-2.0"
] | permissive | DeNeutoy/allennlp | b42f2c92e3cefa489bb21f112c1bf3c922d645bd | ff78b093a088840d7e973f79567eec9e78269f53 | refs/heads/master | 2021-06-03T16:31:55.564568 | 2017-06-26T19:51:07 | 2017-06-26T19:51:07 | 95,490,219 | 0 | 0 | null | 2017-06-26T21:16:53 | 2017-06-26T21:16:53 | null | UTF-8 | Python | false | false | 1,351 | py | from typing import List
from ...common import Params
class Tokenizer:
"""
A ``Tokenizer`` splits strings of text into tokens. Typically, this either splits text into
word tokens or character tokens, and those are the two tokenizer subclasses we have implemented
here, though you could imagine wanting... | [
"markn@allenai.org"
] | markn@allenai.org |
d2dff76ec0c9bb41376698f4e3c34c73b9787c40 | b4ea4c1bebf42c3f73cbc9a659ce1e2637584161 | /Extract/poetryorg/poetryorg/settings.py | 0388fb94051865d56f29fc70ccbd91b274b9805c | [] | no_license | huiruru/FinalProject | 436f9fccc68f7d9d62433cdc8d87df6020c73897 | faa8732dfa2d26671c1a2e7effc034a74b83e327 | refs/heads/master | 2020-03-30T21:04:23.293356 | 2015-11-12T21:20:53 | 2015-11-12T21:20:53 | 42,456,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,436 | py | # -*- coding: utf-8 -*-
# Scrapy settings for poetryorg project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/late... | [
"huiru.ru@gmail.com"
] | huiru.ru@gmail.com |
5534bee8c302e6770c1dbaf714f392f7bdadf523 | c3a5e5b4c7e8fde13737636af2f375e7a25db470 | /mysite/test.py | 6b48dea5a1d10906a5fcfa561d6193eb3ef77fe6 | [] | no_license | dhouse1UNCC/ITSC3155_FALL2020_DHOUSE1 | cd5efc42b31f82eab43d6ddb60bb8572c3134efb | 98c42068c9ba52370f7378d391687d02458b220d | refs/heads/master | 2023-01-12T02:22:28.880424 | 2020-11-19T17:25:07 | 2020-11-19T17:25:07 | 295,801,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | import unittest
import requests
class FlaskTest(unittest.TestCase):
def test_index(self):
response = requests.get("http://danhouse98.pythonanywhere.com/index")
statuscode = response.status_code
self.assertEqual(statuscode, 200)
self.assertEqual('<h2>Use this site to maintain and or... | [
"dhouse1@uncc.edu"
] | dhouse1@uncc.edu |
19ac9c3055342b36fff5234d3553ffd56acd205a | cac090af84fae158a9e4c62a384578ba30b93c15 | /final_project/manage.py | 8826782e235fc8adbcf4ca7bbf53111ab924b33c | [] | no_license | micnem/developers_institute | ed316a3754dd48ed54741387430ff1dd436ae1d9 | aea6154a896407336c665d4ad531f124078bc001 | refs/heads/main | 2023-02-06T00:53:41.078983 | 2020-12-31T14:04:07 | 2020-12-31T14:04:07 | 305,331,313 | 0 | 0 | null | 2020-10-22T11:18:21 | 2020-10-19T09:29:00 | CSS | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'splatify.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"michael.nemni@gmail.com"
] | michael.nemni@gmail.com |
eb7595a1ce2bbcb06c7b3e803921fbbf8d610f6f | 2cee317ce3403399da3788428e9d724608a5a623 | /168. Excel Sheet Column Title.py | 58129718c9c248ad4c1649e50f7e59ea449fe2c7 | [] | no_license | justin76tan/LiCode | 17d6ac6bb8daa47a48e9ee9ed733db6c82b8d0a5 | 13a5b291f706b0d9c4d0497186414224b4831c92 | refs/heads/master | 2021-09-23T17:44:40.135236 | 2018-09-26T01:00:24 | 2018-09-26T01:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | '''
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
...
Example 1:
Input: 1
Output: "A"
Example 2:
Input: 28
Output: "AB"
Example 3:
Input: 701
Output: "ZY"
'''
class Solut... | [
"huanglili622@126.com"
] | huanglili622@126.com |
0fd705b4ef0964c77722152c7b5141489ffcc5a0 | 1927c781959ee9f2cc05736883b50031a3f045e1 | /tests/__init__.py | 567be9aceecef596ffc3e1f68d839702cba9cad6 | [
"MIT"
] | permissive | Rockbag/lenah | 7fd7a9a1b39c158f9487eb3c21492d676e01bd05 | 820b5f8bc4f640e02fc5c15e27a5cac1dad1c788 | refs/heads/master | 2023-08-24T20:17:21.411859 | 2021-10-03T16:22:24 | 2021-10-03T17:34:38 | 413,131,369 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | """Unit test package for lenah."""
| [
"balint.biro@conjura.com"
] | balint.biro@conjura.com |
96ad32fb43ddee22b55db2eb5af36cf2ba241e5f | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2016_06_10_polycrystal_FIP/plot_pc_map.py | b8e3ff767257cc2bd9086820e2761f0eb34a6194 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | import numpy as np
import matplotlib.pyplot as plt
from constants import const
import h5py
import sys
def pltmap(ns_set, set_id_set, pcA, pcB):
plt.figure(num=3, figsize=[9, 7])
# colormat = np.random.rand(len(set_id_set), 3)
colormat = np.array([[.3, .3, 1.],
[.3, 1., .3],
... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
c251ff0678398821b82b459cf48451a08382223d | 954e46a8aa59bf75a3c6b8c6cf1c1807e8602349 | /01-try-feature-extraction/07-try-feauter-selection-variance-threshold.py | 00658ea70d1a1653bf54be6f1b78c58c1145f3c1 | [] | no_license | jiujue/try-machine-learn | d79b16dcfa90f046a3b27dcb3fe8a5b3f8c3bdde | d186c3b1bef20ddc3d382051b1967fd100baacf6 | refs/heads/master | 2020-08-22T06:57:36.394235 | 2019-10-20T10:08:41 | 2019-10-20T10:15:18 | 216,341,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | from sklearn.feature_selection import VarianceThreshold
def var():
'''
variance threshold
:return: None
'''
var = VarianceThreshold(threshold=0.0)
data = var.fit_transform([[22, 23, 24], [23, 84, 12], [22, 74, 54]])
print(data)
var = VarianceThreshold(threshold=0.1)
data = var.... | [
"2936435008@qq.com"
] | 2936435008@qq.com |
48c1440f24f30794e4ca0e28ad22520598eb47f3 | 2434dac4211887bd0a3eb0f729a8c52d60c55922 | /sessions/tictactoe/board188v1 | 84f19577b674cfcfbc894841d3192613ee1a5d91 | [] | no_license | yaminikanthch/Python-Work | f9c4bef85ec80acd938e53e38414c4d99d19e2c9 | f1ba24b6d98141d5ce9807dfb9185081916785b0 | refs/heads/master | 2021-09-01T13:28:42.904951 | 2017-12-27T07:06:16 | 2017-12-27T07:06:16 | 115,494,761 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | #!/usr/bin/python
import sys
import os
def won(player):
cleanBoard(pos)
print "Player %s won the game!" %(player)
sys.exit()
def draw_game(dg):
cleanBoard(pos)
print "The game is a tie break!"
sys.exit()
def cleanBoard(sel):
print "\n"
print " %s | %s | %s " %(sel[0],sel[1],sel[2])
print "............... | [
"yaminikanthch@gmail.com"
] | yaminikanthch@gmail.com | |
a86dfe6fe07f66f35150fcd97337fced70d7b4dc | 3895bb91c9d04b249ec08e3fb9015ca13865ea86 | /book_outlet/models.py | 85effa70be33177445109d2baeef70448a9e5075 | [] | no_license | Aaryan8751/Django_Working_With_Models | 377af3f378461a5bcfdb02b2912cf5c4ab9190ad | 2c72c8daf0525cc45eef4777d7052287ae56ccaf | refs/heads/main | 2023-06-14T00:16:49.200095 | 2021-07-04T13:52:32 | 2021-07-04T13:52:32 | 382,821,143 | 0 | 0 | null | 2021-07-04T13:52:33 | 2021-07-04T10:17:35 | Python | UTF-8 | Python | false | false | 1,837 | py | from django.db import models
from django.db.models.base import Model
from django.core.validators import MinLengthValidator, MaxLengthValidator
from django.db.models.deletion import CASCADE
from django.db.models.fields.related import ForeignKey
from django.urls import reverse
from django.utils.text import slugify
# Crea... | [
"60098288+Aaryan8751@users.noreply.github.com"
] | 60098288+Aaryan8751@users.noreply.github.com |
4fa9ce1aad6ca26d797aa1901cf0cc04ee1027c2 | ea4e3ac0966fe7b69f42eaa5a32980caa2248957 | /download/unzip/pyobjc/pyobjc-14/pyobjc/stable/pyobjc-core/Tools/Signatures/setup.py | f1adc0b7e5b2310c7042f32969605f7568eecab4 | [
"MIT"
] | permissive | hyl946/opensource_apple | 36b49deda8b2f241437ed45113d624ad45aa6d5f | e0f41fa0d9d535d57bfe56a264b4b27b8f93d86a | refs/heads/master | 2023-02-26T16:27:25.343636 | 2020-03-29T08:50:45 | 2020-03-29T08:50:45 | 249,169,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from distutils.core import setup
import py2app
import glob
plist = dict(
CFBundleShortVersionString='0.1',
#CFBundleIconFile='EggShell.icns',
CFBundleGetInfoString='Signatures',
CFBundleIdentifier='net.sf.pyobjc.signatures',
CFBundleName='Signatures',
)
setup(
app=["main.py"],
data_files=... | [
"hyl946@163.com"
] | hyl946@163.com |
df34ee40adc9a2b88f56bdbbeeb374d54ec7f417 | b77dc17ee7ebad73e1028381739e01f708fb6c8b | /sqlalchemy/sql/operators.py | 0047d1c732e66a89e1afa3284fe90cdef801e721 | [] | no_license | typerlc/ankice-deps | 6c97bee1a926fc539b2f2e8ec345244e6188c6f1 | 4267af31c56ff2f51be65cad345fc7100ec53e78 | refs/heads/master | 2016-09-01T21:43:41.904988 | 2009-06-24T15:15:12 | 2009-06-24T15:15:12 | 235,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | # This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Defines operators used in SQL expressions."""
from operator import and_, or_, inv, add, mul, sub, div, mod, truediv, \
lt, le, ne, gt, ge, eq
from sqlalchemy.util import Set, symbol
... | [
"richardc@pippin.(none)"
] | richardc@pippin.(none) |
f11e2d660314492bce89f350ca42c8613614baba | bd5683b3857ea44a231b9d70a6986da554061850 | /voi/permutation_utils.py | 6facbbfa7a4a3a9e65d8ac4460f2d7e930ded5b4 | [] | no_license | anonymouscode115/autoregressive_inference | 791ee18865cdac2c7cb47bf5584c0c145039d0d5 | 14860f55a5fd073145e8e063027ecdfb31feecd4 | refs/heads/master | 2023-08-18T22:20:43.338728 | 2021-10-25T06:49:17 | 2021-10-25T06:49:17 | 300,373,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,822 | py | import tensorflow as tf
# @tf.function(input_signature=[
# tf.TensorSpec(shape=[None, None, None, None], dtype=tf.float32)])
def permutation_to_pointer(permutation):
"""Converts a permutation matrix to the label distribution of
a pointer network for training a language model
Arguments:
permutati... | [
"anonymouscode12345679@gmail.com"
] | anonymouscode12345679@gmail.com |
a50971d3565c9ef0c524198dfbe6e7d2b2f6711c | 2a01ca22001bb0f07a5a6a450188015de6258838 | /pypelines/pipeline.py | ccee51497ee86878c4a7418d28ae7d9bf04d75f0 | [] | no_license | gacou54/pypelines-etl | 0d1a1c6052db8fe0bc2058a5c0bdd210a3de50a1 | 3834f8141a130fb5834a2ac529ef4995f1845718 | refs/heads/main | 2023-01-12T21:32:52.363007 | 2020-11-02T23:25:55 | 2020-11-02T23:25:55 | 309,442,074 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | from typing import Any, Union
from pypelines.load import Loader
from pypelines.transform import Transformer
class Pipeline:
def __init__(self, data: Any) -> None:
self.data = data
def __or__(self, other: Union[Transformer, Loader]) -> 'Pipeline':
if isinstance(other, Transformer):
... | [
"gacou54@gmail.com"
] | gacou54@gmail.com |
892891392ffd5a98cea4905d7db7d30e05ca5d79 | 199aeceddce2466d329c628256bb76aec234860a | /python/problempack/my_functions.py | 6dd483e147d7b0303bbdfa04f5e2d99e9f3672e1 | [] | no_license | jaredivory/COM250 | 5086c2277ff9abde8122503763f1db24248f3a73 | f2e33f317ad48623f6fb9bd1f9704b0e0f138897 | refs/heads/master | 2020-07-24T11:04:30.568596 | 2019-09-14T17:09:41 | 2019-09-14T17:09:41 | 207,902,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | import datetime, math
def questionBlock(num):
"Creates a block to seperate the questions"
print("########################################################## %d ##########################################################" % num)
def average(lst):
return sum(lst) / len(lst)
def addTax(inital_price, salesTax=... | [
"ivorj32@mail.sunysuffolk.edu"
] | ivorj32@mail.sunysuffolk.edu |
a1a5d2baee6a657f373f20f0a42af77da3bae684 | 793d8a6030e91939e44dd2c010a06fa24262d238 | /mmcv/parallel/collate.py | bf12a11551035e61992af062e382f072c4def075 | [
"Apache-2.0"
] | permissive | manlinting/mmcv | bfdd71136d794268838401e225579688bb6ca64e | ae9d3cc41054712ee54940d8657606afef4fc066 | refs/heads/master | 2020-04-04T18:54:34.503076 | 2019-09-25T09:21:25 | 2019-09-25T09:21:25 | 156,184,602 | 1 | 0 | Apache-2.0 | 2018-11-05T08:30:30 | 2018-11-05T08:30:30 | null | UTF-8 | Python | false | false | 2,631 | py | import collections
import torch
import torch.nn.functional as F
from torch.utils.data.dataloader import default_collate
from .data_container import DataContainer
def collate(batch, samples_per_gpu=1):
"""Puts each data field into a tensor/DataContainer with outer dimension
batch size.
Extend default_co... | [
"chenkaidev@gmail.com"
] | chenkaidev@gmail.com |
60568d589b90c68d424abfd846ffc728bfe55508 | cf7ffa061f11d14de372002475e0852d20c7e020 | /src/scripts/gui/main_kernel.py | 72879a1dbb6ef152e3f6ffb11f49227080fa9ca4 | [] | no_license | olonyk/cs4 | 7612a2869d658eb4e487ba96a18875b0116b7810 | e2f8ad12058460d4647c9de5e357c95a789b01e6 | refs/heads/master | 2021-09-06T18:59:19.960656 | 2018-02-10T00:55:13 | 2018-02-10T00:55:13 | 116,160,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,493 | py | import json
import sys
import time
from os.path import dirname, isfile, join
from tkinter import Tk
from tkinter.filedialog import askopenfilename, asksaveasfilename
from numpy import (array, asarray, binary_repr, concatenate, delete, int8,
linalg, logical_and, logical_or, ones, shape, zeros)
from s... | [
"olov.nykvist@lybe.se"
] | olov.nykvist@lybe.se |
70beeacc3ecefbd7c0c2f749a8512c7a21f26725 | 5a8543c4739e7c7d7db3b2712f07e345cc24bc88 | /merge_sort.py | e35fe503745602aff2004a323f39a59e9bdadaf4 | [] | no_license | thesmitpatel/Algorithm | d50b8f43c7d109ad0710505c5071003468b5d276 | 54c473be3245fa5fa455a0f310eccacbff5dfbe3 | refs/heads/master | 2022-12-29T19:19:07.474562 | 2020-10-22T05:55:18 | 2020-10-22T05:55:18 | 306,227,169 | 0 | 1 | null | 2020-10-22T05:55:19 | 2020-10-22T04:59:21 | Python | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
#python program to illustrate the merge sort algorithm
def mergesort(list1):
n=len(list1)
if(n>1):
mid=n//2
l=list1[:mid]
r=list1[mid:]
mergesort(l)
mergesort(r)
i=j=k=0
while(i<len(l) and j<len(r)):
... | [
"61879629+thesmitpatel@users.noreply.github.com"
] | 61879629+thesmitpatel@users.noreply.github.com |
0c4672ce565c2e2d0af1584bc8f02e08bb128b9c | 79c184b90f3bc8fb33042061d66ecabfc5c7a79c | /progress/1123_mg.py | 1603842288ec6d91f55d5c0c607777a009c6bd14 | [
"Apache-2.0"
] | permissive | seawavve/CSR | bc11ff242a6fdbc3823154ccb1dc1a949d030e73 | 66bfed8a1585c252e6b00c9fee36db7f3a4ba30a | refs/heads/main | 2023-02-03T15:55:07.677278 | 2020-12-20T08:46:22 | 2020-12-20T08:46:22 | 308,579,516 | 2 | 1 | null | 2020-12-20T08:42:35 | 2020-10-30T09:14:59 | Python | UTF-8 | Python | false | false | 2,083 | py | from konlpy.tag import Okt
okt=Okt()
##추가 코드 Histogram
Hist = lex2.copy()
Hist['Frequency'] = 0
res=[0,0,0] #Positive,Negative,Moderative
pre_texts=[] #다음 감정 학습을 위해 2차원 배열로 전처리된 형태소를 보관
for i in range(len(dataset)): # 이거 잘 돌아가는지 확인 못함 안되면 range(len(dataset)) or range(20)이렇게 바꿔
text=''
text=dataset.loc[i,'... | [
"noreply@github.com"
] | seawavve.noreply@github.com |
c3236541b8c6d111e19c617df2668068d9984f64 | 0123e2f200d3c6a383bb21625147f4e3bfafed27 | /CNN-MNIST.py | 1656c5f81795a51ea2e5c59b81f6f086f3012169 | [] | no_license | KingBigHandsome/Pycharm_DeepLearning | 1aa6c7f6db681be1d06ee655a3bf9c651b58bbc6 | 70936848fdf43dc7b8f6b9913af251b5c35ab4aa | refs/heads/master | 2020-03-24T12:25:11.929305 | 2018-07-28T22:42:37 | 2018-07-28T22:42:37 | 142,713,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,539 | py | import os
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
# In[2]:
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
# Parameters summaries
def variable_summaries(var):
with tf.name_scope('summaries'):
mean = tf.reduc... | [
"wdshc@cau.edu.cn"
] | wdshc@cau.edu.cn |
c677ade5d5ab6de4167fc9d19c119cf0a810f5f5 | 33d8d8c7efc35c02fdb17f62a712a6981cc7814f | /PYTB1L2PlayerStatistcs.py | f9ae1d9986098d9d648e3bdc4dc106e72e0d0594 | [] | no_license | ryan075/PythonAchievements | 765ca0289a1d43bc35254e9f3dc8fce0f5197c55 | 631fcf268f41118755ac39b123a287f45cf698b8 | refs/heads/master | 2022-12-30T18:39:53.916061 | 2020-10-21T12:33:38 | 2020-10-21T12:33:38 | 296,023,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | print("Vul je IGN in.")
naam = input()
print("IGN: " + " " + naam)
print("Leeftijd Character:")
age = input()
print("Dus " + naam +" is " + age)
print('Gender:')
geslacht = input()
from random import randint
speed = randint(15,20)
strength = randint(10,20)
hp = randint(150,350)
Height = randint(150,220)
import ran... | [
"apple@MacBook-Pro.local"
] | apple@MacBook-Pro.local |
24fa7afed3309d21bdc6e5f02a1291371f741dac | 4441b6cbbf0ec8b694ffddaf7d591f3a6fa12adb | /src/ofx_bp_fix.py | 71a9d8b75db06552627bc8012876cc3297a4f8f7 | [] | no_license | jonathand131/OFX-bp-fix | 75aad875ab04214d6126c0db25444d64ad9c34a5 | 8bd057c7a18aad8cb35146e22014e8c3493a7170 | refs/heads/master | 2021-01-20T19:56:36.732427 | 2016-06-03T11:44:36 | 2016-06-03T11:44:36 | 60,335,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,154 | py | # coding=utf-8
"""
OFX BP Fix
Fix OFX files produced by the french bank Banque Populaire for proper import in Skrooge
"""
import os.path
import re
import sys
from ofxparse import ofxutil
from const_bp import BP_ATM, BP_CHECK, BP_COMM, BP_IXFER, BP_LOAN, BP_SEPA, BP_SUBSCRIPTION, \
BP_XFER_LONG, BP_XFER_SHORT
f... | [
"jonathand131@gmail.com"
] | jonathand131@gmail.com |
7d317a9cb596703ebfacee0371f6d82817ab2c61 | ab347155ce07fcd1cafa43e0ac7839c6367d2312 | /gitweb/lib/python3.6/locale.py | 02e7a5083cd25798ff680d203f0042d96da2b861 | [] | no_license | zlynn247/zlynn247.github.io | b51624bbe8d6b6feca117f95b5e6659b9532844e | 5ad5373ad15aa9ab159129bd25003f3611e42105 | refs/heads/master | 2021-06-17T22:24:31.517412 | 2021-01-30T20:52:54 | 2021-01-30T20:52:54 | 151,956,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | /home/zach/anaconda3/lib/python3.6/locale.py | [
"zacharyslynn@gmail.com"
] | zacharyslynn@gmail.com |
6f920e8d857378b555f1c47659ddb702f88f877d | 7dfd5e6534ff9b789e66f9e3dd32df6714479d14 | /weekly_pwnable/week1/solve.py | bc0eccded58e8703573f030d07723e1d8c990580 | [] | no_license | realbadbytes/ctf_dump | befdf2b88114d689291a054b8574b22aa3856c8b | 693ad57710f114e535881c7118d033e309e6f8ed | refs/heads/master | 2021-01-22T22:20:19.105210 | 2018-12-06T05:09:53 | 2018-12-06T05:09:53 | 85,530,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #!/usr/bin/python3
from pwn import *
# r = process('/home/user/ctf_dump/weekly_pwnable/week1/xkcd')
conn = remote('167.99.10.211', 4444)
conn.sendline('SERVER, ARE YOU STILL THERE? IF SO, REPLY "{}" ({} LETTERS)'.format("B"*512, 528))
print(conn.recvline())
| [
"badbytes.io@gmail.com"
] | badbytes.io@gmail.com |
8639b09e22a762e097a17fdc88dc760c1dfef671 | f13e64e92c03d2b1e179e798941b460089e0c6b8 | /config.py | 639192a585ffbe4c10eecf4f770ecca138bcd477 | [] | no_license | mohan78/pro1 | c4ce29c2b3ae03be1c5f815cf28b0f38343430a9 | 07bf763b219c80a2d288a8d7a027b62304611b66 | refs/heads/master | 2023-07-08T22:20:47.156501 | 2021-08-11T04:39:02 | 2021-08-11T04:39:02 | 393,147,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | import os
class Config:
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'postgresql://postgres:1397@localhost:5432/project1')
SQLALCHEMY_TRACK_MODIFICATIONS = False
DEBUG = os.environ.get('DEBUG', True) | [
"mohanroger63@gmail.com"
] | mohanroger63@gmail.com |
57c0c4e40f3284e6323c34b51637cd58390ac524 | 7a6b62e1744f58bf42db306f8ee0341e4105f74e | /coursera python basics/Michigan University/def1.py | b9620b51f5c7fff5cdd082427f7925820ba6411a | [] | no_license | kiselevskaya/Python | cd15722992c11ecea3eb5fb8d84b2ce8f1e09189 | c7053787e385a27dec1ae22c7b4b1f5d0362c87a | refs/heads/master | 2023-06-15T19:13:34.594899 | 2021-07-15T19:57:38 | 2021-07-15T19:57:38 | 113,674,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | def computepay(h,r):
if h <= 40:
pay = h * r
else:
pay = 40 * r + (1.5 * r * (h - 40))
return pay
try:
hrs = raw_input("Enter Hours:")
h = float(hrs)
rate = raw_input("Enter Rate:")
r = float(rate)
except:
print 'Error, please enter numeric input'
... | [
"kiselevskaya.viktoriya@gmail.com"
] | kiselevskaya.viktoriya@gmail.com |
1da6b4bdb096618e1b81fd8e0b6526d408c2740b | e27333261b8e579564016c71d2061cc33972a8b8 | /development_codes/Backend/.history/Word2Vecimplementation_20210807163821.py | a98c96bff762a25a2db8ea548a2cbfea6460d445 | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | from gensim.models.word2vec import LineSentence
from BM25implementation import BM25Class, QueryParsers
from gensim.models import Word2Vec
from sklearn.metrics.pairwise import cosine_similarity
import tempfile
import numpy as np
import pandas as pd
from BM25implementation import *
from time import time
from IPython.disp... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
876d08fd4a0a4bd05f23c2bcaafe6b6c53e69652 | 959a200bdc6b088a21b593889bb9fe20f43a0fef | /sprite.py | 7d2ee36e8c4d9f4b4d558fe69dfa1a5ba5cdcb6f | [] | no_license | HAK-ux/Brick_Breaker | 7ab1540a1dda85c1f012b28e85c12b702da0d784 | 311085d532496c23197ba57fc2fcd5cc9fd16a67 | refs/heads/main | 2023-07-24T13:04:45.232743 | 2021-09-07T07:46:53 | 2021-09-07T07:46:53 | 403,806,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | import pygame
# Class representing a sprite.
class Sprite:
def __init__(self, surface, width, height, initial_x, initial_y):
# Attributes
self.surface = surface
self.width = width
self.height = height
self.x_position = initial_x
self.y_position = initial_y
... | [
"haiderak@students.cs.ubc.ca"
] | haiderak@students.cs.ubc.ca |
759bc95aab627730234d447437ce14f29bfd4235 | 12709ca90b699bd76cb6875ea2c7a32461edd9fa | /Blocks/EndWhileBlock.py | 350eb759e711b459d15fc5f4145ad3054d1351b8 | [
"Apache-2.0"
] | permissive | namo-ratna-trayaya/Grail | 07bdb7b78d7141b47e2be45e4a209d07058a4758 | d0197d9bf8e25c125742be2517fc2f6659ef02e7 | refs/heads/master | 2021-06-03T19:23:12.647306 | 2016-06-12T14:27:46 | 2016-06-12T14:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | from Block import Block
class EndWhileBlock(Block):
'''
generates sql to end a while loop
'''
endStr=""
def getEndStr(self):
'''
returns the ending string
'''
return self.endStr
def __init__(self,stage,indent,endStr,counter):
'''
construc... | [
"siddu92new@gmail.com"
] | siddu92new@gmail.com |
9e1ef4df64a6f45ddd5429b0f9cc48d51648c085 | 524223168cc3e4af23a3a7e46cc03086e823b838 | /polls/views.py | c07366fcd4bbe6beedb5d9537a4cdb9d4236bd95 | [] | no_license | moonsng/mysite | ebe80708ea0f05037aa8f26a19797c868630ccfc | d5cd71b82a9494ac9550756d8ccb5e87394fe106 | refs/heads/master | 2023-06-26T10:16:40.155754 | 2021-07-26T05:36:17 | 2021-07-26T05:36:17 | 389,520,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("HELLO")
# Create your views here.
| [
"ericajg324@naver.com"
] | ericajg324@naver.com |
4ae88be2832aa4f68f902e14e397487fc2d68ae1 | 3e2607dc50fe20674f5249f58f3fbc5066e7b506 | /0x0A-python-inheritance/3-is_kind_of_class.py | 7533ff6d07a53c6d10973dc21d071a45f05368e7 | [] | no_license | francisco0522/holbertonschool-higher_level_programming | 685b300e93afba51699d065e73419e95fabd37d2 | 789d737a738a150b32f3b2dc9d1b106ce423eb60 | refs/heads/master | 2020-09-29T04:11:27.813003 | 2020-07-20T18:52:03 | 2020-07-20T18:52:03 | 226,946,158 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | #!/usr/bin/python3
def is_kind_of_class(obj, a_class):
if isinstance(obj, a_class):
return (True)
else:
return (False)
| [
"pacho0522@gmail.com"
] | pacho0522@gmail.com |
e12dc23d3267c70efa7ccbcc57e9ed839f3a8aaf | 940a7bbe4cb4ebf620e79beb755704e0de74e416 | /Projekt/rozdz16/country_codes.py | 6afb3fe01f7c8ac7588dcdcede01a99b489b377f | [] | no_license | bbaldyga/Python | 1cf52b22173b3096d4d6ae5bee0325805c33a58f | 45669c8913bf403e280fba23029a992f6689c4ec | refs/heads/master | 2023-05-26T05:53:23.041564 | 2021-06-10T18:14:17 | 2021-06-10T18:14:17 | 345,006,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from pygal.maps.world import COUNTRIES
def get_country_code(country_name):
"""Return the pygam 2-digit country code form the given country"""
for code, name in COUNTRIES.items():
if name == country_name:
return code
#If country wans found return none
return None
print(get_coun... | [
"baldygablazej@gmail.com"
] | baldygablazej@gmail.com |
7cae122dd1ea97db0a34ef601b7b3f4d9e4e154e | 9958a14eea4e016f94d3ce31223076550c94ef67 | /carmin-server/server/resources/models/boolean_response.py | a8fff93110b327d7dc56d897acd0e9a503b992bb | [
"MIT"
] | permissive | louis-ver/CARMIN | 03af8fce7f42af0ff823a4323c72c8da9aa4e040 | 2f9036b20c723740790da17bdf84d92eb19c036e | refs/heads/develop | 2021-09-09T03:34:44.570114 | 2018-03-12T21:33:02 | 2018-03-12T21:33:02 | 113,084,961 | 0 | 0 | MIT | 2018-03-12T21:33:03 | 2017-12-04T19:23:05 | Python | UTF-8 | Python | false | false | 428 | py | from marshmallow import Schema, fields, post_load
class BooleanResponse():
def __init__(self, exists: bool):
self.exists = exists
def __eq__(self, other):
return self.__dict__ == other.__dict__
class BooleanResponseSchema(Schema):
class Meta:
ordered = True
exists = fields.... | [
"noreply@github.com"
] | louis-ver.noreply@github.com |
917c2c04093058446e6e897bb65314bbfd598e5a | 526dfe77d7c2b92e5b9e5f74c41e52d59003bc8b | /03ConditionalsAndControlFlow/99try.py | 4bbc39c0ed0224df4126350b97642219d83a571a | [] | no_license | roonitoon/training | b5b188b9a1ebad51968467c8a559de2724d12e64 | b05b58b7b16b2bbe82419c2316d357f45c81faff | refs/heads/master | 2022-01-20T06:55:33.591266 | 2019-04-18T09:25:38 | 2019-04-18T09:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | # รับคะแนน แล้วให้ตีออกเป็น grade A,B,C,D,F | [
"adisak@intelligent-bytes.com"
] | adisak@intelligent-bytes.com |
2181f2fe6f75fac789710cbdac67601e469c859f | 377dc973a58d30154cf485de141223d7ca5424dd | /havok_classes/hkxMaterialShaderSet.py | 11d2777e0336631ee065cf111434eaee979b4597 | [
"MIT"
] | permissive | sawich/havok-reflection | d6a5552f2881bb4070ad824fb7180ad296edf4c4 | 1d5b768fb533b3eb36fc9e42793088abeffbad59 | refs/heads/master | 2021-10-11T12:56:44.506674 | 2019-01-25T22:37:31 | 2019-01-25T22:37:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from .hkReferencedObject import hkReferencedObject
from typing import List
from .common import get_array
from .hkxMaterialShader import hkxMaterialShader
class hkxMaterialShaderSet(hkReferencedObject):
shaders: List[hkxMaterialShader]
def __init__(self, infile):
self.shaders = get_array(infile, hkxMa... | [
"kevin@turtlerockweb.com"
] | kevin@turtlerockweb.com |
355025c8b812e8925a20b8f940ecb66379aac49c | de8eb9dcdbe58fb4f8b76c497d4cbb9020090e9c | /anokas_starter.py | 69f59e6ccebacf586ba64e2f918a26a73d3f77d8 | [] | no_license | wkirgsn/zillow-price | 7a544d51f36d908284c6cd097d35caf0be120cbe | 252141917f813a6f710e7ee49c72b05c68fceec9 | refs/heads/master | 2021-05-16T13:39:14.671670 | 2017-10-01T11:47:00 | 2017-10-01T11:47:00 | 105,437,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,850 | py | import numpy as np
import pandas as pd
import xgboost as xgb
from catboost import CatBoostRegressor
import gc
print('Loading data ...')
train = pd.read_csv('data/train_2016_v2.csv', parse_dates=['transactiondate'])
prop = pd.read_csv('data/properties_2016.csv')
sample = pd.read_csv('data/sample_submission.csv')
prin... | [
"wilhelmk@mail.uni-paderborn.de"
] | wilhelmk@mail.uni-paderborn.de |
9544841fc293907e211e29dc992b4419391f68dc | 5a95f6c93b33395dbe8196272ceeeb5db8807595 | /goods/goods/wsgi.py | edce0dd24217a5e012955ac06bff9f2b28ea6b07 | [] | no_license | endlessmeal/simbirsoft_services | c69070a48fbcbc7f22b5adb117d7a5572a3fa6bf | 7d04bec672981d137343deb23571b0ad88ece0e5 | refs/heads/master | 2022-12-07T05:33:11.685829 | 2020-09-06T14:00:03 | 2020-09-06T14:00:03 | 278,183,758 | 0 | 0 | null | 2020-09-06T14:00:06 | 2020-07-08T20:05:01 | Python | UTF-8 | Python | false | false | 387 | py | """
WSGI config for goods project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTING... | [
"baloyan99@list.ru"
] | baloyan99@list.ru |
c61b485be71d37e1c1aa04dbb57dde30e36caab9 | 8cd76a2218bdadb6126ea176c2840daf27f2b146 | /pycode_hub/012_tidy_content.py | caae2be5f4decb41b07adf2652bcfaa4b7709426 | [] | no_license | hee0624/pycode | bf27b4c3eda2cb4f0031f7b38c26abbdc049b532 | d19c0fb28d1eb0b655347b5ca4b00cc84521ba94 | refs/heads/main | 2023-04-19T12:04:33.433896 | 2021-04-29T09:05:43 | 2021-04-29T09:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,212 | py | # coding:utf-8
"""
@desc: 处理ocr之后的内容,整理成完整的语义段落
@author: chenhe
@create: 2018年 12月 19日 星期三 09:24:52 CST
"""
import re
import jieba
def tidy_content(ori_content, line_num=24):
"""
处理ocr之后的内容,整理成完整的语义段落
:param ori_content: 待整理的内容,类型为string
:return fmt_content: 格式为string
"""
lines_blank = []
... | [
"chenhe@datahorizon.cn"
] | chenhe@datahorizon.cn |
bad3c8290c03c546ca8cb00e740e87e0c82af504 | 543a414c879b62484a6837a1d8dbcf736cc486da | /mymod.py | b0cdcdfc01877dfa29e2dc195ddefe2d1d1dc470 | [] | no_license | hanochk/myRepo | d8a94a459f200625889473df998e4e7e2c569bf8 | a1138b0fbf0763d31255a5292dd79752ff589161 | refs/heads/master | 2021-07-15T10:50:07.874648 | 2021-02-18T12:54:02 | 2021-02-18T12:54:02 | 97,365,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # mymod.py
"""Python module demonstrates passing MATLAB types to Python functions"""
def search(words):
"""Return list of words containing 'son'"""
newlist = [w for w in words if 'son' in w]
return newlist
def theend(words):
"""Append 'The End' to list of words"""
words.append('The End')
... | [
"noreply@github.com"
] | hanochk.noreply@github.com |
362a23564914b6d36a4e32aacc9ab9590bbc7c70 | 3beb93caec1a26a9e058dc1b60d61e57bdaa56cd | /upgrades/surveyor.py | c965341eb5a7224fdae0f639c2cac59752ba4bd9 | [] | no_license | dudisgit/REMOTE-python-game | 0c91db596ac6e044409065166c6dc0b95264539d | c5462900e0b78a3e1a0eecdc684fe6735207355c | refs/heads/master | 2021-01-25T08:19:36.204298 | 2018-05-10T20:01:36 | 2018-05-10T20:01:36 | 93,753,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import upgrades.base as base
class Main(base.Main):
def __init__(self,LINK,ID=-1):
self.init(LINK)
self.ID = ID
self.name = "surveyor"
self.displayName = "Surveyor" #Name of the upgrade (displayed)
self.droneUpgrade = False
self.damage = 0 #Damage to the upg... | [
"dudethisbotguyisedgy@gmail.com"
] | dudethisbotguyisedgy@gmail.com |
669da776948e077624f44e22fdecf2816689f56c | a9ae4498a248f39c229d2eb1f10c401b3127bb6a | /decision_tree_regression.py | de740b023190c9581a48ba94f1ac2d10cdc646ef | [] | no_license | samariotorres/projects | 64a6a32ed51a48082ba18b253efd91604e0465c1 | 4d8f6ffc4a3ccd72bb435af7bc74f8b59e7209e5 | refs/heads/master | 2020-04-14T14:17:52.249734 | 2019-01-22T04:05:13 | 2019-01-22T04:05:13 | 163,892,495 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,952 | py | # Decision Tree REGRESSION (Decision Tree CLASSIFICATION found in decision_tree_classification.py)
# -----------------------------------Decision Tree Intuition------------------------------------------
#Example) Consider a scatter plot that represents some dataset with two indepedent variables x_1 and x_2
# predicting... | [
"noreply@github.com"
] | samariotorres.noreply@github.com |
832ff4fb7f956ba71e8669aad94428fc4e8bc4ef | 917670aa0657612aea5f677c3d9b4ca07acce36f | /period.py | 020ff36fe8f02baed3e00162d6ceb6a0caac1edf | [
"MIT"
] | permissive | Necrophote/demotvcrawl | 7451b69690b8fba91d205dd1ce04494411e623d0 | 21b10d377e9bc51c6410336efff257a31d8ac3a1 | refs/heads/main | 2023-01-20T20:47:29.935251 | 2020-11-29T16:21:04 | 2020-11-29T16:21:04 | 303,712,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import os
import time, threading
def foo():
os.system("start crawl.bat")
print(time.ctime())
threading.Timer(3600, foo).start()
foo() | [
"noreply@github.com"
] | Necrophote.noreply@github.com |
1b15671ce7700da10174ab0bd1ec8dc68a157fe8 | 04edf551ccc291421e21d2fe1dd88a3daf3aa5b6 | /espiga/settings.py | 335fa36d0ece88164cee3d5e3a0cac4bfc7f6929 | [] | no_license | warleysystem/sistema_espiga | 7c559f68600d8820c635df85d932a739ada9b8f4 | 619164b667169a6fa066c5bce4d89847e1a2db51 | refs/heads/master | 2021-01-15T22:58:21.357538 | 2011-04-07T11:38:23 | 2011-04-07T11:38:23 | 1,581,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,629 | py | # Django settings for espiga project.
import os, platform
PROJECT_ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
MEDIA_ROOT_PATH = PROJECT_ROOT_PATH
MEDIA_ROOT_URL = '/espiga/'
MEDIA_ROOT_URL_ADMIN = '/'
LOCAL = True
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'... | [
"flaviohcf@gmail.com"
] | flaviohcf@gmail.com |
812fc692d35e71f7c0b0eada335f86fefac1c3e0 | 4668b5e3d5dc1e4b6e6d8b0a0f698f1d338a013b | /practice/InterFacePractice/BiaoYang.py | aaa2d34d52dc9ec4df814dc19de93ac311b6d508 | [] | no_license | Hardworking-tester/HuaYingAPP | d0ac9b915fc22501577b9e5e6e2d0ec772b32af8 | 8cf74adbc1db62fe27bb8d75adccae25eef49389 | refs/heads/master | 2021-01-24T06:40:22.469601 | 2017-06-02T13:24:59 | 2017-06-02T13:24:59 | 42,506,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,410 | py | # encoding:utf-8
import urllib
import urllib2
import httplib
class Tt1():
#表扬
def biaoYang(self):
web_url='http://192.168.1.241:8080/zhsq/client/owner_repair!save.action'
values = {'token':'6m3ou41429594424828','stewardId':'402881714e0a715e014e0a7479600000,402881714e0a715e014e0a9943bf000b,40... | [
"373391120@qq.com"
] | 373391120@qq.com |
fc02747ee5fad59c76ecb639e240238121325320 | 77a543ef8b3501c152dfa18fab3f3c14b21f2a1d | /sanscom/utils/urls.py | 2a9c6be520d480b38409af6ef4122dbbd2790d48 | [
"BSD-3-Clause"
] | permissive | ouhouhsami/django-sanscom | c483d3461ca51684894e41045f2849814e91cf3e | 38f4837795bdaf8d7151241e9c03f934ec25efed | refs/heads/master | 2020-04-05T23:26:30.568324 | 2013-09-09T20:10:26 | 2013-09-09T20:10:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | #-*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from geoads.views import (AdDetailView, AdSearchDeleteView,
AdSearchUpdateView, AdCreateView, CompleteView,
AdPotentialBuyersView, AdPotentialBuyerContactView)
from geoads.contrib.moderation.views impo... | [
"samuel.goldszmidt@gmail.com"
] | samuel.goldszmidt@gmail.com |
c7d1c021adb9a0479f9a0c56b4f62e21fcf449c7 | 9dbd877adf6d89583b83a5769a63af627f5b1130 | /download_stocks.py | 95c76acf3d3cf57ffc43b960a5d8f7717b9b1289 | [] | no_license | jachang820/stock-patterns | 5c8a07230a17f4c1f3674c17608125bc0d4ded17 | 1796d67f5e5b4f3b4a3923e7fe569dd7cacefd82 | refs/heads/master | 2022-12-08T16:03:57.147154 | 2020-08-27T05:51:15 | 2020-08-27T05:51:15 | 290,448,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | import urllib.request, json
from datetime import date
from variables.py import hidden_variables
query = "https://www.alphavantage.co/query"
api_key = hidden_variables['AV_KEY']
def _download_data_from_api(url):
with urllib.request.urlopen(url):
data = json.loads(url.read().decode())
return data
def _get_outp... | [
"j.a.chang820@gmail.com"
] | j.a.chang820@gmail.com |
0be1345d423841c47b788d0c3e2db0cca56488f8 | 30cffb7452220c2ac2961dd2e0f42e3b359a59c0 | /simscale_sdk/models/inside_region_refinement_with_length.py | d640c7685de5b48d25996222389744f8de715d77 | [
"MIT"
] | permissive | vpurcarea/simscale-python-sdk | 0bf892d8824f8d4599caa0f345d5ba28e038f5eb | 6f2d12b2d21142bd854042c0fb402c2c797629e4 | refs/heads/master | 2023-03-14T04:31:06.226337 | 2021-03-03T16:20:01 | 2021-03-03T16:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,189 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class InsideRegionRefinementWithLength(object):
"""NOTE: This class i... | [
"simscale"
] | simscale |
315a23ef405af371a30728983dc84b9cc0441de4 | 888a6485c8ace68b7129a11bc658746f1d23cceb | /search/urls.py | c316cf881dbc798233c8138d1d5f227538e10020 | [] | no_license | looksocii/Blog_System | cbb32104d7d6d31a24bb9864816c0d75b86e21f9 | 52598dc617104201c9ad387f0bff8ec41c8b32b0 | refs/heads/master | 2021-09-08T20:17:11.444456 | 2021-08-27T14:26:35 | 2021-08-27T14:26:35 | 246,037,346 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('register/', views.my_register, name='register'),
path('creator/', views.creator, name='creator'),
path('post/', views.post, name='post'),
path('changepass/', views.change_pass, name='change_p... | [
"aopup1122@gmail.com"
] | aopup1122@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.