blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
dcf142b87156ed979564464d24b4927fc31cc95e
d1c7bb0b89f8575ccb077fe6718f9f33aa9447ee
/generate_gmail_logo/merge_logo.py
2c8e7d7fec89620c31be1bd1e0b326453c39b65b
[]
no_license
ZeqinZheng/verified_logo_tool
d6c949523ed103475a24e8cf56c893bdc71eac1b
05cd82ca6ee228ead7d5553e732aa4fe7380eeb6
refs/heads/master
2023-02-28T10:05:14.795801
2021-02-01T07:16:48
2021-02-01T07:16:48
330,213,866
1
0
null
null
null
null
UTF-8
Python
false
false
2,150
py
from PIL import Image, ImageChops import json import os li_exceptions = [] config = {} config_keys = ["input_folder_path", "output_folder_path"] gmail_logo_size, verified_logo_size = None, None pos_x, pos_y = None, None def load_parameters(): if "config.json" not in os.listdir(): print("ERROR", "config.j...
[ "zeqin0422@gmail.com" ]
zeqin0422@gmail.com
eab5037692f341b206eec399b2fa954fed14f0c4
d6658ef4473a08685f89c0ad2d4d3710df89afc9
/account/migrations/0009_auto_20210423_1228.py
39736a51296b26dba45bdebed1d14bd2b0226d43
[]
no_license
Jamezslim90/ChatApp
a99d357bf79e86b5dad8613792db746ac18175be
a2667163399586221ad20e1b899d281436ec9c90
refs/heads/main
2023-09-04T12:29:31.466113
2021-05-09T12:46:35
2021-05-09T12:46:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
# Generated by Django 3.1.7 on 2021-04-23 12:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0008_auto_20210423_1227'), ] operations = [ migrations.AlterField( model_name='account', name='bio', ...
[ "muhammedatif@Muhammeds-MacBook-Pro.local" ]
muhammedatif@Muhammeds-MacBook-Pro.local
4df23062007da5083161682ebd8f2c53d0b18dca
2c47c2357ab3e64f25ea1c3a587947049615cb02
/conversational/views.py
a2ab43876d155e00a00d72586f571da74f6c2217
[]
no_license
MiraRose/conversations
9a36a9019c59a531d778137960ba9e8788a891ff
54854c90cc45468abd34e9aff37a7d8789ba3c0b
refs/heads/master
2023-05-15T07:32:33.424816
2021-06-11T11:40:48
2021-06-11T11:40:48
375,561,294
1
0
null
null
null
null
UTF-8
Python
false
false
4,770
py
from django.http import HttpResponse, Http404, HttpResponseRedirect from django.shortcuts import render, get_object_or_404 from django.template import loader from django.urls import reverse from conversational.forms import ConversationForm, MessageForm, ThoughtForm, SearchConversationForm, SearchMessageForm from conve...
[ "miraastar@gmail.com" ]
miraastar@gmail.com
79b694b8b4cbaa2d7a37e7a37e8d2850553d4835
7f25bd671edb2dbe19dc72397cd4dd4471acca02
/code/model_part_vst.py
0ef773b5df8bd66c681d684866d1ae800a787149
[ "MIT" ]
permissive
Mehooz/VGSNet
944637a4b9727b04a78e487df3a7eaa2fb93485a
18ddae20fb3ccc440a38bd8b23cba8fcaa753518
refs/heads/master
2022-10-09T18:50:30.975116
2020-06-10T08:50:47
2020-06-10T08:50:47
241,087,000
8
0
null
null
null
null
UTF-8
Python
false
false
6,281
py
""" This file defines part point cloud VAE/AE model. """ import torch import torch.nn as nn from chamfer_distance import ChamferDistance from collections import namedtuple from torchvision.models import vgg16,resnet18,resnet50 from loss import * from projection import * import math class PartFeatSampler(nn.Module...
[ "mehoozhang@gmail.com" ]
mehoozhang@gmail.com
7d470bd8955ad6a22916de891735d8dcec7d2b22
a0f02a674f6a0c19effde195eb77f7ae5aba36bc
/blog/blog/settings.py
0277d602e8dc5f0832be656b1685779c218f16e7
[]
no_license
kdt7058/BlogCreater
cccb1ef5dd26b6765fefcd810e148f6d8e9625b7
798634cd008aad0f46c03982fde93fe5e04091c2
refs/heads/main
2023-07-16T01:22:30.328310
2021-08-25T16:38:12
2021-08-25T16:38:12
399,874,433
0
0
null
null
null
null
UTF-8
Python
false
false
3,424
py
""" Django settings for blog project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ fro...
[ "noreply@github.com" ]
noreply@github.com
9af28fc12492109bacc6ba4ac0a26793968264a3
ed0cdeef4bbab433a46d7e196e63a8163c8d43cf
/create_databases.py
5658fe7e987ed7a53e6805fec23be6a7d70cd699
[]
no_license
Mechanio/student_perfomance_journal
c7b9309e465c9757361605908ab78969399b8f91
8c92bf48dc6abf6bb0b92362dfcd6e95242fc682
refs/heads/main
2023-02-25T06:02:55.114454
2021-02-12T19:55:27
2021-02-12T19:55:27
338,412,441
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
import sqlite3 conn = sqlite3.connect('data.sqlite') cur = conn.cursor() cur.executescript(''' DROP TABLE IF EXISTS Students; DROP TABLE IF EXISTS Teachers; DROP TABLE IF EXISTS Classes; DROP TABLE IF EXISTS Subjects; DROP TABLE IF EXISTS Students_Classes; DROP TABLE IF EXISTS Marks; CREATE TABLE Studen...
[ "noreply@github.com" ]
noreply@github.com
4d1dc6663b84adb8bb576cee22ef31b75c0f2f48
58deef84e815e231261e7661a971606c8c5e2d4b
/projects/pool_partner_price_service/pool_partner_price_service/models.py
eb2ae9c56d716d20b46eab776faf9d641492ad70
[]
no_license
odranreb-g/tcc_puc
9eb876476207ffe8607d77600b7e003345959112
9e4ebcee5adc513b909036c41b2631ea42e2f888
refs/heads/master
2023-08-22T04:21:40.917955
2021-10-16T20:57:12
2021-10-16T20:57:12
418,117,929
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
import uuid from sqlalchemy import Column, Date, DateTime, Float, String from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.ext.declarative import declarative_base from database import engine Base = declarative_base() class Delivery(Base): __tablename__ = "deliveries_delivery" id = Column(UUI...
[ "bgomesdeabreu@gmail.com" ]
bgomesdeabreu@gmail.com
aeff10f43966e2020670336706cfc74d7bbbc391
c5f8d5ca44dccd842b8f54ab5beb4b7877a3aaf4
/scraper.py
9413931a3411ab26edbb98fbcb4016232bd6772f
[]
no_license
Dennis-Cao/dc_ufc_fights_db
daf7c002f83bc99dde79855a28d1b0e17e5a943c
c1a6b13f7131e70a665394f3fc1f960ddb46f222
refs/heads/master
2022-07-09T17:00:22.230975
2019-06-07T16:33:40
2019-06-07T16:33:40
189,447,797
2
0
null
2022-06-21T22:03:31
2019-05-30T16:33:52
Python
UTF-8
Python
false
false
6,491
py
import requests from bs4 import BeautifulSoup import pandas as pd import numpy as np import string import re import datetime import sqlite3 import time import os all_links = [] location = [] events = [] f1 = [] f2 = [] winner = [] f1_odds = [] f2_odds = [] label = [] favourite = [] def scrape_data(): # set up pag...
[ "DennisCao@live.com" ]
DennisCao@live.com
fce86f1905f3314240858989ab8a11b54a8315b3
34deb6cc15393765c9185b08b4b596ee5e93880e
/models/store.py
d044139c2f9f2cea6c4960c4a719c18bda428a26
[]
no_license
honnie/test-repository
2da5613b096934c3c0cc4a850208a6c7f4c51d16
48297e909998cc9c9412b6949f0538a376150a0d
refs/heads/master
2023-06-17T14:20:37.835450
2021-07-16T14:43:16
2021-07-16T14:43:16
385,945,862
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
from db import db class StoreModel(db.Model): __tablename__ = 'stores' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80)) items = db.relationship('ItemModel', lazy='dynamic') def __init__(self, name): self.name = name def json(self): return {'name'...
[ "honniechu@yahoo.com.hk" ]
honniechu@yahoo.com.hk
e9c0557f54b79d2d4fd0f6930a6c985116f7288a
f89fd6b33bd65d07316e368cff7c4b22e11603bf
/fundader_crm/urls.py
6b4c18e2fac4280bf5c794bce2db40fef1af8a70
[]
no_license
Javier1221/crm_fundader
e53364ba0d5f13e24c595d5e43978e64fce5afea
26c0ce30a8f5cb6e517efd6ab045b87422f495b5
refs/heads/master
2023-01-01T21:09:21.107814
2020-09-23T20:26:23
2020-09-23T20:26:23
298,085,070
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
"""fundader_crm URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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-...
[ "gonzalezamistad0220@gmail.com" ]
gonzalezamistad0220@gmail.com
01bff7903cc8aa59a879b500eec5d13f743213f7
c54c1954e4535b534f6faf6afed26be7907da113
/dice/dice.py
b1d9e2e91c28f00208ec8dca10dfe8197f7c21dd
[]
no_license
adleida/dice
a039db9b780828e866551588606cc795a6daa456
5bff51489616cfffd1f1f4517524d900a14868d0
refs/heads/master
2018-12-30T02:48:15.017740
2015-06-10T10:28:54
2015-06-10T10:28:54
37,183,228
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # File Name: dice/dice.py # Author: Tate_fan # mail: tate_fan@163.com # Created Time: 2015年06月01日 星期一 15时30分46秒 # ====================================================================== import dice import logging import logging.config from .flask_app import WebApp, args, cfg...
[ "yongtao.fan@adleida.com" ]
yongtao.fan@adleida.com
9c4aa0ece8d68eb18ff0f56a9193f4994857b239
d71f549663180bac506849c46cf98d2307cb7dd2
/PYthonFiles/priceingStruct/priceStrucWickedRide.py
ca2fecd640f40a295f4b2c61318c1378d38ad5fa
[]
no_license
saurabharas/RentalProject
e5a78b31d1a983718a7af311864e54fa7808d5c5
297b6a45901715fdfd459458182d5c7e1060dca0
refs/heads/master
2020-12-31T06:09:17.366760
2017-04-01T08:46:26
2017-04-01T08:46:26
80,615,271
0
0
null
null
null
null
UTF-8
Python
false
false
33,501
py
import time from collections import Counter from datetime import datetime, timedelta from selenium import webdriver from bs4 import BeautifulSoup from collections import defaultdict ''' pickUpTotal=datetime.strptime('19-02-2017 12', "%d-%m-%Y %H") ...
[ "saurabharas1994@gmail.com" ]
saurabharas1994@gmail.com
244e88616bf81f1c34a8a5451509ece0937aeb6f
3a41d31a5d6a3a217b3085e2ebcc4e1fef9f3fe1
/LeNet.py
4aac031cca885f55ab27316685eb87f193adcfe2
[]
no_license
cxk1998/NoiseDefense
fb45d9d1c4f5c29eb82f55c3d835d6c29ec05e30
5c34d530fcf6a66d876a1170ea25c9bf4f78089f
refs/heads/master
2022-05-23T18:02:08.977199
2020-04-29T06:41:06
2020-04-29T06:41:06
259,845,427
0
0
null
null
null
null
UTF-8
Python
false
false
5,921
py
# LEnet 网络 ################################ # 输入 1*28*28 # conv2 6*28*28 # maxpool 6*14*14 # conv2 16*10*10 # maxpool 16*5*5 # linear 120 # linear 84 # linear 10 ################################### import torch import torchvision as tv import torchvision.transforms as transforms import torch.nn as nn import t...
[ "1285224626@qq.com" ]
1285224626@qq.com
c1688dd8a6ab0e6d3e78ae4cc2ca727e136cde98
aa480d8b09dd7ad92c37c816ebcace24a35eb34c
/third-round/98.验证二叉搜索树.py
cd2da970c58b69ea6e7594bbd03f0c33dee7998b
[]
no_license
SR2k/leetcode
7e701a0e99f9f05b21216f36d2f5ac07a079b97f
de131226159865dcb7b67e49a58d2ddc3f0a82c7
refs/heads/master
2023-03-18T03:37:02.916453
2022-09-16T01:28:13
2022-09-16T01:28:13
182,083,445
0
0
null
2023-03-08T05:44:26
2019-04-18T12:27:12
Python
UTF-8
Python
false
false
1,999
py
# # @lc app=leetcode.cn id=98 lang=python3 # # [98] 验证二叉搜索树 # # https://leetcode-cn.com/problems/validate-binary-search-tree/description/ # # algorithms # Medium (35.59%) # Likes: 1457 # Dislikes: 0 # Total Accepted: 449.5K # Total Submissions: 1.3M # Testcase Example: '[2,1,3]' # # 给你一个二叉树的根节点 root ,判断其是否是一个有效的...
[ "luozhou.csy@alibaba-inc.com" ]
luozhou.csy@alibaba-inc.com
76ed65cddd7842518ab08d6a5653fe73d806c8ad
dfd0566e8beed86a1708e773a0cb6b3268125384
/lib/python2.7/site-packages/ghpythonremote/connectors.py
e107877621fc3f0097584ff3b906df054e8fc868
[]
no_license
aldoranx/my-blog
97b7bd58f916b9f15a0ea27d9fa0ce313f3b8a12
a255cd7a4ad33b2102e5aa76a83ae840fe360f51
refs/heads/master
2022-12-31T08:34:55.130886
2020-10-14T09:38:09
2020-10-14T09:38:09
292,361,674
0
0
null
null
null
null
UTF-8
Python
false
false
17,055
py
import errno import logging import os import platform import socket import subprocess from time import sleep try: import _winreg as winreg except ImportError: import winreg from ghpythonremote import rpyc from .helpers import get_python_path, get_extended_env_path_conda logger = logging.getLogger("ghpythonre...
[ "geraldwork1@gmail.com" ]
geraldwork1@gmail.com
02b3788367bf8c81aefe06a9885086b46a11f04d
2c691f89e0cbc83bd2dde3ca7f01d441a0493652
/Experiment/habituationStim.py
f86903a8893aab4ff13bcc84f88264cb310db306
[]
no_license
NNiehof/GVSNoise
eebe347851c1d4ff7ba39aaaa4d12ba6a38c8055
9269a816dc6142166a4d783a57203d67194cec14
refs/heads/master
2020-03-21T02:52:42.602058
2018-07-19T14:29:43
2018-07-19T14:29:43
138,025,814
2
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
# Nynke Niehof, 2018 from Experiment.GVS import GVS from Experiment.genNoiseStim import genStim import matplotlib.pyplot as plt def habituation_signal(): """ Generate a habituation signal with a slow ramp """ amp = 1.0 duration = 25.0 f_samp = 1e3 buffer_size = int(duration * f_samp) ...
[ "n.niehof@donders.ru.nl" ]
n.niehof@donders.ru.nl
f5b48777983c83671e9f41d73bae623898a46a17
1df2491dd7208cf3cbe1410c3853de1cd7f37480
/robocorp-code/tests/robocorp_code_tests/fixtures.py
c87b1d06775199a3c4ef337320cf72def9df9c74
[ "Apache-2.0" ]
permissive
xylix/robotframework-lsp
c8cfa63e452be6635a7072cf4cdc7f201a286ca4
ae21ddd460608d8e72ddcafe261c2df55b49db21
refs/heads/master
2023-01-23T17:47:45.633410
2020-11-23T12:03:45
2020-11-23T12:03:45
275,767,608
0
0
null
2020-06-29T07:56:06
2020-06-29T07:56:06
null
UTF-8
Python
false
false
7,919
py
import os import pytest from robocorp_ls_core.protocols import IConfigProvider from robocorp_ls_core.robotframework_log import get_logger from robocorp_ls_core.unittest_tools.cases_fixture import CasesFixture from robocorp_code.protocols import IRcc, ActionResult log = get_logger(__name__) @pytest.fixture def lan...
[ "fabiofz@gmail.com" ]
fabiofz@gmail.com
31e3ddb982ee1cffa8058bbecf325c5dbdd7093d
c117f7064b7132778bead5a8b77b67e2429a2b7a
/beteven.py
27e35d3bb83cd426ac35de52a2b1a860ad6f518d
[]
no_license
gurudurairaj/gp
664306f41f73f8b620ba74b048372e1c94e59bc7
2fce98f7428103b54b9edd075d4a83dc434c2926
refs/heads/master
2020-04-15T05:00:45.934019
2019-05-26T17:54:54
2019-05-26T17:54:54
164,405,807
0
0
null
null
null
null
UTF-8
Python
false
false
114
py
n,m=input().split() n=int(n) m=int(m) ll=[] for i in range(n+1,m): if i%2==0: ll.append(i) print(*ll)
[ "noreply@github.com" ]
noreply@github.com
b5ac408244b0956e4dc6ac8faa9fd9c6d0f30e69
5826280cde9f6eef10ec97db021a829c6a97fe51
/python/productMange/product/urls.py
605f847f1c15bb7f9b4cca262d04f9abca992c81
[]
no_license
Sindahx/upload
2faaec36b413c57402b82f58fba6a76e4a3d0478
1ef4a4cb9804008016eb6fb8b16e40f817ff2805
refs/heads/master
2023-01-29T17:29:21.191131
2019-07-25T12:38:46
2019-07-25T12:38:46
127,373,252
0
0
null
2023-01-10T23:54:01
2018-03-30T02:49:41
Python
UTF-8
Python
false
false
183
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index), url(r'pro_list$', views.pro_list), url(r'save_list$', views.saveProlist), ]
[ "sinda.h@qq.com" ]
sinda.h@qq.com
05b1aaa0f5ec88eeeaf57ab42afdecbe4911b1bb
c62d47765f2931926b7d0d4354aac70b3a345d6f
/src/task2_2.py
ae98e192a676acd7bb8c21432ae9d4e02f6c96bc
[]
no_license
jgongil/de_challenge
ed228387adea5cb1e4773db560c3a7c2bd7041fd
3e614ec0c2a7c9314cea9d2610c2658161b91424
refs/heads/master
2023-03-27T21:56:23.056290
2021-04-03T16:29:37
2021-04-03T16:29:37
352,990,209
0
0
null
null
null
null
UTF-8
Python
false
false
766
py
# PART 2: Spark Dataframe API ## Task 2: Creates CSV that lists the minimum price, maximum price and total row count summary = airbnb_df\ .groupBy()\ .min('price')\ .collect()[0]\ .__getitem__(0)\ ,airbnb_df\ .groupBy()\ .max('price')\ .collect()[0]\ .__getitem__(0)\ ,airbnb_df.count()...
[ "jgongil@MGil.local" ]
jgongil@MGil.local
b0d4bf9981244b768521aa0fddccb6d57a0aa52d
544743de026a3ee5d98dc1edc6dfc4ff9c546f55
/quizapp/quiz/admin.py
673d02b31654bd5e4df99ed71bbab7a132c37f39
[]
no_license
bhansa/django-quiz
68a4daeb6fe2a950601dc6cc0f544b21d0891a0a
05653498a008edcfbb5042f90f15f7acae0351e7
refs/heads/master
2021-01-01T06:13:02.407668
2017-07-17T07:30:21
2017-07-17T07:30:21
97,381,843
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
from django.contrib import admin from .models import Question admin.site.register(Question)
[ "bsaraswat@gmail.com" ]
bsaraswat@gmail.com
3a0929e3aa1cc9bf47f1148955a3d3260d60125c
a040fab5954fd31eedb7c303e7f56d9834dad548
/inventory/migrations/0001_initial.py
87d69442be14b1e1878fef481dc50aad8adf3c3d
[]
no_license
horatiorosa/firstdjangopp
57d7ae23294e91870aba70d72716f464f3735f50
6c865f328e9d8f88f73527a9c42d38ed84deb018
refs/heads/master
2021-01-10T10:04:09.603747
2015-10-28T04:36:31
2015-10-28T04:36:31
45,083,797
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.dev20151024185721 on 2015-10-27 19:51 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( ...
[ "horatiorosa@aol.com" ]
horatiorosa@aol.com
4a33c1d637a89156009bfa5b49d2776f3074f2c3
a8062308fb3bf6c8952257504a50c3e97d801294
/problems/BestTimeBuySellStockWithCooldown.py
4d7e38fb7c1273d5d2ae76bbef1f7f1e3e51a90c
[]
no_license
wan-catherine/Leetcode
650d697a873ad23c0b64d08ad525bf9fcdb62b1b
238995bd23c8a6c40c6035890e94baa2473d4bbc
refs/heads/master
2023-09-01T00:56:27.677230
2023-08-31T00:49:31
2023-08-31T00:49:31
143,770,000
5
0
null
null
null
null
UTF-8
Python
false
false
955
py
from math import inf """ d[i][0] = max{d[i-1][0], d[i-1][1] + prices[i]} d[i][1] = max{d[i-1][1], d[i-2][0] - prices[i]} here we must use i-1 in d[i][1], because after selling , you need to cooldown one day. So each time, when you buy a stock, you need to use i - 2. """ class Solution: def maxProfit_before(self,...
[ "rarry2012@gmail.com" ]
rarry2012@gmail.com
ca38eb3f635946ec0dfb1e07c8eb036d07605990
516913d9cf0866abe498a93a01c569f4dd1dc9d3
/concoord-1.0.2/build/lib.linux-x86_64-2.7/concoord/utils.py
e2152c743d9f169cef4de13d6b140b69e045a736
[ "MIT", "BSD-3-Clause" ]
permissive
milannic/expCPython
5f5ce9354d778e310f9377334e4eed3c442e8739
b062a11326f0a1cbaeb2609bd37f96854621da99
refs/heads/master
2021-01-10T20:13:18.604135
2014-05-19T19:24:58
2014-05-19T19:24:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,639
py
''' @author: Deniz Altinbuken, Emin Gun Sirer @note: Utility functions for the runtime. Includes a timer module for collecting measurements. @copyright: See LICENSE ''' import socket import os, sys import time import string import threading from concoord.enums import * def findOwnIP(): """Retrieves the hostname of...
[ "milannic.cheng.liu@gmail.com" ]
milannic.cheng.liu@gmail.com
ae1c3a9691da7ed4f10ee68e80335c727dd44e27
4436b5d11505b30807b11d647936d1dc76d28200
/glucose/serializers.py
56b36e4b952d4a322b8a888bd721bd803e1f4233
[]
no_license
JulenEA/una-health-test
5ffeeba351c5b7bef9ef24cb84e112927e02ef29
736f27c1408ecdf3c4ed8db61b842573a014cee0
refs/heads/master
2023-09-06T02:29:18.860553
2021-11-15T14:17:34
2021-11-15T14:17:34
428,292,307
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
from rest_framework import serializers class GlucoseLevelSerializer(serializers.ModelSerializer): class Meta: model = "GlucoseLevel" fields = ["value"]
[ "ea.julen96@gmail.com" ]
ea.julen96@gmail.com
5316dfde2969474c4777ce22b026d1c674ccf87f
356c0ef1a1560bf885bab80ee047236272380355
/第五周的作业.py
3f811714de09a1a7b834c1e25bd06679c5c839d9
[]
no_license
q362052264/-4
ee487329a432b90a5177b7a6a84e3078dcd95645
896377823e135563cff9bfe066daea16e1d22e32
refs/heads/master
2020-03-28T09:20:56.547491
2018-11-17T15:15:52
2018-11-17T15:15:52
148,030,501
0
1
null
null
null
null
UTF-8
Python
false
false
2,351
py
#1. from functools import partial def mul(x,y): return x*y a=partial(mul,2) #2. def add(x,y,z): return x+y+z from functools import partial addA=partial(add,x=1,y=2,z=3) addA() #2.2 def add(x,*args): sum1=x for i in args: sum1=sum1+i print(f"sum={sum1}") return sum1 def add1(x,*a...
[ "noreply@github.com" ]
noreply@github.com
5801a063d7176dd91cb959457aa7299976029703
fda434f6e613d73c6e1acfe45d84130cfb37ec5f
/centriod_tracking/object_tracking.py
73ce7dd643c6f9af3ecf191a0b1f3d3479c48e52
[]
no_license
pengyue/computer_vision
a79588ab181393e9ff7bdc7f865030633d1cf26d
d7762e947d0d40590fc45103fa94c92b7f20cfd7
refs/heads/master
2023-04-20T02:10:56.692713
2021-05-16T18:24:29
2021-05-16T18:24:29
104,679,803
0
0
null
2017-09-30T19:20:33
2017-09-24T22:11:44
Python
UTF-8
Python
false
false
3,141
py
# import the necessary packages from centroid_tracker.centroid_tracker import CentroidTracker from imutils.video import VideoStream import numpy as np import argparse import imutils import time import cv2 ap = argparse.ArgumentParser() ap.add_argument("-p", "--prototxt", required=True, help="path to Caffe 'deploy' pro...
[ "zippoi_yp@hotmail.com" ]
zippoi_yp@hotmail.com
75f6503d0e78a5ad7eadd5a4640cd36be9faab91
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_27257.py
dd5ad1d210030a0ef846632ef623d71976c3a33c
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
# Ipython notebook caching issue %load_ext autoreload %autoreload 2 import ...
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
116d66a4f7efaff3dced2521575e4fff667ad408
6bab6dd66e8d06cd47217a1d9c8e4176018ef381
/ServerSide/twitter sentiment analysis/sentiment_mod.py
7ec2016503b0d7acd616729b03c8b0d7d8ba8311
[]
no_license
ni3aswal/OneLifeRescue
e3fad0c96c0758e6b333a5abe7057eb2bcad92b3
a8b519665fdc703d42d1b3edf17e4306f7c6c2a0
refs/heads/master
2021-06-30T14:18:20.171693
2019-07-21T11:05:13
2019-07-21T11:05:13
151,963,028
0
0
null
2020-09-04T23:03:34
2018-10-07T16:48:54
JavaScript
UTF-8
Python
false
false
2,792
py
import nltk import random #from nltk.corpus import movie_reviews from nltk.classify.scikitlearn import SklearnClassifier import pickle from sklearn.naive_bayes import MultinomialNB, BernoulliNB from sklearn.linear_model import LogisticRegression, SGDClassifier from sklearn.svm import SVC, LinearSVC, NuSVC from nltk.cla...
[ "ni3aswal@gmail.com" ]
ni3aswal@gmail.com
1e91a5ced33f3e657e50a075b92b9a3991502e26
68463eaf559a3063ac9d490dc36676d714f817c5
/statsy/cache.py
aaca9dc5a1ac86124080f69509094edda091b825
[ "MIT" ]
permissive
zhebrak/django-statsy
6ba1e94e19da0ed8d25ed1f9f5b32f33ddafc83e
d74845e75c78842fc3890db123ab6e36fe2d3973
refs/heads/master
2020-05-25T13:37:02.105397
2019-03-29T21:59:41
2019-03-29T21:59:41
27,049,965
60
11
MIT
2019-03-29T21:59:42
2014-11-23T22:12:29
JavaScript
UTF-8
Python
false
false
719
py
# coding: utf-8 from django.core.cache import cache as django_cache from statsy.settings import CACHE_TIMEOUT class StatsyCache(object): @staticmethod def get(key): return django_cache.get(key) @staticmethod def set(key, value, timeout=CACHE_TIMEOUT): return django_cache.set(key, va...
[ "fata2ex@gmail.com" ]
fata2ex@gmail.com
63fa5496b2ea77bdd19fad000cb490f1f4704501
77db7aa2b94cac35e62ea325144e8f40d7412f58
/standard_library/email/message_text.py
8ca2255d3ee295022f038f4327719a1f5e6b8655
[ "MIT" ]
permissive
eledata/PythonStudy
a9081988133b375fd484ec9f6d79078de62e12ed
75e51d6c08e8c5464d421408cfc830fcb6720a0a
refs/heads/master
2021-07-06T03:26:13.266239
2020-09-28T03:02:01
2020-09-28T03:02:01
187,608,616
0
0
null
2019-05-20T09:21:43
2019-05-20T09:21:42
null
UTF-8
Python
false
false
1,009
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 17-8-28 下午4:31 # @Author : Tom.Lee # @File : text_message.py # @Product : PyCharm # @Source : """创建并发送简单文本消息""" import smtplib from email.mime.text import MIMEText # # config email me = '' you = '' smtp_host = '' smtp_p...
[ "1123431949@qq.com" ]
1123431949@qq.com
bfee887f18fe65fae065f030fc687ef7d3121180
306f0cdeabad9f14c06ec3e51998111521047368
/EdgeDetectionSobel.py
4568a8a10e547dba554a477cc58e2122cb5923d9
[]
no_license
jinkaido1/Computer_Vision-Image-Processing-CSE-573
a0817cf5c0b4289e484fb82eef88eeefffbdff86
d8b6c614b41d678c40380ad6bbea21bb1af1e9af
refs/heads/master
2022-01-20T11:42:02.646076
2019-05-27T19:54:20
2019-05-27T19:54:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,576
py
import numpy as np import cv2 import sys import os def create_zero_array(name_of_array): name_of_array = [[0 for x in range(image_height)] for y in range(image_width )] name_of_array = np.array(name_of_array) return name_of_array # Convolve function - takes the kernel as an argument def Convolve(kernel,output)...
[ "noreply@github.com" ]
noreply@github.com
632eeb81e00fb2841427df6e05e7eb5104583de6
f4c88c87cdf6994b4943852481a326c8fe5e808f
/pw1.py
b0a2e24b9691f73403ff36fb1339dcaa31176cb7
[]
no_license
MeganWang18/homework
db41691804f608393c9d6d5d296d2e081f049c02
ff2052022e268a2cf35a47bc5ce2f482e2197f54
refs/heads/master
2022-04-12T03:10:49.851607
2020-04-11T07:07:42
2020-04-11T07:07:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,534
py
#!/Library/Frameworks/Python.framework/Versions/3.8/bin/python3 import re from pwn import * def getMidChar(lowChar=None, highChar=None): midChar = chr(int((ord(lowChar) + ord(highChar))/2)) if midChar == lowChar: midChar = chr(ord(midChar)-1) elif midChar == highChar: midChar = chr(ord(mid...
[ "sujungwang@gmail.com" ]
sujungwang@gmail.com
e822734452788469381fe098b7e95cf0e104855e
c9f17f091a4f86442def1cd5b20c5ea461a970ea
/neo/Prompt/Commands/tests/test_send_commands.py
c0dbced8b11b19fa20427dc1875391e0a1997336
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
LysanderGG/neo-python
147fc5346f7017c153edede755c6de95e6dadda8
d6ba2f6407efadd943910814d65fc98f57093974
refs/heads/development
2020-04-03T02:43:57.493330
2019-01-16T13:59:17
2019-01-16T13:59:17
154,965,219
0
0
MIT
2019-01-16T14:02:16
2018-10-27T13:02:46
Python
UTF-8
Python
false
false
25,704
py
from neo.Utils.WalletFixtureTestCase import WalletFixtureTestCase from neo.Wallets.utils import to_aes_key from neo.Implementations.Wallets.peewee.UserWallet import UserWallet from neo.Core.Blockchain import Blockchain from neocore.UInt160 import UInt160 from neo.Prompt.Commands.WalletImport import ImportToken from neo...
[ "noreply@github.com" ]
noreply@github.com
02ab97bdf11eab35132ba94b3fa12e4782ce20cf
41e52022ab2dcf15d3795a9a60e24229ba9c9099
/tools/analyse-io.py
da96de86b4e4435193235f767fd13229aeb0b4ad
[]
no_license
a-yandulski/TelemetryPoC
e114b86978795260858e77738bec3085bc327b94
a2560f0f86136ec921a4bb3beab8dc76a6237131
refs/heads/master
2022-07-03T21:05:38.461402
2020-05-14T10:31:47
2020-05-14T10:31:47
255,569,014
0
0
null
null
null
null
UTF-8
Python
false
false
2,485
py
import json import requests import sys import csv import datetime import time now = int(datetime.datetime.today().timestamp() * 1000) lookback = 7 * 24 * 3600 * 1000 # 7 days in milliseconds services_url = "http://localhost:16686/api/services" dependencies_url = f"http://localhost:16686/api/dependencies?endTs={now}&lo...
[ "a.yandulski@godeltech.com" ]
a.yandulski@godeltech.com
cca02e1e5eb10c14810e2b242c4ef1a28857a41e
05e5698d9c62f7ddc9661dc59bd0e7c7fc9bf07d
/blog/admin.py
42aa040d04f7157def4549b23452b923e9555608
[]
no_license
andresff50/ByteDist
f38d0078050299f19e9e302d15fbd90f6f1fe5d4
7ca19623a15e7b9cc553c31cdd1e8a36641489f5
refs/heads/master
2020-07-22T11:59:09.672995
2020-01-12T20:51:38
2020-01-12T20:51:38
207,194,694
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Category, Tag, Post # Register your models here. class PostModelAdmin(admin.ModelAdmin): list_display = ["title", "created_date", "published_date", "author", "c_view", "status"] list_filter = [...
[ "andresvz50@gmail.com" ]
andresvz50@gmail.com
6bb0b496092ba4fd24481021b84b8eb80ca6cd79
e3d620828aa693e5e11dd6e0f0547fb173cd3c5b
/kube-cpusets/kube-cpusets/kube_cpusets/tests/test_kube_cpusets.py
36626e7e92507a9b6b35b4a6cb9e1b8aad58d6b8
[ "Apache-2.0" ]
permissive
starlingx/monitoring
57b3b2fd1c3389e018202e96d0fdf2409a7b8cdf
0d1ac162dc5337e463a7980f8e03ea7ca3910c94
refs/heads/master
2023-09-04T11:04:07.994824
2023-08-29T17:02:07
2023-08-29T17:02:07
238,744,168
2
2
null
null
null
null
UTF-8
Python
false
false
371
py
# # SPDX-License-Identifier: Apache-2.0 # # Copyright (c) 2020 Wind River Systems, Inc. # import testtools class KubeCpusetsTestCase(testtools.TestCase): # NOTE(jgauld): Suggest add basic cpuset parsing tests. # /sys/devices/system/cpu/isolated def test_isolated_cpusets_parse(self): pass ...
[ "james.gauld@windriver.com" ]
james.gauld@windriver.com
7039823df479d2c91657c0e73ca1d4a67f8bad0d
d44af0b6315765ed94e470f5ce1aacb146299dfe
/os-tweet.py
bf06262c3a7de8a366980114cc742e4d98df4e14
[ "Apache-2.0" ]
permissive
swoodford/twitter
df6e38752e5c754087a137b35f6e61e6bb04fd4d
c8fa1b273dadda7dfe33efc8d82bc0bb28795555
refs/heads/master
2021-01-10T03:12:57.780661
2017-08-31T22:21:06
2017-08-31T22:21:06
44,554,240
1
0
null
null
null
null
UTF-8
Python
false
false
1,157
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # This script will tweet your current Raspberry Pi OS version details # Requires Twython, API credentials set as env vars import os import time from twython import Twython import twitter_api_creds # Set Credentials from environment variables CONSUMER_KEY = os.getenv("CON...
[ "sw@shawnwoodford.com" ]
sw@shawnwoodford.com
19b951f099dc942c519339f10cba334910583334
25563b7084e44b9aeb522c8426942b077a16dd6a
/currency_info_server/api/models.py
1dcceb4ddfc1b1f73413606ae84d670eb88c8b37
[]
no_license
mieszkosluzewski/currency
00c437477f436a0a8fdac929d3724daeba087605
c18ee5aa21179b8f2b0792aeafd28670f245b69d
refs/heads/master
2022-12-12T02:34:57.087577
2018-08-26T12:47:07
2018-08-26T12:47:07
145,881,802
0
0
null
2022-12-08T02:47:28
2018-08-23T16:45:13
Python
UTF-8
Python
false
false
278
py
from django.db import models class ExchangeRate(models.Model): """ Model for currency exchange rate. Exchange rate are related to EUR. """ date = models.DateTimeField() currency = models.CharField(max_length=3) exchange_rate = models.FloatField()
[ "mieszkosluzewski@gmail.com" ]
mieszkosluzewski@gmail.com
2845418777ab64fad89574f07fd0e3696b1806e0
2db37525eb81169d18bfca9b66ace80293fef94a
/decisionstructure/1_two_numbers.py
b165d98764c61acc88accc54989081249c0b29d3
[]
no_license
leosbarai/pythonbrasil
3ec79c5fae966e4c9befc0c91da3e6d91b693f6a
44255343bc301533f94fb06a77644a44731cf36c
refs/heads/main
2023-02-28T10:32:14.699135
2021-02-05T16:47:52
2021-02-05T16:47:52
308,131,443
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
def numbers(): print("**********************************") print(" Exibe o Maior Número!") print("**********************************") number_one = input("Informe o primeiro número: ") number_two = input("Informe o segundo número: ") if number_one.isdigit() and number_two.isdigit(): ...
[ "leonardo.sbarai@dextra-sw.com" ]
leonardo.sbarai@dextra-sw.com
731347542f0c51d82fb738cde80ae938865f584c
f69f1c9180ad49d332a3033216d71da16390344e
/combined_dirichlet_architectures/LEGACY/beta_k3/caller.py
f37ebe362ae179fde14338ab9d1428232f0eb389
[]
no_license
acevedo-oscar/MicrobiotaGAN
447e53cfb50940f5f71992ad2fe5fef8d4e31aa3
cc47443b7196cbbe73df6141c4f5da5b0289f46b
refs/heads/master
2023-04-22T06:57:25.803107
2021-05-05T03:37:08
2021-05-05T03:37:08
149,841,383
0
0
null
null
null
null
UTF-8
Python
false
false
2,448
py
import pandas as pd import numpy as np import csv from timeit import default_timer as timer partiton_n = pd.read_csv('random_amounts.csv', header=None).values.flatten() print(partiton_n) ## import os cwd = os.getcwd() print(cwd) os.chdir("../../") ## print("Loading Train func") from train_dirichlet_interface import ...
[ "Fisgon2018" ]
Fisgon2018
15def91348e123b84348c86c88d5732c13bd0bf3
5c084bd8095661797c76b73071abcdb27ec56318
/com/migrations/0001_initial.py
1635c458201887fc3a8b1aa179c0fdd376ba8048
[]
no_license
Digvijai/butterpro
1864f413a17043053d211c0523928cd020a7ba00
59e7d7992b1811a5e6dfc83e4f39d3d69e21a8c1
refs/heads/master
2023-02-07T13:28:48.084629
2020-12-31T14:41:02
2020-12-31T14:41:02
325,519,227
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
# Generated by Django 3.1.4 on 2020-12-26 15:09 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', models.AutoField(...
[ "seema.singh2081974@gmail.com" ]
seema.singh2081974@gmail.com
22708cee8f7060234de219330aa6019ee7d7e034
6068170443a67a5385962886f1702725ae539e2a
/model/Board.py
4fd9d61fc726b86106fb893896ba72fe7d3481fd
[]
no_license
Timuer/BBS
739d768914290b6fa40eb6dfead5271f8bc767b2
65eace466afb03411cb48bcb7190e6127f0ac863
refs/heads/master
2020-03-11T14:48:42.105033
2018-09-05T13:28:48
2018-09-05T13:28:48
130,065,840
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
from model import MongoModel class Board(MongoModel): __fields__ = MongoModel.__fields__ + [ ("title", str, ""), ("description", str, ""), ] """ class Board(Model): def __init__(self, form): self.id = form.get("id", "") self.title = form.get("title", "") self.description = form.get("description", "") "...
[ "m15927177412@163.com" ]
m15927177412@163.com
16c45496bc6c18f97399be82222b4dc40de75a3a
0ed54a31e4a3055bd6a9c293b2137a0a75e93cd7
/priv-esc-linux.py
650ad58fd3ac5ea88feecf9081248510ee4d79d4
[]
no_license
sarakainimame/linux-privilege-escalation
31805e5acc71f6fc7ee0b2bf8f3e3cfb9c229a19
39427e457aeb2fce40987297b1d7864d91e33f7b
refs/heads/main
2023-04-23T17:31:49.538507
2021-05-08T08:18:10
2021-05-08T08:18:10
359,348,789
3
0
null
null
null
null
UTF-8
Python
false
false
4,207
py
#!/usr/bin/env/ python3 ##################################################################### # # # This is an automation tool for Linux Privilege Escalation # # # # It does: # # + OS, Release, and Kernel information gathering # # + Root service check ...
[ "sarakainimame@gmail.com" ]
sarakainimame@gmail.com
610b52b8b40a4fe4bdfd01b124c3f409e1b68aed
5f1284a4f08d6bbb0491ccb4edcf2faf185f33df
/main.py
5e390cfda45dc24c5ac0ea5c7fbf4c3bf8267bc1
[ "MIT" ]
permissive
isavillamiel/URLShorty
9cae31ab90e057f34af1e92ca4a67455555b188f
af71d9d5918e05ec70cbc1c4ae1e35b7e9bafe4c
refs/heads/master
2021-08-31T14:31:35.860411
2017-12-21T17:55:57
2017-12-21T17:55:57
115,032,433
0
0
null
null
null
null
UTF-8
Python
false
false
2,728
py
from flask import Flask, request, render_template, redirect from math import floor from sqlite3 import OperationalError import string import sqlite3 try: from urllib.parse import urlparse str_encode = str.encode except ImportError: from urlparse import urlparse str_encode = str try: from string imp...
[ "noreply@github.com" ]
noreply@github.com
41052edd751343f504e45a45d5ff32e5d3c0b3a2
aca4ffb711bfd8c30a6357ccb463f4ad0d8715a4
/venv/Lib/site-packages/sqlalchemy/events.py
ff84272c6a95a8f3794b688c650f5f954a608283
[]
no_license
zengke123/EbOps
2f96673d999c6f7dcdc346f4f68869a6dcf49521
6bdfbe8e2a568819340b17b32dd1d6deb4db5a4b
refs/heads/master
2022-12-10T17:04:49.309971
2019-08-02T14:31:25
2019-08-02T14:31:25
183,548,231
8
2
null
2022-12-08T05:57:55
2019-04-26T03:11:59
Python
UTF-8
Python
false
false
51,639
py
# sqlalchemy/events.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Core event interfaces.""" from . import event from . import exc from . impo...
[ "249626102@qq.com" ]
249626102@qq.com
3af5bcdeb732a8276230f2d75dcdba8ebedda0ad
1f3b92255c66a5a7fb51f1cc77a902f78ee76688
/untitled3/ua/lviv/iot/armament/models/ApartmentType.py
925d4e13ccd90e96fb3b8645e1668b5b28f997d1
[]
no_license
YuliaYassnyska/Lab11
8475a9308183d9a7769ecb5b148b9992722edfec
fda5d5f26d1fc1a9a3c5069be719cafcae3bb94f
refs/heads/master
2020-05-20T05:44:21.306387
2019-05-07T23:06:35
2019-05-07T23:06:35
185,413,900
0
0
null
2019-06-09T13:22:49
2019-05-07T14:02:19
Python
UTF-8
Python
false
false
97
py
from enum import Enum class ApartmentType(Enum): PISTOLS=0 GRENADES=1 SNIPERDEVISE=2
[ "yuliayasso@gmail.com" ]
yuliayasso@gmail.com
d760dbf6c270bdb690105efdf7eb6c672753a781
1d53e2839b2fe7573f8abfad56cc93766b5ce90c
/practicepython/list-comprehensions.py
e1e0dbea26c2146e3bdc1587bfc9817cb12fea90
[]
no_license
amitparmar01/python-learn
a25fe0b5c9d73afdc6c501de850bec47e0fca0b9
b3224dcfeca60d2472287df89be204eb99cdf3c0
refs/heads/master
2021-01-25T05:34:39.832430
2015-06-25T17:38:57
2015-06-25T17:38:57
37,963,277
2
0
null
null
null
null
UTF-8
Python
false
false
150
py
def main(): a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] even = [num for num in a if num%2 == 0] print(even) if __name__ == "__main__": main()
[ "parmar.amit@gmail.com" ]
parmar.amit@gmail.com
271c16554eec56e35a88f5b7354f2ceedf4be695
4c04bfa2b0dd91250e35bce2886954830299bb80
/contrib/testgen/gen_base58_test_vectors.py
0864f4bb3837b0a2025cbde5834631658d7d719a
[ "MIT" ]
permissive
thehomosapien/dclr
6a81a5fcd761b6fb7cf21f5d1c7e64d8d6e0c941
dba88f2ad6359addaa66f1875792cc8c4f30d686
refs/heads/master
2020-07-04T03:28:50.754864
2019-08-13T12:27:40
2019-08-13T12:27:40
202,137,473
0
0
null
null
null
null
UTF-8
Python
false
false
4,591
py
#!/usr/bin/env python # Copyright (c) 2012-2018 The Bitcoin Core developers # Copyright (c) 2017 The Raven Core developers # Copyright (c) 2018 The DCLRcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Genera...
[ "rishabhshukla@opulasoft.com" ]
rishabhshukla@opulasoft.com
6d95b8e7f0f080375b6f7fbe55eb73c7ed357a40
c7ac751f9f13f133184d7df31c016e7b3be38da7
/url_builder.py
b3c29e749c480a15217d3545a431f1be2308daee
[]
no_license
pietro-andreoli/BB-Oracle
84b6a38a4c19bf1413b309f94f66cf98e4825196
4db1b54d2402c646d1c104791ba8fa477f430e4c
refs/heads/master
2023-02-10T09:12:15.157409
2020-12-27T19:31:31
2020-12-27T19:31:31
324,826,097
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
class BestBuyURLBuilder(): """ A simple URL builder specifically for BestBuy API URLs. Example: path_parts = ["search", "contact"] url_obj = BestBuyURLBuilder(path_parts) print(url_obj.url) url_obj = BestBuyURLBuilder() url_obj.set_path("search", "contact") print(url_obj.url) Properties: PROTOCO...
[ "pandreoli@ryerson.ca" ]
pandreoli@ryerson.ca
dcc5c035c0a3db9dffc08a1f4dd012a5ba7378e1
d0cebf75d67a5d8be57bd3656684ee2dbf282c8a
/tests/test_square.py
ac369eab2428bba0b666d35e906d800b78deddc5
[ "MIT" ]
permissive
sgill2/tutorial
e310b79fef6edbedd5e98924cbecc5a354356db9
be436fe682896efb72fa54f43ce8b66276757bb4
refs/heads/master
2021-04-29T18:18:33.937197
2018-02-15T23:20:53
2018-02-15T23:20:53
121,690,743
0
0
MIT
2018-02-15T23:23:47
2018-02-15T22:30:10
Python
UTF-8
Python
false
false
743
py
""" Testing area package """ from shapes.square.area import area_square from shapes.square.perimeter import perimeter_square from shapes.triangle.area import area_triangle import pytest def test_square_area(): """ testing function area_square """ length = 2 A = area_square(length) assert pyte...
[ "samgill@dhcp-v048-046.mobile.uci.edu" ]
samgill@dhcp-v048-046.mobile.uci.edu
8456a893f9314c7395601b63bb315e7f5349d99a
83ff6674ad1fc4ac1d9523216149d5dae82f8bbd
/accounts/urls.py
a8e0836da5ea4c3f61d766c4e173108ff8f03fe0
[]
no_license
4802852/Act-Agora
8a75c4622b0e306a514096b0a4aaa3e3360ec26e
7603444e32cebd6d5ae2d3a6f8f3a349373120d2
refs/heads/master
2023-04-28T19:49:18.498810
2021-05-10T13:44:03
2021-05-10T13:44:03
351,899,676
0
0
null
null
null
null
UTF-8
Python
false
false
1,555
py
from django.urls import path from . import views app_name = 'accounts' urlpatterns = [ path('accounts/agreement/', views.AgreementView.as_view(), name='agreement'), path('accounts/signup_t/', views.TrainerRegisterView.as_view(), name='signup_t'), path('accounts/signup/', views.TraineeRegisterView.as_view(...
[ "4802852@gmail.com" ]
4802852@gmail.com
0075ef4446fc7ccdf9f90d6aa94669b2ff78f0b2
2dd895261aeb91953d98248a09c69a7a1873511f
/ember_django/backend/authenticate_user.py
fe7370d24ec382b3422a4048add6c7d5d37f7d4e
[]
no_license
KPetsas/e-science
0245f9dab90946335adc904fc5523e5d1a566b68
bb9f16caeaef5cad98a248f6a2a15990b0fd313c
refs/heads/master
2021-01-16T12:19:49.605386
2015-01-12T14:21:47
2015-01-12T14:21:47
29,286,850
0
0
null
2015-01-15T07:57:58
2015-01-15T07:57:57
null
UTF-8
Python
false
false
2,515
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' This script contains classes and functions that authenticate escience users. @author: Ioannis Stenos, Nick Vrionis ''' import logging from kamaki.clients.astakos import AstakosClient from kamaki.clients import ClientError from rest_framework.authentication import Tok...
[ "johnstenos83@gmail.com" ]
johnstenos83@gmail.com
9bfbbc13e6a41a76c9efbb66aa8b6fe6264d1f22
ad9798fe308ec4837e1e772dad23f5d0a97e2650
/DataStrucsAlgos/Listings/listing_3_4.py
0277926ab54bf7c92f601dbe3d78cd26d07c7a7d
[]
no_license
vivek-x-jha/Python-Concepts
f60839924f5c22117e8866f9ac8daa555181e31f
770d178dea637a21593f4686e1ddc4f3c296c50a
refs/heads/master
2022-03-23T23:26:09.511309
2019-12-22T03:41:47
2019-12-22T03:41:47
111,546,177
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
from concepts.DataStrucsAlgos.pythonds import Stack def parChecker(symbolString): s = Stack() balanced = True index = 0 while index < len(symbolString) and balanced: symbol = symbolString[index] if symbol in "([{": s.push(symbol) else: if s.isEmpty(): ...
[ "vivek.x.jha@gmail.com" ]
vivek.x.jha@gmail.com
9c264644514c139a4eafcd14de69452cf05e2f3a
0572de92159e99958b6d77ecea92060a7cbb4bd7
/001_multi_armed_bandit.py
059ceee8cfe4003ce4525b54abe6be1f072cf9b5
[]
no_license
ironmanciti/reiforcement-lecture
e8e5cabd4cec9fd69a5fdadc86d6386c681083e3
9701951cbd3a0e962aa52d277b9cc0f6fd76ec9a
refs/heads/master
2020-07-08T13:20:19.212860
2019-11-17T00:57:10
2019-11-17T00:57:10
203,686,378
1
0
null
null
null
null
UTF-8
Python
false
false
5,649
py
""" 10-Armed Testbed (Reinforcement Learning: An Introduction, Sutton, Barto, fig 2.2) Created by Jet-Tsyn Lee 23/02/18, last update 03/01/18 Program is to compare the greedy and e-greedy methods in a 10-armed bandit testbed, presented in the Reinforcement Learning: An Introduction book, Sutton, Barto, ...
[ "ironmanciti@gmail.com" ]
ironmanciti@gmail.com
643685a1abf09d1c2d97cfea6dc7afee896f5e04
6861759f3bc7f82554d654e7223280a8a7d86157
/data_manager/manager/TwitterStreamListener.py
0a3f411e987bf9b19144149d547c80f17c16ce56
[]
no_license
nweat/mental-health-research
c8c6cfd0a3a91059ce4e47328ca4d0440affe349
426f6bb425600f3c1a5fb9039341bc012733072d
refs/heads/master
2023-02-12T17:42:13.914410
2023-02-01T04:46:06
2023-02-01T04:46:06
74,685,980
2
0
null
null
null
null
UTF-8
Python
false
false
1,732
py
import tweepy, sys, json, os, os.path import HelperManager as helper """ REFERENCES: http://stackoverflow.com/questions/23531608/how-do-i-save-streaming-tweets-in-json-via-tweepy """ class TwitterStreamListener(tweepy.StreamListener): def __init__(self, limit, path, api = None): super(TwitterStreamListener, self...
[ "nikkiweat@gmail.com" ]
nikkiweat@gmail.com
b83fa683a2914702d34f58b631a73c04236ea9d0
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/cirq_new/cirq_program/startCirq_pragma226.py
876ed49c4a8c218eb909548e558be8e853f51f36
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,536
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=14 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np class Opty(cirq.PointOptimizer): def optimization_at( ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
8050d61e076da223a5c16cdd9de4e8a0891e2bdf
a5064258539dc46d1381ec964896182e7f6674fa
/LinearRegression/GradDescend3D.py
f65d70654abe42612173ab7527bab7953ef28a69
[ "Apache-2.0" ]
permissive
50183816/lineregression
4cdbfc7ced348bc313dd64250a2cc7aaa3428c38
f16e5b18d74cf1fd41ce5dafe1cab5f3f3e30883
refs/heads/master
2020-09-30T13:33:45.680777
2019-12-11T07:24:34
2019-12-11T07:24:34
227,297,107
1
0
null
null
null
null
UTF-8
Python
false
false
982
py
# _*_ codig utf8 _*_ import numpy as np from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib as mpl mpl.rcParams['font.sans-serif'] = [u'simHei'] def f(x,y):# 原函数 return x**2 + y ** 2 def h(x):# 导函数 return 2*x X=[] Y=[] Z=[] x=2 y=2 step=0.1 f_change=f(x,y) f_curre...
[ "Administrator@WINDOWS-2251633" ]
Administrator@WINDOWS-2251633
6c6f5c28509fd31415bce43079b41aac9b9fa74d
6dfc0fa80744d23b4fd33118de31af5b51589d64
/manager.py
d0f6aa5d245ebfe608493e3cfd2c59ee701b3725
[]
no_license
GrandpaAn/grandpaanrent
48832ee7f08d2430dff2fbd07aa9394de8506813
7f716b8010c9e90fae51819ceaf63883b09574d4
refs/heads/master
2020-03-12T20:03:05.472216
2018-04-24T04:44:12
2018-04-24T04:44:12
130,797,011
0
0
null
null
null
null
UTF-8
Python
false
false
2,024
py
from werkzeug.utils import secure_filename from flask_script import Manager from app import create_app, db from flask_migrate import Migrate, MigrateCommand, upgrade from app.models import * app = create_app() manager = Manager(app) migrate = Migrate(app, db) manager.add_command('db', MigrateCommand) @manager.comman...
[ "2236327498@qq.com" ]
2236327498@qq.com
21a9256cade8930d41c842a62f75ffa03f5688e8
4ec77ff70c7e3edce07f889e7284e6e6e1df0860
/bankAccount/bank.py
b4d8d6fc870aee8b20e83a6ef2f67ef177c8ad0a
[]
no_license
victorsemenov1980/Various_Apps
755308b405902204635a117d69feffbb4dc954fd
56640dbe9380b2dd9a4ac84d4d79f283caf5d77e
refs/heads/master
2023-02-22T10:04:09.222008
2021-01-24T10:03:12
2021-01-24T10:03:12
263,818,467
0
0
null
null
null
null
UTF-8
Python
false
false
1,804
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 15 16:39:57 2020 @author: user """ import tkinter from tkinter import* window=Tk() window.wm_title('Current balance')#Title for the window class account: def __init__(self,file): self.file=file with open(file,'r') as file: ...
[ "vs1378009@icloud.com" ]
vs1378009@icloud.com
820ffb64ce2f4d2a3837c7bfd6cdf7171e2781ad
dd29cbe2d3b4595c6d4e12362aa12d415fb5b324
/Hydriot.PiAgent/triggers/contracts/dose_relay_abstract.py
b986b5aa3ee067f48ba5ef2cfdb40f8fc8b64952
[ "MIT" ]
permissive
mariusvrstr/hydriot
6e238d72ca0ff33623a76066fceca84756187787
4b6f3bc9533b57e84ab66802ed66ce8c9be6b9e7
refs/heads/main
2023-06-10T09:48:39.833881
2021-07-04T09:17:37
2021-07-04T09:17:37
332,140,204
1
0
null
null
null
null
UTF-8
Python
false
false
3,370
py
from abc import ABC, abstractmethod ## abstract module from datetime import datetime, timedelta import RPi.GPIO as GPIO import asyncio class DoseRelayAbstract(ABC): name = "N/A" is_enabled = None _counter_sensor = None _eligable = False _last_time_tube_was_filled = None _maximum_prime_time = N...
[ "marius.vrstr@gmail.com" ]
marius.vrstr@gmail.com
e4bc5e498dbc3c8d06ce7dbcbdc9e020bcb148fa
59166105545cdd87626d15bf42e60a9ee1ef2413
/test/test_tournament.py
622fc429f4b92fd6331cb63ab602edd088ca9dc5
[]
no_license
mosoriob/dbpedia_api_client
8c594fc115ce75235315e890d55fbf6bd555fa85
8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc
refs/heads/master
2022-11-20T01:42:33.481024
2020-05-12T23:22:54
2020-05-12T23:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,361
py
# coding: utf-8 """ DBpedia This is the API of the DBpedia Ontology # noqa: E501 The version of the OpenAPI document: v0.0.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import dbpedia from dbpedia.models.tournament impor...
[ "maxiosorio@gmail.com" ]
maxiosorio@gmail.com
4608141a02bdce7b7bce0c759d6721c1b8a6c4f4
baa484828e8683d51d58d48989532e3d3ce987bc
/200227_1.py
467b83b8a14b9be0d86308da4f81a5e998cb92d7
[]
no_license
sungguenja/study_gui
0fc1e17c98a9afc0a6e66a39aeefcd89c3e60f5e
b058ca900061f2bd743f8532056ecedcc6b7ce0a
refs/heads/master
2021-01-16T16:32:28.027456
2020-03-17T16:54:21
2020-03-17T16:54:21
243,184,712
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
import tkinter win = tkinter.Tk() win.geometry("300x300") hello = tkinter.Label(win, text='Hello', relief='ridge') hello.pack(side='left') #왼쪽에 할당이 된다 사용이 안되보이는 장소도 할당이 되있는 상태! hello2 = tkinter.Label(win, text='Hello2', relief='ridge') hello2.pack(side='bottom') # 아래쪽에 할당됨. 여기서 앵커를 걸거나 fill을 써 채울 수가 있다 # 앵커는 다...
[ "59605197+sungguenja@users.noreply.github.com" ]
59605197+sungguenja@users.noreply.github.com
11c946dba93dd2c1be4751a9d475370852b898c6
39e0ee7161cb5b07aa9e9ab779b11c55aa05ae7b
/execute/CoComain.py
fb440907f135e1f3decb8c4be9e044af49789d21
[]
no_license
zhangyoujian/Vehicle-License-Plate-Recognition
7468665f2afdb233ebbae2e062f87f9ea07f47fe
dbf7c9212a40cd28d5fe19fc4143a131afab6b24
refs/heads/master
2020-04-23T22:09:54.335757
2019-07-30T12:03:05
2019-07-30T12:03:05
171,492,376
1
0
null
null
null
null
UTF-8
Python
false
false
3,103
py
import os import sys import random import math import numpy as np import skimage.io import matplotlib import matplotlib.pyplot as plt from mrcnn import utils import mrcnn.model as modellib from mrcnn import visualize ROOT_DIR = os.path.abspath("../") sys.path.append(ROOT_DIR) # To find local version of...
[ "noreply@github.com" ]
noreply@github.com
225e892d393e25a6059a797e599f4f1e545569cd
d5d62f4b7deb6836d785a51432ac35c059e1bd3a
/train.py
4c248421105b15bdc744f0028abe0215678ef7eb
[]
no_license
anirudhdahiya9/IRChatBot
2d15e8bc2a312549733b726082a34c205de4acd5
e919f4c8c080211573a34f0a0174b1add738f99c
refs/heads/master
2021-08-12T04:57:01.287789
2017-11-14T12:58:32
2017-11-14T12:58:32
108,343,467
0
0
null
null
null
null
UTF-8
Python
false
false
5,196
py
from nltk import word_tokenize import sys import collections with open('../train.enc') as f: elines = f.read().decode('latin-1') elines = elines.split('\n') with open('../train.dec') as f: dlines = f.read().decode('latin-1') dlines = dlines.split('\n') print 'data loaded' # In[19]: def build_dataset(...
[ "anirudhdahiya9@gmail.com" ]
anirudhdahiya9@gmail.com
6367acbe75692d761377ab374ee4591f98056f1a
fcdb69b396258c1e3105dbfe1fcd50cc73f7b8cf
/VetorParEimpar.py
7664d17b4178b6b31fda29e7e3e85344d5f5692d
[]
no_license
l0rennareis/Algoritmo
6b7147be1bb21e084c0ccfcc77d61cedd93e13fe
f73a1cbc0ab773b755d756cc2bf8e5cc758a50b4
refs/heads/master
2021-03-19T07:25:50.806907
2017-06-23T22:50:13
2017-06-23T22:50:13
94,377,834
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
pares = 0 impares = 0 vetorPar=[] vetorImpar=[] vetor=[] for i in range(0, 20): numero = int(input('Informe um numero: ')) if (numero % 2 == 0): vetorPar.append(numero) vetor.append(numero) pares += 1 else: vetorImpar.append(numero) vetor.append(numero) impares += 1 print ...
[ "noreply@github.com" ]
noreply@github.com
827a3a7d06b3574c0142d7df5fe8ee4173d23478
e18cd91383fd9d630f5a92034eaa8303225597d0
/_gcloud_vendor/apitools/base/py/exceptions.py
55faa4970ebbcfc9983d66e728a02a57f7f95362
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lucemia/gcloud-python
f9df8525acd2cbc769608e21c02c87ce0a1b38ee
f56abdf750035c1cb023865ff67c27e3b50d8606
refs/heads/master
2021-01-09T07:00:56.867364
2015-02-18T18:20:42
2015-02-18T18:20:42
25,643,617
1
2
null
2014-11-28T03:52:16
2014-10-23T15:20:00
Python
UTF-8
Python
false
false
2,472
py
#!/usr/bin/env python """Exceptions for generated client libraries.""" class Error(Exception): """Base class for all exceptions.""" class TypecheckError(Error, TypeError): """An object of an incorrect type is provided.""" class NotFoundError(Error): """A specified resource could not be found.""" class Use...
[ "tseaver@palladion.com" ]
tseaver@palladion.com
d20251508eb9837040e9642fba5ecaf94f21f6c0
8333655862e5f90383f07b5b83bbf606e01b01a3
/cythonized_code/setup.py
a54ff038e037db50517163828f6a0012a347bc8e
[]
no_license
cuichi23/delayCoupledDPLLnet
d0a161a0bb6b47f9ae55377d5d14b369f8df13b4
443cfc66f12a5fbfb5766da4d058fc644fa6f643
refs/heads/master
2021-07-13T05:21:53.392002
2020-11-26T18:32:03
2020-11-26T18:32:03
66,270,249
3
1
null
null
null
null
UTF-8
Python
false
false
124
py
from distutils.core import setup from Cython.Build import cythonize setup( ext_modules = cythonize("simulation.pyx") )
[ "lucas_we@hotmail.com" ]
lucas_we@hotmail.com
3283aec3cc51133ee7658b42d162e7449747d2ec
0058e49536f6a98baae2c7221838fbcafbcd218c
/bookings/serializers/appointments.py
7e04befe080d709aece1b7517149597d9510b4c8
[]
no_license
Julian-Bio0404/Gym-Admin
b45eb65d539bf39788e440dcfd6e485365c4ef59
812c1527393f179ae0486d9da210da1366bbd1ee
refs/heads/main
2023-06-26T13:50:02.766332
2021-07-31T02:02:03
2021-07-31T02:02:03
378,182,141
2
0
null
null
null
null
UTF-8
Python
false
false
2,963
py
"""Appointments serializers.""" # Django from django.core.validators import RegexValidator from django.utils import timezone # Django REST Framework from rest_framework import serializers # Models from users.models import User from bookings.models import Appointment # Serializers from users.serializers import UserM...
[ "juliancamilohermida@hotmail.com" ]
juliancamilohermida@hotmail.com
b79d8a629800eb411e96096967862f6dbc396ea9
cbd4744259616c44d47337cd856c03b9c7c32511
/Planteome_annotation/IRRI/oryzaSNPjson_2GAF.py
40f723a8c82fe5b638f23b7a7b857e1f5cfe6ff8
[]
no_license
austinmeier/data_annotation
6d2c22d5cdbc2bcaddefc6b8358c9a0ca30147a5
a8e9361dff4da67e4963aa0f0dfd496e341ea904
refs/heads/master
2021-01-18T23:38:44.196686
2018-01-09T18:26:38
2018-01-09T18:26:38
52,914,630
0
0
null
null
null
null
UTF-8
Python
false
false
7,846
py
import time import urllib2 import json import re outdir = "/Users/meiera/Documents/SVN/associations/to-associations/test_IRRI_TO/" traitdict ={} #this is what we will use with open("/Users/meiera/Documents/git/data_annotation/Planteome_annotation/IRRI/OryzaSNPtraitmap.csv") as infile: for line in infile: ...
[ "meiera@science.oregonstate.edu" ]
meiera@science.oregonstate.edu
b6978e0268c1f7c52f2e5e48d60663f265ee27f5
5c2b0d15e06bef93dc6ef3c90c9554a61ff8eaac
/ch03/06/01.py
d942649134ade490e503f1cf6e8d341fc161ad10
[ "MIT" ]
permissive
leehb1592/book-kiwoom-api
c6a9b4796f3e2b33a5dc0fed51572f4c76a36d7f
377f66d77db78c70a02b0d87661961a281133a43
refs/heads/main
2023-04-18T02:41:14.079341
2021-04-29T13:47:44
2021-04-29T13:47:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
# 연결 상태 확인 from pykiwoom.kiwoom import * kiwoom = Kiwoom() kiwoom.CommConnect(block=True) state = kiwoom.GetConnectState() if state == 0: print("미연결") elif state == 1: print("연결완료")
[ "brayden.jo@outlook.com" ]
brayden.jo@outlook.com
86abe6ce015ef905e010d371869f06e172e875fa
087ec9d8a17f2107ebb70a24151e00c2b734f139
/Mundo 2/Exercicios/Desafio064.py
b5d96f2f21cbd5ba101a12847c467e6165dcb509
[ "MIT" ]
permissive
yWolfBR/Python-CursoEmVideo
c8bf38ec36b77dc6685256cce22f03ef47505004
17bab8ad3c4293daf8377c5d49242942845b3577
refs/heads/main
2023-06-14T09:11:00.894609
2021-06-24T18:37:36
2021-06-24T18:37:36
378,760,778
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
s = c = 0 while True: n = int(input('Digite um número [999 para finalizar]: ')) if n == 999: break else: s += n c += 1 print('Foram digitados {} números. A soma total entre eles é de {}'.format(c, s))
[ "71306144+yWolfBR@users.noreply.github.com" ]
71306144+yWolfBR@users.noreply.github.com
af318256ba4b8562d185c1d373e905a5c651d3e6
76bed4134f2590726c20d9d74b4441baac19b856
/scripts/setup.py
77e94d241ce2343ef20dad3f26f26ffdad77b286
[]
no_license
venkatmi/oncosplice
5f55925cabeacd00c965a09ee5f9d09e4b41c75b
c7c1d4c9ca157b8a0dca087069f73cdb3ac60243
refs/heads/master
2021-11-09T23:07:40.390385
2021-11-05T01:01:13
2021-11-05T01:01:13
109,444,825
2
0
null
null
null
null
UTF-8
Python
false
false
7,737
py
#!/usr/local/bin/python2.6 import sys import suds _script = 'AltAnalyze.py' _appName = "AltAnalyze" _appVersion = '2.0.9.4' _appDescription = "AltAnalyze is a freely available, open-source and cross-platform program that allows you to take RNASeq or " _appDescription +="relatively raw microarray data (CEL files or no...
[ "noreply@github.com" ]
noreply@github.com
8d4b95f623de9965e3967b316937dfb89e9d4188
70f24526e33c5d1e6280a86a449eaf4f577082ce
/src/djallauth/settings/__init__.py
a6b34a8df6a3eaf40d854db692645d4f6fa6ff34
[]
no_license
mikenunez/Dj-AllAuth
afa2de5d00c30e9c6ac14e5f0d74225c437e43c8
9ceb81166d53b733e1762b08a36eecac2f4c9339
refs/heads/master
2021-06-10T11:47:46.264990
2017-01-06T22:06:19
2017-01-06T22:06:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
from .base_settings import * try: from .prod_settings import * except: pass try: from .local_settings import * except: pass
[ "mike@nunez.pro" ]
mike@nunez.pro
d8cd5e0c456f3ab55d88a4ac1b3ffad3ecc02d82
7ba48f82dac0c19d41d7da51cda3aef5173dd77c
/multi_sites/context_processors.py
a2c36ecdbaff4e4f7e46f6290a78709a96da695e
[]
no_license
saiful7/Betasmartz
09af8b11f816adf3c2dc41ad5a70f170d6dbb981
337a79b59498f42294f19e53eea9cd1c8019ee48
refs/heads/master
2022-05-10T04:14:31.382569
2018-11-23T06:50:45
2018-11-23T06:50:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
from django.contrib.sites.shortcuts import get_current_site def with_theme(request): """ Return the value you want as a dictionary. You may add multiple values in there. """ site = get_current_site(request) return { 'theme': site.site_config.safe_theme, }
[ "31435513+blueskaie@users.noreply.github.com" ]
31435513+blueskaie@users.noreply.github.com
659b51b2851089f1ee15701359c633374ea0899b
64cd231e0a11bdfc93d36594f617e07250067a00
/config.py
b58d424ea92c7d6b265d8e05a75b9635f9e16088
[]
no_license
qianxunchen/Blog
58c1962ac617a5aeb1b0ef5169a336ed2770f100
d7d748bb28dc927f71d5640c01fde286c2fb92de
refs/heads/master
2022-12-05T20:04:43.923775
2020-08-22T09:12:23
2020-08-22T09:12:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://%s:%s@%s/%s?charset=utf8' % ('root', 'xxxx', 'localhost:3306', 'blog') SECRET_KEY = "123456" JSON_AS_ASCII = False
[ "2511284740@qq.com" ]
2511284740@qq.com
13ddbe3ec41a22d7523cbec2421a2bbf228c7295
e9bb78ff467f8db8259fb7a31f205881faa4ebb1
/021_MySQL/016_prevent_SQL_injection.py
10e7d8ba6c84ec9b855918c0dbf946948c860a40
[]
no_license
Maopos/Basic_Python
1913144b56bc17fbe12bebf013e8408d9e1c75e5
9c976b6c6e7861e431e4f6a4c630bbce982c0eec
refs/heads/main
2023-06-08T18:30:29.573670
2021-06-20T23:58:56
2021-06-20T23:58:56
363,065,275
1
1
null
null
null
null
UTF-8
Python
false
false
433
py
import mysql.connector print('======================') print() mydb = mysql.connector.connect( host = 'localhost', user = 'root', password = 'Python2222.', database = 'base_datos' ) mycursor = mydb.cursor() sql = "SELECT * FROM customers WHERE address = %s" adr = ("Cali Valle", ) mycursor.execute(s...
[ "mauricioposadamurillo@gmail.com" ]
mauricioposadamurillo@gmail.com
bec42c4453d3bfc82e98971640f59310acce4db9
33a39e03acfbf39c40792b02bd2fd2a88de1f9a9
/DisappearedNumbers.py
887d8bd8399b993fd6fb4dbe0f15c843c4dcc5c8
[]
no_license
sainihimanshu1999/Arrays-LeetCode
468e72e6b15dd050c0d1ef4ae92a55d3ca157daf
32aeb0e2c180f0949fbdb03959e032873ca5034a
refs/heads/main
2023-04-20T03:38:58.028150
2021-05-09T17:27:25
2021-05-09T17:27:25
364,503,786
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
''' In this question we edit the array in-place, we mark the the numbers negative and when the numbers are positive those index+1 numbers are missing ''' def disappeared(self,nums): for i in range(len(nums)): idx = abs(nums[i])-1 nums[idx] = -abs(nums[idx]) return [i+1 for i in range(len(nums))...
[ "sainihimanshu.1999@gmail.com" ]
sainihimanshu.1999@gmail.com
751a0e0b4e2ffbb3b0ab47a59a0336853cae1308
ac5eb7df8515fb92071f9e0f64d1cf6467f4042d
/Python/regularExpressionMathching.py
cf85e148de31b73447673601351d3242b146e37e
[]
no_license
Litao439420999/LeetCodeAlgorithm
6ea8060d56953bff6c03c95cf6b94901fbfbe395
9aee4fa0ea211d28ff1e5d9b70597421f9562959
refs/heads/master
2023-07-08T06:17:20.310470
2021-08-08T08:12:23
2021-08-08T08:12:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,614
py
# # LeetCodeLink : https://leetcode-cn.com/problems/regular-expression-matching # 10. 正则表达式匹配 # 给你一个字符串 s 和一个字符规律 p,请你来实现一个支持 '.' 和 '*' 的正则表达式匹配。 # '.' 匹配任意单个字符 # '*' 匹配零个或多个前面的那一个元素 # 所谓匹配,是要涵盖 整个 字符串 s的,而不是部分字符串。 # # 说明: # s 可能为空,且只包含从 a-z 的小写字母。 # p 可能为空,且只包含从 a-z 的小写字母,以及字符 . 和 *。 # # 示例 1: # 输入: # s = "aa" # p = ...
[ "2694048168@qq.com" ]
2694048168@qq.com
843de1a2886ed67c04dfc4e39f9973821e2113af
c90385e0a07392d60fbde6022419787abdd9badf
/My_HTML_IDE.py
282c4ef1ad4aa7fb7f27d6a2a07b495aa2de159e
[]
no_license
aditi419/P160h
577b834da589dcecd675625398b8d4831958b355
4965cc1a1cce9959f117c035bac62cab19fb8bc6
refs/heads/main
2023-08-15T14:22:25.578418
2021-09-25T19:56:31
2021-09-25T19:56:31
410,369,234
0
0
null
null
null
null
UTF-8
Python
false
false
611
py
from tkinter import * from PIL import ImageTk,Image root = Tk() root.minsize(650,650) root.maxsize(650,650) root.configure(background='#6699CC') open_image = ImageTk.PhotoImage(Image.open('open.png')) save_image = ImageTk.PhotoImage(Image.open('save.png')) exit_image = ImageTk.PhotoImage(Image.open('exit.jpg')) label...
[ "noreply@github.com" ]
noreply@github.com
04ce7ce32adfb75a109e9455c76b0c5e00ef24f7
3bbe69481d294eba60f83639f3a9430fb8cda4d9
/api/vacancy/views.py
3f70edb24741e63c1e805ca90df284d9bceff490
[]
no_license
ulugbek1999/ncd-cms
5e288f44b01387cd66a54d2dcaf1e0d288205bc4
dcb43bf65f0d6efcbf6481f5c9284c8c1a7c6b9d
refs/heads/master
2022-09-06T13:22:34.637080
2019-12-14T09:10:26
2019-12-14T09:10:26
204,455,916
0
0
null
null
null
null
UTF-8
Python
false
false
4,778
py
from rest_framework.views import APIView from .serializers import VacancySerializer from vacancy.models import Vacancy from rest_framework.response import Response from rest_framework import status from django.utils import timezone from django.shortcuts import get_object_or_404 from django.db import connection class V...
[ "kayrat.nazov@gmail.com" ]
kayrat.nazov@gmail.com
9a98f273cf8794cb612c493669dadee98e5e6431
b09b6ba74bae5c42b21c417596d3577de4ae79ca
/great_international/migrations/0140_delete_internationalcuratedtopiclandingpage.py
bb152e9288e16db67038d82732e071dce21ed1a7
[ "MIT" ]
permissive
uktrade/directory-cms
856902c4d445d5ed2a2ec7a66d62e3a098636142
28b1390a3f15fbb88388ec197ab76e510cccbaa6
refs/heads/develop
2023-08-17T15:25:48.960844
2023-08-14T13:42:08
2023-08-14T13:42:08
119,525,005
8
7
MIT
2023-09-12T15:21:44
2018-01-30T11:11:59
Python
UTF-8
Python
false
false
455
py
# Generated by Django 2.2.24 on 2021-11-17 15:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0059_apply_collection_ordering'), ('wagtailforms', '0004_add_verbose_name_plural'), ('great_international', '0139_auto_20211013_1536'...
[ "rizwan@webbyfox.co.uk" ]
rizwan@webbyfox.co.uk
40861d39d38515c68ba7459be7326b62d6ad687c
449821c18203ff8823ef56735741982af74d2c59
/calculator.py
e3bb12a4143607fdc8e902db1670b48b358d3ee5
[]
no_license
xiedong1995/test
745891e23845972b949511e63b59373a6b2ce7cd
a1866fae0b0c2390cc43e2647ec2c586e52023b5
refs/heads/master
2020-09-22T09:48:15.361434
2019-12-01T10:54:17
2019-12-01T10:54:17
173,248,174
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
class Calculator: """ 用于完成两个数的加减乘除""" def __init__(self, a, b): self.a = int(a) self.b = int(b) # 加法 def add(self): return self.a + self.b # 减法 def sub(self): return self.a - self.b # 乘法 def mul(self): return self.a * self.b # 除法 def ...
[ "albinocary@163.com" ]
albinocary@163.com
3f438af3cb5db262b6cf06fe2e6ff6a4b57eb63d
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/services/services/feed_service/transports/base.py
af73b0aeafb2dac3ed16dbc2b26e95d02d348a3d
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,949
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
2afe88f38f33383f8c4c475b7cd9626bc8d53553
39ceb962075b4ed0e21ad4f9831210ea48a937b8
/字符串/434. 字符串中的单词数.py
b95fff00baa7de3379f7e4b39ec7dd048520b7ba
[]
no_license
buidler/LeetCode
fe91fbf764b4f1ea28125a60497e67513471282a
9763c632c35324761c53604f35b473622d145d3c
refs/heads/master
2022-12-12T21:14:10.898611
2020-09-13T08:25:22
2020-09-13T08:25:22
295,146,007
1
0
null
2020-09-13T12:24:45
2020-09-13T12:24:45
null
UTF-8
Python
false
false
1,720
py
""" 统计字符串中的单词个数,这里的单词指的是连续的不是空格的字符。 请注意,你可以假定字符串里不包括任何不可打印的字符。 示例: 输入: "Hello, my name is John" 输出: 5 """ class Solution(object): def countSegments(self, s): """ :type s: str :rtype: int """ if len(s.split()) == 0: return 0 # 设置计数器,初始值为1 index =...
[ "15097686925@163.com" ]
15097686925@163.com
f298bf467f3d150981e177418bb563f0dd6ec91d
599786b7f37dc6a4a0d1c5e467804be806feaed8
/core/GetDataClass.py
fe845a93fb4fe79710a6ed17796491a8cdb58c7b
[]
no_license
Surpris/DataViewerBase
dc0a8e57e5a9c02dbe31e91400169f019dafb80b
ee82a1abe0f7f328e6fa8ea0a31356c266426593
refs/heads/master
2021-01-21T14:33:20.292380
2018-08-03T15:24:18
2018-08-03T15:24:18
95,300,279
0
0
null
null
null
null
UTF-8
Python
false
false
4,406
py
# coding: utf-8 try: import olpy import dbpy except: pass import time import datetime import numpy as np class TagDiscriminator(): """ Class for discrimination of tags. """ def __init__(self, bl, chan, cycle, offset, field): self.bl = bl self.chan = chan ...
[ "take90-it09-easy27@outlook.jp" ]
take90-it09-easy27@outlook.jp
a3bcb9efe57ad1536db2e3b6c0db3ac60c7f7f6b
f78a6e4630363c31ce152009d7df8794cb66f84f
/Juego.py
cf7a3929faa0f43354a1c9de73c7b25e84d393da
[]
no_license
TailsDoll321/Canta-O-Paga
d78da70f2d2406efcaff8ee40f69bb922871144e
b26b0ca08b00d232122bb89430f786d7b8d10a1a
refs/heads/main
2023-04-14T16:35:43.256064
2021-05-04T00:41:59
2021-05-04T00:41:59
364,097,929
0
0
null
null
null
null
UTF-8
Python
false
false
26,036
py
import pygame import random newsong = 1 i = 176 turno = 1 jugador = 0 njug = 0 pj1 = -1 pj2 = 0 pj3 = 0 pj4 = 0 txturn = "" txpun = "" txwin = "" n = 17 newpunishment = 0 pygame.init() screen = pygame.display.set_mode((750, 500)) Title = "Canta o Paga" pygame.display.set_caption(Title) song ...
[ "noreply@github.com" ]
noreply@github.com
73830c9d57873f34c328dfdbc15e09877dd4ba7c
e3c8f786d09e311d6ea1cab50edde040bf1ea988
/Incident-Response/Tools/grr/grr/client/grr_response_client/client_actions/linux/linux_test.py
8711fe54f31fe7cba9a5fb16ee2e8e04ac35fbb0
[ "Apache-2.0", "MIT" ]
permissive
foss2cyber/Incident-Playbook
d1add8aec6e28a19e515754c6ce2e524d67f368e
a379a134c0c5af14df4ed2afa066c1626506b754
refs/heads/main
2023-06-07T09:16:27.876561
2021-07-07T03:48:54
2021-07-07T03:48:54
384,988,036
1
0
MIT
2021-07-11T15:45:31
2021-07-11T15:45:31
null
UTF-8
Python
false
false
2,536
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """Linux only tests.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import builtins import glob import os from absl import app from grr_response_client.client_actions.linux import linux from grr_respons...
[ "a.songer@protonmail.com" ]
a.songer@protonmail.com
932d5c09403c01e3e1f9412602e1f5cf3643ae7e
b4ee5a2986d7232630aadc284194b3af3c9ac504
/projects/cats/tests/03.py
22df36a7ac272ee6e61364ea1a9a930329ebf6d8
[]
no_license
lijian12345/cs61a-sp20
d42c855eb06fe26f7e0d37d483d1f4fa81a0e118
3a9aa5e922c3f8a4d31b6f197340d4828e342530
refs/heads/master
2023-04-03T10:36:32.192096
2021-04-19T11:06:50
2021-04-19T11:06:50
254,659,566
6
0
null
null
null
null
UTF-8
Python
false
false
37,950
py
test = { 'name': 'Problem 3', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> accuracy("12345", "12345") # Returns 100.0 100.0 >>> accuracy("a b c", "a b c") 100.0 >>> accuracy("a b c d", "b a c d") 50.0 ...
[ "1053294286@qq.com" ]
1053294286@qq.com
1eaf0c5c80d21cc2f471542a39f86241d5fb8212
aa4527f224a135ed02447a028af6f0179cd12e0f
/Python_DSA/DutchNationalFlag.py
d8ebbb03530fdf87dd12f7d951969c83b39005cf
[]
no_license
Ankitmandal1/Hactoberfest2021
3d5416c0721f3f3b6d4c5fccb8164e8d0d9c6833
7169b9b3293e5687889578938e267dfcd28e0167
refs/heads/main
2023-09-04T01:12:19.753420
2021-10-31T05:12:58
2021-10-31T05:12:58
423,058,444
1
0
null
2021-10-31T05:07:59
2021-10-31T05:07:58
null
UTF-8
Python
false
false
629
py
def swap(A, i, j): temp = A[i] A[i] = A[j] A[j] = temp def threeWayPartition(A): start = mid = 0 pivot = 1 end = len(A) - 1 while mid <= end: if A[mid] < pivot: # current element is 0 swap(A, start, mid) start = start + 1 mid = mid + 1...
[ "noreply@github.com" ]
noreply@github.com
5cbcb9231cbad440e4d4c6bfcdf06cf2d3a6e571
e10ae2c13f8e6b8ce382e3d2fbda7b2099aa4fcc
/restapi/settings.py
8d235a4f13d157419ec3ee6ece3759f307c4fc9d
[]
no_license
vugarmammadli/ta-application
7d58bf2db86f09e045709053d5ffb1c5c003e9d6
92545a4b9e7aa701223621f3920b54a7769c6437
refs/heads/master
2020-06-29T12:15:11.711180
2019-08-30T23:22:19
2019-08-30T23:22:19
200,532,449
0
0
null
null
null
null
UTF-8
Python
false
false
3,203
py
""" Django settings for restapi project. Generated by 'django-admin startproject' using Django 2.2.4. 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 i...
[ "v-m13@windowslive.com" ]
v-m13@windowslive.com
b252cecb9090e7cd517c8bd8c87b6a660435e8e9
bcabfc8e97f1172b79cf6bb0935a6eba3e402763
/{{cookiecutter.service_name}}/src/common/setup.py
d89ba4d0db1b1b7f5799529c5659babca3066c24
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "MIT-0", "BSD-2-Clause" ]
permissive
ServerlessOpsIO/aws-sam-python-template
98f8d16ab649f4d0f7b27a0a783e6060596cb1b5
3a64cf08edfb628cae2b9f35402a193da501f152
refs/heads/master
2022-05-19T14:06:44.264920
2022-04-16T22:11:58
2022-04-16T22:11:58
250,827,340
1
0
null
null
null
null
UTF-8
Python
false
false
892
py
#!/usr/bin/env python import io import re import os from setuptools import setup, find_packages setup( name='common', version='0.0.1', description='{{cookiecutter.service_name}} Service Common Code', author='{{cookiecutter.author_name}}', author_email='{{cookiecutter.author_email}}', license='...
[ "tom@serverlessops.io" ]
tom@serverlessops.io
0ee16c0ea586d5ac531d3a995bdb931cb79a0d19
3b7fe6b89a40a5fe2d8a580b09b950bdafdfb2c0
/webservice/md5/test.py
4034657821755f16d7758ab497f822b14d5f3ace
[]
no_license
Valeriia-arh/web-service-md5
ee2ef391aab013b98f8ec65471c2a3174faa2b8d
6d91f266fa8f34399cef5b6b05a9b92661ab0e52
refs/heads/master
2020-03-12T22:01:33.916097
2018-10-11T14:25:13
2018-10-11T14:25:13
130,839,120
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
from md5 import count import requests from django.test import TestCase from rest_framework.test import APIRequestFactory #APIRequestFactory - creating test requests test_file = "http://data.enteromics.com/robots.txt" assertContains(response, text, ...) # проверяет, что в ответе сервера содержится указанный текст; a...
[ "lerra.popova@bostongene.com" ]
lerra.popova@bostongene.com
8b0292c7d368dcfc0e81a605d46862236e1beb19
b40c5846605fc0b0456dd99bb5e214eaefb1a067
/python_class_3.py
8b9748b1348db5a7cf28909f047ca1a7407e9c1a
[]
no_license
daaaaaun/python_section2
6153767110559c4f1abac61d4022d107566737d5
dc5eeb1d3e00c06c8b50909927b43da99e2e989b
refs/heads/master
2020-05-15T11:03:44.816503
2019-04-23T01:45:49
2019-04-23T01:45:49
182,210,655
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
import sys import io sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding='utf-8') sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding='utf-8') #클래스 변수, 인스턴스 변수 class Warehouse: stock_num = 0 def __init__(self, name): self.name = name Warehouse.stock_num += 1 def __del__(s...
[ "geeeeekirl@gmail.com" ]
geeeeekirl@gmail.com
35b89275ce8b64c34b2067dd74a3789ad5306781
c8f110e2e6837004de2a2924e2b2b2736bb807ea
/writing/models.py
b865bc38847bf1c234882304d863f2301063ef6b
[]
no_license
mcnolan/hydra
8f1915077fb057de6eeb7ef99084d8c9e2f73e3a
f83bde24f11078cd79f738335fa4b8d37039e904
refs/heads/master
2021-01-25T12:30:06.653221
2013-08-28T22:19:11
2013-08-28T22:19:11
656,370
0
0
null
null
null
null
UTF-8
Python
false
false
1,864
py
from django.db import models #Book Writing Models # Standards: # Titles : 200 characters long # Descriptions : 500 characters long # # The Author model describes the User doing the writing class Author(models.Model): first_name = models.CharField(max_length=50) last_name = models.CharField(max_lengt...
[ "johnmr@gmail.com" ]
johnmr@gmail.com
e44f659d1ee375f01cc1a261dca21404d715709a
69ffff811386a96d22eedaa78f83c6c4333a8da7
/pages/templatetags/pages_tags.py
35d574f37626a9cc7cce6d04115d0466de0c2a1c
[]
no_license
bkarakus/hhac2017
3afe7a79fdab63e3e2e729b5871418283e388f4f
8cd5278fd168e144dc4d4e1a1a2a7c089ca883cc
refs/heads/master
2021-09-06T16:57:55.560079
2018-02-08T20:26:48
2018-02-08T20:26:48
111,285,668
0
0
null
null
null
null
UTF-8
Python
false
false
2,175
py
# -*- coding:utf-8 -*- from django.template import Library, Node, TemplateSyntaxError from django.utils.translation import ugettext as _ from pages.models import Sayfa, Menu, Image register = Library() class PagesNode(Node): """ Get the books and add to the context """ def __init__(self, menu_slug,c...
[ "bkarakus@gumushane.edu.tr" ]
bkarakus@gumushane.edu.tr
555a89a7e83b5305fd25b029e01d18d66298ed77
fa914cf7f22c6fd4a57876729787735d65290969
/University of Oklahoma/Text Analysis/04 Activity Police Report Extraction/normanpd/normanpd.py
780f9c11d2797684738c6a95e765aedeb8326ad4
[]
no_license
saeid-h/homeworks-repo
d14d7422e8dcd4f4d130ea8ab91b3d46d9ab591a
9e3155758b1dc6ec5b835c8c1da993fb1adbca8c
refs/heads/master
2023-04-11T13:48:28.542396
2021-04-28T17:01:32
2021-04-28T17:01:32
258,676,144
3
0
null
null
null
null
UTF-8
Python
false
false
3,681
py
# Norman PD from urllib import request import re import PyPDF2 from PyPDF2 import PdfFileReader from io import StringIO, BytesIO import sqlite3 import random normanpdurl = 'http://normanpd.normanok.gov/content/daily-activity' #normanpd = 'normanpd.db' def fetchincidents(): return request.urlopen(norm...
[ "shossei1@stevens.edu" ]
shossei1@stevens.edu
45b7736d0301f865e9ec81f0363c55c1380b4fb3
ecccaf0fee8d418a0e425e7f3041e53ec693caf1
/tests/e2e/test_directives.py
be13bcf82ea23a4e59c438badccd17c41ac18bf6
[ "MIT" ]
permissive
Krazybug/mnamer
31cdd5f7bf3a55d2e19a06ab67c16d0862a80361
d4e7f344053cd203a1a86561a1e822fd180375dd
refs/heads/master
2021-01-02T06:40:23.483684
2020-02-07T05:08:59
2020-02-07T05:08:59
239,532,212
0
1
MIT
2020-02-10T14:31:58
2020-02-10T14:31:57
null
UTF-8
Python
false
false
2,810
py
import json from typing import Callable from unittest.mock import MagicMock, patch import pytest from mnamer.__version__ import VERSION from mnamer.settings import Settings from tests import * @pytest.mark.parametrize("flag", ("-V", "--version")) def test_version(flag: str, e2e_run: Callable): result = e2e_run(...
[ "jessy@jessywilliams.com" ]
jessy@jessywilliams.com
1e87a933623fdffc157080af0c3a213f948be10c
fc4cde67f058da348fee2264ce57c3db054b6dcb
/figures.py
51680fa93cfc029b93b4a61034d6fde50a33f798
[]
no_license
MichaelShulga/tetris
b7c794e9fca2450c200d4945e30445c81ca83758
8e412cc4b1775e4c5c6267516fd123dd9ead191d
refs/heads/master
2023-06-16T22:31:05.983274
2021-07-15T17:02:19
2021-07-15T17:02:19
384,950,978
1
0
null
null
null
null
UTF-8
Python
false
false
573
py
import random figure1 = [[1, 1, 1, 1]] figure2 = [[2, 2], [2, 2]] figure3 = [[0, 3, 0], [3, 3, 3]] figure4 = [[4, 4, 4], [4, 0, 0]] figure5 = [[5, 0, 0], [5, 5, 5]] figure6 = [[6, 6, 0], [0, 6, 6]] figure7 = [[0, 7, 7], [7, 7, 0]] figures = [figure1, ...
[ "anatemsf@yandex.ru" ]
anatemsf@yandex.ru
7b07c8b92846529d1c88e7451734a29c50e6786c
a77f592060cd6017da1fc2cddbc477b4a0bc1027
/phonebook/urls.py
da7b0581f5c72063c75cf852e7b6c34abb63b10b
[]
no_license
nderitumaingi/jay
708e971ea57c62579a42d6a259c5723b936a808a
e8f0bec8d18b2d67cb6664f9be3a44507fb55c5b
refs/heads/master
2020-05-04T09:40:32.531110
2019-04-02T13:05:58
2019-04-02T13:05:58
178,173,167
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
from django.urls import path from .import views from django.contrib.auth import views as auth_views from . import views app_name = 'phonebook' urlpatterns = [ path('login', auth_views.LoginView.as_view(), name='login'), path('logout', auth_views.LogoutView.as_view(), name='logout'), path('signup', views.si...
[ "nderitumaingi@yahoo.com" ]
nderitumaingi@yahoo.com