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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bba36d64c3b88de58da092105ce23f4307722e50 | 25bf2073b882dec6172ea65ba87cfcf70ea5dc76 | /cli/src/ipsecmanager.py | d994d263cf90710cf10eaf9e4ce379ffdce481d0 | [] | no_license | zhaog918/coprhd-controller | 7469f360002d29c14c077758535a7624b71e8b1b | 13dd95fa15ef84b6af67a54ba8990cb4eedd99e3 | refs/heads/master | 2021-01-14T13:06:17.381476 | 2015-12-22T13:32:36 | 2015-12-22T13:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,220 | py | #!/usr/bin/env python
# Copyright (c) 2015 EMC Corporation
# All Rights Reserved
#
import json
import common
import sys
from common import SOSError
from common import TableGenerator
class IPsecManager(object):
URI_SERVICES_BASE = ''
URI_IPSEC = URI_SERVICES_BASE + '/ipsec'
def __init__(self, ipAd... | [
"Eswaramoorthy.Saminathan@emc.com"
] | Eswaramoorthy.Saminathan@emc.com |
f9145e7d3145cbc542aaa28d46e6a3d813b2344f | a4a6cb3792b1092ecca42b54f00257db0688fde2 | /pages/base_page.py | 8e58c8dcf06d17268ebe0668826fa99eace9159b | [] | no_license | bijiaha0/python-learning | 0ca70784c6ff0a386f051f8f78f1202fb172b9ef | d93c4831a20a0001a80b66f6ba2336b8d537834b | refs/heads/master | 2020-12-21T05:35:09.506356 | 2020-03-26T12:50:27 | 2020-03-26T12:50:27 | 236,324,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | from config import basic_settings
__author__ = "zhou"
__date__ = "2019-06-01 22:09"
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
class BasePage(object):
def __init__(self, driver, url):
self._driver = driver
self._url =... | [
"bijh@tsingyun.net"
] | bijh@tsingyun.net |
04e67d49d36bdf26448d39e00dc3c7ef16ccb612 | 744d8c4b69a793fa2109e3c868df8a8cb730546f | /PaleonT/PythonFGTS/Nový priečinok (2)/Nový priečinok/Tkinter/ERRR.py | 95c47d9849783ff7ab645996ac3ce8924c69ddc5 | [] | no_license | ShardBytes/Evolutions | f2f4407ddf3acfa1e9b991477af20985826db25b | 0c34dd785748bd8f0217d3eac71cae12b59522b9 | refs/heads/master | 2021-06-04T22:32:49.034242 | 2020-03-12T12:59:53 | 2020-03-12T12:59:53 | 133,266,065 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import random
import tkinter
x = random.randint(10,500)
y = random.randint(10,500)
root = tkinter.Tk()
canvas = tkinter.Canvas(root, width = 800, height = 800)
canvas.pack()
def troj(width,height, startPointX,startPointY,color):
canvas.create_line(startPointX,startPointY,startPointX+width,startPointY, fill = col... | [
"46000279+Frantisekkk@users.noreply.github.com"
] | 46000279+Frantisekkk@users.noreply.github.com |
e7e4d084dc17c9d5070875958c3a23ba0cc0fb16 | 709f50c5dd6be0d2c88f0ae5c87589a595b0859e | /main_pl.py | 8218cf9206efeaf24eaa0285c23eda21a763cbd1 | [
"MIT"
] | permissive | Naagar/Fine_Grained_Classification-FGC- | 8d23509bf866364b03505452f80ee6a880cd2763 | ec64db86db6efa68430cd976a2e84958777410e3 | refs/heads/main | 2023-04-22T08:26:50.491928 | 2021-05-10T16:08:08 | 2021-05-10T16:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,360 | py | import pandas as pd
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
import torchvision.models as models
import pytorch_lightning as pl
from pytorch_lightning import Trainer
from pytorch_lightning.metrics.functional ... | [
"noreply@github.com"
] | Naagar.noreply@github.com |
e590a15082ab839b6cc3e21f9f0c23dcb2ea9f0e | 34540dae4c1199f159efdcfc2c2ad532c0d463d2 | /relatorio/urls.py | 3c99667b7136e4d6fee1d17487978c8b08f4a422 | [] | no_license | CimaraOliveira/WorkBook | c67d5e97a94799cd3e2dbd998abb96afd29ae8fe | ae7f3bea8de285481b1b4bc03f8c1934fd48ce59 | refs/heads/main | 2023-05-30T01:48:21.841086 | 2021-06-14T17:27:22 | 2021-06-14T17:27:22 | 343,867,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.urls import path
from .views import GeneratePdf
urlpatterns = [
path('relatorios/', GeneratePdf.as_view(), name='gerar_relatorio'),
] | [
"cimarinhaoliveira@hotmail.com"
] | cimarinhaoliveira@hotmail.com |
81386b410cfaf6f7d5aa0e5cd993dfbe88d6e5b2 | be8629e747f808d6c9e23fc1d884f2e82fe02818 | /scraping/ven/bin/easy_install-3.8 | 89e8fa0f9ab1727f746f1a3fa08516a574fa36a3 | [] | no_license | durbonca/just-some-py-code-exercise | 6ef9283307847de02173cf08b82745dd831af333 | 5a394f275024a334b16f0c96c07c315f5b5e764f | refs/heads/master | 2020-09-28T21:22:17.780372 | 2019-12-16T13:09:06 | 2019-12-16T13:09:06 | 226,867,440 | 0 | 0 | null | 2019-12-16T13:19:54 | 2019-12-09T12:35:37 | Python | UTF-8 | Python | false | false | 279 | 8 | #!/home/durbonca/Documents/platzi/python/scraping/ven/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"durbonca@hotmail.com"
] | durbonca@hotmail.com |
461aefbbf762874b01a14c2240b32b4c3530d3e3 | 2dad8b725583afd64e2f381acb6a299350a069c4 | /daftar/migrations/0012_auto_20200204_1527.py | 939f809acd5ce9faedf92e3b7bb279d387c8aa89 | [] | no_license | s4-hub/winback | 39b0b354690201a7906ce77f46c1172ddcb21110 | abfb22b6ed5d523b93ea5cdb982ac3066a63ab7c | refs/heads/master | 2020-12-22T12:27:54.416189 | 2020-02-11T10:50:30 | 2020-02-11T10:50:30 | 233,515,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,233 | py | # Generated by Django 2.2.7 on 2020-02-04 08:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('daftar', '0011_auto_20200204_1445'),
]
operations = [
migrations.DeleteModel(
name='Pekerjaan',
),
migrations.Ad... | [
"syafii.newbie@gmail.com"
] | syafii.newbie@gmail.com |
63ca5ff1ce518c3722e989c96d91959a036649ef | 36aa8ca505bcfe024db9875fb056ca6570f3504d | /Core/Noun/models.py | e0ce6ce8d4b201092025129707e64cec6b32ac01 | [] | no_license | shashanj/bankOnCube | 42fec3886b7e5628e47603e7cb0f6fb177e564ec | 865fa104022c8dd2116bf83280bf22c78069537c | refs/heads/master | 2021-01-20T12:38:26.897843 | 2017-05-05T15:25:19 | 2017-05-05T15:25:19 | 90,389,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | from django.db import models
from Core.Verb.models import *
from Core.Noun.NotificationEnableType import *
# Create your models here.
class Noun(models.Model):
noun_code = models.CharField(primary_key=True,max_length=10, blank=False,null=False)
noun = models.CharField(max_length=30, blank=False,null=False)
desc = ... | [
"shashanks.1903@gmail.com"
] | shashanks.1903@gmail.com |
8070b82297d7345832d30903d808e495e45e7dc8 | aba096b6a97b4e11253d9e5064f64b436ce02212 | /Aspect_Analysis/script/evaluate.py | f39befd2aa79f9ec3b6e53683bdb4f72f3b01ecf | [] | no_license | somanshud/Aspect-Intent-Sentiment-Analysis | 9d0d887fe07349e328606f11880e6eb0d021c0f2 | 7515fdda340e0788243d3f3cc259b15fc9792db8 | refs/heads/master | 2022-08-17T20:13:10.744753 | 2020-05-20T07:27:17 | 2020-05-20T07:27:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,068 | py | import argparse
import torch
import numpy as np
import json, io
from nltk import word_tokenize
import nltk
import os
from nltk.tag import StanfordPOSTagger
from keras.utils import to_categorical
import xml.etree.ElementTree as ET
from fasttext import load_model
class Model(torch.nn.Module):
def __init__(self, ge... | [
"adityakumarpr@gmail.com"
] | adityakumarpr@gmail.com |
9cfccbaa8b3879e950521b802914de6661ad47a2 | 23e868036a088139e968b55f80283a9f7c996f8f | /test/functional/feature_minchainwork.py | f322f86860b63278a34141fb523eb5ae2d196377 | [
"MIT"
] | permissive | hiphopcoin24/hiphopcoin24 | ec972602d502df0d131818eae7f903e3acc7e550 | 09b780546ba9e28b452a8641863aafa90def40d1 | refs/heads/master | 2023-05-14T18:44:02.844736 | 2021-06-09T08:51:27 | 2021-06-09T08:51:27 | 369,224,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,109 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2018 The Hiphopcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test logic for setting nMinimumChainWork on command line.
Nodes don't consider themselves out of "i... | [
"hiphopcoin24@gmail.com"
] | hiphopcoin24@gmail.com |
ec0b5f82b94d998180217323ea3f0180998d4bb9 | d046e1651781c258f4997e09be2cfba99e333e90 | /crm/models.py | 84d0108f628625cdcd23f8452334f42de400028e | [] | no_license | Crenault/Assignment2-4deployment | de18470b78097a33af9f2d99143debe705533cb8 | dfdefca6c1861bbd6b69d4f646d46aa881b63766 | refs/heads/main | 2023-08-03T02:18:40.694461 | 2021-10-07T15:20:59 | 2021-10-07T15:20:59 | 414,423,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | from django.db import models
from django.utils import timezone
from django.db import models
# Create your models here.
class Customer(models.Model):
cust_name = models.CharField(max_length=50)
organization = models.CharField(max_length=100, blank=True)
role = models.CharField(max_length=100)
email = ... | [
"crenault@unomaha.edu"
] | crenault@unomaha.edu |
1edc3c43ccedae5b0f41c6a0f086d3ab554dd904 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch016/wiColorJ/Add2Loss/Sob_k09_s001_Mae_s001_good/pyr_Tcrop255_p20_j15/pyr_1s/L7/step09_1side_L7.py | c64e2e1afb0db5021bb85517a443b2008fa6e4b9 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,124 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
ebd17ffe9ae73b81fb5a213ceed1ff146d771597 | 7203106e3fbda73f059df36443b543453e1edcf3 | /vgg.py | 34d85c9bf2dedce496a6c81cc558a020b82a4033 | [
"BSD-3-Clause"
] | permissive | vincent6606/relative_datasize_comparision | b61fb1a32ee3afd94f396d61f77830a69f149f53 | 9a839dd06642a0f968d85fd3a63f1e8e4f3fe16d | refs/heads/master | 2021-01-19T20:15:35.846151 | 2017-08-23T22:17:17 | 2017-08-23T22:17:17 | 101,226,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | '''VGG11/13/16/19 in Pytorch.'''
# from https://github.com/kuangliu/pytorch-cifar/blob/master/models/vgg.py
import torch
import torch.nn as nn
from torch.autograd import Variable
cfg = {
'VGG11': [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'],
'VGG13': [64, 64, 'M', 128, 128, 'M', 256, 256, ... | [
"gaohuang.thu@gmail.com"
] | gaohuang.thu@gmail.com |
23606d29882ed9a6328d4cf56274b9d71123adc1 | de2dd13204c3526f90e9073a9653ea5f1371d5a0 | /pdf_app/migrations/0003_auto_20201013_0421.py | 95e9ec31e40d62a27867c6ab098086e7dc5bad9f | [
"MIT"
] | permissive | ShahinZeynalov/Whelp_DRF_Celery_RabbitMQ_Task | c3e165fcd1c2f7630b5e5400bdbca013dd9662de | d6f73c267ad7f10c9e2849de90e3b7d0df26cb52 | refs/heads/main | 2022-12-29T03:08:49.313868 | 2020-10-18T13:34:31 | 2020-10-18T13:34:31 | 302,956,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # Generated by Django 3.1.2 on 2020-10-13 04:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pdf_app', '0002_auto_20201013_0113'),
]
operations = [
migrations.RenameModel(
old_name='Pdf',
new_name='Document',
... | [
"shahin.zeynalov@bk.ru"
] | shahin.zeynalov@bk.ru |
018d9b3755f2b61e7389fcaa2f897f321b097764 | b75975afda7e47d6a6cb7ae4c77201fee3925d73 | /utils/config.py | 1a51899a2618303c2f18f7450adeb09aea25a2cd | [] | no_license | ibanezgomez/WORKERLand | 849c886fc918251e7f6f1df543ab79625bb7aa72 | e9e2328551a5a770451717483e8e5a792856f1ca | refs/heads/master | 2023-02-26T19:22:06.258124 | 2021-02-06T12:04:18 | 2021-02-06T12:04:18 | 336,483,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | import os.path
import configparser
class Config:
def __init__(self,file):
self.fname = file
self.cfg = configparser.ConfigParser()
self.cfg.read(os.path.join(os.path.dirname(__file__), self.fname))
def getSections(self):
try: return self.cfg.sections()
except: r... | [
"sibanego@mercadona.com"
] | sibanego@mercadona.com |
bb832169d72c70a5c9c76d59a07e0a78f2d4b507 | 959ef16587a72066c4031a953a2c942804df5512 | /neural_net.py | 49a56a066ccebdf6c63f8aba714ebb554ec8f6d4 | [] | no_license | jowe41/cs229 | 297a3c19d7faaae66048e23e3308a4eb7d770a83 | fa72dfded286405be1ecea849bdeefa97cf5538a | refs/heads/master | 2020-06-02T21:35:08.383339 | 2019-06-11T07:29:55 | 2019-06-11T07:29:55 | 191,316,388 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | from __future__ import print_function
from builtins import range
from builtins import object
import numpy as np
import matplotlib.pyplot as plt
from past.builtins import xrange
class TwoLayerNet(object):
def __init__(self, input_size, hidden_size, output_size, std=1e-4):
self.params = {}
self... | [
"yuey3@stanford.edu"
] | yuey3@stanford.edu |
647bd697f1a0cbbb05edc55913aeee0797062755 | 50b44b9cd86f0c8536663e85d18bd0c0215517ff | /programming/SecurityGames/test.py | c9d4e5659a537c5e1465438a8cf23163c8e2a4fb | [] | no_license | cschaffner/ModernCryptographyCourse | 1b5e5ef13d3f6458be7616ae158b54dd7b5efe37 | 88e7cfe3d67c93c7503554cb396dd674dfa37390 | refs/heads/master | 2022-10-22T11:50:47.999030 | 2022-09-19T06:47:58 | 2022-09-19T06:47:58 | 98,519,482 | 3 | 5 | null | 2019-09-01T19:49:26 | 2017-07-27T09:38:10 | TeX | UTF-8 | Python | false | false | 1,289 | py | import nacl.secret
import nacl.utils
# This must be kept secret, this is the combination to your safe
key = nacl.utils.random(nacl.secret.SecretBox.KEY_SIZE)
# This is your safe, you can use it to encrypt or decrypt messages
box = nacl.secret.SecretBox(key)
# This is our message to send, it must be a bytestring as S... | [
"huebli@gmail.com"
] | huebli@gmail.com |
ecb797705d4380b014ac224de86a2b3ca7fbe0de | 029b18378b54856f6982cf3a73982b5285c2ff57 | /assignment1/cs231n/classifiers/linear_classifier.py | 22b624caa7e1dbd171409817f28da4d614335f49 | [] | no_license | Allensmile/cs231n_Convolutional-Neural-Networks-for-Visual-Recognition | 15f07693757a439776e7da22f2ac4e2cf6f78611 | bbae799b71c533ffb52ff9248ce9c92cfa76be6e | refs/heads/cs231n-0821 | 2021-01-01T19:05:11.608175 | 2016-08-22T04:39:20 | 2016-08-22T04:39:20 | 98,504,340 | 1 | 0 | null | 2017-07-27T07:01:01 | 2017-07-27T07:01:01 | null | UTF-8 | Python | false | false | 6,325 | py | import numpy as np
from cs231n.classifiers.linear_svm import *
from cs231n.classifiers.softmax import *
class LinearClassifier(object):
def __init__(self):
self.W = None
def train(self, X, y, learning_rate=1e-3, reg=1e-5, num_iters=100,batch_size=200, verbose=False):
"""
Train this linear classifier ... | [
"brightmart@hotmail.com"
] | brightmart@hotmail.com |
b71f5823bdb10518efd51fc8632e0a4311b64fcb | 3993f4e8b254f23485a570fcfdc472fc6a216333 | /menu1.py | 6e77809013d3a7e140a03e78bfdf521776d59607 | [] | no_license | bipashaghosal/ATM_PROJECT | 8a6dc697627d4b3b43bbbd6f6601befe2e03da2d | 7b1f4bea63ba9d23c42373a283640218356c8ceb | refs/heads/master | 2022-10-16T09:47:17.085126 | 2020-06-12T17:10:42 | 2020-06-12T17:10:42 | 271,846,676 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | from login import login
from create_account import create_account
from read_file import read_file
from menu2 import clear_screen
accounts_list = read_file('Accounts.txt')
def menu1():
print('>>>>>>>>WELCOME<<<<<<<<\n')
choice = int(input('1) Login\n2) Create Account\n3) Exit\n\nchoice>> '))
if... | [
"noreply@github.com"
] | bipashaghosal.noreply@github.com |
c419a8b822ad2e4ef64abd24d7d521bdda0a2da5 | 64ab350920457caa85dac7aabb27ae285d89227e | /task 2/replacement_by_division.py | 43e6e9d1e2e4723136ecac5aac015a9c3f199e97 | [] | no_license | FlyOn21/test_finteh_consalt | 999e6c9cedbbf4bca04325fc840f969cc214edb7 | 9fb04398a68a2d0ec9c3522e81febcf04317fcb0 | refs/heads/master | 2023-06-12T07:16:14.628921 | 2021-07-02T02:02:52 | 2021-07-02T02:02:52 | 382,202,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | def replacement_by_division():
for char in range(11, 80):
if char % 3 == 0 and char % 5 == 0:
print("$$@@", end=' ')
elif char % 3 == 0:
print("$$", end=' ')
elif char % 5 == 0:
print("@@", end=' ')
else:
print(char, end=' ')
if __nam... | [
"zhogolevpv@gmail.com"
] | zhogolevpv@gmail.com |
758a2616fab81c1118c09b9281baa8ed60066916 | 95dc1426aa7b854e522f6ad5bcac97e7f7239c2c | /script/app.py | 97a485834d710efa1a6e4dbce52e95081a462a2d | [] | no_license | JIMhackKING/myBlog | d3eb1a5f18db6e93ec04f43e1026b3656c722a39 | 99e8d8988ccf5e97d74ab1f395e4934e406e1419 | refs/heads/master | 2020-12-02T22:23:47.611887 | 2017-07-27T05:30:20 | 2017-07-27T05:30:20 | 96,127,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | #-*-coding:utf-8-*-
#qpy://127.0.0.1:8080/
"""
This is a sample of WebApp
@Author JIMhackKING
"""
import bottle
from bottle import request, response, default_app, redirect
from bottle import run, debug, route, error, static_file, template, view
import sqlite3
import json
import md5
import threading
import os
#### 常量... | [
"a601767890@sina.com"
] | a601767890@sina.com |
50587e5954677e11ceae53851f78af9e5bcfa727 | 458ff3c3611bb969f96ff3d3e15108fa9ec88316 | /quiz/migrations/0004_auto_20201209_2057.py | 9ddaf47129300087df96cc291ab7fda68b428ff2 | [] | no_license | mayank5044/Navigus | 8164809d87c5f3112565549229327ea20d090898 | aa03a99583efe4b7e9e7d1cb4a450e559f36d475 | refs/heads/master | 2023-08-11T01:30:21.115338 | 2021-10-09T06:47:24 | 2021-10-09T06:47:24 | 414,919,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py |
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('student', '0002_remove_student_status'),
('quiz', '0003_result'),
]
operations = [
migrations.AlterField(
model_name='result',
... | [
"iutkarshyadav192000@gmail.com"
] | iutkarshyadav192000@gmail.com |
a515d75c4adddd090567a13c1ecba9d797734bb2 | 6803de534702eb311f298ea51c4736d5d0aeaa10 | /lvp/__init__.py | a712817a2f60a84889822bf3832930d80bc4a9c3 | [] | no_license | mmsobral/lvp | 4e2d6587be1d3344f39df7f3a9f38a5f3d30aa0a | b9d244f7f220a70d976fd772ef569a5acf2fd73e | refs/heads/master | 2020-12-24T09:08:26.126330 | 2019-08-12T17:08:53 | 2019-08-12T17:08:53 | 73,304,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | __package__ = __name__
| [
"msobral@gmail.com"
] | msobral@gmail.com |
baed34dff5b6291a245a5b0525a858aeba9dc2b8 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/FwupdPlugin/FirmwareClass.py | 41cfcb07d1b2a17378eab46a1dbbc60611507f68 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 5,303 | py | # encoding: utf-8
# module gi.repository.FwupdPlugin
# from /usr/lib64/girepository-1.0/FwupdPlugin-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attrib... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
3dacf8f46746f65ab751afcfc711af745c7e18e3 | c4b9347346f21dd3d21a722b6b4e46f39bb1ea45 | /Django Tutorial for Beginners - 32 - UpdateView and DeleteView/thenameoftheproject/music/views.py | 80c27b8436ce1553e95a951ba07f1e6193f2e53b | [] | no_license | salahtobok/Django-Tutorial-for-Beginners- | 0ca73e85b202188f0de63a7a4e32838a1e477638 | ecbaa7f2518ac22d902b94483281c6cffc0123ae | refs/heads/master | 2021-06-28T03:42:23.513945 | 2020-01-20T20:03:24 | 2020-01-20T20:03:24 | 235,185,873 | 0 | 0 | null | 2021-06-10T22:30:15 | 2020-01-20T19:50:10 | Python | UTF-8 | Python | false | false | 1,985 | py | from django.shortcuts import render
# Create your views here.
from django.http import Http404
from django.http import HttpResponse
# from django.shortcuts import render, get_object_or_404
# from .models import Album, Song
#
#
# def index(request):
# all_albums = Album.objects.all()
# context = {
# 'all... | [
"salahtobok1@gmail.com"
] | salahtobok1@gmail.com |
d306b8f94c038f7897496da1ee2c40d1caafe459 | 82ed4adb96f6a134f51cc2eb33a13730badbb993 | /3_5_6_xfail_test.py | 1ac803d029b7ed6cf1191898562cb14d300b159c | [] | no_license | yesandv/webdriver | 527ed3248c2fa2e8a0d670684c21ce62cbd71d7b | 62a12672f94cab5d5a16558027ea804b307a4116 | refs/heads/master | 2023-06-20T21:10:18.102129 | 2021-08-01T16:20:51 | 2021-08-01T16:20:51 | 351,724,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | import pytest
@pytest.mark.xfail(strict=True)
def test_succeed():
assert True
@pytest.mark.xfail
def test_not_succeed():
assert False
@pytest.mark.skip
def test_skipped():
assert False | [
"grc@protonmail.com"
] | grc@protonmail.com |
944140c7bba8ea526c0edc0595e380ce65ebcc98 | 690e8f0a853c1f27bae688f021e8c27e62ca9613 | /auth/auth/settings.py | 9d8a145494269d4ab9cebf00c17bb3722ad9be69 | [] | no_license | MaksimLion/django-rest-authentication | d77c8b59e89c80a9f8c98fb7b038bebb431ffc0e | 8445354f761d0624a97faa490d8872be5994da5e | refs/heads/master | 2020-05-04T15:16:51.320819 | 2019-04-03T08:22:16 | 2019-04-03T08:22:16 | 179,233,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | """
Django settings for auth project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"maxim226356@mail.ru"
] | maxim226356@mail.ru |
f14b168641ff27e660651bf22652a3ef55c54749 | 3c4aa6f3982665a1abf2ef102089e55b5e121e0f | /Mnist数据集/complete/mnist_inference2.py | 165a220d75d59af077d85b22334f02cc415a09bc | [] | no_license | ICDI0906/Tensorflow-Google | ceeecad6ec7d27c8e04674a864d978b076b94797 | 689bcd7d92f2382b08bbc61e65ad159d8c0d0667 | refs/heads/master | 2021-10-23T03:19:55.249653 | 2019-03-14T13:35:10 | 2019-03-14T13:35:10 | 140,812,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | import tensorflow as tf
INPUT_NODE = 784
OUTPUT_NODE = 10
LAYER1 = 500
def get_weight_variable(shape, regularizer):
weights = tf.get_variable("weights",shape=shape,initializer=tf.truncated_normal_initializer(stddev=0.1))
if regularizer is not None:
tf.add_to_collection("losses",regularizer(weights))
... | [
"18217060267@163.com"
] | 18217060267@163.com |
a34c7393b58e61df1bc7b5856b3712bc68f4527a | 7eae4148338af0c2a3d0ea666a893c7de68aa3e6 | /keys.py | 90879e935769c90763761e36c8fffc68c64fc688 | [] | no_license | ObiekweAgbu/ContextClassify | 12052aa07bdc583b8ba9a1d217a9416ed422a443 | 76bf6d6f2f500cbf8f6c563db9f938f70a95d04e | refs/heads/main | 2023-04-25T01:44:17.603720 | 2021-05-11T12:48:24 | 2021-05-11T12:48:24 | 349,819,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import os
# Set environment variables
os.environ['API_KEY'] = 'GezgtbamkKSyd6ymdDDVtdRPl'
os.environ['API_SECRET_KEY'] = 'YpLyWbVJ3RHE401TjWQly9CJDldeesMdaBgUPyB5LXE2ZuhdHN'
os.environ['API_TOKEN'] = '1326464693834280960-hkbFL3ucoGwjarDJDeb2cSyvJe1vRY'
os.environ['API_SECRET_TOKEN'] = 'ydkGGjXZcLroXcjIKmrKuGkxoC... | [
"noreply@github.com"
] | ObiekweAgbu.noreply@github.com |
ec23e68cc6c87bc920ff4577ae5baee9a4223ce1 | 5bafbb876741c44b2862b4e1ce7268a16dedbe88 | /communities/discussion/migrations/0009_question_answered.py | 37980e7472e192494cb4338c72833e01080152d3 | [] | no_license | mostafa-yasen/MedicalHub | 89013f4318be6da1915ca8979922e7d4dab33a18 | 9e03930680bc60bc22b99e6c1cd5847afed0df03 | refs/heads/master | 2020-05-07T14:42:39.179653 | 2019-04-11T01:38:36 | 2019-04-11T01:38:36 | 180,605,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.2 on 2019-04-09 20:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('discussion', '0008_question_asked_to'),
]
operations = [
migrations.AddField(
model_name='question',
name='answered',
... | [
"mostafa.ys2014@gmail.com"
] | mostafa.ys2014@gmail.com |
77f79dcd257d593e5b55849e752763859c88ce62 | 065264a7330d8b6697c1dfa4f440f69652fd893d | /meritapp/apps.py | 126d684357493267509a3daa611c1faf69819ca7 | [] | no_license | pradeepreddyDev/meritstepfinal | 491ba0e3e91f779ed78e467a94245e13f71ff7ff | 4e44691044c4cfa24f185024a5b67c03560695bb | refs/heads/master | 2020-09-09T00:23:55.231896 | 2019-11-12T18:46:00 | 2019-11-12T18:46:00 | 221,287,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class MeritappConfig(AppConfig):
name = 'meritapp'
| [
"pradeepnagireddy.it@gmail.com"
] | pradeepnagireddy.it@gmail.com |
d1bdc816ef14dbb9698a37af082dbc2f665ef045 | 434b6556038ad326ffaa8584a8a91edf8ad5c037 | /BST-1/CheckBST-1.py | 6677cdfe3c533653ccfc336a478ee2090bd1405b | [] | no_license | Pranav016/DS-Algo-in-Python | 60702460ad6639dd3e8a1fdc3caf0821b8e0b4c2 | 5557e371ccdf801d78ba123ca83c0dd47b3bdb3b | refs/heads/master | 2023-01-23T08:29:32.186861 | 2020-11-01T17:14:12 | 2020-11-01T17:14:12 | 284,651,382 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | import queue
class BinaryTreeNode:
def __init__(self,data):
self.data=data
self.left=None
self.right=None
def minimumNode(root):
if root is None:
return 1000000
leftMin=minimumNode(root.left)
rightMin=minimumNode(root.right)
return min(root.data,leftMin, rightMin... | [
"pranavmendi@gmail.com"
] | pranavmendi@gmail.com |
1883933cded781cbbdc66741fd1229fef1b0c92d | 1d98f0a85b6567ddce113005f3b775f51a59889e | /tests/unit/prettier_budget_test.py | de69cef75d11f72a104132c031aa77cd1552f7ca | [] | no_license | ZayaanS/FlaskEcom | 7f2a21ccfe9f055c61861f69277f57b8cb5b0a4c | f92d8157982d141807bc97fa36ab1b319ceec727 | refs/heads/master | 2023-05-28T07:58:22.360221 | 2021-06-09T14:39:07 | 2021-06-09T14:39:07 | 374,920,695 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import sys
sys.path.append('C:/Code/FlaskEcom/market')
from unittest import TestCase
from market.models import User
class PrettierBudgetTest(TestCase):
def test_prettier_budget(self):
# test prettier_budget method works as expected
budget = User(id=1, username='Kate', email_address='kate@gmail.com'... | [
"zayaandots@gmail.com"
] | zayaandots@gmail.com |
b9236b5f5db2103f8436fcd8d033b9af99595d59 | 5ec1657631cd5afdd355cbee8ea0856e09130b24 | /problem_015.py | d7701e017902ab788f3ff99fb1166cfede22d7fb | [] | no_license | altruistically-minded/euler | 38fcc62476cbc8cfc78e928f33cc37721ca0cb6a | 5c122c810bc1c0d487318b71288b45acefd1c465 | refs/heads/master | 2020-04-05T23:47:31.645732 | 2014-05-22T00:52:06 | 2014-05-22T00:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
Problem 15
Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner.
How many such routes are there through a 20×20 grid?
"""
"""
Answer:
combination(20 + 20 , 20)
for each row, can go down or right (20 + 20).
T... | [
"altruistically.minded@gmail.com"
] | altruistically.minded@gmail.com |
611406af2b0cb0a2b943ea946aaaee2864873723 | 43044e1f89bacc06d662b21d32515526607817a2 | /main_dir/timer_adder.py | 912a67e1962c558835be87db34c3306ced447207 | [] | no_license | Arlanuy/ERSSNP_CPU_GPU_Framework | b4d32fb813f983dba64b1b1e65b3901dd1ce2cd6 | 668811cd81875e2bf5e2338390c783a855fb3422 | refs/heads/master | 2022-07-10T09:19:32.439601 | 2021-07-10T20:15:46 | 2021-07-10T20:15:46 | 240,605,471 | 3 | 0 | null | 2022-06-22T01:09:10 | 2020-02-14T21:57:52 | Python | UTF-8 | Python | false | false | 6,846 | py | import os
timer_adder_out = open(os.getcwd()+ "\\time_test", "w+")
tutorial_time = True
if tutorial_time == True:
num_runs = 1
timer_test = open(os.getcwd()+ "\\timer_directory\\test_cpu", "r")
time_input_files = [timer_test]
#with alternating index
else:
num_runs = 5
time_reader_and_minimal = open(os.getcwd()+... | [
"gnhs.com@gmail.com"
] | gnhs.com@gmail.com |
9e8f02286343b88e49f70398747aff50e4f53759 | 16c6990c7fcae53f29fd4c746a3b61dc7574d5eb | /venv/bin/django-admin.py | 1b129bd6bf00e2d6991318280ddb8c0453a91e5e | [] | no_license | rafaoncloud/web-games | a881d76c15ac1b0fbe4ac6793bac6e793070c953 | c47b3e8bac741442b37fc4b13076e6bb68507da7 | refs/heads/master | 2020-06-25T05:45:01.823407 | 2019-07-29T14:46:42 | 2019-07-29T14:46:42 | 199,218,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | #!/Users/rafa/Documents/Python/web-games/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"rfchenriques@gmail.com"
] | rfchenriques@gmail.com |
3076cc6c084b59d448ca92e14d62a2868afd2b1a | e17ba7430ed4cffb7e36250c63b7f5065c58906d | /tests/test_gtkui.py | fabcfc18b97573b38fc3a9a6e2072561fe1181cd | [] | no_license | xentaos/ubiquity | 61a9f7c505d498ee0b74fae3518148042fff933c | f59fd4b148fbb813910c7c959a9ca3905db15675 | refs/heads/master | 2021-05-06T14:47:52.327577 | 2017-12-06T18:53:57 | 2017-12-06T18:53:57 | 113,322,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,967 | py | #!/usr/bin/python3
# -*- coding: utf-8; -*-
from __future__ import print_function
import os
import unittest
import mock
class TestFrontend(unittest.TestCase):
def setUp(self):
for obj in ('ubiquity.misc.drop_privileges',
'ubiquity.misc.regain_privileges',
'ubiqui... | [
"root@dev.xentaos.org"
] | root@dev.xentaos.org |
971d78b4044e0de6879f9bd50f21573931290504 | d3575a503e4139e7e1d6f4e5af29fd01749b86a9 | /code-arcade/loop-tunnel/Least Factorial/solution.py | 272e593b782f22d650c5f582b691856a5659af5c | [] | no_license | Vippsi/CodeSignalQuestions | bce2eb5a3d4e31fadd60961602fa4e8f232973f4 | 440fcfccd90dcdc97e1b05c9942f1e9a0a3f1f5a | refs/heads/main | 2023-07-28T08:10:02.786099 | 2021-07-27T23:11:32 | 2021-09-08T23:11:32 | 403,161,034 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | def leastFactorial(n):
if n <= 1:
return 1
for i in range(10):
if math.factorial(i) >= n:
return math.factorial(i)
| [
"jonathanthornton1997@gmail.com"
] | jonathanthornton1997@gmail.com |
857789804aca204e8e467a115f1a3c10216ac456 | eb827d7993b146cf507b57a45e420fffdf641eef | /tinkoff/2020/fft/a.py | 860f7a11660031591561d661119275d2456cb99c | [] | no_license | khbminus/code2020 | dfdbcae71d61d03d4457aad47ff7d4136e6fcc1e | a0d2230b0905df79ba78cb98353f4ba03f16e8b0 | refs/heads/master | 2023-07-16T16:08:20.629283 | 2021-08-29T20:35:14 | 2021-08-29T20:35:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | n = 250_000
print('9'*n)
print('9'*n) | [
"serega.haritontsev@gmail.com"
] | serega.haritontsev@gmail.com |
09aaa405b37bb8ca7ad4117a907052bd428fc3bb | 2008330a9b94c949c06c4ce7e9c9986e5f14bdda | /my_work/excel_finder/excel_finder.py | 47e39b915e22bf25b9c6a780d99706242db361d7 | [] | no_license | hermi99/python_study | d7c3c16549a4acaa32348ef2bcd9a4229acb5558 | bc09a076e0b33348f5f423abdeea42613b8d8572 | refs/heads/master | 2020-04-16T22:51:55.163889 | 2019-07-05T06:56:53 | 2019-07-05T06:56:53 | 165,987,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | import os
import re
import xlrd
from xlsxwriter.utility import xl_rowcol_to_cell
class ExcelFinder:
def __init__(self, dir_names):
self.dir_names = dir_names
self.excel_files = self.find_excel_files(self.dir_names)
def find_excel_files(self, dir_names):
excel_files = []
... | [
"noreply@github.com"
] | hermi99.noreply@github.com |
bb5dd6114947f43387e98492fbbee3d8c7eeeaa3 | 148ea30a45676e77a96822711ac683237361c116 | /course/exercises/2.klasifikacija-na-dokumenti/3.klasifikacija-na-komentari-na-filmovi.py | ac1408d2720805f0020ff69a154e731cfe328ca4 | [] | no_license | marioanchevski/SNZ | d0d0994967482794bab2d33f88abe56d2a3a1ff2 | d4dfabecd88f8e116cebdaf9b4e73236834a6554 | refs/heads/master | 2023-02-25T15:38:06.291069 | 2021-01-29T21:35:57 | 2021-01-29T21:35:57 | 315,758,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,722 | py | """Класификација на коментари на филмови со клучни зборови Problem 5 (1 / 2)
Во променливата data дадено е податочно множество од коментари за филмови кои се означени со сентимент. Документот може да има негативен (0) или позитивен (1) сентимент. Направете два класификатори на Наивен баес. Првиот класификатор треба да ... | [
"marioancevski25@gmail.com"
] | marioancevski25@gmail.com |
7b52bfbc8d308b9c74054bab3dae598640de80b8 | cd486d096d2c92751557f4a97a4ba81a9e6efebd | /16/addons/plugin.video.moviedb/resources/modules/sgate.py | 005822886551a515de00ccbea6b9c9440d95515e | [] | 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 | 12,146 | py | # -*- coding: utf-8 -*-
# moviedb Series Gate TV SHOW Module by: Blazetamer
import urllib,urllib2,re,xbmcplugin,xbmcgui,sys,urlresolver,xbmc,os,xbmcaddon,main
from metahandler import metahandlers
try:
from addon.common.addon import Addon
except:
from t0mm0.common.addon import Addon
addon_id = 'plu... | [
"esc0rtd3w@gmail.com"
] | esc0rtd3w@gmail.com |
955fbd87df618349dc3bfcaebc09f46eab754c13 | a4ab77ffe89149e47a7106746ac2ed712e2ef99b | /alignmentrs/aln/funcs.py | 779890d5f2fc2d4fb3ab08266585ef25faeee390 | [
"MIT"
] | permissive | kentwait/alignmentrs | 814f2b2b6e95495d3f7f250f6a83086160507abe | ab4ed6bae7ad0f7961104baf914bb6b49dc28d88 | refs/heads/master | 2020-04-19T08:53:49.468347 | 2019-02-15T08:00:57 | 2019-02-15T08:00:57 | 168,092,487 | 1 | 3 | MIT | 2019-02-14T07:14:20 | 2019-01-29T05:05:09 | Python | UTF-8 | Python | false | false | 883 | py | from libalignmentrs.alignment import fasta_file_to_basealignments
from alignmentrs.aln import Alignment
__all__ = ['fasta_file_to_alignment']
def fasta_file_to_alignment(path, name, marker_kw=None):
"""Reads a FASTA formatted text file to a list.
Parameters
----------
path : str
Location of... | [
"kentkawashima@gmail.com"
] | kentkawashima@gmail.com |
9b868d075d4f0c038d4800e75f526d857c347a44 | 2a77e0bf442d675101db8d680d3e5ccef79cce04 | /cms/migrations/0003_auto_20150621_1734.py | 18612793a6a046214801d79fff97b4f5f7e30f92 | [] | no_license | zhufree/moocsys | 7d50a32cc52745c703ff5ab09e760978b9a51cd7 | b66e5aa5e053f948b418d2911a5343f8e7fa7245 | refs/heads/master | 2021-01-10T20:11:08.460497 | 2015-07-05T12:35:27 | 2015-07-05T12:35:27 | 37,803,290 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cms', '0002_auto_20150621_1732'),
]
operations = [
migrations.AlterField(
model_name='discuss',
name... | [
"zhufree2013@gmail.com"
] | zhufree2013@gmail.com |
3385c8014e021d32bc15079091ad8cde2089b96d | 628818cb44e9122b241aa6930ce313858d152c99 | /geocoordinates_assignment/asgi.py | 34ec4024736aa7332cf8cb553cab16c45454963d | [] | no_license | aarti98/verloop-assignment | 843b24bb4a69e2b3508c04a1f38a1971d71eb5a7 | 4842883673ce92fcd5ea4f2a009930498a603606 | refs/heads/main | 2023-03-22T12:37:23.665991 | 2021-03-21T09:21:02 | 2021-03-21T09:21:02 | 349,804,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
ASGI config for geocoordinates_assignment 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdef... | [
"aartij1998@gmail.com"
] | aartij1998@gmail.com |
76f5af84fbd35b8169fa79d19c04247b0d84fd00 | 504c9c2b0d29d946079e11644761ad354fc79715 | /_build/jupyter_execute/B_資訊設會必修的12堂Python通識課_何敏煌_博碩_2019/ch08.py | f2a128622353e50d7e7e751299228a9b37946c13 | [] | no_license | AaronCHH/jb_pysqlite | 2b5b79327778705f8a941b0c5628e9eba0f5be2a | 832a70b936800a380c1da0884eed9f7fa0dc2aee | refs/heads/main | 2023-03-12T23:17:22.534445 | 2021-03-06T15:51:10 | 2021-03-06T15:51:10 | 340,876,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,816 | py | # Ch08 操作資料庫
#顯示學生成績表
import sqlite3
dbfile = "school.db"
conn = sqlite3.connect(dbfile)
rows = conn.execute("select * from score;")
for row in rows:
for field in row:
print("{}\t".format(field), end="")
print()
conn.close()
#輸入學生成績
import sqlite3
dbfile = "school.db"
conn = sqlite3.co... | [
"aaronhsu219@gmail.com"
] | aaronhsu219@gmail.com |
67c962e796f88822348a6f5d8befd69df944adae | c8d37f4cb24dc3d3cdbb42f844807cf788da3169 | /week1.py | 89805b1630671f0c901cd1e01be49b4677c90f9c | [] | no_license | juraj80/Applied-Data-Science-with-Python | 6cd3f666408c4fa13b5132a6c147389fe1ca5e2a | ecd5fce8ec36e1a832515faaef9bbc6b4c0c344f | refs/heads/master | 2021-06-13T19:33:07.882336 | 2017-03-23T20:11:44 | 2017-03-23T20:11:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,898 | py |
# coding: utf-8
# ---
#
# _You are currently looking at **version 1.1** of this notebook. To download notebooks and datafiles, as well as get help on Jupyter notebooks in the Coursera platform, visit the [Jupyter Notebook FAQ](https://www.coursera.org/learn/python-data-analysis/resources/0dhYG) course resource._
#
... | [
"juraj80@github.com"
] | juraj80@github.com |
5f46d90b312cf0d3a4a5c46acbcac5799eaec7b9 | 1c33be973ded4f075cdddf18cc275a8b4e42b282 | /recinfo/bin/python-config | 6fa6e9cc3dd321bb55695373a7ca822fab5da6ef | [] | no_license | pedrohcm/ri_lab_01 | 7614e5e0de5c355a832c35c426bd4b5197d87df1 | 004729e832e243eb9ebf1ac476cfee8831ffb353 | refs/heads/master | 2020-05-04T16:49:38.982522 | 2019-06-13T22:42:38 | 2019-06-13T22:42:38 | 179,289,285 | 0 | 0 | null | 2019-04-03T12:51:20 | 2019-04-03T12:51:19 | null | UTF-8 | Python | false | false | 2,353 | #!/home/pedrohcm/RI/ri_lab_01/recinfo/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.versio... | [
"pedrohcm@lcc3-099.lcc.ufcg.edu.br"
] | pedrohcm@lcc3-099.lcc.ufcg.edu.br | |
c63a4270aaeefd93934953d35eb9f8f3316bf194 | 8e52c27f1b2823db67db4438b2b7e22c18254eca | /gluon/gluoncv2/models/alexnet.py | 626397e4fda1fb1630db7caf578a3149a8c93c39 | [
"MIT"
] | permissive | earhian/imgclsmob | 5582f5f2d4062b620eecc28d5c4c9245fea47291 | c87c0942420876941868c016211073dec4392e4d | refs/heads/master | 2020-04-12T02:13:55.258601 | 2018-12-17T20:38:19 | 2018-12-17T20:38:19 | 162,242,486 | 1 | 0 | MIT | 2018-12-18T06:40:42 | 2018-12-18T06:40:41 | null | UTF-8 | Python | false | false | 8,438 | py | """
AlexNet, implemented in Gluon.
Original paper: 'One weird trick for parallelizing convolutional neural networks,'
https://arxiv.org/abs/1404.5997.
"""
__all__ = ['AlexNet', 'alexnet']
import os
from mxnet import cpu
from mxnet.gluon import nn, HybridBlock
class AlexConv(HybridBlock):
"""
Ale... | [
"osemery@gmail.com"
] | osemery@gmail.com |
b81f41162f15e29f8b808b8521fb7a1cf808a28c | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /sale_crm/__manifest__.py | 2ee01b74f3caf0f9facf83b0f88b9115a413b705 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
{
'name': 'Opportunity to Quotation',
'version': '1.0',
'category': 'Hidden',
'description': """
This module adds a shortcut on one or several opportunity cases in the CRM.
=============================... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
484644bbb880fdcf085f5e5d6641f10a5231a625 | 08bfc8a1f8e44adc624d1f1c6250a3d9635f99de | /SDKs/swig/Examples/python/varargs/runme.py | fe1e28e881e6fbf9f29462308bf61efca2de0209 | [] | no_license | Personwithhat/CE_SDKs | cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02 | 7afbd2f7767c9c5e95912a1af42b37c24d57f0d4 | refs/heads/master | 2020-04-09T22:14:56.917176 | 2019-07-04T00:19:11 | 2019-07-04T00:19:11 | 160,623,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f2ae65c42f8358298afb53751299f1957fed0218e6a36f16022a63aa74858f95
size 705
| [
"personwithhats2@Gmail.com"
] | personwithhats2@Gmail.com |
23d8ee0a3400d9351c2e6d880f263452d609f8e5 | 9ae4adfcc523a0d1918bb4a76c2a1bfa13c59b4d | /PobarajOglasi.py | e359d9d4cc7994f93118a5b2eb7abee3d5c7f6e6 | [] | no_license | PsyLee/scrapers | 614dafdb1f34774c4d60daf7c0cbd1085bc8c046 | 211d03ad1da6efe7fe2722add7edc9eb57e16474 | refs/heads/master | 2021-01-19T12:42:15.907856 | 2017-02-17T19:53:31 | 2017-02-17T19:53:31 | 82,331,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,308 | py | #!/usr/bin/env python
# coding: utf-8
import sys
from Downloader import Downloader
from webscraping import xpath
from Utilities import getDescription
from Utilities import adsToJson
from Ad import Ad
from datetime import datetime
from datetime import date, timedelta
from locale import currency
from PyQt4.Qt ... | [
"smiley.mk@gmail.com"
] | smiley.mk@gmail.com |
71c9a2cc2b4feb92d6aeebfee0db8c5c8e0099a6 | 6a09460fbff90a99ae6002057ec7dc65bbacf727 | /preprocess.py | 189a7753fa6899a6e0a3215b5067d9ac178effa4 | [
"Apache-2.0"
] | permissive | nickgerend/OntheMove | 6ebc683f6d28ef024d7cdd865482478ac0cbe056 | 956f9a0413480aabd74ba95c4c4288f51d4f0329 | refs/heads/main | 2023-01-29T22:57:43.363592 | 2020-12-14T04:13:00 | 2020-12-14T04:13:00 | 321,228,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | # Written by: Nick Gerend, @dataoutsider
# Viz: "On the Move", enjoy!
import pandas as pd
import numpy as np
import os
import numbers
class flow:
def __init__(self, state_id = -1, state_id_source = -1, value = -1, direction = ''):
self.state_id = state_id
self.state_id_source = state_id_source
... | [
"nickgerend@gmail.com"
] | nickgerend@gmail.com |
0ce3c9cbc9d4b469edd31794a02179b8676cf857 | 043178ecc37e8d14ea4387f0b332e562c7ce7cf5 | /game.py | 9acc6f1eafe48b4c555651bb7d424e3e8c91e09f | [] | no_license | ChristopherMeneses/CPSC-386-Project-3 | 13876e64085655bd3aae2ea42f06ecdff6d300cf | bda85cec1baaf719fecac41af140132f23276a76 | refs/heads/master | 2021-05-07T01:41:52.714288 | 2017-12-04T00:42:25 | 2017-12-04T00:42:25 | 110,380,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,100 | py | #Project 3 - CPSC 386 - MW 5:30 PM
#AMMU - Danial Moahmmad, Felicia Aubert, Annette Ulrichsen, Christopher Meneses
#Platformer - goal is to find the princess
#Sources: Anthony Biron - https://www.youtube.com/channel/UCy0eKoY5BVtcJHFQGKVe1yg
#ChiliGames - Knight images - https://opengameart.org/content/knight-and-knight... | [
"noreply@github.com"
] | ChristopherMeneses.noreply@github.com |
c349a23b05207454c50dc53da385c0f8d8822ee9 | b3edb28272b2c064f7302e8ec52f0140292d21d7 | /pipeline.py | fbfd95a1c26c4970d3d3afa5392c6cdf60baa6e3 | [] | no_license | mattmiller899/LSTM_app | 4cdadc62e67c2e7a1c923def493b765c22ecf7e0 | ae599e5157f69be827a841d1f46681baaf5d78ea | refs/heads/master | 2020-04-03T17:45:54.566811 | 2018-10-30T21:21:35 | 2018-10-30T21:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,525 | py | import sys
import numpy as np
import argparse
from preprocess import *
def get_args():
parser = argparse.ArgumentParser(description='Generate n-grams and GloVe vectors')
parser.add_argument('-k', dest='k', type=int, default=6, help='Length of kmer')
parser.add_argument('-s', dest='s', type=int, default=2, ... | [
"mattmiller899@login3.cm.cluster"
] | mattmiller899@login3.cm.cluster |
3eac202a15e7925e0dda2c104389112a52b42967 | 0bfc74145835d49068a721ad05184ced140392be | /localx.py | 8db1de647f71a98c86ae848422335effa7b4d923 | [
"MIT"
] | permissive | rencoder/Jupyter-Notebooks | 5110b4e504d261487b3ebd548232c3c2cde97353 | aa53cd7fc14b6ab9c0e0e7223a0dcb256cc8fbca | refs/heads/master | 2022-02-22T17:39:15.699113 | 2018-12-16T14:37:46 | 2018-12-16T14:37:46 | 83,718,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | import spacy, alg
from scipy import sparse
from alg import dphs, dtls, outphs, nlp
from sklearn.metrics.pairwise import cosine_distances, euclidean_distances
from sklearn.feature_extraction.text import TfidfTransformer, TfidfVectorizer
print "Loading complete."
def glem(x):
d = nlp(unicode(x))
return " ".join... | [
"noreply@github.com"
] | rencoder.noreply@github.com |
0743a4b391e3f2f6b183b0a8e8edfc654b8a1ece | 9ce0159c84ac4e63dbd7d4f8593ff1f7a5c3ae9d | /jblog/bin/markdown_py | 47320103d1d0c96c10fa005ee678ec3206b58081 | [] | no_license | cvanderbush/cvanderbush.github.io | 8c7af21f4bbbfcbcc14bccb2d207eea883a41e45 | 89958814e8b5cd24f23981e0bfcf5f05d89f9c9a | refs/heads/master | 2021-08-14T13:33:33.615612 | 2017-11-15T21:01:50 | 2017-11-15T21:01:50 | 110,868,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | #!/Users/carl/github/cvanderbush.github.io/jblog/bin/python3.6
"""
Python Markdown, the Command Line Script
========================================
This is the command line script for Python Markdown.
Basic use from the command line:
markdown source.txt > destination.html
Run "markdown --help" to see more opti... | [
"carl.vanderbush@gmail.com"
] | carl.vanderbush@gmail.com | |
d4c9f65b91264b74274254e5de4ecd7a15110a30 | f038f701cd9c8b6ef646c83275f4f81a5104be1a | /demo03.py | 6a6a0be001eee378ccd1993e5e4f2901b8deab46 | [] | no_license | wang-yating1995/wyt-office | 8052c96e0dc921af0c5891985dce79a3b46cb174 | 91d823201cb8fc90a4d46b470e348c95f33b7b8b | refs/heads/master | 2022-12-13T06:37:04.134118 | 2020-09-08T10:29:54 | 2020-09-08T10:29:54 | 290,373,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | from test.a import b
print(b) | [
"1103120302@qq.com"
] | 1103120302@qq.com |
a7d224c883d330dc4e25fc718ee44cf83213c069 | 2c77676a38b8fb62e7aaee85ac04c41435af7f52 | /samples/benchmarks.py | ee129006e0ab2137dd570cd49a6e27c6e5954535 | [
"MIT"
] | permissive | Azure/azure-data-lake-store-python | 6e083289b575830e9d02123c01cc5bbb7430cd98 | b44a68d213288b0caa3cc60c9517277ced93b309 | refs/heads/master | 2023-08-28T22:32:55.873164 | 2023-04-24T19:30:51 | 2023-04-24T19:30:51 | 62,902,455 | 81 | 77 | MIT | 2023-04-24T19:30:53 | 2016-07-08T16:31:32 | Python | UTF-8 | Python | false | false | 8,579 | py | from __future__ import print_function
import functools
import hashlib
import logging
import os
import shutil
import sys
import time
from azure.datalake.store import core, multithread
from azure.datalake.store.transfer import ADLTransferClient
from azure.datalake.store.utils import WIN
from tests.testing import md5sum... | [
"begoldsm@microsoft.com"
] | begoldsm@microsoft.com |
3eeb174ed996dc804605eeb4676938567646c899 | 205b602b45e9e81df515bb12234c8ac014576bdd | /풀이/1/연습문제1-1.py | 3ebf5114a231c32e31db8dc006dec049acc3fb7c | [] | no_license | DongGeon0908/python_basic_algorithm | bc1745b9d9b8c7b19a3277f2734b63d7d14a8272 | 0b29dcfb53d2b17bb630eebf9319991cd5ae69fb | refs/heads/master | 2023-01-04T18:17:47.855981 | 2020-10-12T05:30:00 | 2020-10-12T05:30:00 | 294,415,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | def sum(n):
output = 0
for i in range(1,1+n):
output = output + i*i
return output
print(sum(5))
| [
"noreply@github.com"
] | DongGeon0908.noreply@github.com |
0592c15f4d126bbd32ef99d56ba758dc6a24ac90 | eed7e01d9e381e84da33b11e1475bebb0afc8615 | /MNIST/NN.py | 0d863fa141e45e13fb6ed86d01364683bb8f86bf | [] | no_license | JensenQi/lab | 1f1974848a3d29dfd79b721bbb227141798fa085 | b21e7352443dac150745893b99676d6610c3e16f | refs/heads/master | 2021-06-19T23:49:49.257371 | 2017-08-02T17:00:47 | 2017-08-02T17:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 05 17:42:10 2014
@author: Administrator
"""
from numpy import *
from MNISTData import *
trainingData, trainingLabel, testData, testLabel = getData()
hit = 0
for sample in range(10000):
# sample = random.randint(0,10000)
testPoint = testData[sample,:]
distanc... | [
"SuiterChik@gmail.com"
] | SuiterChik@gmail.com |
734748a7d00403f32a4378d028e322462aeeabe3 | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200421_python2/day14_py200606/tuple_1.py | c02f948ae526bf8546174abec4408a4458357833 | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | """
tuple
read-only list
"""
# create a tuple
my_tuple1 = (1, 2, 3, 4, 5, 6, 7, 8)
print(my_tuple1)
my_tuple2 = ()
print(my_tuple2)
# create a tuple with only one element
my_tuple3 = (1)
print(my_tuple3)
my_tuple3 = ('abc')
print(my_tuple3)
my_tuple3 = 1
my_tuple3 = (1,)
print(my_tuple3)
# create nested tuple
my_tu... | [
"lada314@gmail.com"
] | lada314@gmail.com |
ca522f202ed49ef06a6e38688ef772194e821554 | 31f8ca4db5f4d1cdb31cdd9d7ec509e97ec4596a | /plgx-esp/polylogyx/utils.py | 3aaf97a6ae948efca093c194a7d8dd4a0e54a74f | [
"MIT"
] | permissive | preetpoly/plgx-esp | 076b13c1d9804b0a354d6304cb5945cbc4105d80 | ef03fbec2f875cc7a84db5eb2e0972c614747a9d | refs/heads/master | 2020-09-11T02:36:44.699716 | 2019-11-14T10:17:33 | 2019-11-14T10:17:33 | 221,913,093 | 0 | 0 | MIT | 2019-11-15T11:45:06 | 2019-11-15T11:45:06 | null | UTF-8 | Python | false | false | 22,746 | py | # -*- coding: utf-8 -*-
import ast
import datetime as dt
import json
import sqlite3
import string
import threading
import uuid
from collections import namedtuple
import jinja2
from jinja2 import Markup, Template
from operator import itemgetter
from os.path import basename, join, splitext
from flask_mail import Messag... | [
"moulik@polylogyx.com"
] | moulik@polylogyx.com |
3348fdcc7921ae5ff3b1d096abd5c91d23e56d2c | 287d35c59665030109ad91c8872cbd356056810a | /models/soil/deliverables.py | a25627e4832fe0dfd26ad5ad70d096f359f8084f | [] | no_license | nicetech-creator/agritecture-v2 | d63573eb6e0e1abee8c157893c54c1f1ad243106 | 74f6f1bcc72dd48c67691ae7bb99dd34651660c4 | refs/heads/master | 2023-03-17T12:22:15.892900 | 2021-03-17T18:30:20 | 2021-03-17T18:30:20 | 348,546,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,464 | py | from connection import fetch_one, fetch_all
from cachetools.func import ttl_cache
from caching import hashable_cache
from util import parse_inputs, preload_outputs, quantize_outputs, set_if_unset
import math
from models.soil.input.land_status import Soil_Input_Land_Status
from models.soil.sizing.area import Soil_Sizin... | [
"toptech20190609@gmail.com"
] | toptech20190609@gmail.com |
f4f14f8d9e87b48ae2a849923822030a6333cbdc | 9e4e829db6d4197764c9e71f3ca65dacc5792c8f | /sudoku.py | 648081e7c55d3995a15842f3214fda4d0cf26907 | [] | no_license | en-chang/sudoku | c48d6f66d04bf0426d84d41c2ab7967d76764c31 | 1e0e46421a2cfb7f9e289aed5e8f72e6e6687d46 | refs/heads/master | 2022-10-23T09:11:39.163457 | 2020-06-15T19:05:00 | 2020-06-15T19:05:00 | 266,910,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,712 | py | import requests
import json
import time
import pprint
# Delay to make display slower
def delay():
time.sleep(0.475)
# Ask difficulty
def askDiff():
while True:
diff = input('What difficulty level would you like?\nEasy, Medium, or Hard?\n').lower()
if diff not in ('easy', 'medium', 'hard'):
... | [
"enchangcsprof@gmail.com"
] | enchangcsprof@gmail.com |
fb9400b52436488379a3045805c0f588682f0306 | 878c3b571e0f2ccf9688a3d5aefa443312c706fe | /bd_api/bd_api/users/views.py | 09a7d1d49a2f69d8c8a959eaecb0a5b1f728d1f0 | [
"MIT"
] | permissive | jorimyk/body_dimensions | 785870a092856979d6059991a43462cb6571d81e | 6787570661d6dd032ade5d0c737a7d07ed3ec14a | refs/heads/master | 2021-04-30T16:26:29.665121 | 2019-02-20T19:43:38 | 2019-02-20T19:43:38 | 80,038,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,154 | py | from flask import request, jsonify, make_response
from bd_api import app, db, limiter, auth, CORS
from . models import User, Role
from bd_api.users.measurements.models import Measurement
from bd_api import Config
from bd_api.utils import CommonUtils, UserUtils
from bd_api.auth import Password, Token
# Creeate admin ... | [
"jori.mykkanen@gmail.com"
] | jori.mykkanen@gmail.com |
bd5c3dd7bb88057f50d2e513ec9577f5ae4516df | e465ec4e9af2358ed8a63b555b03d24a30a68790 | /study_python/day5/scratch.py | d7d052c2111034f226472fc75b1d084dffe5054f | [] | no_license | veritakim/study_python | 40930442130d78190977157229bef9e03f6303fe | 8c25ec8716fc16223473f53e87d29f102fc80adb | refs/heads/main | 2023-02-27T16:40:36.189980 | 2021-02-05T11:42:56 | 2021-02-05T11:42:56 | 330,602,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | # file_read 에서 sell.txt를 프린트 했을 때
'''
1일 : 얼마
2일: 얼마
중간에 엔터가 하나 더 쳐진다. 왜냐하면 print 자체가 엔터의 기능이 있는데 텍스트에도 엔터가 들어가서 두 번의 엔터 기능이 됐다
\n
'''
# .strip() : 화이트 스페이스. 글자들 사이 이외의 빈 공백들을 처리
with open('data/sell.txt', 'r', encoding='UTF-8') as f:
for line in f:
print(line.strip())
| [
"kjs3597@gmail.com"
] | kjs3597@gmail.com |
13bedc0acf5fbc26a65317a03374a0f4a5d2083f | 7f4ba7877def60e9fd9f60794633b3893f36599b | /aleatorio.py | 6894515a4d1320e1b6eeefe4bdb1aff9e1cc89d8 | [] | no_license | cgonzalesmo/PS_LAB09 | c33cc3b43fdf4aa9dfd2ab7ffa2f3f67d15aec93 | 6843768543ac206cfe99743149af7de34816b4a1 | refs/heads/master | 2022-11-20T08:35:06.247181 | 2020-07-19T22:11:26 | 2020-07-19T22:11:26 | 280,283,084 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import random as r
import os
directorio = './files/aleatorio/'
if not os.path.exists(directorio):
os.makedirs(directorio)
contador = 50
letras = 'abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
for i in range(contador):
tamano = r.randint(1000000,10000000)
archivo = open(directorio + 'arc... | [
"cgonzalesmo@unsa.edu.pe"
] | cgonzalesmo@unsa.edu.pe |
1d74ef8462950a6d0001f53e3884fb6d831e1a36 | e7729e83f4caa78586a57de7c651b8e705e73305 | /app/flags/agents/flag_6.py | 45cf12711db4e7a9ee386fa13e8ae664ea83a475 | [] | no_license | dekoder/training | 873674b985a0f2f8d0e3740f3b2004da2e0af02d | c7509ae9d13ba1ebbd127aeb4dadcaf88ffd9749 | refs/heads/master | 2023-01-01T01:00:56.709768 | 2020-10-29T19:51:19 | 2020-10-29T19:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | name = 'Contact points'
challenge = 'Deploy a new agent, using a different contact point then your first agent'
extra_info = """If an adversary deploys all of their agents on a host using the same protocol, say HTTP, then when their agent is
detected and shut down, the defenders will likely close access to the C2 over ... | [
"davidhunt@mitre.org"
] | davidhunt@mitre.org |
f03a99ced8288a757786e5b1fc6ace50e7b0e072 | 9b7e51a1640c2287fb91ea4d6a19c6aecbfc0c44 | /src/authentication/migrations/0004_auto_20161025_2106.py | 2bc09ae66e3d9df21cb844c47b3f55bd017464f7 | [
"MIT"
] | permissive | poffey21/edge | c4bc2fdf25eed89fe23d1e533d0e1febe72a67fc | f8aea6de3ede6031b29146b530e98fd6d9ed8fac | refs/heads/master | 2021-01-12T16:07:14.928202 | 2016-10-26T16:06:10 | 2016-10-26T16:06:10 | 71,941,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-26 02:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('authentication', '0003_auto_20161025_2051'),
]
operations = [
migrations.Al... | [
"poffey21@gmail.com"
] | poffey21@gmail.com |
af4d32d383245d7f962fec2306a3de7d93ab66ef | 11fc50030ae0e13a8a3dc22828550093d8fb555e | /core/migrations/0005_recipe_time_minutes.py | 0ecd28b8937cb32dd01920ee6d4579284835971b | [
"MIT"
] | permissive | subrata153/dj-receipe-api | cea1b856685c2b75da2d4a2342c37c5db8d2ce21 | 3a45c1a6f7b54c1e837db985bfdcca4579163739 | refs/heads/master | 2022-12-20T03:23:19.566375 | 2020-09-24T12:21:01 | 2020-09-24T12:21:01 | 293,527,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.1 on 2020-09-14 13:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_recipe'),
]
operations = [
migrations.AddField(
model_name='recipe',
name='time_minutes',
fie... | [
"subrata.goswami153@gmail.com"
] | subrata.goswami153@gmail.com |
215cefa51b03851506da1563a910e5c4573baa31 | 7df74b6338ff481add296e1358149b4f99c2e32b | /utils.py | 5b2c8220b360eda4b57d7977d395754148cfa26d | [] | no_license | biansy000/CS410-Drug-Molecular-Toxicity-Prediction | d311f80d1feb300703b0c47dd14cd90702cd105f | 7748708069ee69155dc1a81fa99e8ee8989a8504 | refs/heads/master | 2023-03-13T09:56:43.611027 | 2021-03-03T02:20:52 | 2021-03-03T02:20:52 | 343,323,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,907 | py | import numpy as np
import os
import copy
import pandas as pd
import torch
paths = {'test': "../code/data/test",
'train': "../code/data/train",
'valid': "../code/data/validation"}
def read_data(choice='train', pos_weight=7.0, add_valid=False):
if choice == 'train':
return read_train_data(p... | [
"biansy000@github.com"
] | biansy000@github.com |
13eafdf4cca9a65dfa2e6bccb504ab6397013fb7 | d5292505eb7b8b93eca743eb187a04ea58d6b6a3 | /venv/Lib/site-packages/networkx/algorithms/operators/unary.py | 71a6303f16c9db7a764e15fa906e9421b5937b55 | [
"Unlicense"
] | permissive | waleko/facerecognition | 9b017b14e0a943cd09844247d67e92f7b6d658fa | ea13b121d0b86646571f3a875c614d6bb4038f6a | refs/heads/exp | 2021-06-03T10:57:55.577962 | 2018-09-04T19:45:18 | 2018-09-04T19:45:18 | 131,740,335 | 5 | 1 | Unlicense | 2020-01-19T10:45:25 | 2018-05-01T17:10:42 | Python | UTF-8 | Python | false | false | 1,646 | py | """Unary operations on graphs"""
# Copyright (C) 2004-2018 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import networkx as nx
from networkx.utils import not_implemented_for
__author__ = """\n""".join(['Ari... | [
"a.kovrigin0@gmail.com"
] | a.kovrigin0@gmail.com |
368ac5546d6b48d0e6f35422fca7463b8ce900c1 | 1bc5f5ffa7a7544b3a77f5981a648821549283d3 | /Python/a^b.py | 6cda25c4f4c0ec7ac9bf3e660b61ba23f9dc7e80 | [
"MIT"
] | permissive | Mario263/Hacktoberfest_2021 | 22047f5eaa0b876a86c3a890a654b65f7ab04600 | 57965f48d3b19d25d2c0b75525eab4c4dce0157a | refs/heads/main | 2023-09-03T00:14:24.695642 | 2021-10-31T06:49:24 | 2021-10-31T06:49:24 | 423,075,314 | 1 | 0 | MIT | 2021-10-31T06:50:13 | 2021-10-31T06:50:12 | null | UTF-8 | Python | false | false | 171 | py |
x = int(input("Enter base number: "))
y = int(input("Enter exponent number: "))
number = 1
for n in range(y):
number *= x
print(x,"^",y," = ",number,sep="")
| [
"noreply@github.com"
] | Mario263.noreply@github.com |
3e53ef1658987ecc2bc55594ea180866af5b582c | 7c8f6edd87cbee33cf998e9d2cc673fdcd39dd5a | /bots/Voodtwo/python/voodoo.py | 149d114051c2baf9989c6c3621aadc1cea98e223 | [] | no_license | tarehart/RLBotSpikeLeague | 89ce96417d8e201dcfc2f67ed5c1c81c7941131b | 311b3753e770cc642fdde87b6d4083db4072af88 | refs/heads/master | 2020-07-04T11:45:30.564487 | 2019-08-24T05:31:55 | 2019-08-24T05:31:55 | 202,278,639 | 0 | 3 | null | 2019-08-23T14:31:27 | 2019-08-14T05:09:20 | Python | UTF-8 | Python | false | false | 823 | py | from rlbot.agents.base_agent import BOT_CONFIG_AGENT_HEADER
from rlbot.agents.executable_with_socket_agent import ExecutableWithSocketAgent
from rlbot.parsing.custom_config import ConfigHeader, ConfigObject
class Voodoo(ExecutableWithSocketAgent):
def get_port(self) -> int:
return 19231
def load_conf... | [
"tarehart@gmail.com"
] | tarehart@gmail.com |
37a662efa91bfe7aa9f62dd5632cf64ca090ce2e | 1fba7af33f2424db7612775627dad8a062a63fc4 | /SivleyExam2Q1.py | c0e808ee2a16d7957e527141ec35ce26e2093bc8 | [
"MIT"
] | permissive | cjsivley/homework | eb8979eb923800c556357e67e02f976e6f899e2c | 643386ce4c34ae26a0b0730fee40e093a206abb1 | refs/heads/main | 2023-03-29T03:39:48.918553 | 2023-03-27T15:20:39 | 2023-03-27T15:20:39 | 40,308,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | #line problem
#exam 2 question 1
#Codey Sivley
#OOP Fall 2021
def pointVsLine(p0, p1, p2):
#setup
x0 = p0[0]
x1 = p1[0]
x2 = p2[0]
y0 = p0[1]
y1 = p1[1]
y2 = p2[1]
#is formula for A and B were incorrect on original problem?
#should be lineA = y0-y1, lineB = x1-x0
#answers keep ... | [
"cjsivley@gmail.com"
] | cjsivley@gmail.com |
60a604d51abe28c15f4cbe9b135d530edf6eb603 | f87d1ce970ed414f62b90d79d8cf5a38556da592 | /repetory_api/migrations/0011_auto_20170609_1056.py | 670d2d9ff2b9b11106c16fd09dc242ea35f2ab32 | [] | no_license | zhangxu0307/repertory-rest | 331d58009c15e014d1a5e39447219817d77b08d9 | dc48a8e1e484254e1daa0712ffe66a52ec896ea7 | refs/heads/master | 2021-07-13T22:30:00.246833 | 2017-10-19T11:27:30 | 2017-10-19T11:27:30 | 107,536,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-09 02:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('repetory_api', '0010_auto_20170609_1044'),
]
operations = [
migrations.Remo... | [
"zhangxu0307@163.com"
] | zhangxu0307@163.com |
aa7e217944d3d5deef2326ff26f742794898bedb | 6c144b3870b03b335cf171f2084835f29afbcb9d | /ps/prop/migrations/0020_auto_20161116_2255.py | a4c3b46221276ef8e7482e2aa9f5b1e274a4d6cc | [] | no_license | thementat/ps | 126514f70492171d632a3f1bc7075ea7c860b359 | c2bb6af592b78110ba79757f61bdf21e2665d56f | refs/heads/master | 2021-01-12T04:40:33.026049 | 2017-11-15T17:20:51 | 2017-11-15T17:20:51 | 77,701,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-16 22:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('prop', '0019_auto_20161116_2138'),
]
operations = ... | [
"chrisbradley@192.168.0.50"
] | chrisbradley@192.168.0.50 |
41270d7d2aac12ae55586464834bdd7b1f1a7029 | b11099e6136f9d449ad60a0f446dd434402b1be0 | /startsetup.py | f391bc47ec73f13b2aaa6d2659e2b8fce7f9fcaa | [] | no_license | cloudedrhyme/HowdyHack21 | 48c05a060b8a272c3254202425c25b6f0baf66db | 24733f6b50a81b05ad9b20b71e14d74a752ec62b | refs/heads/master | 2023-07-28T01:44:02.342049 | 2021-09-12T16:36:47 | 2021-09-12T16:36:47 | 405,486,680 | 0 | 0 | null | 2021-09-12T16:37:51 | 2021-09-11T21:28:18 | Python | UTF-8 | Python | false | false | 655 | py | import pygame
from pygame.locals import *
import sys;
#test window size
displaysurface = pygame.display.set_mode((300, 300))
image = pygame.Surface([640,480], pygame.SRCALPHA, 32)
image = image.convert_alpha()
mySurface = pygame.Surface((50, 50))
#mySurface.fill((0,255,0))
mySurface2 = pygame.Surface((100, 50))
m... | [
"74265937+cloudedrhyme@users.noreply.github.com"
] | 74265937+cloudedrhyme@users.noreply.github.com |
e19e6de5115b068231c810df6fd849b3fa53ff42 | b4af88b8da98b33a57de4bbdda42dd7bfa4af6f2 | /cs308_2014_TH01_Greenhouse Temperature Regulation/Code/PC/erts_server.py | ae63db5c7be8f828718f823bfd083cc715eef873 | [
"MIT"
] | permissive | eyantra/cs308_2014 | b5e7618775c4ce8d125984f6ab3e61ee1e6ca333 | c40126ec0e2a6b02a75243dcc5c7e910f96b564a | refs/heads/master | 2022-06-23T19:47:31.297517 | 2019-10-16T09:59:46 | 2019-10-16T09:59:46 | 19,315,199 | 0 | 3 | MIT | 2022-06-17T21:18:28 | 2014-04-30T13:55:41 | HTML | UTF-8 | Python | false | false | 2,853 | py | import threading
import webbrowser
import BaseHTTPServer
import SimpleHTTPServer
import serial
import time
ser = serial.Serial(11) # serial where to write
FILE = 'erts_client.html' # url to accept requests
PORT = 9000 # port number for the server
class RequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
'''
... | [
"eyantra.erts@gmail.com"
] | eyantra.erts@gmail.com |
40c83ee5b23ec45325e73155816f4301806781e5 | 8747eadb3e7f6d0883a201a7f1c4945ecf12f842 | /flightservices/flightapp/views.py | 74009c9754a19ae0875297bc713abbc6a5d6ebae | [] | no_license | GBethani/drf_demo | 3d61439d996cb34e1d6794ffeda5127c63687a45 | 75d47ffc5876480c56bcf1018bcadc12398a7412 | refs/heads/main | 2023-02-07T23:41:42.425327 | 2020-12-30T05:34:52 | 2020-12-30T05:34:52 | 324,276,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | from django.shortcuts import render
from .models import Flight, Passenger, Reservation
from .serializers import FlightSerializer, PassengerSerializer, ReservationSerializer
from rest_framework import viewsets
from rest_framework.response import Response
from rest_framework import status
from rest_framework.decorators i... | [
"jinkiller69@gmail.com"
] | jinkiller69@gmail.com |
c1a278d0c191ec9f7a09ffb015bef1cb08eebb82 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil3029.py | 4d24e8f4ba438bbba1f8ddf9e36daac828244176 | [
"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 | 1,914 | py | # qubit number=4
# total number=41
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(3) # number=19
prog... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
7ad01d201b6f2e29e6b858389712d658123664e1 | 41f5632dd1fb878eef163a07f07f987a6a1eb3c6 | /Python/Preprocessing.py | 9ef4eb934f5659d2e86d888ffdcc1d45697726ff | [] | no_license | eugeneALU/Text-Classification | 9e9fa695456a674c27d1fe0db9496c7193bba54d | cd9a8dd679a5dee92b56720b91085b9d53ae5581 | refs/heads/master | 2020-12-03T11:42:21.764190 | 2020-01-02T03:47:47 | 2020-01-02T03:47:47 | 231,302,752 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,279 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 20 09:43:39 2019
@author: eugene
"""
import numpy as np
import pandas as pd
import re
from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
from nltk.stem.snowball import SnowballStemmer
#function to clean the word of any punctuation or special charac... | [
"eugenelu49@yahoo.com.tw"
] | eugenelu49@yahoo.com.tw |
0a5a10fc5960abab4709c50c8d9d9a98632a00ae | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /alembic/versions/00036_11dbcd6e5ee3_.py | 23c7b78690e2f34d72284e8b9134eea9c3b21604 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 1,392 | py | """empty message
Revision ID: 11dbcd6e5ee3
Revises: 5aa994117f07
Create Date: 2017-09-28 04:06:18.968893
"""
# revision identifiers, used by Alembic.
revision = '11dbcd6e5ee3'
down_revision = '5aa994117f07'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy_utils.... | [
"something@fake-url.com"
] | something@fake-url.com |
b6fb8eb2e7f812c6c108c58bc950f2ee0e489bc4 | b3f46fdcb04110ed842b0ae13509fa162a6b422a | /Code/heartland/hl_admin/tests.py | d81983fa9ee5919458df595c79648bbfe04d73a6 | [] | no_license | CS-4503-Gambit/vigilant-winner | ec10b3bd4c7ad5400ba4245f0272d0b5278cc4e6 | 5ee1d42aa9e75468f766d37ae841852b15f681cc | refs/heads/master | 2021-08-14T07:06:45.307165 | 2017-11-08T04:58:52 | 2017-11-08T04:58:52 | 106,452,195 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | from django.test import TestCase, Client
from core.models import *
# Create your tests here.
class AdminTestCase(TestCase):
# Test by Jon
def setup(self):
exec(open('populate.py').read())
self.client = Client()
self.client.login(username='admin', password='heartland')
# Test the h... | [
"jonb377@gmail.com"
] | jonb377@gmail.com |
4e69ca51f263610e83bd6a3bd4ea91ec3352c3e3 | 19a1ce0e3e45a2d45c395a95ca9b675473c24ea9 | /Python/deprecated/pyqtgraphHandler.py | fbcf577b26dd1a9fc70e20efb7358a279ecb5f18 | [
"MIT",
"Beerware"
] | permissive | italogsfernandes/libraries | 6fe34f71b60d41e551bcca9a983e828890946a77 | 16f021b867a4a61e75cb45e0dcc595fc88e1ad6a | refs/heads/master | 2021-03-27T10:52:03.664874 | 2019-11-19T00:38:06 | 2019-11-19T00:38:06 | 102,471,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,232 | py | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# FEDERAL UNIVERSITY OF UBERLANDIA
# Faculty of Electrical Engineering
# Biomedical Engineering Lab
# ------------------------------------------------------------------------------
# Author: Italo Gustavo Sampaio Fe... | [
"italogsfernandes@gmail.com"
] | italogsfernandes@gmail.com |
fe5fcf11ba7e46ac07d902574d302ba4f0975311 | f1dbd0ba7f1951491a245f792bbc07d85df0edf3 | /dfd/timm/models/helpers.py | 8669d4f0509f5da7825e5a78bbbf814a0f1d5c9e | [
"Apache-2.0"
] | permissive | Alinccc/Deepfake_Detection | 8f05a431fb1030ca1dc721faa4a96e5d51454cdd | fce0c80f78e28fe78674fa00c3b70a6184ae1d3d | refs/heads/main | 2023-08-21T18:05:41.606910 | 2021-10-19T05:05:37 | 2021-10-19T05:05:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,791 | py | import torch
import torch.utils.model_zoo as model_zoo
import os
import logging
from collections import OrderedDict
def load_state_dict(checkpoint_path, use_ema=False):
if checkpoint_path and os.path.isfile(checkpoint_path):
checkpoint = torch.load(checkpoint_path, map_location='cpu')
state_dict_k... | [
"huangsy1314@163.com"
] | huangsy1314@163.com |
cd8ff3b1036a37a03dbc1430032d1f214f4c9c47 | 4798adcdd8b03cddf8ec892091e67eda64db5379 | /plasmidlord/plasmidlord.py | 4e1d0e79c14d76bb3bd5dc10fa750e245b3f8b87 | [] | no_license | maxlcummins/pipelord_old | e11bb92d958b4ed5da5e0371e0c05b28b095bc5c | 049cb4a48242ce5ab08e6fd3802ef4d619de9ca3 | refs/heads/master | 2023-07-20T05:24:16.888318 | 2021-08-31T04:23:23 | 2021-08-31T04:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,816 | py | from scipy.spatial.distance import pdist
from scipy.cluster.hierarchy import linkage, dendrogram
import numpy as np
import pandas as pd
import glob
import matplotlib
matplotlib.use('Agg') #avoid problems with headless environments
import matplotlib.pyplot as plt
import matplotlib.colors as colors
from matplotlib i... | [
"maxcummins@MacBook-Air-8.local"
] | maxcummins@MacBook-Air-8.local |
ba69e9897c4199039f0aede645cd587dc089c2ea | 1747054ce51f1775870b8135adfdb666028f7305 | /tree/sum_of_all_nodes.py | bfd435ff5ffc808da0033e2eb9640bc7bc4efa9a | [] | no_license | anshulgera/DSA | ac609b48383ebf5309e2017cc3e8344a83135b89 | 19ac5ad05460a3f707667bbc978223a0a55c8c3a | refs/heads/master | 2020-07-24T20:32:32.619357 | 2019-12-15T06:18:59 | 2019-12-15T06:18:59 | 208,040,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | # Approach 1: divide the problem => sum of all nodes equals
# = current node data + leftsubtree sum + rightsubtree sum
# Apporach 2: level order traversal
# Approach 3: Iterative traversal-pre, in, post
from node import example_tree
def preorder(root):
if root:
print(root.data, end=", ")
... | [
"anshul.gera@jda.com"
] | anshul.gera@jda.com |
d25fd414d0cc93dd4bdd265401237349de38f3c9 | 23636b8144e37bb101c0d7e823f107f396c694dc | /Andrii-Lysyi/CodeWars-18.py | 0f6b7594f73748f607b4524cd344e56f9bf1b279 | [] | no_license | Andros1303/Andrew-Lusi | 437b78cf61a7c04b61d6072ea5d14bba9e76c15f | 8d25a149f0206c3b9a67c9aa6d2e241df4881c36 | refs/heads/master | 2020-05-17T20:00:27.575961 | 2019-06-05T17:11:11 | 2019-06-05T17:11:11 | 183,932,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | def list_animals(animals):
list = ''
for i in range(len(animals)):
list += str(i + 1) + '. ' + animals[i] + '\n'
return list
# Your collegue wrote an simple loop to list his favourite animals.
# But there seems to be a minor mistake in the grammar, which prevents the program to work. Fix it! ... | [
"noreply@github.com"
] | Andros1303.noreply@github.com |
fc0fecc42711bdc8005c76234c04e40af133500a | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/scripts/zd/ats_ZD_Combo_CLI_Application_Visibility_Standard_OPEN.py | 4c9c5d9a1708723af600c8124e9f074a6b2e5ab3 | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,649 | py | """
Created on 2014-06
@author: chen.tao@odc-ruckuswireless.com
"""
import sys
import random
import libZD_TestSuite as testsuite
from RuckusAutoTest.common import lib_KwList as kwlist
from RuckusAutoTest.common import Ratutils as utils
def define_wlan_cfg():
key_string_wpa2 = utils.make_random_string(random.ra... | [
"tan@xx.com"
] | tan@xx.com |
2e5e3e67e1ff2834fbde5eafac226a339de6d857 | a471266944a3227f458234388ad7a5fa091a0f89 | /rsg_selct.py | 4f68c558fce1c50a69b7e47ca88e80aa7c78c6d5 | [] | no_license | rubab1/RSG-Select | 51fff92f3b963db9bce1b041f9539ee3510e221b | e652b0d215cc1f70251ac9cdca293659f5715474 | refs/heads/master | 2020-03-23T08:52:46.868439 | 2018-07-17T22:51:39 | 2018-07-17T22:51:39 | 141,353,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,750 | py | import numpy as np
from astropy.io import fits
from astropy.io import ascii
from astropy.table import Table
from scipy.spatial import cKDTree
rad = 0.5 # matching radii, arcsec
err = 0.3 # mag error, Vega
crd = 0.5 # crowding effect, Vega
def DoAll(infile='14786_N6846-SN2017.gst.fits',outfile='targets1'):
ref = a... | [
"rubab@uw.edu"
] | rubab@uw.edu |
ce99e765ea48053b039f968a4a801368104e5c6f | 485d62d8adb88925535fc57ec8eb127db5012767 | /venv/bin/wheel | dfde5beee5436d07a85e08a2ff772f82ec815212 | [] | no_license | MariomcgeeArt/Tweet-gen | f9995e1350413f23e1f32675d35a47bdf3cb81f3 | 619c6f7fb184b0458121193923757c866a64acaa | refs/heads/master | 2021-01-03T03:22:28.599007 | 2020-03-09T17:27:11 | 2020-03-09T17:27:11 | 239,900,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/Users/makeschoolloaner/Desktop/devloper/ms/Tweet/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mario.mcgee@students.makeschool.com"
] | mario.mcgee@students.makeschool.com | |
871284d24db3cfaf05336d9c7b5bd82940d854ca | 7eecd923b2b34d1888ca97d95af21ef0e4bb6d29 | /source/generator/multiplication.py | 03c2f79153cc04daad2c9b93144f81d0479e48c1 | [] | no_license | Az2Poivron/piwar | b641acd1a274949ec03fd6187ad3d3511c62f7c5 | f5015e9e9649713addbded2bc87f82ed51169a14 | refs/heads/main | 2023-05-03T10:07:42.295623 | 2021-05-30T16:46:59 | 2021-05-30T16:46:59 | 372,017,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | from random import randint as rdm
class Multiplication: #a * b = c
condition = "MULTIPLICATION_ENABLE"
def __init__(self,rule):
a_min = rule["MULTIPLICATION_a_min"]
a_max = rule["MULTIPLICATION_a_max"]
b_min = rule["MULTIPLICATION_b_min"]
b_max = rule["MULTIPLICAT... | [
"«monnomctom@gmail.com»"
] | «monnomctom@gmail.com» |
5d00ab45b31431b87c4bc649952d35c2f2a94f9a | 2b249f2be3a06b647c58ed09f14d1c0cc77b0309 | /cluster/pkg/swarmer.py | 059f3d7ad0f2e3b332823c5df2ff5527b94be16d | [] | permissive | Hrishi5/ACI-EnhancedEndpointTracker | 7dad677146ae4a26e1e2f212ad6e6eead92e3513 | a4de84c5fc00549e6539dbc1d8d927c74a704dcc | refs/heads/2.0 | 2020-04-01T18:18:24.119980 | 2018-12-14T06:17:15 | 2018-12-14T06:17:15 | 148,533,258 | 0 | 0 | MIT | 2018-09-12T19:46:19 | 2018-09-12T19:46:19 | null | UTF-8 | Python | false | false | 22,407 | py |
from .connection import Connection
from .lib import run_command
from .lib import pretty_print
import getpass
import json
import logging
import re
import time
# module level logging
logger = logging.getLogger(__name__)
class Swarmer(object):
def __init__(self, config, username=None, password=None):
# rec... | [
"agossett@cisco.com"
] | agossett@cisco.com |
c5d385b41cade2187400881bf390d7ffe5eb5c55 | bd867af5245366ee0abfd0f659fcb42170fff8ca | /hackerRank/algorithms/DiagonalDifference/diagonal_difference.py | 954cf6bd5cfc0ee3735dcd2733472402344f7d21 | [] | no_license | kruart/coding_challenges | 04736a6b66da813fd973e7a57aa084bbdab31183 | 395ae60ab392e49bb5bc2f0a4eef1dfd232899bb | refs/heads/master | 2021-06-16T08:51:21.815334 | 2019-11-07T08:39:13 | 2019-11-07T08:39:13 | 153,890,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # https://www.hackerrank.com/challenges/diagonal-difference/problem
def diagonal_difference(arr):
return abs(sum([arr[i][i] - arr[i][len(arr)-i-1] for i in range(len(arr))]))
def main():
matrix1 = [
[1, 2, 3],
[4, 5, 6],
[9, 8, 9]
]
matrix2 = [
[11, 2, 4],
[4, 5... | [
"weoz@ukr.net"
] | weoz@ukr.net |
7ab2db44c45f6cfdfecb3f313cf0817d5d141223 | b04eb4cec627b40c9cf970d25206d41367125041 | /learn-flask/flask_vs_wsgi/wsgi_vs_flask/wsgi/why_not_wsgi.py | ca4dee3bbd0d60deddb0c1935622f7eefd462a30 | [] | no_license | zhangkexia/web-learning | 793594da4257d461b3c9cc610b97718c344685fb | 72ee6174623f72a9d9eb1623fdf2620122dd72ef | refs/heads/master | 2023-06-24T20:27:45.981714 | 2021-07-28T05:39:07 | 2021-07-28T05:39:07 | 390,198,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | def application(environ, start_response):
method = environ['REQUEST_METHOD']
path = environ['PATH_INFO']
if method == 'GET' and path == '/':
return handle_home(environ, start_response)
if method == 'POST' and path == '/signin':
return handle_signin(environ, start_response)
if ....
#so many functions to handle ... | [
"yueyue_freedom@163.cm"
] | yueyue_freedom@163.cm |
9a7f3a9af93bc6ffe45fc6bedb3bdd29cc8e812e | 36f685d0bd257fd9addde777a16ce162386b303b | /easyautoml/utils.py | 48aac6fad2481ef00a4b859a6b08bf9d523dbf4b | [
"MIT"
] | permissive | almandsky/easyautoml | 5af61bede76cfde13b8dc6e4dc1e2e078595bf92 | 09a28109a8b6afe9b4791828313e374176af9a80 | refs/heads/master | 2020-03-27T15:24:07.845306 | 2018-09-27T23:34:59 | 2018-09-27T23:34:59 | 146,715,752 | 3 | 3 | MIT | 2018-09-27T23:35:00 | 2018-08-30T07:56:53 | Python | UTF-8 | Python | false | false | 1,772 | py | from easyautoml.ftutils import get_train_data, get_test_data
from easyautoml.tpotutils import tpot_train, tpot_score
# GLOBAL CONFIG
TPOT_MAX_TIME_MINS = 1
TPOT_MAX_EVAL_TIME_MINS = 0.04
TPOT_POPULATION_SIZE = 40
N_JOBS=-1
def tpot_with_ft(
project,
train_file_name,
test_file_name,
submit_file,
... | [
"sky.chen@salesforce.com"
] | sky.chen@salesforce.com |
ae99363612df9095c5b8194a8ad42254c93b94c0 | 981ead90e27f974a0b567a543df783c0677933bf | /Utilities/util.py | 9e8fce17a4a37344bc9437fde9bd3c6c8f7bbf5b | [] | no_license | TachunLin/pytestAllure | 20360979c3921295cc0890ccbca5cf8116811b02 | 5edf7179b4beee4ea8d2ff10ebff9d0f3733f6df | refs/heads/master | 2020-03-17T06:47:42.604130 | 2018-05-19T13:02:16 | 2018-05-19T13:02:16 | 133,369,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,130 | py |
import time
import traceback
import random, string
import Utilities.custom_logger as cl
import logging
from traceback import print_stack
import datetime
import os
import pytest
import allure
from allure.constants import AttachmentType
from helpers import ensure_dir
# from Utilities.custom_logger import customLogger
#... | [
"imdagcool@gmail.com"
] | imdagcool@gmail.com |
4b613f02dfa0d2eb3da212f00e4eab60c32a56c1 | 265946224347cc202e56629c752dfa87808b6bb8 | /node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/config.gypi | 37d8ad379aebc56c134947389a15f2f782bc2677 | [
"Apache-2.0",
"MIT"
] | permissive | Dongs7/drawguess | e1bba9f719311ea7636bd1ce1d40d8e5cde449e6 | 9643a16eaf35067d64196eac981901e80f11ed1c | refs/heads/master | 2020-09-17T08:15:24.313909 | 2016-08-31T12:32:25 | 2016-08-31T12:32:25 | 67,034,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,067 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"vingosheng@gmail.com"
] | vingosheng@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.