blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
9c59f9dbd1305703fbe6cfa40102879fac180355
de6fb3a55196b6bd36a4fda0e08ad658679fb7a1
/vt_manager/src/python/agent/xen/provisioning/configurators/mediacat/MediacatVMConfigurator.py
1c32a6c5a7a87130868b322f6583514d2cd725a1
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
dana-i2cat/felix
4a87af639e4c7db686bfa03f1ae4ce62711615e3
059ed2b3308bda2af5e1942dc9967e6573dd6a53
refs/heads/master
2021-01-02T23:12:43.840754
2016-02-04T10:04:24
2016-02-04T10:04:24
17,132,912
4
4
null
null
null
null
UTF-8
Python
false
false
2,703
py
import shutil import os import jinja2 import subprocess from xen.provisioning.hdmanagers.LVMHdManager import LVMHdManager from xen.provisioning.HdManager import HdManager from settings.settingsLoader import OXA_XEN_SERVER_KERNEL,OXA_XEN_SERVER_INITRD,OXA_DEBIAN_INTERFACES_FILE_LOCATION,OXA_DEBIAN_UDEV_FILE_LOCATION ...
[ "jenkins@integration.localhost" ]
jenkins@integration.localhost
556e66708d328cb200eff3aca6be3760ac756057
d04a5cf47b6483cf2bb03c92c6aa13785bd7a9b8
/NLP/深度学习/循环神经网络.py
a247d7ec7e305bbcac82ea953a7eba3c2dc020e6
[]
no_license
dengyings/biji
51cf0835e8ab277f7300bbfcf1302ec5b747f1a1
7bfcaa3e2ab39efd4832320c921e4d64d7c4aa5e
refs/heads/master
2020-04-17T00:54:41.413470
2019-03-24T12:36:18
2019-03-24T12:36:18
166,067,379
0
1
null
null
null
null
UTF-8
Python
false
false
8,051
py
# coding: utf-8 # 这章主要介绍循环神经网络的定义,原理及计算方法,并通过几个实例说明如何使用循环神经网络 # 15.2前向传播与随时间反向传播 # ![image.png](attachment:image.png) # 上图的计算过程,用Python程序实现的详细代码如下: # In[1]: import numpy as np X = [1,2] state = [0.0, 0.0] w_cell_state = np.asarray([[0.1, 0.2], [0.3, 0.4],[0.5, 0.6]]) b_cell = np.asarray([0.1, -0.1]) w_output = ...
[ "dy964785023@163.com" ]
dy964785023@163.com
c6322aae500d38989555dc8f18c4f075c76dfd66
e06ab30609a37ff69748611a0864ba395e04dc01
/python_tools/_algorithm/stack.py
680914fa223de12136c5266bd506ed101623c619
[]
no_license
chenxi-zhao/various_tools
e898bb858b81f7394eba44c4204079acefd3e87e
c15f242b3c73225a7a3e85fd43faa2c0845dc4c7
refs/heads/master
2021-01-01T04:30:42.542144
2016-05-03T03:44:00
2016-05-03T03:44:00
57,265,646
0
0
null
null
null
null
UTF-8
Python
false
false
1,394
py
# coding = utf-8 __author__ = 'chenxi' class Stack: """栈结构""" def __init__(self): self.items = [] def pop(self): if self.isEmpty(): raise RuntimeError("Attempt to pop an empty stack") topIndex = len(self.items) - 1 item = self.items[topIndex] del self...
[ "zhaochx1@yonyou.com" ]
zhaochx1@yonyou.com
b5d508e54602e8c3a651ff042c756698a67975ce
f371ee970c474aca8f15edd1eefceeaba5692a72
/Session1/hello.py
5977f4c39bd122124147a09843f5ed4ee56ec2e6
[]
no_license
bach2o/NguyenNgocBach-fundamentals-c4e15
c26149c5648fbe338ab76e1facf9e56f457ca7de
259595c255d4a61c8a17417db979b8e0f3881b5a
refs/heads/master
2021-05-04T21:44:29.433232
2018-02-09T15:19:33
2018-02-09T15:19:33
119,961,994
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
print("hello world and goodbye world") n = input ("What's your name?") print("Hello", n)
[ "bachchakmak@gmail.com" ]
bachchakmak@gmail.com
5f85886dfe1921437b555ec616d53d2537f494f6
fd732027206ca582f2957c75039989473cad2f93
/server.py
af46c8e16f836c700c9389197916a6183d0b3533
[]
no_license
Rafal-Kozdroj/zadanie-rekrutacyjne-GWP-Rafal-Kozdroj
ec44b4eb2db3569cdfa10dcf1259ff136b7cef94
f3b3dbb8c1c16de26cd1dedac34a58eaa197240f
refs/heads/master
2021-01-19T16:02:29.349523
2017-09-25T09:39:43
2017-09-25T09:39:43
100,980,661
0
0
null
null
null
null
UTF-8
Python
false
false
2,572
py
import json from flask import Flask from flask import request from flask import make_response app = Flask(__name__) VALUE_MAX_SIZE = 1024 * 1024 KEY_MAX_LEN = 100 FILENAME = "values.json" def put_value(key, value, values): created = False if key not in values: created = True values[key] = value ...
[ "rafal.kozdroj+git@gmail.com" ]
rafal.kozdroj+git@gmail.com
e2eb736bc7978630e6e2208b91616c2e2cdbe777
eb218dd0d78588a527cf67bd25f6a4966f35e3cf
/tests/unit/command/test_experiments.py
c9865430cab7240916bce46610583ba23fbacfa3
[ "Apache-2.0" ]
permissive
ik-python/dvc
86f83a2b528d3b868b75423bfbf92d7182b0a5ed
08300d3bcf51f7bd9c8509924110416461b11b60
refs/heads/master
2023-02-23T21:35:52.342950
2021-01-29T04:18:20
2021-01-29T04:18:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,745
py
import pytest from dvc.cli import parse_args from dvc.command.experiments import ( CmdExperimentsApply, CmdExperimentsBranch, CmdExperimentsDiff, CmdExperimentsGC, CmdExperimentsList, CmdExperimentsPull, CmdExperimentsPush, CmdExperimentsRun, CmdExperimentsShow, ) from dvc.exception...
[ "noreply@github.com" ]
noreply@github.com
e911850a6ea1890da390432e22b4f66d472ca101
d9dd87fce5428fa49cdf665297901ac487aab2a6
/DeepIC50_construct_code.py
a18d156d1927f2697b3e55209e5ab697f1a14326
[]
no_license
HabibMrad/DeepIC50
e18bd2d88e3def3a7b04beeca53f804c15680d0a
3bcc2dad63c77b07e486e5f9c3fc791fc41b181c
refs/heads/master
2020-12-04T12:27:53.332937
2019-12-09T07:03:04
2019-12-09T07:03:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,347
py
#!/usr/bin/env python # coding: utf-8 # In[ ]: import os import pandas as pd import numpy as np import tensorflow as tf import random from pandas import DataFrame from datetime import datetime import keras from keras.models import Sequential,Input,Model from keras.layers import Dense, Dropout, Flatten, Reshape, Acti...
[ "labnams@gmail.com" ]
labnams@gmail.com
e44011a706cb1a6bc10c4757985176317ba1acb0
3c1e4ef8629764c354c544f17ff2895171f8e51c
/phys163labs/lab2/lab2q7.py
794889d6bf321a2940989a70560815bda8b16e60
[]
no_license
RogShotz/phys
2b7ad9ccbd9532c0bf18e26e9ea4c182e888486e
1c90abd9321a2c9ab3f1580d035347928cfaff0f
refs/heads/master
2022-10-18T05:55:13.283754
2022-10-12T01:14:55
2022-10-12T01:14:55
238,791,602
0
0
null
null
null
null
UTF-8
Python
false
false
1,848
py
from vpython import * line_x = cylinder(pos=vec(-5, 0, 0), axis=vec(10, 0, 0), radius=0.05) line_y = cylinder(pos=vec(0, -5, 0), axis=vec(0, 10, 0), radius=0.05) line_z = cylinder(pos=vec(0, 0, -5), axis=vec(0, 0, 10), radius=0.05) scale_arrow = .01 k = 8.99e9 # Coulomb constant L = 5.0 # length of rod Q = 2.0e-2 ...
[ "RogShotz@users.noreply.github.com" ]
RogShotz@users.noreply.github.com
befc3de90456d06e7253e8cfca71b997c05ef67d
9ed9ed8038885f3647455da54675d6f7fb37f445
/controllers/ratings_api.py
16cd6b5c8d73a38b721a2f295412c1441eb98b54
[ "LicenseRef-scancode-public-domain" ]
permissive
ayeh9/recipe-manager
5bfaef24c400b053ca5ec717e0fbcff4d71c9f9a
722f1287836562f9088acc36432abec5bd3c5153
refs/heads/master
2020-06-16T21:04:29.633108
2019-07-07T22:49:06
2019-07-07T22:49:06
195,704,026
0
0
null
null
null
null
UTF-8
Python
false
false
2,504
py
import tempfile import json # Cloud-safe of uuid, so that many cloned servers do not all use the same uuids. from gluon.utils import web2py_uuid @auth.requires_login() @auth.requires_signature() def add_ratings(): # Validate the input. if request.vars.recipe_id is None or request.vars.rating is None: # Either the...
[ "awyeh450471@gmail.com" ]
awyeh450471@gmail.com
b1b38148dd34ab6a56a93319b0cf38852b1233e4
f4ace251ea752c708bc58f5c478414339f16bf54
/utils/constant.py
0eddfc4597934392b2c7fe6c04b20bdf196a688d
[]
no_license
ilham1012/face_rec
71af15759c7cf6f0fe8c847fba8da483932b2739
19dd682047b5bed9808369aac45bded1a0c6502b
refs/heads/master
2023-03-10T12:43:22.989032
2023-03-02T08:58:06
2023-03-02T08:58:06
187,971,955
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
REG_FACES = ['aris', 'hanif', 'jony', 'rian', 'ilham', 'oka', 'arifin', 'ulfah'] MODELS = ['dt', 'svm', 'rf', 'adaboost'] OPTIMIZERS = ['forest', 'gbrt', 'gp']
[ "myung1012@gmail.com" ]
myung1012@gmail.com
3ccfbc7cb88171245be6319346886e2f2d578724
1b18db113edef02932a3aae1c6d692bec8a52a31
/create_input/connectivity.py
ea18c0d7f25000d95df7f4c8c4f881a01ff08c9c
[]
no_license
aljamaha/Zeolite
20a656caa686b620e5c1c2f216f00472aca416c0
963d5b274409266af2944c279a11268be339a1f1
refs/heads/master
2021-08-10T10:48:20.863434
2021-07-23T07:18:00
2021-07-23T07:18:00
221,759,500
1
0
null
null
null
null
UTF-8
Python
false
false
3,355
py
#import packages import sys, json from molmod import * #further info are here: http://molmod.github.io/molmod/tutorial/install.html from ase import io 'Modified version from Jeroen Van Der Mynsbrugge original script' def connect(xyz_file, qm_atoms, output_name = 'tmp', zeolite=None): ''' Objective: convert an xyz c...
[ "aljamaha@stanford.edu" ]
aljamaha@stanford.edu
e2a991b355677ee0a574dce0a2c19d1b6cac5bc7
2256a61b57eed52ce5b3dd19e54108545e3fa1a1
/sandbox/ipython/mydemo.py
fd31887d834e800fcd42827f23ebcf608aea26b6
[ "Apache-2.0" ]
permissive
hubitor/progs
18877b7dbd455f1192c96ebe1905f67329d1c749
e4537da6da47d380a1a1a04e8068866013c7b7b6
refs/heads/master
2020-04-28T18:49:23.446076
2019-02-18T07:59:28
2019-02-18T07:59:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
#! /usr/bin/env python # -*- coding: latin-1 -*- from IPython.lib.demo import Demo mydemo = Demo('myscript.py') #mydemo()
[ "romain.boman@gmail.com" ]
romain.boman@gmail.com
97a57fc4cd9e3e25e79da1b5c05723155c868436
904a63bc6e2306d4a139a3977c0b99b08e7f5cb6
/tests/test_painter.py
b0a16bffa18a9d89816f139722c60f9de81264f3
[ "MIT" ]
permissive
fgimian/painter
b5c8192bf0022964083afa433e3077c6a2d33bac
8975cba5fa6cd4f548a804990b9acceebf106818
refs/heads/master
2021-01-21T04:54:16.964640
2018-07-22T11:37:12
2018-07-22T11:37:12
19,145,773
16
2
null
2014-04-28T23:29:06
2014-04-25T12:49:50
Python
UTF-8
Python
false
false
2,743
py
from nose.tools import raises from painter.painter import paint paint.enabled = True def test_painter_style_string(): assert paint.underline('foo') == '\x1b[4mfoo\x1b[24m' assert paint.red('foo') == '\x1b[31mfoo\x1b[39m' assert paint.on_red('foo') == '\x1b[41mfoo\x1b[49m' def test_painter_pattern_stri...
[ "fgimiansoftware@gmail.com" ]
fgimiansoftware@gmail.com
f82878d8c9a6a5543e1d7390cb96b41bef092295
683c3c5f256f115f5c3547b9482cbd5ef2b63d23
/2020/TJCTF/5_stop_solve.py
c0f1fdf645a776a09d6dbdbd6394ad27206d4ea7
[]
no_license
yueJDy/pwn
eb1e7292c4fb6d34f65e976742abb390730e8a1d
32d0e748dd6d2c2327e5175fc34a1784b67b83a5
refs/heads/master
2021-08-11T04:09:42.688560
2021-04-16T09:00:40
2021-04-16T09:00:40
248,710,451
0
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
from pwn import * r = process('./stop') raw_input('debug') rop_rdi = 0x400953 printf_got = 0x601fe0 getchar_got = 0x601fe8 printf_plt = 0x4005a0 printf_offset = 0x055810 system_offset = 0x0453a0 binsh_offset = 0x18ce17 main = 0x40073c def func(rdi, addr): r.sendlineafter('Which letter? ', 'a') buf = 'a'*0x118 bu...
[ "yueJDy@users.noreply.github.com" ]
yueJDy@users.noreply.github.com
fe6f9e517fa57fa574ad57811ee18bab68c95b8d
1243d11e36e61542693fb9a4b187f328aa2eb473
/account/models.py
6d5ebea9fe2dd56a1a41c1d14b7e00f2ff50f127
[]
no_license
LatorreDev/Django-socialNetwork
344fa7d4fdee2a136695cdf9be20feaa8a8e8094
b15f7a3c13e118d3ce1144784357b44f81c426ac
refs/heads/master
2022-12-08T23:02:43.221239
2020-09-18T01:05:03
2020-09-18T01:05:03
296,475,039
0
0
null
2020-09-18T01:05:04
2020-09-18T00:44:37
null
UTF-8
Python
false
false
476
py
from django.db import models from django.conf import settings # Create your models here. class Profile(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) date_of_birth = models.DateField(blank=True, null=True) photo = models.Imag...
[ "niljordan23@gmail.com" ]
niljordan23@gmail.com
c8c5b3d762ba711d24f16e25948f313a7ca2814e
e5038d0457f6d1dad38a98434072420b4c91c829
/数据集/训练集/cls_loc/test_cls.py
67b2f6c5bc61234caab8ca0a81e271e02f9270bf
[]
no_license
gyupup/RSRGAN
a0383f0851af4d31d00392bcd27480faaad91746
4e764c44cdd1d637dbbb92083c9cef7fcbf343a1
refs/heads/master
2023-05-20T18:24:23.636093
2021-06-15T13:35:42
2021-06-15T13:35:42
376,792,754
2
0
null
null
null
null
UTF-8
Python
false
false
3,538
py
""" 单独训练cls分类 """ import argparse import os import numpy as np import math import itertools import sys import cv2 import glob import torchvision.transforms as transforms from torchvision.utils import save_image, make_grid from torch.utils.data import DataLoader from torch.autograd import Variable from models impor...
[ "1468096997@qq.com" ]
1468096997@qq.com
f82607f74d1a032f97f36e8f68b0a32b783431f7
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R1/benchmark/startQiskit_QC115.py
aac0e298834b98a16d87fa3890ff00e155618dd8
[ "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
5,817
py
# qubit number=3 # total number=20 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
a52be8922affd67547e135f801c5f101f05b49af
60b2738284ae25231da1b1d91e3b61008c548673
/ImageGenerator/generate_image_with_index.py
0c4caf197fe57011c8892e239f78338ba67557a7
[]
no_license
BhallaLab/Scripts
f54eb06693ae0f9de3b41a8ed2adda1da930aa24
a5d3a2be92b269590316403b3c6194db020b261a
refs/heads/master
2021-06-02T21:43:13.374239
2019-08-06T05:53:03
2019-08-06T05:53:03
37,115,228
8
7
null
null
null
null
UTF-8
Python
false
false
1,025
py
#!/usr/bin/env python """generate_image_with_index.py: Generates transparent image with numbers written on them. Can be used to caliberate projectors for frame per seconds. """ __author__ = "Dilawar Singh" __copyright__ = "Copyright 2015, Dilawar Singh and NCBS Bangalore" __credits__ ...
[ "dilawars@ncbs.res.in" ]
dilawars@ncbs.res.in
45938a94e200a8047005b38b0fb3a89764ed49bc
dd3e43558a15191886f75e5a1bd45a8db7c2c446
/ProjectTaskRecorder/urls.py
820c7ffb7cff9013736b834a8cb50c85360e97d4
[]
no_license
zsm767/ProjectTaskRecord
1324c39564b2a3f1dc091abd6ab1f1f002d07d0e
3a8f22f685cffad97071cba20feb3051238519fb
refs/heads/master
2020-05-15T23:12:57.193403
2020-01-24T21:42:40
2020-01-24T21:42:40
182,546,105
0
0
null
null
null
null
UTF-8
Python
false
false
818
py
"""ProjectTaskRecorder URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/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')...
[ "zsm767@gmail.com" ]
zsm767@gmail.com
41861453f09818f9a2f62d37ff76df50af693824
c5a1c95e9d8ce937f71caf8340cf11fe98e64f56
/day15/problem2/[노태윤]소수 찾기.py
8b5fff7359c78175d22f73d43ea64b2a1a1acb6b
[]
no_license
Boot-Camp-Coding-Test/Programmers
963e5ceeaa331d99fbc7465f7b129bd68e96eae3
83a4b62ba2268a47859a6ce88ae1819bc96dcd85
refs/heads/main
2023-05-23T08:21:57.398594
2021-06-12T16:39:21
2021-06-12T16:39:21
366,589,317
0
0
null
null
null
null
UTF-8
Python
false
false
1,037
py
from itertools import permutations def isprime(N) : if N <= 1 : return False # 0 또는 1 이면 소수가 아니므로 False 반환 for i in range(2,N) : if N % i == 0 : return False # 하나라도 나누어 떨어지면 소수가 아니므로 False 반환 return True # 그 외에는 True 반환 (소수) def solution(numbers): answer = 0 total_perm...
[ "noreply@github.com" ]
noreply@github.com
04ffe373712c4bca461e6b2f16eaa0b864c5d195
c4ff5bb1db872144cc6a71f8954448d00a4db9e0
/fugu/CodingDojo/acmicpc-1874-스택수열.py
0349cd1fd567033cfe5b76799b32a63038203e4e
[]
no_license
gsn-coding-study/ibiza-summer
a50e50d68976bc0f5f5c91623086886c0e115612
01a89d67cca4b2cc27f45f432375a6a8c24f5d0b
refs/heads/master
2021-01-25T09:15:25.106370
2017-12-08T06:17:03
2017-12-08T06:17:03
93,809,457
1
1
null
null
null
null
UTF-8
Python
false
false
368
py
#-*- coding: utf-8 -*- def play(seq): os = range(1, len(seq) + 1) stack = [] rec = [] while 0 < len(seq): if os[0] < seq[0]: stack += os.pop(0) rec += '+' elif: pass else: return 'NO' return '\n'.join(rec) args = [input() ...
[ "ikrus81@gmail.com" ]
ikrus81@gmail.com
9ed50cdcb3294279c57952634ed65965df1eb842
fbd926541dac8c087d8e67c2947e387e84d80bec
/LucidProgramming/linked_list.py
56c62f3ec179ccf35c45a510d3a861e3c1b12ad9
[]
no_license
nithin-kumar/urban-waffle
2249e4009f7ed97e0beabc681e6706514e9e08f9
977de7f68c1a46c0b05992b45dd2d4d0a4205ae4
refs/heads/master
2020-09-12T22:35:55.566153
2019-11-19T01:33:33
2019-11-19T01:33:33
222,576,170
0
0
null
null
null
null
UTF-8
Python
false
false
6,842
py
class Node(object): """docstring for Node""" def __init__(self, data): self.data = data self.next = None class LinkedList(object): """docstring for LinkedList""" def __init__(self): self.head = None def print_list(self): current = self.head while current: print current.data current = current.next...
[ "kv.nithin.90@gmail.com" ]
kv.nithin.90@gmail.com
62c68dddf80e0c9af49caa7184495595b89c6570
877103ed9aefb75d8b079c26fa9501235f36f135
/news_history_library_builder.py
edab2111f3bd8fbf625597dbf3ebb95667313f66
[ "MIT" ]
permissive
aljohnso/Market_Dreams
abc7b2845edbe9225d369f5b88a6676f40466a0d
2cd2561df6ff46ecb32e029c10c761f636ab72ee
refs/heads/master
2021-01-18T21:08:47.932379
2016-05-15T04:22:32
2016-05-15T04:22:32
55,817,426
0
1
null
null
null
null
UTF-8
Python
false
false
457
py
import newspaper import datetime URL = 'http://www.reuters.com/news/archive/worldNews?date=' def getPaper(date): URL = 'http://www.reuters.com/news/archive/worldNews?date=' URL = URL + str(date) print(URL) paper = newspaper.build(URL) print(paper) articles_ = paper.articles pri...
[ "aljohnso@students.pitzer.edi" ]
aljohnso@students.pitzer.edi
0f85e629918d9c10d47d0f02fe53bdb4da9e6d75
328ebfdbcef076ce0e930715f9bd786d7498185b
/lang/python/learn-python-programming-masterclass/section-3/strings.py
91b26393876205c803ac842e2289ac95f64a1bc6
[]
no_license
pnowak2/learnjs
b618e6f9563b3e86be0b1a21d647698e289daec0
f8842b4e9e5d2eae6fb4e0d663b6699d74c90e9c
refs/heads/master
2023-08-30T05:04:00.227920
2023-08-18T10:58:24
2023-08-18T10:58:24
41,912,571
3
0
null
2023-03-31T06:58:40
2015-09-04T11:36:13
Python
UTF-8
Python
false
false
467
py
print("Today is a good day") print('Python is fun') print("Python's string are easy to use") print('We can include "quotes" in string') print("Hello" + " world") greeting = "Hello, " # name = input("Please \n enter your name ") name = "Tim" # if we want a space, we can add that too print(greeting + name) print(greet...
[ "p.nowak2@gmail.com" ]
p.nowak2@gmail.com
cfac0ad8377b57b5c10a7d49b67b1f4bffd73f68
774bea659c3dd1b9d0d48cda8b9933da889aecf0
/hashtag_count.py
89f65ea02f5cc8a2a91a6270e7e17e018b6e88e0
[]
no_license
js418/Algorithms-for-Data-Science
44b2f7e7f3e30cfba568eaccdb08a3300e7b3a92
3821b51ab1e6b788c4e24631681bc25a738009b3
refs/heads/master
2020-03-19T07:08:46.171150
2018-06-04T22:39:41
2018-06-04T22:39:41
136,089,899
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
from mrjob.job import MRJob class HashtagCount(MRJob): def map(self, _, tweet): """ Output the number of hashtags and a count for each tweet the '_' can be used when there is no key """ num_hashtags = sum(1 for i in tweet.split() if i.startswith("#")) yield 'tweets'...
[ "noreply@github.com" ]
noreply@github.com
ec35f4c3d77874af773f2b4ba822170f62937374
97391e70aef84fceebdf5c67cf76cfb70ff00b5a
/setup.py
562639eb02c713d622850d36593260b4d0897eb7
[ "MIT" ]
permissive
tvarga1/PythonCanalyzer
5e6c25647ceb049ae768ca92cd3eac161c1a7bfb
f6e458a840f98667ec8ea63e0ecba57407579508
refs/heads/master
2020-12-23T15:36:44.599687
2019-11-26T06:27:46
2019-11-26T06:27:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
756
py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="python_canalyzer", # Replace with your own username version="0.0.2", author="Guopeng Sun", author_email="sgnes0514@gmai.com", description="Vector CANalyzer Win32Com", long_description=...
[ "guopeng.sun@valeo.com" ]
guopeng.sun@valeo.com
238a0fd2b61f6e8877eb39f50fc3f32b2dcc373c
c4223fa1db8324af96797240b3e156f9f697b547
/agent_code/agent_task3_field_augment_prio_notimeaware/model.py
db55ed0b3a26b2eaf755cd858c2438e602e174e6
[]
no_license
Philipp-g/ifml-project
74b18933ab55a6402aa70d567ea961a641498f8c
34c8fc56b0cf635509921290a1e70b6a812146d6
refs/heads/master
2023-03-25T06:38:54.566525
2021-03-29T12:18:14
2021-03-29T12:18:14
338,555,714
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
import torch.nn as nn class BombNet(nn.Module): def __init__(self, input_dim, output_dim): super().__init__() _, c, h, w = input_dim if h != w and h != 15: print("Input must be 15x15") self.convs = nn.Sequential( nn.Conv2d(in_channels=c, out_channels=16, ker...
[ "philipp.goeldner@gmail.com" ]
philipp.goeldner@gmail.com
fcb0a339297c247da0b710cde9ce4fd7d6f0a0b3
8cf2371c0dbb0b17fa6b601a4edf12a884f32958
/Practice1.py
f2813e6b4003c28228c8e26a9cfcad9f53c4dcd7
[]
no_license
meliissagr/CompElective
2a00ad64657bbe3f1dd803ff205fd3c3eae88cb4
efed0d5ad3b2a02afbee01d934bd6e38043d0586
refs/heads/master
2020-04-14T06:25:54.305716
2015-05-12T13:59:59
2015-05-12T13:59:59
35,280,093
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
#Practice # 1 #Create 5 variables that store your personal info #Name, Last name, Address, Email, Phone number, #Print them separately and then concatenate them in a string.string Name = 'Melissa' LastName = 'Gutierrez' Address = 'Samborondon' Email = '15mgutierrez@iaa.edu.ec' PhoneNumber = 2836880 print Name prin...
[ "15mgutierrez@iaa.edu.ec" ]
15mgutierrez@iaa.edu.ec
4802483d78f2dce57654e4d31f152e239e562f11
3b71b8362f5aeaabb7b5aa33505e9d7908147722
/yellowNote.py
874dfb51f4e4a39140176efcbcbd47953afd1b5b
[ "Apache-2.0" ]
permissive
anokhina/yellowNote
01f0618d58223edafc6910d18d49183bd96a63fa
9833972ab57cb4c9d65ae54210866a6273f5dcdb
refs/heads/master
2020-03-11T05:04:32.215473
2018-04-16T19:28:44
2018-04-16T19:28:44
129,792,602
0
0
null
null
null
null
UTF-8
Python
false
false
3,535
py
import tkinter as tk import tkinter.scrolledtext as tkst import sys, getopt import os.path from subprocess import call cntrl = 1 geometryX = -50 geometryY = -50 file_name = "yellowNote.txt" fake_message = "File not found: " print ('Number of arguments:', len(sys.argv), 'arguments.') print ('Argument List:', str(sys.a...
[ "anokhina.veronica@gmail.com" ]
anokhina.veronica@gmail.com
184fe0d25f0fc5ed10550ecf87ed8762273c91fb
52c0d7d09963fda57f0e4855c265cbc88f29e249
/Python Flake8 Lint/contrib/flake8/_pyflakes.py
daf2749e9c57ebf33ac688d8ee717f8d4a85f8ea
[]
no_license
blizzrdof77/Sublime-Text-3-Packages
8d52742ce6dca32d0c5caa22f808922089829dba
04f91dcf79f121264daafa5dcacc4b8d54ef6968
refs/heads/master
2020-05-28T06:41:32.316971
2014-06-09T11:13:04
2014-06-09T11:13:04
9,673,021
2
0
null
null
null
null
UTF-8
Python
false
false
1,531
py
# -*- coding: utf-8 -*- import pyflakes import pyflakes.checker def patch_pyflakes(): """Add error codes to Pyflakes messages.""" codes = dict([line.split()[::-1] for line in ( 'F401 UnusedImport', 'F402 ImportShadowedByLoopVar', 'F403 ImportStarUsed', 'F404 LateFutureImport', ...
[ "benjamin.wagner@fahlgren.com" ]
benjamin.wagner@fahlgren.com
2d583075790cb83484032d009a3e8cfe584193d0
70e970ce9ec131449b0888388f65f0bb55f098cd
/SignalMC/python/pythia8/AMSB_gluinoToChargino_M-1300GeV_M-900GeV_CTau-10cm_TuneCP5_13TeV_pythia8_cff.py
adb04714d2ed3a9d54092513fa5a34287cf407ba
[]
no_license
OSU-CMS/DisappTrks
53b790cc05cc8fe3a9f7fbd097284c5663e1421d
1d1c076863a9f8dbd3f0c077d5821a8333fc5196
refs/heads/master
2023-09-03T15:10:16.269126
2023-05-25T18:37:40
2023-05-25T18:37:40
13,272,469
5
12
null
2023-09-13T12:15:49
2013-10-02T13:58:51
Python
UTF-8
Python
false
false
8,096
py
COM_ENERGY = 13000. MGLU = 1300 # GeV MCHI = 900 # GeV CTAU = 100 # mm CROSS_SECTION = 0.0522 # pb SLHA_TABLE=""" # ISAJET SUSY parameters in SUSY Les Houches Accord 2 format # Created by ISALHA 2.0 Last revision: C. Balazs 21 Apr 2009 Block SPINFO # Program information 1 ISASUGRA from ISAJET # S...
[ "ahart@cern.ch" ]
ahart@cern.ch
758ddeec7b172f7f1236be16322795bec7ad6325
e7263026bd4f34bae664c37e57a299ce83c7f111
/03-Spider/scrapy-spider/xiciIPSpider/xiciIPSpider/items.py
06d00e44d6c499c8beabdb1eace42bc540d723ca
[]
no_license
Aries000004/grocery
34d0ad0648c6dff5c36f4a68abf9eeac59da214d
27492f4ac7ef66d544f853dd6686920bcb9dc663
refs/heads/master
2020-03-24T22:50:37.703257
2018-07-26T11:43:54
2018-07-26T11:43:54
143,105,389
1
0
null
2018-08-01T04:51:12
2018-08-01T04:51:12
null
UTF-8
Python
false
false
292
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class XiciipspiderItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
[ "1367000465@qq.com" ]
1367000465@qq.com
669f960900ea3a0f9a8cf9a0daf16becb2ab4e31
de64d2c61df22d3b9fc967cf8a28feb70829d8da
/scripts/tweet.py
39776414d2fac05c3fdcc77de70802c0ffee9ef7
[]
no_license
arueckle/Hub
1368c73eec5a0c0430d54e54891ec7d3b54c56fc
e14961affb210c2a285b8b2ef92aee1549c11435
refs/heads/master
2023-01-08T13:42:24.221220
2020-11-01T14:31:26
2020-11-01T14:31:26
279,960,383
0
0
null
2020-07-15T19:36:39
2020-07-15T19:36:38
null
UTF-8
Python
false
false
2,744
py
import os import sys from twython import Twython from utils import REPO_FOLDER import yaml dir_path = os.path.dirname(os.path.realpath(__file__)) SINGLE_TWEET = os.path.join(dir_path, "tweet_templates", "single.txt") MULTI_TWEET = os.path.join(dir_path, "tweet_templates", "multi.txt") # read the Twitter authenticat...
[ "36051308+calpt@users.noreply.github.com" ]
36051308+calpt@users.noreply.github.com
a415dff3d2535b360a1ace9f56b0556656905e8d
cb80cc1dc7cac2e0b7046ee3ee25b3a067ccb16a
/users/migrations/0004_getleave_user.py
5b00c42e4d91f2a86b975fa4e974abc76b722ed1
[]
no_license
ninekulay/django-api-docker-macm1
7e218623407eefbab6a293053e55214aa73bcb1f
ac9adad76d26758abf0308f2aaa547636fd00b7e
refs/heads/main
2023-04-05T19:46:26.852640
2021-05-04T11:46:22
2021-05-04T11:46:22
364,237,047
1
0
null
null
null
null
UTF-8
Python
false
false
596
py
# Generated by Django 3.0 on 2021-05-04 11:14 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('users', '0003_auto_2021050...
[ "chanin@Chanins-MacBook-Air.local" ]
chanin@Chanins-MacBook-Air.local
18c0c6f8a59ca7b22f43511f62bbd3c0b4da50bb
a7e4a3f8b650535e0b204599a650b49f7c833084
/hw3/hw3.py
61f3288587a678b1e3f3789f7e29082810fac8a2
[]
no_license
AamirManasawala/matrics
bb998b6bb7c2b3e349e036b4c4cc924af9e179c1
c2ced0dc7bfbff6b6dc7e2aade9db40120b00e84
refs/heads/master
2021-01-02T08:14:11.534557
2014-07-17T03:06:22
2014-07-17T03:06:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,639
py
# version code 829 # Please fill out this stencil and submit using the provided submission script. from mat import * from vec import * from matutil import * ## Problem 1 # Please represent your solutions as lists. vector_matrix_product_1 = [1,0] vector_matrix_product_2 = [0,4.44] vector_matrix_product_3 = [14,20,26] ...
[ "manasawala.aamir@gmail.com" ]
manasawala.aamir@gmail.com
72291f1a80d25d450fe906f87abf607eafeeffb1
1491ea6076b77a75a3c30ddca1b645f021377b14
/build/lib.linux-x86_64-2.7/fishext/urls.py
5981e434caa12b40d51f6a50e27ffcd2cd645877
[]
no_license
fishkao/fishext
d6a837bd9618a5f6b06fbb1e73ee7453ddc7e34d
8fb36f34b7a9b5385f177e16ded04734a19c6273
refs/heads/master
2021-01-22T11:58:45.513441
2014-04-02T07:22:34
2014-04-02T07:22:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
from django.conf.urls.defaults import patterns, url urlpatterns = patterns('fishext.views', url(r'^$', 'dashboard'), )
[ "gzzhaoyinlan@corp.netease.com" ]
gzzhaoyinlan@corp.netease.com
cb7d8b6a5c90248314996ce4caad17c578f9edc9
60c8d65989fe641771cc237d3b4481977a7000d2
/setup.py
195880bc9554c3e9eaed675d4124e9420a8b4d03
[]
no_license
Helioviewer-Project/hvJP2K
78e520225bba60d3fe6396d87f46830d71a6b925
7fbaaee2df1628e68a7a24e5cc66f947b9dc0623
refs/heads/master
2021-01-10T19:38:14.578914
2018-03-02T06:13:41
2018-03-02T06:13:41
50,620,145
0
1
null
null
null
null
UTF-8
Python
false
false
1,692
py
from setuptools import setup from Cython.Build import cythonize kwargs = {'name': 'hvJP2K', 'description': 'JPEG2000 tools for the Helioviewer Project', 'long_description': open('README.md').read(), 'author': 'SWHV ROB', 'author_email': 'swhv@oma.be', 'url': 'https://g...
[ "bogdan@nicula.net" ]
bogdan@nicula.net
d3caaf1ea7b102d8e331df73fea31c1a13df226f
85a1d4d57fc461aa10fbe4a3dabb5c938b0e210b
/vote/urls.py
877a7cfd6582b5305b6e6c7759f9fd61f5f69c66
[]
no_license
Loic-Mathieu/vote-backend
6ccd4d2dd373885495f0f6bedccca98af58c096b
0ef8b8183aad7d00a16a3c8facd2f2fb083ab43a
refs/heads/master
2020-12-14T16:58:48.481592
2020-01-19T23:42:59
2020-01-19T23:42:59
234,816,486
0
0
null
null
null
null
UTF-8
Python
false
false
714
py
from django.urls import path, include from rest_framework import routers from rest_framework_simplejwt.views import ( TokenObtainPairView, TokenRefreshView, ) from . import views app_name = 'vote' # Pages accessibles router = routers.DefaultRouter() router.register(r'candidats', views.TestViewSet) router.reg...
[ "loicn.mathieu@gmail.com" ]
loicn.mathieu@gmail.com
80c27f195497178cabd5c47b3d0356e31a1cc702
b1bb53508e4f9e2b68435c0521e2df337873b8c5
/lesson7/ex2.py
c16e0ac718cdce7cc2443bc8608d4e395e0ae2a3
[]
no_license
smbdawsm/python_exercises
1dccbf1344818fb39c3c1a605ce1791fdf561396
9c4465006ab9dc4221a04dfeed41747b167fa032
refs/heads/master
2023-01-23T01:31:43.824211
2020-11-30T16:54:01
2020-11-30T16:54:01
301,453,033
0
0
null
2020-11-30T16:54:02
2020-10-05T15:21:56
Python
UTF-8
Python
false
false
2,199
py
'''Реализовать проект расчета суммарного расхода ткани на производство одежды. Основная сущность (класс) этого проекта — одежда, которая может иметь определенное название. К типам одежды в этом проекте относятся пальто и костюм. У этих типов одежды существуют параметры: размер (для пальто) и рост (для костюма). Это мо...
[ "nikolay.nikishev@icloud.com" ]
nikolay.nikishev@icloud.com
18746d107ac80f317f7718f9df54959cb3ba6e77
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/6/o4y.py
89cc0accfba79c045c1482dbd947f1898b0456fa
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
4cbb665b85d9594969147c4427691a18f0ff6da7
9cb0322bd0f837f586936ecad555309218d59882
/Log/__init__.py
5d20ee91003f12fa31d35170ee2962aecc2bc57b
[]
no_license
shuihun/readNgnixLogClient
e25f159b74a42190c309541a73e0d2499083dc29
258b89a9a549e1ffec1a7a7a18aae96be71ec0f4
refs/heads/master
2020-03-17T07:04:52.962076
2018-05-14T15:44:20
2018-05-14T15:44:20
133,382,328
0
1
null
null
null
null
UTF-8
Python
false
false
170
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @version : 1.0 # @Time : 2018/1/13 16:53 # @Author : chenjh # @File : __init__.py # @Software: PyCharm # @note :
[ "911257639@qq.com" ]
911257639@qq.com
d50b4734dc4ad636dbef82b733c3bfc6003ca7c6
22cb93a0b78f1dcf118a0490a233d1ad2966c026
/host/pyscripts/modules/tabletools.py
a72bcf1a317264e505227a18b971c13b4a2f3eff
[]
no_license
gabrieleara/PARTProf
f6a5655143e0c7285741f5bbb85c8ad4a627c628
c0ec8ca3129f3ac952545e6b3082ff65aebf26fd
refs/heads/master
2023-08-31T06:14:39.207829
2021-10-21T14:00:02
2021-10-21T14:00:02
339,413,336
0
0
null
null
null
null
UTF-8
Python
false
false
3,596
py
#!/usr/bin/env python3 import re import pandas as pd from . import si def pd_read_csv( *args, index_col=False, float_precision='high', **kwargs, ): """ Wrapper for pandas.read_csv function that sets some default argument values common throughout this project. """ ...
[ "gabriele.ara@santannapisa.it" ]
gabriele.ara@santannapisa.it
cdf9efa80ff42220c6bb7c2264bb80f8d4828cf0
765a99ececc4df78b4acb1fe6eda823b965d0c5a
/lesson3_4step7.py
0821b517938a9341152b9a6a1f27cb27aa653bc3
[]
no_license
max3koz/Selenium_auto_test_course
e31233a28a57157f476d19b336b417df96b1333d
f64ae495dbe6a5dcf8b629535bf64bb490a08f49
refs/heads/master
2022-12-10T00:54:19.865788
2019-07-16T21:14:22
2019-07-16T21:14:22
196,007,673
0
0
null
2022-12-08T05:19:07
2019-07-09T12:50:18
Python
UTF-8
Python
false
false
923
py
import pytest from selenium import webdriver link = "http://selenium1py.pythonanywhere.com/" @pytest.fixture(scope="function") def browser(): print("\nstart browser for test..") browser = webdriver.Chrome() yield browser print("\nquit browser..") browser.quit() class TestMainPage1(object): ...
[ "Maksym_Trykoz@jabil.com" ]
Maksym_Trykoz@jabil.com
568d639fb495c2a405c45b251ca5058b0adb1e05
12c7a93d74d0bcf4d4c99bd2cd5210df49645c2d
/code-backend/lib/config.py
62fce9337f9a2b7d48e375a6190a95b2e7d5a966
[]
no_license
FalconLee1011/ntou-cs-embedded-system-project1
34734dfdfae94698409c4f4a7f9c7722b022d682
177a32ebf8f4646545a0511123788e64b987d93a
refs/heads/master
2023-03-30T05:09:05.584010
2021-04-06T12:27:48
2021-04-06T12:41:12
355,089,838
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
import yaml CONF = None def loadConfig(path): global CONF with open(path) as f: CONF = yaml.load(f, Loader=yaml.SafeLoader) f.close() return CONF def loadConfigAndReturnAsLocalVariable(path): with open(path) as f: conf_let = yaml.load(f, Loader=yaml.SafeLoader) f.clo...
[ "falcon.lee1011@gmail.com" ]
falcon.lee1011@gmail.com
be04f8de517fa361510d94b2831505d48a153f34
e5eb2426985e3d1e0dbe249ac7adcbd30c5dec3b
/Newsrooms_NLP/popular_newsarticles.py
47fa7c8efd1ddaae902e976d70fd8b4fc7fe55e5
[]
no_license
mjjin967/Newsrooms
17f6b54eb52b27e1a700cd9390ec8e19456b835a
c97651852c017afc3970517d384ebba471054bcf
refs/heads/master
2020-07-28T15:35:52.158271
2019-12-27T01:44:36
2019-12-27T01:44:36
209,452,747
0
2
null
2019-09-21T23:21:50
2019-09-19T03:15:33
Python
UTF-8
Python
false
false
6,204
py
from os import getcwd,listdir from os.path import isfile, isdir, join import shutil import json import sqlite3 import pandas as pd from gensim.models import LsiModel,TfidfModel from gensim import corpora,similarities # from gensim.test.utils import common_corpus,simple_process import gensim from gensim.test.utils impor...
[ "myungjin_lee@alumni.brown.edu" ]
myungjin_lee@alumni.brown.edu
7da59f251007025738f7e21b8a090919b0fcdacf
a0414992e4a8528860e3161e79dd379db0875d18
/python/1000digit.py
e025fb1973071e4f30701b9bb4ae96398a80e8d6
[]
no_license
bibek22/project-euler
48a0c1d75f8f1b1ee82ddb0fe93917ae3ad9c1aa
2638f6846346c679fc97f2ad2f178907d0b91b9e
refs/heads/master
2020-04-07T20:19:37.277495
2018-12-02T06:35:17
2018-12-02T06:35:17
158,683,665
0
0
null
null
null
null
UTF-8
Python
false
false
1,228
py
num_str="73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627661428280644448664523874930358907296...
[ "forgot.bg@gmail.com" ]
forgot.bg@gmail.com
20ba0fcd249c51ee20e9e62d009017c975a1ea48
44b25a6dd617a29bfc12889d3b83737de1c625e8
/dbToVirtPed.py
5e0d3aba41038efa25537773b3661637c3e33024
[]
no_license
icleen/python_data_manips
9a85716569a1b84414879a3a82f531ec24c59d1e
7bb0af9369c59d8d60855d70cff431f5a2582008
refs/heads/master
2021-01-21T20:15:41.800926
2017-05-23T18:40:50
2017-05-23T18:40:50
92,207,647
0
0
null
null
null
null
UTF-8
Python
false
false
2,486
py
import sys from unqlite import UnQLite import json import base64 import os import urllib def image_creator(field): imagePath = base64.b64decode(field['source']['descriptionId'].split('_')[-1]) n = field['values'][0]['text'] gender = person['gender']['type'].split("/")[-1] di = person['id'][1:] # x ...
[ "icleen@gmail.com" ]
icleen@gmail.com
c64581f90957bb1084eecb39effbfffddfb65ec9
4a1aad3573ef3fd0eb07d3bec5af25bc6042348c
/mask_rcnn/roi_data/data_utils.py
fe604b0b4d51e68fcb32c2f4f6293389055117b9
[ "MIT" ]
permissive
rochesterxugroup/csc_249_final_proj_a2d_det
8f56ca9180fdf21ef2fde7f47dab169d7f1de82f
0f742981699352181e94a001f3d6f4a5b1824a54
refs/heads/master
2020-05-03T13:24:01.110190
2019-04-17T04:02:34
2019-04-17T04:02:34
178,651,833
2
1
null
null
null
null
UTF-8
Python
false
false
4,246
py
# Copyright (c) 2017-present, Facebook, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
[ "hubertlee915@gmail.com" ]
hubertlee915@gmail.com
0bb427439c4a8a56d195361c85fb14868b964517
f508e4a751d3dfadd268794fd6092b3781a74d4c
/docs/conf.py
090e77a6ac8479a9a127eddbd3cf278fac9292ef
[ "MIT" ]
permissive
mildewey/higlass
c2e274e0bdafccbfe5e994b8992248ae806e82fd
8cc135017500216cb24b98c3c82d85ca861081b1
refs/heads/master
2020-04-02T19:26:31.670874
2018-10-19T16:05:30
2018-10-19T16:05:30
154,734,076
0
0
null
2018-10-25T20:34:59
2018-10-25T20:34:59
null
UTF-8
Python
false
false
5,306
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # higlass documentation build configuration file, created by # sphinx-quickstart on Mon Jul 3 16:40:45 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 # au...
[ "pkerpedjiev@gmail.com" ]
pkerpedjiev@gmail.com
825084fe1307f1b6f817be92f582ab4e5bb805cd
8d179c3b6c0e301c095ad05f35126ece927c2974
/myfibheap.py
3666ee619659ff7ee238fc6c8371481f4b133ef9
[]
no_license
naveen-verma19/applauseTest
34e503e1f265a2f7db33a2178975140fc308c7a0
8aa9eb27fcfeda436f9f008da8ea4eeb07104d83
refs/heads/master
2021-04-12T00:42:50.205259
2020-03-21T22:40:49
2020-03-21T22:40:49
249,070,419
0
0
null
null
null
null
UTF-8
Python
false
false
11,585
py
name = 'fibhaha' def makefheap(): """make-heap in Cormen et al.""" heap = Fheap() return heap def fheappush(heap, item): """insert in Corment et al.""" x = Node(item) heap.insert(x) return x def getfheapmin(heap): """minimum in Corment et al.""" return heap.min.key def fheapp...
[ "naveen@Naveens-MacBook-Pro.local" ]
naveen@Naveens-MacBook-Pro.local
2285b70ca377c6f1d7352094d1f626929e63df89
c21546695e35a3f7c60e684de04bcbe88b2b985a
/0191_Number_of_1_Bits.py
c55f7da2b0e4f58f2b0605fc72f4ee8b7757bcc1
[]
no_license
piecesofreg09/study_leetcode
4a05ddee44c72a6d0c50bca7cb0b70abd33b0b85
fc69721dbe003fcc2f7795a6b38c41d877905205
refs/heads/master
2023-01-14T05:02:24.779136
2020-11-18T17:23:30
2020-11-18T17:23:30
288,774,420
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
''' n & n - 1 will remove the rightmost 1 to be 0 ''' class Solution: def hammingWeight(self, n: int) -> int: count = 0 while n != 0: count += 1 n = n & n - 1 return count
[ "noreply@github.com" ]
noreply@github.com
08b06d603bf17c8b7454333ac5e1645012aae45f
756543fa0c042122395202291b7da3bba90c1392
/Codes fuer neue Anwendung/Step1_AccessGithubRepo.py
01c78da5447baa2a688d247b2a4179b4d026246d
[]
no_license
bvbgh/aimloss
df7f35305470e7ee71be878e461ec0815b7ca17a
697ee3e45b9b3d6eb2f07578d1ae9c522f17141c
refs/heads/master
2021-01-23T22:23:21.431330
2018-04-20T13:21:46
2018-04-20T13:21:46
83,125,678
0
0
null
2018-04-20T13:08:41
2017-02-25T10:58:33
R
UTF-8
Python
false
false
6,953
py
# Step 1 in Data Analysis Workflow import json, gzip, urllib, time, os # Falls das Programm auf einem Windowsrechner ausgefuehrt wird, laeuft der # Speicher voll. Deshalb wurde ein explizites loeschen der temporaeren Daten # implementiert. Zur Aktivierung die "tempDelete" Variable auf 1 setzen und # den Pfad ...
[ "bvonbronk@gmail.com" ]
bvonbronk@gmail.com
05b17cb231ce22ac5fa98d9b4327665c821720eb
c06dc659681ad7a933e53809d46dd4a7b9211f0f
/edureka_old/module6/Assignment6/question3.py
b6758f1f1e753d984656d1f7615aacc5e91131b4
[]
no_license
sunitskm/Python
6233949182215b0c6cea31b62f62dea9e3bb57c8
0c4d4384ad930520ce16d446cc18898a5f497291
refs/heads/master
2020-04-21T18:34:13.908308
2019-09-19T14:14:30
2019-09-19T14:14:30
169,774,793
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
#Could not find any other way to do. Feel free to share any idea regarding this problem. import scipy as sp; v = sp.zeros((10,10)) l= [] print(v.shape) for i in range(v.shape[0]): for j in range(v.shape[1]): if(i==j): v[i][j] = 2 if(abs(i-j)==2): v[i][j] = 1; print(v)
[ "31219436+sunitskm@users.noreply.github.com" ]
31219436+sunitskm@users.noreply.github.com
e75157de30d6c01d98d13e3328e33a80acc43c3a
e9cedf619bb263a6915c09a88f90e88f1cf48c32
/classify.py
745f9be51995377b48e78156ebed64e2ed7821a4
[]
no_license
jack19861225/multi-label-classification-using-keras
b3d57797ad73d2989342b8d6e6db4449c3549bc8
3945e3ddf2a66842d14be7959b1eb03d79e1e831
refs/heads/master
2020-06-19T06:46:32.652417
2018-09-14T11:48:54
2018-09-14T11:48:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
# USAGE # python classify.py --model fashion.model --labelbin mlb.pickle --image examples/example_01.jpg # import the necessary packages from keras.preprocessing.image import img_to_array from keras.models import load_model import numpy as np import argparse import imutils import pickle import cv2 import os # constr...
[ "dummahajan@gmail.com" ]
dummahajan@gmail.com
f94db6bac67f597423eff94c30b6983c792b95f7
4ebe1c23456237cfee2d19fdd63421835d97d244
/crawler/main.py
3b9d7af9bbd263dfcd1eef55ad1adbdb83baaea2
[]
no_license
Jan1ey/ACM_difficult_words_list
a89498b84ce452e793bb524ad29c09533c74b335
3b9ee4991d22d8a85a03c365cf3a1ed9cf30a72a
refs/heads/master
2021-10-20T10:15:36.256524
2017-09-21T11:38:49
2017-09-21T11:38:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,587
py
import function as my_tool import threading lock_task = threading.Lock() lock_list = threading.Lock() task_id = 1001 task_end_id = 3262 word_dict = {} word_list = [] thread_number = 20 def get_task(): global task_id if task_id >= task_end_id: return 0 lock_task.acquire() temp_id = task_id ...
[ "chendingchao1@126.com" ]
chendingchao1@126.com
a0d9d2417139ff030007f062b7104aceecab4d9f
5e7af0aa1511a24f6fc1c688bb8c0a5fd567a814
/de-dupe_pix-pix_data_gen.py
582fd41a954cc42f46c2323599f11064fccd03d0
[]
no_license
eravallirao/Local_scripts
59901ae9709873bf92afcc4b2303f6d04cb5247d
7051794ca86f87468548c8f5b22cda8ad83c6e8d
refs/heads/master
2022-04-27T23:02:41.064368
2020-04-22T09:46:32
2020-04-22T09:46:32
257,856,098
0
0
null
null
null
null
UTF-8
Python
false
false
1,875
py
# import required classes from PIL import Image, ImageDraw, ImageFont import os import argparse import random import cv2 import numpy as np # print(random.choice(list(open('file.txt')))) ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", type=str, default="", help="path to input image file") args = var...
[ "prasad@github.com" ]
prasad@github.com
4071d21eb5cd3463dc714a85424e09a1fedfa660
cd3e195e3eff75a01d93fe6a3df082bc839507db
/Prime_range.py
57398abf3955c4143a4b1ae5cd175f678247cfe2
[]
no_license
swathichinnaiyan/Sandya
493002be8b221cad7af63bc0ee5833ef678171d2
34b77340f556054dd39c2a5de4ed933943ada319
refs/heads/master
2020-06-09T00:38:02.884184
2019-05-28T12:44:48
2019-05-28T12:44:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
n,k=map(int,input().split()) c=0 f=0 for i in range(n,k+1): for j in range(2,i+1): if ((i%j)==0) & (i!=j): f=1 break else: f=0 if f==0: c=c+1 print(c)
[ "noreply@github.com" ]
noreply@github.com
540470b8386757da783d1ea5354a0783db4d6ec2
821699dcb35891ce1b3a387b4f9eae9d8544d1f5
/python_study_3/page10/script.py
e9e2f1ebbf33077601cd96fb2d3d5d83afd52b05
[]
no_license
skiym-aaa/20200228_Progate
aaf0f2ae0fc53f0f9135e5ad6774667de142fdb3
e3bd6e796a20834322da9a24a6b2ecaba1d44cd8
refs/heads/master
2023-01-23T02:32:33.998582
2020-07-12T00:03:47
2020-07-12T00:03:47
243,649,688
0
0
null
2023-01-19T05:30:32
2020-02-28T01:02:10
CSS
UTF-8
Python
false
false
965
py
def validate(hand): if hand < 0 or hand > 2: return False return True def print_hand(hand, name='ゲスト'): hands = ['グー', 'チョキ', 'パー'] print(name + 'は' + hands[hand] + 'を出しました') print('じゃんけんをはじめます') player_name = input('名前を入力してください:') print('何を出しますか?(0: グー, 1: チョキ, 2: パー)') player_hand = int(inpu...
[ "y.sakiyama3216@gmail.com" ]
y.sakiyama3216@gmail.com
a3bd8733d9aa46d8519cb196daadb1b2eac0410b
66bc6a1e04531ab7e8d6eb87d9f92dbd6bff00a2
/encode.py
3802b39d5f274431cff466f016f3544073e270ba
[]
no_license
richuln6/MASK-D
87e9f705c0a4368f75a6544b9c456e849e14fee8
188ff2dfba7ec3a867ee76225ba630aaf669ecac
refs/heads/master
2021-04-08T01:54:04.089276
2020-04-09T10:12:09
2020-04-09T10:12:09
248,726,976
0
0
null
null
null
null
UTF-8
Python
false
false
4,676
py
import pandas as pd import geoip2.database from ipwhois import IPWhois from pprint import pprint from math import sin, cos, sqrt, atan2, radians import os import re import numpy as np from pandas import DataFrame as df import pickle from sqlalchemy import create_engine from sklearn import preprocessing import datetime ...
[ "root@debian.richul.com" ]
root@debian.richul.com
286ee60f55676e245dd032e51a0ee29b44cdbd46
34714cd4c363a417d910233e9653ddeaefcc142e
/metrics/unlv_build_gt.py
26be56353c7419242a0a710771341c1155f7d922
[]
no_license
akmaral-yes/table_structure_recognition_using_detectron2
e8dcc2c68802a966202bb77f343f6d980d9adc76
4c9970151294006fdafaba3c2ca84b7c04da97e7
refs/heads/master
2023-07-13T11:36:47.500567
2020-09-16T06:40:47
2020-09-16T06:40:47
293,349,398
4
3
null
null
null
null
UTF-8
Python
false
false
9,065
py
import os import argparse import cv2 from lxml import etree from utils.file_utils import load_dict, save_dict from utils.draw_utils import draw_rectangles def check_file_names(images_path, gt_path): """ Check if names in two folders are the same """ image_names = os.listdir(images_path) image_name...
[ "yakmaral@student.ethz.ch" ]
yakmaral@student.ethz.ch
425d004cb0602841444236ea3de1759ff102e59f
07ffbf063633866443a02dd5f81a461d0dc45586
/client/stattool.py
3a272e4992d316d4d9ad8f82ecd484777f96700c
[ "MIT" ]
permissive
zhonghe0615/python-sdk
a3e3b30274817c9cceb2f19cd5fa68a45d2acdbe
4dbc3d3ab608c8e1d78cb5960d1ae0e55b2502b2
refs/heads/master
2020-06-22T23:39:42.611289
2019-07-24T04:57:00
2019-07-24T04:57:00
198,433,110
3
0
MIT
2019-07-23T13:10:25
2019-07-23T13:10:24
null
UTF-8
Python
false
false
1,613
py
''' bcosliteclientpy is a python client for FISCO BCOS2.0 (https://github.com/FISCO-BCOS/FISCO-BCOS) bcosliteclientpy is free software: you can redistribute it and/or modify it under the terms of the MIT License as published by the Free Software Foundation This project is distributed in the hope that it will be u...
[ "zkx@vip.qq.com" ]
zkx@vip.qq.com
186aad5955392fda1d645d2081f56cfc70054898
9b9fa48ec458fec2b451b3be54bf2be23188b11e
/labs/functions/character_permutations.py
08fb258bbbda4e629cb991a9d908bb5c6e327b6c
[]
no_license
Nikoletazl/Advanced-Python
1bc55ce42693ff0a5bcf082f9f7867e07b771007
f1e31fbd423b31e2b24db151df8b73c7eaf35ab5
refs/heads/main
2023-08-21T20:46:43.572803
2021-10-22T09:47:52
2021-10-22T09:47:52
415,001,443
1
0
null
null
null
null
UTF-8
Python
false
false
337
py
def permute(index, values): if index == len(values): print("".join(values)) return for i in range(index, len(values)): values[i], values[index] = values[index], values[i] permute(index + 1, values) values[i], values[index] = values[index], values[i] permute(0,...
[ "noreply@github.com" ]
noreply@github.com
f963b2e1071b23551bdfcc0681cd03ec0413c0f3
8fb098b5550e7bfde4cb7c7c2c180e00cfe6a8ad
/Email Slicer.py
2b4e6c85ab746ed1070fa0f4a32b5550340863b7
[]
no_license
Harsh1t-coder/Python
27d987b798506d0bdde13d4dec7fa4323084a30c
2b42c6acfbc36db5ea66ca6a230a99cdcc7464b7
refs/heads/main
2023-07-15T18:21:02.962938
2021-08-21T05:37:27
2021-08-21T05:37:27
398,455,108
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
mail = input("Enter your mail id: ") username = mail[: mail.index('@')] domain = mail[mail.index('@')+1:] print(f"Your username is '{username.upper()}' and your domain is '{domain.upper()}' " )
[ "rastogiharshit14@gmail.com" ]
rastogiharshit14@gmail.com
6fa67bf817d711224d8e565294999ff0d2059322
06f11e89a7f3a160ad24c80f569d463b8383dd35
/src/cart/migrations/0003_cart_subtotal.py
cb51030a1bd67086fc312f968c76434393974e9c
[]
no_license
anashfire0/ecommerce
eff5399fde381d421188e9704665618abeef5863
f8eae5c3f33edb299e1ca7dd7077426a74661d8e
refs/heads/master
2022-12-10T05:28:48.321713
2018-06-23T03:10:38
2018-06-23T03:10:38
137,232,435
0
0
null
2022-01-21T19:16:26
2018-06-13T15:08:44
JavaScript
UTF-8
Python
false
false
478
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-13 08:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cart', '0002_auto_20180613_0735'), ] operations = [ migrations.AddField( ...
[ "ashrmzn22@gmail.com" ]
ashrmzn22@gmail.com
c2431eff6b733f06f5fae9a1d3f93326b600fb42
a6b5ddcb0f80f49cd54e0c1ebd62cc06709fdbb1
/controllers/rcj_soccer_player_b1/rcj_soccer_player_b1.py
82390da9fd71625bf3d7fa950f6ad7ce17c1297a
[ "Apache-2.0" ]
permissive
AlexHuynh23/SoccerWebots
d3c31111403c659ad1060a9dc1663f4d11f5fd24
2cc4277e16832263628f296a8d853ec4bf23feca
refs/heads/master
2023-03-06T00:45:35.963015
2021-02-03T17:04:07
2021-02-03T17:04:07
333,018,586
0
0
null
null
null
null
UTF-8
Python
false
false
3,973
py
# rcj_soccer_player controller - ROBOT B1 # Feel free to import built-in libraries import math # You can also import scripts that you put into the folder with controller import rcj_soccer_robot import utils class MyRobot(rcj_soccer_robot.RCJSoccerRobot): def goToPoint(self, robot_pos, point): pointAngl...
[ "70555816+AlexHuynh23@users.noreply.github.com" ]
70555816+AlexHuynh23@users.noreply.github.com
cc4a17a7174b8409f4875d4c7fce223c8ee00a2d
cd486d096d2c92751557f4a97a4ba81a9e6efebd
/18/addons/context.venom/playFromHere.py
887d841b3746e04a0b3b31161b57f8631de3a007
[]
no_license
bopopescu/firestick-loader-kodi-data
2f8cb72b9da67854b64aa76f720bdad6d4112926
e4d7931d8f62c94f586786cd8580108b68d3aa40
refs/heads/master
2022-04-28T11:14:10.452251
2020-05-01T03:12:13
2020-05-01T03:12:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,874
py
import sys, xbmc, json try: from urlparse import parse_qsl from urllib import quote_plus except: from urllib.parse import parse_qsl, quote_plus xbmc.log('__name__= %s' % __name__, 2) xbmc.log('__package__= %s' % __package__, 2) # sys.path = [] # if __name__ == '__main__' and __package__ is None: # from os im...
[ "esc0rtd3w@gmail.com" ]
esc0rtd3w@gmail.com
e0cc251b7be81f59167da51f8be18c476dce2fab
9caac2ce291b1fa5315043aecd0d3404243eacce
/min-temperatures.py
c621290c01bb3775a25f333da81aad8ceb939716
[]
no_license
avinashtadi/mycode
d017ef1c56c47bca007ba7911c9ac73ddfd4f320
de424aa38c3b2150aace878588329c8562b2f13f
refs/heads/master
2020-05-30T14:29:41.479611
2019-06-02T02:02:43
2019-06-02T02:02:43
189,792,328
0
0
null
null
null
null
UTF-8
Python
false
false
770
py
from pyspark import SparkConf, SparkContext conf = SparkConf().setMaster("local").setAppName("MinTemperatures") sc = SparkContext(conf = conf) def parseLine(line): fields = line.split(',') stationID = fields[0] entryType = fields[2] temperature = float(fields[3]) * 0.1 * (9.0 / 5.0) + 32.0 ...
[ "avinash.tadi@gmail.com" ]
avinash.tadi@gmail.com
bf54f5c914e5c3502ce9097b0970dda2cbc0419a
2f781a8fec992cee743b2f66b3175d23d7fe7190
/python/series/series.py
06f8bf8adcd0dfb7c32d5182bc532eb949668d64
[ "MIT" ]
permissive
rob93c/Exercism
f2a05cf6391b7b4d6246fed9ff57f16318ad290f
51e38b6559a5650a56d81e733be22b7ee349cedd
refs/heads/master
2021-12-23T03:57:34.271149
2021-10-28T20:29:35
2021-10-28T20:29:35
175,385,460
0
1
MIT
2019-03-19T12:20:58
2019-03-13T09:11:45
Java
UTF-8
Python
false
false
276
py
def slices(series, length): out = [] if len(series) < length or length < 1: raise ValueError("Length argument doesn't fit the series.") else: for i in range(len(series) - length + 1): out.append(series[i:i + length]) return out
[ "rob.uniud@gmail.com" ]
rob.uniud@gmail.com
2f65fe4f2c3cc9e6c7ff7d64a34b062893cf9099
453ab9db8bdd1f791ef6a50aa5f3bbf071da1982
/tools/noms/pushd.py
c8f718a4407c849393e18579fe0175739a08142f
[ "Apache-2.0" ]
permissive
julio-lopez/noms
eae7099cc5913e66b5b494a9810c9dd6ba7a768f
29afecdad4085b0df71a19d3fdf488754b38c512
refs/heads/master
2023-03-16T14:46:41.666891
2023-03-14T07:29:55
2023-03-14T07:29:55
118,852,085
1
1
Apache-2.0
2023-03-14T07:39:51
2018-01-25T02:39:58
Go
UTF-8
Python
false
false
335
py
#!/usr/bin/python # Copyright 2016 Attic Labs, Inc. All rights reserved. # Licensed under the Apache License, version 2.0: # http://www.apache.org/licenses/LICENSE-2.0 import os from contextlib import contextmanager @contextmanager def pushd(path): currentDir = os.getcwd() os.chdir(path) yield os.chd...
[ "noreply@github.com" ]
noreply@github.com
d4ea202031d8effa052f5564c89a304be2b0d059
1e826a1c4194aaba4e84c3dfeb7976f1ed3f2e78
/news/news_project/comments/migrations/0002_auto_20200801_1158.py
7570e07062b98136f31ef9e35be2eca3ba793561
[]
no_license
choirulihwan/django
95e62c8601dc34ddc7a3b816296683437fbc57f8
5cee04f4443f463088a5309b81aee6cb688f15ac
refs/heads/master
2022-12-13T10:07:12.276471
2022-01-09T08:57:36
2022-01-09T08:57:36
237,208,107
0
0
null
2022-11-22T09:48:06
2020-01-30T12:26:17
HTML
UTF-8
Python
false
false
988
py
# Generated by Django 3.0.8 on 2020-08-01 04:58 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('articles', '0005_auto_20200621_1449'), migrations.swappable_dependency(settings.AUT...
[ "aristhu_oracle@yahoo.com" ]
aristhu_oracle@yahoo.com
c31e659110b66300d3a5f2982f28690d73a5c462
4ed3db861ae2fe727c7be604d42d540a00923320
/samsung_multiroom/service/player.py
68cf53039187d62a94f10fb1ba54dd7a7eac1581
[ "MIT" ]
permissive
kusma/samsung_multiroom
7cac147283a52bf491d7f50a6569c64de53eb4a5
09ca86d27b87a4aa0c97ec2accbd4ec67dd0cc61
refs/heads/master
2020-12-04T07:46:19.688568
2019-04-20T16:29:44
2019-04-20T16:29:44
231,683,383
0
0
MIT
2020-01-03T23:47:29
2020-01-03T23:47:28
null
UTF-8
Python
false
false
6,225
py
"""Player allows playback control depending on selected source.""" import abc # repeat mode constants REPEAT_ONE = 'one' REPEAT_ALL = 'all' REPEAT_OFF = 'off' class Player(metaclass=abc.ABCMeta): """Player interface to control playback functions.""" @abc.abstractmethod def play(self, playlist): ...
[ "k.galutowski@gmail.com" ]
k.galutowski@gmail.com
100a50cb0f53aeb3db3fb461563fb11dad7fd331
f7262aa82274b63327e3a7dab04630f657b6fb81
/rango/views.py
64875152514052433a246e8fd9af7fdb3c1c48bc
[]
no_license
aserranogomez/Bares
a5cdc96698b94fd53c55ca61b689b803da2a20b3
ee37dbdf9df873bdfdf3ed896fcdba035d1b07e7
refs/heads/master
2021-01-10T13:58:09.004279
2016-02-11T00:51:54
2016-02-11T00:51:54
51,412,526
0
0
null
null
null
null
UTF-8
Python
false
false
4,600
py
from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render from rango.models import Bares, Tapas from rango.forms import BaresForm, TapasForm, UserForm, UserProfileForm from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_requir...
[ "andresserranogomez@gmail.com" ]
andresserranogomez@gmail.com
4aa998fe271c571ce96348a29280f27c93e19487
afcd61147064315de5430506bb2a0978e1dd32c4
/Eshop/store/views/login.py
bd7c00d2c74439b228f7773747828a603bb41e01
[]
no_license
shreywadmalwar/E-Shoppin_Site
874b895878eaf90fcbb8a689a981b2d4b6009345
5437b7db9387e4d18b80cea82d31243e23d26cbe
refs/heads/master
2023-07-10T06:07:31.919795
2021-08-03T20:25:27
2021-08-03T20:25:27
392,431,435
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
from django.shortcuts import render, redirect, HttpResponseRedirect from django.contrib.auth.hashers import check_password from django.views import View from store.models.customer import Customer class Login(View): returnUrl = None def get(self, request): Login.returnUrl = request.GET.get('return_url...
[ "sdwadmalwar@gmail.com" ]
sdwadmalwar@gmail.com
63ecf846da82a0b432c45839f42553813fcdcf3a
e14b357df0b8dc66bcc00690406121b57b09df79
/src/test/bot/__init__.py
6d56268b7a30fdf12955bd9a671f8d000acdc3ea
[]
no_license
arthur-samarin/SoftwareDesignProject
102f295627651bdf710ea6ad9ee069057f8ff41f
9858fcb16d98c2e5950214d3c839c7ae2c2a4912
refs/heads/master
2020-04-06T15:33:46.678018
2018-12-08T00:39:50
2018-12-08T00:39:50
157,583,298
0
0
null
2018-12-05T15:48:05
2018-11-14T17:08:02
Python
UTF-8
Python
false
false
81
py
from .request_faker import RequestFaker from .app_test_helper import AppTestCase
[ "asamarin97@gmail.com" ]
asamarin97@gmail.com
6914c85135645273f1edd76d5900fe84b14f27ea
d9d83da900ad5a4d2a6c6f80b25301d1986a475e
/lib/OneGan/setup.py
6f07e298cca5498a6ff89955df9a2153152b6172
[ "MIT" ]
permissive
nestarz/lsun-room
43def1d99a3995a0a8ce7c645b25acfcdeae0118
b77b98dc8361b044080469db01506eebd03d9c1f
refs/heads/master
2020-03-24T10:58:12.573727
2018-08-13T02:25:38
2018-08-13T02:25:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,376
py
# Copyright (c) 2017 Salas Lin (leVirve) # # This software is released under the MIT License. # https://opensource.org/licenses/MIT from setuptools import setup def version(): with open('onegan/__init__.py') as f: for line in f: if line.startswith('__version__'): return line.r...
[ "elias.rhouzlane@gmail.com" ]
elias.rhouzlane@gmail.com
dd9a99d983f3c8f41ef97e6ecd2d757828ea0df1
7616705a1b123427a240bd5958f23450d2ba05f2
/ExplorationNoise.py
21647ac78160b04b384bb97527bbb089a01c57c7
[]
no_license
ikoryakovskiy/curriculum_learning
5575fcfd891a509079ac6475bb50e59911b8c830
de665e17134fd69bcd6091f1ea3344553061d0ff
refs/heads/master
2021-07-04T03:30:23.667237
2018-06-02T18:22:31
2018-06-02T18:22:31
107,388,942
0
0
null
null
null
null
UTF-8
Python
false
false
1,932
py
""" Package containing different types of exploration noise: - White noise - Ornstein-Uhlenbeck process - Noise decay Original Author: Bart Keulen Author: Divyam Rastogi """ import numpy as np class ExplorationNoise(object): # ================================ # WHITE NOISE PROCESS # ===========...
[ "divyamlk22@gmail.com" ]
divyamlk22@gmail.com
c6fefc0d9cd14428c2fecf957fb3004e2681e8c1
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Quantization/trend_Lag1Trend/cycle_12/ar_12/test_artificial_32_Quantization_Lag1Trend_12_12_20.py
eb6deb2d6bbd89999096af776def00111e27d043
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
273
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "Quantization", sigma = 0.0, exog_count = 20, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
b73adfc4e78f36353c33d77a822512ccf0be43fd
fbef8f0555151521c96df2f6abddeab5192ac4c9
/app.py
d513dc5359e41c5cbdd9e685c71d6636bd74accd
[]
no_license
Azaz3L2/curso-openshiftpublic
2b46e35642e181265e071f218ded463d6ac39584
cc6b039e4e3e9fadcc7344745fa473c11d8cd5ed
refs/heads/master
2022-11-06T01:48:50.123492
2020-06-23T09:55:50
2020-06-23T09:55:50
274,336,474
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
import os from flask import Flask app = Flask(__name__) @app.route("/") def main(): return "Bienvenido v6!!!" @app.route('/como estas') def hola(): return 'Estoy horroroso, gracias' if __name__ == "__main__": app.run(host="0.0.0.0", port=8080)
[ "noreply@github.com" ]
noreply@github.com
281cd463e9c867cd397521f91a804bf5446d4916
6ed141b0c151becae06487e4e8095076efc54a66
/components/screencapture.py
261586b10e6ba40dff7eae9288bc794f6e3a08b9
[]
no_license
thomas64/pyRPG2
1a8231c29aa106002f1ddc5550caae004df75615
2df885395229297d574906bcc9bbe57ff0f6361d
refs/heads/master
2020-04-12T06:21:47.158454
2019-06-28T12:14:59
2019-06-28T12:14:59
58,064,228
4
1
null
null
null
null
UTF-8
Python
false
false
967
py
""" class: ScreenCapture """ import pygame import pygame.gfxdraw BACKGROUNDTRANS = (0, 0, 0, 224) # 1-255 hoger is zwarter BACKGROUNDCOLOR = pygame.Color("black") class ScreenCapture(object): """ Maak een schermafdruk en maak het wazig. """ def __init__(self, black_background=False): ...
[ "mail@t64.nl" ]
mail@t64.nl
dbb2e74eb81af614f35c05d23d1455766030f58a
a8e8d9f2cb2981c1cd86ac8c8ebe7d056f326296
/Partition labels.py
ed837c457f7a5db6643fbec1de0cf4643b8738d4
[]
no_license
sameerkitkat/leetcode_practice
443c88f7ed97676cfb83f19eb93df839e290be7e
c8ea2699a9448fb988fc3a10690ad794e01efda7
refs/heads/master
2022-12-25T21:42:43.943201
2020-09-30T19:48:39
2020-09-30T19:48:39
282,039,271
0
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
''' A string S of lowercase English letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one part, and return a list of integers representing the size of these parts. Example 1: Input: S = "ababcbacadefegdehijhklij" Output: [9,7,8] Explanation: The...
[ "sameerkitkat4.4@gmail.com" ]
sameerkitkat4.4@gmail.com
0d3b98c7ff725b42131918d94dd15c9ce1b8a9c1
d21cabccf9c7adcdd5d4a9d70f0d8e8eb3fb1e59
/accounts/views.py
f32c200985e19928da98d4ead21ae92ac47a10cb
[]
no_license
noelquirke/Athena-Envy-Milestone4
1a14e78cb5b960bfbed84d7fdcfd25542f42c28e
3b6162fa4a559cef0cab7490d3a1d12ac8e49f28
refs/heads/master
2022-12-09T00:02:23.931436
2020-08-26T23:11:46
2020-08-26T23:11:46
290,197,814
0
0
null
null
null
null
UTF-8
Python
false
false
2,307
py
from django.shortcuts import render, redirect, HttpResponseRedirect from django.contrib import messages, auth from django.urls import reverse from .forms import UserLoginForm, UserRegistrationForm from django.template.context_processors import csrf from django.contrib.auth.decorators import login_required # Create yo...
[ "noelquirke900@hotmail.com" ]
noelquirke900@hotmail.com
1f27eab884bd636bc95d14472f2d2994da77afc5
cbdf42eaf2f3ee908999fb1317d3fe90fa255f42
/kusinwolf/matplotlib_basic_example.py
d0014c854711d058981fbcaa02dbf9b69357aa25
[]
no_license
tdyhacker/pythonexploration
47c4e8a96d541428d4cf1d6c558a29e48f5fc22c
4b360ef2b61fb565c7e2f82ff31e848776cd649a
refs/heads/master
2021-01-10T02:51:34.245002
2010-11-28T02:31:36
2010-11-28T02:31:36
47,951,520
0
0
null
null
null
null
UTF-8
Python
false
false
1,156
py
#!/usr/bin/env python """ Show how to make date plots in matplotlib using date tick locators and formatters. See major_minor_demo1.py for more information on controlling major and minor ticks """ import datetime from pylab import figure, show from matplotlib.dates import MONDAY, SATURDAY from matplotlib.finance import...
[ "kusinwolf@c446d5ca-c62c-11dd-92e3-e3085bfe42ca" ]
kusinwolf@c446d5ca-c62c-11dd-92e3-e3085bfe42ca
182d9a411739da176612a6672b3f4c33eae6a55a
5a3cc933e73acc7da83e702402918bd687dd99b0
/Python_scripts/stitchjoints.py
79b2035ce6617648c703a5a3c4cb43ba25e616eb
[]
no_license
tuxicon/Interactive-puppets
392f343d8857192ecf984bf03ae3eecbccc28607
f52b94137d5aa5de9fb3cf6b742d72312e7cd316
refs/heads/master
2021-01-20T17:37:06.706294
2014-03-24T18:15:16
2014-03-24T18:15:16
15,418,293
0
1
null
null
null
null
UTF-8
Python
false
false
3,100
py
import bpy import re def union_test(first,second): modifier = first.modifiers.new('Modifier', 'BOOLEAN') modifier.object = second modifier.operation = 'UNION' bpy.ops.object.modifier_apply() #scene = bpy.context.scene #scene.objects.unlink(second) i= 0; def mesh_prepare(mesh): if mesh is n...
[ "ganesai@gmail.com" ]
ganesai@gmail.com
4f58e11e6d3006d75c64a4af4da9ea4792b0bd65
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_detain.py
3dfe8ec171cbb2f81c8c7242a587dcbea4b45df8
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
#calss header class _DETAIN(): def __init__(self,): self.name = "DETAIN" self.definitions = [u'to force someone officially to stay in a place: ', u'to delay someone for a short length of time: ', u'to keep someone in prison for as long as the courts feel is necessary'] self.parents = [] self.childen = [] ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
db1269295a5cbf37e808efbc1ec836700383198f
e856c3b147a56814b9c77dff7a1a15bffec7d39e
/parsetab.py
b267a31ec09ae3aabd72e573a720782b59ea6e5b
[]
no_license
pmarcosfelipe/compiladores
134e38006a2e539aba1a8ee08a58241940f68e24
a58672ca27ee963f9a0833330cb236be215107f2
refs/heads/master
2021-01-22T04:28:34.849241
2017-08-01T00:07:26
2017-08-01T00:07:26
92,466,743
0
0
null
null
null
null
UTF-8
Python
false
false
24,443
py
# parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'rightTERN_IFleftOU_LOGICOleftE_LOGICOleftIGUAL_COMPDIFERENTEleftMAIORMAIOR_IGUALMENORMENOR_IGUALleftPLUSMINUSleftTIMESDIVIDEleftNEGACAOID LPAREN RPAREN LCOL RCOL LCHAVES RCHAVES VIRGULA PONTOV...
[ "p.marcosfelipe@gmail.com" ]
p.marcosfelipe@gmail.com
651e175ce02760c437c476d4da00728624c568ae
2b924899cf0cc2977426906264d50d1ce33c5451
/enginesdk/v1/schemas/settings.py
7747c1737059b8130589a5e975313c53a5239af6
[]
no_license
kaepler/EngineSDK
358c4c0951e4fdb48d53a26921ea61582e814fb9
ce275f73a6d6fd663e2e77f1d93ec9b3ff09e547
refs/heads/main
2023-04-11T22:37:39.359392
2021-04-07T06:45:09
2021-04-07T06:45:09
353,343,112
0
0
null
2021-04-05T10:42:35
2021-03-31T12:07:47
Python
UTF-8
Python
false
false
427
py
from os import getenv from pydantic import BaseModel class Settings(BaseModel): ENGINE_NAME: str = getenv("ENGINE_NAME", "Kaepler Engine") ENGINE_SLUG: str = getenv("ENGINE_SLUG", "kaepler-engine") VERSION: str = getenv("VERSION", "v1") REVISION: str = getenv("SHORT_SHA", "local") API_KEY_NAME: st...
[ "trouni@gmail.com" ]
trouni@gmail.com
a24e3d2988d721e3a85a11289891a1e214d61df2
44d7cf9dffd9336b44701950908a622192ffc723
/ros/src/twist_controller/dbw_node.py
ac2e79bb101da5bb582e55097d9dd1c30ed895f4
[ "MIT" ]
permissive
smiht/Self-Driving-Car-Capstone-Project
588ceefba5cb782a4a7a2ea97b6a2f5cebfded86
f3538af6e9794f67c1455dd81880994730c6585c
refs/heads/master
2021-09-23T19:56:43.848170
2018-09-27T03:08:10
2018-09-27T03:08:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,092
py
#!/usr/bin/env python import rospy from std_msgs.msg import Bool from dbw_mkz_msgs.msg import ThrottleCmd, SteeringCmd, BrakeCmd, SteeringReport from geometry_msgs.msg import TwistStamped import math from twist_controller import Controller ''' You can build this node only after you have built (or partially built) th...
[ "kathan@Kathans-MacBook-Pro.local" ]
kathan@Kathans-MacBook-Pro.local
fd8ed3a75dca376e8d0523b9c1913aeb43585369
d305e9667f18127e4a1d4d65e5370cf60df30102
/scripts/update_onnx_weight.py
eaff46f61b3bafc13431d6b903dee7bce0b5030e
[ "Apache-2.0", "MIT", "Libpng", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "AGPL-3.0-only", "MPL-2.0-no-copyleft-exception", "IJG", "Zlib", "MPL-1.1", "BSD-3-Clause", "BSD-3-Clause-Open-MPI", "MPL-1.0", "GPL-2.0-only", "MPL-2.0", "BSL-1.0", "LicenseRef-scancode-unknow...
permissive
imyzx2017/mindspore_pcl
d8e5bd1f80458538d07ef0a8fc447b552bd87420
f548c9dae106879d1a83377dd06b10d96427fd2d
refs/heads/master
2023-01-13T22:28:42.064535
2020-11-18T11:15:41
2020-11-18T11:15:41
313,906,414
6
1
Apache-2.0
2020-11-18T11:25:08
2020-11-18T10:57:26
null
UTF-8
Python
false
false
2,557
py
#!/usr/bin/env python3 # coding=UTF-8 # Copyright 2020 Huawei Technologies Co., Ltd # # 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 r...
[ "513344092@qq.com" ]
513344092@qq.com
835a8b55edd1cd8ae7f9e2839194ed39293ff4f0
836d229563a469a0014ab901cbc71237b1c99cb8
/day_of_year_number.py
c017e3681a143d4a9142297633a2173983cd4eb5
[]
no_license
JIsernhagen/Python_Programming_Zelle
f9766ad21ce70000b3277ff9e4301dc97f5522fe
091ffc833f3fa34b70e58824e624b9afeb1f7bc8
refs/heads/master
2023-01-03T10:25:07.947720
2020-10-25T12:30:17
2020-10-25T12:30:17
254,511,712
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
def leap_year(year): if year%4 == 0: if year%400 == 0: leap_year = "is not" else: leap_year = "is" else: leap_year = "is not" return leap_year def date_valid(month, day, year): if 1<=month<=12: if ((month in [4, 6, 9, 11]) and (1 <= day <= 30)) or...
[ "KA0SWHgh" ]
KA0SWHgh
5fae97d9c12b1463434ad60de838f3401f1d9e85
7d0d25d963166fd9b893857ae4a588f32cadc94f
/src/Extended-PV-Doc2vec-full-yell-fixed-size-lstm-all-levels-one-step.py
b77b763b120432433ce21176e3406a5ffc8253c1
[]
no_license
yngcan/thesis-benchmark
bf5cdcf14fc83664ded0b53ec43500b488d08004
c3db59166cf897239fbab4eb3a389e0b13ff86d1
refs/heads/master
2021-06-15T19:20:29.527553
2017-04-27T16:29:45
2017-04-27T16:29:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,905
py
# coding: utf-8 # In[ ]: # Classification of fixed size paragraph vectors using LSTM #should be able to deal with all levels using the PARTS_LEVEL param # In[1]: import json import nltk from nltk.tokenize import RegexpTokenizer import string import math import os import time from collections import namedtuple, de...
[ "shalaby@yell.dbs.ifi.lmu.de" ]
shalaby@yell.dbs.ifi.lmu.de
cad483cb6bc5045e6421960432de8618dedcba0d
1c41d5f6890f88a43e53cbd43871534aba7d3292
/blog/migrations/0001_initial.py
c8c9e85fe0c2dc21ab2a5aa5e75fa554dd657e6b
[]
no_license
egepsihora/blog
ea09504c313b55f627d8d86dbc67a2d72cea9df5
b96e86bf0975ff6fa2ed71cc3891a15d975eb629
refs/heads/master
2023-06-30T09:52:18.397826
2021-08-09T16:38:02
2021-08-09T16:38:02
394,290,653
0
0
null
null
null
null
UTF-8
Python
false
false
989
py
# Generated by Django 3.2.6 on 2021-08-09 12:45 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "zeland18@ukr.net" ]
zeland18@ukr.net
2f10b5fae2b950dddd80f15b74840d3901bc80ad
f188306c78b3df309ece7042dc2838fbf73c9957
/large.py
f021ad2665f573eedadfe411bea6547879678f73
[]
no_license
AbhijithReghu/python-workshop
b7f1fb94008ccffbc3cb928cdb07016bb9a2e6e5
6ca01ddd0f4280eab0a4df860fa082be5f838cd5
refs/heads/master
2020-04-26T23:43:42.392679
2019-03-06T23:41:20
2019-03-06T23:41:20
173,911,771
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
a=30 b=9 c=3 if(a>b): if(a>c): print(a) else: print(c) else: if(b>c): print(b) else: print(c)
[ "hariunni08@gmail.com" ]
hariunni08@gmail.com
da7149cf9275852bce60c61bc06a346c39ce5fe1
b53911e82376875079173b79dc84058e43e9d424
/cinder/volume/drivers/fujitsu/eternus_dx_iscsi.py
0070e47f2932b4d3b737fbf6f3165724dcf88e24
[ "Apache-2.0" ]
permissive
isabella232/cinder
ae6d55677f73aee50651ae4f1e13fb6e23e79515
bd70ce6f4dd58ba904a7c941700cdce54e5a705e
refs/heads/master
2023-03-23T09:59:30.091106
2016-02-12T06:00:24
2016-02-12T06:00:25
349,980,166
0
0
Apache-2.0
2021-03-21T11:38:24
2021-03-21T11:37:45
null
UTF-8
Python
false
false
7,657
py
# Copyright (c) 2015 FUJITSU LIMITED # Copyright (c) 2012 EMC Corporation. # Copyright (c) 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the Licen...
[ "hayashi-yusuke@jp.fujitsu.com" ]
hayashi-yusuke@jp.fujitsu.com
eba3a2806c3af846fb6de7adfb2a57d894c6d863
6cf5c3a9a6310cc1ca9389bc0ee205f363f68698
/markov.py
bc06e8dc68ecb210cd455607df81a9aaa31bf43e
[]
no_license
bhawnam/markov-chains
6002421bf44be69aa132733d0d949aff6dd19801
824517fcfd5335f44cee3a2cdf4fd5ccb9096cde
refs/heads/main
2023-04-02T14:36:52.911657
2021-04-03T01:02:53
2021-04-03T01:02:53
354,127,923
0
0
null
null
null
null
UTF-8
Python
false
false
2,172
py
"""Generate Markov text from text files.""" import sys from random import choice def open_and_read_file(file_path): """Take file path as string; return text as string. Takes a string that is a file path, opens the file, and turns the file's contents as one string of text. """ contents = open(fil...
[ "bhawna.bm@gmail.com" ]
bhawna.bm@gmail.com
49280964f5b14f4c064679a0e25ccf98e39907cf
a7d245c8b3149f25f9c2038c4cbcf7d334596d98
/telemetry/TrailerValues.py
91f905ef49e5c29e9cf3c01024958b4713c45eff
[ "MIT" ]
permissive
SnipsMine/ETS2-Speedrun-Tool
4eb03bab9c293333b53950d30d38fa9d13ae7490
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
refs/heads/main
2023-02-15T18:08:56.871494
2021-01-19T14:33:29
2021-01-19T14:33:29
330,236,070
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
from telemetry.WheelValues import WheelValues from telemetry.WheelConstants import WheelsConstants class TrailerValues: damage = None attached = None position = None id = None wheel_values = None wheel_constants = None acceleration_values = None class AccelerationValues: line...
[ "micha@snippe-mail.nl" ]
micha@snippe-mail.nl
1833db93802e5f9f077ea673781f51aa73596958
d200ed5aeb8f6c4c94b2ec9cebe554a3f2c07979
/apps/django projects/classproject/onlineapp/forms/marks.py
a590544fc9f790cb8ee8a55095a9a9ddf1b9b5d3
[]
no_license
sanjaybalagam/summer_2019_gvp_balagamsanjay
d3b58fb6089ac3e540248d40e4c020e2f948c2f5
d32d14d25a16f4dd8eb312257b5d87cbc1d3c48b
refs/heads/master
2020-06-03T15:27:38.138419
2019-06-18T08:57:09
2019-06-18T08:57:09
191,628,779
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
from onlineapp.models import * from django import forms class Marksform(forms.ModelForm): class Meta: model=MockTest1 exclude=['total','student'] widgets={ 'problem1': forms.NumberInput(attrs={'class':'input', 'placeholder':'enter problem1 marks' }), 'problem2':for...
[ "balagamsanjay@gmail.com" ]
balagamsanjay@gmail.com
fef9ef7c89c31e2f2b730da346370bd670fe44e3
5c461543aaf7e4166cddf395d501d07b8d6cea58
/shared_schema_tenants_custom_data/helpers/custom_tables_helpers.py
968b9a61055c18ea26405292f57b121eb8cea839
[ "MIT" ]
permissive
hugobessa/django-shared-schema-tenants
5d748696083c8c80a2a7525be458079f2959a0ab
ed3bcddf80a7838979fe1be2045dfa16b545beed
refs/heads/dev
2023-01-16T04:35:58.509835
2018-07-24T10:25:15
2018-07-24T10:25:15
98,757,299
21
9
MIT
2022-12-26T20:29:26
2017-07-29T20:30:43
Python
UTF-8
Python
false
false
1,250
py
def get_custom_table_manager(table_name): from shared_schema_tenants_custom_data.models import TenantSpecificTable, TenantSpecificTableRow from shared_schema_tenants_custom_data.managers import TenantSpecificTableRowManager table = TenantSpecificTable.objects.get(name=table_name) manager = TenantSpeci...
[ "hugo@bessa.me" ]
hugo@bessa.me
5e84340ce88cc2e4c8bbd898f49c2252c294829c
b756fac12094915d4b4c3b2f88eff0812b3cc0ae
/geekshop/mainapp/context_processors.py
7b9a4d41af4284dae39a0cd1eaf8e8df471b24ef
[]
no_license
GarbGitHub/django-geekshop
6312c6ba42d702f00277325764d6750a9c81073c
43937c082d20e32b95b0c73d0a24fcac5aa33923
refs/heads/master
2023-08-24T07:58:52.497149
2021-10-20T17:48:29
2021-10-20T17:48:29
370,262,919
0
1
null
2021-10-20T17:48:30
2021-05-24T07:19:02
Python
UTF-8
Python
false
false
905
py
from authapp.models import ShopUserProfile from basketapp.models import Basket def basket(request): basket = [] if request.user.is_authenticated: # basket = Basket.objects.filter(user=request.user) basket = request.user.basket.select_related() return { 'basket': basket, } ...
[ "garbich@gmail.com" ]
garbich@gmail.com
af793b098cfdd6264834330742a7f5922b36a8dd
f6f7669019bfe3f9999dad49cac19250b5e94e88
/migrado/db_client.py
4147a4b8e069592248d46d97f8b7dd10f3dcb482
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
protojour/migrado
0d0e0b02bf13e4effffa23473476f6eaa9ec095a
b74f9c1b1e929712cd78fd2eebccbdccc024535a
refs/heads/master
2023-08-03T23:26:43.662797
2023-07-21T00:07:46
2023-07-21T00:07:46
196,373,678
11
3
MIT
2023-07-20T23:30:53
2019-07-11T10:31:28
Python
UTF-8
Python
false
false
6,474
py
""" Migrado database client Copyright © 2019 Protojour AS, licensed under MIT. See LICENSE.txt for details. """ import subprocess from arango import ArangoClient from arango.exceptions import TransactionExecuteError from arango.http import DefaultHTTPClient from arango.response import Response class HTTPClient(Def...
[ "eirikkr@gmail.com" ]
eirikkr@gmail.com
2e3cbd12c794908b6fbb20c081811fafad6b6abe
80de22bad856405592347961258a3116ddfffd29
/game/models.py
286f5b8edbd9ebc31d62e447ce84c2ed7b8e21b3
[]
no_license
lzake/click-clash
16ebc99306f8bddd4fd0e7f04a02f7cdcb42bebc
88f5790c37624f9f5e5ab1ab4b6ac02b332d8f7d
refs/heads/master
2020-03-13T17:34:37.069149
2016-07-15T19:23:46
2016-07-15T19:23:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
from django.db import models from django.conf import settings class Counter(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL) count = models.IntegerField(default=0) def __str__(self): return str(self.count)
[ "mike.brown@excella.com" ]
mike.brown@excella.com