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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e956d55a10ef8a9d0c043a3e8728f2bf2bc2c2b1 | e82a624f09091868fb4a6a9e7e8654e9f7c06cd3 | /scripts/calcElectronEnDiss_todo/calcElectronEnDiss.py | 126cf555b617cfaa10f62ac7e697171bbb0d8df7 | [] | no_license | mj596/blazarpp | 57b3a46f738c44e27a8b0a89d0509cd0ecf61132 | af819f153cb69843988caea3560a78d9d45d9bbe | refs/heads/master | 2020-05-17T22:51:46.214700 | 2014-12-15T15:39:08 | 2014-12-15T15:39:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | import numpy as np
import sys
import math
import matplotlib.pyplot as plt
def read_data( filename ):
x=[]
y=[]
file = open(filename,'r')
for line in file.readlines():
x.append(float(line.split(" ")[0]))
y.append(float(line.split(" ")[1]))
file.close()
return np.arra... | [
"janiak.mateusz@gmail.com"
] | janiak.mateusz@gmail.com |
714f1d9dbb8bba30c389fbb980b5f7c47ddc0745 | 642ea5b46ef6796d8c965471862dcd0743b55c75 | /DataValidation/myapp/migrations/0006_auto_20180310_1636.py | b6d59b663961f40c57ec6edb300b949e425d5472 | [] | no_license | TanjillaTina/OnlineEventRegistration | 1ada50fbc15f3eaed192ffccb9941c30e14fff31 | 1965f9a5702185c7da5bfd82d124718fa4d02a22 | refs/heads/master | 2021-04-06T13:11:58.961533 | 2018-03-14T13:27:32 | 2018-03-14T13:27:32 | 124,711,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Generated by Django 2.0.2 on 2018-03-11 00:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0005_auto_20180310_1547'),
]
operations = [
migrations.AlterField(
model_name='registrationinfo',
name='rol... | [
"tanjilla.tina@gmail.com"
] | tanjilla.tina@gmail.com |
2cd8151b1c207d57fc29dedffec25f26e40e6006 | 14a61dcb8a2f0d64b9712806d0fb2563f98d9dad | /data_preprocess/dump_query2file.py | bd77ec9d659071cbf49ee006b7decebc3e364dfa | [] | no_license | wang9702/Bert_MRC_NER | 418c380a68dc3a6f9457157267967120b5bc0815 | e4644f914ea5c6ebec433ab0f6313f46ef97f02a | refs/heads/master | 2023-06-14T03:09:50.899856 | 2021-07-04T05:52:13 | 2021-07-04T05:52:13 | 382,774,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: Xiaoy LI
# description:
#
import os
import json
msra = {
"default": {
"NR": "ไบบๅๅ่ๆ็ไบบ็ฉๅฝข่ฑก",
"NS": "ๆ็
งๅฐ็ไฝ็ฝฎๅๅ็ๅฝๅฎถ,ๅๅธ,ไนก้,ๅคงๆดฒ",
"NT": "็ป็ปๅ
ๆฌๅ
ฌๅธ,ๆฟๅบๅ
ๆดพ,ๅญฆๆ ก,ๆฟๅบ,ๆฐ้ปๆบๆ"
},
"labels": [
"NS",
"NR",
"NT"
]
}
ace2005 = {
"default": {
... | [
"862741851@qq.com"
] | 862741851@qq.com |
a7535a3b8f5a5d17e638eec987a396de31a54613 | 27331020ff20d00f4e875f6a20ce0ca1c906da43 | /Portpolio/Dog_Cat/Model_mobilenet/renewal/util.py | 80c8a5f29d2770318e2baed63ce22103a91d2f74 | [] | no_license | MOOSUNGPARK/source | 2ac7f24766c953cfafc632eb2812f713aa708944 | 50b2d169d5c64778d818decd564045d7f8e6c304 | refs/heads/master | 2021-01-20T14:29:02.015764 | 2019-01-09T06:37:35 | 2019-01-09T06:37:35 | 90,616,630 | 1 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | import numpy as np
from PIL import ImageGrab
import Portpolio.Dog_Cat.Model_mobilenet.renewal.config as cfg
# http://leechanho.tistory.com/16
# class CSV_reader():
# def __init__(self, sess):
# self.sess = sess
# self.batch_size = cfg.BATCH_SIZE
#
#
# def read_batch_data(self, file_list):
# ... | [
"0911godqhr!"
] | 0911godqhr! |
932542486756cd7d77a5296f2a32f02be8588538 | 3d6de3a8d1d0d8a117b6acc60ea495760eeade2a | /202-SP-Project1c/Token.py | 34bb2cfb5f345695fe2538f2d78ef3155751e808 | [] | no_license | inddoni/ssu-system-programming | 59c6c6ed6c327f183f920fc2be33447ff6527adf | bd2e9ab9b5c8916ab5380c6d86692d3168e66b16 | refs/heads/master | 2022-10-11T00:04:04.618521 | 2020-06-08T14:49:23 | 2020-06-08T14:49:23 | 257,866,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | from nltk.tokenize.regexp import RegexpTokenizer
from InstTable import *
from LiteralTable import *
from SymbolTable import *
from TokenTable import *
'''
* ๊ฐ ๋ผ์ธ๋ณ๋ก ์ ์ฅ๋ ์ฝ๋๋ฅผ ๋จ์ด ๋จ์๋ก ๋ถํ ํ ํ ์๋ฏธ๋ฅผ ํด์ํ๋ ๋ฐ์ ์ฌ์ฉ๋๋ ๋ณ์์ ์ฐ์ฐ์ ์ ์ํ๋ค.
* ์๋ฏธ ํด์์ด ๋๋๋ฉด pass2์์ object code๋ก ๋ณํ๋์์ ๋์ ๋ฐ์ดํธ ์ฝ๋ ์ญ์ ์ ์ฅํ๋ค.
'''
class Token:
"""
* ํด๋์ค๋ฅผ ์ด๊ธฐ... | [
"choinj97@gmail.com"
] | choinj97@gmail.com |
e28f1411b33d5b0a6a08aaec7c2d11dd51c282f9 | 28547f2d0f833fd35d98e93467b4b9396f26586d | /tickets_app/models.py | 51935632de34b26325a65f897ccd3d24545f0de2 | [] | no_license | MariamKipshidze/tickets | a46beaa33ea144c0913e39d1c89f3a7ef3dc8159 | 94e33a09cd69d13840c7c30e7f008c5bc6913934 | refs/heads/master | 2023-04-19T08:59:43.507926 | 2023-04-07T08:05:52 | 2023-04-07T08:05:52 | 340,442,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from django.db import models
from django.utils.translation import gettext_lazy as _
from users.models import User
class Ticket(models.Model):
name = models.CharField(max_length=100, verbose_name=_("Name"))
price = models.DecimalField(max_digits=4, decimal_places=2, verbose_name=_('Price'))
start_date = mo... | [
"mari.kifshidze@gmail.com"
] | mari.kifshidze@gmail.com |
11df941f9d8db32499f8f06857751bf83cc1b6d9 | 04f826abb0b6a030c4a80d452f46dc171f35c26d | /test/textday/days8/udpๅ้ๆฐๆฎใๆฅๆถๆฐๆฎ.py | c27b649db16bcfb2591ffcbc3e899eb9e2dfe342 | [] | no_license | tClown11/Python-Student | dd62ca19ede0b70b13d86c60a52c75738d56b0c2 | 93bb2786213caae923aa48bcb8c558d331e66fbf | refs/heads/master | 2022-04-30T14:21:13.250666 | 2018-06-24T14:09:52 | 2018-06-24T14:09:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | #coding=utf-8
from socket import *
#1.ๅๅปบๅฅๆฅๅญ
udpSocket = socket(AF_INET, SOCK_DGRAM)
#2.ๅๅคๆฅๆถๆนๅฐๅ
sendAddr = ('192.168.1.103', 8080)
#3.ไป้ฎ็่ทๅๆฐๆฎ
sendData = raw_input("่ฏท่พๅ
ฅ่ฆๅ้็ๆฐๆฎ๏ผ")
#4.ๅ้ๆฐๆฎๅฐๆๅฎ็ต่ไธ
udpSocket.sendto(sendData, sendAddr)
#5.็ญๅพ
ๆฅๆถๅฏนๆนๅ้็ๆฐๆฎ
recvData = udpSocket.recvfrom(1024)#1024่กจ็คบๆฌๆฌกๆฅๆถ็ๆๅคงๅญ่ๆฐ
#6.ๆพ็คบๅฏนๆนๅ้็ๆฐๆฎ
print(... | [
"tj1211keynote@outlook.com"
] | tj1211keynote@outlook.com |
8aabcf0d0b33a8d4d0da2bce1fa75f9cd75ab0a2 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/image_tag_py3.py | dc03cf4938109b681f39653d014c2577193656c3 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,284 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
ca9b40628be215ed9f3590a8f28f4987bf1726d2 | 6a903006ceb7e879a1033e077f8c8020fe9dba30 | /Back/BuildderBack/users/models.py | b049a94d93c3083b47c777ad0ff7613b941b744b | [] | no_license | daniel94lad/P-Buildder-V01 | 4bab6ff4eb13a8200a4af8ba10ec3c87690991f4 | 93809c5efc9100c9d914940cf008465b03c2b404 | refs/heads/master | 2022-09-08T00:53:52.624313 | 2020-06-02T21:53:15 | 2020-06-02T21:53:15 | 268,914,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | from __future__ import unicode_literals
from django.db import models
from django.urls import reverse
# Create your models here.
def upload_location(instance, filename):
return "%s/%s" %(instance.user_id,filename)
class B_User(models.Model):
user_id = models.AutoField(primary_key=True)
first_name = models... | [
"daniel94lad@gmail.com"
] | daniel94lad@gmail.com |
21fd1eeefbeadb84c6cf879bce44a1567770bee2 | 73788c28a6c9742f0e7b4ee99ac4a7f854f40611 | /scripts/climodat/check_database.py | 83598a87e903898aa9fe779a2b63be56bedd4d0c | [] | no_license | nbackas/iem | b8c7a356c68865a66b808962e1f09460b74df73f | d22e6d7b1b94db3bb081fb08619f83fb5b6784b7 | refs/heads/master | 2020-12-31T03:04:22.144156 | 2016-03-21T19:09:16 | 2016-03-21T19:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py | """
Check over the database and make sure we have what we need there to
make the climodat reports happy...
"""
import sys
import mx.DateTime
from pyiem.network import Table as NetworkTable
import constants
import psycopg2
state = sys.argv[1]
nt = NetworkTable("%sCLIMATE" % (state,))
COOP = psycopg2.connect(database=... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
8600bf75d5692cb6437a34cfea048b13dcde0c7f | b4b9de175facf26ac29080c1b97db45754fb585c | /b3_custom_edition/b3/plugins/xlrstats/__init__.py | 5c59465b5a8f3be57ae4e6df6282111ee496c734 | [] | no_license | Gimhan-minion/cod4 | 9ac592a4a74a819b29e584e8597f8a65a8bd8fac | 88ce6a10db3ad009c04e69c1ec58cedaddc1b2e9 | refs/heads/master | 2022-05-23T00:30:44.086430 | 2020-04-24T10:41:00 | 2020-04-24T10:41:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117,043 | py | #
# XLRstats plugin for BigBrotherBot (B3) (www.bigbrotherbot.net)
# (c) 2004 - 2005 Tim ter Laak (ttlogic@xlr8or.com)
# (c) 2005 - 2014 Mark Weirath (xlr8or@xlr8or.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the ... | [
"dulkith@outlook.com"
] | dulkith@outlook.com |
9e3c5cb6071bd3ed4d9e220bfce4edd41a091e6c | 70814cbebf17866e9b6fddc78017ce2c7197b993 | /Queue.py | 10c14b0970579b935124062749bb077d36137bef | [] | no_license | SPYMASTER97/Data-structures | aeb74885ed77651df8c7100614c3b87c9e162aeb | d891766d5afe02194cb91d0c161cfceada82870c | refs/heads/main | 2023-05-10T03:22:06.427087 | 2021-06-01T17:29:16 | 2021-06-01T17:29:16 | 372,480,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 1 22:42:28 2021
@author: saswa
"""
value_queue = []
value_queue.insert(0, 123.12)
value_queue.insert(0, 124)
value_queue.insert(0, 125.45)
print(value_queue)
print(value_queue.pop())
print(value_queue)
print(value_queue.pop())
#%%
from collecti... | [
"noreply@github.com"
] | SPYMASTER97.noreply@github.com |
b372d4c9833fc5f1c7cca6df9b56d9565e8f9630 | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /1501-1600/1591/1591_Python_1.py | ada38564785473dc032c8f04c794fbcbae65a0f8 | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | import collections
from typing import List
# ๆฃๆฅ้กบๅบๅๆณๆง
class Order:
class Node:
def __init__(self, i):
self.i = i
self.children = []
def __init__(self, n):
self.n = n
self.node_list = [self.Node(i) for i in range(n)]
def add(self, since, to):
if self... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
79f5267747a8e2e44aa9ba0bfb254c82189e1944 | 0bda8e47d72c033b5485429e76793f327f7f6faf | /rltk/blocking/canopy_block_generator.py | 5d5d08ea812593f0564f5cb235c8a720f5c89a55 | [
"MIT"
] | permissive | TaiPhillips/rltk | 2fbdb35ba851f30785b731b11962aedd7fef52d4 | f89b0096e94216af93cb3cf37771f6bfc77c9206 | refs/heads/master | 2020-09-21T22:26:09.263982 | 2019-05-03T18:24:31 | 2019-05-03T18:24:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,277 | py | import json
import random
from typing import Callable
from rltk.blocking.block_generator import BlockGenerator
from rltk.blocking.block import Block
from rltk.blocking.block_black_list import BlockBlackList
class CanopyBlockGenerator(BlockGenerator):
"""
Canopy based block generator.
Args:
t... | [
"bigyyx@gmail.com"
] | bigyyx@gmail.com |
ff939a7d308a8482f2f324f0f13b9406e3dfc016 | 5c82c0c270ad309ccbabeed34f3267939fb4bb42 | /cart/apps.py | 0c9081c7250576d0c2b89c78e42a27671671fbc1 | [] | no_license | EvgenKham/Course_python-django | eff07cd8525d412b031e02ff87af9aa5c2a4b5bc | 10505f724b49750df1c8085e1214f179ef02a501 | refs/heads/master | 2020-04-12T14:03:39.628645 | 2019-02-11T12:24:52 | 2019-02-11T12:25:04 | 162,540,696 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class CatrConfig(AppConfig):
name = 'cart'
| [
"hamitcevich@gmail.com"
] | hamitcevich@gmail.com |
86f609fb77da71f760f594ab622909ac4e3f2270 | 00102344a5242d2399d733916937c4de355bdcc5 | /shop/urls.py | f9f2ab5a08266d0924c19855e6b3eb6120867af0 | [] | no_license | KyutaeLee/onlineshop2.0 | 07ef51e1f7ef2c04c8963e5269b3f0863855f8f1 | 44b839c8164eab96e413a400d995a44a99f9efd3 | refs/heads/master | 2020-03-07T10:08:20.523280 | 2018-04-05T14:48:38 | 2018-04-05T14:48:38 | 127,424,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from django.urls import path
from .views import *
app_name = 'shop'
urlpatterns = [
path('', product_list, name='product_list'),
path('<str:category_slug>', product_list, name='product_list_by_category'),
] | [
"rbxofjqn@gmail.com"
] | rbxofjqn@gmail.com |
e3708403a43f2cca36b946a00919482d012dface | b0ab693a632eccf390cb6c5f8997823515440b6c | /Python/Tasks/anagram.py | f4f123e5837a68a3f8b40b57dab5f17006fa859c | [] | no_license | CinematicGenius007/HacktoberFest2021-BVP-CG007 | 8a2932442685492f7abea9de63a6d06d14c9c5c7 | 96143d6d7c4e5acf04cd6a4dcd120d491608cf89 | refs/heads/master | 2023-08-15T18:31:05.943506 | 2021-10-09T13:21:41 | 2021-10-09T13:21:41 | 414,681,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | def anagram(s, ):
string = len(s)
substring = len(t)
# edge conditions
if substring == 0
return True
if substring > string:
return False
# store substring in dictionary diction
substringdiction dict()
for c in t
substringdiction[c] = substringdiction.get(c, 0) + 1... | [
"sohilkhattar123@gmail.com"
] | sohilkhattar123@gmail.com |
60708da1a81492fc5a92b6bd9022513905a696f7 | 53392f0896171e9a3091fa1d6eaf55c41e5fd5b1 | /yandex/cloud/ai/translate/v2/translation_service_pb2_grpc.py | 2daf99d88feb2f36ae47e79a8b5778f0e0f812a1 | [
"MIT"
] | permissive | IIKovalenko/python-sdk | 7698094ee69bcf9f1ac6bd798244c4f4d843854d | 980e2c5d848eadb42799132b35a9f58ab7b27157 | refs/heads/master | 2020-06-01T09:11:41.031356 | 2019-05-11T14:00:50 | 2019-05-11T14:00:50 | 190,727,136 | 1 | 0 | MIT | 2019-06-07T10:39:33 | 2019-06-07T10:39:33 | null | UTF-8 | Python | false | false | 3,979 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from yandex.cloud.ai.translate.v2 import translation_service_pb2 as yandex_dot_cloud_dot_ai_dot_translate_dot_v2_dot_translation__service__pb2
class TranslationServiceStub(object):
"""A set of methods for the Yandex Translate service... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
e6208f6111576bb12f7497e3601bdde288165729 | 8a16fc8c45e92bee17dbcf207aced1f63733636a | /uas/penghitungan/Pembayaran.py | ec6e53b2f8e32045f800885f05c38a9510b0735d | [] | no_license | muchsyaifudin/tugas-uas-pemrograman | 41f8ec06245b11dd31b69cece23e75407d6cb8e9 | 12ccd09ceb863ddce1f91f216d7f9536b6db058e | refs/heads/master | 2020-05-09T17:06:58.347144 | 2019-04-14T14:43:41 | 2019-04-14T14:43:41 | 181,296,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | def pembayaran() :
from texttable import Texttable
table1 = Texttable ()
no1 = 0
jawab = "y"
while(jawab == 'y'):
nama = (input("masukan nama: "))
nim = (input("masukan nim: "))
kelas = (input("masukan kelas: "))
pilih1 = (input("bayar bulanan (y/... | [
"noreply@github.com"
] | muchsyaifudin.noreply@github.com |
661b8acdb1f0c2c84b60871b0a1990b0525e6c88 | 800d2325996f400101fb1217305a1934cd5657a2 | /weatherreport/settings/docker.py | f9245c443dd287441fffb8788e56bdb450c11fb3 | [
"MIT"
] | permissive | sarahboyce/weatherreport | eebe32562dd15af64a54fca27c0798ab109d6359 | 075b61f775bc2dd9d1d148317707a0684043d66e | refs/heads/main | 2023-04-04T15:58:05.419282 | 2021-01-30T11:17:59 | 2021-01-30T11:17:59 | 333,877,184 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | import os
from weatherreport.settings.common import *
DEBUG = int(os.environ.get("DEBUG", default=0))
STATIC_ROOT = os.path.join(SITE_ROOT, "staticfiles")
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
INSTALLED_APPS += ["whitenoise.runserver_nostatic"]
MIDDLEWARE.insert(1, ... | [
"sarah.boyce@quickrelease.de"
] | sarah.boyce@quickrelease.de |
11947359099c737dbd516c6546c6de926e7438ae | 6f014c26ad9773b71db2c30642d5f65481913f69 | /blog/views.py | 12007f631248292eaaf6d27e34b094a2d990ac18 | [] | no_license | Rubel-Mahmud/BLOG_SITE | 8f9188b0cd3e622a3bdb100615b1365bfaaff2bd | 9b39de55d43ce2d7520c2f7dbbea362d34a078a6 | refs/heads/main | 2023-02-05T08:34:47.118681 | 2020-12-22T18:41:50 | 2020-12-22T18:41:50 | 322,625,816 | 0 | 0 | null | 2020-12-22T18:41:51 | 2020-12-18T15:00:36 | Python | UTF-8 | Python | false | false | 2,976 | py | from django.shortcuts import render
from django.shortcuts import redirect
from django.shortcuts import get_object_or_404
from django.contrib.auth.decorators import login_required
from django.utils import timezone
from blog.models import Post, Comment
from blog.forms import PostForm, CommentForm
def post_list(request)... | [
"rmsoft.com@gmail.com"
] | rmsoft.com@gmail.com |
098e7dc48212ce0a6ffe3e4ac15d1b9fffe0fa71 | 7069c4dbc65c88144d2f89bfe433febaf0a57e2a | /scripts/make_relative_path_tests.py | 907388deed2c73f49effc459c87380cdbde01681 | [
"MIT"
] | permissive | tomcodes/appleseed | 4d39965f168be1fd8540b635b5f32c2e8da188b6 | e8ae4823158d7d40beb35c745eb6e9bee164dd2d | refs/heads/master | 2021-01-17T22:45:50.384490 | 2012-01-20T17:54:49 | 2012-01-20T17:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | import os.path
def make_relative_path(file_path, base):
npath = os.path.normpath(os.path.normcase(file_path))
nbase = os.path.normpath(os.path.normcase(base))
if npath.startswith(nbase):
result = npath[len(nbase):]
if result.startswith("/") or result.startswith("\\"):
result = r... | [
"beaune@aist.enst.fr"
] | beaune@aist.enst.fr |
db9bfe7302043aef1f099ce17901999d4ec86593 | 81913b3a18b9ee35205b6af99ee3eb0e730bc646 | /simulation_code/set_up_parameters_distributed_t_ref.py | 99f2cdca528a3e41f4af80e624d3723cf3d1fe51 | [] | no_license | CINPLA/Skaar_et_al_2020_PLoS_Comput_Biol | 2ccd940b5010426a2e7e6250c4af27db4c91aeaa | 26a7f93fc1875e086c4d23c3f5d6e54d48451432 | refs/heads/master | 2021-03-08T05:16:16.998855 | 2020-05-25T11:13:34 | 2020-05-25T11:13:34 | 246,319,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | py | '''Sets up simulation directories and parameters for NEST simulations
including LFP approximations'''
import os
import parameters as ps
import numpy as np
from nest_parameters import get_unique_id, NEST_PSET
if __name__ == '__main__':
## Add the random varying parameters
PSET = ps.ParameterSpace(NEST_PSET)
... | [
"jewskaar@gmail.com"
] | jewskaar@gmail.com |
675c1ad677c8def9f95919a0d25245f256705d78 | 6899130a29e498405c4594727cb9fdc944ea04f0 | /madlibs.py | 8a58569256c7336eafaee9999e243ee81d96b59c | [] | no_license | teganbroderick/madlibs | fbc2a16b27f3ecec8c9aca39717c6104fcdb86bf | 871c08d1a09d05a305e6ccb749ea1f0502e7e32b | refs/heads/master | 2021-06-27T11:10:33.219523 | 2019-10-17T00:55:45 | 2019-10-17T00:55:45 | 215,620,911 | 0 | 0 | null | 2021-03-20T01:55:43 | 2019-10-16T18:49:38 | HTML | UTF-8 | Python | false | false | 2,314 | py | """A madlib game that compliments its users."""
from random import choice
from flask import Flask, render_template, request
# "__name__" is a special Python variable for the name of the current module.
# Flask wants to know this to know what any imported things are relative to.
app = Flask(__name__)
AWESOMENESS = [... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
33c5995e21277b8da0e2948f6352d5b1ee5dd530 | 1aee624ea66bb8da8a165325a69781953f43d969 | /build/common_msgs/stereo_msgs/catkin_generated/pkg.installspace.context.pc.py | fca3d434222dac757de8791e56b26d8b346d024f | [] | no_license | ravarmaa/robotex | fa7cd98df1ef0902ff8b42f66b868d84ee87284d | db58c28d3003451186a06c1d331aecbac8414f92 | refs/heads/master | 2020-03-28T10:41:36.871241 | 2018-09-10T15:00:48 | 2018-09-10T15:00:48 | 148,134,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/randalf/robotex/install/include".split(';') if "/home/randalf/robotex/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;sensor_msgs;std_msgs".replace(';', ' ')
PKG_CONFIG_L... | [
"avarmaarando@.com"
] | avarmaarando@.com |
75339ed792b3e57c3e7a15c717224dfb8695b42e | 053b436a21874cb35d5376f7c45d046d80e08e04 | /Chapter 9 Excercise 3.py | 57468ae0ecd69877468f186d4c4e773b23b9dbb1 | [] | no_license | braeden-smith/Chapter-8-9-10 | 4b34f813e1c6f8fc0c7ca1c87062d96e4c851dc9 | c8d575dcc941f8dd121074096a37d0966e52fc33 | refs/heads/master | 2021-05-02T09:15:24.292906 | 2018-02-09T18:05:35 | 2018-02-09T18:05:35 | 120,820,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | #Braeden Smith Chapter 9 Excercise 3 2/5/18
# Exercise 3
# Write a program to read through a mail log, build a histogram using a dictionary to count
# how many messages have come from each email address, and print the dictionary.
email_sender = {}
messages = []
with open('mboxshort.txt') as f:
for line in... | [
"noreply@github.com"
] | braeden-smith.noreply@github.com |
07c417be70d57393ffb81b79c8364adb9e8259a6 | 06945d7581bee2baa5a5a727f6d3e32001671cfd | /eval_trades.py | fc63a6cce0382b28a04cff4b5109522f0aae274e | [] | no_license | Asber777/lafeat | 1342304730db66b58a53c5c89a625516881f2577 | 13017aef299a92d7ec64da8d9287058def4d343c | refs/heads/master | 2023-06-04T23:27:20.484390 | 2021-06-23T03:46:07 | 2021-06-23T03:46:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | py | """
CIFAR-10 evaluation script from TRADES.
Reference:
https://github.com/yaodongyu/TRADES/blob/master/evaluate_attack_cifar10.py
"""
from __future__ import print_function
import os
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
from torch.autograd import Vari... | [
"gxtfmx@gmail.com"
] | gxtfmx@gmail.com |
f4096be78fc2a68ade4f26c201e6170b5b55ed3b | 38231aa5e30143795bdb40ea7436b6dcdea837dc | /FirstFunction.py | 4793c66ba6320562437afb3d1c16158c2cafabe8 | [] | no_license | DamonBritt/Cognixia_Python | 34aa787b7792d46fdf0e12dec7ff0f8f5e183492 | a7057311983b8439c1a2527d35ccce50b681cbae | refs/heads/main | 2023-03-08T02:53:41.014550 | 2021-02-24T18:22:00 | 2021-02-24T18:22:00 | 341,976,185 | 0 | 5 | null | 2021-02-24T18:05:31 | 2021-02-24T17:15:42 | Python | UTF-8 | Python | false | false | 88 | py |
def weird_arithmetic(x, y, z):
print((x**x + y**z) // z)
weird_arithmetic(5, 6, 7) | [
"damonbritt87@yahoo.com"
] | damonbritt87@yahoo.com |
79000db8b56b251b19090baf05ee17dc21f7920c | de0ae900ba8b423064b6a4b978a654752d3e7b74 | /PracticeExam/P4/hash_map.py | 3a021f1ceb2d63d3e065425992127c2b112f9356 | [
"MIT"
] | permissive | GudniNathan/SC-T-201-GSKI | dab2e59cc0fe50f4dd7797b42748006d97e0ac53 | 1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2 | refs/heads/master | 2022-12-12T02:01:06.127226 | 2019-04-18T22:01:18 | 2019-04-18T22:01:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | from bucket import *
class HashMap:
def __init__(self, *args, **kwargs):
self.buckets = [Bucket() for i in range(16)]
self.size = 0
def _get_bucket(self, key):
return self.buckets[hash(key) % 16]
def __getitem__(self, key):
try:
return self._get_bucket(key).fi... | [
"1493259+GudniNatan@users.noreply.github.com"
] | 1493259+GudniNatan@users.noreply.github.com |
2e0db497cc97e4d00634767b6ec807cb485863ac | e528ccd4baf8826339c19b3c3938ef2c389ff628 | /django_mako_plus/router/router_exception.py | ce8baf8f37a1a4e434492848df363ea8f657738d | [
"Apache-2.0"
] | permissive | knowsuchagency/django-mako-plus | 02665ab02f0fed86d47354bcd38b702f5b4dbf69 | e737be6a2db6e9e897cc804c660494415c4ea180 | refs/heads/master | 2021-01-20T03:11:30.194686 | 2018-05-10T23:53:24 | 2018-05-10T23:53:24 | 132,975,292 | 0 | 0 | Apache-2.0 | 2018-05-11T01:53:22 | 2018-05-11T01:53:22 | null | UTF-8 | Python | false | false | 481 | py | from django.http import Http404
from .base import Router
class RegistryExceptionRouter(Router):
'''Router for a registry exception (i.e. view not found).'''
def __init__(self, exc):
self.exc = exc
def get_response(self, request, *args, **kwargs):
raise Http404(str(self.exc))
def ... | [
"doconix@gmail.com"
] | doconix@gmail.com |
cdbe0603d2755f3c3409875ec142445f54691589 | a1b1b2f573cedf34148694b30ff496b3cb9fc3ab | /watcher.py | 48fdded1f8f5426170d6f7007555c4f2be389000 | [] | no_license | g4rcez/Watcher | d4b13647e39ee2557f0b7e0b191eda42761c598d | e0fff515f0cae5dcb94e71b736ed4592dde83e67 | refs/heads/master | 2021-06-26T21:33:27.937680 | 2017-09-12T00:41:09 | 2017-09-12T00:41:09 | 103,200,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | #!/usr/bin/python3
import hashlib
from src.Message import Message
from src.Connection import Connection
from src.CredentialsAndDirectory import CredentialsAndDirectory
def banner():
print("""
โโโ โโโ โโโโโโ โโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโโโโโโโ
โโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โโโ... | [
"allan.f.garcez@gmail.com"
] | allan.f.garcez@gmail.com |
1ed0266f8e0f5e0e603d2b6d4907210233a0df82 | 0723929f8de0448cc9918b0ab8c43b990cb4199a | /meiduo_mall/meiduo_mall/settings/prod.py | a30ddfcc8a527c22f366bb3e7f32ecbfb2cb03c5 | [] | no_license | Jumsion05/web_meiduo | 31bb8e573b5e616fdcc40c4b64e977f3e4f47855 | 9762f0c5d61e8cd1ed6cff9283762d8158c93630 | refs/heads/master | 2020-04-12T22:32:59.707625 | 2019-01-15T16:05:58 | 2019-01-15T16:05:58 | 162,715,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | """
Django settings for meiduo_mall project.
Generated by 'django-admin startproject' using Django 1.11.11.
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/
"""
# ็ไบง็ฏ... | [
"871888414@qq.com"
] | 871888414@qq.com |
971885ac68bdb16f9a9cd430074db4a5d4cbaee8 | 923bbbcbc6aaada1ddad8b3c006aea0d9038ccb6 | /Sort_BinarySearch.py | e3542911b6dbcaf9f84e9217787acd2d29c0e560 | [] | no_license | chenfpp/leetcode-exercise | b14229877e6b9b6120a1fa00903513f0c2f8a9ad | 5b9ac601efdccfbd6f89db1ca56cc6bbff0efb32 | refs/heads/master | 2020-06-29T10:24:48.162743 | 2019-08-12T15:23:07 | 2019-08-12T15:23:07 | 200,510,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # ๆปๅจ็ชๅฃๆๅคงๅผ
def get_sliding_window_max(nums, k):
length = len(nums)
result = []
for i in range(length):
temp = []
for j in range(k):
if i + k - 1 < length:
temp.append(nums[i + j])
else:
break
if len(temp) > 0:
result.... | [
"noreply@github.com"
] | chenfpp.noreply@github.com |
aba907056cfe72fefb4e7c3884b2a31848de692a | 8a2fb0f7a01c2b198ed1c8e650878297855d4e18 | /app/admin/roles.py | fbff99bec28df6235f4556328fd0e1139c97ef21 | [] | no_license | best-upm/IBST | b7d8d32e8598ede95925301dbd4b30be6cb1b6b3 | b5a21621759e3d2729b20cb0b3cf30357cf4a495 | refs/heads/master | 2022-12-09T09:40:33.141220 | 2020-05-25T13:34:43 | 2020-05-25T13:34:43 | 246,377,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from app import db
from flask import render_template
from flask_login import login_required, current_user
from app.admin import bp
@bp.route('/role', methods=['GET'])
@login_required
def role():
title='Roles'
return render_template('roles-archive.html', title=title)
| [
"lukasgdanietz@gmail.com"
] | lukasgdanietz@gmail.com |
199056dacd5bd9433faeeb41a3179a9a69da101c | c7b2f599de5bc85690a2e978cc0ba1df7802d4fa | /dice.py | 3c62c922f911e00f93b24881b0a62a1ee5212f94 | [] | no_license | meettaraviya/Mine-search-AI | 8416265396ab17eaf52662820157f86ec1a1560d | 1169b721030f12edc06de71542de70eff07064bc | refs/heads/master | 2022-11-20T22:51:14.065061 | 2020-06-18T06:35:17 | 2020-06-18T06:35:17 | 257,130,486 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,521 | py | from minesweeper import MineSweeper, WindowsMineSweeper
from player import GreedyPlayer, OptimizedGreedyPlayer
import numpy as np
import argparse
import os
import time
helper_funcs_f = """
fun sum1(a: bool) { if a then int(INT_MAX, 1) else int(INT_MAX, 0) }
fun sum2(a: bool, b: bool) { sum1(a) + sum1(b) }
fun sum3(a... | [
"meet.taraviya@cs.ucla.edu"
] | meet.taraviya@cs.ucla.edu |
0b4b089cb2421dbf051adbae3a366054e449ef04 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_135/ch134_2020_04_01_11_47_07_593166.py | 404e99e3745e5ecb39c09e326bee9e7237c916e0 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | def verifica_quadrado_perfeito(n):
m = n
i = 0
while m => 0
m = m - i
i = i + 2
m = m * (-1)
m = m**2
if m == n
return True
else:
return False | [
"you@example.com"
] | you@example.com |
59e66ba132f900a8328c8b884f9778b786e4bf89 | c3261fb977ae26d7a40e619dace8fa06df738882 | /src/nlpia/book/examples/ch09_imdb_sentiment_lstm_v1.py | 06e9b981abc2962a84f747c3b90f970c2140b9a1 | [
"MIT"
] | permissive | totalgood/nlpia3 | 8dc471eae184d30077506339bfa99b0f42ac7082 | c5898e010b04aff72215ba8549859703857698fb | refs/heads/master | 2022-11-05T14:57:40.082068 | 2019-10-14T19:38:30 | 2019-10-14T19:38:30 | 193,171,162 | 5 | 0 | MIT | 2022-11-01T01:05:46 | 2019-06-21T23:36:48 | HTML | UTF-8 | Python | false | false | 2,033 | py |
# coding: utf-8
# In[1]:
import keras
# In[1]:
'''Trains a LSTM on the IMDB sentiment classification task.
The dataset is actually too small for LSTM to be of any advantage
compared to simpler, much faster methods such as TF-IDF + LogReg.
Notes:
- RNNs are tricky. Choice of batch size is important,
choice of lo... | [
"hobs+github@totalgood.com"
] | hobs+github@totalgood.com |
f3d82a111f84cead46652286a4ffcd99a2af1ffe | 3ec92f3e7f037d02af74f79b0e0f5f3fe6a25863 | /Code/MergePredictions.py | db1607a5675fae1bae76d33eddd6566ae41175b8 | [] | no_license | muditjai/CMAP | 26a2eefbdea3ef7da11e2e09bfc4bd00442670f6 | 343a924f9bf04ba3feae62445a881088325a5bc2 | refs/heads/master | 2021-01-20T20:28:56.536969 | 2016-07-21T20:39:45 | 2016-07-21T20:39:45 | 63,392,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,664 | py | """
1. Take 10 optional inputs
2. Find the available predictions from headers
3. Construct final prediction file with above predictions and rest as 1
4. convert this to exe
"""
import numpy as np
from typing import Tuple, Dict
import argparse
# TODO Use numRows=1650 for final test, and 1000 for local test
# Arguments... | [
"muditjai@gmail.com"
] | muditjai@gmail.com |
197cf6bcbab5b706dca85de94314294cee9862c1 | db459d978578e726c961fe5423d9495490a8c4c1 | /tests/unit/test_aws.py | 4b8f70cc9b81588223eaa0775221aacf963c6a01 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | KOSASIH/openeew-python | dafdd56797a404ac61ddde419a772b1088448a43 | 5851b6291713649c342e8a970632153e9c72f760 | refs/heads/main | 2023-04-20T17:57:48.623726 | 2021-03-02T16:44:21 | 2021-03-02T16:44:21 | 349,296,940 | 0 | 0 | Apache-2.0 | 2021-05-13T14:13:34 | 2021-03-19T04:10:46 | null | UTF-8 | Python | false | false | 1,097 | py | # =============================================================================
# Copyright 2019 Grillo Holdings Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apach... | [
"michael@grillo.io"
] | michael@grillo.io |
944bd3cb19c90482ca15d6db0a3737ed077344fa | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/datahub/databus/shippers/hdfs/shipper.py | c11e592351d3e7703c150d3b0a44697e00f147c9 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 3,429 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE ่้ฒธๅบ็กๅนณๅฐ available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE ่้ฒธๅบ็กๅนณๅฐ is licensed under the MIT License.
License for BK-BASE ่้ฒธๅบ็กๅนณๅฐ:
------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
0375a5bd9133eaff907c627f486f7274b1ed169e | 5db1e54b4d3cfcb441703cdb6a6e4e04dbc2e1d7 | /n_geq_n.py | 420a0153076e10705c8ba87a5281c3afdb9660c1 | [] | no_license | vyanphan/codingchallenges | 10b0701acbf15bfee9e10c2b2bba3ac4fe5993d2 | ee2bd2459638f0718199c370f9e81fa44b531d58 | refs/heads/master | 2020-03-27T06:47:45.266347 | 2018-10-31T05:20:41 | 2018-10-31T05:20:41 | 146,135,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import math
'''
NOT DONE
Given an unsorted array of integers n, return the
maximum possible n such that at least n values in
the array are >= n.
[1,2,3,4]
>>> output 2, as 2,3,4 >= 2 but only 3,4 >= 3
[900,2,901,3,1000]
>>> output 3, as 900,901,1000 >= 3
'''
def stupid_n_geq_n(arr): # nlogn solution
... | [
"vyan.n.phan@gmail.com"
] | vyan.n.phan@gmail.com |
26cddebff4c3497ed19984a48cd9ab463737f2ad | 857d8f44ee11e7bf6972486e6be875aec9fff819 | /docs/conf.py | 851b2272a2b3fa1af493d0e40e9948c563e5a7d7 | [
"MIT"
] | permissive | s0b0lev/mythx-cli | dfe45adfb41163098d08bf1849c48083241b22e5 | 27dc1c4ce1d87fbd02be4d32c5fbb4281da7c53c | refs/heads/master | 2022-04-10T21:18:20.506815 | 2020-03-27T10:32:23 | 2020-03-27T10:32:23 | 250,260,634 | 0 | 0 | MIT | 2020-03-26T13:05:12 | 2020-03-26T13:05:11 | null | UTF-8 | Python | false | false | 4,950 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# mythx_cli documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
#
# 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
# a... | [
"dmuhs@protonmail.ch"
] | dmuhs@protonmail.ch |
25be26b35e718200556781820285d30fe312d3c2 | 16bee720f0cd275f848d6b52f14754cccef5b793 | /01-OOP/14_oop_customClass.py | 4453be2e5ed7399481179226c08dc032f89fd8cb | [] | no_license | lloyd108/python_start | d9b979db3efd08929d47d6c82a7d8101eecf7d18 | 6d0162fd44999049d434ba7d595df808f777d741 | refs/heads/master | 2020-03-28T19:27:47.845190 | 2019-03-05T15:43:31 | 2019-03-05T15:43:31 | 148,977,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from types import MethodType
class A:
pass
def say(self):
print("I'm saying...")
say(1)
A.say = say
A.say(1)
a = A()
a.say()
print("*" * 10)
class B:
pass
def talk(s):
print("I'm talking...")
b = B()
b.talk = MethodType(talk, B)
b.talk()
print(type(b))
print("*" * 10)
def eat(self)... | [
"lloyd108@163.com"
] | lloyd108@163.com |
0bca003a900431f0ed27f023690564c73a37e175 | b19768d7ef7d55cbc3c1f2aba2d6de30fb6328cd | /validate_pan.py | 800be8eb196078c9131d3e9a061223b28d2200cb | [] | no_license | MalarSankar/demo | 6e62e5bd76e3793a1e80d8e6347351d359f1b879 | 125ce2e949a89d50724033824e2c1488f5aab07d | refs/heads/master | 2023-02-18T13:18:26.330249 | 2021-01-18T07:30:43 | 2021-01-18T07:30:43 | 267,773,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import re
pan_num=input("enter pan number")
if(re.match("[A-Z]{5}[0-9]{4}[A-Z]{1}",pan_num)):
print("True")
else:
print("False") | [
"smalar1998@gmail.com"
] | smalar1998@gmail.com |
ac07a4c6e985985142cc1cbbd9cc704b292e741b | 6e108bc5c4ff3c45d9da6ca2ff62a44a34246169 | /kumoko/strategies/rfind.py | 4674acf74fba13e28de553a30aac3bc27a41e8f8 | [] | no_license | hav4ik/rock-paper-scissors | 13bcf1728e2ccdf2d6bc7a82eb7b128938981e75 | 397e2cd44b7c882563371edad40336601a83a841 | refs/heads/main | 2023-02-25T00:32:04.487564 | 2021-02-01T18:29:54 | 2021-02-01T18:29:54 | 328,952,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | import random
from kumoko.kumoko_base import *
from kumoko.kumoko import Kumoko
from kumoko.scoring import SCORINGS
from kumoko.action_choice import ACTION_CHOICES
from functools import partial
class RFindStrategy(BaseAtomicStrategy):
def __init__(self, limit=None, src='his', shenanigans=True):
super().__init__... | [
"hav4ik@users.noreply.github.com"
] | hav4ik@users.noreply.github.com |
a65fc101bcb4ea26beea8a74df41edf9f2e715fc | c4fe28e6240b59a9e225d0ff5b683dcbb532e992 | /PankeyevaSD/validator/lib.py | 7a68150736afc83475243e6d6b3b0250efa7942e | [] | no_license | ArtOliinyk/datascience | 6e1f0db4265f07118d2fa2780b6d583646d4f287 | fb40edef738a217a1cf4fed874489261f1257db2 | refs/heads/master | 2020-09-28T21:09:52.500504 | 2019-12-23T07:08:41 | 2019-12-23T07:08:41 | 226,865,478 | 0 | 0 | null | 2019-12-19T16:17:27 | 2019-12-09T12:25:34 | Python | UTF-8 | Python | false | false | 436 | py | import re
def id_validator():
return bool(re.match('^\d{6}$',id))
def zip_code_validator(zip):
return bool(re.match('^\d{5}$', zip))
def percent_of_beneficiaries_with_copd_validator(copd):
return bool(re.match("^([0-9]{1,2})?$",copd)) or bool(re.match('^([1]{1}[0]{1}[0]{1})?$',copd))
def percent_of_bene... | [
"pankeeva@gmail.com"
] | pankeeva@gmail.com |
f8a89df9fcf70f57de1df85699a6f92fcc9e5bdf | 81f6fd135813f3727576bd5d74acaf0469b53615 | /phrase_api/models/styleguide_details.py | 23a8976d2316a9a97303395082950e7632c16e34 | [] | no_license | rlisowski/phrase-python | cb65ded1e80d1985aa95a4403c7aa3f012bd33b4 | cbd6bf580a74140928b7536bb9b466d43276cc29 | refs/heads/master | 2023-06-18T09:24:43.916142 | 2021-07-15T14:21:58 | 2021-07-15T14:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,392 | py | # coding: utf-8
"""
Phrase API Reference
The version of the OpenAPI document: 2.0.0
Contact: support@phrase.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from phrase_api.configuration import Configuration
class StyleguideDetails(object):
... | [
"support@phrase.com"
] | support@phrase.com |
0fac9d80c79c6023fa73a3539cd28456e6c95ebe | 9ce0159c84ac4e63dbd7d4f8593ff1f7a5c3ae9d | /jblog/bin/jupyter-troubleshoot | ea022a4476e73ab9f8523fbc5d6fb668aebe0413 | [] | no_license | cvanderbush/cvanderbush.github.io | 8c7af21f4bbbfcbcc14bccb2d207eea883a41e45 | 89958814e8b5cd24f23981e0bfcf5f05d89f9c9a | refs/heads/master | 2021-08-14T13:33:33.615612 | 2017-11-15T21:01:50 | 2017-11-15T21:01:50 | 110,868,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/Users/carl/github/cvanderbush.github.io/jblog/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.troubleshoot import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"carl.vanderbush@gmail.com"
] | carl.vanderbush@gmail.com | |
f5c648b356bc2ff4784eaa2f50b6a1305dc09e47 | 4662a4f0af562f3fb38ebaad9c5f00f507a6e573 | /vou_viajar/conta/migrations/0004_auto_20200406_1239.py | 7229b4585c34cf4a619d2246dd10662cd997e97c | [] | no_license | mikefarias/vou_viajar_django | 462a5a5866ad80f29e6aa9babf1cb70bb7727fcc | 0e0dc35a20572159f67e3a46a221542f7810b3ba | refs/heads/master | 2022-04-21T16:49:46.188275 | 2020-04-21T11:15:36 | 2020-04-21T11:15:36 | 164,842,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # Generated by Django 2.1.3 on 2020-04-06 15:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('conta', '0003_auto_20200406_1230'),
]
operations = [
migrations.RenameField(
model_name='profile',
old_name='user_id',
... | [
"mike@shoppingonlinearacaju.com.br"
] | mike@shoppingonlinearacaju.com.br |
956c2fe8549228dbf1ad1cd269cbbfcf8729bf7b | 774af61392db87e417b65fcbc28b7976dbd5f9f3 | /gtrends_input.py | 589e762c2f67f38282460007a34a6aa218d7d0c5 | [] | no_license | ajw278/GTrendsPy | 7c906b589e2f6f73fff1930ad05708999025ccc6 | b14db013cb63f9989706a462281da51eeef962cd | refs/heads/master | 2021-07-05T14:03:32.751450 | 2020-09-18T07:51:10 | 2020-09-18T07:51:10 | 175,021,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from __future__ import print_function
"""
Fetch search terms from the file, but associate them in a dictionary
by line number
"""
def fetch_search_terms(fname):
with open(fname) as f:
content = f.readlines()
sterms = []
sassoc = {}
iass = 0
for line in content:
if len(line)>2:
sassoc[iass] = []
l... | [
"andy@dhcp-10-249-178-116.eduroam.wireless.private.cam.ac.uk"
] | andy@dhcp-10-249-178-116.eduroam.wireless.private.cam.ac.uk |
2ae44ed23fd75808b97066a9a6faae55af9aa1af | 328dfeed14f331d3c64b67dcaced73d6a9a3bde8 | /src/kernel/tools/gen.py | 6bc1811775f07579d253b3b949b82151c566d725 | [
"MIT"
] | permissive | priyanr/simba | f339930505c17265908e6d07869bf2b7291640c6 | 49c56af04bd0307df2248acb3b0e69f88c50d24f | refs/heads/master | 2021-01-22T02:34:19.685652 | 2017-02-05T20:14:54 | 2017-02-05T20:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,420 | py | #!/usr/bin/env python
import sys
import json
import time
import re
import getpass
file_fmt = """/**
* @section License
*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016, Erik Moqvist
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated docume... | [
"erik.moqvist@gmail.com"
] | erik.moqvist@gmail.com |
844c18e08ce70e1d240a0f8e6ac30bc6f8ee713d | fd3d46fcbbbf4a1c5bca359feaca9fc7332921b1 | /epaas_com/erpnext_com/doctype/conference_participant/conference_participant.py | 0fd965950d11fe72ed9ad2dc675912e9ade7b2a6 | [] | no_license | dataent/epaas_com | 31723de4d3c6e3d0a3d911c2aa8035cdd4a7db44 | cb6a9995dfce3392b5abd38bb11ed9decfe5a8c1 | refs/heads/master | 2020-03-20T22:46:16.057801 | 2018-06-18T22:50:41 | 2018-06-18T22:50:41 | 137,814,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Dataent and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
from dataent.model.document import Document
class ConferenceParticipant(Document):
def on_payment_authorized(self, status_changed_to=None):
self.paid = 1
... | [
"38303879+dataent@users.noreply.github.com"
] | 38303879+dataent@users.noreply.github.com |
c061e28cb24da83390d14a5d04167d2b00d2da38 | eec1718131dab77fdc0fb94064432b8a2f5492a6 | /test_models.py | 266340281e27dc27c3173536768c9d9575fb9da1 | [] | no_license | Tim-Birk/flask-bogly | ef0a258f7d3d50614bd0707a0be5f65de1089caf | a17e6195c30abd899049df465b9815d515f3a4d7 | refs/heads/master | 2023-02-23T05:36:16.721494 | 2021-01-23T20:31:30 | 2021-01-23T20:31:30 | 331,452,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from unittest import TestCase
from app import app
from models import db, User, Post
from datetime import datetime
# Use test database and don't clutter tests with SQL
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql:///blogly_test'
app.config['SQLALCHEMY_ECHO'] = False
db.drop_all()
db.create_all()
class UserMo... | [
"timbirkmire@yahoo.com"
] | timbirkmire@yahoo.com |
8e3aeedca99b9abff8282876fbf5b655c1f10a76 | cf2fd8ffb4777e44aa8c0b0522385ed86f12d799 | /Homework 3/hw3q4.py | cdee46b5ac0e5e26d9949334b544ec3e9eef99b8 | [] | no_license | mtouhidchowdhury/CS1114-Intro-to-python | 2b622db0116842d13377d1eae3c744f5a7595275 | 31f311a1991f2d6affcbe13e6b8cd0c154bc59b6 | refs/heads/master | 2020-07-02T01:09:31.543145 | 2019-08-09T02:50:28 | 2019-08-09T02:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | #homework 3 question 4
#getting the input of the sides
a = float(input("Length of first side: "))
b = float(input("Length of second side: "))
c = float(input("Length of third side: "))
if a == b and b == c and a ==c :# if all sides equal equalateral triangle
print("This is a equilateral triangle")
elif ... | [
"noreply@github.com"
] | mtouhidchowdhury.noreply@github.com |
bee95a3694329278bd0d6da10efe94897ee1528f | 49664326b09adc7deefbf98503357a3504d055c5 | /informatics/String/2.py | 2905847718dfe97ca6155fc6554e75d78a77d394 | [] | no_license | erkkke/Python2020 | 70f005e5fc0f386919d22d8a31941d22e90ee870 | c201c0d228ec8f8229c1be6190c8802875c45215 | refs/heads/master | 2023-03-01T10:46:37.076082 | 2021-01-31T12:53:18 | 2021-01-31T12:53:18 | 334,650,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | a = input()
print(a.split()) | [
"matilda@MacBook-Air-Erkebulan.local"
] | matilda@MacBook-Air-Erkebulan.local |
b16b068d989de795df1d3025e670b20b0e94feb0 | a0cd325b7def592dedf9120847cba2447a714fef | /hyperplan/index.py | 83fe88be0876dfea8ae2d89fbb71c70e22179618 | [
"MIT"
] | permissive | hyperplan-io/cli | 0bc2a03947979a45cb4ea2d1518c92d63853c6c0 | dc7d407701fd78d9065d60c35b0f2674b28c86bb | refs/heads/master | 2023-05-26T04:49:36.069566 | 2019-08-27T17:38:26 | 2019-08-27T17:38:26 | 198,371,338 | 1 | 0 | MIT | 2023-05-22T22:29:45 | 2019-07-23T06:58:09 | Python | UTF-8 | Python | false | false | 3,578 | py | #!/usr/bin/env python
import keyring
import getpass
import os
import requests
from http.client import RemoteDisconnected
import sys, getopt
import logging
from hyperplan.hpcmd import HyperplanPrompt
from hyperplan.errors import InvalidCredentials
from hyperplan.api import Api
default_service = "hyperplan-cli"
def g... | [
"sauray.antoine@gmail.com"
] | sauray.antoine@gmail.com |
3735fa99634f45f77e74570d306e0c432f784408 | c19be3d81e29b2268bda70b0dda2df989331940f | /MenuProject/MenuProject/urls.py | 34219d772e05d19cec3a1ece47a16c9db3ee76c0 | [] | no_license | Sanjaymali36/Restaurant-Menu-Project | 2d6fe659e78796124b3ca0aa05082934e2bab418 | 5040d97076f66ce46cdd7b070ff138e37177ff38 | refs/heads/master | 2020-03-21T13:21:14.254520 | 2018-11-22T07:53:26 | 2018-11-22T07:53:26 | 138,601,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | """MenuProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"noreply@github.com"
] | Sanjaymali36.noreply@github.com |
63ea869d69aca38d061182bfb2f448e14df05ec3 | 33c2341e49c0317ce02b06d9618449442877cf48 | /old code/game_driver_old.py | a2972849f2566963352dbbe32cc0e674e03660e2 | [] | no_license | inferrinizzard/game-driver | 3ff83d114054693a2e4d48471e4e622f79acfb45 | c117fd59285ada25436ccd0e74c1f64708bd0885 | refs/heads/master | 2020-12-07T19:38:18.440815 | 2020-01-16T19:52:19 | 2020-01-16T19:52:19 | 232,783,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,112 | py | from IPython.display import display, clear_output, Image
from base64 import b64decode
from json import loads
from time import sleep
from random import choice
from abc import ABC, abstractmethod
class GameDriver():
def __init__(self, cdp):
self.cdp = cdp
targetId = self.cdp.send('Target.createTarget... | [
"inferrinizzard@gmail.com"
] | inferrinizzard@gmail.com |
46163b40ac62876c08a145a4a6690ab5d0d54d7d | 0cdf05e4456234b271b48f6ff2c6f49b75f021de | /rootofchaos/login_app/migrations/0001_initial.py | ee2f5b4cd5eedc42ea1b7302ec159ab8fb9ef988 | [] | no_license | HauslerMatthew/Root-of-Chaos | b8aa96e04324407e327ed1cc7c189d7ed5864623 | 926e0aabda365dfc89cf4a9ac5b74fad696cef00 | refs/heads/main | 2023-04-01T05:37:54.405958 | 2021-04-07T16:33:43 | 2021-04-07T16:33:43 | 355,613,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | # Generated by Django 2.2 on 2021-01-21 20:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(auto_... | [
"hauslermatthew@gmail.com"
] | hauslermatthew@gmail.com |
79af04779687a3dc390f42312330277a6a9a2f95 | 9d0e8f9b6ac9d7ddf4781da21ae741c5e3d0dbe8 | /venv/bin/easy_install | 789c44929c85e90ec90a5ea1ff743478e1b30005 | [] | no_license | ElizBth/Reactive-Navigation-Under-a-Fuzzy-Rules-Based-Scheme-and-Reinforcement-Learning | 6bdcd33a01bf6bf3032063874c6975387921142a | 396e5b8fe07a9e75757c9f239f2bc49198a26dac | refs/heads/main | 2023-03-22T03:46:17.840796 | 2021-02-26T21:51:35 | 2021-02-26T21:51:35 | 308,754,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | #!/home/lizzy/PycharmProjects/RobotPathPlanningBasedOnBatteryBehaviour/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lizzy_silverthorns@hotmail.com"
] | lizzy_silverthorns@hotmail.com | |
f28734a018bbe06950d5f86c605fff1aec45e9e4 | 6f52bdc94219b7a72db975276cc94b929e59cdb1 | /notes.py | 2547f8c40dea3944fedd7f1653d817d475ef0794 | [] | no_license | juned8236/Head_pythonbook_comprehanded_data | 294e377d18897ecb47d510c7b0e81a034036c207 | 9f8de208c30c5fe7ab0b14d6dc9f1712e9284f3e | refs/heads/master | 2020-05-23T19:13:17.598909 | 2019-05-15T21:42:50 | 2019-05-15T21:42:50 | 186,906,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | """That data.strip().split(',') line looks a little weird. Can you explain whatโs going on?
A: Thatโs called method chaining. The first method, strip(), is applied to the line in data, which removes any unwanted whitespace
from the string. Then, the results of the stripping are processed by the second method, split(',... | [
"juned8236@gmail.com"
] | juned8236@gmail.com |
87d51aea49dff60922cde0febfc68ef74267abb7 | 3547780f38f53031a8eba2a054b2b6f068bb0515 | /insertion_sort.py | 38d31155fbe6ab603313395e30c6cf51dd126b81 | [] | no_license | SSJ007/Week1 | 53abe1834dbfe9cbafa9e500845850a525cf2352 | f2986d11856db14ffa35a75e64b1d4ecb4e690cf | refs/heads/master | 2022-11-29T21:53:29.100850 | 2020-08-17T19:39:16 | 2020-08-17T19:39:16 | 273,901,551 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | def insertionSort(arr):
for i in range(1, len(arr)):
key = arr[i]
j = i-1
while j >=0 and key < arr[j] :
arr[j+1] = arr[j]
j -= 1
arr[j+1] = key
input_array=list(map(int,input("Enter the values you need to sort my friend\n").split()))
... | [
"noreply@github.com"
] | SSJ007.noreply@github.com |
4ff925119237dc850ad565976791e59d1857f28e | e1e3561ca1ed2f4902394893f48f99246fee832a | /test/unit/rules/functions/test_sub_not_join.py | 6c8f6807b936c2d77390537d4ef920851f4899a7 | [
"MIT-0"
] | permissive | trav-c/cfn-python-lint | 7dbdae4893871fbb5868c2146faedb75feec2212 | 55ea16d94800f05fbe01d44018bf5f96be5cca62 | refs/heads/master | 2023-07-06T18:52:48.303514 | 2023-06-30T17:51:51 | 2023-06-30T17:51:51 | 266,032,828 | 0 | 0 | NOASSERTION | 2020-05-22T06:12:37 | 2020-05-22T06:12:37 | null | UTF-8 | Python | false | false | 831 | py | """
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
"""
from test.unit.rules import BaseRuleTestCase
from cfnlint.rules.functions.SubNotJoin import SubNotJoin # pylint: disable=E0401
class TestSubNotJoin(BaseRuleTestCase):
"""Test Rules Get Att"""
def setUp... | [
"noreply@github.com"
] | trav-c.noreply@github.com |
ee5bb8b702ae0d2fd77b6409278aee395309f2b4 | 2f46c6ce5de573ba765a901fbd9e96b53350a657 | /utils/service_discovery/config.py | ee0e90c7e1e7eb91b6941ddda78b4a7d59c956c5 | [
"BSD-2-Clause"
] | permissive | jsh2134/dd-agent | 193f65d79cc659b7a7e89af0458e71e8b879439f | 1551a4f3446eca7ed500dd1858d663a485555404 | refs/heads/master | 2020-12-25T22:36:22.602056 | 2016-04-20T21:46:21 | 2016-04-20T21:46:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | # std
import logging
# project
from utils.service_discovery.sd_backend import SD_BACKENDS
from utils.service_discovery.config_stores import extract_sd_config, SD_CONFIG_BACKENDS
log = logging.getLogger(__name__)
def extract_agent_config(config):
# get merged into the real agentConfig
agentConfig = {}
b... | [
"haissam@datadoghq.com"
] | haissam@datadoghq.com |
68a3581e53ae6b573073542bdfe4b1e020cfd600 | 337dad29f3c740d86ce472bce720dab3c8a501b4 | /tests/test_excelAddinGenerator.py | 3af18af5c1104b654f7177c336d0aa2090a6775a | [] | no_license | Beakerboy/Excel-Addin-Generator | 6e87646446f51f258dd6d558a92e12bb216cbb1f | bca3e139a377b0050ff73f064e9158afe519b226 | refs/heads/master | 2023-02-01T00:42:41.819117 | 2023-01-07T00:04:38 | 2023-01-07T00:04:38 | 183,014,209 | 15 | 2 | null | 2023-01-07T00:04:39 | 2019-04-23T12:51:00 | Python | UTF-8 | Python | false | false | 1,848 | py | # test_excelAddinGenerator.py
import pytest
from excelAddinGenerator.main import *
from os.path import exists
from filehash import FileHash
def test_success_from_bin():
"""Test that xlam is successfully generated from a OLE file"""
createFromBin("tests/vbaProject.bin", "src/data", "success_bin.xlam")
# As... | [
"noreply@github.com"
] | Beakerboy.noreply@github.com |
a81d7941436bbe43ae43215d63788e766ae61278 | ed93ecbd61387e03e903d84dc9dc89ff13efacf9 | /pyvdk/tools/mention.py | fc289aa26db9f043728325a61974d4641ff5810a | [
"MIT"
] | permissive | UT1C/pyvdk | 070a50ddad1b493b54bac60c7937a5dd60b0eddc | 168177c4006acc7f57be36f189bee8101e10253d | refs/heads/master | 2023-03-30T05:20:42.900502 | 2020-12-19T18:35:22 | 2020-12-19T18:35:22 | 310,387,311 | 18 | 2 | MIT | 2020-11-23T22:06:51 | 2020-11-05T18:40:17 | Python | UTF-8 | Python | false | false | 1,336 | py | import re
import typing
class Mention:
user: bool
club: bool
id: int
text: str
regex = re.compile(r"\[(id|club)(\d{1,16})\|(.+?)\]")
def __init__(
self,
id: int,
text: str = "mention",
user: bool = False,
club: bool = False,
):
self.id = id... | [
"liteman1000@gmail.com"
] | liteman1000@gmail.com |
8566d05a5bfb8c6017d82184d07769a03c3882a6 | a1b86a23feddff385d3397e231bb55a06afc1a49 | /knnTest.py | 7236b71aed60ecc92ac942d3266c60e91ea8321f | [] | no_license | jc814/assignment1 | d15eb86b975c030826109e4a01b91885a467ac4a | b1df29d8bce0b8bbda037db8a67e7810978807a3 | refs/heads/master | 2022-10-10T09:21:23.792691 | 2019-06-02T15:42:28 | 2019-06-02T15:42:28 | 189,863,605 | 0 | 1 | null | 2022-09-30T11:57:16 | 2019-06-02T15:31:04 | Python | UTF-8 | Python | false | false | 3,151 | py | import random
import numpy as np
from cs231n.data_utils import load_CIFAR10
import matplotlib.pyplot as plt
# This is a bit of magic to make matplotlib figures appear inline in the notebook
# rather than in a new window.
plt.rcParams['figure.figsize'] = (10.0, 8.0) # set default size of plots
plt.rcParams['image.inter... | [
"1054539066@qq.com"
] | 1054539066@qq.com |
68ed5c05ba913abae9695427a4393f6f29bd2c22 | 243506601c77122e78e512f01a613da2bcb199e6 | /venv/Scripts/django-admin.py | ee0202462f80b5efc334cca402894417407a8330 | [] | no_license | DevilsZone/Doctors_App | 186439a5f08f36134b4e1d07a7a0958224fcc937 | 8aebd69e0254414bc78d3541c4630f15aabf3a6c | refs/heads/master | 2022-11-10T17:18:53.653069 | 2020-07-01T06:07:18 | 2020-07-01T06:07:18 | 276,288,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #!C:\Users\Akash\Desktop\DJANO_APPS\Doctors_App\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"akashkumarqoou@iitkgp.ac.in"
] | akashkumarqoou@iitkgp.ac.in |
6c44b6721d398f1c50351fdf82faea3298fb9134 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/2621.py | 61590502c74929df447eb930b37a2ba432ed2837 | [] | 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 | 710 | py | '''
Created on Apr 12, 2014
@author: fuellerm
'''
import sys
# Read one 4x4 block of cards
def read_cards(f):
row = int(f.readline())
for j in range(1, 5):
if j == row:
result = set(f.readline().rstrip('\n').split(' '))
else:
f.readline()
return result
f = open(sy... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
fc1532bd93c30059c3fe87eeb8a1c316b6b3480c | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/testing/scripts/generators/gen_run_web_tests_script.py | 7f9c1aa18a53ae9be90c2632a7bed5a9552a3558 | [
"BSD-3-Clause"
] | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | Python | false | false | 1,915 | py | #!/usr/bin/env vpython
#
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Creates a script to run blink tests using
blinkpy/web_tests/run_webkit_tests.py
"""
import argparse
import os
import re
import s... | [
"csineneo@gmail.com"
] | csineneo@gmail.com |
e7b9f39fd86fc7c99e16077b75ed51bee1d50467 | 0fe0d8a938760af472a22e311e1f6339f5e02430 | /health_inspector/health_inspector/settings.py | 232f9766515779f36cfbcaad291fbd1edebd4bea | [
"MIT"
] | permissive | rochakgupta/health-inspector | 023d6d5e12bd7ab80bd6162fa70fb480513c6386 | 8caa8cadd1d70216c4f0242bd27f3377e669e7b4 | refs/heads/master | 2021-06-22T18:01:24.387094 | 2020-02-23T09:23:24 | 2020-02-23T09:23:24 | 165,119,265 | 2 | 0 | MIT | 2021-06-10T21:08:16 | 2019-01-10T19:34:23 | Python | UTF-8 | Python | false | false | 4,216 | py | """
Django settings for health_inspector project.
Generated by 'django-admin startproject' using Django 1.9.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
imp... | [
"rochak84@gmail.com"
] | rochak84@gmail.com |
65fc261aaa35fb987361a62350d5aab65fd42494 | 0d6a45c42d26e15d999ef1ff008dbcb78b48a704 | /manage.py | 296543a5a32f43f67f3cde7cfa9f7559a7034859 | [] | no_license | Navaneethdi99/gdstore | 6f0400dc638d56eed299921ea5e4e8a028098bef | 1ec3382c97ad57316c0f571a67fcce8a7f84f045 | refs/heads/master | 2023-08-10T08:59:35.858396 | 2021-09-12T07:13:06 | 2021-09-12T07:13:06 | 405,571,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gdshop.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportE... | [
"navaneethdi99@gmail.com"
] | navaneethdi99@gmail.com |
bbc3953f4cdd3bf3a3f03fb20619baf613b07f14 | d52149a6f5537a9e53b2204c7175616211631872 | /eshop/urls.py | 364baa84b5e60653754dbd535b396dd87be774eb | [] | no_license | deceptikon/eshop_demo | ebcc132bb1ec1b3f9ec0ba99cea5efa59f2e64f0 | a4d368cd1e4e8f010441eb4c17d75ce5919d5e3d | refs/heads/master | 2022-05-09T04:44:38.898536 | 2020-01-30T13:50:01 | 2020-01-30T13:50:01 | 224,675,309 | 0 | 0 | null | 2022-04-22T22:49:57 | 2019-11-28T14:52:55 | CSS | UTF-8 | Python | false | false | 772 | py | from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic import TemplateView
from . import views
urlpatterns = [
path('', TemplateView.as_view(template_name='main.html'), name='index'),
path('category', views.CatsView.as_view(), name='p... | [
"lexx.kg@gmail.com"
] | lexx.kg@gmail.com |
12538a4f886b449a2ba1d3ee5d68c2ae2bb78c13 | 7bd890e680830bbf0656d8694d9a1bbdc9abe5da | /weather/models.py | ccfb1b195b806dcbce718bc7a29902a00efc2030 | [] | no_license | duy2779/weather-app-django | 7a7df023e344e7ab88b9669dfc9b3fc13524631f | 28fec7e6d9b89054319275cd38366fad9c8b7a12 | refs/heads/main | 2023-03-29T15:34:32.651707 | 2021-03-25T03:52:44 | 2021-03-25T03:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django.db import models
# Create your models here.
class City(models.Model):
name = models.CharField(max_length=255, unique=True)
def __str__(self):
return self.name
class Meta:
verbose_name = 'City'
verbose_name_plural = 'Cities' | [
"jultqd99@gmail.com"
] | jultqd99@gmail.com |
e29eb91c4128e991fb23ad4aaf45d04365908d96 | caea797032af8b294071b1f9024f53d92ae7e811 | /manage.py | d8a90c9f462184be82fc8d59124cbbb0afa7dc70 | [] | no_license | hummans/SMSHubServer | b28860dcfdd9c9a519e634eba46108f0a14ab1d1 | 37a714ab061baf099c761eed44fedf5bfccbd390 | refs/heads/master | 2022-01-06T04:37:15.450133 | 2019-05-18T18:54:06 | 2019-05-18T18:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SMSHubServer.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"you@example.com"
] | you@example.com |
49f9c790641e65005be9d718ff1fd573d74dac8c | b7fd93d46cafc329810192a869e1bb85ba69efd1 | /leParisien.py | 27fb099967cf7148373990ae743d028ddb0badf1 | [] | no_license | saprykins/News_scrapers_different_languages | f91ac54fbbe158daeb9f78c540dff0eabc8b1bf5 | 4a59732a7de4fad72a9bf86147b1b75ae4891705 | refs/heads/master | 2023-06-29T07:35:57.889052 | 2021-07-21T06:15:14 | 2021-07-21T06:15:14 | 388,008,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | # -*- coding: utf-8 -*-
import scrapy
class QuotesSpider(scrapy.Spider):
name = 'LeParisien_news'
start_urls = ['https://www.leparisien.fr/elections/presidentielle/']
def parse(self, response):
for quote in response.css('.story-headline'): # doens't work
print ('header:', quote.css('::... | [
"palatatot@gmail.com"
] | palatatot@gmail.com |
8bfce2a7a6aca6b9e16fd8db4fe3fc04d9be1f15 | fda896eac15fd03fc28aa15e0ba14b76def2e2cd | /PyCharm/3_strings.py | d81c9a2e65543c2e5abd663de962ada3856d5609 | [] | no_license | laurencebarin27/code-review | 82108a2f841f7d8bab047e77df1ad9c9ffeca19d | 7eddedd7630e3a24957989aa1c4938004e5f4a78 | refs/heads/master | 2020-08-04T21:28:27.621230 | 2019-10-02T08:00:57 | 2019-10-02T08:00:57 | 212,284,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | phrase = "De La Salle University"
print(phrase.upper())
print(phrase.isupper())
print(phrase.lower())
print(phrase.islower())
print(len(phrase))
print(phrase.index("S"))
print(phrase.replace("e","u")) | [
"noreply@github.com"
] | laurencebarin27.noreply@github.com |
d3b5bd512446d05d5576f2ee81934506c0d6840a | 64e9565bd7ca0cab875f2549fa40781061926568 | /source/representation.py | 814b9d475984a0cd99f98cc8330c2075f0d3e463 | [] | no_license | carlyrobison/sonnetspoofer | 9dcf0a5d1193fe6623ab80c61f2b2adae2d7889f | 3b18004b9e5c6c679cb49664500b1fb878c0484d | refs/heads/master | 2021-01-20T03:17:30.783296 | 2017-02-28T01:55:56 | 2017-02-28T01:55:56 | 82,864,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | def word_to_number(word, word_dict):
return word_dict[word]
def words_to_numbers(sonnets):
'''Converts a sonnet to a list of lists
with each word represented as a number'''
word_dict = {}
counter = 0
sonnet_nums = []
for sonnet in sonnets:
sonnet_num = []
for line in sonnet:... | [
"sharikak54@gmail.com"
] | sharikak54@gmail.com |
c959b8b7bed8fd3dddde436661861c689c0d7c64 | 1f5f8f95530003c6c66419519d78cb52d21f65c0 | /projects/golem_integration/tests/browser/wait_for_element_present.py | 22acbae98f8b9d9e129667624b9b2f208bd90431 | [] | no_license | golemhq/golem-tests | c5d3ab04b1ea3755d8b812229feb60f513d039ac | dff8fd3a606c3d1ef8667aece6fddef8ac441230 | refs/heads/master | 2023-08-17T23:05:26.286718 | 2021-10-04T20:34:17 | 2021-10-04T20:34:17 | 105,579,436 | 4 | 1 | null | 2018-11-19T00:14:24 | 2017-10-02T20:05:55 | Python | UTF-8 | Python | false | false | 610 | py | from golem import actions
from projects.golem_integration.utils import expected_exception
description = 'Verify webdriver.wait_for_element_present method'
def test(data):
actions.navigate(data.env.url+'dynamic-elements/?delay=3')
actions.get_browser().wait_for_element_present('#button-five', 5)
actions.... | [
"feo.luciano@gmail.com"
] | feo.luciano@gmail.com |
f013fa41d0f4c8046cf3ca3d48870d6debda0bc0 | d40694bda47fac8b148dfbb2c7fdbf508de33050 | /botocore/utils.py | 1d9185c37e60b0852bf39b330eb0acc5f84cf972 | [
"MIT"
] | permissive | coingraham/serverless_rds_auto_parking | f01f022d4aca34dd0bbc688d5e49570eb2c32e95 | 985f0a962b6a07d4f23b51e5a5a76f5d1d37718a | refs/heads/master | 2020-06-24T03:18:49.133513 | 2017-07-14T21:08:05 | 2017-07-14T21:08:05 | 96,917,872 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 40,005 | py | # Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file ac... | [
"cgraham@2ndwatch.com"
] | cgraham@2ndwatch.com |
3af2f2b6fe9a1ee356e68e7df54220cbae9a8228 | 5c5ded612c2f041c6950fff15768411f4f6b66e1 | /samples/cityscape/coco.py | e7ff5414591dd73bb49374d8633bf4e7c7b28f9b | [
"MIT"
] | permissive | Zhuoyao1012/Mask_RCNN | 09d3a2b1fc28b3abe361a1ae872052af4d51a1c9 | 0f7e99dd35c2eeae5f12503b7c1d910f345c0c69 | refs/heads/master | 2022-06-06T15:16:55.100909 | 2018-09-28T03:17:35 | 2018-09-28T03:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,594 | py | """
Mask R-CNN
Configurations and data loading code for MS COCO.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
------------------------------------------------------------
Usage: import the module (see Jupyter notebooks for examples), or run fr... | [
"you@example.com"
] | you@example.com |
8d447231b19c3b5d99fbaaa3d41d5e0ed349f686 | b909af8c6b33e51fbf74534f473dc10b6bf9ab02 | /src/Python/transmitter/utilities/__init__.py | 83252fd6fd2baa7e04b5ba97c1ace8612b23cfc1 | [] | no_license | abbad/NetProb | a0243a2d258cb3e0f0eb33a158b2a4b94fe2415d | 7b8234625bbc654e5a80b8acde2cacd2b1abc3d4 | refs/heads/master | 2021-01-18T21:44:23.403438 | 2017-08-12T03:07:10 | 2017-08-12T03:07:10 | 9,431,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from tcp_udp_server_unnamed_pipes_utilities import sendMessage, getOsFileHandle, getHandleDuplicate
from udp_server_win32_named_pipes import readFromPipe
from tcp_server_win32_named_pipes import writeToPipe
from file_io import *
| [
"ahm.abbad@gmail.com"
] | ahm.abbad@gmail.com |
8f8f500352c74c4664b97cf6d4c9dfc3267e7db8 | cd8d2740d040a10b9d07cc4cd36a86f03a7e8f5b | /python/strings/ceasar_cipher.py | d6bcbcc44a100c29bccb25cf516270a2f6122d84 | [
"MIT"
] | permissive | sglavoie/code-snippets | 9d9cf14c237ee6e7484fbf88385d427207c626f6 | d867810e1f9bfd57acac7e02a4c02a9d905f121a | refs/heads/main | 2023-05-31T20:56:54.655187 | 2023-05-17T03:04:28 | 2023-05-17T03:04:28 | 178,996,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | """Ceasar Cipher"""
import string
def build_shift_dict(shift) -> dict:
"""
Creates a dictionary that can be used to apply a cipher to a letter.
The dictionary maps every uppercase and lowercase letter to a
character shifted down the alphabet by the input shift. The dictionary
should have 52 keys ... | [
"sgdlavoie@gmail.com"
] | sgdlavoie@gmail.com |
ad62f729834cd96eac8c6af29169f718ab4f846f | b15ff9e2d0f6d8a74a19beb93c07943f706e3b8e | /events/migrations/0001_initial.py | 998f4256b16c901ed6cb4fbc172f45d282da1432 | [] | no_license | solheng/govtrack.us-web | 24f0f6cc7c21a0924d0b5c3479bbb05adec62337 | fa34ad121437aa83fc7fba20018117614a3bc2e5 | refs/heads/master | 2020-03-11T01:48:36.154547 | 2018-04-14T19:03:34 | 2018-04-14T19:09:05 | 129,702,267 | 1 | 0 | null | 2018-04-16T07:25:54 | 2018-04-16T07:25:54 | null | UTF-8 | Python | false | false | 3,213 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-08-02 07:29
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"jt@occams.info"
] | jt@occams.info |
2d1768280b834feee4f6b28b65ef8b07253a49c1 | eaf84f5f98b274d0d03a97d7c3abe78b3f8c7a07 | /autoServiceCostMenu.py | 6b2eae82e17bbd055d8cd8f91bb734645ee5a2a2 | [] | no_license | mikeCenters/_pythonTinyThings | 84845c52a7c679472f79e84f567fa12971545ed4 | 8c763c153d5b1b8977effd56cf73c9579c03d131 | refs/heads/master | 2020-04-02T14:57:24.742841 | 2018-11-06T22:01:28 | 2018-11-06T22:01:28 | 154,545,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,450 | py | # Auto service cost.
# This program requires variables to store the costs of various services.
# The best practice is to keep the code simple and easy to understand.
oil_change = int(35)
tire_rotation = int(19)
car_wax = int(12)
car_wash = int(7)
# Print service menu and input option.
# This program requires an intera... | [
"michael.centers@gmail.com"
] | michael.centers@gmail.com |
16ffd54c84dbe8d23a393b2e76c4bba477b84d89 | 7cbae4f3d7c1258d8d91606f0b69d39192200df7 | /venv/wash.py | 6f9f67731fd0d91109fa58240f69cae3209d1bf0 | [] | no_license | githubssj/NaiveBayes | 4b970d4eeb3127003127c4ae128ae97ccaa2a453 | 4bba318fbb2426a1220cdcc2bcc3b12c0085fbdc | refs/heads/master | 2023-02-12T18:43:18.104477 | 2021-01-07T06:40:42 | 2021-01-07T06:52:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | import os
NUM=5000
def wash_all_file(rootpath):
def wash_file(path, type):
files = os.listdir(path)
i = 1
for file in files:
try:
used_name = path + '\\' + file
## ๅ ไธบๆไปถๅ้้ขๅ
ๅซไบๆไปถ็ๅ็ผ๏ผๆไปฅ้ๅฝๅ็ๆถๅ่ฆๅ ไธ
new_name = path + '\\' + type + str(i) ... | [
"929946014@qq.com"
] | 929946014@qq.com |
31d4ad5bb495fdc6d0ce9030a888b6692ed38dfe | df068be75706b25a61609a857161eda3ba951dae | /sbh/gshj/dw_Pg_sql/__init__.py | 513b766dba997e33e7408c07683aa3f64588ce71 | [] | no_license | songweirong19931020/tensorflow | 2a24372de47ed72ee8627fa0c6a2cfac7439dc82 | e42ddc319089f0c872548c046615399dbc3ccec7 | refs/heads/master | 2022-12-10T03:46:31.632772 | 2020-09-04T01:15:11 | 2020-09-04T01:15:12 | 261,907,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name๏ผ __init__.py
Description :
Author : CBH
date๏ผ 2020/5/23 09: 46
Ide: PyCharm
-------------------------------------------------
Change Activity:
2020/5/23 09: 46:
-------... | [
"wrsong@cenboomh.com"
] | wrsong@cenboomh.com |
6dc923ae93ea58d12f86d61b115c21de1bb36376 | adc3c961b2e89c46b4ca9dcabae9d36d63fc472a | /Interview_Prep_Kit/Dynamic_Programming/Maximum_Array_Sum.py | 042a6fb771d28883304dc7f42c1ccf80626fe2dc | [] | no_license | hall500/hackerrank-codes | 289cc1f913570cddea3574b1519a801c0cd15dd2 | 2fcbde7c8e1c4fe7f46cab9803a281da29732126 | refs/heads/master | 2023-08-24T20:37:56.349795 | 2023-08-15T16:47:59 | 2023-08-15T16:47:59 | 295,524,311 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the maxSubsetSum function below.
def maxSubsetSum(arr):
dp = {} # key : max index of subarray, value = sum
dp[0], dp[1] = arr[0], max(arr[0], arr[1])
for i, num in enumerate(arr[2:], start=2):
dp[i] = max(dp[i-1], d... | [
"noreply@github.com"
] | hall500.noreply@github.com |
14733fb62e738733a2e27ef980ecc577db195029 | 41d92f05924672e7138e14d8daefbf6850b7aeb2 | /task1/settings.py | e7b271f81a9c5fe5676a8bd182924753c1ccfb99 | [] | no_license | shaunybrown/SMB_tasks | 161d48c0879c68794d7bf133aded6e07b251b729 | feb13d9d0ff4db6fee30c4f4d9c1a4ddb179a6bc | refs/heads/master | 2020-08-21T22:48:19.640183 | 2019-10-30T19:23:08 | 2019-10-30T19:23:08 | 216,265,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | """
Django settings for task1 project.
Generated by 'django-admin startproject' using Django 2.2.5.
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
# Bu... | [
"Shaun.Murray-Brown@os.uk"
] | Shaun.Murray-Brown@os.uk |
acf7f16e26fa7ee61ef3572e21836a8c7e3eb878 | 1a97f91088be127845b1bf537c6e964ba524371d | /morl/core/__init__.py | e3edcefa82f0841212da5e1f5009a4dee5f94131 | [
"Apache-2.0"
] | permissive | universea/MoRL | d2f178e05cdcc9272f2458b065e4d0503e63a4d5 | 499311cf41f9ef45b6941289ecbfb77cfd9288ec | refs/heads/main | 2023-03-02T14:29:02.531037 | 2021-02-16T09:32:46 | 2021-02-16T09:32:46 | 335,837,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py |
from morl.core.agent_base import *
from morl.core.model_base import *
from morl.core.algorithm_base import *
| [
"287827688@qq.com"
] | 287827688@qq.com |
cdaefa05c63a331e9d9b06d9c2cfae2beb33afcf | edcf205314644a368c81ae273a352db410cf7124 | /setup.py | 77ffcf1360fa9e6ecbc81246a7acfe738b2c4fa4 | [
"MIT"
] | permissive | STUDITEMPS/django_panel_views | 6ae1c75d069f0aca1900d08b026d7662134ec0d1 | 4c308ce513362be5f3344c425f8eb5404b7ff651 | refs/heads/master | 2021-01-10T15:34:57.894647 | 2015-12-02T12:46:27 | 2015-12-02T12:46:27 | 46,286,429 | 3 | 0 | null | 2015-12-02T12:46:30 | 2015-11-16T16:15:07 | Python | UTF-8 | Python | false | false | 3,808 | py | # -*- coding: utf-8 -*-
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.md')... | [
"paul.wachendorf@jobmensa.de"
] | paul.wachendorf@jobmensa.de |
64a1013439e23ab7f9b94cda28275eb78c9269a1 | bf70e5e39b1eb5fa8be83fec87f1957493c84e87 | /Python/189 Rotate Array.py | 032b56faf9ab9c124a550bf07353ecb8f1c80eed | [] | no_license | ericsyc/leetcode | 76273ba23b6513e83b6042599ea07902a769cff9 | 8256a65ef25530c34f42f1f98f1e9f9fe634ece1 | refs/heads/master | 2020-04-19T14:41:41.610041 | 2019-04-09T17:36:34 | 2019-04-09T17:36:34 | 152,906,586 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | # Rotate Array
class Solution(object):
def rotate(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: void Do not return anything, modify nums in-place instead.
"""
k %= len(nums)
nums[:] = nums[-k:]+nums[:-k] | [
"noreply@github.com"
] | ericsyc.noreply@github.com |
a097fcfb7b812f08fe9988fd32627e87816bf570 | d0cc49f673eeb0126c9730d8e20b932bbb489547 | /StockPriceStreamlitWebApp.py | 628c5321c8212816b382e02d643c504b70df079f | [] | no_license | OfficialNMN/Time-Series-Analysis | b755179300e6fb2e9fb38619d873bef5f6e97f0a | bc8ab5914319f2dace8cc8f414e77d9aa24c450e | refs/heads/main | 2023-04-29T05:48:21.685523 | 2021-05-25T18:24:14 | 2021-05-25T18:24:14 | 323,315,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | import streamlit as st
from datetime import date
import yfinance as yf
from fbprophet import Prophet
from fbprophet.plot import plot_plotly
from plotly import graph_objs as go
START = "2015-01-01"
TODAY = date.today().strftime("%Y-%m-%d")
st.title('Stock Forecast App')
stocks = ('GOOG', 'AAPL', 'MSFT', 'GME')
selec... | [
"noreply@github.com"
] | OfficialNMN.noreply@github.com |
4e5e62465005abc49f96395bbfd2d23b49bc60de | 577c0ca01734c23f24c2f42844890a040723c883 | /compare_gan/src/gans/GAN.py | fe8e6c3aa91b47ecf894c10738071209d7ff6db5 | [
"Apache-2.0"
] | permissive | xiao7199/compare_gan | 488b2ebf0528e0fb52908e4da01e3dfba81b0a28 | ac821a979ccb5ed46e0a441f87abc9bfd3c37417 | refs/heads/master | 2020-06-06T13:07:18.155959 | 2019-07-25T20:13:48 | 2019-07-25T20:13:48 | 192,748,689 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,490 | py | # coding=utf-8
# Copyright 2018 Google LLC & Hwalsuk Lee.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"michalski@google.com"
] | michalski@google.com |
5564e15f7a77079f4415767b2fbea87616a3950f | fac03fe7baa7bd172de96b4f284791a37fe36a41 | /moocup/users/test/test_views.py | aa836d4f832076477b965d4a60b8a20f3e5ce7fd | [] | no_license | jessicapaz/moocup | 998d07dbf86228ecb6bcbe2092912120b9b2f6a0 | 3c64d2f267522ec44977e493292e5a3aba491da3 | refs/heads/master | 2020-05-03T16:35:21.738746 | 2019-04-28T15:13:09 | 2019-04-28T15:13:09 | 177,447,643 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,997 | py | from django.urls import reverse
from django.forms.models import model_to_dict
from django.contrib.auth.hashers import check_password
from django.utils import timezone
from nose.tools import ok_, eq_
from rest_framework.test import APITestCase
from rest_framework import status
from .factories import UserFactory
from ..m... | [
"jessicamorim.42@gmail.com"
] | jessicamorim.42@gmail.com |
6280254084a901126c4a4ff3ebdf4cca75a837a8 | 8597eddefd259e514443144fe001bf8b38b3d899 | /backend/service/data_source_writer_service.py | a4687645b1a8405f5b2160060b95e6efa5ac07d0 | [] | no_license | tonussi/fake-primary-backup | 546687acb2f515db62533f5edceb7b4acaa4f203 | d5f5a1ecae643867e96e8eba044d5e10c0807cba | refs/heads/master | 2023-01-19T01:57:45.228342 | 2020-11-30T02:57:18 | 2020-11-30T02:57:18 | 313,307,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | import os
import csv
from model.helpers import DirGetter
from model.primary_backup import PrimaryBackup
class DataSourceWriterService(object):
"""
Fake simulator of db csv writting service
"""
def __init__(self):
self.dir_getter = DirGetter()
self.csv_columns = ["No", "Name", "Country"... | [
"lucas@prevision.com.br"
] | lucas@prevision.com.br |
644d311efc8df693020faec11b4438d3a424fef7 | 0b7907a93d26008bd5de43d0032d70ced86a5e34 | /test/checkMiniTree_MuonPt.py | bc01860c2d48d7930b52c221436b5c2e1a22164e | [] | no_license | UMN-CMS/cms-WR | ad66f39beb90ac534ba734ed5158b01a6884006b | 31510cb8ebb7ddba0bf321353a19cc7f75215ed6 | refs/heads/master | 2021-01-23T09:42:06.512732 | 2016-11-29T05:01:16 | 2016-11-29T05:01:16 | 29,871,199 | 5 | 2 | null | 2016-10-04T13:53:54 | 2015-01-26T16:54:33 | Python | UTF-8 | Python | false | false | 532 | py | import ROOT
configfile = open("configs/2015-v1.conf")
config = dict( [ line.strip().split('=') for line in configfile])
datasets = {"DYJets_amctnlo":"", "DYJets_madgraph":"", "DYToEE_powheg":""}
for dataset in datasets:
print dataset
f = ROOT.TFile.Open("root://eoscms//eos/cms/store//user/shervin/ntuples/%s%s/unmer... | [
"phansen@physics.umn.edu"
] | phansen@physics.umn.edu |
75f8c87aa5d0485817a80b7ac8bea6eae894dc34 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5011/104005011.py | 2425f88aaf2b4a67d2fa2313a8628ec1a6580eee | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,654 | py | from bots.botsconfig import *
from records005011 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'SA',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'N1', MIN: 1, MAX: 1},
{ID: 'N2', MIN: 0, MAX: 1},
{... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
893a6e59c074c24a607c32e8131943c3df32e0bd | 6472c4553c49a8c05103355ff53b1cbb7f025e8f | /pava/implementation/natives/sun/java2d/opengl/OGLSurfaceData.py | 245ed034d789f6b8454a5b4fdb9cad2070e5893b | [
"MIT"
] | permissive | laffra/pava | 0b012e27c207a3e0f3ca772667b0c32168fe3123 | 54d10cf7f8def2f96e254c0356623d08f221536f | refs/heads/master | 2021-01-23T04:23:22.887146 | 2020-12-21T23:14:09 | 2020-12-21T23:14:09 | 86,191,143 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | def add_native_methods(clazz):
def initTexture__long__boolean__boolean__boolean__int__int__(a0, a1, a2, a3, a4, a5, a6):
raise NotImplementedError()
def initFBObject__long__boolean__boolean__boolean__int__int__(a0, a1, a2, a3, a4, a5, a6):
raise NotImplementedError()
def initFlipBackbuffer... | [
"iV29VQzQVT11"
] | iV29VQzQVT11 |
3361d704c1b803e7aa88422c06d8f0e9057f951c | 734a552186aece647e84f0e324bf1a0735ea45c6 | /code/training/network_training/nnUNet_variants/architectural_variants/nnUNetTrainerV2_noDeepSupervision.py | 8d46f170f9f65a96fe1ecb84a6f1c4835e8612f7 | [] | no_license | jyniki/experiments | 59ff5df5022555efcb4b0b0f8eed6668b8c45148 | 8a02027c63ea52667d75665a40318289a4d567fb | refs/heads/master | 2023-02-17T09:11:42.557733 | 2021-01-14T02:27:11 | 2021-01-14T02:27:11 | 327,834,493 | 1 | 0 | null | 2021-01-10T07:51:32 | 2021-01-08T07:50:04 | Python | UTF-8 | Python | false | false | 8,131 | py | import numpy as np
from batchgenerators.utilities.file_and_folder_operations import *
from network_architecture.generic_UNet import Generic_UNet
from network_architecture.initialization import InitWeights_He
from network_architecture.neural_network import SegmentationNetwork
from training.data_augmentation.default_data... | [
"1067087283@qq.com"
] | 1067087283@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.