blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a907d83c4a8ad90a86dc9169bfdcf47ff294af7c | 1f4e5cb546bd35f45555ed55382196e6c88acbb7 | /dj_prj/import_city.py | 86058bb9b5191e261226ac591257bcef87827a7d | [] | no_license | zdimon/dj-loyer | 4a5fcafe25b7ef28cf99b36315a04a85fec91680 | d1521a5326e7286cd5a19471f4a72b4313c2a02b | refs/heads/master | 2020-05-15T15:31:58.058636 | 2019-05-16T14:49:25 | 2019-05-16T14:49:25 | 182,374,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | import psycopg2
conn = psycopg2.connect(dbname='city', user='postgres',
password='1q2w3e', host='localhost')
cursor = conn.cursor()
conn2 = psycopg2.connect(dbname='dj-loyer', user='postgres',
password='1q2w3e', host='localhost')
conn2.autocommit = True
cursor2 = conn2... | [
"zdimon@example.com"
] | zdimon@example.com |
4281f39241182c650af10ebe487b307d5156ff3f | a04112447731c25915b16011f1620ea386705c06 | /openvision/facenet/facenet.py | 65bbfb3d60a3e2b23b79799cdaada3810707dcbd | [
"MIT"
] | permissive | liuzz1983/open_vision | 93eac99f590b1f114a5ddae7c97af5c77c62f409 | f346e2f789944ea590c1d263e72a6e93490bb3a0 | refs/heads/master | 2021-01-19T10:01:21.950771 | 2017-05-17T00:10:14 | 2017-05-17T00:10:14 | 87,815,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,181 | py | """Functions for building the face recognition network.
"""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# 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, includ... | [
"liuzz1983@gmail.com"
] | liuzz1983@gmail.com |
54842c23e4185e914fc383f38cb215ed94f756cc | 93ff3a214354128910c5c77824c64678d78e556d | /problems/forms.py | 34fd216ebb834a3aa3c173073f307ed87b009c5e | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | samoKrajci/roots | 1fc2c7f205ba9dc0d9026026253c7349c3a551aa | 9c6bf6ed30e8e6ff9099e9dca6d56a2df2ef10b0 | refs/heads/master | 2021-09-23T02:20:17.927687 | 2017-01-01T19:05:22 | 2017-01-01T19:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | from django import forms
from django.conf import settings
from django.utils.translation import ugettext as _
from base.forms import MultiFileField
from competitions.models import Series
class UserSolutionForm(forms.Form):
solution = MultiFileField(min_num=1,
max_size=settings.ROOTS_... | [
"tomasbabej@gmail.com"
] | tomasbabej@gmail.com |
d961f3ab57370cf4e5446512410fe13533d33307 | d9205c3952918f22a52c1de20a51478680e0b562 | /stefan/api/urls.py | 68a02a9d72601fb1f0b62eaec664e42f5809efc6 | [] | no_license | Lauriy/stefan | d381e460039084623774a3736ff3b31bf440aaac | ea8680ba8638fd00a92f1d405037199fb8198c59 | refs/heads/master | 2023-01-20T09:53:21.318245 | 2020-11-18T22:48:01 | 2020-11-18T22:48:01 | 312,419,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from stefan.api.views import AllVotesViewset
router = DefaultRouter()
router.register(r'votes', AllVotesViewset, basename='Vote')
urlpatterns = [
path('', include(router.urls)),
] | [
"laurileet@gmail.com"
] | laurileet@gmail.com |
056a78195cba5f5824d519404cb5df285daecd71 | 42000e14d25ce3de5b9ba24e3399e67bf88c4ad1 | /Level_Three/basicforms/basicapp/views.py | 226c5fe2fe62a1f1033640862277c5b0d1ff6365 | [] | no_license | cdunn6754/Django_Projects | 0528b3263e2762d0e872686ec5f00a40f3730851 | 545d4e73f05969d1277cacaab2042787676b7e73 | refs/heads/master | 2021-09-11T18:21:07.249977 | 2018-04-11T00:06:27 | 2018-04-11T00:06:27 | 110,480,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | from django.shortcuts import render
from basicapp import forms
# Create your views here.
def index(request):
return render(request, 'basicapp/index.html')
def form_name_view(request):
form = forms.FormName()
if request.method == "POST":
form = forms.FormName(request.POST)
if form.is_vali... | [
"cdunn6754@gmail.com"
] | cdunn6754@gmail.com |
cd4298d716ac4f7a6737b5df8dcc7a071b1fc6af | 1e2e21b9e6c1f8c8affde29d7088de858a7f2cd4 | /python3/Python-algorithm/ArraysAndStrings/IsPermutationOfPalidrome/IsPermutationOfPalindrome.py | 8ee610d5dc16c27ac89f4ee5b98c1aaee241350d | [] | no_license | sudhanshu-jha/python | 2e7b695d64af65ca9897e9d285a48adb7458fe5b | 827a0427b9ad97b535c277f6bf50968bbd0ad2d6 | refs/heads/master | 2021-10-12T00:57:22.568740 | 2019-01-31T08:49:40 | 2019-01-31T08:49:40 | 133,651,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | # Accepts a string and returns if it is a permutation of a
# palindrome.
# Example
# Input "Tact Coa"
# Output True ("taco cat","atco cta" etc.)
# There are several ways of doing this. The important thing is
# to understand that we just have to tell if the string is a
# permutation of a pallindrome, we need not find t... | [
"jha.sudhanshu1991@gmail.com"
] | jha.sudhanshu1991@gmail.com |
6fa95fb4efe911226ca6226e6643d873ff36d3fd | 37cad2e417357258673b05c4b2c9df97ade0fc67 | /svm/svm_author_id.py | a7f2d83a5a2b2dfd70ad0a1509319dfbf37d5941 | [] | no_license | atharvakavitkar/Udacity-Machine-Learning-Course | dd8461a2765b74aea22c359f40e0d8e7d7b9164c | 786bebdc70a636666358c8acc700fb268abc9f9b | refs/heads/master | 2020-03-30T07:22:41.089675 | 2018-09-30T05:38:39 | 2018-09-30T05:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | #!/usr/bin/python
"""
This is the code to accompany the Lesson 2 (SVM) mini-project.
Use a SVM to identify emails from the Enron corpus by their authors:
Sara has label 0
Chris has label 1
"""
import sys
from time import time
sys.path.append("../tools/")
from email_preprocess import preproce... | [
"you@example.com"
] | you@example.com |
70e74b772f45b1d3f27b3cb2239fa80384a24740 | 6a3224a913018b6eb838e2a5f08a1aee1845a7a4 | /Cookbook_3rd-Edition/2_Strings_and_Text/2.4.Matching_and_Searching_for_Text_Patterns.py | 22ad28e4da315ccbec45724aa76730f337bb6428 | [] | no_license | naray89k/Python | d8d027ef4351ce89ebf38c9cc6de99bdf06309f3 | 2397be27291db28e14e80dfa31b7f0c72a7f0798 | refs/heads/master | 2022-02-22T04:09:30.354657 | 2022-02-08T19:43:30 | 2022-02-08T19:43:30 | 236,688,222 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | #!/usr/bin/env python
# coding: utf-8
text = 'yeah, but no, but yeah, but no, but yeah'
text == 'yeah'
text.startswith('yeah')
text.endswith('no')
text.find('no')
text1 = '11/27/2012'
text2 = 'Nov 27, 2012'
import re
if re.match(r'\d+/\d+/\d+', text1):
print('yes')
else:
print('no')
if re.match(r'\d+/\d... | [
"narayanan.k.1985@gmail.com"
] | narayanan.k.1985@gmail.com |
17d365a1c58ceeaabeb45cc77b4ae0ec3d97669e | 707add0a07d64915740cd2c5729469410c3b27b5 | /hydrachain/tests/test_sim_failures.py | ac34702c56e8de4a7dc338471f00e52fe70d1d72 | [
"MIT",
"BSD-3-Clause"
] | permissive | expsam/hydrachain | b68071b643ae04e37bbf259777331fa404ec437f | b39118deefddab8a3ea7b1fc308d4610d8956f41 | refs/heads/master | 2021-01-15T11:12:56.129418 | 2015-10-16T15:03:15 | 2015-10-16T15:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | from hydrachain.consensus.manager import RoundManager
from hydrachain.consensus.simulation import Network, assert_heightdistance, assert_maxrounds
def test_failing_validators():
network = Network(num_nodes=10, simenv=True)
network.connect_nodes()
network.normvariate_base_latencies()
network.disable_va... | [
"heiko@heiko.org"
] | heiko@heiko.org |
c9c28660af4c97ce953571956ff8e065fa74a1b4 | 3d569375e38cbc2e73f54a9e5dd140b4021edb46 | /project/weather/beijing.py | 0c2a3da8ef61d072b2dd5d2fc69d08fcf32368b4 | [] | no_license | Gscsd8527/python | 2dffb13944346ca1772a4de52a80c644f19bcf72 | c7cb0653355365fc18a235f427315fae8f2b8734 | refs/heads/master | 2020-04-28T21:15:23.514693 | 2019-04-20T12:50:04 | 2019-04-20T12:50:04 | 175,575,773 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,672 | py | import requests
from bs4 import BeautifulSoup
from fake_useragent import UserAgent
import datetime
import json
import re
# URL = 'http://tianqi.2345.com/t/wea_history/js/54511_2011'
# u2 = 'http://tianqi.2345.com/t/wea_history/js/54511_20112.js'
# u3 = 'http://tianqi.2345.com/t/wea_history/js/54511_20113.js'
# u3 = 'ht... | [
"tan_gscsd@163.com"
] | tan_gscsd@163.com |
4d32ab2de903781e0bc166b93018441a2b4bbb6c | 9727d8bd53a935caa2a2a2655e85f852646ce19e | /tag/exceptions.py | 0c2f666e3a55e9ca319e390c9e52812a953bae95 | [] | no_license | tyrchen/kagalaska | 86612c8976becd3f6ae6652d00b5a4c836e8ad1a | 240eaeec5a566f351668fc4de8d2694c01a4654b | refs/heads/master | 2016-09-05T22:31:57.441457 | 2012-11-24T02:32:03 | 2012-11-24T02:32:03 | 5,365,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # -*- coding: utf-8 -*-
# __author__ = chenchiyuan
from __future__ import division, unicode_literals, print_function
class NotExistsException(Exception):
def __init__(self, name):
self.name = name
def __repr__(self):
return self.name
def __str__(self):
return self.name
class MongoDBHandleExceptio... | [
"chenchiyuan03@gmail.com"
] | chenchiyuan03@gmail.com |
d680eeeb93a7af320d3c2cec860fefd8ce78a5ea | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/3/ising2d_microstates_20200505184813.py | f60fb1e0093f129c6ac699f0113d321dd7546f81 | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,770 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
from time import time
import datetime
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import pandas as pd
def save_csv(data, data_headers=None, data_index=None, file_name=None,
relevant_info=None, pri... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
3f5498ead3e5c716215fdf7f29ee2c6b663b145f | 8773e8c9b9a0a6e407f91b6f7c6321141d7e8356 | /P0150.py | db7632b2e75be7879ac110d2d8e5adc891276106 | [] | no_license | westgate458/LeetCode | 1836bb21e8dd95386ccab390f5fd04567a429a02 | 36d7f9e967a62db77622e0888f61999d7f37579a | refs/heads/master | 2021-12-28T04:16:36.875737 | 2021-12-17T05:48:09 | 2021-12-17T05:48:09 | 152,928,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 16 20:59:58 2019
@author: Tianqi Guo
"""
import math
class Solution(object):
def evalRPN(self, tokens):
"""
:type tokens: List[str]
:rtype: int
"""
# characters for operations
operations = set(['+', '-', '*', '/'])
... | [
"tqguo246@gmail.com"
] | tqguo246@gmail.com |
1ea984ae877c6cd12ccd8861517d60a5dfcbdfce | 5b2e06f424cb615b8801fed1f078c4c50a8281e3 | /human_general_analysis/viz_expression_data.py | 5c9b763c8af30ddf9d16fc83b17e225e1e231989 | [
"BSD-3-Clause"
] | permissive | greenelab/generic-expression-patterns | 9f1652ef1a3a603264c85b7317043f9075b6a566 | 729f5d3313e8e775213a82707b1b728dd33cf6b0 | refs/heads/master | 2023-09-05T13:04:17.017083 | 2023-02-05T17:06:58 | 2023-02-05T17:06:58 | 271,798,826 | 9 | 5 | BSD-3-Clause | 2023-02-05T17:06:59 | 2020-06-12T12:57:56 | Jupyter Notebook | UTF-8 | Python | false | false | 7,718 | py | # ---
# jupyter:
# jupytext:
# formats: ipynb,py
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.9.1+dev
# kernelspec:
# display_name: Python [conda env:generic_expression] *
# language: python
# name: conda-env-g... | [
"noreply@github.com"
] | greenelab.noreply@github.com |
1845b9be3a1b66f1c000a9ff93af09a8f663d6b1 | e1fe66628d58e66b25d910c6d2f173a7dfa74301 | /1. Edge AI Fundamentals with OpenVINO/4. Inference Engine/Workspaces/2. Inference Requests/inference.py | 64832b26ee39b9ee27d05c6f44709d4930d0669d | [
"MIT"
] | permissive | mmphego/Udacity-EdgeAI | 7c5443c4f19eaaf4f6eb44739f7e6413ba26e106 | 25af22f85772adc25ff9d5a59ba8a33a1e5551cd | refs/heads/master | 2022-12-31T15:39:07.077926 | 2020-10-20T11:45:58 | 2020-10-20T11:45:58 | 258,950,438 | 8 | 1 | MIT | 2020-05-25T14:38:30 | 2020-04-26T05:48:07 | Jupyter Notebook | UTF-8 | Python | false | false | 2,438 | py | import argparse
import cv2
from helpers import load_to_IE, preprocessing
CPU_EXTENSION = "/opt/intel/openvino/deployment_tools/inference_engine/lib/intel64/libcpu_extension_sse4.so"
def get_args():
"""
Gets the arguments from the command line.
"""
parser = argparse.ArgumentParser("Load an IR into th... | [
"mpho112@gmail.com"
] | mpho112@gmail.com |
8440fbbf170a79aa2ec9995e40afbe7ee557bf94 | 00f20cf0bd5fa65c9f54aa5a29fe3565fd8b2d96 | /swagger_client/models/plan_strategy.py | 7eff47902b4bda0f4cfbf41076f6b0fe258aca54 | [] | no_license | gingerwizard/python-ece-client | 8b81094ddf64617c12aea9db65b9d5f7a6f1c73c | 6187fdde855a147d114fb7ee39fc5314a1b0893f | refs/heads/master | 2021-08-29T08:16:31.942559 | 2017-12-13T14:32:23 | 2017-12-13T14:32:23 | 114,131,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,852 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class PlanStra... | [
"dalem@elastic.co"
] | dalem@elastic.co |
7d8a3011b8c956918ca9e951f3b492f3e5a77b99 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /neutra/neutra_test.py | c6a8c6de27d481fbff4db85c156c691e78927545 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 3,864 | py | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
eaee1a69d91b067580985e307808d9849cda1c91 | 577dbf22b0c84ce12190b1ee918d9392c28c1d1e | /ascent/recombine_cat.py | 69779d3bb24c90c77c232773935fd411c89011b6 | [] | no_license | bd-j/xdf | 2b6d71e800eebc7045a215c2a39afbd5c2b76b13 | 5acc6de61e89e28a47e5b30fca42b52852f0f3bc | refs/heads/main | 2021-07-12T17:24:49.489045 | 2020-07-02T18:42:32 | 2020-07-02T18:42:32 | 159,689,222 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,706 | py | #!/usr/bin/env python
"""
A script to get the fluxes (and other properties) of many objects and compare to
the 3DHST values
"""
import sys, os
from os.path import join as pjoin
import numpy as np
import h5py
import matplotlib.pyplot as pl
from astropy.io import fits
from disputils import query_3dhst, get_color, get_... | [
"benjamin.duncan.johnson@gmail.com"
] | benjamin.duncan.johnson@gmail.com |
7444aa0ceda53b17ba70b860da08234098350aee | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/mkttok001/piglatin.py | 285a4233b29687519d3f03b58757d1a95cc1b214 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,404 | py | def toPigLatin(messageP):
message = ""
index = 0
for i in range (len(messageP)):
if messageP[i]==" " or i == (len(messageP)-1):
if i == (len(messageP)-1):
tempWord = messageP[index:i+1]
else:
tempWord = messageP[... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
d5660d34e02bd7b0bcfa7cad1ecfbe789b331b4d | 7f7e1e9ee532e959cc83eb5d44614a2c239d564d | /tensorflow_privacy/__init__.py | f855eba5907d3618c4ee5d60147f4cfed3b5dbe1 | [
"Apache-2.0",
"MIT"
] | permissive | 1540367751/privacy | baa19000aa0169c0b95b5a5b8afa1f63ec1df9e1 | 07c248d86800938a6591fee85a0d852a93f77c11 | refs/heads/master | 2023-07-16T22:42:21.168084 | 2021-08-28T00:33:11 | 2021-08-28T00:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,553 | py | # Copyright 2020, The TensorFlow Privacy 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 ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d80b33e49de6d5be52c826ed89eea707649fc36a | aea83e77dd0c0cc74d74362a0c4646c627f4b0e6 | /templates/myproject/users/forms.py | 066f46f11d9a93877e99f459e6026d007f05c610 | [] | no_license | Dreambigxz/steps_project | 12e3b5694f769e3c882f9a4d7e9d4f3378514981 | e9049b27ab865a7ea7421a06c51002142136a768 | refs/heads/main | 2023-01-12T10:21:05.310825 | 2020-11-18T15:59:26 | 2020-11-18T15:59:26 | 313,984,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,484 | py | from django import forms
from django.conf import settings
from django.contrib import admin
from django.utils import timezone
from datetime import datetime, timedelta, time
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.core.exceptions import ValidationError
from django.contrib.auth.forms i... | [
"onyemordidaniel@gmail.com"
] | onyemordidaniel@gmail.com |
937a1efd2b96128a3d40c1213589fd04002ce895 | 5c5b34f6f598a43ddfbd473228737a27c26d1d8e | /208. 实现 Trie (前缀树).py | 8b1c9cffc57c5d257cb9c43e01bd2a55b7ca4741 | [] | no_license | lovehhf/LeetCode | 34a1bc140b10dc83a32ef9a70f9c73176948a9c4 | 5d3574ccd282d0146c83c286ae28d8baaabd4910 | refs/heads/master | 2021-11-04T04:52:34.518621 | 2021-10-26T15:34:47 | 2021-10-26T15:34:47 | 173,673,492 | 0 | 0 | null | 2020-03-03T14:54:09 | 2019-03-04T04:26:15 | Python | UTF-8 | Python | false | false | 2,177 | py |
"""
实现一个 Trie (前缀树),包含 insert, search, 和 startsWith 这三个操作。
示例:
Trie trie = new Trie();
trie.insert("apple");
trie.search("apple"); // 返回 true
trie.search("app"); // 返回 false
trie.startsWith("app"); // 返回 true
trie.insert("app");
trie.search("app"); // 返回 true
说明:
你可以假设所有的输入都是由小写字母 a-z 构成的。
保证所有输入均为非空字符... | [
"853885165@qq.com"
] | 853885165@qq.com |
839181c11130b21f678fb2278c23ba6f723d6a73 | a57c85e805c70feaac76b06135445077391b6130 | /speech.py | 7b658f57cdcac03c9d8ca3c74070c1fe56ba8648 | [] | no_license | kalilinuxoo7/speech-textinterconversion | e6c76bedec10a378acd38626066b4000b21e88fb | 07feaeab55935decdcddf19d929801261b846605 | refs/heads/master | 2022-09-17T22:07:29.818576 | 2020-05-30T17:11:31 | 2020-05-30T17:11:31 | 268,125,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,526 | py | import speech_recognition as sr
import xlsxwriter
workbook = xlsxwriter.Workbook('cardioenglish.xlsx')
sheet1 = workbook.add_worksheet()
cell_format = workbook.add_format({'align': 'center',
'valign': 'vcenter',
'border': 1})
sheet1.write('F1', ... | [
"hemant.singh.leu@gmail.com"
] | hemant.singh.leu@gmail.com |
b53399fffd9fbaa1701b714609187d90e2c8e778 | f898cdf83839bff63fca9e73ae5ec814117ae7f1 | /D.I.P/10_DP_Reverse_Integer.py | 1840a04f1785c1d1ec15c6dc4e37340b645c13c0 | [] | no_license | bayoishola20/Python-All | 2102b77da3269df8c6f8d30b212923ac3356aefc | 0fef5e37817fe55fd5aef7eb084b9d8d208cd0ab | refs/heads/master | 2021-06-02T01:47:03.597985 | 2021-04-09T20:32:54 | 2021-04-09T20:32:54 | 122,826,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | # Given an integer, reverse the digits. Do not convert the integer into a string and reverse it.
def reverse_integer(num):
reverse = 0 # fully reversed integer
sign = -1 if num < 0 else 1 # check for integer sign
digits = 0 ... | [
"bayoishola20@yahoo.com"
] | bayoishola20@yahoo.com |
0e07f9b5f213aeef8ed3bf5a6f3280c2a1856f3b | f9391e564c78b05c2554ba7dfbc10f8411d4f329 | /ml/sem3/lab8/lab8.py | 78a7c23cfe41b4bbb0b34d5e91fb878a9441b242 | [] | no_license | Pyc9Jaan/bsuir | ae9ae4ec9a835904e3ee9b2e919d7026692a9787 | 52b3fe31101d9b4e595da030145177c17cc6ea36 | refs/heads/master | 2023-03-27T03:29:26.309494 | 2020-10-03T12:40:41 | 2020-10-03T12:40:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,643 | py | #!/usr/bin/env python
# coding: utf-8
# # ml lab8
# In[1]:
import numpy as np
import matplotlib.pyplot as plt
import scipy.io
# ### 1. read `ex8data1.mat` data
# In[3]:
data1 = scipy.io.loadmat('data/ex8data1.mat')
X = data1['X']
X_val = data1['Xval']
y_val = np.squeeze(data1['yval'])
X.shape
# ### 2. plot ... | [
"ivan.pazhitnykh@gmail.com"
] | ivan.pazhitnykh@gmail.com |
a5c14bc9ef14b91ee3882514d37006f7e817265a | b01c5ec420a1319e5caabbbfe13c2acef7a958dd | /setup.py | 4c9eefc922cff57449f80a74b12e5a5e69735f13 | [] | no_license | QualiShellsBot/cloudshell-package-repo-template | 23562a964245b3f8be0c3af07fe775d48db875f7 | 1f7e5a25c4d066679073dc282a9616e29c64f29e | refs/heads/master | 2021-04-23T18:26:19.214738 | 2020-03-20T15:08:54 | 2020-03-20T15:08:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | import os
from distutils.version import StrictVersion
from setuptools import find_packages, setup
from setuptools.version import __version__ as setuptools_version
if StrictVersion(setuptools_version) < StrictVersion("40.0"):
import sys
python = sys.executable
try:
s = os.system('{} -m pip install... | [
"saklar13@gmail.com"
] | saklar13@gmail.com |
87cc13971d722ca88d4f69baa0aa9a1f13965ea0 | 613388206f1b4685e515ca2203b17bdde3510fa0 | /lib/force_reload.py | 72318317ff735946496c1839664c34e75b832cf0 | [] | no_license | hal1932/force_reload | e602073ec3ebf00e47610fb04349be97e8ef2297 | 9d939be1a537cc89f3bfc1b55a36657efdead391 | refs/heads/master | 2020-03-26T02:59:26.772474 | 2018-12-24T18:06:26 | 2018-12-24T18:06:26 | 144,434,535 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,172 | py | # coding: utf-8
from __future__ import absolute_import
import sys
import ast
import inspect
import types
import distutils.sysconfig
try:
from six.moves import reload_module, builtins
except ImportError:
reload_module = reload
builtins = __builtin__
STDLIB_ROOT = distutils.sysconfig.get_python_lib(stand... | [
"yu.arai.19@gmail.com"
] | yu.arai.19@gmail.com |
4ebb9e1f934d12273acf2675ebfc2379537ccef9 | 9e802407e2488d503d24f20fff173f061b69c9ca | /instagram/notifications/migrations/0004_notification_comment.py | 57f04e96ec56156fa52940ee7fc1dc3ba47a3459 | [
"MIT"
] | permissive | serranoarevalo/instagram-1 | f8244601aa61bccdf5db6522ad047da88426f70f | 6c29c8b6a8d30d9069c151127d8765eabfe3b5c8 | refs/heads/master | 2021-05-09T03:09:46.709352 | 2018-01-28T06:07:47 | 2018-01-28T06:07:47 | 119,233,520 | 1 | 0 | null | 2018-01-28T06:17:03 | 2018-01-28T06:17:03 | null | UTF-8 | Python | false | false | 609 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-01-02 05:24
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('images', '0007_image_tags'),
('notifications', '000... | [
"wer2774@gmail.com"
] | wer2774@gmail.com |
f36b574c98339b72811a2f7870e47f179793380b | 1e4aef2d451a97a8aafb4e1cddfa4ebb0cc309cc | /second_step/concurrent_programming/communication_model/ftp_server/ftp/chat_server.py | 81224045eddf80f1a72af46d9cc5bd39e462c8b3 | [] | no_license | FleeaniCh/python | 4c40b5d9d711796cee49a7b95bb7f64fa9257662 | 129a759212a8221de1a3d9c1cb3b66c6fece5a63 | refs/heads/master | 2023-03-12T06:40:05.120123 | 2021-02-28T02:03:34 | 2021-02-28T02:03:34 | 342,999,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | """
chat room
env: python3.7
socket udp & fork
"""
from socket import *
import os, sys
"""
全局变量:很多封装模块都要用或者有一定的固定含义
"""
# 服务器地址
ADDR = ('192.168.0.199', 8888)
# 存储用户 {name:address}
user = {}
# 登录
def do_login(s, name, addr):
if name in user or '管理员' in name:
s.sendto('该用户存在'.encode(), addr... | [
"17354108830@163.com"
] | 17354108830@163.com |
af536e539b8f70c344c43cd26140387786760592 | 77e22775135dff0de080573c7a6e83ef373fe4cb | /dl/models/ssd/modules/predict.py | 25dbad5824e518f078aaf75729320e97b1cca0b5 | [
"MIT"
] | permissive | flyingGH/pytorch.dl | bfcd23ddbc7d405cbba7ce15695e0dda75b755fe | d82aa1191c14f328c62de85e391ac6fa1b4c7ee3 | refs/heads/master | 2023-06-01T11:21:15.636450 | 2021-03-31T05:47:31 | 2021-03-31T05:47:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,777 | py | from torch import nn
import torch
class PredictorBase(nn.Module):
def __init__(self, class_nums):
super().__init__()
self._class_nums = class_nums
@property
def class_nums(self):
return self._class_nums
class Predictor(PredictorBase):
def __init__(self, class_nums):
... | [
"kado_89_ssp_jun@yahoo.co.jp"
] | kado_89_ssp_jun@yahoo.co.jp |
158e6732d56098f0a10023c0128e8dc7ee2fa41e | 5ac7bdec90c21a3da8fd5a1a684a80d202c30e8d | /openstack_dashboard/api/nikola/nikola_api.py | 6194f931149252a558b58e2ff1b5eef086afd636 | [
"Apache-2.0"
] | permissive | AlexOugh/horizon | 185aba38551ee15732a12f9690203d5383e03f70 | bda2a59aad7637f45211db37235ab18323e20b25 | refs/heads/master | 2021-01-16T18:45:36.289172 | 2015-02-10T23:58:16 | 2015-02-10T23:58:16 | 30,272,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py |
#import logging
import httplib, urllib
import simplejson as json
class NikolaAPI():
def _get_headers(self):
#if self.cookie is None: raise Exception, "no cookie available"
headers = {'content-type':'text/plain'}
#headers['cookie'] = self.cookie
return headers
... | [
"alex.ough@sungard.com"
] | alex.ough@sungard.com |
5e672fff35a54422a5e3b2aac8caa6cf6c9e0eb1 | 23384b47e0bae013eeb0d92da61db3e4c6ea717f | /partner/process.py | dc0598fd825a709adf1be3ee2482778bc2b44ae0 | [] | no_license | OpenUpSA/wazimap-health | 0aa1d8cb02b9cbee4a8f39918c9b02d4029bba4a | bd05fb3fa968b8e19aafa6b8ac391b658518836e | refs/heads/master | 2022-12-15T18:26:48.516303 | 2019-03-08T14:43:57 | 2019-03-08T14:43:57 | 147,177,818 | 0 | 0 | null | 2022-12-08T02:55:12 | 2018-09-03T08:53:35 | Python | UTF-8 | Python | false | false | 7,826 | py | from django.db import IntegrityError
from django.db import transaction
from partner.models import (Partner, BasicEducationFacility,
HigherEducationFacility, HealthFacility, Location)
from openpyxl import load_workbook
import traceback
def is_row_empty(row):
"""
check if row contain... | [
"stumenz.complex@gmail.com"
] | stumenz.complex@gmail.com |
2cda7efe11445b783b652642788a249827d52974 | 9d7203d1a2b0174d63bfc5790e5927ff953c2448 | /crowd4py/api.py | dfb4f0206ba330a9864e8a51c4c2f3b41edfacdb | [
"BSD-2-Clause"
] | permissive | crowd4u/crowd4py | d27e5bc34f0307ba134c469189543a9c980efa5e | bad5ef5313e5e066802d2d64540568e01f2950e8 | refs/heads/master | 2021-03-27T13:33:36.152572 | 2019-01-11T14:17:42 | 2019-01-11T14:17:42 | 93,599,859 | 8 | 3 | BSD-2-Clause | 2018-01-08T12:50:17 | 2017-06-07T06:21:29 | Python | UTF-8 | Python | false | false | 3,816 | py | # -*- coding: utf-8 -*-
import requests
from . import helpers
from .task import Task
import lxml.etree as et
class API:
"""crowd4u API"""
def __init__(self, api_info={}, project_info={}):
"""API instance Constructor
:param api_info:
:param project_info:
"""
user_id = a... | [
"sshayashi0208@gmail.com"
] | sshayashi0208@gmail.com |
d78b5bb6c4866617ee8d42bdfc72311d72fd10ca | 40aa8243e28eaecc895e0187e1e12e3b66195003 | /Practice/Microblog/app/models.py | 8612ca207041135ac66984ce87ea796ca156dca8 | [] | no_license | Toruitas/Python | 94c5dc82736914203e8b712055b824796816c145 | 2d1ea9cdad9501ae9d934c90d516a5a846d2a631 | refs/heads/master | 2016-09-05T20:10:41.584677 | 2015-06-01T03:14:51 | 2015-06-01T03:14:51 | 17,966,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,865 | py | __author__ = 'Stuart'
"""
Remember, every time you modify the Columns of any table (i.e. adding about_me to User), you must migrate it.
"""
from app import db, app
from hashlib import md5
import re
enable_search = True
import flask.ext.whooshalchemy as whooshalchemy
followers = db.Table('followers',
... | [
"Toruitas@gmail.com"
] | Toruitas@gmail.com |
d56d1e66efe88a996e49a8c7cab540f927348830 | df1ce92b397080896848c02d6e0300be7191f201 | /build/my_pkg/catkin_generated/pkg.installspace.context.pc.py | 23f18f06f3c8cdfce6dcdb86c829702ca4820fc6 | [] | no_license | predator4hack/ROS-projects | 4310f43292f3d41f85588041969a480041f74e22 | 30ef277c11ce210bc5d5724a95960e7d82674277 | refs/heads/master | 2023-03-27T23:06:25.688732 | 2021-03-17T20:43:16 | 2021-03-17T20:43:16 | 348,831,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "my_pkg"
PROJECT_SPACE_DIR = "/home/ch... | [
"chandankum2440@gmail.com"
] | chandankum2440@gmail.com |
9a875a2d6e6264bd0250b4763084ebc1e32f687c | a72614b303f198ee4d717c6425c66ea508357b18 | /Eric_Matthes/chapter_1/8/person.py | 6c5f56e96877c9cddff06b05b2b731b823e99167 | [] | no_license | rvdmtr/python | d70e8b65685e9967c8b261a085e5fa36ea8a3f8e | 355d117ae48f78d331ef2cfc2f92551dc857cb58 | refs/heads/master | 2020-08-19T20:44:42.557121 | 2019-10-18T08:32:52 | 2019-10-18T08:32:52 | 215,952,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | def build_person(first_name,last_name,age=''):
"""Возвращает словарь с информацией о человеке"""
person = {'first':first_name,'last':last_name,}
if age:
person['age'] = age
return person
musician = build_person('jimi','hendrix')
print(musician)
| [
"noreply@github.com"
] | rvdmtr.noreply@github.com |
147be9d8f7c55c97d306ffa31674eec642f684ae | 3a05bb0d4a598d18e9c90c0a35bd44556fcd94d3 | /ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/results.py | 8bca7131a912ef3ddcbdcd529d89eafed70720a1 | [
"Apache-2.0"
] | permissive | alexa/alexa-apis-for-python | 2e21330c7e35b76e4f360aa72a9e789906f3bca1 | 751e6dbbb829ceb34dd7405eb77235c06b19c612 | refs/heads/master | 2023-08-28T12:50:05.522913 | 2023-08-21T16:04:58 | 2023-08-21T16:04:58 | 145,045,841 | 119 | 34 | Apache-2.0 | 2022-07-19T16:40:29 | 2018-08-16T22:40:28 | Python | UTF-8 | Python | false | false | 3,284 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com"
] | ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com |
56ecb04ee8f9e9aeaa59351347623dc8c169b668 | cb80118c089962feb3a2f2ff4a0b61e971a23a79 | /pandas/pandas02_viewing_data.py | 5d5687df3baabee11ceb8203081b3eabcb6d6915 | [] | no_license | ym0179/study_basic | cc54c5b57d33a0ee7ed345240476727a0009c942 | 3eb244f478da1b1f88717981c5130738a6eb1273 | refs/heads/master | 2023-01-12T04:13:55.421740 | 2020-11-16T11:41:46 | 2020-11-16T11:41:46 | 313,249,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
dates = pd.date_range('20201116', periods=6)
df = pd.DataFrame(np.random.randn(6,4), index = dates, columns=list('ABCD'))
print(df)
print(df.head())
print(df.tail(1))
print(df.index)
print(df.columns)
print(df.to_numpy()) #index나 column 라벨을 포함 X
p... | [
"ym4766@gmail.com"
] | ym4766@gmail.com |
3d5c5efc20cff72290fa6281e28dfe65395308c9 | f4bf81d4e80468331a09401dbaeef12465aca853 | /lib/python/helpers/py2only/docutils/parsers/rst/languages/fi.py | e64a6a7e4b6586ab559b1e6dc6788cd073a43c0c | [] | no_license | nottyo/intellibot | 45c41d673608a0a1291c6387f9d33ef449f18837 | 0547d987deaad90260abe33db5284eae9704eb9b | refs/heads/master | 2020-12-30T23:59:29.795725 | 2017-04-10T07:53:59 | 2017-04-10T07:53:59 | 86,574,980 | 1 | 0 | null | 2017-03-29T11:37:54 | 2017-03-29T11:37:53 | null | UTF-8 | Python | false | false | 3,759 | py | # -*- coding: utf-8 -*-
# $Id: fi.py 7119 2011-09-02 13:00:23Z milde $
# Author: Asko Soukka <asko.soukka@iki.fi>
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
# read <http://docutils.sf.net/docs/howto/i18n.html>. Two ... | [
"traitanit.hua@ascendcorp.com"
] | traitanit.hua@ascendcorp.com |
0b917ec3d67c3e36988816abd36419cffae59399 | f55e801ca36342c02ab9570b95459161700fb195 | /events/migrations/0004_auto_20200812_0727.py | 7c23a6b9cd31c30ad49771519b71f5f2d8fd36f3 | [] | no_license | larry852/miso-cloud-00-backend | dd662e8e248fe5cbbba6c8f8b4d081f44b055d48 | 00020c589f9c779da4e824db90565607add4051e | refs/heads/master | 2022-12-15T17:59:33.178876 | 2020-09-17T21:07:28 | 2020-09-17T23:18:58 | 286,869,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # Generated by Django 3.1 on 2020-08-12 07:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0003_auto_20200812_0604'),
]
operations = [
migrations.AlterField(
model_name='event',
name='event_category'... | [
"larryportocarrero@gmail.com"
] | larryportocarrero@gmail.com |
3c2a66537ebf2c4ca082afabf35e7f755770d7a3 | 2db25c568278495ac6101d5e6f89a61e9c8eca8d | /pyrl/components/__init__.py | 6648897545c181741a62dd8d0c24e1c91c6d9755 | [
"MIT"
] | permissive | abesto/pyrl | b49a40301501bf8b514e9aaad4c11158e98f4f1a | 34eb9843217ed5b557bff99ed66ef46b49b5c295 | refs/heads/master | 2020-09-23T11:17:16.356169 | 2019-12-02T23:23:29 | 2019-12-02T23:23:29 | 225,488,000 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | #!/usr/bin/env python
from .collider import Collider # NOQA
from .energy import Energy # NOQA
from .equipment import Equipment # NOQA
from .equippable import Equippable # NOQA
from .fighter import Fighter # NOQA
from .inventory import Inventory # NOQA
from .level import Level # NOQA
from .name import Name # NO... | [
"abesto@abesto.net"
] | abesto@abesto.net |
93f7cff67e0f4f972411644ac351eb80c7c19bc7 | 19cec240505e27546cb9b10104ecb16cc2454702 | /moin/lib/python2.4/site-packages/MoinMoin/_tests/test_util_lock.py | 95860176628b52cc7ecd10d6fcf0057013d87d15 | [] | no_license | imosts/flume | 1a9b746c5f080c826c1f316a8008d8ea1b145a89 | a17b987c5adaa13befb0fd74ac400c8edbe62ef5 | refs/heads/master | 2021-01-10T09:43:03.931167 | 2016-03-09T12:09:53 | 2016-03-09T12:09:53 | 53,101,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,125 | py | # -*- coding: utf-8 -*-
"""
MoinMoin - MoinMoin.module_tested Tests
Module names must start with 'test_' to be included in the tests.
@copyright: 2005 by Florian Festi
@license: GNU GPL, see COPYING for details.
"""
import unittest, tempfile, os, time, shutil
from MoinMoin._tests import TestConfig, T... | [
"imosts"
] | imosts |
b16516679dc95286336c6f4c27fb8cbf885d88f7 | de38ad41b929ba0ccde5d3c03f56a5a96fbfca38 | /tasks/parcel_meta/delete_parcel_data.py | acd542cbeea30a6419439756423e02828c117229 | [] | no_license | availabs/mitigate-api | baff277c36a46ca9eea2194688cfc85aaa432b1f | 1290271d6c037506cfa4ac47c1661b752e2ef3e1 | refs/heads/master | 2023-01-10T00:06:22.819162 | 2021-03-08T20:55:43 | 2021-03-08T20:55:43 | 140,449,291 | 1 | 0 | null | 2023-01-04T04:51:39 | 2018-07-10T15:03:06 | JavaScript | UTF-8 | Python | false | false | 687 | py | import psycopg2
import database_config
def createTable(cursor):
print "DELETING ALL ROWS IN TABLE..."
sql = '''
DELETE FROM parcel.parcel_meta
'''
cursor.execute(sql)
print "ALL ROWS DELETED"
def main():
print('Connecting to the PostgreSQL database...')
connection = psycopg2.connect(host=... | [
"nayanikabhargava1993@gmail.com"
] | nayanikabhargava1993@gmail.com |
9a834cc252770dec687a4232c2826f17cb8aa78e | 427ab1f7f7fe08f76fab6468f6ea24dc5bc2701d | /bugscan/exp-1924.py | 487eae064ca76a1e8a943264ab2457c99f666c5f | [] | no_license | gayhub-blackerie/poc | b852b2bcdba78185efd68817c31579247c6e4b83 | 8b7c95d765deb450c029a921031eb1c90418f2a7 | refs/heads/master | 2021-07-24T03:05:52.697820 | 2017-11-04T10:33:51 | 2017-11-04T10:33:51 | 107,093,079 | 1 | 0 | null | 2017-10-16T07:31:31 | 2017-10-16T07:31:31 | null | UTF-8 | Python | false | false | 875 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import urlparse
import time
import re
"""
POC Name : TP-link TD-8820 配置文件下载 可获得密码
Author : a
mail : a@lcx.cc
Referer : http://www.wooyun.org/bugs/wooyun-2014-075723/
"""
def assign(service, arg):
if service == 'tp-link':
arr = url... | [
"hackerlq@gmail.com"
] | hackerlq@gmail.com |
b240915e7d2e7349864d5b904e2b79ca4ab10c5a | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /see_year/good_point_or_own_company.py | 75cd505e9bc51df77cb891207a203b57f65b6a67 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py |
#! /usr/bin/env python
def know_government_in_same_company(str_arg):
life(str_arg)
print('big_week')
def life(str_arg):
print(str_arg)
if __name__ == '__main__':
know_government_in_same_company('day')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
d0385d05bc5985ab33502014c4054496c64be83e | 6b52446b1c8c24c0fb8ac0971473e7455f78b0ba | /ipython_log.py | 1357e0ca41f368cab4488a3dbe60d8a109ce1fec | [] | no_license | orenovadia/neural | 76c862d359baa9fbb183cd9dcb384f95daf12f20 | 13f6b0438e90c7b901306ac98bbc10b5d3f5c6c0 | refs/heads/master | 2021-01-10T05:58:10.794426 | 2017-05-31T11:46:07 | 2017-05-31T11:46:07 | 53,945,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,781 | py | # IPython log file
import sklearn
import sklearn.learning_curve
get_ipython().magic(u'logstart')
get_ipython().magic(u'ls ')
get_ipython().magic(u'ls -ltr')
import sklearn
import sklearn.learning_curve
import sklearn.datasets
data = sklearn.datasets.load_iris()
dir(data)
data.train
data['DATA']
data['train']
dir(data)... | [
"orenovad@gmail.com"
] | orenovad@gmail.com |
99d66be90b290e40d49742e8b94396e099576e64 | 2e0908cf2dce87036e9b9d32f23d7b7e20b2127f | /tests/test_algebra_converters.py | 11d3ea6f9cda24c198b47f69ae056e6b2f3ea4da | [
"MIT"
] | permissive | jtpils/sklearn-onnx | a74b621c47ee02f4b0775c6f99091f6d79873650 | 5a065b767ec0e658f671e6313c2a3392b0dc81d6 | refs/heads/master | 2020-06-21T10:52:57.936832 | 2019-07-17T15:53:40 | 2019-07-17T15:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,315 | py | import unittest
import warnings
from distutils.version import StrictVersion
import onnx
import numpy
from numpy.testing import assert_almost_equal
from sklearn.preprocessing import StandardScaler
from skl2onnx.algebra.onnx_ops import OnnxMatMul, OnnxExp, OnnxAdd, OnnxDiv
try:
from skl2onnx.algebra.sklearn_ops impor... | [
"noreply@github.com"
] | jtpils.noreply@github.com |
98443254628a48c2d9761daca2b6d60c71a33afe | c64035a9341cbd7fe6147d7d39d560fcdebc5670 | /source/conf.py | 79d5baa5831bee2158a11d9133e7122c9b63d203 | [
"Apache-2.0"
] | permissive | walkacross/starry-docs | 521ac0d48114332f776b40613e336d55954253e5 | 982c487277e48af20af454d5defb4d659222a67b | refs/heads/master | 2022-11-06T20:42:16.706637 | 2020-07-13T10:34:37 | 2020-07-13T10:34:37 | 279,269,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"yujiangallen@126.com"
] | yujiangallen@126.com |
bc4ec83a9d6aceac3cedfe46c1065ac45a84e01f | b0cdbad299f6174bfdb0fba173dbcf3889b82209 | /Object Oriented Programming/class-function-outside.py | 25962c0dcc691502c839fcd30e50969b6b399c09 | [] | no_license | deesaw/PythonD-06 | a33e676f1e0cfc13b4ea645c8b60547b198239ac | 3c6f065d7be2e3e10cafb6cef79d6cae9d55a7fa | refs/heads/master | 2023-03-18T08:24:42.030935 | 2021-03-02T14:15:09 | 2021-03-02T14:15:09 | 343,797,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | def outfun(self):
print 'hello, iam out of the class'
class TestObject(object):
def f1(self):
print "I am inside the class"
f2=outfun
i=TestObject()
i.f1()
i.f2() | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
79e86094394aedb2dd74c34c917170314c2db770 | 5380c194fd3d97ce5779790abe8ffa1694daa519 | /BackEnd/RBAC/RbacForms/permission.py | c7ba992bf8d86dbe16cf96fe6525bd5f37745b86 | [] | no_license | frshman/LuffyCity | 4efc5360256cb328cdc34091762078bde11610be | 8f3143e832a457a1bfbf5aa46c0abb298198164a | refs/heads/master | 2023-08-13T22:10:50.544455 | 2020-06-05T04:47:37 | 2020-06-05T04:47:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/4/5 21:43
# @File : permission.py
# ----------------------------------------------
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
# >>> Author : Alex
# >>> QQ : 2426671397
# >>> Mail : alex18812649207@gmail.com
# >>> Github : https://github.com/koking0
# >>> Blog... | [
"alex18812649207@gmail.com"
] | alex18812649207@gmail.com |
8f9281572641f4387071697316e72e24718c4d2b | 3b5069eb6a4d257f39c22d83e444b40ea8e159ad | /agro_logistique/asgi.py | f7c6904213d6746d6089da31cc331c68cf6aa16d | [] | no_license | parheto10/agro-suivi | 757d2804065eaa37e1fa93081c09aec6e9e0cb23 | 638a670657c4542df5bbb3deeb639952f1414004 | refs/heads/master | 2023-09-05T04:50:37.952973 | 2021-11-19T12:05:35 | 2021-11-19T12:05:35 | 429,765,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
ASGI config for agro_logistique project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJAN... | [
"parheto10@gmail.com"
] | parheto10@gmail.com |
84f6b137261538227c9fe8489a88762b0513af38 | 6f10161fddba8dce72c247b34024cf61319286f8 | /nt_training/migrations/0007_site_page_description.py | 69e7510ba5746726d678285944e1f6dd4d930bb7 | [
"MIT"
] | permissive | newtheatre/nt-training | 8f9ebbef469eecd8ca33a7926c302740bd01b651 | e080534b9f91e0557b7873cf9609ce0071467c0b | refs/heads/master | 2022-05-27T23:17:35.141647 | 2021-03-23T11:34:02 | 2021-03-23T11:34:02 | 102,904,619 | 1 | 2 | MIT | 2022-04-22T22:22:01 | 2017-09-08T21:09:07 | CSS | UTF-8 | Python | false | false | 404 | py | # Generated by Django 2.2.4 on 2019-08-27 08:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nt_training', '0006_auto_20190827_0805'),
]
operations = [
migrations.AddField(
model_name='site_page',
name='descri... | [
"sam.tosborne@googlemail.com"
] | sam.tosborne@googlemail.com |
da91fe9153f34f44042596b2dd3589b33da72256 | 0e83f9bc2b69ded45687ad6d9456d17473cec7e2 | /Programacion-I/ListasXElementos2.py | 6838a2af632c6a1142eebbf382a72061a7bb4e2f | [] | no_license | NicolasGomez97/Cientifico-Datos-ISPC | f1d88b0b1519e9f54b1fe630fe9d13d11caf62d5 | 8bc63fc36e0ee59055af0b33e349b24979aa5fc0 | refs/heads/master | 2023-05-26T08:44:05.235761 | 2021-06-04T17:37:41 | 2021-06-04T17:37:41 | 312,644,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | """
Problema:
Tengo 10 listas 10 elementos c/u, pero la cantidad de listas puede ampliarse.
Las listas tiene nombre con letras, desde la "a".
Quiero tomar de uno cada elemento de las listas y calcular una media.
O sea a[1]+b[1]+c[1]..... / n
Y necesito la media de cada lista.
Ej:
a=[1,2,3,4,5,6,7,8,9,0]
b=[10,... | [
"you@example.com"
] | you@example.com |
c98ee4cbc0daad3b752baaa405c37b3cc335e76b | a5013bf6b0736ae6c1cce1b9956cbcba25352cc3 | /zoonibot/test_finders.py | 15b7d5479d0b15da9bd727ca3ac0030975e57e34 | [] | no_license | mjsottile/ZooniBot | 827c047bc1b2bdd7051bb3720eea277e78cce7c9 | c99a818153fa502926992eb67e616ef3ed481078 | refs/heads/master | 2021-01-20T21:58:58.544377 | 2013-09-18T03:48:27 | 2013-09-18T03:48:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from mock import MagicMock
from entry import ZooniverseComment, Discussion
from finders import comments_without_zoonibot_responses
def test_comments_without_zoonibot_responses():
bot = MagicMock()
bot.search_comments.return_value = [ZooniverseComment(discussion=Discussion(id=1))]
coms = [ZooniverseComment... | [
"beaumont@hawaii.edu"
] | beaumont@hawaii.edu |
49050e4be099cfb3ec821f2f77a49bf68bdb4032 | 3c04141b90cd173e09878625b076ddc85a621ce9 | /src/lib/models/model.py | 8c63c93e35ea9049fbc749057d4a6df9383e0fac | [
"MIT",
"BSD-3-Clause"
] | permissive | gfjiangly/RCNet | 041ec29b6a087c275b6fe77c0ff6084e4231cb53 | ef6860f23943eb8e21fdec565019f2f8eda17673 | refs/heads/master | 2023-04-03T07:28:18.855472 | 2021-03-31T11:44:56 | 2021-03-31T11:44:56 | 353,332,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch
from .networks.msra_resnet import get_pose_net
from .networks.dlav0 import get_pose_net as get_dlav0
from .networks.pose_dla_dcn import get_pose_net as get_dla_dcn
from .networks.resnet_d... | [
"jgf0719@foxmail.com"
] | jgf0719@foxmail.com |
33334f26fa476560404d026e11809df6592b0d2b | 0a4c0502fff8c1ec7b11cd8290930a34722fcec9 | /subscriptionsApp/migrations/0002_auto_20210413_1055.py | 229d32f8df86e0a83c1d584d510cb8555df67832 | [] | no_license | rushabhgediya38/stripe_subscription_payment | 987381495e79aaade7a66e34af9aad1c4333ec38 | 9929966ff02dfb134d6ee976480ba02de65460c9 | refs/heads/main | 2023-04-07T06:41:34.542049 | 2021-04-14T06:36:43 | 2021-04-14T06:36:43 | 357,799,938 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # Generated by Django 3.2 on 2021-04-13 10:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('subscriptionsApp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='stripecustomer',
name='stripeC... | [
"rushabhgediya38@gmail.com"
] | rushabhgediya38@gmail.com |
222473354e304a7181d862fd5a753a4f3a7dc35d | c90dce8358dc43ee2b50e3b8e099a38a38635d0c | /ivi/agilent/agilent8594L.py | 04e85a7ee848a6c36d562eb8737634a5ef142465 | [
"MIT"
] | permissive | CedricB31/python-ivi | 88209d6ff34dc2f8291eead0ccd03a7437aea9b7 | 5910db9d0e2f4704aa80fa29de86eb98a82bec8b | refs/heads/master | 2020-12-26T09:22:00.284269 | 2016-06-02T15:04:33 | 2016-06-02T15:04:33 | 53,782,758 | 1 | 0 | null | 2016-03-13T11:58:50 | 2016-03-13T11:58:50 | null | UTF-8 | Python | false | false | 1,555 | py | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2013-2014 Alex Forencich
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... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
1ce4f4656d633a25be7115c125d7449796954321 | dd1e02c6f8a7d32c6c2f418847931e43d1d38b86 | /backend/backend/api/admin.py | fcbfdbfcaf4856cc9bb3d46ff7d6ceb064c3aa80 | [] | no_license | Dalelkhanova/WEB | 546fe6242913cbbf6cb63c4f32464dcc39b40280 | e7354e2e39fce8f01d99470adeae8f234920f6b0 | refs/heads/master | 2023-01-09T09:42:25.885250 | 2020-04-25T19:05:40 | 2020-04-25T19:05:40 | 240,701,434 | 0 | 0 | null | 2023-01-06T01:51:28 | 2020-02-15T11:57:55 | Python | UTF-8 | Python | false | false | 161 | py | from django.contrib import admin
from .models import User, Category, Books
admin.site.register(User)
admin.site.register(Category)
admin.site.register(Books)
| [
"you@example.com"
] | you@example.com |
4dbd151b0ccea6013614e13439aa784e5a73f103 | f1d3ac58911d36e57928d903c1ef8b252c51ca4b | /rascals/simple/starter.rascal | fc50355dbb73f6ffde36acca031319b9cb41bf51 | [
"MIT"
] | permissive | nicolas33/imapfw | 7866196baed13a46bf20e06e3af42d7f40d81442 | ef19fd991a04b85f4c97f9a472b14774847e9142 | refs/heads/master | 2021-01-10T06:22:47.819581 | 2015-11-07T15:25:00 | 2015-11-07T15:25:00 | 43,857,652 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,880 | rascal |
__VERSION__ = 0.1
from imapfw.api import types, drivers
##########
# GLOBAL #
##########
# UI allows to send messages to the UI library of the framework. Interface is
# quite the same as the logging library:
#
# - critical(*args)
# - debug(*args)
# - error(*args)
# - exception(*args)
# - info(*args)
#... | [
"nicolas.s-dev@laposte.net"
] | nicolas.s-dev@laposte.net |
c417504acc86493706ab9c171a4650b3e4fb93cb | 4a8a9fc0db8fda6ed4eb0a84b3f2e1feea2d289a | /src/e03.py | c1d6fa7b06f76e29531bb3142583d392e2634c0d | [] | no_license | tokibito/pycon-apac-2013-bpmappers | c819327ea16d69c4e3d7bbd67cdbdf92a877a09e | 8ae5cfed63449cc97341bd6c1c7eddbc3d0eddeb | refs/heads/master | 2020-07-25T07:30:07.381394 | 2013-09-15T07:21:12 | 2013-09-15T07:21:12 | 208,215,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # 例3. bpmappersを使わない場合(親子関係
import json
# データモデル
class Book(object):
def __init__(self, title, price, author):
self.title = title
self.price = price
self.author = author
class Author(object):
def __init__(self, name, company):
self.name = name
self.company = company
# ... | [
"tokibito@gmail.com"
] | tokibito@gmail.com |
ac86ead34602fc86efbd74cb0d8a9db4d3198571 | 2a5765a0141536b71d305c6273aa7e1bfb5b5dcf | /projectHelper/swh/python/foodClassifiy/makingModel/get_nutrition_data.py | 47c250eb6e7527c309d8d8529a9dd70fba1cda2d | [] | no_license | kosmo-65th/spring_lifecare | b5dc9a2fdf83c723a7912068f4de506a94c16282 | 3a8e1ac7e9fd58793399a75df85dc5c5ecea39a1 | refs/heads/master | 2023-07-13T10:13:03.989187 | 2021-04-16T09:36:07 | 2021-04-16T09:36:07 | 289,890,109 | 0 | 2 | null | 2021-08-22T17:14:26 | 2020-08-24T09:53:04 | Jupyter Notebook | UTF-8 | Python | false | false | 6,477 | py | import requests
import pandas as pd
def get_nutrition(food_name):
nutrition_data = pd.DataFrame(columns=['name', 'protein', 'calcium', 'fat', 'carbohydrates', 'vitamins', 'calorie'])
for name in food_name:
url = "https://api.nal.usda.gov/fdc/v1/foods/search?api_key=d4D6dSOc81pTAOY2gsNZ0YhjkMlhStLJRoII... | [
"swhan9404@naver.com"
] | swhan9404@naver.com |
d26ecdd5f9c0a87715ec6e14aff458f38c5d6648 | e0220278b08346dcd67e3c09f7f0fb5c858fd020 | /algorithms/ZChart.py | afaab545a1a553206880445ca409f5c3e17a4686 | [] | no_license | miltonluaces/ds_topics | ce8f9731278aeffaeb33e06b3275b75db57f55a4 | bf7735d1b1d0ca71735bcc6d44c6a562d0a55b1d | refs/heads/master | 2022-12-12T03:52:57.668995 | 2021-05-01T09:49:47 | 2021-05-01T09:49:47 | 226,897,165 | 0 | 0 | null | 2022-12-08T08:12:07 | 2019-12-09T14:56:02 | Jupyter Notebook | UTF-8 | Python | false | false | 2,762 | py | #region Imports
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Statistics;
using Maths;
#endregion
namespace Statistics {
internal class ZChartFcst : TsForecast {
#region Fields
private List<double> acum;
private List<double> rolling;
... | [
"miltonluacs@gmail.com"
] | miltonluacs@gmail.com |
f986164a8da2e411b72751300a8d9827acb9e7b3 | bf15a97a377bc49495a8c278cd247387a08361fd | /intersight/models/niaapi_version_regex_platform_ref.py | 25f8b78d17da639b78b0adfa00791c3c291fb162 | [
"Apache-2.0"
] | permissive | movinalot/intersight-python | ffcb434e5fdf3f6e857dd967c794a64b2d2e05de | cdc3b082d75eac93b74029ab610e16d3008fdd8c | refs/heads/master | 2020-12-18T15:46:06.780834 | 2019-10-29T00:39:49 | 2019-10-29T00:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,804 | py | # coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-961
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class NiaapiVersionRegexPlatformRef(object):
"""
NO... | [
"ategaw@cisco.com"
] | ategaw@cisco.com |
f1392acfd1072b09ee04553609667f143c5fd598 | 2f9e4ed18c374000c9f11e5953f9ef5fdba86983 | /Serwery/Serwer_TCP.py | 944ec903825a61e107b2e85a72c69a80e70ca790 | [] | no_license | Hajducek/Zabawki | 58fbb1a9e26ac22ce9f2c47e55a8389909bf2610 | 17d65dd92a31b9db9d6fb3214af1c45ac7c9d3f2 | refs/heads/master | 2016-08-12T21:48:59.113365 | 2015-12-09T16:28:16 | 2015-12-09T16:28:16 | 47,369,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | import socket
import threading
bind_ip = "0.0.0.0"
bind_port = 9999
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind((bind_ip,bind_port))
server.listen(5)
print "[*] Nasluchiwanie na porcie %s:%d" % (bind_ip,bind_port)
# watek obslugi klienta
def handle_client(client_socket):
# druk... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
d79ea7daeff84df30106ca4f04c37062753b8e02 | 40b80c102e5a67729d46d3f7b98086e3534cb39b | /permission_backend_nonrel/models.py | 0b5d9528b50dc44c13782b877259b9e5d90e7e36 | [] | no_license | bluedisk/kisp-gae | 965ffea09ade0d3abd93f1a4edc5dc24a4c5c895 | 0fd6056d912b0aee8d880cca1e3a452cfe41f677 | refs/heads/master | 2021-01-24T06:13:00.395696 | 2014-11-30T18:11:05 | 2014-11-30T18:11:05 | 17,699,929 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from django.contrib.auth.models import User, Group
from django.db import models
from djangotoolbox.fields import ListField
class UserPermissionList(models.Model):
user = models.ForeignKey(User)
permission_list = ListField(models.CharField(max_length=64))
permission_fk_list = ListField(models.CharField(m... | [
"bluedisk@gmail.com"
] | bluedisk@gmail.com |
ab8e210fe63e7ce599e29c1fd96b83a492190663 | a361312c810541220b81e9e9e2ce6ee0edcdb115 | /runner/b_vanilla.py | ee916a3db7543756e6ebc5005212a3df0da95eba | [] | no_license | matthewzhang1998/pruning | 92a1e532c9ce12f99abc7b4c2d66b6238de3d8d3 | 6061e78e4109187d7956ddd4250566938f76dd28 | refs/heads/master | 2020-04-20T03:37:27.462428 | 2019-10-29T04:31:31 | 2019-10-29T04:31:31 | 168,603,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py | import os.path as osp
import numpy as np
import tensorflow as tf
from model.vanilla import *
from runner.base_runner import *
from util.optimizer_util import *
from util.logger_util import *
from model.snip import *
from util.sparse_util import *
import scipy.misc
from collections import defaultdict
from tensorflow.c... | [
"matthew.zhang@mail.utoronto.ca"
] | matthew.zhang@mail.utoronto.ca |
d198c894104ebc76e300b2ebef2d416421bbe7ef | 5b320ab3401ce3fe968ec57929dd8013474f5c09 | /03_Software Engineering/000_Python 3.4/036_Word Frequency 2.py | 002b9245533820ab94500964ed884eb6b8f4256c | [] | no_license | abdibogor/Thenewboston | a7d701db4f233073b3bf0a422698e6accee885ff | 743ad015601fa308d74cca46bfc2159a01ad9821 | refs/heads/master | 2020-08-05T14:39:37.866343 | 2020-02-13T08:37:12 | 2020-02-13T08:37:12 | 212,581,907 | 0 | 0 | null | 2020-01-02T13:55:18 | 2019-10-03T13:03:56 | HTML | UTF-8 | Python | false | false | 811 | py | import requests
from bs4 import BeautifulSoup
import operator
def start(url):
word_list = []
source_code = requests.get(url).text
soup = BeautifulSoup(source_code)
for post_text in soup.findAll('a', {'class': 'index_singleListingTitles'}):
content = post_text.string
words = content.low... | [
"bogoreh_code@outlook.com"
] | bogoreh_code@outlook.com |
c36469f9530647ea349948848b2e0472d7c0acb2 | 6ba827c848539a6e5a4ee38028296b37552c2590 | /3- squaredictionary.py | 587e6528e34bc0d0f34a4cebcfcd68d896f25d02 | [] | no_license | tarungoyal1/practice-100 | a099d9b6cb0f673654429186f4f3a15b068462d6 | 5e5f2e2ead1f6975006d38a29b0005c93ab401d1 | refs/heads/master | 2020-04-14T06:19:56.577270 | 2018-12-31T16:32:11 | 2018-12-31T16:32:11 | 163,683,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # Question 3
# Level 1
#
# Question:
# With a given integral number n, write a program to generate a dictionary that contains (i, i*i) such that is an integral number between 1 and n (both included). and then the program should print the dictionary.
# Suppose the following input is supplied to the program:
# 8
# Then, ... | [
"tarun13317@gmail.com"
] | tarun13317@gmail.com |
e1d480dd154ebd947af4bd70b0707d9d9ec899d6 | 2ee6fd35b887171c781205d04598ca0ea87c4c28 | /problem_185.py | 85ac14bfa9a3d86d9108e8c17bca6ae0d0057f9d | [] | no_license | paulrodriguez/daily-coding-problem | 55080dc0ab2c8bd2369475948301abaedd9c19f2 | ac9ff279e538ef4967a554732d3ed2f7977dcd39 | refs/heads/master | 2020-04-07T11:18:52.466192 | 2019-07-13T08:02:26 | 2019-07-13T08:02:26 | 158,320,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | '''
Given two rectangles on a 2D graph, return the area of their intersection.
If the rectangles don't intersect, return 0.
'''
def area_of_intersect(r1,r2):
r1_tl = r1['top_left']
r1_br = (r1_tl[0]+r1['dimensions'][0],r1_tl[1]+r1['dimensions'][1])
r2_tl = r2['top_left']
r2_br = (r2_tl[0]+r2['dimensio... | [
"YOUR@EMAIL.com"
] | YOUR@EMAIL.com |
32ad5d7cd756d92640f8e6d190f188c43e21db14 | ff37e87a8101f06d7bc71879978fb6db8444964b | /src/com/dtmilano/android/adb/dumpsys.py | 2419bb8e215544c8cb9177e839fb24fa3cddd1d7 | [
"Apache-2.0"
] | permissive | kimiin/AndroidViewClient | 952d99000e33c0e15a8b1fafd99f840208faa8fb | bdbe45b2790a5b931528837997edfc72f27cf748 | refs/heads/master | 2020-03-28T03:27:25.138204 | 2018-08-23T03:44:50 | 2018-08-23T03:44:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,612 | py | '''
Copyright (C) 2012-2018 Diego Torres Milano
Created on Dec 1, 2012
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... | [
"dtmilano@gmail.com"
] | dtmilano@gmail.com |
4efd0d61c955ebc3673bd18fef596b5b4000ff00 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /schema/predict/instance/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_object_tracking.py | 8b96f75fd241f7b45bb6d64b7b9371ee1abae84f | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 2,394 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
5374b132cbcedba91a3d1e34edc30e06d643f559 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/561.py | 013e5c21f795e20e3987435bdb45d81e90c4f0e4 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #!/usr/bin/env python
T = int(raw_input())
def read_problem():
N, M = [int(e) for e in raw_input().split()]
pattern = []
for i in range(N):
pattern.append([int(e) for e in raw_input().split()])
return N, M, pattern
def solve(problem):
N, M, pattern = problem
max_i = [max(line) for line in pattern]
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c2f507bcce1e9a75a86c2dce086a9e3041b00eb7 | f0932f59d37adfbba9307ee31e6f78ce3c256c4a | /notebook/20170329_test_multiple_spacers/analysis_helpers.py | be7d7f0f4fc2d7de1b88d2edaefbdd5105138ebb | [] | no_license | kalekundert/ligrna | 3785a1e5fb8ed6d07839a5314029f3fc882d4471 | 843963973c34c4976f5adfbd4d03f5f1d0344423 | refs/heads/master | 2020-04-12T12:52:32.828100 | 2020-02-22T00:59:57 | 2020-02-22T00:59:57 | 162,505,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,335 | py | #!/usr/bin/env python3
import color_me
import itertools
import numpy as np
from collections import namedtuple
from pprint import pprint
SENSORS = [
'on',
'off',
'rxb 11',
'mhf 30',
'mhf 37',
]
COLORS = {
'on': color_me.ucsf.light_grey[0],
'off': color_me.ucsf.li... | [
"kale@thekunderts.net"
] | kale@thekunderts.net |
b3025e31c33e5129ab709a92a65b0e297c150962 | f170ed80b4269c8fbe622b78cadc7f293a956e56 | /lib/googlecloudsdk/third_party/apis/sddc/v1alpha1/resources.py | 080e9212f0af72ad26187eaf065147d0597aa932 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/google-cloud-sdk-2 | 16227c61c6d60b1af290348ed5f6075741f5b68a | b94a8c7ea9776effc9cee67f1db677cec4800b6d | refs/heads/master | 2022-11-20T14:46:30.764336 | 2020-07-17T14:41:11 | 2020-07-17T14:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google LLC. 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
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
2a1467be1af69ec732d9ff48a94d78c4c9d25bfb | b69f9bc05fb8fc4d0a039f9a0ec3d107ef7e92b2 | /authy/urls.py | 95ae4682f6459996d86c5cbcede1eed4579464cf | [] | no_license | Shivamj075/authy | b410815712d174e2d3ea60dcf33b2e2e2e7a59b8 | 5eded83563b63467abe141239e5264095f8a7158 | refs/heads/main | 2023-07-18T02:34:12.850161 | 2021-08-16T17:44:00 | 2021-08-16T17:44:00 | 396,900,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | """authy 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-based v... | [
"shivamj075@gmail.com"
] | shivamj075@gmail.com |
7e9a4784c6b9dbf74d5b7026b063d457c70ffe7a | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/PhishUp/Integrations/PhishUp/PhishUp_test.py | 1019c6d9a50b7b3faa7f3bb81ed8848b761dd477 | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 3,418 | py | import json
import io
from pytest import raises
MOCK_APIKEY = "not"
MOCK_PARAMS = {
"credentials": {
"password": MOCK_APIKEY
}
}
BASE_URL = "https://apiv2.phishup.co"
def util_load_json(path):
with io.open(path, mode='r', encoding='utf-8') as f:
return json.loads(f.read())
def test_in... | [
"noreply@github.com"
] | demisto.noreply@github.com |
303074d3b0e82cc8544180a122776eb1582d4338 | f8bbdfb112618136fc4adccb03ce25fbfc48bff5 | /panel/module/management_ranking/CustomProcesses/UpdateEventStatusProcess.py | 48210e38173e8d502ced2087b08bcdd020960365 | [] | no_license | lazypanda10117/CICSA-Ranking-Platform | 160973987b533ede6e0b94af29b5bc85646b2bc0 | d5f6ac64a1f85c3333c71a7d81749b49145b9a16 | refs/heads/master | 2022-12-09T23:21:28.649252 | 2020-04-28T22:53:07 | 2020-04-28T22:53:07 | 133,093,367 | 3 | 2 | null | 2021-09-22T17:51:39 | 2018-05-11T22:14:01 | Python | UTF-8 | Python | false | false | 763 | py | from django.shortcuts import redirect, reverse
from misc.CustomFunctions import AuthFunctions
from api import EventAPI
from ...base.block.CustomProcesses import AbstractBaseProcess
class UpdateEventStatusProcess(AbstractBaseProcess):
def process(self):
if AuthFunctions.signed_in(self.request, 'admin'):
... | [
"jeffreykam0415@gmail.com"
] | jeffreykam0415@gmail.com |
eab2eff2c87c4feb8b73b4584fb00c64bdc3b026 | 40f4908483b98fc4f370ff4f2d520e1284d045b3 | /phase02/immortals_repo/harness/pymmortals/generated/com/securboration/immortals/ontology/dfu/instance/flowtosemantictypebinding.py | f85ebfacaf79d755676127ed7a629c9971f5e509 | [] | no_license | TF-185/bbn-immortals | 7f70610bdbbcbf649f3d9021f087baaa76f0d8ca | e298540f7b5f201779213850291337a8bded66c7 | refs/heads/master | 2023-05-31T00:16:42.522840 | 2019-10-24T21:45:07 | 2019-10-24T21:45:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | from pymmortals.datatypes.serializable import Serializable
from pymmortals.generated.com.securboration.immortals.ontology.functionality.datatype.datatype import DataType
from pymmortals.generated.com.securboration.immortals.ontology.property.property import Property
from typing import List
from typing import Type
# n... | [
"awellman@bbn.com"
] | awellman@bbn.com |
e47673f41350c1deb40d8da664c6ad514531d07a | fbb12b2b7dcf7f2a33235f6766b4176c083a0c8e | /ChipAtlas/configPY.py | 7e37bacf0af37d9a12094b72f61f6c1a2906336b | [] | no_license | birkiy/TermProjectCOMP541 | b76c8fa3a01e48dc302dc040a2c499c2c9f1b8ba | 400a81765889a21d0590b599c4ba0e529a56e3ca | refs/heads/main | 2023-01-19T21:36:55.085293 | 2020-11-30T12:59:14 | 2020-11-30T12:59:14 | 306,048,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py |
import pandas as pd
sampleDF = pd.read_table("code/samples.tsv")
controlDF = pd.read_table("code/controls.tsv")
srrDF = pd.concat(
[
controlDF[["SRR", "Library"]],
sampleDF[["SRR", "Library"]]
]
)
bigWigs = [
f"results/bigwig/{raw}.{type}.bigWig"
for raw in sampleDF["Raw"]
f... | [
"umutberkayaltintas@gmail.com"
] | umutberkayaltintas@gmail.com |
8d96e33c0192d1608cb474f850d4417ac589dce9 | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/i06-2-config/scripts/beam/beam_centering.py | 9df1d99697e0f0330cffec403996f3342d4bda48 | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,660 | py | '''
a routine in GDA that centre the X-ray beam in the PEEM field of view horizontally and vertically using the M4 and M5 fine pitch actuators.
Created on Jun 24, 2022
@author: fy65
'''
from i06shared.commands.beamline import lastscan
from gdascripts.scan.process.ScanDataProcessorResult import getDatasetFromLoadedFil... | [
"fajin.yuan@diamond.ac.uk"
] | fajin.yuan@diamond.ac.uk |
6521098ca62881852f273c9d3ad9d3e34edb80e2 | 875188967ac96bdabc2780983ef2db32c8c727ef | /ebirdtaiwan/home/migrations/0011_auto_20200908_2215.py | 775e9c121ec022c544e00119a0434e4ed5d9c6df | [
"MIT"
] | permissive | even311379/EbirdTaiwan2020 | b57ef8db79ef0d6b452016b6aa48bee2afe227b2 | 2c1aa4d7346b5ade909d45f7c245fa4988394124 | refs/heads/master | 2022-12-28T01:04:48.431595 | 2020-10-16T15:03:52 | 2020-10-16T15:03:52 | 289,954,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | # Generated by Django 3.1 on 2020-09-08 14:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0022_uploadedimage'),
('home', '0010_homepage'),
]
operations = [
migrations.AddFiel... | [
"even311379@hotmail.com"
] | even311379@hotmail.com |
1fcb19b069e980af14be506ec2e738b134237581 | f92385943346eccca8cc4d7caca66d2d5455caa2 | /2020.4/NumberOfSubarrays.py | 24fbc489ae7abcb90a135bf8b46e811ac00d9d10 | [] | no_license | IamWilliamWang/Leetcode-practice | 83861c5f8672a716141dc6ec9f61f21dc5041535 | c13c0380a3ae9fef201ae53d7004b9f4224f1620 | refs/heads/master | 2023-04-01T12:15:19.335312 | 2020-10-15T14:49:36 | 2020-10-15T14:49:36 | 281,846,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | class Solution:
def numberOfSubarrays(self, nums: list, k: int) -> int:
奇数的索引 = []
def countArrays(first奇数IndexIn奇数List: int, last奇数IndexIn奇数List: int):
left乘子, right乘子 = 奇数的索引[0] + 1, len(nums) - 奇数的索引[-1]
if first奇数IndexIn奇数List > 0:
left乘子 = 奇数的索引[first奇数In... | [
"iamjerichoholic@hotmail.com"
] | iamjerichoholic@hotmail.com |
19496d9a98f8d6e6c08e0287cad828090f1dcc56 | f0343f50faefc9501842fa74a8a49c87b40840c3 | /src/refresh-weixin.py | 2475b95bd6898fa859ac07adc954a36872d4bce5 | [] | no_license | quake0day/Eevee | 6b22993b54ebb834c836331dab681ef1a8ef7a1d | 6420f841c034a1837cad5141da8f4997e7afdc7a | refs/heads/master | 2016-09-05T12:36:02.089595 | 2013-04-14T03:55:47 | 2013-04-14T03:55:47 | 8,127,672 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import sys
import os
import time
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
#device = MonkeyRunner.waitForConnection(99, "015d3b661f20020a")
device = MonkeyRunner.waitForConnection()
def click(left, top):
global device
device.touch(left, top, MonkeyDevice.DOWN_AND_UP)
def drag(start, e... | [
"quake0day@gmail.com"
] | quake0day@gmail.com |
c35b0f1612c7cb7fc560c18a42f30c7b1c304f88 | fcdce57c1bd0cc4f52679fd0f3f82532550083fa | /246/test_workouts.py | 812d7b304baa6303be471acc23aebb1da8fcc514 | [] | no_license | nishanthegde/bitesofpy | a16a8b5fb99ab18dc1566e606170464a4df3ace0 | c28aa88e1366ab65f031695959d7cd0b3d08be6b | refs/heads/master | 2023-08-08T16:53:17.107905 | 2023-07-22T19:07:51 | 2023-07-22T19:07:51 | 183,959,400 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import sys
import pytest
from workouts import print_workout_days
def test_print_workout_days(capfd):
print_workout_days('Upper')
captured = capfd.readouterr()
assert captured.out == 'Mon, Thu\n'
print_workout_days('LOWEr')
captured = capfd.readouterr()
assert captured.out == 'Tu... | [
"nhegde@netflix.com"
] | nhegde@netflix.com |
deaaaf8226c227bb1c78c79edb35b535d4596283 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/Lazymux/Infoga/recon/shodan.py | e9dabe8663567422cf95ed67548b94bfcf61ee90 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b13b8bf6716aacdd82e1c4936fde36dcbec9ade56125168a7a5d8d6abff8c96b
size 638
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
f8cab3e780022f923fb6334425c04c4001cc1e11 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/caddf863df3acac5adadba35507cc5d99ac056fe-<ensure>-fix.py | 81e63938bc8bb2934537df5c7a379b02ba617bfb | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py |
def ensure(module, state, packages, params):
response = {
'results': [],
'msg': '',
}
behaviour = {
'present': {
'filter': (lambda p: (not is_installed(module, p))),
'subcommand': 'install',
},
'latest': {
'filter': (lambda p: ((n... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c97233ae0469034b932d9f733340ea1e9e87dc49 | 8065409913cc84af9cab97703e9928700a7d6ee9 | /khronos-des/primitives/operators/multary_op.py | ed2ee1e2cdf7983b795c52b87fbfd447e5413179 | [] | no_license | 2xR/legacy | 678b6d77a11fe9705e6156589e67504e710d42de | 56099d07bdbc6feb7ebc848a37d5940cbd5f5552 | refs/heads/master | 2021-01-16T22:13:34.380662 | 2016-07-07T17:47:14 | 2016-07-07T17:47:14 | 62,826,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | from khronos.des.primitives.action import Action
from khronos.utils import Deque
class MultaryOp(Action):
def __init__(self, *operands):
Action.__init__(self)
self.operands = Deque()
self.operands_remaining = Deque()
self.operands_succeeded = Deque()
self.operands_failed = D... | [
"rui.jorge.rei@googlemail.com"
] | rui.jorge.rei@googlemail.com |
99beb999e9144d54c54919592530e11891742a40 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc007/D/4379887.py | 30d8542fdc38e750488bc0286ac25fe0a75eb954 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | #A
"""
n = int(input())
print(n-1)
"""
#B
"""
a = input()
if a == "a":
print(-1)
else:
print("a")
"""
#C
"""
r, c = map(int, input().split())
sy, sx = map(int, input().split())
gy, gx = map(int, input().split())
field = ["#"*(c+2)]+["#"+input()+"#" for i in range(r)]+["#"*(c+2)]
check =[... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
95ad9e5128eaf9b581d8eb783faaf17b84eea04d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2749486_0/Python/skeno/b.py | 1ad717f61f82349c7326c3efe89c5f2dfe59a74b | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # /usr/bin/python
import sys
def reads(t): return map(t, input().split(" "))
def read(t) : return t(input())
T = read(int)
for t in range(1, T+1):
[X, Y] = reads(int)
if X < 0:
xm = "EW"
else:
xm = "WE"
if Y < 0:
ym = "NS"
else:
ym = "SN"
s = ""
for i in range(0,abs(X)):
s += xm
for i in rang... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
5a6cea61559928568401b69db32641fa8d0c9a63 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v11/enums/types/parental_status_type.py | 9123a01574a20532aa43538682e8c57cefc34739 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,208 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
8e0295e5e97f8fe9f40ebaa3227b668589c1bda3 | 2b37914a5f8bce817c8796c20c88d525f0abefa5 | /django/crud-plus/posts/urls.py | 9959490c3a07f110314c5bbeb12762513f1595d8 | [] | no_license | mjjin1214/TIL-c9 | 7511ad3f2ef17709a9e2ee704065db9d86c6dd4b | b808345283ab4feb26e9dd878a3f62bb308fa051 | refs/heads/master | 2020-04-17T17:18:34.819439 | 2019-05-09T05:44:04 | 2019-05-09T05:44:04 | 166,777,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | from django.urls import path
from . import views
app_name = 'posts'
urlpatterns = [
# path('naver/<str:q>/', views.naver),
# path('github/<str:username>/', views.github),
path('', views.index, name='list'),
path('create/', views.create, name='create'),
path('write/', views.new, name='new'),
pa... | [
"moc0etan@gmail.com"
] | moc0etan@gmail.com |
7f19ca2d5619912a93464be87c9affb8496d8b8e | fc3cc4d8036eaf800bccd3620002646954c7303f | /script_for_pku_corpus/new_script_for_traintag_pku_corpus.py | 7596f6c60d77fef1fa66cb7a399902a839a14e61 | [] | no_license | dalinvip/pytorch_word2vec_process | 8e3e4c51d38455b15c4fe82fe8a0e0bff70abba5 | dda9450af525f24ce04773801ec6ebd453e27cd1 | refs/heads/master | 2023-02-23T15:41:31.832300 | 2018-03-07T11:25:05 | 2018-03-07T11:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,289 | py | # @Author : bamtercelboo
# @Datetime : 2018/2/26 19:09
# @File : script_for_pku_corpus.py
# @Last Modify Time : 2018/2/26 19:09
# @Contact : bamtercelboo@{gmail.com, 163.com}
"""
FILE : script_for_pku_corpus.py
FUNCTION : None
"""
import sys
import os
# import unichr
import re
import chardet
from idna import... | [
"bamtercelboo@163.com"
] | bamtercelboo@163.com |
b08ecac2d86d2c51b6f7d1ac2046e792967c72eb | 4348ce5e7d3ecd20d52a91bfe47d01c5516a89d5 | /Modules/Overview_Of_Modules.py | 28c87f491df2f18fa54b77b891536143aba3b8ce | [] | no_license | manjunath2019/Python_7am_May_2019 | f8e247c9d1229c0c00825a34b551efab2c2901ae | 38e056ceb62565bf1f98b9981374f2c6cf20546e | refs/heads/master | 2022-03-30T11:16:53.077760 | 2019-07-09T02:19:52 | 2019-07-09T02:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,339 | py |
"""
help()
help> modules
help> keywords
help> symbols
help> topics
>>> help()
help> modules
Please wait a moment while I gather a list of all available modules...
AutoComplete _pyio enum pydoc
AutoCompleteWindow _random errno pydoc_data
AutoExpand ... | [
"keshav.kummari@gmail.com"
] | keshav.kummari@gmail.com |
7d932854f2ff2bb5ad70d94a08c8d57ebe4f4ece | 48477a15ad96505def8097a6c098826b1e5cfe1a | /1_data_structures/3_recursion/14_return_subsets.py | 02975d4246c4fc071d288c51f91a86ee6156e0ed | [] | no_license | 450703035/Data-Structures-Algorithms | 02cd5bbb92ce25019fce4955af38b0317b4f4cac | dde33560fcb3e3ff41cf8bd37a454f8c13b15138 | refs/heads/master | 2021-05-22T02:25:03.554870 | 2020-06-27T14:23:24 | 2020-06-27T14:23:24 | 252,927,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | '''
Problem Statement:
Given an integer array, find and return all the subsets of the array.
The order of subsets in the output array is not important.
However the order of elements in a particular subset should remain the
same as in the input array.
Note: An empty set will be represented by an empty list
Example 1... | [
"danny.wangle@gmail.com"
] | danny.wangle@gmail.com |
2e5fc9c5af41a19b29788e2cca20d91a196332e7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03472/s708033970.py | f00e4604b381c7e4e6a3f8f50959d478c8b0c3c9 | [] | 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 | 467 | py | N,H = list(map(int,input().split()))
Amax = 0
Bs = []
for i in range(N):
A,B = list(map(int,input().split()))
Amax = max(Amax,A)
Bs.append(B)
Bs.sort(reverse=True)
cnt = 0
flag = 0
for i in range(N):
if Bs[i]>=Amax:
H += -1*Bs[i]
cnt += 1
if H<=0:
print(cnt)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e2945ec994d89adf483f88997015541a9ed51cfe | 88ecc473ee8cf4f895ce7fcbde97906a048b6fcc | /loved.py | d3d1add6f40efa5d490eaf307bf1ead11cad0fba | [] | no_license | hugovk/lastfm-tools | 412470a06eb7456d3b0b1b5ef22d5fef53788adc | 900e1726522117708a67ec428800a7aaa9bb5f23 | refs/heads/main | 2023-07-05T22:36:26.286434 | 2023-07-04T06:10:05 | 2023-07-04T06:10:05 | 7,574,162 | 84 | 17 | null | 2023-07-04T06:10:06 | 2013-01-12T10:42:27 | Python | UTF-8 | Python | false | false | 497 | py | #!/usr/bin/env python3
import sys
from mylast import lastfm_network, lastfm_username
# Prints a list of you last loved tracks on Last.fm.
# Optional parameter: number of tracks
# Prerequisites: mylast.py, pyLast
if len(sys.argv) > 1:
number = int(sys.argv[1])
else:
number = 20
last_loved_tracks = lastfm_ne... | [
"hugovk@users.noreply.github.com"
] | hugovk@users.noreply.github.com |
b8a7d3e7338251ecbe8abd4fad9cc826b0f017d5 | 1fc4291ca44e1f5e3990dec4fd7ca34cfa7a110c | /json_append/cli.py | 65ab70467bc350281a5c1511351c24d812519bfd | [
"MIT"
] | permissive | SeedyROM/json-append | 9d32cb1e8f1c4952b85be2b33940d59e436604b1 | 83c60bcfe9a546f54a49d8998b00d3a08f75a5ef | refs/heads/master | 2021-08-24T04:07:58.346945 | 2017-12-08T01:18:45 | 2017-12-08T01:18:45 | 112,858,506 | 0 | 0 | null | 2017-12-07T18:50:48 | 2017-12-02T16:38:10 | Python | UTF-8 | Python | false | false | 1,126 | py | import argparse
import sys
import os
from .parser import reader
def arg_parser():
"""Generate our ArgumentParser and setup our arguments.
"""
parser = argparse.ArgumentParser(
description='A command line tool to parse, edit and traverse \
json files quickly and without a text... | [
"rallokkcaz@gmail.com"
] | rallokkcaz@gmail.com |
f34f82ebfd859979206133292586ae7fe746a97e | 9b85c6f14651c734c0df2aba078297d657ae16f8 | /glottolog3/lib/bibtex.py | 024365ada848f31ecd0eb99718d1a88118d3afd9 | [
"MIT"
] | permissive | kublaj/glottolog3 | ca4bc66aa3a45915cd0e5ddece1fe67492bd8d0b | 20aeaa6dd33bf7d7d670c75c673f28bbb7da24b5 | refs/heads/master | 2020-12-25T05:35:34.713357 | 2014-07-04T06:49:32 | 2014-07-04T06:49:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,671 | py | # -*- coding: utf-8 -*-
import re
from six import PY3
from glottolog3.lib import latex
latex.register()
if PY3: # pragma: no cover
unicode = str
unichr = chr
UU_PATTERN = re.compile('\?\[\\\\u(?P<number>[0-9]{3,4})\]')
def u_unescape(s):
"""
Unencode Unicode escape sequences
match all 3/4-d... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
abc57c36e0f1314c36b7037d14598f2cd19e1378 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/storage/azure-storage-blob/tests/avro/test_avro.py | 2b29c0995c10a1d28c2498413c21ac682a6a7d35 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 7,093 | py |
# coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
5dfdfafdc40fd04fc02bbe960f7701664ce3052e | 61673ab9a42f7151de7337608c442fa6247f13bb | /turtle/moving-draging-all-elements/main.py | a418717f46bfebbe3aacd3a767f8a36229771684 | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 782 | py | import turtle
t = turtle.Turtle()
# --- move all elements ---
def move(offset_x, offset_y):
canvas = turtle.getcanvas() # `turtle`, not `t`
for element_id in canvas.find_all():
canvas.move(element_id, offset_x, offset_y)
# --- move all on draging turtle ---
old_x = 0
old_y = 0
def on_click(x, y):... | [
"furas@tlen.pl"
] | furas@tlen.pl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.