blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4963b958ee261772f4dc13bfa08cfd29b9b4df6 | d2b5a35ff2726cec0c215c13baec499847ac7436 | /perceptron/perceptron.py | c71b519591f5b5f95f2a3748a301e6b4c9c75668 | [] | no_license | samantamrityunjay/ML-from-scratch | ec9c1bbd57b0650a79822b7bdbeece9c7dcfb0f1 | d50283288e1aa0e14d021b603ba77368bd745e6e | refs/heads/main | 2023-02-19T10:19:14.718420 | 2021-01-19T14:49:00 | 2021-01-19T14:49:00 | 329,615,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | import numpy as np
class Perceptron:
def __init__(self, lr=0.01, n_iters=1000):
self.lr = lr
self.n_iters = n_iters
self.activation_func = self._unit_step_func
self.weights = None
self.bias = None
def fit(self,X,y):
n_samples, n_features = X.shape... | [
"samantamrityunjay98@gmail.com"
] | samantamrityunjay98@gmail.com |
a39a865abd1b554b5a97e02ea4e134a717db67fb | 6d710a4d8a856e8c197ce930f50bf5023f12cc69 | /app/database/base.py | 0ce1a84a1fe73c2e7d65b5f087551ac122423693 | [] | no_license | saikiranreddyyarava/API-implementation-using-GraphQL | 30013e0bacbe9198e52ab18c63ba770507f3d0d1 | d86e31cc7d9df145a58892b340136c4d23d12682 | refs/heads/master | 2023-05-24T20:30:24.188638 | 2020-06-11T10:43:00 | 2020-06-11T10:43:00 | 267,617,584 | 0 | 0 | null | 2023-05-22T23:30:37 | 2020-05-28T14:50:53 | Python | UTF-8 | Python | false | false | 717 | py | import os
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker
# Create database engine
db_name = 'database.db'
db_path = os.path.join(os.path.dirname(__file__), db_name)
db_uri = 'sqlite:///{}'.format(db_path)
engine = cr... | [
"kiranreddyyarava@gmail.com"
] | kiranreddyyarava@gmail.com |
8aa012ab93d1849ae33f7995f1509da4a0a3fe20 | 6f9a5717fed38b0a79c399f7e5da55c6a461de6d | /Programmers/Graph/FarthestNode.py | f261f2fbb6a0f8e8e24688a1a52e9fb5a8351bba | [] | no_license | Alfred-Walker/pythonps | d4d3b0f7fe93c138d02651e05ca5165825676a5e | 81ef8c712c36aa83d1c53aa50886eb845378d035 | refs/heads/master | 2022-04-16T21:34:39.316565 | 2020-04-10T07:50:46 | 2020-04-10T07:50:46 | 254,570,527 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | from collections import deque
def get_adjacent(n, edge):
adjacent_list = dict()
for i in range(1, n + 1):
adjacent_list[i] = []
for e in edge:
start = e[0]
end = e[1]
if end not in adjacent_list[start]:
adjacent_list[start].append(end)
if start not in... | [
"studio.alfred.walker@gmail.com"
] | studio.alfred.walker@gmail.com |
8f544a5feb3ff254089a1fedc19a6c8d98ab7fad | 65f1c703905d6c9a44a86c694d0281665b7e9a90 | /EJERCICIOS EN CLASE/18.08.2021/text.py | 093bff2e04a7bac91803ac5d609ca5b6a6d3a795 | [] | no_license | JosueSalgado01/Python | 1b1fb85386a9192f14708b604e29418f7da344bc | b72fce05155915e3e2eedd88caa81ebbb5830f86 | refs/heads/main | 2023-07-12T07:44:24.816992 | 2021-08-26T17:06:03 | 2021-08-26T17:06:03 | 399,242,618 | 0 | 0 | null | 2021-08-23T21:20:42 | 2021-08-23T20:43:06 | null | UTF-8 | Python | false | false | 227 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 18 08:54:27 2021
@author: Dell
"""
pi=22/7
print(pi)
print("{:.3f}".format(pi))
print("{:.2f}".format(pi))
print("{:.54f}".format(pi))
va=25/5
print(va)
print("") | [
"noreply@github.com"
] | JosueSalgado01.noreply@github.com |
58f433d9a2e0696e418204f53be23a1bc7ba976a | 54b238d50baee4f483c0690d77d106ebc30a4c0a | /aetherling/space_time/modules/higher_order.py | 3012f34c5022b4b750e4f5bba8e45f554c96eae5 | [
"MIT"
] | permissive | David-Durst/aetherling | 4a5d663a98428769834e8ebbf7e9b63cb7788319 | 91bcf0579608ccbf7d42a7bddf90ccd4257d6571 | refs/heads/master | 2021-08-16T01:48:20.476097 | 2020-06-19T19:25:46 | 2020-06-19T19:25:46 | 114,405,958 | 10 | 1 | MIT | 2021-03-29T17:44:39 | 2017-12-15T19:46:51 | Python | UTF-8 | Python | false | false | 9,198 | py | from aetherling.space_time.space_time_types import *
from aetherling.space_time.type_helpers import valid_ports, strip_tseq_1_0_sseq_1, strip_tseq_1_n_sseq_1, \
num_nested_space_layers, replace_atom_tuple_with_t0, time_last_valid
from aetherling.space_time.nested_counters import DefineNestedCounters
from aetherling... | [
"davidbdurst@gmail.com"
] | davidbdurst@gmail.com |
84dafa68320203f48c3ca3f663ff1ee69c66ad13 | 134533df11f19ff03c4babfdc800c2db20bb013c | /image_upload_app/asgi.py | e944226e506abd82395c7a113d43bc630ac26256 | [] | no_license | deepak78194/image_upload | 711617e35181466b5b14e049dbe1083d9c820582 | 37b2b37a191bd6a1d29e2155a507746d9b602b9a | refs/heads/master | 2023-03-26T22:48:28.486368 | 2021-03-31T08:03:27 | 2021-03-31T08:03:27 | 353,254,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for image_upload_app 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.setdefault('DJA... | [
"deepak78194@gmail.com"
] | deepak78194@gmail.com |
effed3a0acdca44801bad039f99958bf2a182ddc | 001280151943b24db75e68fbbc0d43df82a3579d | /modules/EBO/ebo_CV.py | a582d3a09617a8a735e460b616baf4fb4e7fed61 | [] | no_license | federicovitti/DIVIDE_et_CONQUER-bayes_opt | 67e4853e59c5e718676f189ba73bb6a552cf471d | e5388ad2c0f5458d367aeefe9ce0fd6af2ec1335 | refs/heads/master | 2021-05-01T18:56:26.976064 | 2018-02-10T13:00:36 | 2018-02-10T13:00:36 | 121,011,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,048 | py | import numpy as np
import helper_ebo as helper
import time
from mypool import MyPool
from mondrian import MondrianTree
import os
try:
import cPickle as pickle
except:
import pickle
from representation import DenseL1Kernel
import scipy.linalg
import logging
'''
Emsemble Bayesian Optimization
'''
class ebo(objec... | [
"noreply@github.com"
] | federicovitti.noreply@github.com |
de0872d64dc2b87a12bd051728b834cdf5b98547 | c7e98347dc9ef53ba73da90a7aa20792bd359a8e | /natas14/hack.py | 647d2cb931c80df4b20291ba17e866e1eb05f73c | [] | no_license | prp-e/natas_challenges | 66f74226465d344a149a42dded667574fa8842cd | 2d8947fcdb3950a1290db26b36153fd2b8032b58 | refs/heads/master | 2023-01-22T15:59:37.660885 | 2020-12-06T12:06:09 | 2020-12-06T12:06:09 | 319,023,876 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import requests
username = "natas14"
password = "Lg96M10TdfaPyVBkJdjymbllQ5L6qdl1"
url = "http://natas14.natas.labs.overthewire.org/"
session = requests.Session()
response = session.post(url, data = {"username" : 'salam" OR 1=1 #', "password": "banoo"}, auth=(username, password))
print(response.text)
| [
"haghiri75@gmail.com"
] | haghiri75@gmail.com |
d76016d30946dc67e8f8300c99c8741073113505 | 35de5c22deac4780daefe6b0f5087886dde66996 | /tests/resources/test_resource.py | 7c6716fd154c14c36af5274f346e6947f96a79bf | [
"MIT"
] | permissive | cieplak/premo | 7b7705a5da453cab9fa8f524d657112d746f2090 | 805714d8797a39e6dd8fc85203843d2fb67054a4 | refs/heads/master | 2021-01-21T03:13:36.192527 | 2015-10-21T00:11:18 | 2015-10-21T00:11:18 | 35,082,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | import json
import flask
import premo
from tests import TestCase
class TestResource(TestCase):
def test_resource(self):
post_response = self.client.post(
flask.url_for('resource.create'),
data=json.dumps(dict(value='binary blob')),
content_type=premo.mimes.Json.conte... | [
"patrick@ldgr.io"
] | patrick@ldgr.io |
bb74fb6a0619e14a1a42f58aace7e9920ce74d0f | 18eac94ff076c1eecd72870ef93ae656906e8673 | /supervised_learning/0x03-optimization/14-batch_norm.py | 56b841675b9c90640609d5f43ad97d0601a56297 | [] | no_license | dgquintero/holbertonschool-machine_learning | c1331ff87e053f9c143a0e503e8db177dfc7aafe | c80073d0ef68deeedbe2d991e296ef75f58a220f | refs/heads/master | 2022-12-19T21:49:10.581793 | 2020-10-15T14:56:22 | 2020-10-15T14:56:22 | 279,329,167 | 0 | 1 | null | 2020-09-25T19:11:52 | 2020-07-13T14:42:03 | Python | UTF-8 | Python | false | false | 1,179 | py | #!/usr/bin/env python3
"""create_batch_norm_layer function"""
import tensorflow as tf
def create_batch_norm_layer(prev, n, activation):
"""
creates a batch normalization layer for a NN
Arguments:
prev: is the activated output of the previous layer
n: is the number of nodes in the layer to... | [
"dgquintero02@hotmail.com"
] | dgquintero02@hotmail.com |
bb46be63f9d1cdf94fd65e570db8ba625ebc5aa6 | afeebc0d22854f902ca19749a9ffb67903676b1f | /blog_project/blog_project/urls.py | 1ebd317125d4a1574c4bbebcaafd602537b75263 | [] | no_license | sachinmukati/blog_project | 3099f35c0907c2af06337e6f23f75b2ef4a40371 | fca9826ad37e9ded8034f7c650e86e0fa5286167 | refs/heads/master | 2020-05-31T15:07:05.323105 | 2019-06-05T07:31:01 | 2019-06-05T07:31:01 | 190,348,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | """blog_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"sachinmukati47@gmail.com"
] | sachinmukati47@gmail.com |
7bc1327530d462d815ff6112d9610deb874945d7 | e773ad635ae390edf5dea09195b33672c6597dbe | /tfmiss/training/bucket.py | 2ebf4389c1f2a223d1ef60f9118b9dd8c27d71c4 | [
"MIT"
] | permissive | Viach/tfmiss | 3e6c85b097140e29d60203d82361c14900ea09f4 | 5be62b8eb43c886746235d8d7d9370ff8e6d5a3a | refs/heads/master | 2021-01-02T21:04:48.512102 | 2020-01-05T10:59:01 | 2020-01-05T10:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,677 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from collections import Counter
def init_buckets(len2freq):
"""Splits length-to-frequency mapping into list of initial buckets.
Args:
len2freq: Dict of `sequence length`: `... | [
"shkarupa.alex@gmail.com"
] | shkarupa.alex@gmail.com |
a875dc520eaf84abf297ead360e28a7eaa9d5466 | ba3c1c99c4a05aaed304e5637367a1605e1b9b29 | /CS30/Chapter 6/6-02.py | 908eec084aa77b72612496e0ab23758cb71ddc3c | [] | no_license | JackMorash/School-Work | 416e3aea52162988ee858400cd3768055ef1ae5c | b947a511806cf2d065090bec97369c7265c116b5 | refs/heads/master | 2021-07-16T14:48:35.006897 | 2021-02-11T14:38:11 | 2021-02-11T14:38:11 | 237,064,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | favorite_numbers = {
'jack': 42,
'arden': 69,
'ali': 72,
'dan': 100_000_000,
'chris': 64,
}
num = favorite_numbers['jack']
print(f"Jack's favorite number is {num}.")
num = favorite_numbers['arden']
print(f"Arden's favorite number is {num}.")
num = favorite_numbers['ali']
print(f"Ali's favorit... | [
"jack.morash@rbe.sk.ca"
] | jack.morash@rbe.sk.ca |
86b6a28c3e04e1eb9c71d17a6812bf9b6afc2731 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03767/s129453920.py | 5c1778e2def9367f90af9044d960c69bd4c5a88b | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | n = int(input())
a = list(map(int,input().split()))
a.sort(reverse=True)
c = 0
t = 1
while t < 2*n:
c += a[t]
t += 2
print(c)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3d0d165842a0b1587940d6dddd407f143f2cfab2 | b4b6b2ab5fb71ae33120e88d31092f783319e15c | /python_server/blur_utils.py | 1d06a74f80e2a26ccd5e0ae6c0eafa3ce6c1572c | [] | no_license | jungdj/AI-Effects | 62bf58265c361d59b417a6a1140c00e58c128077 | d268bb8ccbfb3afd6a4b6defcb6ddfe71d58d85e | refs/heads/master | 2023-01-12T07:54:54.212168 | 2020-01-01T11:22:11 | 2020-01-01T11:22:11 | 225,296,917 | 63 | 12 | null | 2023-01-05T02:07:58 | 2019-12-02T05:58:57 | PureBasic | UTF-8 | Python | false | false | 669 | py | import cv2
import video_utils
import face_models
def blurAllFaces(video_path, output_path):
model = "input/res10_300x300_ssd_iter_140000.caffemodel"
prototxt = "input/deploy.prototxt"
confidence = 0.5
net = cv2.dnn.readNetFromCaffe(prototxt, model)
video_utils.processVideo(video_path, output_path, ... | [
"yunaseol@kaist.ac.kr"
] | yunaseol@kaist.ac.kr |
fb32b974467f11a8db72190740b083190837ba11 | f8b5ecb793111412e6aa4c93a94f09ef21151df3 | /__main__.py | 5a996f97472a464fbcc384c1487ade66b1b4950f | [
"MIT"
] | permissive | mister-hai/sandboxy | 355baef1c0c1ed7f1574833f611963197c9b2856 | 861fc4eb37bb37db10e0123150f587c997b146e3 | refs/heads/master | 2023-08-23T13:58:21.557680 | 2021-10-23T15:46:49 | 2021-10-23T15:46:49 | 396,319,892 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,948 | py | # This file is going to be the main file after start.sh I guess?
# HUGE TODO: SET PATHS CORRECTLY EVERYTHING IS BROKENNNN!!!!!
# repository managment
from ctfcli.__main__ import Ctfcli
from ctfcli.utils.utils import greenprint,errorlogger
# basic imports
import subprocess
import os,sys,fire
from pathlib import Path
fr... | [
"asd@gmail.com"
] | asd@gmail.com |
427d0aca6a9188d53b543aa4872497ae22682ecf | 251d7860b624cf98bc929ef2c1b69aea7bcffb45 | /templates/common.py | cce8655fdd4578febacebc9867862a284b899f48 | [
"MIT"
] | permissive | nfcentral/nf | 0b556d81cacc550183f8473a72f2add30854200b | 25f6cc3bb923cea9876fbbad5d7d54bbb9b3fec2 | refs/heads/master | 2020-04-21T01:26:15.900118 | 2019-02-27T23:26:46 | 2019-02-27T23:26:46 | 169,223,654 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | NAME = "common"
PARENTS = []
FEATURES = []
FILES = {
}
EXAMPLE_FILES = {
"": [("dotgitignore", ".gitignore")]
}
LISTS = {
"gitignore": {
"": [".nf"]
}
}
CONFIG_LISTS = {
}
def prepare(config, context):
pass
| [
"andrew.kirilenko@gmail.com"
] | andrew.kirilenko@gmail.com |
05e342ce7d3576b0224f6113dd76add50000ab2a | 8b49ae0bb177c937da6a6ebdacf68365ec5a37ae | /kubernetes_spawner/swagger_client/models/v1_cinder_volume_source.py | 9dd1396704a6e2bf8adec1568dac453efdd0a4b8 | [
"Apache-2.0"
] | permissive | opendoor-labs/jupyterhub-kubernetes_spawner | 19728cef7f50d3369d140a22f3977a1e3debd8c3 | 941360d1899e6a05f66927ae5f260abf1f8590fe | refs/heads/master | 2021-01-13T09:26:26.140619 | 2016-11-02T19:11:20 | 2016-11-02T19:11:20 | 72,672,107 | 0 | 0 | Apache-2.0 | 2021-07-29T19:15:15 | 2016-11-02T19:04:23 | Python | UTF-8 | Python | false | false | 5,306 | py | # coding: utf-8
"""
Copyright 2015 SmartBear Software
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 applica... | [
"df.rodriguez143@gmail.com"
] | df.rodriguez143@gmail.com |
264fa3ebf0d566eccac4025c78709e33da52f49b | 83685be582c6b3038e24b827b3f9ef7259abe8b5 | /clowder/util/filesystem.py | da0bd120e33397a0749030fe62e5ef38b8cb952c | [
"MIT"
] | permissive | JrGoodle/clowder | c87b9e199b038810e06b40a7c6716b03b58f42a1 | 1438fc8b1bb7379de66142ffcb0e20b459b59159 | refs/heads/master | 2023-09-01T07:24:00.910858 | 2023-07-09T21:22:01 | 2023-07-09T21:22:01 | 38,194,118 | 17 | 3 | MIT | 2023-08-14T23:41:46 | 2015-06-28T09:54:55 | Python | UTF-8 | Python | false | false | 7,509 | py | """File system utilities
.. codeauthor:: Joe DeCapo <joe@polka.cat>
"""
# import errno
import fnmatch
import os
import re
import shutil
from pathlib import Path
from typing import List
import clowder.util.command as cmd
def list_subdirectories(path: Path, recursive: bool = False) -> List[Path]:
if recursive:
... | [
"noreply@github.com"
] | JrGoodle.noreply@github.com |
b3eb7c18665a3b298e682d5a4ce0aeb8f4de9c6b | c8d5f8720431138cff38118e624cd98333358f9b | /api/transfers/transfers.py | cd4569fe51e93eea6ca439423459096d28ec1f58 | [
"MIT"
] | permissive | mindthegrow/cannlytics | e0170d3a023b82e4165147ba578e773a53fbcc4d | c266bc1169bef75214985901cd3165f415ad9ba7 | refs/heads/main | 2023-07-13T22:17:56.640684 | 2021-08-30T18:14:39 | 2021-08-30T18:14:39 | 392,468,093 | 0 | 0 | MIT | 2021-08-03T22:03:29 | 2021-08-03T22:03:28 | null | UTF-8 | Python | false | false | 16,935 | py | """
Transfers Views | Cannlytics API
Created: 4/21/2021
Updated: 8/30/2021
API to interface with laboratory transfers.
"""
# pylint:disable=line-too-long
# External imports
from rest_framework.decorators import api_view
from rest_framework.response import Response
# Internal imports
from api.auth.auth import authori... | [
"keeganskeate@gmail.com"
] | keeganskeate@gmail.com |
31757302a42d24ea7a276b1a53b6c2b4abcde137 | 4f9ca946a91759831a1cf2a037c8b4c43c556935 | /tests/test_template_handlers/test_s3.py | db8e926ae5c313d08911c09f34c839e4b52d3f08 | [
"Apache-2.0"
] | permissive | CitrineInformatics/sceptre | 591c59b15b2e9bf7c308bcf67e2aa2719c1112dd | 8ae45066a78c72d53dfe6f1c76dcc64f670c136a | refs/heads/main | 2023-01-09T22:56:50.172103 | 2021-11-29T16:58:15 | 2021-12-23T01:31:37 | 179,547,771 | 0 | 2 | NOASSERTION | 2022-10-27T20:55:34 | 2019-04-04T17:48:16 | Python | UTF-8 | Python | false | false | 4,538 | py | # -*- coding: utf-8 -*-
import json
import io
import pytest
from mock import MagicMock
from sceptre.connection_manager import ConnectionManager
from sceptre.exceptions import SceptreException, UnsupportedTemplateFileTypeError
from sceptre.template_handlers.s3 import S3
from unittest.mock import patch
class TestS3(ob... | [
"noreply@github.com"
] | CitrineInformatics.noreply@github.com |
4fd3397c966bca4bd99b3bcbfa9a5b5fbef8fcd5 | 52206eea8d48c3568370d4597dfcc6384166dfa6 | /tests/download.py | b29f52825fd634d43ed4650c05f06a9f3dc449ee | [
"MIT"
] | permissive | sweeneyngo/birdysis | b9b1ba6308682d2cfcaa799a2ba560e954a12704 | 136c75769d07410b74c74d9df353616e615d4f21 | refs/heads/master | 2023-06-16T20:22:01.418020 | 2021-07-10T09:12:03 | 2021-07-10T09:12:03 | 352,833,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from birdysis.collect_data import scrape
from birdysis.download import download
download("all_ids.json")
| [
"sweeneyngo@gmail.com"
] | sweeneyngo@gmail.com |
46542fa79977f03009b7bb03b74ec5858e1b234d | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/openpyxl-2.3.2-py27_0/lib/python2.7/site-packages/openpyxl/utils/__init__.py | 0c54fa54f4c4b0ce247d980317589d23565ab020 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 5,507 | py | from __future__ import absolute_import
# Copyright (c) 2010-2015 openpyxl
"""
Collection of utilities used within the package and also available for client code
"""
import datetime
import re
from .formulas import FORMULAE
from openpyxl.compat import basestring
from openpyxl.utils.exceptions import CellCoordinatesExc... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
96d955640c214fa097891f16d38bcd5ed4da8453 | bba4814f15faac544e6721f4233e55b029227764 | /app.py | 173889c221b115276f1280125bee070da148d15d | [] | no_license | rachl7n/ten-06 | 92bab66d48897dec1d794d171ece2b48e711fbe3 | 4fe38e3651bea7c1a5cb033112db14b8eb237f9e | refs/heads/master | 2022-07-07T11:03:47.162404 | 2020-05-13T17:24:40 | 2020-05-13T17:24:40 | 263,658,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 21 14:57:17 2020
@author: etill
"""
#import statements
from flask import Flask, render_template
#Flask app variable
app = Flask(__name__)
#static route
@app.route("/")
def test():
return render_template("index.html")
@app.route("/1006")
def ten_... | [
"rachaelclairesullivan@rachaels-mbp.home"
] | rachaelclairesullivan@rachaels-mbp.home |
98c90fd8b131550a2728238f0c640581c49629de | 38b9da5107233b20da0753b8af0c003388a9139f | /pypal/wsgi.py | a41891b4c4254b7a0a766b5d9a8ac6ef73b031d0 | [] | no_license | ZTCooper/my_site | 9bb6bb94ebd713c372fb1f9ef1792af48fd24dcd | c648179952eb92e431ffa25765dd39b5d43313f8 | refs/heads/master | 2020-03-18T16:16:10.705541 | 2018-06-08T14:33:20 | 2018-06-08T14:33:20 | 134,956,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
WSGI config for pypal project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("... | [
"ztcooper@outlook.com"
] | ztcooper@outlook.com |
fcbb5fd03089b7053afd51a4720821afceda74a8 | e422751d217312de5dec9e970c98c66ca49b6c36 | /pythonProject/pythonAPI/payload.py | c2097f5e3eac8e2807e9e59dff79842f7a30fb95 | [] | no_license | txtsuresh/Suresh_All | 408c5fed4d6251187abeea1d371f5f7cd329c4bd | 0f229d6cad7846e74a1c936430c5c4e3b4f37c1a | refs/heads/master | 2023-01-03T05:01:00.541393 | 2020-11-05T05:04:07 | 2020-11-05T05:04:07 | 292,711,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def getBody():
body={
"name": "Learn Appium Automation with Java",
"isbn": "xyz1999911120",
"aisle": "227",
"author": "John foe"
}
return body | [
"sureshtxt@gmail.com"
] | sureshtxt@gmail.com |
4c52adb6f6fef8364a1da13070c1ceac8ee9e493 | e23d18d44758eb711d1b59d8ba93b45dc337a59d | /pose_estimation/depth_map_fusion.py | fb99869ef1aa6e64a248ec38abc93f2cac8609e2 | [] | no_license | summer1719/CNN_SLAM | 4c5ecbe95854c7872cc41c547600628d9506da2f | cefb9f0cb902963715635d5a6814e1d59872ea0a | refs/heads/master | 2020-03-28T10:02:05.598615 | 2018-09-17T02:39:46 | 2018-09-17T02:39:46 | 148,077,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | import numpy as np
import cv2
import tensorflow as tf
import sys
import time
def actual_fuse(u,frame,prev_keyframe):
'''
Does the actual fusion of depth and uncertainty map
Arguments:
u: Pixel location
frame: current keyframe of Keyframe class
prev_keyframe: Previous keyframe of Keyframe class
Returns:
... | [
"adityasundar99@gmail.com"
] | adityasundar99@gmail.com |
e43cfaaeee1b2cd2414081c2358a94cdafd5a010 | 961ef96e417e59ca4a372c056eb059becda48c4f | /flask_datepicker/about.py | e7a66233ea884c93b9f5e155b5f03aacdde7db24 | [
"MIT"
] | permissive | mrf345/flask_datepicker | 394216c0a27641103c7a25468106d47b0b812ba6 | 00d6b024943a73f6aa4a9eb4f4d078f3df6571c4 | refs/heads/master | 2021-11-18T05:09:54.506643 | 2021-08-08T19:58:15 | 2021-08-08T19:58:15 | 111,988,960 | 17 | 7 | MIT | 2021-08-08T19:58:16 | 2017-11-25T08:36:09 | Python | UTF-8 | Python | false | false | 157 | py | __version__ = '0.14'
__doc__ = 'A Flask extension for jQueryUI DatePicker.'
__license__ = 'MIT'
__author__ = 'Mohamed Feddad'
__email__ = 'mrf345@gmail.com'
| [
"mrf345@gmail.com"
] | mrf345@gmail.com |
54c4a501d9604fa6651f27159ab896dee43bb7d4 | abd5867e559d2382764fa82419f78d0b1f63cd81 | /solutions/pe11_test.py | a05b6a4efd5cef194cbc224ca5356be8034d3c49 | [] | no_license | c-ripper/project-euler | 5c272169b52f834dee9106409158a38ed5d6ee41 | 1f35c2c9f61031fd5c69ec6c0eb4e5a44f999d24 | refs/heads/master | 2023-09-02T02:03:01.451371 | 2021-11-22T10:35:32 | 2021-11-22T10:35:32 | 430,596,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | import unittest
from pe11 import solve
class Pe11Test(unittest.TestCase):
def test_solution(self):
self.assertEqual(solve('pe11_numbers.txt'), 70600674)
if __name__ == '__main__':
unittest.main()
| [
"oleksandr.berezovskyi@ihsmarkit.com"
] | oleksandr.berezovskyi@ihsmarkit.com |
0862f3da61b1c40c3b7e1db8e5dfe036f58d74f1 | ff7d12f148059b2e143fca7d9a7dbab5375bbb5b | /taack 5/флаги.py | 1d0c685ad2821e2ffe833c528808f96cf39516d4 | [] | no_license | zaur557/python.zzz | e74314ceed039da450992edd0757926cffcaa78c | 9b518cbd8128ae1f1237de81b53d5342beac26c4 | refs/heads/master | 2022-07-23T20:06:01.279841 | 2020-05-03T13:36:16 | 2020-05-03T13:36:16 | 260,771,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | n = int(input())
print('+___ '*n)
for z in range(n):
print('|', z+1, ' /', sep='', end=' ')
print()
print('|__\ '*n)
print('| '*n)
| [
"noreply@github.com"
] | zaur557.noreply@github.com |
c3485c1b87104bdfcb1876b021628d9304df1c00 | 229d7b0de4416b068821eb5193a640a22d5c11e1 | /setup.py | eda9c624e79a1c24fe8aabe04fee2005158be613 | [
"MIT"
] | permissive | peleg525/large_data_to_teradata | 99be81930ee82280482238b982f86199b0152641 | 6172ec5f8eb00ac324620ff3501f50be418a21df | refs/heads/main | 2023-06-20T08:01:40.065548 | 2021-07-13T12:38:47 | 2021-07-13T12:38:47 | 385,582,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | from distutils.core import setup
setup(
name = 'large_data_to_teradata', # How you named your package folder (MyLib)
packages = ['large_data_to_teradata'], # Chose the same as "name"
version = '0.1', # Start with a small number and increase it with every change you make
license='MIT', ... | [
"noreply@github.com"
] | peleg525.noreply@github.com |
4d30c6fc70954ba966aeeee5d1eb33d9f5a4aafe | d47f58c08828a41576634cc53b86eb519f60f15d | /uploads/urls.py | 7a17822747a49dbe578fe807447992266b6b5709 | [
"MIT"
] | permissive | doyenraj/mint_upload | be8160943540f3c94ed049dee4c941dc9a5fb330 | 1a5ec7b9bf4254f3eb46054b316b40a85beeb5e9 | refs/heads/master | 2023-08-30T04:08:15.109202 | 2021-11-01T12:28:51 | 2021-11-01T12:28:51 | 423,398,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from django.conf.urls import url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from uploads.core import views
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^uploads/simple/$', views.simple_upload, name='simple_upload'),
url(r'^up... | [
"rajnish@goodhills-group.com"
] | rajnish@goodhills-group.com |
61f98b001adb1e268bc9bd6fcb3bb509e4aefae9 | 4811776819714b138a5dbbc122c8544c44ce3c89 | /predict/__main__.py | ba359ef293d146cfd63e9b11a2e8b10d486290d4 | [] | no_license | lemfaer/funny | 0bb412345afa80c6d8f01eca6f4ea7ecf6c80da3 | 748e0be727d2027a7cc8744206403b9561c2fd0b | refs/heads/master | 2021-09-17T11:08:27.841168 | 2018-07-01T08:56:38 | 2018-07-01T08:56:38 | 110,134,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from predict import Predict
from sys import exit
from args import *
from db import *
import json
data = {
"type" : None,
"ratio" : {},
"top" : []
}
try:
cnx = connect(**base)
svms, ngrams = select_last_weights(cnx)
indexes = select_indexes(cnx)
predict = Predict(svms, indexes, ngrams)
uid = predict.text([tex... | [
"lemfaer@gmail.com"
] | lemfaer@gmail.com |
55b5d85be3348bd45f1b520c279dea3e7d9c7f02 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_chancing.py | 39d3766b4c248139ad54c2197c4e7174569df972 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
from xai.brain.wordbase.verbs._chance import _CHANCE
#calss header
class _CHANCING(_CHANCE, ):
def __init__(self,):
_CHANCE.__init__(self)
self.name = "CHANCING"
self.specie = 'verbs'
self.basic = "chance"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f49a1d86de2af8ee7a8b700298597fa86773f976 | b6b3c01f29eb4ca0b4a11a12b7844c7971dd936c | /reddit_comments/views.py | 2b6e51522817625656efb7677fda31f6a49521e1 | [] | no_license | jjmalina/trollolol | b3bfbbadfba8f55c84727d0cf412d26e66620996 | e9831f95dbd45317f4f4905e9fd009094556d6e3 | refs/heads/master | 2020-11-26T21:10:16.863955 | 2013-04-02T22:54:08 | 2013-04-02T22:54:08 | 6,016,385 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import simplejson as json
from django.http import HttpResponse
from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from reddit_comments.models import Submission, Comment
def index(request):
submissions = []
for submission in Submission.find():
item = {'submission'... | [
"jmalina327@gmail.com"
] | jmalina327@gmail.com |
616423f2f0453fe8f46d5f221992ce4636cbc09a | 6aee8f6182b2cf15d5c6ddc742b3f2e17a261442 | /parser.py | 74d54cbe33d152f68d442caae46803b4ca5392d5 | [] | no_license | StanislavNesterovich/parser | 9f80950966dc72a23b6a6d0cc96520cdcb1aab58 | cc568939c182eb2865bee4c2c86fbffa6f70315a | refs/heads/master | 2020-04-19T12:39:02.416525 | 2019-07-31T12:15:18 | 2019-07-31T12:15:18 | 168,197,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import yaml
with open("document.yaml", 'r') as stream:
try:
a = (yaml.load(stream))
except yaml.YAMLError as exc:
print(exc)
print a["defaults"]
print a["defaults"]["volumes"]
for i in a["defaults"]["volumes"].keys():
print i
print a["defaults"]["volumes"][i] | [
"stanislau.nestsiarovich@netcracker.com"
] | stanislau.nestsiarovich@netcracker.com |
a5f0ed870c87007fcf9f22bae53d58e56ed5e7dd | dda6c484dde9bf5c59473d44c5e934487f13b0ea | /textils/textils/wsgi.py | 1d8abc0c4d6d536778a66638f058cebfb8cc51bc | [] | no_license | shreyasingh12/Django-Project | 439e83f95740a58ed15f28fda7b16ae6af206a23 | 07c1bbe7c19dc12abc3109b02b9b1ea10cfa6170 | refs/heads/master | 2021-06-13T04:41:45.141103 | 2020-04-10T09:31:39 | 2020-04-10T09:31:39 | 254,424,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for textils 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"sshreya0003@gmail.com"
] | sshreya0003@gmail.com |
e3af2107bc4abb9ae14e143512c4ae6befccfb9a | 6402c19d74b278064d7672cb15b50e549cc79f36 | /message.py | 5359883d46536ca1ac0ecb21229ec60c91b6bdaf | [] | no_license | rifiuto/pyqt | 5e46954e3361a78c36308380d0a38a49536c8fa5 | 40300b63f4854379c17015f3826de1801eb0a665 | refs/heads/master | 2023-09-03T22:06:48.700310 | 2021-11-09T15:18:21 | 2021-11-09T15:18:31 | 425,777,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | import sys
from PyQt5.QtWidgets import QWidget, QApplication, QMessageBox, QDesktopWidget
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
self.resize(400, 400)
self.show()
def closeEvent(self, event):
reply = QMes... | [
"sayno@rifiuto.localdomain"
] | sayno@rifiuto.localdomain |
1ca06445b4a6681d07bd80c25c813c17a9d99f3b | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/encodings/utf_32_be.py | fcf11fbab5dd8d16c2cb243fe427707815df6409 | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/python-3.7.7-oihhthdoxtgh4krvzpputn5ozwcnq2by/lib/python3.7/encodings/utf_32_be.py | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
8184744e49878c1d75bddc0aecfa8c735b903048 | fced246b0bf2e7ca0ddfe32d71bcae008b98bb42 | /migrations/__init__.py | 8f982d30238f9f4e8a4d0e11bee0db2439d80d6d | [] | no_license | jackscodemonkey/reads_db | b0af2231213977a7670876dd4c2beed60b0182ae | 13e433652fce648a95704badb261b3ca2a771d8c | refs/heads/main | 2023-01-03T10:18:41.756971 | 2020-11-04T01:39:29 | 2020-11-04T01:39:29 | 309,837,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | __version__ = '1.0'
__release__ = '1.0.0' | [
"marcus.robb@initworx.com"
] | marcus.robb@initworx.com |
055d26a5da7e57c84e37a554e274c996150f4e8e | 673af02550d4d26ff0a8bcecb4175a0a6b24378f | /appointment_scheduler.py | 1c406595a6f8f529c269ed169101d9717670e388 | [] | no_license | OMRYZUTA/Appointments | 1cb0665638bffcd1f48163b7646b2a29ec52f9e2 | 26f00da30c7600406b0196782eb244694f3e8509 | refs/heads/master | 2023-08-20T02:27:45.436806 | 2021-06-25T07:04:54 | 2021-06-25T07:04:54 | 378,819,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | from db_connector import DbConnector
from login_system import LoginSystem
class AppointmentScheduler():
def __init__(self):
doctors_list = DbConnector.get_doctors_list()
self.doctors_list = list(map(
lambda x: LoginSystem.doctor_log_in(x[0], x[1]), doctors_list))
self.doctor_d... | [
"omrizu@mta.ac.il"
] | omrizu@mta.ac.il |
aed104fefaad1dcac7d795078c44b562c6e58c95 | c546ea8fe008f2cb11e9b7dfa2e5220ee6601c7b | /read_rss.py | 32277004a840cb131caae29bbf5d461df4744da6 | [] | no_license | MariaChowdhury/Parser | df535de2ce5d3d92ee9a42d6ba5f87f49135e87a | c516b95bb9fc574cefea7086af1d236d09a7075b | refs/heads/master | 2020-03-29T18:04:46.807570 | 2018-09-25T02:03:25 | 2018-09-25T02:03:25 | 150,193,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | #Python code to illustrate parsing of XML files
# importing the required modules
import csv
import requests
import xml.etree.ElementTree as ET
def loadRSS():
# url of rss feed
url = 'https://onlinebooks.library.upenn.edu/newrss.xml'
# creating HTTP response object from given url
resp = requests.get(u... | [
"maria.chowdhury@gmail.com"
] | maria.chowdhury@gmail.com |
f46004245901b5a26d8f52428fb53ff149b9c996 | 3c0458db82bc58ac57820fc82291ecadfa99458f | /wechit.py | d54b71d4396caa9ed9d9d844dc4ace5e5d9dbe35 | [
"MIT"
] | permissive | user01010011/wechit | 1bce91723ba62e15489bdd8110ba10c7174e001d | 18de1a3bc23691cd6faa859181384822bc46b813 | refs/heads/master | 2022-04-13T22:11:15.602716 | 2020-02-27T04:03:21 | 2020-02-27T04:03:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,381 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
import time
from PIL import Image, ImageOps, ImageStat, ImageEnhance
import os
import sys
from glob import glob
import re
import json
import random
import shutil
... | [
"admin@admins-MacBook-Pro-voice-theatre.local"
] | admin@admins-MacBook-Pro-voice-theatre.local |
77bcd921aa4b5c8e9433f39362172a8287c4cba5 | a845841285321224801e107d23fe72e189121eb3 | /src_mulan/modules/latticelstm.py | 7a01fd3ecca31e393b34f9562636a21a44a16819 | [] | no_license | ylwangy/Lattice4LM | 22e330db539dfb33ef329d4564c4efe2d5fd71c1 | 7228c52276774569b28efeb956fd6e455c60a7ca | refs/heads/master | 2020-06-19T02:17:18.147252 | 2019-11-07T06:30:47 | 2019-11-07T06:30:47 | 196,529,608 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,504 | py | """Implementation of batch-normalized LSTM."""
import torch
from torch import nn
import torch.autograd as autograd
from torch.autograd import Variable
from torch.nn import functional, init
import numpy as np
class WordLSTMCell(nn.Module):
"""A basic LSTM cell."""
def __init__(self, input_size, hidden_size, ... | [
"yile.wangy@gmail.com"
] | yile.wangy@gmail.com |
0ad87734c9f80419af621baefc87786b066dc899 | f6194828921cc952234253310a8ddd049893914c | /views/MainFrame.py.bak | 873c5b369d0b46621490564a7d7a53bcaabff466 | [] | no_license | francom77/dress | 5b3db0457230016a391187aee1df09123dfca69a | b315024751fb231b3a0c367eacb5172e89eb046b | refs/heads/master | 2021-01-15T19:44:15.868685 | 2013-05-25T18:33:55 | 2013-05-25T18:33:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,220 | bak | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade HG on Thu Mar 14 17:01:31 2013
import wx
# begin wxGlade: extracode
# end wxGlade
class MainFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begin wxGlade: MainFrame.__init__
kwds["style"] = wx.CAPTION|wx.CLOSE_BOX|wx.MIN... | [
"nicolas_maggione_27@hotmail.com"
] | nicolas_maggione_27@hotmail.com |
daeeb80b26acf9b019b2a16705f67b2858d3cd88 | 7269d0125a3a4536a3eea8efc6a63784b82b6161 | /src/test.py | 6789bf4a2d604efdf3af8fac7149588792315cc0 | [] | no_license | rrozario/Malware-Detection- | 119e756f37bc590fd4e3f81b923e171e82a51f23 | 10e86bc560bf0562477ba04cd74cafbb795e6d2e | refs/heads/master | 2022-08-12T04:23:36.668390 | 2020-05-14T23:10:18 | 2020-05-14T23:10:18 | 264,044,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,305 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 9 16:03:59 2018
@author: Ruchi
"""
# ##### Testing with unseen file
# Given any unseen test file, it's required to extract the characteristics of the given file.
#
# In order to test the model on an unseen file, it's required to extract the characteristic... | [
"noreply@github.com"
] | rrozario.noreply@github.com |
0937f7fd917adfe8973d1222e184e43f56b68640 | c52e34a8f7b43028196fe3b385768d7648d06fb9 | /app01/migrations/0003_answer_option.py | 960eaa25168aed12b2048f668abae1d4eccf6f10 | [] | no_license | zhangyi89/questionnarie | 421e43d3f141508e029dd29f81bc905ab54309fd | 6386bdff6bb4fb43f2e3b91d90e6fe81c83c4bf4 | refs/heads/master | 2021-08-24T10:29:51.542142 | 2017-12-09T06:34:26 | 2017-12-09T06:34:26 | 113,381,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-09 04:39
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app01', '0002_question_questionnaire'),
]
operatio... | [
"2369717781@qq.com"
] | 2369717781@qq.com |
3a9ec1f9626739da8e8e1b4449f4770e65322b3e | 3ab788022d09e10fd7f9751618a82c485441200f | /lectures/week03/lect1/ex3-savings.py | 7a35b0eaacb4819a38a60bf29678765341ceda1b | [] | no_license | nkmansou/15-112 | d46f968b2b7a7d9a00da35f776f3e15b1a89f0f3 | 8917a86fde3f760f6392d959e931a1e59fbd3159 | refs/heads/master | 2020-04-15T13:13:41.959579 | 2015-03-10T15:53:24 | 2015-03-10T15:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # problem: I have 100,000 QAR on a saving account. Every year my bank gives me 2.5% interest on my savings. In addition, the bank offers me a bonus of 5,000 QAR every 5 years. How much will I have in 10 years? 20 years?
# input data
amount = 100000
interest = 2.5
# calculate interests
for i in range(20):
amount =... | [
"thierry.sans@gmail.com"
] | thierry.sans@gmail.com |
5c395d2a8330c4f6da772620bc61ad55dfe0d85f | e138bd85f7737b4793c2c1f10e682eb2106481e0 | /slicer_wiki_extension_module_listing.py | 01f6d57cc8818c945ca8c9f2f8bedf958fdfcaf6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-3dslicer-1.0"
] | permissive | Slicer/slicer-wiki-scripts | feef2e05562c1628d507ededd854abc04b44c22a | 3655eb1cf1fde3995f553a414785bc1c69f6e087 | refs/heads/master | 2021-01-01T19:24:03.851023 | 2017-04-18T21:54:43 | 2017-04-18T21:54:43 | 28,377,113 | 0 | 4 | null | 2016-11-22T23:20:51 | 2014-12-23T04:26:16 | Python | UTF-8 | Python | false | false | 71,479 | py | #!/usr/bin/env python
import codecs
import ConfigParser
import fnmatch
import glob
import git
import io
import itertools
import json
import os
import platform
import re
import subprocess
import sys
import tempfile
import urllib
import urllib2
#--------------------------------------------------------------------------... | [
"jchris.fillionr@kitware.com"
] | jchris.fillionr@kitware.com |
a59c77a0cf3cfb08626bd1b5a506208c989c883b | 31bf5d3210534b7efa30bdade6ff869e73a85d7a | /LSTMparameterstudy.py | 5e1812d8aef7ae56379054a77bae3747796d0e02 | [] | no_license | fluxtransport/solar-terrestrial | e8b5d3b31bcb01432d974b042ca89c0f62003cf8 | 8caa446ee0a4723ca9aaf498f6b1784059859c38 | refs/heads/master | 2020-12-30T10:50:46.419791 | 2017-08-15T07:43:48 | 2017-08-15T07:43:48 | 98,829,922 | 1 | 0 | null | 2017-07-30T23:08:57 | 2017-07-30T23:08:56 | null | UTF-8 | Python | false | false | 3,298 | py | '''Example script showing how to use stateful RNNs
to model long sequences efficiently. Adapted from Keras examples.
'''
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers import Dense, LSTM
# since we are using stateful rnn t... | [
"chandmer@nasa-16.ibm.com"
] | chandmer@nasa-16.ibm.com |
0a8b3737dae342147407904474dce7c0f2332844 | 7e11051b65ea60193b4058039c63eed872720f49 | /PersistenceMangement.py | 9171c3377d5efc2601c0af82e2d09ca20b5c325d | [] | no_license | ljm9104/guazi_spider | 737c87fe1664bacfb06b2ed2b65134db7bcaeb96 | 5855edeea27e87fdf56d9a34a0b25306a832a1a6 | refs/heads/master | 2020-03-29T08:21:12.418753 | 2018-09-18T03:30:00 | 2018-09-18T03:30:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | # coding=utf8
"""
author: wangjiawei
date: 2018-09-05
该模块主要作为持久化模块
监听 ps_que队列
获取数据,然后持久化操作
"""
import time
import config
import datetime
from config import logger
from config import redis_cli
from utils import translate_2_json_dict
from utils import loads_json
from utils import write_2_file
... | [
"forme.wjw@aliyun.com"
] | forme.wjw@aliyun.com |
84f6829bee3e951fa4a5db4fa079b8d7c7e83f51 | cf8506c0ddccced9cb5f8ee793f37eb7d136daa4 | /apps/cart/migrations/0034_auto__del_shippinglabel__add_shipment__del_field_purchase_shipping_met.py | b39231e83b627c88f86889c4a60f4c44fefcdb89 | [] | no_license | Stunable/stella_site | f0dda05979db90bfced0039af949a0c983222152 | b51bc01b4962517a312e37cc3b273693b89cfaf3 | refs/heads/master | 2021-03-27T08:56:32.850051 | 2013-02-05T04:48:32 | 2013-02-05T04:48:32 | 2,887,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,389 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'ShippingLabel'
db.delete_table('cart_shippinglabel')
# Adding model 'Shipment'
... | [
"gdamon@gmail.com"
] | gdamon@gmail.com |
e3304c28ddec47e47e05ea577296a4fbb00aed1a | 53e37c177f580e11bd856b8f0291a3abb8d77450 | /core/forms.py | 0329f14dee625c89b51c9682c474684a0ffbe54b | [] | no_license | cefer96/test-project | 74426b510c4a415256a9b932fee9b619065540e1 | 6ec89d0b5cb4ef1dbbb79de605b1325281366acb | refs/heads/master | 2020-11-25T12:19:59.424802 | 2019-12-19T16:38:32 | 2019-12-19T16:38:32 | 228,656,177 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from django import forms
from core.models import MailTest
class MailForms(forms.ModelForm):
email = forms.CharField(label='Email', widget=forms.EmailInput(attrs={'placeholder': "Email",'class': 'form-control'}))
class Meta:
model = MailTest
fields = '__all__'
| [
"jafar.h@labrin.tech"
] | jafar.h@labrin.tech |
745339c36ac28bb2eaffbf6808ab4d627b34c918 | 09a9748b6a107af9d4b1f1cbd6aa6fa5fa94c36a | /imageUpload/migrations/0005_cosmetics.py | 03bd628da7ae5572911d3506560a09dd4c99bf84 | [] | no_license | choijy1994/showmethecolor | 986a4619ffc3bf7e2e116e50813536066d840a30 | eaebab1e9c94b23e76175680e8b82b970897a399 | refs/heads/master | 2022-12-11T01:37:49.855657 | 2019-06-08T06:54:06 | 2019-06-08T06:54:06 | 190,741,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # Generated by Django 2.1.7 on 2019-05-08 06:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('imageUpload', '0004_auto_20190508_1512'),
]
operations = [
migrations.CreateModel(
name='Cosmetics',
fields=[
... | [
"shvk54@gmail.com"
] | shvk54@gmail.com |
1cc827a04aae95a9a2e9660b399b01a893ba1ac2 | 94cf6abf87852d513fec6e41dbf69f15d835487e | /learn-rbd.py | af24d053dd155f59d1bdfdaa6a5c440b5f3b8efb | [] | no_license | binhnq94/learn_ceph | 0f7eed16668469a93c698811b307622f201ec6cd | 6e5421987a33f835ad04d92dbeb88e9b2d526f67 | refs/heads/master | 2021-07-29T08:39:55.432536 | 2016-07-01T10:26:38 | 2016-07-01T10:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | import rbd
import rados
import os
try:
cluster = rados.Rados(conffile=os.path.abspath('ceph.conf'))
except TypeError as e:
print 'Argument validation error: ', e
raise e
# print "Created cluster handle."
try:
cluster.connect()
except Exception as e:
print "connection error: ", e
raise e
# fi... | [
"quangbinh.nguyentrong@gmail.com"
] | quangbinh.nguyentrong@gmail.com |
be49c80a19b24f3461b98a97239a5ee906b066c3 | 952eaaff06d57b02cddbfa3ea244bbdca2f0e106 | /src/Utils/Python/Tests/test_ElementData.py | 542e6c8ce12be289f13e273807a06658fdaf9566 | [
"BSD-3-Clause"
] | permissive | DockBio/utilities | 413cbde988d75a975b3e357c700caa87406c963b | 213ed5ac2a64886b16d0fee1fcecb34d36eea9e9 | refs/heads/master | 2023-02-25T20:50:19.211145 | 2020-04-27T20:41:03 | 2020-04-27T20:41:03 | 257,099,174 | 0 | 0 | BSD-3-Clause | 2020-04-27T20:41:05 | 2020-04-19T20:48:18 | null | UTF-8 | Python | false | false | 313 | py | import pytest
import scine_utilities as scine
def test_ElementData():
a = scine.ElementDataSingleton.instance()
# Access via element type and symbol string
element_data_h = a[scine.ElementType.H]
element_data_f = a["F"]
assert element_data_h.symbol == "H"
assert element_data_f.Z == 9
| [
"scine@phys.chem.ethz.ch"
] | scine@phys.chem.ethz.ch |
86edd47ed717d86ca698b95755233877fc986709 | 16592bba87fdc74aed04f9fe9256d413e5867d3d | /app.py | 272a1e6cf3efe633cfc843674ddee727ba50796a | [] | no_license | chenjf2015103095/FaceNet | 7a79abf7d832265f622c0d8a47e45f5f2442ec5c | bb97c4dfe53358de458639170ad0b09a7d1cc0ae | refs/heads/master | 2023-03-30T07:31:01.084393 | 2021-05-21T07:40:29 | 2021-05-21T07:40:29 | 191,882,724 | 0 | 0 | null | 2023-03-25T00:06:52 | 2019-06-14T05:46:02 | Python | UTF-8 | Python | false | false | 3,475 | py | # -*- coding:utf-8 -*-
from flask import Flask, g
from flask import request, Response,render_template
from werkzeug.contrib.fixers import ProxyFix
import config
from zhousf_lib.util import log, string_util
from info import response_info as res
import time
import random
from flask_sqlalchemy import SQLAlchemy
def conf... | [
"1309304223@qq.com"
] | 1309304223@qq.com |
ae7a581398c97e0116c2064320984c14329749df | a3a5f5c1e0b24f9017d11e87c0f4ea5121831ff0 | /Workspace/blogproject/blog/views.py | d09b4ff70fdbe1060173faa5f8032faf9b0e59dd | [] | no_license | HANCAO/hschen.top | 32478befd5d816b7b703395dbbc21f5587a0e3bd | 3b2bbac306900fa75ec73c41fa3cb01ed3de6e52 | refs/heads/master | 2021-05-08T00:26:29.055050 | 2019-02-17T03:23:36 | 2019-02-17T03:23:36 | 107,679,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | import markdown
from django.shortcuts import render,get_object_or_404
from .models import Post,Category
from comments.forms import CommentForm
# Create your views here.
def index(request):
post_list=Post.objects.all().order_by('-created_time')
return render(request,'blog/index.html',context={'post_list':post_l... | [
"noreply@github.com"
] | HANCAO.noreply@github.com |
5e60082b7b3c49ea6324f08d8a9ad2d6552f8f82 | 223caa5d05db031589dd754fcd697388273bd617 | /Supermarket.py | 8a3e68c5b0a10796c31476f602d1d18bb4b18235 | [] | no_license | LuanComputacao/python | 72d34999e7098c0fba145072639128a753ee42d7 | 768d1600cfe7a8c0f0759683801ab2d4b3648aa4 | refs/heads/master | 2021-01-10T21:04:13.776670 | 2015-05-17T13:09:42 | 2015-05-17T13:09:42 | 34,735,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py |
shopping_list = ["apple", "pear", "banana"]
stock = {
"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15
}
prices = {
"banana": 4,
"apple": 2,
"orange": 1.5,
"pear": 3
}
# Write your code below!
def compute_bill(food):
total = 0
for key in food:
print(key)
if s... | [
"luanengcomputacao@gmail.com"
] | luanengcomputacao@gmail.com |
6e2f2852dd8aac0e24dcbb59aaa9048e71c63bc6 | 3c59fb0705a561d5b32c91a8b323789837b6881b | /code/sth.py | 892c9011dcf90ce21389c316081592d43c31e351 | [] | no_license | sarahlia/python-gen-exercises | 13e15e20dc37d1630b42c200f2d1f8b05de81ca9 | 2b42eccb36f1a66c41689ea304bbc2b6ec498397 | refs/heads/master | 2023-08-15T04:33:45.646777 | 2021-10-22T20:33:17 | 2021-10-22T20:33:17 | 404,006,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | import os
from flask import Flask
def create_app(test_config=None):
app = Flask(__name__)
app.config.from_mapping(
SECRET_KEY=os.environ.get('SECRET_KEY', default='dev'),
)
if test_config is None:
app.config.from_pyfile('config.py', silent=True)
else:
app.config.from_mappi... | [
"sarahlia23@outlook.com"
] | sarahlia23@outlook.com |
a6699e68f3554bf2e09f6facda57d2bce37c27ef | 321b5e0646c9f26100d86c098da3ce52552088ac | /src/main/urls.py | 0d2008087a32de5de963810a571ff387d12f1e36 | [] | no_license | Yobmod/dmlDjangoReact | 9dc500f5242af86273d0001c699dc568b8579b50 | 74e295e0d8a0d521eb6131b20a4debd3e830a609 | refs/heads/master | 2022-04-03T10:31:42.329994 | 2017-08-14T15:53:07 | 2017-08-14T15:53:07 | 100,283,713 | 0 | 0 | null | 2020-02-15T15:06:44 | 2017-08-14T15:42:44 | JavaScript | UTF-8 | Python | false | false | 462 | py | from django.conf.urls import url
from . import views
app_name = 'main'
urlpatterns = [
url(r'^$', views.homepage, name='homepage'),
url(r'^facilities/$', views.facilities, name='facilities'),
url(r'^projects/$', views.facilities, name='projects'),
url(r'^publications/$', views.publications, name='publications'),
... | [
"yobmod@gmail.com"
] | yobmod@gmail.com |
dc00e98dac1a9a7c2aa7b66c7b1a357d99fd40c1 | 57b3ec21cc55885467f130519e7e0e0d2b60cd7d | /VAE_cn/hlSeg/demo/pyHlSegDemo.py | e9d7310f12d8c2c162a24769e1648486ab15f8ef | [
"MIT"
] | permissive | xihuateng/VAE_sentence_generation | bb4321235ca2c4bb79b2b000201b4657bd4bd7fb | 45af709b7caf09fdb30e7291f19384d73be386d0 | refs/heads/master | 2022-01-04T22:20:51.879861 | 2019-05-02T07:12:29 | 2019-05-02T07:12:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | #! /usr/bin/python2
# -*-coding: UTF-8 -*-
'''繁体不能识别'''
import jpype
import os.path
import sys,time
import os
reload(sys)
sys.setdefaultencoding( "utf-8" )
if __name__ == "__main__":
#打开jvm虚拟机
jar_path = os.path.abspath(u'/home/ywj/VAE_sentence_generation/VAE_cn/hlSeg/lib/')
hlSegJarPath = os.path.join(jar_path,... | [
"mryuan0428@126.com"
] | mryuan0428@126.com |
9f3b3d6985ccaeae9c7b73e2963e76eb98dd2e1d | 73ceefbaac7900eca5ac84fbb3dc695bbef95a81 | /py/rackattack/dashboard/main.py | 1517f8998731826ac4a999c7e8e741a812e58be4 | [
"Apache-2.0"
] | permissive | shlomimatichin/rackattack-physical-dashboard | 18d917db1c12cbbae2f7fbedf8773adf74f8fba5 | a814060f3602b27e3e2e8e7ac0161966e9db6f88 | refs/heads/master | 2020-12-11T05:26:15.507928 | 2015-04-15T09:16:58 | 2015-04-15T09:16:58 | 28,646,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | import logging
import argparse
import realtimewebui.config
import os
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
parser = argparse.ArgumentParser()
parser.add_argument("--webPort", type=int, default=6001)
parser.add_argument("--webSocketPort", type=int, defa... | [
"shlomi@stratoscale.com"
] | shlomi@stratoscale.com |
2c99dad24a3c1b9b80a778fbd17b3940b195e505 | bfda1c08ba7c3df8c34fc6ead8258f8b13d38526 | /homeassistant/components/recorder/tasks.py | e12526b316acabe74496e9da1991cbe04367c4ec | [
"Apache-2.0"
] | permissive | cliffordm/home-assistant | 60353e65505deb1a440986407843d5c98da980a0 | 1c4c0f1eb33302b983cb39f6800cd0fe6943fc4a | refs/heads/dev | 2023-02-22T18:31:50.141720 | 2022-05-19T16:50:54 | 2022-05-19T16:50:54 | 153,680,484 | 0 | 0 | Apache-2.0 | 2023-02-22T06:19:10 | 2018-10-18T20:01:52 | Python | UTF-8 | Python | false | false | 7,180 | py | """Support for recording details."""
from __future__ import annotations
import abc
import asyncio
from collections.abc import Callable, Iterable
from dataclasses import dataclass
from datetime import datetime
import threading
from typing import TYPE_CHECKING, Any
from homeassistant.core import Event
from . import pu... | [
"noreply@github.com"
] | cliffordm.noreply@github.com |
35745d79bc0f9b883783f984cd1176ae324fce1e | edbe27c332625262f11d83d5f4b797402e19a6ea | /calculateMpg.py | 433ab10c39d264e67dac4dcb5224c113119cf925 | [] | no_license | vithura/Python-Lab4 | 9e505a2c23aaee2582291b08ce07fc739bbc8469 | cd7aea667f9f7a2a489585221de817b1a05064fe | refs/heads/master | 2020-08-02T02:06:01.056653 | 2019-09-27T00:09:23 | 2019-09-27T00:09:23 | 211,201,708 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import srib0001library
input1 = int(input('Howmany miles driven'));
input2 = int(input('Howmuch gas you use in gallons'));
print('Your MPG is ' + str(srib0001library.calculateMpg(input1, input2))); | [
"srib0001@algonquinlive.com"
] | srib0001@algonquinlive.com |
c694dfefddf3e823716546e6067c6c58879bd074 | 387615c1ed7bec3143939dd8647b0642c9f25817 | /Single Parameter Bayesian Inference/vonMises.py | bc7ef2f03ff748a2b32cd9c114ca9618502f9b6b | [] | no_license | tsigkas/Bayesian-Methods | 103cc856eb7b8c8576aacc21e327f8ed81478cab | 2d3c7b86478fb2dec31ffa26cceeca44dd23fe76 | refs/heads/main | 2023-05-14T05:42:58.628944 | 2021-06-09T11:18:49 | 2021-06-09T11:18:49 | 374,657,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy.special import iv as bessel
from scipy.integrate import quad
np.random.seed(123) # set seed for reproducability
# Dataset of wind directions in radians
y = np.array([-2.44, 2.14, 2.54, 1.83, 2.02, 2.33, -2.79, 2.23, 2.07, 2.02])
mu = 2.39
lamda = 1
# ... | [
"noreply@github.com"
] | tsigkas.noreply@github.com |
415e721fb6d5ea182b0e3b9238b59bba43fd6154 | f6cb9c53b2f8340b0e2fa18004f79214eb9e27f9 | /webchat/migrations/0001_initial.py | 3d028744a7653bd7f198540731ce9817f2edeb84 | [] | no_license | joey100/simpleBBS | 3c861a5718c5cfd45d7918aa598b3c4af36a1d8b | 0697acb1f916ace25d8289e7e9ff54c48d274f48 | refs/heads/master | 2021-01-20T20:36:53.052875 | 2016-09-28T02:47:07 | 2016-09-28T02:47:07 | 64,055,300 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-07-03 09:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('bbs', '0002_auto_20160703_1751'),
]
... | [
"smartheshuiping@163.com"
] | smartheshuiping@163.com |
8dda786957a949c985bd9e218d140b6c11c735e6 | b6257edc98da9cfffd5666193726c0da48415e29 | /config.py | c0100342c4504364e0d1d32e6c529a5929491572 | [] | no_license | akhiaji/spear | 2919af714a274bfee81545bc7f45aa47646d823c | 2984b7121fdbf3a56fd773473ca5657af09b551a | refs/heads/master | 2020-05-25T11:06:24.669356 | 2015-08-05T10:25:35 | 2015-08-05T10:25:35 | 40,239,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | DATABASE = '/tmp/spear.db'
DEBUG = True
SECRET_KEY = 'development key'
DROPBOX_APP_KEY = '1szh06pzua9nm1a'
DROPBOX_APP_SECRET = '4pqoe16cl3jtctf'
GDRIVE_CLIENT_ID='384706005510-hbbdfl1tef8g06artuuft5ubc7a9fllp.apps.googleusercontent.com'
GDRIVE_CLIENT_SECRET='RyYaHJkGL_Q9rYeqcjIylbHO'
GDRIVE_REDIRECT_URI = 'http://127... | [
"akhiaji@gmail.com"
] | akhiaji@gmail.com |
618a19c0b38addb258cf53adb9766c353634ccf0 | 41609905c56ec5c9d00e8d872fb847e5c5be10f4 | /src/models/image.py | 7a9d80e2b15b6b8aed44bdf1d31a50565642c093 | [] | no_license | elmerihyvonen/ImageService | 6a073cb82ce2995eedad2297d79e776738a2ad80 | 699e7d945e64ea2407c7ea1912ad76b366dc9bb2 | refs/heads/IS2 | 2023-05-25T13:59:14.272119 | 2023-03-30T16:37:41 | 2023-03-30T16:37:41 | 233,829,284 | 0 | 0 | null | 2023-05-22T22:38:32 | 2020-01-14T11:46:28 | Python | UTF-8 | Python | false | false | 2,721 | py | import uuid
import datetime
from src.common.database import Database
class Image(object):
def __init__(self, username: str, caption: str, filename: str, author_pic: str,
date=None, _id=None):
self._id = uuid.uuid4().hex if _id is None else _id
self.username = username
se... | [
"56589617+elmerihyvonen@users.noreply.github.com"
] | 56589617+elmerihyvonen@users.noreply.github.com |
cf7e1111fe8cfc94ade35f4ac913406453ead140 | 747de538fb8ffc535a5d107cb5852c885da451b9 | /experiments/3_graph_classification_half.py | d257d878c14b2ad267bf3649e6473754152013eb | [] | no_license | NilVidalRafols/iGNNspector | 0a608ff2aa6a003a6ae22105e286db6023841bcb | 3d8742e20a5df0606fe201440fe4c382350f68a6 | refs/heads/main | 2023-06-05T09:51:00.840402 | 2021-06-30T03:43:57 | 2021-06-30T03:43:57 | 346,396,589 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | # -*- coding: utf-8 -*-
"""3. Graph Classification.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1I8a0DfQ3fI7Njc62__mVXUlcAleUclnb
"""
"""# Graph Classification with Graph Neural Networks
[Previous: Node Classification with Graph Neural Networ... | [
"nil.vidal.rafols@est.fib.upc.edu"
] | nil.vidal.rafols@est.fib.upc.edu |
fc448f9c12c61c2fc3ef593aa6433223db03d3fd | 913d75ae3ff83e6d23cd7043627381c7cc960173 | /appwechatPO/page/contactdetailbriefInfo.py | 433201316240c36053d2a1148151eb041eb23d91 | [] | no_license | CandiceDiao/lagouhomework | 2655dbb59c891cbff620d4fd655137aa64b8746b | 59fee20b482657591104cc7b39abd3ea447867d8 | refs/heads/master | 2023-01-12T15:18:21.006028 | 2020-11-11T09:07:45 | 2020-11-11T09:07:45 | 273,626,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from appium.webdriver.common.mobileby import MobileBy
from appwechatPO.page.basepage import BasePage
#个人信息页面
from appwechatPO.page.contactdetailsettingpage import ContactDetailSettingPage
class ContactDetailBriefInfo(BasePage):
_member_info='//*[@text="个人信息"]/../../../../../*[@class="android.widget.LinearLayout... | [
"diaochen@viewhigh.com"
] | diaochen@viewhigh.com |
98134f9a88aa1f45dfb3d8b5fbd0be2bdf81c15a | 4622f05fa5e686eda93185ceebd9ce631321adea | /src/utils.py | 6346d2c1a90e83ba76cd5f019c63d34a4a18584f | [] | no_license | davisliang/generative | b4d64654c531abc57573d2364ddab481e75ea3ae | 8df308e42dc60d559f39e2645a1851f28008a315 | refs/heads/master | 2021-06-18T08:47:13.261182 | 2017-06-23T02:20:07 | 2017-06-23T02:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import tensorflow.contrib.slim as slim
import os
import scipy
import input_data
import scipy.misc
#this function performns a leaky relu activation, which is needed for the discriminator network.
def lrelu(x, leak=0.2, name="lrelu"):
with ... | [
"davisblaine.liang@gmail.com"
] | davisblaine.liang@gmail.com |
09f18f3ed911f9d3c785108f4fed976bb636824d | 926bf2c5275429ffe4a6dcb7989cf9ce84d4234d | /14_image_crawling_check_last_modified.py | 670f791592294b383f362408c0da2c9cb151b84c | [] | no_license | Tragicalone/Python | 4ddc5a1ef9f391b12012dcc37404af7b25022d4c | 65e2cdf6d6dfbab36f0b2c0164b5ca1b93219dc9 | refs/heads/master | 2020-03-26T21:47:33.976719 | 2019-03-04T05:01:41 | 2019-03-04T05:01:41 | 145,408,656 | 0 | 0 | null | 2018-08-20T11:46:33 | 2018-08-20T11:27:31 | null | UTF-8 | Python | false | false | 1,130 | py | import os
import requests
from PIL import Image
#from time import ctime
#from pprint import pprint
from bs4 import BeautifulSoup
from datetime import datetime
AssignedLastModifiedTime = datetime(2018, 1, 29, 14, 39, 10)
OutputPath = os.path.abspath('..\PythonResults')
if not os.path.exists(OutputPath):
os.makedir... | [
"tragicalone@yahoo.com.tw"
] | tragicalone@yahoo.com.tw |
c536d6ee178ac04d4be8ddd7c1667c5ad1a79b0c | 10f075f6f875fa185b4da99af468a064c82c91b4 | /index.py | a8ed23e112f7e2b867fce72caa11d42be847d835 | [
"MIT"
] | permissive | chennin/rift-firsts-webpage | c93f3245bf143c48e5c9941bfb018a4c3af0cabe | c7442360440004ce689ea4482088d8550bf6678e | refs/heads/master | 2021-01-20T07:02:11.652750 | 2018-08-17T12:05:48 | 2018-08-17T12:05:48 | 89,948,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,068 | py | #/usr/bin/env python3.5
#Copyright (c) 2017 Christopher S Henning
#
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, mo... | [
"saturos@gmail.com"
] | saturos@gmail.com |
8fc93cb60924b550a0d0ea9d4aec76d96c598d47 | b8b93ba3a9cbf7231573b636cbd50de157fe23cb | /test/main/PandasTest.py | cd4ac2a3d9f06e1c835edb14402712985144c991 | [] | no_license | JeffreyLinWeiYou/TestGit | 18c2af1d6d8c6dcf0900ba8196a7bfd70a98c48f | 9538624ac24b0a88dbd9498bb414d38a83361692 | refs/heads/master | 2020-06-15T17:25:10.663993 | 2016-12-01T09:15:39 | 2016-12-01T09:15:39 | 75,275,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | #-*- coding:utf-8 -*-
#撈取鉅亨網資料
import pandas as pd
import MySQLdb
import time
import datetime
'''
Created on 2015年10月23日
@author: ben
'''
if __name__ == '__main__':
stop=False
nowDate=datetime.date.today()
endDate=datetime.date(2012,01,01)
temp=nowDate-endDate
db=MySQLdb.connect("140.118.7.46","s... | [
"m10407519@mail.ntust.edu.tw"
] | m10407519@mail.ntust.edu.tw |
021b6bc6e0b4c42b02abd800e83abb5c79ecf202 | f15815e06a9d91957a637dde81a11f588e9a0b76 | /python retrospect/TCP-Client.py | 8bd9bf38c5936b621c3b207b329f1f92bfd8c0f4 | [] | no_license | CoffeeCati/Spider | 30db20ce8c785713553538505598b2b49ea1a81d | 996be09c1aa28c7f87bb88fdb66b9198ad232ae4 | refs/heads/master | 2023-03-30T01:20:31.008342 | 2021-03-16T08:10:52 | 2021-03-16T08:10:52 | 347,562,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # coding:utf-8
import socket
# 初始化socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# 连接目标IP和端口
s.connect(('127.0.0.1', 9999))
# 接收消息
print('--->>' + s.recv(1024).decode('utf-8'))
# 发送消息
s.send(b'Hello I am a client!')
print('--->>' + s.recv(1024).decode('utf-8'))
s.send(b'exit')
# 关闭Socket
s.close()
| [
"liushuo@liushuodeMacBook-Air.local"
] | liushuo@liushuodeMacBook-Air.local |
91c16b7f88506a969d154a333aa1c6e31b157ca6 | 042b95bf8ff71bf707806d8ccb63a5275bafd97e | /todo/tasks/migrations/0001_initial.py | 3174f72ea089c8338839448d6ef7de54fb019d11 | [] | no_license | jcramirez9920/Project-3-todo | d19a7d88fa5791ddff16cdec75ec0ccbd9753e0e | 833e6a29083118a37f7552558a7e97199664bb52 | refs/heads/main | 2023-02-08T13:49:49.712482 | 2021-01-03T03:30:08 | 2021-01-03T03:30:08 | 326,319,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # Generated by Django 3.1.4 on 2021-01-03 02:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', mode... | [
"noreply@github.com"
] | jcramirez9920.noreply@github.com |
d1f1d88d29f302999839d0333712af4358988c6b | 8d472f89dd6a62d3b0c8853fa8fbeab0061e639f | /elevator_simulation_submit/main.py | 3c7302fe3282305c1ba2a8fb222e533efd2f9912 | [] | no_license | chrisskhoury/ElevatorSimulation | abcc06cfb381f78507ad7cbc0eacbc42b340de04 | 3006ee94cd3798117d303a330b150be2962fc8a1 | refs/heads/master | 2023-01-23T03:31:38.093510 | 2020-11-20T12:13:10 | 2020-11-20T12:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from visual import *
def main():
is_visual = True
sim1 = Simulation(mode = 0, visual=is_visual)
sim2 = Simulation(mode = 1, visual=is_visual)
visual = Visual((sim1, sim2))
vis = Thread(target=visual.draw)
if is_visual:
vis.start()
t1 = Thread(target=sim1.start_elevator)
t2 =... | [
"khourychris13@gmail.com"
] | khourychris13@gmail.com |
e36c638dad1da5fce1f73b4a66df9bfb794d17c1 | 868a1a37d11f48dbe22c01849fffd0d8bca27937 | /code/distance_matrix_csv_to_time_curves_format.py | 34e9d1acb67c78a1ce3bb7471853c1da595b896a | [] | no_license | NattyBumppo/aero-astro-thesis | 092b5b380d3bd3de889d9478e2d18e297c2fc629 | a5b15906c660d420d058b06f09603177abe958a0 | refs/heads/master | 2021-01-10T15:52:01.655140 | 2016-03-15T04:14:16 | 2016-03-15T04:14:16 | 51,424,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | import csv
import json
import datetime
import sys
import numpy as np
pcc_distance_matrix = 'pcc_distance_matrix.csv'
tau_distance_matrix = 'tau_distance_matrix.csv'
rho_distance_matrix = 'rho_distance_matrix.csv'
pcc_timecurve_json_filename = 'pcc_timecurve_from_distance_matrix.json'
tau_timecurve_json_filename = 'tau... | [
"natguy@cs.washington.edu"
] | natguy@cs.washington.edu |
654826afa60eff170f1cc0644218bfd1fd403918 | 67125475ea684e661948e3918cbceafb9b03c9af | /DewmiBot/modules/contributors.py | ede0033b8c652d151a400102b872746719eb9472 | [] | no_license | ImTheekshana126/Dewmi-Group-Manage-Bot | 60a359e3e380756ec3cd9f739666ee045413183b | 54a691ee22f4be463aa295b992539217cefddba1 | refs/heads/main | 2023-08-15T04:39:38.575090 | 2021-09-28T09:45:27 | 2021-09-28T09:45:27 | 410,700,598 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import github # pyGithub
from pyrogram import filters
from DewmiBot.services.pyrogram import pbot as client
@client.on_message(filters.command("contributors") & ~filters.edited)
async def give_cobtribs(c, m):
g = github.Github()
co = ""
n = 0
repo = g.get_repo("youtubeslgeekshow/sz-rose-bot")... | [
"noreply@github.com"
] | ImTheekshana126.noreply@github.com |
d3dd62fc04a8f4b024b7061a3a1f5860ef683e74 | d4f134b9c3e537e22cc1546c4d9f4a6383293644 | /create_database/setup.py | 6034e2a7c402fc6e1316f38b3f4fdead23a62286 | [] | no_license | ffallrain/SPA_server | 158d318e4f8aef56615a81b42a01753aa92aef3a | 0e0017a8f44f70426afb56b929f6e10a781fa6be | refs/heads/master | 2021-01-16T18:55:05.868856 | 2019-07-11T11:37:21 | 2019-07-11T11:37:21 | 100,125,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | #!/usr/bin/python
import mysql.connector as mc
db = mc.connect( host = 'localhost',
user = 'fuqy',
passwd = '123',
database = 'SPA_database',
)
mycursor = db.cursor()
mycursor.execute("""CREATE TABLE system_information
( index_number INT NOT NULL... | [
"ffallrain@163.com"
] | ffallrain@163.com |
ad0ff9dd8f94e44da2c676929e72f84e4397e58a | d2e542fd6ae78218ef6400cdd1cfd591fc51c23a | /code/baselines.py | 8edd011cb6bf5fd5fdef1e989424282e852fda64 | [] | no_license | penggewudi/SCD_System_3.0 | ecfade086501ca12db2005272c60c8dd28c20d19 | bb704eebb4d638cbbd988fb1ee33cba7766233d5 | refs/heads/master | 2022-06-16T11:53:51.736956 | 2020-05-04T12:37:43 | 2020-05-04T12:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,767 | py | # -*- coding: utf-8 -*-
# @Time : 2019/12/9 15:19
# @Author : Chen Yu
import numpy as np
from sklearn.preprocessing import MinMaxScaler
from sklearn.svm import SVR
from sklearn.ensemble import RandomForestRegressor
import lightgbm as lgb
from code.utils.input_data import load_data, preprocess_data
from c... | [
"yuchen.723@bytedance.com"
] | yuchen.723@bytedance.com |
7ec766d97ef91051922f663f47a391d840e63cea | 353964dbdea07cee2f948f5a08c14205fdc110e9 | /scapy_pcap.py | 14267ae9fe056162a5bd6db7bd4db7c8efcff1a4 | [
"MIT"
] | permissive | vnetman/scapy-pcap | 571c8411280f186fac13936b021def01d3504992 | b967242bb1c8727cf58cb1b4515849f0486ee382 | refs/heads/master | 2020-03-07T08:46:51.091754 | 2018-04-03T04:45:33 | 2018-04-03T04:45:33 | 127,388,437 | 5 | 2 | null | 2018-03-30T06:31:06 | 2018-03-30T06:05:40 | null | UTF-8 | Python | false | false | 14,695 | py | #!/usr/bin/env python3
# MIT License
# Copyright (c) 2018 vnetman@zoho.com
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to... | [
"vnetman@zoho.com"
] | vnetman@zoho.com |
f228d88fdc9ae6482911ca6591acb3efc095a7b3 | 4b45472571a0af88d8c313e07907c3993d2e1ed4 | /tests/test_0017_mysql_long_result.py | 8049dc3f138a652590ce2af077f8716ccf8c100d | [
"Apache-2.0"
] | permissive | shengxinking/packetbeat | 04957e90c2809545283f3f672c2b4bfb3c0b8f32 | 45a5a1dda2dc61b35f844d8cf638886c5bb4e7e9 | refs/heads/master | 2020-12-13T22:36:02.287309 | 2015-05-31T17:10:14 | 2015-05-31T17:10:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,829 | py | from pbtests.packetbeat import TestCase
"""
Tests for trimming long results in mysql.
"""
class Test(TestCase):
def test_default_settings(self):
"""
Should store the entire rows but only
10 rows with default settings.
"""
self.render_config_template(
mysql_por... | [
"tudor@packetbeat.com"
] | tudor@packetbeat.com |
8e42ad80805c71fb93cfaa671563d3067fafd033 | 485bcb12e904e440c9b836757736512e94838b78 | /foobar.py | e5eb60254a77157ce3f7e8c4a44dda5d0ec491bc | [] | no_license | pritikmshaw/Algorithms | 4e869f696ea66508ba66a78b3bc9ced3f53b2d52 | 5686258f011a445b3232bdc9e1d1929fe317956b | refs/heads/master | 2023-01-27T16:02:49.898331 | 2020-12-15T15:02:31 | 2020-12-15T15:02:31 | 300,283,685 | 0 | 0 | null | 2020-10-01T13:10:09 | 2020-10-01T13:10:08 | null | UTF-8 | Python | false | false | 356 | py | def solution(st):
st1 = ""
for i in st:
if (i>='a' and i<='z'):
a = ord(i)
b = chr(219-a)
st1 = st1 + b
else:
st1 = st1 + i
return st1
sol = solution("Yvzs! I xzm'g yvorvev Lzmxv olhg s... | [
"shawavisek35@gmail.com"
] | shawavisek35@gmail.com |
f91d4bdb6e32a05f050fff3af586e91c7940fad6 | e7c9aed76416f81a6a2d62606f18c8d9b18c44a3 | /servo.py | d05e799bd3492242d87a4be4650c1e466fc8e3d0 | [] | no_license | NikodemBartnik/FollowBotV2 | b31f4aa5ba4c53101b928635bc90b237991407f3 | a237dcdb63b23033ff85cfe977e4fd4085eefff9 | refs/heads/master | 2022-12-07T23:39:08.335653 | 2020-08-28T13:27:39 | 2020-08-28T13:27:39 | 291,053,845 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | from fpioa_manager import fm, board_info
from machine import Timer,PWM
import time
fm.register(board_info.JTAG_TCK,fm.fpioa.GPIO0)
tim1 = Timer(Timer.TIMER0, Timer.CHANNEL0, mode=Timer.MODE_PWM)
ch1 = PWM(tim1, freq=50, duty=5, pin=board_info.JTAG_TCK)
tim2 = Timer(Timer.TIMER1, Timer.CHANNEL0, mode=Timer.MODE_PWM)
ch... | [
"nikodem.bartnik@gmail.com"
] | nikodem.bartnik@gmail.com |
2bbcb9ac2adbbeaab98aa9c2008c06bd85850641 | c6d0cc1a2466debc8ab3bedaa784143478788472 | /test_api_server.py | 32c52722bdcda616b0edc173cc499c341c4ddcc0 | [] | no_license | kevinpeizner/infinote | 222cb40863e8e62e1f9089ce866c44d673a1be0c | 2f3530b8107698211c32f57539c20933a445a629 | refs/heads/master | 2021-01-21T13:52:42.284698 | 2016-05-07T09:10:43 | 2016-05-07T09:10:43 | 44,779,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,873 | py | #!/usr/bin/env python
import os, json, unittest, base64
from datetime import datetime
from unittest.mock import MagicMock
from flask import Flask, jsonify
from flask.ext.testing import TestCase
from contextlib import suppress
from werkzeug.exceptions import NotFound, MethodNotAllowed
from werkzeug.routing import Reque... | [
"kevin.peizner@gmail.com"
] | kevin.peizner@gmail.com |
8c7a45fa73c495255a631c06dbfbe0936b8dd4d8 | fd4e4f5ace56f86191ef407d163d920e5364d0b4 | /zsl/utils/text.py | a18029694e769afc098ea5f81b7adb3189f5e536 | [] | no_license | ChenWWWeixiang/zsl-pytorch | 6f744ac8fb56daacc667fcedbac8d4edc2073c25 | 0961714b396189e90196be9272bc5876ec6fd21e | refs/heads/master | 2022-04-15T08:45:27.105442 | 2020-04-02T11:18:06 | 2020-04-02T11:18:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | import string
import functools
import wikipedia
@functools.lru_cache(maxsize=200)
def wikipedia_description(search_term: str,
remove_punct: bool = False,
to_lower: bool = False,
**kwargs) -> str:
"""
Gets a description from wikipe... | [
"guillem.orellana@gmail.com"
] | guillem.orellana@gmail.com |
ec70d2b89d8107f3322a776f872a58936d9e6928 | 85db9d26afb8e2b5e5eac9f8173db2cb14f0d25c | /Morph_Text.py | ab988029a9c977706c737ae6ce88c1fe0e4071aa | [] | no_license | kool7/Digit_Recognition_Using_OpenCV | 890e980055c9cb9768353b0243cb34d274dfd77e | 5e654c4f1bae97a6ccd523ffc5ee17a4f955badd | refs/heads/master | 2021-04-10T23:42:40.467544 | 2020-04-18T13:15:00 | 2020-04-18T13:15:00 | 248,976,857 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | import cv2
import numpy as np
# Working on PNG images Only.
image = cv2.imread('plate/mh.png', cv2.IMREAD_UNCHANGED)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
ret,binary = cv2.threshold(gray, 0, 255, cv2.THRESH_OTSU | cv2.THRESH_BINARY)
binary = cv2.bitwise_not(binary)
H = cv2.Sobel(binary, cv2... | [
"noreply@github.com"
] | kool7.noreply@github.com |
1bf72ff07ec719e1207835f5f8cfc840672d40a7 | f7b0814fffb191eb3d8209644649a2fbc3580f27 | /testraction.py | a7e82672b1f8e594431609e943814642e09737ff | [] | no_license | JulianKimmig/chemformatics | 51bbf87d3440cd404a442f830fdff2f1446cd425 | 4b200fa1e8860b2d685f75b5de1afcc74e6a533f | refs/heads/master | 2020-04-15T19:13:21.131241 | 2019-02-08T14:31:53 | 2019-02-08T14:31:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 9 10:30:10 2019
@author: Julian Stobbe
"""
| [
"flamel90@gmail.com"
] | flamel90@gmail.com |
2f2feff517c8c11a7a8c48bf20a7da017e4316e5 | 0e647273cffc1fb6cbd589fa3c7c277b221ba247 | /configs/hpt-pretrain/pascal/no_basetrain/100000-iters.py | 2fc7e342ce4e0fa096acea278c7d0760030a4228 | [
"Apache-2.0"
] | permissive | Berkeley-Data/OpenSelfSup | e9976bf011b69ebf918506ba184f464b1073ec13 | 221191b88d891de57725b149caf237ffef72e529 | refs/heads/master | 2023-05-12T07:34:52.268476 | 2021-04-08T00:58:37 | 2021-04-08T00:58:37 | 343,654,823 | 0 | 1 | Apache-2.0 | 2021-04-08T00:58:37 | 2021-03-02T05:20:27 | Python | UTF-8 | Python | false | false | 202 | py | _base_="../base-pascal-config.py"
# this will merge with the parent
# epoch related
total_iters=100000
checkpoint_config = dict(interval=total_iters)
checkpoint_config = dict(interval=total_iters//2)
| [
"taeil.goh@gmail.com"
] | taeil.goh@gmail.com |
86b8c02212495351487f2f5621118666a4b71023 | d09b5fe877f351eafd00c26c844ec366855359ab | /Chapter-3/3_set_of_stacks.py | 795418acb469d99f425012a13c9aa047414fe172 | [] | no_license | viveksyngh/CTCI-6th-Edition-Python-Solution | c788bfdb9d94e70f9c59ee218f5cccac9304f7fb | 6c4c9a09418e3b5e75355b68f85c3a4077b835e5 | refs/heads/master | 2022-10-23T21:41:54.295719 | 2022-10-09T10:55:12 | 2022-10-09T10:55:12 | 73,009,966 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | # Set of Stacks
class Stack(object):
def __init__(self):
self.items = []
def push(self, item):
self.items.append(item)
def pop(self):
if not self.items:
raise IndexError("Stack in empty")
return self.items.pop()
def peek(self):
return self.items[-1]
def size(self):
return len(self.items)
def... | [
"vivek@happay.in"
] | vivek@happay.in |
b97e8b57598f03a0b8337899d213846df07c12cc | 8675eba922d0d1e53aa28d1dfd95b5ec64db46d0 | /task1.py | c768c22a63aa8221c22140b3ecd7d69b52cc55ef | [] | no_license | ilya-dychkov/cloud-computing | 87bae3d4bde04526e8ac0c1ebbb0cfc4c9eb88eb | 47a028fa76683bd9c6c80bbf413dd9a0809c67f2 | refs/heads/master | 2023-03-27T12:10:08.199647 | 2021-03-31T02:49:03 | 2021-03-31T02:49:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | def sum_elements(arr: list):
return sum(arr)
print(sum_elements([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]))
| [
"ilya.dychkov@gmail.com"
] | ilya.dychkov@gmail.com |
abdbb325934f65ffa36249b8d9974220e8175000 | 81eff1c9bc75cd524153400cdbd7c453ee8e3635 | /zxcar_ws/src/zxcar_nav/nodes/odom_out_and_back.py | 996790219d20a191ee2afb68a5e9d7506c6217f4 | [] | no_license | sukai33/zxcar_all | bbacbf85c5e7c93d2e98b03958342ec01e3dafd9 | af389f095591a70cae01c1d116aa74d68223f317 | refs/heads/master | 2023-01-03T13:32:00.864543 | 2020-10-29T05:22:43 | 2020-10-29T05:22:43 | 300,556,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,622 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Twist, Point, Quaternion
import tf
from zxcar_nav.transform_utils import quat_to_angle, normalize_angle
from math import radians, copysign, sqrt, pow, pi
class OutAndBack():
def __init__(self):
# Give the node a name
rospy.init_node(... | [
"422168787@qq.com"
] | 422168787@qq.com |
930cbd02d0f423a4e087247dbdcc1fd14617649f | 5b2123213495bb7892cf336cce6b5a613ece5cc6 | /src/faf/tools/md5.py | df55a662ee01ee654b4ae2c97e43828bd72f774e | [] | no_license | Wesmania/fafpyclient-mockup | 06e6e1b8258e894eb1f8f27de8cdfb27a76b8574 | d8d744ff6c81a6197dff8dc638ecb219b9dd9b70 | refs/heads/master | 2022-09-27T06:47:53.979785 | 2020-06-02T20:25:56 | 2020-06-02T20:25:56 | 255,061,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import hashlib
def md5(text):
m = hashlib.md5()
m.update(text.encode('utf-8'))
return m.hexdigest()
| [
"i.kotrasinsk@gmail.com"
] | i.kotrasinsk@gmail.com |
94c926414287861d3a32a08b2df635ca67a7b61c | ec00584ab288267a7cf46c5cd4f76bbec1c70a6b | /offline/__Digital_Twin/__release2/rough_data/rrps.dt.follower.example/rrps/dt/__init__.py | 33521ddf66690c4e443af46cdc3b83fb4241df4e | [] | no_license | rahuldbhadange/Python | b4cc806ff23953389c9507f43d817b3815260e19 | 7e162117f1acc12537c7eeb36d6983d804122ff3 | refs/heads/master | 2021-06-23T05:04:20.053777 | 2020-01-28T10:34:28 | 2020-01-28T10:34:28 | 217,307,612 | 0 | 0 | null | 2021-06-10T22:44:11 | 2019-10-24T13:35:42 | Python | UTF-8 | Python | false | false | 252 | py | # For pkgutil namespace compatibility only. Must NOT contain anything else. See also:
# https://packaging.python.org/guides/packaging-namespace-packages/#pkgutil-style-namespace-packages
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
| [
"46024570+rahuldbhadange@users.noreply.github.com"
] | 46024570+rahuldbhadange@users.noreply.github.com |
5c0f18ca80a73c71aa9dcfb6977ae5ae66dc1b96 | c9f8845a8e16ccf82dad497fa2a51a9465246b6c | /person.py | f036148f0a7e4370c05ebd6315009f5e06bfc673 | [] | no_license | EstherPholie/dev2 | 62cde5e9efe19d6eb725838affbba0fd9af7c94d | 50272c2b71b2eff68f705f49ab50413276bf947d | refs/heads/master | 2020-06-18T07:47:46.833049 | 2019-07-18T16:19:20 | 2019-07-18T16:19:20 | 196,220,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | def get_age():
age=int(input("Enter your age"))
return age
def get_name():
name=input("Enter your name")
print(name)
return name
myage = get_age()
myname=get_name()
print("my name is %s !" % myname)
print("my age is %d !" % myage)
print("my name is %s and my age is %d!" % (myname, myage))
| [
"estherpyholie85@gmail.com"
] | estherpyholie85@gmail.com |
f8a4b61f90173f7571cd11ec7a5c7ff63d360898 | dfee0fa1ec1abafbc176f6d013d4c06212169538 | /test/reconfigure.py | 407fdb88c37647df3287ff1d2b5d43ced953f129 | [] | no_license | lflxp/tf-study | bbcf56dfd34e52b8358cbb9c0ba3812ff2e7325c | deea074f210f2d34052f560988374dea0c24bb92 | refs/heads/master | 2020-04-19T09:15:48.383763 | 2019-01-30T18:24:47 | 2019-01-30T18:24:47 | 168,104,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | #!~/tf/venv/bin/python
# -*- coding: UTF-8 -*-
import tensorflow as tf
import numpy as np
import PIL.Image as Image
from skimage import io, transform
def recognize(jpg_path, pb_file_path):
with tf.Graph().as_default():
output_graph_def = tf.GraphDef()
with open(pb_file_path, "rb") as f:
... | [
"382023823@qq.com"
] | 382023823@qq.com |
f9320732fb97365a434b7cfa02c9bf5ac40c293b | 4f2e28f4a6dcb82029a187a7708684fffaca9722 | /app.py | 3c19b50311dbcfa432b00da2cc79151b805eeaa5 | [] | no_license | NamanChuriwala/ChatZoo | 9ae12f8ec4a29a12c27421c99b3de3e1fd897d67 | 50820761ed010a3d95124f280882f93da9e731f1 | refs/heads/master | 2022-11-05T06:11:33.890272 | 2020-06-19T16:52:28 | 2020-06-19T16:52:28 | 273,540,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from flask import Flask, jsonify, request, render_template
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
import os
from dotenv import load_dotenv
load_dotenv('./chatzoo.env')
SECRET_KEY = os.urandom(32)
DB_URI = os.environ.get('DB_URI')
db = SQLAlchemy()
login_manager = LoginManager()
r... | [
"bondnam96@gmail.com"
] | bondnam96@gmail.com |
dfef097237cdcb18aff0d3b69da840e8e0c440de | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /nn7Na6zHLEHS9R8j2_21.py | fcae13e8a60d7d2553b9fa6c7f770ad1376b9dda | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | """
Create a function that takes a list and returns the number of ALL elements
within it (including those within the sub-level list(s)).
### Examples
deep_count([1, 2, 3]) ➞ 3
deep_count([[1], [2], [3]]) ➞ 6
deep_count(["x", "y", ["z"]]) ➞ 4
deep_count(["a", "b", ["c", "d", ["e"]]]) ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.