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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd7d5da0b443ac1fb04d89ebc2f8978329d57ef8 | c62a4272f9cba5ae25c6695a07f9a1f9e9e2a0fe | /tracking/options.py | 2b2c43dd698aad2ba0bca8c504442d68bd6f6605 | [] | no_license | Alexadlu/MANet | 43b14b23a92136de8eeda4f43148f964146579c3 | 50dc0c47591974159841407b05ac65542fa834f6 | refs/heads/master | 2021-11-21T16:39:25.473057 | 2021-10-05T05:55:03 | 2021-10-05T05:55:03 | 197,388,454 | 104 | 20 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | from collections import OrderedDict
opts = OrderedDict()
opts['use_gpu'] = True # if you change to False ,it will use CPU to run,but is very slow
opts['model_path1'] = "../models/MANet-2IC.pth"
opts['img_size'] = 107
opts['padding'] = 16
opts['batch_pos'] = 32
opts['batch_neg'] = 96
opts['batch_neg_cand'] = 1024
opt... | [
"noreply@github.com"
] | Alexadlu.noreply@github.com |
f934beae75c687ea2711ab282598059dfd7ac6e2 | 8554c0b9e8355ab9f59d1441a442c7d00a2d75a8 | /bin/pyrouge_write_config_file | 9a48b85a331db407a8716f2be85fffbab49a7dfe | [
"MIT"
] | permissive | j-min/pyrouge | 225d3fc2561f010cd90eb3bec057456f4016494d | 3693dfba1339114d8d579dcca36a06f797fa7697 | refs/heads/master | 2020-04-16T14:16:02.153527 | 2019-01-14T12:52:19 | 2019-01-14T12:52:19 | 165,660,792 | 1 | 0 | MIT | 2019-01-14T12:50:33 | 2019-01-14T12:50:33 | null | UTF-8 | Python | false | false | 570 | #!/usr/bin/env python
from __future__ import print_function, unicode_literals, division
import argparse
from pyrouge import Rouge155
from pyrouge.utils.argparsers import model_sys_parser, config_parser
def get_args():
parser = argparse.ArgumentParser(parents=[model_sys_parser, config_parser])
return parser.parse_... | [
"benjamin.heinzerling@web.de"
] | benjamin.heinzerling@web.de | |
83095e99b9defb7aa6b20ed455273c71322c712c | 9249fd887b943353cf59f94c115e508e67e83918 | /lib/util.py | d0d52e695bf1b05e846ec31fb3f326fe6467a5b5 | [] | no_license | fmidev/sasse-polygon-process | f4af2e442e26af61640fa2333a60f352e78b8853 | 8ade2764a4bcd3bb01a34c316120dcd065c59ea2 | refs/heads/master | 2023-03-04T19:56:43.949324 | 2020-12-16T09:44:44 | 2020-12-16T09:44:44 | 215,499,326 | 0 | 0 | null | 2020-06-22T12:57:48 | 2019-10-16T08:41:10 | Jupyter Notebook | UTF-8 | Python | false | false | 27,393 | py | import numpy as np
import os, math, pyproj, yaml, logging, joblib, dask
from shapely.ops import transform
from functools import partial
import pandas as pd
from sklearn.model_selection import RandomizedSearchCV, TimeSeriesSplit
from sklearn.metrics import accuracy_score, f1_score, precision_score, recall_score, mean_sq... | [
"roope.tervo@fmi.fi"
] | roope.tervo@fmi.fi |
7f2c50d07ca30681b73fb9d909e7f0aa975630a4 | 96646f705ccda76fed95005fbd507953bf803de6 | /code/python/age_groupnum_scenario_I/obfuscations.py | a555539748865d9d6aedbffdb6ea6f53d79c301b | [] | no_license | scottshufe/HyObscure | dc6868a760826575bf6097dcc1cfeaac037117c3 | 14e3c480b00cd7384bfbb499a260e5180fa29570 | refs/heads/master | 2022-07-13T02:56:01.891252 | 2021-02-07T02:45:31 | 2021-02-07T02:45:31 | 238,379,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,492 | py | import os
import copy
import pandas as pd
import numpy as np
import funcs
import matlab.engine
import scipy.io
import scipy.spatial.distance as dist
from sklearn.metrics.pairwise import cosine_similarity
def HyObscure(df_train, df_test, df_test_rec_items, df_item_age_uid,
age_group_dict, group_age_dict, ... | [
"scottshufe@gmail.com"
] | scottshufe@gmail.com |
ca18e55478a75ece6dbb496ea73cb385ee095b34 | d2503df4d2baab1b7d13dd624ad0a0e32e6198f2 | /blob_detect.py | 218c80c3b1a33fe290b5ac2c0a452afa97388a59 | [] | no_license | tpkelliher/drone_project | b02adb284d6aeb0c00e33f51f458a6b5389b5c96 | 8638b4e298b884e31b57d2e1d555a996e561cc92 | refs/heads/master | 2020-12-30T16:40:16.388671 | 2017-05-05T17:06:16 | 2017-05-05T17:06:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | from skimage import io, color
from skimage.filters.rank import median
from skimage.feature import blob_dog, blob_log, blob_doh
from skimage.morphology import disk
from matplotlib import pyplot as plt
#Reads in image and runs it through a gray layer to help filter
img = io.imread('test.jpg')
img_gray = color.rgb2gray(i... | [
"angelesadilene@gmail.com"
] | angelesadilene@gmail.com |
98dfd5030c36ce5c10996ad0e1e826a84a1fc575 | 26bebf63dd015accb86a063da4b5bde074c3e1d1 | /app.py | 2fd86af5b3f9b1d5a22a1fe93490e4c864df967d | [] | no_license | Sagini-Dominic/AT-Workshop | 9ef25a98055f0dafe03ade0e978dd96e9cadd179 | 4220c2418dcc244c48c04879168d11544638dde2 | refs/heads/master | 2020-04-28T06:41:38.330504 | 2019-03-11T19:32:21 | 2019-03-11T19:32:21 | 175,068,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/base')
def base():
return render_template("base.html")
@app.route('/index')
def index():
return render_template("index.html")
@app.route('/sms')
def sms():
return render_template("sms.html")
@app.route('/voice')
def voice():
return ren... | [
"saginidominic@gmail.com"
] | saginidominic@gmail.com |
e93a54321ac2e1dd04cf8be3bd8441186da7436b | a1e488fbe7fa0a8b149900b113d21ed3819b20a4 | /emotion_svmloss.py | c3dd5fe480fd61f91185479539d29b9847dff436 | [] | no_license | henniekim/emotion_recognition | 8c59d8ffe7c3d0203c7f336c480b04f31f14b242 | 19666ac1fc8f8d78d693e02fb51475f0b5bd73d3 | refs/heads/master | 2020-03-08T07:27:53.756586 | 2018-05-15T04:57:34 | 2018-05-15T04:57:34 | 127,994,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | import numpy as np
def L_i(X, Y, W): # W : weight vector [7 x 2304] // x : [2304 x n] // y : [7 x n]
delta = 1.0
scores = W.dot(X)
scores2 = scores[Y, np.arange(scores.shape[1])]
margins = np.maximum(0, scores - scores[Y, np.arange(scores.shape[1])] + delta )
margins[Y, np.arange(Y.shape[0])] = 0
... | [
"seru_s@me.com"
] | seru_s@me.com |
e00b001540311fda894268668d373470d1a5a152 | 327e1a902370289e04be2e6f05c8e3b6fa96f960 | /leopulence_landingpage/about/views.py | b32d70ffc0efbc957bf0450dc87a7b8b747807ed | [] | no_license | leopulence/web-leopulence | eab30ac9a66a6b404f2c0f3adf6f4d6ecf9b541d | 4bf631c2ba7956aebe75de7241839d2e172b896a | refs/heads/master | 2020-04-10T18:41:09.083364 | 2019-03-28T22:06:37 | 2019-03-28T22:06:37 | 161,209,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from django.shortcuts import render
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from .models import Pages, About
from django.utils import timezone
# Create your views here.
def about(request):
return render(request, "about/about.html")
class PagesDetailView(Det... | [
"pugliesesm@gmail.com"
] | pugliesesm@gmail.com |
ebee29d527fc121a6fd629371d6c54f8e2bf964b | 3d85f716aaeb42592adcdeabd7cb76152b8104ed | /pugh_torch/tests/modules/test_meta.py | f0d9b2b90df93e06909ff520d3ab4bd9e412b746 | [
"MIT"
] | permissive | BrianPugh/pugh_torch | a78836b9c286814b8df5df57d67b8dbfc8d6412d | d620a518d78ec03556c5089bfc76e4cf7bd0cd70 | refs/heads/master | 2023-02-14T16:53:07.625650 | 2020-11-03T16:23:22 | 2020-11-03T16:23:22 | 294,986,957 | 4 | 1 | MIT | 2020-11-03T16:23:23 | 2020-09-12T16:54:00 | Python | UTF-8 | Python | false | false | 664 | py | import pytest
import torch
from torch import nn
import torch.nn.functional as F
import pugh_torch as pt
def test_batch_linear():
data = torch.rand(10, 2)
feat_in = 2
feat_out = 4
linear = pt.modules.meta.BatchLinear(feat_in, feat_out)
weight = linear.weight.clone()
bias = linear.bias.clone(... | [
"noreply@github.com"
] | BrianPugh.noreply@github.com |
9a328d6d6b1a72fcd0b7857e9fa683554aff05df | 8a171056b5d8d2ac184d66afa2c4573bf54ec8a0 | /Examples/Python/PrivateDict.py | f0be4c7e9a780bf748503242cb905588592de166 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | radpointhq/GDCM | 7b03d5a27c0f1f733d336fa24317d58329a3cf03 | 63bd2fc37b6ed3630183a3c2d8ee561027a9e574 | refs/heads/master | 2022-05-21T19:05:01.961938 | 2022-03-15T17:36:51 | 2022-03-15T17:36:51 | 189,388,523 | 1 | 0 | NOASSERTION | 2022-03-15T17:36:54 | 2019-05-30T09:50:16 | C++ | UTF-8 | Python | false | false | 1,170 | py | ############################################################################
#
# Program: GDCM (Grassroots DICOM). A DICOM library
#
# Copyright (c) 2006-2011 Mathieu Malaterre
# All rights reserved.
# See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
#
# This software is distributed ... | [
"mathieu.malaterre@gmail.com"
] | mathieu.malaterre@gmail.com |
618eea552428cab909fb49cb511903632933d2f5 | 9497e845b38c2f1db1951d4d0d6ec9bbd1521d37 | /user/views.py | eaf7aeebe654bf99b2540d0a3f25241d3588f999 | [] | no_license | li2356927598/fresh | d2e5477253946ea4a290d467e18204babe5fc04e | 849cb449a9cc3259d28f8ab8dce4c02d07c7bfdb | refs/heads/master | 2020-04-01T23:44:36.867111 | 2018-10-18T01:02:49 | 2018-10-18T01:02:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,082 | py | from django.shortcuts import render, redirect
from django.http import JsonResponse, HttpResponseRedirect
from django.contrib.auth.hashers import make_password, check_password
from django.core.paginator import Paginator
from user.models import UserModel
from user.forms import UserRegisterForm, UserLoginForm
from... | [
"yangguanyu_2006@126.com"
] | yangguanyu_2006@126.com |
62be565d1ad0e2bc743c1f5b5682cd2bdeef76c1 | 2e9ffd88923b1eb90047fe5c6a633a6d29c111a8 | /muddery/typeclasses/players.py | 76d46460f1c6c62028e28ae5e66dedef392932d5 | [
"BSD-3-Clause"
] | permissive | externIE/muddery | 4f7424abf2eac4280baef86ba5752e8d8ddee16d | ee4165e97e1510e06fa1e8120a35878a6c2862b7 | refs/heads/master | 2020-04-06T06:48:41.501309 | 2016-08-16T12:58:47 | 2016-08-16T12:58:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,369 | py | """
This is adapt from evennia/evennia/players/players.py.
The licence of Evennia can be found in evennia/LICENSE.txt.
Player
The Player represents the game "account" and each login has only one
Player object. A Player is what chats on default channels but has no
other in-game-world existance. Rather the Player puppe... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
30607bd2e7f1b69e4506595e22f4151a1ae38093 | f67ec5bb21e564da87c3e29a9aff0b3393890fcc | /simobility/core/tools.py | 6e637d08daeac01e7b8f62c9baaa343931c90614 | [
"MIT"
] | permissive | LADDDUU/simobility | efc742cd38586b56c7228096d5bee70de294dd29 | 6411b8ca50523e1a7c436d4b00c5d11d9a45157b | refs/heads/master | 2022-12-16T05:40:05.148567 | 2020-09-12T05:18:32 | 2020-09-12T05:18:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,918 | py | import logging
import pandas as pd
import numpy as np
from datetime import datetime
import uuid
import random
from .itinerary import Itinerary
from .vehicle import Vehicle
from .booking import Booking
from .position import Position
def basic_booking_itinerary(
current_time: int, vehicle: Vehicle, booking: Bookin... | [
"sashkolysenko@gmail.com"
] | sashkolysenko@gmail.com |
85e231fb8ba4cfd6c1162cb823ec5bb8281d3e38 | 0920b50773cfd231137d2383695a6730d0678628 | /pylib/options.py | aa0c0975c42ce82b8eb23f47fdaaa066b16f3010 | [] | no_license | chyser/bin | 05b67cf299b0e427e253abc42ca015fcdec8e84c | b54f23c6c5f1f19e426ee06c9e9faf9f561ee9a9 | refs/heads/master | 2021-01-19T19:35:05.801722 | 2015-08-19T17:58:29 | 2015-08-19T17:58:29 | 17,319,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,201 | py | #!/usr/bin/env python
"""
Library:
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import
import sys
import glob
class MOptException(Exception): pass
#------------------------------------------------------------------... | [
"chris.hyser@oracle.com"
] | chris.hyser@oracle.com |
5d22c427ce31827178896189f398088506fd1a21 | 601949a8b82ebf88933531fc11b182281c026db6 | /Final Year Project - 031218/bin/Debug/knn_Algo_DataSet_2.py | d04448338d49b5403bb0cbd6446f43c44a1ec2d2 | [] | no_license | ase3002/FYP-Face_Recognition_Based_Attendance_System | 9968efc4d789332c85c3e3300c405b0a0b08af40 | 92b9c3e6a26a3f73845ead79db2f3a2df6203a81 | refs/heads/master | 2020-04-24T08:34:44.507823 | 2018-12-05T14:01:11 | 2018-12-05T14:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,644 | py | import importlib
import imp
import math
from sklearn import neighbors
import os
import sys
import pickle
from PIL import Image, ImageDraw
import numpy as np
import face_recognition
from face_recognition.face_recognition_cli import image_files_in_folder
import cv2
import knn_predict as fra
knp = fra.knn_prediction()
# ... | [
"MOKW0007@e.ntu.edu.sg"
] | MOKW0007@e.ntu.edu.sg |
a09c3b7a2ffba2536acef7ea26411b186b8daf9e | 989190bd7ea5160695da7248dec739c4d459c76d | /remember/handle_args.py | 36a4194ccea931d43f7616beb06c93d1891e276d | [
"MIT"
] | permissive | behroozkhorashadi/remember-commands | 0092576d3111259d9033c420b667578ef36d89f5 | 74e226c98cdcd9560f984346f0f18cb9ca4ae156 | refs/heads/master | 2020-04-06T04:00:57.442209 | 2019-11-10T20:13:55 | 2019-11-10T20:13:55 | 83,071,865 | 6 | 2 | MIT | 2019-11-08T19:59:29 | 2017-02-24T18:40:48 | Python | UTF-8 | Python | false | false | 2,581 | py | import argparse
def setup_args_for_update():
parser = argparse.ArgumentParser()
add_search(parser)
add_json(parser)
add_sql(parser)
parser.add_argument(
"-u",
"--updateinfo",
help="Search the commands AND the extra command context info .",
action="store_true")
p... | [
"beh@khorashadi.com"
] | beh@khorashadi.com |
7fda317f3d51b3ef4a2d8943169411f809d09276 | e00d41c9f4045b6c6f36c0494f92cad2bec771e2 | /server/auth/libpwquality/actions.py | 57d01c98bb75acba7733f963e4afcf4c5c26b8b8 | [] | no_license | pisilinux/main | c40093a5ec9275c771eb5fb47a323e308440efef | bfe45a2e84ea43608e77fb9ffad1bf9850048f02 | refs/heads/master | 2023-08-19T00:17:14.685830 | 2023-08-18T20:06:02 | 2023-08-18T20:06:02 | 37,426,721 | 94 | 295 | null | 2023-09-14T08:22:22 | 2015-06-14T19:38:36 | Python | UTF-8 | Python | false | false | 780 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
def setup():
autotools.configure("--prefix=/usr \
... | [
"ertugrulerata@gmail.com"
] | ertugrulerata@gmail.com |
00e2fbc37e5d8aa5a588fc4185c7bc8bab4c4f22 | a39ed5db6c75c9ae1f5e05118794c64102dc5f7a | /2020/01_1/solution.py | 091874824ee82bf49cb18909afad5b2272562b7c | [
"MIT"
] | permissive | budavariam/advent_of_code | b656d5caf5d05113b82357754eb225e61e89ac0d | 635be485ec691f9c0cdeb83f944de190f51c1ba3 | refs/heads/master | 2022-12-25T18:12:00.981365 | 2022-12-20T08:20:51 | 2022-12-20T08:20:51 | 114,570,426 | 1 | 1 | MIT | 2022-12-09T09:29:06 | 2017-12-17T21:36:00 | Python | UTF-8 | Python | false | false | 656 | py | """ Advent of code 2020 day 1/1 """
import math
from os import path
def solution(data):
""" Solution to the problem """
lines = data.split("\n")
precalculate = dict()
for line_value_str in lines:
precalculate[2020 - int(line_value_str)] = True
for line_value_str in lines:
current... | [
"budavariam@gmail.com"
] | budavariam@gmail.com |
cf9920ffe8f52a7cee208a43eb994c063c4385c1 | c31762e13ac3a5c5974b700c001b1fd789f47be8 | /dbtools.py | dcbfbdb24c0ec4b08bf89c3ab0dca55b8f3a22f0 | [] | no_license | harkdi/dbtools | 7b811e6d2357458b58201f59768428cbee15b1a9 | e5c86545f31f31d52f8333f50fa8f297b28e3a0d | refs/heads/master | 2020-12-02T16:16:56.216002 | 2017-07-10T08:57:22 | 2017-07-10T08:57:22 | 96,528,668 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,244 | py | #!/usr/bin/env python
# coding: utf-8
import os
import json
import string
import subprocess
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
#--------------------- Load the configuration file ---------------------------------
sys.path.append('/oma/deploy/scripts/')
with open('/oma/deploy/scripts/robotConf.json... | [
"harkdi@126.com"
] | harkdi@126.com |
92c59a1156df87073eec8744b9a4011e1e6fd657 | f07e66293cc41a9fe71fc44f765b432fd7a0997c | /selfdrive/controls/lib/cluster/SConscript | 97eb4300d4da6618962e0430ca534fc43fb0640f | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | kegman/openpilot | c9ba96a72d905956f02c684e065091e023942883 | b35291c91783657a5fc83abfff012d3bb49dd89f | refs/heads/kegman-ultimate | 2022-05-22T17:07:16.656336 | 2021-10-25T13:35:28 | 2021-10-25T13:35:28 | 229,979,925 | 105 | 212 | MIT | 2022-03-13T05:47:51 | 2019-12-24T17:27:11 | C | UTF-8 | Python | false | false | 185 | Import('env')
fc = env.SharedLibrary("fastcluster", "fastcluster.cpp")
# TODO: how do I gate on test
#env.Program("test", ["test.cpp"], LIBS=[fc])
#valgrind --leak-check=full ./test
| [
"user@comma.ai"
] | user@comma.ai | |
a765cbe96955bdac735e102715ca63e35d4ceee6 | 5cc7f0bfadbddf29671419a6a64b6046d055ddee | /database/mysql_connector.py | 3e498755590152fdfc82779586e02e71ab1041b6 | [
"LicenseRef-scancode-warranty-disclaimer",
"CC-BY-NC-4.0",
"BSD-2-Clause",
"MIT"
] | permissive | webbpinner/openrvdas | 270e661b9e4adff76cdb42cc200dfd7e1aa373ae | 10342586e7406d55b72031f9b54ce2feb10f2f1a | refs/heads/master | 2023-08-20T18:24:23.535467 | 2023-05-25T15:05:03 | 2023-05-25T15:05:03 | 137,220,057 | 0 | 0 | MIT | 2018-06-13T13:33:48 | 2018-06-13T13:33:45 | Python | UTF-8 | Python | false | false | 12,452 | py | #!/usr/bin/env python3
"""Tables:
data: pk timestamp field_name field_value source_record
We don't know what type each value will have, so have a column for
int, float, str and bool and leave all but the appropriate value type
NULL. Docs claim that NULL values take no space, so...
Still so many ways we could make ... | [
"david.cohn@gmail.com"
] | david.cohn@gmail.com |
55080cdf9d5d59207c01870952c49ae87b944c6b | eaf1eaa2756ffdb4405b7d5048212f10747c8d5a | /karatsuba_multiplication.py | 6c8f851380fe250d7fff02d68be02552d4974674 | [] | no_license | ingridcrant/algorithms-specialization-course | e87ebfd21e64150ebacf4c316553c20bb1d69422 | d87c075e365a2e70a6c87db276f2adf4f52626d8 | refs/heads/master | 2023-06-19T23:53:48.023782 | 2021-07-20T23:55:55 | 2021-07-20T23:55:55 | 381,830,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from math import log10
# karatsuba multiplication
# python implementation from Tim Roughgarden's Algorithms course
def karatsuba(x, y):
if x < 10 or y < 10:
return x * y
else:
n = max(int(log10(x)), int(log10(y))) + 1 # max number of digits
n_over_2 = n // 2
# split x in... | [
"ingridcrant@gmail.com"
] | ingridcrant@gmail.com |
88eb299875c8809ce432865ddb2e6437ff0b6dde | 1ca2f86fff8c1e99a0ea8bc7750ddb50aeccb74b | /Homework 2/Zylabs_7_25_HW.py | b8d88bf656cd5b73b5aff7dd6f2adf159d42a1ee | [] | no_license | LGonzales930/My-Project | d27b310ef975c200fea2e78a5a3244eb7aa87c2a | dd6b89e84941796c78f09907bb0b05bfa1a1064f | refs/heads/main | 2023-04-24T01:51:29.555504 | 2021-05-13T04:39:11 | 2021-05-13T04:39:11 | 332,325,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # Lorenzo Gonzales
# ID: 1934789
# Use Functions
# Exact Change Function program
input_val = int(input())
def exact_change(user_total):
for numdollars in range(100, 200):
for numquarters in range(25, 99):
for numdimes in ranage(10, 24):
for numnickles i... | [
"noreply@github.com"
] | LGonzales930.noreply@github.com |
6db8257a238dd3a6e98bbf555a2b2824bd7ba4f8 | d8f79f29454c406b9bfaa40a6a8a6f3786ed8f9a | /project/leads/migrations/0001_initial.py | 1044ead7c13c25581bf6044c8b19b43700a869c6 | [] | no_license | deniztetik/marshmallows | b89164d32ffacf1711713c5167fddb8821bd85d2 | 9b33912df141c0f221dd92635961435470d10b8f | refs/heads/master | 2020-03-27T20:16:16.948638 | 2018-10-09T19:43:39 | 2018-10-09T19:43:39 | 147,053,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # Generated by Django 2.1 on 2018-08-31 01:29
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Lead',
fields=[
('id', models.AutoField(auto_... | [
"deniz.tetik@oracle.com"
] | deniz.tetik@oracle.com |
f68c67977383e7d333b30f0ea34c322410459cb5 | 4fee75068edcf2fb64074e84b150ad7a744e55df | /stock_market.py | 68549a9b79b0e8db27072edb80be07758f86993f | [] | no_license | satee143/zebuapi | 5311e1b7011dc86e311fddc0355f02cc89474205 | 1fa57ffc1802fac2bfa6bee06125a2ea68c0756a | refs/heads/master | 2022-12-07T00:20:42.126203 | 2020-08-26T18:15:28 | 2020-08-26T18:15:28 | 280,687,836 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from nsetools import Nse
nse = Nse()
q = nse.get_quote('infy')
print(type(q))
# pprint(q)
| [
"sdoosa@insulet.com"
] | sdoosa@insulet.com |
8f8ecbbb79cad83b056e79575e51f056efcdfaf3 | 8f7f36acd739835a8d901a4be60929c7156557fb | /MyMain.py | a8c926100fa63114d34f3681f3442219c3dfe33e | [] | no_license | qingyue2014/PytorchNMT | 7013b9e8ab1f95b9f726f78d70ff5e524a1ec1fc | 5b02574693ad31a0d893b54a0c9373780baec282 | refs/heads/master | 2020-04-16T06:13:46.209884 | 2019-09-28T07:27:12 | 2019-09-28T07:27:12 | 165,337,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,647 | py | from __future__ import unicode_literals, print_function, division
from io import open
import torch
import torch.nn as nn
from torch import optim
import MyClass
import MyData, pickle
import datetime
from nltk.translate.bleu_score import sentence_bleu
device = torch.device("cuda" if torch.cuda.is_available() e... | [
"noreply@github.com"
] | qingyue2014.noreply@github.com |
2f7e54e0c60605a77ca218f06a13af39dfdcf37d | 7d24cbc5da5f38ee4f70159f19e2a50e5fb1208a | /delete_docker_registry_image.py | 37ba692609d59511e3463a139d67fca607f62f07 | [] | no_license | donniezhanggit/demo-kubernetes-yml | c4aa3c8544f4b07f5e616bcf71cc84e550fd8117 | ee9faae0cf05f7ea924dbda6bda5218d2d55d0d3 | refs/heads/master | 2023-07-19T06:21:44.027653 | 2021-08-18T08:23:54 | 2021-08-18T08:23:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,693 | py | #!/usr/bin/env python
"""
Usage:
Shut down your registry service to avoid race conditions and possible data loss
and then run the command with an image repo like this:
delete_docker_registry_image.py --image awesomeimage --dry-run
"""
import argparse
import json
import logging
import os
import sys
import shutil
import... | [
"fangang@LAPTOP-8BACI9IA"
] | fangang@LAPTOP-8BACI9IA |
854841144a32380166855fef783a5a114d60a6a8 | c3fc7fef9b80121fdc9171f243afc18f7270c7ad | /testrun.py | f450f0eecd98619d82f4649aa8eba141c26022c6 | [] | no_license | Olaitan74/Wave2-solutions | 4b5682028063746a2814dcc9e9e31345c4481e21 | ea4f73872d1948365ee2c0730daf5b28849b5c3c | refs/heads/master | 2022-11-29T13:18:41.115945 | 2020-08-03T19:15:15 | 2020-08-03T19:15:15 | 284,054,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | pac = {'A' : 1, 'B' : 2, 'C' : 3}
print(pac.keys(), sorted(pac.keys())) | [
"noreply@github.com"
] | Olaitan74.noreply@github.com |
f3ad98569986ba7cd60f02f1aa968eddfee2e72a | e742a41f3a8f4454fd02153e71e4e0a455547249 | /selenium/implicitWait.py | e9a31496ed1775ad6bb0951f998c1874ad18fcd7 | [] | no_license | Javierggonzalvez/cursos | 25b3709351234a5734dbb92ff5b5456c65b94125 | e6fada12b3b543c70e7dabe0c3c1a2a73de52a8e | refs/heads/master | 2022-12-08T11:38:34.372208 | 2019-11-21T20:50:24 | 2019-11-21T20:50:24 | 223,262,972 | 0 | 0 | null | 2022-11-22T02:24:33 | 2019-11-21T20:48:56 | Python | UTF-8 | Python | false | false | 685 | py | import unittest
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class usando_unittest(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome(
... | [
"javierggonzalvez@gmail.com"
] | javierggonzalvez@gmail.com |
7d7604b235b0937ca199f553e1f4b073945d9c89 | b10a759a2fd1b80ee810720d0f10bebe4706b84e | /ZenPacks/community/EMCIsilon/EMCIsilonQuota.py | 393cb03d3000a81f99c76aa196b23a90e259bbd2 | [
"MIT"
] | permissive | linkslice/ZenPacks.community.EMCIsilon | afbe41fb30cb08501bc3349dfa2bad99617835fe | 5f0483f3785ee6cbcb6034b3682fcb3f105df8c5 | refs/heads/master | 2021-01-17T00:45:24.505466 | 2019-10-08T16:53:49 | 2019-10-08T16:53:49 | 61,917,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | from Products.ZenModel.DeviceComponent import DeviceComponent
from Products.ZenModel.ManagedEntity import ManagedEntity
from Products.ZenModel.ZenossSecurity import ZEN_CHANGE_DEVICE
from Products.ZenRelations.RelSchema import ToManyCont, ToOne
class EMCIsilonQuota(DeviceComponent, ManagedEntity):
meta_type = por... | [
"sparctacus@gmail.com"
] | sparctacus@gmail.com |
e9529238cbc47916e001451674d12f106fbd8037 | 4dd5dbebc7b7f6dbfcbd6cc662311c91ad6d47e9 | /AtCoder/AGC030A.py | 641bf990c39cb0b7b2f7bfded4df6569c61e550e | [] | no_license | sourjp/programming_contest | aa6925b3317bd3aeb646df93a611af1199bfc7aa | 2a50e1be45441789e81eb49bfdfc0c598d2a534b | refs/heads/master | 2021-04-01T05:08:44.097226 | 2020-08-20T13:01:55 | 2020-08-20T13:01:55 | 248,158,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | a, b, c = map(int, input().split())
cnt = 0
if a + b + 1>= c:
ans = b + c
else:
ans = b + a + b + 1
print(ans) | [
"hiro0209.ki@gmail.com"
] | hiro0209.ki@gmail.com |
b349afad698bff5c9b153392fe731f23da2933db | db8d9e2be7a1c73678b1450da652939c0bcc5a70 | /manage.py | ac6853ebb230107da82e9b63d8277b4a335c9ffc | [] | no_license | KarthikRP05/Employee_read-operation | c015658e77bd72dc918d16142bf1ef5dcfb39a58 | 31b0709fa6dd7a60c01dd1744a0e3db75626c4c6 | refs/heads/master | 2023-02-17T19:02:17.361919 | 2021-01-15T10:45:52 | 2021-01-15T10:45:52 | 329,883,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'employeetable.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ... | [
"karthikrprpk@gmail.com"
] | karthikrprpk@gmail.com |
5fc50f121069b89a5ab8f5583eb3199e86306300 | bd2fcd9d9ca5808af8c13c557094fd6e5ac33984 | /09_Exam/RevIT.py | 2df7816b69d6a28ffc717228efbc34f06252b0e8 | [] | no_license | danslavov/Programming-Basics-Python-2017-MAY | 586a57ea586bd8e34d7b182116207cd1d2ec112a | 2ed6256664f336e59f1941784f2c10fa9a561341 | refs/heads/master | 2021-01-23T07:37:43.259225 | 2017-09-05T17:49:40 | 2017-09-05T17:49:40 | 102,511,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | n = int(input())
print(n, end="")
while n > 0:
print(n % 10, end="")
n //= 10
print() | [
"noreply@github.com"
] | danslavov.noreply@github.com |
582ffbfd29829a394d74241d4460e2a4b0b883f8 | 1a788746fc76424947a0c6d56fcea9e4ddedd259 | /Question3.py | 6e4bb66a6feff67bfffe87631565b488771cac90 | [] | no_license | Akhilgupta17/Acadview_Assignment5 | dfad17209e6cdc07630b923267506dcd2e4ce16e | 42600beb03bd7608b494bfd0799866c3bf220130 | refs/heads/master | 2020-03-19T23:54:08.227451 | 2018-06-12T07:23:48 | 2018-06-12T07:23:48 | 137,024,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | a=int(input("First:"))
b=int(input("Second:"))
c=int(input("Third:"))
if a>b and a>c:
print("first Is Older")
elif b>a and b>c:
print("Second Is Older")
elif a==b==c:
print("All Are Equal")
else:
print("Third Is Older")
if a<b and a<c:
print("first Is Younger")
elif b>a and b>c:
pri... | [
"Akhilgupta1711@gmail.com"
] | Akhilgupta1711@gmail.com |
7c60e64a4ec9b2e945c59909b072566c91cf039a | 608ff019d76ed0cc3cb6e6c19e94d65fd33e5273 | /bin/epylint | 647663eaf5ef526902bf8740db548876e61463a6 | [] | no_license | nwoodr94/4runner | 2975a0cf4fda416b634739d459bf51bb693a4666 | 0ad33beffedd5560c4a50edfad76732a249272b4 | refs/heads/master | 2021-05-22T02:26:10.405300 | 2020-08-11T18:59:33 | 2020-08-11T18:59:33 | 252,927,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/nwoodr94/code/4runner/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"nwoodr94@gmail.com"
] | nwoodr94@gmail.com | |
99d58cfffec18317f497271c87e04c101c9d5fbf | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/rdbms/azure-mgmt-rdbms/generated_samples/mysql/server_security_alerts_create_max.py | 702f9e0bb6a8a7da00508fb08c8a992824a0c71c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 2,227 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
64fe194f6f6f6b4fdd89e79f2467a83037405210 | 49fd63987c06bb07c016bea4e4a42b4f6209a1d2 | /hash.py | c26e3f5d5f501165283ec9c054b5b8fdf380a663 | [] | no_license | gonzalpetraglia/finger-4 | 65f885ce9ec0e8ecd70a977b865f0a10fcbd2371 | 14caffc483871a9156b54ed1d333b75862aab16d | refs/heads/master | 2020-12-26T01:12:15.231148 | 2016-09-17T15:45:28 | 2016-09-17T15:45:28 | 68,461,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | def myhash(s):
h=1
for c in s:
intC=ord(c)
h=ord(c)*h
h=(h>>32)+(h<<32)
h=h^((intC)or(intC<<16)or(intC<<32)or(intC<<48)or(intC<<8)or(intC<<24)or(intC<<56)or(intC<<40))
h=h%7205759403792700000
return h
| [
"noreply@github.com"
] | gonzalpetraglia.noreply@github.com |
c56d89a5521271887607380dcd98129d793d979f | 3708c3ae5aee629b0ca563e7796e77b9ada61c12 | /Lib/site-packages/pygments/lexers/dotnet.py | dda0230893a23b9b5ec9ab190cf4a0e830d9ee4d | [] | no_license | Lilyonegithub/venv | 5cec8ef4e62056137cbf8f9fa727a73321c10e43 | ae8ba5e0f224d5990d53b7203ec6cae7e7462faf | refs/heads/master | 2020-04-19T16:27:20.329731 | 2019-01-30T08:19:14 | 2019-01-30T08:19:14 | 168,305,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,694 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.dotnet
~~~~~~~~~~~~~~~~~~~~~~
Lexers for .net languages.
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, DelegatingLexer, bygroups, include, ... | [
"2362143268@qq.com"
] | 2362143268@qq.com |
72459fc22c1d18cd64c343211bbff66bc5053b8f | e5a6cdbb0c228a9ceafb4128b28ffc7e79be8e40 | /Математика и Python для анализа данных/4 Неделя 2 - Векторы, Матрицы/4.2 ПРАКТИКУМ - Сходство текстов (кошачья задача) в Python/4.2.3.py | 449e07f6e24b1a420a56cada325339f3b6892a42 | [] | no_license | SergioKulyk/Stepic | 2ef43f9dd037e43edd586d06ca24f6251152cb4d | 51070979f3ac2578244e07ae83a8d81c937be63c | refs/heads/master | 2021-04-26T23:10:30.297175 | 2018-03-15T09:30:01 | 2018-03-15T09:30:01 | 123,879,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Шаг 2.1 - проход по списку
# На вход подаётся 1 строка.
#
# Напечатайте в 1 строку все 1-е символы из каждого слова через пробел.
#
# Для разделения строки на слова можно использоваться функцию split():
#
# S = 'Some string'
# L = S.split() # ['Some', 'string']
#
# Sample Input:
#
# Hello my friends
# Sample Output:
... | [
"sergiokulyk98@gmail.com"
] | sergiokulyk98@gmail.com |
f7a2225fb76bf9459f66776aa69b4cf0239c4723 | 64d4e61c73d158a81300b4c43767971a512f66e9 | /KingPhisherServer | bfe4504a4c49194e930b70de7a8939fcf7654b47 | [
"BSD-3-Clause"
] | permissive | nebooben/king-phisher | 82f384da8686149f270d0a117a5536fc56bc949a | 23ea1f2749cd7af031025802557e9b84d5c74ece | refs/heads/master | 2021-01-18T12:17:15.088018 | 2015-09-22T20:37:42 | 2015-09-22T20:37:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,103 | #!/usr/bin/python -B
# -*- coding: utf-8 -*-
#
# KingPhisherServer
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of co... | [
"zeroSteiner@gmail.com"
] | zeroSteiner@gmail.com | |
3918393da646b4a519205518bd050446fa00d018 | 2452a1a846ec675cc6eb8b24261e3c0c8ec0dac5 | /bin/git-try | 62ce1bdc422cd74c69e3983a9501fe3c2ad000ca | [] | no_license | michaelbernstein/homedir | e5d5709c994361e34e929a351c12de3893274052 | d91a1e203eaf20d0a20e75204622cbe35f8ef579 | refs/heads/master | 2021-01-16T20:00:27.479753 | 2012-04-19T18:59:14 | 2012-04-19T18:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,731 | #!/usr/bin/env python
import argparse
import os
import shutil
import StringIO
import subprocess
import sys
import tempfile
PLATFORMS = ('all', 'none', 'linux', 'linuxqt', 'linux64', 'macosx64', 'win32',
'linux-android', 'linux-maemo5-gtk', 'linux-maemo5-qt',
'linux-mobile', 'win32-mobile', '... | [
"hurley@todesschaf.org"
] | hurley@todesschaf.org | |
f1dfe353f054cafbfba858bdbd4445953f5aa987 | 315e14423cc1ef8167ce3727eeead0baa7687e7c | /courseDesignProject/miniLibrary/admin.py | 2688b6cb5e830956ae3eccf67a1641b1a7762d56 | [] | no_license | tombsmrliu/django | 61d26ae19ee079555d112c5898ea5eb29ffa5884 | 255e0ea1071d418c72887c51e5b9b855c4783d73 | refs/heads/master | 2021-01-20T04:09:04.231350 | 2017-04-27T14:56:09 | 2017-04-27T14:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | from django.contrib import admin
from .models import Category, Topic, TopicProfile, Comment
# Register your models here.
@admin.register(TopicProfile)
class TopicProfileAdmin(admin.ModelAdmin):
pass
@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
pass
@admin.register(Category)
class Catego... | [
"c2720043432@gmail.com"
] | c2720043432@gmail.com |
9641f3a1d9b171033732295dad72e3d86a747a41 | d1ea082d5704cc8f16ff9ad01f5a28d9b287e7db | /run.py | 6a6dd0bb9899e3875183b54fb6a376c8ce97ec7f | [] | no_license | YaoChungLiang/CSE571_HW2 | a87d43b1fcde4ef86da024f226bae93845059aa1 | 8cddce39e535ead2753c78d3b04ab11bf7c57887 | refs/heads/master | 2020-04-26T06:24:41.786754 | 2020-01-08T15:48:38 | 2020-01-08T15:48:38 | 173,363,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | #!/usr/bin/env python
import argparse, numpy, time
from MapEnvironment import MapEnvironment
from RRTPlanner import RRTPlanner
from RRTStarPlanner import RRTStarPlanner
from AStarPlanner import AStarPlanner
from IPython import embed
def main(planning_env, planner, start, goal):
# Notify.
#raw_input('Press ... | [
"noreply@github.com"
] | YaoChungLiang.noreply@github.com |
83a95913c2ac03d2345d00ae0bd4d376da222c85 | 8b83842b1f6a5594c0a3e43c3edd6b5162dde512 | /src/preprocess/convert_and_pad_data.py | d455debf12454e3b524bea3cde9887b2a734f864 | [] | no_license | petersiemen/sagemaker-deployment | 357acc0350a19a8d1c874557dafa23b5d8280ff6 | be90d605cc861d08b65ab23ef5926b9ec01bd90a | refs/heads/master | 2022-02-05T01:31:37.869645 | 2019-06-21T10:40:28 | 2019-06-21T10:40:28 | 190,742,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from serve.utils import convert_and_pad
import numpy as np
def convert_and_pad_data(word_dict, data, pad=500):
result = []
lengths = []
for sentence in data:
converted, leng = convert_and_pad(word_dict, sentence, pad)
result.append(converted)
lengths.append(leng)
return np.ar... | [
"peter.siemen@googlemail.com"
] | peter.siemen@googlemail.com |
6f5f64793115b2302e947c9f8ce5be419d5740e1 | 7f4da36c8a5a8f771de4ca51a9a8ba1c64574d69 | /Homework-4/Homework_4_12.7.py | 9bff18588c648c7c462ef7bbf36703c7bfb414ff | [] | no_license | johnrick10234/hello-world | 37576d80636294f3c60db1989649757b1743cdde | 90d090645ddb2e605f89319eec5089a4e5dc7d3b | refs/heads/main | 2023-04-21T03:57:44.943841 | 2021-05-07T02:23:28 | 2021-05-07T02:23:28 | 331,312,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #John Rick Santillan #1910045
def get_age():
age=int(input())
if age<18 or age>75:
raise ValueError('Invalid age.')
return age
def fat_burning_heart_rate(age):
h_rate=(220-age)*.70
return h_rate
if __name__=='__main__':
try:
age=get_age()
print('Fat burning heart rate ... | [
"jcsantil@cougarnet.uh.edu"
] | jcsantil@cougarnet.uh.edu |
9b69e612ce1735e3297a37f0e864bb92f94d2547 | 84cc47b288292a890f115ed93e3ad1437f803ed8 | /TAL2.py | 7bfd3479b4e930425e2d2779ef7e161c1a777413 | [] | no_license | ClaireLozano/TAL_TD2 | effb6a828f2610c8eb245924cd18c9cf66286e18 | c88a26e19737eb3a2e0bff836cdc52794ecbf1be | refs/heads/master | 2021-05-10T13:34:15.318794 | 2018-01-22T15:43:16 | 2018-01-22T15:43:16 | 118,477,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | import os
import sys
import matplotlib.pyplot as plt
import json
def getDataFromTextFile(folder):
dictionnary = {}
for f in folder:
pathSplit = f.split('/')
language = pathSplit[1]
data = []
with open(f) as inp:
for line in inp:
words = splitByWord(line)
for w in words:
data.append(w)
if di... | [
"claire.lozano@live.fr"
] | claire.lozano@live.fr |
a182ec951bb86beb1378570c2541409aaf661687 | 7ded0e91c75f9b93ce3cc6df01aa336dc09002c9 | /erg3/erg3.py | b414c01e344537aff7afd12e2b4c9b92b45e5680 | [] | no_license | ArmandoDomi/Machine-Learning-Python | 650a9a7e04752d019fdee735d53e1d867458796c | 6edbd582852b1e9ddd39323623f04ca089f44d00 | refs/heads/master | 2022-02-10T17:11:29.660579 | 2019-06-30T17:05:28 | 2019-06-30T17:05:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
import perceptron as pr
def evaluate(t,predict,criterion):
tn=fn=tp=fp=float(0)
'''
tn = sum(predict[predict== False] & (t[t==0]))
tp = sum(predict[predict==True] & (t[t... | [
"noreply@github.com"
] | ArmandoDomi.noreply@github.com |
ae0dbc246333dba25047afcdcb3eaac9c9418de1 | ade4a86d59f06f9fb9defa0d91ef31ca331e00bc | /ANGELICA/asgi.py | 8481ae10bf7a401465e6fe244385737d8b351d05 | [] | no_license | norma22/practica | 67e4d86b88ed451e9ac04ed0898714165a02e187 | b58ba4d639e7d12a0ad684871b19d176b235b4ac | refs/heads/master | 2023-04-01T05:39:12.153231 | 2021-04-08T01:51:01 | 2021-04-08T01:51:01 | 355,734,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for ANGELICA 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('DJANGO_SETT... | [
"masayadelcielo@gmail.com"
] | masayadelcielo@gmail.com |
db123b88102b476b1f7aa06f89b3742fe4ef29c6 | 805a795ea81ca8b5cee1dec638585011da3aa12f | /MAIN/2.79/python/lib/test/test_asyncio/test_events.py | 28d92a9f4e3eac21e2aed7993f0e60dbd7ff1e89 | [
"Apache-2.0"
] | permissive | josipamrsa/Interactive3DAnimation | 5b3837382eb0cc2ebdee9ee69adcee632054c00a | a4b7be78514b38fb096ced5601f25486d2a1d3a4 | refs/heads/master | 2022-10-12T05:48:20.572061 | 2019-09-26T09:50:49 | 2019-09-26T09:50:49 | 210,919,746 | 0 | 1 | Apache-2.0 | 2022-10-11T01:53:36 | 2019-09-25T19:03:51 | Python | UTF-8 | Python | false | false | 102,515 | py | """Tests for events.py."""
import collections.abc
import functools
import gc
import io
import os
import platform
import re
import signal
import socket
try:
import ssl
except ImportError:
ssl = None
import subprocess
import sys
import threading
import time
import errno
import unittest
from unittest import mock
... | [
"jmrsa21@gmail.com"
] | jmrsa21@gmail.com |
9edd138ebcf348533c62d8526ba75efddf77b4bc | 2876fa06e8bf1812526ec888367d626029a9f0f9 | /anatomy/migrations/0001_initial.py | c95642771e10e52abe90a3b3a8505e15f11b0e12 | [] | no_license | Ashwary-Jharbade/anatomy | af9e2c33e60c397b8cab63cfcc4d900e7789d531 | ea4534bac582b044c00c8592e3b8f7057177e165 | refs/heads/main | 2023-07-17T15:32:47.503613 | 2021-08-29T17:39:45 | 2021-08-29T17:39:45 | 382,641,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # Generated by Django 3.0.4 on 2021-06-20 15:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"ashwary.jharbade999@gmail.com"
] | ashwary.jharbade999@gmail.com |
248fd13fb4eaab0035922b523cc263c22c4e30dd | cc0b10f5037f38fbb12d47a55fbab1bcbf90996d | /main/migrations/0006_auto_20191022_1428.py | 54ece5ca3ae4e37808e80bca58fda17fbf349f5a | [] | no_license | sreebhargava143/researchtoolproject | fe92fdfa7533110e2bdf4f7f9fa661e2fb528d96 | 3a19fa423d19053fa8baa395c5b9753948e3eecb | refs/heads/master | 2022-12-22T19:47:29.202845 | 2019-10-22T21:47:54 | 2019-10-22T21:47:54 | 215,212,305 | 0 | 0 | null | 2022-07-06T20:18:58 | 2019-10-15T05:15:06 | CSS | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.2.6 on 2019-10-22 08:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0005_auto_20191021_1130'),
]
operations = [
migrations.AlterField(
model_name='storycard',
name='card_data',... | [
"sreebhargava143@gmail.com"
] | sreebhargava143@gmail.com |
5374279c48d6c2393d43f2cabec46806407affec | c6ba762b22bf2b6c700bdec991cef5fa75bf7bad | /config.py | 28fc04c83eecc352bc7657925b87ed26d1f5a342 | [] | no_license | jcarlos20/00_appbuilder | 9974cfcd2508206aca4613773e1da2bc16da237e | 2cddefa01e04757664eeed1c3bd4636e9fbfae13 | refs/heads/master | 2023-08-18T13:09:04.045068 | 2021-09-22T23:27:07 | 2021-09-22T23:27:07 | 409,384,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
CSRF_ENABLED = True
SECRET_KEY = "\2\1thisismyscretkey\1\2\e\y\y\h"
OPENID_PROVIDERS = [
{"name": "Google", "url": "https://www.google.com/accounts/o8/id"},
{"name": "Yahoo", "url": "https://me.yahoo.com"},
{"name": "AOL", "url": "http://open... | [
"jtorres@noven.io"
] | jtorres@noven.io |
6fa69e13fb0b3ab5027f35b52980589e1d1dd5eb | 6a6a6e5ce10726a51a82e4dc4ee6c327cfd9dfea | /home/urls.py | 23afcb73dca61c2ae3446ae75b750f9fbf235112 | [] | no_license | Artemka-dev/authsys | dbdd36d621065f5d6e33f538efc8a0f0ffbc23d9 | f45639f331ac29b859d4c338ed963403a824418d | refs/heads/master | 2022-04-10T10:38:42.482916 | 2020-03-23T14:08:01 | 2020-03-23T14:08:01 | 238,509,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from django.urls import path, include
from .views import HomePage, redirect_view, PostsView, DetailPage, CreatePost, ChangePost
urlpatterns = [
path("home/", HomePage.as_view(), name="home_page"),
path("", redirect_view, name="redirect"),
path("posts/", PostsView.as_view(), name="posts_page"),
path("de... | [
"artem@MacBook-Pro-Artem.local"
] | artem@MacBook-Pro-Artem.local |
98d4b751487188eba562b6871a2298cb5ea68deb | 34d5ebe9e6de9d6742c234dabfa9b38f0adb7774 | /carriage_return/ui.py | 6b4e0f2958482b03ef044f9c62842f0bd045a463 | [] | no_license | campagnola/return-to-carriage | f37acaf8e41ccf04e7089018574732a1fdcd2a64 | eeb7f31b16e2c236c875c867a0295173fa6f4b0a | refs/heads/master | 2021-08-05T14:02:49.988526 | 2021-07-31T08:38:17 | 2021-07-31T08:38:17 | 84,014,684 | 0 | 2 | null | 2021-07-30T02:48:13 | 2017-03-06T00:55:55 | Python | UTF-8 | Python | false | false | 4,518 | py | import numpy as np
import vispy.scene, vispy.app
import vispy.util.ptime as ptime
from .input import InputDispatcher, CommandInputHandler
from .graphics import TextBox
from .console import CommandInterpreter
class MainWindow:
"""Implements user interface: graphical panels, key input handling
"""
def __in... | [
"luke.campagnola@gmail.com"
] | luke.campagnola@gmail.com |
2a0eb33ad087fd4330fbe9400b31fb58715ae5dd | 6581783e94c0474ace8a945ce6c11dac1c4d60f8 | /bozor/apps/shop/migrations/0001_initial.py | a38712f8ba1322f8b44db839b8708fa9a79d3955 | [
"BSD-3-Clause"
] | permissive | mirjalolbahodirov/bozor | 22367c89c746eeab12334bb3901a0d1b9884f9ff | c76b7b7dee4b6a80957602a10a900f7548347642 | refs/heads/master | 2021-08-23T20:09:04.971753 | 2017-12-06T10:25:33 | 2017-12-06T10:25:33 | 113,212,879 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | # Generated by Django 2.0 on 2017-12-05 16:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"mirjalol.bahodirov@gmail.com"
] | mirjalol.bahodirov@gmail.com |
e2df404f234ab3d108cbda675d9190679f716fdd | feccf7588777becba68921c0bfade3e21f5210ce | /airflow/providers/google/ads/_vendor/googleads/v12/services/services/feed_mapping_service/client.py | 47bde342b33c5b65eb11046e4f5b390987d25d06 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | francescomucio/airflow | f17ed9abd8b41d8a2227deca052508edf12f1cbf | c199b1a10563a11cf24436e38cb167ae82c01601 | refs/heads/master | 2023-04-14T17:44:53.438246 | 2023-04-06T06:44:23 | 2023-04-06T06:44:23 | 217,327,641 | 0 | 0 | Apache-2.0 | 2020-09-09T13:26:47 | 2019-10-24T15:06:52 | Python | UTF-8 | Python | false | false | 20,872 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | francescomucio.noreply@github.com |
65eb9b374f06fae0a98bf2b502ad7a15ff4d00ee | 212266251f6fad18d293dcd752240f90867319a0 | /fibanocci.py | 85014ec7c389ea2e93cb1366cb0fbb2acee92592 | [] | no_license | manojkumarmc/python-examples | b5e41a2c621ad1b2e54002f1c4b96c6b833eb455 | 2eb474f998d6212586a8a2a3723d7471ab565c08 | refs/heads/master | 2021-01-19T00:58:56.397735 | 2019-06-10T17:03:29 | 2019-06-10T17:03:29 | 38,770,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from itertools import islice
def fib():
a = 1
b = 1
yield a
yield b
while True:
a,b = b, a+b
yield b
output = islice(fib(), 0, 100)
for o in output:
print o
| [
"manoj.kumar.myaliputhenpurayi@oracle.com"
] | manoj.kumar.myaliputhenpurayi@oracle.com |
c99ad622603cbf9f4ff8ce3a42ef74bed108324b | 1d6c3055cbbd6bf23d272353a3187409b5d0ed78 | /Grafo.py | dd4dacc5e8352013c7503fe37d03e841d82e22f5 | [] | no_license | BASDiniz/GrafoPython | 158c4af2a0e519b44a6b33e7dbc13ebf6f3bbea3 | 5823e4042f05c9a3a9a7c37f7b459d5786fc9edc | refs/heads/master | 2020-08-08T05:24:09.856506 | 2019-10-07T15:20:48 | 2019-10-07T15:20:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,505 | py | from Vertice import *
from Aresta import *
class Grafo:
def __init__(self, direcionado=True):
self.lista_Vertices = []
self.lista_Arestas = []
self.direcionado = direcionado
self.tempo = 0
def novo_Vertice(self, identificador):
# string = input(str("Identificad... | [
"noreply@github.com"
] | BASDiniz.noreply@github.com |
ee82711c75670f7d87554edba44e7e7b2e7f4bb1 | 7c0cb3fd9bb95df51470271446f917c3b92f1d07 | /Ch12_Window-Program/12-06-img_button.py | 54e06368940c3b13032506c2d71c533fa8e1eeac | [] | no_license | ShinHyoHaeng/Learn-Python | daf5b9e761427abe328faa651d179dceaa5291fe | 52c1cf4df4be66321b9c977743f75a75f6d675f5 | refs/heads/master | 2023-08-28T10:57:11.790102 | 2021-10-18T01:22:17 | 2021-10-18T01:22:17 | 403,936,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py |
## 윈도우 프로그램의 기본 위젯: 버튼 - 이미지 버튼
from tkinter import *
# 버튼 클릭 시 에러(NameError: name 'messagebox' is not defined)
from tkinter import messagebox # 파이썬 3.6. 이후 버전에서 messagebox 오류 해결 방법
# 함수 정의 부분
def myFunc() :
messagebox.showinfo("강아지 버튼", "강아지는 언제나 옳다")
# 메인 코드 부분
window = Tk()
window.title("이미지 버튼 연습") # 윈도우 창... | [
"hyohaeng.shin@gmail.com"
] | hyohaeng.shin@gmail.com |
199e2c73709ba89644fe25f22ee2a014ca03fcca | d3410127c2fb05a2312c8861214e789fccaba615 | /doctor/admin.py | 0198981b371281c242794bfdc1411d22af6128f1 | [] | no_license | Vitalio44/Dol_plastic | 8f8ef222badc9aaf5807da78c644396209752f93 | 21c6e62e51ecb3343d288c4a1c75bb01388fcf8a | refs/heads/master | 2021-01-19T02:46:09.838145 | 2017-05-29T10:18:35 | 2017-05-29T10:18:35 | 87,291,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from django.contrib import admin
from .models import Doctor, Specialization
class DoctorAdmin(admin.ModelAdmin):
list_display = ["title", "timestamp"]
list_display_links = ["title"]
list_filter = ["timestamp"]
search_fields = ["title"]
prepopulated_fields = {'slug': ('title',)}
class Meta:
... | [
"Vitalii"
] | Vitalii |
8d533a2e1e17a9542fe1eeacefeee17b3e6fde53 | c25785eefec6a6aadeb215902d672345ffdf8873 | /EDA/check.py | 080b2913fa5f886a091ded500c71a2c0fdecb02b | [] | no_license | ayush237/Phising-Detector | 77e29ed996a1d9a5da0a75d27dd282c6561fe117 | 9c5cf887fe1b2cb5e9578968aed01bfff3af0e40 | refs/heads/master | 2023-01-06T08:44:56.151058 | 2020-11-04T18:25:19 | 2020-11-04T18:25:19 | 296,503,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py |
import re
def URLBreakdown(url):
regex = '''^(25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)\.(
25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)\.(
25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)\.(
25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)$'''
phoneNumRegex = re.compile(r'''\b(25[0-5]|... | [
"50947002+dhruvstan@users.noreply.github.com"
] | 50947002+dhruvstan@users.noreply.github.com |
03617b3129dcf8a670eaf2276f34c38807321a83 | 0dc2b8f5b553f72f72a41f61e63b633dca4f9923 | /HICO-DET_Benchmark/Generate_HICO_detection_nis.py | 4bf265cae449fdd5292591073dc10436ae47c90e | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | DirtyHarryLYL/Transferable-Interactiveness-Network | 84e877352bdf5f0654294a6522e6ab0a0e16346e | 3ab905bb95817cbc52b5306323fa9a9ddc3cd86d | refs/heads/master | 2023-04-06T14:08:55.494243 | 2023-02-22T17:47:11 | 2023-02-22T17:47:11 | 177,267,363 | 247 | 51 | MIT | 2023-03-24T22:42:31 | 2019-03-23T09:05:23 | Python | UTF-8 | Python | false | false | 24,084 | py | # --------------------------------------------------------
# Tensorflow TIN
# Licensed under The MIT License [see LICENSE for details]
# --------------------------------------------------------
"""
Change the HICO-DET detection results to the right format.
input arg: python Generate_HICO_detection_nis.py (1:pkl_path) ... | [
"790327070@qq.com"
] | 790327070@qq.com |
629f28a4b56dfbfcff989d4212e45fd579c89c74 | dc36e9910af16b86657e052dd5335878d734d2f8 | /Part2/venv/Scripts/pip3.6-script.py | daa7481da3e56188b556e6e2fe49748aaa4ea869 | [] | no_license | JLevy97/redhorse2020_interview | e68f785bb115fd4cf0b0bb8983dbff39dd179c9b | 411fccaf02de29bd5d80acf29a2314bccad34dcb | refs/heads/master | 2021-05-18T07:08:33.629580 | 2020-03-30T01:32:08 | 2020-03-30T01:32:08 | 251,172,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!"D:\Documents\Job Applications\RedHorse 2019\Part2\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__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)?$'... | [
"39770656+JLevy97@users.noreply.github.com"
] | 39770656+JLevy97@users.noreply.github.com |
89a83059cc975cbb899bcbf35c4ce9000b7da5e0 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /test/test_watermill_api.py | 9b7b62efa75df5f6b212c5921dfa2cb31da4fd6a | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import dbpedia
from dbpedia.api.watermill_api import WatermillApi ... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
0c3188d7fce7c05801cd688411919a2258081394 | a4a9ceccc22c47b1bdeb4903665f926893c11b1f | /parties.py | 37b4cef22d99fb6746fbccb1847df3114d0378c0 | [] | no_license | dominiquetheodore/projet_parlement | 21229ef25d9013f728480a9179f8e8038880c5c3 | ff7465254e68cc1804d36a7e80c0acf3f9e2cbb4 | refs/heads/master | 2021-01-19T22:15:17.254437 | 2017-08-05T14:12:29 | 2017-08-05T14:12:29 | 88,780,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import csv
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import PQ, Deputy, Base, Party
from os import remove, listdir
from os.path import isfile, join, exists
from datetime import datetime, timedelta
engine = create_engine('sqlite:///PQs.db')
# Bind the engine to t... | [
"dominique.theodore86@gmail.com"
] | dominique.theodore86@gmail.com |
89dbf6c60e02fa4811b4747ec6b0e32ad8f7d785 | b505e15a2d697f50081eb1d9e01be81213fee51d | /MotionControl.py | 317798a5075de6faf96fba9c36537c8d6cd30652 | [] | no_license | adamanderson/he10_fridge_control | 0dd2af8e9c19752d91901eb3b9adddf83715f537 | 9cb6c0747760b79dc2feef750062798b70d81736 | refs/heads/master | 2021-01-17T00:33:36.053486 | 2020-12-05T21:24:40 | 2020-12-05T21:24:40 | 41,942,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,646 | py | # -*- coding: utf-8 -*-
"""
Last version of 7/24/17
@author: Antony Simonoff
for SPT-3G
This file prints position, velocity, and time to a text file or spreadsheet
"""
from __future__ import print_function
import time
import serial
import sys
#from datetime import datetime
#from Tkinter import *
#import xlsxwri... | [
"noreply@github.com"
] | adamanderson.noreply@github.com |
fb8cdf8a313e492be527551aa492bf665d7a5c79 | 11c2e1b6fada746b71e0bd9575f5936a352f14df | /Box.py | 534a08beada9fdc035eded1c97ca9c76bcb8ef29 | [] | no_license | Eglopez/Python-GUI | 6e3e49f25ebb9f60b41d1981c46d6852f5a5eb51 | 05d7c71206d293aea2e8a32a21809f06d9fdcb2c | refs/heads/master | 2020-07-05T08:34:26.338755 | 2019-08-20T00:55:45 | 2019-08-20T00:55:45 | 202,592,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(400, 104)
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
self.buttonBox.setGeometry(QtCore.QRect(20, 40, 371, ... | [
"eduardolopezlainez2001@gmail.com"
] | eduardolopezlainez2001@gmail.com |
99bd11439e2e2f52ed637262e97a8b95926c9cdb | 83043d89093004fb87b133e1affe17a713ace225 | /greatNumberGame/server.py | 8f6f220757e84a40082293baa111e6c457aee612 | [] | no_license | tsicroxe/flaskprojects | f3afa4fd0c3486c59209ae402ac19076a9547e54 | f4955ec4b977460f44562ed3181b5dcdc24c283c | refs/heads/master | 2021-01-12T12:36:20.107323 | 2016-10-15T01:34:34 | 2016-10-15T01:34:34 | 69,612,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | from flask import Flask, session, render_template, redirect, request
import random
app = Flask(__name__)
app.secret_key = "asdf1234"
#Routes to index.html
@app.route('/')
def index():
data = {}
try:
print 'session number is already set: ' + str(session['number'])
except:
session['number... | [
"tsicroxes@gmail.com"
] | tsicroxes@gmail.com |
1f1e521ed713f698e4e1be29a5625ab970c1060f | a270c429e0228936e3fcf9879c5db4586de086f4 | /testpy.py | 304e245571c84bf59d6692d171f06287e725e405 | [] | no_license | MorijyobiNogyo/cameratest | 0e0fb711ae8616ddeb49ebf481ff2d7583cbcbac | 13b0318afb968b6ae40db67c60f352896c112d79 | refs/heads/master | 2016-09-05T14:10:31.459854 | 2014-04-07T00:52:33 | 2014-04-07T00:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | import test
test.test1()
| [
"kamatuka3@gmail.com"
] | kamatuka3@gmail.com |
180d7e63bd9cdeaa048ef5fceb023abdcaffe85e | 07120adf02a2fc58a9d3ee85ecc7f6abb2a0a4c7 | /UdPject/Original_bot.py | 7d20218c56a92073d8066ac86013869fc36f0fdf | [
"MIT"
] | permissive | Mbonea-Mjema/Telegram | 53d22896cbd462df355dde75b36abd4c050e032c | b6c6910e646816a2985e29f6b9dfd514e02e14c8 | refs/heads/master | 2021-06-24T12:57:46.095595 | 2017-09-12T15:45:32 | 2017-09-12T15:45:32 | 103,290,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,929 | py |
from run import getData #gets data from the zigbee(xbee) connected in the raspberry pi
#stikers
Stiker ={"Thinking": "CAADAgADNwADyIsGAAFOgk-EJUfH-gI","Albert_Einstein":"CAADAgADIQADyIsGAAHaCFln7THl9QI" ,"Goodnight":"CAADAgADxgUAAvoLtgjbqjaBr05-YgI","Waiting":"CAADAgADxQUAAvoLtgipmNsAAd08atYC"}
#emoji
Emojies={"SMIL... | [
"noreply@github.com"
] | Mbonea-Mjema.noreply@github.com |
638342b991b3abab3fc9f44d4cec5456f14da836 | fc3546dae25e362728d6c832d20387b2888b9c98 | /aes.py | 4c5b46de2e8566b36ff81cda1bf146fc96f103f3 | [] | no_license | clefru/mypyaes | bbd3a9804941a700e4e4c6be6832d5acf441ef92 | dfbee6061bd76709db223df30cd99ab22d56b87c | refs/heads/master | 2020-04-15T02:14:05.388155 | 2019-01-29T09:50:09 | 2019-01-29T09:50:09 | 164,307,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,309 | py | #!/usr/bin/python
# Copyright 2004, 2019, Clemens Fruhwirth <clemens@endorphin.org>
# My pedagogicial Rijndael implementation in Python.
# It uses a minimal amount of magic values (no predefined lookup
# tables) and if so, they are marked with MAGIC
# DO NOT USE IN PRODUCTION OR WITH ANY PRODUCTION SECRETS. THIS IS M... | [
"clemens@endorphin.org"
] | clemens@endorphin.org |
f58dcee5cb758e78ff6bf7dcf3b58455a48bf188 | 88dfd5f8ff788378305b832813f44ac6c3939065 | /MxOnline/urls.py | 314156940afc1209329e74b256b420371714b839 | [] | no_license | jixiaoxin666/MxOnline | 27ebb0041a038c95158baa3e97dd812a13f9f8a0 | 22b88a8a35899fedec19e64eeb15eb809b038772 | refs/heads/master | 2021-04-03T08:16:04.363410 | 2018-04-14T06:53:37 | 2018-04-14T06:53:37 | 124,881,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | # _*_encoding:utf-8_*_
"""MxOnline URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home... | [
"jihuixin@xjgreat.com"
] | jihuixin@xjgreat.com |
f8917466e4a192e6642d00bf1a4285c37b838b7f | 52725f5e0b5cd1c258c22a8b14979c32b010463f | /setup.py | 3719dcbde5fc902b4035eec5da685152fa4e077b | [
"MIT"
] | permissive | ehershey/penn-sdk-python | 0fd902cc88ac7f722ce3440ae3192f01a94250ed | 30f7c975e76db85c5c365ba0aff81ff0fe2ce58a | refs/heads/master | 2021-01-21T08:38:19.898861 | 2013-10-30T20:55:45 | 2013-10-30T20:55:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from distutils.core import setup
import penn
setup(
name='PennSDK',
description='Python tools for building Penn-related applications',
url='https://github.com/pennappslabs/penn-sdk-python',
author='PennApps Labs',
author_email='pennappslabs@gmail.com',
version=penn.__version__,
packages=['p... | [
"kyle@kylehardgrave.com"
] | kyle@kylehardgrave.com |
f2f17f58ba386a695c6117de316226c5144ad71d | 4d47afc8d51fb5c4b6f02039e809c110c9c6178c | /PrimeNumbers.py | c032b674d6fbb61758282bee6ac3578fda2f4d1c | [] | no_license | SVovk2012/Python | 4bbd93720f14ee1341dae1a4e20a133a462b2508 | 691d3481db3ed0fbc37f47ac701add84e3918532 | refs/heads/master | 2020-03-19T10:23:01.034505 | 2018-11-04T19:29:51 | 2018-11-04T19:29:51 | 136,365,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | #function returns the list of prime numbers up to the 'num' and including 'num'
def count_primes(num):
#initialize a list with first 2 known prime numbers:
primenumberslist = [1,2]
#iterate two times through all numbers up to the 'num'
for a in range(3, num+1, 2):
# change isprime to False if we... | [
"noreply@github.com"
] | SVovk2012.noreply@github.com |
ce66f81dd62ef4c454b93bada3202dfdabc764a2 | adbb2b958296815f9485bab60c0d38827befeeeb | /build/lib.linux-i686-2.7/gdrivefs/change.py | 394f5bedbdc47e5902688e014679cddbd2e96977 | [
"MIT"
] | permissive | gryphius/GDriveFS | 4b4619e1eefceb562ded6ae13dcc9a2c5b4c0a1b | fadfbdea019cfa4c2a821f4636380edbc8be32bc | refs/heads/master | 2021-01-18T14:14:32.028542 | 2013-04-24T06:17:03 | 2013-04-24T06:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | py | import logging
from threading import Lock, Timer
from gdrivefs.gdtool import AccountInfo, drive_proxy
from gdrivefs.conf import Conf
from gdrivefs.cache import PathRelations, EntryCache
from gdrivefs.timer import Timers
def _sched_check_changes():
logging.debug("Doing scheduled check for changes.")
get... | [
"myselfasunder@gmail.com"
] | myselfasunder@gmail.com |
82d2fa47943004945d86fbcb57953c0a89b36722 | 6326fa61ea28764a430a3910a162ef9861977db3 | /src/spec/genvk.py | 7fb67200e0cb76a26cca2f9636ba3699c76024f9 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"CC-BY-4.0"
] | permissive | hanaa-mohamed/Vulkan-Docs | ec4426a9ed837322337e2d18191dcf4369d49ff8 | 64fa8ef4df3bff37214e717abe490f7ea7ea44b0 | refs/heads/1.0 | 2021-03-22T04:49:46.239044 | 2017-11-27T09:07:06 | 2017-11-27T09:07:06 | 112,636,243 | 1 | 0 | null | 2017-11-30T16:48:47 | 2017-11-30T16:48:47 | null | UTF-8 | Python | false | false | 13,612 | py | #!/usr/bin/python3
#
# Copyright (c) 2013-2017 The Khronos Group Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"oddhack@sonic.net"
] | oddhack@sonic.net |
f181b10e9cc80527a418bb758860d3196cdc888e | 013d9f5ae8f5c35e31fae89520813e61450e9b94 | /webdevops/settings.py | 0ad36c3ca90004f0d7e09fb62b123bcf57a22cec | [] | no_license | daysunshine/webdevops | f83ae6aa2feec10ee02cdff339d8c71cc0c4e9ce | 3787bd65e54250e11eb02918df6ceb389010ecfa | refs/heads/master | 2022-03-20T21:22:29.246769 | 2019-12-23T08:16:17 | 2019-12-23T08:16:17 | 226,041,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,748 | py | """
Django settings for webdevops project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"1558526652@qq.com"
] | 1558526652@qq.com |
8596ef3beed2acbd192211891b7e6ff558450fe7 | ce3e499774c45b9cce4c7b9b1b7ea762a1a7c0c1 | /src/foodify/settings.py | 7b69f33b4b45e62938a070cf4b80c8f508fd8790 | [] | no_license | aminaloui/Foodify-Praktijk-2- | 6d6776a09f9ecaaebf54cedaf7431f7af5071951 | 3184beb38804cdc6def4ec2a3c20d868f6320a42 | refs/heads/master | 2020-08-08T06:55:04.770012 | 2019-11-01T18:02:02 | 2019-11-01T18:02:02 | 213,767,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,938 | py | """
Django settings for foodify project.
Generated by 'django-admin startproject' using Django 1.8.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build path... | [
"amin@Amins-MacBook-Pro-2.local"
] | amin@Amins-MacBook-Pro-2.local |
f32df982f5733226b7805e1b39d44e5cdad86efa | d4da2760dd011facd24ecbb6955cbedf04dd1a1d | /src/bfvae1/solver_test.py | 216d4953f3163c0a52ea2bd31501fee2d35e8eba | [] | no_license | entn-at/bfvae | 658f59bfbdb8223a1dbe335a5605394328f3045d | 6308734b195d1d937f5b72ed7f8535f0bcca96b7 | refs/heads/master | 2023-01-06T21:48:42.905720 | 2020-11-06T16:51:25 | 2020-11-06T16:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,652 | py | import os
import numpy as np
import torch
import torch.optim as optim
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torchvision.utils import save_image
#-----------------------------------------------------------------------------#
from utils import DataGather, mkdirs, grid2gif
from mo... | [
"ps851@scarletmail.rutgers.edu"
] | ps851@scarletmail.rutgers.edu |
818075f2fa2059a4e76ac9ab6fcfe1a45bbed4fa | c6a97e9c3d37897547d599d907b91ee123c312e8 | /hetmc_run.py | ec033f9f74b2e7143bd247a9017c9d9c4f1ce514 | [
"MIT"
] | permissive | neuztb/HET-MC | 7a14f0524ef7ef4cb1c00bb7a791c8c896b3ab4c | 18d611ef0722c549a263b12be2d70cd85a150200 | refs/heads/main | 2023-06-13T01:54:44.438262 | 2021-07-04T04:14:36 | 2021-07-04T04:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,734 | py | from __future__ import absolute_import, division, print_function
import argparse
import json
import logging
import os
import random
import numpy as np
import torch
from sklearn.metrics import precision_recall_fscore_support
from pytorch_pretrained_bert.optimization import BertAdam, WarmupLinearSchedule
from tqdm imp... | [
"yhtian@uw.edu"
] | yhtian@uw.edu |
c291253d61fc94df4cada29e2ffdbd049b83476f | 39e8c9a4e0639fc73291e27457a7701bfeb32b16 | /api.py | 73406cc2bb4b64cb01003fd5ae4c138af9d0164d | [] | no_license | pkolios/ding | 967fcad7a02aee89d9a406b255a030d89d0c9ebd | 158a94be014b6d9e3938c2e127faa546336da7cc | refs/heads/master | 2021-01-10T06:21:01.229862 | 2014-04-25T09:45:57 | 2014-04-25T09:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import json
import pika
from flask import Flask, Response, abort, render_template, request, url_for
app = Flask(__name__)
# Rabbitmq
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='localhost'))
channel = connection.channel()
channel.queue_declare(queue='din... | [
"paris.k@gmail.com"
] | paris.k@gmail.com |
6f3448d29f55f76cbc5b23cf246a84cbabe6592b | 148b6d9b43f1096960effc0bb4264686914f3c21 | /new_folder/deyisiklik.py | 1e6b0dfe99f5fdbb214ed48500cb333364f36fcc | [] | no_license | farxad91/GitDersleri | cada4a9a5e2283fbeb29be83f5d786295bc3e9d6 | f7a1c4209e96a56e26e022ebeb7d986490156528 | refs/heads/master | 2021-05-18T02:20:58.007757 | 2020-03-29T14:30:27 | 2020-03-29T14:30:27 | 251,063,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | def ustegel(x + y);
return x + y
def salam ();
print("hello")
| [
"farxadgambarov91.fg@gmail.com"
] | farxadgambarov91.fg@gmail.com |
13b3e86381b9d83ab0f7bc356fcac495f9962c13 | 2cf698dab041796369c137404bc01da055ccfe33 | /P1即时标记/markup.py | d308e100e690b4ddd8e2f497099756507f094142 | [] | no_license | DFEViA/Python2.7Project | f698d8bcd1b175b75b939597b885ceb267da18ef | 2608eb6257c8183e4dec948d7d9b35b3a4469ba9 | refs/heads/master | 2020-04-05T14:33:08.941046 | 2017-07-06T06:04:18 | 2017-07-06T06:04:18 | 94,674,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2017-06-18 21:34:54
# @Author : Your Name (you@example.org)
# @Link : http://example.org
# @Version : $Id$
import sys, re
from handlers import *
from util import *
from rules import *
class Parser:
"""
语法分析器读取文本文件、应用规则并且控制处理程序
"""
def __init__(self, ... | [
"2653239255@qq.com"
] | 2653239255@qq.com |
11416eba932d3ceb66c0fb690e4d5d2c5b45fb53 | 37430b0cdf24f602e16a81b344f32a05bd6e2251 | /monitoring/trademark_monitor.py | e8e6a9f90202ddddbcdf7294667219a354094e68 | [
"MIT"
] | permissive | evelyn9191/trademark_monitor | 626be61f4823384d09358008ccf40d896925d77c | c82a70532e0e92a29e8f0f4a35c8ce71b2b76859 | refs/heads/master | 2023-03-29T20:40:05.758313 | 2018-12-19T21:56:18 | 2020-02-29T08:41:29 | 165,064,717 | 0 | 1 | MIT | 2021-03-20T20:03:19 | 2019-01-10T13:28:52 | Python | UTF-8 | Python | false | false | 9,451 | py | # Trademark monitor fills out search form at www.tmnd.org with provided data,
# and sends the results as html text within an email to receiver's email address.
# Script is then run once a month via Cron.
#
# There has to be module :email_data with the variable named 'receiver'.
# The variable contains email address of ... | [
"ockova.michaela@gmail.com"
] | ockova.michaela@gmail.com |
a68a0d4543824377684445082a309e04204bc1e7 | 7e9b04b9e4212b58cd57ecc6e1f3c8dc06bf83ef | /OLD_BAK/data_structure2/practice/hotpotato.py | 6c8d515b882fca2c17f8a088b88adf633a663ed9 | [] | no_license | onionzhou/Note | 1766cf8ac45e9fd39b7eb79816c01e8ab709a52d | ed008913a2ce51b6c26718d09461e126b71fc0e1 | refs/heads/master | 2022-11-14T18:34:42.166244 | 2022-10-18T13:38:50 | 2022-10-18T13:38:50 | 132,616,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# author:onion
# datetime:2019/10/6 13:28
# software: PyCharm
from data_structure2.basic.my_queue import Queue
from random import randint
'''
传土豆游戏
接收一个名字列表 和一个用于计数的常亮num
程序将这个孩子的名字移出队列,然后立即将他插入队列得尾部,
随后该孩子会一直等待,直到再次达到队列得头部,在出队列和入队列num次后,
位于队列头部的孩子出局,如此反复,直到队列只剩下一个名字(队列大小... | [
"dkonion@foxmail.com"
] | dkonion@foxmail.com |
61e32bfd56df75f25d13318c5a7a8e3483ac5f47 | afc3dc5769fbd3803d4ea126acea927fd784a706 | /student.py | 1fe2def62713c281db224fe7834bb554b9728299 | [
"MIT"
] | permissive | seanmacb/COMP-115-Exercises | 1a33cddb6cb7a66efb4aa85914f65dfe1991cec9 | fbe7e5b158f2db785b886b6c600f1a8beb19ab1f | refs/heads/master | 2022-12-05T09:16:31.205481 | 2020-08-31T01:09:00 | 2020-08-31T01:09:00 | 287,665,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | # student.py
#
# Class to store info for one student; similar to program on p. 327
class Student:
def __init__ (self, lastName, firstName, idNum, grades):
self.firstName = firstName
self.lastName = lastName
self.id = idNum
# make a list for all the HW grades
self.hwGrade =... | [
"seanmacbride@icloud.com"
] | seanmacbride@icloud.com |
5260e5f6e9e62dff2851c2a69b0d9942a5673c04 | ccbb7fb8fda4d936e765263f05a435058b397bd9 | /src/guiltytargets/ppi_network_annotation/pipeline.py | 4556892fb1e8316cdaac58aa4319506234f86649 | [
"MIT"
] | permissive | GuiltyTargets/guiltytargets | 5a5d3ba9e45867a64c81a91529ae6689f8be447f | c20a5cae6c9cc71c2ca73080a862abe986bc34c0 | refs/heads/master | 2022-02-13T03:30:49.705239 | 2021-12-22T12:51:20 | 2021-12-22T12:51:20 | 154,318,881 | 10 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | # -*- coding: utf-8 -*-
"""Functions to easily set up the network."""
import logging
from typing import List, Optional
from .model.gene import Gene
from .model.network import Network
from .parsers import parse_csv, parse_disease_associations, parse_disease_ids, parse_excel, parse_ppi_graph
__all__ = [
'generate... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
8f15048573ae6cf53c784fe29bb50ef7345fb154 | 99701affb7ae46c42c55484f3301d59f79294a10 | /project/Examples/Examples/PP2E/Dstruct/Basic/inter2.py | 200364cc5828b3f08ae4bba0989169e3e39861b8 | [] | no_license | inteljack/EL6183-Digital-Signal-Processing-Lab-2015-Fall | 1050b9e9bddb335bf42b7debf2abebe51dd9f9e0 | 0f650a97d8fbaa576142e5bb1745f136b027bc73 | refs/heads/master | 2021-01-21T21:48:21.326372 | 2016-04-06T20:05:19 | 2016-04-06T20:05:19 | 42,902,523 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | def intersect(*args):
res = []
for x in args[0]: # scan the first list
for other in args[1:]: # for all other arguments
if x not in other: break # this item in each one?
else:
res.append(x) # add common items to the end
return ... | [
"inteljack2008@gmail.com"
] | inteljack2008@gmail.com |
c3270fdaccc023a16cea14d71a33d0ce8194251a | 3c3d978649517493745d9ce9bb44362a0fb53dbb | /get_pairs_chinese/get_text_pair_lcqmc.py | bb3c6f672230313c6e12e068fe0113ac2e4f2fff | [
"Apache-2.0"
] | permissive | fighting41love/text_data_enhancement_with_LaserTagger | 4679b37a416758521f732438bd91b9269217973e | 64b7b2a136820a52b40646bd71495c8e865a9827 | refs/heads/master | 2022-10-13T12:25:42.641144 | 2020-06-08T10:07:19 | 2020-06-08T10:07:19 | 271,198,161 | 2 | 0 | Apache-2.0 | 2020-06-10T06:34:53 | 2020-06-10T06:34:53 | null | UTF-8 | Python | false | false | 2,417 | py | # coding=utf-8
# 利用文本匹配的语料,从正例中采样得到句子对(A,B),然后训练模型把A改写成B
# 当前是针对LCQMC 改了几条语料的标注
import random
import os
import sys
sys.path.append("..")
from compute_lcs import _compute_lcs
from curLine_file import curLine
def process(corpus_folder, raw_file_name, save_folder):
corpus_list = []
for name in raw_file_name:
raw... | [
"785092099@qq.com"
] | 785092099@qq.com |
0c924d1161b97dbe606ec60a4a52647ccc876ffd | 74e5a5b47a479b92c4e8f69a2a1c5018cd02e4de | /ex29_What_if.py | dc4f560c49c05465e95c2c22341c739c21f0c7ff | [] | no_license | heron2014/Learning_Python_The_Hard_Way | 3fc80ee4b0a8a4be26a2b40c7b66c1cc333d4bb2 | 7300ba821a76556a39d2de32be18aa61fe50c9b1 | refs/heads/master | 2020-05-17T00:00:23.732103 | 2015-01-30T15:58:24 | 2015-01-30T15:58:24 | 29,782,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | people = 20
cats = 30
dogs = 15
#if boolean expression evaluates to True , run code under it otherwise skip it
if people < cats:
print "Too many cats! The world is doomed!"
if people < cats:
print 'Not many cats. The world is save!'
if people < dogs:
print "The world is drooled on!"
if people > dogs:
... | [
"a.nita@hotmail.co.uk"
] | a.nita@hotmail.co.uk |
b187b3dd4ec4a595ec4a5689b6746f1d8a35d782 | ed520426baa0cb046ed1d5b59fc5b387cae966ee | /plotData.py | 0131b14f8aac05139cc117ddb861e1de162183b5 | [] | no_license | juanfvallejo125/MiniSegway_Data_Collection | 983eb73e66bcaa28a38f4c284dee0c6dcbbb9e33 | f5de229ddd4169156b5d46e0749d67b1bcbf6dcf | refs/heads/master | 2023-02-21T15:21:40.668386 | 2021-01-22T21:26:32 | 2021-01-22T21:26:32 | 323,231,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,760 | py | import numpy as np
import matplotlib.pyplot as plt
def main():
file = open('test_1_1_21_21_5.txt')
all_arguments = []
all_values = np.array([], dtype = float)
line = file.readline()
while(line): # Parse through the entire file
if(line[0] == '$'): # Data lines are marked with a dollar sign at the start
line =... | [
"juanfvallejo125@gmail.com"
] | juanfvallejo125@gmail.com |
7bd764e443bcc2a8bebbfbb11b929320013f5a61 | de0824b62a51d44e5031dbc9f2cd45d9e8de45ed | /tests/test_manager_implemented.py | bbbca642c1ad3de56ad36b28baacfe6f3cb524a1 | [
"MIT"
] | permissive | SecuPlus/tomcatmanager | 6447e51882a54cf7b75d50c62fdce399cad54044 | 597f3e37a520b66fc6c05984c69ec22111ef1f11 | refs/heads/main | 2023-07-15T09:58:06.387805 | 2021-08-26T18:50:34 | 2021-08-26T18:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,816 | py | #
# -*- coding: utf-8 -*-
#
# Copyright (c) 2007 Jared Crapo
#
# 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, mod... | [
"kotfu@kotfu.net"
] | kotfu@kotfu.net |
5582e0c04ffcb5fecce6af3812ec4c05c1be9fb2 | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/thnhatrangvn.py | 220429db599deaabf7822d301bccd557a783a259 | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='home-center']/div[@class='product-info']/div[@class='product-name']/h1",
'price' : "//div[@class='product-right']/div[@c... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
c507865b007f982465904baf2c3b60f92f089965 | d15b12580c59ad3c742ebd7cc8994d61ec54bdd7 | /application/app/migrations/0002_auto_20180327_2104.py | 2dd7bc73c0bfd98e17a9a10885c07a4eacddde8d | [] | no_license | Nick1994209/wordknow | 6443f6a50858d367bcb86d8657bcf3cdcf7aef8e | 56d10e32125b9875c95acfbbca07d082493472be | refs/heads/master | 2023-01-18T15:14:11.299101 | 2020-09-18T07:18:36 | 2020-09-18T07:18:36 | 126,932,851 | 0 | 0 | null | 2022-12-08T05:45:35 | 2018-03-27T05:20:56 | Python | UTF-8 | Python | false | false | 434 | py | # Generated by Django 2.0.3 on 2018-03-27 21:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='chat_id',
field=... | [
"NVKorolkov@domclick.ru"
] | NVKorolkov@domclick.ru |
9cbdd8a6c6170a9d1d5a9ca37e428a2e16bc6c22 | 309d17b81cea038713ba67bee72a41d2df4d6869 | /Python/Python_basic/Python_OOP/OOP21_composition2.py | 86f25cef9fcfcf5256d11e83738ff6e7e74ed70b | [] | no_license | Bongkot-Kladklaen/Programming_tutorial_code | ac07e39da2bce396e670611884436b360536cdc5 | cda7508c15c3e3d179c64b9aac163b6173ef3519 | refs/heads/master | 2023-06-20T13:14:17.077809 | 2021-07-18T04:41:04 | 2021-07-18T04:41:04 | 387,081,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | class Printer:
def print_page(self, data):
print("printing {}".format(data))
class Scanner:
def scan_page(self):
print("scanning...")
class Fax:
def fax_page(self,number):
print("faxing to {}".format(number))
class Aio: # All in one printer
def __init__(self, p, s,f):
se... | [
"bongkot.klad@gmail.com"
] | bongkot.klad@gmail.com |
30f7edb35eef5cce6d855b50be7fff21042a064c | 39257f596d4ec7840e39c8267b3444443e89ebba | /src/pyff/pipes.py | b76c3853b4c2b50602eb6f904f16bc38eee2d586 | [
"BSD-2-Clause"
] | permissive | lhoekenga/pyFF | ff6921410d46687528d84e416cbdafa6af46b164 | a0413d34744ddbf95904d0d933524589a039c025 | refs/heads/master | 2021-08-22T09:49:56.160558 | 2017-11-27T09:58:08 | 2017-11-27T09:58:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,028 | py | """
Pipes and plumbing. Plumbing instances are sequences of pipes. Each pipe is called in order to load, select,
transform, sign or output SAML metadata.
"""
import traceback
try:
from cStringIO import StringIO
except ImportError: # pragma: no cover
print(" *** install cStringIO for better performance")
f... | [
"leifj@sunet.se"
] | leifj@sunet.se |
15800cdc98e5923c97a8260ad85c32ff54666a97 | d07a6b31a74b50da39b77f79c084ddc4a8c4a23d | /jia_django/jia/jia/settings.py | 8b4fee60668da7981781ff7f9bdb3764f172ccec | [] | no_license | fribble186/jia | 5d3224c83c6beddd422d08136bd9b73db467a603 | e93a064fb43404f38a017546366bb9ae59efcfca | refs/heads/master | 2023-01-02T00:46:48.834861 | 2020-10-26T09:20:33 | 2020-10-26T09:20:33 | 305,665,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,057 | py | """
Django settings for jia project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bui... | [
"psj124@qq.com"
] | psj124@qq.com |
2e557a9d2e7e6a2d371e64ee7999559e8bea6d75 | d62caf4015dbb6017c1078d59b36b9d5c90a13f0 | /education_system_a/manage.py | 0e9ed335cb8aae5777ae24b6bda1137560ff384a | [] | no_license | WuChuYi/education | 3e007932daae212a36923a04b0fc79550cf3ab05 | 5a9f431e22f61b27b730fafba521e78b045eec81 | refs/heads/master | 2020-03-19T03:11:04.516257 | 2018-06-01T11:19:24 | 2018-06-01T11:19:24 | 135,702,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "education_system_a.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import D... | [
"chuyiwu@foxmail.com"
] | chuyiwu@foxmail.com |
fb28b34d5e92d85a2bb4c9bb7c813b765175571d | 98a6a4f99a170cb96f6d2a620029bbcfc6775c6c | /blogengine/settings.py | 67706dd834e09268201ed0080747ecda00dab64b | [] | no_license | OttoSteel/blogengine | f367dc4003fd3c229c0f3a2562790c597973156e | 09f5e90a907471918b9a8b31f74bd70a04730a1d | refs/heads/master | 2023-01-05T10:38:36.440501 | 2020-11-02T21:01:00 | 2020-11-02T21:01:00 | 309,198,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | """
Django settings for blogengine project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from path... | [
"polshinski@gmail.com"
] | polshinski@gmail.com |
c0339fb350d2f4299dcc7b234f1dd422618bc1ba | 6218864c9b51d9f8abd8c1478660fdadf9e41911 | /mms-basket-optimizer/optimizer/MKMAPI.py | 3fb63abaed841f6799b067f0761a8e94a71cdf2c | [] | no_license | wynautt/mms | f152c482e5b6d51c99af1248bc0c54c557168aca | 879663b0ac13f4ccd1a605aaceb328f9fa6c902e | refs/heads/master | 2021-05-11T09:06:27.492564 | 2018-01-21T20:14:23 | 2018-01-21T20:14:23 | 118,061,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py | import sys
sys.path.insert(0, "libs")
import requests
import logging
import httplib
import pickle
import json
import hashlib
import os
httplib.HTTPConnection.debuglevel = 0
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.CRITICAL)
requests_log.propagate = True
stream_hand... | [
"wynautt@undefined.com"
] | wynautt@undefined.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.