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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
96cdbb081e5c25bb5168b73c58283eac5eec2ae4 | 642dde87cfbfd67178a02ec9536ea627526058f7 | /bpfe/vectorizer/BPFEVectorizer.py | 6154201b05b7fb37d9654bd825ab3f764089a267 | [] | no_license | JesseBuesking/dd-bpfe | 3f463b5ee474740c5a47b5cd17a0e2609862fc0d | 9521205ec82baf661076ff41b58178d9e04723dc | refs/heads/master | 2020-12-25T18:16:30.177324 | 2015-01-10T05:45:01 | 2015-01-10T05:45:01 | 26,792,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,747 | py |
from collections import Counter
import re
from sklearn.base import TransformerMixin, BaseEstimator
from sklearn.feature_extraction import DictVectorizer
from bpfe.entities import Data
from bpfe.feature_engineering import all_ngrams_list
from nltk.corpus import stopwords
from nltk.stem import SnowballStemmer
sbs = S... | [
"jessebuesking@gmail.com"
] | jessebuesking@gmail.com |
c882342fe074152a5d6c323af163893ccd169ee5 | 33dafb9bedaaa7a78a857ef6c6e77d4559c444cc | /mysite/mysite/settings.py | d45d021079ef5ad58b63c766001ea7f38fb9de2f | [] | no_license | geraldojosesanto/my-first-blog | 09e44a2fe3ef2c93b6266a6573ab2647380560f3 | 77159e58d4795ef89c15579ae1ffbd871b8c1189 | refs/heads/master | 2022-11-21T19:40:06.986886 | 2020-07-22T20:25:38 | 2020-07-22T20:25:38 | 281,736,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.14.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"geraldojosesanto@hotmail.com"
] | geraldojosesanto@hotmail.com |
1083aa60275a7e289d9f75c45560aab1ae17ed3d | 5700c42a07f271b94ca2a647fbdb388b9c249469 | /pages/basket_page.py | c53c003ee205bfaa80f1083a4058196ee3df5629 | [] | no_license | aurika-pixel/stepik---auto-tests-course | 175503d2989d6ce7d8ab6cb9c8b3a356437401dc | cfc75e66eb7d1e39dfd8cff65c6d058f983dbf16 | refs/heads/master | 2021-08-10T13:20:20.089086 | 2020-04-13T17:35:49 | 2020-04-13T17:35:49 | 253,438,666 | 0 | 0 | null | 2021-06-02T01:26:33 | 2020-04-06T08:28:26 | Python | UTF-8 | Python | false | false | 425 | py | from .base_page import BasePage
from .locators import BasketPageLocators
class BasketPage(BasePage):
def should_be_basket_is_empty_message(self):
assert self.is_element_present(*BasketPageLocators.BASKET_IS_EMPTY_MESSAGE), "message not exists!"
def should_not_be_product_in_basket_message(self):
... | [
"aurikatu@mail.ru"
] | aurikatu@mail.ru |
0e7c3b828694480c0b910383edc2dc5f6294ab81 | a728a685fa841388da0d27c8d596ce2178a60ad0 | /app/core/tests/test_models.py | 55151200fda78a0faad3fa52acf148c40fe6a526 | [
"MIT"
] | permissive | aikinyi/recipe-app-api | bd3c037acf650a09cdae35497c8e62b4988ad454 | 419ab18f715f66d044af125680ce3417f7af61f4 | refs/heads/main | 2023-03-19T13:46:50.341555 | 2021-03-20T22:39:36 | 2021-03-20T22:39:36 | 321,140,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
from core import models
# Helper functions
def sample_user(email='test@gmail.com', password='test123456'):
return get_user_model().objects.create_user(email, password)
class ModelTest(TestCase):
"""
Creating Model TDD
""... | [
"learntoprogress@yahoo.com"
] | learntoprogress@yahoo.com |
eb1e71aacc3892c3756d3e6efab1d5dbebcb4e7a | 4331279865c4b1262179068ba5ac85d8d75123b6 | /final/home/views/insurance.py | ae8d65e45714f7c174c4d5d0273a66627fdbf017 | [] | no_license | manankshastri/NYmed-Scripts | fb4633c19dadfdf982f127454a5dd643ba0f8a8b | 993af47223ca7cb38a2e9af88a2fc99baa7f3d88 | refs/heads/master | 2020-04-07T11:29:01.839909 | 2019-05-16T22:39:50 | 2019-05-16T22:39:50 | 158,328,115 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | from django.contrib import messages
from django.contrib.auth import login
from django.contrib.auth.decorators import login_required
from django.db import transaction
from django.db.models import Count
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse_lazy, reverse
from dja... | [
"manank.shastri@gmail.com"
] | manank.shastri@gmail.com |
e98ddaa42ba0de08f5058b25bd20b30991dc607c | fc87b90aebfef2fa618241bbf3a95fbe0e5c2f18 | /manufactureview/pt/apps.py | 94de0ae640b39ad003b7948167b403b9d6adac09 | [] | no_license | ofiryak12/ManufacturerRoom | ce31570247ae6848e4cf6f97cdeedf3a2fee5217 | d942defec030d9ae3415028423f3e071e7f0561a | refs/heads/master | 2023-07-15T05:00:28.661909 | 2021-08-30T06:28:08 | 2021-08-30T06:28:08 | 400,302,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from django.apps import AppConfig
class PtConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'pt'
| [
"ofiryak12@gmail.com"
] | ofiryak12@gmail.com |
cd2488e6fb072ad9466b9e8656c5c2ce6f99929e | c839961aeab22795200d9edef9ba043fe42eeb9c | /data/script1161.py | d205b142ad1e49664fe6d443dda932a4ef1e8727 | [] | no_license | StevenLOL/kaggleScape | ad2bb1e2ed31794f1ae3c4310713ead1482ffd52 | 18bede8420ab8d2e4e7c1eaf6f63280e20cccb97 | refs/heads/master | 2020-03-17T05:12:13.459603 | 2018-05-02T19:35:55 | 2018-05-02T19:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,556 | py |
# coding: utf-8
# # A Laconic Approach - EDA (Version 1)
# In this notebook, I will be doing exploratory data analysis for given data for text normalization in laconic fashion. The task given to us in this competition is to convert written text into spoken forms, for example - 6ft will be converted into 6 feets, or $... | [
"adithyagirish@berkeley.edu"
] | adithyagirish@berkeley.edu |
47de7604ce9f3dbba2dceae866ce17732272dc3e | b8c91ddeffe49d5aa2dcfd82d4cb5c2fb63f1c38 | /SC001/Homework/Assignment1/CheckerboardKarel.py | b6bce685148dfe4815e11a49b4552b3613b53763 | [] | no_license | astrochialinko/StanCode | 121ac5fb52f931c2148ca19c4a87b9f288dcdb38 | ec3a81ba94a4600ab20ebe8e31049bf3a372bae8 | refs/heads/master | 2023-05-27T22:36:21.979603 | 2021-06-13T14:26:31 | 2021-06-13T14:26:31 | 334,227,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | from karel.stanfordkarel import *
"""
File: CheckerboardKarel.py
Name: Chia-Lin Ko
----------------------------
This program instructs Karel to draw a checkerboard using
beepers, as described in Assignment 1.
The program works for all of the sample worlds provided in
the starter folder.
"""
def main():
"""
... | [
"chialinko@Chia-Linde-MacBook-Pro.local"
] | chialinko@Chia-Linde-MacBook-Pro.local |
cd604accecbe1e3a174eb64d58aa50cb702a0acf | 26771494974942f4ab18d2cd8247506c344e1d14 | /895-maximumFrequencyStack.py | 4a40053b7ed6952b9019de75037801c0192ff639 | [] | no_license | wangyunpengbio/LeetCode | 9f4c6076e067c5e847d662679483f737d40e8ca5 | cec1fd11fe43177abb2d4236782c0f116e6e8bce | refs/heads/master | 2020-04-29T22:28:25.899420 | 2020-04-03T07:37:26 | 2020-04-03T07:37:26 | 176,448,957 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | class FreqStack:
# 超时
def __init__(self):
from collections import defaultdict
self.stack = []
self.dic = defaultdict(int)
self.maxFrequency = 0
def push(self, x: int) -> None:
self.stack.append(x)
self.dic[x] = self.dic[x] + 1
self.calculateMaxFrequen... | [
"wangyunpeng_bio@qq.com"
] | wangyunpeng_bio@qq.com |
230e44d52e7267776c7ad0dd6590c9ae3760fd4c | 87da2a20260a8ba81aef92c517a51b46dfc0689c | /luhyacloud/walrus/urls.py | 4745abff359740bdc0d79f4a219f0166d20384cb | [
"CC-BY-4.0"
] | permissive | cloudfirst/eduCloud | 244e84ce2242f33854ed9fe197414fc9ef3d8313 | ac45bcbcdb9dae60e6c29056a75776fee43c361d | refs/heads/master | 2021-12-01T17:02:56.260817 | 2020-03-17T13:01:21 | 2020-03-17T13:01:21 | 22,567,057 | 0 | 1 | null | 2017-10-10T12:24:20 | 2014-08-03T04:18:24 | HTML | UTF-8 | Python | false | false | 210 | py | from django.conf.urls import patterns, url
from walrus import views
urlpatterns = patterns('',
#url(r'^main/top/$', views.admin_top_view, name='main_top_view'),
# API 1.0
# Web Page
) | [
"4167023@qq.com"
] | 4167023@qq.com |
ec342f342906642d2e195b79e2e610331c52b5c2 | 73bc168768a5f8bb139b53bd618ecf19cf61ac66 | /courses/courses/spiders/udacity.py | 5ba4add5845f5846ff109726c7ba8043505c928f | [] | no_license | rodrigo-ghiraldeli/udemy_python-com-scrapy | 9cd905457992b3804cebb79286dbd68f204e8cea | 6342a5da6afebdbe09c188918991efb0109587fc | refs/heads/master | 2022-12-03T18:29:40.887923 | 2020-08-19T00:42:27 | 2020-08-19T00:42:27 | 288,595,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | import scrapy
class UdacitySpider(scrapy.Spider):
name = 'udacity'
start_urls = ['https://www.udacity.com/courses/all/']
def parse_detail(self, response):
title = response.xpath('//h1/text()').extract_first()
headline = response.xpath('//div[contains(@class, "legible")]/text()').extract_f... | [
"rodrigo.ghiraldeli@gmail.com"
] | rodrigo.ghiraldeli@gmail.com |
d2ef8d920e4103f095845cc5539c6c544a985b29 | 10ea8247d4493496f940c565881d572bebd9acd5 | /MyParser.py | e8c2879f4a028a4d2cef5eb2e40b4a1f255a60ca | [] | no_license | arizalsaputro/simple-parser-tba | 6fbcd80d1a17c6c90b04c534098284d61eca7257 | 3040c155897e90a8af274d6d697a9709bce99e39 | refs/heads/master | 2021-08-23T08:53:14.154547 | 2017-12-04T11:27:22 | 2017-12-04T11:27:22 | 112,942,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | #Tugas Tahap 1
operator = ['+','-','x',':']
def parse(inputan,index,output,hitungBuka,error):
if error :
return output
if index is len(inputan):
#if hitungBuka > 0:
# output += "error "
return output
count = index
if inputan[count] is " ":
index = index + 1... | [
"muharizals@students.telkomuniversity.ac.id"
] | muharizals@students.telkomuniversity.ac.id |
91015339d5385a43b17af97fd72bce9f241c9932 | 41a9fcc8df963ffb3c58b196d0d5c8053cb08509 | /RegEx.py | 9959375b6ca3da6b3426232b556cfb6528d7e5b3 | [] | no_license | oun1982/gitrepo | 89c267b61e2dd555d049a8296b4949a7f1639621 | 73e4b5798f8e0ed805a7ee49d1e54cef2b7b51c1 | refs/heads/master | 2021-05-09T04:00:33.667791 | 2019-02-24T04:52:56 | 2019-02-24T04:52:56 | 119,258,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | __author__ = 'oun1982'
import re
if re.search("cat","A cat is eat fish"):
print("Have a Cat")
else:
print("Haven't Cat")
print(r"\\\\!@_!")
| [
"oun1982@gmail.com"
] | oun1982@gmail.com |
7ef7011e89b8d22c40c5908a8f87b85e6bf1c799 | cc1c69962b0bcbb3bd01523f5366a75c36933b58 | /condiconales_bucles/Condicionales_ejercicio.py | 04adef891aa9129980c55c50f5a57925d1662ef7 | [] | no_license | JuanLuisRepositorio/Bloque-1 | 6acd7ef3e740da3c010ead47593b9e0e07bcec30 | c32b025dc8a2eb6a6f31e98cdec8f25a38d2a268 | refs/heads/master | 2020-08-23T04:29:49.133595 | 2020-01-10T08:49:34 | 2020-01-10T08:49:34 | 216,543,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #cambia los textos para que se muestre el mensaje de acceder al contenido solo si es mayor de edad o es un menor que esta con sus padres
edad = int(input("¿Cuántos años tiene? "))
if edad < 18:
padres = input("¿Estan tus padres contigo(S/N)? ")
if padres == "S":
print("No puedes acceder al contenido")
... | [
"noreply@github.com"
] | JuanLuisRepositorio.noreply@github.com |
da0854259a59bf045f2fa9cfc0c521134bcc7d32 | e39e0a8676c8a5b24b37d949e3fe6c05e48ab817 | /client/file/messages.py | 1c042ac5c8bb9181ef4ddd30e10fa027b224218d | [] | no_license | Joselsneto/ECOTorrent | a3966c0d58a3880524977458ebc35ac297e67be7 | 50d1c076a2adcb0ce8476d58795e50b11c52775e | refs/heads/master | 2022-10-20T14:15:23.820944 | 2020-07-01T00:33:25 | 2020-07-01T00:33:25 | 265,071,710 | 0 | 0 | null | 2020-06-30T22:31:23 | 2020-05-18T21:54:48 | Python | UTF-8 | Python | false | false | 373 | py | class Messages:
def __init__(self):
pass
def handshake(info_hash, peer_id):
hs = "146EcoTorrent0000000{}{}".format(info_hash, peer_id)
return hs
def verifyHandshake(hs_message):
pass
def getInfoHash(hs_message):
return hs_message[20:84]
def getMessageType(message):
return message[0... | [
"joseitamonte@hotmail.com"
] | joseitamonte@hotmail.com |
bed170e3a61e169e68a386884050efbff4067342 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/labels_20200908183820.py | 429c534d5ee867e57cc47bc486a667f5c91d2405 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | def labels(S):
if len(S) == 0:
return 0
output_arr = []
last_indices = []
for i in range(len(S)):
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
c18989b9fc9e25bf40b4ac083d12d27f4d5d3a0e | 96b2009e5a3bcaa4a0a6bb699015e5d2d62e3ccc | /卷积神经网络+keras/__init__.py | c9f26105c126796a86360adc6512fe8d3d8fda08 | [] | no_license | zlszhonglongshen/NLP | 612d9f73ca017d387c48b8b3ebae24510dad6732 | 8f373f737b309c7441b516c0d408e43aebacff61 | refs/heads/master | 2022-07-24T20:18:12.465840 | 2019-11-27T09:06:57 | 2019-11-27T09:06:57 | 125,830,945 | 0 | 0 | null | 2022-07-15T20:19:20 | 2018-03-19T09:11:40 | Jupyter Notebook | UTF-8 | Python | false | false | 7,572 | py | #coding:utf-8
import os
import numpy as np
np.random.seed(1337)
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
from keras.utils.np_utils import to_categorical
from keras.layers import Dense,Input,Flatten
from keras.layers import Conv1D,MaxPooling1D,Embedding
from ... | [
"593956670@qq.com"
] | 593956670@qq.com |
c1315a888e3fa400a7a29daa027a4b8545ff0168 | f3aecb7313ad69241782bd95d2a492299ee554cb | /i3status/py3status/chargestatus.py | 940f90e2e4c47ac252a6d10ff8824134d15115ca | [] | no_license | Kalior/dotfiles | 24357f70eb301503b1cfe4f194a9ecd5853e4eed | ad3a3797ed13c7009ffd39f9bf635aeff3a0f6a2 | refs/heads/master | 2022-04-28T15:54:44.673206 | 2022-04-01T18:40:33 | 2022-04-01T18:40:33 | 51,951,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,731 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Display the battery level.
Configuration parameters:
- color_* : None means - get it from i3status config
- format : text with "text" mode. percentage with % replaces {}
- hide_when_full : hide any information when battery is fully charged
- mode : for prim... | [
"kalioragus@gmail.com"
] | kalioragus@gmail.com |
3eb1a57dc99966d684dbbc8a94e98154248c5de1 | 092bb75936bbccf339a44fd13ce7040b8f2c305a | /gui.py | bbb847d0a409e822d87f1e363f35e6a3c23a357f | [] | no_license | bishop254/NetMon254 | c4794c2382aaa7311fee7d91d9217ebdf887f952 | 7f255fc6a58927ffb56e9bb74e512c42aa7d3d25 | refs/heads/main | 2023-08-18T17:52:44.691888 | 2021-09-29T19:43:40 | 2021-09-29T19:43:40 | 408,805,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | #! /usr/bin/env python3
import random
from ipaddress import IPv4Network
from typing import List
from scapy.all import ICMP, IP, sr1, TCP
# Define IP range to scan
network = "192.168.43.0/24"
# Define TCP port range
port_range = [22,23,80,443,449]
# make list of addresses out of network, set live host counter
addres... | [
"noreply@github.com"
] | bishop254.noreply@github.com |
5fb7177c8751886429fb169f1f3e13e7e8f37aa0 | 6c9017f9a7ff020e5a5931ae0746becf13df2080 | /worker/parent/testdata/printloop.py | 326c71015207eeaa70c8fb49b8917322697b7172 | [
"MIT"
] | permissive | FDlucifer/gocrack | 995bac075aa36452cce5417df6e93ba600b665b2 | e3b20e43e39d5fc0fbf3a1c652462559ebbec2cf | refs/heads/master | 2021-04-10T05:47:41.610567 | 2019-08-01T14:47:20 | 2019-08-01T14:47:20 | 248,914,857 | 1 | 1 | MIT | 2020-03-21T05:44:10 | 2020-03-21T05:44:09 | null | UTF-8 | Python | false | false | 494 | py | import argparse
import time
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Prints numbers')
parser.add_argument('--max', type=int, default=5, help='max number to print')
parser.add_argument('--rc', type=int, default=0, help='return code to exit as')
args = parser.p... | [
"chris.schmitt@mandiant.com"
] | chris.schmitt@mandiant.com |
2285f53714843af0c12d3e5bbffe3461fd1b8067 | eefc395d096b5849d66e4e3a5083a3fbd50719b6 | /MEG_experiment_script.py | e3246113a5c24d7e8801500281b2b8e248d99f49 | [] | no_license | gvilidaite/meg_contrast_discrimination | 0e522b83fa654ab89505cac2b342f2d138a9d214 | b58bbea861e4d7f403de19e1af200f819b0dd179 | refs/heads/master | 2020-03-22T16:44:59.347677 | 2018-07-09T22:27:46 | 2018-07-09T22:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,163 | py | # MEG contrast discrimination script
# Last edited 25/10/16
# INFO:
# The script is set up so you can quit at any time by pressing ESCAPE and then waiting for the next trial
# HOWEVER, when restarting the experiment, will need to change the number of blocks in the GUI (defaults is 4)
# Presents four identical blocks o... | [
"vilidaite@gmail.com"
] | vilidaite@gmail.com |
83af6f83dc179242e5d702547f4e5a827285eb53 | 7ba9ec427aac637aa25788971114b4520909b4da | /test_scripts/continuous_transmissionv3.py | 2df4b37c1d7efada2b9ffc941ba4dbcea319f19b | [] | no_license | matthew-william-lock/intelligent-spectrum-sharing | 95160dc5de3dfdf08285b55c4a162696972b4471 | 34c2174f8de0ddb24d3f7ac886625c7bbd7e1533 | refs/heads/master | 2022-12-26T06:12:31.116608 | 2020-10-13T11:53:28 | 2020-10-13T11:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,090 | py | import select
import socket
import time
import _thread
import threading
import getopt
import queue
import random
from time import sleep
import signal, os
import sys
sys.path.append('../../')
sys.path.append('../../communicator/python/')
from communicator.python.Communicator import Message
from communicator.python.Lay... | [
"zz4fap@gmail.com"
] | zz4fap@gmail.com |
2829631b6c5dbf23e71b80e88443771bec8ef460 | 9bed8867761870372e955cd54b4d33b6cd59cd6c | /ch9/grid.py | dbe670c428cbd6a6af293fcd4682b7961bec3361 | [
"MIT"
] | permissive | fxyyy123/book_codes | 15b3e266e8b8edf1c85a9fff7292ead0c54cfde6 | 64e4ac2b33c54cde4671291a6203e94cd96de4ba | refs/heads/master | 2023-06-02T04:44:58.525053 | 2020-05-18T05:24:57 | 2020-05-18T05:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | from tkinter import * #导入tkinter模块
window = Tk() #创建主窗口对象
window.title('Grid Example') #设置窗口标题
colors = ['red', 'green', 'light blue', 'yellow']
#展示padx, pady设置效果
labels0 = [
Label(window, font="Arial 18", text=' grid(%d,%d) ' % (0, j),
bg=colors[j]).grid(row=0, column=j, padx=j * 5, pady=j * 5)
... | [
"python_programming@163.com"
] | python_programming@163.com |
a16fd8e50b9c997067a44669d605721cbf30a699 | c82b0584f91a7a130718273ecf72039e2d5f9ab1 | /polyaxon_deploy/schemas/security_context.py | a6ce5946b5aed47c96e476bc8c5a116f43003948 | [
"MIT"
] | permissive | todokku/polyaxon-deploy | 7af770dac9fb9797b86e3bf6b5f1da477a751ba0 | 77828e028670c43cc74704a4d7b9ec2e661e10a4 | refs/heads/master | 2021-02-15T16:02:13.468664 | 2020-03-04T09:37:06 | 2020-03-04T09:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from marshmallow import ValidationError, fields, validates_schema
from polyaxon_deploy.schemas.base import BaseConfig, BaseSchema
def validate_security_context(user, group):
if any([user, group]) and not all([user, group]):... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
93981d5496bc781858932e1163011673c668b86b | 67769384e54979a058a939d067c813d6ba84e213 | /alphaml/datasets/cls_dataset/sector.py | 31e7198fd548de25beb9398b18c050c77c974921 | [
"BSD-3-Clause"
] | permissive | dingdian110/alpha-ml | f53e1c847c9d327691e77dcb3edab8ca51520d50 | d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde | refs/heads/master | 2020-09-14T17:08:02.229245 | 2019-11-21T11:32:56 | 2019-11-21T11:32:56 | 223,195,139 | 1 | 0 | BSD-3-Clause | 2019-11-21T14:39:39 | 2019-11-21T14:39:38 | null | UTF-8 | Python | false | false | 700 | py | import pandas as pd
def load_sector():
L = []
file_path = 'data/xgb_dataset/sector/sector.txt'
with open(file_path, 'r') as f:
for line in f.readlines():
items = line.strip().split('\n')[0].split(' ')
d ={}
d['label'] = int(items[0]) - 1
del items[0]
... | [
"32727236+salty-fish-97@users.noreply.github.com"
] | 32727236+salty-fish-97@users.noreply.github.com |
015f28cff9057185f32b9aa80589b0f4ae92b00a | b1a7fce60e8935592d07323222212d132eedb407 | /Raspi/Confirm.py | a4d5142e76c993a17e454a2068f3e4dc046cbad7 | [] | no_license | Namlitruong/Capstone-ModularRobot | d0922030a8ee0af7a06667ea5f333b19e1bbb070 | e23b07b260a7bfef9a0ef07bb74816cf64cc6a56 | refs/heads/master | 2022-12-17T23:07:07.952625 | 2020-08-17T00:41:11 | 2020-08-17T00:41:11 | 273,672,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,766 | py | import CANbus
import can
import csv
#############################--INTERRUPT--######################################
import time
import os, signal
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(13, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
def interrupt_handler(channel):
ID = os.getppid()
print(ID)
... | [
"pi@raspberrypi"
] | pi@raspberrypi |
44ef95a9011192ce453982424085607440c05159 | b7bbbd60eb783208a4e7c8159d833526170b5a3c | /examples/log.py | f9812667113f1d6fb9e44c3ca0d5684a12ecbb60 | [
"ISC"
] | permissive | ericfaurot/py-app | a9a2923001b164968e8929f836d1333e5b74d0b3 | b0f25adf8b644073ef7074d24514ec35448a532e | refs/heads/master | 2018-10-12T07:41:40.367991 | 2018-09-19T16:52:39 | 2018-09-19T16:52:39 | 125,370,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import time
import getopt
import sys
import app.log
procname = None
foreground = False
logfile = None
opts, args = getopt.getopt(sys.argv[1:], "-df:p:")
for opt, arg in opts:
if opt == '-d':
foreground = True
elif opt == '-f':
logfile = arg
elif opt == '-p':
procname = arg
app.l... | [
"eric@faurot.net"
] | eric@faurot.net |
1c73574065a164f757249a8c0128113bc3fccdae | 837a430acf6deaf94784bcaec496bbfac5affff7 | /venv/bin/pip3 | acec7bf0fb4b56136916c07617d638c89df28d3e | [] | no_license | meghamanohar/Pythontests | d8a474050b150c2d80690ce71e615306163b50c3 | 93153019e8a35c567d9954b6ba9edda2c3132e92 | refs/heads/master | 2022-06-29T16:34:56.397756 | 2020-05-14T02:27:38 | 2020-05-14T02:27:38 | 263,792,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/Users/krishnayadappanavar/PycharmProjects/FirstProject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"megha.manohar@gmail.com"
] | megha.manohar@gmail.com | |
64cbbf12cccecdd79098ee784933598a826d5869 | b9f7c7a87292c1a9c231ce89933ae9d4bc51f487 | /src/sst/elements/simpleElementExample/tests/basicStatistics0.py | 3ea5c138cfc1b3558768044804877e0a4e49d5e9 | [
"BSD-3-Clause"
] | permissive | sstsimulator/sst-elements | 3a8db475a7a6cbd4c2a5d737c32718752da9797a | 68cdb3ac843750705805653b3fdcd4b015e84089 | refs/heads/master | 2023-08-17T03:30:24.145168 | 2023-08-16T13:58:07 | 2023-08-16T13:58:07 | 43,475,440 | 85 | 145 | NOASSERTION | 2023-09-12T13:59:11 | 2015-10-01T02:57:18 | C++ | UTF-8 | Python | false | false | 3,054 | py | # Import the SST module
import sst
# The basicStatisticsX.py scripts demonstrate user-side configuration of statistics.
# Each one focuses on a different aspect of user-side configuration
#
# This example demonstrates:
# 1. Default output behavior (reporting statistics at the end of simulation)
# 2. Various output... | [
"grvosku@sandia.gov"
] | grvosku@sandia.gov |
45ae2421cf59a4a43dd3dd496139b32a58f76e45 | 6d1f401129b8a3891be699e81ac145a1f47c77f2 | /marine_ferrary/google-python-exercises/basic/list1.py | a3d3924556dc24a4ac5b80a500ec683cbeb8ecc9 | [
"Apache-2.0"
] | permissive | olivier-loison/INFMDI721 | 1364ddf382cd4e21adff293b50dad5718ac971f0 | 12ec2acff229e4ec1053607ef29e8ece871fe9fa | refs/heads/master | 2021-07-05T18:54:46.370068 | 2017-09-21T22:22:58 | 2017-09-21T22:22:58 | 104,406,207 | 0 | 0 | null | 2017-09-21T22:49:34 | 2017-09-21T22:49:34 | null | UTF-8 | Python | false | false | 3,260 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic list exercises
# Fill in the code for the functions below. main() is already set ... | [
"marine@dhcpwifi-23-39.enst.fr"
] | marine@dhcpwifi-23-39.enst.fr |
7728b2672b63c0955fa31c15489a21301c6c50f8 | 291d0103d1012e02d0882b029ea3e5129a9c2ef7 | /src/hai/urls.py | f546a93c4f0a51847b96d409e391d9ad8243b41d | [] | no_license | lcmencia/hai | 318431b23c6391f728946bd434c2ca3a72fc3c13 | 1c7c0e2bd6bbf0e371bc4e09483cb68a187751e1 | refs/heads/master | 2021-01-18T18:12:01.407068 | 2017-08-18T17:21:32 | 2017-08-18T17:21:32 | 100,516,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | """hai URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Class-based v... | [
"lcmencia2@gmail.com"
] | lcmencia2@gmail.com |
bda797b01eb94234034539602752492f10e15b46 | f1acc7a7c1ec6ea6545816c65655ab664ce85197 | /website/apps/clothing/migrations/0004_auto.py | 60721c07996441f32a702517cdf851ab1432c8b9 | [
"MIT"
] | permissive | saeschdivara/myclothing | be3727e148ade6844a23bc98461bdaab7f510921 | aef10e165c7e767028e8cf8a2ac7d01013231a9e | refs/heads/master | 2020-04-05T22:49:41.969650 | 2014-05-16T06:02:05 | 2014-05-16T06:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding M2M table for field clothing_time on 'Clothing'
m2m_table_name =... | [
"sascha.haeusler@netzbarkeit.ch"
] | sascha.haeusler@netzbarkeit.ch |
59ccae351bb923ec178b9c7535c647e37c13a56c | 25f8871f4cd871d0513a24486201fdd0cc2ceb91 | /user/signals.py | 86aeb47245c8ae4208755b975e128d80117a9e91 | [] | no_license | CaptainVee/Rest | c58b094f3e2481a88851b34daf2870f72f319f0b | b3427b131ea91096cf778dfebd8133c2cf34c5ce | refs/heads/master | 2023-03-15T00:06:39.817192 | 2021-03-29T00:28:27 | 2021-03-29T00:28:27 | 347,763,138 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
from .models import Profile
from rest_framework.authtoken.models import Token
@receiver(post_save, sender=User)
def create_profile(sender, instance, created, **Kwargs):
if created:
Token.o... | [
"captainvee3@gmail.com"
] | captainvee3@gmail.com |
a7a58e508b74821e3264af3384076b5e256be0cd | c58bc356bce1d1c2f0b16357bdd4a193930e29b3 | /ddan/ddcn.py | 755ea2661e8328e5d2b0591e9c44d52f39e9c2f3 | [
"MIT"
] | permissive | spandandey21/ddan | f54067e2b92a52bc6250aac8c51aa358f9e9d5ba | 842fd4dc2d0be0d841863d98df4fc131deff4787 | refs/heads/master | 2022-02-19T14:23:00.050886 | 2019-09-09T16:08:18 | 2019-09-09T16:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,975 | py | import tensorflow as tf
import numpy as np
import pandas as pd
from sklearn.metrics import log_loss
from tensorflow.python.framework import ops
from keras import backend as K
from keras.layers import Dense, Dropout, Activation, GaussianNoise
from keras.layers.normalization import BatchNormalization
from keras.layers.ad... | [
"erlend.davidson@gmail.com"
] | erlend.davidson@gmail.com |
1ae71121fe67533c75e20874fc8ff41f033c1d67 | a9243f735f6bb113b18aa939898a97725c358a6d | /0.16/_downloads/plot_artifacts_detection.py | 86f915a1f8213e207c582dae54ccbc31f59c58bd | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 5,773 | py | """
Introduction to artifacts and artifact detection
================================================
Since MNE supports the data of many different acquisition systems, the
particular artifacts in your data might behave very differently from the
artifacts you can observe in our tutorials and examples.
Therefore you s... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
4c374d623b41f4b08ccaf0d7c3dc45adefcbee20 | 233928d206e13e068cf8cb5ff7888c9a2d84ad61 | /BOJ/BOJ_2920_음계.py | d99e9a4bb4060c1a3c802597873370a6c6437450 | [] | no_license | Jinwoongma/Algorithm | 7f6daa2d3c2c361059c09fb4fe287b1cce4863e2 | 78803f4572f1416451a9f4f31f53b7d653f74d4a | refs/heads/master | 2022-10-07T22:53:20.333329 | 2020-06-07T13:27:47 | 2020-06-07T13:27:47 | 237,114,107 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | data = list(map(int, input().split()))
if data == list(range(1, 9)):
print('ascending')
elif data == list(range(8, 0, -1)):
print('descending')
else:
print('mixed') | [
"jinwoongma@gmail.com"
] | jinwoongma@gmail.com |
e8dd578f213f88343398afdca104aa8d1e0c925b | 7020b4ff30cd1f35146235c1d0e74bb8f9a3c4b9 | /venv/Lib/site-packages/pymysql/connections.py | 7c90ce34e00b2a8abdfea1084d9fcca168f6bf9a | [] | no_license | Brian-Munene/HouseProject | 4f6c500738d733d88dc75b6e2849e80d85024197 | a6a41cfa8d59a9861e0659bce2da191d4eefe1df | refs/heads/master | 2023-02-09T06:47:53.011462 | 2021-09-14T09:48:09 | 2021-09-14T09:48:09 | 169,042,895 | 0 | 1 | null | 2023-02-02T06:14:37 | 2019-02-04T07:38:34 | Python | UTF-8 | Python | false | false | 49,033 | py | # Python implementation of the MySQL client-server protocol
# http://dev.mysql.com/doc/internals/en/client-server-protocol.html
# Error codes:
# http://dev.mysql.com/doc/refman/5.5/en/error-messages-client.html
from __future__ import print_function
from ._compat import PY2, range_type, text_type, str_type, JYTHON, IRON... | [
"brianmunene69@gmail.com"
] | brianmunene69@gmail.com |
41240f0a6dd4ad176be9cc6e8b9eb2e11cf60e08 | e7b0547134291e4707f9760d4c4ce7bf678b2e7a | /block.py | 6017f3d3de2325fadaecaf921e1a4ba28c148138 | [] | no_license | ThisLiftIsGoingDown/Garden-Railway-Control | 154c51c321360c5289077ed10ff3a80b55b2210e | f66ff0f7750400151e688cab23d1316a4c2909f0 | refs/heads/main | 2023-07-15T07:41:59.640067 | 2021-08-24T07:52:42 | 2021-08-24T07:52:42 | 373,764,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from enum import Enum
class State(Enum):
vacant = 0
occupied = 1
outOfService = 2
class Block:
def __init__(self, node , startState = State.vacant):
self.node = node
self.state = startState
def checkState(self):
return self.state
def updateState(self, newState):
... | [
"david.bartsch@bluewin.ch"
] | david.bartsch@bluewin.ch |
48be6df478a910b9d3c13cffb98277f3082c0fe2 | d41aa512f8ad7a28121121cf96f2286abc5391c3 | /scrape_argos/settings.py | e1d3d896b509fcae2e0caab6b9ec23a69f38a0a7 | [
"MIT"
] | permissive | andyregan/scrape_argos | 8b1757819b013bbdb0d0c67ee6b205455aff5ea7 | a3cb44f29173cb4b64e8d73204aecfb40b9edfd9 | refs/heads/master | 2021-01-01T06:50:54.760280 | 2013-05-11T10:08:43 | 2013-05-11T10:08:43 | 9,894,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # Scrapy settings for scrape_argos project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/topics/settings.html
#
BOT_NAME = 'scrape_argos'
SPIDER_MODULES = ['scrape_argos.spiders']
NEWSPIDER_MODULE = 'scra... | [
"andrewjregan@gmail.com"
] | andrewjregan@gmail.com |
0e694119ae71816af6ee234acde50cfb3b07d971 | 259637f225cf17885f972edfc8b8221dfce8f81f | /week-03/day-01/factorio.py | a35246f21bf9bd600e6f75950da6d1a2798938be | [] | no_license | green-fox-academy/IBS_guthixx23 | c9570d0c3a3db4ebe4f6affa4f8980f66178d5fe | f3629e88cf4d9a74adfca2c94b8c928ec669beb3 | refs/heads/main | 2023-01-31T01:12:49.060303 | 2020-12-08T17:58:04 | 2020-12-08T17:58:04 | 304,072,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | def factorio(num):
ans = 1
for i in range(1, num+1):
ans *= i
return ans
print(factorio(4)) | [
"guthixx23@gmail.com"
] | guthixx23@gmail.com |
2fd1b907e6eff215b937433a3f361834b3dd96ec | a355b16b9b4cebdd39beb69a6c5aa4e175ae52f6 | /phytosanitary/urls/links.py | 8d16c92f08f546895ad6e4779cd0a8695434b8ee | [] | no_license | hypertexthero/Phytosanitary | e2ba31116b432a8623b332e53a390ff31c24fc10 | 4f001436c90de7a64649e82089e577af6981b793 | refs/heads/master | 2016-09-05T09:47:01.448846 | 2012-11-28T16:34:03 | 2012-11-28T16:34:03 | 3,460,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | from django.conf.urls.defaults import *
from phytosanitary.models import Link
link_info_dict = {
'queryset': Link.objects.all(),
'date_field': 'pub_date',
}
urlpatterns = patterns('django.views.generic.date_based',
(r'^$', 'archive_index', link_info_dict, 'phytosanitary_link_archive_index'),
(r'... | [
"simon@hypertexthero.com"
] | simon@hypertexthero.com |
994488c0995c4cb3859a16fbd3481c780bdb7c61 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/aio/operations/_load_balancer_load_balancing_rules_operations.py | 80034f67d188e49b5f19806c7376dfe4dd5c6385 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 8,796 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
cd6a459ece5a08bd23ac75e022e08a981b4e98c4 | 5d09e3b32b0f7dee1147139e5e57822f33dc0f32 | /lib/authorship_simulate_citations.py | dfe00d94e2db5ca746145205494cf1700d1da662 | [] | no_license | scone-snu/pyflib2 | cb797f625100d280f6bd3b757795040ca892b1ed | bb2ad7d9974903ac8c3b01ac48b4d6ab72d2ac80 | refs/heads/master | 2020-03-31T17:37:54.216805 | 2011-05-06T04:43:31 | 2011-05-06T04:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | import os
import glob
import re
import networkx as nx
import itertools
import matplotlib.pyplot as plt
import pickle
from collections import defaultdict
from PlotFunctions import *
import random
from scipy.stats import gamma
import math
# Variables that can be modified
START_YEAR = 1997 # Year to start simulation from... | [
"jccccf@gmail.com"
] | jccccf@gmail.com |
72a48d03a7274c7f1ba3ddca5b8865827f62836e | 144df6ebbae1caf145c868579b335f579bf81357 | /test.py | 3986f037d12b93923af6b2accd4074cccbba40a2 | [] | no_license | xsnk/GreyHatPythonRead | f78645c00bb60e812bdefb5091971a2f94ccfa61 | 83cd36be8d5145be3b8f327f97619cb25110b774 | refs/heads/master | 2020-03-17T17:53:57.062965 | 2018-05-17T12:01:19 | 2018-05-17T12:01:19 | 133,806,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | import zdebug
debugger = zdebug.Debugger()
debugger.load("c:/Windows/System32/calc.exe")
| [
"noreply@github.com"
] | xsnk.noreply@github.com |
507f6b0403a78b43766a63432e623686cc5a0493 | 466ba928ab060cc6e9b84cf4f64f742cc6153eb2 | /checkForUpdates.py | f7c00929fceb0b51fc493ea4a83745b57f8259c2 | [] | no_license | Joshua1337/FreifunkNodeChecker | 16de6a35a4343357d357d193ecc843ba89482571 | 53b9a3ef6890ed58f26a35a6accea03597596124 | refs/heads/master | 2021-11-10T01:25:19.307961 | 2021-10-24T11:59:13 | 2021-10-24T11:59:13 | 80,371,054 | 0 | 0 | null | 2020-09-24T21:39:52 | 2017-01-29T20:38:06 | Python | UTF-8 | Python | false | false | 2,612 | py | # coding: utf-8
import argparse
import logging
import os
import json
import requests
from telegram.ext import Updater
from time import sleep
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
class Check():
def __init__(self, authToken, url... | [
"thecop@thecop.us"
] | thecop@thecop.us |
22e1df1c15e86bdfdede5035f91968705c0d6f0b | b9a5336cb031d74b80395a5f6482661330516fb7 | /reviews/migrations/0001_initial.py | d9211574aeae7e61c1eeaf6a36084bc56655bb00 | [] | no_license | OMDraz/BookrApp | 124863c0eeb7d381ac6e7aa117b953d3f7448bd5 | 0b202ddc8bb9635f503f4725ae1a2e8fdecf5091 | refs/heads/master | 2023-08-07T03:01:26.932390 | 2021-09-23T05:18:25 | 2021-09-23T05:18:25 | 394,129,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # Generated by Django 3.2.3 on 2021-08-09 02:43
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Publisher',
fields=[
('id', models.BigAutoF... | [
"omardraz94@gmail.com"
] | omardraz94@gmail.com |
12519564ac2077f1120fb5cbb0e9bfaf0c9762c4 | 0bb991864bb1c68eb41c40229b2a78adcbbf69c9 | /python/model_features/statistics.py | 5f73b2e6b61173784966955ab4a9f0dc70ecff90 | [] | no_license | kristianeschenburg/Parcellating-connectivity | ab78a62a11e549f027a177f57c15924ef6eafb9e | 19edaba4d923b1d283b182f21dca4f46a0fbd2f6 | refs/heads/master | 2020-03-22T13:37:16.801653 | 2018-07-29T18:33:47 | 2018-07-29T18:33:47 | 140,120,191 | 0 | 0 | null | 2018-07-07T22:16:40 | 2018-07-07T22:16:39 | null | UTF-8 | Python | false | false | 1,568 | py | import numpy as np
import time
def UpdateStats(stats, t0, curr_lp, max_lp, K, z, c, steps, gt_z, map_z, verbose):
"""
Update diagnostic statistics.
Parameters:
- - - - -
t0 : initial start time
curr_lp : current log-probability of map
max_lp : max log-probability
K : number of clusters
z : current map
... | [
"keschenb@uw.edu"
] | keschenb@uw.edu |
acdeccf893f67cfeddb6d3a93bcc2068e4d109c4 | 25d02ff4a1c5375321943b6830d9f9386010a76b | /relayer.py | 9eea4b27caadf47cfaa57449da44b676d06db116 | [
"MIT"
] | permissive | minddrive/image-relayer | a50219ef147238281799e6dc7e0bb62a35eaa09f | ff1d0cc39e93e44eae92b8fc1a1c73139b56d202 | refs/heads/main | 2023-04-29T13:48:25.969809 | 2021-05-21T05:42:51 | 2021-05-21T05:42:51 | 369,377,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,420 | py | #!/usr/bin/env python
import json
import logging
import re
import cloudscraper
import discord
import yaml
logger = logging.getLogger("relayer")
logger.setLevel(logging.DEBUG)
handler = logging.FileHandler(filename="relayer.log", encoding="utf-8", mode="w")
handler.setFormatter(logging.Formatter("%(asctime)s:%(level... | [
"elessar@numenor.org"
] | elessar@numenor.org |
0a1322cfc3522be936cc35d976692015418c04b7 | 78f69f8c44cdb6387bd5fc82919c3e3a7b19abee | /__init__.py | dd2ade445cf488090daac9395705d5804ce632f7 | [] | no_license | evanwike/grocery-list-skill | 63abe9adfe7f81aa7902e2d969a22fbf9e1b3d1b | 672109a0693f6a92738584a0b59a2110d71b4ce5 | refs/heads/master | 2020-05-05T09:42:18.283319 | 2019-04-08T04:26:42 | 2019-04-08T04:26:42 | 179,913,164 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | from mycroft import MycroftSkill, intent_file_handler
from mycroft.util.log import getLogger
import pymongo
LOGGER = getLogger(__name__)
URI = 'mongodb://root:password1@ds049446.mlab.com:49446/hackathon'
CLIENT = pymongo.MongoClient(URI)
DB = CLIENT.get_database()
USER = 'user'
lists = DB['lists']
class GroceryList(... | [
"sportsdude716@gmail.com"
] | sportsdude716@gmail.com |
f6bc950e15c4b64504ccaad6a8a45115c40cb4de | 447101726b535b2a12fb3c0d8336a8dd06f7dea3 | /modex/core.py | 8de5347336123cdb58e3910e439e818b1c38e5af | [] | no_license | weihaigang/CrackDict | 15503911cd73521151d5fc5a7aa2af075dbd3b3f | d752bd54cbc230e8c610a2f95beaff9247f2898a | refs/heads/master | 2023-07-31T19:01:46.000370 | 2021-09-19T00:17:13 | 2021-09-19T00:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,814 | py | # @Author: JogFeelingVi
# @Date: 2021-08-30 23:14:22
# @Last Modified by: By JogFeelingVi
# @Last Modified time: 2021-08-30 23:14:22
from . import rplan
from itertools import zip_longest, repeat, product
from functools import reduce
import re
class curls:
Archives = {
'var': 1.02,
}
Custom = []
... | [
"lifelse@outlook.com"
] | lifelse@outlook.com |
3160ede5e603262448964d8dc9e3a89b58592466 | 60d5ea4f007d49768d250ef394003f554003e4d0 | /python/Depth-first Search/111.Minimum Depth of Binary Tree.py | 28976c05b41b56e4880a2b5192eea9b5868c08e4 | [] | no_license | EvanJamesMG/Leetcode | dd7771beb119ea1250dbb3b147a09053298cd63b | fa638c7fda3802e9f4e0751a2c4c084edf09a441 | refs/heads/master | 2021-01-10T17:11:10.896393 | 2017-12-01T16:04:44 | 2017-12-01T16:04:44 | 46,968,756 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | # coding=utf-8
# Definition for singly-linked list.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
'''
解题思路:
递归
分几种情况考虑:
1,树为空,则为0。
2,根节点如果只存在左子... | [
"Evan123mg@gmail.com"
] | Evan123mg@gmail.com |
801a2a01933e03fb0f56781ece4a79654cc8788c | b72d0900bec98fcee6c725cef035c02ca29bbf1b | /Python/100Excersises/1 to 25/25/25.py | 38dc3ba7dc12908e54d10b12f5a442b5a1ccd3cd | [
"MIT"
] | permissive | sugamkarki/NAMI-Year-II-TERM-I-Group_Project | 68b8808c8607858a313e8b4d601d8d12c6edda2b | f0a9a5f219ccbec024eb5316361db3fca46e171c | refs/heads/master | 2023-06-28T19:07:19.330236 | 2021-07-24T03:05:42 | 2021-07-24T03:05:42 | 312,819,148 | 0 | 0 | MIT | 2021-07-24T12:45:06 | 2020-11-14T13:08:08 | Python | UTF-8 | Python | false | false | 163 | py | alphabet=[]
for letters in range(97,123):
alphabet.append(chr(letters))
d=dict(a=alphabet)
for item in d.values():
for alpha in item:
print(alpha)
| [
"sugamkarki7058@gmail.com"
] | sugamkarki7058@gmail.com |
d25e7326a9da02a7ac488bd3ef17368a45448185 | d6d4a1e4a4c33b7410fc63852a17ab2de089ef78 | /test2.py | 495b395916689f9f3f29750bfcfea5a50d9c2ee2 | [] | no_license | ankittiwari101/learning_git | 054ffcbf52f785a506a37d4aa49d3eb25951f8ee | 43a3166c98e46fbac9dd2c8dff7371d2aa2b392e | refs/heads/master | 2021-03-29T07:01:56.915364 | 2020-03-17T10:20:08 | 2020-03-17T10:20:08 | 247,928,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | print("Tiwari Again!!This is my second commit at a github repository.") | [
"noreply@github.com"
] | ankittiwari101.noreply@github.com |
9ef94e2e4d69efad94f09beea5a420f9acda3202 | c1654d09c1eccf17d105d31c62bbf4106feb89d8 | /resolution-mylar.py | 4d6222a94a7d894fdaa9fbff4e10052cca671b70 | [] | no_license | piti118/crystal-length-study-for-mu2e | 142be2f059299c9902706b50d375fda01e651ead | a0287d2676fef33c15298caf432b0d5b38443bd1 | refs/heads/master | 2016-09-11T09:12:07.118526 | 2012-05-14T05:26:27 | 2012-05-14T05:26:27 | 3,666,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,825 | py | # -*- coding: utf-8 -*-
# <nbformat>3</nbformat>
# <codecell>
from root_numpy import *
from dist_fit import *
from cithep import *
from h5py import *
sample='mylar'
# <codecell>
class Hitmap:
def __init__(self,numrow=21,numcol=21):
self.hmap = np.zeros([numrow,numcol])
self.numrow = numrow
... | [
"piti118@gmail.com"
] | piti118@gmail.com |
49d98b69895f2db5dd9fa22267d1e67e92e73d52 | 669196cb7444c699b9c477bd36d76082d534e08a | /tests/unit/test_user_email.py | c475eef807feb4dd45015fb7490c85ba2be6c329 | [
"MIT"
] | permissive | tilgovi/pyramid_fullauth | d51ad9fabca0ef380f6981c0f62e5c36d8484cba | 3de2f784e89c2e82104dbe36acbb85597e4fff31 | refs/heads/master | 2021-01-24T15:15:28.691347 | 2014-11-02T18:45:05 | 2014-11-02T18:45:05 | 26,466,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | """Test email related User methods."""
from pyramid.compat import text_type
from pyramid_fullauth.models import User
NEW_EMAIL = text_type('new@example.com')
def test_set_new_email():
"""
Test User.set_new_email method.
setting new email should result in setting new_email field,
and key used to acti... | [
"fizyk@fizyk.net.pl"
] | fizyk@fizyk.net.pl |
e913df03c7803afd5541a37caa8edf1ec5ee78b8 | 621b856c4f181128e7f7039a6f5508f3ffddc983 | /Peoggramms/salman_h_changed_loop.py | 0ecf8caeee7434c0260eddd5b3e3497d710b096b | [] | no_license | olesyaogorodnikova/Robot_kinematics | 31853f64266f15cce05b6cfc70427819975e7442 | cbc1284540fd7bf1c01f2ef36f319d1ac898590c | refs/heads/master | 2021-01-07T14:22:15.171320 | 2020-02-19T21:50:15 | 2020-02-19T21:50:15 | 241,723,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,959 | py | #!/usr/bin/env python
import rospy
import tf
from kuka_arm.srv import *
from trajectory_msgs.msg import JointTrajectory, JointTrajectoryPoint
from geometry_msgs.msg import Pose
from numpy import array, matrix, cos, sin, pi, arccos, arctan2, sqrt
from numpy.linalg import inv
import time
def get_Table():
# Define... | [
"ooleszja@gmail.com"
] | ooleszja@gmail.com |
75ed8c814760c96bc4cb333a81523c02f6fce8d5 | 52a4d282f6ecaf3e68d798798099d2286a9daa4f | /test_sa.py | 81104dd1d3c6c5b477f238e92d7d1b4e9c05347a | [
"MIT"
] | permissive | bkovitz/FARGish | f0d1c05f5caf9901f520c8665d35780502b67dcc | 3dbf99d44a6e43ae4d9bba32272e0d618ee4aa21 | refs/heads/master | 2023-07-10T15:20:57.479172 | 2023-06-25T19:06:33 | 2023-06-25T19:06:33 | 124,162,924 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,332 | py | # test_sa.py -- Test of spreading activation
import unittest
from pprint import pprint as pp
import inspect
from time import process_time
from dataclasses import dataclass
import operator
from operator import itemgetter
from heapq import nlargest
from typing import Union, List, Tuple, Dict, Set, FrozenSet, Iterable,... | [
"bkovitz@indiana.edu"
] | bkovitz@indiana.edu |
fc4e2f70fdb42770a7c8e6dd0beb93b61e367911 | 1c7ac6a675fa16e7c7d85b90a02eaddbadf80738 | /skulpt/python/binaire_alarme2.py | 6250021f1bdda748c16d8f42c4f4e05dd8be832c | [] | no_license | mistert14/mistert-skulpt | e19c432264fd532e90fdfcc06e6b5d1d9cac7936 | 7a5990e03466a1889922ad3c1e4b0e736cca569f | refs/heads/master | 2020-09-24T13:26:44.632719 | 2014-05-19T19:37:42 | 2014-05-19T19:37:42 | 40,827,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | import canvas, math, math2
canvas.clear_timers()
#variables generales
bits = {'A': 0, 'B': 0, 'C': 0 }
out = '0'
#fonction de calcul de la sortie
def process(val):
global bits, out
parser = math2.RpnMathParser(val, bits);
out = parser.get_result()
if str(out) == '0.0':
out = '0'
else:
out = '1'
#g... | [
"mrtseb@gmail.com"
] | mrtseb@gmail.com |
216cfa0a771df09a4201a43f6c87376c2b2194ba | ac31ab210a9d4688e0ba90872fe48a6c97886b9b | /ReLink.py | f13036d27d75a1e963928ea54802a1835895c68b | [] | no_license | springltd/link2_pi_demo01 | 647120ab2d5cd15189fd8e76f3a699829f4342f2 | 94865945fb0b54a66da3df08f1e604a050f70107 | refs/heads/master | 2022-10-22T12:21:31.301083 | 2020-06-16T09:43:02 | 2020-06-16T09:43:02 | 272,659,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,617 | py | #!/usr/bin/env python3
#Library imports
from tkinter import *
from tkinter import StringVar
import time
from functools import partial
class App:
# Class to manage ReLink PiHat
# ---------------------------------------
def __init__(self, master):
# Init function for class
# -----------------------
... | [
"andrew.gatt@springltd.co"
] | andrew.gatt@springltd.co |
9014134d43bb036fbffc60790f20a299ae4710ab | 5605d4637f78f6d41958029e692b3b33818c2081 | /src/database.py | 7d3c0212509dfb34325441a6a957736c69568b5e | [] | no_license | ssynn/C-S_chat_program | 0dcc9f922f6416339b45d3fc5e66fc6a03fad306 | f847e5fe192a96ad3337cf64be34e760409069bd | refs/heads/master | 2020-05-24T21:58:20.778252 | 2019-06-16T09:20:09 | 2019-06-16T09:20:09 | 187,487,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,279 | py | import sqlite3
# 登录
def login(user_message: dict) -> bool:
'''
传入以下格式的字典
user_message{
'ID': str,
'PASSWORD': str
}
'''
ans = None
try:
conn = sqlite3.connect('./data/data.db')
cursor = conn.cursor()
cursor.execute('''
SELECT ID
FROM ... | [
"824063458@qq.com"
] | 824063458@qq.com |
00404615272f8b216b6112c31abf170d3dbb3ac4 | af200bff16d3b176c0cab30d0d71666f9511c3cd | /__init__.py | 2b7440ba08e59b803ecb9580382b5e9f80ef1c0e | [] | no_license | NKLASS/Russian-Grammar-Analyser | af222c307730bed8c97b55dd4672a6443bdead47 | e1d4ae8ceb427df412d93ca09a5e63651e4a72bc | refs/heads/master | 2023-03-17T21:54:38.729881 | 2017-03-29T14:20:59 | 2017-03-29T14:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # -*- coding: UTF-8 -*-
import sys
import json
reload(sys)
from flask import Flask, jsonify,request,render_template
from translator import analyseGrammar
sys.setdefaultencoding('utf-8')
app = Flask(__name__)
@app.route('/')
def index():
return render_template('computer.html')
@app.route('/_add_numbers')
def... | [
"bjamurray@gmail.com"
] | bjamurray@gmail.com |
790830077d8069ae93383389d8841eccf07aeda2 | bc0f99dba2233f02e1f1b59711164bc2eb47e072 | /LOBDeepPP/LOBDeepPP_model/__LOB_models_output2D.py | 8679322c5bbb76988d2073f925c8c23fa9be2086 | [
"MIT"
] | permissive | mariussterling/LOBDeepPP_code | 29e483b70ee81f4302ea977c47a25d8ec743b2b9 | 010782f8db9a745940753f49d953361c32ee1190 | refs/heads/master | 2022-10-10T15:45:40.770829 | 2020-06-09T22:48:27 | 2020-06-09T22:48:27 | 255,342,824 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | from keras import layers, models
from .__activations import PReLU2
def output_model_askbid(inp, params, output_shape, interpretable, **kwargs):
if interpretable:
out = inp
else:
out_inp = layers.InputLayer(
input_shape=inp.get_shape().as_list()[1:],
name='out_inp')
... | [
"marius.sterling@hu-berlin.de"
] | marius.sterling@hu-berlin.de |
67143a8e1eb81c79e74cb83a07a1483096d620ba | 4ffb9e383f7c2759bd39a7e1772ecb437e7b4082 | /cursosweb/bin/pip3.7 | 4fefeae8196f856e476355f5b36066cfd9842145 | [] | no_license | meridiaz/x-serv-15.8-cms-users-put | 62fe3a9cd418ced2c67b9b66b1d525107831579e | 67ce09cc2f04b76a5d99149e71f833636c94b6d4 | refs/heads/master | 2022-12-11T18:49:04.635968 | 2020-04-18T17:32:49 | 2020-04-18T17:32:49 | 295,018,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | 7 | #!/home/meri/Escritorio/sat/gitlab/try2git/x-serv-15.6-django-cms-put/cursosweb/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mdiaz"
] | mdiaz |
8440e8250bda5ae92abd0501c1219d37a8251790 | d713770971a0d9e4a77921fa85fd03daf339dd84 | /business_hardcode/build_project/build_project.py | b34832268d919212f956754af2974f20ed2d4dea | [
"Apache-2.0"
] | permissive | laashub/laas-soa | cf9c0403cb25eedc74326752aaa776f501fac9d0 | 63a5e84b646bf1d857e97ddbbc7c1c487a9dc9e4 | refs/heads/master | 2023-01-07T17:44:24.431030 | 2020-11-12T13:35:31 | 2020-11-12T13:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,528 | py | """
构建项目
需要依赖一些数据
构建服务器
源码仓库信息
项目配置信息
"""
import datetime
import json
import os
import time
import traceback
from rest.operate.executor import context
local_executor_root_path = os.path.join(os.getcwd(), "business_hardcode/build_project")
remote_executor_root_path = "/data/tristan/1" # 远程执行器根目录
# 准备本地目录... | [
"tanshilinmail@gmail.com"
] | tanshilinmail@gmail.com |
05743f19fd6a54dc73ab2663b6a43d967e3953e5 | caf39133030e9e9d9240769fbfe72287009c6b51 | /supervised_learning/0x00-binary_classification/11-neural_network.py | 21048d014bf2a955602c5ea89d0fdecd77c0e585 | [] | no_license | sazad44/holbertonschool-machine_learning | d08facbc24582ebcedf9a8607c82b18909fe7867 | b92e89b980a8f1360a24f4ed5654a2ab0dfac679 | refs/heads/master | 2022-11-30T22:32:21.264942 | 2020-08-12T05:25:06 | 2020-08-12T05:25:06 | 280,286,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python3
"""Class definitions for neural network with 1 hidden layer"""
import numpy as np
class NeuralNetwork():
"""Neural network class definition"""
def __init__(self, nx, nodes):
"""initialization func for class"""
if not isinstance(nx, int):
raise TypeError("nx m... | [
"36613205+sazad44@users.noreply.github.com"
] | 36613205+sazad44@users.noreply.github.com |
99a4ce09a2f6f8b5ae00d0f27e9e5310227a043c | 5290b41db07900b9ec0e818976480918031766eb | /kb_site/manage.py | 99088931b2f798a59a85ee09abb9039ff33deba0 | [] | no_license | aleluk/KnowledgeBase | 8db061bf6b0531f2414e9d8dde8c2482d20e799c | e38c82dfa8269443a24d12f31096b82052c9c026 | refs/heads/master | 2023-04-11T07:48:00.266479 | 2021-04-18T12:35:59 | 2021-04-18T12:35:59 | 352,182,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'kb_site_main.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"64218199+aleluk@users.noreply.github.com"
] | 64218199+aleluk@users.noreply.github.com |
775bc8ad2440dec3fa0750bcca10332e6a975a4f | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/16a4c177de3f63055c5f0252c3f8ba202175fb41-<start_merge>-bug.py | 488cafe673b3ea8201fc11c222ab29d021e87ebf | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | def start_merge(self, project_id, previous_group_ids, new_group_id):
if (not previous_group_ids):
return
state = {
'transaction_id': uuid4().hex,
'project_id': project_id,
'previous_group_ids': previous_group_ids,
'new_group_id': new_group_id,
'datetime': datetime... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
476aa2a98daed909cdc94030738f19b05ded46bf | 454fc28a4db23ff10e0642bc9c67e01d95230d42 | /functions.py | 849d5ae0f362aa9dfddb6a2964e55bfc10b6502a | [] | no_license | SarsenovZ2z/fontrec_dataset | 9d739418109b98a348771c9a63dd5343f3ba1493 | 94f948bc3f942de478c1244cd1f963fa1cea66b1 | refs/heads/master | 2020-05-18T20:42:32.492312 | 2019-05-03T00:42:54 | 2019-05-03T00:42:54 | 184,628,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import re
import random
import os
def getFonts(path):
files = []
# r=root, d=directories, f = files
for r, d, f in os.walk(path):
for file in f:
if '.ttf' in file:
files.append({'path': os.path.join(r, file), 'name': file.replace('.ttf', '')})
return files
def getR... | [
"nurik9293709@gmail.com"
] | nurik9293709@gmail.com |
d86ee1b4566a0e1a14a1ae48450497bf4829a0b9 | bc06161fc2a7ac28931042a9e503a276c003870c | /mysite/vacancies/management/commands/_utils.py | f64f9e7411333ccda3e65785f282f3ba08111b11 | [] | no_license | ilineserg/django_indeed | ac324ee886509b10b119f528ab0c1c0ed809ac25 | 911380593b0068bbe6fd7ac33d8086f180557f4d | refs/heads/master | 2021-02-10T03:31:56.939497 | 2020-04-02T08:34:46 | 2020-04-02T08:34:46 | 244,348,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import hashlib
import urllib.parse as url_parser
from enum import Enum
class Colors(Enum):
"""
Available colors.
"""
RED = '\x1b[91m'
GREEN = '\x1b[32m'
END = '\x1b[0m'
def colorize(text: str, color: Colors) -> str:
"""
Colorizing a text string.
"""
return f"{color.value}{tex... | [
"ilineserg@gmail.com"
] | ilineserg@gmail.com |
47ecc56f687300df5c2ad1bba94ec239449193de | d81c04e592aec9d9bb8ad48a7fe3c8d446852f17 | /StateMachine.py | 84fb8efa974ac75cbd20244b2befa59a77073f14 | [] | no_license | Swia/movingrepo | e5e141d49dbde243572d0fe0211c131d18812e6d | 18aeee5b3adc64ad151c70bb40512c96e2f1316f | refs/heads/main | 2023-05-06T12:59:06.456699 | 2021-05-25T14:30:13 | 2021-05-25T14:30:13 | 370,630,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # -*- coding: utf-8 -*-
from enum import Enum
class States(Enum):
"""
A simple state machine to easier navigation through @decorator functions
in alarms_bot.py
"""
STATE_START = 0
STATE_NEWALARM = 1
STATE_SETTING_TIMEZONE_SEPARATE = 2
STATE_SETTING_TIMEZONE_FOR_ALARM = 3
STATE_SETT... | [
"noreply@github.com"
] | Swia.noreply@github.com |
c1e9f92e53090868a41830a7785c711adfab01bc | d9f63d87a9f7b19d5ee60c5f38e9007687df4078 | /面向对象-类和对象4.py | 6b8af3e544ed5021e3843f440b94064de10669be | [] | no_license | zhouf1234/untitled3 | 4b156046f0fea2c773785cba0486621625004786 | 238c5aaef121f3d716c96290e7e417a9a4a03b4e | refs/heads/master | 2020-05-05T02:36:07.396459 | 2019-04-05T08:27:31 | 2019-04-05T08:27:31 | 179,643,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | class Person:
school='阳光幼儿园'
def __init__(self):
self.name='丹丹'
p1=Person()
# 使用对象的方法(属性)时,先看有无此属性,如果没有再看类有无此属性
print(p1.school) #阳光幼儿园
# 给对象改school属性后
Person.school='夏天小学'
print(p1.school) #夏天小学
print()
p2=Person()
print(p2.school) #夏天小学 | [
"="
] | = |
0d6f563bf487e50143491c9294e56c9e298e24ec | a7596165a29e5186bc6c4718e3b6e835939b105d | /apps/pig/src/pig/views.py | 47823c4bb576f890292573687f7d79887416ac0b | [
"Apache-2.0"
] | permissive | lockhart39/HueQualityAndIngestionApp | f0c778665f0fbe699ec30e0df5e9f3ed8a9c3384 | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | refs/heads/master | 2021-08-20T00:31:29.481333 | 2017-11-27T19:22:16 | 2017-11-27T19:22:16 | 112,237,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,542 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"cloudera@quickstart.cloudera"
] | cloudera@quickstart.cloudera |
5148b36fb7b804d585edaef072685b6c32aa6ce1 | 63e8a1c42aad04fa471d5dc92ee2308b511bf33c | /hotel/hotel/settings.py | a1964374a2b5d3a9b27a53f7058b5804bdf5645e | [] | no_license | sampathkumar0511/new_proj | 7a5dfcaf0aaa7f27b50a4d1d11012587d2818221 | 67944367d35da3639e35786d3d9842d97af2c3dd | refs/heads/main | 2023-01-14T12:37:15.549711 | 2020-11-21T16:47:10 | 2020-11-21T16:47:10 | 312,472,762 | 0 | 0 | null | 2020-11-21T16:47:11 | 2020-11-13T04:26:55 | Python | UTF-8 | Python | false | false | 3,073 | py | """
Django settings for hotel 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 i... | [
"sampath@sampaths-MacBook-Pro.local"
] | sampath@sampaths-MacBook-Pro.local |
b7b344929e53f398c8535a2cacd7a38cd91a01ce | 4df1b2f1b5085e73223800ada334c8603b8be87b | /getdata.py | c0bc31df5a7f8447c7897fb0169999f1d245441a | [] | no_license | srejun/Project_Roboduct | 1c34355951cf0670ce513b332a70c8785f6ed154 | b656797d86773e84c0791a57751f8db973ffa5d8 | refs/heads/master | 2022-06-28T10:36:12.636777 | 2020-05-06T11:49:38 | 2020-05-06T11:49:38 | 261,741,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,183 | py | #Libraries
from __future__ import print_function
import RPi.GPIO as GPIO
import time
import xbox
file = open("cleaningdata.txt","w")
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
#set GPIO Pins
GPIO_TRIGGERleft = 12
GPIO_ECHOleft = 16
GPIO_TRIGGERrigth = 24
GPIO_ECHOrigth = 26
#set GPIO direction (IN / OUT)
G... | [
"noreply@github.com"
] | srejun.noreply@github.com |
940976f32b9a4bc97574ca4635af3b4154fe20cd | 2e8f6b40cdd1c8d89b5345ab00ea467310eeb90b | /generate/select_tables.py | 12f4600132a6e33c9b1bd0cc843c417db2b24a78 | [
"MIT"
] | permissive | samirgadkari/companies | d028deb88ee6ab46391d5c6d52c455a2846e87cd | f683a3d077ec3d9b7241e9c91e6393b290f80b2e | refs/heads/master | 2021-06-25T01:59:22.878337 | 2021-03-10T02:32:32 | 2021-03-10T02:32:32 | 212,151,854 | 0 | 0 | MIT | 2021-01-14T20:47:04 | 2019-10-01T17:00:49 | Jupyter Notebook | UTF-8 | Python | false | false | 16,986 | py | import os
from utils.file import copy_file
from utils.environ import html_samples_dir
selected_tables = ['file:///Volumes/datadrive/tables-extracted_split-tables/0000036146_TRUSTMARK_CORP/10-k/2018-01-01_2018-12-31_10-K/107.table-extracted',
'file:///Volumes/datadrive/tables-extracted_split-tables/0... | [
"samir.gadkari@gmail.com"
] | samir.gadkari@gmail.com |
ca295de07a553fcbc33476193a590c0edf04cefc | 64310ffff77de9878f4a51e8e1c74ae6e796a79c | /external/gnuradio/gfsk_rx.py | af6cdc083decc97bba9b1aee10931101a178d2e3 | [] | no_license | learning-lte/gnuradio-modem-gmsk | f9849f35dadc95f145d92a67a28d42fd6939093d | dab60f749f39466ca8708a693b41fdbee4603d7b | refs/heads/master | 2022-01-19T21:02:59.480389 | 2019-04-29T18:08:20 | 2019-04-29T18:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,621 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: GFSK Receiver
# GNU Radio version: 3.7.13.5
##################################################
if __name__ == '__main__':
import ctypes
import sys
if sys.platform.startsw... | [
"mario.baldini@gmail.com"
] | mario.baldini@gmail.com |
e1a8258c295bb435d8d056b45f9adbadb1d5fb35 | 6d2307761303169e6527e10d4ee3b8692c84e9b7 | /Code/Algorithm Testing/NB.py | 82463836cc9517bc6e6411e58f5807ed2a177bf8 | [] | no_license | bpblakely/Email-Spam-Classification-Project | e783bed5a6b5b4bb6ccf8c9be092cdb9e163207f | d657bfbf475edb5731e78a4122fb7aaeee9e6ab5 | refs/heads/master | 2020-10-02T04:39:27.867598 | 2019-12-12T22:42:19 | 2019-12-12T22:42:19 | 227,703,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 31 10:29:48 2019
@author: Brian
"""
import numpy as np
from sklearn.naive_bayes import MultinomialNB,GaussianNB,ComplementNB
from sklearn.feature_selection import SelectKBest
from sklearn.feature_selection import chi2
from sklearn.svm import SVC
from sklearn.ne... | [
"noreply@github.com"
] | bpblakely.noreply@github.com |
187bd2a6ff0bfea7ed5629278eea007adedb4d97 | 54d3a1558a4bd38888d4d51f1ae2d2699965087c | /exa.py | 59f998f63b4e4f8e21e59e08b9035fd514853656 | [] | no_license | A8IK/Python-2 | a86843c6ccfe23d42faebb020307351a108075bd | 538aee64bac73110cd0a8ac74747c9d2fa485149 | refs/heads/main | 2023-01-21T12:42:51.226144 | 2020-12-04T18:14:32 | 2020-12-04T18:14:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | def div(a,b):
print(a/b)
div(4,2)
| [
"noreply@github.com"
] | A8IK.noreply@github.com |
8af064ef0d7490610f6c59dfd4002054ce1eda91 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_27094.py | ca9e4b98345e5ed3db4156dcb2812fcc628ce499 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | # Save full text of a tweet with tweepy
retweeted_status
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
946ffb36b8439369b9bb56e4d75d22cf7dc120d2 | 317f0a8f92043a04a1ec1986603c77c5844d7314 | /Default/install_package_control.py | 2d10cd1b517c4435d3e33e2343bb96ede23c25af | [
"LicenseRef-scancode-boost-original"
] | permissive | sharunkumar/Packages | f658c0a1bbe505a697fc62cbd580950ef388a6bc | bae297c3f03921c8aa2e0adb0ce2a40ee8d33330 | refs/heads/master | 2020-04-06T09:51:16.493005 | 2019-05-09T09:39:20 | 2019-05-09T09:39:20 | 157,359,405 | 0 | 0 | NOASSERTION | 2018-11-13T10:06:30 | 2018-11-13T10:06:30 | null | UTF-8 | Python | false | false | 5,524 | py | import base64
import binascii
import os
import threading
from urllib.error import URLError
from urllib.request import build_opener, install_opener, ProxyHandler, urlopen
import sublime
import sublime_api
import sublime_plugin
class InstallPackageControlCommand(sublime_plugin.ApplicationCommand):
error_prefix = ... | [
"sharunkumar.ks@gofrugal.com"
] | sharunkumar.ks@gofrugal.com |
bf0840495fc063b35d948fe9b69befd937bd7de7 | d60acaac9e460c5693efe61449667b3c399c53c8 | /algebra/linear/fishercriterion.py | 1c1c14ab2e5666bf05a05221df9b5c7bd15195f6 | [] | no_license | HussainAther/mathematics | 53ea7fb2470c88d674faa924405786ba3b860705 | 6849cc891bbb9ac69cb20dfb13fe6bb5bd77d8c5 | refs/heads/master | 2021-07-22T00:07:53.940786 | 2020-05-07T03:11:17 | 2020-05-07T03:11:17 | 157,749,226 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import numpy as np
"""
We can use dimensionality reduction for linear classification models.
One-dimensional input vector x projected down to one dimension using
y = w^T x
We consider a two-class problem with N1 points of class C1 and N2 points of class C2
so the mean vectors of the two classes aare given by:
m1 =... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
c1b71ce4bf116be38058532866d68049bfa605b1 | 88ea6ae5a8f97e3771490583d8acecdbe2877fd8 | /zips/plugin.video.vistatv-ini-maker/main.py | 773a4185cc39459dd2f2a721e93b53361a46dfec | [] | no_license | staycanuca/PersonalDataVistaTV | 26497a29e6f8b86592609e7e950d6156aadf881c | 4844edbfd4ecfc1d48e31432c39b9ab1b3b1a222 | refs/heads/master | 2021-01-25T14:46:25.763952 | 2018-03-03T10:48:06 | 2018-03-03T10:48:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,546 | py | from xbmcswift2 import Plugin
from xbmcswift2 import actions
import xbmc,xbmcaddon,xbmcvfs,xbmcgui
import re
from rpc import RPC
import requests
import random
import sqlite3
from datetime import datetime,timedelta
import time
#import urllib
import HTMLParser
import xbmcplugin
#import xml.etree.ElementTree as ET
#import... | [
"biglad@mgawow.co.uk"
] | biglad@mgawow.co.uk |
5df953e7136216e7adfa597079d091686b4fa538 | deb97b21457bc360563e09c7bbba235cdd915548 | /gitkit/commands/del_merged.py | de55050ed183a4ab19f91ae4bcc81325227a18e2 | [
"MIT"
] | permissive | akx/git-kit | e381ae5516a6f36f39d72af00e93aa5d4f0e985f | 8084d99c6a113aad56764b0907d157c6957a3977 | refs/heads/master | 2023-07-19T20:16:27.358018 | 2023-07-18T07:49:41 | 2023-07-18T07:49:41 | 22,340,212 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import click
from gitkit.conf import sacred_branches
from gitkit.util.refs import get_main_branch
from gitkit.util.shell import get_lines, run
@click.command()
@click.argument("ref", required=False, default=None)
def del_merged(ref):
"""
Delete merged branches.
"""
if not ref:
ref = get_main_... | [
"akx@iki.fi"
] | akx@iki.fi |
c703a262839b247143130d0cf69dd4626cb5d5ff | a63590f247d914b6993f4e72a5c27a439344d12a | /env/lib/python3.7/io.py | 062f32ae1bab0a72f1d55ace8c1184b6d81bdb8e | [] | no_license | wgcv/Social-Media-Analyze-Election-Guayaquil | e6c65e68e6f54a11aadad9d1765568521df9a20e | 784e6e4c94552307fefdf85367bb6a793ae878c3 | refs/heads/master | 2020-05-09T20:33:58.585077 | 2019-05-11T16:46:43 | 2019-05-11T16:46:43 | 181,410,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | /Users/wgcv/anaconda3/lib/python3.7/io.py | [
"gstavocevallos@gmail.com"
] | gstavocevallos@gmail.com |
e1e86389d66b93dd4822b7ba5af7fe578432b75a | 1662e063d62bddb3f3e63204f66f8d7685d59d9a | /blog/views.py | 49d6f7ad68dd59e72576de8a887ecc140b0bea0c | [] | no_license | danielmjales/my-first-blog | b2f9ae9bca676d367cc015765e6653ee0a64eabf | 66bd359926b0a38dcc06e4b4c4f1caf815382b3f | refs/heads/master | 2020-04-17T11:40:04.905284 | 2019-01-20T12:37:02 | 2019-01-20T12:37:02 | 166,549,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .models import Post
from .forms import PostForm
from rest_framework import viewsets
from .serializers import PostModelSerializer
def post_list(request):
posts = Post.objects.all().order_by('title')
return... | [
"danielmjales@bct.ect.ufrn.br"
] | danielmjales@bct.ect.ufrn.br |
562d6b667658cc8ca7127a940db800debd92f225 | eccc9f30b406903761c85fa8edf239b809805cf0 | /listings/migrations/0001_initial.py | 5c2e992fd3779b68d2c904bb4d8a262cd3107f4f | [] | no_license | InnaAndreeva/real_estate_django | 40f9510155476f7e4ea135f520112539f2845f89 | 90f9414d76c901c73c412335ebca39610040466a | refs/heads/main | 2023-01-14T05:51:47.931878 | 2020-11-24T10:32:05 | 2020-11-24T10:32:05 | 315,594,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | # Generated by Django 2.1.7 on 2019-03-25 18:38
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('realtors', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"innaandreeva17yo@gmail.com"
] | innaandreeva17yo@gmail.com |
af54235f1808ded628afe0b1d54a6be553ceaa24 | 91e57f5ef0a4477e12a946dc7c9c66ad2ced0778 | /baekjoon_py/14889.py | c6a840877bf2e2890dc01538a4278279e1abb982 | [] | no_license | popcon9424/algorithm | 85b50de51cf6d61dfa8edfcc508e5c7c333eb82b | 5f9c685f4f684ea398758ab1f71f02e0bf1bac03 | refs/heads/master | 2020-05-28T03:08:24.286215 | 2019-11-28T08:01:26 | 2019-11-28T08:01:26 | 188,863,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | import sys
from itertools import combinations
N = int(sys.stdin.readline())
board = [ list(map(int, sys.stdin.readline().split())) for _ in range(N) ]
minimum = 0
for bd in board:
minimum += sum(bd)
combs = combinations(list(range(N)), N//2)
for com in combs:
firstSum, secondSum = 0, 0
smallcombs = combina... | [
"gusgh9424@naver.com"
] | gusgh9424@naver.com |
1b29e17738ce8017bc364637474cffdf18602a34 | 2ad64e7398057a09c2a5b8543199f3781c515e45 | /Pilha.py | 1e39a66b1b69ab75517b19e2d8a114afc785b3a4 | [] | no_license | edinhograno/provadepython | e56281657d0b27d0ecf327ab5befde12323a9075 | 55ab15c451a760dbfef0afa561b1bdea5c66186d | refs/heads/master | 2023-06-25T20:08:19.564672 | 2021-07-07T13:43:11 | 2021-07-07T13:43:11 | 383,813,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from Livros import Livro
class Pilha:
def __init__(self):
self.top = None
self._size = 0
def adiciona(self, id, nome, autor):
node = Livro(id, nome, autor)
node.next = self.top
self.top = node
self._size = self._size + 1
def remove(self):
if self._s... | [
"granomotorista@gmail.com"
] | granomotorista@gmail.com |
e19d83d920cbf214a0559c2f0bb610c90b9d69ee | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/1914.py | 20d7b72d1b8a35128812032e9655e83a53e17756 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | f = open("A-large.in","r")
t = int (f.readline())
ent = []
def check(ent):
for i in range(0,4):
if ('.' not in ent[i])and ('O' not in ent[i]):
return 0
if ('.' not in ent[i])and ('X' not in ent[i]):
return 1
for i in range(0,4):
a = []
f... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
b87d3f64e713ba53fb5b94de3507f74d8a97ea0b | 5c533e2cf1f2fa87e55253cdbfc6cc63fb2d1982 | /python/quantumhall/cyclotron.py | 108c267d7ee00673328a312228abdcb7f535d40f | [] | no_license | philzook58/python | 940c24088968f0d5c655e2344dfa084deaefe7c6 | 6d43db5165c9bcb17e8348a650710c5f603e6a96 | refs/heads/master | 2020-05-25T15:42:55.428149 | 2018-05-14T03:33:29 | 2018-05-14T03:33:29 | 69,040,196 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 993 | py |
#A suggesiton for the classical fractional hall effect
#Is a mean field organiztion of the cycltron phases, such that they synchronize.
#Leading to an effective time and angle dependant
# self consistantly dz/dt2 = i w dz/dt + P
# where E is a vortex configuration by conjecture. P = f(|z|)z^n
# and also has angular t... | [
"philip@FartMachine7.local"
] | philip@FartMachine7.local |
bb9a53589955ef9aa479dbd294e34706c2932991 | 1ff34305a38b92eb33983ec90f29c67eac731f31 | /next level platform.py | 63a34dbb60b17f2a65176d70adbc3e5e620c2c64 | [] | no_license | jerhieb/pygame | 3e4e78fd3a9f1bfdda52404c4994025249e0c0b0 | 81d737d82d0562389cab87eb80f5913806082080 | refs/heads/master | 2020-08-04T16:56:53.348022 | 2019-10-02T02:06:38 | 2019-10-02T02:06:38 | 212,210,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,741 | py | import pygame
pygame.init()
display_width = 800
display_height = 600
surface = pygame.display.set_mode((display_width, display_height))
running1 = pygame.image.load('Running1.png')
running2 = pygame.image.load('Running2.png')
standing = pygame.image.load('playerstanding.png')
door = pygame.image.load('Door.png')
key = ... | [
"noreply@github.com"
] | jerhieb.noreply@github.com |
60d4e232d5fa663fa88d5d6da7e0953144542f33 | 9ef0f266173887eafd5c797d13a6538733b39002 | /trimesh/path/entities.py | de2166781a4699322e91ad3e70b13e8fccd4f1c4 | [
"MIT"
] | permissive | MiaoLi/trimesh | a850e3a922e43ce6500085eeaf16df8404ad0f17 | 8f6e537151d914d23180a1c1152d849c41d2c1fa | refs/heads/master | 2021-01-14T12:36:02.831270 | 2015-10-17T01:36:33 | 2015-10-17T01:36:33 | 44,636,986 | 2 | 0 | null | 2015-10-20T21:52:11 | 2015-10-20T21:52:10 | null | UTF-8 | Python | false | false | 5,072 | py | '''
entities.py: basic geometric primitives
Design intent: only store references to vertex indices and pass the vertex
array back to functions that require it.
This keeps all vertices in one external list.
'''
import numpy as np
from .arc import discretize_arc, arc_c... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
c34cf6fe9e2f299d9e4c23ed305ee16c98656660 | 20257efe43389be6da440cf0ae1d28d203cc49c0 | /label/label_V1/srcs/photos.py | 514f826c196a235e8fd79e8737b31042153db91e | [] | no_license | Sebds/Patate | 26a7b8590edffe7a08dae8696d949ab8c5cb36da | 7676189d6051a4530bd47392639e4169217b61c5 | refs/heads/master | 2020-03-26T21:33:29.513474 | 2018-08-19T17:33:00 | 2018-08-19T17:33:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,561 | py | import os
import time
import srcs.color as c
from tkinter import *
from PIL import ImageTk, Image
class Photos(object):
def __init__(self, photos, lab_photos, trash='trash/', auto_next=False, width=800, height=600):
self.photos_dir = photos
self.lab_photos_dir = lab_photos
self.trash_dir = ... | [
"tnicolas@student.42.fr"
] | tnicolas@student.42.fr |
4fd29bedd1166b6c40908bcbd80ecf7dd8f39329 | 8a67943c7dfdf9c89a140d1a4c5aabc63d1b7263 | /train/train_transfer.py | 300ccb9c01c4c5b326954a52bac63326c93ccd29 | [
"MIT"
] | permissive | huynhtuan17ti/UnsupervisedLearning-JigsawPuzzle | c37782050b61a60695681a195dd5f38b36803976 | 1aafade4b6f169cef8815f90c27ec485bf64ca7d | refs/heads/main | 2023-04-30T07:46:43.300200 | 2021-05-16T13:08:52 | 2021-05-16T13:08:52 | 366,249,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | import sys
sys.path.insert(1, '../UnsupervisedLearning-JigsawPuzzle')
import torch
import torch.nn as nn
import torchvision
import os
import cv2
from torch.autograd import Variable
from dataset_factory.data_loader import AnimalDataset
from dataset_factory.data_utils import get_all_imgs
from models.AlexNet import Alex... | [
"huynhminhtuan6429@gmail.com"
] | huynhminhtuan6429@gmail.com |
9ef08444444fb5f68dc415a3902027135ded3355 | 7fa478e503293dad2b12ffc5a7648e5ead2cf3df | /outliers/enron_outliers.py | ffd44aaaccb50fdc57f9afed72de4250f8092578 | [] | no_license | bluewaitor/ud120 | e81457fec36b8d1841bbecb91fde4e893d4df37b | b120ca580443d92721f9a46955b0f42a01b15e66 | refs/heads/master | 2021-08-28T23:33:16.267964 | 2017-12-13T08:37:13 | 2017-12-13T08:37:13 | 114,091,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | #!/usr/bin/python
import pickle
import sys
import matplotlib.pyplot
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
### read in data dictionary, convert to numpy array
data_dict = pickle.load( open("../final_project/final_project_dataset.pkl", "r") )
features = ["salary", "b... | [
"405622394@qq.com"
] | 405622394@qq.com |
3d614af7145d14a806ab6a25d4ba583b74ca5e28 | b7fd24b41333575264a18f4631a0054b8eecea40 | /schema/zst_alarm.py | 7208762ef2097495930ac7fb6ba35582680e3203 | [] | no_license | zhouwanchun/zst_online_server | 5d430d4fe928cb30fed0060f12839eb9519890ca | 955f7ad62f020128c40a3f0ca14848034a3e7bbd | refs/heads/master | 2023-03-17T21:50:35.792788 | 2021-08-18T14:06:54 | 2021-08-18T14:06:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | import json
import logging
import time
import requests
# Get an instance of a logger
logger = logging.getLogger(__name__)
class WexinAlarm:
def __init__(self):
self.token = ""
self.expired = int(time.time())
def refresh_token(self):
now = int(time.time())
if now < self.expir... | [
"text.zwb@gmail.com"
] | text.zwb@gmail.com |
76732c90be1e6c89d923ed2aabebc32359ae7817 | b73b77dbbd6b4b2c216c1c1e08e5d92c734e545c | /hotel/migrations/0102_auto_20200414_1402.py | 4c95c54d31333b48f288d476d6df915d58142931 | [] | no_license | aadarshachapagain/hotel_booking | 0cf248b78a03277a5208aecb1a72aa1282319ead | 58503c57d2fd6d07fdbe6b7eb113954a0282dc3d | refs/heads/main | 2023-08-27T01:53:21.176194 | 2021-10-01T03:13:42 | 2021-10-01T03:13:42 | 412,294,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 2.1.5 on 2020-04-14 08:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hotel', '0101_bedtype_status'),
]
operations = [
migrations.AlterField(
model_name='bedtype',
name='description',
... | [
"aadarshachapagain@gmail.com"
] | aadarshachapagain@gmail.com |
acbeb910b65258b18b71182806b2cc75e84ffa03 | 3b1efdd0aacc98738f3b8b9ee09c6ff59cccc14e | /ietf/person/factories.py | e076b4ef72e4bec53e2bc6a55c5798054d06ced0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unofficial-mirror/ietfdb | 15beb6bf17b1d4abb257ee656ac6b7488339d331 | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | refs/heads/master | 2020-08-06T17:24:13.966746 | 2019-10-04T20:54:05 | 2019-10-04T20:54:05 | 213,088,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,456 | py | # Copyright The IETF Trust 2015-2019, All Rights Reserved
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import factory
import faker
import faker.config
import os
import random
import shutil
from unidecode import unidecode
from django.conf import settings
from dja... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
0d307cf1b2d2df910db56e7f5bfb1b8f8f5ab2a4 | 288ccb79d6b73572d6d82366031813a3a7976eb5 | /venv/lib/python3.6/site-packages/secretstorage/util.py | 60bafca0f46b04c7a1d59de295c9b98aaa186a15 | [
"MIT"
] | permissive | abualrubbaraa/Baraa-Validator | d9182767b696270dbcc6f071c12574e470ed0f5d | bff356f4e35ea7de66de799e7f063c383e298d1f | refs/heads/master | 2022-11-29T11:19:30.624281 | 2020-08-18T20:37:22 | 2020-08-18T20:37:22 | 288,558,878 | 0 | 1 | MIT | 2022-11-28T19:57:51 | 2020-08-18T20:34:28 | Python | UTF-8 | Python | false | false | 6,213 | py | # SecretStorage module for Python
# Access passwords using the SecretService DBus API
# Author: Dmitry Shachnev, 2013-2018
# License: 3-clause BSD, see LICENSE file
"""This module provides some utility functions, but these shouldn't
normally be used by external applications."""
import os
from typing import Any, List,... | [
"baraaabualrub1998@gmail.com"
] | baraaabualrub1998@gmail.com |
e08349ddfbec65c303385ec355d6356a79d8056f | f9ca6da37554c16211eae83d280765205d98a72d | /gesture_recognizer/picture_cropper.py | e8a989109264ea1d288cc96b69918eec6dbe2f3e | [] | no_license | kgalloway2/VSC-Code | 03f8955f0c6b630ad97dd1d42ca83af64317e6f8 | 7c3d321de7a4880a9c92f57c153cd23a154390f6 | refs/heads/master | 2023-07-09T12:20:02.147818 | 2021-08-09T13:50:06 | 2021-08-09T13:50:06 | 291,090,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from PIL import Image
# 640x480
i = 0
while i <= 105:
img=Image.open("C:/Users/kgtrm/Documents/VSC Code/gesture_recognizer/screenshots/test_hands/test_hand" + str(i) + ".jpg")
c_i = img.crop(box=(20,20,550,400))
c_i.save("C:/Users/kgtrm/Documents/VSC Code/gesture_recognizer/screenshots/test_hands/cropped... | [
"keatongalloway@yahoo.com"
] | keatongalloway@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.