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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b1dea3c4983f09b3a6dc08bf597ea9ff4f8bd617 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2158/60876/250371.py | 2410110cab9dc4be3dd9ff187554b0e5447e6868 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | string=input()
index=0
while string[index]==' ':
index+=1
temp=""
if string[index]=='-':
temp+="-"
index+=1
while index<len(string) and string[index].isdigit():
temp+=string[index]
index+=1
if int(temp)<-2**(31):
print( -2**(31))
else:
print(temp)
elif not string[... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8d1fa11057a3eb756835e5592f14169c1e60d7ef | 12aed04fd2bcedb7405c8fc70e4312907fdb30b5 | /comparator/rms_final_comparator.py | bd6abd124f86f3ef91ff6e52cd377021e809e9f9 | [] | no_license | rogerdenisvieira/myoplotter | 8387f99e01c473d9d72ef2b09374e3586514d17c | 64bd2d82b02cc84aebe779aaea1ff6a565843a96 | refs/heads/master | 2020-03-22T22:36:57.543475 | 2019-06-27T13:18:42 | 2019-06-27T13:18:42 | 140,761,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | import matplotlib.pyplot as plt
import numpy as np
from numpy import mean
from comparator.base_comparator import BaseComparator
DPI = 100
class RMSFinalComparator(BaseComparator):
def __init__(self):
BaseComparator.__init__(self)
pass
def compare(self, rep_rms_list, cvm_rms_list, output_path... | [
"roger_v@dell.com"
] | roger_v@dell.com |
efb162f0cd66acb5dedda151c7f0b21528f0fffe | bee7dc3fd989fa3b7d79a1a4d58255d8a2019cb9 | /categories/utils.py | 8b372ce17ce801dd7fb730195e8c80f5abdec229 | [] | no_license | philipp94831/mmds | c7a10dabc204b6c9f640c508508068ef298645a8 | 6d1ae5776996c4235a3c9a517286d72eeaf6237a | refs/heads/master | 2020-04-06T07:06:45.144039 | 2016-08-31T08:43:12 | 2016-08-31T08:43:12 | 59,962,975 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | import sys
def uprint(*objects, sep=' ', end='\n', file=sys.stdout):
enc = file.encoding
if enc == 'UTF-8':
print(*objects, sep=sep, end=end, file=file)
else:
f = lambda obj: str(obj).encode(enc, errors='backslashreplace').decode(enc)
print(*map(f, objects), sep=sep, end=end, file=f... | [
"richard.trebichavsky@gmail.com"
] | richard.trebichavsky@gmail.com |
6b13c73368d607436536d7bb16a10162a3ac9dc2 | 1c9fadd68fe1a22d873c9b3d9d50e54ca67614cb | /plaid_integration/urls.py | e823bbb4a90aa8a6923cac0758ca97bb57a7c833 | [] | no_license | vijayhk94/plaid_integration | aacda2c350d58710d9f6bb2c7429c41d998bcfb7 | 266ab0d6f9c9ba799ab773d40d6312138b66c16a | refs/heads/master | 2022-11-28T17:03:07.378996 | 2020-08-06T11:44:09 | 2020-08-06T11:44:09 | 285,233,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | """plaid_integration URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home'... | [
"vijay.kahalekar@belong.co"
] | vijay.kahalekar@belong.co |
ecab9c466f0cd944b8390cc5ff0302f9d8b7cbd3 | 7a1b0ac96ab98666ba29092c12378aca583e090e | /Content/Jay's Oled+Ultrasonic Sensor.py | c37979a1f0493c767b173a80421d3f807c674498 | [] | no_license | wendahere/JAWS | 12a2e571996c7b6ff81ebf13a8fc37c62a6e161b | 303800c42fa159bbb969eba475b99f49cc65dd16 | refs/heads/master | 2021-07-17T03:16:05.307792 | 2020-10-01T08:03:36 | 2020-10-01T08:03:36 | 215,438,213 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,981 | py | import machine
import sys
import time
from machine import Pin
import utime
from machine import Pin, I2C
import ssd1306
from time import sleep
trig=machine.Pin(25, machine.Pin.OUT) #Purple wire
echo=machine.Pin(26, machine.Pin.IN) #Blue wire
jaws_state="Stop" #Starting position is Stop, this will be reflected on the ... | [
"noreply@github.com"
] | wendahere.noreply@github.com |
5593fcb9ec3b1417a331b3952f8d5f7cd229fa92 | 11bb0cbe6de2a0a4e94fc0ba610f61894d5593a1 | /VBS_Zgamma/Significance/Invert_detajj/data_cards/th2_to_txt.py | 40511394bf0a015827f544aacee6e14b17f68643 | [] | no_license | AnYpku/PKU-Cluster | 0dc4a88445aeb3ca239b2d7d7f796c6a67f3f69c | f9ffbcb7988053f4618fd015c1bb656d92ff51c6 | refs/heads/master | 2022-11-01T23:46:59.442037 | 2022-10-21T06:37:43 | 2022-10-21T06:37:43 | 188,202,345 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 10,414 | py | #!/usr/bin/env python
from ROOT import gROOT, THStack, TH1D, TList, TFile
import sys
from math import sqrt
from numpy import sum
def merge_bin(th1):
nbins=th1.GetNbinsX()
print 'nbins', nbins
th1.SetBinContent(nbins-2,th1.GetBinContent(nbins-2)+th1.GetBinContent(nbins-1)+th1.GetBinContent(nbins))
... | [
"anying@pku.edu.cn"
] | anying@pku.edu.cn |
80581b80f9d902d4e72466d2931fc4f87459aa48 | e672677f921d11f59c6a83dcbb8b947330730c5d | /source/incqueryserver-jupyter/iqs_jupyter/mms_extensions.py | 3d23072c7e2f4ddde1ad7f11044a8666dca919d1 | [
"Apache-2.0"
] | permissive | IncQueryLabs/incquery-server-jupyter | 4e1cc36c2643c5ba324e2f98618a5d4912bbe6bf | 40072eb8cdfd60ba36783faf5bef4f88e5342f8a | refs/heads/master | 2023-08-17T01:10:06.501516 | 2021-10-21T09:51:41 | 2021-10-21T09:51:41 | 187,173,984 | 2 | 1 | Apache-2.0 | 2023-02-02T08:43:24 | 2019-05-17T08:04:37 | Python | UTF-8 | Python | false | false | 10,410 | py | # Copyright 2019 IncQuery Labs Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"gabor.bergmann@incquerylabs.com"
] | gabor.bergmann@incquerylabs.com |
06746b9cdd028e85cf95b1206bf2464f527454c1 | f5533537b9e1b79afe8f034ebcd453bfe8adab5d | /0x07-python-test_driven_development/6-main.py | 9f21b3c501094ffe4261da7c20e7fca8c21d9010 | [] | no_license | Matteo-lu/holbertonschool-higher_level_programming | 99d06bf4ed6b4ca770a45d30e3158a18ad7d5a0b | 77311f452e8d62145b5e7afe151557ed7a6d210a | refs/heads/main | 2023-09-03T09:55:12.144861 | 2021-09-25T14:47:47 | 2021-09-25T14:47:47 | 361,899,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | #!/usr/bin/python3
max_integer = __import__('6-max_integer').max_integer
print(max_integer([1.1, 2.2, 4.4, 6.6]))
print(max_integer([1, 3, 4, 2]))
| [
"mateolondono.u@gmail.com"
] | mateolondono.u@gmail.com |
9fb17ce7b6fb0a7b73112825f591381e23c30c80 | fe70774ff6898c5bdb0c941b4f335de576abfdb6 | /autotest/test_flopy_io.py | bb09cd2207661c1b0258d7feb56b3d6788f12990 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | robinthibaut/flopy | 35af468415d1ba6e1de119a7cb335381304fada9 | 22ef330bcfb9259fc23735d6b174d27804b624a0 | refs/heads/develop | 2023-06-30T21:43:24.101593 | 2023-06-13T19:46:03 | 2023-06-13T19:46:03 | 255,560,877 | 0 | 0 | BSD-3-Clause | 2022-10-10T12:23:38 | 2020-04-14T09:05:42 | null | UTF-8 | Python | false | false | 3,153 | py | import os
import platform
from os import getcwd
from os.path import relpath, splitdrive
from pathlib import Path
from shutil import which
import pytest
from modflow_devtools.markers import requires_exe
from modflow_devtools.misc import set_dir
from flopy.utils.flopy_io import line_parse, relpath_safe
def test_line_... | [
"noreply@github.com"
] | robinthibaut.noreply@github.com |
d3b5d2220dfd64a054fc44c58b941464e11c9a62 | bb2b6422476f5bd80171a31517465f9f62e15558 | /catkin_ws/build/scan_tools/laser_ortho_projector/catkin_generated/pkg.installspace.context.pc.py | a7beec3bd992862819cd8c913a124d3586a9795b | [] | no_license | Forrest-Z/MyKitAgv | ccd7b1c5fdb3a046bc5267d1827c4a08d89e74a4 | db9506ad8c8a9012fb49775e188932e28526337e | refs/heads/master | 2022-12-07T17:49:23.140713 | 2020-09-07T14:25:04 | 2020-09-07T14:25:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;nodelet;sensor_msgs;tf;pcl_ros;pcl_conversions;geometry_msgs;message_filters".replace(';', ' ')
PKG_C... | [
"nhamtung125@gmail.com"
] | nhamtung125@gmail.com |
929415e28cd27f08856ade898c069d066e6a7851 | 80000409c75d68f15f04d10075df7abae6b1c244 | /stamper_targets/Wedge100B65/bfrt_grpc/bfruntime_pb2_grpc.py | 0178b1671a5179a99f03ff074ff10281f3401dcb | [
"Apache-2.0"
] | permissive | ralfkundel/P4STA | a778ca1b9bbe2f4063da5fa25affec90c6d7ca85 | a9fea4d7e48de05e17b9da14e5c31455a9f00f9d | refs/heads/master | 2023-07-21T18:37:57.558802 | 2023-04-13T11:58:42 | 2023-04-13T11:58:42 | 186,822,141 | 27 | 7 | Apache-2.0 | 2023-07-05T21:30:57 | 2019-05-15T12:30:40 | JavaScript | UTF-8 | Python | false | false | 9,014 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import bfruntime_pb2 as bfruntime__pb2
class BfRuntimeStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, ... | [
"ralf.kundel@kom.tu-darmstadt.de"
] | ralf.kundel@kom.tu-darmstadt.de |
58e06984a80bfb1f133e9e4eee18958f1fe78fb2 | 0f5bdddfb93154d7f3cf097ede0a8c9ac403e027 | /tests/test_rtcrtpreceiver.py | cb6865f41e23a94d28ffbaf0933d26f08ec809e6 | [
"BSD-3-Clause"
] | permissive | pslq/aiortc | 13061885fc06eef42a05a0d8ad6eb3a3708873a3 | b27b27d3509c2a8335aadd949511b24b93530d86 | refs/heads/master | 2020-03-27T02:17:50.118454 | 2018-08-22T16:44:03 | 2018-08-22T17:58:11 | 145,780,077 | 1 | 0 | null | 2018-08-23T00:54:52 | 2018-08-23T00:54:52 | null | UTF-8 | Python | false | false | 9,343 | py | import asyncio
from unittest import TestCase
from unittest.mock import patch
from aiortc.codecs import PCMU_CODEC
from aiortc.exceptions import InvalidStateError
from aiortc.mediastreams import AudioFrame
from aiortc.rtcrtpparameters import RTCRtpCodecParameters, RTCRtpParameters
from aiortc.rtcrtpreceiver import (Nac... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
0ea8b20ca248bdf1880742e069342724e1b07a53 | 21f01e2a697f1ec37d49934a46084882d700d9f8 | /nhom-3/source/item/models.py | 2b1731a0c869b9c32b2318dfa252fc6e856cfeb0 | [] | no_license | trunganhvu/INT2208-8-2019 | 362b1238e8568876fa0b09cfccfac0b3edb47225 | 58867a3844cbc2633516082f8dae198523b76d2d | refs/heads/master | 2020-04-28T08:57:21.570832 | 2019-05-12T17:58:07 | 2019-05-12T17:58:07 | 170,449,725 | 1 | 0 | null | 2019-02-13T06:01:43 | 2019-02-13T06:01:40 | null | UTF-8 | Python | false | false | 563 | py | from django.db import models
from django.contrib.auth.models import User
from user.models import Restaurant
# Create your models here.
class Comment(models.Model):
userId = models.OneToOneField(User, on_delete=models.CASCADE)
content = models.CharField
def __str__(self):
return content
class Item... | [
"conglb@yahoo.com"
] | conglb@yahoo.com |
d9642c6dc06e274de14cd94b6e2fc5eaadf3a6fb | a98f696107817c68f058ff4148276372078940e0 | /BERT/src/dataset.py | 8005aefa81ec9c3f7210bb6a58922763c81eba29 | [] | no_license | MiuLab/CQA-Study | 90d57e4356d39cc9b82039dd544149fdf25c8866 | 4a8f72dd43c5cf1937883336670180b6a11e4762 | refs/heads/master | 2022-04-01T17:46:21.066198 | 2020-02-03T12:38:52 | 2020-02-03T12:38:52 | 222,895,519 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,763 | py | import numpy as np
import torch
from torch.utils.data import Dataset
class QuACDataset(Dataset):
def __init__(self, data, padding=0,
context_truncated_len=400,
utterance_truncated_len=100):
self.padding = padding
self.context_truncated_len = context_truncated_len
... | [
"b03902072@ntu.edu.tw"
] | b03902072@ntu.edu.tw |
2676c8b70cc62e532379d2c46e363e54f2d94d14 | 97999ecca9e50972cc9e80df27d4768d83498dba | /credentials/migrations/0008_aboutme_resume.py | 0ca7767e117e9ddde7e97056617a2f2465605750 | [] | no_license | apatten001/portfolio | c79312d13f7a75f909e2d4d66ab6ef275b69543e | 4fdb503afccea83b849b62e3b12539e25a0b722f | refs/heads/master | 2020-04-25T05:45:20.946946 | 2019-03-07T16:53:00 | 2019-03-07T16:53:00 | 172,554,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 2.1.5 on 2019-02-27 19:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('credentials', '0007_auto_20190128_1630'),
]
operations = [
migrations.AddField(
model_name='aboutme',
name='resume',... | [
"apatten001@yahoo.com"
] | apatten001@yahoo.com |
cac2318a8b307ad741c58dda75e970b204bed67a | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/bgrtej001/piglatin.py | 8a3ae80180102da97b97c2eee4594a3e8512b2c3 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | #Tejasvin Bagirathi
#Assignment 4, Question 3
def toPigLatin(s):
wrdno = 1
new = ""
for i in range(len(s)):
if s[i] == " ":
wrdno+=1
string = s.split(" ")
for i in range(wrdno):
wrd = string[i]
#If word starts with vowel
if wrd[0] in "aeiou":
wrd =... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
978111f2aee347cc7bb6b68d5008784cbd0cfd2e | 9b286a676f3db10da382ef165b747766cad903d5 | /02.Programming Fundamentals/11.text-processing/emoticon_finder.py | 3b8f332d0214ca4e970910d11dab24ff8b53c9d4 | [] | no_license | moshu1337/SoftUni | 77213cd12fce989557fb3891ce0befb53a6a85e9 | 262351b9def88a2810c7fc0d05d161671a0a89e9 | refs/heads/master | 2022-12-01T13:50:40.785701 | 2020-08-19T18:18:22 | 2020-08-19T18:18:22 | 281,163,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | emoticon = ':'
text = input()
for char in range(len(text)):
if text[char] == emoticon:
if text[char + 1] != " ":
print(f":{text[char + 1]}")
| [
"68555478+moshu1337@users.noreply.github.com"
] | 68555478+moshu1337@users.noreply.github.com |
105d384348c813c95cee9ab8d72d6d04d7edae30 | e8d03c56048a02df607ea5e48660285175174ee7 | /bbs/start.py | a20be8d8021280f9766115058c0bb1a307843cc6 | [] | no_license | Alex-wwei/Tornado | acf3b4b996bcf2fabf299021ad9b96eb6d49d8b5 | 0448c075ce0cf1c6b2b3d1de3cc0d83bee6792cc | refs/heads/master | 2022-06-16T01:42:44.167203 | 2017-07-20T02:35:22 | 2017-07-20T02:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,220 | py | import tornado.web, tornado.ioloop, re
class BaseField(object):
def __init__(self, error_dict, required = True, ):
self.error_dict = {}
if error_dict:
self.error_dict.update(error_dict)
self.error = None
self.required = required
self.is_valid = False
... | [
"starhub2009@qq.com"
] | starhub2009@qq.com |
11180e15b35f69a7900177782c6a8647996bb3db | 9efb7ed6ae39065837247c6fe66655e702d6120a | /static/solutions/labs/bfs/solution/vertex.py | db5d3c094bb69cf5c2f6b5fc5d20c6a21e515840 | [] | no_license | hardlyHacking/cs1 | 305b0db330ee13e4bbde71bdb53cb2a2378747a4 | 957f578b933fe01b208eae8e5c9577c056b565e5 | refs/heads/master | 2020-03-09T16:26:11.023918 | 2019-11-26T03:25:24 | 2019-11-26T03:25:24 | 128,884,594 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,695 | py | # vertex.py
# Emily Freebairn
# November 17, 2011
# Minor changes by THC.
# The Vertex class represents a vertex in a graph. It stores the vertex's name,
# location, and a list of the vertices that are adjacent to it.
from cs1lib import *
RADIUS = 8 # RADIUS of the drawn vertices
LINE_WIDTH = 3 # line width of... | [
"hardly.hacking@gmail.com"
] | hardly.hacking@gmail.com |
34c9d63c64f37b6a17a2adfae7b3bb9d3677a416 | 0130c8b14927097663157846adc4b146d67d2fda | /tests/common/test_run/softplus_run.py | 72090ba2620e11675993ae68cec770d88f6b7703 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-3-Clause",
"NCSA",
"LLVM-exception",
"Zlib",
"BSD-2-Clause",
"MIT"
] | permissive | Shigangli/akg | e8be3e0ee1eafe3e42b4cc4d424c28f08ef4c0bc | 3766c54e0b109541932d147a6b5643a334b82403 | refs/heads/master | 2023-09-06T05:13:40.571583 | 2021-11-23T03:44:54 | 2021-11-23T03:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"1027252281@qq.com"
] | 1027252281@qq.com |
cee714270ac9da346b73a254f76e2c64e3ffa383 | 2f361629eff8a16a35a3b37ad8959e22077adfb4 | /lab3and4/ecommerce/serialize.py | d91ae279c636fd638a6d4e53bb1d7a27ebe7ce98 | [] | no_license | alexiscollado/alexiscollado.github.io | 5dfe82ed43a399e089f537b603ad77a6a8ff7a7c | 07bad41f92d24e31a9933991b02a9d560274de57 | refs/heads/master | 2021-05-02T10:16:38.117572 | 2018-04-30T15:50:39 | 2018-04-30T15:50:39 | 120,792,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from .models import User, Product, Cart
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('email', 'first_name', 'last_name', 'shipping_address')
class ProductSerializer(serializers.ModelSerializer):
class Meta:
model = Product
fiel... | [
"lex.collado@gmail.com"
] | lex.collado@gmail.com |
bf87b37a2e04bb39ba5a09c86b581bd34be15a03 | cde373aef58da4226bfadee3d1a7086d22f33414 | /Matplotlib/20-AddingMoreIndicatorData.py | 6deebcb3c6cd32cf086b49db0aff5da22174f70c | [] | no_license | ravi4all/ML_WeekEnd_Feb | 6c66c6e6845062928834986980e5c229a19da6cd | 43891ff36cfcd557861b4eebb99c44c68d24954e | refs/heads/master | 2021-01-09T06:10:34.007131 | 2017-06-12T03:57:54 | 2017-06-12T03:57:54 | 80,917,805 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import matplotlib.ticker as mticker
from matplotlib.finance import candlestick_ohlc
from matplotlib import style
import numpy as np
import urllib
import datetime as dt
#style.use('ggplot')
style.use('fivethirtyeight')
MA1 = 10
MA2 = 30
... | [
"noreply@github.com"
] | ravi4all.noreply@github.com |
b76f179288fa582d387bf950eec30e00a1f63724 | ff44b59792d68783387f542ed76419182630573f | /mage_python/Ex/04/users.py | 17e31c040889b38f52ef8c431831af13addfec6a | [] | no_license | caichenyi/daily | e130a9ab24e170ca3c0167774e9aca739ff7f928 | 717fada9ff473d6d244e8aadfd2b96621fec4120 | refs/heads/master | 2021-09-01T10:08:25.548701 | 2017-12-26T11:13:34 | 2017-12-26T11:13:34 | 114,218,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | # encoding: utf-8
# Author: Cai Chenyi
'''
1. 每一个用户存储信息修改为字典
{name : xxx, age : xxxx, tel: xxx}
2. 用户输入了三次,修改为一次,使用:分隔用户信息
3. 查找的时候使用包含关系,name包含查找的字符串
'''
users = {}
user_info_tpl = '|{0:>20}|{1:>5}|{2:>20}|'
user_info_header = user_info_tpl.format('name', 'age', 'telephone')
fhandler = open('users.txt')
for line in ... | [
"chenyi.cai@wwwarehouse.com"
] | chenyi.cai@wwwarehouse.com |
0c60aa2fb9f53122c19b8224e91ee6cccdc8ee08 | 41976ba2c94759b16f165236cbce8616bb2adeb8 | /eventex/core/tests/test_views_talk_list.py | 5e68a215dffaf3bb6a4734970a341233198ba44f | [] | no_license | AdeilsonF/eventex-adeilson | 6d194849573ca350c94e80ee2f013a7ee699ab72 | cbca9bfbeae19c65e28b7fb32f94f23f7a38f260 | refs/heads/master | 2020-12-24T14:56:54.911529 | 2014-06-13T20:40:01 | 2014-06-13T20:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | # coding: utf-8
from django.test import TestCase
from django.core.urlresolvers import reverse as r
from eventex.core.models import Speaker, Talk
class TalkListTest(TestCase):
def setUp(self):
s = Speaker.objects.create(name='Henrique Bastos',
slug='henrique-bastos',
... | [
"adeilsono.oinfo@gmail.com"
] | adeilsono.oinfo@gmail.com |
1d49c638c84d9cfa20e25fd85489966f882c7123 | bfda3af75d94767a5cb265bd68c17cfbf94e3ee1 | /rosalind/qrt/rosalind_qrtd_tung.py | c6d0de60e3be4d40377362c4f3b26bdba3ad70ce | [] | no_license | orenlivne/euler | d0e5b956a46eacfe423fbd6c52918beb91eea140 | 2afdd8bccdc5789c233e955b1ca626cea618eb9b | refs/heads/master | 2020-12-29T02:24:36.479708 | 2016-12-15T21:27:33 | 2016-12-15T21:27:33 | 20,263,482 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,129 | py | '''
============================================================
http://rosalind.info/problems/qrtd
Given: A list containing n taxa (n<=2000) and two unrooted
binary trees T1 and T2 on the given taxa. Both T1 and T2 are
given in Newick format.
Return: The quartet distance dq(T1,T2).
==================================... | [
"oren.livne@gmail.com"
] | oren.livne@gmail.com |
43a0cab3c9c839ec46266c935ecdf82958e35ef6 | ba3c06f9ae89479fa4987fe841ac09b5b5d71383 | /python_for_kids/book/Projects/monster6.py | a10a99ac4030b0d5d0cfab3769dc4e6741f8afab | [] | no_license | mary-tano/python-programming | 6d806e25011e770a04a0922d0b71bf38c222d026 | 829654a3274be939fa529ed94ea568c12f7f1a27 | refs/heads/master | 2021-05-17T15:30:32.710838 | 2020-04-01T13:37:18 | 2020-04-01T13:37:18 | 250,846,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Лаборатория Франкенштейна
from monsterlab import *
# Основная программа
Frank = Monster("Фрэнки", "необычный")
Frank.show()
Albert = GMonster("Альберт", "задумчивый")
Albert.show()
Sigmund = SMonster("Зигмунд", "веселый")
Sigmund.show()
| [
"masha.mary.tano@gmail.com"
] | masha.mary.tano@gmail.com |
22af5780ca6318f0076646d9a994de340505c2f5 | 5dbb3c65e945a366b2d5c7a4c44fe21c6dfc7b47 | /matrix_addition.py | 508c26721ec762ba3530edec605629d39dc8ccf9 | [] | no_license | kblasi/portfolio | b1e5eb5ea2ad60d939aeb5d4a64c8674d15b1397 | 7b4b671f45717854ee22db5a2fbe6246df234336 | refs/heads/main | 2023-04-26T11:56:01.111130 | 2021-05-17T03:12:37 | 2021-05-17T03:12:37 | 368,036,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | '''
We'll take two matrices with the same dimensions, add them, and return the result
'''
#do it this way or use range function?
def matrix_addition(a, b):
' a and b are two dimensional matrices with the same dimensions '
#initialize the sum of a and b to be a copy of a
sum_of_matrices = a.copy()
... | [
"noreply@github.com"
] | kblasi.noreply@github.com |
db668ec99a3e918fab75689d177f3b571a030a86 | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /leet_code/7. Reverse Integer.py | 79b791271388c6874618159d647c255bde2e2e06 | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py |
class Solution:
def reverse(self, x: 'int') -> 'int':
if x > float('inf') or x < float('-inf'):
return 0
sign = 1
if x < 0:
sign = -1
xstr = str(x)
if -1 == sign:
xstr = xstr[1:]
xstr = xstr[::-1]
skip_cnt = 0
... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
d3ad5c0fca6c1b070a3e8733bd4774edf53ddb72 | 6b1e395ce591f36b87656cc21174da8a46fdb943 | /individuals/triVecAdvMut.py | 522e875e7707b4bc30b229fb5a878122b2d05183 | [] | no_license | abernatskiy/evs | 867eb9fb68f1f7f066b12d30b05667db9228ec4b | 30c617c7d0d122c95caaadccaf481aa4d32992fd | refs/heads/master | 2021-01-10T14:45:31.282492 | 2018-03-08T06:04:12 | 2018-03-08T06:04:12 | 46,129,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,420 | py | import numpy as np
from trinaryVector import Individual as TriVecIndividual
class Individual(TriVecIndividual):
'''Class for evolutionary individuals described by a vector of
numbers taken from {-1,0,1} of constant length, with advanced
mutation operatot. Constructor takes a dictionary with the
foll... | [
"abernats@uvm.edu"
] | abernats@uvm.edu |
46d8832c988bf4eb6ff75712e08950beea18fb75 | 615bc7e8d365212288732a43a6a937537185954e | /10classes.py | 3461968fdbde85967204f62415625898eaa1d392 | [] | no_license | KnightsTiger/tratsgnittegnohtypetisnilarulp | 2f846c5a740f1f378273f7125a2d41f7d30f95d6 | 21f639efc21d64d145e95262dc70ba067d38aca5 | refs/heads/master | 2021-05-26T01:44:05.210790 | 2020-04-09T15:59:14 | 2020-04-09T15:59:14 | 254,004,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | #As a convention a class is starting from a capital letter
class Studnets:
print("done")
##saman = Studnets()
#--------------------------------------------------------------------#
#Adding a method to a class
# calsses = []
# class NewStudents:
# def addClass(self,name,count): #Without self keyword this wil... | [
"tocaldera6734@gmail.com"
] | tocaldera6734@gmail.com |
004ffb4848cb44c224fac37051f30378f5af9281 | 4bbb118943bbd8a1296ab96ebf092c9d26232c20 | /neuroballad/neuroballad_execute.py | 496f4dd1126161ba9aa38f38c9670f019cda0b25 | [
"BSD-3-Clause"
] | permissive | TK-21st/Neuroballad | 66e0baf07fa9f0bcd3118a24e5b466f8dbbf289f | 6d4800e969c35b0f2d64897db24b734a9daaa160 | refs/heads/master | 2020-09-02T23:08:04.598245 | 2019-05-19T17:27:41 | 2019-05-19T17:27:41 | 219,328,262 | 0 | 0 | BSD-3-Clause | 2019-11-03T16:12:28 | 2019-11-03T16:12:28 | null | UTF-8 | Python | false | false | 2,633 | py | import numpy as np
import h5py
import networkx as nx
import argparse
import itertools
import random
import pickle
from neurokernel.LPU.InputProcessors.StepInputProcessor import StepInputProcessor
from neurokernel.LPU.InputProcessors.FileInputProcessor import FileInputProcessor
from neurokernel.tools.logging import setu... | [
"mkt2126@columbia.edu"
] | mkt2126@columbia.edu |
0a8d575b2b400d7251a2163fe1bd61be8ed51ca1 | 5dcb7913895f5892dd945c015920759e1dee7dc2 | /Solutions/day5.py | 78557e74dd6f7b3f83dfae8bdbfeaa749e972547 | [] | no_license | atg-abhishek/adventofcode2015 | a05d7e1f50533fbc03597eb736eb70799bfd42dd | 499c77f2bfa7e48ebae02e0bf94cb17bd5367cdd | refs/heads/master | 2021-08-19T12:09:08.855786 | 2017-11-26T05:04:46 | 2017-11-26T05:04:46 | 112,049,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | from pprint import pprint
li = []
with open('../Data/day5.txt') as infile:
li = infile.readlines()
def part1():
nice_strings = 0
for line in li:
vowel_count = 0
double_present = False
for char in line:
if char in ['a','e', 'i', 'o', 'u']:
vowel_count+=1... | [
"atg.abhishek@gmail.com"
] | atg.abhishek@gmail.com |
460268891e3255c5dbad126bb8d1011ba45d5bc1 | b2c873cb92b71500bcb8468dccc6da7704edb841 | /resumecamp/resume/migrations/0002_auto_20150209_0455.py | 5f2baae03c9053e9a8a6fc2661ee8bc386b149cd | [] | no_license | hawkaa/resumecamp | 019c77839dd2db009542b880498252824ff8dfa2 | 9aa07074ec1326104e73581ad9edc33546e40c73 | refs/heads/master | 2020-06-04T10:52:38.045221 | 2015-02-09T06:20:54 | 2015-02-09T06:20:54 | 30,518,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('resume', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='CV',
new_name='Resume',... | [
"hakon@aamdal.com"
] | hakon@aamdal.com |
710bcc0fb5dcc70b3aacdae1595043478681cdb2 | 02560440f9f91e583fe98d80ab11e18aa6c7a525 | /apps/usuarios/migrations/0003_usuario_correo.py | ad084ca9dc73a72604d08e401a8af1a08f618f45 | [] | no_license | eduardogpg/wamadeusV1 | a36c89176543e638486009620c5131f46743edbc | 82d93293dc6afc95a6661f727162f4055ab83a43 | refs/heads/master | 2020-12-28T01:57:47.831689 | 2015-01-08T05:14:25 | 2015-01-08T05:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('usuarios', '0002_auto_20141215_1710'),
]
operations = [
migrations.AddField(
model_name='usuario',
n... | [
"eduardo78d@gmail.com"
] | eduardo78d@gmail.com |
48067e4ceef655c896f3a35b0571079df7c10a52 | 97a4d29863d1ce96f366554fdd985c3ce580bb5d | /061.py | f14890c43a1e22228adf9d4732a5d4ba2c6c44f6 | [] | no_license | Everfighting/Python-Algorithms | 5c3a102fed3a29858f3112d657c69e077efc7e28 | 235e9b4c66602035be39a8d3b3ad9cf016aebbb9 | refs/heads/master | 2021-01-20T22:19:18.902687 | 2018-03-02T05:38:27 | 2018-03-02T05:38:27 | 61,302,323 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
if __name__ == '__main__':
a = []
for i in range(10):
a.append([]) #创建十行
for j in range(10):
a[i].append(0) #每行创建i列
# 杨辉三角边界都为1
for i in range(10):
a[i][0] = 1
a[i][i] = 1
# 杨辉三角定义,下一行数值为上一行数与上一行前面数之和(除边界)
f... | [
"cbb903601682@163.com"
] | cbb903601682@163.com |
bf71d6307ef41c2c55ddf45a5bf5ad3f1a2c1144 | 688362ebcf80619dacae5615fcf2879670ecbfe3 | /week2/soa_bgsubs.py | d934e7e56cd6d2e5920bf8cdfd10dad6610399be | [] | no_license | mcv-m6-video/mcv-m6-2021-team7 | 8255dd2606414f31707d26b55fd3cde6266daaea | b19d99cdb9185f6062586a9267a1d119798ce204 | refs/heads/main | 2023-04-14T06:27:07.639171 | 2021-04-29T17:02:50 | 2021-04-29T17:02:50 | 345,711,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,114 | py | import cv2
from tqdm import trange
from bboxdetection import *
import numpy
import imageio
import os
def get_opencv_bgsubs(alg):
# Inicialize bg segmentation class (from opencv)
if alg == 'KNN':
bgsubs = cv2.createBackgroundSubtractorKNN()
elif alg == 'MOG2':
bgsubs = cv2.createBackgroundSu... | [
"59796230+victorubieto@users.noreply.github.com"
] | 59796230+victorubieto@users.noreply.github.com |
a5c232a38ca2baa4eef74f5b7a3ca714948d7295 | cb33631104dcd88c70f4654d91135ab0768459db | /mooc/apps/schools/adminx.py | 473820e4766180fcd9a38bbdad4f03b7ae2329e7 | [] | no_license | Shirlesha/DjangoMooc | 54956a4580e0f2b5d3ba2796f4794c912dd652f8 | db01795c97db55f18b69f22cd91a72cc03eaa312 | refs/heads/master | 2020-05-21T13:27:15.967861 | 2019-05-14T00:57:12 | 2019-05-14T00:57:12 | 186,072,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # encoding: utf-8
__author__ = 'Shirlesha'
__date__ = '2019/5/12 0009 08:02'
import xadmin
from .models import CityDict, SchoolName, Lecturer
class CityDictAdmin(object):
"""学校所属城市名后台管理器"""
list_display = ['name', 'desc', 'add_time']
search_fields = ['name', 'desc']
list_filter = ['name', 'desc', 'a... | [
"1251671603@qq.com"
] | 1251671603@qq.com |
230a04e3f67dbd3427dd3f761e135062140e15f3 | c7573c4fdcc324c6863a94133177a1de06935df1 | /src/plot/label/radial.py | 4423c080081589fde629a55465308826b7a8599e | [] | no_license | WillCS/thesis | adbd8e1b0166851f9f0c3a30e522b9c4f3b80831 | 1aa6522f01a56755cd644a75e41e37ab62709c13 | refs/heads/master | 2023-09-01T23:27:50.090827 | 2021-11-02T10:09:41 | 2021-11-02T10:09:41 | 357,769,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from __future__ import annotations
from typing import Dict, Any, Optional, List, Tuple
import math
import networkx as nx
from common import Clustering
from .label import LabelStrategy, Label
class RadialLabelStrategy(LabelStrategy):
def __init__(self, factor) -> RadialLabelStrategy:
self.factor = factor
... | [
"wcstibbards@gmail.com"
] | wcstibbards@gmail.com |
fab57c88638bc680f3b540d514636a2d2caeed5e | 9f0deecc85c256c3586ed5abf8e02809a6094092 | /JinriToutiao.py | a938676c76b6053a521b356c19291591cb95eb3b | [] | no_license | llx-answer/JinriToutiao | 834f24031ca012e10713808bcbe265a1d963d41a | 2edbf1378ab3b8e3d5cb274307c5bec8082b82b2 | refs/heads/master | 2020-08-15T07:17:05.444716 | 2019-10-15T12:56:43 | 2019-10-15T12:56:43 | 215,287,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | import requests
from urllib.parse import urlencode
from requests import codes
import os
from hashlib import md5
from multiprocessing.pool import Pool
import re
def get_page(offset):
headers = {
'cookie':your cookie,
'user-agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, ... | [
"363863343@qq.com"
] | 363863343@qq.com |
99d1df035fe01289d72bae11c68d2a404070e8f0 | 3e8561909eea121ce68fd824d8000975b6e09cf5 | /orders/migrations/0001_initial.py | f329065de7593cd2310682c78f8fcbb0a642c89b | [] | no_license | SebastianMeler/django-shop | c7d70d4a23c11afec5a0f802e5c94cf8154bc3d1 | 04412cf0a1f783a6951b2d41be63fcc16ca16bf7 | refs/heads/master | 2023-09-01T02:36:27.877618 | 2023-08-22T10:57:17 | 2023-08-22T10:57:17 | 248,446,058 | 0 | 0 | null | 2023-08-22T10:57:19 | 2020-03-19T08:13:11 | Python | UTF-8 | Python | false | false | 1,797 | py | # Generated by Django 3.0.4 on 2020-03-20 08:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Orde... | [
"sebastianissimus@gmail.com"
] | sebastianissimus@gmail.com |
6c4181efcbbbf3de4db6c12f8f7c78a49723c80b | 10dc5606b8de20a51e5468d2224805b2b52c5158 | /wei/app7.py | 3a9dd976d41ff013880e1c74b4f5971bea468a8b | [] | no_license | stevecheen/crawler | 22e006d73b9864ad6ab5be2bc527501ccf7d4bab | 567463855771a2933958023f2c984337f78e1a2f | refs/heads/master | 2022-03-26T21:09:00.291721 | 2019-12-12T07:47:50 | 2019-12-12T07:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,484 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
ZetCode PyQt5 tutorial
In this example, we determine the event sender
object.
Author: Jan Bodnar
Website: zetcode.com
Last edited: August 2017
"""
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
... | [
"xumajie88@163.com"
] | xumajie88@163.com |
8381a8a31b17787de19e3c19f0c3f447232dc858 | dd1a27f51d4a4bf9f450617aa8562069758b1d82 | /business/admin.py | 686f5f0887c40c9e40e321d47234f167ebc9f9de | [] | no_license | PC97/creditSol | 7afcffff1c1fbcc0aae789368fbd7b973a076a9d | 6a694b035cf72475a9f0791fd8aafa5484e8fff3 | refs/heads/master | 2020-04-03T12:40:11.338677 | 2018-11-14T17:20:27 | 2018-11-14T17:20:27 | 155,259,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from django.contrib import admin
from .models import BusinessAccount,UploadFile
# Register your models here.
admin.site.register(BusinessAccount)
admin.site.register(UploadFile)
| [
"pranjilc@gmail.com"
] | pranjilc@gmail.com |
1102f5d0aa67daf57769bc61b420c4daa5a19e6d | 5ed5f99610de14cab056018cd46f8305a15097da | /part4/while-loop.py | e5f64ebc0ec32a3002c35d79b42f8e11d13d2f6b | [] | no_license | shazam2064/complete-python-developer | 04288f07e8901cb881bb8c58fd1fd690015e5803 | c5746e61307e29c387450b089d8d1156f886ce3e | refs/heads/main | 2023-05-06T07:40:26.752274 | 2021-06-02T16:05:32 | 2021-06-02T16:05:32 | 370,096,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # x = 0
#
# while x < 10000000000000000:
# x += 1
# print(x)
# else:
# print("print x is not less than 10")
# x = 0
#
# while x < 10:
# x += 3
# print(x)
# else:
# print("print x is not less than 10")
x = 0
while x < 10:
if x == 6:
continue
x += 3
print(x)
else:
pri... | [
"gabriel.salomon.2007@gmail.com"
] | gabriel.salomon.2007@gmail.com |
73b57c37c9bda1b42aceaaaefec1a06ed28cd9ae | c7d4e46dee70c56dc790408193fd1ddaebc13c2f | /Problem29/Problem29.py | eb387f81b9de9de3f09f8ca1cfe8f97e9f1bb475 | [] | no_license | schnitzlMan/ProjectEuler | c27490b6c87c45f22053409ab71ae6f929fbbf79 | 92e2bd3cfe3bffd44a1da474447959fcc6670a56 | refs/heads/master | 2020-05-24T07:31:45.265350 | 2017-03-13T20:37:05 | 2017-03-13T20:37:05 | 84,832,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 2 14:07:36 2017
@author: Peter
"""
# below is my solution - I saw that 'set' would work out nicely (probably from math)
# then I can always add, but the set only grows if new elements entered.
maxNum = 100
listOfPowers=[]
for i in range(2, maxNum+1):
for j in rang... | [
"thekolbfamily@gmail.com"
] | thekolbfamily@gmail.com |
dc676abe2bee2c632ee93b23ce50edf4dd60867f | d451b43ba9744775e34b34bd4bd32328afc55b7c | /commit_download.py | e006e03c4364046ee5605c05e4b503bb3d57cdc8 | [
"MIT"
] | permissive | lyriccoder/temp_python | aaaeec7250f32e31790ca61d22b3d6ed9289a420 | f9c2263dbdc89c10dd9665dd846e7b637d6819cf | refs/heads/master | 2023-05-01T14:00:28.125599 | 2023-04-22T19:15:38 | 2023-04-22T19:15:38 | 297,299,305 | 0 | 2 | MIT | 2021-01-26T12:56:20 | 2020-09-21T10:01:51 | Python | UTF-8 | Python | false | false | 12,180 | py | from pathlib import Path
from typing import Dict, Any, List, Tuple
import os
import pandas as pd
import requests
from random import choice
from tqdm import tqdm
import json
from pathlib import Path
import os
import pandas as pd
import requests
from random import choice
from tqdm import tqdm
import time
import asyncio
i... | [
"noreply@github.com"
] | lyriccoder.noreply@github.com |
3edf4d96d625b272d07a4bfa4b82d171d201b46f | b09e596edb48976ceea7e512714a388338e4908f | /DDP_LAB9/main.py | 41c357da9943843aba9c68d8eee4ded4db0bdbf2 | [] | no_license | ztirrataufik/Dasar-Dasar-Pemrograman | 9ee186d8ff6a5ee5bf8b4e3126d2036308a52e2d | f083f2cae4096be3618f449f7b3f1eb06f9242f0 | refs/heads/main | 2023-03-07T03:28:56.057631 | 2021-02-16T05:42:32 | 2021-02-16T05:42:32 | 304,260,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | # Nama:
# NIM:
# Kelas:
def sort_desc(arr):
i = 0 #membuat varianbel/inisialisasi variabel i untuk mengunci dalam iterasi
while i < len(arr)-1:#perulangan i dengan kondisi lebih kecil dari variabel array dikurangi 1
j = 0#membuat variabel/inisialisasi varibel j untuk mengunci dalam iterasi
while j < len... | [
"noreply@github.com"
] | ztirrataufik.noreply@github.com |
3a59b6324f48032a8c58f34957ffbed79c1fcb08 | 72f2f37c3c33e5bc02ec6c707a7c858d7990db3a | /examples/tour_examples/driverjs_maps_tour.py | 33fb342608c1c2cd08a48da9c5a1aab3f8ac71a0 | [
"MIT"
] | permissive | matthewxuda/SeleniumBase | 190e4917dec8c731f17fd9d6a1247f8c17086d0c | efd282a860206dad81d0d4e61a472138eb04328d | refs/heads/master | 2023-09-01T09:17:57.608760 | 2021-10-21T02:48:32 | 2021-10-21T02:48:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_create_tour(self):
self.open("https://www.google.com/maps/@42.3591234,-71.0915634,15z")
self.wait_for_element("#searchboxinput", timeout=20)
self.wait_for_element("#minimap", timeout=20)
self.wait_for_element("... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
e1bf319ac4b1a93b08f0dafc5fd453b9cd95d5b1 | 4e44974b9e59dfd4324d84b12b10f008117814cd | /test_autofit/integration/src/dataset/dataset.py | c3dc9773c00b8b4cc97f43fc249734b1546be650 | [
"MIT"
] | permissive | PriyatamNayak/PyAutoFit | 2cc2608943f8c3bdbda3b268142e7307014ccaf2 | 32c0c30acd219030c86a12db82ae54e406fd7119 | refs/heads/master | 2023-03-04T07:27:41.547966 | 2021-02-11T23:21:00 | 2021-02-11T23:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | from astropy.io import fits
import numpy as np
# The 'dataset.py' module has been extended to give the dataset a name and metadata.
class Dataset:
def __init__(self, data, noise_map, name=None):
"""A class containing the data and noise-map of a 1D line dataset.
Parameters
----... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
f5e3f313c4584c8f5380fa9186122cf9b6227947 | 4cda6686b659c0bf34213a4c5faf050c4c866eea | /ExperimentSpecificCode/_2018_2019_Neuroseeker_Paper/_2019_Neuroseeker_Paper_Expanded/_33p1/NeuropixelSim/Sparce/spikesort_and_timelock_analysis.py | 841c428d900ac79f30a6bfcc8d9155a019730e56 | [] | no_license | georgedimitriadis/themeaningofbrain | da99efcf62af67bc6c2a71e504765026a4491217 | f138cf500a3ca6c8d76613c942787d9f073d67a7 | refs/heads/master | 2023-02-21T10:52:18.771691 | 2023-02-17T08:23:09 | 2023-02-17T08:23:09 | 50,346,965 | 3 | 1 | null | 2017-06-17T16:29:47 | 2016-01-25T11:42:43 | Python | UTF-8 | Python | false | false | 12,478 | py |
"""
The pipeline for spikesorting this dataset
"""
import numpy as np
from os.path import join
import matplotlib.pyplot as plt
import pandas as pd
from sklearn import preprocessing as preproc
from BrainDataAnalysis.Spike_Sorting import positions_on_probe as spp
from spikesorting_tsne_guis import clean_kilosort_templ... | [
"gdimitri@hotmail.com"
] | gdimitri@hotmail.com |
4418a4347de2932ba4812bb390ac0ef4e1b3efdb | c2f995670ed2ed2033d255a6ab96093ec7a55a1d | /scheduleweb/authorization/admin.py | b23d5692ef70f0c812ccbe545bb8c90f1bbf4c9c | [] | no_license | edvegas/scheduleapp | 14cd8d2d28c0adb8bab470fb1b730f1f4ea76abd | 7dbc55ba79eb7b26ee795c5aef567d985d12e96d | refs/heads/master | 2020-04-22T15:02:01.580961 | 2019-04-18T12:40:46 | 2019-04-18T12:40:46 | 170,464,380 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from django.contrib import admin
from .models import Profile
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
class ProfileInline(admin.StackedInline):
model = Profile
can_delete = False
verbose_name_plural = 'profile'
class UserAdmin(BaseUserA... | [
"edbulatov@gmail.com"
] | edbulatov@gmail.com |
576d7206a61c14dd506527f40186f72c7372f351 | 95f66ab9a81f29b5a887dd792e39b7cb256a7e57 | /NeuralNet.py | e25ac7db6a772787236524dfc81d9bc6ac192a7d | [] | no_license | Inquient/training | 8e0a828bebcd51fc14d79fc9d1fb503f15f101f6 | 869d6da075c7f615b183f035803d868df463dd6c | refs/heads/master | 2021-04-09T14:20:41.246342 | 2018-04-15T13:18:16 | 2018-04-15T13:18:16 | 125,519,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,331 | py | import numpy
import os
import matplotlib.pyplot
from scipy.special import expit as sigmoid
from scipy.special import logit as logit
class neuralNetwork:
def __init__(self, inputnodes, hiddennodes, outputnodes, learningrate):
self.inodes = inputnodes # количество узлов входного слоя
self.hnodes ... | [
"makoveyfedorich@gmail.com"
] | makoveyfedorich@gmail.com |
e8b093baa3e7fbf51757ad4f26b06464fa79c48e | 6c545543a21286ebd33ce13053346d1f9349bc40 | /Random/chfnrn.py | 969ad35090dbaa3e883873f0a7b17051bc8cdfe9 | [] | no_license | Sunil02324/Hackathon-Solutions-Collection | c426c186b977e39bc0706c006c6d8f5a0f4dd9e8 | 1fcb1723d572132b08a73db6e26d5e8f4352b2f4 | refs/heads/master | 2021-01-10T15:09:45.766591 | 2017-03-31T06:09:20 | 2017-03-31T06:09:20 | 51,132,623 | 0 | 1 | null | 2016-02-29T20:21:19 | 2016-02-05T07:30:29 | Python | UTF-8 | Python | false | false | 186 | py | t = int(raw_input())
while (t>0):
t = t -1
n,m = map(int, raw_input().split())
a = []
b = []
for i in range(0,m):
x,y = map(int, raw_input().split())
a.append(x)
b.append(y)
| [
"sunil.iitkgp13@gmail.com"
] | sunil.iitkgp13@gmail.com |
1f625674e11cbfc47a5961e607882b7515e6339a | c21cbf8209d317bd5ac898d6ccddb5f67f585da6 | /Ch 9 - Classes/admin.py | b998a1fea6e05dd7b5daa5107dd08e23e59c22e2 | [] | no_license | bwest619/Python-Crash-Course | 53db275879b191b8ed564ced16366e7d6657de98 | 35eb85aad38f69d65c9ffab552625fd213264831 | refs/heads/master | 2020-05-05T01:13:06.424525 | 2019-04-05T00:51:43 | 2019-04-05T00:51:43 | 179,596,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | # Try it yourself, page 178
class Users:
"""Making a class for user profiles."""
def __init__(self, first_name, last_name, username, email, location):
"""Initialize the user."""
self.first_name = first_name.title()
self.last_name = last_name.title()
self.username = username
... | [
"blaineryanwest@gmail.com"
] | blaineryanwest@gmail.com |
56940990f0681c33a9760d965c2758cc0ef87ec9 | f171d4918c7a1fe65c8a02775681e970f8f24bc1 | /Fill Rate by Supplier_WS.py | 8beb3b8114509d04e49c41f45490a4211e3371df | [] | no_license | gamut-code/attribute_mapping | 82ef02d3fdb600b64f00e93c33e7f0efe2c61b90 | 90cb623e39162ba01e5764d874d251503fe77e1d | refs/heads/master | 2021-11-21T10:01:14.902134 | 2021-08-10T15:13:44 | 2021-08-10T15:13:44 | 207,662,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,840 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 10 20:34:02 2020
@author: xcxg109
"""
import pandas as pd
import numpy as np
from GWS_query import GWSQuery
import WS_query_code as q
import WS_file_data as fd
import settings_NUMERIC as settings
import time
ws_basic_query="""
SELECT
tprod."gtPartNumber" a... | [
"colette@thecolettegabriel.com"
] | colette@thecolettegabriel.com |
eede4029fa65ba5d911e0a4bfa27617b556819c1 | 3bb3f9779755cb2c54d7c25730402f3a3e2ad668 | /lib_controller/settings.py | 28fcfb093e8f44402dd8c4b36b79f423a0026a16 | [] | no_license | trunghieule0301/demo-luan-van | d1b86ffbb273f9cc77bef791c372538abd27bc11 | 079df0584f9f416b2fe97cde4f7dc1e960869e48 | refs/heads/main | 2023-07-12T03:07:44.530813 | 2021-08-13T16:18:01 | 2021-08-13T16:18:01 | 395,297,825 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,497 | py | """
Django settings for lib_controller project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
... | [
"noreply@github.com"
] | trunghieule0301.noreply@github.com |
c216efa4d1718ae2ddfb65ef0d24f2825156d9ab | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03455/s808955934.py | 5a703a489b980a233dbc16c583c6ec0ff1dc188d | [] | 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 | 102 | py | # ABC 086
A,B= map(int,input().split())
if (A* B)%2==0:
ans ='Even'
else:
ans='Odd'
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f460837b8756ad3ec60887f952b1d9d59c97f4cf | 19924ac187843f4131281c2a3376bf446c1be510 | /PyCharm/Prob3/venv/bin/python-config | 485ba52de9a39bf54f5d685b34d010c694378504 | [] | no_license | mcfaddja/InfoTheory-MidTerm-py | f3768c9e27c6a734f9d4f850cb9e0553689ad407 | a180abce6039b03d3e750c62371aa9ccc6aa2da2 | refs/heads/master | 2021-03-27T11:46:02.760514 | 2018-05-20T02:38:10 | 2018-05-20T02:38:10 | 120,137,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,390 | #!/Users/jamster/Documents/GitHub/InfoTheory-MidTerm-py/PyCharm/Prob3/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_... | [
"mcfaddja@uw.edu"
] | mcfaddja@uw.edu | |
2d02387748595eb5f05de1450d986ab0bbe8728f | fba281163b4761985f66d9cd31463e51bf407211 | /Remove PDF Pages.py | 1b0f8c99ab5951faa4181d218d301000fbd9a04e | [] | no_license | apiarian/pythonista-ios-scripts | 30722e434d1d3b7176f6d4f5f68431ffb5aa357e | bfaddf0c0759a01c4b1f2bd7a324d4620931e1e2 | refs/heads/master | 2020-03-08T22:27:28.986089 | 2018-04-24T14:49:00 | 2018-04-24T14:49:00 | 128,431,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | # Install as a share sheet extension for Pythonista to remove pages from a PDF. The trimmed PDF is shown in a final quicklook view for sharing or saving.
import appex
import PyPDF2
import tempfile
import console
import os
if appex.is_running_extension():
src_path = appex.get_file_path()
else:
src_path = './testpdf.... | [
"al@megamicron.net"
] | al@megamicron.net |
c2c96efb9d83a79ac8a7d9c9c470b71f3b5b3a20 | 2a736942082b1b59ba1be0f983211ff2a46eed46 | /4.py | 1e8620e014b2fb10767b9c6405fe240200520f70 | [] | no_license | Lola-n28/exam1 | 1e07c030766169725eb0cf5104467a7a50eb631e | 45d41dc9e78af7ad593490dd48ad33dcdf8474f6 | refs/heads/main | 2023-03-09T21:12:05.067851 | 2021-02-28T15:35:38 | 2021-02-28T15:35:38 | 343,133,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # Дается 2 строки "Aidana" и "Adilet" . Вам нужно в результате получить смешанную строку из двух имен, буква за буквой.
# Output: "AAiddialneat"
str1="Aidana"
str2="Adilet"
str3=str1[0]+str2[0]+str1[1]+str2[1]+str1[2]+str2[2]+str1[3]+str2[3]+str1[4]+str2[4]+str1[5]+str2[5]
print(str3)
| [
"lola-n@mail.ru"
] | lola-n@mail.ru |
739d5d61bfa888beb429e214efd7a4a9aabeb4e9 | 2a1e18918445041b4c40ccfd33e39b08d5280215 | /Simple-Scrape.py | 68bd4a7ab5f6e554436dca524484fac8b1ecaba9 | [] | no_license | Kristoff-Harris/Code-Templates-For-CTFs | e18ce530715b12b1869fa47e3b7f658f4c24e1e3 | d55e927516607824cba9b5a34138ba8c7fe9b51d | refs/heads/master | 2021-05-23T11:27:07.613202 | 2020-04-11T03:00:41 | 2020-04-11T03:00:41 | 253,265,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # Some code reused fom freeCodeCamp() https://www.freecodecamp.org/news/how-to-scrape-websites-with-python-and-beautifulsoup-5946935d93fe/
import requests as req
import hashlib
from bs4 import BeautifulSoup
# specify the url
quote_page = req.get('http://docker.hackthebox.eu:32559')
# parse the html using beautiful ... | [
"noreply@github.com"
] | Kristoff-Harris.noreply@github.com |
71c7183af31724bdb98af5d9f036f02e3b81e761 | 3f51b9990728e50f531ab5250383505c18db8fcb | /www/config.py | bcc079bdfd48eca24bc76d6a25e10d5463fe390e | [] | no_license | limin2016/awesome-python3-webapp | d4b88c1358efa4af468204a505a90236b2cecfb7 | 120288573b3d120bc64709c17c11689f3324af39 | refs/heads/master | 2021-01-24T18:37:20.086220 | 2017-03-30T14:45:48 | 2017-03-30T14:45:48 | 84,443,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Configuration
'''
__author__ = 'Michael Liao'
import config_default
class Dict(dict):
'''
Simple dict but support access as x.y style.
'''
def __init__(self, names=(), values=(), **kw):
super().__init__(**kw)
for k, v in zip(names, v... | [
"1466299085@qq.com"
] | 1466299085@qq.com |
e11030a1f2ae991395d0056407fcffab069729d1 | 4500c044ea8287787ad03b6064d7bfac8560e874 | /projects/downstream_classification_race/centering.py | f168c5313fdccdc96d7c103d359ca24e0d57ae68 | [] | no_license | apd10/core | 9343a796f079bf42807338bc44ac14172833d99b | f82f30e4a6738002821cfea83c3b6e080604c5b0 | refs/heads/master | 2022-12-19T21:59:22.424132 | 2020-09-27T23:14:19 | 2020-09-27T23:14:19 | 281,093,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import pandas as pd
import sys
import numpy as np
if len(sys.argv) < 3:
print("Usage: <script.py> <fname> <sep> <skip_rows>")
exit(0)
f = sys.argv[1]
sep = sys.argv[2]
skip_rows = int(sys.argv[3])
d = pd.read_csv(f, sep = sep, header=None, skiprows=skip_rows)
x = d.values[:,1:]
mu = np.mean(x, axis=0)
std =... | [
"apd10@yogi.cs.rice.edu"
] | apd10@yogi.cs.rice.edu |
fb058eee50ffdb930c9e0b9c23249411cb7f4ed1 | 8f76a9a1b5d8cc2eab1a160584f566dd00c4aeff | /05-opencv/template_matching.py | 636221a46a5b57b1a4832142188f0f21d4495cba | [] | no_license | aciddust/Python-Study-OpenCV | 0c224566df46aef7c14b64ed6663aaae37e4812d | f56438188466dc8881d8bda766ba573b93308f92 | refs/heads/master | 2022-02-13T21:53:32.249363 | 2019-09-08T10:17:09 | 2019-09-08T10:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import cv2
img = cv2.imread('../imgs/lenna.png')
img_temp = cv2.imread('../imgs/lenna_face.png')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
gray_temp = cv2.cvtColor(img_temp, cv2.COLOR_BGR2GRAY)
w, h = gray_temp.shape[::-1]
output = cv2.matchTemplate(gray, gray_temp, cv2.TM_CCOEFF_NORMED)
min_val, max_val, min_loc, ... | [
"aciddust20@gmail.com"
] | aciddust20@gmail.com |
becb97ab51bd113a00a2a0c169559e348ee0f82c | a46b14b44c87adb0288224a0e7e31d9bed30223f | /guest_project/apps/guest_app/models.py | f6db55f42203f80a0a458a0b4a83ca4f50478693 | [] | no_license | JeffLawrence1/Python-Django-Intermediate | 0b663e5d706dc6b35ff2785ae38d7bf0f2f3b651 | d1efc3e6385286ab25bae36042987a85ae94e359 | refs/heads/master | 2020-03-09T03:42:47.348420 | 2018-04-07T21:42:04 | 2018-04-07T21:42:04 | 128,570,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class User(models.Model):
name = models.CharField(max_length=255) | [
"jefflaw13@hotmail.com"
] | jefflaw13@hotmail.com |
cdd94e2790e5892438719e5ec02d940765243b43 | e8cfc888d3756635d49c9cb92fd0af02af58a18d | /customer/migrations/0006_remove_customer_customer_picture.py | 944ea3784ef4c5e218cae4d10b58f8e644b23c59 | [] | no_license | maryvillondo/MHA | 666b7b78c5f5671e4c2ecbbc0fdefd01f8946836 | 271b39c0866d006d3719d4de6ddb5544485d852d | refs/heads/master | 2022-12-27T21:02:44.116961 | 2020-10-16T11:54:02 | 2020-10-16T11:54:02 | 296,863,527 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | # Generated by Django 3.1.1 on 2020-09-19 11:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('customer', '0005_auto_20200919_1955'),
]
operations = [
migrations.RemoveField(
model_name='customer',
name='customer_pictur... | [
"maryvillondo@gmail.com"
] | maryvillondo@gmail.com |
19a33e678a67169ee30373693e79bdefba41046e | 55e9aa8ca964d82f99b245366dd35e557b526d5d | /leetcode/8. String to Integer (atoi).py | be686e10ed4cf453ce8d75c400e997442b881c7a | [] | no_license | gjwei/algorithms | ee31bd4e70a7974824ca234383eed3341d239830 | 07fa69137877b0a3bc6f0df7d7a190d737bacd6c | refs/heads/master | 2021-01-20T05:09:24.434195 | 2018-09-19T08:40:31 | 2018-09-19T08:40:31 | 141,776,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | # coding: utf-8
# Author: gjwei
class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
sign = 1
index = 0
result = 0
# 去除开始的空格
while index < len(str) and str[index] == ' ':
index += 1
if index == ... | [
"t-jiagao@microsoft.com"
] | t-jiagao@microsoft.com |
592cca932c6d29898437e2362af88c8d578e9466 | a735cc0b04b3227720bfd97c74ef13bda5bdf571 | /python/documentation/doc/conf.py | 87be3541d59a67e9c9cc135f03e7e0690fa181a4 | [
"MIT"
] | permissive | abstractfactory/labs | beed0aab27cd3028c67ece87ef91d18b55114eb1 | f0791fb92686456d4cef3a11f699590a949fd6a9 | refs/heads/master | 2021-01-23T20:50:07.613682 | 2014-11-18T10:30:29 | 2014-11-18T10:30:29 | 20,175,862 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,179 | py | # -*- coding: utf-8 -*-
#
# Labs documentation build configuration file, created by
# sphinx-quickstart on Tue Jun 24 15:49:19 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | [
"konstruktion@gmail.com"
] | konstruktion@gmail.com |
4d1a51fd51c3b13e2b368aa1ef3b0e4c5f8fa970 | 971b59efea59d8f4813a6f8990ff76440c61cc3e | /main.py | 105e2366dd0a9a9075085a33efbf8a6d0b43062f | [] | no_license | yossarian27/web-caesar | 4b9d78fbe8ff1641e4a5474efb6b0c348e84bafe | a900c6757fa3923b3f501aa65ea8b23a5fd55514 | refs/heads/master | 2021-01-23T05:00:01.720392 | 2017-03-26T22:39:44 | 2017-03-26T22:39:44 | 86,269,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"horn.philip@gmail.com"
] | horn.philip@gmail.com |
d4bf2779cbe8ba8c4b40d92539d2f826f71b6ac1 | 0d0d584429bd44f6675a581ad9b9c4190e6dfd07 | /print_lol2.py | 5772fc788a5939813e55c2df73f3d6110f831de0 | [] | no_license | Rimmii/PythonStudy | 08134f6a01fd9c85881380247578e6da952707d0 | 9f3fff5117358f476310566628e0fa7ba9ef35b2 | refs/heads/master | 2020-11-30T00:29:42.703112 | 2017-07-22T14:34:50 | 2017-07-22T14:34:50 | 95,650,223 | 2 | 1 | null | 2017-07-13T14:12:57 | 2017-06-28T09:03:59 | Python | UTF-8 | Python | false | false | 523 | py | movies = ["The Holy Grail", 1975, "Terry Jones & Terry Gilliam", 91, ["Graham Chapman", ["Michael Palin", "John Cleese", "Terry Gilliam", "Eric Idle",
"Terry Jones"]]]
def print_lol(the_list, indent = False, level = 0):
for each_item in the_list:
if isinstance(each_item, list):
print_lol(each_... | [
"rimi@appleui-MacBook-Air-2.local"
] | rimi@appleui-MacBook-Air-2.local |
5c51bfb7f282424132788fd7c4194077772ec60a | b8cf6201e364e71180889218262bcf3833097f30 | /matrixes.py | 38f0228517a27645ea51e08f1044266a2dbb1e85 | [] | no_license | skvimpact/ml | efe3519964ac8b5940ba58763c4911e6731def1c | a0f8e129047263dfbfb701e42871d7c3ab40a71d | refs/heads/master | 2023-07-03T05:49:13.529017 | 2021-08-06T14:10:14 | 2021-08-06T14:10:14 | 393,365,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | import numpy as np
A = np.array([
[1,2,3,4],
[5,6,7,8],
[9,10,11,12],
[13,14,15,16],
[17,18,19,20]
])
# print(A.shape)
# print(A[1:2, 1:2])
# print(A[1:, 1:])
# print(np.zeros((3, 5)))
# print(A - 2)
# M1 = np.ones((3, 6))
# print(M1)
# print(M1.T)
M1 = np.array(
[[1,2],
[3,4],
[5,6]... | [
"skvimpact@yandex.ru"
] | skvimpact@yandex.ru |
824fe2517075df54beda8ff30d6a67ef447af8ae | 7a7bbdaab3cedcd9b89d9245d67fe7cc472fc288 | /1_dimention/2577.py | 057b91d168293a509f38fbb985532bb1d9aba21b | [] | no_license | rheehot/baekjun | cd213c6903e69a8e48b4942c950048c1c3e03c34 | 44792c6d125af7d9b0739c571e7918c802f73c01 | refs/heads/master | 2023-02-12T08:42:47.578842 | 2020-12-21T00:40:35 | 2020-12-21T00:40:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | a = int(input())
b = int(input())
c = int(input())
mul = str(a * b * c)
for i in range(10):
print(mul.count(str(i))) | [
"sol35352000@gmail.com"
] | sol35352000@gmail.com |
edc117b558873902ee1d38b226f7af11cebc80c9 | 58df99d96af6a688852993e38da89b75fea1d0dc | /exps/NATS-Bench/draw-correlations.py | 6afac3b804703bc53660e618d2c2a6e820974d3e | [
"MIT"
] | permissive | yuezhixiong/AutoDL-Projects | 0f24ed98389b70f452a79c8ef825d5e563ac5d8c | 0d3c63bdbe2d648c2119ffe8d0491f8a07cf85cb | refs/heads/master | 2023-03-22T17:15:37.013837 | 2021-03-02T05:13:51 | 2021-03-02T05:13:51 | 315,518,182 | 0 | 1 | MIT | 2021-02-26T06:36:34 | 2020-11-24T04:28:29 | Python | UTF-8 | Python | false | false | 3,860 | py | ###############################################################
# NATS-Bench (arxiv.org/pdf/2009.00437.pdf), IEEE TPAMI 2021 #
###############################################################
# Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2020.06 #
###############################################################
... | [
"280835372@qq.com"
] | 280835372@qq.com |
355c5416ae648b3b060d68d7a090c1c292f89af3 | 0bfbdef12f7801f4f030b4ba5523f95429f4f4c8 | /AutoFramework/testobject/module_report_waterPower_obj.py | aeecd2a1c9710dc2ceb96f75e940787a798e4650 | [] | no_license | pylk/autoWeb | 77ef1aaceeda9d1207539f4776ac0bd88901ca41 | 59b3b65fe9fdf5a745b0bc8d493486ca79db16c8 | refs/heads/master | 2022-02-24T10:41:22.111991 | 2019-04-26T03:08:07 | 2019-04-26T03:08:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,774 | py | # -*- coding:utf-8 -*-
import os
from datetime import datetime, timedelta
from AutoFramework.core.pom import BasePage
from selenium.webdriver.common.by import By
class Moudle_report_waterPower_Unit(BasePage):
def __init__(self, *args, **kwargs):
super(Moudle_report_waterPower_Unit, self).__init__(*args, ... | [
"isscal@sina.com"
] | isscal@sina.com |
4418de44f1a68754463c019ddf6e814c07bf403f | d9bb1645feb748ad0b80bf831bb101c40302b44a | /site/popvox/db/mark_reintros.py | fc8c12a01ccc4ae16825ba5cb9b0b04f2b1ca9be | [] | no_license | POPVOX/site | 43fb2db0427857fdc5c0da0930757e8ba2472622 | 3324e6b40f2833e089a4235bb618d878e94cb510 | refs/heads/master | 2021-03-24T09:53:59.936863 | 2015-06-16T14:41:10 | 2015-06-16T14:41:10 | 8,064,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!runscript
from popvox.models import Bill
for line in open("/home/annalee/bills_matched.tsv"):
fields = line.strip().split("\t")
a = Bill.objects.get(id=fields[0])
b = Bill.objects.get(id=fields[4])
assert(a.congressnumber == 112)
assert(fields[2] == a.displaynumber())
assert(b.congressnumber == 111)
asse... | [
"josh@popvox.com"
] | josh@popvox.com |
5242f6f122ece46875d63baf451df2044a5956d8 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/pytest-labs/.venv/lib/python3.6/site-packages/facebook_business/adobjects/adcampaignfrequencycontrolspecs.py | d0005352b87cf20f8700d3c56dda97efc9a99ee6 | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 1,973 | py | # Copyright 2014 Facebook, Inc.
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Fa... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
33b7d232898bdee041f376c8b75a7cb25a89b260 | 737d7a22a39003308627a2f0cbcec8696b9a492b | /creational/builder.py | 1594f1be49ca67e8c2ae11f88209b2bb567b0ce2 | [] | no_license | vladpython22/pattern | 21b3e3e980f24069114255efc615a64cfe3879c6 | 8ffd2a699261e85355da745ef52025e367013e2c | refs/heads/master | 2023-02-15T14:17:42.642957 | 2020-12-27T12:59:56 | 2020-12-27T12:59:56 | 324,765,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | #Интерфейс для пошагового создания сложных объектов
print('Hello, World')
s = 'adffhhg'
n = 5
print(s[0:5])
| [
"prostranstvovlad@gmail.com"
] | prostranstvovlad@gmail.com |
bc7a85b8948558404b30538e7fc848941f11834f | 566fdb06a1d95fda106fb9c1eb6989884967e299 | /Lab06/Lab06.py | 1a39b4887298f9e9fe3a3433c86198b92bde7bd9 | [] | no_license | blrajkumar/MCS_173-Python_Programming | e7ec7b91404da59106fba46dee9cbc9351205703 | 1305e9b4423024db218ab49e35b9896abbf56577 | refs/heads/master | 2023-02-05T08:01:30.404361 | 2020-12-21T14:19:07 | 2020-12-21T14:19:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,800 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 7 21:24:34 2020
@author: blraj
Name : Rajkumar B L
Reg.no : 2047120
Course : MCS173 - lAB06
MSC.Cs - 1st Year
"""
import re
class Lab06:
def __init__(self):
pass
def time_tracker(self,curtime):
time_result=""
stopcode = re.compile(r'^... | [
"49354075+rajkumarbl@users.noreply.github.com"
] | 49354075+rajkumarbl@users.noreply.github.com |
e57aebb6fb7ca69bcb5a28998f4b3016e5559651 | 47366be5cbee9d7e086291c20f97f10ab2bf74fe | /cluster/cluster_create_inequalities_subset_kdd.py | a030a3765bc70ab81a1b6e0dfd314582797a9901 | [] | no_license | nipunbatra/journal | 3d44eed05c95970606649d17402da54fc0a415ff | 94a8b88589e8f60e6f0314f8c5a374f22336b3e9 | refs/heads/master | 2021-01-09T20:40:45.844121 | 2016-07-27T15:16:29 | 2016-07-27T15:16:29 | 62,874,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,042 | py | import time
import pandas as pd
import pickle
import os
import numpy as np
SLURM_OUT = "../slurm_out"
from subprocess import Popen
import time
print "a"
out_overall = pickle.load(open('../data/input/all_regions.pkl','r'))
num_trials=25
print "b"
K = 3
for train_region in ["SanDiego"]:
if train_region=="Austin... | [
"nipunb@iiitd.ac.in"
] | nipunb@iiitd.ac.in |
72a932800f08712333825d0cb293d2481d559bd7 | bfd97c268252b1e28addfb924cbc052e1bafb828 | /ball_detection_video.py | 9956c8e73d8516db996f21c31f3da847cf11ac0b | [] | no_license | yufanana/FanBot | 417938dd2ee8b3ab670703d6fdd50b14b1413a85 | 8cc02212300646e0f9ef349a0cebdc3ce34c937a | refs/heads/main | 2023-06-21T10:23:36.048109 | 2021-08-01T08:39:31 | 2021-08-01T08:39:31 | 391,380,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,329 | py | #!/usr/bin/env python
import numpy as np
import cv2
def filter_color(rgb_image, lower_bound_color, upper_bound_color):
#convert the image into the HSV color space
hsv_image = cv2.cvtColor(rgb_image, cv2.COLOR_BGR2HSV)
#define a mask using the lower and upper bounds of the yellow color
mask = cv2.inR... | [
"yufan.fong@gmail.com"
] | yufan.fong@gmail.com |
14e191ebed6b1010306ffabf744cedd50eaa84c0 | 24272539830eeaa048238c38c02721039cde4578 | /neuron_simulator_service/DSGC_SAC/array_DSGC_SAC.py | 4f17ad2c1090f8e8c113de58efb48cc7203c28c1 | [
"MIT"
] | permissive | jpm343/RetinaX | ac993c61b881e778cb0442490294fbb1ceadcdad | 63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3 | refs/heads/main | 2023-01-23T21:24:42.717425 | 2020-11-23T15:56:15 | 2020-11-23T15:56:15 | 303,671,438 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,265 | py | """
Created on May 2019
@author: Leo Medina
"""
from __future__ import division
from DSGC_SAC import *
import numpy as np
import time
import datetime
import os
import iodef as io
import sys
# Parameters
###############################################################################
G_MIN_EXP = -6
G_MAX_EXP = -3
G_NUM... | [
"juan.martinez.a@usach.cl"
] | juan.martinez.a@usach.cl |
254e98217498dea904c67279827063013f34b5fb | e6421de3f06af8be4234e9901d71f86b31c6c3a7 | /pdenv/bin/easy_install-3.5 | 5e6b880f3fb8150f6afd21b014f591583dfa7719 | [
"MIT"
] | permissive | Elmartin913/PanDjango | bdb5446ee18ee297c23199cd3f9dd59cae555135 | 3b1eb52d53c87365f3d2fa5bd7ef72843ed5af32 | refs/heads/master | 2022-12-11T04:44:05.229530 | 2018-05-11T10:16:07 | 2018-05-11T10:16:07 | 128,903,323 | 0 | 0 | MIT | 2022-12-08T00:57:53 | 2018-04-10T08:54:10 | CSS | UTF-8 | Python | false | false | 276 | 5 | #!/home/elmartin913/workspace/app/PanDjango/pdenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"marcin.jab@wp.pl"
] | marcin.jab@wp.pl |
de152f2617816773ea8a560bd180c0f58a88d540 | 623476abf83be73d64b88f2d6bead649a37c0c51 | /remove-txt.py | bbe9d0c6389c3660ce1897a7bd0f7ede8b69504e | [] | no_license | AquariniqueMu/cat-train-datasets | 9910bd612cc5caa25cfa0e3e175c3555deb0d8e4 | 558979973cfbc0000061d597cf4848dc41a6958f | refs/heads/master | 2022-11-06T10:37:59.242122 | 2020-06-26T16:16:19 | 2020-06-26T16:16:19 | 275,196,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | infile = "./train_list.txt"
outfile = "./list.txt"
delete_list = ["cat_12_train/"]
fin = open(infile)
fout = open(outfile, "w+")
for line in fin:
for word in delete_list:
line = line.replace(word, "")
fout.write(line)
fin.close()
fout.close() | [
"2101848138@qq.com"
] | 2101848138@qq.com |
787b8ee86ea8517b3aaf27aba272db0a9e7a2b55 | 37e60c454c1897cc43bbc12717031b5035dbf7d5 | /regression-tests/sparktkregtests/testcases/dicom/dicom_svd_test.py | 9688ceb76b3b3a0e3f824297fa201408e33a83d4 | [
"Apache-2.0"
] | permissive | trustedanalytics/spark-tk | 33f18ff15e2f49d2f9d57c3a4ccdbd352eb2db8c | 5548fc925b5c278263cbdebbd9e8c7593320c2f4 | refs/heads/master | 2021-01-23T22:01:11.183659 | 2017-02-07T01:35:07 | 2017-02-07T01:35:07 | 56,808,917 | 35 | 35 | NOASSERTION | 2020-03-20T00:18:24 | 2016-04-21T22:16:41 | Scala | UTF-8 | Python | false | false | 2,573 | py | # vim: set encoding=utf-8
# Copyright (c) 2016 Intel 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 require... | [
"blbarker@users.noreply.github.com"
] | blbarker@users.noreply.github.com |
2765b12ae65d16d75ba1fdd4fd7dd6bf233b767a | de49501d5a8ca02de929038b5e63964d04249c3c | /misc/test.py | ac68a23d9f360ca65e415cd4fa12d8e2108fc8ef | [] | no_license | syslabcom/skimpyGimpy | 4edf38faa82de825c01c48e779e00284c1fb6aa7 | d1534a572b0311431728fb77faf9da9493112357 | refs/heads/master | 2020-06-24T06:50:17.043055 | 2019-07-25T18:52:34 | 2019-07-25T18:52:34 | 198,885,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py |
import waveTools
inputString = "hello world"
indexfilepath = r"c:\tmp\skimpyGimpy\waveIndex.zip"
audioString = waveTools.WaveAudioSpelling(inputString, indexfilepath)
outputFile = file("waveOutput.wav", "wb")
outputFile.write(audioString) | [
"deroiste@syslab.com"
] | deroiste@syslab.com |
05f02000e82ea0aa84a9665a9401fad1feec02b2 | 03587c34370995706871e45320264c2636d795f0 | /app/views/loja/AvaliacaoView.py | a391584f99994610a29e9c4c605cadf597837918 | [] | no_license | caiomarinhodev/fastdelivery | 29d1f95dc7204369806e6b99298c9aaafab5ea9f | 6ad45aa596e204b793ba47f7a0c1b918a2e0890a | refs/heads/master | 2020-03-12T03:18:04.507010 | 2018-04-20T23:49:13 | 2018-04-20T23:49:13 | 130,421,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import redirect
from django.views.generic import DetailView
from app.models import Request, Avaliacao
class AvaliacaoView(LoginRequiredMixin, DetailView):
template_name = 'loja/avaliacao_cliente.ht... | [
"caiomarinho8@gmail.com"
] | caiomarinho8@gmail.com |
2ad1d177babfa66832a827145afb904032abe5f8 | 6e18b1f0818740809f8c21c772e5bc7be304a6cc | /ProcessNewsTitles.py | a5d3ad06fd5fa38e287325ab24062b44f2e0f0b5 | [] | no_license | matthewhughes/DissertationProject | a8eb50b2731608ad31b28346ffca54077e21f2ef | 686d11ced526e55d694e731d315fdba61f6ec91a | refs/heads/master | 2020-04-24T17:55:07.139751 | 2015-04-21T11:03:38 | 2015-04-21T11:03:38 | 31,339,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | # -*- coding: utf-8 -*-
import nltk
class ProcessTitles(object):
def __init__(self):
self.title = ''
self.tokenized_text = ''
self.tokens = ''
self.noun = ''
self.verb = ''
def tokenize_title(self):
self.tokenized_text = nltk.word_tokenize(self.title)
de... | [
"me@matthewhughes.co.uk"
] | me@matthewhughes.co.uk |
99d8b6c98f1ff15f6cd292944185330484515f15 | 33136e71ce4b1ffd8398d152916140e82cc4000b | /data_collection/venv/bin/tkconch | 424b13e1b8eb069b825576f82c7989e61360d1fe | [] | no_license | Cameron-Ozaki/cs115_TrafficDump | 01477cc4f997a2397102494d426721c8e8d581e0 | 22e68de6103da8e8da2078f1e3455e6ca261a689 | refs/heads/master | 2020-04-01T11:14:24.155257 | 2019-05-02T23:03:49 | 2019-05-02T23:03:49 | 153,153,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | #!/Users/alexisflores/Desktop/TRAFFIC_DUMP/cs115_TrafficDump/data_collection/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from twisted.conch.scripts.tkconch import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"aflore37@ucsc.edu"
] | aflore37@ucsc.edu | |
115dd8125ff777bd72beae826cad30679ca99cdb | 5c12834d4b59901a8aaa634a8ecb71bcfab1d4f2 | /mecanica/settings.py | 5c2946448a7a1cbaef7bea0fa495ae9398a52d34 | [] | no_license | Josebonilla16/servicioxela | 9cad6ce8fa60fc62cc5f04f8fbc4bc886fb51602 | 74d72d2016f22e338d73c5db9554e9cb32e444db | refs/heads/master | 2020-04-04T17:49:55.784616 | 2018-11-06T17:00:12 | 2018-11-06T17:00:12 | 156,137,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for mecanica project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"Josephman1253@hotmail.com"
] | Josephman1253@hotmail.com |
5318d72a8124bd5381730949cdadb96c7de69899 | 4f87d39e58dffa2c7ec83687bdd316052ce6bf3c | /lib/python2.7/linecache.py | 628cc488f2e8762e7386a7f3eb76d63a4430c643 | [] | no_license | MisterRios/Bread_Calculator | aafff9aafad42b4913583f90b99394abf81b3e86 | 4cea008955e288c2752e6f4eb55853755fc85f87 | refs/heads/master | 2021-01-19T10:08:20.034898 | 2014-03-27T08:27:01 | 2014-03-27T08:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | /Users/misterrios/anaconda/lib/python2.7/linecache.py | [
"MisterRios@gmail.com"
] | MisterRios@gmail.com |
6c544acbaf213fa2a33ad58969026c3779b61074 | f44f397f5ef8ca9428f3b3a2cb6232169de9d118 | /final_spokenwords.py | 6415e01c0443e25ea75156c979b1bbc740e230d4 | [] | no_license | ideepika/dgplug_practice | a712eb4e479020e67a665514a955785203c81ba3 | 16a0416a34a7f72e1cfa65b48a54e5772585d3b9 | refs/heads/master | 2021-10-09T10:28:58.358801 | 2018-12-26T08:53:14 | 2018-12-26T08:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | import urllib.request
import requests
import urllib.parse
from bs4 import BeautifulSoup
import re
global i
i=0
url = "https://dgplug.org/irclogs/2017/"
url_open = urllib.request.urlopen(url)
""" create a file with all the logs aas text input """
def extract_links(url_open):
soup = BeautifulSoup(url_open, 'lxml')... | [
"deepikaupadhyay01@gmail.com"
] | deepikaupadhyay01@gmail.com |
7b8a04e059b078e1ba5b84ff1d8be0dcdec7a196 | d6b4478e9530d9c395fb089f9c1e1c98ed631b67 | /Genetic_Algorithm_Take_3.py | 21ca313ee708607bbde17576cd877d90640ea910 | [] | no_license | kilbyjmichael/MutateMe | a4929712bd92ae1acbf8abd929f7fc17e2947a36 | c6d2a117dbe57698dbd9bd11e3021b28eeb9c695 | refs/heads/master | 2021-01-22T20:19:05.492546 | 2015-04-24T05:34:48 | 2015-04-24T05:34:48 | 34,408,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | #!/usr/bin/python
'''Mates colors!'''
import random
from PIL import Image
IMG_SIZE = (250,250)
IMG_MODE = 'RGB'
WHITE = '#FFFFFF'
BLACK = '#000000'
MAX_RGB = 255
TARGET = [137,22,88]
DNA_SIZE = 3
POP_SIZE = 200
GENERATIONS = 500
MUTATE_CHANCE = [1,200] # 1 in 100
def random_color():
# Return a random ... | [
"kilbyjmichael@gmail.com"
] | kilbyjmichael@gmail.com |
d2811e09b26d29f12842bc4f3cbe3fb130dfc9d8 | 3266ca1e55be0b23d1a29462d017dd4b6a7e031e | /util/instr.py | 8f1ce82af86cda021c94550565b2b64556988fea | [] | no_license | Tim-Nosco/LazyLabel | 471c0ddb17f76d24bdf0415ebbc96ecc46c261ce | c8e3ef0ee912d74aaa96b6c82d51184a03b0da80 | refs/heads/master | 2021-07-17T22:08:36.582581 | 2017-10-26T19:08:37 | 2017-10-26T19:08:37 | 107,707,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | import re,logging
from z3 import *
class Instruction:
valid_names = r"([0-9A-z\%\<\>]+?)"
regx = r"^{0} = {{}} {0} {0}, {0}$".format(valid_names)
type_regx = re.compile(r"^i(\d+)$")
def __init__(self,idx,result,rtype,arg1,arg2):
self.result = result
self.type = rtype
self.arg1 = arg1
self.arg2 = arg2
def ... | [
"tim.nosco@gmail.com"
] | tim.nosco@gmail.com |
9f3fe077a1a4c9a540c6e4a89d2367f7c0d04e60 | f5139b36f9ffe06b140a18f0d91988999aecb737 | /modules/WordLSTM.py | 08942506907844907fc4dd4d766e65da5cd63895 | [] | no_license | yunan4nlp/NNEDUseg_conll | 7a71297d478fbc5e15739003021af4c44f8b8498 | 8ad68b1c88c4499eab638dd9c11d3e446d4ebcb7 | refs/heads/master | 2021-01-07T21:24:14.554746 | 2020-02-21T04:39:33 | 2020-02-21T04:39:33 | 241,823,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from modules.Layer import *
class WordLSTM(nn.Module):
def __init__(self, vocab, config):
super(WordLSTM, self).__init__()
self.config = config
#self.conv = nn.Conv2d(1, config.hidden_size, (config.cnn_window, config.word_dims),
#padding=(config.cnn_window//2, ... | [
"yunan@MacBook-Pro.local"
] | yunan@MacBook-Pro.local |
b984ae4d09b777cea27b15594325c8577d5b8fa4 | 141130d04641f37380f977a868d1c5211163e2ae | /supermarket/settings.py | 29d40e12ef2f50003f102dc211bd611f7b05119f | [] | no_license | bronejeffries/supermarket-in-Django | fac78184a7cac9849dc8269286f82280edce8465 | ffa90562d66fb6da22be84089391a8d01c4bf231 | refs/heads/master | 2021-06-11T14:02:54.612270 | 2018-07-31T16:14:09 | 2018-07-31T16:14:09 | 140,300,913 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,450 | py | """
Django settings for supermarket project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import o... | [
"brianbronej@me.com"
] | brianbronej@me.com |
df1c243259bb643cec2b5c3ab1980bd98628a229 | 78860e7facd130ccc4b7b6226dc19fce672d8d81 | /bikeshare.py | 0adcd08260c17919d4461c6c293deaf60248faab | [] | no_license | rishabh-bisht2302/Rishabh-udacity-project | d2b7d3f3de5c3363be9abb178f6ee31873c54226 | 94a0a723a1721182a444079996b4148cdf718b38 | refs/heads/master | 2020-06-07T08:55:34.038052 | 2019-06-20T21:38:13 | 2019-06-20T21:38:13 | 192,978,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,293 | py | # External sources used
# --> https://pandas.pydata.org/pandas-docs/stable/reference/frame.html
# --> http://unicode.org/emoji/charts/emoji-list.html#1f92d
# --> https://www.geeksforgeeks.org/python-program-to-print-emojis/
import time
import numpy as np
import pandas as pd
def get_filters():
""... | [
"Rishabh.bisht2302@gmail.com"
] | Rishabh.bisht2302@gmail.com |
86f6f88e0ab0d6da6af0439be4ce6e06014071a7 | b2a60c8776791b25595850706ad6f3334d0aaf22 | /test/create_circuit3.py | 2baf33a3c6ffef9e7314e378f6d0b82efd86637f | [] | no_license | cislab-ntut/Garbled_Circuit_Project2_Team5 | e649b22d6cf8eb5977aa26e9491b0c4782430902 | 82eb819f6951b6706a35689e84a964506b1b3801 | refs/heads/master | 2022-09-14T14:18:12.874486 | 2019-12-31T04:10:06 | 2019-12-31T04:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,985 | py | import sys
import gate
import random
import enigma_func as enigma
random_table = list()
def exist(value):
global random_table
if value in random_table:
return True
else:
return False
def get_random():
global random_table
val = random.randint(0, 25)
while exist(val):
val = random.randint(0, 25)
random_table... | [
"godofyax@gmail.com"
] | godofyax@gmail.com |
7edc6fff571a84060e84abd7adc6b4b898962426 | 058656c6fced1d8b616d4abf35970e002ef50fab | /ynab/models/month_summary.py | 633a98f058d4347fcac82d8f5b5e885189d70421 | [] | no_license | MattThommes/ynab-python | e6f8d4da9504acd6e02f1b33e9ead9ba058ede3c | c9c85f449091975219270b838aed825f50e41752 | refs/heads/master | 2022-10-01T06:34:55.010170 | 2022-09-02T23:45:48 | 2022-09-02T23:45:48 | 202,883,813 | 0 | 0 | null | 2019-08-17T13:23:15 | 2019-08-17T13:23:14 | null | UTF-8 | Python | false | false | 5,596 | py | # coding: utf-8
"""
YNAB API Endpoints
Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudge... | [
"deanm@synopsys.com"
] | deanm@synopsys.com |
615cd6b556994a362654f132d88440773408a66f | dad00a62315bc1b6434babc594c08092e508c739 | /python/django/django-vuejs/django-vuejs/homepage/migrations/0001_initial.py | 7555b7e1c46cf33260abb8ba7e400e72045eb7bb | [] | no_license | geovanecomp/Studying | 28e48fae82b2e2c3d8ff0bc3e1ad2bb17dc4371d | e422e77f44e36969a87855d30e28a86c74410d90 | refs/heads/master | 2020-04-16T01:44:21.323679 | 2018-05-09T18:20:14 | 2018-05-09T18:20:14 | 83,228,749 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # Generated by Django 2.0.2 on 2018-02-04 00:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Games',
fields=[
('id', models.AutoField(au... | [
"geovane.pacheco99@gmail.com"
] | geovane.pacheco99@gmail.com |
1814f74e34e2e1cff5affcee75d2aa83ee5444c8 | 7b4705831a6cf12ace488022b1973da29854814f | /multilingual/jsonify.py | 05aa72af25991cf7de15611ab75edf287449361d | [] | no_license | nitaku/WordNet_Atlas_core | c38b556c16dd478c5e1939f198ac4f3b75249458 | 84bdf287933991a00377afb691343139c27bcd61 | refs/heads/master | 2023-08-04T10:47:49.175610 | 2023-07-20T15:10:39 | 2023-07-20T15:10:39 | 16,588,554 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import sys
lang = sys.argv[1]
from graph_tool.all import *
g = load_graph(lang+'/wnen30_core_noun_tree_longest_w_senses_'+lang+'.graphml.xml.gz')
graph = {
'nodes': [],
'links': []
}
is_synset = g.vertex_properties['is_synset']
lemma = g.vertex_properties['lemma']
# sensenum = g.vertex_properties['sensenum... | [
"matteo.abrate@gmail.com"
] | matteo.abrate@gmail.com |
4d33c00a31200e8fa664671bb8c326c32c2bbc54 | 20ccd941834b5fca4b6362290ba5a85cfd867ff3 | /VGG/train.py | c8a8b5573f7ae8e67a315b52017399bace6600d2 | [] | no_license | yjzhao19981027/pytorch-learning | 233c452ae0db9ccaacf59c7dcbe21aae20d3e383 | f9e2c9df0c85a2599701105bd6c5bc9864bf41d9 | refs/heads/master | 2023-07-29T23:22:06.088914 | 2021-09-14T05:27:54 | 2021-09-14T05:27:54 | 406,197,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | import time
import torch
from torch import nn, optim
import d2lzh_pytorch as d2l
from model import VGG11
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
# 经过5个vgg_block, 宽高会减半5次, 变成 224/32 = 7
fc_features = 512 * 7 * 7 # c * w * h
fc_hidden_units = 4096 # 任意
ratio = 8
small_conv_arch = [(1, 1, ... | [
"630877986@qq.com"
] | 630877986@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.