blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a57a9c90e95d636ca5b4bab2f70abe0f58c74565 | 054b6878323f6090b5efa2432d8943da60d254c0 | /p0-test10.py | 95fe41e0868f33daf23715886b6990bc4852fadc | [] | no_license | parthmishra/p0 | 1ca6fb0ee6f88c991ee76e78d6813e4439e04603 | 3327885823a525c7015479a325acc3d5eb5c1893 | refs/heads/master | 2016-09-08T01:20:05.872787 | 2015-03-12T22:06:14 | 2015-03-12T22:06:14 | 33,795,001 | 0 | 1 | null | 2015-04-11T22:31:47 | 2015-04-11T22:31:47 | Python | UTF-8 | Python | false | false | 24 | py | #p0-test10
print (3+4+5) | [
"holtat@colorado.edu"
] | holtat@colorado.edu |
d77fc2f85ed48fea334becf5b4e93fc82cef653e | 5da4bd03775d39ec587cbfd66eabc90cdd51a20b | /manage.py | 082d5a8d5610e37d4303772ee44e360a345ccd8a | [] | no_license | kunalprompt/videoEmbeddToHTML | b9ab84417cfe1f9ff460c02f7091438e43cdcdbb | 90be474a4b272b321bc96e195741db3a4b39f1ec | refs/heads/master | 2016-09-05T18:35:48.285255 | 2015-01-30T10:20:02 | 2015-02-02T13:18:15 | 30,187,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "videoHTML.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"kunalprompt@gmail.com"
] | kunalprompt@gmail.com |
7936f2db134019e23e844e2d1de007269ac2168c | b0449aaa4e90df7d5e0b8e7146f0305b71e78433 | /exchanges/bitfinexapi.py | 18cf64682bfb0466ae6afb4466df8dc51f80b421 | [
"MIT"
] | permissive | hivebank/Cryptohelpers | 3a7c347a0b3fd49858ef939b00c2f2c709908b3e | a8fa4a65e060f8adc2e5f25a9270054c3f59cf8b | refs/heads/master | 2021-06-22T23:14:35.441631 | 2017-08-20T11:47:38 | 2017-08-20T11:47:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | import requests
import json
import base64
import hmac
import hashlib
import time
class Connection:
def __init__(self, key, secret):
self.key = key
self.secret = secret
def __call__(self, cmd):
payload = {"request": "/v1/{0}".format(cmd), "nonce": str(time.time()*1000000)}
... | [
"noreply@github.com"
] | noreply@github.com |
e1eda401b6cd454fd00ef2b99329faa20f69c563 | 746122f6652d4b331010879e15d41b726a7a29eb | /utils/utils.py | 96de7bff995459f5f318cce7dda95ea8f2f962ec | [] | no_license | felipesassi/Plant_Pathology_Detection | 00a04f0bcdcf7b35c0fd78e667455d9e81d89a65 | 9d4f2ab012102753c4749fe55ca098d3ce07ce0f | refs/heads/master | 2021-03-30T09:24:42.376477 | 2020-03-20T00:41:14 | 2020-03-20T00:41:14 | 248,037,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import torch
import torch.nn
import torch.nn.functional as F
import sys
import json
from sklearn.utils import shuffle
import numpy as np
def get_device():
device = torch.device("cuda:0" if (torch.cuda.is_available()) else "cpu")
print("{} is the device available." .format(device))
return device
def clear_... | [
"felipesassi@outlook.com"
] | felipesassi@outlook.com |
4e1cd719cfa46c689fd0b63ee03bf2f1c80310ca | 75a179e8ddba54442697de87a3846f1711a30bae | /crudoperation/crudoperation/wsgi.py | 5d9ef489b1f5198e5c28ae26457fc488c0ac661e | [] | no_license | amanlalwani007/drftutorial | 2b5a5338b3146b1feb88c4d815fbf996dd49cb9d | 4f5c651f4dee98a359b7a6e34d0ae9a8f8630e68 | refs/heads/master | 2023-07-09T01:28:04.921042 | 2021-08-21T10:59:06 | 2021-08-21T10:59:06 | 392,457,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for crudoperation 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"amanlalwani0807@gmail.com"
] | amanlalwani0807@gmail.com |
50b6c6af4b11cff6ffa48183c2c5372cabe1aa6f | 63c6fd2b5e2fe48f30b16fe3942d189400e677a8 | /uploadtos3.py | 9e3ae85855a039240e9a77f9f88d1ffc28511b5c | [] | no_license | shubhpatr/pneumonia-detector | 86331e05a34af28d228f0aee468ed67fba74cfbb | c23c8c12d8679e3c48f778e271777239e3e96f9e | refs/heads/main | 2023-07-25T10:29:38.538026 | 2021-09-10T17:11:06 | 2021-09-10T17:11:06 | 397,422,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 26 12:20:38 2021
@author: mohap
"""
import s3fs
import zipfile
import tempfile
import numpy as np
from tensorflow import keras
from pathlib import Path
import logging
import os
AWS_ACCESS_KEY="AKIA532TKVC54GUI4BES"
AWS_SECRET_KEY="Nuj6TDOaC0IWvTDq3AEvB015WfH2Iu1ovRtd24... | [
"shubham.mohapatra1996@gmail.com"
] | shubham.mohapatra1996@gmail.com |
9e6c62f804f1787f53cf0636450e83cd3b8eff28 | eb023177db6d30a4cda3fd208a8dae50d08711c3 | /basics/ch03-list/ex_3_4.py | b11c3337d683182c1d5a000a5634946e36ef08c8 | [] | no_license | teddy-boy/python_crash_course_exercises | 4ad2868adb6e2db57357acfa0103a96f223d8097 | 8cbfd7f0ee9bb1d1cf2090f3cd7c3118df3d4e4b | refs/heads/master | 2020-12-03T18:55:11.992023 | 2020-05-09T06:18:24 | 2020-05-09T06:18:24 | 231,439,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | guest_list = ['Lan', 'Chuc', 'Minh']
print('Hi ' + guest_list[0] + ', please come to have dinner with me')
print('Hi ' + guest_list[1] + ', please come to have dinner with me')
print('Hi ' + guest_list[2] + ', please come to have dinner with me') | [
"dzungnguyen.learntocode@gmail.com"
] | dzungnguyen.learntocode@gmail.com |
4cb8afd3088eb281889f8e6094260224d10d3cec | b9f4a27c4b6c3107099d044b7404d14b59d20431 | /src/Main.py | 9468d0903c341f5329dd7a1b8ac87ef5f8366701 | [] | no_license | RedMoon32/OpenMind | 008f951e6f6a6d09fee8e38ece85f8151f2e4fc7 | 6893aa2b0e486eb84ad327b746deb3a2cb52e9ec | refs/heads/master | 2020-03-27T05:01:05.771108 | 2018-06-24T15:06:12 | 2018-06-24T15:06:12 | 145,988,553 | 0 | 0 | null | 2018-08-24T12:26:05 | 2018-08-24T12:26:05 | null | UTF-8 | Python | false | false | 2,682 | py | from configparser import ConfigParser
from application.application_config import load_config
from interface.console import Console
from interface.telegram import Telegram
from language.models.en.english_language_model import EnglishLanguageModel
from configs.config_constants import InterfaceTypeKey, LogLevelKey, IsStu... | [
"den1-1@mail.ru"
] | den1-1@mail.ru |
3cdf409b425746438571d689e6c72da67e98299d | bc441bb06b8948288f110af63feda4e798f30225 | /idcmanager_sdk/model/easy_command/task_spec_pb2.py | ec6575adc9e75b93acae8423644206c9fe3269cc | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 9,559 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: task_spec.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | [
"service@easyops.cn"
] | service@easyops.cn |
ad1a3e3074fb7efd8daced61090b9b55cd0f171a | ad62c0113cfb6fd05383518f8cd6d2564a65768b | /Problem Set Two/pythagoran_triplate.py | 3b58b0da8c0f0eac5c455e42011f6d5999c522e7 | [] | no_license | asherthechamp/Coding-Problems | 10fa8ef03cf5a8a5f4507ca3b2eb8ef637dcbebe | 02c925fe8a8f3295c8eb617f5c260a58ffc6e660 | refs/heads/master | 2023-02-10T08:20:28.605955 | 2020-12-28T03:40:31 | 2020-12-28T03:40:31 | 324,866,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # Checks if there is a pythagorian triplate
def findPythagoreanTriplets(nums):
numsSquared = [0]*len(nums)
sum_num_squared = 0
for i in range(0, len(nums)):
numsSquared[i] = nums[i] * nums[i]
sum_num_squared += numsSquared
for x in range(0, len(nums)):
for y in range(x + 1, le... | [
"ashukite@gmail.com"
] | ashukite@gmail.com |
aa060d98413924ffc426a52d01ecc1731b0103f0 | 9bded62d0a783c0935fc8cf8fb1cec0ea7889652 | /sutskever_model.py | 5cdd35a640c4f2dfc9f2c39c64696a6aff7d75ee | [] | no_license | hutengdai/tensormorphy | d3049091b794830d39d469a1391c2ddb0fe10a89 | 95e51499b1ea6c6d86b13bf923cf99780620e84c | refs/heads/master | 2020-05-31T10:04:31.957351 | 2019-06-04T01:11:53 | 2019-06-04T01:11:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Encoder-Decoder (after Sutskever et al. 2014)
# final state of encoder is initial state of decoder
import torch
import torch.nn as nn
import onmt
from onmt.utils.misc import sequence_mask
from .recurrent_layers import GRU1
from bahdanau_model import BahdanauGenerator
cl... | [
"colin.wilson.jhu@gmail.com"
] | colin.wilson.jhu@gmail.com |
c9f7d93330c888d19c537cb39e06fdd586f5682a | 3411ad233c411c06765f4b07f8670c12025178b6 | /LCOF/31-40/32-1/32-1.py | 478ca7b4eff8a95655fa61b25fb586420bfccdd7 | [
"MIT"
] | permissive | xuychen/Leetcode | 7d9d31fed898ce58440f5ae6665d2ccaf1a4b256 | c8bf33af30569177c5276ffcd72a8d93ba4c402a | refs/heads/master | 2021-11-19T20:39:43.741589 | 2021-10-24T16:26:52 | 2021-10-24T16:26:52 | 140,212,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | import Queue
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def levelOrder(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
... | [
"xuychen@ucdavis.edu"
] | xuychen@ucdavis.edu |
2b3cbd4d5eb7f04a1e5930aa1dcc81e9fb607645 | f97a4c971cf1c869a836a145b2341f9c10ddfd60 | /Kakao_Blind_2021/1.신규 아이디 추천.py | 349b74f7e7338dbee7abeef56a94a9f84fef14fa | [] | no_license | icarusw-code/Programmers_code | 1cbd2692d0e40be412218864d35538cad0ca709d | a4bd44e00c9f5825bb8a2b073a08e5e16b2d3865 | refs/heads/master | 2023-08-26T00:27:49.469444 | 2021-11-02T08:51:17 | 2021-11-02T08:51:17 | 410,453,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | def solution(new_id):
# 1단계
step_one = new_id.lower()
# 2단계
step_two = ''
for c in step_one:
if ('a' <= c <= 'z') or ('0'<= c <= '9') or (c == '-') or (c == '_') or (c == '.'):
step_two += c
# 3단계
step_three = ''
step_three += step_two[0]
prev = step_two[0]
fo... | [
"77170611+icarusw-code@users.noreply.github.com"
] | 77170611+icarusw-code@users.noreply.github.com |
f2ec41516fd5213093c742e14239e1d270dfbd56 | f6ebd94536a026d0d63150ea18421c9d0694716e | /csscoco/lang/syntax/cocoParser.py | fc2677af068a62cd655201af2c016e9f142f53db | [] | no_license | grammarhoard/2015-goncharenko-css | 509a721665cabbc6a21d2dd5b68b7fa32b58af2b | a73528b61c00a58112bb3205f198037d49f0b61d | refs/heads/master | 2021-01-16T21:42:39.959929 | 2016-04-09T11:25:53 | 2016-04-09T11:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74,476 | py | # Generated from java-escape by ANTLR 4.5
# encoding: utf-8
from antlr4 import *
from io import StringIO
package = globals().get("__package__", None)
ischild = len(package)>0 if package is not None else False
if ischild:
from .cocoVisitor import cocoVisitor
else:
from cocoVisitor import cocoVisitor
def seriali... | [
"boryana.goncharenko@gmail.com"
] | boryana.goncharenko@gmail.com |
fc064d74b6935cb1b4d64e4e8bdee52669cdcd29 | e0b614de4a4160fee781024f838cf083e4692bbe | /Lab10/Lab 2 III. 3.py | d30ea12caef1882eb59258ae7f51bd604987d41b | [] | no_license | lascau/First-Year-Computer-Programming-laboratory-work | e3ae143a5c6cadacffab8b38b2be78aa5cffe4c0 | eb02d59c5a84c2461762d19d4a01e264c30231ff | refs/heads/master | 2023-01-02T17:54:45.152783 | 2020-10-05T14:57:28 | 2020-10-05T14:57:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | def power(base, exponent):
if exponent == 0:
return 1
else:
return base * power(base, exponent - 1)
def main():
x = int(input("Dati baza:"))
n = int(input("Dati exponentul:"))
print(power(x, n))
main()
| [
"noreply@github.com"
] | noreply@github.com |
5ec041a446837364bd7a678088a4a10bf6a9403f | eb3861ad885b35b26aecb5f9544ad14e74588e18 | /MAC110/P2/Ex Aulas/somamatrizes.py | b4691d2d47637099df91d9692e4fa4239ca49c33 | [] | no_license | limapvictor/backup-materias-antigas | b5d8aa020667363274f31bc02122c66fc53d6a7e | 20e8c6353d67afa1ec8523dd1a0ebd5b47158442 | refs/heads/master | 2023-02-28T06:48:41.518937 | 2021-02-01T22:06:54 | 2021-02-01T22:06:54 | 335,091,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py |
# traz a função imprimematriz do arquivo imprimematriz.py
from imprimematriz import imprimematriz
def somamatrizes(A,B):
""" soma as matrizes A e B se
for possível, senão devolve
uma matriz vazia.
"""
nlinhas = len(A)
# trata matriz com 0 linhas
if nlinhas>0:
ncolunas = len... | [
"lima.p.victor@outlook.com"
] | lima.p.victor@outlook.com |
eb0c623addae8ad72cf046bd10089fea779af168 | 9ba73a364c00352f29fe92e8b0b8ad1c59bf2c93 | /Laboratorio/Ejercicios/Ejercicio 4/DiazFrancisco_Ejercicio4.py | e02023b2074a45ead3f4777ad5b73f96232f4d70 | [] | no_license | PachoDp13/Metodos_Computacionales | 2bd0ba58e30468497535569c86e964359f94791f | c0cfe752ba1e7da99d47c3dd49a13eae7ecc0fd1 | refs/heads/main | 2023-07-16T04:28:50.103861 | 2021-08-27T00:33:16 | 2021-08-27T00:33:16 | 333,147,744 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | #Laboratorio métodos computacionales: Ejercicio 4
#Estudiante: Francisco Javier Díaz Perdomo
#Primero importaremos los paquetes que usaremos.
import numpy as np
import random as rd
#Definimos la función generadora de nuestro espacio muestral y las dos funciones de conteo para Alice y Bob.
def nDados(n,m):
lista... | [
"noreply@github.com"
] | noreply@github.com |
731a97f533c3e1639c4647b302fde4e2194186fe | 84e03cf894e279fd6b5ea1383a856dec6c5bf854 | /neurolib/optimize/evolution/evolution.py | d28d8e3230594c52643059d3a9983318c86471db | [
"MIT"
] | permissive | SaeedTaghavi/neurolib | d3aaf5e14889853c08099576aa946435e6a8cbdb | ccaf1471888347181f02eddd0ec68a381e6a021d | refs/heads/master | 2021-05-17T16:47:31.977276 | 2020-03-23T15:49:45 | 2020-03-23T15:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,534 | py | import datetime
import os
import logging
import multiprocessing
import sys
import deap
from deap import base
from deap import creator
from deap import tools
import numpy as np
import pypet as pp
import pandas as pd
from ...utils import paths as paths
from ...utils import pypetUtils as pu
from . import evolutionaryU... | [
"sevensirk@gmail.com"
] | sevensirk@gmail.com |
32f18d4ff2df04aa250cc8304d7534a6fda3a4b6 | 85e79d6d64b8a667f9226cfd63a2469462f660e9 | /lin_connect.py | 4d4e3cdf1db17f0cdd10f2dd63daed4b4a1f4154 | [] | no_license | yang-yk/Quantized_Object_Detection | 9e0830b65b85af5787502d67f736abdc21e0d001 | edf50864830c01110f75f93ed343dd068488b6a1 | refs/heads/master | 2022-09-13T12:59:15.516660 | 2020-05-23T03:45:05 | 2020-05-23T03:45:05 | 266,177,036 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,752 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 26 16:33:31 2019
@author: yyk17
mail: yyk17@mails.tsinghua.edu.cn
linear quantization of weight in dense and conv2d layer
"""
import torch
from common import front
from device import device
from torch.autograd import Variable as Var
def LinQuant(bit_width=8, with_sig... | [
"1228079624@qq.com"
] | 1228079624@qq.com |
c16f2811c49b1a38ce21d0b11d55b72c4c7d07d4 | 6ac25b34764cdab0a3230daa67e97bd00f5d3677 | /Heuristic/custom_heuristic.py | f47f9cb4f2170f2f157b902b5f2af38c47050e33 | [] | no_license | boodland/Intro-To-Data-Science | 734dedb458cb9ffcf2b93f2db19b42150f9f6620 | c26b4dc4c1751c1b1be65128d6cd5707e85fabf3 | refs/heads/master | 2021-09-07T07:54:29.917613 | 2018-02-19T18:38:45 | 2018-02-19T18:38:45 | 118,651,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | import numpy
import pandas
# import statsmodels.api as sm
def custom_heuristic(file_path):
'''
You are given a list of Titantic passengers and their associated
information. More information about the data can be seen at the link below:
http://www.kaggle.com/c/titanic-gettingStarted/data
For this e... | [
"alberto@boodland.com"
] | alberto@boodland.com |
79cad3e8ca5d73abbee277872b4e59a1fe178b33 | cb76c2ef62989b2ec91836d22caef6614f45fe7c | /src/insights/whitelist_import/whitelist.py | 503447ec81f8355e4a210e0697e540f8bcba1052 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Ping-lin14/mosaic-streamlit | 7bd59dd1bb7bdf35d1d286ed10dca15d1dedbfc1 | b63d549f2922b4cf4cd0a4eb10e3867dfdbe053e | refs/heads/master | 2023-07-23T13:15:12.705694 | 2021-09-06T12:28:53 | 2021-09-06T12:28:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | import pandas as pd
from .columns import ALLELE_INFO, ALT, CHROM, END, POS, REF, START
__all__ = ["Whitelist"]
class Whitelist(pd.DataFrame):
"""Container for .bed file whitelist"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
assert CHROM in self.columns
a... | [
"mohorovic@missionbio.com"
] | mohorovic@missionbio.com |
2aeb0cb802cd448cc40eb31633927bc1dec209e9 | 6288f56016e0a1dc9e4a4eceb18425d4ae27f4a3 | /tests/test_shared_bandwidth_switch.py | a56dcf16eb26e6f748983a354187ef70850c7256 | [] | no_license | brettviren/ersatz | ec547fe347bfcc9ccafce7b159cc6378f3f4ab7d | 187df8096d5dadae2a115a7796cafd6d59c4f6af | refs/heads/master | 2021-01-17T22:14:06.475993 | 2018-01-21T18:31:31 | 2018-01-21T18:31:31 | 60,030,033 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | #!/usr/bin/env python3
import simpy
from ersatz.switch import Switch, LinkedSwitch
from ersatz.datum import Datum
from ersatz.monitoring import trace
def test_balance():
sw = Switch(None, 100)
for ip in range(5):
for op in range(max(0,ip-2),min(5,ip+2)):
sw.stage(Datum(ip, op, 10, None))
... | [
"brett.viren@gmail.com"
] | brett.viren@gmail.com |
63d7f3c89658a01079abd5b06202f051e57c178c | f770eccb6efc9d829512f35d9790ee6a71bfce6a | /Assignment2/config_peer.py | 6143864d3471924d9e07192da38c26860f545be0 | [] | no_license | shashankkumarIITB/CS765-Blockchain | 49331afc1b9dff4e0e232fd7d75829d0196bba63 | a19b5da465b2c256c925c7375da9cdbac54671a4 | refs/heads/master | 2023-01-25T01:47:57.036844 | 2020-12-08T12:42:38 | 2020-12-08T12:42:38 | 291,318,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | HOST = "192.168.1.6"
PORT = 4000
MAX_LISTEN = 5
NUM_SEEDS = 1
NUM_PEERS = 2 | [
"shashankkumar.cse.iitb@gmail.com"
] | shashankkumar.cse.iitb@gmail.com |
94582e42505a967e1d59c3bd97847bf36f77b135 | e3019af9c8db5cf827b55b75962eeceb1a498bc3 | /codigo/parser/memoria.py | 7d609505af4a2cbb486abd05980090d91e1d144e | [
"MIT"
] | permissive | IkerArb/ProyectoCompiladores | 7b3a3b73b1ff5a8bea645fa68be0a20ae0504e43 | ba78e1a6c8b9942673c05b60fb7d622160f7e8e9 | refs/heads/master | 2021-01-10T16:29:49.491062 | 2016-05-05T17:22:53 | 2016-05-05T17:22:53 | 52,538,740 | 0 | 0 | null | 2016-03-09T15:51:44 | 2016-02-25T16:14:38 | null | UTF-8 | Python | false | false | 4,262 | py | ## clase de memoria la que se utiliza para pedir memoria
## cuando llamas a una nueva funcion, la global o la de
## cancion, nos ayuda a definir el tamano en variables
## del elemento y las casillas y los valores de ejecucion
## que agarra cada casilla, inicialmente arrancan en 0
class Memoria:
## unica funcion de ... | [
"ikerarbulu@gmail.com"
] | ikerarbulu@gmail.com |
f240b88af2e207af5f2defc3dbd941dacd6306f2 | 0b3d9a71ad358c37a8bf5275c041d41f8d124d58 | /prac_02/capatalist_conrad.py | c7aaff485ac293973de29fb18defd8ee9a49e856 | [] | no_license | rhys-simpson/cp1404practicals | 55d7c4bc7a524404b839b45c4874e78f85e60bfd | d5eba2bd2fb061db69283701f7c6589066195171 | refs/heads/master | 2023-01-02T22:44:43.413180 | 2020-10-29T05:04:39 | 2020-10-29T05:04:39 | 288,898,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | """
CP1404/CP5632 - Practical
Capitalist Conrad wants a stock price simulator for a volatile stock.
The price starts off at $10.00, and, at the end of every day there is
a 50% chance it increases by 0 to 17.5%, and
a 50% chance that it decreases by 0 to 5%.
If the price rises above $100, or falls below $1, the program ... | [
"rhys030102@gmail.com"
] | rhys030102@gmail.com |
1be15cac9075304e3df2e691a5358816f70db28a | b8ca51b15439820eef88e675d853ea6efd3e4b79 | /practice3.py | 146f4561f126e8619ded1a5a1e35a5525391e0f4 | [] | no_license | JaneNjeri/python_crash_course | 9b216a4ae86d833e863fec9e86fffc359821935e | f9a635959eef052eb2337b97ba026053c5af3a49 | refs/heads/master | 2022-09-07T04:36:41.789771 | 2018-06-26T19:22:30 | 2018-06-26T19:22:30 | 260,538,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py |
magic = ['fire','water','earth','wind']
for spells in magic:
print (spells)
for spells in magic:
print(spells)
for spells in magic:
print(spells)
for x in magic:
print(x)
for y in magic:
print(y)
print('----------------------------------------------------')
for spells in magic:
print... | [
"shivekyle@gmail.com"
] | shivekyle@gmail.com |
a4bdae18ef6ee88460fe844270b4130cb36da56a | 616c3c02be31b9ae4d06bd7c5a8d4a2e7c446aa1 | /17.电话号码的字母组合/solve.py | 7d3beeb02181bca20a855978580ba7ebc4355289 | [] | no_license | L1nwatch/leetcode-python | 8b7c47c04ee9400d50d8b0764a544a0463df8f06 | 0484cbc3273ada25992c72105658cd67411c5d39 | refs/heads/master | 2023-01-11T14:53:15.339276 | 2023-01-11T05:24:43 | 2023-01-11T05:24:43 | 194,516,548 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | #!/bin/env python3
# -*- coding: utf-8 -*-
# version: Python3.X
"""
"""
import re
from itertools import permutations
__author__ = '__L1n__w@tch'
class Solution:
def letterCombinations(self, digits: str) -> list:
letters_digit_map = {
"1": "",
"2": "abc",
"3": "def",
... | [
"feng5.lin"
] | feng5.lin |
78110ca821fd1420e7e57c62b5a0c7995d6038c7 | a37bcf2d939f97f52afff572eb0e4a6ad9bc3667 | /LMBI/store/models.py | daba3e773a9f353132ba99140595515484052a18 | [] | no_license | ashish807/E-commerce-Website | cb2c31381a8b92fd1e86b6b7b417e3730e08fc6e | 0820fa74ab41bec5dbc5861e6f08f93f73cc8490 | refs/heads/main | 2023-06-22T15:19:12.592537 | 2021-07-24T11:43:26 | 2021-07-24T11:43:26 | 385,107,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,736 | py | from django.contrib.auth.models import update_last_login
from django.db import models
from category.models import Category
from django.urls import reverse
from accounts.models import Account, AddState
from django.db.models import Avg, Count
# Create your models here.
class Product(models.Model):
product_name ... | [
"ashish.adhikari727@gmail.com"
] | ashish.adhikari727@gmail.com |
dedc66a88a0c12827c7687c27f444cb3b578879e | 8398712fd3474582741b020397ee17621ff9ee17 | /get-dns.py | 19f925286a08a74a3641bc26c43b24b04c853ce7 | [] | no_license | 4hiziri/Packet-Flower | 7bb7a40dd149ae7311092b6e768d7913fdf0dc40 | 9c098da66a22446051701dcaf307bbd4c357f1fb | refs/heads/master | 2021-09-10T14:49:01.682775 | 2018-03-28T02:43:11 | 2018-03-28T02:43:11 | 106,919,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,503 | py | #!/usr/bin/python3
import gi
gi.require_version('NM', '1.0')
from gi.repository import NM
from scapy.all import srp1, IP, IPv6, UDP, DNS, DNSQR, Ether
def info(interface):
print("package test")
test_domain = 'www.google.com'
client = NM.Client.new(None)
dev = client.get_device_by_iface(interface)
... | [
"meirvg@gmail.com"
] | meirvg@gmail.com |
15ecd4027b7fc663aab215bced5f75a12d430ecc | 0de0e4232a8ceed128ad3a737b92c9ec75f0719f | /app/main.py | c299cf2cb62e653c2e9dc4d33d8f2930f9771558 | [] | no_license | Alex0M/aks-jenkins-cd | 0a77c64874ed0c332053b5098335fded48c7559e | bb7632b9f1fc62921416ce2e63d5f2921a576c27 | refs/heads/master | 2020-05-18T06:16:24.101618 | 2019-05-10T13:27:47 | 2019-05-10T13:27:47 | 184,230,551 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | from flask import Flask
import json
import psutil
app = Flask(__name__)
@app.route('/healthz')
def healthz():
return "200"
@app.route('/version')
def version():
return "v0.3.0"
@app.route('/cpu')
def cpu():
cpu = psutil.cpu_times()
return json.dumps(cpu._asdict())
@ap... | [
"alex.sudom@gmail.com"
] | alex.sudom@gmail.com |
20e52e807525b5469c01ec0163050204dac09ef7 | 69be7ed76473e517b7998d8c900798dd1e58da5a | /scripts/create_blast_taxonomy.py | 414c87b8db4ee48953a141f77c33853f17ee83f1 | [
"MIT"
] | permissive | MW55/Natrix | c337d3fca15d7b603b3db046ac228f5b9958d790 | feb30960dca294490bcdff666af885a4b768a429 | refs/heads/master | 2023-07-24T11:24:19.380580 | 2021-11-16T13:32:12 | 2021-11-16T13:32:12 | 169,581,205 | 36 | 8 | MIT | 2021-11-16T13:32:13 | 2019-02-07T14:04:58 | Python | UTF-8 | Python | false | false | 643 | py | import pandas as pd
import logging
logging.basicConfig(filename=str(snakemake.log),
level=logging.DEBUG)
tax_df = pd.read_csv(snakemake.input[0], sep="\t\\|\t", index_col=0, header=None, engine='python')
def get_tax_lineage(row):
if(isinstance(row[2], str)):
result = row[2][:-2]
else:
... | [
"daniela.beisser@uni-due.de"
] | daniela.beisser@uni-due.de |
fed436a78965621fc8ed05fb15688339d178b455 | 17fffb4a327b819031b3133a5d3247815b34c551 | /api/migrations/0007_auto_20170623_1942.py | 1d837fd41f4245302a4c720154217ce92f4c3b1a | [] | no_license | aneel-sood/snm-server | 87edc811111005dce01be8f3138838760caa4ea9 | d74135a8e431c0d6bb164ce3abd79e9f2931cb16 | refs/heads/master | 2020-03-07T02:19:48.167986 | 2017-10-23T02:07:43 | 2017-10-23T02:07:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-23 19:42
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('api', '0006_remove_need_status'),
]
operations = [
... | [
"leon.lukashevsky@gmail.com"
] | leon.lukashevsky@gmail.com |
e4b6379a9ab0ae29285f544385660d3ae97123f3 | 86ce416146d175a4b0782fd296b85e7596695ff5 | /manage.py | 4ac02b04372acb017b42cf6c4c61f10baa7b4d96 | [] | no_license | Drewugbechie/XploreAbuja | ef33a42e8146a69480fffcb40e8108913034a42d | 8ec7270198c9a6a55234b9044822ac6e64fa980e | refs/heads/master | 2020-04-21T04:37:05.927678 | 2019-02-05T21:24:35 | 2019-02-05T21:24:35 | 169,317,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'XploreAbuja.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. ... | [
"andrewugbechie@gmail.com"
] | andrewugbechie@gmail.com |
bb0ef65368d9458b19b1eac43e9dda050318da9e | 6a596addd18e99b525936b81886fc5b414d4d8e7 | /maya/maya-utils/MultiDev/2019-2-15 Tim MH_LightRebuild/.history/Maya_LightRebuild/Maya_LightRebuild_20190111164254.py | 19d083eab42a8f0f711158d09d16ee96d3b86ce9 | [] | no_license | hengtek/IDoLibrary | efb2791b4dd058c35264cabdd38a230f7b0b071f | 5724ba3813a72f8780b835dc995acbc66fccbcc2 | refs/heads/master | 2023-03-16T16:15:20.082951 | 2020-03-12T17:51:02 | 2020-03-12T17:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,340 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
from plugin.Qt.QtCore import *
from plugin.Qt.QtGui import *
from plugin.Qt.QtWidgets import *
from maya import cmds
import mtoa.utils
def loadUiType(uiFile):
im... | [
"592041924@qq.com"
] | 592041924@qq.com |
8f88cf7d3853bda3ba9e25ae39c13ec655cedfba | 0a1e9e587e6bee63b0553100c8ec3eb7cbb9b943 | /account/utils/validators.py | 78830ca94dfc6da03a7676cd33dc7e02a9b69e08 | [] | no_license | prabhatpankaj/django_rest_otp_jwt | 5037748bf772420abe5ce940cc3a92b8de56617b | 5caaef386101b9146b443e2bc3a9225680343929 | refs/heads/master | 2022-12-13T08:56:00.850999 | 2019-03-06T08:37:58 | 2019-03-06T08:37:58 | 174,105,055 | 0 | 2 | null | 2022-05-25T02:32:38 | 2019-03-06T08:36:42 | Python | UTF-8 | Python | false | false | 3,299 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import re
from django.core import validators
from django.utils.deconstruct import deconstructible
from django.utils.translation import gettext_lazy as _
from binascii import hexlify, unhexlify
from os import urandom
from django.core.exce... | [
"prabhatiitbhu@gmail.com"
] | prabhatiitbhu@gmail.com |
dad9cd6d779964c34bdcfba76f22df838f08a2df | 1df7089e41d3ec5fa2fe1a1f9f8a2095dfcddc17 | /lib/udev/udev-add-printer | 24efe816b1ac5cb3e38f60051d1d8952efe3a2eb | [] | no_license | VadymDenysenko/linaro_linux_fs | 4d31f23aaedff2a2e663860230805f76a5c2dbf2 | 51b5cddffb8d58302329011053ea327dce28e6b4 | refs/heads/master | 2022-11-05T20:23:19.804107 | 2017-08-10T02:20:22 | 2017-08-10T02:20:22 | 99,867,847 | 1 | 1 | null | 2022-10-22T15:37:08 | 2017-08-10T01:32:20 | Python | UTF-8 | Python | false | false | 10,687 | #!/usr/bin/python3 -s -B
## udev-add-printer
## Copyright (C) 2009, 2010, 2014, 2015 Red Hat, Inc.
## Author: Tim Waugh <twaugh@redhat.com>
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; ... | [
"vadym.a.denysenko@gmail.com"
] | vadym.a.denysenko@gmail.com | |
918a5618d56e51317a4a67dafb2975bf2f9b5e58 | 15531adf1e9b66db6259a52d16d0b0ddd672f4e9 | /backend-project/small_eod/institutions/migrations/0009_auto_20200618_2320.py | f79ca4d496e41841d8d2f2d73ddddb1de08763ad | [
"MIT"
] | permissive | watchdogpolska/small_eod | 2c81b0bb67113a4fd9f5c9c0f8b07daa2399e243 | 509f532e10c20e700cb9b37c73f4a695b53b42a8 | refs/heads/dev | 2023-09-01T01:30:44.681105 | 2022-03-31T19:36:39 | 2022-03-31T22:20:42 | 136,141,184 | 66 | 75 | MIT | 2023-09-04T14:33:37 | 2018-06-05T07:56:33 | Python | UTF-8 | Python | false | false | 739 | py | # Generated by Django 3.0.7 on 2020-06-18 23:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tags', '0005_merge_multiple_leaf_nodes'),
('institutions', '0008_auto_20200528_1330'),
]
operations = [
migrations.AddField(
... | [
"noreply@github.com"
] | noreply@github.com |
0cb663eb8873e7cbf7db6c8820a71e24a189d5ce | 54f296981177357ca46382c5e98c6658a842f6b6 | /webservice.py | 5e7c4439c7544720b99eaa3e16d436bbb4022dcb | [] | no_license | julesgueno/repovalidity | 04da5fc00fdbeb4d0d235f38b8531bdd7dad3b34 | d60f22d9562795f91bdfcc6d03379125f046012c | refs/heads/master | 2023-01-08T13:58:33.512666 | 2020-11-15T03:43:51 | 2020-11-15T03:43:51 | 312,889,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from flask import flask, request
app = flask(__name__)
@app.route ('/email', methods=['POST'])
def email ():
print('To: ', request.form['to'])
print('From: ', request.form['from'])
print('Date:', request.form['date'])
print('Subject: ', request.form['subject'])
print('Message-ID:', request.f... | [
"julesgueno@gmail.com"
] | julesgueno@gmail.com |
fbc7f3157e5b27c7cdd9c0ac20b102caba6fa5c5 | 38dd455f549e107ba22b6182bd175c42401b723b | /old_scripts/old_datasets.py | 3a0685555fcab2eb229790482a98b8a859d185e6 | [] | no_license | gitaar9/DL_GROUP | 36b8326b504d889c196aba6a67f1e025a9cdfc2c | ded1faf81dbbb81462b94117faa9fc7c69443c86 | refs/heads/master | 2023-02-28T15:05:30.854289 | 2019-07-05T21:03:27 | 2019-07-05T21:03:27 | 184,569,535 | 3 | 0 | null | 2022-11-22T03:50:11 | 2019-05-02T11:30:52 | Roff | UTF-8 | Python | false | false | 4,337 | py | import csv
import os
from random import randrange
import numpy as np
import torch
from torch.utils.data import Dataset
class MidiClassicMusic(Dataset):
"""
NO LONGER USED!
MidiClassicMusic dataset for PyTorch
"""
def __init__(self, folder_path, composers, train=True, slices=7, add_noise=True, uns... | [
"thijs.eker@target-holding.nl"
] | thijs.eker@target-holding.nl |
5e46ca3d975125a7d1f7f55adc60633899c65f49 | f8f6e6031a17afe840791f73424e716ece8aafac | /lanes.py | c6b3313159f3118b15114a36744b8c34f54e15be | [
"MIT"
] | permissive | Gsak3l/Car-Lanes-Finder | 136187a03009423cdcc5d585fd20c8dab0b8c817 | 46d4adec45feacf5e4d11da28de86fcff07cb768 | refs/heads/master | 2023-02-01T23:21:07.645662 | 2020-12-08T19:18:01 | 2020-12-08T19:18:01 | 317,989,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,770 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
def make_coordinates(image, line_parameters):
slope, intercept = line_parameters
y1 = image.shape[0]
y2 = int(y1 * (3 / 5)) # this should be 422 in this case, starting point
# y = mx + b => x = (y - b) / m
try:
x1 = int((y1 - i... | [
"gsakel5@gmail.com"
] | gsakel5@gmail.com |
b381d206dfe0b922bb5e6369dbd37aa2bf364162 | fc498b4022dd40718650215c85a42f0f544b90ad | /manage.py | c5f48edc3b40a3e27f225e42a21d7fa24cf32b74 | [] | no_license | abhi526691/CRUD-AND-AUTHENTICATION | a0941090b7e66d0b413d0f092bf5bfe6244974ca | 82e738cd17fb94fca0af292a75402c9aa87ec5f9 | refs/heads/main | 2023-06-04T19:08:46.514726 | 2021-06-19T13:10:30 | 2021-06-19T13:10:30 | 378,411,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'UserLoginInfo.settings')
try:
from django.core.management import execute_from_command_line... | [
"noreply@github.com"
] | noreply@github.com |
f47f8cbffb8e40e540e43f40e2cfc2e87eacb161 | d00fa44bcabf5a416953a4a0f83369517e5b66d4 | /sushy_tools/emulator/resources/systems/libvirtdriver.py | 9b9f70c496fe20bfdf880c870210f7cbd94bcff8 | [
"Apache-2.0"
] | permissive | agonzalezrh/openstackredfish | 4eed3e6951c813a240dee78dcc0b9cfd4fede88f | dfb39a8a1a088ed5f25d4017fa83dbe7a0e7a76d | refs/heads/main | 2023-03-26T12:38:03.470651 | 2021-03-23T14:35:11 | 2021-03-23T14:35:11 | 350,690,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,367 | py | # Copyright 2018 Red Hat, Inc.
# 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
#
# Unless required by... | [
"josegonz@redhat.com"
] | josegonz@redhat.com |
361d361dceb9564b30474c211502a3fda97d9045 | fa249730fd2ce9f2f25100e400d1e70ca9c3c87f | /test-pythons/string-sum-rust/test.py | 0e22fb4d5cfc1704de389d0b70d94e6762baea73 | [] | no_license | itang/tests | be027d1d4fa7d75ac30d92844b2652fb0faf08af | 361df77861c6cc9a8eda0aad6af8771ea60b1b16 | refs/heads/master | 2023-03-16T14:40:27.961161 | 2022-02-13T13:39:19 | 2022-02-13T13:39:19 | 22,547,829 | 4 | 1 | null | 2023-03-05T16:15:32 | 2014-08-02T14:36:35 | HTML | UTF-8 | Python | false | false | 88 | py | from string_sum import sum_as_string
print('200 + 300 = %s' % sum_as_string(200, 300))
| [
"live.tang@gmail.com"
] | live.tang@gmail.com |
5d7c5c19a31f4f2547cd260c840aea2072713e30 | eb8d35c0073cfa1ef188c4bdf2acc9bc8e168774 | /download_music.py | 0900c85c3b1b47b0200a2b241bb9f8ac4c0f3731 | [] | no_license | edantonio505/youtube_mp3_download | 49fd65ee83aa7d7c5f9481c7827d67f4357794ba | 7841be0431f4223a37972ccf47eafe0609c99203 | refs/heads/master | 2021-05-14T02:09:14.200734 | 2018-01-07T18:12:22 | 2018-01-07T18:12:22 | 116,588,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from __future__ import unicode_literals
import youtube_dl
import sys
music = sys.argv[1]
ydl_pts = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
}
with youtube_dl.YoutubeDL(ydl_pts) as ydl:
... | [
"edgarvelazquez@Edgars-MacBook-Air.local"
] | edgarvelazquez@Edgars-MacBook-Air.local |
a7157cd51b22e40b1d117df0be2e10add0267911 | aedd30e4f4c230722ada171ed11c22e693324f3c | /Day_35_FindPeakElement.py | fdafce2fb6ee49b7f0f3038477b24c85018887cf | [] | no_license | loetcodes/100-Days-of-Code---PythonChallenge-01 | 173afb7241bfd2c8f43fde0bbe072c597b0fb756 | b186bfa0ba74bd72edcd7ef8065f026c579b0cc4 | refs/heads/master | 2021-07-21T03:59:51.806004 | 2020-06-01T23:36:47 | 2020-06-01T23:36:47 | 176,126,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | """
Day 35: Find Peak element using binary search
Leetcode
A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element and return its index.
The array may contain multiple peaks, in that case return the index to any one of the peaks is f... | [
"46016065+lulets@users.noreply.github.com"
] | 46016065+lulets@users.noreply.github.com |
d667b90851b46f0035690756b9c80588269d1548 | 9284e2126402553da75a1f24726b03d5c8b06314 | /Sorting/Insertion_Sort_Algo.py | b37b017222d1ba82656ab6ed6eb1b78a30aea752 | [] | no_license | sonushahuji4/Competitive-Programming | cef6c304585bdaf7eabdbc9d9ce68d098e677258 | 90b2abb51b59be5c8b39e46c6dcb06bb157f16a0 | refs/heads/master | 2022-07-01T12:47:35.937780 | 2020-05-05T14:29:44 | 2020-05-05T14:29:44 | 218,070,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | # Video Reference : https://www.youtube.com/watch?v=yCxV0kBpA6M
# Explanation
# The array of values to be sorted is divided into two sets
# 1) one that stores sorted values and
# 2) another that contains unsorted values
# The sorting algo will proceed until there are elements in the unsorted set.
# Suppose there are n ... | [
"sonushahuji4@gmail.com"
] | sonushahuji4@gmail.com |
8869077a7e227809b58f62593c3a639db3ee87d1 | 8cd04470706414df9b8b937d2fb205f6219db6ed | /envs/wpt_env_dir/original.py | 6ce971239c04e238ad933e97b68326402c45f1b4 | [] | no_license | xiaogaogaoxiao/WirelessPowerTransfer | 1ee903c9eb3c7e59bdbc9836eb16448f81016261 | ed982ca144576e61415522ebc7073d81613d5d84 | refs/heads/master | 2022-10-13T03:36:08.862101 | 2020-06-14T15:14:19 | 2020-06-14T15:14:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,362 | py | import gym
import numpy as np
import math
import sys
import matplotlib.pyplot as plt
from gym import spaces, logger
from gym.utils import seeding
from gym.envs.toy_text import discrete
class WPTEnv(discrete.DiscreteEnv):
'''
Observation:
Type: Box(6 or 8)
Num Observation ... | [
"blp_engineer@outlook.com"
] | blp_engineer@outlook.com |
4ef48e679aff7092394b8889b9d9ec23fc6e0bb4 | 75896903a1dc67f84673393ee20fc21065693b7a | /PythonFirst/dic&set.py | 1cb771fdcbb5fceea5be0df3c4698125fb1bdeff | [] | no_license | zooee/PyDevtest1 | dcd1fd73193a8205bdaa3f373319ddf52f1a5393 | abbf035ecf950b41b84996f8644ecfb00aec3dd0 | refs/heads/master | 2021-01-17T05:09:45.299378 | 2016-08-01T09:01:23 | 2016-08-01T09:01:23 | 64,647,586 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | #encoding:utf-8
'''
Created on 2016年3月21日
@author: Administrator
'''
#d = {'Duo': 1, 'lai': 2, 'mi': 3, 'fa': 4, 'suo': 5}
#d['fa']
| [
"18782965509@163.com"
] | 18782965509@163.com |
2d221d2a8dc6b08185246bb99586f228c40e91ef | a6ba2e721db0614333af387ebfcb4ddc1152742e | /05_File_pointer_move_ex.py | 4f1d41799360f46ca84c4215650688eb3ad91e4e | [] | no_license | jeonchangdo/Python_File | a5d1b7a7dd7c3f3c09548c1498e0cccb818596fa | 616fe0fa6b2020a58bf613df69eff0ac88f13eeb | refs/heads/master | 2023-02-11T06:03:45.066651 | 2021-01-07T03:06:09 | 2021-01-07T03:06:09 | 327,488,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | f = open('test2.txt', 'r')
f.seek(0,0) # 시작위치 (offset, 위치) : 파일에 시작점에서 0번째 문자
# (0,0) : 0행 0열 (파일 시작위치)
# 첫번째 행만 출력
f.seek(0,0)
line = f.readline()
print(line, end='')
f.seek(7,0)
line = f.readline()
print(line, end='')
f.seek(14,0)
line = f.readline()
print(line, end='')
f.close() | [
"thtm11111@gmail.com"
] | thtm11111@gmail.com |
f761f157069a51fef2dade3ebdadd11611dbe111 | a18fba3eeb79b51faa55fcb1c45804ae57bb0aa4 | /wall_erd/Wall/settings.py | 7b1d1b9a14c56ad892d1bab1b6d1ec353c721c7b | [] | no_license | Catrinici/Python_Django | a850f732734f799c923035d4b28a9553e288194f | 9415b40a49fc9aa0a685937a62e259bd8103e208 | refs/heads/master | 2023-04-28T13:22:16.987969 | 2019-10-15T15:41:38 | 2019-10-15T15:41:38 | 206,885,302 | 1 | 0 | null | 2023-04-21T20:37:48 | 2019-09-06T22:52:27 | Python | UTF-8 | Python | false | false | 3,111 | py | """
Django settings for Wall project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"catrinici.antonina@gmail.com"
] | catrinici.antonina@gmail.com |
5b6deffe2316cda2eab7262518102e01b8860ec1 | 178a70c89d1d63964abc689b3e019cf36b49f7dc | /.ycm_extra_conf.py | 3d3c06933f1014bacc256939dd0de7d4f5228d7e | [] | no_license | mjtorn/ello_world | 70eec74fb6674e9a3f73434ca9fca6dcce34eae7 | 6067ab895d7a3fd69060d8dbaca682ae58fe9a5a | refs/heads/master | 2020-05-19T07:30:26.751760 | 2014-01-21T18:19:25 | 2014-01-21T18:19:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,318 | py | # This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either... | [
"mjt@fadconsulting.com"
] | mjt@fadconsulting.com |
ce4e268581de7be1cadc50e28d45a513e3bc36f6 | dfc4fa04a76bbef1e83312a42663f5c8a846e9f9 | /CASIA-WebFace/split_into_half.py | 3f633c9f8b9a59661ba1a9f9227b2509aed179d8 | [] | no_license | browarsoftware/adlcc | 1aa5f47cdca9e5cc8724949376553126647ad45e | 6a8a0a4c5cfd88563b167423c05d49a892bb483b | refs/heads/master | 2023-01-06T02:03:42.408725 | 2020-10-18T16:46:10 | 2020-10-18T16:46:10 | 279,968,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | from scipy.special._precompute.gammainc_asy import header
from sklearn.decomposition import PCA
import pandas as pd
#file_name = "30-16faces.data.attr.csv"
file_name = "same_twarze_faces_data_network_OK_CASIA-WebFace_align.txt"
all_data = pd.read_csv(file_name, header=None)
print(all_data.shape)
all_data = all_data.s... | [
"tomekhachaj@o2.pl"
] | tomekhachaj@o2.pl |
b9b06956b7b2794acafbe990e542a049cc46f89c | ea4f3d9b089e4389e9b853046c9b3767d27571f7 | /sensors/RPi.GPIO-0.5.0a/setup.py | f4644462d956e618e647c4ca044e035e05143a6a | [
"MIT"
] | permissive | tec-csf/reto-iot-en-supermercado-2019-nova-iot-supermarket | 338cd8dc8b7ab0801e2f6fb87a58afc740c272aa | 0eb643132478a06477404dcd86c4359869ec7d81 | refs/heads/master | 2020-08-29T15:13:40.000676 | 2019-11-04T21:29:13 | 2019-11-04T21:29:13 | 218,071,729 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup, Extension, find_packages
classifiers = ['Development Status :: 3 - Alpha',
'Operating System :: POSIX :: Linux',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developer... | [
"jorge.uriel1@gmail.com"
] | jorge.uriel1@gmail.com |
c88a9b3f080c5d5c0e157f329551ffc7f57febb2 | 3dd75294aa343ed1ba701e9b71df22bd012bf980 | /53.py | 91b88cfa0fd0c46c4424226d7deed11a178717f9 | [] | no_license | Airock/PJ-Slove | f618677ab6a85f0d36443fe60b11c56e0db9dddd | e9e745fedbfa154d7d9960e2a1220033dcedba5a | refs/heads/master | 2016-09-05T20:37:46.551863 | 2013-01-05T07:35:17 | 2013-01-05T07:35:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | cur=[1144066,23,10] #C23,10
def incN(input):
value=input[:]
value[1]+=1
value[0]*=value[1]
value[0]/=value[1]-value[2]
return value
def decR(input):
value=input[:]
value[0]*=value[2]
value[2]-=1
value[0]/=value[1]-value[2]
return value
count = 0
for i in range(23,101):
while ... | [
"airock198@gmail.com"
] | airock198@gmail.com |
ec965b85368b0f19cbf19a9d636427c4e605d47b | c48d6eb9cfcea72cfc468bf77a167530b538f928 | /blog/admin.py | 2d59f957140ed601bb1d06ffc09f3876ed71529e | [
"MIT"
] | permissive | dhavalsavalia/blog-on-django | 814925953d969cd8a6e977ef5a939a7f0f2464e1 | d33074336ef4b061e2dd82c75e765f12925aee0e | refs/heads/master | 2021-06-28T20:16:38.061659 | 2017-09-22T06:26:20 | 2017-09-22T06:26:20 | 103,842,111 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.contrib import admin
from blog.models import Post, Comment
# Register your models here.
admin.site.register(Post)
admin.site.register(Comment) | [
"noreply@github.com"
] | noreply@github.com |
e49dc1e7da06950c1931e4044fc05da3b7212b5e | 8e839366b8f42e7e96936d1d990031218c7a8cca | /TencentNewsApp/spiders/news.py | 56c6dcdfba855a3db518c6f050ef2d9b739f49d6 | [] | no_license | OSinoooO/TencentNewsApp | 8b68f2e40c264cec823c42bd64add782de408b1a | 85b21549c2250df3d42a0d213f3c1b579cb03878 | refs/heads/master | 2020-06-13T22:33:10.801148 | 2019-07-02T07:33:00 | 2019-07-02T07:33:00 | 194,809,437 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,373 | py | # -*- coding: utf-8 -*-
import re
from copy import deepcopy
import scrapy
import json
from ..settings import NEWS_ALL_PAGE, PLATES, COMMENT_ALL_PAGE
from ..items import TencentnewsappItem
class NewsSpider(scrapy.Spider):
name = 'news'
allowed_domains = ['inews.qq.com']
plates_code = dict(news_news_recomme... | [
"345285987@qq.com"
] | 345285987@qq.com |
8d58a7ad79d94af1b223cd99ce31c8c1f9c05b5c | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/firebaseappdistribution/v1/group.py | fb267bd983e42bb1c41b002ef390b34637ede4ca | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 10,105 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | noreply@github.com |
b1e137a5ee05c78ed9acc5f1f448d46ac6c622fc | ec2db27d940b40ae54128c05218935c54d19d267 | /hophacks19/posts/admin.py | c039622bb516b52680a050daebb445fdbb41f751 | [] | no_license | christian-rncl/AId | f8fe2fa51c23b40247ba873335da037dee6d684f | 4c7258dd27fa2f7e7aa6de3ad207de34e9f996f5 | refs/heads/master | 2022-12-10T11:19:05.051870 | 2019-02-18T02:17:12 | 2019-02-18T02:17:12 | 170,966,360 | 2 | 1 | null | 2022-12-08T01:36:57 | 2019-02-16T05:25:34 | Python | UTF-8 | Python | false | false | 154 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.Post)
admin.site.register(models.Disaster)
| [
"jzwang43@gmail.com"
] | jzwang43@gmail.com |
2ec95415f430e11cd8d661ed5808eb2d90dc07bc | 372685775b0496517515ae65b5bb5fe418c3902d | /test/__init__.py | bbb8d5894f8543ce0d138742a82ac4fc034f108b | [
"MIT"
] | permissive | EUDAT-B2STAGE/http-api-base | 3e94cfa69cba4bd3da791d4da7bb3e47a225f55e | 1124b0fedd33375138e5006f2d5df361ab8854bf | refs/heads/master | 2020-04-04T22:27:08.760756 | 2017-06-08T09:36:37 | 2017-06-08T09:36:37 | 51,437,382 | 0 | 1 | null | 2017-05-18T13:17:08 | 2016-02-10T11:36:17 | Python | UTF-8 | Python | false | false | 3,995 | py | # -*- coding: utf-8 -*-
"""
Test base
"""
import unittest
import json
import logging
from rapydo.server import create_app
from rapydo.rest.response import get_content_from_response
from rapydo.services.authentication import BaseAuthentication as ba
from rapydo.utils import htmlcodes as hcodes
from rapydo.utils.logs i... | [
"m.dantonio@cineca.it"
] | m.dantonio@cineca.it |
74af1ee0488e17146b37f90e89366a487d013a58 | d9496bd9149c5b07f6223cca250d03c5c9da2d01 | /venv/My_EP-8-2_Largest_product.py | 7651c7e5e3a8341f716c8880b0efa826660ca851 | [] | no_license | belkina2701/python-tutorial | ccfa514f7294f1676459b7b6f047ff64f67d8a5a | a5e8169ee58b7e40f5d9134f00928d2664655c4a | refs/heads/master | 2022-12-14T21:55:02.099671 | 2020-09-04T07:03:28 | 2020-09-04T07:03:28 | 279,616,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | '''Largest product in a series
Problem 8
The four adjacent digits in the 1000-digit number that have the greatest product are
9 × 9 × 8 × 9 = 5832.
Find the thirteen adjacent digits in the 1000-digit number that have the greatest product.
What is the value of this product?
'''
digit_number_1000 ='73167176531330624919... | [
"noreply@github.com"
] | noreply@github.com |
d1ac799fa5bb4496138fa9fd4043faa1d5f61115 | 2f4e06a25862dbb04b5869216cd970eaecfd1d90 | /haystack/file_converter/docx.py | 4d1842e2f5a80f8f5dbfb3219d83a903147e7fd0 | [
"Apache-2.0"
] | permissive | tcapilla/haystack | 59a7d4290a91cab513cc4a11516fb9ce1fb68078 | 0a6d361d47c60576884e412d1181fe9d88c5008e | refs/heads/master | 2023-08-15T16:39:59.017933 | 2021-10-15T09:07:18 | 2021-10-15T09:07:18 | 292,783,651 | 1 | 0 | Apache-2.0 | 2020-10-14T18:08:43 | 2020-09-04T07:43:57 | null | UTF-8 | Python | false | false | 915 | py | import logging
from pathlib import Path
from typing import Dict, Optional, Any
import docx
from haystack.file_converter.base import BaseConverter
logger = logging.getLogger(__name__)
class DocxToTextConverter(BaseConverter):
def convert(self, file_path: Path, meta: Optional[Dict[str, str]] = None) -> Dict[str,... | [
"noreply@github.com"
] | noreply@github.com |
5d0ad325cb29a6cca1db2bb2afa5748e0505a73a | 40b828929b4b0428b2dd303da92cbfe3feb74c31 | /packages/cldr-compiler/data/patches/patchlib/pluralrange.py | 4cb179b0519898de09d93e28ce548402b15b9a7d | [
"Apache-2.0"
] | permissive | phensley/cldr-engine | ba28e7da39806bd37a8525f755dbbf759f28bd61 | dee0d3d1658ffa1efb96f79a9270abc4bf73d398 | refs/heads/master | 2023-08-04T22:31:05.774921 | 2022-04-14T17:13:12 | 2022-04-14T17:13:12 | 119,266,604 | 38 | 2 | Apache-2.0 | 2021-08-16T12:51:47 | 2018-01-28T14:40:52 | TypeScript | UTF-8 | Python | false | false | 1,029 | py |
import json, os, sys
from collections import OrderedDict
from lxml.etree import fromstring, tostring
from util import readxml, save
# Builds a temporary patch for 'pluralRanges' JSON from original
# supplemental 'pluralRanges.xml'. This data is currently missing
# from the JSON CLDR export.
ROOT = '//pluralRanges'
... | [
"pathensley@gmail.com"
] | pathensley@gmail.com |
7d1d8140ec4589cec2bf1895214df338d9680e66 | ce7faecc13c00c1dc91a66279012c9d2ac607a35 | /app/core/migrations/0004_auto_20200501_0700.py | bcd676b372952c21e4f71cf0fa4ddae6d00122f7 | [] | no_license | nithin-vijayan/recipe-tdd-test | ab175f17521a1c6e034e50044fa73ecf9fa063bd | 4d61d9f7729871d36491dc975d3c7e7520189cc5 | refs/heads/master | 2022-05-27T20:26:29.248929 | 2020-05-03T09:34:06 | 2020-05-03T09:34:06 | 259,373,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Generated by Django 3.0.5 on 2020-05-01 07:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0003_intgrediant'),
]
operations = [
migrations.RenameModel(
old_name='Intgrediant',
new_name='Intgredient',
... | [
"19286034+nithin-vijayan@users.noreply.github.com"
] | 19286034+nithin-vijayan@users.noreply.github.com |
6b00216e57dd1ea5b6a02c4851dc0365d2342a92 | af8dfddd4ba4f03560f2f6930f88c4d8a0a8e8cf | /conf.py | 6fe28580ca8c11405a26bca8d52a206bd6a6746f | [] | no_license | Parham-Baghbanbashi/team-manual | 155e243d8152c1c63214db8a698881d08b4765b3 | 9dbd11a2e340f6ce4ffe17dfe0bb8b9619ece914 | refs/heads/master | 2023-01-19T20:23:40.094323 | 2020-12-02T14:14:09 | 2020-12-02T14:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | import sphinx_rtd_theme
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup ---------------------------------------------... | [
"daniel.gallo@ycdsbk12.ca"
] | daniel.gallo@ycdsbk12.ca |
45915d584dc696b79674a2253cf1b35bcf34e4ba | 369f314b2e0e85ebec368676694277ea63f505f2 | /apps/users/migrations/0004_auto_20180430_2350.py | 1ed26786314a0f18f287df40984ae2db8893a920 | [] | no_license | wangzz1/cheese | 3fc0667c4267a94e2825e5cf6eb8a045f75a557a | 4bde7bd532786d3e9f6714e494dc5f0c6d758549 | refs/heads/master | 2022-12-11T19:30:32.218164 | 2018-05-06T08:47:28 | 2018-05-06T08:47:28 | 129,302,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-04-30 23:50
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20180429_2346'),
]
operations = [
migration... | [
"632332271@qq.com"
] | 632332271@qq.com |
f7267edc0c305fe56b54b937e474ecffd97c58da | 3c7fd061dfb08f5e07ac00295a87849a6d67824c | /CanevasRestitution.py | 329745d512da4a05a3fc04f5b3e0eea28d6ee153 | [] | no_license | iCodeRas/Python-Data-Analysis | 648cfc1c77a1c86dd96df0cd1fd173c9b75c8053 | 5f26fa0a1df5e26934d406e83ea46b0a7b02ac89 | refs/heads/master | 2020-06-26T17:02:23.033670 | 2019-07-30T13:08:47 | 2019-07-30T13:08:47 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 17,245 | py | #----------------------------------------------------- CANEVAS DE RESTITUTION -----------------------------------------------------#
import xlrd
from xlwt import Workbook
import arcpy, os
from arcpy import env
import time
readTime = 2.5
fc = arcpy.GetParameterAsText(0)
output_file = arcpy.GetParameterAsText(1... | [
"noreply@github.com"
] | noreply@github.com |
01c9a9273ffe2111e08d7c01c6cdfde0b0be169d | a03fe6aa3db1bc3eedec3b17c1998e9021e4926f | /player/admin.py | 3c87df4d437efa3c580be33b687dbbe4bd77ffef | [] | no_license | Mahima1230/VoluBeats | 5b55ef5217ef0d3968cadc70a5d8b4cf13f03573 | 6d888b551cfaaaab57f4cb2fcf8913c3a17514ec | refs/heads/master | 2022-12-05T00:50:19.102866 | 2020-07-31T09:46:09 | 2020-07-31T10:06:10 | 283,998,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.contrib import admin
from .models import Accounts,Contact,Songs,Artist
admin.site.register(Accounts)
admin.site.register(Contact)
admin.site.register(Songs)
admin.site.register(Artist)
| [
"mahima.shriwas1998@gmail.com"
] | mahima.shriwas1998@gmail.com |
9733b748c80e3d029c31b1c25eaca0dae7f36d04 | c61051e3fad8ed5bafa581fd4c5c369870d3a22b | /tribonacci/main.py | b58577ac745c06fa50a39fb3acfee1c8f0a81d2e | [] | no_license | TheItaroshi/Studies | dbe52eb8075752aa549744e9ae58468d988b97ee | c9fce201ee2bcf9a22096e95b2094ebd2152fdf2 | refs/heads/master | 2022-11-23T14:23:15.706351 | 2020-08-02T15:19:43 | 2020-08-02T15:19:43 | 284,446,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | def wprowadzenie_liczb():
ilosc_liczb = input("Podaj ilość liczb, które chcesz sprawdzić: ")
if ilosc_liczb.isdigit() and int(ilosc_liczb) != 0:
ilosc_liczb = int(ilosc_liczb)
liczby = []
for x in range(ilosc_liczb):
liczba_wejscie = input("Podaj liczbę nr." + str(x+1) + " ... | [
"patryk.p.janas@gmail.com"
] | patryk.p.janas@gmail.com |
9f075e33e104f7dda9ffc80fbd0b8ad054974b5b | bc864af1fa83b16de9a93ec38fc08b33da2d45d2 | /classificacao/regressao_logistica/regressao_logistica.py | 247cb560aa95e643389e3c66a896843ed0b21274 | [] | no_license | SampaioFelipe/mat_comp | c0f65f66a63f87500c92eafe06481e0847b6cad3 | af479c40c0a79a1141a40dab3a49619c5b38f616 | refs/heads/master | 2020-03-20T11:46:37.144735 | 2018-06-28T03:42:50 | 2018-06-28T03:42:50 | 137,411,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | import numpy as np
import matplotlib.pyplot as plt
import sys
def classifica(dado, w):
v = 1/(1 + np.exp(-np.dot(dado, w)))
return 0 if v < 0.5 else 1
def regressao_logistica(dados, classes, alpha, limiar):
w = np.zeros(len(dados[0]))
epoca = 0
erro = 1
n = len(dados)
while erro > li... | [
"sampaio.motion@gmail.com"
] | sampaio.motion@gmail.com |
0099622536699cb6340fa17c3b9c4b55c2774310 | e175638fdc3d7ae7c2cb72edc8f6fae5972d3180 | /wordsearch.py | ec9a2cc962c665c145b71b133a7a8ecfe8791d17 | [] | no_license | ezpher/wordsearch | 1de71a34df0738410ddfc92a3459907b9003bcf8 | 386a85f7ca618ac784239e68720e9de99dfe9c8e | refs/heads/master | 2023-02-04T03:59:42.750691 | 2020-12-25T11:57:45 | 2020-12-25T11:57:45 | 324,347,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | #! python3
import string
import random
# initialization of variables
width, height = 20, 20
grid = [['_' for j in range(width)] for i in range(height)]
words = ['HELLO', 'THERE', 'FRIEND']
# functions
def print_grid(grid):
print('\n'.join(map(lambda row: ' '.join(row), grid)))
def construct_word(word, grid):
... | [
"40519064+ezpher@users.noreply.github.com"
] | 40519064+ezpher@users.noreply.github.com |
33c7b5668839ac1d6e71970824022c50bc383970 | ef4fe59917f7e0269cbd9f1e910d2537d68c0728 | /exercises/Introduction/exercise.py | be85223c11fd56c21d6e1f589fc44e4df093ff87 | [] | no_license | AlexL7/python_apps | 9a0bc978a87713b13305de0a0e8761d439af7e2f | 9dbee90c436ef0035a7bf841b3f2cfffea5c87b0 | refs/heads/master | 2021-05-01T13:48:16.969745 | 2017-03-09T19:56:55 | 2017-03-09T19:56:55 | 79,594,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | temperatures = [10, -20, -289, 100]
def writer(temperatures):
with open("temps.txt", 'w') as file:
for c in temperatures:
if c>-273.15:
f=c*9/5+32
file.write(str(f)+"\n")
writer(temperatures)
| [
"alexander.lock7@gmail.com"
] | alexander.lock7@gmail.com |
c94e893921a6df555bcdf889d6bcdacfd8f8e466 | a082b2fa5db9947cf7bd1d56b144dbf040e07cf8 | /rules/03_mergemapped.smk | af3b4ee6a155ba047cddc82d9e53da78276c0a3a | [] | no_license | rimjhimroy/snakeTEPID | ffe75b2db3e2ef39c3b7328f0d126c48c0bb5564 | 1b30561100ce177b6b9dfbdefe281d2abfe09c9f | refs/heads/master | 2022-12-07T09:03:59.081344 | 2020-08-27T15:13:54 | 2020-08-27T15:13:54 | 217,424,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | smk | rule mergemapped:
message: """
--- Merges tepid map results from different lanes into a single file for {wildcards.individual}
"""
input:
bamin = lambda wildcards: expand("output/align/{samples}/{samples}.bam",samples=args['LANEDICT'][wildcards.individual]),
splitin = l... | [
"rchoudhury@submit02.ubelix.unibe.ch"
] | rchoudhury@submit02.ubelix.unibe.ch |
99feb4b42a7d0be75368ca1d063515068cd6993d | c76578033e7c16fb6302f9d9b7ce2085b8d7fdb5 | /venv/Scripts/pip3-script.py | 707f074c09d8fc8c3a04e16597a3c5264060d3f4 | [] | no_license | sashwatid/PythonFirstStep | 1ba83f43f62ef19c13f07d709c655c81b0c8f4b1 | 0682dfb021fd0aed5e575453083bbf0f342dee4c | refs/heads/master | 2020-06-03T22:17:12.715749 | 2019-06-13T11:51:09 | 2019-06-13T11:51:09 | 191,753,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | #!C:\Users\sasdas\PycharmProjects\untitled\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"Sashwati.Das@aig.com"
] | Sashwati.Das@aig.com |
f56662d136538d70833c12b0bdb85fc9ccf55648 | e9bed27b7f64d9aaa2fdd2c18b16dda5267e4643 | /motivation_model/result_set/bandwidth_limiting/string_utils.py | 640a5a2b9a4737023271af41591879034eaed7ec | [] | no_license | supermt/utils_for_lsm | dcf65aef778a7c18cec0d4a7ac50af9f4042e0d1 | a446985160bfec709d8d606b1ebb022975cfc010 | refs/heads/master | 2021-08-24T13:56:52.987513 | 2020-08-18T02:07:39 | 2020-08-18T02:07:39 | 214,963,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | def bandwidth_string_sort(x,y):
if len(x) < len(y):
return True
else:
return x < y | [
"18007092757@163.com"
] | 18007092757@163.com |
06d7f6d0fa9709dba9e64b3e1e79b26f893bc59a | d1c289c000657dd128d6146aad325ef46cd483eb | /트리/백준_트리순회.py | 6387110c9c418b82b11fab35611408cc44363607 | [] | no_license | khk37601/ExpertAcademy | e2fed015726918cb8923d8905338815a147e0a50 | ebdab4cee77f1ee1831d30d6134c77a75b8fc652 | refs/heads/master | 2021-07-07T08:59:52.911797 | 2020-07-26T11:16:06 | 2020-07-26T11:16:06 | 160,533,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | import sys
tree = [0 for _ in range(26)]
def childes(root):
# 왼쪽 자식
left = tree[ord(root) - 65][1]
# 오른쪽 자식
right = tree[ord(root) - 65][2]
return left, right
def is_ture(root):
if root == '.':
return True
# 전위 탐색
def pre_order(root):
if is_ture(root):
... | [
"noreply@github.com"
] | noreply@github.com |
162e1e8b1dfc6252766b269ad8e3041a6eccbb67 | d0f2645c66316fa40cbdc1b3d417db6b144676c3 | /rejco/migrations/0002_auto_20191023_0518.py | d82fb327cd1a735647fff2871baef0a336367cf6 | [] | no_license | paulmurithi/nouveta-interview | cc71d05e54142a28b2161d074d48305b98ca5ab6 | 8513cf85a391d29ace2c7f59a6ff1d957985af33 | refs/heads/master | 2022-11-27T02:58:32.807166 | 2019-10-23T08:43:40 | 2019-10-23T08:43:40 | 216,923,535 | 1 | 0 | null | 2022-11-22T03:58:52 | 2019-10-22T22:52:33 | HTML | UTF-8 | Python | false | false | 1,405 | py | # Generated by Django 2.1.1 on 2019-10-23 05:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('rejco', '0001_initial'),... | [
"murithipaul1@gmail.com"
] | murithipaul1@gmail.com |
d68496f8b528022a5ce09200a302dc3c2569c5b0 | 2293c76c3d18e2fcd44ded90bd40113d26285663 | /pyeccodes/defs/grib2/tables/25/4_244_table.py | a1c940653667995441617ed12e107d0f12316077 | [
"Apache-2.0"
] | permissive | ecmwf/pyeccodes | b1f121dbddf68d176a03805ed5144ba0b37ac211 | dce2c72d3adcc0cb801731366be53327ce13a00b | refs/heads/master | 2022-04-23T10:37:40.524078 | 2020-04-18T06:30:29 | 2020-04-18T06:30:29 | 255,554,540 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | def load(h):
return ({'abbr': 0, 'code': 0, 'title': 'No quality information available'},
{'abbr': 1, 'code': 1, 'title': 'Failed'},
{'abbr': 2, 'code': 2, 'title': 'Passed'},
{'abbr': None, 'code': 255, 'title': 'Missing'})
| [
"baudouin.raoult@ecmwf.int"
] | baudouin.raoult@ecmwf.int |
70b97e7adf764709c595c45d819cb4032b736f54 | 7e48fd91394bd7e8168b6e380e7cc861868a2503 | /httpd/oadt/hosts/tests.py | b79301b89e5f306d317457f7b0e189cd1bf451bd | [] | no_license | coscl/OADT | 755e0d8ecaee10fd211f12185066d378bf965320 | c6c108f5da99facbc5374d05bb1d1e0c2f600644 | refs/heads/master | 2016-09-05T14:12:06.744854 | 2014-07-09T01:23:34 | 2014-07-09T01:23:34 | 7,932,337 | 1 | 0 | null | 2013-12-19T03:29:32 | 2013-01-31T07:33:53 | JavaScript | UTF-8 | Python | false | false | 1,409 | py | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
from hosts.models import Host,Role
from django.test.client import Client
class HostTest(TestCase):
... | [
"tao.jiang@cs2c.com.cn"
] | tao.jiang@cs2c.com.cn |
7139040a4e2346cd3caee6871414bf5ab8b75d35 | a861a32ffdb368a721ff9e9006268f3dffbecc71 | /app/firestore_service.py | 4f3db3becefbccfafb97fa57a3a2f5575971f14a | [
"MIT"
] | permissive | agomusa/flask-taskapp | 039450080f551ff4ba9a7796835543290f8583ce | 3c456b0dcfe8c30be44954b6c280d843653b8a3e | refs/heads/main | 2023-05-30T17:16:57.256763 | 2021-06-14T20:04:22 | 2021-06-14T20:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
credential = credentials.ApplicationDefault()
firebase_admin.initialize_app(credential)
db = firestore.client()
def get_users():
return db.collection("users").get()
def get_user(user_id):
return db.collection... | [
"eliaz.bobadilladev@gmail.com"
] | eliaz.bobadilladev@gmail.com |
b424acc6f3048c5c0c8b787a7b7b618dcaef4665 | 14c5ef4a260e6141ae31d35c63f32c16b605c7ab | /ui_serial_tool.py | ec60ab05f8c6d7b611ffc04cf01a0380b1d150d1 | [] | no_license | yrdtjtk/ComTool | 0fe2e5e4650d5e09571633d1a22115ee7c2bdd49 | 6eaea7611adb133156e8d4274c19f3d22adc8b0b | refs/heads/master | 2020-03-19T16:16:22.120963 | 2018-06-09T09:16:18 | 2018-06-09T09:16:18 | 136,708,647 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,155 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'serial_tool.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.se... | [
"yrdtjtk@126.com"
] | yrdtjtk@126.com |
ad2148b87894cd9be2fc7fc898d55413550bfb30 | 84db4423d82b522f560157f6abd737001d6f7858 | /Bike_Share_Analysis.py | 8d68243cc1095820ccb31233fcb12d8cd9b974be | [] | no_license | chrisjb356/US_Bike_Sharing_Project | a643249c361bede6aaab0d5ec0ff5fd6121e6cba | 6f9bbaed949d6a1c2a042f351a4a21566bc6484a | refs/heads/master | 2021-05-05T18:19:33.407072 | 2018-02-18T12:16:05 | 2018-02-18T12:16:05 | 117,598,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,173 | py | ## 2016 US Bike Share Activity
## Introduction
# Over the past decade, bicycle-sharing systems have been growing in number and popularity in cities across the world.
# Bicycle-sharing systems allow users to rent bicycles for short trips, typically 30 minutes or less.
# Thanks to the rise in information technologie... | [
"noreply@github.com"
] | noreply@github.com |
4770943a194a21a1d20dc83ad78c9ce16618e562 | d390452416089f60a91a8fc3dbcc9e5c209a74aa | /venv/Scripts/pip3.7-script.py | f2e2f328d2e1e50f70245714a83a5de324598066 | [] | no_license | MR1213/Python | fdf826a0b31ad5ac414c4fd6d2382d0957a6429e | 3cf9bc170158f6cfa6ffd49add367c575b48ae96 | refs/heads/master | 2023-05-11T12:30:11.841432 | 2023-05-01T22:27:12 | 2023-05-01T22:27:12 | 139,532,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!C:\Users\maxsu\PycharmProjects\untitled\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__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.ar... | [
"maxsusha@gmail.com"
] | maxsusha@gmail.com |
bc817230b972c337903d946d2b026a08a1490526 | 86dc081ba63c62f621799d9e7c737387bf1ac262 | /main.py | dedb991261cceacea2fe3b8b9bccf0705142d307 | [
"MIT"
] | permissive | clash402/band-name-generator | ac9e4ff93012a1651ff9159c1f5d231ebe950794 | d668e3b45ceb35ec4505c917e334cc3268fd9455 | refs/heads/master | 2023-02-16T06:51:16.287530 | 2021-01-15T18:18:56 | 2021-01-15T18:18:56 | 328,240,862 | 0 | 0 | null | 2021-01-10T16:52:13 | 2021-01-09T20:31:26 | Python | UTF-8 | Python | false | false | 392 | py | # MAIN
print("Hello peoples!\n")
app_is_in_progress = True
while app_is_in_progress:
city = input("What city did you grow up in?\n")
pet = input("\nWhat was the name of your favorite pet?\n")
band_name = city + " " + pet
print("\nCongratulations! Your band name is " + band_name + ".")
if input("... | [
"joshrcourtney@gmail.com"
] | joshrcourtney@gmail.com |
a9e167d3e328c67796df3fd8500a1965975d164b | 6325190598327a84185377bab577c55a7f6e1efd | /dataframes.py | 28907d3529e7725cb1701cd9ef66cdafd785f7dc | [
"MIT"
] | permissive | helpsolution/node-predictor | 6cd5d8031d568995cda07c53e2ac757dd96e567b | 6a39cb4c67bcc1569b78f17691057a700235cfd8 | refs/heads/master | 2020-04-11T15:31:46.936616 | 2018-12-21T18:52:59 | 2018-12-21T18:52:59 | 161,894,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | import pandas as pd
my_series = pd.Series(["asd","a",1,2])
dataframe = pd.DataFrame({
'country': ['Kazakhstan', 'Russia', 'Belarus', 'Ukraine'],
'population': [17.04, 143.5, 9.5, 45.5],
'square': [2724902, 17125191, 207600, 603628]
})
print type(dataframe['country'])
print dataframe.columns
print ... | [
"investormephi@gmail.com"
] | investormephi@gmail.com |
5fa3fbed183bd3b5cd1121135f03109cf54b5171 | 3a4ab4e13e840540bc0560396f60924c9cd6a55c | /taskapp/migrations/0001_initial.py | cd95debe66715aa4739672b21018f26a163987b1 | [] | no_license | oononspace/project_todo | aa51f9c84ee4ba044e13534495f0c11d2b17cf06 | f29d4581515ae2159e51315b1766f543d4086454 | refs/heads/master | 2020-04-22T14:12:39.743000 | 2019-02-13T04:10:10 | 2019-02-13T04:10:10 | 170,435,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # Generated by Django 2.1.3 on 2019-02-01 01:43
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', mode... | [
"masatakaoono@oonotadashigyounoMacBook-Pro.local"
] | masatakaoono@oonotadashigyounoMacBook-Pro.local |
96afb1aa8e11094d78b01f2d02dbdabeb2111025 | 1b19e7defad0d136399d216e776dd3e71b5b0ed2 | /login/migrations/0003_profile_name.py | 85b4910d487bd8b61605d609c44dc5900dd323ae | [] | no_license | ankmishra/Roadies | 5cc3cf12edc7f8cec593bf1eebfdb0eac11fdf03 | e3c9548a04b9e52642e3d3fe8aaa705f5b07d7ee | refs/heads/master | 2021-01-20T11:46:25.158639 | 2017-09-09T15:05:17 | 2017-09-09T15:05:17 | 101,687,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-29 20:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login', '0002_auto_20170829_0120'),
]
operations = [
migrations.AddField(
... | [
"akm7040@gmail.com"
] | akm7040@gmail.com |
b24d8b272d765cec39d3a0d763a557e010752b6f | a59f3308bb8c61c7bda6c8f1638eebb8d2e098fb | /ghattas_autonomy_behaviors/ghattas_autonomy_flexbe_states/src/ghattas_autonomy_flexbe_states/__init__.py | 4f668d27cdc2b2ba77fef389f70df7f8fb85075c | [] | no_license | ghattas-collaborators/Ghattas_AUV | 22508011009957c541b0883121073e830847004d | 7ac9514f88dcda577ade3f7a0148242724638c7f | refs/heads/master | 2020-07-29T03:45:30.563292 | 2019-08-06T09:33:59 | 2019-08-06T09:33:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py |
#file must be here
| [
"noreply@github.com"
] | noreply@github.com |
4e12a8ff61193b588a825d9c66150d541d8e8406 | d234e3f3795088a28b77c4bcdc5cc57b9cfecca4 | /Pages/base_page.py | 20403188fad03cbda6cf2f185b2d55aa80a6ca3d | [] | no_license | rubanenkos/MiniSampleProject | 708b6b91588bc5fe25b4f9a059e577d3c82da24a | 3fc1a87cddbf97847a8d75c46a7bbaaee17d871c | refs/heads/master | 2022-12-18T02:17:37.275070 | 2020-09-27T14:17:01 | 2020-09-27T14:17:01 | 297,404,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class BasePage:
def __init__(self, driver):
self.driver = driver
self.base_url = "https://google.com/"
def find_element(self, locator,time=10):
return WebDriverW... | [
"rubanenko.sergii@users-MBP.netis"
] | rubanenko.sergii@users-MBP.netis |
5a1ddde1315d25ee3e48304fe121573a8254e4f6 | bc3bbc6060b393561a3b46b2d5e97ce68a87e479 | /NurzhigGadgets/asgi.py | 57e36645520bb94393a9b1adaef1029a74b5311c | [] | no_license | NTolendi10/BFDjango-Endterm | 736ae7f189ee05140e3e4b32ce6c123f9318051a | 27aae86ac1e472612ded9d81050533d4a843b28a | refs/heads/main | 2023-04-11T22:14:17.121508 | 2021-05-15T00:28:56 | 2021-05-15T00:28:56 | 354,323,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
ASGI config for NurzhigGadgets 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.setd... | [
"ntolendi.2000@gmail.com"
] | ntolendi.2000@gmail.com |
6ca4acfa15bb6d2e30f65bb4f97c459c35411d48 | 8a1987a6c762d1440f7ce1b60e6dbb02491db9f1 | /huntserver/migrations/0022_switch_to_utf8mb4_columns.py | aa1812f0fc8a5510d0598d437bea1ade6056f017 | [
"MIT"
] | permissive | dlareau/puzzlehunt_server | fd9807f074cbdc95ad46730e931da86a54b78f45 | 44f87cc5cfe8bb23a8e04fddee187b9056407741 | refs/heads/master | 2022-12-27T18:48:43.883587 | 2021-08-17T23:55:36 | 2021-08-17T23:55:36 | 37,299,424 | 20 | 23 | MIT | 2022-05-22T00:16:21 | 2015-06-12T03:12:51 | Python | UTF-8 | Python | false | false | 6,041 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import sys
fwd_operations = [
'ALTER TABLE `auth_user` MODIFY `password` varchar(128) CHARSET utf8mb4 COLLATE utf8mb4_unicode_ci ',
'ALTER TABLE `auth_user` MODIFY `username` varchar(30) CHARSET utf8mb4 CO... | [
"flybye22@gmail.com"
] | flybye22@gmail.com |
c16a4b508ea5c3d42a550c33c967c9ab7f178ecf | 162f01effec99bc2f479ba25fd7ba7c0237d7916 | /COMP 7976 HW3/COMP 7976 HW3/DriverCodeEDA.py | 08046418b9626b2dedfd1710227968a9cc3540c4 | [] | no_license | jzm0144/AuthorshipAttribution | 5cf0a153f4e609c55fac3251b11e1d62b6616057 | 8589300b73b5c645cc66e419f2e95091045cc578 | refs/heads/master | 2020-09-20T01:09:39.478020 | 2019-06-07T18:17:10 | 2019-06-07T18:17:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,611 | py | import Data_Utils1
from sklearn.model_selection import StratifiedKFold
from sklearn.preprocessing import StandardScaler, normalize
from sklearn import svm
from sklearn.neural_network import MLPClassifier
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.model_selection import StratifiedKFold
fro... | [
"jwc0045@auburn.edu"
] | jwc0045@auburn.edu |
1582894d4bea212dea2a8089c8abb504a9236e37 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/mozilla-zamboni/allPythonContent.py | a29dff3dd225280fe065aaccbef6790300d3de5c | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,045,082 | py | __FILENAME__ = models
import logging
from django.conf import settings
from django.db import models
from django.utils.translation import gettext
import amo.models
import amo.utils
from addons.models import Addon
from users.models import UserProfile
log = logging.getLogger('z.abuse')
class AbuseRepo... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
7acb9b9c4781b5b2fa1f32e0080c3b5d6e727805 | 35a9f8e9264ffc25a4a5e8c270c630d24c5b68b6 | /sat/defence/FeatureSqueezing.py | 611d071ccb54c30db2c380112f31f4007575c6d5 | [
"MIT"
] | permissive | larsksy/Semantic-Adversarial-Toolbox | 0b1b1773f58c68ab5b683f38f3e3b57c0a925300 | f5a79e3aa5dc15d7f2fd677ea64f41dd3a1e9cd8 | refs/heads/main | 2023-05-27T08:02:08.897934 | 2021-06-08T01:45:44 | 2021-06-08T01:45:44 | 336,899,386 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | import torch
import torch.nn.functional as F
from torch.nn.modules.utils import _quadruple
from sat.defence.Defence import ProcessingDefence
import math
class FeatureSqueezing(ProcessingDefence):
"""
Implementation of Feature Squeezing defence.
Original paper: https://arxiv.org/pdf/1704.01155.pdf
"""... | [
"larsks@hotmail.no"
] | larsks@hotmail.no |
97da63adc46cd749c1cb8b35727cfa54ba4e723b | b0cdbad299f6174bfdb0fba173dbcf3889b82209 | /Modules/os/gettextfiles.py | 198d01bcec7b9bcc12a7a7c25a9bdee70cf4e946 | [] | no_license | deesaw/PythonD-06 | a33e676f1e0cfc13b4ea645c8b60547b198239ac | 3c6f065d7be2e3e10cafb6cef79d6cae9d55a7fa | refs/heads/master | 2023-03-18T08:24:42.030935 | 2021-03-02T14:15:09 | 2021-03-02T14:15:09 | 343,797,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import os
for (dirname, subdir, files) in os.walk('c:\\'):
for myfile in files:
if (myfile.endswith('.txt')):
print os.path.join(dirname,myfile) | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
73fb20a637635c564ba3db401b8bf59f71b7be70 | abd95074e0a9e834e0582fa2fc464a0468366cc8 | /Test3.py | 9dc99b2046f7cf6dcf397b8939f321b1b2482e82 | [] | no_license | keyjong/StudyPRJ | 0ca304f6cc3e4e35ecd3f1b9ae1f089bb80abc71 | 7a6c32fc0c5f9a779e4daf82a5fe7c4c41ff0417 | refs/heads/master | 2020-03-24T20:09:03.597684 | 2018-07-31T04:26:13 | 2018-07-31T04:26:13 | 142,962,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | from xml.etree.ElementTree import Element, SubElement, dump
note = Element("note")
note.attrib["date"] = "20120104"
to = Element("to")
to.text = "Tove"
note.append(to)
SubElement(note, "from").text = "Jani"
SubElement(note, "heading").text = "Reminder"
SubElement(note, "body").text = "Don't forget me this weekend!"
... | [
"2012809@clt.net"
] | 2012809@clt.net |
e6313fe1285bba0a56b05db426f9c6c6861bde1e | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/op_cmp_bool-94.py | 6c2f718b85e4de8c6dbed4cf3746b6a697bd5dc4 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | print(True == True)
print(True == False)
print(False == True)
print(False == False)
print(True != True)
print(True != False)
print(False != True)
print($Exp)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
369376d38046b8a203a95ecd37ed2f1dfe746ebb | c585583d366924d8977462035b631161094241a9 | /redbot/message/headers/_header.tpl | 31561e68d04690bc85b5ca29ebfd1dc659b8138a | [
"MIT"
] | permissive | QPC-database/redbot | a289248bbb24f8cc378001e38cb633e6f1aff098 | f05dd7754cd6f6ba005ae44beeb8ed21516a93c8 | refs/heads/main | 2023-05-07T00:13:59.733511 | 2021-05-28T02:42:02 | 2021-05-28T02:42:02 | 382,878,629 | 1 | 0 | MIT | 2021-07-04T14:57:42 | 2021-07-04T14:57:42 | null | UTF-8 | Python | false | false | 875 | tpl | #!/usr/bin/env python
from redbot.message import headers
from redbot.speak import Note, categories, levels
from redbot.type import AddNoteMethodType
class SHORT_NAME(headers.HttpHeader):
canonical_name = "SHORT_NAME"
description = """\
FIXME
"""
reference = None
syntax = False
list_header = False
... | [
"mnot@mnot.net"
] | mnot@mnot.net |
6e2590692906823fdab74ab1d07e96a9fd0441c1 | 99bd15b2fd230a51c7886cd430163d95a0630612 | /cloudsdk/models/user_model.py | d470fd788894d16684d926314fc556c1c327ea7b | [] | no_license | xhuaustc/cloud-sdk | fb29ad4e8ccd94d90a7ef3e48acdfe9b048c762e | 68d0a02887294b413bcc871e7156bd4bcfb5d0c3 | refs/heads/master | 2020-04-16T17:21:42.878478 | 2019-04-09T06:48:49 | 2019-04-09T06:48:49 | 165,773,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | # coding=utf8
"""
-------------------------------------------------
File Name: user_model
Description :
Author : 潘晓华
date: 2017/9/21
-------------------------------------------------
"""
from cloudsdk.models import ApiModel
class UserModel(ApiModel):
@classmethod
... | [
"pxhua@aliyun.com"
] | pxhua@aliyun.com |
34f2e010507f7baa6cc8ac14cd0554dd1c664d48 | 7f37c71edee1f41dcf6e9d52a7338533086ed8f9 | /MilestoneVersion/milestone.py | 505f6b0558e941190c1ff1fcc1b95a35384f7e6b | [] | no_license | doged4/PicoBotAlgorithms | 49f409bbc2d5b470668b82df20fa6bcb1b5f2789 | 0181eb40aac5535b1d83ccba70303ec7e327b6f8 | refs/heads/main | 2023-01-20T22:42:49.670683 | 2020-11-30T02:12:22 | 2020-11-30T02:12:22 | 314,693,681 | 0 | 0 | null | 2020-11-24T04:59:40 | 2020-11-20T23:31:43 | null | UTF-8 | Python | false | false | 6,229 | py | import random
HEIGHT = 10
WIDTH = 10
NUMSTATES = 5
class Program(object):
def __init__(self):
self.rules = {}
def __repr__(self):
unsortedKeys = list(self.rules.keys())
sortedKeys = sorted(unsortedKeys)
# outLines = [str(i[0]) + " " + i[0] + " -> " + \
# self.ru... | [
"cbainton@Cevis-MacBook-Pro.local"
] | cbainton@Cevis-MacBook-Pro.local |
24ebf310befbdc8c53ed17ef615483ed0986578e | 75bb0d5caa6ca5f1ad8ef64bbc6e5ec93ad36a09 | /mypyscript.py | 10f817ce49dfc4e39aea77049e09ac53f4b2ec22 | [] | no_license | linuxnix/gittraining | ddb29bb9908fe62f5d08e436944aaeff0d561c27 | 075ca413ce90e709813082ec146f85da513be5f5 | refs/heads/master | 2021-01-19T12:22:16.284288 | 2017-08-19T08:15:19 | 2017-08-19T08:15:19 | 100,779,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | #!/usr/bin/python
print 'abc'
| [
"kumarann@au1.ibm.com"
] | kumarann@au1.ibm.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.