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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
080c2c6c646e70f72650eaa08c085633935f741c | 910590eef6ef4dbccd73f5a3c665e4e06ebd58a3 | /examples/classifier/MLPClassifier/java/basics.py | 2e128445aaaf2e9f8320e3100914b0eacb46920f | [
"MIT"
] | permissive | prashanthgedde/sklearn-porter | 9a6226dd443fd76171d275a84712bae7fe58339e | 70f2fc7e9e924b803c896035840c4c28c5c4007f | refs/heads/master | 2021-01-23T04:59:45.676275 | 2017-03-23T23:56:08 | 2017-03-23T23:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,948 | py | # -*- coding: utf-8 -*-
from sklearn.neural_network import MLPClassifier
from sklearn.model_selection import train_test_split
from sklearn.datasets import load_iris
from sklearn.utils import shuffle
from sklearn_porter import Porter
iris_data = load_iris()
X, y = iris_data.data, iris_data.target
X = shuffle(X, ra... | [
"darius.morawiec@nok.onl"
] | darius.morawiec@nok.onl |
7482f658bfbc1852b614d4b6ee3578c2758a079b | 2049bda43e392d5f5981fbfdb70090ba226e4ef8 | /apps/user/migrations/0002_auto__add_unique_profile_uuid.py | 49a8660b196352cec08746c5f5fc822cd7bfc2d2 | [] | 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 | 4,045 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding unique constraint on 'Profile', fields ['uuid']
db.create_unique('user_profile', ['uuid'])
de... | [
"asili@usendhome.com"
] | asili@usendhome.com |
1c246ee63f7b072d69f5fa7bc161b51bdec588c0 | 09cb9fc74ba00ae1b2e394e62b71b6f9abaf7bcf | /tests/dialogs/demo_dialog.py | 0b80a162a1bead4b29d4ab488671dd531953d5e4 | [
"MIT"
] | permissive | kxgames/glooey | 5542e51c99d56170680c4914996434f798866e49 | f1d9711e93037ff1029d2a16c0b9cfc740fbff52 | refs/heads/master | 2022-11-21T02:58:16.418443 | 2021-09-19T15:54:03 | 2021-09-20T13:23:07 | 21,807,333 | 101 | 13 | MIT | 2022-11-11T15:04:48 | 2014-07-14T04:27:44 | Python | UTF-8 | Python | false | false | 677 | py | #!/usr/bin/env python3
import pyglet
import glooey
import run_demos
class TestDialog(glooey.Dialog):
def __init__(self):
super().__init__()
button = glooey.Button()
button.size_hint = 100, 100
button.set_background(
base_color='green',
over_color='o... | [
"kale@thekunderts.net"
] | kale@thekunderts.net |
7ea8307fed05e80d6400bdb699dcedd31f81afc0 | 6d7c488d14cf2bc0322c955a53ec34cfd67e8c3b | /.history/plane_ticket/spiders/ticket_spider_20200709115200.py | 720a1863f37ea6ff504ca4670736ce2b608858b3 | [] | no_license | byebyeyuchi/getPlaneTicket-web-crawl- | e247b7d015e35d1036e023c748764abb0ad66fe1 | 91a666659a537c053d8cd19c8214a54eab460800 | refs/heads/main | 2023-02-25T21:43:53.046865 | 2021-01-30T02:14:43 | 2021-01-30T02:14:43 | 334,308,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | import scrapy
import re
class TicketSpider(scrapy.Spider):
name = "tickets"
start_urls = [
"http://montreal.chineseconsulate.org/chn/zlgxw/"
]
def parse(self, response):
output ={}
pattern = u'\u5173\u4e8e\u516c\u5e03\u4e34\u65f6\u822a\u73ed'
top = re... | [
"delseylyq@gmail.com"
] | delseylyq@gmail.com |
11471b33a9344ccba540292367fe969b17b009e9 | 6fa0d5d3b61fbce01fad5a7dd50258c09298ee00 | /Python/SS4th/StartCamp/Lotto/lotto_api.py | 0a3551a79ffe00d4ceb679af9f0e1e2daa848397 | [] | no_license | athletejuan/TIL | c8e6bd9f7e2c6f999dbac759adcdb6b2959de384 | 16b854928af2f27d91ba140ebc1aec0007e5eb04 | refs/heads/master | 2023-02-19T13:59:06.495110 | 2022-03-23T15:08:04 | 2022-03-23T15:08:04 | 188,750,527 | 1 | 0 | null | 2023-02-15T22:54:50 | 2019-05-27T01:27:09 | Python | UTF-8 | Python | false | false | 848 | py | import requests
import random
url = 'https://www.dhlottery.co.kr/common.do?method=getLottoNumber&drwNo=879'
res = requests.get(url)
data = res.json()
winner = []
for i in range(1,7):
winner.append(data[f'drwtNo{i}'])
lotto = sorted(random.sample(range(1,46),6))
match = set(lotto)&set(winner)
rank = len(match)
... | [
"vanillasky84.0627@gmail.com"
] | vanillasky84.0627@gmail.com |
0b7967ac566af060ef6ac374f4c95095052df299 | 526986209fbf00e85c98648600f5f58575d54096 | /messages/pylint/C1001.py | e9137019dfcad057189656938f62ac77a22ec4fa | [
"Unlicense"
] | permissive | landscape-test/all-messages | 126b67d2fc395018121a40787ca92762a03f4873 | f349ac581f3a149b30591d7a9149629b9bf539cb | refs/heads/master | 2020-06-02T08:36:53.946720 | 2014-01-10T06:36:05 | 2014-01-10T06:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | """
C1001
Old-style class defined.
"""
| [
"git@carlcrowder.com"
] | git@carlcrowder.com |
e079d4ada899ab94aa0f0bd0b38eb306007687c5 | 24cf6992d9c9b8523a0a7d3a7a45e701cd49fce3 | /temp/projects/tempify/tempify/settings.py | eaeb980a88247b2c379ed9973cf96fb1a7672d29 | [] | no_license | yannickkiki/stuffs | f4e150a61eb0426791753f5da558dba09940d240 | d46e1ec56eb4f0f3486e72ffce5c7bba7f2a1796 | refs/heads/master | 2023-08-10T20:05:38.255427 | 2021-10-04T05:38:39 | 2021-10-04T05:38:39 | 353,716,213 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | """
Django settings for tempify project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib... | [
"seyive.kiki@gmail.com"
] | seyive.kiki@gmail.com |
95653e45bc577d6eec8537d58d7fd5c5843df715 | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/python/keras/utils/tf_inspect.py | fb88b6a922a5a49f615a9f99c1fa39e73d3225c7 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 13,704 | py | # Copyright 2017 The TensorFlow Authors. 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
da54e25d58d2d194ad8f08e23fe18f366afaad4b | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/twisted/words/test/test_jabberxmlstream.py | 85f6d195d4af049256c8b6202b7a976850adea2c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 45,718 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.words.protocols.jabber.xmlstream}.
"""
from __future__ import absolute_import, division
from twisted.trial import unittest
from zope.interface.verify import verifyObject
from twisted.internet import defer, task
from twi... | [
"354142480@qq.com"
] | 354142480@qq.com |
ea7268f307ad5c574e6afc24d03cd1d2fc6fca4e | e7caa3bd1a8c82fd59f88451d503e814cd6fdbea | /teaching/fib.py | 1ccada07c9c79492bf54201b1eeb186ab681e2f0 | [] | no_license | Ethic41/tafidaCourse | c9c65aa52a2b1e5b1992fa2ea1b874a9d7ac936d | aaff19df2bf853cd2552445a994e3eb91f4d0d37 | refs/heads/master | 2021-01-04T03:50:57.732354 | 2020-02-19T22:18:21 | 2020-02-19T22:18:21 | 240,368,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2020-02-10 22:21:00
# @Author : Dahir Muhammad Dahir
def fibonacci(n):
if n == 0:
return 0
if n == 1:
return 1
return fibonacci(n - 1) + fibonacci(n - 2)
#for i in range(10):
# print(fibonacci(i))
def factorial(n):
if... | [
"dahirmuhammad3@gmail.com"
] | dahirmuhammad3@gmail.com |
314c116f4a12762cfa241302a60833fb2cfc02ce | 6e3f97742562ff3cdf9372f54320c78e5c72fe97 | /apps/reportes/reportes_detallados/views.py | e11b4f54c7f98ad360577745eb8b99d395b7b4ba | [] | no_license | desarrollosimagos/exit_poll | 6892e9ad504691fa44eb5b599881c7fb044b260d | e4572e2b222cf6b5de8a221ac300ccb0062f8e41 | refs/heads/master | 2021-01-01T16:36:31.726898 | 2017-07-20T18:52:30 | 2017-07-20T18:52:30 | 97,868,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,708 | py | #encoding:utf-8
from django.views.generic import CreateView, TemplateView, DetailView, ListView, View
from django.core.urlresolvers import reverse_lazy
from django.shortcuts import render, render_to_response, get_object_or_404
from apps.votacion.models import Votacion
from apps.candidatos.models import Candidatos
from ... | [
"ing.omar.orozco@gmail.com"
] | ing.omar.orozco@gmail.com |
7858c5a5ca1e4b1d571bee550974c0566dc1c87c | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/lmi.py | 98ddf9a2c7169e9a6d4ef2d38a2b3dab072851e9 | [] | 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 |
55222c60aca967ce2859d141d88b91b369efeca9 | 1d23c51bd24fc168df14fa10b30180bd928d1ea4 | /Lib/site-packages/twisted/protocols/stateful.py | 4618e74b3f58982ccca101c6a1438bdc2af09cd7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BeaverInc/covid19CityMontreal | 62dac14840dadcdf20985663bc2527c90bab926c | 1b283589f6885977a179effce20212a9311a2ac0 | refs/heads/master | 2021-05-22T20:01:22.443897 | 2020-06-21T08:00:57 | 2020-06-21T08:00:57 | 253,067,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | # -*- test-case-name: twisted.test.test_stateful -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.internet import protocol
from io import BytesIO
class StatefulProtocol(protocol.Protocol):
"""A Protocol that stores state for you.
state is a pair (function, num_byte... | [
"36340780+lanyutian88@users.noreply.github.com"
] | 36340780+lanyutian88@users.noreply.github.com |
4f2e6530981c13d7af5292e0def560b02a082ecf | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab7/set2/JUSTIN V STONE_11331_assignsubmission_file_Lab_7_jstone/Q1.py | 8ff74ace3b6ee432c96fd8a3d23dc52843297410 | [] | 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 | 323 | py |
# Question 1
import sys
from math import *
print sys.argv
x=float(sys.argv[1])
print x
y=float(sys.argv[3])
print y
op=sys.argv[2]
print x,op,y,'=',
if op == "+":
print x+y
elif op == "-":
print x-y
elif op == "*":
print x*y
elif op == '/':
if y == 0:
print "error: y = 0"
else:
total = x / y
print total... | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
d1b5d8b0c3958a9eb1d8fa0f6a9ffae5a5e537a2 | a354982110c16557c1a21443f387cea3e81648de | /advanced_templates/pythons_app/urls.py | 960ce8dccdd5d8c9dc1fdaa909af1525321c9b5a | [] | no_license | dkutelov/django_study_projects | 4e30ec71611523d61997cd364b76fa8cc1163f70 | 832b31ba7e60fae425cbe26b1c45f0afe903a7d8 | refs/heads/master | 2023-01-30T10:07:48.850614 | 2020-12-15T15:59:58 | 2020-12-15T15:59:58 | 289,719,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from django.urls import path
from . import views
urlpatterns = [
# path('', views.index, name="index"),
path('', views.IndexView.as_view(), name="index"),
path('create/', views.create, name="create"),
]
| [
"dari.k@abv.bg"
] | dari.k@abv.bg |
79087fbb2dd8675ad8da685b36d535c2919ea13f | 89fd3b235832cc6f14811721dfe9e092eaa5aafb | /bitflow/utils/create_dependencies.py | b9d65afcd7ff2a467248d63721761a5e8aeca6fc | [] | no_license | keikojima02/bitflow | f43ebaba1421d265731ddfe57e814eaf7904e487 | ad6a2d8dc60d60708c3adee7fd3d5b5cfc0ac65f | refs/heads/master | 2022-11-25T23:34:29.260242 | 2020-08-06T18:41:21 | 2020-08-06T18:41:21 | 275,140,682 | 0 | 0 | null | 2020-06-26T11:32:39 | 2020-06-26T11:32:38 | null | UTF-8 | Python | false | false | 876 | py |
import os
import json
from .utils import get_module_names, fetch
def create_dependencies(directory='modules'):
'''
Read bitflow modules in a directory and get their type signatures
Dump these to a JSON file.
**Potentially uses a lot of memory, and is separated for this reason**
'''
print('CRE... | [
"lucassaldyt@gmail.com"
] | lucassaldyt@gmail.com |
fc877201ba9a982d606c64d6a277d8be93b38c2e | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/frenetic-lang_pyretic/pyretic-master/pyretic/evaluations/Tests/traffic_matrix_stanford/policy.py | b914df876b0c928cfc684fcd368201330b3e4392 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 4,636 | py | from pyretic.lib.corelib import *
from pyretic.lib.std import *
from pyretic.modules.mac_learner import mac_learner
from pyretic.lib.path import *
from pyretic.lib.query import counts
from pyretic.evaluations.Tests.common_modules.stanford_forwarding import *
from Topos import *
import threading
import itertools
import... | [
"659338505@qq.com"
] | 659338505@qq.com |
716ff5daeba41e2677b0823d964f5f3c212e9b52 | 105212e4d2d2175d5105e05552e29b300375e039 | /TensorFlow_tutorials/TensorFlow_train_own_data/tensorflow_train_owndata_detector/eval.py | 1c65a0bdc45ff2009edcb2984e9d458debe8eb69 | [] | no_license | Asher-1/AI | 84f0c42651c0b07e6b7e41ebb354258db64dd0d1 | a70f63ebab3163f299f7f9d860a98695c0a3f7d5 | refs/heads/master | 2022-11-26T07:24:37.910301 | 2019-05-30T13:04:31 | 2019-05-30T13:04:31 | 160,031,310 | 7 | 1 | null | 2022-11-21T22:02:53 | 2018-12-02T09:19:03 | Jupyter Notebook | UTF-8 | Python | false | false | 6,215 | py | # Copyright 2017 The TensorFlow Authors. 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 applica... | [
"ludahai19@163.com"
] | ludahai19@163.com |
af62cc95241e3c19928502710b6abdeaf7f46d83 | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_accountbackup.py | 3256aa33c263759cadc795b311feb03460ce5c1f | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 7,709 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
d9aeac61bf5d22a8c62e1dff9fda9367a8bcfad8 | 214ea3873f451940c73c4fb02981b08c8161b23c | /Linked List/plus-one-linked-list.py | 934194ea2146141629c94e1e2fbf2cfcecdfa250 | [] | no_license | Tiierr/LeetCode-Python | 4a086a76a6d3780140e47246304d11c520548396 | e8532b63fc5bb6ceebe30a9c53ab3a2b4b2a75a3 | refs/heads/master | 2021-06-14T04:36:57.394115 | 2017-03-07T06:46:39 | 2017-03-07T06:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | # Time: O(n)
# Space: O(1)
#
# Given a non-negative number represented as a singly linked list of digits, plus one to the number.#
# #
# The digits are stored such that the most significant digit is at the head of the list.#
# #
# Example:#
# Input:#
# 1->2->3#
# #
# Output:#
# 1->2->4
# Definition for singly-linked ... | [
"rayyu03@163.com"
] | rayyu03@163.com |
a03fd0436ff599a502e57472a1efded1a8d46e50 | 75169b83f2b975bff8baf61f0cf1264cf4b71a28 | /learnpy/king.py | 8eb0da68fc7a2178e28e98961715adbb87d27154 | [] | no_license | Pangpang2/Python | a27024587ae51923954deefaaff304a26e5a944f | 0b3bcfbdcaa71253c798090713c052fd397bff3f | refs/heads/master | 2022-12-01T10:03:23.214443 | 2020-08-26T00:21:15 | 2020-08-26T00:21:15 | 290,171,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import math
from math import sqrt
#i = math.floor(32.9)
i = int(32.9)
i = sqrt(9)
i = "hello world"
print(i)
print(''' this
is''')
print("Hello.\
world !")
print(1+2+\
4+5)
path = r'c:\abc'
print(path)
hu=['huhu',25]
chongshi = ['chongshi', 32]
database = [hu,chongshi]
print(database)
sentence = 'haha! this ... | [
"may.li@internetbrands.com"
] | may.li@internetbrands.com |
2bc29d51b0967f5ca7661818603d3b483d1e8f54 | 4ced95cf91f5673eae0f60a81aeae9881a4509dc | /registration_page/models.py | 2b283e5030c2e9c6fd19310ef002e38e19cae5d4 | [] | no_license | batyrbeknazik/django-deployment | 15e3053213e557ffcc3bbbdcd89d452aef1b8018 | bd5b8529e3f0deff52b290e49ed434385cf752f5 | refs/heads/master | 2021-01-25T13:06:46.873076 | 2019-05-08T12:36:27 | 2019-05-08T12:36:27 | 123,530,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class UsersProfile(models.Model):
usern = models.OneToOneField(User,on_delete=models.CASCADE)
def __str__(self):
return self.usern.username | [
"batyrbeknazik@gmail.com"
] | batyrbeknazik@gmail.com |
ebed421d062a2b461fb80b90a0d48a45e20e839e | 7b221a4981edad73991cf1e357274b46c4054eff | /stacks/XIAOMATECH/1.0/services/HDFS/package/alerts/alert_upgrade_finalized.py | 3bad04c368daee13ba28cf609fbd6777a24f3148 | [
"Apache-2.0"
] | permissive | aries-demos/dataops | a4e1516ef6205ad1ac5f692822e577e22ee85c70 | 436c6e89a1fdd0593a17815d3ec79c89a26d48f1 | refs/heads/master | 2020-05-29T17:20:12.854005 | 2019-05-22T06:06:00 | 2019-05-22T06:06:00 | 189,270,801 | 2 | 3 | Apache-2.0 | 2019-05-29T17:35:25 | 2019-05-29T17:35:24 | null | UTF-8 | Python | false | false | 7,008 | py | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License");... | [
"xianhuawei@MacBook-Air.local"
] | xianhuawei@MacBook-Air.local |
1049dc7eefafa33b9060cd5d95f051b818f0497a | f3364550df53c1a897dfcd9eea0713a8e02d329a | /week11/demo/api/urls.py | 803fc924b6ea108ecf29a4e58586e443f4ecd53c | [] | no_license | sultandaurenbek/Web_Development | 924f3f35cf925d993913b1dcb620e2b51269560b | 44393399d430ca7ec3055e1e661888d20f60ed71 | refs/heads/master | 2023-01-24T08:46:18.130431 | 2020-04-17T22:28:38 | 2020-04-17T22:28:38 | 237,561,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | from django.urls import path
from api.views import companies_list, company_detail, vacancy_by_company, vacancies_list, vacancy_detail, top_ten_vac
urlpatterns = [
path('companies/', companies_list),
path('companies/<int:company_id>/', company_detail),
path('companies/<int:company_id>/vacancies/', vacancy_... | [
"you@example.com"
] | you@example.com |
af2be85f930d73d5acb64a9efac34b19dcaeb91c | 6c1527b2dc3f944b8907d0de5bda6cdfbaeb1f7f | /views/demo.py | c93bd4b545b97bfee7144b36a886991057420ce9 | [
"MIT"
] | permissive | dcthomas4679/otree | f0a9204b12cd395e55fd9b77ac90584c2cd3c049 | 363a05d2f70f9225628e4857473dedcb449018dc | refs/heads/master | 2021-06-23T20:07:02.499724 | 2020-11-18T15:32:30 | 2020-11-18T15:32:30 | 37,225,765 | 1 | 1 | NOASSERTION | 2021-06-10T23:28:55 | 2015-06-10T22:22:33 | Python | UTF-8 | Python | false | false | 1,982 | py | # -*- coding: utf-8 -*-
from django.conf import settings
from django.urls import reverse
import vanilla
from otree.session import SESSION_CONFIGS_DICT
import os
class DemoIndex(vanilla.TemplateView):
template_name = 'otree/DemoIndex.html'
url_pattern = r'^demo/$'
def get_context_data(... | [
"dcthomas@gmail.com"
] | dcthomas@gmail.com |
f19502f662341670a906574fb7252f983ed6ec86 | 39e70c42740aa3099a56e18fc631119b3e346e92 | /hotels/views.py | f9f449e1d4e28eb7fcbb295bcfa0ebf9debb139e | [] | no_license | mkl-by/belhard | 20c14df16bc499541f408bd1a23377df998dfb76 | 292d3dd00120ea08ba9317c1e29aa459c163e59b | refs/heads/master | 2023-06-12T05:06:11.991200 | 2021-06-30T07:59:15 | 2021-06-30T07:59:15 | 368,925,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,831 | py | import datetime
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.sessions.models import Session
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcu... | [
"mkl-by@yandex.ru"
] | mkl-by@yandex.ru |
42752e0882c81772b2118858be0761640709d55c | fc92e3c736752e966148cd750e98e6a11c5ec92c | /baloney/opcodes.py | 640ef9f96e5ed2b9e957cf52d3250514f8f83200 | [] | no_license | tonybaloney/baloneyscript | c143e840da1ea6eaabd40a3f468b5940c28eb1ba | 1b917aae16c11ccaa7abbf73cffed155e13189ba | refs/heads/master | 2020-03-16T20:13:15.172940 | 2018-05-10T20:45:16 | 2018-05-10T20:45:16 | 132,950,898 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py |
# Constant type mappings
C_TYPE_MAP = {
'number': 'int',
'string': 'char*'
}
def command_to_op(command, scope):
if command.data == 'declaration':
return inst_declr(command, scope)
elif command.data == 'print':
return inst_print(command, scope)
elif command.data == 'if'... | [
"anthonyshaw@apache.org"
] | anthonyshaw@apache.org |
be1b589b291552afbf7f6650913720c97fa3112d | 5cf745769b0f891aca2198ace8935dce5221ec48 | /anima/rez_packages/anima/package.py | 8e6f0fba429deb9cf7394b24bafabee473463bb4 | [
"MIT"
] | permissive | jangcode/anima | d827672e45275f52727d66cd915bc5c2f3a0ede6 | 59ddfe76004626fc8142918b27d15e7759372854 | refs/heads/master | 2022-05-31T14:40:41.703689 | 2022-05-12T00:30:36 | 2022-05-12T00:30:36 | 94,961,144 | 0 | 0 | null | 2017-06-21T04:00:09 | 2017-06-21T04:00:09 | null | UTF-8 | Python | false | false | 3,945 | py | # -*- coding: utf-8 -*-
name = "anima"
version = "0.7.0"
author = [
"Erkan Ozgur Yilmaz",
]
uuid = "7ac53aa7e70c4014a5695f476f992d02"
description = "Anima Pipeline Package"
requires = [
"stalker",
]
variants = [
["blender"],
["fusion"],
["houdini"],
["maya"],
]
build_command = "python {r... | [
"eoyilmaz@gmail.com"
] | eoyilmaz@gmail.com |
285e9e79162fada45fc3b2ac7470d85e7c2fa9fb | ace81383f30da25c4be54fd7c1faaf451a95eda3 | /helloflask/__init__.py | bc79292d9a9248840e307fe4c0870c68d947eea8 | [] | no_license | k156/pyweb | 5d335362f12f87830877dd3efa37061552db2b10 | b13d1115e9bf97cbf019db5d90b3a183abdc46cb | refs/heads/master | 2020-04-21T16:14:10.909385 | 2019-02-15T09:13:18 | 2019-02-15T09:13:18 | 169,694,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | from flask import Flask, g, Response, make_response, request, render_template, Markup
from datetime import date, datetime, timedelta
from dateutil.relativedelta import relativedelta
from helloflask.templates.init_db import init_database, db_session
app = Flask(__name__)
app.debug = True
@app.route('/res1')
def re... | [
"jm_91@live.co.kr"
] | jm_91@live.co.kr |
292abc42478e1d146ac5b10b735ca03ba0837da1 | a07694aab30198bc11965d0dae11471b0a004957 | /phases/Normalisations.py | c44e8d10bd5a9ac340396b6912ae01f1b4162c25 | [] | no_license | rcrowther/Gravel | 6fccf500f680ea70371c4d889d6f2930c1a7727e | 86f22a2c1d561983020949cf5dc75cfb3004919b | refs/heads/master | 2021-08-25T06:21:34.317932 | 2021-06-11T19:14:24 | 2021-06-11T19:14:24 | 135,619,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from Phases import Phase
'''
Disambiguation.
Split non-equivalent but same-written expressions.
e.g.
'''
'''
Normalization.
Unify equivalent but differently-written expressions.
e.g in expressions, i+j+k and (i+j)+k, or reduction of types.
'''
'''
Analysis.
Derive new material from structures.
e.g. printers, st... | [
"rw.crowther@gmail.com"
] | rw.crowther@gmail.com |
22d9f6816cb9b4bbc46a9876e6551a6e5d583af2 | bce4b8ab73e93212d8f1c3f1cc4d1cfd1a76b7f5 | /Controller/ControllerNode.py | 058566a6a6180eec74ed76e1ca0f9152feea9295 | [] | no_license | JackHaoyingZhou/ambf_walker | 273c759843dec7245f4414d2e379670f421d5549 | 4f57d33d724aab8b09ef71e9cf24be9c4803d786 | refs/heads/master | 2023-01-09T04:54:43.695301 | 2020-10-31T17:44:47 | 2020-10-31T17:44:47 | 299,622,210 | 0 | 0 | null | 2020-09-29T13:15:02 | 2020-09-29T13:15:01 | null | UTF-8 | Python | false | false | 3,171 | py | import rospy
from threading import Thread, Lock
from sensor_msgs.msg import JointState
from ambf_walker.msg import DesiredJoints
import numpy as np
from std_msgs.msg import Float32MultiArray
from . import DynController
from ambf_walker.srv import DesiredJointsCmd, DesiredJointsCmdResponse
class ControllerNode(object)... | [
"nagoldfarb@wpi.edu"
] | nagoldfarb@wpi.edu |
962aba92b903b38bd58bae7c43bd0443dce4b8f8 | 6a1975a11de163ce0e6a5f001df41758bea3686b | /213. House Robber II/Solution_动态规划_看起来更舒服.py | 3e1c671b197fd0b2ed449fa3e830791f800dc42d | [] | no_license | Inpurple/Leetcode | 7f08e0e500d37913e9244f08ea8f603b3fc1ce88 | df2bcca72fd303100dbcd73d1dfae44467abbb44 | refs/heads/master | 2020-05-20T02:17:08.430557 | 2019-09-22T07:51:28 | 2019-09-22T07:51:28 | 185,327,908 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | class Solution(object):
def rob(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return 0
if len(nums)==1:
return nums[0]
return max(self.rob_line(nums[1:len(nums)]),self.rob_line(nums[0:len(nums)-1]... | [
"noreply@github.com"
] | Inpurple.noreply@github.com |
812ea692f4427a1fdc0ff11da998a57f09a5694c | 74ca764a5bd6480513b9a718075caa0df2ef11c8 | /Disp/wsgi.py | 65d09962256986781dad75137761c391690acd8e | [] | no_license | kodiers/Disp | 28c1a4a852350515061a5736ca631eeabab97f51 | 607145c7ce95cf928ca8e173aecac00ca3fffcc9 | refs/heads/master | 2016-09-06T03:40:42.496205 | 2015-08-19T14:43:33 | 2015-08-19T14:43:33 | 24,915,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for Disp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Disp.settings")
from django.core.wsgi im... | [
"kodiers@gmail.com"
] | kodiers@gmail.com |
1b71cdb236e5dcbaf4e759587fb6a4b332d3e109 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/animation/procedural_animation_helpers.py | d899d16f6eb36e7a742dbd60293f8c37b51af4b7 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,196 | py | from distributor.ops import GenericProtocolBufferOp
from distributor.system import Distributor
from protocolbuffers import Animation_pb2, DistributorOps_pb2
from sims4.tuning.tunable import HasTunableFactory, AutoFactoryInit, Tunable, TunableAngle
from sims4.tuning.tunable_hash import TunableStringHash32
import sims4.l... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
a010f470eddb73e9b797e4fc80389a37e67740d0 | 0f4cacd40260137d3d0b3d1b34be58ac76fc8bd0 | /2019/day19.py | 872dd1dbb25537849d3c46b4a0f689e5e606e478 | [] | no_license | timrprobocom/advent-of-code | 45bc765e6ee84e8d015543b1f2fa3003c830e60e | dc4d8955f71a92f7e9c92a36caeb954c208c50e7 | refs/heads/master | 2023-01-06T07:19:03.509467 | 2022-12-27T18:28:30 | 2022-12-27T18:28:30 | 161,268,871 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,195 | py | import sys
import itertools
from intcode import Program
from tools import Point
TRACE = 'trace' in sys.argv
real = [
109,424,203,1,21102,11,1,0,1106,0,282,21102,18,1,0,1105,1,259,1202,1,1,221,203,1,21102,31,1,0,1106,0,282,21101,38,0,0,1106,0,259,21002,23,1,2,22102,1,1,3,21102,1,1,1,21102,1,57,0,1105,1,303,2101,0,1... | [
"timr@probo.com"
] | timr@probo.com |
fc7484c08f11ddee6c9ab43b01afcf0a5e788d6f | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/refactoring/introduceVariable/substringAfterFormatTupleWithComma.py | ca34963a9884d7e72ed3c9fb1247ad8172af98f3 | [
"Apache-2.0"
] | 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 | 67 | py | print("%s: %s <selection>World</selection>" % ("Error", "Hello",))
| [
"andrey.vlasovskikh@jetbrains.com"
] | andrey.vlasovskikh@jetbrains.com |
6bbfb4344fbbeca44f51d0713932c0ed3bee05de | 9059d9cbad4188ed2980f551151b9678ffb68b44 | /mycode/4_list/list_test.py | ff023ba8b350cd9735912f1452a074196bbd5599 | [] | no_license | mhee4321/python_basic | ad0e64fa21ecfab231a6627ba6abeea82d725690 | 86031975a9121efe5785e83f663255a7b4e4ba77 | refs/heads/master | 2023-02-11T20:31:54.353219 | 2021-01-07T05:44:31 | 2021-01-07T05:44:31 | 326,850,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | '''
list 타입을 선언하고 list에 eliment 추가, 삭제
'''
num_list = [60, 10, 30, 70, 80]
num_list2 = [1, 2, 3, 4, 5]
print(num_list == num_list2)
# 리스트의 메모리 저장 방식
print(num_list, num_list2)
num_list2 = num_list
print(num_list, num_list2)
num_list.sort()
print(num_list, num_list2)
num_list2 = [1, 2, 3, 4, 5]
num_list.sort()
print(nu... | [
"nannanru@gmail.com"
] | nannanru@gmail.com |
d2dc52a21c2dc0675a4a185483d5310113b85c9d | 2581f2c98d497a6adf9bbb62730b02efea08cf80 | /stubs/rdflib/serializer.pyi | 48d7fe7f5888a0dd69e56d2a7035d65d1df8f8b6 | [] | no_license | drewp/rdfdb | 1ebbb5cf892fd86f6e3c571b94a97ecd07dd7340 | 8c71f02f989b2de1a4921640d1ca765e6d9efdb6 | refs/heads/master | 2021-04-27T00:31:22.493060 | 2019-08-09T06:15:15 | 2019-08-09T06:15:15 | 123,776,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | pyi | class Serializer:
...
| [
"drewp@bigasterisk.com"
] | drewp@bigasterisk.com |
5eeb57dd6890bdd8e465bfdd7d2c94bbfd07cb3c | 2f63688febd21dc3ae6b19abfa79ad313c820154 | /0207_Course_Schedule/try_4.py | a9b5068b2633548be5a7b12aaf33918bef63b19f | [] | no_license | novayo/LeetCode | cadd03587ee4ed6e35f60294070165afc1539ac8 | 54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7 | refs/heads/master | 2023-08-14T00:35:15.528520 | 2023-07-30T05:56:05 | 2023-07-30T05:56:05 | 200,248,146 | 8 | 1 | null | 2022-11-19T04:37:54 | 2019-08-02T14:24:19 | Python | UTF-8 | Python | false | false | 1,133 | py | class Node:
def __init__(self):
self.parent = 0
self.children = []
class Solution:
def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool:
# Topological sort
graph = {}
all_edges = 0
# build tree
for course in range(numCours... | [
"eric_shih@trendmicro.com"
] | eric_shih@trendmicro.com |
e33fde269b1493358997d8ddf7a2c85aea79c603 | e94c7bd97d8b8b3b2945d357521bd346e66d5d75 | /test/lmp/dset/_ch_poem/test_signature.py | 9c6484634b2c102aa07755d00dd3dc4bfbfb8331 | [
"Beerware"
] | permissive | ProFatXuanAll/language-model-playground | 4d34eacdc9536c57746d6325d71ebad0d329080e | ec4442a0cee988a4412fb90b757c87749b70282b | refs/heads/main | 2023-02-19T16:21:06.926421 | 2022-09-25T13:35:01 | 2022-09-25T13:35:01 | 202,471,099 | 11 | 26 | NOASSERTION | 2023-02-16T06:39:40 | 2019-08-15T03:57:23 | Python | UTF-8 | Python | false | false | 2,740 | py | """Test :py:mod:`lmp.dset._ch_poem` signatures."""
import inspect
from inspect import Parameter, Signature
from typing import get_type_hints
import lmp.dset._ch_poem
from lmp.dset._base import BaseDset
def test_module_attribute() -> None:
"""Ensure module attributes' signatures."""
assert hasattr(lmp.dset._ch_p... | [
"ProFatXuanAll@gmail.com"
] | ProFatXuanAll@gmail.com |
6fe2415266b0a6c2fd58f944bb358cabb18d25ef | 84d3cc3d2e577d19b471b96f1ea994c069665614 | /metapub/eutils_common.py | c88a1cec29073ad54c764b0c75bf1beb26dd45a2 | [
"Apache-2.0"
] | permissive | jvansan/metapub | 8a5157ff9d95151690c551fbddcebfec3f5cd93e | d5e7a2401c1598b1e2662d2f91491296e605281d | refs/heads/master | 2020-11-25T02:51:57.537383 | 2020-01-09T22:24:39 | 2020-01-09T22:24:39 | 228,463,348 | 0 | 0 | Apache-2.0 | 2019-12-16T19:48:54 | 2019-12-16T19:48:54 | null | UTF-8 | Python | false | false | 581 | py | import os, logging
from .config import PKGNAME, API_KEY
from .exceptions import MetaPubError
# == suppress the chatter of eutils and requests == #
logging.getLogger('eutils').setLevel(logging.ERROR)
logging.getLogger('requests').setLevel(logging.ERROR)
# ==
def get_eutils_client(cache_path):
"""
:param cache... | [
"naomi@nthmost.com"
] | naomi@nthmost.com |
f76c7eab1e962acd620a0b9f2ea1855f80d3acce | 3db770b2fcb1a7e6ed5b704875032d69b52d0a19 | /exp/exp19.py | 532666ba69bf6725c9de0f79f3e6db07902882ab | [] | no_license | osuossu8/KaggleTweetSentimentExtraction | 86f6700f5a5bd97f387b8b12a12348afdc7ed157 | b7006448eaab5a11293db169bf8a965455462069 | refs/heads/master | 2022-10-17T04:32:22.575984 | 2020-06-15T07:51:46 | 2020-06-15T07:51:46 | 251,550,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,635 | py | import numpy as np
import pandas as pd
import albumentations as A
import argparse
import collections
import cv2
import datetime
import gc
import glob
import logging
import math
import operator
import os
import pickle
import pkg_resources
import random
import re
import scipy.stats as stats
import seaborn as sns
import ... | [
"osuosuossu18@gmail.com"
] | osuosuossu18@gmail.com |
bdf0547386535e5b0de4386a34d9c5dae7d3f2b1 | 21545666cf50c9ee8e6040ee3d52ad805ab5eca0 | /tests/unit/test_dispute.py | 22599ed79258a925e216564015a91924194e036a | [
"MIT"
] | permissive | truthiswill/braintree_python | fad3494fde92d8e63612f02027a9c9325011e5f8 | fc98c738f9e74736a7d1e82cfb4e37f6e493c3c4 | refs/heads/master | 2022-11-01T11:52:59.513159 | 2020-05-07T21:51:15 | 2020-05-07T21:51:15 | 272,280,800 | 1 | 0 | MIT | 2020-06-14T20:47:07 | 2020-06-14T20:46:56 | null | UTF-8 | Python | false | false | 11,660 | py | from tests.test_helper import *
from datetime import date
from braintree.dispute import Dispute
class TestDispute(unittest.TestCase):
legacy_attributes = {
"transaction": {
"id": "transaction_id",
"amount": "100.00",
},
"id": "123456",
"currency_iso_code": "U... | [
"code@getbraintree.com"
] | code@getbraintree.com |
adbec8d6ac5b79b4a87912943845d9c83466fb98 | ba0e07b34def26c37ee22b9dac1714867f001fa5 | /azure-mgmt-logic/azure/mgmt/logic/models/x12_one_way_agreement.py | 3aefcf8ff32eb86ba3394290ef5ea5bbf005d658 | [
"MIT"
] | permissive | CharaD7/azure-sdk-for-python | b11a08ac7d24a22a808a18203072b4c7bd264dfa | 9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c | refs/heads/master | 2023-05-12T12:34:26.172873 | 2016-10-26T21:35:20 | 2016-10-26T21:35:20 | 72,448,760 | 1 | 0 | MIT | 2023-05-04T17:15:01 | 2016-10-31T15:14:09 | Python | UTF-8 | Python | false | false | 1,728 | 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.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
f4e95ce87e3dfed19b6eb0f2a9a234b433d33960 | 030ffa11f6ec88a21b8ddf9af01136040ba1f928 | /actions/actions.py | 1d0393b29ef2ed746267c10eabfeec745678be48 | [] | no_license | ForeverDreamer/rasa_learning | 9f5b832d3e328ee370f68a03dff8c4b91ce725ce | 5f1d24ca575adc4bca6ae72004e3558f6213dfb1 | refs/heads/main | 2023-04-15T19:55:16.821683 | 2021-04-27T10:38:01 | 2021-04-27T10:38:01 | 362,047,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,181 | py | # This files contains your custom actions which can be used to run
# custom Python code.
#
# See this guide on how to implement these action:
# https://rasa.com/docs/rasa/custom-actions
# This is a simple example for a custom action which utters "Hello World!"
import datetime
from typing import Any, Text, Dict, List... | [
"499361328@qq.com"
] | 499361328@qq.com |
9676e69778a9398a85f6b9fef6610d0ae1922daa | a6fe8aeaa30a22b65d98a2bb360b6d761a2e17fc | /venv/lib/python2.7/site-packages/kubernetes/client/models/v1_ceph_fs_volume_source.py | 6e8492fb9a34ff052145d4667db7ad6b54f7c8dc | [
"MIT"
] | permissive | 784134748/kubernetes-install | 54a2a8e83e2f47f2064270649725899282b7b244 | 5df59632c2619632e422948b667fb68eab9ff5be | refs/heads/master | 2022-12-15T13:52:43.486633 | 2019-03-27T13:01:06 | 2019-03-27T13:01:06 | 176,937,818 | 0 | 0 | MIT | 2022-05-25T01:56:18 | 2019-03-21T12:13:41 | Python | UTF-8 | Python | false | false | 8,415 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.12.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"784134748@qq.com"
] | 784134748@qq.com |
1d58f0d6dcd1a45bfe29411fa9065d4e3d877cf7 | 7d5641f61e9317984dc656ae43658f9f09a3d2c5 | /26.py | 6024eee6df52bafb4b434e0cf8fc75cf21510391 | [
"MIT"
] | permissive | r9y9/nlp100 | 51ec6b1a13128a53eeda9ff110d122211f0fceba | 391ca6c4fb8afc074ed825404d4ad4efc4467f05 | refs/heads/master | 2021-01-25T09:00:54.021853 | 2017-06-09T17:32:52 | 2017-06-09T17:32:52 | 93,770,527 | 18 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | import gzip
import json
def get_uk_text():
with gzip.open("./jawiki-country.json.gz") as f:
for line in f:
json_dict = json.loads(line)
if "イギリス" in json_dict["title"]:
return json_dict["text"]
import re
doc = get_uk_text().split("\n")
rb = re.compile("^{{基礎情報(.+)... | [
"zryuichi@gmail.com"
] | zryuichi@gmail.com |
85068b1106b867750b33fad64286259d76f08fcd | 0d9445f17a7175c3872c6ffb9280c3269b8a1eb9 | /test/qha/test_electron.py | 07fffca358e87cb4885033e02924c9a137897100 | [] | permissive | neukirchen-212/phonopy | 8aa4fc9f63cb124acaa6f7ab052275a423c000cb | e34588dcb32fb15aa2a6604ffd3e62ebb0927c0f | refs/heads/develop | 2023-08-24T00:47:35.908407 | 2021-10-16T12:02:27 | 2021-10-16T12:02:27 | 328,015,607 | 0 | 0 | BSD-3-Clause | 2021-01-11T12:53:48 | 2021-01-08T21:24:17 | null | UTF-8 | Python | false | false | 9,842 | py | import numpy as np
from phonopy.qha.electron import ElectronFreeEnergy, get_free_energy_at_T
eigvals_Al = """ -3.1277 20.6836 20.6836 20.6836 22.1491 22.1491 22.1491 24.4979 27.5181 27.5181 30.3260 32.6840
-2.9388 18.0492 20.1052 20.1052 22.8186 23.0196 23.0196 26.3365 26.5334 26.5334 29.6719 33... | [
"atz.togo@gmail.com"
] | atz.togo@gmail.com |
75b6c3bf93a5f85e26bf6cd02d44d1aa2e71a745 | f41309da5e0d26b24d974a009fa309a02fcaa20c | /aws_s3_policies/aws_s3_bucket_public_read.py | ccf464ceaa2f8b11056dc159297782cfc1c8aa97 | [
"Apache-2.0"
] | permissive | georgeSkoumas/panther-analysis | 2e1e87f83c6533cb6d62ecb62e3f61b2ff4b5ed4 | 30b21c270504bf7c84f99207c9c6c2f6110843ae | refs/heads/master | 2022-09-14T13:22:31.786275 | 2020-05-26T16:18:58 | 2020-05-26T16:18:58 | 267,569,230 | 1 | 0 | Apache-2.0 | 2020-05-28T11:15:05 | 2020-05-28T11:15:04 | null | UTF-8 | Python | false | false | 364 | py | GRANTEES = {
'http://acs.amazonaws.com/groups/global/AuthenticatedUsers',
'http://acs.amazonaws.com/groups/global/AllUsers'
}
PERMISSIONS = {'READ'}
def policy(resource):
for grant in resource['Grants']:
if grant['Grantee']['URI'] in GRANTEES and grant[
'Permission'] in PERMISSIONS... | [
"noreply@github.com"
] | georgeSkoumas.noreply@github.com |
cbd0ddf19cf8e3f84e2c113e26f005c423c54660 | 9978c3271a8176f6e4b58da8aba756ace58e5bde | /backend/home/migrations/0003_message.py | 0dccad6cd6c08f7876c38b56e333a7bc900a3de5 | [] | no_license | crowdbotics-apps/facebark-21363 | eb805941308cac6950e913607fb75d9fea424144 | 76120271527cda7f3e368a012c674696bd1989e5 | refs/heads/master | 2023-01-22T15:26:21.478106 | 2020-12-06T01:16:27 | 2020-12-06T01:16:27 | 303,172,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | # Generated by Django 2.2.16 on 2020-10-11 17:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("dating", "0001_initial"),
("home", "0002_load_initial_data"),
]
operations = [
migrations.CreateMo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9cf10ca86ef3c854c21af09878bf7ba423d724f5 | b68bc3ee7e7c15915ef34f6b4a5dde14e821b174 | /activities_for_kids.py | 68077a2e6e80b5a6e88a5d51d4dfb7fddfff8460 | [] | no_license | MatthewScott32/Python-Functions | 57b1163ef0f2adce7507f23fe89bffb4728e6277 | db6bbd0937826f756cad85a07bfdb16e3aef1a89 | refs/heads/master | 2022-04-16T18:20:12.939713 | 2020-04-13T22:07:58 | 2020-04-13T22:07:58 | 255,369,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | def run(*name):
for kids in name:
print(f'{kids} ran like a fool!')
run("Timmy", "Jimmy", "Gimmy")
def swing(*name):
for kids in name:
print(f'{kids} swings high!')
swing("Timmy", "Jimmy", "Gimmy", "Sally")
def slide(*name):
for kids in name:
print(f'{kids} slides... | [
"matthewscottblagg@gmail.com"
] | matthewscottblagg@gmail.com |
589bec9e6762d779ca5a4018edcd2b97d57e7bfd | b1f7cc6f0b97382151e77a2ef56efa1c19c83f5e | /apps/dte/models.py | 33586fc86f3c1e204d70732cbd796d8c8dfd679c | [
"MIT"
] | permissive | aacuna-orion/pyerp | 4446e52b80df6cc3a8a7afd2fe814528828ac8e5 | a21327c59d4e9c58bccc5a999631eb4e5c6b792c | refs/heads/master | 2020-07-07T18:16:02.124079 | 2019-08-20T18:28:47 | 2019-08-20T18:28:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | from .submodels.economical_activitie import PyEconomicalActivitie | [
"falconsoft.3d@gmail.com"
] | falconsoft.3d@gmail.com |
2fb95ad9c97403a75796dc35f5c3ba9239205e00 | 6760a9ac86a2d59ca1d50d3678e577b85a77361a | /files_cache/create_bw_table.py | c73142b19336913c861c5f23bea12a2bc9d17f62 | [] | no_license | emylincon/caching_ipfs_gui | 7506c4121d2a520c415ee858053f5ec2068a3ae2 | ebb497cf1fd16066aaa55b981d82656aa5f9233f | refs/heads/master | 2020-04-20T16:59:34.828147 | 2019-03-08T10:25:35 | 2019-03-08T10:25:35 | 168,975,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import sqlite3
def main():
try:
con = sqlite3.connect('/home/mec/cache.db')
cur = con.cursor()
cur.executescript('''DROP TABLE IF EXISTS Bw_Table;
CREATE TABLE Bw_Table(Id integer not null primary key, mec1 varchar(50), mec2 varchar(50));
INSERT INTO Bw_Table VALU... | [
"emylincon@gmail.com"
] | emylincon@gmail.com |
4055da1c20a179cb21d8d511beb3b3644081bfa7 | b39c773c36495eee5281a6f88a7119f7789769bd | /jupyterhub/singleuser/__init__.py | 60159406eaf2875908017a5f7e0c1566ce98b675 | [
"BSD-3-Clause"
] | permissive | rcthomas/jupyterhub | 89058e3475498187b3d81e17f5055a3a887be278 | b18a05c2c8a8ff86f9255bc2abaa356c418d3dd3 | refs/heads/main | 2022-06-08T16:47:21.908864 | 2022-05-13T09:56:58 | 2022-05-13T09:56:58 | 290,629,030 | 0 | 0 | NOASSERTION | 2020-08-26T23:48:09 | 2020-08-26T23:48:08 | null | UTF-8 | Python | false | false | 446 | py | """JupyterHub single-user server entrypoints
Contains default notebook-app subclass and mixins
"""
from .app import SingleUserNotebookApp, main
from .mixins import HubAuthenticatedHandler, make_singleuser_app
# backward-compatibility
JupyterHubLoginHandler = SingleUserNotebookApp.login_handler_class
JupyterHubLogoutH... | [
"benjaminrk@gmail.com"
] | benjaminrk@gmail.com |
28c18a5ddea9e98426cddf48786c0b2bdd684cc5 | 2c0af32f3c1486fb15bc2c0374de2043577cc634 | /solver/__init__.py | 306f668702867855973706b29c6f9828d194bae6 | [] | no_license | ArronHZG/reid-baseline | 02b210fc3922f4bdc14352979e7ba3c51700ab90 | d20943b117573e25c75338a55cb6219d90d3d2f0 | refs/heads/master | 2021-07-07T09:01:21.784144 | 2021-01-05T08:40:43 | 2021-01-05T08:40:43 | 248,293,171 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | from .warmup import WarmupMultiStepLR
| [
"hou.zg@foxmail.com"
] | hou.zg@foxmail.com |
5d593e37c4396026880df7e665a10921a9a9a0a8 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /content/shell/tools/DEPS | b01c3b47966b2d277868f0c5018c18c4e77d8037 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | include_rules = [
"+content/public",
"+components/crash",
]
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com | |
aba631ae9bbd14167725b93dbda85867866b2b46 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0/build/roi_object_filter/catkin_generated/pkg.installspace.context.pc.py | 8bf5b524c07f5e0f94d7c25f49424912ba5a3cc4 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;sensor_msgs;geometry_msgs;autoware_msgs;grid_map_ros;grid_map_cv;grid_map_msgs;tf".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX =... | [
"907097904@qq.com"
] | 907097904@qq.com |
b2d81b1776d050c5a03d6d96603b26b10a549318 | eef243e450cea7e91bac2f71f0bfd45a00c6f12c | /.history/app/api_service/views_20210125015859.py | f3408eea1890e6090563cdc08b314c632548145a | [] | no_license | hoaf13/nlp-chatbot-lol | 910ab2ea3b62d5219901050271fc1a1340e46a2f | 18cb64efa9d6b4cafe1015f1cd94f4409271ef56 | refs/heads/master | 2023-05-08T04:17:19.450718 | 2021-02-02T02:37:38 | 2021-02-02T02:37:38 | 332,535,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,259 | py | from flask import jsonify, Blueprint, flash, render_template, request, session, abort, redirect, url_for
from flask.views import MethodView
import requests
import os
from app import db
from app.models import Champion, Conversation
from app import app
import json
from app.api_service.nlp_processing import *
api_service... | [
"samartcall@gmail.com"
] | samartcall@gmail.com |
fdeb44a6eb9b38e48b4ce0e918ecad780bb6a63c | 1180c0bfe29959d95f3c131e6e839950e528d4ee | /26/bryankimani/calculator.py | f092622832795c777f4b8ec63b8549b019a79ffe | [] | no_license | pybites/challenges | e3e461accd8e7f890aee8007ba5070086ef983fc | 02b77652d0901e6e06cb9b1e7cb3e59c675445c2 | refs/heads/community | 2023-08-20T18:19:02.982214 | 2022-11-17T09:23:31 | 2022-11-17T09:23:31 | 78,264,928 | 764 | 3,115 | null | 2023-07-21T05:58:19 | 2017-01-07T07:17:50 | Jupyter Notebook | UTF-8 | Python | false | false | 10,248 | py | import math
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (QGridLayout, QLayout, QLineEdit,
QSizePolicy, QToolButton, QWidget)
class Button(QToolButton):
def __init__(self, text, parent=None):
super(Button, self).__init__(parent)
self.setSizePolicy(QSizePol... | [
"pybites@projects.bobbelderbos.com"
] | pybites@projects.bobbelderbos.com |
f07748b0f3c8065738d2d862758f309b37755b31 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/baiduads/kr/model/get_file_status_response_wrapper.py | bac6d7906b78882c770549b982a4a6a9c05c408b | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 11,649 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
ch... | [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
7ab5640cbbfe69e5bd261903e2a158d0a79c75ba | 95fb4b8e51dd7a852d9ed9de067c1e929a71404a | /colour/models/rgb/transfer_functions/tests/test_fujifilm_flog.py | dbe7971601b3a16951202a7b2b7f31c67950b4e8 | [
"BSD-3-Clause"
] | permissive | zachlewis/colour | e9b1f6978dae157306536492a652b2fb9588894a | c248e2913d6c62658e4892e5bc8503d86ed5d9ab | refs/heads/develop | 2021-04-25T22:08:34.617007 | 2020-11-29T23:18:48 | 2020-11-29T23:18:48 | 109,490,837 | 0 | 0 | BSD-3-Clause | 2019-10-28T19:44:56 | 2017-11-04T11:53:24 | Python | UTF-8 | Python | false | false | 6,182 | py | # -*- coding: utf-8 -*-
"""
Defines unit tests for :mod:`colour.models.rgb.transfer_functions.\
fujifilm_flog` module.
"""
from __future__ import division, unicode_literals
import numpy as np
import unittest
from colour.models.rgb.transfer_functions import (log_encoding_FLog,
... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
6b8c2823ed995c358c99ad864556aced093191b2 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/python/kernel_tests/dataset_constructor_op_test.py | 59625511549b8323fae0719919a722811873b44e | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,555 | py | # Copyright 2017 The TensorFlow Authors. 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... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
745b6bfbeb231ec7991ee3bab781c785feb41def | 098662ca9c95151e669753e246d7c158dccad201 | /temp/miniAIb5.py | 295e7a99ab3210c58043ee03c71a73abceba92d2 | [] | no_license | ava9/CS6700 | 92dd92081614c3596b880de204e72d3098d85f2f | bcad9094a48784635ae8e6081cea4267e3729df0 | refs/heads/master | 2021-03-27T18:13:43.680760 | 2017-05-22T16:19:07 | 2017-05-22T16:19:07 | 84,686,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | import copy
import random
class miniAIb5:
# check if legal move
def legal(self, board):
arr = [0, 0, 0, 0, 0, 0, 0]
for c in range(0, board.columns):
if (board.colFull(c + 1)):
arr[c] = False
else:
arr[c] = True
return arr
def checkfirstmoves(self, board, player):
b = boar... | [
"szl5@cornell.edu"
] | szl5@cornell.edu |
540f2525a6ca4b5237c7baaa9cef7d760e97fab2 | cadf0efdcfd48c4c79b6aacde29e80a060566125 | /env/lib/python3.6/site-packages/Accounts/__init__.py | a580c70bfc32e37119519886c1a57847a95f6837 | [
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0"
] | permissive | Harshalshree/Anton-Virtual-Assistant | 48b49ecffd950fe6b750e7d360bc8703475bbd09 | 463f986ae94dcbb4027ee90c0d209b0c2fae10bd | refs/heads/master | 2022-11-19T12:38:17.684283 | 2020-02-11T17:46:01 | 2020-02-11T17:46:01 | 239,824,516 | 1 | 0 | CC0-1.0 | 2022-06-17T00:22:32 | 2020-02-11T17:37:39 | Python | UTF-8 | Python | false | false | 699 | py | """
Python mapping for the Accounts framework.
This module does not contain docstrings for the wrapped code, check Apple's
documentation for details on how to use these functions and classes.
"""
import objc
import sys
import Foundation
from Accounts import _metadata
sys.modules["Accounts"] = mod = objc.ObjCLazyMod... | [
"harshal.shree03@gmail.com"
] | harshal.shree03@gmail.com |
691ecfad9ea251dc85c00ed118b9e6bd1e7c5040 | 0ba5622abc2125ac8a9907757680da4d7cb7b47e | /Knowrob/indigo/indigo-knowrob-dev/catkin_ws/build/designator_integration_msgs/catkin_generated/pkg.develspace.context.pc.py | 7e1c3ade9bb1cacb5a7c4cb068659331d9d563e9 | [] | no_license | IoT-Lab-Minden/docker-ros | c2a327117bdf1d0b861d4580156e595a079ec5d5 | 5c57c15717cbcae515d82c3dc75470587bb2508e | refs/heads/master | 2021-01-18T03:33:22.128596 | 2017-05-17T13:48:05 | 2017-05-17T13:48:05 | 85,809,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/root/catkin_ws/devel/.private/designator_integration_msgs/include".split(';') if "/root/catkin_ws/devel/.private/designator_integration_msgs/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_m... | [
"aljoscha.poertner@fh-bielefeld.de"
] | aljoscha.poertner@fh-bielefeld.de |
8eaf69eb39d7f557c7fabe12f76fe4cf834ab418 | 958685165bfeb4122cc3473659a6d0c89c5cae95 | /crea8s_nail/__openerp__.py | 9d5a536c3f339d7b1eb0724fde18680ca9803875 | [] | no_license | tringuyen17588/OpenERP-7.0 | 44efee7735af65d960c5adb4b03a1a329f5c4a57 | 2486261e4d351d4f444ec31e74c6b0e36ed2fb82 | refs/heads/master | 2021-01-10T02:45:24.320726 | 2016-02-19T06:05:21 | 2016-02-19T06:05:21 | 52,064,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"tri@crea8s.com"
] | tri@crea8s.com |
099f7dc2c2beeea0ab500a89fa07e420a32cd9a3 | 6fb53b8f8e484d1fc479462df118a811c8c8a8b3 | /source/modules/decoders/__init__.py | ba9856accb81f549edef07fdaf44d75a4b8a1fa3 | [
"Apache-2.0"
] | permissive | iwangjian/Persona-dialogue | 4d247afef0b760636ba43f8c40881e0802b47568 | f40e415574d3233693f575de31d6291c969dff09 | refs/heads/master | 2022-12-16T17:35:31.842626 | 2020-09-10T15:25:24 | 2020-09-10T15:25:24 | 194,477,830 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
File: __init__.py
"""
| [
"1049136551@qq.com"
] | 1049136551@qq.com |
226a6af47a7be895cf76f242e15620628427f0df | b79837918de72f26558f484a59639bfc8ae3fc1b | /dialogue-engine/src/programy/storage/stores/sql/engine.py | f9b82cde336861cf765e706a6ea87cfa3a8a80b9 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jaygeet/cotoba-agent-oss | d0efcfb3f22271afa32d0ffde04cf9808bbc1368 | 26de67dbda401be5f1d50ae2165e4e1d820882f5 | refs/heads/master | 2022-04-20T14:32:04.790471 | 2020-04-07T02:41:33 | 2020-04-07T02:41:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,020 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
6c5e25708d37464b0c67788a5b975034abfaa8c2 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/compute/v20160330/get_virtual_machine.py | 2ec68d1e6ddfec71c044ca441b74e71b019fe5e3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 12,611 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
be0ea85f5ac3f2350a466998eb372469c2a10b44 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_383/ch88_2019_06_06_13_56_46_097312.py | 38642d059e8649f97e8f94a4b31215f3605c9426 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | class Retangulo:
def __init__(self,ponto1,ponto2):
self.base = self.ponto1.x - self.ponto2.x
self.altura = self.ponto1.y - self.ponto2.y
def calcula_perimetro(self):
self.perimetro = 2*self.base + 2*self.altura
return self.perimetro
def calcula_area(self):
self.area = se... | [
"you@example.com"
] | you@example.com |
ab6763356ace0d6dd838a101ac301eb08ad682da | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/lazyprogrammer_machine_learning_examples/machine_learning_examples-master/nlp_class2/rntn_theano.py | c9b630eee30a88391fd05f061788c7f9dfe811e1 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 8,515 | py | # Course URL:
# https://deeplearningcourses.com/c/natural-language-processing-with-deep-learning-in-python
# https://udemy.com/natural-language-processing-with-deep-learning-in-python
import sys
import numpy as np
import matplotlib.pyplot as plt
import theano
import theano.tensor as T
from sklearn.utils import shuffle... | [
"659338505@qq.com"
] | 659338505@qq.com |
24bc03627440b4abce478f766b023ad4b9464fcf | 4e044ab3073f5893f2eae33931ab5079b282817c | /01_python/notes/fibo.py | f09fd9b115b6ebbfc94796c473b600dd2757bf25 | [] | no_license | whiteblue0/Startcamp | e5e8c30476eda7a30c3daae4bdc018f223da74e8 | 7ddebe8be878a8550d99fcc572666b963dda583d | refs/heads/master | 2023-01-27T18:36:28.013135 | 2020-09-12T06:21:12 | 2020-09-12T06:21:12 | 195,809,764 | 0 | 0 | null | 2023-01-07T11:25:23 | 2019-07-08T12:42:40 | Jupyter Notebook | UTF-8 | Python | false | false | 230 | py | def fibo_recursion(n):
if n == 0 or n == 1 :
return 1
else:
return fibo_recursion(n-1) + fibo_recursion(n-2)
def fibo_for(n):
a,b = 1, 1
for i in range(n-1):
a,b = b, a + b
return b | [
"21port@naver.com"
] | 21port@naver.com |
c4746963bb66e4edd1a24abb71cb99ba90d3a356 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/spark_job_list_view_response_py3.py | ed1ad32f59547331e74ebd3fdc1c890df785bd40 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 1,078 | 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.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
e4214a3f7970cfc26a869e90697f018135cb5eb4 | 0b842bcb3bf20e1ce628d39bf7e11abd7699baf9 | /oscar/a/app/oscar/generic_action/__init__.py | c3545b896438c34723359ad1a0867d194a2b7649 | [] | no_license | afeset/miner2-tools | 75cc8cdee06222e0d81e39a34f621399e1ceadee | 81bcc74fe7c0ca036ec483f634d7be0bab19a6d0 | refs/heads/master | 2016-09-05T12:50:58.228698 | 2013-08-27T21:09:56 | 2013-08-27T21:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,792 | py | #
# Copyright Qwilt, 2010
#
# The code contained in this file may not be used by any other entities without explicit written permission from Qwilt.
#
# Author: nirs
"""
This class implements an exceutable for a generic action.
The application class name is provided on the command line (--application-class)
This cla... | [
"afeset@gmail.com"
] | afeset@gmail.com |
795ae08e2eb745df1f1b0e44185daf891aed6644 | d0a6ee29321e54636b80d8dd5505af45f3734ccf | /orginvoicer/__main__.py | 609387cfa6fd49bc61cf9e631b16b880a19f325f | [
"MIT"
] | permissive | brandon-rhodes/org-mode-invoicer | bcdb128dc65c090c743feaafbf36a8af1d8145d7 | 054aa7fff46de5a9c52a1e5677547e502d3a9fc7 | refs/heads/master | 2023-07-12T00:33:15.688527 | 2013-07-20T05:27:28 | 2013-07-20T05:27:28 | 11,541,090 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | import codecs
import sys
from datetime import datetime
from decimal import Decimal
from .format import format_invoice
from .personal import compute_rate
one = Decimal('1')
sixty = Decimal('60')
def main():
path = sys.argv[1]
title = sys.argv[2]
with codecs.open(path, encoding='utf-8') as f:
lines ... | [
"brandon@rhodesmill.org"
] | brandon@rhodesmill.org |
488c027ff3c40c022233d0c99c23f9a6ddf779e3 | 3e98a39995e0f58198d00023917247fd65a8d5be | /31/my_trace.py | 6e5c25b84fa7b733004ee5974cf2ee394729cbfc | [
"CC0-1.0"
] | permissive | marcusreaiche/cpython-book-samples | fd453ef76890a2c23b5f3dd8b4e32a2025399da8 | d61d252d63461b114c3c02329a88a74dc8c51956 | refs/heads/master | 2023-01-28T13:27:38.417534 | 2020-12-12T03:59:55 | 2020-12-12T03:59:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | import sys
import dis
import traceback
import io
def my_trace(frame, event, args):
frame.f_trace_opcodes = True
stack = traceback.extract_stack(frame)
pad = " "*len(stack) + "|"
if event == 'opcode':
with io.StringIO() as out:
dis.disco(frame.f_code, frame.f_lasti, file=out)
lines... | [
"anthony.p.shaw@gmail.com"
] | anthony.p.shaw@gmail.com |
2108dbdd30cee943adce32cd16edc642e4232f15 | 7ec5d6b69609cd58835b60960a4ffa7241654a7f | /lib/util/crashme_methods.py | c1c24810e5b1c136db10e59de232c6bd5f83f3c1 | [
"Apache-2.0"
] | permissive | isabella232/kewpie | 4721ab3280bfd2296c003229900f71a8385f9174 | 47d67124fa755719eda3ca5a621a2abf0322d3f9 | refs/heads/master | 2023-03-07T14:47:14.310718 | 2015-05-22T00:36:38 | 2015-05-22T00:36:38 | 312,541,849 | 0 | 0 | Apache-2.0 | 2021-02-23T14:52:18 | 2020-11-13T10:17:28 | null | UTF-8 | Python | false | false | 4,738 | py | #! /usr/bin/env python
# -*- mode: python; indent-tabs-mode: nil; -*-
# vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
#
# Copyright (C) 2011 Patrick Crews
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Softwar... | [
"gleebix@gmail.com"
] | gleebix@gmail.com |
6256ba98c403e91b8107e3b0e6675beeac0824af | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210523132559.py | faf2d5d2e49c34c4a463da88c463d3a60c627a9f | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from flask import Flask
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
class MCQ(FlaskForm):
age = IntegerField("Age", [DataRequired()])
profession = StringField("Professi... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
5f035df00ef110ec1d26450e2a2656bf1743590b | 00d528db10276498fe9e76ba19cfd559362ea86c | /others/sample.py | 9aa9ec9a08755d86461e5d9223b74b8f1722431c | [] | no_license | petershan1119/Crawler-1 | f4b9852d73ddc191110e2a4f20116eb0e40db93d | 51b2ad08b60f1c740cfe2632f69fd63b2bca083a | refs/heads/master | 2020-04-13T00:41:03.100135 | 2017-09-22T08:09:25 | 2017-09-22T08:09:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | import re
f = open('sample.txt', 'rt')
source = f.read().strip().replace('\t', '')
def find_tag(tag_name, class_, source):
p = re.compile(r'<{tag_name} class="{class_name}".*?>.*?</{tag_name}>'.format(
tag_name=tag_name,
class_name=class_))
return re.findall(p, source)
# <td class="title">...... | [
"dev@azelf.com"
] | dev@azelf.com |
f84fa071c68e1aea5efe9f156ee5ee070088d398 | 19d47d47c9614dddcf2f8d744d883a90ade0ce82 | /pynsxt/swagger_client/models/ip_set.py | 3b4374b54da51fb1ed45d91e6e78fe6862818126 | [] | no_license | darshanhuang1/pynsxt-1 | 9ed7c0da9b3a64e837a26cbbd8b228e811cee823 | fb1091dff1af7f8b8f01aec715682dea60765eb8 | refs/heads/master | 2020-05-25T14:51:09.932853 | 2018-05-16T12:43:48 | 2018-05-16T12:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,914 | py | # coding: utf-8
"""
NSX API
VMware NSX REST API # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.models.managed_resource import ManagedResource # noqa: F401,E50... | [
"tcraft@pivotal.io"
] | tcraft@pivotal.io |
9f7d12311b9413bda5ccdba716729c59647de8ef | f3c26a7ce7b17f2d5bfb949ee0662441bf239f15 | /sysinv/sysinv/sysinv/sysinv/api/controllers/v1/query.py | a7c2c08e0c488a2f73747e7331bf1b5cc7fe1765 | [
"Apache-2.0"
] | permissive | MarioCarrilloA/config | 0090b145ab417c791a58b55d23cb6953c34ce071 | 06a6f142d154970ce658e979822cd84ce447f612 | refs/heads/master | 2021-06-13T02:15:36.827921 | 2019-06-10T19:38:49 | 2019-06-10T19:38:49 | 191,260,761 | 0 | 0 | Apache-2.0 | 2021-05-08T17:00:18 | 2019-06-10T23:44:18 | Python | UTF-8 | Python | false | false | 6,320 | py | # coding: utf-8
# Copyright © 2012 New Dream Network, LLC (DreamHost)
# Copyright 2013 IBM Corp.
# Copyright © 2013 eNovance <licensing@enovance.com>
# Copyright Ericsson AB 2013. All rights reserved
#
# Authors: Doug Hellmann <doug.hellmann@dreamhost.com>
# Angus Salkeld <asalkeld@redhat.com>
# Eogha... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
ccc9eaa2275ba600dfb9accccf467aa68e3a0447 | f6fd7fb1ebde815c3a31d7625ec5bdd3c6bc5039 | /datafiles/blender_icons_update.py | 50dfc7fb4e9cc165ecd908a5d9488a38fa7f87fc | [] | no_license | hixio-mh/vray_for_blender_build_utils | 076526740e0e2eef09fb929fdac30f68a3a7c583 | b92042edd053508ae339dbb8e53e85b8fbd53f04 | refs/heads/master | 2022-12-25T21:13:19.628426 | 2019-09-09T12:09:54 | 2019-09-09T12:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | #!/usr/bin/env python3
# This script updates icons from the SVG file
import os
import sys
def run(cmd):
print(" ", cmd)
os.system(cmd)
BASEDIR = os.path.abspath(os.path.dirname(__file__)) + os.sep
inkscape_path = 'inkscape'
if sys.platform == 'darwin':
inkscape_app_path = '/Applications/Inkscape.app/... | [
"andrei.izrantcev@chaosgroup.com"
] | andrei.izrantcev@chaosgroup.com |
5a94280417e8a5a7ac13f66f13fe00001d192005 | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v2/model/metric_distinct_volume_attributes.py | 7567237ac0b689bae4132010df0ebba4f0c02d4b | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 1,072 | py | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import Union
from datadog_api_client.mo... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
6e8139167a9e2e9f8dd4fa54593b080096a64900 | 429d499fe1ca850762d49e46b87f5552284332d0 | /tensorflow/compiler/xla/experiments/triton_autotuning/matmul_lib.py | 978fd29cd94a09139dee9748bd4b458d5a870a12 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | huaxz1986/tensorflow | a594ba79343d04c41c9ea76d779aeb6f741008b5 | b3ec1fdccf17781936553c29abb2cf19b5fa2324 | refs/heads/master | 2023-06-07T22:11:50.677231 | 2023-06-05T11:23:43 | 2023-06-05T11:28:30 | 109,361,013 | 1 | 1 | Apache-2.0 | 2018-04-27T09:49:28 | 2017-11-03T06:35:42 | C++ | UTF-8 | Python | false | false | 12,042 | py | # Copyright 2023 The TensorFlow Authors. 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
a97e71537fcf0a4c99dd134e4d922af4e71d4212 | 4c30ea963e61fe941b2ebf684d997c1a2890f3cc | /baobab/lims/content/patients.py | c37c210fb5814438dedc8f9d2cb070a520d120be | [] | no_license | kid-kodi/Baobab-ipci | f9513d87ec548e4e8c8d6f9eb2dfc96ed2b238d9 | 4490020dc8580d26b9827a66cccab2a7180e5584 | refs/heads/master | 2020-03-09T18:35:23.537944 | 2018-07-01T11:08:33 | 2018-07-01T11:08:33 | 128,936,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from AccessControl import ClassSecurityInfo
from Products.ATContentTypes.content import schemata
from Products.Archetypes import atapi
from plone.app.folder.folder import ATFolder, ATFolderSchema
from zope.interface.declarations import implements
from baobab.lims.config import PROJECTNAME
from baobab.lims.interfaces i... | [
"konedangui@gmail.com"
] | konedangui@gmail.com |
ac1d4a6ea7a3b2a151d53e3643f14aedf40f1ddd | 7baef4f7dad8e6538096d42c4e03e6d531fbf0bf | /day01/05_urlencode编码.py | fc056bdd3a1cf6583f53148fdddb92a7ade8e6c0 | [] | no_license | q737645224/spyder | a16a2bdbdab12ca6b2546f81363d3571d1358a3e | bae94180ef6953a21a2491da378cce738312afc7 | refs/heads/master | 2020-04-07T20:03:30.966825 | 2018-11-23T04:29:34 | 2018-11-23T04:29:34 | 158,673,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import urllib.request
import urllib.parse
baseurl = "http://www.baidu.com/s?"
headers = {"User-Agent":"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16"}
key = input("请输入要搜索的内容:")
# urlencode编码,参数一定要是字典
d = {"wd":key}
d = urllib.parse.urle... | [
"764375224@qq.com"
] | 764375224@qq.com |
433b039280150dfd34ea561b4d9e3f53522e314b | 3d8b4e0415bd4d818c17dcf0b3fc1676caad47b6 | /tests/nex/test_settings.py | 103ab215aaf90b07a7a858562e904abfb33e7140 | [
"MIT"
] | permissive | ShigemoriHakura/NintendoClients | 68c08ab2f54e36fb41eab2b2461bedd5bd1522be | da56e272f8504bcc8e5238128d63ab6ee44fa2c7 | refs/heads/master | 2022-03-09T19:20:05.647911 | 2022-03-01T23:35:01 | 2022-03-01T23:35:01 | 252,926,498 | 0 | 1 | MIT | 2022-03-01T23:35:02 | 2020-04-04T06:30:32 | null | UTF-8 | Python | false | false | 655 | py |
from nintendo.nex import settings
def test_constants():
s = settings.default()
assert s.TRANSPORT_UDP == 0
assert s.TRANSPORT_TCP == 1
assert s.TRANSPORT_WEBSOCKET == 2
assert s.COMPRESSION_NONE == 0
assert s.COMPRESSION_ZLIB == 1
assert s.ENCRYPTION_NONE == 0
assert s.ENCRYPTION_RC4 == 1
... | [
"ymarchand@me.com"
] | ymarchand@me.com |
9d57a4b834ed1573980f53465f3cff9b30c994f0 | 61673ab9a42f7151de7337608c442fa6247f13bb | /__scraping__/sec.gov/main.py | 02eb93f71d1ed61d58daa98eedabce15b7ece11d | [
"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 | 1,070 | py |
#
# https://stackoverflow.com/a/47742578/1832058
# https://stackoverflow.com/a/47614478/1832058
#
import requests
from bs4 import BeautifulSoup
import re
url = 'https://www.sec.gov/Archives/edgar/data/320193/000119312515356351/d17062d10k.htm'
r = requests.get(url)
soup = BeautifulSoup(r.text, 'html.parser')# "lxml"... | [
"furas@tlen.pl"
] | furas@tlen.pl |
3a3df6fe1c7d5c5ebfabb6dfea779f01becfa3d3 | aa2645c96047d775061e0443299c64fc5b255027 | /lab11-ex3.py | 685d7a97b0e8bfbde9a6de340f291da258be93aa | [] | no_license | sunnyhyo/Problem-Solving-and-SW-programming | ca63b705b27ebb49d32a0a6591211250f213d019 | 8689b9728c028a870dfba7a4d16601a248c7e792 | refs/heads/master | 2021-03-30T21:07:27.276272 | 2018-06-14T15:27:22 | 2018-06-14T15:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #lab11-ex3
#전역변수와 지역변수
times=0 #count 함수가 실행된 횟수
def count():
#이 함수가 실행된 횟수를 화면에 출력한다.
global times #times 는 전역변수다 . 사용하고 변경까지 하고 싶을때
times=times+1
print(times)
count()
count()
| [
"sunnyhyo77@gmail.com"
] | sunnyhyo77@gmail.com |
c5ccafeae5906f290cba2950bb99493ac37ca91c | 457a71c31c5bb992616bc2c8067817436c416784 | /src/teewtme/tweets/admin.py | 49b964c6538d75b657e060777ff00a81cec981b5 | [] | no_license | mahmoudzeyada/tweetme | 9a7f15e9b1c3d0d4054637ac8ad5581a0a5ee825 | 00c046b96d40061e192990b9bae76998e8f46319 | refs/heads/master | 2020-04-10T04:17:13.130415 | 2019-04-29T01:17:28 | 2019-04-29T01:17:28 | 160,793,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django.contrib import admin
from .models import Tweet
from .forms import TweetModelForm
# Register your models here.
#admin.site.register(Tweet)
class TweetModelAdmin(admin.ModelAdmin):
class meta:
model=Tweet
admin.site.register(Tweet, TweetModelAdmin)
| [
"mahmoudzeyada440@gmail.com"
] | mahmoudzeyada440@gmail.com |
a367b5d3ea2493d4869d08f69172d07ad26b28f1 | a59d55ecf9054d0750168d3ca9cc62a0f2b28b95 | /lib/googlecloudsdk/compute/subcommands/zones/get.py | fc8f8d9a485783c4f032daa75bff8f8e1d07b912 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/google-cloud-sdk | bb2746ff020c87271398196f21a646d9d8689348 | b34e6a18f1e89673508166acce816111c3421e4b | refs/heads/master | 2022-11-26T07:33:32.877033 | 2014-06-29T20:43:23 | 2014-06-29T20:43:23 | 282,306,367 | 0 | 0 | NOASSERTION | 2020-07-24T20:04:47 | 2020-07-24T20:04:46 | null | UTF-8 | Python | false | false | 696 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""Command for getting zones."""
from googlecloudsdk.compute.lib import base_classes
class GetZones(base_classes.GlobalGetter):
"""Get Google Compute Engine zones."""
@staticmethod
def Args(parser):
base_classes.GlobalGetter.Args(parser)
base_classes.Ad... | [
"alfred.wechselberger@technologyhatchery.com"
] | alfred.wechselberger@technologyhatchery.com |
68dbda8e2c3a5c24986cb27e2f748c95a9468258 | d0758e0ca004226cec8ad8b26c9565c98534a8b8 | /11-videogames/Referencia/01-Esqueleto inicial y movimiento en rejilla/game.py | a4f6ef6c60d981a40512906c1b790b4af58cd6d0 | [] | no_license | pythoncanarias/eoi | 334d64a96afc76ac1fa10282378f291b6d8c94b3 | 349367254f85e3e4273cede067ca950913a1332c | refs/heads/master | 2023-07-06T08:00:11.366345 | 2023-06-30T15:19:33 | 2023-06-30T15:19:33 | 222,742,870 | 26 | 19 | null | 2023-06-25T16:03:46 | 2019-11-19T16:41:25 | Jupyter Notebook | UTF-8 | Python | false | false | 2,895 | py | import pygame
import sys
from settings import *
from sprites import *
class Game:
def __init__(self):
"""Create the game window, game clock and load required data."""
pygame.init()
self.screen = pygame.display.set_mode([WIDTH, HEIGHT])
pygame.display.set_caption(TITLE)
... | [
"euribates@gmail.com"
] | euribates@gmail.com |
c378fad8d51ae2f16f0d63eceee41849fdb25ba0 | b1be171c55cabf4f7258e990b2aed1ae88d0f717 | /backend/tight_voice_dev_19784/wsgi.py | 087a75adb97842c236889f0d1334e6f0ce7a8b4d | [] | no_license | crowdbotics-apps/tight-voice-dev-19784 | 1485547f50be1d0375caccba57fd6489054dc3bf | e9287584a8606f11cfb0fd0289ae857af7c01b17 | refs/heads/master | 2023-03-07T10:00:27.743188 | 2021-02-23T21:19:59 | 2021-02-23T21:19:59 | 341,692,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for tight_voice_dev_19784 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b2aa18e31fe038ffdb76a589c27a005b22d39e9b | 09912a852e0e20d6a475ef904724f80072a68359 | /eds/openmtc-gevent/server/openmtc-ngsi/openmtc-ngsi-pylibs/flask/testsuite/test_apps/moduleapp/apps/admin/__init__.py | 5b97da035e8ce404fdacca85f1871465a2904a07 | [
"Apache-2.0"
] | permissive | elastest/elastest-device-emulator-service | 034aa19438383df0975bf86d49e231342d63002f | f512355c5fde6bf027d23558e256b96e2296e0f2 | refs/heads/master | 2021-03-09T15:13:30.676138 | 2020-01-13T12:02:02 | 2020-01-13T12:02:02 | 91,440,225 | 3 | 9 | Apache-2.0 | 2018-12-03T14:59:27 | 2017-05-16T09:26:10 | Python | UTF-8 | Python | false | false | 259 | py | from flask import Module, render_template
admin = Module(__name__, url_prefix='/admin')
@admin.route('/')
def index():
return render_template('admin/motor.html')
@admin.route('/index2')
def index2():
return render_template('./admin/motor.html')
| [
"sro"
] | sro |
6f6a9af7ca357fea9a7a411b52d263eec5cfbe53 | 19521e33ca495c04ce17e804ba6fef877266d037 | /qa/rpc-tests/txindex.py | df89e3f25cce76fbcfbd7bbec7578f0ace65ade7 | [
"MIT"
] | permissive | mirzaei-ce/core-moselbit | 3f441f5960a5c858e1fe389a60c2f5f1d11eff3d | 7e8e723109f22b0fddfa227692b9492f48d12d7c | refs/heads/master | 2021-08-14T18:06:06.700435 | 2017-11-16T11:44:03 | 2017-11-16T11:44:03 | 110,964,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test txindex generation and fetching
#
import time
from test_framework.test_framework import Moselbi... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
99b416b3eda4709724da952a0128643524c6bd02 | d85d4381b78c9d17aa894983ecbbf171195dfb22 | /configs/free_anchor/retinanet_free_anchor_x101-32x4d_fpn_1x.py | ee35b35be4e0c095a26a5caca29fd62ac76fb972 | [
"Apache-2.0"
] | permissive | meiyu422321/mmdetection | 2d17eae43e03037784379be5bf86542dc71b7bc8 | a37efbca5e0982e24875bdc080f292003c75f694 | refs/heads/master | 2020-06-13T11:58:16.168522 | 2020-02-05T10:48:37 | 2020-02-05T10:48:37 | 194,646,026 | 2 | 0 | Apache-2.0 | 2020-01-08T06:13:12 | 2019-07-01T09:50:50 | Python | UTF-8 | Python | false | false | 3,741 | py | # model settings
model = dict(
type='RetinaNet',
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=... | [
"chenkaidev@gmail.com"
] | chenkaidev@gmail.com |
6ecca463d1afeea8e9d8d0639ba05131bd86f03f | af0dcf80a36da4ac6894dc517ad1870f702c3122 | /azure-mgmt-scheduler/azure/mgmt/scheduler/models/job_recurrence.py | e90ce302e8f96f510b1f9bdd87635f6ac3bd0361 | [
"Apache-2.0"
] | permissive | FlavioAlexander/azure-sdk-for-python | 4c6151ca17886f9e4d47e1ccc469859abdedca5a | 8c7416749f9a5697e0311bc9af8fe5c0d524ca03 | refs/heads/master | 2021-01-24T02:34:37.194767 | 2016-07-03T23:47:23 | 2016-07-03T23:47:23 | 62,738,173 | 0 | 1 | null | 2016-07-06T16:54:12 | 2016-07-06T16:54:10 | null | UTF-8 | Python | false | false | 2,353 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
3bb63f8a27383e27df201fae8a37afbe4e48c8f7 | 842f96f188a1385dda9fa539af7e643069dff613 | /armstrong 100 to 1000.py | 5bd71f7c513134c66d9dcbbf926a68877d7c697d | [] | no_license | Laxmivadekar/lucky | 2bac568f831e9aac78e212b5412e868bac41a89d | 7e84e1452465da7eed11fd5a18e32ae97da61862 | refs/heads/main | 2023-07-15T09:18:59.882617 | 2021-08-28T17:39:53 | 2021-08-28T17:39:53 | 400,763,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | n=100
while n<=1000:
temp=n
sum=0
while temp>0:
rem=temp%10
sum+=rem**3
temp//=10
if sum==n:
print(n)
n=n+1
| [
"noreply@github.com"
] | Laxmivadekar.noreply@github.com |
bd57c3c56d41470d252eabdbdcb9343a8e8cb72f | 97ae7e6d4c8184f99d616709ec603277122efeec | /it_light/task.py | bbbc08139d332e9a350e257d33fc9126b3468439 | [] | no_license | didoogan/it_light | 401f4ec1c72821b74c1480e77bda80c60d34bc92 | c48440b8b5276fce5af0da8d0385eb96053c3b2a | refs/heads/master | 2021-01-19T01:01:25.153179 | 2016-07-13T21:26:11 | 2016-07-13T21:26:11 | 62,972,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | def transform_char(char, num):
char_to_int = None
char_to_int = ord(char) + num
# deal with Capitalize char
if char_to_int > 90 and char_to_int < 97:
if char_to_int > 90 and char_to_int < 97:
char_to_int = char_to_int - 90 + 64
# deal with lowercase char
else:
if char_to_int > 122:
char_to_int = ... | [
"tzd0409@gmail.com"
] | tzd0409@gmail.com |
3e1785cddd156f4969b509bfa509e75c525b8df7 | e60a342f322273d3db5f4ab66f0e1ffffe39de29 | /parts/zodiac/mako/filters.py | b841172dd5d44fd85958be650a5097b739b2e13b | [] | no_license | Xoting/GAExotZodiac | 6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1 | f60b2b77b47f6181752a98399f6724b1cb47ddaf | refs/heads/master | 2021-01-15T21:45:20.494358 | 2014-01-13T15:29:22 | 2014-01-13T15:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | /home/alex/myenv/zodiac/eggs/Mako-0.9.0-py2.7.egg/mako/filters.py | [
"alex.palacioslopez@gmail.com"
] | alex.palacioslopez@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.