blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f8c4b43d6d9cc36156f18a132ac87630172fdd51 | fc05249c73f910a4d36f471eb91e05256a64cdfe | /phd/BC-NBUC_FM_orig.py | 38718187d3142fc611bc4b4069940eab2ebf29b2 | [] | no_license | rsoutelino/sandbox | f51b37619cd7a61a0446d83e2e1c2af58f14802a | 814d215582d8e14514ba93daf1b41f6d118b906c | refs/heads/master | 2023-03-02T12:05:18.703732 | 2023-03-02T01:58:15 | 2023-03-02T01:58:15 | 28,204,889 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,435 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###################################################################################
# Building coupled BC-NBUC Feature Model
# Rafael Soutelino - rsoutelino@gmail.com
# Last Modification: Apr, 2011
#########################################################################... | [
"rsoutelino@gmail.com"
] | rsoutelino@gmail.com |
3899ac470777b3ed162ec4b63771700c70a1e8f9 | ad150ad36e2996171be8ec04ad9f025bd383ed39 | /delivery_app/apps/myapp/models/salida.py | de081d9a59a1c4c9702bd3b764ea6f82885638d5 | [] | no_license | pacifi/Dijkstra | 740150d22c5571bf5f19c90ca15e56f2759822cb | f3095997b829b2d17cd55265da4ec99a70eab6c3 | refs/heads/main | 2022-05-01T02:26:07.467951 | 2022-04-30T14:23:37 | 2022-04-30T14:23:37 | 138,086,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from django.db import models
from backend_apps.backend_auth.models import User
class Salida(models.Model):
user = models.ForeignKey(User) # encargado del pedido
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
verbose_name = "... | [
"pacifi.bnr@gmail.com"
] | pacifi.bnr@gmail.com |
118314a66db3e17343985da81c3e0df4373d4c87 | 446571f13b3c1604cdfbcee8fdc2f956568d7c8d | /codeeval/medium/reverse_and_add.py | a9462c0696c93b46bb61868ec3a6c47549ccdc51 | [] | no_license | ssarangi/algorithms | 2e8f0a4be6bf0f4a3d75b224ed993e1fb0ca0229 | e151307f2706214cf8cefa6231290aeb2e5cfd82 | refs/heads/master | 2021-01-17T02:28:23.291588 | 2018-01-06T18:35:13 | 2018-01-06T18:35:13 | 51,458,833 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | # https://www.codeeval.com/open_challenges/45
import sys
def check_palindrome_and_sum(num):
total_digits = 0
arr = []
while num > 0:
digit = num % 10
total_digits += 1
arr.append(digit)
num = num // 10
is_palindrome = True
# Now the arr has the individual eleme... | [
"satyajit.sarangi@gmail.com"
] | satyajit.sarangi@gmail.com |
d6a866e67509d27ae4a6e59c536f48c56f8085e5 | 1ce46403c6b0db95c5d41706bf6fa7de48010820 | /flask_mobility/mobility.py | ee97dd3473b3a8f0a9d3d62b95a02bbd8fc48ac5 | [
"BSD-3-Clause"
] | permissive | rehandalal/flask-mobility | 1d90f5ec651129ef34b2334b61d47a7cbcb57cf2 | a26f13d7c678265702c5687b9a5c87a705bb0b9d | refs/heads/master | 2023-03-15T13:15:52.763579 | 2021-07-30T18:10:11 | 2021-07-30T18:10:11 | 8,322,591 | 67 | 14 | BSD-3-Clause | 2023-03-06T10:56:43 | 2013-02-20T21:28:17 | Python | UTF-8 | Python | false | false | 941 | py | import re
from flask import _request_ctx_stack as stack
class Mobility(object):
def __init__(self, app=None):
self.app = app
if self.app is not None:
self.init_app(app)
def init_app(self, app):
app.config.setdefault("MOBILE_USER_AGENTS", "android|fennec|iemobile|iphone|o... | [
"rehandalal@gmail.com"
] | rehandalal@gmail.com |
12800ccf2b7d3ba08d5e9ae38ebc5e702c5992c8 | 8c96a9d66d49a5cb38d71174c6135af8f37c2259 | /libpass/__init__.py | d9e7d85ad43ad73b4a0bd96430eccbfd4d21451a | [] | no_license | jensecj/libpass-py | 614c00fddb6b98f8e6ac5f33ab477e86e780a847 | 71e3c9dc945ca8f4aaa31b66c783eab8d22a4e0f | refs/heads/master | 2020-08-27T20:02:52.729262 | 2019-10-31T09:04:15 | 2019-10-31T09:04:15 | 217,477,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,579 | py | import os
import sys
import subprocess
class PasswordStore:
def __init__(self, store_path=None):
# TODO: locate gpg binary, or error
# TODO: locate pass binary, or error
if store_path:
store_path = os.path.expanduser(store_path)
else:
store_path = os.path.e... | [
"jensecj@gmail.com"
] | jensecj@gmail.com |
5ef25e5c0ef8975460d7523a61c4044e44e2b6d2 | 67603326996032afeab86b870212aa7f6f83e60f | /st.py | 5f3072ae400cfe13544243250e8867f763cce8c5 | [] | no_license | 1079658109/RL-MPC-LaneMerging | 3af6eb1efcc735004da1206d50e545965cac0db5 | 7f1948bd62e0833bb0477fa35242211726892e5b | refs/heads/master | 2023-09-01T00:20:34.006054 | 2021-10-26T16:40:21 | 2021-10-26T16:41:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,913 | py | import heapq
from scipy import interpolate
from cvxopt import solvers, matrix
import matplotlib.pyplot as plt
import numpy as np
import control
from config import Settings
import prediction
if Settings.USE_CYTHON:
import st_cy
solvers.options['show_progress'] = False
solvers.options['maxiters'] = 10
def get_... | [
"jlubars@gmail.com"
] | jlubars@gmail.com |
9ce337f1935bb126d192a22cb87ea589a0a39729 | 32849fb3e8fc2b7a9b1c8c234b36519845bd2c1c | /wav2vec/server.py | 15db0b4b3a1a282a27c24926db3308d30a737694 | [
"MIT"
] | permissive | lucasgris/wav2vec-infer | 06ce8eaf03bb23e460d8d7df7fa1ba4774a29bec | df8d5c02d541a0c8c02cca86661beeab455d40a0 | refs/heads/main | 2023-05-31T00:25:19.664855 | 2021-04-12T05:26:58 | 2021-04-12T05:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,447 | py | import torch
import logging
import argparse
import soundfile as sf
import torch.nn.functional as F
import itertools as it
from fairseq import utils
from fairseq.models import BaseFairseqModel
from fairseq.data import Dictionary
from fairseq.models.wav2vec.wav2vec2_asr import base_architecture, Wav2VecEncoder
from wav2l... | [
"harveen"
] | harveen |
0fc39f54934aafa76fa2f211a3d361fefb7f1d9f | 272ff98ed048ddf518f888fea19b81cc262d4716 | /gtp.py | 9b0b6206bc7f2a68dc22bb15417a4a61201104a7 | [] | no_license | sugar-activities/4083-activity | b58ac46f8eb778d684b6b7050f9771777a62fa25 | 63c0e8a6a2706714afbb4247182e09cd9b63b2a6 | refs/heads/master | 2021-01-19T23:14:21.098118 | 2017-04-21T05:07:37 | 2017-04-21T05:07:37 | 88,938,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,614 | py | # -*- coding: UTF-8 -*-
# Copyright 2007-2008 One Laptop Per Child
# Copyright 2008 Andrés Ambrois <andresambrois@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
f59557cfff4041cf36174e07605dea498512d51d | d3ce90d1f2164d51bc899397082378406672224e | /main.py | a58dae2f6f68af2063134027d57b3b137d0fdfbd | [
"MIT"
] | permissive | automainint/ip-monitor | 28ee0b99dab2dc0a345e805a1d4da497f73b778b | 46efa1bc96e202213e41605fc750a22687a183ce | refs/heads/main | 2023-07-13T21:57:36.297491 | 2021-08-30T15:33:44 | 2021-08-30T15:33:44 | 397,872,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,887 | py | #!/usr/bin/python3
import configparser
import argparse
import requests
import os, shutil, time
from smtplib import SMTP_SSL
from email.message import EmailMessage
def parse_args(config_file):
config = configparser.ConfigParser(
defaults = { 'helper': 'https://api.ipify.org',
'server': 'in-v3.... | [
"0x7fffff@guattari.ru"
] | 0x7fffff@guattari.ru |
a6c8fbdeae4c919bf654c2ccbeb8f8779ff51ed5 | 835af2ea1c7dbd5a4605b7cc1c72b83cdf0c0254 | /places/settings/dev.py | 36990a404b30921ffcd565580e6dfb837303c4fb | [] | no_license | Spudwars/wheregonow | 965b3a2c3e880e16ad28ad19d57d72f8939e05e0 | 7600cb813b11ea9ca7b474361850a807c44c4233 | refs/heads/master | 2021-03-22T03:57:52.317081 | 2013-02-12T23:36:16 | 2013-02-12T23:36:16 | 7,997,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | from .base import *
DEBUG = TEMPLATE_DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'dev.db',
}
}
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Disable caching while in development
CACHES = {
'default': {
'BACKEND': 'd... | [
"chris.jesse@flightdataservices.com"
] | chris.jesse@flightdataservices.com |
373b206f3f3ba5a1e44d6a4ab81c719d7ae250f4 | ea21c75c6d42dddec7ef6c9e1c3337ef44dbed98 | /Passport/ocr_v2_passport.py | 1446181175b7edfe9272e163eae659e9c3624dc6 | [] | no_license | HarshitPatel25/OCR | d9aa44d3cac61bc527376419355665271f686953 | ae04728f34a1b4af5135f58b26dfb5b79c20cb05 | refs/heads/master | 2022-12-02T02:19:30.321235 | 2020-08-19T07:18:10 | 2020-08-19T07:18:10 | 288,661,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,445 | py | # import the necessary packages
from PIL import Image
import pytesseract as pt
import argparse
import cv2
import os
import re
import io
import json
import ftfy
# from nostril import nonsense
################################################################################################################
##############... | [
"harshitcode25@gmail.com"
] | harshitcode25@gmail.com |
a2cac299398ecea8a12b0f3ff9a50c53d50df052 | cdb29a347d67eb80f3deb09b685ea1e82ae47e7d | /leetcode/climbStairs.py | 1b0262740f2eee0f8e5b7fd0918f00163ed889b2 | [] | no_license | ishankkm/pythonProgs | f41e82c86591f4078c4c1317ecb4829087961c76 | be98ba8e50cc7844d519a5ae5b6e4d9901e175ca | refs/heads/master | 2021-01-24T16:48:50.161323 | 2018-09-08T23:30:19 | 2018-09-08T23:30:19 | 123,213,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | '''
Created on May 5, 2018
@author: ishank
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
'''
def climbStairs(n):
first, second = 1, 2
for _ in range(2, n):
second ... | [
"imishra@usc.edu"
] | imishra@usc.edu |
23fe111852b94e634ef05790a8368e8de8f9dd08 | c72df3759d1c61f1356a5b82cdb30a4608f23ae8 | /convert_to_line.py | af43eedd3428bc127ec44d85b8b7640a2b3e2f24 | [] | no_license | abedalbaset/n-queen-solutions-list | 0e3d7204aa453075471759fb572fac8936d55c93 | 8ebd98e2c57d271f216c06d76a4cccd72a5413de | refs/heads/master | 2020-05-01T06:25:06.039055 | 2019-05-28T23:03:57 | 2019-05-28T23:03:57 | 177,329,633 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | #convert n queen square solution to lines
# global change according to file
boardlenghth=12
file_name="12_12_sol.txt"
outputfilename="12_12_lines.txt"
#end global change according to file
with open(file_name) as f:
content = f.readlines()
content = [x.strip() for x in content]
numberofsol=len(content)/(boardlen... | [
"noreply@github.com"
] | abedalbaset.noreply@github.com |
8be026d5adf82df06e866838bdcc191ae2c44a9b | 1500da3c58fd3c6becf45c86430f5a08e4cfa289 | /parcels/particlefile.py | 25efc792a6a69c176066fcd4d5f5905212a9ac06 | [
"MIT"
] | permissive | rm1911/parcels | 26e06ab32f75992da5f8631788159462ce70c4de | 9c7f957bdb513f69d93c56b701287f8ad3b2b6a9 | refs/heads/master | 2021-01-18T04:28:56.551640 | 2016-08-12T10:09:31 | 2016-08-12T10:09:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,037 | py | import numpy as np
import netCDF4
__all__ = ['ParticleFile']
class ParticleFile(object):
def __init__(self, name, particleset, initial_dump=True):
"""Initialise netCDF4.Dataset for trajectory output.
The output follows the format outlined in the Discrete
Sampling Geometries section of ... | [
"michael.lange@imperial.ac.uk"
] | michael.lange@imperial.ac.uk |
30b87bccc18ed555b6af4d806c48ce473e2752e6 | f68a3657ddf6fe528208fc76caf70bbf6515c30e | /TwitterSentimentAnalsis/archive/sentiment_supervised-trial.py | 9e737ebda98521bf013c8c42f5ff848ed7e63812 | [] | no_license | nikilohiya/fintweet | eb3084bac2bb150a0b6b4633d61b4154355d778b | 53b18e9e83e7df3d40a4d098802ff5057e406dc3 | refs/heads/master | 2021-04-03T06:04:32.714006 | 2018-03-19T15:51:51 | 2018-03-19T15:51:51 | 125,084,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | from nltk.tokenize import TweetTokenizer
import nltk
from nltk.corpus import stopwords
import string
# -*- coding: UTF-8 -*-
import HTMLParser
###
import pandas as pd
from sklearn.pipeline import Pipeline
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.svm import LinearSVC
class SentimentA... | [
"nikilohiya@gmail.com"
] | nikilohiya@gmail.com |
591f2a518119961b336fdf7115bfdb1cdd13eb2c | fd800a1748b418402df23a91bdb7eaade92e5e0e | /code/castle_mod/algorithms/gradient/__init__.py | d4616d3a74998dc80bd7b01c55fa09ca7560e541 | [] | no_license | xwbxxx/PCIC2021_causal_discovery_dmirlab | b2a8569e30ba7b1d5a6da091a7b93f2d9d065dd7 | 1f88f40817b62d7a3f90531839eb1a0ad9d817f5 | refs/heads/main | 2023-08-03T05:28:36.686431 | 2021-09-15T05:22:20 | 2021-09-15T05:22:20 | 436,819,662 | 1 | 0 | null | 2021-12-10T02:01:03 | 2021-12-10T02:01:03 | null | UTF-8 | Python | false | false | 1,033 | py | # coding=utf-8
# Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | [
"2018770887@qq.com"
] | 2018770887@qq.com |
35e40d0e0276de9c456c162e3d62690341e6ce6f | c9708d43ce0581e19aca656103b28781f69f3da1 | /tests/seleniumwire/proxy/test_storage.py | 4bb25d9082dfdba58e0cc7aa850fa3398ee9e8bb | [
"MIT"
] | permissive | spinda/selenium-wire | 9d7f5d5b5cbf9ffe8aaf6169fef75ed2fe472f22 | e7687d80907d32226ba352f39d6e81bf14cf5380 | refs/heads/master | 2020-05-20T00:49:37.401477 | 2019-04-16T10:29:26 | 2019-04-16T10:29:26 | 185,296,120 | 0 | 0 | MIT | 2019-05-07T01:17:27 | 2019-05-07T01:17:25 | null | UTF-8 | Python | false | false | 11,236 | py | from datetime import datetime, timedelta
from fnmatch import fnmatch
import glob
import gzip
from http.client import HTTPMessage
from io import BytesIO
import os
import pickle
import shutil
from unittest import TestCase
from unittest.mock import Mock
from seleniumwire.proxy.storage import RequestStorage
class Reques... | [
"will@zifferent.com"
] | will@zifferent.com |
d2217e68e3197de61f832e9ef1b5fe09b9863383 | 3156e6e4a078052e9554c48f5037cf4e8e3ce4fb | /techpedia_project/wsgi.py | 57d879363cfb1ac1df595a088915def95c81a36c | [] | no_license | Rishav09/techpedia | 18edc5d7edd6264963d680603cafdfa658be8267 | 3283251998530a8b09372c7f79ec2e6a7d844960 | refs/heads/master | 2021-01-19T23:13:46.501278 | 2017-05-26T11:46:20 | 2017-05-26T11:46:20 | 88,950,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for techpedia_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJ... | [
"rishavsapahia@gmail.com"
] | rishavsapahia@gmail.com |
0d106b6db7d554ad1d1969843cd053d447c9ee62 | 1d3f11a26595d232fb6d4ecb3522b79ca9ba0910 | /train.py | 339aebc581a23b10d18b43008eae91d4db00bd3e | [] | no_license | LorSong/GenderClassification | fa47fd512965339238e4d526beadd56d05c8630a | 524d6f0aae5a5d4279872e3eae4e4a9c17fb8988 | refs/heads/master | 2022-12-22T10:23:51.814804 | 2020-10-01T08:17:57 | 2020-10-01T08:17:57 | 295,976,091 | 0 | 0 | null | 2020-09-19T14:12:55 | 2020-09-16T08:47:23 | Python | UTF-8 | Python | false | false | 4,512 | py | import os
import sys
import numpy as np
# Silencing tensorflow warnings
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
import tensorflow_hub as hub
if tf.__version__ != "2.3.0":
print("TF version is not 2.3.0, behavior may not be correct")
# Silencing tensorflow depreciation warnings
... | [
"noreply@github.com"
] | LorSong.noreply@github.com |
ebcf6416af5895de3d67cec6208e3c16f9a9dede | f3743bd1bec80159913243e0ba39f161db052ab0 | /backend/app/alembic/versions/6894c5975cd5_join_3_tables_for_tags_users_rides.py | f43caafd27299be0b8e54ff357f18735145764a4 | [] | no_license | eric-do/helo-pelo | f8a4e95007ca5bdd26354fd2098d4f54ec4f4aac | a4714bb3dc183b96ba576735e0ef4203a6921c2f | refs/heads/master | 2023-05-09T05:09:48.593538 | 2021-06-03T21:16:57 | 2021-06-03T21:16:57 | 347,272,759 | 0 | 0 | null | 2021-06-03T21:16:58 | 2021-03-13T04:34:29 | TypeScript | UTF-8 | Python | false | false | 1,630 | py | """Join 3 tables for tags users rides
Revision ID: 6894c5975cd5
Revises: abc4ccfa9c9c
Create Date: 2021-03-10 20:40:09.352601-08:00
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6894c5975cd5'
down_revision = 'abc4ccfa9c9c'
branch_labels = None
depends_on = N... | [
"ericdo.617@gmail.com"
] | ericdo.617@gmail.com |
95b50eb937a9c5c4d9c33679b54ac220d7720dd9 | c55036e604c3a1a714301dd4ec6def16f7ead18c | /split_dataset.py | 339ad1c633ebf4bb4ae4cfedb9a0b2b6a3be9e07 | [] | no_license | weizh888/ProductImageSegmentation | 3326ab5a9ababd2afd9fdfb1e0665d805e3df499 | be718cdbe26663220ce1ea994f325de0e3bacf04 | refs/heads/master | 2021-09-10T06:20:32.291629 | 2018-03-21T12:26:49 | 2018-03-21T12:26:49 | 113,643,096 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
np.random.seed(1)
full_labels = pd.read_csv('data/labels.csv')
grouped = full_labels.groupby('filename')
grouped.apply(lambda x: len(x)).value_counts()
print(grouped.apply(lambda x: len(x)).value_counts())
gb = full_labels.groupby('fi... | [
"weizh888@gmail.com"
] | weizh888@gmail.com |
88d9128ceed61e034574acdbbdbc508324c444a6 | 69c29bd4b424b0e90ae9c439d29791f7011c993e | /Builder-Pattern/mycomputer_builder.py | 996474f691a684e223e90eccfca3674df82cb961 | [] | no_license | mdizhar3103/Python-Design-Patterns | b3681aa23416d3ff5aae169f71819d37ccf910da | be477db006864e5c7e30a862765a4348f3113af6 | refs/heads/main | 2023-08-14T22:52:06.941745 | 2021-09-19T13:04:26 | 2021-09-19T13:04:26 | 403,862,000 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from abs_builder import AbsBuilder
class MyComputerBuilder(AbsBuilder):
def get_case(self):
self._computer.case = "Coolermaster N300"
def build_mainboard(self):
self._computer.mainboard = "MSI 970"
self._computer.cpu = "Intel Core i7-4770"
self._computer.memory = "Co... | [
"mdizhar3103@gmail.com"
] | mdizhar3103@gmail.com |
20a166f17484a3091f0d9551afab34b5a95bd3fd | 903ba270c95a6aa9b4903484a2f0cc49ba82ea16 | /Iniciante/1072.py | cfbdeffc0c007bdf5b3605701b3d289a8b1b5586 | [] | no_license | pedroheck/uri-online-judge-training | fb3a0b1388e0a9d7a4f959bc582474f952d6efcb | 7a8ed57d5fab703dde523ac2d0a3d5afca06d267 | refs/heads/main | 2023-07-13T22:23:43.600520 | 2021-08-25T18:40:44 | 2021-08-25T18:40:44 | 398,272,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | n = int(input())
numeros = []
dentro, fora = 0, 0
for i in range(0, n):
numeros.append(int(input()))
if numeros[i] in range(10, 21):
dentro += 1
else:
fora += 1
print(dentro, " in\n", fora, " out", sep='')
| [
"pedroscheck@hotmail.com"
] | pedroscheck@hotmail.com |
c260a43c4960371a37bba0d5dd8c8410caa61953 | b0fb4008bf17616942d7eb6d526b95b0359bd118 | /app/common/thread/get_meta_data_thread.py | 3e4a521df6315b4feefbbbf00c39fba8cc227af1 | [] | no_license | hunye/Groove | d364d8ee79618b8f4722eec69d9cfb3562e41874 | 7b06c2530352dc5f159c0f9f674e469a305f741a | refs/heads/master | 2023-08-28T15:21:52.626998 | 2021-10-25T14:49:33 | 2021-10-25T14:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,825 | py | # coding:utf-8
import os
from common.meta_data_writer import writeAlbumCover, writeSongInfo
from common.crawler.qq_music_crawler import QQMusicCrawler
from PyQt5.QtCore import pyqtSignal, QThread
class GetMetaDataThread(QThread):
""" 获取歌曲元数据线程 """
crawlSignal = pyqtSignal(str)
def __init__(self, folder... | [
"1319158137@qq.com"
] | 1319158137@qq.com |
196f2bbc75b037236f40aa7b8286b7e49495ecb6 | db1aa4a65017f4b06b9762d683fa26cf01ac06c1 | /venv/bin/pip2.7 | 6e3a768cbc6c72aae70bed0931133ed040cfe4d4 | [] | no_license | oumar90/FlaskApp1 | 119b87dcb27b2fd124ce1d4a3f5cf0d4fb1efcf0 | 81b69ce3d0007cf1fd917a3406aef47cad994965 | refs/heads/master | 2021-09-03T04:11:46.757154 | 2018-01-05T13:35:52 | 2018-01-05T13:35:52 | 116,170,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | 7 | #!/var/www/html/FlaskApp/FlaskApp1/venv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"oudjira90@gmail.com"
] | oudjira90@gmail.com |
8f9f4a16e1e15f1351ada271a24b1c294bcd6f0c | 2df82996d274b5e49e5d4a1b520cebe1b19a3639 | /LocalBigData/County_Wise/county_aqi_predict.py | 276400d37db3b064dca8081803073259e70e3f23 | [] | no_license | amandeepkapoor/AQI_Prediction_for_US | fce65ed74da912ea6c074f650f200c06bcbed163 | 6fb5d9c937add226bc981ac3ab4ad1a861f16cc5 | refs/heads/master | 2020-03-28T20:35:58.652810 | 2018-09-17T07:33:38 | 2018-09-17T07:33:38 | 149,085,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,987 | py | import sys, os
from pyspark import SparkConf, SparkContext
from pyspark.sql import SparkSession, types, functions
from pyspark.ml import Pipeline
from pyspark.ml.feature import VectorAssembler, StringIndexer, SQLTransformer
from pyspark.ml.regression import LinearRegression, RandomForestRegressor, GBTRegressor, Decisio... | [
"aman0609@gmail.com"
] | aman0609@gmail.com |
90183dd66049d8068183095a0e87e5343aca7ef3 | 6cdfe80ca94f52191f13f5684794b21b1e4747c1 | /day6/day6.py | b01b570b1d9930b4f7aee46a283f24a806232e1f | [] | no_license | TheFunctionalGuy/adventofcode | 0ce3515eba463817ebb239e045710e9da573c98f | dcc614a2d2bef54497ae7c5cf0edeececbba55a2 | refs/heads/master | 2020-09-22T11:22:11.864866 | 2019-12-11T20:46:16 | 2019-12-11T20:49:24 | 225,173,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | from typing import Dict
from anytree import Node, PreOrderIter
# Solution for: https://adventofcode.com/2019/day/6
def count_orbits():
with open('input.txt', mode='r') as input_file:
# Part one
lines = [line.rstrip() for line in input_file]
nodes = {}
for line in lines:
... | [
"jvesper95@gmail.com"
] | jvesper95@gmail.com |
2cdad8f3013b066d06ef7a8f532a32106d81ba9c | 913e24ea110f839c73363bc1aac9673e561fa5f8 | /widowx_ros_packages/arbotix_ros/arbotix_controllers/bin/one_side_gripper_controller.py | ccba46afcab9bd3a34ddf04ca83e2d1e08759637 | [
"MIT"
] | permissive | PierreExeter/WidowX-reacher | 24e2b3f72e9aec24a9a61e6a8958c200e0dbe893 | 560c6779dc91a887191f344c43de24926ba75b4d | refs/heads/master | 2023-03-06T13:48:12.810858 | 2021-02-22T15:36:52 | 2021-02-22T15:36:52 | 264,480,232 | 4 | 0 | MIT | 2021-02-22T15:27:44 | 2020-05-16T16:36:53 | Python | UTF-8 | Python | false | false | 3,250 | py | #!/usr/bin/env python
"""
one_side_gripper_controller.py - controls a gripper built with one servo
Copyright (c) 2011 Vanadium Labs LLC. All right reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* R... | [
"pierre.aumjaud@gmail.com"
] | pierre.aumjaud@gmail.com |
ec72ba07483ae3889ec827f95dc7a8cc4c03a7f8 | 252575ae85fb3c1bd754c6812c63ab8339a0c47b | /wine.py | df3f106d4c30571c1d2f3ecfb240a260dd7a95a4 | [] | no_license | Shally1130/CS7641-assignment3 | ca11243ab2c19907bfaf5733b211ecd23378d093 | a3b72a808de3465dd2e72e887de028c45800c4d8 | refs/heads/master | 2020-04-04T15:18:24.839408 | 2018-11-03T23:33:19 | 2018-11-03T23:33:19 | 156,032,615 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30,095 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from sklearn.cluster import KMeans
from sklearn.mixture import GaussianMixture
from sklearn.decomposition import PCA
from sklearn.decomposition import FastICA
from sklearn.random_projection import GaussianRandomProjection... | [
"noreply@github.com"
] | Shally1130.noreply@github.com |
cd32d9d2c2d3031d15b301e0fbba6be7e552c401 | b985f1abc806f7cf4962374140668aa65e330a71 | /pages/transition.py | 58dc84bb39840ae7d0e60944c2f2fa2623a51c35 | [] | no_license | Decentorage/User-Node | 2665862706130c1bc14f2a7248a3ed0c0603088a | 30afa71ac68a4bea73d28796186be390d00dd8c5 | refs/heads/main | 2023-06-26T11:21:00.136614 | 2021-07-27T13:44:13 | 2021-07-27T13:44:13 | 357,921,279 | 0 | 0 | null | 2021-07-27T13:44:14 | 2021-04-14T13:48:13 | Python | UTF-8 | Python | false | false | 407 | py | from PyQt5 import QtCore, QtWidgets
class Transition(QtWidgets.QWidget):
# Signals
okay_switch = QtCore.pyqtSignal()
def __init__(self, ui, helper):
QtWidgets.QWidget.__init__(self)
self.ui = ui
self.helper = helper
# Connectors
self.ui.transition_okay_pb.clicked.c... | [
"amr.ahmed.abdelbaqi@gmail.com"
] | amr.ahmed.abdelbaqi@gmail.com |
fcd886b1b6502bdaedb01d6a0154932c1d898228 | 7d7d8f79e8bae80a8c99240b158c6f3d2abbf94d | /election/migrations/0003_auto_20190319_2337.py | a6df03312c9f5673d2129268fbf5d3f008f101e9 | [
"MIT"
] | permissive | ecss-soton/ecssweb | feeb208a504bc80b9453ba306c51cae6da3718cd | 06ddda86863ddb85e5da39a6f7b7fb29af902b16 | refs/heads/master | 2022-12-16T02:59:45.147472 | 2022-12-11T22:13:04 | 2022-12-11T22:13:04 | 133,257,221 | 4 | 3 | MIT | 2022-12-11T22:13:06 | 2018-05-13T16:58:48 | HTML | UTF-8 | Python | false | false | 1,723 | py | # Generated by Django 2.1.2 on 2019-03-19 23:37
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('election', '0002_auto_20190310_1218'),
]
operations = [
migrations.CreateModel(
nam... | [
"i@cjxol.com"
] | i@cjxol.com |
8e2d8002d1adb3ba31abe658807413d2afd3505e | 6092d481d042ae9383454f29567be7f4d0847fd9 | /3vm-demo/trex/v2.35/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_conn.py | e64ddbd9053a357deda37d89225bd8de38546e6a | [] | no_license | ilsffun19/ovs-dpdk | 02971cc31190eb70264499dbdd3fb20cb3fd1b8f | d760f1fd8f76513caa665a6dbec65ce1f0c1ecc7 | refs/heads/master | 2020-04-03T17:54:27.838112 | 2020-03-30T19:20:37 | 2020-03-30T19:20:37 | 155,463,472 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,679 | py |
from .trex_stl_types import *
from .trex_stl_jsonrpc_client import JsonRpcClient, BatchMessage, ErrNo as JsonRpcErrNo
from .trex_stl_async_client import CTRexAsyncClient
import time
import signal
import os
############################ RPC layer #############################
############################ ... | [
"irene.liew@intel.com"
] | irene.liew@intel.com |
abe2253ea7350d7773d326c712e376a3a3925019 | 65388f96457bc2ed38fa48dea7c947a7aca7e396 | /{{cookiecutter.project_name}}/app/apps/accounts/test_views.py | 2f1441c3bb996de8bcd16d784f48f43ddba74de0 | [] | no_license | JTarball/cookiecutter-django-project | 0478f1f4f6068e6e0e8c4e207d624df45523d82f | 658f83a36b087e8d20a8d25bc97425245f4434a0 | refs/heads/master | 2020-12-26T08:54:56.688819 | 2016-12-10T22:17:39 | 2016-12-10T22:17:39 | 68,531,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,715 | py | """
accounts.test_views
===================
Tests the REST API calls.
Add more specific social registration tests
"""
import responses
import copy
from django.core.urlresolvers import reverse
from django.core import mail
from django.contrib.sites.models import Site
from django.contrib.auth import get... | [
"james.tarball@gmail.com"
] | james.tarball@gmail.com |
1498b82da7b6fe2ae9a6854b6fcd8b22571bd599 | 9372026aec32fa10896225813986346e472f7a7c | /Algorithm/class49/stack_queue.py | 18afc982243a82b1014b3d2e20e95d8dfe19d907 | [] | no_license | mjsong0712/learn_python | 5809df5b0366b37836633f5fa5e2d96a9cb99798 | 1cc31ca750e76b436596e3a4f6b8f39d7b873624 | refs/heads/master | 2022-05-17T00:54:17.975679 | 2022-05-01T08:07:33 | 2022-05-01T08:07:33 | 235,795,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | import sys
class Stack:
def __init__(self):
self.L = [0 for i in range(100001)]
self.top = -1
def push(self, n):
self.L[self.top+1] = n
self.top += 1
def pop(self):
item = self.L[self.top]
self.top -= 1
return item
def isEmpty(self):
if self.top == -1:
return True
else:
return False
de... | [
"mjsong070712@gmail.com"
] | mjsong070712@gmail.com |
df2b7b7f4286fae602e375dcdd454832dbd70659 | e5ccd2611e53968a34c879f6a664d25d100eb7f6 | /src/colorslider_test.pyw | 04341c70496dea5512cb12bfb768da8bed7f5aef | [] | no_license | sergeyfarin/kyui | ec9b32605616fbd0ca0c21d10e130ec1c5164d4a | 320f8df348491bc01bca0c76fc92e1d5e6d841a2 | refs/heads/master | 2020-12-24T15:49:12.880822 | 2012-01-06T14:32:17 | 2012-01-06T14:32:17 | 32,626,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,657 | pyw | #UTF-8
#colorslider_test.pyw
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import sys
from Widgets.colorslider import ColorSlider_Old
from template_test import TemplateDialog
class Dialog(TemplateDialog):
def __init__(self, parent = None):
super(QDialog, self).__init__(parent)
... | [
"mnijph@gmail.com@61556d0e-e001-f3ff-fadc-bb871643678f"
] | mnijph@gmail.com@61556d0e-e001-f3ff-fadc-bb871643678f |
cbdf7656ac78f0a708d02e0937ee94e89283794c | 07b62e1b4500c2fa6df424f81a588d3f82258e8c | /recipe_recommender/etl/__init__.py | d2d9c0f724f66f3cadca908a80af41627f149a41 | [
"BSD-3-Clause"
] | permissive | janash/recipe_recommender | fd77ad167e75669f56df3145468c42f7df17417b | ffc5c0c55578a0c0a81c1fef6ce2290bea5051d0 | refs/heads/master | 2020-04-12T11:32:11.181349 | 2019-09-15T16:51:22 | 2019-09-15T16:51:22 | 162,462,572 | 1 | 1 | BSD-3-Clause | 2019-09-01T16:25:32 | 2018-12-19T16:20:45 | Python | UTF-8 | Python | false | false | 119 | py | """
Imports for 'etl' (extract, transform, load) to database.
"""
from . import utils
from . import index_bodybuilding
| [
"janash@vt.edu"
] | janash@vt.edu |
2663ee7656653db5742f85fb25439e84c3b69a74 | 0aa273ad48b7b52cb8853464657752f0d651c844 | /cap6/eliminar.py | ee8c8174d38be8ce098d4195971568595e2a1447 | [] | no_license | mrjamrd/diplopython | 607eb05ade42ee706681b5ebcf776be663161e89 | 83fea1036743fb821c2d2df4bda3e222df3f1273 | refs/heads/main | 2023-08-31T10:23:42.195813 | 2021-09-15T04:11:55 | 2021-09-15T04:11:55 | 393,474,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from io import open
import pathlib
import shutil
import os
import os.path
#eliminar
#ruta = str(pathlib.Path().absolute()) + "/fichero_textonew.txt"
#os.remove(ruta)
#print(os.path.absolute("./"))
#ruta = os.path.abspath("./") + "/fichero_texto1.txt"
ruta = "./fichero_texto1.txt"
#Comprobar si existe un archivo en u... | [
"joseam1789@gmail.com"
] | joseam1789@gmail.com |
67054ed0f58b4c83e7aca1c443931dcdd4cd01f7 | b567f026aa6cac669c3987247a5ce3bfa1ff003b | /todo_api/apps/todo/urls.py | 5aa1fcac1434b1f21e01ec940950f6e8f9bb6edc | [] | no_license | scorpaena/todo_list | 999a84f366a4d4d03249313e3ffc6ce6f25e8b81 | 9a4bbad868a670e37ca00dc0f94e11d9457f55b5 | refs/heads/master | 2023-06-19T15:28:45.333049 | 2021-07-13T16:16:54 | 2021-07-13T16:16:54 | 385,237,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from rest_framework.routers import DefaultRouter
from .views import ToDoViewSet
router = DefaultRouter()
router.register(r'', ToDoViewSet, basename='todo')
urlpatterns = router.urls | [
"mvalyn@gmail.com"
] | mvalyn@gmail.com |
8b42b10c453a5a2872ae60c1b75bf8b2aa310647 | 75d8667735782cd1d0eb4877e52c89da5cd92dde | /nova/conf/vmware.py | 48c3c487055130e00713481e2f51b8e88526ccf0 | [
"Apache-2.0"
] | permissive | bopopescu/nova-token | ffecfd3ec561936b7d9d7e691bc57383cde05436 | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | refs/heads/master | 2022-11-22T09:53:31.073483 | 2016-05-14T02:47:01 | 2016-05-15T22:02:55 | 282,105,621 | 0 | 0 | Apache-2.0 | 2020-07-24T02:42:19 | 2020-07-24T02:42:18 | null | UTF-8 | Python | false | false | 10,441 | py | begin_unit
comment|'# Copyright 2016 OpenStack Foundation'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
co... | [
"dmg@uvic.ca"
] | dmg@uvic.ca |
61d1cec7299b8b9ea78c02334cf93f6792b541fe | e249af1edb0d4796657e086497b014d3b616bddc | /main.py | 8f5b8d7862338456fda0d17b82f3749c4eb98177 | [
"MIT"
] | permissive | mpMelnikov/ddi | 98488491f94fe0f051d54997aee149198a98770f | 71675b586ebf65e883355058af6522a2e4ad0688 | refs/heads/master | 2021-05-06T08:32:04.150962 | 2017-12-12T19:31:38 | 2017-12-12T19:31:38 | 114,029,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | import argparse
from actions.TfidfLearningAction import TfidfLearningAction
from actions.FrequencyAction import FrequencyAction
from actions.TfidfClassificationAction import TfidfClassificationAction
from actions.TfidfAction import TfidfAction
from actions.PreprocessAction import PreprocessAction
commands = dict(freq... | [
"m.p.melnikov@gmail.com"
] | m.p.melnikov@gmail.com |
687a968db4862eb5a0e8ac433902ebf3f521252b | e8d371d8d572e0aa3895c3109f6a68bc6c594af1 | /web_scraping/selenium_fighter.py | b7886759333981efaa3b5e0cce59914087055240 | [] | no_license | kshitijjain91/problem-solving-python-new | 9c27dfe418763c233002531fa3d2f6f7285767e1 | f40de1982ce4a3f69e826e11ae18a4a693d77fdb | refs/heads/master | 2021-01-13T03:11:03.539041 | 2016-12-27T04:42:19 | 2016-12-27T04:42:19 | 77,426,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0
from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0
# Create a new instance of the Firefox driver
driver = webdriv... | [
"kshitijjain91@gmail.com"
] | kshitijjain91@gmail.com |
90c7d035efeb2f6dcb6eacddce89a7954e4a30bc | 2f3cb8a1c66f1dc2927299d2fd2e9469068d4fc0 | /create_min.py | ac798c85aa5342ea8c29a90b47ab9e1de75510bd | [
"MIT"
] | permissive | NeilBostian/x86-Quine | ed158aab74c7501f8f288b01ddeb811c482b7ffc | 065ecf515885460d1257f309372e397ceac09646 | refs/heads/master | 2022-08-01T12:46:22.182272 | 2020-05-27T01:29:17 | 2020-05-27T01:29:17 | 267,183,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | import re
if '__main__' == __name__:
re_comment = re.compile(r"^(.*);.*$")
re_newline = re.compile(r"^(.*)\n$")
re_whitespace = re.compile(r"^\s*$")
def process_line(line):
m = re_comment.match(line)
if m:
line = m.groups(1)[0]
m = re_newline.match(line)
if... | [
"neil.bostian@gmail.com"
] | neil.bostian@gmail.com |
f4ef588066795e7d66f9a0fd519298849bc2b657 | dd3a3f7f5fa6db42f879a8fb3c56667b0cdc32dc | /core/migrations/0002_alter_pontoturistico_aprovado.py | 8415efa755155e763e98ad46caa8eb0cfe6d1c95 | [] | no_license | paulo9405/DRF_ponto_turistico_api | 09895f611603366a56e3fc872e5fa9446925a340 | d288c803e410a318b8dbb9e373d1e24cbc732a5c | refs/heads/main | 2023-07-08T03:11:44.550779 | 2021-08-04T14:34:32 | 2021-08-04T14:34:32 | 390,068,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Generated by Django 3.2.5 on 2021-07-20 11:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='pontoturistico',
name='aprovado',
... | [
"paulo.ricardo1137.pr@gmail.com"
] | paulo.ricardo1137.pr@gmail.com |
589f7ff120d540392566e41de19dfc82f4334952 | 33e3af05a6339c9dd9e15fdc97b0fb1fb6266465 | /1616.分割两个字符串得到回文串.py | 2667e3c311d417d29d6a0f9c3b6c91021c4c4dd9 | [
"MIT"
] | permissive | cpingor/leetcode | 78b4a8d30ca790dfca8236e5005c5c3db30ec8f4 | d946f7c5941255b940d9b8c4b214b176584e51ed | refs/heads/main | 2023-08-18T09:27:40.993959 | 2021-10-10T13:16:02 | 2021-10-10T13:16:02 | 387,167,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | #
# @lc app=leetcode.cn id=1616 lang=python3
#
# [1616] 分割两个字符串得到回文串
#
# @lc code=start
class Solution:
def checkPalindromeFormation(self, a: str, b: str) -> bool:
left = len(a) // 2 - 1
left = min(self.is_palindrome(a, a, left), self.is_palindrome(b, b, left))
left = min(self.is_palindrome... | [
"chipingchuan@hotmail.com"
] | chipingchuan@hotmail.com |
1f90091ef85d316579233d6f60283809bc6c59e4 | cc1eac077f5f4f665533fcf9f7347b673988c4b9 | /newmodule.py | c58509d167f6c5d562faae390c1d8d1792492ac8 | [] | no_license | KR0NTAB/RGC | b14498f17fca028cd58f3a32108a6dcd582bca18 | a8523b6bbc7bf8da92d9179b7074a96730e1cd16 | refs/heads/master | 2020-06-02T22:01:00.032358 | 2011-01-14T19:46:45 | 2011-01-14T19:46:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | print "I'm a new module"
print "I'm cool!"
print "the third line"
| [
"anton.c@live.com"
] | anton.c@live.com |
aa29ccb495481a8d4f885361df16652ad74d0cb9 | c96700961f09bbac141858d98141428d643322e8 | /tests/components/search/test_init.py | 57d2c365e71a42fe6199b79cbe79c1b797f607ac | [
"Apache-2.0"
] | permissive | DerMetzger69/core | b3b6f30535f2e607e08dd6544e130b452f44c3a1 | 02a82d3f00c610f94d3366cc34540bdfa94a2c8e | refs/heads/dev | 2023-03-18T10:42:52.605222 | 2021-03-13T09:53:26 | 2021-03-13T09:53:26 | 345,092,595 | 1 | 0 | Apache-2.0 | 2021-03-06T13:32:49 | 2021-03-06T12:49:54 | null | UTF-8 | Python | false | false | 10,432 | py | """Tests for Search integration."""
from homeassistant.components import search
from homeassistant.helpers import (
area_registry as ar,
device_registry as dr,
entity_registry as er,
)
from homeassistant.setup import async_setup_component
from tests.common import MockConfigEntry
from tests.components.bluep... | [
"noreply@github.com"
] | DerMetzger69.noreply@github.com |
a59023c73e4c83a56165318808a850c0a4773679 | a1905ff01ec05d860480b1ec6624c51759b55f9b | /core/migrations/0002_client.py | 35acfe33f6b1658a1480381b91965a1cf0b3a602 | [] | no_license | mthlimao/DjangoFirst | ac1a57685924b86724696c8edb7d1f89bfc86335 | e696f71e4ddc9596046ecf7058416c27a4dd875a | refs/heads/master | 2023-03-10T10:31:06.042017 | 2021-02-26T15:34:40 | 2021-02-26T15:34:40 | 342,607,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # Generated by Django 3.1.7 on 2021-02-25 19:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Client',
fields=[
('id', mode... | [
"mthlima@poli.ufrj.br"
] | mthlima@poli.ufrj.br |
ce7ad080e2c9a94a6ecefbb14a754599ca303ed1 | 2f6da5dc2dd05e0a9ad8310e2721df56a00d29ef | /apps/xfzauth/migrations/0001_initial.py | 15b55649dfaa3aa7a35c4c41e9dcc68cb0ca97e1 | [] | no_license | Qinyhao/xfz | 274b481c68a6e571b759482bfb78e17663db3e55 | 5f3faffd9fad875b0dbb09272fd93cf48137e352 | refs/heads/master | 2022-12-13T09:46:42.900424 | 2019-10-02T01:34:09 | 2019-10-02T01:34:09 | 212,029,607 | 1 | 0 | null | 2022-12-08T06:13:50 | 2019-10-01T06:44:58 | Python | UTF-8 | Python | false | false | 1,897 | py | # Generated by Django 2.2.4 on 2019-09-19 08:47
from django.db import migrations, models
import shortuuidfield.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
... | [
"1042816768@qq.com"
] | 1042816768@qq.com |
1057765bd210fa0face28a8efa2798eeb147f722 | b11c09407c59393e27d8cfba46ffab9c576969ae | /z_download_francischan.py | 3a4c58d333a846b56b59f760d631b2477accbfc0 | [] | no_license | emeth-/emethplayer | 296cf277802ddf1854db66959bcfe36522153a9a | 6d4066f0e5b8d8e4a929c43e0bc5d93918ff82a3 | refs/heads/master | 2021-01-19T09:44:52.482389 | 2013-09-01T03:17:27 | 2013-09-01T03:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,221 | py | import urllib2, urllib, os
import httplib
import json
def extract_data(html):
data = {'title':'', 'description':'', 'scripture':'', 'church':'', 'file_loc':'', 'file_loc_s3':''}
if 'resourceLinks' in html:
p = html.split('resourceLinks')[1][:220].replace(' <a href="/index.php?id=305&file=', "").... | [
"seanybob@gmail.com"
] | seanybob@gmail.com |
6352feb72a2b9d647522c254a16f9af534795611 | fc802a0cabc5cd8d93b62185a08f3c465c38df2a | /tools/profile.py | 8100e07c5ad27cb592ee1e4ea413a4f8e52bdf2c | [
"BSD-3-Clause"
] | permissive | astanway/osquery | 861d72e39a5c3daca8022236f4aa40dccfb38893 | 9effc14903589b33d3d81c10ee1b19b359aec44c | refs/heads/master | 2021-01-12T21:03:02.718690 | 2014-11-10T21:14:48 | 2014-11-10T21:14:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,437 | py | #!/usr/bin/env python
# Copyright 2004-present Facebook. All Rights Reserved.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
try:
import argparse
except ImportError:
print ("Cannot import argparse.")
prin... | [
"teddy@prosauce.org"
] | teddy@prosauce.org |
a3644cf3157aa4e51f12b00a4e14fe4aabe39792 | a1b522a663eb23d1fecdc215851005d82fdc7703 | /selenium_pytest_demo/test_user_password.py | 9bce041aa5c5dc19284136cf04b8f2b2c8eba9cd | [] | no_license | answermvp/web_ui_test | bdc4f8ad8c9a9e54be828a14a06c01ee46bbb3d7 | 85e0893bbf62fcfea49ecdf52ff59882fa9932c4 | refs/heads/master | 2020-04-14T04:48:34.005030 | 2018-12-31T06:51:59 | 2018-12-31T06:51:59 | 163,645,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | import pytest
import json
# fixture
class TestUserPassword(object):
@pytest.fixture
def users(self):
return json.loads(open('./users.dev.json', 'r').read())
def test_user_password(self, users):
for user in users:
passwd = user['password']
assert len(pass... | [
"answer_dp@163.com"
] | answer_dp@163.com |
4414071dbcbc0774e0e10c7e9250b9a50c420220 | c87a4c661f6093b38ff7571b482898e88a078e2b | /quiz/models.py | d29f045fe294a5d3ef722435984c022b2ea92a83 | [] | no_license | CharanR24/Quiz-App-Using-Django | aaa3e36e8f45f0577a1547ca38be70efb1d7ff66 | c8aa03462c2da87bad23265af8298e203622f79a | refs/heads/master | 2023-01-15T21:33:29.423472 | 2020-11-25T01:50:55 | 2020-11-25T01:50:55 | 315,796,967 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,639 | py | import re
import json
import csv
from django.db import models
from django.core.exceptions import ValidationError, ImproperlyConfigured
from django.core.validators import MaxValueValidator, validate_comma_separated_integer_list
from django.utils.timezone import now
from django.conf import settings
from django.utils.tran... | [
"charanravichandran24@gmail.com"
] | charanravichandran24@gmail.com |
fa4069b3aae284cd85d86fe63a1219a3c5b21221 | 2f66b4070ee313fda229f6d7b9984eac8447c76c | /0108_etsy_1.py | 024e79660fe7376d8040068ea7e596c93bef7f4b | [] | no_license | hqpr/esty | 207b1b871bfb4d49e3fd8392295f092515aeb38e | 2c51040e1a9269a53b60c21271f8cbac5ff8361b | refs/heads/master | 2020-05-18T04:12:36.027545 | 2018-02-09T17:54:38 | 2018-02-09T17:54:38 | 23,795,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'o.dubnyak'
__version__ = 1.0
"""
https://github.com/geduldig/TwitterAPI
https://dev.twitter.com/docs/api/1.1
https://hootsuite.com/developers/api/oauth2
consumer_key = "IqoIbOEZn4MVJJ5DePtvA"
consumer_secret = "MLdKfOS65GN7gDn5XSJyO9sjgGdcK1rUZMuLW2uPZg"
a... | [
"adubnyak@gmail.com"
] | adubnyak@gmail.com |
3a747dbe6324f8ee0d8ec7fda4c8284b76e6ed1b | d61142cbb171f4aa9d7b792bd29a0068200cd36f | /tests/mock_app/blueprint_one/__init__.py | c3a6bc399e084ef952013bd4ebbd3825a89f995b | [
"MIT"
] | permissive | joelcolucci/flask-registerblueprints | 1f9a0187e63d4b956a550468b8def190b569a09b | c117404691b66594f2cc84bff103ce893c633ecc | refs/heads/master | 2023-01-23T04:20:20.210667 | 2016-10-14T23:09:24 | 2016-10-14T23:09:24 | 70,648,263 | 5 | 0 | MIT | 2022-12-26T19:57:31 | 2016-10-12T00:58:44 | Python | UTF-8 | Python | false | false | 30 | py | from api import blueprint_api
| [
"joelcolucci@gmail.com"
] | joelcolucci@gmail.com |
c4791c2e825413ab4394faae014a9ff440211360 | aacd813df79d65fda68fafc7f171c689e5dbe8e1 | /kobert_transformers/kobert_transformers/utils.py | 1a6580a439779f850974be84b99148a96a177a46 | [
"Apache-2.0"
] | permissive | KKbeom/DistilKoBERT | e685a4407cebbf63886634d7b79222c637cbf9f0 | b09f2b78b0d554be4885b5a9042a41e4ca76fd78 | refs/heads/master | 2020-12-10T05:11:59.909126 | 2020-01-12T11:02:45 | 2020-01-12T11:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from .tokenization_kobert import KoBertTokenizer
def get_tokenizer():
return KoBertTokenizer.from_pretrained('monologg/distilkobert')
| [
"adieujw@gmail.com"
] | adieujw@gmail.com |
32cfa54f40707c030336eea1fd9e4f3640daf9e6 | c6f9aae90a71a621a00c606d1d5c6b2c2feb4360 | /comparison.py | 4d27d029e8105f413e720568a6bbaba6c876ad92 | [] | no_license | yungkk98/korean_music_classifier | 5114ae1a511d04e5498fb31f3fc9ed4b2cc8a586 | 0dd30172bc3db6f56a4910d2e708226a0c66340f | refs/heads/master | 2020-03-18T21:41:08.350311 | 2018-05-29T12:52:57 | 2018-05-29T12:52:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,272 | py | import numpy as np
import statistics
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.datasets import make_classification
from sklearn.neural_network import MLPClassifier
from sklearn.neighbors import KNeighborsClassifier
from sklearn.svm import S... | [
"noreply@github.com"
] | yungkk98.noreply@github.com |
3db5355de3a03eca4dd6b1722acf89864c6867ab | e36c5a91306f8d8cf487368d3a1dfae4c03da3c0 | /build/navigation/rotate_recovery/catkin_generated/pkg.develspace.context.pc.py | 00e97c42a68da3f3841d2d8e40e6199bfe123bf1 | [] | no_license | DocDouze/RobMob | 84ae5b96a16028586c9da2008f7c7772bdaa1334 | 6a2e7505eb2207d61b1c354cfd255075b1efbc73 | refs/heads/master | 2020-04-11T07:24:28.958201 | 2018-12-17T11:56:54 | 2018-12-17T11:56:54 | 161,607,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/aubailly/Bureau/RobMob/src/navigation/rotate_recovery/include".split(';') if "/home/aubailly/Bureau/RobMob/src/navigation/rotate_recovery/include" != "" else []
PROJECT_CATKIN_DEPENDS = "costmap_... | [
"quentin.aubailly@gmail.com"
] | quentin.aubailly@gmail.com |
9f66502d6f8856bbb13b38d5f97327f839f6260c | d027466f39070797a13c0210c59b7a52ad210f91 | /grafana_dashboards/components/projects.py | 33d1affcf12f992b15242e9f4eca0aa04ba979ca | [
"Apache-2.0"
] | permissive | jakubplichta/grafana-dashboard-builder | 4d3c7e64686128dba19b4dd6c9cfd71e2acccb1c | fa6bc51d7f1668d329dacd7e717b1f61eb35756e | refs/heads/master | 2023-06-25T14:36:34.185076 | 2023-06-18T19:42:28 | 2023-06-18T19:42:28 | 36,573,600 | 149 | 44 | Apache-2.0 | 2023-06-18T19:42:29 | 2015-05-30T20:02:10 | Python | UTF-8 | Python | false | false | 1,678 | py | # -*- coding: utf-8 -*-
# Copyright 2015-2019 grafana-dashboard-builder contributors
#
# 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 ... | [
"jakub.plichta@gmail.com"
] | jakub.plichta@gmail.com |
eaa0862ac25519a84af0807c03bc01c1fa2de9ea | 72063d10710268a8dfc45aee02f5afdc1890dd5a | /Python/connect.py | 72dfe9e4fd85115c728129ac79f76477aa579b84 | [
"MIT"
] | permissive | RitRa/Little-Python-application-gmit-semester-3-2019 | 580c8b5e45ed8f4a2ab23f6a8404afa4fec93826 | 9c9ff525363785339db1a4cb2b8e12c23547be86 | refs/heads/master | 2020-05-20T08:02:43.666047 | 2019-05-17T17:55:02 | 2019-05-17T17:55:02 | 185,465,498 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,731 | py | import pymysql.cursors
# Connect to the database
conn = pymysql.connect(host='localhost',
user='root',
password='Password!',
db='world',
charset='utf8mb4',
cursorclass=pymy... | [
"noreply@github.com"
] | RitRa.noreply@github.com |
90862e1d171c8a187214dbacae754a9ed607ac2b | 934ab23486fa1357f65bd46a6bea18b18713ba5f | /ML/scraping/losers/monthly_top_losers.py | eb2476b61ed17613a6b42cbf9fe3b07312111748 | [
"MIT"
] | permissive | CodeChefVIT/Stocker | 80b249b5c2715fcdd274d0cf319a30a14191182c | a9bcaa7458240241495d2f88acb396640ab2b333 | refs/heads/master | 2023-01-20T02:23:45.591327 | 2020-11-22T03:29:47 | 2020-11-22T03:29:47 | 277,299,425 | 2 | 4 | MIT | 2020-11-22T03:29:48 | 2020-07-05T12:39:12 | Jupyter Notebook | UTF-8 | Python | false | false | 1,408 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 30 00:01:33 2020
@author: pranjal27bhardwaj
"""
import requests
from bs4 import BeautifulSoup
import pandas as pd
import matplotlib.pyplot as plt
def monthly_losers():
dfs = pd.read_html('https://money.rediff.com/losers/bse/monthly',header=0)
... | [
"pranjalb2709@gmail.com"
] | pranjalb2709@gmail.com |
cbbab1f660f4fd8b9bd2e98e3c8d6da7bdade02b | f243198dcacd7362499ccfc27cb9fefdc763ba47 | /diff/RandomFrameDiff.py | 9ecd34728b1426525aad30b6ecf7ee6a92f37cd2 | [] | no_license | fletch22/kaggleDeepFakeDetection | a60dbd170660de99567a74aa5b5e246038cedd9d | 592be28729613ae5ebdfd80af1fc1c3ccd18600b | refs/heads/master | 2022-04-19T16:47:19.359334 | 2020-04-08T01:53:22 | 2020-04-08T01:53:22 | 233,509,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | import numpy as np
class RandomFrameDiff():
def __init__(self, image: np.ndarray, frame_index: int, x: int, y: int, height: int, width: int, score: float):
self.image = image
self.frame_index = frame_index
self.x = x
self.y = y
self.height = height
self.width = width
self.score = score
| [
"chris@fletch22.com"
] | chris@fletch22.com |
959cbc67c9b7a1374f42dae6b177f64978ea49c6 | eb297ff1e0011438fd184cc338b3fb86859b81c9 | /Chapters 18 to 20/port_book/ll_env/Scripts/django-admin.py | c61bd159b5643f7569b205d7e0a93224e7dd107c | [] | no_license | mynameisbenzo/PythonCrashCourse | c73a4505d9cdfe4df78e3ed01adb3491debf8a9b | 831a9962a3c6cab53ecfdb1d2cceb0dd2d9c5a0a | refs/heads/master | 2021-04-12T08:13:51.772957 | 2018-05-02T05:54:57 | 2018-05-02T05:54:57 | 126,091,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #!c:\users\me\desktop\python\pythoncrashcourse\chapters 18 to 20\port_book\ll_env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"lorhernandez@csumb.edu"
] | lorhernandez@csumb.edu |
3dcdbaa3bf98fb662eb2a35b4e341b5b19b624dc | d638bbf120a54a02643d728b7c2c441efa6aacb7 | /cogs/basic.py | 72531f97e8757e865993f43cf43f8dbe4af54148 | [
"MIT"
] | permissive | MarkFrankle/DiscordPicBot | 72a13c25e6c6d9b07d999f1017aea6a46e60fb10 | 7b953ead134475862bff99f5b0eb346508651c73 | refs/heads/master | 2020-03-19T01:11:23.195445 | 2018-05-31T03:56:51 | 2018-05-31T03:56:51 | 135,528,472 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,841 | py | import praw
import discord
from discord.ext import commands
import math
import random
# discord.py calls groups of commands cogs
# cogs can also be handlers for different types of events
# and respond to changes in data as they happen
# setup
usedLinks = []
class BasicCog:
def __init__(self, bot):
self.b... | [
"mfrankle@uw.edu"
] | mfrankle@uw.edu |
24d9c572f9c6ea820fb911ea4bcf16d134dd2b43 | 52d9b1152c23c7725884c0a25f71da1e9f5fbecc | /conferences.py | f09cbacac848ec23c48709d3f28f9f428618cd61 | [] | no_license | inwyrd/bibformatter | 6680986496afae7e25e356bb5ab3068cd04b8059 | e3ddd54327861bdc414bcacacf9c74879dc07137 | refs/heads/master | 2021-01-01T16:13:15.172142 | 2014-11-21T00:25:31 | 2014-11-21T00:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,701 | py | """List of canonical names for conferences.
Keywords are ordered by increasing specificity.
Example:
Security and Privacy (assumed IEEE S&P)
Web 2.0 Security and Privacy (assumed W2SP)
"""
CONFERENCE_KEYWORDS = [
[["Symposium on Architectures for Networking", "ANCS"],
("Proceedings of the ACM/IEEE Symposium... | [
"kurtthomas@google.com"
] | kurtthomas@google.com |
a06fd4836b1a818695a509b6c189ae422c8091cb | 93f98dde611c138055629ae3b3b2cb1e301adc49 | /DS/urls.py | f5caa443ef573ed57d9fdef5444e09360181e647 | [
"BSD-3-Clause"
] | permissive | gitter-badger/djangochannel | ebd9a69bef62376d9877a5aece3f54b211880736 | f9e33254739457c461e84b66879172007512f9b0 | refs/heads/master | 2020-08-06T01:43:26.679657 | 2019-10-04T10:16:32 | 2019-10-04T10:16:32 | 212,788,313 | 0 | 0 | BSD-3-Clause | 2019-10-04T10:18:48 | 2019-10-04T10:18:47 | null | UTF-8 | Python | false | false | 2,177 | py | from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.http import HttpResponse
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic import TemplateView
from backend.blog.sitemap import PostSi... | [
"l2maximum@mail.ru"
] | l2maximum@mail.ru |
02e1a00b37345e850dd03bb5a86d0c9ed8846a8c | 6385e650e1112599b76ad508a12cfb221fe8a716 | /susy/script/runbatch/filesHadder.py | 7c5540bee16b29c121798bd40ae44da95c47ac8e | [] | no_license | fanxia/ana2016 | 663aabedba3c8de9f747c2e4edfb74f879d47ad3 | 60e14f64778f69dab0008f775f8639527d9be917 | refs/heads/master | 2021-01-12T13:08:08.402117 | 2018-10-24T02:47:05 | 2018-10-24T02:47:05 | 72,113,815 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,405 | py | #!/usr/bin/env python
#./filesHadder.py Mar08
import os, re
import commands
import sys
import math
date=sys.argv[1]
#MClist=['TTJets_DiLept','TTJets_SingleLeptFromT','TTJets_SingleLeptFromTbar']
#MClist=['TT','TTGJets','TTWJetsToLNu','TTWJetsToQQ','TTZToLLNuNu','TTZToQQ','W4JetsToLNu','DYJetsToLL','WGToLNuG','WW','WZ'... | [
"fanxia08@gmail.com"
] | fanxia08@gmail.com |
8f291d75a4c4080d178001ad4f28b5f4b5f686a4 | 4a2d484c1cc7023cf984e936ea64f8b04b5a794b | /demo5.py | 97ab5bc4a905e950480cf885aaaaec815f3ffcf6 | [] | no_license | zsu13579/pptgen | 3466aef81fb59d101cf7c90950ddaae70d10fad1 | 2a6692a451b97b8f8c8386f8d3de83d751372d0e | refs/heads/master | 2020-07-19T13:03:02.340435 | 2016-09-07T02:24:43 | 2016-09-07T02:24:43 | 66,757,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from pptx import Presentation
from pptx.enum.shapes import MSO_SHAPE
from pptx.util import Inches
prs = Presentation()
title_only_slide_layout = prs.slide_layouts[5]
slide = prs.slides.add_slide(title_only_slide_layout)
shapes = slide.shapes
shapes.title.text = 'Adding an AutoShape'
left = Inches(0.93) #... | [
"jacklvabcd@163.com"
] | jacklvabcd@163.com |
2296045aadeec7074e22751268bd354962d7a6e3 | d9b0248186471079022d0db2af5f3f16847a2258 | /board/models.py | ddc05a259e2a2d7e73c67e95e545e9259e5839b9 | [] | no_license | jungting20/-django- | 1ec04f6b5ff89fd404d7a9d8782e8e55c9a389b9 | 9af46cf359990f8d82aaa91548a62eb86564465c | refs/heads/master | 2021-05-15T02:57:11.623526 | 2017-10-07T09:37:09 | 2017-10-07T09:37:09 | 106,086,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | from django.db import models
from django.db.models.deletion import CASCADE
from django.db.models.fields import DateTimeField
from django.core.urlresolvers import reverse_lazy
from member.models import User
class Board(models.Model):
image = models.ImageField(upload_to='%Y/%m/%d/orig',blank=True,null=True)
au... | [
"jungting20@gmail.com"
] | jungting20@gmail.com |
33d359b45b72b589770d7f1a0a8508da682da219 | e6200a978e64e4be068c4664050c82bc1f2dde8a | /address/lib/python2.7/site-packages/localflavor/pk/forms.py | 700d42a23fd9fa6e67381c7ec6b478371d777bba | [] | no_license | avs8/address | 5979311445273954326cface402f60c2df2753c2 | 62f92355fc282a47e1ed39c743430d2142e6f3c0 | refs/heads/master | 2021-01-01T18:42:07.593555 | 2017-11-28T14:50:28 | 2017-11-28T14:50:28 | 39,541,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | """Pakistani-specific Form helpers."""
from __future__ import unicode_literals
import re
from django.forms import ValidationError
from django.forms.fields import CharField, RegexField, Select
from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _
from localflavor.compat... | [
"ajitavsingh_8@yahoo.com"
] | ajitavsingh_8@yahoo.com |
6a73711d13a7fda4beb2f22832630ed938e377e0 | 739f160655268e242d8daae10df2d858c7ce11b5 | /webot/data.py | c7d7c393ad3d7873e8fb60e7d8e75b6a6d11ea34 | [
"MIT"
] | permissive | csqner/Webot | 760f9e22dbd6ef5f208090e92fcf37737da65f2c | 6bb7b3980fab34d9c03d27390a4a0acbd3d1372c | refs/heads/master | 2022-04-24T00:18:10.521288 | 2020-04-29T07:43:24 | 2020-04-29T07:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,271 | py | """
基础过程
"""
API_target = "https://wx.qq.com" # 主页
API_target_login = "https://login.wx.qq.com" # 登录
API_jsLogin = f"{API_target_login}/jslogin?appid=wx782c26e4c19acffb&redirect_uri={API_target}/cgi-bin/mmwebwx-bin/webwxnewloginpage&fun=new&lang=zh_CN"
API_qrcode = f"{API_target_login}/qrcode/" # 二维码
API_... | [
"aoii103@126.com"
] | aoii103@126.com |
70054672c56c8027712f7a9016fddbe96debf347 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03085/s105066382.py | 5ca148b3207680bf521622653edd87455c2d3d1c | [] | 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 | 98 | py | b = input()
if b=="A": print("T")
elif b=="T": print("A")
elif b=="C": print("G")
else: print("C") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
89cef373a6b91c3ff9293f001aefe1d221fb5795 | e9cd5b115858c57a805553fd27f0fc831297b779 | /weak_disentangle/tensorsketch/utils.py | 8c288585e745c9dd64c2ef11d9d70d5bd62697cc | [
"Apache-2.0"
] | permissive | dtch1997/disentangle-gen | 516fde31b360ca68bd35d77dddf9ee0f4ce3432e | 9c50dcb09063db018aa0090a564f96b798125a2f | refs/heads/master | 2023-04-06T04:52:18.349321 | 2019-12-06T08:42:36 | 2019-12-06T08:42:36 | 220,395,617 | 0 | 0 | Apache-2.0 | 2023-03-24T23:31:47 | 2019-11-08T05:48:07 | Python | UTF-8 | Python | false | false | 3,724 | py | # coding=utf-8
# Copyright 2019 The Weak Disentangle Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"dtch009@gmail.com"
] | dtch009@gmail.com |
e6bad036db699b1e75ec63b62ffcaf86a99693cf | 3119bda86736a216b5847b9d00fd7f65ea7f8646 | /MHD/FEniCS/MHD/Stabilised/SaddlePointForm/Test/SplitMatrix/ScottTest/MHDprec.py | a6a6fc14980282f66177b6b5105afa481026324c | [
"MIT"
] | permissive | wathen/UBC | 5004f0c1c81d0ab931d3269d09b562b78553af59 | 35524f40028541a4d611d8c78574e4cf9ddc3278 | refs/heads/master | 2021-09-18T15:50:28.820698 | 2018-07-16T22:44:30 | 2018-07-16T22:44:30 | 56,339,239 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 31,873 | py | import petsc4py
import sys
petsc4py.init(sys.argv)
from petsc4py import PETSc
import numpy as np
from dolfin import tic, toc
import HiptmairSetup
import PETScIO as IO
import scipy.sparse as sp
import MatrixOperations as MO
import HiptmairSetup
class BaseMyPC(object):
def setup(self, pc):
pass
def reset... | [
"mwathen@cs.ubc.ca"
] | mwathen@cs.ubc.ca |
d778743a397c2fe79bba785b1f4d109a09e3251c | 223593dfc133e6fdc96f95773a3a7e235b00e637 | /essentials/chatsocket.py | 267b1dc414250cda379e3c6da7787af766f6cfe5 | [] | no_license | ronts2/chat | 7a1daaea232074310e28f54720be49bf9612859d | c4ee61f155693b47b6d53575eabab20cb43443d2 | refs/heads/master | 2021-07-09T09:20:13.473097 | 2017-10-04T12:47:42 | 2017-10-04T12:47:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,138 | py | """
This module contains the ChatClient class, used for client-server communication.
The ChatClient follows the communication protocol: send size of data - then the data itself.
"""
import socket
import jsonpickle as pickle
from threading import Thread
from time import sleep
import file_handler
import messages
import ... | [
"ron.tsip1@gmail.com"
] | ron.tsip1@gmail.com |
39cbec8d577289fe1474fea741e0e59411aca1c7 | 7d0adad278552c3e5027f06fc59e03c74709e3f4 | /json_test.py | 2811bb7ba943971a188448466d9d43f7c618f543 | [] | no_license | jimhorng/python-test | b6796392b6cec65e413c9dc36b4d3c41dbd6d17b | 3549f6f992a9387d1d218c826b758729e05da04a | refs/heads/master | 2020-05-19T16:56:17.261650 | 2015-03-19T06:26:43 | 2015-03-19T06:26:43 | 22,061,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | '''
Created on Feb 26, 2014
@author: jimhorng
'''
import json
from multiprocessing import Manager
d_proxy = Manager().dict()
d_proxy['test1'] = 123
d_proxy['test2'] = {'foo' : 123}
print type(d_proxy)
print type(d_proxy.items())
print d_proxy['test2']
print type(d_proxy['test2'])
print json.dumps(d_proxy['test2'])... | [
"jimhorng@qnap.com"
] | jimhorng@qnap.com |
000e84959aaa01493e19b1f31e423080e0da4188 | 6e99e7ee2ee3cc8c68e6df043293c7d2b614356d | /lib/gzip_assets.py | 009ef35eafc5398ea328168aa1acc1f3b81fbc6b | [] | no_license | sfchronicle/homelessness-map | 68dd6bec1b6b7abbaa90850b21042982e60aaaad | aa009ee5774d53c27a54da6731832beb74e5dc22 | refs/heads/master | 2021-01-16T22:08:55.542077 | 2015-10-28T18:01:18 | 2015-10-28T18:01:18 | 44,569,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | #!/bin/env python
import os
import gzip
import shutil
class FakeTime:
def time(self):
return 1261130520.0
# Hack to override gzip's time implementation
# http://stackoverflow.com/a/264303/868724
gzip.time = FakeTime()
project_dir = 'homelessness'
shutil.rmtree(os.path.join(project_dir, 'gzip'), ignore_... | [
"aaron.colby.williams@gmail.com"
] | aaron.colby.williams@gmail.com |
0ef1c7f6f37da9f059d220e414cfbdf4b7a58513 | 345c14ae0f990841c0323b8347bda6a27236ced2 | /apps/dialog15_jiangliziji.py | d33e5dc2ac88fa219abbb98fce9bc9a9eb07f794 | [] | no_license | wdc63/personal-RPG | 03bdd7c6869a23f20ea3e403a2fe90b00249f881 | c9d7db50eacf815ff44ce79f751737e195efc2d3 | refs/heads/master | 2020-05-21T16:44:52.575847 | 2016-12-11T16:52:40 | 2016-12-11T16:52:40 | 41,748,103 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,809 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dialog15_jiangliziji.ui'
#
# Created by: PyQt5 UI code generator 5.5
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog... | [
"214801017@qq.com"
] | 214801017@qq.com |
fe854a3a397e4ad98c259bae3d3b8c85e54672c7 | dda40d877091952a016409d9ae104e2e5568f4b6 | /blog/migrations/0001_initial.py | 58e203f76bf4d4f41ae0cbd9fc87863dd974f6c0 | [] | no_license | Ochika3310/my-first-blog | 3e4130000ddbe6b3d40c6c2c819e79b9c03ccdd3 | 3919367bc416886cf3b55b9e252010ca90b6d7d2 | refs/heads/master | 2020-09-27T08:54:23.365165 | 2019-12-08T08:59:08 | 2019-12-08T08:59:08 | 226,478,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.2.6 on 2019-11-24 10:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"noanoa0g03292@gmail.com"
] | noanoa0g03292@gmail.com |
8fad9a8a9923ddda823b8b2ffdd4378d64dc08be | b0766b974cf8919b636a24d8998ebd5747bde8bd | /tests.py | ec200e53030cf43a52e7d436bae632c941be0324 | [
"MIT"
] | permissive | marciomazza/Duolingo | 02b5ce3cd91a3a4742d220850140b98d02fad34d | 74dd96fb7ee9f1b8b2afd9c166fb40e848d72095 | refs/heads/master | 2021-01-13T16:02:15.666025 | 2016-12-17T18:47:32 | 2016-12-17T18:47:32 | 76,740,430 | 0 | 0 | null | 2016-12-17T18:37:36 | 2016-12-17T18:37:36 | null | UTF-8 | Python | false | false | 2,768 | py | import os
import unittest
import duolingo
USERNAME = os.environ.get('DUOLINGO_USER', 'kartik')
PASSWORD = os.environ.get('DUOLINGO_PASSWORD')
class DuolingoTest(unittest.TestCase):
lingo = duolingo.Duolingo(USERNAME, password=PASSWORD)
def setUp(self):
self.lang = self.lingo.user_data.learning_langu... | [
"montheanthony@hotmail.com"
] | montheanthony@hotmail.com |
246fa7fe510fafbeb202db62ebca8d435612f783 | 0ea4636495ffb83544819df977967c5c4f11347a | /flip_heap.py | 22ac73c0b52cb78704e91ec9026f1632b9de9448 | [
"MIT"
] | permissive | fregulationn/SANM | eb823ae72bd3aac41c5179a320cfc937219b8fe0 | 7a2580893da32eefcab2d77138fda0f27068dd3c | refs/heads/master | 2022-12-15T12:50:05.626346 | 2020-01-09T13:00:58 | 2020-01-09T13:00:58 | 232,237,658 | 1 | 2 | MIT | 2022-12-08T05:25:27 | 2020-01-07T03:49:37 | Python | UTF-8 | Python | false | false | 144 | py | import cv2 as cv
from PIL import Image
im = Image.open("/home/junjie/Downloads/addd.jpg")
out = im.transpose(Image.FLIP_TOP_BOTTOM)
out.show() | [
"fregulationn@gmail.com"
] | fregulationn@gmail.com |
524c4d523fb8b8196bbb7bfd0a58ce7338f3040a | 79ab25621fad01a72afe952cc2ce0d1d78be9651 | /evaluate.py | d064606d01708a7d55c586318e0be5870e466eff | [
"Apache-2.0"
] | permissive | juhongm999/hpf | 598056e8787cbf52f01a26ed4755a93843c44592 | 5befc6f29411ad81c2f022fa9c6d36dc88629810 | refs/heads/master | 2022-10-06T17:24:59.856563 | 2022-09-14T00:55:07 | 2022-09-14T00:55:07 | 210,576,626 | 82 | 15 | null | 2022-09-14T00:54:52 | 2019-09-24T10:34:13 | Python | UTF-8 | Python | false | false | 3,763 | py | r"""Runs Hyperpixel Flow framework"""
import argparse
import datetime
import os
from torch.utils.data import DataLoader
import torch
from model import hpflow, geometry, evaluation, util
from data import download
def run(datapath, benchmark, backbone, thres, alpha, hyperpixel,
logpath, beamsearch, model=Non... | [
"juhongm999@gmail.com"
] | juhongm999@gmail.com |
cb48ef2c6152a119590df8e9d113d099a4b36092 | 6ed05164fc54018ac2b80bfbc9ce08ca49e90898 | /ext14.py | 5a1a7995a99abe9023c89e6cc282d5dc4b9347df | [] | no_license | pengxie/python-learing | 02fc99d2c8817619b7fae2676dd237a8f2761604 | 448bb8c628635be03d3dfcebe9bbe2bcd9cd5063 | refs/heads/master | 2016-09-06T07:40:40.274158 | 2014-08-12T09:18:51 | 2014-08-12T09:18:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | # -*- coding: utf-8 -*-
from sys import argv
script, user_name = argv #一个变量为脚本名,二为第一个变量名
prompt = 'ubuntu@localhost: '
print type(prompt)
print "%s" % (script)
print "Hi %s, I'm the %s script." % (user_name, script)
print "I'd like to ask you a few questions."
print "Do you like me %s?" % user_name
likes = raw_inpu... | [
"pengxie@anjuke.com"
] | pengxie@anjuke.com |
7b57490969b42931c6bbb1861b27967bc327a16f | 300eb733976a31d73a68ddf20d986ba6aceb6ef5 | /OttBands5minFixedOtt/jessepickerdata/dnafiles/BEL-USDT 2021-09-11 2021-10-11.py | 828a526524c78761e00c259cd9501042a9721776 | [] | no_license | ajthummar/jesse_strategies | f168ae455970bd91845807dd7b0346e77471db09 | 5d23b44f97006e6cecf8519a3951accbfde09fc7 | refs/heads/master | 2023-08-12T21:35:22.458840 | 2021-10-18T13:26:12 | 2021-10-18T13:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,868 | py | dnas = [
['E^c[A', 58, 34, 10.18, 50, 10, -1.0, {'ott_len': 29, 'ott_percent': 219, 'ott_bw': 135, 'tps_qty_index': 81, 'max_risk': 31}],
['_W6,U', 40, 84, 9.31, 50, 14, 6.21, {'ott_len': 32, 'ott_percent': 210, 'ott_bw': 79, 'tps_qty_index': 6, 'max_risk': 43}],
['FVW*?', 50, 53, 22.75, 36, 11, -1.52, {'ott_len': 29, ... | [
"yunusseyhandede@gmail.com"
] | yunusseyhandede@gmail.com |
c9f037387ffa13eecb11fa24424adc949647dfe6 | aa3062fc36e6721c30e149618562c85eb26dc046 | /movieapi.py | 01526b28172122c39058b343c61aafd03763d481 | [] | no_license | VolodymyrBor/movieAPI | 9b5ab466d8a9ae7cdb785eeb495e697690f06514 | 967e5295088504c50de43e9259ebfce2bffd855b | refs/heads/master | 2023-02-28T12:02:23.498605 | 2021-02-07T12:35:32 | 2021-02-07T12:35:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | import uvicorn
from fastapi import FastAPI
from api.shared import logger
from database import database, configs
logger.logger_configure()
log = logger.get_logger('Movie')
app = FastAPI()
@app.on_event('startup')
async def startup():
log.info('Setting up database...')
await database.setup(config=configs.MYS... | [
"volodymyrb@fornova.net"
] | volodymyrb@fornova.net |
5a6f5abcee8c2309a8577d6bdbe01f6ac78ea2c8 | e5d8f9629b8baf936ddae154f3d72cc3ef172397 | /flight_control/booking/mocks.py | 4b29237b6732b19c2671d531120cd5e7a42496b4 | [
"MIT"
] | permissive | kenware/flight-api | 67fa3b923bbe54865c0fdc17bcb3a6f1765e4917 | adfa6f320b6c5bd9830bfb7c3c947028acf39e23 | refs/heads/staging | 2022-12-14T15:49:31.373788 | 2019-06-16T20:14:20 | 2019-06-16T20:14:20 | 190,599,919 | 0 | 0 | MIT | 2022-12-08T01:46:31 | 2019-06-06T14:55:20 | Python | UTF-8 | Python | false | false | 594 | py | from datetime import datetime
def get_date():
date = datetime.today().strftime('%Y-%m-%d')
day = int(date[-2:]) + 1
date = date[:-2] + str(day)
return date
flight_data = {
'name': 'emirate',
'tag': 'dgsfdygg'
}
booking_data = {
"flightSeat": "front",
"location": "USA",
"flightDate": get... | [
"kenware"
] | kenware |
ea90ccd879f594f48de80bc9dfbc97f0e6d8c95b | 275a96a33ae1f89e7b2ee0ecdbac7d78abe6d6cc | /swagger_client/models/captcha_provider_enum.py | c58f04f1f540e205062cd6b82edabe5ba48ac130 | [] | no_license | cascadiarc/cyclos-python-client | 8029ce07174f2fe92350a92dda9a60976b2bb6c2 | a2e22a30e22944587293d51be2b8268bce808d70 | refs/heads/main | 2023-04-03T16:52:01.618444 | 2021-04-04T00:00:52 | 2021-04-04T00:00:52 | 354,419,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,775 | py | # coding: utf-8
"""
Cyclos 4.11.5 API
The REST API for Cyclos 4.11.5 # noqa: E501
OpenAPI spec version: 4.11.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.configuration import Configuration
class... | [
"dan@leftcoastfs.com"
] | dan@leftcoastfs.com |
efc53235042f396368503795aa86f40f6af1a101 | 9f5c9adf472501392e8a8e066d5930abe55327ea | /settings/test.py | d6aaef78103b47fa0b2cb133c3697c3726602b63 | [] | no_license | kaj/kratsblog | b3af805b0eb89a64234fcc09f5ab6188d811f7f0 | 3b6f1b8123785568e54e52fafa0808fd541bc205 | refs/heads/master | 2022-10-26T20:46:37.165840 | 2022-10-04T16:08:02 | 2022-10-04T16:08:02 | 957,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from . import *
DATABASES['default'] = {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '/tmp/tygbittar.sqlite'
}
| [
"kaj@kth.se"
] | kaj@kth.se |
67088f748695fee374d4a791bcb80841011ad87c | 57e42bba49f071bfba6f54d241d1839c615b9e33 | /execptions.py | 569d3b0f086a7def9006605d79f147d813709562 | [
"MIT"
] | permissive | flifloo/MinecraftServerGUI | 1452cdc329a7dfd0791a8468c98f7167c389e195 | adb3d8932593398f5d84154345ced57096e2783b | refs/heads/master | 2020-08-28T23:34:42.370444 | 2019-10-27T20:41:21 | 2019-10-27T20:41:21 | 217,854,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | class InvalidLogin(Exception):
pass
class InvalidURL(Exception):
pass
class InvalidMethod(Exception):
pass
class InvalidServerState(Exception):
pass | [
"flifloo@gmail.com"
] | flifloo@gmail.com |
9bf4756621fa261828be3e0e30be105fa1e8716f | 571055077369585c3fdcd2394142a6406f4567ff | /storage.py | 664684dbf6b174d42797a1b608bee351f72b645d | [
"MIT"
] | permissive | DylanCheetah/android-file | cd76d445828974f20d9a615bf60ccd7464733def | 19e91047bff2bcbfdee4b0e305a00723f586a695 | refs/heads/main | 2023-02-21T05:26:13.053945 | 2021-01-24T14:43:25 | 2021-01-24T14:43:25 | 332,369,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | """External storage utilities for Android API 29+."""
import builtins
import os
from jnius import autoclass
#Globals
#===============================================================================
__version__ = "1.0.0"
__author__ = "Eric Snyder"
__license__ = "MIT"
_activity = autoclass("org.kivy.android.PythonAc... | [
"dylan_the_cheetah@outlook.com"
] | dylan_the_cheetah@outlook.com |
17a4438c5f8065744f4f3e842051af12673c53db | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/tree-676.py | 3e2f9cbced03452408ccc1647f0547e56c110f40 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
return self.left.insert(x)
elif x > self.value:
if self.... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b4da2baec3936324ef7366bd58c2f474fff0cf53 | fd65851c7977176cfa69056ea5d63ca529e74271 | /sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_gcpc_types.py | e99aa8485b0fbdaa197a5c09d171cc92e2ce9478 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | NikeNano/pipelines | dad9f45267a7f4c495a30880dd6fe1570f26fa64 | 73804f8928ce671839d34800627b6d3ea9f820a7 | refs/heads/master | 2022-01-29T21:24:43.693120 | 2021-11-20T18:18:35 | 2021-11-20T18:18:35 | 221,051,451 | 1 | 1 | Apache-2.0 | 2021-04-23T20:07:11 | 2019-11-11T19:11:29 | Python | UTF-8 | Python | false | false | 1,361 | py | # Copyright 2021 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"noreply@github.com"
] | NikeNano.noreply@github.com |
1f4584aa70f9bce1613d6653570e7fc7c6d6136e | e77b8179db63a4c1655991f6875f6bd0a6d3b648 | /backend/app.py | 49986d9153959b1475b8f8768580afd6c07ea3c9 | [] | no_license | cptodd757/spotifun | 81713316858d3f26e92fa567dc1af16ef89c92e5 | 9f6dac4eecd06dbe822b6903b9bd2fb4d072d5ea | refs/heads/master | 2022-04-02T03:15:29.988996 | 2020-02-14T16:15:01 | 2020-02-14T16:15:01 | 198,119,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,917 | py | from flask import Flask, jsonify, redirect, request
from flask_cors import CORS
import json
from bson import json_util
import re
import urllib
import requests
import base64
import pandas as pd
import numpy as np
import unidecode
from datetime import datetime
import sys
sys.path.append('./helpers')
import config
from... | [
"cpt8@duke.edu"
] | cpt8@duke.edu |
cbaacde4e88caa40782155db716adfec598caffb | 8d353115f54b228e6d1dc12f32d2c590be78c23f | /node_modules/webpack-dev-server/node_modules/fsevents/build/config.gypi | 26b24d29781ecc4452c8fd64840100e5843fa86d | [
"MIT"
] | permissive | fernndzaky/FP_Cads | f6e34c654d316a806d4809294a5dddef0f834a74 | 71891923715d36101e923f9d677ad684d6050371 | refs/heads/master | 2023-02-10T05:14:05.143848 | 2021-01-06T13:09:19 | 2021-01-06T13:09:19 | 326,116,022 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,512 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"fernandhadzaky@hotmail.com"
] | fernandhadzaky@hotmail.com |
cbce3ee71741adcf00706a9dc0b0fc7177d127f5 | 3711172b26851f4e7901ee49c5730f4b20d271c0 | /linear_differential/toy_cipher.py | a436e6de2dba87bd39d056579c43352491ca9595 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mdgaxs/crypto_misc | 49ad8a4d2a8b0ae170ea348499dcaa1108848382 | f00714cc64a5276d95114deebfd6172742780fd0 | refs/heads/master | 2022-04-16T12:27:23.727009 | 2020-04-13T10:40:17 | 2020-04-13T10:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | P = [0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15]
S = [14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7]
Pinv = [P.index(i) for i in xrange(16)]
Sinv = [S.index(i) for i in xrange(16)]
def split4(x):
assert 0 <= x < 2**16
return [x & 0xf, (x >> 4) & 0xf, (x >> 8) & 0xf, (x >> 12) & 0xf]
def merge4(x)... | [
"shiho.elliptic@gmail.com"
] | shiho.elliptic@gmail.com |
169652375466e1e23d94c2247ca9ee3ab43a37d0 | ec6a2406905d7743c4ab7ba0f1213fd0f32acb8b | /conftest.py | f6172bb1afb18641036094d50611e1abb434d4b4 | [
"BSD-2-Clause-Views",
"BSD-3-Clause"
] | permissive | oii/ogreserver | 4277c1da689911fa52e2486213c3c8281370c134 | 29ca97765fde949c60d33ee0e301f9fc11679eb9 | refs/heads/master | 2021-06-07T18:07:12.511077 | 2017-07-05T09:43:28 | 2017-07-07T10:13:52 | 96,296,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # Please do not put fixtures into this file - add them to test/conftest.py
# This file exists in the project root to help py.test find our main app package
| [
"github@mafro.net"
] | github@mafro.net |
7dc2feeef36ab07f2529109add4df40295cdace0 | da90c21c325a532ad2663b1322f00f32edd5a109 | /app/mod_api/controllers.py | 5656c6373ec7b59efcfbc229e821989fcc7c1859 | [] | no_license | bdh1011/realmapia_server | 5d1b7bc6b5450c16d162fae1a85d2ccfccd7916e | 80044d3d0e1801ea0a36af9aa59f9ed1abf6dc6d | refs/heads/master | 2016-08-11T21:46:34.029609 | 2015-11-17T19:18:26 | 2015-11-17T19:18:26 | 44,907,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,652 | py | # -*- coding: utf-8 -*-
from flask import current_app,Blueprint,render_template, flash,jsonify, session, url_for, g, request, redirect, make_response, Response, send_file
from app import db
from app import app
from app import redis
import hashlib, os, sys, random, re, json, ast
from functools import wraps
from datetim... | [
"bdh931101@gmail.com"
] | bdh931101@gmail.com |
2f1963b7dcab8d3722a0aead506bd0147a04fcdc | 0f4ff6fe47803cdf485f64b9abf6053ad02ebcde | /test/common/page.py | e9800f2c67415b1bb1464ce1332c85dac63e0cc8 | [] | no_license | wowo665636/dongtest | 944a7dd01c362da4ddac8232b343d5343a177858 | 1cd4856382e39d07712d4c0a45c6de3bb5c431df | refs/heads/master | 2021-06-29T17:49:31.124568 | 2017-09-14T13:07:01 | 2017-09-14T13:07:01 | 103,113,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from test.common.browser import Brower
class Page(Brower):
def __init__(self, page=None, brower_type='firefox'):
if page:
self.driver = page.driver
else:
super(Page, self).__init__(brower_type=brower_type)
def get_driver(self):
return self.driver
def find_... | [
"392386038@qq.com"
] | 392386038@qq.com |
9ffb18b539fc4d52d55686384f909bad4853cc27 | e7b4114f517a0f8d650e75d59f6c9c958061205a | /examples/dm_response.py | 96a9a5869fe0c41f4490b12ad39978d2a7a3b436 | [
"MIT"
] | permissive | xezzz/Sentinel | 4d7607463441ed94b695b26bf313b874be13f5e3 | c0b427c67a9038213b6ed361007189a8c66408ad | refs/heads/master | 2023-06-07T01:58:07.648326 | 2021-07-04T21:49:08 | 2021-07-04T21:49:08 | 382,418,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # import the client class ⬆️
from sentinel import SentinelClient
# define the classic client ⚙️
client = SentinelClient(token="YOUR_BOT_TOKEN", app_id=123456789).build()
@client.slash_command(name="dm", guild_id=123456789, description="🎉 Sends a simple DM to the author")
def dm(ctx):
ctx.dm("Only you can see t... | [
"pschaper18@gmail.com"
] | pschaper18@gmail.com |
4072030fa3b51275fc733f742b865cbb2987d105 | 18da7621287c06dc2fd094073350fddf6ce3be39 | /api/serializers.py | 93364058a69c4239fbe6cb732b0a8b1092f3d208 | [] | no_license | saiyadfaizan/twenty | 1486eaad044dce81983b15738353792a2ab2b826 | 35be3d7f9792d6b8a5e19440caa4365666804f88 | refs/heads/master | 2023-02-25T16:45:40.270079 | 2021-01-19T12:31:04 | 2021-01-19T12:31:04 | 330,972,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | from rest_framework import serializers
from store.models import *
class AdminSerializer(serializers.ModelSerializer):
class Meta:
model = Admin
fields = ('user', 'name', 'email')
class CustomerSerializer(serializers.ModelSerializer):
class Meta:
model = Customer
fiel... | [
"saliali@bestpeers.com"
] | saliali@bestpeers.com |
aa528e237efb5d592e5fa08b8117e3c149b1e032 | c1b8e586975804106602a3d13dacd60f9e5b329c | /old/manage.py | 4ed1b9d9dc095f342b8ff13f023543865fee1468 | [] | no_license | mrweber2/abbwear-hs-app | 9a54eb3c2a00e831b625777bdd289b2886dfef2f | a2b08ca48c141c44161d95eacbf65551d201a6be | refs/heads/master | 2020-06-10T23:28:34.874743 | 2019-06-27T02:21:53 | 2019-06-27T02:21:53 | 193,789,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'abbwearHS.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"matthew.weber@abbvie.com"
] | matthew.weber@abbvie.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.