blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd14a8d1149199664afe6d1f9f84b157b93b7cfb | bc1b9455826f2e07976c04b20515ac4a45eaf6b6 | /pyrax/resource.py | da570dcd342c43305fcae4a4a1f9c5ba3598bcd5 | [] | no_license | gondoi/pyrax | b3df411d4c1ed8d8e1e0151e9378f7400ff782fc | 4a917f55e706b650774a305a424ed456da773f02 | refs/heads/master | 2021-01-18T11:21:13.557056 | 2012-12-19T22:49:52 | 2012-12-19T22:49:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py | # Copyright 2010 Jacob Kaplan-Moss
# Copyright 2011 OpenStack LLC.
# Copyright 2012 Rackspace
# 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 License at
#
# htt... | [
"ed@leafe.com"
] | ed@leafe.com |
54af5cd1a521f7e55d1fc43f8010b47de5507d7a | 67325192c1e528a39d457f11e61b480d68826708 | /mods/mcpython/Commands/paststructur.py | 117c93e349a2e464fbdd360aea9102a06eae33c7 | [
"MIT"
] | permissive | vashistaarav1611/mcpython-a-minecraft-clone-in-python | 5851b377b54fd2b28c106112c7b18f397b71ab50 | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | refs/heads/master | 2023-02-01T22:48:51.787106 | 2020-12-21T15:02:25 | 2020-12-21T15:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # todo: remove
from . import Command
import structures
import globals as G
class paststructur(Command.Command):
@staticmethod
def getHelp():
return "/paststructur <name> <x> <y> <z>"
@staticmethod
def isCommand(line):
return line.split(" ")[0] == "/paststructur"
@staticmethod
... | [
"baulukas1301@googlemail.com"
] | baulukas1301@googlemail.com |
fe805e7840fac82c8b3327f0b3fa479f5f9f2a79 | ca37a72fa7098391e512071804ea924c348a36c6 | /RTRBM/rtrbm/mats/bias_down_mat.py | 22182037228e48bb65529cf82bce2398ead02fd8 | [
"Apache-2.0"
] | permissive | liuzc188/Convolutional-LSTM-in-Tensorflow-master | 32fa6e7ff029ca71ca282d22d4982233f01f4158 | 541eebf6a40d4e8f53d9789360a9ef794da2e35a | refs/heads/master | 2020-03-21T07:23:23.484012 | 2018-06-22T08:53:14 | 2018-06-22T08:53:14 | 138,277,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py |
from mats.base_mat import base_mat
from pylab import randn, shape
from mats import up, down
class bias_down_mat(base_mat):
def __init__(self, w, init=True, direction=None):
"just give it a mat, and it will, very conveniently, add biases."
self.v, self.h = w.v, w.h
# If it fails, try using... | [
"793989912@qq.com"
] | 793989912@qq.com |
c270c1332bc846e464e1576c754b6adaf140ee74 | c8abde35db2571f59113f40f1d6478197be6b467 | /day7/day7.py | 4c09bc75b008af074b03b2cfc026255690f22d32 | [
"Unlicense"
] | permissive | chrisb87/advent_of_code_2016 | 809300202b0223f3b2e6bf13024f09e552f27063 | 668a7c5e3f2aac036dcf0091ca62a47cb0c54ba8 | refs/heads/master | 2020-06-11T07:09:44.724837 | 2016-12-18T21:11:02 | 2016-12-18T21:11:02 | 75,738,123 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import re
def supports_tls(ip):
hypernet_sequences = re.findall("\[(\w+)\]", ip)
supernet_sequences = re.split("\[\w+\]", ip)
if any(map(contains_abba, hypernet_sequences)):
return False
elif any(map(contains_abba, supernet_sequences)):
return True
else:
return False
def contains_abba(s):
for a, b, bi, a... | [
"baker.chris.3@gmail.com"
] | baker.chris.3@gmail.com |
91dd2d6acd81d7de397d70d35b746845ef35b596 | 1db25776747f6f12f8e5a156a4532cfc917aff00 | /week7/poc_recursion_practice.py | 5ecaefdd954e390afb346f601a44ea5567deea75 | [] | no_license | doctornemesis/Coursera-Principles-Computing | 6d5ad2e28a1e480638fffad4aef60efed010af42 | 6b48de0e1f10e5c25e435e2a954a7fb11defcfcb | refs/heads/master | 2022-03-21T01:40:42.815649 | 2016-03-24T12:46:54 | 2016-03-24T12:46:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,180 | py |
'''
Recursion Practice Activities
Principles of Computing - Week 7
Python 2.7
Chris
'''
def triangular_sum(num):
'''
Write a function triangular_sum(num) that computes the arithmetic sum 0+1+2...+(num-1)+num.
For example, triangular_sum(3) should return 6.
Note that this sum can be compu... | [
"verdatestudo@gmail.com"
] | verdatestudo@gmail.com |
d44586a77fe6a3e219f553b4e07aa3753f539730 | 523453b03ac5fa48e8b856bdaf947cb1405c7a93 | /udemy/CommonInLists.py | 9e564c40d3baf9c4fab3bc3232263e23387c1e08 | [] | no_license | feeroz123/LearningPython | 46292d5344c1af4a2034e220b967bba9ac958c80 | ff46c1b3c3d3c2c1e5950bbdcfbedebf6d206c0a | refs/heads/master | 2022-06-14T15:53:22.220485 | 2022-06-01T15:01:46 | 2022-06-01T15:01:46 | 123,810,540 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | # Program that returns a list that contains only the elements that are common between the lists (without duplicates).
# Make sure your program works on two lists of different sizes.
import random
a = [2, 8, 1, 0, 9]
b = [4, 9, 1, 7, 0,10,13,17]
c = []
for i in a:
if i in b:
c.append(i)
print(c)
| [
"feeroz123@gmail.com"
] | feeroz123@gmail.com |
d119951e1a0327b0d9524d4b51562c44cbcf814c | b2c04e31a4eeb4b512512ef6731049fa65f4407c | /presidentspeech/lib/python3.6/site-packages/joblib/_parallel_backends.py | c78750667edb93004442e2a058d88459b9fda75d | [
"MIT"
] | permissive | aless80/Presidentspeech | 805f4da59a9d3e150db752f64f5b9ca0d5b04223 | 39349a4e6fa5a51a181a418bdc85f00878b4c6e4 | refs/heads/master | 2022-11-29T08:52:02.405580 | 2018-10-07T19:45:21 | 2018-10-07T19:45:21 | 102,866,762 | 1 | 0 | MIT | 2022-11-22T03:03:33 | 2017-09-08T13:54:01 | Python | UTF-8 | Python | false | false | 23,014 | py | """
Backends for embarrassingly parallel code.
"""
import gc
import os
import sys
import warnings
import threading
import functools
import contextlib
from abc import ABCMeta, abstractmethod
from .format_stack import format_exc
from .my_exceptions import WorkerInterrupt, TransportableException
from ._multiprocessing_h... | [
"AlessandroMarin80@gmail.com"
] | AlessandroMarin80@gmail.com |
5753e21e3bd77984cd6db73762a617353f793e25 | c99bb1a6852eaa351feeca4f5ed7dd6c278dd057 | /İstihza çalışmaları/Koşul deyimleri/basit hesap makinesi 2.py | ae1450a5e85b6762b3193ee5ac8dd3ef39a9f853 | [] | no_license | Uygarca/istihza | 66d4c01481705d8c4117cc1a62681700a0875eb3 | b349e79de53c599d00252c4da4b8aa0de1469641 | refs/heads/master | 2020-11-24T03:16:01.472888 | 2019-12-14T00:14:03 | 2019-12-14T00:14:03 | 227,942,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | #basit hesap makinesi v2.0
#döngü eklendi
giriş = """
1 topla
2 çıkar
3 çarp
4 böl
5 karesini hesapla
6 kare kök hesapla
çıkış için q
"""
print(giriş)
islem = input("Yapmak istediğiniz işlemi seçiniz\t:")
while islem != "q":
if not islem: # hiç bir giriş yapılmamasına karşı oluşturuldu
... | [
"noreply@github.com"
] | Uygarca.noreply@github.com |
0e2a21a1727c135fbccda55f62b832806e51738f | 086e7a5b582fe66f524e84d3b796f890631f147a | /table_batched_embeddings_ops.py | fe65d6840f89367e6b9cf583307526cd5143e6b3 | [] | no_license | zhangruiskyline/sparse-ads-baselines | 07d85713dab6d708d157d8fdea57db18864a73c8 | 137a5745b157b0c3ff1eed4f06a5a2b8f87928cd | refs/heads/master | 2022-12-02T23:20:50.496245 | 2020-05-05T05:36:40 | 2020-05-05T05:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,257 | py | import torch
from torch import nn
import numpy as np
import enum
import logging
class LookupFunction(torch.autograd.Function):
@staticmethod
def forward(
ctx,
weights,
table_offsets,
indices,
offsets,
per_sample_weights,
optimizer,
optimizer_sta... | [
"andrew@tullo.ch"
] | andrew@tullo.ch |
c28e18dcc81237386243a5d1943fe6a1863ab1d9 | b4608c647f67b5aa58665013fa616fc18c0aab21 | /detector.py | 1e898db7c1f14f4e86559128be71e8c6a5046f3f | [
"MIT"
] | permissive | swayam01/Face-Recognition-and-Counting | a3814ff4d62d728a317126426c3951dacbf9c4a8 | de93f103f0510f94c8b030bbbdc806ca1ac5b4cd | refs/heads/master | 2022-10-23T01:39:53.372168 | 2020-05-20T19:15:34 | 2020-05-20T19:15:34 | 108,626,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (C) 2017 Swayam Mittal (swayammittal65.blogspot.com)
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/LICEN... | [
"noreply@github.com"
] | swayam01.noreply@github.com |
536982ad575c5059dc69af147115055e0597f6b0 | c9bb6846556bdfd2f42e2cbfd973e5d8e31fc641 | /src/test.py | ac3d42fa58c32ce80da4405911fe50506a7ce96f | [] | no_license | rahultiwari56/Virus-Scanner | 6008b8ad9fe21e75f79b21a8ce306c70db551513 | 58623dd1820e3d35148ce0bcf05ff779150901b7 | refs/heads/master | 2023-03-24T20:04:48.534652 | 2021-03-06T09:30:53 | 2021-03-06T09:30:53 | 345,054,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py |
'''
This is just a testing file
But this file is not used in the project directly.
'''
import requests
from flask import jsonify
import json
resp = '6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b'
def scan():
url = 'https://www.virustotal.com/vtapi/v2/file/scan'
params = {'apik... | [
"rahultiwari5618@gmail.com"
] | rahultiwari5618@gmail.com |
caf7ec1a93c4ba7f19938d29664e3db866008a9a | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Official/cv/image_classification/ResnetVariant_for_TensorFlow/automl/vega/core/trainer/distributed_worker.py | 5d9fc4bf51e66b007308d25784eede866bf0e020 | [
"Apache-2.0",
"MIT"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 9,223 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
c10d859fddbe3200b1bb1a82ef3c7fdc7e12a2c6 | 8dfefed8b288a65134e2f3587e96b6313ba138c2 | /Tabs/venv/bin/pip | ea19f004e4f26167ad61e8a329276e12a1d74f71 | [] | no_license | gsvetleen/Python-Basics | b80a04350149e04278d705ba4bc69555965c957d | 68dae06c1403d9a2dc82a447f394b82e994d88b2 | refs/heads/master | 2020-04-29T15:55:28.613717 | 2019-04-01T09:27:22 | 2019-04-01T09:27:22 | 176,243,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | #!/home/svetleen/Documents/PythonLearning/Basics/Tabs/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"gsvetleen@gmail.com"
] | gsvetleen@gmail.com | |
f7870fb9833553cae7cd436c2e2bd23c87ff10fd | ffe56a49385b88136a9e8c3a1f90d441c93713a2 | /meiduo/meiduo/utils/goods_category.py | d7dcb82b949346bd90c1f560f634e67b13e104df | [] | no_license | Jeffrry1828/Django | e51f5208531f006bf77d667db2ccffcb2ec02a03 | 995739ad6c1fba8053253087b2fd809f4d6487ec | refs/heads/master | 2022-10-09T03:40:08.076066 | 2020-06-06T14:53:17 | 2020-06-06T14:53:17 | 270,010,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | from collections import OrderedDict
from django.conf import settings
from goods.models import GoodsCategory, GoodsChannel
def get_goods_category():
'''
{
组编号(同频道):{
一级分类channels:[]
二级分类sub_cats:[]
}
}
如:
{
1:{
channels:[
... | [
"641294561@qq.com"
] | 641294561@qq.com |
f386a2baff367c7b94051355314792f3ac231a3d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit_QC200.py | 254dea7ab62da21d4456472998e9b8a1d0c8d255 | [
"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 | 6,300 | py | # qubit number=3
# total number=37
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 |
ba75293fb114bd3624b11c6c27f0edad2e0f5595 | ec7f558786ef15bf6793553ed4fa90b225f7ecd4 | /thesis/Userdriven_composition/apps.py | fa7672d7d9911cefa161dd924e94ae926b3091d0 | [] | no_license | AmbientIntelligenceLab/User-driven-composition-of-collaborative-services-middleware | 08999e525ddacfde265bc5b06be6980dafc28ebd | cbe2d070d5b2bf52412f9d890dafec0b3ee47d13 | refs/heads/master | 2020-04-17T01:18:47.476912 | 2019-01-24T14:22:45 | 2019-01-24T14:22:45 | 166,086,836 | 3 | 5 | null | 2019-03-31T17:28:50 | 2019-01-16T18:04:58 | Python | UTF-8 | Python | false | false | 118 | py | from django.apps import AppConfig
class UserdrivenCompositionConfig(AppConfig):
name = 'Userdriven_composition'
| [
"digantaprotik@gmail.com"
] | digantaprotik@gmail.com |
e31c2e26ec440d62747103a26caeb3e97c34bdc3 | 2da6b95fe4237cc00014f80c45d268ab62fc90cd | /OSR/DFP_end3/cifar100.py | ce07f74fad4fe9ce0e53a4f74e28977d3e9bb80e | [] | no_license | lvzongyao/Open-Set-Recognition-1 | 7e26cd1d97f67b6c075f4e64296ce7a82d479168 | 26a8a1cca199f4e23df98abca6893e3eef3307da | refs/heads/master | 2023-08-19T09:15:16.119377 | 2021-09-13T04:21:18 | 2021-09-13T04:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,458 | py | from __future__ import print_function
import torch
import torch.nn as nn
import math
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import torchvision
import numpy as np
import torchvision.transforms as transforms
import os
import argparse
import sys
# from models i... | [
"xuma@my.unt.edu"
] | xuma@my.unt.edu |
d500f92fed974dfd659c3d126e5fed4ef6a50c77 | c2c617f15cb1dc3a385d307d3f26d77e7f9ca4d9 | /plot_temperature_bokeh.py | 12c08d7667f4d7b8ca9a06386d6b0a2a67e9768f | [] | no_license | gurupras/smartphone.exposed-core | ea213b28bd260f1cef3ffe57dbf37a4149f78cbc | 4643cc78175c2b9af4e691046e30d9b67e5bb5fe | refs/heads/master | 2021-03-13T01:09:10.767971 | 2020-08-25T00:57:01 | 2020-08-25T00:57:01 | 91,474,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | import os,sys,argparse
import json
import time
import random
import yaml
from bokeh.plotting import figure, output_file, show
temperature_key_file = './temperature-keys.yaml'
def generate_temperature_data():
now = int(time.time() * 1000)
hours = random.randint(1, 3)
start_time = now - (hours * 60 * 60 * 1000)
en... | [
"gurupras@buffalo.edu"
] | gurupras@buffalo.edu |
b4438594d865b52f8621092a4b5825cfd955c7f9 | 31dd22636c9d1372f50faa2009abc29e7ee4e832 | /scheduling/test_schedule.py | 383c4ab8970b8de1fb71a6e25ee461fd99aaabb7 | [] | no_license | chathaway-codes/teamblue_xinformatics | 34e5e2ff83c9fb31c88a78b71d63ca3367aec7c2 | 61a543b9db71a7a9b1ebaef2a869020f71890c97 | refs/heads/master | 2021-05-28T17:14:35.347868 | 2015-05-05T01:40:48 | 2015-05-05T01:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,970 | py | import unittest
from schedule import *
from course import *
from timeslot import *
from requirement import Requirement
class TestSchedule(unittest.TestCase):
def setUp(self):
Course.reset_crn()
def test_simple_schedule(self):
ts1 = Timeslot('FA12', {'M': ['09:00', '11:00'], 'R': ['09:00', '11:00']})
ts2 = T... | [
"charles@vanguard"
] | charles@vanguard |
41d3c3423049d66be5d5a676da6f65fc11ccee96 | 3117852233ea6c2644e723587a7b28d6d6518d95 | /Calculator_Gamma.py | 56834b8c0142138f9ff1356056dec9729eb49cbb | [] | no_license | harishravi121/Pythoncodes | d70059a3b7785d668a4b03f3ec85b0777b33706f | 1d6d6ca0ed6348b6c5d07d27d24668fb567527ca | refs/heads/master | 2023-07-07T11:58:03.741814 | 2023-07-01T08:01:56 | 2023-07-01T08:01:56 | 211,642,477 | 3 | 0 | null | 2020-01-13T06:45:25 | 2019-09-29T10:00:32 | Python | UTF-8 | Python | false | false | 4,117 | py | #The ALU has digital circuits for sum, subtraction, multiplication and comparision.
#The challenge here would be to write the code for division, square root, trignometric and other fuctions
#The following python code just needs python install of 30 MB
x='25'; #2 digit number
y='14'; #2 digit number
#Doing repr... | [
"noreply@github.com"
] | harishravi121.noreply@github.com |
9d636aa1b8c794bc044f743f2d8df6524a86cf29 | b6ecfa27b431511afccb767f55995a340c0ac13a | /transporter_deal_portal/wsgi.py | b779123d0ef1444a4e18e85143bfcdb034d0b0f2 | [] | no_license | paridhigoyal/TransporterDeal | b8a381d7d215f1aee7432bf54061611d8d34799a | 537811c44706fce90bcd905f0bbff9a10b49e00e | refs/heads/master | 2021-01-16T07:25:43.354523 | 2020-03-02T13:52:04 | 2020-03-02T13:52:04 | 243,023,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
WSGI config for transporter_deal_portal project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"pgoyal@bestpeers.com"
] | pgoyal@bestpeers.com |
c724c19fb17cb22589d49e60505ecf79ee04e7c5 | d1742451b25705fc128acc245524659628ab3e7d | /Data Structure & Algorithm/Disjoint Set Union/10685 - Nature.py | b0b9ec8421bcfe7e9e623074eb4e6f6e4a873ba0 | [] | no_license | Shovon588/Programming | ebab793a3c97aedddfcad5ea06e7e22f5c54a86e | e4922c9138998358eed09a1be7598f9b060c685f | refs/heads/master | 2022-12-23T18:29:10.141117 | 2020-10-04T17:29:32 | 2020-10-04T17:29:32 | 256,915,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | def makeset(n):
par[n] = n
def find(r):
if par[r]==r:
return r
par[r] = find(par[r])
return find(par[r])
def joint(a,b):
u = find(a)
v = find(b)
if u!=v:
par[u] = v
def generate_result(dic):
res = -1
for i in range(1,n+1):
temp = find(i)
if temp ... | [
"mainulislam588@gmail.com"
] | mainulislam588@gmail.com |
2f0d10e885d482824ea7c9d6bf74092d2d864ab9 | 4e57c31bffa5c6c73c326b1e7915482ed5592e4b | /examples/resnet.py | 010b3d8cb42d35d34cdafad6de9f760e7dad495a | [
"MIT"
] | permissive | Jding0/pywarm | 9eed61048d97b7c14d2598d565ff9482f5e399d6 | d79cf76f448f818a2445856c069b5567d7eb8193 | refs/heads/master | 2020-07-19T01:06:47.688618 | 2019-09-04T14:46:56 | 2019-09-04T14:46:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | # 08-29-2019;
"""
Construct a WarmResNet() using PyWarm, then download state dicts
for torchvision.models.resnet18(), load into WarmResNet(),
compare if it produce identical results as the official one.
"""
from pathlib import Path
import sys
sys.path.append(str(Path(__file__).parent.parent))
sys.path.append('..')
impo... | [
"very.blue.season@gmail.com"
] | very.blue.season@gmail.com |
4ba94ad8d63b1aded9da71576d77fa7a6caafdec | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/pandas/tests/groupby/test_min_max.py | 25a57d24e04ef974fbd644249e8114cbe40588c9 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 5,733 | py | import numpy as np
import pytest
from pandas._libs.tslibs import iNaT
import pandas as pd
from pandas import (
DataFrame,
Index,
Series,
)
import pandas._testing as tm
def test_max_min_non_numeric():
# #2700
aa = DataFrame({"nn": [11, 11, 22, 22], "ii": [1, 2, 3, 4], "ss": 4 * ["mama"]})
re... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
5e2441a76a0875e25522fd843d0cd4fe2e462f67 | c61872b4d9fd6f7caf4fbbbcb914405b75b30866 | /venv/lib/python3.6/site-packages/plumber/compat.py | 9df8f884ebf7671c02a2e513d49d6b0286531dea | [
"MIT"
] | permissive | ThomasGarm/portfolio-cv | f7140f618ef4b4bd680186ed1a5f1157fcb7fbe7 | 2d3abb51c9dc991a05939255f39c339ad152b51c | refs/heads/master | 2022-12-08T03:00:25.075362 | 2020-04-30T14:56:11 | 2020-04-30T14:56:11 | 244,865,394 | 1 | 0 | MIT | 2022-12-05T11:40:16 | 2020-03-04T09:58:53 | Python | UTF-8 | Python | false | false | 907 | py | # Python compatibility support code
# This is taken from six
def add_metaclass(metaclass):
"""Class decorator for creating a class with a metaclass."""
def wrapper(cls):
orig_vars = cls.__dict__.copy()
orig_vars.pop('__dict__', None)
orig_vars.pop('__weakref__', None)
slots = o... | [
"thomas.win@gmail.com"
] | thomas.win@gmail.com |
08a22fa9e5f7164c7762877f0f3012d3eb9a7ee5 | 684ab25b2ef1ce0ad54fdc53d3f7e81d70e2e44f | /test1/test1/settings.py | 55a7d4c3b194a91b9578d32b8bb8fd4760bf82e1 | [] | no_license | ayamagdy11/test | d0671ab4c374237ab1c0739595ddf6a36b3c3cb9 | 92835f52a16cf759e0a1f0b58dc10da30c29b9aa | refs/heads/master | 2016-08-12T02:46:54.022517 | 2016-02-21T18:21:47 | 2016-02-21T18:21:47 | 52,220,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | """
Django settings for test1 project.
Generated by 'django-admin startproject' using Django 1.9.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# B... | [
"nour_nourrr_11111@yahoo.com"
] | nour_nourrr_11111@yahoo.com |
39faa4862aa47b8b64be543e4c5fc3583fb93577 | f98a7b6d391e69327a7ed102053806d43ae5dded | /setup.py | 8171a804fb7bea92da29c9e307383698c0211050 | [
"MIT"
] | permissive | dnidever/gaussdecomp | 4663153e55a9d267d1dd2644f5d033c257481a62 | 057ec8568e990792d4131caea968401784699b62 | refs/heads/master | 2022-11-23T06:29:14.589025 | 2022-11-14T04:23:19 | 2022-11-14T04:23:19 | 227,955,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/usr/bin/env python
#from distutils.core import setup
from setuptools import setup, find_packages
setup(name='gaussdecomp',
version='1.0.26',
description='Gaussian Decomposition',
author='David Nidever',
author_email='dnidever@montana.edu',
url='https://github.com/dnidever/gaussdecomp'... | [
"dnidever@lsst.org"
] | dnidever@lsst.org |
49f190075b2510e3664bf81ff52da12b96310422 | c1cadbaa72e8ed19384a5137543d865024cacd64 | /findTickets/findTickets/items.py | a242df911ba1433dfced0fff714fd068c3eb0802 | [] | no_license | Zhxhh/findTickets | ce518e647c38a6aa48633c9045b9f8c75d530584 | cfc3a814b9c58fb7c559b0b01d29a40478a2fb5a | refs/heads/master | 2020-04-21T05:39:57.632084 | 2019-02-06T13:12:02 | 2019-02-06T13:12:02 | 169,347,328 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 503 | 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 FindticketsItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
trainNo = scrapy.Field()
arrStationN... | [
"noreply@github.com"
] | Zhxhh.noreply@github.com |
762b1c64e435700c7347877040a1ae4aaaaabfe8 | f51a03fee097195911c1577e8510908d02784853 | /src/data/reg_ex/poker_888.py | 9df00e106415573e9384ed7598704598977a71a5 | [] | no_license | aaaaaa2493/poker-engine | fc04cc4b93ad73189adf99b2f864d12a99a34dce | 52aebf8572f87378fa78c999c252d60fcc80f5ce | refs/heads/master | 2020-08-31T17:38:28.477260 | 2019-10-31T12:16:40 | 2019-10-31T12:16:40 | 218,746,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,701 | py | from re import compile
class Poker888:
name = '[a-zA-Z0-9_\-@\'.,$*`áàåäãçéèêíîóöôõšüúžÄÁÃÅÉÍÖÔÓÜØø´<^>+&' \
'\\\/()Ѐ£¼ñ®™~#!%\[\]|°¿?:"=ß{}æ©«»¯²¡; ]+'
identifier = compile('^\*\*\*\*\* 888poker Hand History')
identifier_snap = compile('^Snap Poker Hand History')
hand_border = compile('... | [
"aaaaaa2493@yandex.ru"
] | aaaaaa2493@yandex.ru |
afe93dc1d7949c0d725deeb6b59bf9bd75071ff2 | ecebf2f6f51baabf0530492c44049a520dceaeb4 | /Devices/VOG/View/vog_tab.py | 7c0c4b758631ea77ccadd7017806bf02db5abae1 | [] | no_license | USnark772/-RSCompanionV1 | c01fda9b37651e3dab361526196035e46b1e8be4 | b8baf13f39b080556fe6cc4c2c55c35afdf86bcc | refs/heads/master | 2022-06-28T18:42:54.287893 | 2020-03-06T02:47:05 | 2020-03-06T02:47:05 | 262,855,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,213 | py | """ Licensed under GNU GPL-3.0-or-later """
"""
This file is part of RS Companion.
RS Companion is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later versi... | [
"phillipriskin@gmail.com"
] | phillipriskin@gmail.com |
705bb752a9258e3bc2c8ee9f16145cfd532bc894 | 60c0ca4ef3ad20bad04311473b2f4044f54739d2 | /store/api/migrations/0005_order_sold_at.py | af648d3a29d3d09976b8254d48088c4f4700c7c2 | [] | no_license | Jimiliani/rainforest | 361915024cc2a93a9bb8621372627b2d84176271 | b1bf65ee4441d1a4980a2e65ce2cfc629b9d6a7a | refs/heads/main | 2023-06-19T18:10:38.879924 | 2021-07-21T14:54:05 | 2021-07-21T14:54:05 | 387,679,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Generated by Django 3.1.5 on 2021-07-20 19:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20210720_2159'),
]
operations = [
migrations.AddField(
model_name='order',
name='sold_at',
... | [
"dikorolyov@mail.ru"
] | dikorolyov@mail.ru |
66caae453d14b96c4506def24e91bdd7deefb22f | dca04307ea5c89e71f4594abaf6ad894e60d2e33 | /code/12_count_atribuicao.py | 7cf236855423fc45a22a33ce5d9eeba606a04412 | [] | no_license | danilobellini/wta2015 | d772722713abf92063dac28550cd8ddfe0fec4e3 | 81bfb400aeb76b62382cb26035d37eee66666bb7 | refs/heads/master | 2020-05-01T12:50:05.803254 | 2015-02-03T08:44:06 | 2015-02-03T08:44:06 | 30,232,539 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from collections import Iterator
class Counter(Iterator):
def __init__(self, start=0, step=1):
self.value = start
self.step = step
self.finish = False
def next(self):
if self.finish:
raise StopIteration
result = self.value
self.value += self.step
... | [
"danilo.bellini@gmail.com"
] | danilo.bellini@gmail.com |
bb8b94ab25d8201ddd7a488d9f4b94a041ae6494 | cc82fb546ad5ff86eb027fcb8cf5057d14e6a71a | /number14.py | 7a54b2b1a7539b268916abbb9d9453c7a9318bca | [
"MIT"
] | permissive | Ben-Donnelly/ProjectEuler | 18bcdd2e8192c97d650b795f3b98bb9d839fcfe4 | 7d36aa700121c631c24c7efeb700b1b66e1f1c64 | refs/heads/master | 2021-08-09T11:39:37.164611 | 2020-06-08T23:32:52 | 2020-06-08T23:32:52 | 189,453,142 | 0 | 0 | null | 2019-12-21T16:58:43 | 2019-05-30T17:12:40 | Python | UTF-8 | Python | false | false | 535 | py | from time import time
start = time()
greatest = 0
count = 0
terms = ['', '']
for i in range(1000000, 2, -1):
while i > 2:
temp = i
count = 1
while i != 1:
if i % 2 == 0:
i /= 2
count += 1
else:
i = (3*i + 1)
... | [
"33376747+BenD@users.noreply.github.com"
] | 33376747+BenD@users.noreply.github.com |
76eb0ff4bccebf9ef628e4a625ec26945dffb10d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02573/s607211232.py | a15ccc098a97d0f2076b85071f021635d77845ac | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | class UnionFind:
def __init__(self, n):
self.r = [-1] * n
def root(self, x):
if self.r[x] < 0:
return x
self.r[x] = self.root(self.r[x])
return self.r[x]
def merge(self, x, y):
x, y = self.root(x), self.root(y)
if x == y:
return F... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5b950ab6d6b1e379a9091eed7e89daf99a2851d6 | 821c7267b0c7c21a7a16e5058570b12029c00b83 | /utilfunc/_defacto_val.py | 12394a2cd96c678dd3b0eee594a8b1fd88d427a3 | [] | no_license | yo-aka-gene/utilfunc | fee040993c4d99891bfdbe9ccd9e0ef2ab1b907f | 04a8eeecbb095315d712dea10d7503ef4759bf10 | refs/heads/main | 2023-08-28T00:33:27.383141 | 2021-10-11T19:57:41 | 2021-10-11T19:57:41 | 405,647,917 | 0 | 0 | null | 2021-10-11T19:49:18 | 2021-09-12T13:21:43 | Python | UTF-8 | Python | false | false | 354 | py | from typing import NamedTuple, List, Tuple
class _umap_val(NamedTuple):
min_dist: List[float] = [0, 0.01, 0.05, 0.1, 0.5, 1]
n_nbr: List[int] = [5, 15, 30, 50, 100]
subplots: Tuple[int] = (5, 6)
title: List[str] = [
f"min_dist:{[0, 0.01, 0.05, 0.1, 0.5, 1][i % 6]}, n_nbr:{[5, 15, 30, 50, 100][i... | [
"yujiokano@keio.jp"
] | yujiokano@keio.jp |
f948a6389e193460f9201495f88adc3e9209fdf0 | 7a89ead5f5d49a7d8495b687be5ef1fcfb59eb8c | /homeassistant/components/google_assistant_sdk/__init__.py | 185e49435ba4f0720c9842672414b85ab1f69272 | [
"Apache-2.0"
] | permissive | jasonwragg/core | dffb38a3d1435af8fb235921a91eafe4e19ec6c5 | 890c2277cab1728cfa45beb2dbe1aa18359f32c6 | refs/heads/dev | 2023-02-05T12:00:38.726612 | 2023-01-25T10:19:52 | 2023-01-25T10:19:52 | 245,879,265 | 0 | 0 | Apache-2.0 | 2020-03-08T21:09:46 | 2020-03-08T20:01:21 | Python | UTF-8 | Python | false | false | 6,224 | py | """Support for Google Assistant SDK."""
from __future__ import annotations
import aiohttp
from gassist_text import TextAssistant
from google.oauth2.credentials import Credentials
import voluptuous as vol
from homeassistant.components import conversation
from homeassistant.config_entries import ConfigEntry, ConfigEntr... | [
"noreply@github.com"
] | jasonwragg.noreply@github.com |
dfe4693210c13c54f57b921e7094ee68abb61262 | 7fcbfe89f9a5555fd9072d1f2168ed4ca2011c28 | /Python/3rdParty/PyWin32/pynetcon.py | 50dc205d7e4660ce718acc195a1dc5cb4a1f2b91 | [] | no_license | tnotstar/tnotbox | 6ca24dfb0a017737a9814da48add98d3e0185c22 | 79ac4d935fba252ff18274fc1085a585f530e641 | refs/heads/master | 2023-09-03T22:04:22.440800 | 2023-09-01T20:03:36 | 2023-09-01T20:03:36 | 35,098,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | #!/usr/bin/env python
# http://pymotw.com/2/contextlib/
from __future__ import print_function
import win32wnet as wn
import win32netcon as nc
class ResourceEnumerator(object):
"""Blah, blah, blah, ..."""
def __init__(self, scope, type_, usage):
"""Blah, blah, blah, ..."""
... | [
"tnotstar@gmail.com"
] | tnotstar@gmail.com |
3a048eac9f5e15f87292e5be73ecefe8bd6ecab7 | 927067f65cd34ff9a936cc7f8968093f074b9543 | /def_compaar_codig.py | 15295f6ec888bbf992dfb76310c37241cef114df | [] | no_license | metrapach/mastermind | 8738bf84789af21ba148327e0608db045f48f2be | 9d812a13e09f6542c19b014e4c29ac5d75f80013 | refs/heads/master | 2023-02-05T13:33:01.467642 | 2020-12-17T21:19:24 | 2020-12-17T21:19:24 | 313,092,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | codebreaker=[1, 1, 666, "negro"] #bot
codemaker=["negro", "negro", "negro", "negro"] #jugador
def comparar_codigos():
codigo_bot = codebreaker
codigo_jugador = codemaker
feedback=[]
for i in range(4):
if codigo_jugador[i] == codigo_bot[i]:
feedback.append("x")
else:
... | [
"61920367+metrapach@users.noreply.github.com"
] | 61920367+metrapach@users.noreply.github.com |
0b77504b0910dea9707998a6007d17e90fd20d01 | ebdfe5e8de5e110e37fdacf560f0d97a95ce6758 | /patterns/image.py | d74f5d3e8e3b16053c6b3aa5310188dd88c0ceae | [] | no_license | AidanKelley/LEDTileControl | 489063120c18019bd61c43c3e93d51adc6d2dd25 | 0f399e7c87b6a46d94692ce11dff43fa0f0a8a20 | refs/heads/master | 2020-04-04T08:34:51.009503 | 2018-11-16T19:58:48 | 2018-11-16T19:58:48 | 155,786,648 | 0 | 0 | null | 2018-11-01T23:07:15 | 2018-11-01T23:07:15 | null | UTF-8 | Python | false | false | 280 | py | import cv2
def display(board, leds, filename):
# read in image
image = cv2.imread(filename)
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
# fit picture to tile
resize = cv2.resize(image, board.shape[0:2])
# display image
leds.draw(resize, delay=10)
| [
"cma2714@gmail.com"
] | cma2714@gmail.com |
992d9b74e952ecd7516429a0554f8e5e86d3a855 | 6f594cc963795c69d8da3c30ca580c0405ef2d6e | /other/57InsertInterval.py | d1fb32163788f8998b4a82b8be2a45e9a2d0316a | [] | no_license | lo-tp/leetcode | 25933c5b25f64f881d43748d8b2763f69614a97f | 4cc4d76c64e9d9aa3f53c5e9574e488c93e10a50 | refs/heads/master | 2022-09-07T20:32:58.487759 | 2022-09-05T03:39:50 | 2022-09-07T13:39:50 | 116,555,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | class Solution(object):
def insert(self, intervals, newInterval):
res = []
if intervals:
start, end = newInterval
for s, e in intervals:
if start != -1:
# 1
if e < start:
res.append([s, e])
... | [
"regesteraccount@hotmail.com"
] | regesteraccount@hotmail.com |
580dcf22f1a3c259986942f10cb8ded10a44b688 | b344c2fbb5495de7d2206b06674bfba8e2553635 | /q4_softmaxreg.py | 2bd2dfc063ac2a3a44c687d134415b7803a49a75 | [] | no_license | jeness/EEL6935BIGDATA-project2 | 62c3ab4e0476197dae56ffbf5866b9b55e7df7b8 | 7bd478dbf9582c0d378ef4abe313082827549f4a | refs/heads/master | 2021-09-11T01:52:07.063187 | 2018-04-06T01:52:10 | 2018-04-06T01:52:10 | 122,714,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,381 | py | import numpy as np
import random
from big_data.data_utils import *
from q1_softmax import softmax
from q2_gradcheck import gradcheck_naive
from q3_sgd import load_saved_params
def getSentenceFeature(tokens, wordVectors, sentence):
""" Obtain the sentence feature for sentiment analysis by averaging its word vecto... | [
"yuhaoran9968@gmail.com"
] | yuhaoran9968@gmail.com |
39c005e2f92dcdf66d4a09f56d3d18c85effbd62 | 40bace8b96cf5c7b5389b49036836c5fa8bed191 | /10579_Fibonacci_Numbers.py | 114386f2ba9a425e3133b297062195d6ac2d4972 | [] | no_license | rupertsky/UVA-Solutions-in-Python | ac1ca5704077c181ca5a1ee98530b0806894fc09 | 30c3592c39f0cec8046961c488f7dbf82f2db6de | refs/heads/master | 2023-06-04T03:02:04.800121 | 2021-06-20T18:42:10 | 2021-06-20T18:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | '''
Created on Jul 31, 2016
@author: Md. Rezwanul Haque
'''
F = []
a,b = 0,1
F.append(a)
for _ in range(5000):
F.append(b)
a,b = b,a+b
while(True):
try:
num = int(input())
except EOFError:
break
print(F[num]) | [
"r.haque.249.rh@gmail.com"
] | r.haque.249.rh@gmail.com |
71a32b45babd147ce43c56290c96214f1f5a799b | 408813c5d698a9c77ca251e29bdfd2d55a810b56 | /InitialHandsOn.py | 99416e5b76e4e570b2cd402eb4972f0ea2f76124 | [
"MIT"
] | permissive | hhaggan/Self-Driving-Car-Behavior-Cloning | 02cf08b1c27d8452a47afc5e42275e29829ed617 | 576287a6c074d8314048ed50ecd3e2e16ce6b148 | refs/heads/master | 2020-06-04T23:58:41.712292 | 2019-06-18T19:58:46 | 2019-06-18T19:58:46 | 192,242,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
#Libraries
import csv
import cv2
import numpy as np
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers import Flatten, Dense, Lambda
from keras.layers import Convolution2D, Cropping2D
from keras.layers.pooling import MaxPooling2D
#V... | [
"hhaggan@hotmail.com"
] | hhaggan@hotmail.com |
142bf198d6ea56cfc64c69c5306a42c3e6b70c6f | 6ff51ce51a7fb4a0a18c84537b121836e1ab0a47 | /shiyanlougithub/shiyanlougithub/items.py | 0126d0e854a349bfbb95ceabd02d745e51217cdb | [] | no_license | panoczy/pano-2 | 857eb35b2fc3c65715eb3de9f35e3f6ad34c0bb4 | b130d7887c635ffb422174dae271b95030d3cc6a | refs/heads/master | 2021-05-16T13:15:27.646739 | 2017-12-01T07:58:00 | 2017-12-01T07:58:00 | 105,369,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ShiyanlougithubItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
name = scrapy.Field()
updat... | [
"13830269168@163.com"
] | 13830269168@163.com |
ae7ca498c0317b9c6661edb59a1ff5caa707a78a | 7733d4d17aa14d868cd622aa61f2ab288aa1954b | /ella_hub/migrations/0002_auto_20150727_1432.py | 20f40adbf026393331689c1b38c7ef025dee654a | [
"BSD-2-Clause-Views"
] | permissive | SanomaCZ/ella-hub | 186aceaf0dcdc1b4d5f800e1157d20ad8a2edf94 | d1afa02b423b02911a10b81589aaaf06ad01a6b6 | refs/heads/master | 2020-12-20T14:02:17.994938 | 2018-03-04T20:59:10 | 2018-03-04T20:59:10 | 5,191,952 | 0 | 0 | null | 2016-12-21T09:31:47 | 2012-07-26T12:38:22 | Python | UTF-8 | Python | false | false | 925 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('ella_hub', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='permission',
name='c... | [
"michal.dub@sanomamedia.cz"
] | michal.dub@sanomamedia.cz |
71b10c44b1d938ee4421ed270a9a2feeea3e27ab | acc04607c4f4f4b0b044b1bea521ca92e0930041 | /test/expensive_test_fg_anchoring_from_protobuf.py | 3376943f04596de309ddfc6e3fbe4213541fe8ef | [] | no_license | TangoJP/npctransport | c8c6587cd8ee16b2a9f6fd87e98cf1a6a8f8dba0 | 40bc9e2e0b4dc1df72b6d22000269d494d8f4f69 | refs/heads/master | 2020-03-27T22:08:00.779328 | 2013-04-24T00:01:19 | 2013-04-24T00:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,581 | py | #!/usr/bin/python
from IMP.npctransport import *
import IMP.test
import sys
import math
#import read_nups
class Tests(IMP.test.TestCase):
def _create_cfg_file_with_fg_anchors(self, cfg_file):
'''
Create a configuration file 'cfg_file' with anchors for fgs
returns:
the anchor coor... | [
"barak@salilab.org"
] | barak@salilab.org |
2360a5ecc0c47488fa3c8794d0c4cc372900b1e7 | 49110e3d108031900249fc793e4f28c53f16f4ca | /2_background.py | 1eef64dd2e836e212e2b4d653dbc9f38322c3c01 | [] | no_license | wshhwang/pygame_basic | 5de90de61865345007d231f9dd9c68bb9c052164 | f27eb6abff58f7fa8665e954ed321a3fe1827d8e | refs/heads/master | 2022-07-17T22:22:32.356447 | 2020-05-12T05:41:58 | 2020-05-12T05:41:58 | 263,243,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import pygame
pygame.init() #Refresh (required)
#set screen size
screen_width = 480 #width
screen_height = 640 #height
screen = pygame.display.set_mode((screen_width, screen_height))
#set screen title
pygame.display.set_caption("Sample Game") #game title
#set background image
backgorund = pygame.image.load("C:\\U... | [
"54758601+wshhwang@users.noreply.github.com"
] | 54758601+wshhwang@users.noreply.github.com |
1e3ec4196112eba857715aaa09b10d4a5b5e363d | 6135140b0c48f189c5672858b9d09732f178c829 | /topdownparser/parser/simple_topdown_parser_plus.py | ab6c4c95ae8fca034c1c7cb30565b4579edeb505 | [] | no_license | jw-develop/cs384-self | 8b23fcd39dd78e9a57876b7ac35452f962083ef2 | 9002d8ca254cc43ba9df7faab2df77167ca007f7 | refs/heads/master | 2020-05-21T01:30:57.870603 | 2019-05-09T19:18:08 | 2019-05-09T19:18:08 | 185,858,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,021 | py | '''
Created on Nov 16, 2015
@author: tvandrun
'''
from nltk.corpus import wordnet as wn
import sys
# Exception to be thrown if an unexpected token is found
# during a parse
class ParseException(Exception):
def __init__(self, expected, found):
self.expected = expected
self.found = found
... | [
"james.white@my.wheaton.edu"
] | james.white@my.wheaton.edu |
1c77f290341c2fc59e26294d6135f76bfcfd3830 | b5c0668b95eb13dc74944173e50a5a478b769b62 | /fusion/openstack/common/config/generator.py | 1a9be5deefb5272b149773d2cb2aa8072b4215c9 | [
"Apache-2.0"
] | permissive | vineethtw/fusion | d16f34255922ceec9eaebb932e7fd7022fb30398 | 573d82e4a769d9d29da58d8351be06b4d6b8b615 | refs/heads/master | 2021-01-19T05:39:03.594646 | 2014-01-23T19:52:42 | 2014-01-23T19:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,273 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 SINA Corporation
# 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 License at
#
# http://www.apache.or... | [
"vineethv@thoughtworks.com"
] | vineethv@thoughtworks.com |
98cc3f96d9c11b695e8af46a951457063e809ad5 | db4efc602c761b1b39e985b4c9ceb405f535dad0 | /Hadoop/reducer_product_totsales.py | 365ac53065824ee0d373b9f466c89bb1fde56d96 | [] | no_license | adooreLABS/DataScience | 5112dcf1484606ed1d00dbc543355b49939ad33e | e7a617e423e01d6e9ed09507c7ba42056fb1d55c | refs/heads/master | 2020-04-06T06:34:40.897687 | 2015-04-17T13:00:11 | 2015-04-17T13:00:11 | 55,130,070 | 1 | 0 | null | 2016-03-31T07:36:34 | 2016-03-31T07:36:34 | null | UTF-8 | Python | false | false | 1,202 | py | #! /usr/bin/python
import sys
def reducer():
"""
Reduce function that aggregates total sales per store.
"""
salesTotal = 0
oldProduct = None
for line in sys.stdin:
data = line.strip().split("\t") # remove end of line and split string by tabs in data list
# check if data cont... | [
"david@meltwater.org"
] | david@meltwater.org |
7e072a572581f6627fca07bcdcad06f5612d2500 | 44990e9f4630aa9efc8e0fa56f2c5dbd836cddc6 | /nao_vacila/wsgi.py | b4a7dcfe74eda774e16c8596df6bc9f14e247473 | [] | no_license | kallebefelipe/webserver-nao-vacila | 33c61461d73b7f9e649a93406eb032014f3b983c | 57e972a44a4eb68e5253d38d320051723d33a924 | refs/heads/master | 2022-12-14T19:18:22.670018 | 2017-09-06T13:00:02 | 2017-09-06T13:00:02 | 95,972,976 | 0 | 0 | null | 2022-12-07T23:58:58 | 2017-07-01T15:40:23 | Python | UTF-8 | Python | false | false | 489 | py | """
WSGI config for nao_vacila project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import Dj... | [
"kallebefelipe@gmail.com"
] | kallebefelipe@gmail.com |
1f5dd61936d635e3620dd60b265d7e87d4c7a583 | 1b5c181ec40de72dfb53a93b911fb9de9b382917 | /Szenario_2/10/tr2_test_2.py | 5dc12af909f4973801ba454646de7d9d0022e41c | [] | no_license | tobinatore/Bachelorarbeit | 58a74d6417f293883e3453f3473531e072ad6fcf | be1dd5f16d2faec8ef5a91c9660192d9333fa351 | refs/heads/main | 2023-07-02T11:06:51.153433 | 2021-07-29T12:05:53 | 2021-07-29T12:05:53 | 374,083,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | import os
import time
import pyion
import threading
def listen(eid_listen: str, proxy) -> None:
"""Listens on the endpoint specified in the config."""
count_spam = 0
count_ham = 0
with proxy.bp_open(eid_listen) as eid:
while eid.is_open:
rcvd = eid.bp_receive()
def attack(eid_sen... | [
"germanicalp@gmail.com"
] | germanicalp@gmail.com |
575f659e0414f502308a3bb077a8b58d0a02834f | 6005d60e9b0da6d79332c581d3da889f29ee7d50 | /examples/multi-task/download.py | 57eaee9cb082aa77a3e4befcd904177ecf987eb8 | [] | no_license | jelena0521/textclassification_paddlepaddle | 2497aa8230013f5076b2d5abcce58fd0f9340935 | 4ada594025f22a6d74e96641e8db859c57420097 | refs/heads/master | 2021-05-18T13:48:33.816502 | 2020-03-30T10:29:36 | 2020-03-30T10:29:36 | 251,269,167 | 0 | 1 | null | 2021-03-05T16:48:16 | 2020-03-30T10:14:29 | Python | UTF-8 | Python | false | false | 1,307 | py | # -*- coding: utf-8 -*-
import os
import requests
import tarfile
import shutil
from tqdm import tqdm
def download(src, url):
file_size = int(requests.head(url).headers['Content-Length'])
header = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom... | [
"jelena0521@126.com"
] | jelena0521@126.com |
d5b1b6006132c80f0b401a0275b4ec45332ab1e3 | 0be331d30e3428dc48090f4f69c0ad66ff40a209 | /webwait.py | f15bb183f509a90cbe36d73a62d2b3ba00e37571 | [] | no_license | vallab/hackerrank_dashboard | 3be7d468874b38850af612abb403f23e068aa7bb | 4abeaf674336ef9fc7ff5b877ef46483ad003ba1 | refs/heads/master | 2022-12-02T06:03:00.946717 | 2020-08-21T06:44:13 | 2020-08-21T06:44:13 | 284,451,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Firefox()
driver.get("http://cn.bing.com")
try:
element = WebDriverWait(driver, 10).until(
E... | [
"skvallab@gmail.com"
] | skvallab@gmail.com |
5afec34dfcd3817e923bd4c367627e579190eff1 | 5673965ed94588a6b78d49f641c60283ccb61b0a | /AD Test.py | e2e53fa4d677c00e745bbc54131da4410c774d82 | [] | no_license | mrdavidgrant/workspace_token_test | 1bf265a7609ac8102ad8b275d228de1ef421f791 | 155c1fddb0bf0eff6a3646fb86b6139e089cc4b8 | refs/heads/master | 2021-07-08T19:40:30.908975 | 2017-10-07T20:26:09 | 2017-10-07T20:26:09 | 106,022,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | import _pyio
import active_directory
import csv
class WriteUser:
def __init__(self):
self.cn = 0
self.username = 0
self.ad = 0
self.email = 0
self.VPN = 0
self.token = 0
self.webex = 0
self.laptop = 0
def reset(self):
dict = vars(self)
... | [
"mrdavidgrant@outlook.com"
] | mrdavidgrant@outlook.com |
633c846601e607c70cc35a7f9b8eae09bf5ebb89 | 847fc8576f7e969553a58f026738b88540772ede | /tweet/migrations/0001_initial.py | d371b11b2bf540626614a6e513b2cc5d58d6f4cb | [] | no_license | BertW007/twitter | e8488ae242a2a5416ce5df498e431964f523a9a5 | b43ccbbb0a003bfe35c654b0d6d652192d4e1e79 | refs/heads/master | 2020-04-08T09:50:09.817415 | 2017-09-12T18:36:06 | 2017-09-12T18:36:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-05 13:24
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"m.stelwach@gmail.com"
] | m.stelwach@gmail.com |
c2ea2cc2352bfd9d8b9ad888ff3c0fb82997b816 | 22954a0c13d7bf1824320802e802aa8166f16d76 | /web_scraping/rhiphopheads/items.py | ca9af6e29328930a755afe5a2a604dbaed917dd5 | [] | no_license | luke-zhu/cs1951a-data | e0c7a96c7e100c278722419ba3bc845f6a5326c4 | 925c3263988db1de815589c5e47ddd918c345b25 | refs/heads/master | 2021-01-20T07:40:21.372377 | 2017-05-02T21:47:08 | 2017-05-02T21:47:08 | 90,025,042 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class RhiphopheadsItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"luke_zhu@brown.edu"
] | luke_zhu@brown.edu |
ae003dc6847d9168f134fd348e467608b5c9ff0b | ea7116b927acd0c87b21b10f8f620ce28c1fe676 | /Time_Series_Chart.py | 776ab20efd8b920b5740612a51ecb0ccb30a7cd9 | [] | no_license | ctcpbl2004/Machine_Learning_For_Investment | 23561f97f37f0d89163ba7d6de038ac7037decfb | 89e178b29c0b9cdb34dfae9fdc024b289e04f8d6 | refs/heads/master | 2021-06-11T20:04:38.545200 | 2017-01-07T08:49:55 | 2017-01-07T08:49:55 | 75,713,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 19 20:42:37 2016
@author: Raymond
"""
import pandas as pd
import numpy as np
import pandas_datareader.data as web
| [
"ctcpbl2004@gmail.com"
] | ctcpbl2004@gmail.com |
0b1587ab93c33f44b571f1d916b7e2101f407e45 | 462f3c833660bd0bb3dbc36a1f02bef01daf8922 | /sonota_sample/sample_faceApi.py | 68783ed9cd2333c3d52ed633bc693959b62745fe | [] | no_license | S-Yasui/-IT- | 076b8eac51c61e7a45513d22a13d5e44c56bcb43 | 70ead95121644e729ccbcc5bec13a78a37585309 | refs/heads/master | 2020-04-09T07:24:29.142961 | 2019-01-24T05:21:46 | 2019-01-24T05:21:46 | 160,154,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | #!/usr/bin/env python
#coding:utf-8
import cognitive_face as CF
KEY = '0d376b5d65c1439eab3e06154da07cc8'
CF.Key.set(KEY)
img_url = 'https://raw.githubusercontent.com/Microsoft/Cognitive-Face-Windows/master/Data/detection1.jpg'
result = CF.face.detect(img_url)
print(result)
| [
"noreply@github.com"
] | S-Yasui.noreply@github.com |
d5a4b03fe89b3cddcc4f48b6901637ce114cd440 | fa8344a5f37ffd5f10bef00a6f7cab6acc6382f7 | /libs/jqdjangogrid/views.py | 81a0082362d0fae3f8ccc41357f3af46b500f13b | [] | no_license | hustels/django-crud-ajax-demo | 2fcd8d3e1c050a76ec1d7e16cfd04fbf1175d8fa | 06de79bf60918b7e270491e4d5cbc7e1422ffd23 | refs/heads/master | 2021-01-12T19:43:44.480199 | 2011-11-16T01:07:31 | 2011-11-16T01:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | # -*- coding: utf-8 -*-
from django.db.models import Q
from django.db.models import get_model
from django.core.paginator import Paginator, EmptyPage, InvalidPage
from django.http import HttpResponse
from django.core import serializers
from django.utils import simplejson
from django.views.generic.simple import direct_to... | [
"gustavo@gustavohenrique.net"
] | gustavo@gustavohenrique.net |
5f0505f36af2d39f955a7c0c374ddee7f52a9465 | 024ad288e3e8c4407c147d3e5a3cef9c97ddecce | /keras/keras98_randomsearch.py | 3188609d3745a71add73ce93d8b27576dc61a945 | [] | no_license | keumdohoon/STUDY | a17f62549e5dc59640875970b79b41ba8f62932c | 83a1369d8e93767ebc445a443d8f55921cd984ce | refs/heads/master | 2022-12-15T17:25:00.809774 | 2020-09-07T02:00:30 | 2020-09-07T02:00:30 | 264,050,749 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,264 | py | #원래는 randomizedSearchCV로 변환, 파일 keras97불러오기.
#score 을 추가해준다.
from keras.datasets import mnist
from keras.utils import np_utils
from keras.models import Sequential, Model
from keras.layers import Input, Dropout, Conv2D, Flatten, Dense
from keras.layers import MaxPooling2D
import numpy as np
#. 1. 데이터
(x_train, ... | [
"58944180+keumdohoon@users.noreply.github.com"
] | 58944180+keumdohoon@users.noreply.github.com |
7df8bf472e47f1a3c82e3bc94d505d969958a2e5 | fc0d34587eca6b3237999c3d2acbe66cc1b9591b | /__init__.py | 5f0def015b32f7039129835eca12d259069de09e | [] | no_license | suniltholia/jproject | 5b010bc4cf6bef003e23cc6b0e6bfe44aabd3234 | 6972ac2b8e1ac2a4831044ff908d7f76a3f07a8f | refs/heads/master | 2020-03-18T12:03:03.927091 | 2018-05-25T09:33:13 | 2018-05-25T09:33:13 | 134,705,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | """
Project1 is Steve's example project for the blog.
It contains sample code here and there.
""" | [
"tholia.sunil@gmail.com"
] | tholia.sunil@gmail.com |
f5cd52c7607a545bb896d9aafc6eba74a46a0287 | 16e1518fd9b8aeb79fb3bc6eb9beb95c23dcd50e | /api/env/bin/pip3.8 | 87709980bb1ee5b8dfa82779fa596093ae8ec5f4 | [
"Apache-2.0"
] | permissive | groupwildman/todolist | a6df180989524d563f1e58fa6aa6559f0ac10b57 | 7ce990b91e208fdb5ca757e3508a2f0764c16798 | refs/heads/master | 2023-06-21T03:46:40.443646 | 2021-07-19T09:49:02 | 2021-07-19T09:49:02 | 387,409,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | 8 | #!/media/mhula/3C48DFE648DF9D48/workstation/todolist/api/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"groupwildman@gmail.com"
] | groupwildman@gmail.com |
8a8d1f8ecd9b993fcbce9ed58a8a13e1f241d44e | 7c29bceebb128d8f1f6d297b78bd7892254e00d3 | /src/extension/sim.py | d5480927969f7e9c6ec5e3a270c794d2d7630235 | [] | no_license | kaluzny1995/HSD2.0 | c1376b3e3b962bbfc0cbcf611a2525d3e4705861 | dbf227a66d6535411fdf2d5582e2f747540058dd | refs/heads/main | 2023-04-14T12:28:13.111525 | 2021-04-24T21:04:08 | 2021-04-24T21:04:08 | 314,372,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | import numpy as np
import itertools
from scipy.spatial.distance import cosine
from tqdm.notebook import tqdm
from polyglot.text import Text
from polyglot.detect.base import logger as polyglot_logger
import spacy
from .lemm import lemmatize_text, tagger
from ..constants import SPACY_PL_MODEL
polyglot_logger.setLevel... | [
"noreply@github.com"
] | kaluzny1995.noreply@github.com |
d3c43d9e056e2e249b4baded6e92d6e2bde59822 | 1522cec40063a0267105924735169fda2f3b2039 | /tests/test_packages/__init__.py | bf582e0b3c3fa4ef1bcacd17feec9a3fb96e4d10 | [
"Apache-2.0"
] | permissive | memgraph/moto | 4dc8a5fa1c9b362c65805c39107c4c5b05aa1a46 | ff3c33cda6953e2ce5aeac3dd2a872e56632a1b3 | refs/heads/master | 2020-06-11T08:25:22.339987 | 2019-09-10T12:55:39 | 2019-09-10T12:55:39 | 193,903,464 | 1 | 1 | Apache-2.0 | 2019-09-10T12:55:40 | 2019-06-26T12:50:28 | Python | UTF-8 | Python | false | false | 307 | py | from __future__ import unicode_literals
import logging
# Disable extra logging for tests
logging.getLogger('boto').setLevel(logging.CRITICAL)
logging.getLogger('boto3').setLevel(logging.CRITICAL)
logging.getLogger('botocore').setLevel(logging.CRITICAL)
logging.getLogger('nose').setLevel(logging.CRITICAL)
| [
"rubelw@Williams-MacBook-Pro.local"
] | rubelw@Williams-MacBook-Pro.local |
fd7f4b6d2bf431742dee8cab4227497dffb1d0c2 | c59c04d8778d8392a521a18120c96eb7018f8383 | /scripts/gitfilestat.py | e88856c2be597ea0a771ef0f3e2430c0f573cf7f | [] | no_license | jlepage-appdirect/hotspot-detector | 362d2441fbf6c9b0b0fe73da6b57a9bbd875dd7e | a221ab3807563122c6fd99760454bbc43476dca8 | refs/heads/master | 2021-01-13T15:01:19.046183 | 2016-12-12T22:58:34 | 2016-12-12T22:58:34 | 76,299,229 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | import datetime
from datetime import datetime
class GitFileStat(object):
def __init__(self, path):
self.path = path
self.commitHashes = []
self.patches = []
self.commiters = set()
def __str__(self):
return self.path + ", " + str(self.commitsCount()) + ", " + str(self.... | [
"jocelyn.lepage@appdirect.com"
] | jocelyn.lepage@appdirect.com |
b72ce151c45de7d0eb1b7a8bc0bf6b7264e93609 | f8079ce7216863c9ea5924b2f5b18a34e9848e83 | /companyBlog/core/views.py | 382339fffa1f4cff47776ade45f458ecef318962 | [] | no_license | Siriapps/techie-Jr | 129cae3d753ef3007c9e825b506e314bab6c357a | ccfabb53c49a5359136bfb14d4c6ab7ee7632edf | refs/heads/main | 2023-06-04T20:12:48.703937 | 2021-06-25T14:49:56 | 2021-06-25T14:49:56 | 379,955,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | from flask import render_template, request, Blueprint, url_for
from flask_login import current_user
from companyBlog.models import BlogPost
core = Blueprint('core',__name__)
@core.route('/')
def index():
page = request.args.get('page',1,type=int)
blog_posts = BlogPost.query.order_by(BlogPost.date.desc()).pagi... | [
"siriapps3@gmail.com"
] | siriapps3@gmail.com |
befff7baa26c14516b0c074285a86f638405aab9 | 485bb98540018cb556a6545223bf42628cecae25 | /models/user.py | 1362e00f0b8331bb73e7053f1ace7abb5c206328 | [] | no_license | satyam8080/microsun-ecommerce | 73e464bed297f4a1e8d17b93919f33ddf67c8f07 | ee05713b9d6a0ef1bd8f3f7d194c3c411832c85d | refs/heads/main | 2023-04-02T06:16:00.999342 | 2021-04-07T15:27:50 | 2021-04-07T15:27:50 | 350,608,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from app import db
from datetime import datetime
class User(db.Model):
__tablename__ = "users"
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String(256), nullable=False)
password = db.Column(db.Binary(120), nullable=False)
email = db.Column(db.String(256), n... | [
"iamsatyam26@gmail.com"
] | iamsatyam26@gmail.com |
ed04da53efe1b19da759ebeea4960e75bf14b5b9 | 661fd0e8288f8c7cd7884c90713ecd775e165449 | /mainUI.py | 80328bd516615a7e279ba650b6124f8426505cb6 | [] | no_license | AdarshKosrekar/Personal-Voice-Assistant | 5aa9be08f35020bd9440e964e62fb7cd993878f2 | 6c069ae4823df1e3e99c78f79e84d57fe6b686e0 | refs/heads/main | 2023-06-06T19:07:06.403441 | 2021-07-01T15:12:37 | 2021-07-01T15:12:37 | 382,050,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,662 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'JarvisUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtG... | [
"adarshkosrekar2000@gmail.com"
] | adarshkosrekar2000@gmail.com |
4866b3edb0aab77e428f60abdf72c4c5651511b5 | 04b86e00e6c097f3d29fe1ae133416c77388c4db | /pyfinex/v1/misc.py | 8096f997c37699d012d236f28442542801206a1c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ddxv/pyfinex | 299747fbfe800d34bb059cdbb9828234e83a46ec | 2e299c24a38a3299a6feb625d2b3c0be135dcd72 | refs/heads/master | 2020-03-27T13:03:23.268218 | 2018-08-16T13:23:44 | 2018-08-16T13:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from pyfinex.api import request
def basket_manage(key, secret_key, **params):
""" This endpoint is used to manage the creation or destruction of tokens via splitting or merging. For the moment, this is only useful for the bcc and bcu tokens.
Docs: https://bitfinex.readme.io/v1/reference#basket-manage
"""
... | [
"michel.z.gaston@gmail.com"
] | michel.z.gaston@gmail.com |
dc8835c6dec0140fcb1852faa09d8e70a7cdeaaf | c397d4899fbb5e34b90a2650be2e6aa6f5725972 | /blog/migrations/0037_reviewimage_thumbnail.py | 805c17f73adb43f3b5a343a908788a464aa1d064 | [] | no_license | CCCodes/ProConDuck | aa68e6e89c3c71ddf7832d35f51688fddc379b10 | c4ce19e62d5b50b3da9d258fa4e40831e159f2f7 | refs/heads/master | 2023-02-16T18:55:27.766465 | 2021-01-17T16:49:37 | 2021-01-17T16:49:37 | 96,048,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-23 00:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0036_auto_20170822_0803'),
]
operations = [
migrations.AddField(
... | [
"caitlinchou@gmail.com"
] | caitlinchou@gmail.com |
a91390c161f40656d0f323b1525d55125c72c02a | 0b279c246179bc6a76ad17f055ad1dce3402b045 | /private_production/eft/2018/crab_INT_MINIAODSIM.py | e9a3be5b74809d1efea5713aa88eb353e315e3d7 | [] | no_license | UniMiBAnalyses/CMSSWGeneration | a55e6ad840e4f7f9fae6b46a4bb939a288492f10 | a7acf1a780eeb30e14616fef90ccf389e4367668 | refs/heads/master | 2023-09-01T02:01:44.746469 | 2022-01-31T11:01:29 | 2022-01-31T11:01:29 | 212,852,677 | 0 | 2 | null | 2022-06-16T15:23:25 | 2019-10-04T15:57:27 | Python | UTF-8 | Python | false | false | 838 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'VBS_SSWW_INT_MINIAODSIM'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transferLogs = False
config.JobType.pluginName = 'Analysis'
config.JobType.psetName... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
5aedf70eb2f4f9e4d338f8b9baef8144190973ff | b41c7a2951cbc7acf8e5a2ad59d14c967bc89acc | /asgi.py | e275df07fb60cdb38b2b49f065624d413c8ed285 | [] | no_license | sandeepkrc/jokeapp | d0727c60c7015fa15d7ae7a9e59acf0e9748c242 | 307ef5c92cb2e66312d91232ab034a60d1e35f0c | refs/heads/main | 2023-02-24T06:04:54.376485 | 2021-01-29T18:11:29 | 2021-01-29T18:11:29 | 332,425,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for pweb project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"noreply@github.com"
] | sandeepkrc.noreply@github.com |
e7b570181acc28fc86794e38460966a6b13cbe25 | aba4ca8b3c410a9b7a795854ef49515b23345eb7 | /ExplorationTechniques/KLEERandomSearch/KLEERandomSearch.py | c59525381822b2e946227213ebf87ffa8fb65d24 | [] | no_license | damirpolat/awesome-angr | ed0a7cae171c160ec07067e3f10451fb3ecbee95 | faf388329b364f88b7ae1c628cd8697882025fd3 | refs/heads/main | 2023-08-03T03:49:46.467972 | 2021-09-28T06:47:37 | 2021-09-28T06:47:37 | 405,756,029 | 0 | 0 | null | 2021-09-12T21:20:40 | 2021-09-12T21:20:39 | null | UTF-8 | Python | false | false | 2,653 | py | import logging
import random
from angr.exploration_techniques import ExplorationTechnique
l = logging.getLogger('KLEERandomSearch')
class KLEERandomSearch(ExplorationTechnique):
"""
Random path selection. https://hci.stanford.edu/cstr/reports/2008-03.pdf
Maintains a binary tree recording the program pa... | [
"degrigis@users.noreply.github.com"
] | degrigis@users.noreply.github.com |
e9dc579255087de1204f309104b158759e2721ce | 87fadb0fdbcb26f569bc4ec039335aba6c3024f0 | /myutils/face_recognition.py | fb329af3f104afd84f9b9eb5750f9d29ccd31911 | [] | no_license | nado6miri/automation | 6c38424459ef54baa0cd55b94ae19b402c51bdd5 | ba6b576ca1fed73c9c592137e43e8fc07cd7f72b | refs/heads/master | 2021-03-11T05:09:36.056421 | 2020-03-19T06:51:05 | 2020-03-19T06:51:05 | 246,511,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | # -*-coding: utf-8 -*-
import cv2
# https://circlestate.tistory.com/5
#웹캠에서 영상을 읽어온다
cap = cv2.VideoCapture(0)
cap.set(3, 640) #WIDTH
cap.set(4, 480) #HEIGHT
#얼굴 인식 캐스케이드 파일 읽는다
face_cascade = cv2.CascadeClassifier('haarcascade_frontface.xml')
while(True):
# frame 별로 capture 한다
ret, frame = cap.read()
gr... | [
"sungbin.na@lge.com"
] | sungbin.na@lge.com |
c5553972daa07b860ea815b1988ccb9406ea748d | adf15eed860c36fb156f4e23551e519e03934693 | /seb/muon_analysis.py | d94cf5c625826bbb524eab98b44af0f7ef160fb7 | [] | no_license | nexo-erlangen/exo_analysis | 0bdde9c18d075ea89e3fcb69998254e27b64cdd4 | 2d04e4567ee7e1ce72972a48702bf3461e5bd7ba | refs/heads/master | 2021-01-22T05:46:54.561506 | 2017-11-30T10:45:31 | 2017-11-30T10:45:31 | 92,493,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | #!/usr/bin/env python
import numpy as np
import sys
import cPickle
import os
import ROOT
ROOT.gSystem.Load('/home/hpc/capm/mppi025h/EXOoffline/EXOFitting/EXO_Fitting/lib/libEXOFitting.so')
ROOT.PyConfig.IgnoreCommandLineOptions = True
import plot_support as ps
def main():
fName = '/home/vault/capm/mppi025h/anal... | [
"mppi025h@woodycap4.rrze.uni-erlangen.de"
] | mppi025h@woodycap4.rrze.uni-erlangen.de |
e939a3901ef6659da6ac0573ac7ddcbabb93c78b | 8646dcb2ec43cb85edea3d5c909cb60fd90c1dfd | /web/app/api/logistica/model/regiao_cidades.py | 25a0fc27e23c5d393c0c2f4b2f1b04e8aa1484f0 | [] | no_license | softlog/web | a3d34a0c9990cd1b50e74f4131a1d6bbdb9f91b5 | 520493cdf64f790b11b4df62e926ab9eebccae7f | refs/heads/master | 2020-07-25T14:29:02.715057 | 2020-03-03T11:50:10 | 2020-03-03T11:50:10 | 208,049,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | from app import query_db_2, execute_db
import json
import psycopg2
class RegiaoCidadesModel(object):
def get(self,id_acesso):
str_sql = """
WITH t AS (
SELECT array_agg(row_to_json(row(id_cidade,nome_cidade,uf,cod_ibge,latitude,longitude,id_regiao)::t_api_regiao_cidades)) a... | [
"paulo.sergio.softlog@gmail.com"
] | paulo.sergio.softlog@gmail.com |
677a7733f99ec9ef86d7efdad6061a89aa725c39 | 5a92c6283a86a8fc5d74bbc96837414623a48faa | /zkdm/python/package/ptz/ArmPtz.py | 93b6dd7b06542bd88e4a725cc44c626b13ccf86e | [] | no_license | electri/zkonvif | 5a8a4ca767d0dfa9e1b66237c2d380cf1cf12318 | 1ed6d31a003b5da2f52534a944c4e1c977b894bf | refs/heads/master | 2021-06-08T13:10:42.998223 | 2016-12-05T22:56:16 | 2016-12-05T22:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,920 | py | # coding: utf-8
import sys, socket, select
import re
sys.path.append('../')
from common.uty_log import log
def TurnStr(name, direction, speed):
return 'PtzCmd=Turn&Who=%s&Direction=%s&Speed=%s'%(name,direction,speed)
def PresetStr(cmd, name, ids):
return 'PtzCmd=%s&Who=%s&ID=%s'%(cmd, name, ids)
def ZoomSt... | [
"sunkwei@gmail.com"
] | sunkwei@gmail.com |
48887c30ff50b09604e6af7c99af845d18f9c3aa | 8dca64dd11b23a7d59413ac8e28e92a0ab80c49c | /504. Base 7/solution.py | 298b59aa9f66b91ba715bc108c1bf1b2171775ae | [] | no_license | huangruihaocst/leetcode-python | f854498c0a1d257698e10889531c526299d47e39 | 8f88cae7cc982ab8495e185914b1baeceb294060 | refs/heads/master | 2020-03-21T20:52:17.668477 | 2018-10-08T20:29:35 | 2018-10-08T20:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | class Solution(object):
def convertToBase7(self, num):
"""
:type num: int
:rtype: str
"""
if -6 <= num <= 6:
return str(num)
def helper(n): # n >= 7
li = list()
while n >= 7:
li.append(n % 7)
n //= ... | [
"huangruihaocst@126.com"
] | huangruihaocst@126.com |
ea0437398c5d2f0e423bd627eaa886ffd929f096 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/database/postgresql/postgresql_ext.py | 97bd549f21b13edb26860e7beac097a8cf22f526 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 5,700 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"sifang@cisco.com"
] | sifang@cisco.com |
8bc9ba267ab55211234f1b8531b5d213ec6c7238 | 2315afb8435de656afcc5789ec1ddde21135f658 | /todo_project/todo_app/models.py | dbe2eb3e5521a50750030086908baa842542c537 | [] | no_license | DeanDupalov/Front-End-Basics | 9754315cce8417cb86fbe33c76886df70e9d8ea4 | acac5b03f55aff03620bd2d527a96c0d453e07d9 | refs/heads/master | 2023-04-22T08:58:28.124375 | 2021-05-13T13:11:18 | 2021-05-13T13:11:18 | 357,648,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from django.db import models
# Create your models here.
class Todo(models.Model):
title = models.CharField(max_length=10)
description = models.TextField(max_length=100)
is_done = models.BooleanField(default=False)
def __str__(self):
return self.title
| [
"75751527+DeanDupalov@users.noreply.github.com"
] | 75751527+DeanDupalov@users.noreply.github.com |
0f53a7ee6b97dc36dbbef5b06fda252678390f1e | 451cc8e5febcfb2555335fcfd19e5f4b8d722ad9 | /gui/main.py | 25378c0efa418b2b29a2189ff95eb8b259d2edcd | [] | no_license | Taku-KATOU/Lifegame | 0061aabe3fffedc245de02f63c7ac9c057abebae | 0110a56e77b54be758788ee075b05b7f3f56420a | refs/heads/master | 2020-09-20T23:05:39.851287 | 2019-12-02T15:07:33 | 2019-12-02T15:07:33 | 224,613,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | #!/usr/bin/env python
# coding: utf-8
# In[56]:
import numpy as np
import lifegame as lg
import matplotlib.pyplot as plt
import tkinter as tk
import cv2
from numba import jit
#import time
#import threading
#import lggraph
#%reload_ext autoreload
#%autoreload 2
#@jit
def sloop():
#while not stop_flag:
c... | [
"katou.physics@gmail.com"
] | katou.physics@gmail.com |
37a100c9a1dbe0e58c39a866dd97c1a6f6a37631 | 6cbce0ddc052f86a625ff0193363beb5c67d74ae | /tianshan/L20161211/lesson.py | d1f18df70aacf979b9e54598ee7c324cf028d473 | [] | no_license | zhenghaizhang/python | 19fc24e8c2ca9c0352ab7c70d63bcce651a54e41 | e0848ab035bc8467a8c5cc9c2c366d2d23069c34 | refs/heads/master | 2022-11-10T15:54:36.038161 | 2020-06-22T11:35:20 | 2020-06-22T11:35:20 | 75,375,436 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | import jieba
#
# sentence = '我喜欢上海东方明珠'
# # cut_all=True 全模式
# w1=jieba.cut(sentence,cut_all=True) #全模式、精准模式、搜索引擎模式
# for item in w1:
# print(item)
# print('-'*20)
# # cut_all=False 精准模式,依赖分词的优先级
# w2=jieba.cut(sentence,cut_all=False) #全模式、精准模式、搜索引擎模式
# for item in w2:
# print(item)
# print('-'*20)
# # 搜索引擎模式
... | [
"baoshan@dongchang.local"
] | baoshan@dongchang.local |
3951a7046f0bd01eadc39baf522ef5e447f9ea79 | dcb6192029405de7458a7955eba8133465f8f808 | /screen.py | bf5af3da2a1f086c1d1934da99245be2dcd2ba45 | [
"MIT"
] | permissive | christiankuhl/gameoflife | 002933c97202fbea198f8de3f7a3df3340d2be3c | df50eb37aba5d339087b8a858d807087bc2d45bd | refs/heads/master | 2020-12-03T00:34:35.350404 | 2017-08-06T14:59:05 | 2017-08-06T14:59:05 | 96,044,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | import sys
import os
import curses
class ScreenPainter(object):
"""
This class contains methods to write the game's state on stdout.
"""
def __init__(self, cell_char="\u2593"):
self.height, self.width = map(int,os.popen('stty size', 'r').read().split())
self.cell_char = cell_char
... | [
"christian.kuhl84@gmail.com"
] | christian.kuhl84@gmail.com |
edf52ab76db2cfd99a0af88763f296ce469be40c | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/SjShRightSide/YW_GGQQ_QLFSJHA_191.py | 7b402aecbf55309b2714b38ef26372383e256c92 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,954 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import json
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/option/service")
from OptMainService import *
from OptQueryStkPriceQty import *
sys.path.append("/home/yhl2/workspace/xt... | [
"418033945@qq.com"
] | 418033945@qq.com |
b059b880de3f859a5969b06be9518974df6aa833 | f6d08b29b76713165fcdb50f78bd9c74b6b38c22 | /Collect/S30/DataAccess.py | b4ea6f8e898d457761a400b8cb3c13d44347eeb3 | [
"Apache-2.0"
] | permissive | joan-gathu/watertools | b4b22071897e21d2fb306344f9ace42511e9f3ef | 55e383942ed3ddb3ba1d26596badc69922199300 | refs/heads/master | 2022-04-11T17:49:06.324478 | 2020-03-13T11:11:16 | 2020-03-13T11:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,459 | py | # -*- coding: utf-8 -*-
"""
WaterSat
author: Tim Martijn Hessels
Created on Sun Feb 10 18:26:30 2019
"""
import datetime
import pandas as pd
import numpy as np
import os
import urllib
import gdal
#S2_tile = "10SGE"
#output_folder = "F:\Project_Jain\Case_California\Input_Data\S30"
#Startdate = "2018-03-01"
#Enddate = "... | [
"timhessels@hotmail.com"
] | timhessels@hotmail.com |
e065368a23696b60736cd304f85e5a28aec35af0 | cc157334d7e05f5fcfc681fda4d81b2f54306c5e | /proj/plane.py | 0d1cdeca98a71bc2599e2049b749cd694d7f9dbb | [] | no_license | HELL-TO-HEAVEN/Air_Combat_Game_Python | 237ec1cb7cbcc29b13383a97d878424291de21c2 | 78c3b008adc57bc29c0240321e4609993d43e9b3 | refs/heads/main | 2023-03-18T16:45:55.698642 | 2021-03-11T06:42:24 | 2021-03-11T06:42:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | import pygame
from proj.flyingObject import FlyingObject
class Plane(FlyingObject):
def __init__(self):
super().__init__()
# 飞机属性
self.hp = 5
self.be_hit = False
# 飞机资源容器
self.normal_images = []
self.hit_images = []
self.destroy_images = []
... | [
"78183896+ivan-kunfei@users.noreply.github.com"
] | 78183896+ivan-kunfei@users.noreply.github.com |
22c8c50b7859ffd0b128c08f3f64b0fcca6754d2 | 55ab64b67d8abc02907eb43a54ff6c326ded6b72 | /scripts/addon_library/local/uvpackmaster3/scripted_pipeline/panels/grouping_panels.py | 6e772957a8c34014a5e61cf1284f7cdbd0d6afda | [
"MIT"
] | permissive | Tilapiatsu/blender-custom_config | 2f03b0bb234c3b098d2830732296d199c91147d0 | 00e14fc190ebff66cf50ff911f25cf5ad3529f8f | refs/heads/master | 2023-08-16T14:26:39.990840 | 2023-08-16T01:32:41 | 2023-08-16T01:32:41 | 161,249,779 | 6 | 2 | MIT | 2023-04-12T05:33:59 | 2018-12-10T23:25:14 | Python | UTF-8 | Python | false | false | 9,945 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"tilapiatsu@hotmail.fr"
] | tilapiatsu@hotmail.fr |
1657f962a8133600e36bf5a5651983e5160d9d34 | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/fluid/tests/unittests/dygraph_group_sharded_stage3_offload.py | 5f9ec5c6e708e37b208ed07a321428f056f83a77 | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 6,441 | py | # -*- coding: UTF-8 -*-
# Copyright (c) 2022 PaddlePaddle Authors. 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 License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... | [
"noreply@github.com"
] | sandyhouse.noreply@github.com |
6ce225b27e57b222c5803bee8ef647f9c9f5b6e1 | aaa762ce46fa0347cdff67464f56678ea932066d | /AppServer/lib/django-1.3/tests/regressiontests/test_client_regress/views.py | c40f34fe563a797d6d3a7c364eeb614697b044db | [
"Apache-2.0",
"BSD-3-Clause",
"LGPL-2.1-or-later",
"MIT",
"GPL-2.0-or-later",
"MPL-1.1"
] | permissive | obino/appscale | 3c8a9d8b45a6c889f7f44ef307a627c9a79794f8 | be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f | refs/heads/master | 2022-10-01T05:23:00.836840 | 2019-10-15T18:19:38 | 2019-10-15T18:19:38 | 16,622,826 | 1 | 0 | Apache-2.0 | 2022-09-23T22:56:17 | 2014-02-07T18:04:12 | Python | UTF-8 | Python | false | false | 4,115 | py | from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect
from django.core.exceptions import SuspiciousOperation
from django.shortcuts import render_to_response
from django.utils import simplejson
from django.utils.encoding impo... | [
"root@lucid64.hsd1.ca.comcast.net"
] | root@lucid64.hsd1.ca.comcast.net |
9e3591fa458f7266fe0f355e245ac83becb3353d | f5d47688b58d5a872d3057acb64d77e1a7ff715b | /egi_notebooks_accounting/watch.py | b8fa189afb4cd947ae7f79a23a40a2ebb64c5519 | [
"Apache-2.0"
] | permissive | enolfc/egi-notebooks-accounting | 0a9d1f345eebb48befcb42c2ee54434d5d6228e3 | f2dfda199a8909688e467e9dcea3eb0a37efaef7 | refs/heads/master | 2021-07-25T00:05:42.732431 | 2020-05-19T11:07:35 | 2020-05-19T11:07:35 | 191,577,083 | 0 | 0 | Apache-2.0 | 2019-06-12T13:31:56 | 2019-06-12T13:31:56 | null | UTF-8 | Python | false | false | 2,029 | py | import datetime
import logging
import kubernetes
from .model import db, init_db, Notebook
from .utils import get_k8s_namespace
def process_event(event, namespace):
pod = event['object']
username = pod.metadata.annotations.get('hub.jupyter.org/username',
'nobody')
... | [
"enol.fernandez@egi.eu"
] | enol.fernandez@egi.eu |
f465a24a25ff819d2f93f175b0b03a593d910dbd | 6b05dfb2558d468f17b2d1bfae8ce362f353ec43 | /password_generator.py | 610a6bde8263d8dad974875b29046111ad42c5a9 | [] | no_license | nithin1117/PassGen | 6883e4abfa206b81a1d3e2fd5646d1165c48d9cc | 840133916ae1865977cee6e2ded9134e9d1bbd96 | refs/heads/main | 2023-09-04T12:21:36.120131 | 2021-10-08T07:17:39 | 2021-10-08T07:17:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,010 | py | import string
import random
from tkinter import *
from tkinter import messagebox
import sqlite3
with sqlite3.connect("users.db") as db:
cursor = db.cursor()
cursor.execute("CREATE TABLE IF NOT EXISTS users(Username TEXT NOT NULL, GeneratedPassword TEXT NOT NULL);")
cursor.execute("SELECT * FROM users")
db.commit()... | [
"noreply@github.com"
] | nithin1117.noreply@github.com |
37b87d12218bc68211a3ef73adb34d6e5eb43721 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnhog.py | 7c1879ae52723fe68f6909d57aba4d78d84117a7 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,016 | py | ii = [('CookGHP3.py', 1), ('LyelCPG2.py', 6), ('RogePAV2.py', 5), ('CoolWHM2.py', 4), ('RogePAV.py', 6), ('SadlMLP.py', 2), ('WilbRLW.py', 1), ('ProuWCM.py', 4), ('MartHSI2.py', 1), ('LeakWTI2.py', 1), ('LeakWTI3.py', 4), ('PeckJNG.py', 11), ('AubePRP.py', 1), ('FitzRNS3.py', 2), ('SeniNSP.py', 1), ('AinsWRR3.py', 2), ... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
7dee80e4a8ef76034ced5fb3980d0ed4a9b5492f | 1654120cd609613a5f7b54c02cb451d73acad5ab | /testing-platform-api-server/src/users/migrations/0002_auto_20171227_2246.py | 75302f5ec4fa23751cc62ad4865d6bc7fda5426a | [] | no_license | UrosOgrizovic/SOTIS | ca0bde547d5be396b715b1c2e688fc1d2565cfa8 | 0495dd6676eb8d1fa48d301fcc36801b99b188db | refs/heads/main | 2023-02-19T10:12:13.063759 | 2021-01-21T14:00:58 | 2021-01-21T14:00:58 | 310,030,329 | 2 | 0 | null | 2021-01-21T14:00:59 | 2020-11-04T14:42:30 | Python | UTF-8 | Python | false | false | 365 | py |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='last_name',
field=models.CharField(blank=True, max_length=150,... | [
"noreply@github.com"
] | UrosOgrizovic.noreply@github.com |
56d44786e3b737243ce5a6ba2395ae5a68db6b8d | ffced5716c90756b82d3835cdd94383661c54d0b | /rest-api/services/memory_service.py | 13bb1af5be31d92db6daa3d598bd4377638c4c53 | [] | no_license | andrewPompa/fpga-slow-control | 076536a009117ddcc75f3e67b930af1b025b7e15 | 11d862c03fa2c7063ad7ce0feb88eb3ef32d6700 | refs/heads/master | 2020-05-17T08:43:37.742551 | 2019-09-12T04:57:03 | 2019-09-12T04:57:03 | 183,613,303 | 0 | 0 | null | 2019-07-31T11:55:54 | 2019-04-26T11:00:55 | C++ | UTF-8 | Python | false | false | 617 | py | from base64 import b64encode
from subprocess import check_output, PIPE, check_call
class MemoryService(object):
def __init__(self, bram_file_path):
self.bram_file_path = bram_file_path
def get_as_base64(self, address, num_of_words):
memory_bytes = check_output([self.bram_file_path, "-s", "-r"... | [
"mjazowski00gmail.com"
] | mjazowski00gmail.com |
81245d58715ad29d167143f1b4294119e1df2941 | 5a5bcfe21defcaf6b050b0c92e8ec03cee7eb50f | /gencrud/gen/page/forms/__init__.py | 7d15d4a929cddb986ec8904a4487e97f10a941fc | [] | no_license | marychev/gencrud | dc146c570a81ed0665f6bec309f106d966be349a | d6dc478b9a079aba5589591fa2e79665179e28a2 | refs/heads/master | 2023-01-06T18:50:13.417451 | 2020-10-23T18:05:38 | 2020-10-23T18:05:38 | 262,617,213 | 2 | 0 | null | 2020-05-10T18:35:19 | 2020-05-09T16:55:28 | Python | UTF-8 | Python | false | false | 38 | py | from .page_comment import CommentForm
| [
"marychevmihail3737@gmail.com"
] | marychevmihail3737@gmail.com |
54554165dd2e9432e8666cd50ffc36993354c9c3 | de09ae1e6dac982a0cfdd461eac966f91a26a209 | /ML Coaching/test1.py | adda37a89213387d6db613288e2af2a63b26d04c | [] | no_license | bikkimaurya/python | 42b82e19894c66cf21ed203cb49b3b6f4761027f | 432dfadc064395688c0fa27fd4e50f45cedd1faa | refs/heads/master | 2022-12-05T10:44:55.785944 | 2020-08-27T10:10:45 | 2020-08-27T10:10:45 | 275,808,361 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | detail={}
def register():
i=int(input("enter id"))
name=input("enter name")
age=int(input("enter age"))
detail[i]=[name,age]
def search():
i =int(input("enter you emp id"))
if i in detail.keys():
print(detail[i])
else:
print("kuchh bhi")
def registerWhile():
whil... | [
"abhishekinfinite786@gmail.com"
] | abhishekinfinite786@gmail.com |
0da92cbd0e4ade8ad9bc3e92c2eeb5dba366e385 | 99d17ddba93db1105e8941b1b592d9d9e22864fb | /superset/dashboards/permalink/exceptions.py | c234d614f1a27fea248bc5ed03cb5599a37c9fc3 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | apache-superset/incubator-superset | f376dc15d6e2187d0b65a0dc5476d6c6c3378f21 | 0945d4a2f46667aebb9b93d0d7685215627ad237 | refs/heads/master | 2023-03-15T04:12:40.478792 | 2022-07-25T14:44:43 | 2022-07-25T14:44:43 | 146,225,581 | 21 | 20 | Apache-2.0 | 2023-03-13T16:00:14 | 2018-08-26T23:56:08 | TypeScript | UTF-8 | Python | false | false | 1,253 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | apache-superset.noreply@github.com |
cb883b6b7fc0962ca529a10fb39484b6a3445588 | d72508d6d60df99086c7a5a6c615635ea193e18e | /src/python3/resources/users/profile.py | 20303bcda9fb25906b582ef894121a2b5cbaf6a3 | [] | no_license | nromero125/glucolog | 679d8ffba1a4a1d593f49cd92caa6433b35194f5 | f7c14177639683a5c3a331e94a136b0d4f3ac51b | refs/heads/master | 2020-04-04T05:14:00.791376 | 2019-01-24T17:43:50 | 2019-01-24T17:43:50 | 124,118,300 | 1 | 1 | null | 2018-10-29T22:18:01 | 2018-03-06T18:05:12 | HTML | UTF-8 | Python | false | false | 1,442 | py | import datetime
from flask_jwt_extended import jwt_required, get_jwt_identity
from flask_restful import Resource, reqparse
from models.users.user import User as UserModel
from schemas.users.user import User as UserSchema
class Profile(Resource):
def __init__(self) -> None:
super().__init__()
sel... | [
"davidftavarez@gmail.com"
] | davidftavarez@gmail.com |
45d9075b6c1802f1069155be4c0467d375b78ded | 96c3d486343fff114b39680335e7d98f06645f9e | /app.py | cdb9b7963469cf0a947539295f5a749f3f21289b | [] | no_license | omuyahmoses/mose | 970a680911e8b6b728308ac872bc4f61f428eda0 | de183795d663eff8e3d76f50f674476bda537993 | refs/heads/master | 2021-03-16T11:21:02.817853 | 2020-03-09T23:33:50 | 2020-03-09T23:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,946 | py | from flask import Flask, render_template, url_for, session, redirect, jsonify, request
from flask_wtf import FlaskForm
from wtforms import StringField, IntegerField, PasswordField, DateField, BooleanField, TextAreaField, FileField, RadioField
from wtforms.fields.html5 import DateField
from wtforms.validators import Inp... | [
"45616070+MathengeNewton@users.noreply.github.com"
] | 45616070+MathengeNewton@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.