blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7bee13d0cb73112e145bfacd1f65772a9339d4a8 | 44b389338c12b0dc2018d8022031b58090c58a63 | /Byte_of_Python/str_format.py | 37d384f0a73528d7d6a49621979ddd9af022ee12 | [] | no_license | llcawthorne/old-python-learning-play | cbe71b414d6fafacec7bad681b91976648b230d3 | 5241613a5536cd5c086ec56acbc9d825935ab292 | refs/heads/master | 2016-09-05T17:47:47.985814 | 2015-07-13T01:25:44 | 2015-07-13T01:25:44 | 38,983,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #!/usr/bin/python
#Filename: str_format.py
age = 25
name = 'Swaroop'
print('{0} is {1} years old'.format(name,age))
print('Why is {0} playing with that python?'.format(name))
| [
"LLC@acm.org"
] | LLC@acm.org |
ae669605ec9b63f7de4aded534b4943cd4f76a68 | a9a9e19b1f24033d7141dd6da6572cb425acc09b | /elsie/ext/__init__.py | ab05e9c4d013b72e18d7676980310c548fcf875b | [
"MIT"
] | permissive | spirali/elsie | 88be594fec51cfa12f9e5c69bea7b1fd539da9fe | fd95c841d03e453aaac4acd27939ca614cd5ac79 | refs/heads/master | 2023-06-09T05:59:18.051813 | 2023-05-25T12:08:50 | 2023-05-25T12:09:00 | 134,177,408 | 49 | 6 | MIT | 2023-05-25T12:04:21 | 2018-05-20T18:48:53 | Python | UTF-8 | Python | false | false | 298 | py | """
This module contains extension and helper classes which are not part of the Elsie core.
Items from this module may experience backwards-incompatible changes even in non-major releases of
Elsie.
"""
from .list import ordered_list, unordered_list # noqa
from .markdown import markdown # noqa
| [
"stanislav.bohm@vsb.cz"
] | stanislav.bohm@vsb.cz |
58ba36f83dde33f4fc01a00d8a1c5e0a650a051c | 04d954f7734a48bb00d510f58793cb516ef03891 | /5_CNN对CIFAR-10进行分类/cnn_lrn.py | b2441337d55e1eee197fbbfc96c8632a59b4a516 | [] | no_license | MrKingJM/TensorFlow | 5ef17a47128ed0b9897d0ffc166edf51d2fc9575 | 703b6446402c2f15d90b08a9593bcc0517775555 | refs/heads/master | 2020-03-10T18:53:00.867240 | 2017-06-13T08:27:58 | 2017-06-13T08:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | # coding=utf-8
# cnn_lrn
from __future__ import division
import cifar10, cifar10_input
import tensorflow as tf
import numpy as np
import math
import time
data_dir = 'cifar10_data/cifar-10-batches-bin' # 下载 CIFAR-10 的默认路径
cifar10.maybe_download_and_extract() # 下载数据集,并解压、展开到其默认位置
batch_size = 128
images_train, label... | [
"ywtail@gmail.com"
] | ywtail@gmail.com |
f9f753802fda005a7df3d8e87f1684460ae38ba1 | 7e5dd510284f6944995f1c8586309e6e3acecb84 | /main.py | c674ccbbc2802acc706c683b667d6d27caceb6ae | [] | no_license | Namenaro/frog_demo | b3a630d7f8a4139954ebb92c0c83dd76b49f6fb6 | b74da899f949233aed1fb07bd48314e961ba99e7 | refs/heads/master | 2020-03-31T10:52:55.876607 | 2018-10-08T22:20:56 | 2018-10-08T22:20:56 | 152,153,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,425 | py | import os
from pprint import pprint
import tkinter as tk
class MainScreen(tk.Frame):
def __init__(self, parent):
self.frame = tk.Frame(parent)
self.frame.pack()
self.parent = parent
folder = "frog_muskle"
self.image_0 = tk.PhotoImage(file=os.path.join(folder, "zero_freq.png... | [
"nanenaro@gmail.com"
] | nanenaro@gmail.com |
fe09ad947154e129b17bad8aec3e3e9b70958b77 | 03ee6ba65cd8e21bea257b1bf4dfd4dffed3d01e | /lib/python2.7/site-packages/IPython/core/oinspect.py | 6e9951d456cf2334c29c40c7e57cd009d2dbe39e | [] | no_license | BlackgateResearch/gmr_django | 310db12140e324ab0c477a2f436366dd943e4d26 | 527439b54a1e17f9423c10c386ab03ad73d13759 | refs/heads/master | 2016-09-05T23:01:21.683037 | 2011-11-24T17:25:07 | 2011-11-24T17:25:07 | 1,075,730 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,936 | py | # -*- coding: utf-8 -*-
"""Tools for inspecting Python objects.
Uses syntax highlighting for presenting the various information elements.
Similar in spirit to the inspect module, but all calls take a name argument to
reference the name under which an object is being read.
"""
#***************************************... | [
"tristram@oaten.name"
] | tristram@oaten.name |
51033624394c62c952b6c453f0d94e4a26252199 | 9fb2139bf41e2301f9ee9069d649c5afe8e7735c | /python/En19cs306027_Lovesh_Kumrawat_Self_created_function_similar_to_'.astype'_in_numpy.py | 48ce29a748e1c7cd8b8b7bf5eabfc24d5bf3a64b | [] | no_license | codewithgauri/HacktoberFest | 9bc23289b4d93f7832271644a2ded2a83aa22c87 | 8ce8f687a4fb7c3953d1e0a5b314e21e4553366e | refs/heads/master | 2023-01-02T07:20:51.634263 | 2020-10-26T07:02:34 | 2020-10-26T07:02:34 | 307,285,210 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # In 'numpy' we can convert values of matrix into 'integer' by 'np.matrix('1.4 0.6;1.8 3.2;1.4 4.2',dtype=int)' or 'matrix_variable.astype('int32')' but i created a function for this.
import numpy as np
def matrix_integer_values_any_shape(inp): #* For any shape of matrix.
lst=[]
mtx=np.matrix([int(j) for i in np.a... | [
"noreply@github.com"
] | codewithgauri.noreply@github.com |
43a34c8971cd8b4b94a667b95d9f50b718825d12 | 8a8974f433ed4c86eec3960ef953ddd21464448b | /doi_request/__init__.py | 99c59af476fba1092d357b903fbdaa02df3f9bef | [
"BSD-2-Clause"
] | permissive | scieloorg/doi_request | 70c533afb135ebd11a61b3c782750e4938033260 | 52da64d8e5cc1782cd91968f2a8da3d4c9c736dc | refs/heads/master | 2023-08-19T02:55:27.466086 | 2021-03-08T18:36:09 | 2021-03-08T18:36:09 | 87,971,952 | 1 | 4 | BSD-2-Clause | 2023-07-27T00:01:41 | 2017-04-11T19:33:40 | JavaScript | UTF-8 | Python | false | false | 2,233 | py | import os
from pyramid.config import Configurator
from pyramid.session import SignedCookieSessionFactory
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from doi_request.models import initialize_sql
VERSION = '1.2.0'
def version(request):
return VERSION
def db(request):
make... | [
"fabiobatalha@gmail.com"
] | fabiobatalha@gmail.com |
58e052ed808c502f500414a25bdc06bdbdc8c904 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/test/test_NotificationConfigApple.py | 39490853d098bca2c7862b7c84916113eb5abb7c | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 985 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
from __future__ import absolute_import
import unittest
import appcente... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
84eff5f9a5d610e7b13f9042ec2ffc0f4bff3810 | e81fabdd6988c787524755fac73aa9d3631fc64c | /polyaxon_schemas/ml/models.py | 14b1701cd6d611b5dabc5348fbf5a80c03d2c950 | [
"MIT"
] | permissive | granularai/polyaxon-schemas | 0aa06f15b7353ceb6d31f1e5cf63c269ab0e2ce4 | 017ae74701f21f12f0b25e75379681ea5d8baa9e | refs/heads/master | 2022-08-30T00:05:40.888476 | 2020-05-19T17:22:46 | 2020-05-19T17:22:46 | 265,312,701 | 0 | 0 | MIT | 2020-05-19T17:16:38 | 2020-05-19T17:16:37 | null | UTF-8 | Python | false | false | 14,986 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from marshmallow import EXCLUDE, fields
from polyaxon_schemas.base import BaseConfig, BaseMultiSchema, BaseSchema
from polyaxon_schemas.fields import ObjectOrListObject
from polyaxon_schemas.ml.bridges import BridgeSchema
from po... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
a125ff9ec9ac7d4c723caf648f66e55462f31b62 | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/pip/_vendor/urllib3/filepost.py | e01a1a0d1044c86119534bb92e511348ffac1217 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:27650543085246b415561217c916ce5c820588dd89fe70824bb6db3e60d439ae
size 2534
| [
"Nqk180998!"
] | Nqk180998! |
53e98abf1cde068fde4788a1920f72b9e87e3665 | 11334e46d3575968de5062c7b0e8578af228265b | /Examples/voltagereadspeed/orig/orig_batt_test.py | 45a6743f58a9ee101f6baf28fd3738d5bc9aad21 | [] | no_license | slowrunner/Carl | 99262f16eaf6d53423778448dee5e5186c2aaa1e | 1a3cfb16701b9a3798cd950e653506774c2df25e | refs/heads/master | 2023-06-08T05:55:55.338828 | 2023-06-04T02:39:18 | 2023-06-04T02:39:18 | 145,750,624 | 19 | 2 | null | 2023-06-04T02:39:20 | 2018-08-22T18:59:34 | Roff | UTF-8 | Python | false | false | 2,419 | py | #!/usr/bin/python3
import sys
from easygopigo3 import EasyGoPiGo3
from time import sleep
mybot = EasyGoPiGo3()
value = 0
count = 0
Reference_Input_Voltage = 12.00
file1 = open("./voltage_test.txt", "a")
def round_up(x, decimal_precision=2):
# "x" is the value to be rounded using 4/5 rounding rules
# always roun... | [
"slowrunner@users.noreply.github.com"
] | slowrunner@users.noreply.github.com |
a6ffeeae418a936374b98c0f082f122766428944 | 60d5b5b1f1c912d1655de3884efc09dfddd8d132 | /sites/kotourism/events/feeds.py | 27d81038a0eeef22fe3d06582bed6104baaf1b6b | [] | no_license | alexgula/django_sites | 15033c739401f24603e957c5a034d63652f0d21f | 038834c0f544d6997613d61d593a7d5abf673c70 | refs/heads/master | 2016-09-05T11:02:43.838095 | 2014-07-07T11:36:07 | 2014-07-07T11:36:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | # coding=utf-8
from datetime import timedelta
from collections import namedtuple
from django.utils.timezone import now
from django.contrib.syndication.views import Feed
from django.utils.feedgenerator import Atom1Feed
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext,... | [
"alexgula@gmail.com"
] | alexgula@gmail.com |
cbc4a88ee7d1c9890db6f01b5bc2df4ac1869912 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Facebook/Actions/Video/WantsToWatch/UpdateWantsToWatch.py | bff67d21bb448deb53c6b84900556134e8237aeb | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,766 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# UpdateWantsToWatch
# Updates an existing wants_to_watch action.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Chor... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
4c049858fdeff016c62349c76078e6d0a75dc918 | 10d98fecb882d4c84595364f715f4e8b8309a66f | /aloe/aloe/rfill/utils/rfill_consts.py | 18131c6e49d3a1e196701d0718b8cdc9deb7edbe | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 2,663 | py | # coding=utf-8
# Copyright 2021 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 |
d63074174c227a34a29aa659680afcb60b7d057f | bf3049a786140bca8d6f5dfdd754086d9395a5e2 | /src/main/management/commands/correctdb.py | 8f1b309b5cbd2e24488be7108872853bd7e6a558 | [] | no_license | nvbn/djang0byte | ecefccc60f622c8aa55315ab478aacddbd8fc3b5 | 39deb1dc046c80edd6bfdfbef8391842eda35dd2 | refs/heads/reload | 2016-09-05T17:03:44.323217 | 2014-10-01T17:20:12 | 2014-10-01T17:20:12 | 2,582,402 | 26 | 7 | null | 2014-10-01T17:20:12 | 2011-10-15T16:06:06 | Python | UTF-8 | Python | false | false | 549 | py | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from main.models import Post
from django.db.models import Q
class Command(BaseCommand):
def handle(self, **options):
qs = Post.objects.filter(
Q(title__icontains=u'решен') | Q(title__icontains=u'решён') | Q(title__ico... | [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
a716c01559400043f512cdc990ebfc7b5cb59da6 | 92949cad6725d61d4a40717bb3d859911e152664 | /ytree/frontends/rockstar/arbor.py | 6da1a94c02cf0fd0962d4e695a8e85b42ee0ae1d | [
"BSD-3-Clause"
] | permissive | jwise77/ytree | 662fca1df8358d7d1c13103bf86de97ddb16de2a | f179c07ae4696cce7ae6376417e814dabd6c9d1b | refs/heads/master | 2023-06-13T06:22:55.513112 | 2020-01-06T19:14:45 | 2020-01-06T19:14:45 | 238,534,101 | 0 | 0 | NOASSERTION | 2020-02-05T19:44:23 | 2020-02-05T19:44:22 | null | UTF-8 | Python | false | false | 4,186 | py | """
RockstarArbor class and member functions
"""
#-----------------------------------------------------------------------------
# Copyright (c) ytree development team. All rights reserved.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with ... | [
"brittonsmith@gmail.com"
] | brittonsmith@gmail.com |
b11951b8ce3f201f333ca12180beaa1dba34b567 | f0b75bd94f133a13f469f429a696f26be3be9862 | /week 2/.history/utils_20200204173854.py | 2e69e8e8be516eac983005ccf56b3881f8eceb20 | [] | no_license | dechavez4/Python_handin_assignments | 023350fabd212cdf2a4ee9cd301306dc5fd6bea0 | 82fd8c991e560c18ecb2152ea5a8fc35dfc3c608 | refs/heads/master | 2023-01-11T23:31:27.220757 | 2020-05-22T10:33:56 | 2020-05-22T10:33:56 | 237,179,899 | 0 | 0 | null | 2022-12-30T20:14:04 | 2020-01-30T09:30:16 | Python | UTF-8 | Python | false | false | 400 | py | import os.path
from os import path
from sys import argv
import python_second_assignment as myList
# A. first function takes a path to a folder and writes all filenames in the folder to a specified output file
folderpath = "/Users/robin/Desktop/semester_4/python/myPythonCode/week 2"
def read_folder():
entries = os.... | [
"chavezgamingv2@hotmail.com"
] | chavezgamingv2@hotmail.com |
a8f873115c95b3d8eecb33fcdafaac877d78ad6a | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KoubeiMarketingCampaignMerchantActivityOfflineModel.py | 3cbd886eb6742480b12b1db2f30f6611b7c11127 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,955 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiMarketingCampaignMerchantActivityOfflineModel(object):
def __init__(self):
self._activity_id = None
self._memo = None
self._operator = None
self._operator_ty... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
7384f79ed839dd47ca168b9eca226acf619fa1ef | bf769a3a3935a8e08f11fdf606f2e2e2bc6a5307 | /PyQtGui/stickyNotes/Ui_mainwindow.py | b82b0e288c448dca5912a3ce5bb22d61848d9bbb | [] | no_license | metanoia1989/QTStudy | b71f2c8cf6fd001a14db3f1b5ece82c1cc7f7a93 | 29465c6bb9fc0ef2e50a9bf2f66d996ecbd086c0 | refs/heads/master | 2021-12-25T16:50:26.915441 | 2021-10-10T01:26:14 | 2021-10-10T01:26:14 | 193,919,811 | 3 | 2 | null | 2021-01-25T09:23:30 | 2019-06-26T14:22:41 | HTML | UTF-8 | Python | false | false | 3,005 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'd:\WorkSpace\QT\QTStudy\PyQtGui\stickyNotes\mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
... | [
"sogaxili@gmail.com"
] | sogaxili@gmail.com |
6c9b556dd08e9ff9e09b54f91e034188ecff94ee | 9b0b2029225c680f978ae041552cf68d977144ac | /test_singleton.py | 99dedd8f298421b143d9fe46cae0786cf26e5f3d | [] | no_license | 1151332702/flask_rest_api | 59547189d5928a16f7cee7b36a99f365627f4814 | ad5df495157e12858c2869c8899ded10650c2e88 | refs/heads/master | 2021-06-23T10:47:01.280030 | 2019-10-24T10:31:25 | 2019-10-24T10:31:25 | 208,002,649 | 0 | 0 | null | 2021-03-20T01:59:21 | 2019-09-12T08:34:33 | Python | UTF-8 | Python | false | false | 985 | py | # -*- coding: utf-8 -*-
# @Time : 2019/1/31 16:37
# @Author : lilong
# @File : test_singleton.py
# @Description: 单例模式
def singletom(cls):
_instance = {}
def decorator(*args, **kwargs):
if cls not in _instance:
_instance[cls] = cls(*args, **kwargs)
return _instance[cls]
re... | [
"12345678"
] | 12345678 |
4d0b47e8c26352d4a9d3a1017e02824ffa12e6bd | 704976ea552111c6a5af9cd7cb62b9d9abaf3996 | /rpython/rlib/rminiz_oxide.py | fb41ad9798b926b34e8fc7f80070d1dabfdca434 | [
"LicenseRef-scancode-unicode",
"BSD-3-Clause"
] | permissive | mesalock-linux/mesapy | 4f02c5819ce7f2f6e249d34840f1aa097577645d | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | refs/heads/mesapy2.7 | 2023-08-16T21:33:02.239581 | 2019-08-13T10:29:43 | 2019-08-13T18:06:45 | 136,080,721 | 396 | 33 | NOASSERTION | 2020-04-01T03:05:18 | 2018-06-04T20:45:17 | Python | UTF-8 | Python | false | false | 14,758 | py | from __future__ import with_statement
import sys
from rpython.rlib import rgc
from rpython.rlib.rstring import StringBuilder
from rpython.rtyper.annlowlevel import llstr
from rpython.rtyper.lltypesystem import rffi, lltype
from rpython.rtyper.lltypesystem.rstr import copy_string_to_raw
from rpython.rtyper.tool import ... | [
"mssun@mesalock-linux.org"
] | mssun@mesalock-linux.org |
7297fcfd6947026a80a94e2d7b7df9700597adbe | df1ce92b397080896848c02d6e0300be7191f201 | /build/vision_msgs/cmake/vision_msgs-genmsg-context.py | 0827fdd31f5c0f97216f5d96d6c9c4bb5e4e978a | [] | 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 | 1,432 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/chandan/catkin_ws/src/vision_msgs/msg/BoundingBox2D.msg;/home/chandan/catkin_ws/src/vision_msgs/msg/BoundingBox3D.msg;/home/chandan/catkin_ws/src/vision_msgs/msg/BoundingBox3DArray.msg;/home/chandan/catkin_ws/src/vision_msgs/msg/Classification2D... | [
"chandankum2440@gmail.com"
] | chandankum2440@gmail.com |
4dcff4ef9ca464f45f83c30736510b8ad3878da4 | 0e0ce88c886370df9af51855115c99dfc003e5da | /2019/04_Django_Curso_Gileno/venv/bin/django-admin | 7ee5fca0670f9c1080996902fba9af6a8a12d14c | [] | no_license | miguelzeph/Python_Git | ed80db9a4f060836203df8cc2e42e003b0df6afd | 79d3b00236e7f4194d2a23fb016b43e9d09311e6 | refs/heads/master | 2021-07-08T18:43:45.855023 | 2021-04-01T14:12:23 | 2021-04-01T14:12:23 | 232,007,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | #!/home/miguel/PycharmProjects/Django_Curso_Gileno/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"miguel.junior.mat@hotmail.com"
] | miguel.junior.mat@hotmail.com | |
8b8dce1c9245308e1dfb6e30ce3d4510f9f9fcd4 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible/module_utils/compat/importlib.py | eee0ddf7bcfc9b2fe9f587bbecf72611eb19c6a3 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 580 | py | # Copyright (c) 2020 Matt Martz <matt@sivel.net>
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import sys
try:
from importlib import ... | [
"sifang@cisco.com"
] | sifang@cisco.com |
d22ae5e1ce4798f74ede4ea8c8c34e9499269554 | ab8187626aa68c1f92301db78e9f8b0c4b088554 | /Greedy/1561_h.py | 249aef34c00cf89b7823a2d1498b920884dffe79 | [] | no_license | khj68/algorithm | 2818f87671019f9f2305ec761fd226e737f12025 | efebe142b9b52e966e0436be3b87fb32b4f7ea32 | refs/heads/master | 2023-04-25T02:33:13.403943 | 2021-05-04T03:09:38 | 2021-05-04T03:09:38 | 287,733,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | class Solution:
def maxCoins(self, piles: List[int]) -> int:
if len(piles) == 3:
return piles[1]
# print(len(piles)%2)
# print(list((i, a) for i, a in enumerate(sorted(piles)[len(piles)//3:]) if i % 2 == len(piles)%2))
return sum(a for i, a in enumerate(sorted(piles)[len(... | [
"maga40@naver.com"
] | maga40@naver.com |
ee5061ff77da5e4d545b401ec0ba8bd3739049c2 | 4f74e6d72b98cd1da2190313e4a7eb9d342cc93d | /organizations_ext/migrations/0003_auto_20200516_1724.py | 57927d172cf2467165b5a315fade75348b42c88c | [
"BSD-3-Clause",
"MIT"
] | permissive | adamgogogo/glitchtip-backend | ef0c529b71d5a4632a235b40a10e0b428a1cee3a | ee71d1b732d92868189d520aa111c09b116b7b22 | refs/heads/master | 2023-02-01T23:10:53.734450 | 2020-12-19T19:32:10 | 2020-12-19T19:32:10 | 323,588,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # Generated by Django 3.0.6 on 2020-05-16 17:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organizations_ext', '0002_organization_is_accepting_events'),
]
operations = [
migrations.AlterField(
model_name='organization',... | [
"david@burkesoftware.com"
] | david@burkesoftware.com |
8ffa10b8e5334346b910ca9a0e0357a52d68c971 | a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c | /venv/Lib/site-packages/pandas/core/common.py | 395464a24bdf2b741b5354fd0af8e443c99af55b | [] | no_license | mylonabusiness28/Final-Year-Project- | e4b79ccce6c19a371cac63c7a4ff431d6e26e38f | 68455795be7902b4032ee1f145258232212cc639 | refs/heads/main | 2023-07-08T21:43:49.300370 | 2021-06-05T12:34:16 | 2021-06-05T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b63cf39ef1bd3fc626c028f158f4a70e0c602beae099dd24576a97afa69d6250
size 14109
| [
"chuksajeh1@gmail.com"
] | chuksajeh1@gmail.com |
4af6ec7be882335ee26e155579371264b81c08ac | 5c2f520dde0cf8077facc0fcd9a92bc1a96d168b | /test/tests/75.py | 9893fe565375817373abc338de7167d39ba5b529 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | nagyist/pyston | b613337a030ef21a3f03708febebe76cedf34c61 | 14ba2e6e6fb5c7316f66ccca86e6c6a836d96cab | refs/heads/master | 2022-12-24T03:56:12.885732 | 2015-02-25T11:11:08 | 2015-02-25T11:28:13 | 31,314,596 | 0 | 0 | NOASSERTION | 2022-12-17T08:15:11 | 2015-02-25T13:24:41 | Python | UTF-8 | Python | false | false | 53 | py | def f():
if 0:
str = 0
print str
f()
| [
"kevmod@gmail.com"
] | kevmod@gmail.com |
fa68752af1398fdb45ba073bfa4cb5cbff503c27 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02576/s333433925.py | 598e6062e70a9510941cdb0d6beeb5f5be5bc532 | [] | 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 | 107 | py | n, x, t = map(int, input().split(' '))
count = int(n / x)
if(n % x != 0):
count += 1
print(count * t) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a8897543440a99c7f65add70fcdc2ec5e1552753 | 829fbf5717b902f48ca6e748a51cf4febb59451e | /test/functional/p2p_pos_fakestake.py | ada5258fb6080a031ddfe53a533cba6cbf4f6ad7 | [
"MIT"
] | permissive | suprnurd/KuboCoin | bb03614814c2112f7745a15e9774639e280f2aff | d77bae8cc5fe4efdbd16a384554b7829a704291f | refs/heads/master | 2022-11-06T09:53:34.348555 | 2020-05-24T22:27:08 | 2020-05-24T22:27:08 | 273,895,805 | 0 | 0 | MIT | 2020-06-21T12:02:38 | 2020-06-21T12:02:37 | null | UTF-8 | Python | false | false | 2,299 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The KuboCoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Covers the scenario of a PoS block where the coinstake input prevout is already spent.
'''
from time imp... | [
"ultrapoolcom@gmail.com"
] | ultrapoolcom@gmail.com |
d48cd1dfcd8d6ec6180938eff41489abb81ac7f5 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab9/set 2/AMANDA C NAGLE_19369_assignsubmission_file_lab9/lab9/F.py | d3445accd6f6b54d58b32508c8790ff3da0e9d33 | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from math import *
class F:
def __init__ (self,a,w):
self.a=a
self.w=w
def value(self, x):
return (e**(-self.a*x))*sin(self.w*x)
f= F(a=1.0, w=0.1)
print f.value(x=pi)
f.a=2
print f.value(pi)
| [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
9f416affbe20c12f10bd3ac826e901fa23ecbeeb | 96a34a048c783a75736bf0ec775df22142f9ee53 | /packages/postgres-database/src/simcore_postgres_database/migration/versions/0208f6b32f32_adds_version_control_tables.py | d87b9322a22d297d87280f446fbcade581643aa2 | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 6,043 | py | """Adds version control tables
Revision ID: 0208f6b32f32
Revises: d10c53a5bea6
Create Date: 2021-09-06 14:19:42.599645+00:00
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = "0208f6b32f32"
down_revision = "d10c53a5bea6"
... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
41df34a8c957aeb8225ae2d002e455b6999da7bb | c9ab605cdd2dbf92c9de05768ade0ecf1718be02 | /SW_Expert_Arcademy/Programming_Beginner/2-20.py | 174bde1133fa02c170f9ee6f159b87cef6a84d92 | [] | no_license | PyeongGang-Kim/TIL | 42d69308cf99d2e07644b51d7636e1b64551a697 | 8711501d131ee7d78fdaac544dda2008adf820a1 | refs/heads/master | 2023-01-12T21:10:38.027946 | 2021-10-23T07:19:48 | 2021-10-23T07:19:48 | 195,937,990 | 10 | 1 | null | 2023-01-07T11:25:30 | 2019-07-09T05:22:45 | HTML | UTF-8 | Python | false | false | 56 | py | print([i for i in [5, 6, 77, 45, 22, 12, 24] if i%2!=0]) | [
"pyeonggangkim@gmail.com"
] | pyeonggangkim@gmail.com |
cb7273d729baf1a6dfb7f10dcb88a7cee2620eb4 | bf000a932237a790770227e48a529a31d167e94e | /flash_es.py | 1a7d9a6224c607194385a037b0a23d66fe7afd90 | [] | no_license | o7s8r6/machineLearning | bf38b91d00def60e554384853b6f6b5640bc0929 | 5842dad6a1b12e0a02b3a8ecff0f610dd0fca0cb | refs/heads/master | 2021-05-27T15:56:57.559788 | 2014-07-22T05:57:44 | 2014-07-22T05:57:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import flask
import rawes
import json
from flask import Flask
query = "python"
es = rawes.Elastic('localhost:9200')
response = es.get('dns/nyc/_search', data={
"query":{
"bool":{
"must":[{
"wildcard":{
"answer":query
}}],
... | [
"ohprecio@gmail.com"
] | ohprecio@gmail.com |
ebe046ea0714150417fd9ff3a977d7327a8ab8d1 | a2fe6e6d6e91331efda6a9647f40d2c1ec5044e9 | /backend/util/response/error/__init__.py | 40e20635908ac703a44041c856bb8bfe54e618b3 | [
"MIT"
] | permissive | willrp/willbuyer | a1b66a805e8f5d1f00cbe6bf48baff9fe334782d | 069836a91c777ede6f62a16daa9f26e555d66bcb | refs/heads/master | 2022-12-13T08:52:29.408246 | 2021-07-20T04:40:24 | 2021-07-20T04:40:24 | 216,706,110 | 5 | 0 | MIT | 2022-12-08T03:17:44 | 2019-10-22T02:26:29 | Python | UTF-8 | Python | false | false | 80 | py | from .error_response import ErrorResponse
from .error_schema import ErrorSchema
| [
"willrogerpereira@hotmail.com"
] | willrogerpereira@hotmail.com |
f72c6047f22259d6bc991d05e3e8eb0bf3bc6385 | 677a3a76807d8585f65ec0e0839bb3a8b833e2fb | /2.Classes and Objects/Lab/Exercise/To-Do List/task.py | e16400b24b6a440e72139113289a663db3e02166 | [] | no_license | negative0101/Python-OOP | 0d531a1b72beb3e58f9486df88d457ecd59be10e | b5825e66a909c947a46458712d683e8a38035912 | refs/heads/main | 2023-07-14T11:27:34.841594 | 2021-08-20T08:49:04 | 2021-08-20T08:49:04 | 381,475,313 | 0 | 0 | null | 2021-07-25T19:52:38 | 2021-06-29T19:26:42 | Python | UTF-8 | Python | false | false | 984 | py |
class Task:
def __init__(self, name, due_date):
self.name = name
self.due_date = due_date
self.comments = []
self.completed = False
def change_name(self, new_name):
if new_name == self.name:
return 'Name cannot be the same.'
self.name = ne... | [
"noreply@github.com"
] | negative0101.noreply@github.com |
26e2bb321b86356992457a81f13187c17629437e | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/-57053121/ruamel_yaml/ext/_ruamel_yaml/SerializerError.py | e83d1c3946c75b93d44acb32132de12201751af3 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # encoding: utf-8
# module ruamel_yaml.ext._ruamel_yaml
# from C:\Users\Doly\Anaconda3\lib\site-packages\ruamel_yaml\ext\_ruamel_yaml.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# imports
import builtins as __builtins__ # <module 'builtins' (built-in)>
import ruamel_yaml.error as __ruamel_yaml_error
import ruamel... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
9d8f8fdd93316ade60c63318be40b169f5a7f2f8 | 8cf633e92a0671c8201268620a0372f250c8aeb2 | /35.搜索插入位置.py | 064363a1fe9b0bcd0030c245e5a0fdad177a2b06 | [
"Unlicense"
] | permissive | SprintGhost/LeetCode | 76da5c785009d474542e5f2cdac275675b8e60b8 | cdf1a86c83f2daedf674a871c4161da7e8fad17c | refs/heads/develop | 2021-06-06T04:04:28.883692 | 2021-01-01T14:09:26 | 2021-01-01T14:09:26 | 230,635,046 | 0 | 0 | Unlicense | 2020-12-11T14:55:36 | 2019-12-28T16:34:39 | Python | UTF-8 | Python | false | false | 2,189 | py | #
# @lc app=leetcode.cn id=35 lang=python3
#
# [35] 搜索插入位置
#
# Accepted
# 62/62 cases passed (60 ms)
# Your runtime beats 78.63 % of python3 submissions
# Your memory usage beats 95.67 % of python3 submissions (13.5 MB)
# @lc code=start
class Solution:
def searchInsert(self, nums, target: int) -> int:
nums_... | [
"864047435@qq.com"
] | 864047435@qq.com |
5193ea9938e1348f0d38402741fadf0dcc544c3b | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /LightGBM_sklearn_scipy_numpy/source/sklearn/manifold/tests/test_mds.py | 7b432dea1370e22b8590a106c29161e9b1ee7eea | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 1,873 | py | import numpy as np
from numpy.testing import assert_array_almost_equal
from sklearn.manifold import mds
from sklearn.utils.testing import assert_raises
def test_smacof():
# test metric smacof using the data of "Modern Multidimensional Scaling",
# Borg & Groenen, p 154
sim = np.array([[0, 5, 3, 4],
... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
502738773bd47c5de6fe95d9b3588481c2cd2f96 | f4afb11d9d6b8f391a270fb9309285d0fa9acd1a | /push-branches.py | ec4387ca14bcce4bec8d48849b9ff6242339ef5a | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Vasilov345/book | 2fdf886ab1dfe7c799d3797c8ed4d0e72bc4e5fb | bed2853f0ceaf3f868832ece860d566a7b43f870 | refs/heads/master | 2020-08-29T13:50:17.804015 | 2019-10-28T09:53:28 | 2019-10-28T09:53:28 | 218,051,897 | 0 | 1 | NOASSERTION | 2019-10-28T13:23:42 | 2019-10-28T13:23:41 | null | UTF-8 | Python | false | false | 704 | py | #!/usr/bin/env python
import subprocess
from pathlib import Path
from chapters import CHAPTERS, NO_EXERCISE
for chapter in CHAPTERS:
print('pushing', chapter, end=': ')
subprocess.run(
['git', 'push', '--force-with-lease', 'origin', chapter],
cwd=Path(__file__).parent / 'code'
)
if cha... | [
"hjwp2@cantab.net"
] | hjwp2@cantab.net |
60eeee618441244ab474ad546c351024f2852928 | 93579502c2a51e39f8a55fbb30e5b6696c05c785 | /tests/hwsim/test_sae.py | 8824ad4c6f550a5f4d232d508c54f9b5c3074deb | [
"BSD-3-Clause"
] | permissive | pstratem/hostapd | 14950770d0202df2de3724b523e7a10412072633 | c404cd8c7d108314ec927b335c4c7b11ceb3bf9a | refs/heads/master | 2020-07-31T04:18:31.387996 | 2019-09-16T15:05:44 | 2019-09-16T15:09:54 | 210,481,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75,349 | py | # Test cases for SAE
# Copyright (c) 2013-2016, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
from remotehost import remote_compatible
import binascii
import os
import time
import logging
logger = logging.getLogger()
import socket
import... | [
"j@w1.fi"
] | j@w1.fi |
7ba9897c2ad10cc4193fe28eb298bb750d1d3d92 | e164451209c4f5ff5f433a40f0b784ed4b7bfe25 | /harvesting_2Dscan.py | abc7672bb4d289720e0316be80acb9c7ae45a004 | [] | no_license | longlivedpeople/Galapago-Framework | bd556a71d1baf2c95d36786f24b33fbe2ee2446c | e4966b5f280b8c72cd53eb3215f4ab11e87ed9a0 | refs/heads/master | 2023-08-19T00:19:26.740105 | 2023-08-11T14:57:41 | 2023-08-11T14:59:33 | 196,342,305 | 1 | 0 | null | 2023-04-12T09:01:03 | 2019-07-11T07:26:38 | Python | UTF-8 | Python | false | false | 18,265 | py | import ROOT as r
from ROOT import gROOT, TCanvas, TFile, TGraphErrors, SetOwnership
import math, sys, optparse, array, copy, os
import gc, inspect, __main__
import numpy as np
import time
import shutil
import include.Sample as Sample
import include.Launcher as Launcher
import include.helper as helper
import include.... | [
"celia.fernandez.madrazo@cern.ch"
] | celia.fernandez.madrazo@cern.ch |
f7afb7aabe368850e011393d0592ecf4deedc093 | b7e1d227d41542bf20f92d08bb0d453058cf6d19 | /orders/migrations/0004_auto_20191013_1723.py | 67a3105db42b46792574796f27d8aa582c0765e5 | [] | no_license | rusrom/django-ecommerce | dfa35bdb2832abf4077dd0883ec0e5e79ffa9662 | aebef77713ab7c1c2118d5c190deee5ccfbd3cb9 | refs/heads/master | 2020-08-04T23:36:09.610480 | 2019-10-22T14:00:04 | 2019-10-22T14:00:04 | 212,315,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2019-10-13 17:23
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('addresses', '0001_initial'),
('orders', '0003_auto_... | [
"rusrom@guyfawkes.33mail.com"
] | rusrom@guyfawkes.33mail.com |
66998a2b2dbaa169192f4819c93e0ab1ea9968bf | 038e6e41d117431869edad4952a5b1463d5131bc | /users/migrations/0002_auto_20210129_1642.py | db97d69b8e56b712626a94b937e9838ae9e2dd5d | [
"MIT"
] | permissive | MikaelSantilio/aprepi-django | c49290855b7c83ecaf08de82ee9eedf8e8baa15a | 5e2b5ecffb287eab929c0759ea35ab073cc19d96 | refs/heads/master | 2023-06-19T00:18:15.986920 | 2021-06-15T20:15:59 | 2021-06-15T20:15:59 | 329,428,268 | 0 | 1 | MIT | 2021-02-05T16:21:45 | 2021-01-13T20:50:18 | Python | UTF-8 | Python | false | false | 566 | py | # Generated by Django 3.1.5 on 2021-01-29 19:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"mikael.santilio@gmail.com"
] | mikael.santilio@gmail.com |
c7baff98c23d9891b7074ee474eaeecbc0782f9c | 52c2ccb6fb55126a65bff2b4b7f653e4b0805759 | /tibiawikisql/__init__.py | 39d6370c269f15c32186c0bb8b11a6b6e8f306b6 | [
"Apache-2.0"
] | permissive | Galarzaa90/tibiawiki-sql | 4907236d518cdc6a53f32645efa3b22517e91f90 | 982be5ebd7905354b6c6a31c4247b2ee21bbe943 | refs/heads/master | 2022-08-09T09:18:46.533611 | 2022-07-23T13:56:07 | 2022-07-23T13:56:07 | 108,594,636 | 22 | 11 | Apache-2.0 | 2022-06-28T16:46:13 | 2017-10-27T20:52:55 | Python | UTF-8 | Python | false | false | 905 | py | # Copyright 2021 Allan Galarza
#
# 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 writi... | [
"allan.galarza@gmail.com"
] | allan.galarza@gmail.com |
3d5c3143ec6fcbc98bae2f7ffda05e8e64398b8e | 2049bda43e392d5f5981fbfdb70090ba226e4ef8 | /apps/catalogue/migrations/0102_auto__chg_field_product_is_contain_lithium_battery.py | 103f764ace511541fb5b60a8fa1813b13bad19ea | [] | no_license | embedded1/django-package-forwarding | 2ef84a1fde5ba6817d42d89f983512bdc3d77bc3 | 8c3286e9a7da8f4ae0401a81c8037585b3bb7ba6 | refs/heads/master | 2020-06-22T17:05:36.637695 | 2019-07-26T09:34:40 | 2019-07-26T09:34:40 | 197,738,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,921 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Product.is_contain_lithium_battery'
db.alter_column('c... | [
"asili@usendhome.com"
] | asili@usendhome.com |
6ab61b38006dc25fb6f347f5d1870d9bd6cbebf7 | cb46ad4fedaf1dd6fad71c3ec3766604578fb340 | /tests.py | 22eb08230b9927699a2f32fd13466bbc6eb70b2e | [] | no_license | whitneybelba/Flask-Testing | 2ae14ef04988ce3b1ee8f65bbdd20ff4a0c4a8c1 | 2e2e5be334f1d7a9331f63fd9a9d33aabf1b10db | refs/heads/master | 2021-01-20T18:24:27.019968 | 2016-08-05T20:02:18 | 2016-08-05T20:02:18 | 65,045,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | import unittest
from party import app
from model import db, example_data, connect_to_db
class PartyTests(unittest.TestCase):
"""Tests for my party site."""
def setUp(self):
self.client = app.test_client()
app.config['TESTING'] = True
def test_homepage(self):
result = self.clie... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
f45604ccd387ede76cedb96bfd1ca2278d507cf0 | 534d24cd509640dc598b0e385752d81ea59307a7 | /vueSuit/vueAdmin/widgets.py | 0068b50474a5f839750b7c5425778fb5ebc44430 | [
"BSD-3-Clause"
] | permissive | Ryuchen/django-vue-suit | 612cb7496cf9424182bf31655432df86d77df417 | 28c08a157cd243b475673ca7486aedb1719759ea | refs/heads/master | 2020-07-04T05:11:45.888119 | 2019-12-04T10:35:45 | 2019-12-04T10:35:45 | 202,167,517 | 24 | 3 | null | null | null | null | UTF-8 | Python | false | false | 17,183 | py | """
Form Widget classes specific to the Django admin site.
"""
import copy
import json
from django import forms
from django.conf import settings
from django.core.exceptions import ValidationError
from django.core.validators import URLValidator
from django.db.models.deletion import CASCADE
from django.urls import rever... | [
"chenhao@geyecloud.com"
] | chenhao@geyecloud.com |
bbf1ede6f241dd795910462f1b9f83ffd97a1947 | d2189145e7be2c836017bea0d09a473bf1bc5a63 | /20 Clases CBLUE (RVT)/Identificador.py | e9dd400cd7a6736317231a0f4c9e5294b27ecb62 | [] | no_license | emilianoNM/Tecnicas3 | 12d10ce8d78803c8d2cd6a721786a68f7ee2809d | 6ad7f0427ab9e23643a28ac16889bca8791421d0 | refs/heads/master | 2020-03-25T18:06:34.126165 | 2018-11-24T04:42:14 | 2018-11-24T04:42:14 | 144,013,045 | 3 | 5 | null | 2018-09-14T10:47:26 | 2018-08-08T12:49:57 | Python | UTF-8 | Python | false | false | 249 | py |
# coding: utf-8
# In[ ]:
#20 Clases Empresa
#Por Cblue (RVT)
class Identificador(object):
def__init__(self,LogotipoEMP,ColorCaracteristico)
self.LogotipoEMP=LogotipoEMP
self.ColorCaracteristico=ColorCaracteristico
| [
"noreply@github.com"
] | emilianoNM.noreply@github.com |
afb52d927ca3b977196758f7985e91c241b07721 | 2e74c7339c63385172629eaa84680a85a4731ee9 | /sdg/data_prep/compileNTDs.py | 26c89bfdf2636badf5e8fa2d616af8f4faa2ea46 | [] | no_license | zhusui/ihme-modeling | 04545182d0359adacd22984cb11c584c86e889c2 | dfd2fe2a23bd4a0799b49881cb9785f5c0512db3 | refs/heads/master | 2021-01-20T12:30:52.254363 | 2016-10-11T00:33:36 | 2016-10-11T00:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | import pandas as pd
import sys
from scipy.stats import gmean
from getpass import getuser
sys.path.append(SDG_REPO)
import sdg_utils.draw_files as dw
INDICATOR_ID_COLS = ['location_id', 'year_id']
def compile_df_using_dict(input_file_dict):
"""Compile dataframe together using dictionary indicator_id-->file"""
... | [
"nsidles@uw.edu"
] | nsidles@uw.edu |
c187f26acf02adbbc468f5bf96a6b6af692a8d02 | a1c6caa9ff52d4377529c7727eb5517041b04311 | /Exe16_Loja_de_tinta.py | adb1f3b81505e3857f7a47487058062e967cf7f7 | [
"MIT"
] | permissive | lucaslk122/Exercicios-em-python | b83b5abd5da7a7cf15ac50a213bad708501c8863 | 2daa92dcb19296f580d673376af375d11c9c041b | refs/heads/main | 2022-12-26T04:22:40.365925 | 2020-10-09T18:05:31 | 2020-10-09T18:05:31 | 302,362,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import math
print("1L de tinta pinta 3 metros quadrados, cada galão possui 18L e custam R$80.00 cada")
Area = float(input("Digite o tamanho da area em metros quadrados a ser pintada: "))
Litros = float(Area/3)
Latas = float(Litros/18)
Preço = float(round(Latas,0)*80)
print(f"Voce vai precisar de {math.ceil(Latas)} lat... | [
"71664028+lucaslk122@users.noreply.github.com"
] | 71664028+lucaslk122@users.noreply.github.com |
6508bfa49a20c5e33ddd9d77cb81eb6289502300 | c8a131d6f9d58f54a8736cae939529741b3858f8 | /mysite/blog/models.py | 8685f23c28416b661749aa9d952e46b42f882ddd | [] | no_license | aliensmart/simple_web | 0e5d7fd1205bfed3145cce45dbcf374a9e63f7bc | 9b948de933ff5304f92ca80d5c556507f3000095 | refs/heads/master | 2022-06-28T17:28:33.325312 | 2020-05-10T13:28:47 | 2020-05-10T13:28:47 | 261,683,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from django.db import models
from django.utils import timezone
from django.urls import reverse
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
create_date = models.... | [
"kaoua17@gmail.com"
] | kaoua17@gmail.com |
e3282eb1cfcf9fe7aac2622513c0d4ec3a83ef22 | ff23e5c890216a1a63278ecb40cd7ac79ab7a4cd | /clients/hydra/python/test/test_is_ready200_response.py | 703e166a1c68f6cddf8085ea803a197d52a0a45b | [
"Apache-2.0"
] | permissive | ory/sdk | fcc212166a92de9d27b2dc8ff587dcd6919e53a0 | 7184e13464948d68964f9b605834e56e402ec78a | refs/heads/master | 2023-09-01T10:04:39.547228 | 2023-08-31T08:46:23 | 2023-08-31T08:46:23 | 230,928,630 | 130 | 85 | Apache-2.0 | 2023-08-14T11:09:31 | 2019-12-30T14:21:17 | C# | UTF-8 | Python | false | false | 785 | py | """
Ory Hydra API
Documentation for all of Ory Hydra's APIs. # noqa: E501
The version of the OpenAPI document: v2.2.0-rc.3
Contact: hi@ory.sh
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import ory_hydra_client
from ory_hydra_client.model.is_ready200_response im... | [
"3372410+aeneasr@users.noreply.github.com"
] | 3372410+aeneasr@users.noreply.github.com |
11cbf11fd837f408935a4f30b359536ebafaf26d | d7249238cf7c42ec7ee4dd8dfa7c1ba80b0d93d6 | /01_sklearn/02_weight_height_test.py | 9d612682a720ea8065bdf9a44692f105330ce222 | [] | no_license | happyquokkka/TIL_AI | eb47e9e419d7344e8a5fac27dc00ccaf16962368 | 4d13716867dfd9d938f866f769a74ea03b93c88a | refs/heads/master | 2023-07-18T14:24:45.290908 | 2021-08-27T13:34:44 | 2021-08-27T13:34:44 | 399,787,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
import matplotlib.pyplot as plt
# pip install pandas
# 공공데이터포털 -> '교육부 학생건강검사 결과분석' rawdata 서울 2015 다운로드 -> weight_height 로 파일명 변경
# 문제상황 : 여학생의 몸무게를 입력하면, 키를 예측하고 싶다.
# 데이터 준비
pd.set_option("di... | [
"yjmooon96@gmail.com"
] | yjmooon96@gmail.com |
cc5830bd8d5626e4aad789d1ad95107800ba6894 | a177699f24936458b9fe9eb73d9af51668601d20 | /src/zojax/subscription/subscription.py | 0c39a99d0d13a4ec928e717e197664cdebc47436 | [
"ZPL-2.1"
] | permissive | Zojax/zojax.subscription | 868dfbcc07f0abcc3f0e92ebf8051de0a544bfba | f72fa6cf7ad885519d4da23dc5cd5b6b1ae0d92c | refs/heads/master | 2020-05-17T03:36:52.743843 | 2014-01-31T11:06:15 | 2014-01-31T11:06:15 | 2,018,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
34fc4c1264be99808dc65ed55068f734bfeeeb41 | 00472c7df0835c6c1870f4c92fcca3922b74727e | /2장.py | 4658bc93bb69d81ac7f918b85661035f6c3f6a42 | [] | no_license | ljg95924/Machine_Learning_Study | cd46374aab46ca67909f4fc7c3c7b488beb5480f | a31db06bed8dc95530f094a98de2b9bfa3714fd3 | refs/heads/master | 2021-04-15T18:22:19.684733 | 2018-03-28T12:11:01 | 2018-03-28T12:11:01 | 126,568,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,226 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 24 15:03:07 2018
@author: ljg
"""
import mglearn
import matplotlib.pyplot as plt
import numpy as np
X,y=mglearn.datasets.make_forge()
mglearn.discrete_scatter(X[:,0],X[:,1],y)
plt.legend(['Class 0','Class 1'],loc=4)
plt.xlabel('First feature')
plt.ylabel('Second feature')... | [
"ljg95924@naver.com"
] | ljg95924@naver.com |
754a9e6ac4ad159d561e3bc49223a97c83cfe3d5 | 5b04b47b9498890ef95fa6e78fe7135c570a3f43 | /try_tables.py | 01c7612337c5cd00e0169b6d9038e2becabec074 | [] | no_license | donboyd5/puf_analysis_frozen | 8ca3ea7e899a7db60fe7b3ed681cbd80ef0f59e8 | 3aa2b1cb680aad16987ed776bcfdc878418e7a64 | refs/heads/main | 2023-04-12T12:55:48.495699 | 2020-12-16T09:48:39 | 2020-12-16T09:48:39 | 361,897,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 23 03:14:39 2020
@author: donbo
"""
# %% notes
# https://pandas.pydata.org/pandas-docs/stable/user_guide/style.html
# https://pbpython.com/styling-pandas.html
# https://mkaz.blog/code/python-string-format-cookbook/
# https://www.youtube.com/watch?v=Sj42rqym9lk
# https://... | [
"donboyd5@gmail.com"
] | donboyd5@gmail.com |
3c4fa1ec3cbb17b076c82c304c1c922f7a61ff2b | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Gio/ConverterFlags.py | a973af808109d91b5dc90dbdf029b6c6f0d35170 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 12,853 | py | # encoding: utf-8
# module gi.repository.Gio
# from /usr/lib64/girepository-1.0/Gio-2.0.typelib
# by generator 1.147
# no doc
# imports
import gi as __gi
import gi.overrides as __gi_overrides
import gi.overrides.Gio as __gi_overrides_Gio
import gi.overrides.GObject as __gi_overrides_GObject
import gi.repository.GObjec... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
2168445a69fd58027a1d22b32431a5f3569f52c3 | 1c39d98a7f4be6939bcbacbf3b4f7d9610bf2ea9 | /0.Basis/0.pythonbook/25.RegularExpressions.py | c8cad87c86ebaf715bf911029b2cde0a21867e3e | [] | no_license | vlong638/VL.Python | 03ae0da96164d9cd2de521faea2cb86e68152bc8 | 06499fa1f7f7e4b4ae9f9e470c04f78bce86a7b1 | refs/heads/master | 2021-01-13T11:01:29.137801 | 2016-11-04T05:47:09 | 2016-11-04T05:47:09 | 69,540,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,928 | py | import PrintHelper
PrintHelper.PrintTitle('Regular Expressions With Python')
print('适用于数据挖掘,数据处理,抓取网页数据,大量的数据集合的模式化匹配')
print('正则表达式是字符串的模式化匹配,本章介绍如何使用正则表达式进行匹配')
PrintHelper.PrintSubtitle('The re Module')
PrintHelper.PrintHint('re,正则表达式模块')
PrintHelper.PrintHint('@pattern=re.compile(r@pattenString)','编译pattern')
Print... | [
"vlong638@163.com"
] | vlong638@163.com |
2ee3baa013cf6894c49b26fbbcd9f1e7e01a7640 | 6ff51e18e843e07fb9a08f299d6cd90c17ec54f0 | /softwares/base16/output/prompt-toolkit/base16/base16-codeschool.py | 979d22ad9c27e68a5a3835d2c224fab69e871df6 | [] | no_license | xzdandy/Configs | 79258716f658a38dbcf6483acd206b747d445fe2 | cc6f32462f49998fac69327ec6983de8067352ae | refs/heads/master | 2022-05-05T14:32:16.011938 | 2022-03-31T23:03:07 | 2022-03-31T23:03:07 | 173,981,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | # -*- coding: utf-8 -*-
# base16-prompt-toolkit (https://github.com/memeplex/base16-prompt-toolkit)
# Base16 Prompt Toolkit template by Carlos Pita (carlosjosepita@gmail.com
# Codeschool scheme by blockloop
from prompt_toolkit.terminal.vt100_output import _256_colors
from pygments.style import Style
from pygments.tok... | [
"xzdandy@gmail.com"
] | xzdandy@gmail.com |
5b7e1f7fad59a55adecd2e085f93e88b7e02d4c3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2653/60698/274540.py | b57d02b4c40b0bf4962611a78c22b05da38bef51 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | def test():
t = int(input())
for _ in range(0, t):
nx=input().split()
n=int(nx[0])
x=int(nx[1])
if x>=10:
print(0)
return
else:
time=10-x
num=n-1
print (num*time)
test() | [
"1069583789@qq.com"
] | 1069583789@qq.com |
45afbd57726537a58057dcd1c6c67e4566de6212 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/SYMMNTPCLIENT.py | 991e6c1fb91a1ddbc390746576c20fd10ad69885 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 11,788 | py | #
# PySNMP MIB module SYMMNTPCLIENT (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/neermitt/Dev/kusanagi/mibs.snmplabs.com/asn1/SYMMNTPCLIENT
# Produced by pysmi-0.3.4 at Tue Jul 30 11:35:06 2019
# On host NEERMITT-M-J0NV platform Darwin version 18.6.0 by user neermitt
# Using Python version 3.7.4 (default, J... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
fc414bd6e874eb9170259bd11f5421cd9647564f | 393a9ce7e465d211f99926afbc20f8e72fa6ce4d | /venv/bin/pip3 | 114101786a2c6dd465e49a127d0fda760e887e51 | [] | no_license | GarrettMatthews/Artemia | 210079f50c94c09c732c25efc6554b009e339856 | 008f8c46abdf5dbf270b057a820665e796d4a213 | refs/heads/master | 2020-07-29T05:29:45.979474 | 2019-12-10T17:52:38 | 2019-12-10T17:52:38 | 209,684,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | #!/home/garrett/Desktop/Git_Repositories/Artemia/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[... | [
"garrettemathews@gmail.com"
] | garrettemathews@gmail.com | |
cc1186b87d73c60fd1286cb040e3c7be0884f0c9 | 7b9f0f9be9d7422546c300b0d4dead3b10fb7ee7 | /ariaml/createInput.py | df341539f8702167c06251b98a295bc65b24a1fa | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | aria-jpl/ariamh | 73f163f0c80da949f6ea88469fd2c67ab229ef20 | b6a06330cb5a592022070724b34eb6a011e7cbdc | refs/heads/develop | 2022-12-26T13:45:29.287226 | 2022-02-10T05:08:43 | 2022-02-10T05:08:43 | 124,922,867 | 6 | 7 | Apache-2.0 | 2022-12-13T13:53:45 | 2018-03-12T17:02:52 | Python | UTF-8 | Python | false | false | 330 | py | #!/usr/bin/env python
import sys, json
def write_input(ctx_file, in_file):
with open(ctx_file) as f:
j = json.load(f)
input = { "url": j['rule_hit']['_source']['urls'][0] }
with open(in_file, 'w') as f:
json.dump(input, f, indent=2)
if __name__ == "__main__": write_input(sys.argv[1], sys... | [
"pymonger@gmail.com"
] | pymonger@gmail.com |
ea5bb42024088a52e5faddafce1ae405b2c755af | c6d389f085c683f33cc0d0ab6497b3f042f7c905 | /distanceBetweenPointAndSegment.py | ed8315fdfa93c2689eee34f35a3b9d99e47aff07 | [] | no_license | irhadSaric/computer-geometry | 0d23fbafbedb18b22df30cc8071f4103237eef2d | 25a73c756472896c316d685ca6792c8c94f31361 | refs/heads/master | 2020-04-04T08:01:38.501815 | 2019-02-26T20:05:08 | 2019-02-26T20:05:08 | 155,768,457 | 0 | 0 | null | 2019-02-26T20:10:33 | 2018-11-01T19:56:17 | Python | UTF-8 | Python | false | false | 635 | py | from math import sqrt
def distancePtoS(point, segment):
x = point[0]
y = point[1]
x1 = segment[0][0]
y1 = segment[0][1]
x2 = segment[1][0]
y2 = segment[1][1]
A = x - x1
B = y - y1
C = x2 - x1
D = y2 - y1
dot = A * C + B * D
len_sq = C * C + D * D
param = -1
if... | [
"irhad.saric@hotmail.com"
] | irhad.saric@hotmail.com |
205750ec03969e29011a40ca0bb85064d668571e | 678e374616008bd3d72e2c399ece7e219601bebc | /src/billing/models.py | fd28f1b45c723ff87727da6e38eda558ca08bff0 | [
"MIT"
] | permissive | LABETE/srvup_and_drf | 74d454f7fc2aa1f7869b2a40f15f18cfdecc9835 | e6b09ce8f8b01bbcbdce291efbbba16c2837b38f | refs/heads/master | 2016-08-12T19:04:05.411849 | 2016-01-26T17:16:26 | 2016-01-26T17:16:26 | 50,445,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,892 | py | import datetime
import random
from django.conf import settings
from django.contrib.auth.signals import user_logged_in
from django.db import models
from django.db.models.signals import post_save
from django.utils import timezone
from .signals import membership_dates_update
from .utils import update_braintree_membershi... | [
"eddie.valv@gmail.com"
] | eddie.valv@gmail.com |
4e87a4a33512bdf4d49b79da2a44373a7c62dab8 | e8bf00dba3e81081adb37f53a0192bb0ea2ca309 | /domains/nav/problems/training/problem1032_SD.py | bce3f354d7fa46d2c39311b6b2bf4b2ab138740f | [
"BSD-3-Clause"
] | permissive | patras91/rae_release | 1e6585ee34fe7dbb117b084df982ca8a8aed6795 | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | refs/heads/master | 2023-07-13T20:09:41.762982 | 2021-08-11T17:02:58 | 2021-08-11T17:02:58 | 394,797,515 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | __author__ = 'patras'
from domain_springDoor import *
from timer import DURATION
from state import state, rv
DURATION.TIME = {
'unlatch1': 5,
'unlatch2': 5,
'holdDoor': 2,
'passDoor': 3,
'releaseDoor': 2,
'closeDoors': 3,
'move': 7,
'take': 2,
'put': 2,
}
DURATION.COUNTER = {
... | [
"patras@umd.edu"
] | patras@umd.edu |
14b61fbbc57d056ce76adcf743c6de1c24e1669e | ca27df9a42fdba2fb9c42ced68b1b3e734e0fb76 | /src/modu/editable/datatypes/boolean.py | b695dbf72fee4b17b8ff56ca82ed177cbfd26c68 | [
"MIT"
] | permissive | philchristensen/modu | 1696ecf36908367b0358b06c3bee02552fc76651 | 795f3bc413956b98522ac514dafe35cbab0d57a3 | refs/heads/master | 2016-09-06T10:54:59.286492 | 2015-03-29T21:22:47 | 2015-03-29T21:22:47 | 829,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,285 | py | # modu
# Copyright (c) 2006-2010 Phil Christensen
# http://modu.bubblehouse.org
#
#
# See LICENSE for details
"""
Datatypes to manage boolean-type fields.
"""
from zope.interface import implements
from modu.persist import sql
from modu.editable import IDatatype, define
from modu.util import form
from modu import per... | [
"phil@bubblehouse.org"
] | phil@bubblehouse.org |
1081ea17c0124f9ba46398a111ac9aa9c1c6bc52 | 3ac0923505e1e03a07742355edec43f23ead82b7 | /Daily/PY/LCP7-传递信息.py | 47dde08f7b68165b4b97ab8cafc5df622c6a5329 | [] | no_license | lock19960613/SCL | 5055c940d2529eef981a29698c7ea04212a8b9de | 3ea28fd8f5d5233411341283c85667e4b9fc64d5 | refs/heads/main | 2023-08-03T04:36:33.555296 | 2021-09-11T06:48:49 | 2021-09-11T06:48:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from typing import List
class Solution:
def numWays(self, n: int, relation: List[List[int]], k: int) -> int:
edges = [[] for _ in range(n)]
for s2d in relation:
edges[s2d[0]].append(s2d[1])
ans = [0]
def dfs(idx,step,ans):
if step == k:
if idx... | [
"597494370@qq.com"
] | 597494370@qq.com |
e39b7a772ddc094a8023faf4ec83d011face4a00 | 82aee3211216f55392d5a757eb57f02c859e9a28 | /Easy/141_linkedListCycle.py | d23cc846dcdedbbb257bffebfd2150b7ee2dddbb | [] | no_license | Yucheng7713/CodingPracticeByYuch | 505d18095d4b9a35c1f3b23632a90a76d811b64a | 1461b10b8910fa90a311939c6df9082a8526f9b1 | refs/heads/master | 2022-05-01T11:51:00.612603 | 2022-04-18T09:46:55 | 2022-04-18T09:46:55 | 198,961,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def hasCycle(self, head):
if not head:
return False
l_index = f_index = head
while f_index != None and f_index.ne... | [
"yuchengh@usc.edu"
] | yuchengh@usc.edu |
7bb147fb781245b85941bb53ade305b787c1f256 | 7ba9ba1570ef44ced18bf7689329d5f5d4bcc350 | /src/fracx/api/models.py | f1a9f5909798a2fd90a16181348846977c0a88d7 | [
"MIT"
] | permissive | la-mar/permian-frac-exchange | 90992393cdcdb6c6a8b697a5c7d8fc64a4bff2f2 | a7ba410c02b49d05c5ad28eff0619a3c198d3fd0 | refs/heads/master | 2020-06-12T04:40:52.642629 | 2020-04-14T23:50:07 | 2020-04-14T23:50:07 | 194,196,884 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import logging
from sqlalchemy.sql import func
from api.mixins import CoreMixin
from config import get_active_config
from fracx import db
conf = get_active_config()
logger = logging.getLogger(__name__)
class FracSchedule(CoreMixin, db.Model):
__tablename__ = conf.FRAC_SCHEDULE_TABLE_NAME
api14 = db.Colu... | [
"brocklfriedrich@gmail.com"
] | brocklfriedrich@gmail.com |
435534ff95ee6c8f8f98473eb45892defd916779 | 2789e0e7eeec008af8dcceeea454fd9cf9f6ca56 | /LSDPlottingTools/LSDMap_BasicPlotting.py | 5222d87284c4b3f4d854a56c4feabbd319eaf2e6 | [] | no_license | dongjwOU/LSDMappingTools | 52c17234344a3d3f9c50d66dea36a580603a8988 | 6e6820cbca555941a2b7f3f64a48ed1a6f11905e | refs/heads/master | 2021-01-13T15:37:47.723562 | 2016-12-19T18:04:49 | 2016-12-19T18:04:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,406 | py | ## LSDMap_BasicPlotting.py
##=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## These functions are tools to deal with rasters
##=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## SMM
## 26/07/2014
##=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | [
"simon.m.mudd@ed.ac.uk"
] | simon.m.mudd@ed.ac.uk |
383074dc0b73c2d849f90519a9ec6f5795dc935c | e92a3d0fb77120be99de6040cb6cd34eda0a95f4 | /urllib, requests, re, webcrawler - усиленная работа со скрапперами сайтов/code/filter_example_10.py | 7ec48ce5918ab84d7e1f5f1e182bb92b97a14424 | [] | no_license | Python18Academy/python_first_level | 495f85631f5afc737aa156ef8ca0ea307340c322 | 9ce490da3108474b135a17086f4d11f2a3bbbe55 | refs/heads/master | 2023-09-04T17:00:36.920987 | 2021-03-31T18:44:37 | 2021-03-31T18:44:37 | 331,934,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | a = [1, -4, 6, 8, -10]
def func(x):
if x > 0:
return 1
else:
return 0
b = filter(func, a)
b = list(b)
print(b) | [
"isakura313@gmail.com"
] | isakura313@gmail.com |
5a4fca19914b7786c3fc10ad8986966a961fd341 | 5585352909cb26420ec3f4b54df2253a2112c5c9 | /0925/isLongPressedName.py | c6c189d7901cc900138377cabcd1a1d06b6031af | [] | no_license | minuso/leetcode | fd05472a782463b27575c9149081bcd38f03a7c5 | 56cafa52a6a3534efc2c32db4acf516b2a285a46 | refs/heads/master | 2020-04-25T17:18:56.299245 | 2019-06-16T16:19:09 | 2019-06-16T16:19:09 | 172,943,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def isLongPressedName(self, name: str, typed: str) -> bool:
i, j = 0, 0
while i < len(name) and j < len(typed):
if name[i] == typed[j]:
i, j = i+1, j+1
else:
j += 1
return i == len(name) | [
"minuscholar@gmail.com"
] | minuscholar@gmail.com |
319efc41188b3161c74b9492ad912388557f640e | 91b2fb1fb6df216f2e365c3366bab66a567fc70d | /Week10/每日一题/面试题 02.05. 链表求和.py | adeaf8a3b372d2228ba46b48489634b0acdac3df | [] | no_license | hrz123/algorithm010 | d17aee642f03f607a7984beb099eec18f2de1c8e | 817911d4282d2e226518b3533dff28282a91b3d4 | refs/heads/master | 2022-12-20T14:09:26.365781 | 2020-10-11T04:15:57 | 2020-10-11T04:15:57 | 270,178,423 | 1 | 0 | null | 2020-06-07T03:21:09 | 2020-06-07T03:21:09 | null | UTF-8 | Python | false | false | 2,392 | py | # 面试题 02.05. 链表求和.py
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
carry = 0
dummy = ListNode(0)
cur = dummy
while l1 o... | [
"2403076194@qq.com"
] | 2403076194@qq.com |
d687316af88ab599c537375566f06965c12be41d | e522dc3b8ae16fb6adf8c679c2fcd61e06979f29 | /example/gpio_example.py | 389b5f9b1201efa4304a5a4758bf4f01ffb70ffb | [
"MIT"
] | permissive | amaork/raspi-io | 96e92330555e7700f54633f582efbc7620f8b10b | aaea4532569010a64f3c54036b9db7eb81515d1a | refs/heads/master | 2021-09-17T15:27:43.853195 | 2021-08-27T08:51:24 | 2021-08-27T08:51:24 | 94,192,125 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!/usr/bin/env python3.5
from raspi_io import GPIO
import raspi_io.utility as utility
if __name__ == "__main__":
io = [20, 21]
gpio = GPIO(utility.scan_server()[0])
gpio.setmode(GPIO.BCM)
gpio.setup(io, GPIO.OUT)
gpio.output(io, 1)
gpio.output(io, 0)
gpio.output(io, [1, 0])
gpio.outp... | [
"amaork@gmail.com"
] | amaork@gmail.com |
40d8d8ed9cbea9b92a4400832f01caf2cd5d0677 | 897871d09b8b1e86c5a48599839ba9534260f2c9 | /aromawine3-new_update__with_checkout/admin_manage_setting/views.py | 5a329af7a0a1959caaf73fde9e879a8106fc268a | [] | no_license | sidkushwah123/wine | 0b8b8fdf44068b4488d5f1ae5d34a24d3fff19a9 | bb29e84fb4a0709aca36e819ae6191147a9691b5 | refs/heads/main | 2023-07-27T14:03:06.814484 | 2021-09-11T15:25:39 | 2021-09-11T15:25:39 | 405,354,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,252 | py | from django.shortcuts import render,HttpResponseRedirect
from django.views import generic
from django.contrib.messages.views import SuccessMessageMixin
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from .models import AwAdminSetting,AwManageShipping
from ... | [
"sachinkushwah0007@gmail.com"
] | sachinkushwah0007@gmail.com |
92f985f89dee5987ed7ece4d443d4638d9a09a6e | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst_tags/optimized_3617_sml.py | ee0308f6fdb401a92bd718d4bf86136600712fb3 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,722 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
b72f8e277d42961c941209ec8450b8269aa663e5 | 240dc81851dd0243c0b14511f6d8b563ab91c890 | /admin/backup_views.py | 76ae812e8d20d8a67fe351feec027d7f34568084 | [] | no_license | prcek/TSReg | 0aac7ffc7992b731d12dc3959d661bc8c3639744 | ea6eac514d8e783ddaeeed6181b9ab45d5673c05 | refs/heads/master | 2020-05-30T03:19:46.737202 | 2017-06-08T08:14:00 | 2017-06-08T08:14:00 | 2,208,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,578 | py | # -*- coding: utf-8 -*-
from django import forms
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.shortcuts import render_to_response, redirect, get_object_or_404
from django.template import RequestContext,Context, loader
import utils.config as cfg
from utils.data import UnicodeReader
fr... | [
"tomas.hluchan@gmail.com"
] | tomas.hluchan@gmail.com |
f172ee20a98e4007c2809b15d762cb8e1c58a40a | 2ca07aecfa6ff25b0baae6dc9a707a284c2d1b6d | /common/sectools/sectools/common/crypto/openssl_binary_implementation.py | 2ddc52ade7e20fcb1109fc2c986ff934e6ecc241 | [
"BSD-3-Clause",
"OpenSSL",
"MIT",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhilangtaosha/msm8996-wp-1-0_test_device | ef05af263ba7955263ff91eb81d45b2437bc492e | 6af9b44abbc4a367a9aaae26707079974c535f08 | refs/heads/master | 2023-03-19T02:42:09.581740 | 2021-02-21T01:20:19 | 2021-02-21T01:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,300 | py | # ===============================================================================
#
# Copyright (c) 2013-2016 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# ===============================================================================
import sub... | [
"lonelyjskj@gmail.com"
] | lonelyjskj@gmail.com |
a8aded7aeb17247f05860c2b32054adfb9a56e9f | 6b77ae897567d391780efa7457368301077e2330 | /tcpssh/venv/Scripts/pip3-script.py | ebf45c3346cbc964e3ded4837c79c1dbb2c4cfe5 | [] | no_license | wapjin/python-code | 03ba079ebc551941c3d0d1122db5fb944070e397 | d82f7e64b6c62bf8eb04f960c8fa03b02495b2fc | refs/heads/master | 2020-12-13T17:59:25.265569 | 2020-03-21T08:12:16 | 2020-03-21T08:12:16 | 234,477,075 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #!"D:\python code\tcpssh\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exi... | [
"1045833538@qq.com"
] | 1045833538@qq.com |
ea8ce920973c4519f0a07fbdcfc341110505353f | bf9b4ff0145381084e11b2df64a8399b46328b36 | /libby/main.py | ba1af7b19c80ad799f69e55ca89c5b4114208fd1 | [] | no_license | kwarwp/grete | f6fbf7e21464536cb27253aa02de4b3292179883 | e5f02660c57ba3d271b059d8b7972099226a0987 | refs/heads/master | 2023-04-06T21:11:37.811621 | 2023-03-16T21:32:04 | 2023-03-16T21:32:04 | 128,999,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,438 | py | # grete.libby.main.py
#REVISADO PRONTO
from _spy.vitollino.main import Cena,Elemento,Texto, Sala, INVENTARIO
#CAMPO = "https://image.freepik.com/fotos-gratis/paisagem-de-campo-de-golfe_1388-96.jpg"
#CASAL = "https://images.vexels.com/media/users/3/129903/isolated/preview/c996f5193090b3a642ffc069bc81da0c-silhueta-do-ca... | [
"38007182+kwarwp@users.noreply.github.com"
] | 38007182+kwarwp@users.noreply.github.com |
55f4c8eb3f284879551872c0d056599a50209d67 | 6643bd4ecd44a21944debc75d79c4616bdac7868 | /datawarehouse/opertaion/script/ETL_P2P.py | e41ca1fb1dac6f879da61768c24a2d36d4b7928b | [] | no_license | smartbrandnew/vobileETLCode | d14fb9f34eb1f76e6e60253557c8b964137f6cb4 | 210e9060ed9fc1d278373910cfe203808b1afb04 | refs/heads/master | 2021-07-14T07:30:08.018828 | 2016-07-04T08:40:57 | 2016-07-04T08:40:57 | 62,543,866 | 0 | 2 | null | 2020-07-22T19:56:50 | 2016-07-04T08:12:01 | Python | UTF-8 | Python | false | false | 2,050 | py | #!/usr/bin/python
import MySQLdb
import sys
import time
import datetime
# downloads
conn=MySQLdb.connect(host='p2p-1-replica.c85gtgxi0qgc.us-west-1.rds.amazonaws.com',user='kettle',passwd='k3UTLe',port=3306)
conn.select_db('hubble_stat')
dlcur=conn.cursor()
dlcur.execute('select date_format(finished_at, "%Y-%m-%d")... | [
"smartbrandnew@163.com"
] | smartbrandnew@163.com |
6c882c2b99ed74a91f891acc54ce5e7717911120 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /yoto/problems/base.py | 28a7ba39f965d68d325b980d3acc1a0d43a249af | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,804 | py | # coding=utf-8
# Copyright 2023 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 |
c308f7c1b5031043658b922ec5cf81a010636bb4 | 1647dd424edd275a4b078bcc5a0cba7312e81fdc | /common_utils/data_types/correlation_matrix.py | f117d3adb988b301dc88494b9d433ea3ee02523a | [
"MIT"
] | permissive | CroP-BioDiv/zcitools | a72646bec8795bd24aca2dc7fa91c116be6abd7a | 3340a92f710f4acb5d3507bec639c40a17dfb5f2 | refs/heads/master | 2022-09-23T07:09:16.671748 | 2022-09-17T11:09:21 | 2022-09-17T11:09:21 | 222,237,739 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | from common_utils.import_method import import_pandas
from common_utils.exceptions import ZCItoolsValueError
class CorrelationMatrix:
def __init__(self, columns, list_values=None):
self._columns = [c.replace(' ', '_') for c in columns]
self._columns_lower = [c.lower().replace(' ', '_') for c in col... | [
"ante.turudic@gmail.com"
] | ante.turudic@gmail.com |
50fb251c0bd246cad074f7cca232173dd0b7c5ed | f998a574343292d050777f616b408a74fde05738 | /eshop_docker/eshop/apps/trade/adminx.py | e70a39d7f2b85434781c6c7f8b3084dfc5e3750e | [] | no_license | Boomshakal/Django | 7987e0572fc902bd56360affea0b5087a4cb04a7 | a149691c472eab3440028bf2460cd992acec0f8a | refs/heads/master | 2023-01-11T06:16:29.283428 | 2022-12-23T08:00:05 | 2022-12-23T08:00:05 | 199,360,433 | 0 | 0 | null | 2020-06-06T09:37:02 | 2019-07-29T02:01:09 | Python | UTF-8 | Python | false | false | 716 | py | # -*- coding:utf-8 -*-
__author__ = 'xojisi'
__date__ = '2018/2/1 13:42'
import xadmin
from .models import ShoppingCart, OrderInfo, OrderGoods
class ShoppingCartAdmin(object):
list_display = ["user", "goods", "nums", ]
class OrderInfoAdmin(object):
list_display = ["user", "order_sn", "trade_no"... | [
"362169885@qq.com"
] | 362169885@qq.com |
0c9aadc2d0cb47adbdf5eb01b41759191fbb4b89 | 5a391bc46a3649d22e4f928ff995daf55caebf9d | /Day2/AsyncHttp2.py | db9e05a3dc416a83571e0943db548571c01b008a | [] | no_license | artheadsweden/Python_Adv_Nov_19 | d4d4c45b34394bf3b64ba3c64c91213bd5d21594 | edae48c6cdab2e3c2090394fc499f4cc500df13a | refs/heads/master | 2020-09-20T05:41:35.817957 | 2019-11-27T21:34:31 | 2019-11-27T21:34:31 | 224,390,626 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | from aiohttp import ClientSession
import asyncio
async def get(session, url):
async with session.get(url) as response:
return await response.text()
async def fetch(url):
async with ClientSession() as session:
print("Fetching", url)
html = await get(session, url)
print(url, "i... | [
"joakim@arthead.se"
] | joakim@arthead.se |
fb3497f271ad83c243e1b67f2e965dad71f998f4 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/Pillow/PIL/SgiImagePlugin.pyi | e7f4ff96e1b777c06448cd814b82d888da0b87e3 | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 301 | pyi | from typing import Any, ClassVar
from typing_extensions import Literal
from .ImageFile import ImageFile, PyDecoder
MODES: Any
class SgiImageFile(ImageFile):
format: ClassVar[Literal["SGI"]]
format_description: ClassVar[str]
class SGI16Decoder(PyDecoder):
def decode(self, buffer): ...
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
cd2837c6567f62732024d941943feef047ced534 | 662422157827bfa076cde1369117b04646bc09af | /DNS/bruteforce_ipv6.py | 2ed8ed208fa1325a6cffa48b16d7209ecee4d5ea | [] | no_license | macavalcantep/MBA_IMPACTA | d1d1e37de6bc1a2d02a8bb9a0e5112f9b9fd8ef5 | 9228d7f55a23b51c8e4b908333eb6e89431c76a2 | refs/heads/main | 2023-08-04T03:06:54.290331 | 2021-09-27T21:20:11 | 2021-09-27T21:20:11 | 402,221,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | #!/usr/bin/python
import dns.resolver
myquery = dns.resolver.Resolver()
domain = "yahoo.com"
#host ="www"
#target = host + "." + domain
def func_a(_target):
question = myquery.query(_target, 'AAAA')
for _addr in question:
print('[+] - ' + _target + '---> ' + str(_addr))
def bruteforce_dns_ipv6(_word... | [
"yellow@battosai.yellow.dojo"
] | yellow@battosai.yellow.dojo |
734cf2f816bfa171b109a2ecd2be7c9fe690212b | decea024dde21a9e4847992c53c67da2bc3f365c | /Lectures/Intro to Frameworks/Lab/ORMs/app/models.py | 2f5358169b9efc5eaf88d1be4ea29ac2cdbeceda | [] | no_license | rjglushko/IOLab | bd0d2fd941a0ab592ca84ff9c679b24cad9dbf7d | 08e08691ecf488ef35faf3d431681756c7d7995a | refs/heads/master | 2021-01-10T04:21:44.095280 | 2016-03-19T05:03:22 | 2016-03-19T05:03:22 | 47,841,381 | 0 | 3 | null | 2016-03-19T04:28:29 | 2015-12-11T17:36:30 | HTML | UTF-8 | Python | false | false | 472 | py | from app import db
class Customer(db.Model):
id = db.Column(db.Integer, primary_key=True)
company = db.Column(db.String(120), unique=False)
email = db.Column(db.String(120))
# You need to a relationship to Address table here
# see http://flask-sqlalchemy.pocoo.org/2.1/models/#one-to-many-r... | [
"="
] | = |
5b06e6d0a8f9dec3336df8b334522c5d6177989a | 3ca57c41e909849729a6be0a9cbfd0f09d8c23cc | /plot_compound_length_thesis.py | d53d1d4da7ad778f3e5e5953e26eb96fa44c5cec | [
"Apache-2.0"
] | permissive | evanmiltenburg/MeasureDiversity | ec060132e51a4203daa725eeca2f0d3ca4ba6e38 | 8b79349ac339d949156cdc90d3cab9abc332c978 | refs/heads/master | 2021-03-27T06:27:27.749091 | 2019-12-29T12:40:13 | 2019-12-29T12:40:13 | 117,252,509 | 12 | 3 | Apache-2.0 | 2019-07-11T10:51:06 | 2018-01-12T14:46:43 | Python | UTF-8 | Python | false | false | 2,827 | py | import json
from matplotlib import pyplot as plt
from matplotlib.lines import Line2D
import seaborn as sns
import pandas as pd
sns.set_style("white")
sns.set_context('paper', font_scale=7)
my_palette = sns.cubehelix_palette(10, start=.8, rot=-.95)#sns.color_palette("cubehelix", 10)
sns.set_palette(my_palette)
system... | [
"emielonline@gmail.com"
] | emielonline@gmail.com |
313d24d9e21f7f163d1bf7b7e6dcd9aa369c6860 | 24aa1d8455a923ce64b6066438742c6d85945c80 | /medi_app/migrations/0002_alter_employeebank_added_on.py | 432e68209ebc2e94f5102be737dc8ab10a0a1a19 | [] | no_license | babor99/react_django_medical_store | f81c5e9f436817b16e2c508a6dd6de3d895d511f | e8ab6d7801b6d1c2be86e78ad0165e6df436688f | refs/heads/main | 2023-07-04T04:33:12.048265 | 2021-08-10T20:32:19 | 2021-08-10T20:32:19 | 394,774,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 3.2 on 2021-05-06 11:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('medi_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='employeebank',
name='added_on',
... | [
"islambabor947@gmail.com"
] | islambabor947@gmail.com |
3787d9fc4d0fa05467d40d0804ef8861a48641e2 | 56503bd3bd81541764333f19382488e2bd98cc9c | /a_path.py | b8b48f49c1916a29140ca64ee3d776af2744466e | [] | no_license | idrissabanli/algoritms | ea58ea5f9fcfd9051efc1d216cad950f459d2ea7 | b614750237e16e2de4d9565582ceb67f2c7bc150 | refs/heads/master | 2020-12-27T03:19:59.964091 | 2020-02-02T09:29:49 | 2020-02-02T09:29:49 | 237,747,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,935 | py | import random
# a = [[gedilecek_yol, oldugu_yerden_mesafe, cemi, yerlesme]]
a = [[0,0,0,1], [0,0,0,0], [0,0,0,0], [0,0,0,0]]
a = []
array_count = 10
f_i, f_j = random.randint(0, array_count-1), random.randint(0, array_count-1)
l_i, l_j = random.randint(0, array_count-1), random.randint(0, array_count-1)
print(f_i, f... | [
"idris@labrin.net"
] | idris@labrin.net |
4681a6c8e7bf85efe88951c9576d5b58a74d27d8 | 87e5a0b52ee4ce63d8713867408cfe86c935cb72 | /src/engineer/kenya_non_crop.py | e2d2556d2493341dae33f57a8db9e9665c3ead7d | [] | no_license | BatmanDao/crop-maml | 593cb04f886658bd577782e0564ac3949c9e6203 | 54296a6f1431a6d729013b5761a296566f03de1b | refs/heads/main | 2023-06-02T18:28:50.423061 | 2021-06-17T18:28:23 | 2021-06-17T18:28:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,752 | py | from dataclasses import dataclass
import pandas as pd
from pathlib import Path
import geopandas
from datetime import datetime
import json
from typing import Optional
from src.processors import KenyaNonCropProcessor
from src.exporters import KenyaNonCropSentinelExporter
from .base import BaseEngineer, BaseDataInstanc... | [
"gabriel.tseng@mail.mcgill.ca"
] | gabriel.tseng@mail.mcgill.ca |
bf818d5614f87f280643af66ba624c44ea3b74c5 | 7d9d1a6060f42be44e0e45483a16b00eb0b96abf | /mtefdweb/migrations/0001_initial.py | f81055474ddd6c611b2f863723af86512c9f4195 | [] | no_license | aaugustin/mtefd | 88e50fadb936957721f6dd1f4e2424a2ab4a50b4 | a859fbcd9aa8e5169733f8518fde1e251c45f9fe | refs/heads/master | 2023-07-06T04:24:30.114023 | 2015-10-02T13:34:39 | 2015-10-02T13:34:39 | 24,799,959 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Funder',
fields=[
('id', models.AutoField(verbo... | [
"aymeric.augustin@m4x.org"
] | aymeric.augustin@m4x.org |
709ada493cfba766e485de824e84804f68da4de4 | 09a6d8dbad5b92f93791948b5bf9b75f5cb2e5ce | /tests/pulse/test_pwc_functions.py | b56faa67bad6d475eee2b67e8138544469e64a97 | [
"Apache-2.0"
] | permissive | PennyLaneAI/pennylane | 458efd5d9457e90ada31ca2ef0fb6bb96a24e9a7 | 0843183ff15a013c2622af5e61fea431d18076d3 | refs/heads/master | 2023-09-03T17:00:43.105784 | 2023-09-01T16:15:07 | 2023-09-01T16:15:07 | 129,936,360 | 1,431 | 410 | Apache-2.0 | 2023-09-14T21:30:56 | 2018-04-17T16:45:42 | Python | UTF-8 | Python | false | false | 18,275 | py | # Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | [
"noreply@github.com"
] | PennyLaneAI.noreply@github.com |
772a363f4897ff0d1fb383ba03270c69caf9beef | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/surface/sql/flags/list.py | 7002af2f8b9fb14f62ee5bb4319d675f8b877141 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 1,913 | py | # Copyright 2013 Google Inc. 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 required by applicable law or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
6a0caeb63c63789f851099fc1d4eaa48c2e5701d | b429842319179d4df8586d5cb8287edd8e0bd3c8 | /escuela/core/migrations/0001_initial.py | 484e9f1903757b29db1cbd31413c523d96563c5f | [] | no_license | escuelagithub/escuelagithub | c5bd1be8bcb5b5fd7c1720415dd6d10d7816e0bf | 1e98619935ca3d772f0b77fdcc1de426f6a84729 | refs/heads/master | 2023-04-08T17:18:54.529244 | 2021-04-20T18:55:38 | 2021-04-20T18:55:38 | 359,922,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | # Generated by Django 3.2 on 2021-04-08 19:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='curso',
fields=[
('id', models.BigAutoField(a... | [
"gjangoinminutes@gmail.com"
] | gjangoinminutes@gmail.com |
5f0228e362c4758a1fdd7c1d13f7c08a4b579228 | 3f83a4411545140ef01e73ec037fdc94fdcb8fa0 | /mwbase/about.py | 77e81dc0ba13a40349274c1f5178b074611307ea | [
"MIT"
] | permissive | mediawiki-utilities/python-mwbase | 3a3759deb171e5b29589ff873e3c3c972a8daf78 | 5a7255fdbd2e9c5d844b48e7b6a293f5ffb17e6e | refs/heads/master | 2021-01-22T23:24:08.677862 | 2020-06-01T15:23:17 | 2020-06-01T15:23:17 | 85,629,682 | 2 | 1 | MIT | 2020-06-01T15:23:23 | 2017-03-20T21:34:42 | Python | UTF-8 | Python | false | false | 384 | py | __name__ = "mwbase"
__version__ = "0.1.4"
__author__ = "Aaron Halfaker"
__author_email__ = "aaron.halfaker@gmail.com"
__description__ = "Data structure normalization for MediaWiki's Wikibase"
__license__ = "MIT"
__url__ = "https://github.com/mediawiki-utilities/python-mwbase"
all = [__name__, __version__, __author__, ... | [
"aaron.halfaker@gmail.com"
] | aaron.halfaker@gmail.com |
9ee0bd4abc310a7ff56057247faa835681db1e26 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/wid.py | 466d948d44bf1b86b08a23550d7cda72df0e2b60 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.