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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b318240301cd14d68a20b64b9a2d2306f58edadf | ad78b8a8e22445bbc517749ee594a805eea9729f | /tools/PyAsm.py | 7df05409ed05f3b5f524e0043b6f1bee71840d29 | [] | no_license | fbrosser/DSP48E1-FP | 8d15ce40eb1d6fef976bdc90866b8a406d50e2b1 | 3bee71d52cc6ca4c421a43731d903420ed930a9d | refs/heads/master | 2021-05-26T17:25:02.898937 | 2013-03-29T06:41:50 | 2013-03-29T06:41:50 | 5,396,713 | 19 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | ### Python reading and matching from assembler source file
### Fredrik Brosser 2012-11-14
# Import regular expressions library
# (Overkill to use here, but includes powerful features for more advanced use)
import re
# File to be read and variables
fileName = "test.asm"
SPoffset = "No offset found"
# Array of registe... | [
"fb.msngr@gmail.com"
] | fb.msngr@gmail.com |
ce733cff00e5fc475a5c89434671f080addcdf37 | c36b0d629ef5ad6242966de7142094c9164ada5b | /trackself/tests.py | dd1eb5f2b8a7cd05dd445b8c49451eeea499cd65 | [] | no_license | fingerecho/trackingsite | 039f340d845759d50effb7f0270b587c2897085d | fad56ba8b31233536117339a70a25617b18fe853 | refs/heads/master | 2020-04-08T01:43:39.023302 | 2018-11-24T06:03:23 | 2018-11-24T06:03:23 | 158,907,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from django.test import TestCase
# Create your tests here.
"""
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Origin: *
Cache-Control: Private
Connection: keep-alive
Content-Length: 47
Content-Security-Policy: script-src gitee.fyping.cn:65533 https://fingerecho.gite... | [
"m13001282105@163.com"
] | m13001282105@163.com |
186e8ba7e922e66bf52aec6dd413f716dd491b2b | 8a44eecda3f57ff1f7a412d1f47c19d59d65cac5 | /realtors/admin.py | 709f0f1502ca2d0c8e57c0fa0b7d4ddeecfa25ef | [] | no_license | KalashMaskey/Python-btre-project | 15b14f2e72e9ec2ef143f9c2057ae7bb42548f1e | 41bf6dd1f1cdd18c5a43dc283c090413dd07a80d | refs/heads/master | 2022-10-20T16:10:19.890918 | 2020-07-03T08:00:45 | 2020-07-03T08:00:45 | 275,541,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.contrib import admin
from .models import Realtor
class RealtorAdmin(admin.ModelAdmin):
list_display =('id','name','email','hire_date')
list_display_links = ('id','name')
search_fields = ('name',)
list_per_page = 25
admin.site.register(Realtor,RealtorAdmin)
| [
"kalashm24@gmail.com"
] | kalashm24@gmail.com |
83144e3be32adf441af293dfb34a17220026af02 | c6bda9ed39fb1a121a85d8822ea8c3a8d84de64a | /danskebanklu/spiders/spider.py | b6c5d76df9578414d0d81933ca95eeb95a5939ec | [] | no_license | hristo-grudev/danskebanklu | 9e337b58767c8f40bfffaf54ddc373323dfc71ab | 9aa261464953e74ee258b63ff134983bce4760f7 | refs/heads/main | 2023-03-05T12:16:36.538807 | 2021-02-18T07:32:55 | 2021-02-18T07:32:55 | 339,970,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import scrapy
from scrapy.loader import ItemLoader
from ..items import DanskebankluItem
from itemloaders.processors import TakeFirst
class DanskebankluSpider(scrapy.Spider):
name = 'danskebanklu'
start_urls = ['https://danskebank.lu/private-banking/news']
def parse(self, response):
post_links = response.xpath(... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
b676e3454df9fe014b0719b5ddf0092f3da82393 | 1a8e44a757c2ca1a1cce6a7dfd73b7152e9e5970 | /basis_email.py | 49562fef1edbae3876e1240bc4299bcc975c6240 | [] | no_license | sarwarsikder/import_xlsx_pandas | c75095964718430168755c1188d61eec763a267e | e41fc3b98f2f90f750602ced61677f982fe60be5 | refs/heads/master | 2022-10-14T06:43:42.672750 | 2020-03-03T07:27:40 | 2020-03-03T07:27:40 | 244,541,070 | 1 | 0 | null | 2022-06-22T01:19:55 | 2020-03-03T04:25:49 | Python | UTF-8 | Python | false | false | 3,779 | py | import mysql.connector
import pandas as pds
import datetime as date_time
import re
db_con = mysql.connector.connect(
host="localhost",
user="root",
password="password",
database="pick_email"
)
cursor_connection = db_con.cursor()
sql_transaction = []
# Define a function for
# for validating an Email
... | [
"sarwar@workspaceit.com"
] | sarwar@workspaceit.com |
ad6ec079550e0235bcea5e8350130e7a74d839f5 | 81ef1b1d100041d28a8af9c1f153eed2e3c9c3e5 | /joecceasy/ReferencesAndExamplesOfCode.py | 836f45668bb576058279d743d58771d51387b7b5 | [
"MIT"
] | permissive | joetainment/joecceasy | 8f605d20f543d162adc56cb5cb23ce8f45f56553 | be300a6c30bcc1e09e7b2c3561fd2ab13836396b | refs/heads/master | 2022-02-24T03:37:06.254731 | 2022-02-10T15:00:48 | 2022-02-10T15:00:48 | 251,486,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py |
class ExampleClass01Meta(type):
## __setattr__ and __getattr__ can potentially cause issues
## such as recursions (they introduce serious complexity)
'''
def __setattr__(cls, key, val ):
if key=='P':
print( val )
#else:
# setattr( cls, key, val) ## r... | [
"joecceasy@joetainment.com"
] | joecceasy@joetainment.com |
bf362dc62e8492e1c8bc63a7995980c16df7f4fd | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /HpqLxNqqRvMQoz8ME_16.py | d81164152044bf439087a06dc09c07b9ce593cce | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | """
Create a function that takes a string and returns a string in which each
character is repeated once.
### Examples
double_char("String") ➞ "SSttrriinngg"
double_char("Hello World!") ➞ "HHeelllloo WWoorrlldd!!"
double_char("1234!_ ") ➞ "11223344!!__ "
### Notes
All test cases contain va... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9004a92c13e158c5c29a871a47308f4db2a9c0c9 | 372dbfdc84975cb1ab675f41e1c197e4e90ff878 | /backend/device_registry/migrations/0028_auto_20190511_0723.py | 04ebac94b48ae075a9d8dd430b9b13a64b6b7061 | [
"MIT"
] | permissive | a-martynovich/api | 3fcd45ff9bfa07cb8a3c47b4c55365c5133cd071 | 702254c48677cf5a6f2fe298bced854299868eef | refs/heads/master | 2023-02-16T06:16:53.623613 | 2020-11-18T10:49:55 | 2020-11-18T10:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # Generated by Django 2.1.7 on 2019-05-11 07:23
from django.db import migrations
from django.contrib.postgres.fields import JSONField
class Migration(migrations.Migration):
dependencies = [
('device_registry', '0027_auto_20190509_0516'),
]
operations = [
migrations.AlterField(
... | [
"pythonpro@gmail.com"
] | pythonpro@gmail.com |
b5ed4e6260b24335bf7015ee07fd28da69d6e0a9 | 47e15487e41120a4ef3adffa738cbc165c2172fc | /venv/pythonInterpreter/lib/python3.9/site-packages/scapy/packet.py | d656ac55aa0120973a08973d22c644f94bda6bca | [] | no_license | TjTheGeek/Pene-Test | 01bf532f61a4dd6ec2745ceedf1f2c4253a168b1 | d1d8c2499a5b1102fbd049ac1dc499a0156dafc0 | refs/heads/master | 2023-06-30T22:50:40.628209 | 2021-08-03T12:52:59 | 2021-08-03T12:52:59 | 367,958,884 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93,706 | py | # This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more information
# Copyright (C) Philippe Biondi <phil@secdev.org>
# This program is published under a GPLv2 license
"""
Packet class
Provides:
- the default Packet classes
- binding mechanisms
- fuzz() method
- exploration methods: explo... | [
"Tijesuolalekan@gmail.com"
] | Tijesuolalekan@gmail.com |
8470ff9a184b132c991f6f567ce894d7629cc979 | b11efc3a640c948ea67fc5ec48e46888a16bc7be | /taller10/prroyectociudad/ordenamiento/models.py | d7c81de226afc7d904525e4af4496d669fa43efa | [] | no_license | PlataformasWeb-P-AA2021/taller10-Jdesparza | 1850c77d9db21a54249616ea064099588825d0fa | 800abc3826f1cc76a7438e2fc729f385c2a93b96 | refs/heads/main | 2023-06-01T05:29:45.314719 | 2021-06-19T21:18:44 | 2021-06-19T21:18:44 | 378,210,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | from django.db import models
# Create your models here.
class Parroquia(models.Model):
class Meta:
ordering = ["tipo"]
verbose_name_plural = "Las Parroquias"
opciones_tipo_parroquia = (
('1', 'urbana'),
('2', 'rural'),
)
nombre = models.CharField(max_length=50)
... | [
"jdesparza@utpl.edu.ec"
] | jdesparza@utpl.edu.ec |
5f1c25a06be984814e4f2bfd1e9b5305d27bfc4c | e32dbfa5951cdddf3e6df50e88ae90d8c23d5389 | /Python_scripts/load_graph.py | ea71197dccf19594cd16189c3ce1b462eef11ff3 | [] | no_license | Auwel1/Integration | a32035d15ee17415a4f3c709979e429bc7857255 | 83c2d0dc53f9f8175b74bc6234574b8e5249b1f8 | refs/heads/main | 2023-06-03T06:47:42.648270 | 2021-06-18T14:41:22 | 2021-06-18T14:41:22 | 378,175,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,614 | py | import argparse
from xml.dom import minidom as mdom
from xml.etree import ElementTree as ET
import xml
import pandas as pd
import igraph as ig
import networkx as nx
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import HMA_connect as hma
import utils
from tqdm import tqdm
import re
# parser = a... | [
"aurelien.coffe@gmail.com"
] | aurelien.coffe@gmail.com |
7dd28334fa4623826de128a777c796b19d83a061 | ba057913ba4cc33cd7f12a60dc2b8d161498a15f | /train_fluid_flow_machine.py | 70f22c91daa8ce4dadc09d366fb729af590bc2f9 | [
"MIT"
] | permissive | RahulSundar/dmd_autoencoder | 887de1d28d5001cf3224fc2e5619e01b32764a82 | ec776042f5b6877ee0d6861f8ce1eec30b212efc | refs/heads/main | 2023-01-22T09:34:02.217008 | 2020-12-04T20:23:47 | 2020-12-04T20:23:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,304 | py | """" This module will train dmd autoencoder on fluid flow dataset. """
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
from dmd_machine.dmd_ae_machine import DMDMachine
from dmd_machine.loss_function import LossFunction
from data.Data import DataMaker
from tensorflow import keras
from sklea... | [
"oissan@predsci.com"
] | oissan@predsci.com |
b32d16281b9eb3a9c277b36b8d8018e725da75a7 | f2a02a48126c9980d2e3ccf9e10d4ea5578fa618 | /List/10.3.py | 1bfde8ab5ff304ff73552c7c2bd6d82ecd49076f | [] | no_license | MuhammadSaqib-Github/Python | 6a98087ba15e34ce27c91b270f91049337d134d4 | d91c97cbaf94e1ae45364319cf9ba9a5485c0597 | refs/heads/main | 2023-06-16T08:18:11.191132 | 2021-07-17T07:00:21 | 2021-07-17T07:00:21 | 386,861,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | integers = eval(input("Enter numbers sep by commas"))
rep = []
for i in range(len(integers)):
time = 0
skip="yes"
for j in range(len(rep)):
if rep[j]==integers[i]:
skip="no"
if skip=="yes":
c = integers.count(integers[i])
print(integers[i] , "occued" ,c ,"ti... | [
"noreply@github.com"
] | MuhammadSaqib-Github.noreply@github.com |
2a5b07fdd14f3beca3bb61d3fb428d48f63432b3 | ee2521da7c10469d7e977758c3a07ae5c44a7e45 | /notilog-server | eb46ed41d2e0682cb0d3764996e9cc769118cd42 | [
"ISC"
] | permissive | mutantmonkey/notilog | d0d0206f1b33e31fb1f65085fed5941ff1c2763d | 0c5d87d9751bb9282e7319c44d0bce0a6542723f | refs/heads/master | 2021-01-02T08:40:52.350454 | 2014-06-09T03:43:06 | 2014-06-09T03:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | #!/usr/bin/python3
import os.path
import yaml
from notilog import server
if __name__ == '__main__':
try:
import xdg.BaseDirectory
configpath = xdg.BaseDirectory.load_first_config('notilog/config.yml')
except:
configpath = os.path.expanduser('~/.config/notilog/config.yml')
config = ... | [
"mutantmonkey@mutantmonkey.in"
] | mutantmonkey@mutantmonkey.in | |
2f45302e9a2e5bd5de2f101b8abe295f52b3d8b5 | cb3b5cb9d742fe38fc2a800189afeb1d262e4686 | /images/forms.py | ce7ad2aef6a4755ef27f700fb7ec72ef7cfee2b8 | [] | no_license | RunHuaOil/BookMarks | 0869cac7e203cad562e01fcc3eabcb9b22cd6176 | 4fd59506731d6049cfbe0a01efdfee50eed3a1b4 | refs/heads/master | 2021-01-01T08:19:15.173337 | 2017-07-18T08:03:49 | 2017-07-18T08:03:49 | 97,569,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | from django import forms
from .models import Image
from uuslug import slugify
from urllib import request
from django.core.files.base import ContentFile
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
class ImageCreateForm(forms.ModelForm):
class Meta:
model = Image
f... | [
"crh799250413@gmail.com"
] | crh799250413@gmail.com |
63d4d14065576f3188fdfb3e039c6033941abc39 | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/ansible/lib/python2.7/site-packages/libcloud/container/drivers/docker.py | faf5117cf33be7f44cf30b976707475c81a5fc89 | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 23,277 | py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | [
"admin@example.com"
] | admin@example.com |
a6949561c9689c5ddb20528b163889e51ee51477 | fee1f49d0e5187a4974393097d1125fc49e0b28a | /api/category/migrations/0001_initial.py | 82e650ac3786122419420c54ec5a169148727481 | [] | no_license | pratikmishra356/ecomm-backend | 883e00eeb0f065f1c6f20140546a483fd2d76ef3 | 92d4a34805623dd5a14196a2d72713fc15c57a51 | refs/heads/main | 2023-06-11T20:53:45.339834 | 2021-06-30T11:38:36 | 2021-06-30T11:38:36 | 335,620,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # Generated by Django 3.0.8 on 2021-01-24 19:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField... | [
"pratikmishra@Pratiks-MacBook-Air.local"
] | pratikmishra@Pratiks-MacBook-Air.local |
c7317dcb9c2305e208510d6576bf543713ab6d96 | 6b1de0812ad7ec46e8128c19d43d95d97b5934ba | /InitialModel.py | 4728df0d84e9b2ee926c917e9a6e5ac489fcf985 | [] | no_license | InertFluid/KinshipVerification | 7b8e2ecf33d7b18395a669cad048a990a2c411c6 | 7a2295cdbc0636da7f667e9dcc5cedba639351dc | refs/heads/master | 2020-03-17T13:31:40.004096 | 2019-01-20T12:13:08 | 2019-01-20T12:13:08 | 133,635,276 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | from keras.models import Sequential
from keras.layers import Convolution2D
from keras.layers import MaxPooling2D
from keras.layers import Flatten
from keras.layers import Dense
from keras.optimizers import SGD
from keras.initializers import RandomNormal
WTInit = RandomNormal(mean=0.0, stddev=0.01, seed=5)
model=Sequen... | [
"noreply@github.com"
] | InertFluid.noreply@github.com |
1c2e414ee6870262c1e73bf8a1eb3026494988d6 | 7a4ecd59965312425cc9dec10ee09c5d145ea149 | /main.py | 2caf908ced15a5a1454c280fddf78c0bf89e92ac | [] | no_license | j-yeskay/tictactoe-pygame | 192a3fb3f01f55c6f0442b8b7bccf992685a1186 | 3de617405e7b7c9d7a816de17c9a21dd7a999030 | refs/heads/master | 2022-12-05T07:10:35.592225 | 2020-08-28T06:03:45 | 2020-08-28T06:03:45 | 290,964,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,120 | py | import pygame
pygame.init()
#***WINDOW**#
screen = pygame.display.set_mode((420, 625))
pygame.display.set_caption("Tic Tac Toe")
xolist = ["1", "2", "3",
"4", "5", "6",
"7", "8", "9"]
match_status = True
play_count = 0
#***TO AVOID MULTIPLE ATTEMPTS IN ONE BOX***#
b0, b1, b2, b3, b4, b5, ... | [
"asksathishk@gmail.com"
] | asksathishk@gmail.com |
8f200f77d978f412dcbeeaade7b38805433e5d9d | 794a85e854fcb0f95f30f3ff9cb7138ae22d2039 | /traveling_salesman_simulated_annealing.py | 82d88cd25ffe8413b743a52565e1c7a74abb0708 | [] | no_license | duweizhuo/Learn_algorithm | 398070c6bd3e5ecccbe3e80d60dd7b8cf39f218d | 28c19f381f3a34ecfce45cdb1dd5ccd43e6f1058 | refs/heads/master | 2020-04-14T13:17:16.111819 | 2019-01-15T14:08:22 | 2019-01-15T14:08:22 | 163,864,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | import random, numpy, math, copy, matplotlib.pyplot as plt
cities = [[0, 84], [45, 53], [17, 53], [89, 5], [24, 66], [98, 35], [38, 18], [90, 89], [8, 12], [96, 47]]
tour = random.sample(range(10),10)
def dist(city1, city2):
xDist = abs(city1[0] - city2[0])
yDist = abs(city1[1] - city2[1])
distance = math.... | [
"noreply@github.com"
] | duweizhuo.noreply@github.com |
c6cb21b34fa419bf4abc0abdd54d3a376f445514 | 8b427ffc8a4c9c538995dce5d21a7d558a82fc8b | /django 家谱管理系统/version2.0-py+js/HomeworkAnswer/firstsite/urls.py | c2d4f6fcd1033beb8e77408fc740a069caaf9611 | [] | no_license | yyhyplxyz/django-and-flask | 73572e565e88d5ac70d4343295b521649a6ccdd8 | 9e763dd9473e70eee8aa96deec09549ae3590a88 | refs/heads/master | 2020-03-26T11:57:52.682150 | 2018-10-09T07:18:58 | 2018-10-09T07:18:58 | 144,868,224 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | """firstsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/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-b... | [
"yangyh57@mail2.sysu.edu.cn"
] | yangyh57@mail2.sysu.edu.cn |
21c248c6b320e020a0ffc2d240c18016f8e5cf46 | 16b703f1e62443b9dd3a3e5b4d60859722212f4a | /classify_data.py | 6b51f4eea76d56d93116e99e74d8b1d8ea2e99aa | [] | no_license | haok61bkhn/Intern | a25e8912d437baba98731f57ede2278e39d0393a | 87b99813a28328b807a132d1b1657f71d545ff10 | refs/heads/master | 2020-04-26T07:46:00.469425 | 2019-03-04T09:18:51 | 2019-03-04T09:18:51 | 173,403,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | import re
from sklearn.metrics import accuracy_score
data=[] # moi phan tu la từ và số lượng từ
lam=[] # mỗi phần tử là từ trong data và lamda của nó trong 1 label
sizelam=0;
def readFile(path): # doc file tra ve xau
f=open(path,"r",encoding="utf-8")
s=f.read().split("\n")
s.pop()
return... | [
"noreply@github.com"
] | haok61bkhn.noreply@github.com |
4867b3ebc46846cb74560c531ceda687963f68d3 | 3b73266191d85023ced56fa553dccd3ae447e7eb | /photobook/models.py | 9908c7fe4c3d635770b213684547d3934a1f4e48 | [] | no_license | shindle69/photowall-1 | ab28b2f9ec8f18b892b192c8cf714693848dc8ce | d5ef5199ea6593e878fbf31f90f6202d644a9c5d | refs/heads/master | 2020-03-21T17:46:11.845342 | 2017-05-18T15:25:44 | 2017-05-18T15:25:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from django.db import models
# Create your models here.
class TimeStamp(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Post(TimeStamp):
title = models.CharField(max_length=100,default=None)
category= models.CharField(max_lengt... | [
"qoentlr37@naver.com"
] | qoentlr37@naver.com |
869f438354c88e21bb4f03b3facb118be4743654 | 8cc083b3407789e8c95f38c95aea9c48ce0e770f | /hellopy/experiment.py | 8a2df87516cf3bd6aadb4e5ab6025d546c80449a | [] | no_license | andrewdotn/vixpy | b15088f66a4fb38e510f1e93836d24f6291a835b | 34267f34ac65a72f1064c2aa25caf78e83c94ce6 | refs/heads/main | 2021-12-02T19:45:08.839788 | 2015-11-27T05:18:23 | 2015-11-27T05:18:23 | 47,004,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | import os.path
import time
from threading import Thread
START_TIME = time.time()
from vix import VixHost, VixVm
with VixHost() as h:
vmx_path = os.path.expanduser(
"~/Virtual Machines.localized/vixpy-base.vmwarevm/vixpy-base.vmx")
with VixVm(h, vmx_path) as base_vm:
def do_stuff(i):
... | [
"andrew@neitsch.ca"
] | andrew@neitsch.ca |
604bb489b26480db07be751687fcf914423a2cae | fc91ef90d128a34cb928408a109f6a2dd6d727f8 | /python/pylibtermkey/test_pylibtermkey.py | 8bcd051b5a8c339ac6de0ac3ee4e90defb0eae17 | [
"BSD-3-Clause",
"MIT"
] | permissive | mvilim/pylibtermkey | 0629875f2363cd73bcefba8eedc55b9018cf4d7c | 39e7cd562deb4ed91798d5e26189bd6760c0489f | refs/heads/master | 2021-06-28T06:20:02.507807 | 2020-10-09T06:41:31 | 2020-10-09T06:41:31 | 167,847,282 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,928 | py | # Copyright (c) 2019 Michael Vilim
#
# This file is part of the pylibtermkey library. It is currently hosted at
# https://github.com/mvilim/pylibtermkey
#
# pylibtermkey is licensed under the MIT license. A copy of the license can be
# found in the root folder of the project.
import abc
import unittest
from unittes... | [
"michael.vilim@gmail.com"
] | michael.vilim@gmail.com |
17dd662ee4171dcdc0847174ef3082dc8f66cefb | d5c6da7dd1c87b2e9f6ecef51cc4d1c3402f7b8b | /Level2Assignment/manage.py | a4c44a059dd1a7ab32785490e7d4be2de5eafa53 | [] | no_license | JAGASABARIVEL/Django | 85fabf8debf9af54bd7381939f7d77451ce42182 | b3cf50a80e4542aabab66cbdcab70edce0799603 | refs/heads/master | 2022-11-23T23:35:56.079040 | 2019-12-07T16:51:34 | 2019-12-07T16:51:34 | 225,845,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Level2Assignment.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dja... | [
"JAGASABARIVEL@gmail.com"
] | JAGASABARIVEL@gmail.com |
2a3d5be3009d4b609bfbe5cd460ac5966b9737f3 | accf2a28b038b3ca03d3b263739b3b00c7c834b1 | /task_app/task_app/urls.py | 8eefbe6fc8c9c8b133df0f86da5e55ccf1102f36 | [] | no_license | erinrosenbaum/django_task_app_with_crud | 7b7b4aecb8de7f68b6df51b413de5f39c38a1441 | d27fde01e528e93243e48d44264bcf390087cbb9 | refs/heads/master | 2020-04-17T20:20:47.571730 | 2019-01-22T00:53:39 | 2019-01-22T00:53:39 | 166,901,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """task_app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"erinrosenbaum@yahoo.com"
] | erinrosenbaum@yahoo.com |
cf2eddc7ea32518b89f8312d10d7054b596f5604 | 70ba0363b5df57df949c516ace000f5f0949af4a | /autoencodercmp/embedding.py | ca450244171a95135754e271d8456ba03a7c3f4c | [
"MIT"
] | permissive | SiyanZhou97/VAE | 41659cc722bb6dc267f22af10231e1173cda1d0b | 6e19f9dc865155f45554a462f4599f7ebc6a40db | refs/heads/master | 2022-11-27T15:14:01.398437 | 2020-08-04T00:10:40 | 2020-08-04T00:10:40 | 273,518,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,875 | py | import numpy as np
import tensorflow as tf
from models import create_lstm_ae, create_binned_lstm_vae, create_lstm_vae
from align_maze import align_maze, align_ITI
from data_generator import DataGenerator
from deviance import deviance
#============================================
# return embedding
#=================... | [
"noreply@github.com"
] | SiyanZhou97.noreply@github.com |
8a42ff3f0285714a41fc38ccd9bd47a68b007b22 | 94a287b6db759df48d9ed98b9450caabb863e1ac | /nearestPower.py | c058f9f21d4baacda7dfc73f5a76e23b392f044e | [
"MIT"
] | permissive | JanviChitroda24/pythonprogramming | 4341e778aa2e091a0edddcf8d39028336d4bd1b6 | 59fa28aa9b48cea4d6e97bf386e688860bd9aef5 | refs/heads/master | 2023-08-15T11:32:28.358675 | 2021-10-17T12:17:01 | 2021-10-17T12:17:01 | 418,115,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | import math
def npow(a,b):
x=round(math.log(b)/math.log(a))
y=x+1
if(abs((a**x)-b)>abs((a**y)-b)):
return a**y
else:
return a**x
p=int(input("Enter your 1st Number:"))
q=int(input("Enter your 2nd Number:"))
print("The Nearest Power is:",npow(p,q))
| [
"noreply@github.com"
] | JanviChitroda24.noreply@github.com |
f614e10f66f919c3deda9664c82532d0b145b14c | bb77a939d49a1d6e789d655aa30dfc5a4bf4f50f | /week-1/detect-capital.py | ee4528e1ac65d3c8f8db21fa4208a56080c120b2 | [] | no_license | johnsanc/wb-cohort3 | 0778eacb908a79c9aca124c7800c5370649b2457 | 8faeb2c3416b19c4e1950abfb11a2c3a5651babf | refs/heads/master | 2020-06-10T04:14:56.489619 | 2019-08-19T05:56:58 | 2019-08-19T05:56:58 | 193,579,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | class Solution:
def detectCapitalUse(self, word: str) -> bool:
if word.isupper():
return True
elif word.islower():
return True
else:
if word[0].isupper() and word[1:].islower():
return True
else:
return False | [
"johnny.ss@icloud.com"
] | johnny.ss@icloud.com |
746adb8e7b81e29709b78b2e40fdb14231dfbbc9 | ec13b507c34d58cfffe1c93d427a7c70ac74158b | /5_Sequence_Model/week2/Word Vector Repressiontation/w2v_utils.py | a78fab1b1c0453b168ee15fbda79f08ad3f51cfd | [] | no_license | xiaoxue11/DL-homework | 2e7cdb3e0eb116c19e3f8226f55c80afd78d82e7 | 4f6505557b8a225b210bfb22531dd5b6c4d79ad8 | refs/heads/master | 2020-06-01T16:01:34.957727 | 2019-06-08T03:47:22 | 2019-06-08T03:47:22 | 190,842,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,082 | py | from keras.models import Model
from keras.layers import Input, Dense, Reshape, merge
from keras.layers.embeddings import Embedding
from keras.preprocessing.sequence import skipgrams
from keras.preprocessing import sequence
import urllib.request # module defines functions and classes which help in opening URLs
import c... | [
"xuezhang0111@gmail.com"
] | xuezhang0111@gmail.com |
24298090eb5325f13c5cd6ff497fe96f16a5321f | 5c58c55052a717c9fe970f0f1d509273c2560f92 | /app.py | 7f9c2ffacb9332bed936e30b727eb3d7ed34f2d6 | [] | no_license | WiamSalaheldin/flask-task-manager-project | c43ebc2562887db20ad2cd789ef476eafe81f6b6 | 22749feb180506f8ed8329301326dca01a691ef3 | refs/heads/master | 2023-02-10T00:25:21.888196 | 2021-01-12T01:39:02 | 2021-01-12T01:39:02 | 327,696,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,363 | py | import os
from flask import (
Flask, flash, render_template,
redirect, request, session, url_for)
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
from werkzeug.security import generate_password_hash, check_password_hash
if os.path.exists("env.py"):
import env
app = Flask(__name__)
ap... | [
"wiam.khairelsid@gmail.com"
] | wiam.khairelsid@gmail.com |
7c2557ffe34bf638b0ba6748b94a2d486ac85968 | ed709beb4ae2ae335f5d99f04cd122fac6c35d88 | /CODE/PYTHON/project.py | a37b95bacc71262a588283f99bc23571aa5a6c00 | [] | no_license | manuelrocha88/CherryPickISEPBITalinoPyExample | d4f9a867e00bd26d3ee319ee2dfbf23d63bc19bc | 6e7488672800021f2fdd36317ac18faf835b1183 | refs/heads/master | 2021-01-09T20:46:38.075698 | 2016-05-27T21:22:33 | 2016-05-27T21:22:33 | 59,861,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | import numpy
#Set bitalino Library. Can get it from github:
#https://github.com/BITalinoWorld/python-api ( http://bit.ly/BITalinoPyAPI )
import bitalino
#Set BITalino Mac Address
#macAddress = "20-15-12-22-97-57";
#If you have Apple Operating System Mac OS
#you have to use the virtual port instead
#run terminal comma... | [
"manuelrocha@manuelrocha.biz"
] | manuelrocha@manuelrocha.biz |
bfc39fecb86f2ae5c3caa848912510a68060bef6 | 18b7f6e6a64ff4e33202f4c647d33240bf8ce015 | /_AlgoStudy/20_0912/Baek_17070_3.py | 0c0a74e9fdd2d16d022ff6376f9d14404a65ade5 | [] | no_license | qorjiwon/LevelUp-Algorithm | 80734b88e2543fb4b6da48377bb31b70d972b448 | 62a71552427290361e6ade9dcfe3ffc90a9d86e2 | refs/heads/master | 2023-06-16T16:33:44.427818 | 2021-03-12T14:39:25 | 2021-03-12T14:39:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | from sys import stdin
input = stdin.readline
# . → ↓ ↘
p_dirs = [[0, 1], [1, 0], [1, 1]]
ans = 0
from itertools import combinations
combinations()
def solution(y, x, p_type):
global ans
if y == N - 1 and x == N - 1:
ans += 1
return
# O(V*V) -> O(V*V*3^V)
for i,... | [
"21300035@handong.edu"
] | 21300035@handong.edu |
8c780606da24a7c15997a8036133511821b2f6bd | 231a05a0829d5407cf0fbbed81f92099239a5091 | /二分类/PLA.py | eafff36e71eb183b54219fcda61cc81c9edf0654 | [] | no_license | shiji203/Classification-and-Regression-Task | 3491474fe7cdf6f99e4bd40a41411848b69fb7e2 | 7090e6af850e443d5a309a1a6f2717fdab47323d | refs/heads/master | 2021-05-25T17:18:09.180721 | 2019-03-10T14:21:45 | 2019-03-10T14:21:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | import numpy as np
import math
import csv
from pprint import pprint
def main():
file_name1 = '2/my_train.txt'
with open(file_name1, 'r', encoding='utf-8') as file1:
file1_list = file1.readlines()
train_size = len(file1_list)
train_list = []
weights = {}
for i in range(train_size):
... | [
"1240945617@qq.com"
] | 1240945617@qq.com |
046ef434c325e090530784b9fadaaf68e9ea6f7e | cbfad345940367c7f35e508dd973fbf98230c356 | /blog/views.py | 78436afd963e8072a0d0d731f6d2e41886eaf77e | [] | no_license | HugoPHAM/my-first-blog | e84455d72eca612b1060b0cab6c808151a6f3301 | 2bcc588d44ad70177d650e1b991572c1de089652 | refs/heads/master | 2021-03-27T12:07:56.664634 | 2017-07-06T20:38:58 | 2017-07-06T20:38:58 | 95,473,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .models import Post, PostForm
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte = timezone.now()).order_by('published_date')
return render(request, 'blog/post_list.... | [
"hoanghung_inpg@yahoo.com"
] | hoanghung_inpg@yahoo.com |
4e2544889d6384c182513730ca865bc6991cba8b | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /ARC072/ARC072e.py | 6c8323480dc2db7390ec0225789b19ad0f8a7a1e | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #ARC072e
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
if __name__ == '__main__':
main() | [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
78b5b9400c19ab5e66367450ac516988019f5938 | 426784c07a624f461f8da6657f658207b39bd2bb | /prob2.py | 3efc6677038ed22a8ffd35c6e772d05c99952b1d | [
"Giftware"
] | permissive | a-jennings/MIT6.00.1x-Pset4 | 4320162e02a46b15ec275daca44b568cc04eb9f1 | ea80d1b4b10de5589725fa99f3f9013122de29ad | refs/heads/master | 2020-12-02T23:54:55.360062 | 2017-07-07T18:53:12 | 2017-07-07T18:53:12 | 95,961,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | def updateHand(hand, word):
"""
Assumes that 'hand' has all the letters in word.
In other words, this assumes that however many times
a letter appears in 'word', 'hand' has at least as
many of that letter in it.
Updates the hand: uses up the letters in the given word
and returns the new ha... | [
"andrew_jennings@ymail.com"
] | andrew_jennings@ymail.com |
a5c842cde04279f715099f22659e1036fe9fc592 | aced737167d197371846c04a30003d5ee5087b0a | /my_app/models.py | 99813378e375a6fff7ee3a85b3462fb2ec6ea6e4 | [] | no_license | VasantaVanan/BloodBank-Django | 76a04cf5addf355ed528415eafe1dd0f13658914 | 3cca263380446307d43762a294a97f33a353de60 | refs/heads/master | 2023-08-27T10:37:44.913672 | 2021-10-07T08:00:40 | 2021-10-07T08:00:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from django.db import models
# Create your models here.
class Doner(models.Model):
name = models.CharField(max_length=30)
blood_group = models.CharField(max_length=15)
age = models.IntegerField(default=18)
address = models.TextField()
contact_no = models.IntegerField()
| [
"vasantavanan.r.2018.cse@ritchennai.edu.in"
] | vasantavanan.r.2018.cse@ritchennai.edu.in |
ef2be261d2e628e655f60d7e4701b4548864f468 | ceacaece7d31ddc3927f1acf10b96acb871d4bff | /front_comments/urls.py | 68544a505149a871c58fe8d51619ffbd164e58ce | [] | no_license | degreework/Front | a1ae8b02de93fac48bbe1af3c3e533ebbad8814d | 34c35526c574538fbd6146582f6fa73983449605 | refs/heads/master | 2021-06-01T10:07:19.153564 | 2015-12-11T03:35:38 | 2015-12-11T03:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | from django.conf.urls import patterns, url
urlpatterns = patterns('',
url(r'^$', 'front_users.views.index', name='index'),
url(r'^recoverPassword/$', 'front_users.views.recoverPassword', name='recoverPassword'),
url(r'^changePassword/$', 'front_users.views.changePassword', name='changePassword... | [
"donberna-93@hotmail.com"
] | donberna-93@hotmail.com |
3804592230add3e1e8bfcc31cec67fc5bc25cbb9 | 21e74dc4bd4de29713027103dd3e8c416fd41c3d | /bufferover/crash.py | e8e478fe7278b8ca99e61495cd5e4ccd85836a22 | [] | no_license | trollzim/Curso | c2c905630635ef4fa50839dd9d0cdc9605f28f84 | 6b0cb930c855d02ce73cb2c6bf1e7350288122dc | refs/heads/master | 2021-01-24T03:12:38.523716 | 2018-02-25T22:13:37 | 2018-02-25T22:13:37 | 122,882,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | #!/usr/bin/python
import socket,sys
buf = ""
buf += "\xbb\x4a\xf9\xd2\x38\xdb\xc7\xd9\x74\x24\xf4\x5e\x2b"
buf += "\xc9\xb1\x52\x83\xc6\x04\x31\x5e\x0e\x03\x14\xf7\x30"
buf += "\xcd\x54\xef\x37\x2e\xa4\xf0\x57\xa6\x41\xc1\x57\xdc"
buf += "\x02\x72\x68\x96\x46\x7f\x03\xfa\x72\xf4\x61\xd3\x75"
buf += "\xbd\xcc\x05\xb8\... | [
"trolljoker01@gmail.com"
] | trolljoker01@gmail.com |
db48875d910abc70a67192d5f64a6031d1d0a335 | 54d8a05e0238e96eb43e4893bacba024e490bf11 | /python-projects/algo_and_ds/find_kth_bit_leetcode1545.py | a428393836935d26f23aacb98f3719b4b22816fc | [] | no_license | infinite-Joy/programming-languages | 6ce05aa03afd7edeb0847c2cc952af72ad2db21e | 0dd3fdb679a0052d6d274d19040eadd06ae69cf6 | refs/heads/master | 2023-05-29T10:34:44.075626 | 2022-07-18T13:53:02 | 2022-07-18T13:53:02 | 30,753,185 | 3 | 5 | null | 2023-05-22T21:54:46 | 2015-02-13T11:14:25 | Jupyter Notebook | UTF-8 | Python | false | false | 1,324 | py | """
https://leetcode.com/contest/weekly-contest-201/problems/find-kth-bit-in-nth-binary-string/
S1 = "0"
Si = Si-1 + "1" + reverse(invert(Si-1)) for i > 1
0
0 1 1
011 1 001
0111001 1 0110001
time complexity : k.log(fac(k))
num = 0, size = 1
k = 2, num << size + 1 + 1 <1 + , size = size*2 + 1 = 3
k = 3, num << size +... | [
"joydeepubuntu@gmail.com"
] | joydeepubuntu@gmail.com |
3c209b9c3051bc6907a42ee90b048a14513b0d2a | 5f89f95fabb7a9d41d023ac1e7451fbf74c57c15 | /Fonctionnels/Méthodes prédéfinies !/Logging (3).py | c548aa5a2010d7c6b69e7718606165cf46d69d6f | [] | no_license | MINCARELLI13/Fonctionnels | 4ed5f439dae3032d5941eb0a61706ca472dd6a3c | d074c56bac0beebd118c525777e53be7035fd09a | refs/heads/master | 2023-03-08T21:43:02.290575 | 2021-02-28T21:49:38 | 2021-02-28T21:49:38 | 343,183,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # -*- coding: utf8 -*-
#!/usr/bin/python
import logging
# Le but du module "logging" est de remplacer le fameux teste "print("...")" mais en étant plus précis
# Pour cela, il y a 5 niveaux de messages : Debug, Info, Warning, Error, Critical
# on configure le module pour qu'il affiche tous les messages à partir de "De... | [
"sancho.poncho@laposte.net"
] | sancho.poncho@laposte.net |
2e6a81b0bc27a5aceceef63f2ba3c6c6c0db7f9f | b4eccda5955c2efb70a079a935db7e1d1e47bd72 | /build/mbot_navigation_gazebo/catkin_generated/pkg.develspace.context.pc.py | 22f32bce07f4460e26379c71d863fc6af4a1e49f | [] | no_license | huangyouhua/mc_ws | afc173571299ca50dba5f795d59b623a8dcd12a1 | 2262978fbab6e735270dc52ee36b22b9f6a3bcf7 | refs/heads/master | 2021-02-23T05:19:48.914956 | 2020-12-10T08:32:11 | 2020-12-10T08:32:11 | 245,393,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "mbot_navigation_gazebo"
PROJECT_SPACE... | [
"1356795413@qq.com"
] | 1356795413@qq.com |
6e5f3bdcc012780b0112dbd48d8ab276bc348448 | 6206ad73052b5ff1b6690c225f000f9c31aa4ff7 | /Code/Design In-Memory File System.py | 9f880f3a935944388209a4752ec45afd1d1d48dd | [] | no_license | mws19901118/Leetcode | 7f9e3694cb8f0937d82b6e1e12127ce5073f4df0 | 752ac00bea40be1e3794d80aa7b2be58c0a548f6 | refs/heads/master | 2023-09-01T10:35:52.389899 | 2023-09-01T03:37:22 | 2023-09-01T03:37:22 | 21,467,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,458 | py | class TreeNode: #Tree node to store file or directory.
def __init__(self, isFile: bool):
self.content = "" if isFile else None #Content is empty string initially if node is file; otherwi... | [
"noreply@github.com"
] | mws19901118.noreply@github.com |
4aa007b29f67e4b0976b53dd51de2d33c3362154 | 524f1a38c7316d88801d3ec40e00ffba44785ca5 | /fdep/__init__.py | 8694da177bebdaa37c421ab66f253f19ba55edf4 | [
"MIT"
] | permissive | checkr/fdep | e6bc6ce2b631f1d69c58f4b7ad02b4170a0af3bb | 36fba98e6b3af35adf238c61f700a8138c090a5e | refs/heads/master | 2021-01-19T11:32:28.673210 | 2019-10-30T02:16:03 | 2019-10-30T02:16:03 | 69,920,017 | 9 | 0 | MIT | 2019-10-30T02:16:05 | 2016-10-03T23:40:01 | Python | UTF-8 | Python | false | false | 22 | py | __VERSION__ = '0.2.9'
| [
"noreply@github.com"
] | checkr.noreply@github.com |
3e2ac1d8435684f35ad6bf1ceb0da06711ba9eb3 | 950872a24638b20e4e131f50666d416b3efd4e71 | /makevue/__init__.py | 54a8a8e69c52eb3c4a188c545af1eebe82be6522 | [] | no_license | lleej/django-study | 1cffea877e2a37ffd8d601958450c5f48023dbf1 | 76b1f628f9a81eb28e8b49b07be8cd42745363bf | refs/heads/master | 2020-07-05T16:34:09.770409 | 2019-08-21T00:47:23 | 2019-08-21T00:47:23 | 202,700,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | __AUTHOR__ = 'lleej@qq.com'
__VERSION__ = '1.0.0'
| [
"lijie@boco.com.cn"
] | lijie@boco.com.cn |
f4372a6ec8497939240a4ac5878e45b079536c9f | fa124fdbf36327bf8e74bbc7f00ce448c1e7939a | /src/com/rwanda/mch/model/stock.py | 9a01b8acc42e78dc4aa3c40a04ad5e93b1f0e7c6 | [] | no_license | pivotaccess2007/mch | 039f17cdb16b434c0a25504cc81b7db81e5da988 | 523d1cd706296744e17e85683b5dbedbc05dd9e6 | refs/heads/master | 2020-03-30T16:33:44.451275 | 2018-10-03T13:23:00 | 2018-10-03T13:23:00 | 151,414,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
##
##
## @author UWANTWALI ZIGAMA Didier
## d.zigama@pivotaccess.com/zigdidier@gmail.com
##
__author__="Zigama Didier"
__date__ ="$Nov 22, 2017 1:29:30 PM$"
from model.rsmsrwobj import RSMSRWObj
from util.record import fetch_summary, fetch_table, fetch_table_by_loca... | [
"zigdidier@gmail.com"
] | zigdidier@gmail.com |
2a72fdb2b9ab42a9a56b66989676e31153d5bacc | 64b2a2771f60defc930e848c3579b44c8de31a12 | /excel_temp.py | 39a41758f0eef5e1782e07aa6b22f89d04c1cb2d | [] | no_license | GemjuSherpa/Asignment | 220fbcff25dbcbe85ec5f395cc67b71dde0d0cbe | da18ceb3c81453dbd202aadd67d6f9c47365c979 | refs/heads/master | 2020-04-13T01:19:04.581451 | 2018-01-12T14:26:24 | 2018-01-12T14:26:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | py | # #!/bin/Python
# Filename: excel_temp.py
# Author: Gemju Sherpa
import openpyxl
import sqlite3
# Sqlite3: connect to db and query the result.
connection = sqlite3.connect("globaltemperature.db")
cursor = connection.cursor()
sql = """
SELECT City, STRFTIME('%Y', Date), Average_Temp
FROM Bycity
WHERE Country = 'C... | [
"gemju@github.com"
] | gemju@github.com |
1a606f42247d6ed08a5d7c4a7ac70c712737c38a | b9aabb13870b3707609fd2ea117870c2ad40c14b | /apps/accl_trn/03_trn_cnt.py | fea526ddb052242d3c8b61249c89bf799617e30f | [] | no_license | adpartin/pilot1 | d88d2af7d15df68780ab2f82169897a9c388a2fd | c99f32052fab0de210fd200b43194b19088dc3a7 | refs/heads/master | 2023-04-14T22:30:33.339975 | 2023-04-10T23:36:34 | 2023-04-10T23:36:34 | 160,101,290 | 1 | 0 | null | 2022-12-08T02:59:53 | 2018-12-02T22:10:10 | Jupyter Notebook | UTF-8 | Python | false | false | 14,014 | py | from __future__ import print_function, division
import warnings
warnings.filterwarnings('ignore')
# from comet_ml import Experiment
import os
import sys
from pathlib import Path
import argparse
import datetime
from time import time
from pprint import pprint
from glob import glob
import sklearn
import numpy as np
im... | [
"apartin@lambda-quad.cels.anl.gov"
] | apartin@lambda-quad.cels.anl.gov |
236b27551e02af95c808dc72d6db595e4fba42b8 | 80352272be7b7806e592ed35e59920845d9adb69 | /BOJ-10845.py | 929abbf2859e8a5868ce67921c920821ec3edede | [] | no_license | songda515/algorithm | 14635609df9efc7e4aa396df7309b0eebae331b5 | fc64e6115088ac52d83b93129da6ec0efac1874f | refs/heads/master | 2023-04-13T22:22:39.284686 | 2021-04-21T09:34:53 | 2021-04-21T09:34:53 | 337,151,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | from sys import stdin
input = stdin.readline
n = int(input())
queue = []
for _ in range(n):
command = input().strip()
if command == 'pop':
if queue:
print(queue.pop(0))
else:
print(-1)
elif command == 'size':
print(len(queue))
elif command == 'empty':
... | [
"songda515@gmail.com"
] | songda515@gmail.com |
d67dac80927b5d7deb7ec474c16d1403bc5bd4a9 | f877e8617f6ac8b5c742ebec1770b36065a74189 | /build/assignment_04/catkin_generated/pkg.installspace.context.pc.py | b085dfd7a6ae81ad86f1052d7b475b370e120dc6 | [] | no_license | bolduc-drew/AUE893_Bolduc | 3869e793da11e73bd8e9f113a055e53920d94cf8 | f05d44266e918eb455085b8648367eef517df2c5 | refs/heads/master | 2021-01-25T05:56:44.619906 | 2017-04-27T21:01:11 | 2017-04-27T21:01:11 | 80,707,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "assignment_04"
PROJECT_SPACE_DIR = "/... | [
"abolduc@g.clemson.edu"
] | abolduc@g.clemson.edu |
884168216b4d61ff82fc3872da8789d20fad0f33 | 7fcde04f3bae3430085d5909f274ef670591a04e | /pluto_drone/plutodrone/src/pd.py | 4dd2f7445c5723ebf61108e03e1e5bad662cf9cb | [] | no_license | sjoshi13/Hungry-Bird-eYRC-2018- | ddbf7f264ade40bbb7af01242c75270df6a7a475 | 2e5c6c7d7c9fe12488dcfcbcf155d624554ef5cd | refs/heads/master | 2020-05-03T22:59:49.804532 | 2019-04-01T12:11:54 | 2019-04-01T12:11:54 | 178,854,820 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | import csv
print(5)
f=open('j.csv','r')
print('shruti')
| [
"shruti03.joshi@gmail.com"
] | shruti03.joshi@gmail.com |
d348351ef092461e7fb46671aa00975b45ff828d | 67f858f723d9114462467ad15811d321c369a5a1 | /jksb.py | 276478d63e9e3e1d0385991d9e4b12371d63f579 | [] | no_license | xiaozixiaopingzi/zzu-jksb | 280097965d2bc4e8ed654a7de95b417abfce8322 | 66f9b2b3faef8a6e0ae4730fc7b99880bbcce64a | refs/heads/master | 2022-11-20T11:29:38.710409 | 2020-07-27T16:55:35 | 2020-07-27T16:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,969 | py | #encoding:UTF-8
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait as wait
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions as ec
from selenium.common.exceptions... | [
"noreply@github.com"
] | xiaozixiaopingzi.noreply@github.com |
238bcfb1c6807d7ec0bef0ae67ea5120c805ac69 | 14ad9a1dc0d0c8529a856baf3456e597c19319b0 | /video.py | 26d012ab317c30401d22af65461baca1e2a72bb9 | [] | no_license | isp5708/hackerTone_ABC | 6ffdc43692842142fbaa18bd79d8d73132d4d149 | 86d5df147963d094ec36ebd20ca06697b88b077b | refs/heads/master | 2023-01-23T01:57:46.609486 | 2020-11-19T10:54:07 | 2020-11-19T10:54:07 | 314,190,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.models import load_model
import numpy as np
import cv2
import matplotlib.pyplot as plt
import os
facenet = cv2.dnn.readNet('models/deploy.prototxt', 'models/res10_300x300_ssd_iter_140000.caffemodel')
model = load_model('mode... | [
"dlwnsdud3737@naver.com"
] | dlwnsdud3737@naver.com |
cce8b4daf14e7d369b29433a23c878b1b5cfccc6 | 5a84db9a25bfaab6f70bbe92464ee2cd6a6fc523 | /radtorch/modelsutils.py | eafa725b96a42e8dc11f996eab77977bddc79120 | [
"MIT"
] | permissive | kareemelfatairy/radtorch | 712424e6a95d29aa5ca388e2e499389b995e228a | 539d8accdc405a94e2ed3c0c770c8341de00ee05 | refs/heads/master | 2021-01-13T18:02:38.368814 | 2020-02-22T23:54:26 | 2020-02-22T23:54:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,792 | py | import torch, torchvision, datetime, time, pickle, pydicom, os
import torchvision.models as models
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torchvision.datasets as datasets
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from sklearn import metric... | [
"elbanan@users.noreply.github.com"
] | elbanan@users.noreply.github.com |
d10573b862a65a0fa585fef8597f971ce8d98620 | 05f24247db7c9f0ce7d7fc7f413ba5dbd65fae83 | /Web_crawler/Web_Crawler.py | 2bfab58800c557cfa6ff65d7c4008b8b31d6dfbb | [] | no_license | metal32/Algorithm | eb486df62bd7857f0959a5c2100f8225d37cad98 | 7955f0c448cf69a7ff3474e9a5e579a33c936aa2 | refs/heads/master | 2021-01-21T05:05:16.893701 | 2017-03-18T02:03:38 | 2017-03-18T02:03:38 | 83,125,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | '''
Created on 18-Mar-2017
@author: ayush
'''
import requests
from bs4 import BeautifulSoup
import webbrowser
import re
def removeComments(string):
string = re.sub(re.compile("<.*?>",re.DOTALL ) ,"" ,string) # (<--COMMENT -->) from string
string = re.sub(re.compile("--->.*?",re.DOTALL ) ,"" ,string)
retur... | [
"ayus097836@gmail.com"
] | ayus097836@gmail.com |
6027cfd9f560f466afa4aa586c1d2c4e8d252768 | 2ff18a1fc1df5b9d81e4568694110f776d57aada | /anaconda_env/webapp/bin/sphinx-apidoc | fb5df790c6f30de0bb21c16ff5385ab5af4fe5c9 | [] | no_license | tacNakadai/my1stDjango | 318ea813956c3d2da1313e1771b4d92397796449 | 004d04fae8ea4d53ebe499a513e8fb50ebd7ae0d | refs/heads/master | 2022-10-17T13:39:02.211063 | 2017-08-20T06:21:12 | 2017-08-20T06:21:12 | 100,841,395 | 0 | 1 | null | 2022-10-05T21:30:46 | 2017-08-20T05:49:10 | Python | UTF-8 | Python | false | false | 156 | #!/Users/tac_nakadai/anaconda/envs/webapp/bin/python
if __name__ == '__main__':
import sys
import sphinx.apidoc
sys.exit(sphinx.apidoc.main())
| [
"tac.nakadai@me.com"
] | tac.nakadai@me.com | |
e20d0df92b8c34eda198bef61f110eae0f111527 | bf365949bcfe5a62bf11bc86d37b3caf27115f24 | /src/backend/main.py | 127580b39163fec80da870b8bb3227d63b7b642c | [
"MIT"
] | permissive | jcentauri/WatchTogether | 4895660615fa64596959a2fbbe1951793c3c3c43 | 56ce93c9d1bfe1066817efb8cd9ecc1bd95d468e | refs/heads/master | 2020-12-10T07:35:46.110423 | 2020-01-14T07:16:45 | 2020-01-14T07:16:45 | 233,536,813 | 0 | 0 | MIT | 2020-01-13T07:29:40 | 2020-01-13T07:29:39 | null | UTF-8 | Python | false | false | 2,369 | py | import html
from datetime import datetime
import socketio
sio = socketio.Server()
connections = []
usernames = {}
roomusers = {}
@sio.on('connect')
def connect(sid, environ):
# print('connect ', sid, '', environ)
print('connect ', sid)
connections.append(str(sid))
print('connected sockets: ', len(c... | [
"maik@maik.dev"
] | maik@maik.dev |
413bdf4b551bce587c18a97aa35b487551e703a6 | f255423c6a1edd99a37d8b9d66ee481283409fc8 | /vaip/tests/checker.py | aa42f9bb834ce7bf0a043122c8f1572229ecc43e | [
"MIT"
] | permissive | dacav/vaip | d7cf7e9c2c103d9bf842f8b84075e85796c831e2 | 5d0805fa72f27a6510ab4eef5cbc6fd419831e9a | refs/heads/master | 2021-05-07T08:39:40.057226 | 2015-05-21T14:26:23 | 2015-05-21T14:26:23 | 109,367,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,457 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# --- Battery included modules -------------------------------------------
import unittest as ut
# --- Locally installed modules -----------------------------------------
# --- Program internal modules -------------------------------------------
from vaip import (
che... | [
"simgidacav@gmail.com"
] | simgidacav@gmail.com |
f013f19660f721d18499c7b32f7f3c887255dbba | dc08b638bc77f80f3701c3266c61bb8e4b13eed1 | /wakf_movable_property.py | 8e6b8347e4f7e46d4dfce74ad69d56701ce6b31e | [] | no_license | wasimmoosa/wakf_registration | 109c53a2291fdaf23663712e74b7a4b6b27fbf06 | eb8e600a8fb4949ebb6a801f52824e76a24b7bb4 | refs/heads/master | 2020-05-29T11:04:45.948382 | 2014-09-09T03:36:03 | 2014-09-09T03:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | from osv import osv
from osv import fields
class wakf_movableproperty(osv.osv):
"""
Open ERP Model
"""
_name = 'wakf.movableproperty'
_description = 'wakf.movableproperty'
_columns = {
'wakf_id':fields.many2one('res.partner','Wakf Name',ondelete='set null'), ... | [
"hashir.haris@gmail.com"
] | hashir.haris@gmail.com |
0bf6dccc5d8cccda86f91104420aac8eef269d66 | 6f528583d9738cd793b8efbbc4749f5ce049c833 | /01_ultrabasic2_types.py | 29cdb9342e14248d6d0ba475ad6d5a7312359392 | [
"Apache-2.0"
] | permissive | steffenerickson/humanitiesTutorial | f554ab661ce5746df83f0106fae4e14e29df951e | cdac8c381f13d740503237ee91c8969be812e6d4 | refs/heads/master | 2022-04-17T19:26:55.494473 | 2018-10-26T13:56:31 | 2018-10-26T13:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | # The basic data types in Python
# String:
"This is a string"
'This is also a string'
# Integer
1
2
100000
824825
# Float
1.0
2.0
3.14159
-120.3
# Boolean
True
False
# Nonetype
None # This evaluates to False
# This prints to console
print("hello, world") | [
"p.a.vierthaler@hum.leidenuniv.nl"
] | p.a.vierthaler@hum.leidenuniv.nl |
dca151750953a879a4d51fc7b10ce4e4b724f263 | 84aa6f90e5cf5f2e49a9488c1768f2794cbd50db | /student/101022126/HW2/chaos.py | 8fe9c8a917b02d53f2ed509b34618c3ee9470841 | [] | no_license | u101022119/NTHU10220PHYS290000 | c927bf480df468d7d113e00d764089600b30e69f | 9e0b5d86117666d04e14f29a253f0aeede4a4dbb | refs/heads/master | 2021-01-16T22:07:41.396855 | 2014-06-22T11:43:36 | 2014-06-22T11:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 01 13:17:59 2014
@author: Administrator
"""
L = 1000
r = 1
xlist = []
rlist = []
while r <= 4:
rlist.append(r)
x = 0.5
n = 0
while n < L:
x = r * x * (1-x)
n += 1
xlist.append(x)
r = r + 0.01
print xlist
import matplotlib.pyplot... | [
"s101022126@m101.nthu.edu.tw"
] | s101022126@m101.nthu.edu.tw |
bc11f0e21b86f30cf0b8b0dc4ead10fa67491128 | d45afbb7357a58480baa6fa37a9b412160ff517d | /example/dexterity/page.py | 308acbe2fca7f8723cbef940fd06fbb5c2e0270e | [] | no_license | collective/example.dexterity | 13c179554809905d634b4b23cd335072960cedf0 | bfffcdb490b67f48193b1366b89c971736770893 | refs/heads/master | 2023-03-22T11:29:40.313035 | 2011-04-29T23:25:49 | 2011-04-29T23:25:49 | 2,419,281 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | """This interface is used by the example.schemapage type. The interface
below is "real", and you can register views and adapters for it. It
will be populated with schema fields read from page.xml in this
directory when the package is grokked.
It is possible to amend/customise the interface with new fields in addition... | [
"optilude@gmail.com"
] | optilude@gmail.com |
b763f4de500585543a11db4aab3254a452c4eceb | 4cf6c3788085972036f62719538f77c8ad0ffbec | /Django-Python VS/env/Scripts/django-admin.py | 62d9f52d057448054ae4ea0e5e2b040de9ad1852 | [] | no_license | Denis-project/Python-Django-VS | fd87e81955867982020b6fa461d30a2a8dd9aab4 | 9654ad65ee7cc62f978226a31b6c2eac5314287b | refs/heads/master | 2023-02-02T11:21:50.566209 | 2020-11-15T10:24:56 | 2020-11-15T10:24:56 | 307,746,135 | 1 | 0 | null | 2020-12-14T17:21:54 | 2020-10-27T15:33:04 | JavaScript | UTF-8 | Python | false | false | 182 | py | #!D:\Django-Python\Django-Python VS\Django-Python VS\env\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"xapples.size@gmail.com"
] | xapples.size@gmail.com |
fea2b58017d84e678eb253c34a82de3e34008733 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2618/60760/320379.py | 98f57acd02e0cec08c8c13985ad1816e3642c974 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | print(1)
print(2) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
20acb60db8694a66ca1b7869ed35e2c28f6b586c | 550292bab2cfb4a727a683cd9c47e137473395a0 | /article/models.py | f9a40d3a30eafbe056e1030ae5bf7f609dfd5f3c | [] | no_license | ProgerB/NewsSite | e7bce3bd7e811867bb844759cd05b992cf92a125 | fadd2d65694f7d399bb6007b33634518dbc629b3 | refs/heads/master | 2023-01-24T23:40:58.185642 | 2020-12-08T14:22:24 | 2020-12-08T14:22:24 | 285,798,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField
from django.utils.safestring import mark_safe
class Category(models.Model):
STATUS = (
('True', 'Mavjud'),
('False', 'Mavjud emas'),
)
title = models.CharField(max_length=50)
keywords = models.Char... | [
"xurramovbahrom@mail.ru"
] | xurramovbahrom@mail.ru |
5af037b3c47d5183a68d74f33da7344d8416f2b3 | 7acd7abdef66c6569a26185d939b7438c1aae164 | /listoflists.py | bd4c0fb6d8e637d599410170ad939e96f66cfe37 | [] | no_license | gabriellechen-nyu/Python-INFO1-CE9990 | 3a2a5738862a6ad64920c92e8725546d592aae5c | 00dffa49bdd10ac83c897833b9fb52bcbfee80aa | refs/heads/master | 2020-04-05T14:08:06.572428 | 2017-08-12T16:16:06 | 2017-08-12T16:16:06 | 94,785,074 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | """
listoflists.py
Gabrielle Chen
Homework 5
July 13, 2017
"""
import sys
import csv
import urllib.request
url = "https://data.cityofnewyork.us/api/views/xx67-kt59/rows.csv?accessType=DOWNLOAD"
try:
lines = urllib.request.urlopen(url)
except urllib.error.URLError as error:
print("urllib.error.URLError", err... | [
"noreply@github.com"
] | gabriellechen-nyu.noreply@github.com |
f769891c4dc77db751e1f6ea84e4314a12f1373f | bafc56f547e33ddaffbd338556fb0277938cf5b1 | /LAB4/prac42.py | 58a03d601efc56d9c8e748bc89c9554de0d48647 | [] | no_license | LazarusCoder/Problem_Solving_with_Python | 511a56fd7a76bcecbaec0c37073eeecb3385508c | c453f8f8e8f692c611b887e703a6d573921a75af | refs/heads/master | 2022-12-31T12:58:48.601469 | 2020-10-01T08:07:33 | 2020-10-01T08:07:33 | 265,870,343 | 0 | 2 | null | 2020-10-16T14:12:22 | 2020-05-21T14:30:33 | Python | UTF-8 | Python | false | false | 344 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 13 15:20:02 2020
@author: Admin
"""
az=set("abcdefghijklmnopqrstuvwxyz")
getstr=input("Enter the String")
getstr=getstr.replace(" ","")
if((len(az)-len(set(getstr)))==0):
print("The String is Pangrams")
else:
print("The String is Not Pang... | [
"rudranshjani18@gnu.ac.in"
] | rudranshjani18@gnu.ac.in |
ed354666fd6dc1e0cae906c5773d39328b2816a1 | adb391d43e88ba3c1d7fe755f3876163874c3be4 | /Script.py | 0115695afaba164c4d2124b9fe68f053109b132c | [] | no_license | sundar1988/MasterThesis | 6b55e8eb41bdf358f9813b33c5d95d456a0899c6 | 1704c9eadc05dda65c400578d8a3f6bc87a2d119 | refs/heads/master | 2021-01-20T19:45:48.106382 | 2016-06-26T11:37:38 | 2016-06-26T11:37:38 | 61,986,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,150 | py | # -*- coding: utf-8 -*-
##------------------------
##Import
##------------------------
import web
#import sys
import RPi.GPIO as GPIO
import time
import drivePWM # this module is design to set PWM
#import pyfirmata
import time
#from Adafruit_I2C import Adafruit_I2C
#from time import sleep
#import math
##-------------... | [
"sundar shrestha"
] | sundar shrestha |
719747e9fd97b7338adfa4bb012c7e8acd5be9d4 | 6213d20df981338bd0a0638190b93aeaa2356088 | /adminscherm.py | faa346a5b30de1615c8b642058893e48d8b6d568 | [] | no_license | Pengelz/thuisbioscoop | 3130ee9bd6cd6235f81ee5355fe7f6d4089addc9 | 73682d1a84cab0b3dc7df63ffd4bbafffe5d3567 | refs/heads/master | 2021-01-10T16:06:46.205024 | 2015-10-30T11:32:51 | 2015-10-30T11:32:51 | 44,962,794 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | from tkinter import *
from csv import DictReader
import datetime
def adminscherm(id):
window = Tk()
window.geometry('500x200')
def getUsername(id):
username = ""
with open('database/users.csv') as csvfile:
reader = DictReader(csvfile)
for row in reader:
... | [
"mbeunk@live.nl"
] | mbeunk@live.nl |
ed58aea99de7d9a14d3c047e505b21ef18ed34ae | b39ec77a8f5a5779edcecf5a09c39224472fd139 | /Clase06/propagar_6.1.py | 02226f7ba447903ba4f57b208c3d319866601321 | [] | no_license | GonzaloMonteodorisio/ejercicios-python-unsam | 76b6288491ccba8f44b819c26bed4811268e995e | 37ba16197107717a4c582eb552175e1c981c286b | refs/heads/main | 2023-07-28T07:18:10.178029 | 2021-09-15T05:42:46 | 2021-09-15T05:42:46 | 406,627,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | def propagar_al_vecino(l):
modif = False
n = len(l)
for i,e in enumerate(l):
if e==1 and i<n-1 and l[i+1]==0:
l[i+1] = 1
modif = True
if e==1 and i>0 and l[i-1]==0:
l[i-1] = 1
modif = True
return modif
def propagar(l):
m = l.copy()
... | [
"gonzalomonteodorisio@gmail.com"
] | gonzalomonteodorisio@gmail.com |
9c516dad1b8574df54a918eabd85742abeef70de | 2beff20ee54add8be48e137d175101c6323c1455 | /console/models.py | da3b73c8c57a34a5934e66c9a9a013124e8f0dcb | [] | no_license | max7patek/spoticode | 1d7581f1cec5025b13ce7015c24bc898285f3d28 | 9e4e5e1307722f504680b4f1bbfb5dbb658631c9 | refs/heads/master | 2020-04-26T11:13:42.964371 | 2019-03-05T01:48:37 | 2019-03-05T01:48:37 | 173,509,662 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from django.db import models
import allauth.socialaccount.models as authmodels
#print(dir(authmodels))
class SavedProgram(models.Model):
user = models.ForeignKey(authmodels.get_user_model(), on_delete=models.SET_NULL, null=True)
script = models.TextField(null=True)
name = models.TextField()
class Meta... | [
"max7patek@gmail.com"
] | max7patek@gmail.com |
017c76ac669280e38247d059908c1b41444fef25 | 13592686dbc4e64d98183e2c7a950f28c3e62638 | /clases/ciclowhile.py | a20321562318f9a101f3b0fedf81d3ed46a9c281 | [] | no_license | weincoder/introprogramacion | 33e78ec08ff3f2c2e543e060ab0c759e26726082 | 03daaef00d14b9c2c7c7f0a971679a21a08e3d9e | refs/heads/main | 2023-04-25T00:50:29.087197 | 2021-05-20T12:43:40 | 2021-05-20T12:43:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | #----Mensajes----#
MENSAJE_SALUDAR = 'Bienvenido!! te apoyaré ahorrando'
MENSAJE_AHORRO = 'LLEVAS AHORRADO ...'
PREGUNTAR_VALOR_CPU = 'Cuanto vale el pc que deseas? : '
PREGUNTAR_CUANTO_TIENE = 'Cuanto llevas ahorrado? : '
#---Entradas---#
print(MENSAJE_SALUDAR)
valor = float (input(PREGUNTAR_VALOR_CPU))
ahorrado = fl... | [
"danielherresan@gmail.com"
] | danielherresan@gmail.com |
37e98bd78155495d5c6dc329da0a8a2a30af3ac3 | 4288836ca203930f5bb53b6b078d201561774857 | /lib/constants.py | 3db4c3da08ec4a8803b9a0b403a3fb2028353bc4 | [
"MIT"
] | permissive | HackMyChurch/aelf-dailyreadings-server | 92e9ab43530077390ceb8f703b8a2f18bf004b5b | 0b65a31219f0e72f39c6f4c8c8016bb5a677dfe6 | refs/heads/master | 2022-03-15T07:48:09.537698 | 2022-03-06T22:48:37 | 2022-03-06T22:48:37 | 60,039,579 | 8 | 4 | null | 2019-07-03T08:42:00 | 2016-05-30T21:21:37 | Python | UTF-8 | Python | false | false | 1,820 | py | # -*- coding: utf-8 -*-
import os
CURRENT_VERSION = 66
# Base URL / Paths
AELF_JSON="https://api.aelf.org/v1/{office}/{year:04d}-{month:02d}-{day:02d}/{region}"
AELF_SITE="http://www.aelf.org/{year:04d}-{month:02d}-{day:02d}/{region}/{office}"
EPITRE_CO_JSON="http://epitre.co/api/1.0/ref/fr-lit/{reference}"
ASSET_BA... | [
"jt@yadutaf.fr"
] | jt@yadutaf.fr |
1f1be68bb97314811a10391916586bfb52b4587e | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_algos/gbm/pyunit_generate_synthetic_GBM_data.py | 69e8d4b6e6eb13aa8f86737692e0663c459a57fe | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 3,436 | py | import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.gbm import H2OGradientBoostingEstimator
import numpy as np
# This test will generate synthetic GBM dataset using a randomly defined GBM trees. If given to
# a GBM model, it should be able to perform well with this... | [
"noreply@github.com"
] | Winfredemalx54.noreply@github.com |
52c7d93fc07ed9726c863d7145077f3d1e1d0e95 | e952ddf766fe5374105f242937439b925cdbb82b | /proj3py/map.py | e71416f7c8101b268c1fbf53202b695ca1bfc2c3 | [] | no_license | Raenbows/Python-p3 | 8a7155be1b594fab5714c175cfbc5ad33c710096 | 1e0cb070649a6d6040357b33ffe6bd68c3f175b2 | refs/heads/master | 2016-09-06T19:18:53.875706 | 2015-03-08T04:58:41 | 2015-03-08T04:58:41 | 31,820,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | #map.py
#Rachael Byrkit rmb11d
from random import randint
#0 : empty
#1 : player
#2 : enemy (pyro)
#3 : trap (backstab)
#4 : backpack (intel)
class Map:
def __init__(self):
self.map=[[0 for x in range (5)] for x in range (5)]
def setMap(self):
#set player locationn
self.map[2][0]=1
... | [
"rbyrkit@gmail.com"
] | rbyrkit@gmail.com |
83b141bc76063ab75f1362836c7336ccb0d281c8 | 54ab3131f6198aacc8238021fbaefc20bf559168 | /dbpopfeb3.py | 1775c17ba27a1571a4dd3c0b726379b604d0466f | [] | no_license | mygethub-99/project3submit1 | ffe5330b3ae7cbd0c0c2cc6cdaeb30dbd1869e42 | 4617ce745687ddffa5b85aed94e2b14be41d6bb2 | refs/heads/master | 2021-01-10T06:53:38.806198 | 2016-02-27T13:29:37 | 2016-02-27T13:29:37 | 51,455,093 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,578 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from feb32015db import Restaurant, Base, MenuItem, User
engine = create_engine('sqlite:///restaurantmapped.db')
# Bind the engine to the metadata of the Base class so that the
# declaratives can be accessed through a DBSession instance
Base.... | [
"tomakeitcount@gmail.com"
] | tomakeitcount@gmail.com |
b374fb8dd5c5ce3c6e5a407d2029560a72675aae | 8d5a9930ccca4631a6d049449fc6c6edc8847a9a | /FlaskWebProject1/FlaskWebProject1/Models/LocalDatabaseRoutines.py | fde153d77616b16c3d460a37a542bf536ebb230b | [] | no_license | JonathanLevy10/FlaskWebProject1 | ee43ee2bb78ffa32a30a650402e73c0e1f6cd6ef | f783c12afa57b1e65b80351246cf40ecb29cf92c | refs/heads/master | 2022-07-25T03:11:57.623536 | 2020-05-14T18:16:48 | 2020-05-14T18:16:48 | 259,357,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | from os import path
import json
import pandas as pd
def create_LocalDatabaseServiceRoutines():
return LocalDatabaseServiceRoutines()
class LocalDatabaseServiceRoutines(object):
def __init__(self):
self.name = 'Database cron jobs'
self.index = {}
print(path.dirname(__file__))
se... | [
"jonathanlevy100@gmail.com"
] | jonathanlevy100@gmail.com |
97d8869524ef83d60dca7a4088e49759caefe61f | 0c072d8e09b6affefacd7f551539161836be68a0 | /app.py | b8c64f6cead3cee4d38a88043ecfe626c40a724c | [] | no_license | AlexandrDemin/python-selenium-parser | a21a1b09483d6de4f053ea5c35794f82d4cc7328 | 08d3abe8f1258c162c990d0241280cd9f5ae01f8 | refs/heads/master | 2020-07-26T08:16:40.015962 | 2019-09-15T12:07:04 | 2019-09-15T12:07:04 | 208,587,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | from logic import *
# Очистка логов, чтобы не разрастались
discardOldLogs(10000)
# Чтение конфигов
parsers_config, subscriptions_config = readConfigs('./parsers-config.json', './subscriptions-config.json')
writeLog({
'time': datetime.now().strftime(getDateFormat(True)),
'message': "Старт"
})
# Запускаем Хром... | [
"hseoanalytics@gmail.com"
] | hseoanalytics@gmail.com |
2e649e38f08b2d73a928df18881ff569ea42cb6e | 59061e3699f3a181cba344360ed3cf89db88763b | /sandbox/uTools/dash/data_viewer.py | ad7aa813976ea8ddf3299c490a8cf27d30d50f83 | [
"MIT"
] | permissive | giecli/unifloc | 4a4bb8cd0b37d5905eab5a367e6b5ccb324d4df8 | f1b97e144a0292d43e341cd3b3552ee8fd8713eb | refs/heads/master | 2022-06-27T10:40:47.821344 | 2020-05-11T16:47:20 | 2020-05-11T16:47:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,314 | py | """
Веб-просмотрщик графиков. Открывается в браузере. Для построения графиков датафреймов по временному индексу.
Считывает все файлы .csv которые лежат в dir_path и строит графики всех колонок от временного индекса.
Можно добавить до 6 графиков.
К каждому графику идут 2 элемента управления:
- 1-ый отвечает за выб... | [
"oleg.kobzarius@gmail.com"
] | oleg.kobzarius@gmail.com |
5764a65bdcda6024e0ed844fb8b8f999255b8dc7 | b43103229a5fc3c49285818881eea7c42b8021c2 | /YouTube/untitled.py | 0f980ba263b37c670de858c3ac23326e6f6d2be4 | [] | no_license | AlienWu2019/Alien-s-Code | 34eaf60ae7ada4810c3564cee1a25371c1c3f7ad | 983f68d13a81e6141779d26c84e371b2bf1d2e0d | refs/heads/master | 2020-05-07T18:42:03.723993 | 2019-05-05T14:32:49 | 2019-05-05T14:32:49 | 180,777,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(... | [
"q582946945@gmail.com"
] | q582946945@gmail.com |
bd68f8041117d92eb553df754224acbd6b160e37 | a4440a990b86a239a30b4295661ca588db3f5928 | /venv/bin/pip2.7 | b11f3cf45970c225a164150b0c3ba31a8c289eb2 | [] | no_license | YangXinNewlife/MachineLearning | fdaa1f75b90c143165d457b645d3c13fee7ea9a1 | 196ebdc881b74c746f63768b7ba31fec65e462d5 | refs/heads/master | 2020-04-05T00:10:25.050507 | 2019-06-10T03:44:33 | 2019-06-10T03:44:33 | 156,386,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | 7 | #!/Users/yangxin_ryan/PycharmProjects/MachineLearning/venv/bin/python
# -*- 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())
| [
"yangxin03@youxin.com"
] | yangxin03@youxin.com |
1e7d4503de1ff9096dd99d0ae21546a1e45e192d | ed6618caf0ab52e468a490b9541cd62d72baeef9 | /tests/ArgumentPassingTests.py | 76709382d6ea18bebdc3212ab0cce21bf60712ea | [
"Unlicense"
] | permissive | threadly/python-threadly | 3b51bc1a38a579f137c82cfad97c45c1dc5ca3a6 | b0620d474c5d349fa75f2915fbe3035a9523225b | refs/heads/master | 2021-01-17T17:22:59.069830 | 2019-08-20T19:49:57 | 2019-08-20T19:49:57 | 18,851,014 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | import threadly, time, random
import unittest
class TestAugumentParsing(unittest.TestCase):
def arguments(self, arg1, key=None):
self.assertNotEqual(arg1, None)
self.assertNotEqual(key, None)
self.arg1 = arg1
self.keys = {"key":key}
def test_keyTestExecute(self):
self.arg1 = None
se... | [
"lwahlmeier@gmail.com"
] | lwahlmeier@gmail.com |
8fb8a742cc9a4cd0b6f9757c2cf563844e3b7dba | 63082cd1d0b9bb7e5dc8aca40e447a207f91ff6a | /tests/test_login.py | d5893c578eaaf7abc0628261e8d792951939ca29 | [
"MIT"
] | permissive | MPEDS/mpeds-coder | ec8ab42d874b1104082b26ca4158c8304ed0b189 | 5fb22ef3fd9e45d5f17a20d436f4813b6c63dd0c | refs/heads/master | 2022-09-30T23:41:32.876632 | 2022-09-15T20:57:37 | 2022-09-15T20:57:37 | 51,221,179 | 19 | 3 | MIT | 2021-08-30T20:46:51 | 2016-02-06T20:47:04 | Python | UTF-8 | Python | false | false | 1,327 | py | import csv
import unittest
from selenium.webdriver import Firefox, FirefoxOptions
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
class LoginTest(unittest.TestCase):
opts = FirefoxOptions()
opts.add_argument("... | [
"alex.hanna@gmail.com"
] | alex.hanna@gmail.com |
63cde813e382083838bf95c063efdad27061a475 | 821f403a3afc9055d40893eca033c369a4c3831e | /Medium/No106i.py | 7aea7f5abcf3edf0b212fbd8f021e53b5dee52af | [] | no_license | kikihiter/LeetCode2 | 29f91b6992a01ba23e7da04b2b2c862410cc563b | 7167f1a7c6cb16cca63675c80037682752ee2a7d | refs/heads/master | 2023-05-01T03:45:44.482932 | 2021-05-19T13:12:16 | 2021-05-19T13:12:16 | 277,283,525 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def buildTree(self, inorder, postorder):
"""
:type inorder: List[int]
:type postorder:... | [
"noreply@github.com"
] | kikihiter.noreply@github.com |
f3a6a0ba64b51db85a8cfef0164e1771578398eb | c91e96406016aa36aea19184ac1a18e5b35dac90 | /api/slack.py | efcc173acfed2c164b9fe2a54d986c226882ff2e | [] | no_license | pdelkowski/pyslacker | dc0c34ed353357eff7abe86978ce5b2e5b620c23 | bd33eec683d6b1483c9355be5ea4a188d2670fb6 | refs/heads/master | 2021-01-20T19:34:42.499805 | 2016-08-22T17:21:55 | 2016-08-22T17:21:55 | 62,735,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,143 | py | import websocket
import thread
import threading
import requests
import json
from utils.logger import AppLogger
from models.user import UserManager
from models.room import RoomManager
from models.message import MessageManager, Message
from models.exception import UserNotFoundError
class SlackApi:
GET = 'get'
... | [
"p.delkowski@gmail.com"
] | p.delkowski@gmail.com |
a27f8a589fcb294a628b2ce89906de9bf3a88c12 | c2729192562355162c43c44266b0eef282cfcfa4 | /mysite/mysite/settings.py | 97f0872832ac8ba9e26d43925067db6c6db1afce | [] | no_license | lamngocchien/history | 1d678e0fe9a9e6441220c88c1bfc9e9f5457440c | 411e1bc18d644049cd0390b2b6ac52a1647b10a6 | refs/heads/master | 2020-04-14T04:57:20.481422 | 2019-01-01T17:48:51 | 2019-01-01T17:48:51 | 163,650,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,927 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"lamngocchien@gmail.com"
] | lamngocchien@gmail.com |
2ae03a8811d0a424c3f3e1ee310d19da161a3b46 | cb60befefb7f6b9c8cfe3a75d1274190946fe20c | /1_Nguyen_Trong_Thiep/Ex 1/1.6.py | 4ad3ed570fad85595e4c08e8d0e6ce80e11b9a8d | [
"MIT"
] | permissive | thephong45/student-practices | 06da78c1cd677559cb1bb00ade1f849c3a2d4cf1 | 50704cedce5d893bfa47b4bf6d228f974d0d5768 | refs/heads/master | 2022-11-20T07:31:57.478309 | 2020-07-17T11:45:26 | 2020-07-17T11:45:26 | 279,014,002 | 0 | 0 | MIT | 2020-07-12T07:25:49 | 2020-07-12T07:25:48 | null | UTF-8 | Python | false | false | 915 | py | # Write a guessing game where the user has to guess a secret number. After every guess the program tells the user
# whether their number was too large or too small. At the end the number of tries needed should be printed. It counts
# only as one try if they input the same number multiple times consecutively
import ra... | [
"thienphong183@gmail.com"
] | thienphong183@gmail.com |
48da51e760e6da59f32febf9cde6a947531baee8 | aa4189aa0eef91371be009ee2c8bcb31aeabcde9 | /Lib/BoxEntity/BoxAddress.py | 467291260e323a98d5e783e22f9c00859ac513e4 | [] | no_license | break11/AutoStorage | fd2ac6a50e3223d2ec8d5d4ec0cb3f7d9c491630 | a336b7ea0fa7e41a8c7410a4ab6e37530477b618 | refs/heads/transporter_line | 2023-04-07T03:18:56.273261 | 2020-04-15T13:52:43 | 2020-04-15T13:52:43 | 264,171,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | from enum import auto
from Lib.Common.BaseEnum import BaseEnum
from Lib.Common.BaseTypes import CСompositeType
import Lib.GraphEntity.StorageGraphTypes as SGT
from Lib.Common.StrConsts import genSplitPattern
MDS = "="
MDS_split_pattern = genSplitPattern( MDS )
class EBoxAddressType( BaseEnum ):
OnNode = auto()
... | [
"break1@yandex.ru"
] | break1@yandex.ru |
035293505b05a1c0ee88e5801f7e709f5f12634d | e03f502312775b01b41ea7c6f5cb3dfbafdb8509 | /orders/migrations/0007_auto_20180821_2324.py | 4e2f107876fafa52fbf630f534026efeac00a8f4 | [] | no_license | Grechanin/Misteckiy-DjangoRest-React-Redux | e223e89310362b8c21e30c8c669d4e170d232db6 | f05eb50a6aec72432716672294df81c3dc939ddd | refs/heads/master | 2020-04-13T10:58:17.931584 | 2019-02-18T09:21:54 | 2019-02-18T09:21:54 | 163,159,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-08-21 20:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0006_auto_20180816_2353'),
]
operations = [
migrations.AlterField... | [
"grechanin@gmail.com"
] | grechanin@gmail.com |
330c2266c59aa5b0280dcb87f1f900fadd9d71ee | 9ca90771f4c0002367909dfac6a8316afb77cbbb | /Python/Strings/MergeTheTools.py | e59a42fccab75893f65bd549751948ffdd3c61f1 | [] | no_license | jugal-chauhan/Hackerrank-Solutions | f4892562ba6ee2f9bdcc0ac219f5fb8f2befaad8 | 069bfe075f830fa5424cedf87a39571ea3233a08 | refs/heads/master | 2022-10-17T18:13:05.142405 | 2020-06-12T06:37:17 | 2020-06-12T06:37:17 | 262,621,630 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # @author: Jugal Chauhan
def merge_the_tools(string, k):
# your code goes here
n = len(string)
for i in range(0, n, k):
dic = {}
res = ""
for c in string[i:i+k]:
if c not in dic:
dic[c] = 1
res += c
print(res)
if __name__ == '__... | [
"jugaldc2000@gmail.com"
] | jugaldc2000@gmail.com |
8192c3927678dfacb700c871e74e68ba1dcf73e3 | ec54f4d79af7f1833246d2c65b82047a04777f61 | /9_2_Python_RPC/myled_write.py | fa0a5f163894dc5f951febfdf7c37a196f566808 | [] | no_license | 106061221/mbed09 | e5d1d9b1eaac4b8d9f4d0fc48e655bedc246e4f0 | 6c5d9e664e4b5145e6c56b96909bc912ba2fa004 | refs/heads/master | 2022-07-17T15:59:15.434661 | 2020-05-19T19:32:27 | 2020-05-19T19:32:27 | 265,251,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import serial
import time
serdev = '/dev/ttyACM0' # use the device name you get from `ls /dev/ttyACM*`
s = serial.Serial(serdev)
s.write(bytes("/myled/write 1\r", 'UTF-8'))
line=s.readline() # Read an echo string from K66F terminated with '\n' (pc.putc())
print(line)
line=s.readline() # Read an e... | [
"rio714tw@gmail.com"
] | rio714tw@gmail.com |
91d6925dede4b4de9e1b6bcceaa9f0f14a515b34 | c5789b6576ac914ce7269834b6a288ad8fe418a0 | /TaskSets/filtering_task_set.py | d0f9252754e47559c8f3a74b9271c66804008764 | [
"Apache-2.0"
] | permissive | utkarsh7236/SCILLA | 3ebdd2cef7dc65061e4ae334a0c6b50efc052aa7 | e11e4d753823ad522a1b3168283b6e6ffe3ea393 | refs/heads/master | 2022-08-03T18:06:01.905309 | 2020-05-27T08:29:07 | 2020-05-27T08:29:07 | 264,383,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | #!/usr/bin/env python
from TaskSets import TaskSet
#====================================================
class FilteringTaskSet(TaskSet):
def __init__(self, settings):
TaskSet.__init__(self, settings['name'])
self.settings = settings
self.settings['task_type'] = 'filtering'
self.task_type ... | [
"utkarsh7236@gmail.com"
] | utkarsh7236@gmail.com |
af88d0dccf501fa8929fa52b4934f51aba2e0097 | 2afa9eb1e2f974600c9fe1cc78dd20a6aed88369 | /cv/network.py | ba29bebc0115d1d3c780c942d7236be4ef5a362b | [] | no_license | Coldog2333/worker | 1ea4d960cae3ae5e8b27c403c215ef20e9be6af4 | 4e5815b970f2b2ff6a5bc2ee9a95f0e3118e79a3 | refs/heads/master | 2023-04-01T06:08:55.075097 | 2021-04-15T22:30:48 | 2021-04-15T22:30:48 | 358,408,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,137 | py | import torch
import torch.nn as nn
import torch.utils.data
from cv.data_provider import load_glove_embedding, Flickr_Dataset
from cv.config import *
import torch.nn as nn
import torch.utils.model_zoo as model_zoo
class AlexNet(nn.Module):
def __init__(self, num_classes=1000, output_feat=False):
super(A... | [
"ubuntu@localhost.localdomain"
] | ubuntu@localhost.localdomain |
b934abe1ec9e66707f33db0e578efa609569191a | a80e25fda0f0ff496136af48e858b897e6b22b7a | /SVPV | 13708965340b19ca0b351ba26ca755aa65d46abd | [
"MIT"
] | permissive | Linhua-Sun/SVPV | 98a7f16f0fcdd6670bf9a41d2331fdf673dd5ec9 | d1c14842dc9dbcf43eb233fc9d55dcee3b30d228 | refs/heads/master | 2021-01-21T10:13:25.734026 | 2017-02-20T02:26:04 | 2017-02-20T02:26:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,204 | #!/usr/bin/env python
# # -*- coding: utf-8 -*-
# """
# author: Jacob Munro, Victor Chang Cardiac Research Institute
# """
from __future__ import print_function
import sys
import os
import re
from os.path import expanduser as expu
from svpv.vcf import VCFManager, BCFtools
from svpv.sam import SAMtools
from svpv.refgen... | [
"j.munro@victorchang.edu.au"
] | j.munro@victorchang.edu.au | |
4a8fa2aaff8f385966cf031d5fcfd0ab012dcd2e | b943573bc5591cc99c3dc902cf0d2c5c4dd8a84d | /sokoapp/deals/views.py | 499962adc60216ffb63bc316503953ccb34906cd | [
"MIT"
] | permissive | Mercy-Nekesa/sokoapp | b4141f51c430a3ac2378bbb906ccecaa8bef4fc7 | 6c7bc4c1278b7223226124a49fc33c5b8b6b617a | refs/heads/master | 2020-06-04T16:49:47.909730 | 2014-11-14T09:28:01 | 2014-11-14T09:28:01 | 26,276,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | import datetime
from django.shortcuts import render_to_response
from django.template import RequestContext
from deals.models import Deal, DealForm
def home(request):
today_datetime = datetime.datetime.now()
year = today_datetime.year
month = today_datetime.month
if (month >= 1) and (month <=9):
month = '0' + st... | [
"hungaiinc@gmail.com"
] | hungaiinc@gmail.com |
8de870f3af92cf92143f9d5164aeaa2dcdb4bc57 | baf9b3674cedea6ebf75f5b0f3618528bf385bb3 | /attibutes/apps.py | 77d00b6eb4a087fe9cbb6a96d52d148b7165a69f | [] | no_license | ElfKnell/spiridonis | 3377f73a23802017e3f97f4601bc3f8541c5cb0b | 95cb29f02ec9d0745b68520e520f80a45a618dca | refs/heads/master | 2023-07-06T15:39:09.985267 | 2021-08-17T11:59:12 | 2021-08-17T11:59:12 | 385,142,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django.apps import AppConfig
class AttibutesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'attibutes'
| [
"akyrych84@gmail.com"
] | akyrych84@gmail.com |
74f7d3abd0651251a5f4df57b6ba25d86f69998d | 4cca59f941adce8a2d71c00c0be5c06857f88dcc | /snisi_maint/management/commands/fix_61_meta_numbers.py | 0d0520383b86d61f2a23a6f0944abc86ea74c739 | [
"MIT"
] | permissive | brahimmade/snisi | 7e4ce8e35150f601dd7b800bc422edec2d13063d | b4d0292b3314023ec9c984b776eaa63a0a0a266f | refs/heads/master | 2023-05-07T19:04:04.895987 | 2017-12-29T18:58:22 | 2017-12-29T18:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
from django.core.management.base import BaseCommand
from snisi_core.models.Periods import MonthPeriod
from snisi_co... | [
"rgaudin@gmail.com"
] | rgaudin@gmail.com |
f90bf58437dfe1b858c104b4f6836d327abe2bcb | e87a2da813838195f0b58e672e92e40724072af1 | /conf.py | 720ef966dee2efe771d6d888cf87609be0a7ac9c | [] | no_license | JhymerMartinez/SEDD_Manual_Del_Estudiante | 9c7e4301c75b6c14e0f8fa245cc582ac93cd8a9c | b2517fd3c81dff7b9efd553ff645e326aa69b778 | refs/heads/master | 2021-01-25T12:14:37.061368 | 2014-03-24T21:42:35 | 2014-03-24T21:42:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,847 | py | # -*- coding: utf-8 -*-
#
# SEDD_Manual_De_Usuario documentation build configuration file, created by
# sphinx-quickstart on Fri Dec 13 15:30:07 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenera... | [
"jamartinezg@unl.edu.ec"
] | jamartinezg@unl.edu.ec |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.