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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04224bb729241e830197f141c5352092b82bd014 | 7ea93ebddf0eb742fd8d499d5bd9ce68bc5aadd5 | /app/__init__.py | 45ff7e8597f8c6e24fa86fb74eb0d3b98ae2f130 | [] | no_license | wma8/websitess | f41ebbaeb359ce40acce16b2ebdc976a57c39e6c | 76b82b61b34d6b5704920e05e017007a4166ec57 | refs/heads/master | 2023-02-09T09:18:43.321640 | 2019-06-26T11:06:55 | 2019-06-26T11:06:55 | 193,888,681 | 0 | 0 | null | 2023-02-02T06:32:51 | 2019-06-26T11:09:05 | Python | UTF-8 | Python | false | false | 479 | py | from flask_sqlalchemy import SQLAlchemy
from flask_bootstrap import Bootstrap
from config import config
from flask import Flask
import pymysql
pymysql.install_as_MySQLdb()
db = SQLAlchemy()
def create_app(config_name):
app = Flask(__name__)
Bootstrap(app)
app.config.from_object(config[config_name])
c... | [
"wma8@ncsu.edu"
] | wma8@ncsu.edu |
62d8a1e1ebc3c8d291c1aac3ad32a57ed5088219 | 7ac1f3e38dab2899d6dc0d02cc1ace3934fb0805 | /IR/text codes/boolRet.txt | 3c3a38f9c6bb1ee3abedbd677eccc255f149a349 | [] | no_license | amanbhal/pythonCodes | 3fd9357211fe7d06c6972e7a4f469df1ff3cf60a | 49d17ce395d15e7c8497af8455790ecb876a0d49 | refs/heads/master | 2016-08-12T06:12:19.108863 | 2015-11-16T20:42:11 | 2015-11-16T20:42:11 | 46,301,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | txt | #! /usr/bin/python
from helpers import getStopList, getFileList, growDict, printDict
def main():
stopLst = getStopList("../Files/")
[fList, tPath] = getFileList("../Files/","sampleDocs/")
tokDict = {}
for f in fList:
tokDict = growDict(tokDict, f, fList.index(f), tPath,\
s... | [
"amandeep.bhal92@gmail.com"
] | amandeep.bhal92@gmail.com |
46b4946ad12fe1760fc12c8f29ba67cd8fa9854e | 5349a469ac8913a64d101c3d65257b157c2bcf3c | /test/test_fx.py | 12ffad9a2b46c83e68f151d20e30c40f96bda265 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | sarahannali/pytorch | 6c1ba901bd50bf7ac9b4e14cb9305da84f8bcb25 | 31ee5d8d8b249fd0dbd60e1d9c171ec75b597672 | refs/heads/master | 2023-01-01T11:01:44.907512 | 2020-10-12T23:55:46 | 2020-10-12T23:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,721 | py | import torch
import unittest
import operator
import numbers
import pickle
import copy
from pathlib import Path
from torch.fx import symbolic_trace, Proxy, Node, GraphModule, Tracer, Graph
from torch.fx.experimental import GraphManipulation
from torch.fx.experimental import shape_prop
from torch.fx.experimental.Partitio... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8b911d329c8bec2537e8276d843ea45bea74e467 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc023/C/answers/112335_Gale.py | 931904830969cd7b6dfccc1f26e1805b2573aa71 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | ame = set()
r, c, k = map(int, input().split())
row_n = [0] * (r + 1)
col_n = [0] * (c + 1)
row_nn = [0] * 100001
col_nn = [0] * 100001
n = int(input())
for _ in range(n):
rr, cc = map(int, input().split())
row_n[rr] += 1
col_n[cc] += 1
ame.add((rr, cc))
for i in range(1, r + 1):
row_nn[row_n[i]] ... | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
87e43a21fec53e30d2d5f8bebe82dd4feb5829bd | 32c4a3f8893a7fe9039ebfb2d98215e06203f8f2 | /tests/tensor/coordinate/system/axis/test__axis.py | c8aad570b9de1b5b0b45762a0dd50d4202c819ce | [
"Apache-2.0"
] | permissive | jedhsu/tensor | d27c8951aa32208e3c5bbcef0d0f2bae56f8a670 | 3b2fe21029fa7c50b034190e77d79d1a94ea5e8f | refs/heads/main | 2023-07-06T11:35:36.307538 | 2021-08-07T20:11:19 | 2021-08-07T20:11:19 | 366,904,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
*Axis, [Unit Tests]*
"""
from tensor.tensor.coordinate.system.axis._axis import Axis
class TestAxis:
def test_init(self):
a = Axis(5, 0, 1)
assert isinstance(a, Axis)
assert a.ordinal == 5
assert a.origin == 0
assert a.direction == 1
def test_create(self):
... | [
"jed910@gmail.com"
] | jed910@gmail.com |
ca35767c9da032c4f339de5aa5a46487243fc984 | c8a04384030c3af88a8e16de4cedc4ef8aebfae5 | /stubs/pandas/compat/__init__.pyi | 3d2128b4dcb1f4be3619e7a503336c8e387ce6bb | [
"MIT"
] | permissive | Accern/accern-xyme | f61fce4b426262b4f67c722e563bb4297cfc4235 | 6ed6c52671d02745efabe7e6b8bdf0ad21f8762c | refs/heads/master | 2023-08-17T04:29:00.904122 | 2023-05-23T09:18:09 | 2023-05-23T09:18:09 | 226,960,272 | 3 | 2 | MIT | 2023-07-19T02:13:18 | 2019-12-09T20:21:59 | Python | UTF-8 | Python | false | false | 803 | pyi | # Stubs for pandas.compat (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
# pylint: disable=unused-argument,redefined-outer-name,no-self-use,invalid-name
# pylint: disable=relative-beyond-top-level,line-too-long,arguments-differ
# pylint: disable=no-member,too-few-public-methods... | [
"josua.krause@gmail.com"
] | josua.krause@gmail.com |
50610a3f906a7a87156de10f1d4f14ee940cbcb2 | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/959_regions_cut_by_slashes.py | b72a08453f9c8c421f6efe61aa9d4386f67a0fa4 | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | class Solution:
def regionsBySlashes(self, grid: List[str]) -> int:
n = len(grid)
seen = set()
res = 0
for i in range(n):
for j in range(n):
if (i, j, 0) not in seen:
self._dfs(grid, i, j, 0, seen)
res += 1
... | [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
df50b05cf5f33bf54acad8204d9968987e7e4ba3 | d51b8b1b55bbcdea55d6ab2b0a97c03cd290868d | /revivalkit/log.py | b03be3472a8d2de8da12f422fc34225da06ed095 | [] | no_license | gogobook/revivalkit | 2c48f9a032b159589a1e8f5b515a22b7fc4e0123 | 3f1eccc6bd80a2c0c4ad7ab60491c98a8d9cd632 | refs/heads/master | 2021-01-16T18:07:53.065671 | 2015-12-12T07:40:32 | 2015-12-12T07:40:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from __future__ import print_function
import sys
to_print_debug = False
def debug(*args, **arg_ds):
if not to_print_debug: return
print('revivalkit:debug:', *args, file=sys.stderr, **arg_ds)
| [
"mosky.tw@gmail.com"
] | mosky.tw@gmail.com |
1ca5712af3da706bb53d3661f958c30321305c1f | 2fe58e7f6bfc3efdb78ca56f72a4e2a75a24c270 | /eric/eric6/Plugins/__init__.py | fe0b347045e010e41b7ae1988a28bc90b6118bc1 | [] | no_license | testerclub/eric6-20.3 | 3053e0e6962060b213f5df329ee331a4893d18e6 | bba0b9f13fa3eb84938422732d751219bc3e29e2 | refs/heads/master | 2023-03-18T08:24:03.472297 | 2020-03-14T06:44:14 | 2020-03-14T06:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2007 - 2020 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Package containing all core plugins.
"""
| [
"skeptycal@gmail.com"
] | skeptycal@gmail.com |
fe6f4c64becb61733511e9dd29f3fa33cfdeb957 | aa13e1d93b7a8017e1e610a900bd05f6df91604f | /hackerrank/contests/hourrank7/array-splitting.py | 3e61e19ff22b66ac69f49c320ebb26f4cad2c1db | [] | no_license | laveesingh/Competitive-Programming | 3ce3272eab525635f9ce400f7467ee09de8b51df | 41047f47c23bc8572a1891e891a03cc3f751e588 | refs/heads/master | 2021-01-24T09:51:00.332543 | 2017-10-30T17:11:48 | 2017-10-30T17:11:48 | 52,956,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from pprint import pprint
ans = 0
# dict[tuple] = (divided tuple of list), value
def isPos(a, n):
s = 0
s2 = sum(a)
for i in xrange(len(a)-1):
s += a[i]
s2 -= a[i]
if s == s2 and i != len(a)-1:
return (a[:i+1],a[i+1:], n+1)
return False
store = {}
def solve(a, n):
x = isPos(a, n)
if x:
store[tuple(... | [
"laveechaudharytheone@gmail.com"
] | laveechaudharytheone@gmail.com |
0be8c0f0c2fd334cf4240d98ea194ea813adee91 | 2387caf918fa9109568f3f804377c409f7b40fe8 | /distance3d/hydroelastic_contact/_halfplanes.py | d43f8b1483633f57ef2fec53122454584ef197c4 | [
"Zlib",
"MIT",
"BSD-3-Clause",
"BSD-3-Clause-Clear",
"BSL-1.0",
"Unlicense"
] | permissive | AlexanderFabisch/distance3d | aed80c3c4f556f832a44c3b674760db20ef92f2d | 7b2098161a57253c68d3725d63ea235831d272eb | refs/heads/master | 2023-08-19T06:56:30.725164 | 2023-08-03T16:08:51 | 2023-08-03T16:08:51 | 476,051,225 | 30 | 5 | NOASSERTION | 2023-07-28T08:07:23 | 2022-03-30T21:05:48 | Python | UTF-8 | Python | false | false | 3,624 | py | import numba
import numpy as np
from ..utils import norm_vector, EPSILON
# replaces from numba.np.extensions import cross2d, which seems to have a bug
# when called with NUMBA_DISABLE_JIT=1
@numba.njit(
numba.float64(numba.float64[::1], numba.float64[::1]),
cache=True)
def cross2d(a, b):
return a[0] * b[1... | [
"afabisch@googlemail.com"
] | afabisch@googlemail.com |
f6f0da799baa0c953facd5a352662624b46d44c9 | f9e1d9c71d232aa0bcf03627259e6c9f88538b18 | /gs108ExtraMethodsOfClassBasedView/gs108/asgi.py | 2cd325422ba75b65fd77dbbeaf2e0635a1336874 | [] | no_license | nayan-gujju/Django-Practice | a7db202b6a3627a6a4e9f96953b61e43eaf68cb1 | eafa29e9321a1683867b2ea1d26ca74dfa6db12d | refs/heads/master | 2023-07-27T11:41:43.956705 | 2021-09-09T08:47:44 | 2021-09-09T08:47:44 | 403,917,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for gs108 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"nayangujarati007@gmail.com"
] | nayangujarati007@gmail.com |
7947c7a7858c6399fa83aeee2c2115a32a62c5f5 | c6e5d5ff2ee796fd42d7895edd86a49144998067 | /platform/polycommon/polycommon/live_state.py | 2f5680bf039683418e6233de246bbf5e217f1810 | [
"Apache-2.0"
] | permissive | zeyaddeeb/polyaxon | f4481059f93d8b70fb3d41840a244cd9aaa871e0 | 1f2b236f3ef36cf2aec4ad9ec78520dcc9ef4ee5 | refs/heads/master | 2023-01-19T05:15:34.334784 | 2020-11-27T17:08:35 | 2020-11-27T17:08:35 | 297,410,504 | 0 | 0 | Apache-2.0 | 2020-09-21T17:20:27 | 2020-09-21T17:20:26 | null | UTF-8 | Python | false | false | 198 | py | STATE_LIVE = 1
STATE_ARCHIVED = 0
STATE_DELETION_PROGRESSING = -1
CHOICES = (
(STATE_LIVE, "live"),
(STATE_ARCHIVED, "archived"),
(STATE_DELETION_PROGRESSING, "deletion_progressing"),
)
| [
"contact@polyaxon.com"
] | contact@polyaxon.com |
55a04939f3799c5645a196ee9769032e5a0efd68 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_21/models/local_group_membership_post.py | fcc7518cae6098afbd8512b4e37e409abe4850f1 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,982 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.21
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
1e6853ac04cd59b0da08c492ad82eb7292a0b5e7 | 455706c02fb0a5dfcb29572779c2dde34ecb3c1c | /django_oopviews/base.py | 6f018dc6ed93cbd70df1ae51cd6070e7aca285df | [
"BSD-3-Clause"
] | permissive | zerok/django-oopviews | 581293aaab673559186e2e570f37bc4eea8d39ea | 8b80cae437b6089310ae12dd76532624c84db18b | refs/heads/master | 2016-09-05T13:16:34.013936 | 2008-11-11T00:46:35 | 2008-11-11T00:46:35 | 57,663 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | """
In some instances you end up producing tons of views that actually do mostly
the same except for perhaps one or two lines. This module offers you a simple
alternative::
from django_oopviews import create_view, BaseView
class View1(BaseView):
def __init__(self, request, *args, **kwargs):
... | [
"zerok@zerokspot.com"
] | zerok@zerokspot.com |
67ceade67a7d9a435d33fe714ae6051a373d2f92 | e86dedc5b0bb79b9eba41e74c343e77bd1ee1512 | /lldb/test/API/commands/expression/import-std-module/sysroot/TestStdModuleSysroot.py | 014a35458d66fa1a5fc78a34595ca0b20de85127 | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | shafik/llvm-project | a5e1b66fb053f9aa01720a40ea7985b4cc57d16f | be556c838de06c3c2f69bf594996cace6ffa17eb | refs/heads/main | 2023-05-28T22:35:12.937142 | 2023-05-16T18:22:53 | 2023-05-16T18:25:41 | 221,325,771 | 0 | 0 | Apache-2.0 | 2019-11-12T22:40:44 | 2019-11-12T22:40:44 | null | UTF-8 | Python | false | false | 1,493 | py | """
Test that we respect the sysroot when building the std module.
"""
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
import os
class ImportStdModule(TestBase):
# We only emulate a fake libc++ in this test and don't use the real libc++,
# bu... | [
"teemperor@gmail.com"
] | teemperor@gmail.com |
6a3c75482f7f16ad0223ab79c872be430da13d6f | cdaeb2c9bbb949b817f9139db2d18120c70f1694 | /rakam_client/models/error_message.py | db883d4928c04f945e167febf9fbc9a5b5a2119b | [
"Apache-2.0"
] | permissive | sreekanthpulagam/rakam-python-client | 665c984ac7a29b57ead6feaeb99a69ba345220e6 | 8bd843208b03726d6ce89ee343b48b889b576e0e | refs/heads/master | 2021-01-24T15:42:36.374366 | 2016-07-19T21:49:26 | 2016-07-19T21:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,002 | py | # coding: utf-8
"""
Rakam API Documentation
An analytics platform API that lets you create your own analytics services.
OpenAPI spec version: 0.5
Contact: contact@rakam.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Li... | [
"emrekabakci@gmail.com"
] | emrekabakci@gmail.com |
f44b857fddcb103a891ca98241641c61f9c04692 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_188/ch73_2019_04_04_18_34_54_400262.py | cd8882d0dc247c4bb07246006762dc9e2db0cd04 | [] | 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 | 311 | py | def remove_vogais(frase):
frase = str(frase)
frase = frase.lower()
vogais = ["a", "e", "i", "o", "u"]
contador = 0
sem_vogais = ""
while contador < len(frase):
if vogais not in frase[contador]:
sem_vogais += frase[contador]
contador += 1
return sem_vogais | [
"you@example.com"
] | you@example.com |
f8ac40843de7f398c6de044fef0cb2f7be52b6fa | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/bokeh-0.11.1-py27_0/lib/python2.7/site-packages/bokeh/server/protocol/receiver.py | 9d0143575ad9d50cb757456cb0c4061dbac5d25d | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 3,054 | py | ''' Assemble websocket wire message fragments into complete Bokeh Server
message objects that can be processed.
'''
from __future__ import absolute_import
import six
from tornado.concurrent import return_future
from ..exceptions import ValidationError
import logging
log = logging.getLogger(__name__)
class Receiver... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
093fc662077fab8d376ec677f4b1a61b8270631e | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20191012/example_metashape/17walker.py | 3c668d9b7ae518dec2b9f57007d8896ff261d94c | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 1,612 | py | import typing as t
T = t.TypeVar("T")
F = t.TypeVar("F", bound=t.Callable[..., t.Any])
MetaData = t.Optional[t.Dict[str, t.Any]]
class Field(t.Generic[F]):
wrapped: F
def __init__(self, wrapped: F):
self.wrapped = wrapped
try:
self.__doc__ = wrapped.__doc__
except: # noq... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
10434a32e795ec5d304e1fbec30670e8cb3a4881 | 0b51bc6c7a98d07880955a31e147c0c15b1e3151 | /dai_tgg/controllers/controllers.py | 855f610f76a3b62a852f1dbc2ab1f73872d7dd4b | [] | no_license | tu95ctv/duan_mi2 | 72e8bcbad73dfea1b57b69dbfd1c8d48ecebb975 | f1728d99e27fcc18684d50f5719f3dcedcffd755 | refs/heads/master | 2020-04-28T21:30:25.017845 | 2019-07-07T13:25:43 | 2019-07-07T13:25:43 | 175,584,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,900 | py | # -*- coding: utf-8 -*-
from odoo import http
from openerp import http
from openerp.http import request
from openerp.addons.web.controllers.main import serialize_exception,content_disposition
import base64
# from openpyxl import load_workbook
# from cStringIO import StringIO
from odoo.tools.misc import xlwt
from copy i... | [
"nguyenductu@gmail.com"
] | nguyenductu@gmail.com |
d2f89f70fa06f176959af33099a52a2d67651e66 | f0ee6af776b92f98881ce9dfb2f4df0b760f1ca6 | /dublicate.py | 20945ad7daa791b4a847395e6e574e7a57b39e47 | [] | no_license | madhu20336/dictionary | 4cb8e240b2167d6e3071b4eb867977a3e25b9479 | a9f6d1e4887ae4300ea034e2bb6054cfad91d610 | refs/heads/main | 2023-04-23T10:30:09.114402 | 2021-05-15T11:38:58 | 2021-05-15T11:38:58 | 367,615,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | # dict={"A":1,"B":2,"C":3,"C":5,"B":6,"A":7}
# for i in dict.items():
# if i in dict:
# del dict[i]
# print(dict)
| [
"noreply@github.com"
] | madhu20336.noreply@github.com |
c0430d2eeb1e8011132f75363c50f7f85c37b417 | 8524e35d5848e7c6dcc774d35818c12bbc01bf67 | /taocode2/apps/user/auth.py | bbc40f94e10c64987528b578c36450d890be0cfb | [] | no_license | imbugs/taobaocode | 80f49e1829807b4751b2a6e6949c850843b996a7 | a8fbd7fc2f0d3f88eaeda7d944bcc688dee47b18 | refs/heads/master | 2021-01-02T23:06:29.518047 | 2013-05-16T03:34:47 | 2013-05-16T03:34:47 | 10,093,033 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | #
# Copyright (C) 2011 Taobao .Inc
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://code.taobao.org/license.html.
#
# This software consists of voluntary contributions made by ma... | [
"imbugs@126.com"
] | imbugs@126.com |
f6b9b2ad4df858c10c4208fc0b3d6b28d0608d5f | d87f6d9e769709def3efcf30230cd8bf6ac2cef7 | /WWTest/util/sendEmailWithLink.py | 7bc4933f1049b445a170df1cade57d1a844b7237 | [] | no_license | wawj901124/centos8xitong | 876dcc45b895871119404ad1899ca59ab5dd90b6 | 81fc0d1151e3172ceec2093b035d2cd921e1a433 | refs/heads/master | 2023-02-23T22:33:22.314433 | 2021-01-31T01:54:35 | 2021-01-31T01:54:35 | 290,476,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,028 | py | import smtplib #导入smtplib,用来发送邮件和连接服务器
from email.mime.text import MIMEText #导入MIMEText,用来组织邮件格式内容
from email.mime.multipart import MIMEMultipart #添加附件用
from email.mime.application import MIMEApplication #添加附件用
class SendEmail:
globals() ['send_user'] = "xiang_kaizheng@wanweitech.com" #构建全局变量发送者
glob... | [
"wawj900805"
] | wawj900805 |
b7c60f81e448d17ba6e9307cc65b5f717b19cba0 | 7d1e66fec4675572d75d30c632406242973d84aa | /pysc2/bin/mem_leak_check.py | 27efe04d1d88ed96d5c2e341358cf597adea1a63 | [
"Apache-2.0"
] | permissive | monarchBacilluscoli/pysc2 | 91cdd0c85598f64f4c1c8b36126968bc04ac84a4 | e5df7d41205fdb2e205dac2777305f3f6a404e05 | refs/heads/master | 2020-03-22T17:35:57.294868 | 2018-07-09T14:18:38 | 2018-07-09T14:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | #!/usr/bin/python
# Copyright 2018 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 ... | [
"tewalds@google.com"
] | tewalds@google.com |
05e26f13c90bcb7032e3df3e79b731b10641e170 | ee364e80138d6a2435ff069f3665b4ce36915e40 | /samples/set_pstn_black_list_item.py | 71dbaecc96a3afc048986596279305350ea06b56 | [
"MIT"
] | permissive | antoniotaranto/apiclient-python | 355b21efa7f526cc1f4edec2d45e68ec87b3e327 | 64a727ebecac27ce162f3f198edeb065ab8a6ca0 | refs/heads/master | 2022-02-18T05:14:01.075669 | 2019-09-02T09:58:57 | 2019-09-02T09:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from voximplant.apiclient import VoximplantAPI, VoximplantException
if __name__ == "__main__":
voxapi = VoximplantAPI("credentials.json")
PSTN_BLACKLIST_ID = 1
PSTN_BLACKLIST_PHONE = "123456789"
try:
res = voxapi.set_pstn_black_list_item(PSTN_BLACKLIST_ID, PSTN_BLACKLIST_PHONE)
except... | [
"andrey@voximplant.com"
] | andrey@voximplant.com |
623dda1de8d3d0b4d2a0fc34c18ffdade7630b7f | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_45120.py | 8c8adacdf9176f00eb63cc6fa601503552577bae | [] | 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 | 10,836 | 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 |
b70144b62bd5c217a8e2b1f03e36a1c6efffae61 | a1b21aa9b4c3b99b9b16fd47686bcc76e6fafd18 | /file_and_exceptions/json_practice/favorite_number/favorite_number_writer.py | 3fc63f2e0de4fe8ce4be781f231ee1e33662a89b | [] | no_license | irfan87/python_tutorial | 986c5dae98a5ad928c3820bf0355f544c091caf0 | 71bbf8b8aba2d5a1fafc56b8cb15d471c428a0cf | refs/heads/master | 2020-06-05T00:52:07.619489 | 2019-08-19T02:56:41 | 2019-08-19T02:56:41 | 192,257,432 | 0 | 0 | null | 2019-08-19T02:56:42 | 2019-06-17T01:53:46 | Python | UTF-8 | Python | false | false | 562 | py | import os
import json
file_name = os.path.abspath('file_and_exceptions/json_practice/favorite_number/fav_number.json')
try:
# load the json file
with open(file_name) as json_file:
json_content = json.load(json_file)
except FileNotFoundError:
user_prompt = input("Please enter your favorite number: ... | [
"nerve2009@yahoo.com"
] | nerve2009@yahoo.com |
1118c8d3e5916329ace94860afc9e49ca5ba44b5 | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Main_20190119164337.py | b7c7b6c65137050e80d0869f13162fb06f8dbb2a | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,519 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
# Maya Header
import maya.cmds as cmds
import maya.mel as mel
import maya.OpenMayaUI as omui
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
f... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
03f52294b6ae8c54a9f097c5e9a3df1f9bdb0115 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/pfnet_chainer/chainer-master/tests/chainer_tests/links_tests/connection_tests/test_deconvolution_nd.py | 5ba25749e626b7c36370304d1ad40afe3db55bb1 | [] | 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,199 | py | import unittest
import numpy
import chainer
from chainer import cuda
from chainer import gradient_check
from chainer import initializers
from chainer.links import deconvolution_nd
from chainer import testing
from chainer.testing import attr
from chainer.testing import condition
from chainer.testing import parameteriz... | [
"659338505@qq.com"
] | 659338505@qq.com |
f4b7c388edf75b83c3b1a73d48fcbd7b0f0cb3be | e25c3d29713a508ba2f4b76f6416b8f260429723 | /utils.py | 8c8e245b8f132c77a6e6ff940c97de33870d6e4e | [] | no_license | EaseCloud/face-api | 7c22219a8cdf65b408a369cfba6ac2930462889b | 0fff8ab7d74f1b0c669ca1bac8efbc01f13867be | refs/heads/master | 2020-03-10T10:13:46.774712 | 2018-04-17T03:29:25 | 2018-04-17T03:29:25 | 129,328,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | import json
import os
import pickle
import sys
import face_recognition
from bottle import Response
import config
def read_data(group_id):
""" Read the face encodings of a specific group from the repository.
:param group_id:
:return:
"""
path = os.path.join(config.DIR_DATA, group_id)
os.maked... | [
"57082212@qq.com"
] | 57082212@qq.com |
d82167ca61a739e2d8c6919137e144a987ee22a3 | 70922de165319283d640821fd42ea1806da402c0 | /math/0x00-linear_algebra/8-ridin_bareback.py | 99e94b246997a78ccbb5d33ce5396ebf2ac47d12 | [] | no_license | ikki2530/holbertonschool-machine_learning | bdd8152d575a99281e2cce105cf87442ec07f2fb | 0b56aa0e92d65d4a5832cc994769834fbcfbe0ac | refs/heads/main | 2023-07-07T00:49:03.675328 | 2021-08-11T10:27:56 | 2021-08-11T10:27:56 | 317,352,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | #!/usr/bin/env python3
"""multiply 2 matrices"""
def matrix_shape(matrix):
"""
matrix: matrix to calcuted the shape
Return: A list with the matrix shape [n, m],
n is the number of rows and m number of columns
"""
lista = []
if type(matrix) == list:
dm = len(matrix)
lista.ap... | [
"dagomez2530@gmail.com"
] | dagomez2530@gmail.com |
55bf4b302ed6ffdbe5175081e2ee071bd0c2e622 | 39d9ba65172cb170eab158ce732748f36eb5da02 | /dquora/messager/models.py | d9dddae4e288e02133b0cca5084d77be7ed5fc3a | [
"MIT"
] | permissive | adivxkk/Dquora | c3fec218922c33caebdf45211e63fa88e9e83f8b | 8e9f910eaab9fd109286572fd65b0918d93f83b9 | refs/heads/main | 2023-07-16T20:40:52.156804 | 2021-08-21T11:12:24 | 2021-08-21T11:12:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | py | import uuid
from django.db import models
from django.contrib.auth import get_user_model
from django.conf import settings
class MessageQuerySet(models.query.QuerySet):
"""自定义Message的QuerySet API"""
def get_conversation(self, sender, recipient):
"""用户间的私信会话"""
qs_one = self.filter(sender=sende... | [
"xlyjxkk@gmail.com"
] | xlyjxkk@gmail.com |
0d5b9fa22ce5bdb993ac375103383a9c6ba6c959 | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /python/ql/test/2/library-tests/modules/general/package/__init__.py | d5be97cd18230f5a4a71a5e875574face58adfb1 | [
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | Python | false | false | 213 | py |
a = 1
b = 2
c = 3
#Implicit relative import
from helper import d
#Explicit relative import
from .helper import g
from .assistant import f
#This will be an implicit relative import (in Python 2)
import helper
| [
"mark@hotpy.org"
] | mark@hotpy.org |
ac83d2dffda56e4aa58e5269ad131cf6fc0edd88 | cc9a87e975546e2ee2957039cceffcb795850d4f | /venv/bin/pip | 5d0b1e4937781dd43907661fd781a3862fbd0277 | [] | no_license | CodeHunterDev/Belajar-Python | 304d3243801b91b3605d2b9bd09e49a30735e51b | 9dd2ffb556eed6b2540da19c5f206fedb218ae99 | refs/heads/master | 2023-03-19T22:12:46.330272 | 2020-02-04T08:02:00 | 2020-02-04T08:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | #!/home/adam/PyCharm/HelloAdamPython/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
# Copyright (c) 2020. Adam Arthur Faizal
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"adam.faizal.af6@gmail.com"
] | adam.faizal.af6@gmail.com | |
33762bb875c6b2c49a26c4748aa607e6b82072fc | 5f203dc298a40d47835882b9c3b37e93ebc015d6 | /mf/python/mknfold.py | 22c45920a9b53331b02fad5295461d2269f483b1 | [] | no_license | chan-y-park/ML-SGHMC | 6489e7f2808b849983d2b970bc2c471a61cd8a3f | 92d555b7360060eb452efd72e4493dac39412021 | refs/heads/master | 2020-05-07T18:18:13.601213 | 2019-04-15T06:58:20 | 2019-04-15T06:58:20 | 180,761,444 | 0 | 0 | null | 2019-04-11T09:41:04 | 2019-04-11T09:41:04 | null | UTF-8 | Python | false | false | 798 | py | #!/usr/bin/python
import sys
import random
if __name__ == '__main__':
if len(sys.argv) < 3:
print 'usage: <input> <fold> [nfold=5]'
exit(-1)
if len( sys.argv ) > 3:
nfold = int( sys.argv[3] )
else:
nfold = 5
fold = int( sys.argv[2] )
assert fold > 0 and fold <= nfold
rando... | [
"tianqi.tchen@gmail.com"
] | tianqi.tchen@gmail.com |
8db6e99710b0007055e3d7632b4842e47cc1c628 | 2b358820cb483cb73842f6b5c3fa4de5ff0d537a | /build/rviz_plugin_covariance/catkin_generated/pkg.develspace.context.pc.py | 686ad90ee3512882d5e1b9240485a1b2508a51d2 | [] | no_license | jrr1984/tp_final_omni | bf2803b75c5713c8e91a46126f0e281efcdca813 | 10ffb784397025839cc7cbd57d5991a1fbf32367 | refs/heads/master | 2021-06-06T01:59:57.602069 | 2021-05-08T19:13:30 | 2021-05-08T19:13:30 | 127,978,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rviz_plugin_covariance"
PROJECT_SPACE... | [
"juanreto@gmail.com"
] | juanreto@gmail.com |
12e1b5d0adfaa938385583586815b054f90b1494 | 6c92a0d1cf4e79a1f7a5d883184b397625e957be | /Day048/Cookie Clicker Practice.py | 880b23f9cad787f17b60b491ebd65386da0da3ef | [] | no_license | Hasib104/Learning-Python | 5667c52e98812da36275412a481298f4b38f8099 | 0f731624fb6572fdfbb0d09d2aa1ffb3d3247796 | refs/heads/main | 2023-03-26T18:33:35.168018 | 2021-03-18T13:25:36 | 2021-03-18T13:25:36 | 327,512,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py |
from selenium import webdriver
import time
chrome_driver_path = "C:\Development\chromedriver.exe"
driver = webdriver.Chrome(chrome_driver_path)
driver.get("http://orteil.dashnet.org/experiments/cookie/")
# Get cookie to click on.
cookie = driver.find_element_by_id("cookie")
# Get upgrade item ids.
item... | [
"noreply@github.com"
] | Hasib104.noreply@github.com |
fdc4ec77c6a13586c430aa41fa72288ca3ad27f2 | 07e3e716cd5ae33f5c88c40ede090645a723db9f | /backend/home/migrations/0002_load_initial_data.py | 7626e1b98d0c44979567332c51672739b0aef63f | [] | no_license | crowdbotics-apps/dating-22486 | bb8886a455d581b0c27cef8395c8369bc85fae72 | 1bb68c3095ffc29e5cd330cf426b9b1e35c2c360 | refs/heads/master | 2023-01-06T16:43:18.990380 | 2020-11-10T19:00:28 | 2020-11-10T19:00:28 | 311,755,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "dating"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
ho... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4752f1bf9ae6ca9a6d4829ac7312e28b36909a17 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/TileCalorimeter/TileConditions/share/convertTimingResiduals.py | a83e68743fe1d4bb285589af690757802de92f78 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | py | #!/usr/bin/env python
import sys
#
#__________________________________________________________________
def dec2hex(n):
return ("0%X" % n)[-2:]
#
#__________________________________________________________________
def pmt2channel_LB(pmtOrChannel):
"""
This function converts channel to pmt or pmt to chan... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
25b411769db49eeb1daa8e3f8b2a2e386e5fe43f | c5a1c95e9d8ce937f71caf8340cf11fe98e64f56 | /day10(주말용)/problem1/[이재형] 내적.py | 02fda70a817433911e1f4e125aee46026c8811d4 | [] | no_license | Boot-Camp-Coding-Test/Programmers | 963e5ceeaa331d99fbc7465f7b129bd68e96eae3 | 83a4b62ba2268a47859a6ce88ae1819bc96dcd85 | refs/heads/main | 2023-05-23T08:21:57.398594 | 2021-06-12T16:39:21 | 2021-06-12T16:39:21 | 366,589,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | def solution(a, b):
return sum([a[i]*b[i] for i in range(len(a))])
| [
"noreply@github.com"
] | Boot-Camp-Coding-Test.noreply@github.com |
cfa0e6c206169e8e5fed6ab2f5e5178f1c1e0c4f | fa52ee094776f69f0214ffbe24281a9736eaaa40 | /solutions/114_Flatten_Binary_Tree_to_Linked_List_1.py | b41a2f5011b771075bb35a38a3f043abb3f56591 | [] | no_license | hank08tw/CodeFromLeetcode | 57898916c2b903b1ecbc3d0ed063b36531d74e93 | 41b2936600dd392627a4f6e146559739bb88da45 | refs/heads/master | 2021-05-03T04:26:28.239904 | 2015-06-07T17:31:06 | 2015-06-07T17:31:06 | 120,615,373 | 1 | 0 | null | 2018-02-07T12:58:40 | 2018-02-07T12:58:39 | null | UTF-8 | Python | false | false | 615 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param {TreeNode} root
# @return {void} Do not return anything, modify root in-place instead.
def flatten(self, root):
... | [
"yao.zhao9101@gmail.com"
] | yao.zhao9101@gmail.com |
0cae18a0b4188b84fe1ab8042cdc71443356abbe | 81c344b8df43ed550cb9496c664a8de2687eda3e | /venv/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_antivirus_profile.py | 333628df60a3061b91a0b9e48611252ed8864ca9 | [] | no_license | anhdoan-ntt/cisco-aci | dc0e52b6d19ee0bafb2b24e0febe955952bf39ef | 185be6d6f13eabd65fb0ff328ea54f6507ccf0d4 | refs/heads/main | 2022-12-20T00:07:27.465096 | 2020-10-05T08:15:29 | 2020-10-05T08:15:29 | 300,500,699 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,249 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | [
"dc.anh.doan@gmail.com"
] | dc.anh.doan@gmail.com |
3f2546636e7e7b9abb20725f5c413bb9d72a55f2 | e27d6cf969bc1e12f61fcf09aa5cab211744e352 | /TerrainData/classifyNB.py | 1ffa57f0132f34baa276949992356aea8eb34850 | [] | no_license | bnajafi/Gaussian_Naive_Bayes_SKLearn | 6fd2ed0e43020ca86f4c8ca8946c630b0dd719ba | d064ec4665e35d178960a3afd2fade02fb7ba118 | refs/heads/master | 2021-01-20T20:47:32.812728 | 2017-06-12T11:04:54 | 2017-06-12T11:04:54 | 64,767,625 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | def classify(features_train, labels_train):
### import the sklearn module for GaussianNB
from sklearn.naive_bayes import GaussianNB
### create classifier
clf= GaussianNB()
### fit the classifier on the training features and labels
clf.fit(features_train,labels_train)
### return the f... | [
"behzad najafi"
] | behzad najafi |
56b9b013459a210acff98b7470550bbd6915a1d0 | 7c0d8d030c27472c3cdd3f5696fb423f7cb579af | /pennylane/gradients/gradient_transform.py | f9536c451198d537395f243393cfb28d00a86d28 | [
"Apache-2.0"
] | permissive | stjordanis/pennylane | 6a696914244336cdad4d68bbcc668924eeaf1bf6 | 755b2419ea2e956d864237b9b18f3a3ca27cdf4f | refs/heads/master | 2023-05-10T23:10:56.891830 | 2023-05-03T21:09:32 | 2023-05-03T21:09:32 | 175,742,678 | 1 | 0 | null | 2019-03-15T03:32:26 | 2019-03-15T03:32:25 | null | UTF-8 | Python | false | false | 17,633 | py | # Copyright 2018-2021 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 applicabl... | [
"noreply@github.com"
] | stjordanis.noreply@github.com |
14961a035531cf4e9da1f2cb7f06758d31a3e389 | f33808410c0ad3a16099a81a130b8e2c25d4e641 | /modules/implant/persist/wmi.py | ef97800b0a0e03e908338e62b90d11b3e0725904 | [
"Apache-2.0"
] | permissive | marciopocebon/entypreter | 96994ec6a6e35f4b31bf1b16aeff29b75c7b5bc3 | 6a165589c4853c33e7f5eb6fd3a1326bfc37870e | refs/heads/master | 2020-09-05T06:54:31.674617 | 2019-11-05T13:48:35 | 2019-11-05T13:48:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,937 | py | import core.job
import core.implant
import core.loader
import uuid
import string
import random
class WMIPersistJob(core.job.Job):
def create(self):
if self.session_id == -1:
self.error("0", "This job is not yet compatible with ONESHOT stagers.", "ONESHOT job error.", "")
return Fals... | [
"noreply@github.com"
] | marciopocebon.noreply@github.com |
8368bfbd0e4777b5c99e341ea7c5c3253dd539f6 | 0626949c68622a787fa5d860d654c862676a77e7 | /muxue/user/adminx.py | 7bff5abe2de350bb8bce165760789b265e48d5c5 | [] | no_license | GBXZ/muxueonline | 37f74d51a9d275bde62197addf3f08ac517a52b8 | bf9af33d65a960e6ac9e796587c3ed9cdceba25d | refs/heads/master | 2020-03-26T22:39:15.556180 | 2018-09-28T23:38:55 | 2018-09-28T23:38:55 | 145,477,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | # _*_ coding:utf-8 _*_
from django.contrib import admin
from .models import EmailVerifyRecord,Banner
from django.db import models
from datetime import datetime
import xadmin #重要
from xadmin import views #修改主题需要导入views
class BaseSetting(object): #修改xadmin主题
enable_themes = True
use_bootswatch = True
class Glob... | [
"="
] | = |
0e5d6f781d7332442b268007501ec4e99b025beb | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-whiteSpace-1-5.py | 4139e151403a4f62685e832b8f9ab13a90d624e4 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 456 | py | from output.models.nist_data.list_pkg.unsigned_int.schema_instance.nistschema_sv_iv_list_unsigned_int_white_space_1_xsd.nistschema_sv_iv_list_unsigned_int_white_space_1 import NistschemaSvIvListUnsignedIntWhiteSpace1
obj = NistschemaSvIvListUnsignedIntWhiteSpace1(
value=[
0,
561145125,
400... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
d8503c891c61ca578f7de87638d0b8b2ee588861 | 4a307849ed4dded5ce84b0ceb6d2cf56c2e64b89 | /fixtures/physical_router_fixture.py | 2735390c29f1263942639fc49bf7dfc581280ae3 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | lmadhusudhanan/contrail-test | a6316b41dcb836315d25503f1dee511943d7f976 | bd39ff19da06a20bd79af8c25e3cde07375577cf | refs/heads/master | 2022-05-04T20:01:58.960911 | 2018-06-27T17:56:47 | 2018-06-27T17:56:47 | 138,913,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,453 | py | from netaddr import *
import vnc_api_test
from pif_fixture import PhysicalInterfaceFixture
from physical_device_fixture import PhysicalDeviceFixture
class PhysicalRouterFixture(PhysicalDeviceFixture):
'''Fixture to manage Physical Router objects
Mandatory:
:param name : name of the device
:param m... | [
"lmadhusudhan@juniper.net"
] | lmadhusudhan@juniper.net |
e7bc050fb62cf8278450687a7d0018fb13307a67 | 5cff419c080e87ac82e17c9cee8329faa6b66188 | /eventsourcing/tests/test_thespian_runner_with_django.py | d58bb32f104b867ffd389700578e99a714b32868 | [
"BSD-3-Clause"
] | permissive | Shaibujnr/eventsourcing | 56ab35e44a634822a3ce22562c20cfa83b24a73f | a2d8a7ff728f89714f0529791f3bd56498297784 | refs/heads/master | 2022-06-05T04:46:18.159071 | 2020-03-11T18:46:44 | 2020-03-11T18:46:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from eventsourcing.tests.sequenced_item_tests.test_django_record_manager import (
DjangoTestCase,
)
from eventsourcing.application.django import DjangoApplication
from eventsourcing.tests.test_thespian_runner import TestThespianRunner
class TestThespianRunnerWithDjango(DjangoTestCase, TestThespianRunner):
inf... | [
"john.bywater@appropriatesoftware.net"
] | john.bywater@appropriatesoftware.net |
bf093a092413ad521ff3443ebcd6a938f922c0ff | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/estimator/training.py | cde5e25c415bc1d204d3f60f2bd3ffb0f37cc756 | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 180 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/estimator/training.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
106728c42ed86048ef123884e38430115efdd1af | c2d4968c32a4356138a82d9684c86d8759b6f47b | /groupdocs/models/SignatureEnvelopeDocumentsResult.py | 30939f8d6839534c8d55bb88f5e1c622bf254a4a | [] | no_license | liosha2007/groupdocs-heroku-examples-for-python | 77ffe432883f266dc049a8bc4e966fd86a717577 | a96a89c7d9e8798fd5bf769e0c929dfaa1702bf9 | refs/heads/master | 2021-01-01T19:43:27.526546 | 2013-08-05T05:43:34 | 2013-08-05T05:43:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | #!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
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... | [
"aleksey.permyakov@groupdocs.com"
] | aleksey.permyakov@groupdocs.com |
e6108fb32123d4fbee90708c4cf86bb1e6b75ce0 | ff23e5c890216a1a63278ecb40cd7ac79ab7a4cd | /clients/kratos/python/test/test_message.py | d7bbd553c9e96215a809d9ad5f8b74270dafedb9 | [
"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 | 1,284 | py | """
Ory Identities API
This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more. # noqa: E501
The version of the OpenAPI document... | [
"3372410+aeneasr@users.noreply.github.com"
] | 3372410+aeneasr@users.noreply.github.com |
a87b819f18508bfd72a1ccd2fc1fce02dfdf811c | 4133fce90189868a246e916a5851dc05bf5e2172 | /eOwner/bookbus/forms.py | 6c08628a00148c0cc38fe490fd975d8d288ad4a9 | [] | no_license | achanyasuresh12/eowner | 47ea8dfeb7dc63c1ea934d1d05f0714f14a3fde8 | bcfd6d3069a34e3bde7c760a60d43a7553078b23 | refs/heads/master | 2020-04-07T19:10:59.995107 | 2018-11-22T04:24:15 | 2018-11-22T04:24:15 | 158,639,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from django import forms
from . import models
class bookbus_forms(forms.ModelForm):
class Meta:
model = models.Bookbus
fields = ["source", "destination", "date"]
| [
"45094866+achanyasuresh12@users.noreply.github.com"
] | 45094866+achanyasuresh12@users.noreply.github.com |
a161fd71a289da90daa7f083d6e9669340fa178b | 5c7da7dabdc076ad7113ccd20561a8bbf5f9a70e | /documents/migrations/0039_auto_20200921_1652.py | 14c75f0cf092c56569d4c8734f95d131ab823e9a | [] | no_license | aqcloudacio/cloudaciofeez | 2499fb5fc5334fa871daab2abea6c34bfa8c7667 | 8399560ece9aa10a6d6801f42c027dca26a65936 | refs/heads/master | 2023-02-27T22:36:20.501159 | 2021-02-11T00:03:46 | 2021-02-11T00:03:46 | 337,887,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # Generated by Django 2.2.7 on 2020-09-21 06:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('documents', '0038_theme_default'),
]
operations = [
migrations.AlterField(
model_name='structur... | [
"alejandro.quintero@clouxter.com"
] | alejandro.quintero@clouxter.com |
fcf1b34b972a4a2c7edd899130321198c2ddb57c | ff62ac78e34cdaf6d5d3bc7230a4f4aee740b142 | /HigherLowerGameProject/main.py | 6276b3debd940e6df69de059668e95a99a27fdd8 | [] | no_license | suriyaganesh97/pythonbasicprogs | 7ff67ca6193150d9c61e1eb10e2727694d9b7c6e | ffb599f1804654785757fea4b0f36b11094a4fae | refs/heads/master | 2022-01-03T22:07:27.625938 | 2022-01-02T11:35:28 | 2022-01-02T11:35:28 | 253,271,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | import random
from gameData import data
#print two random person initially followers store in variable
dict_1 = random.choice(data)
dict_1_follower_count = dict_1["follower_count"]
is_game_over = False
current_score = 0
while not is_game_over:
dict_2 = random.choice(data)
dict_2_follower_count = dict_2["follo... | [
"63084594+suriyaganesh97@users.noreply.github.com"
] | 63084594+suriyaganesh97@users.noreply.github.com |
6e599fcae811e39f224deb33642d5b53f53e2cc0 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/anagram/aa70888571c94b16a02aa4c0091b8a3d.py | c2c1e5316f2a4644a2bd524ee4689277fd168164 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 525 | py | def detect_anagrams(word, list):
final = []
count = {}
for s in word.lower():
if count.has_key(s):
count[s] += 1
else:
count[s] = 1
for w in list:
if w.lower() != word:
wcount = {}
for s in w.lower():
i... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
3aefdabdebf9932e2ea0544a8fd53183c0ecebdf | c89543dd926c1787c40616ed174a3d1371c54449 | /superset/utils/date_parser.py | 7e79c72f1eb780198498781f58549b99fbbf3d9a | [
"Apache-2.0",
"OFL-1.1"
] | permissive | j420247/incubator-superset | 7c7bff330393f0e91f5e67782f35efe8c735250a | c9b9b7404a2440a4c9d3173f0c494ed40f7fa2bd | refs/heads/master | 2023-03-11T21:53:16.827919 | 2023-02-03T19:04:17 | 2023-02-03T19:04:17 | 157,780,350 | 1 | 1 | Apache-2.0 | 2023-03-07T00:14:51 | 2018-11-15T22:24:29 | TypeScript | UTF-8 | Python | false | false | 17,370 | py | # 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"); you may not u... | [
"noreply@github.com"
] | j420247.noreply@github.com |
897f1e3a9e728d1fa9d621e94dc4fd26b2179861 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_203512.89+152029.3/sdB_sdssj_203512.89+152029.3_lc.py | ed34883c535f2590c57d4ff4b91b6ce2db5f9d5f | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[308.803708,15.341472], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_203512.89+152029.3/sdB_sdssj_203512.89+152029.3_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.01038889... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
b28f4481f84cc96b3adba71e3715fbe9ff783705 | f2cece9e5f2af8482c12fc7ad8b3a7e63e6de052 | /tbot/handlers/user/start.py | 4b2ae37538b4ce57deaca2c8b96805159c068fa2 | [] | no_license | nikifkon-old/questionnaire_bot | beadc716ca0a7cbfa6a4c47039c00123e8892eb4 | 3cbf889c7edf4ba438ce7e46c5f9b67efe5d7e72 | refs/heads/master | 2023-04-24T07:12:28.227259 | 2020-08-03T09:14:35 | 2020-08-03T09:14:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | from aiogram import types
from tbot import messages, schemas
from tbot.bot import bot
from tbot.handlers.utils import process_if_user_exit, send_welcome_message
from tbot.utils import save_user
from .register import bot_register
async def bot_start(message: types.Message):
"""
/start command handler
"""... | [
"kostya.nik.3854@gmail.com"
] | kostya.nik.3854@gmail.com |
f811d2d33cb606d533dd48f19f66579b24eae8f0 | 81d2e3b6fe042e70cc2abb7f549f60ba44928fdf | /binarysearch/167.two-sum-ii-input-array-is-sorted.py | 5263d1575f7673caccb884b02909c3aa8860a62f | [] | no_license | weizhixiaoyi/leetcode | a506faed3904342ed65234864df52071977d544d | 6114ebacc939f48a39a56d366646b0f28b4f6c1a | refs/heads/master | 2022-12-22T03:52:07.936800 | 2020-09-29T07:49:52 | 2020-09-29T07:49:52 | 202,662,720 | 5 | 2 | null | 2019-08-17T09:24:49 | 2019-08-16T05:16:08 | C++ | UTF-8 | Python | false | false | 1,303 | py | # -*- coding:utf-8 -*-
from typing import List
class Solution:
# def twoSum(self, numbers: List[int], target: int) -> List[int]:
# nums_len = len(numbers)
#
# def binary_search(line, k):
# left, right = 0, len(line) - 1
# while left <= right:
# mid = le... | [
"zhenhai.gl@gmail.com"
] | zhenhai.gl@gmail.com |
79f82030a48735a86adfccce5e9f80853fc062fe | 81a62053841c03d9621fd31f8e7984c712c7aed2 | /zoo/BEVDepth/exps/mv/bev_depth_lss_r50_256x704_128x128_20e_cbgs_2key_da.py | 5ed3cd169fb3435f26326fe5c7432fe9302e61be | [
"MIT"
] | permissive | Daniel-xsy/BEV-Attack | d0eb3a476875f9578c53df9bcb21564dea18ce0c | 7970b27396c1af450c80b12eb312e76a8ab52a0a | refs/heads/master | 2023-05-23T01:13:44.121533 | 2023-02-22T05:48:14 | 2023-02-22T05:48:14 | 540,328,937 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,038 | py | # Copyright (c) Megvii Inc. All rights reserved.
"""
mAP: 0.3484
mATE: 0.6159
mASE: 0.2716
mAOE: 0.4144
mAVE: 0.4402
mAAE: 0.1954
NDS: 0.4805
Eval time: 110.7s
Per-class results:
Object Class AP ATE ASE AOE AVE AAE
car 0.553 0.480 0.157 0.117 0.386 0.205
truck 0.252 0.645 0.2... | [
"1491387884@qq.com"
] | 1491387884@qq.com |
54b776d05894dbd7304491d291348150d9dee7f7 | 251af797da940483d843077cfe1912acd019e73e | /sis/schedule/migrations/0001_initial.py | bddf4e281d27779ecb610321405d32bca51de9cf | [] | no_license | mitctc/sis | 951d57fce1376947cbc6a00594d17c1cfb5f78d6 | 9a955b6c12cae977bd45ff6025a87b492fa0f6e1 | refs/heads/master | 2021-05-30T13:12:10.705276 | 2016-02-14T02:23:01 | 2016-02-14T02:23:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-09 14:09
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"sumudu.susahe@gmail.com"
] | sumudu.susahe@gmail.com |
27e371636f02b8abf128178364910ed7e959ff49 | 891902687207fb335b65dbb8d31d6e20301764f9 | /pe103.py | 87cd77af804629f8d4877da843a2d8a0c204e281 | [] | no_license | maecchi/PE | 93bd050eaca2733aa37db6ca493b820fe3d7a351 | 3d9092635807f0036719b65adb16f1c0926c2321 | refs/heads/master | 2020-05-04T16:38:36.476355 | 2012-06-10T05:26:10 | 2012-06-10T05:26:10 | 1,746,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#
# pe103.py - Project Euler
#
# 題意の規則に乗っ取って条件を作成する
from itertools import *
N = 7
#
def findsSum(a, n):
if n == 0:
return True
elif len(a) == 0:
return False
elif n < 0:
return False
else:
a2 = a[1:]
return any((findsSum(a2, n - a[0]), findsSum(a2, n)))
#... | [
"aos81922710@yahoo.co.jp"
] | aos81922710@yahoo.co.jp |
c174095d9ba03d8fb0442391289c0b3348b8c63e | ee052fca7b7cdf875b3e18f28f6102395407d584 | /python/example/objects.py | 2218d352afd3c9582e59cca26ab888f4c26106a8 | [] | no_license | vimm0/algorithm-challenges | 8313813dbbba0dff4c0d872d68c74f9b508d956f | f4ae12b7a33340b8f3c4ce105b7ef3fb9f24e613 | refs/heads/master | 2020-03-26T23:51:52.913657 | 2018-10-30T16:16:52 | 2018-10-30T16:16:52 | 145,573,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | #!/usr/bin/python
from builtins import staticmethod, str
class InvoiceItem:
"""
An item within the invoice
"""
def __str__(self):
return self.text + ' ' + str(self.amt)
def __init__(self, **kwargs):
self.text = ''
self.amt = 0
if kwargs['text'] is not None:
... | [
"vimmrana0@gmail.com"
] | vimmrana0@gmail.com |
19493802781bbd6845ba8f897d5a7004bda11c51 | e4a428b91a6c4ff15f98a8109bfddbb3182fa9f3 | /Lib/site-packages/awscli/argprocess.py | 1d91e63e952a37550a1a9f66bf68e2c8aeac7924 | [
"MIT"
] | permissive | bopopescu/django-estore | 59a906f9cbc7da2f1aa9dda08ac05595744975a9 | c092ffa965b8ef68e71d27d34a17fde1beacd90e | refs/heads/master | 2022-11-22T14:11:13.051232 | 2017-03-15T03:49:15 | 2017-03-15T03:49:15 | 281,940,168 | 0 | 0 | MIT | 2020-07-23T12:04:17 | 2020-07-23T12:04:17 | null | UTF-8 | Python | false | false | 20,751 | py | # Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | [
"ahmed.nadim59@gmail.com"
] | ahmed.nadim59@gmail.com |
b1aa1154a111a4802c9c3e765a47373412a8820d | e52afdf311d9b682fd2edfa2ac131bd83bbe63eb | /Week 2/1-2/knn.py | 54420f3213ba04fc5bc1f0cd9f67980cd384cb91 | [] | no_license | YashwanthMN1/MLEdyoda | cc1185e4618e896764a0b01773a886e49ba9b8e7 | 36a9470729c57c7b6b742bac239e9352f8b2a133 | refs/heads/main | 2023-05-02T11:51:11.801693 | 2021-05-25T13:52:24 | 2021-05-25T13:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 9 13:11:46 2021
@author: RISHBANS
"""
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2,3]].values
y = dataset.iloc[:, 4].values
X = X.astype(float)
y = y.astype(float)
#... | [
"rishibansal02@gmail.com"
] | rishibansal02@gmail.com |
2cd3388cd66000a0c14eee28eb57bb0be2033b95 | 6ccd833a6bc8eb2d7cadbaf64ba9351d87c8d1bd | /Handlers/User/Driver.py | db2b2045ecd5c5a92ae606173af52da3ffa7ed4a | [] | no_license | elaineo/barnacle-gae | e00691235160d140fb5004b34988d30811ef4102 | c706683cf448dc5763bb2ce8ea2f5968fcefb375 | refs/heads/master | 2021-01-01T03:47:28.083451 | 2014-11-18T16:47:42 | 2014-11-18T16:47:42 | 59,609,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | from Handlers.BaseHandler import *
from Models.ImageModel import *
from Models.User.Account import *
from Models.User.Driver import *
from Handlers.ImageHandler import *
from google.appengine.api import images
from google.appengine.api import users
import logging
import json
class DriverHandler(BaseHandler):
def g... | [
"elaine.ou@gmail.com"
] | elaine.ou@gmail.com |
33a624738cbd967c7805dc0b4eae16b9d1fecd8b | ba2dbc19e899faaa17b994a1224e455a3de5b9ad | /01_jump to python/CHAP07/2_Regular_Expression_Practice/q8.py | b16778f7c4b0ffa22de4f29cb9db0a0d2a3226d3 | [] | no_license | xsky21/bigdata2019 | 52d3dc9379a05ba794c53a28284de2168d0fc366 | 19464a6f8862b6e6e3d4e452e0dab85bdd954e40 | refs/heads/master | 2020-04-21T10:56:34.637812 | 2019-04-16T04:16:27 | 2019-04-16T04:16:27 | 169,503,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # 숫자 0 혹은 알파벳 b 여러 개가 알파벳 a 뒤에오는 문자열을 찾는 파이썬 프로그램을 만들어라
import re
def matching(answer):
p = re.compile("[A-Z][a-z]+")
m = p.search(answer)
print(m)
matching("Azzzzz")
matching("AAaaaa")
matching("AA")
matching("abbb")
#여기선 b가 세 개일 때, b 세개를 출력해주지만. b2개를 출력시키고 싶다면 |를 써야된 | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
445d03f9d2bd2d6754c4785b3446d88b3eddc2f4 | 699a43917ce75b2026a450f67d85731a0f719e01 | /using_python/148_sort_for_listNode.py | 8638dd3b7dfca07b44ec645edaf51ef5fb6dd872 | [] | no_license | wusanshou2017/Leetcode | 96ab81ae38d6e04739c071acfc0a5f46a1c9620b | c4b85ca0e23700b84e4a8a3a426ab634dba0fa88 | refs/heads/master | 2021-11-16T01:18:27.886085 | 2021-10-14T09:54:47 | 2021-10-14T09:54:47 | 107,402,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def sortList(self, head: ListNode) -> ListNode:
if not head.next:
return []
pre = head.val
dummy = head
while ... | [
"252652905@qq.com"
] | 252652905@qq.com |
c2cfa7dbfec1bae1baa2995125e12cacf16d1d4b | fab215713c1b72974a0dc7db73a20e4b5abefe4a | /简明python教程/data-structure/tuple/using_tuple.py | d8e928575aac20cd564ebf278957b92d0c8a5898 | [] | no_license | cwdgit/learn-python | e6774dcea506cfa461bfccc001205bf75a1d126b | c5ba97a917bd2b8d7b767ce704ca5ff441b9dfee | refs/heads/master | 2020-03-24T16:41:47.837953 | 2018-08-23T03:13:04 | 2018-08-23T03:13:04 | 142,832,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!/usr/bin/python
#filename: using_tuple.py
zoo=('wolf','elephant','penguin')
print zoo
print 'number of animals in the zoo is', len(zoo)
new_zoo=('monkey','dolphin',zoo)
print 'number of animals in the zoo is ', len(new_zoo)
print 'all animals in new zoo are',new_zoo
print 'animals brought from old zoo are ' ,new_zoo[... | [
"you@example.com"
] | you@example.com |
9a85a83020da95c6010ac99ac447040d1f4c93d9 | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/pandas/tests/reshape/merge/test_join.py | c33443e24b268ece2c4113b751a2b5b8929e7c99 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 31,165 | py | import numpy as np
from numpy.random import randn
import pytest
from pandas._libs import join as libjoin
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, Series, concat, merge
import pandas._testing as tm
from pandas.tests.reshape.merge.test_merge import NGROUPS, N, get_test_data
a_ = np.array
... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
b0b6eab9b83d55d521265d739f7a459d8fef349c | 860c31e414c4c280b70ec0872042d715a2d56978 | /torch_ecg/models/cnn/efficientnet.py | ee0521f6eb097623f4385fdca0f8d28cfb057f82 | [
"MIT"
] | permissive | DeepPSP/torch_ecg | 255e49ff436e13044a1f049141f982680e56970e | a40c65f4fefa83ba7d3d184072a4c05627b7e226 | refs/heads/master | 2023-09-01T06:47:17.153216 | 2023-08-31T18:00:47 | 2023-08-31T18:00:47 | 298,482,237 | 111 | 16 | MIT | 2023-08-21T11:25:07 | 2020-09-25T06:03:17 | Python | UTF-8 | Python | false | false | 2,317 | py | """
EfficientNet.
References
----------
1. Tan, M., & Le, Q. V. (2019). Efficientnet: Rethinking model scaling for convolutional neural networks. arXiv preprint arXiv:1905.11946.
2. Tan, M., & Le, Q. V. (2021). Efficientnetv2: Smaller models and faster training. arXiv preprint arXiv:2104.00298.
3. https://github.com/g... | [
"wenh06@gmail.com"
] | wenh06@gmail.com |
02850738d65612e07d146e31e9908775f0fcd8a5 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayEbppInstserviceDeductSignResponse.py | c249afbff2e18df95caf317c18a1120b1533b56f | [
"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 | 1,026 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayEbppInstserviceDeductSignResponse(AlipayResponse):
def __init__(self):
super(AlipayEbppInstserviceDeductSignResponse, self).__init__()
self._error_code = None
... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
b48ba99ef0bcc9fec5618036a29b6dce473fd246 | f22d31484a12d001826c1775a6f2d245a720fce8 | /Introdução à Programação com Python/Do autor/Códigi fonte e listagem/listagem/capitulo 08/08.26 - Funções como parâmetro.py | fda15eae9a584a943ce075871ac6c0de07ce0b35 | [] | no_license | eduardoprograma/linguagem_Python | 9eb55f0a5a432a986e047b091eb7ed7152b7da67 | 942aba9146800fc33bbea98778467f837396cb93 | refs/heads/master | 2021-07-07T20:48:37.673101 | 2020-07-31T21:24:17 | 2020-07-31T21:24:17 | 159,852,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2017
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Primeira reimpressão - Outubro/2011
# Segunda reimpressão - ... | [
"eduardo.candido@fatec.sp.gov.br"
] | eduardo.candido@fatec.sp.gov.br |
cf444680091fffcf6b4f9fadb2a2ffe558bc5918 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/websms/testcase/firstcases/testcase13_003.py | 0e57a4f0d4f2d8752508b328d7bed313c340ee1a | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,362 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
f1abe9b49397d2ab709e03ce4589f5b19498c455 | 3b574a8d1f9cd0bde99f2e94c3c6e7b59ab46ee3 | /project/apps/core/fields.py | ac9c8184ec24e84bb7848ffeecbfdcb6a207b9c7 | [
"BSD-2-Clause"
] | permissive | barberscore/archive-api | 7ac908d2754f6fa5c387bf6e49c257424887f9b3 | d6cf8867ad60c6ae334a555881c06c71069fa12c | refs/heads/master | 2023-02-24T19:45:23.973475 | 2022-01-26T14:35:10 | 2022-01-26T14:35:10 | 202,747,844 | 0 | 0 | BSD-2-Clause | 2023-02-08T00:52:56 | 2019-08-16T15:01:15 | Python | UTF-8 | Python | false | false | 4,383 | py | import os
import string
from datetime import date
import phonenumbers
import six
import pytz
from django.db.models import EmailField, CharField, DateField
from django.core.validators import validate_email
from django.core.exceptions import ValidationError
from django.utils.deconstruct import deconstructible
from rest_f... | [
"dbinetti@gmail.com"
] | dbinetti@gmail.com |
a737f00847838c5d50695751bc37fa22764d4575 | 835db5ec0fc127df1de58a9a3af4a869a1a7cd84 | /assignments/strings/word_count.py | fc5dd5e977ac303db00540d29a365b626279f30b | [] | no_license | thorhilduranna/2020-3-T-111-PROG | 3ba097e1b54d68bdd6efbf1d7f90911a9336fa5a | c9758b61256aa6e39a3308e576c8ad0bf2b6d027 | refs/heads/master | 2023-02-09T23:39:22.879653 | 2021-01-07T12:59:19 | 2021-01-07T12:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | a_str = input("Input a string: ")
inside_word = False
no_of_words = 0
no_of_letters = 0
for char in a_str:
if char.isalpha() or char.isdigit():
no_of_letters += 1
if not inside_word:
no_of_words += 1
inside_word = True
else:
inside_word = False
print("No. of letter... | [
"hrafnl@gmail.com"
] | hrafnl@gmail.com |
a2ce63face177225a9ae85576b4b6a7d69f8158e | 457a71c31c5bb992616bc2c8067817436c416784 | /src/teewtme/tweets/forms.py | 8dc47f94a55be3f0ebcf51740d42dfd2d3f6e57e | [] | 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 | 676 | py | from django import forms
from .models import Tweet
from django.contrib.auth import get_user_model
class TweetModelForm (forms.ModelForm):
content = forms.CharField(required=False,label="",
widget=forms.Textarea(
attrs={'placeholder':"your tweet",
... | [
"mahmoudzeyada440@gmail.com"
] | mahmoudzeyada440@gmail.com |
bf533929e72d3e88457deb66a33be5a79bd0fc16 | bce3601042879a059bf878a9d7972967432fc154 | /scripts/DA_join_apps_rfcd_seos_2.py | 1c60d205c037784111dcff3a28881aad218f95e7 | [] | no_license | diegoami/DSRetreat_Melbourne_DIOLEM | 8aa49d0f178651af9f0c3ed23c0155790b205160 | 7e4df7a48f650360d3e34c700e17a84b1f7511b1 | refs/heads/master | 2021-07-08T08:55:56.580343 | 2017-10-06T23:02:07 | 2017-10-07T18:11:25 | 105,751,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | import pandas as pd
seo_train = pd.read_csv('../data/train_seo_mod.csv')
rfcd_train = pd.read_csv('../data/train_rfcd_mod.csv')
app_train = pd.read_csv('../data/train_apps_mod.csv')
seo_test = pd.read_csv('../data/test_seo_mod.csv')
rfcd_test = pd.read_csv('../data/test_rfcd_mod.csv')
app_test = pd.read_csv('../data/t... | [
"diego.amicabile@gmail.com"
] | diego.amicabile@gmail.com |
59e4b2564ddea552ed9897307d3df7b9d25bb025 | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/collective.monkeypatcher-1.0.1-py2.7.egg/collective/monkeypatcher/tests/dummypatch.py | f9a09150452fd23fb7a4f27b88e58122d022afb5 | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | # -*- coding: utf-8
# $Id: dummypatch.py 84132 2009-04-12 21:13:03Z glenfant $
"""Class, function and patch for test cases"""
class Dummy(object):
"""As said"""
def someMethod(self):
"""someMethod docstring"""
return"original"
def patchedMethod(self):
"""patchedMethod docstring"""
retu... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
cb81bed189406073d2dd70cd655ed560a290f09f | 1f886c4ba2bd9b440da96e67f1f07d11d1a7bebc | /jsoncomment/wrapper.py | 32af3ee60e114cdbef9e127b1061647892f4203c | [] | no_license | halfbrained/cuda_spell_checker | c9c56db7f9d0b61839e37da67dab1498cdbb1911 | bee0ac8a3481e92424488bcde0e7fd2020341819 | refs/heads/master | 2023-03-16T11:23:49.375473 | 2021-03-07T20:22:22 | 2021-03-07T20:22:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py |
################################################################################
from types import ModuleType
################################################################################
# A Class to simulate dynamic inheritance
# Allows to change behaviour of multiple modules or classes, with the same
# inte... | [
"support@uvviewsoft.com"
] | support@uvviewsoft.com |
dabb39f9ba1d0bfc87c5bf1f2da1b479cbee8b42 | c46754b9600a12df4f9d7a6320dfc19aa96b1e1d | /src/transformers/models/blenderbot_small/modeling_blenderbot_small.py | dc2f1512ffe6922f5639e767f70dc2d58c8daba1 | [
"Apache-2.0"
] | permissive | huggingface/transformers | ccd52a0d7c59e5f13205f32fd96f55743ebc8814 | 4fa0aff21ee083d0197a898cdf17ff476fae2ac3 | refs/heads/main | 2023-09-05T19:47:38.981127 | 2023-09-05T19:21:33 | 2023-09-05T19:21:33 | 155,220,641 | 102,193 | 22,284 | Apache-2.0 | 2023-09-14T20:44:49 | 2018-10-29T13:56:00 | Python | UTF-8 | Python | false | false | 76,130 | py | # coding=utf-8
# Copyright 2021 The Facebook, Inc. and The HuggingFace Inc. team. 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/L... | [
"noreply@github.com"
] | huggingface.noreply@github.com |
be45c7de7915d1e3540fc93c4a9d108362a73d1c | 846c2bc8e37673476af67c7c6dd2f64faa4213f1 | /autofeat/generate_error.py | 8fb8b2112890d300b1dbd52670c2fbf5f914e6e1 | [
"MIT"
] | permissive | FelixNeutatz/LassoLarsCVBugGenerator | b759221da9e438ce5c9ed4c229a411fb10424646 | 40aa61e1164676cc4e55ae145c41304b6e5c36c0 | refs/heads/master | 2020-04-25T16:34:00.320062 | 2019-03-19T13:19:25 | 2019-03-19T13:19:25 | 172,917,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from autofeat import AutoFeatRegression
import numpy as np
import pandas as pd
import sklearn.linear_model as lm
X = np.load('data/X.npy')
target = np.load('data/y.npy')
afreg = AutoFeatRegression(n_jobs=4)
try:
df = afreg.fit_transform(X, target)
except:
eps = 1e-08
X = np.load('/tmp/X_error.npy')
t... | [
"neutatz@googlemail.com"
] | neutatz@googlemail.com |
d58edd9ba4df1a10a0c057dbc474e1f1af8907ec | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/b451bd6e6c110e9e39aef80f9b63f26a2e0ec713settings.py | b451bd6e6c110e9e39aef80f9b63f26a2e0ec713 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 522 | py | #
# enable giraffe's requirements and some of the giraffe apps
#
INSTALLED_APPS = (
# ...
# all your other apps, plus:
'south',
'djcelery',
'giraffe.aggregator',
'giraffe.publisher',
)
#
# django-celery settings:
#
# http://celeryq.org/docs/django-celery/getting-started/first-steps-with-d... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
f8a5912c87c8cc8130cf9cee0bde06306260708d | 0188f7dfe26a2b7f925814f202a9be653abcb859 | /prodinward/models.py | a30818056578c48db2b3b619a37bf03fb39e0f50 | [] | no_license | viralsir/Furniture_Inhouse_app | d5ac0a764681816dd63451b7d82303f1538ef2ec | d194251e93c537305d97eff968a5584a4c9de12b | refs/heads/master | 2023-06-15T16:03:07.386722 | 2021-07-08T10:43:14 | 2021-07-08T10:43:14 | 377,119,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from django.db import models
from django.urls import reverse
from product.models import product
# Create your models here.
class prodinward(models.Model):
prod = models.ForeignKey(product, on_delete=models.CASCADE, related_name="product")
quantity = models.CharField(max_length=100)
rate = models.FloatField(... | [
"viralsir2018@gmail.com"
] | viralsir2018@gmail.com |
768714cdb17e4f577667dce3bd002cfd50f0e577 | c5675cf0c2a83075e8a76ff54caa7384e4f4d554 | /mdevbox/forms.py | c8320d31b7b1db820b88db4d693ec0ff62d96072 | [] | no_license | Quantumke/mdevbox | 68969742a828e22166750c0dfb00d5d3b21f30da | 6d696423af00f7cd899e5bcfa8dc3f792de19891 | refs/heads/master | 2016-09-13T06:23:21.595605 | 2016-05-06T08:47:13 | 2016-05-06T08:47:13 | 56,508,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | from mdevbox.models import *
from django.contrib.auth.models import User
from django import forms
from .models import *
#-------------------------------------------------------------------------------------------------------------------- user auth
class developersemployment(forms.ModelForm):
class Meta:
model... | [
"nguruben@gmail.com"
] | nguruben@gmail.com |
0522f8ff0a25769612c10267738a1c953edf88f6 | 961ddbe3e6a75339cf94679e0a7d313cd7a6c1d9 | /goods/urls.py | 3a54b874b8b147e627a2bbb7a0753d45296a6c58 | [
"Apache-2.0"
] | permissive | chinxianjun2016/GreaterWMS | 41b3a8d855f7f00f5bd91364339640f049a3b7dc | aacd0e15e0114f103eb57002e93670c008cce63b | refs/heads/master | 2023-02-07T13:24:10.313463 | 2021-01-02T01:52:41 | 2021-01-02T01:52:41 | 322,737,456 | 0 | 0 | Apache-2.0 | 2021-01-02T01:52:42 | 2020-12-19T00:50:07 | null | UTF-8 | Python | false | false | 1,112 | py | """singosgu URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"singosgu@gmail.com"
] | singosgu@gmail.com |
e9bf2dd1bb681537e355f54163005cd1bb9143ea | 8839bd1f2e35726b6c8066985690fa2fa86b09a6 | /5.pyAI-K210/1.基础实验/4.外部中断/main.py | 5e4efe593247c0e8f7668025ad9582d34f1f0e97 | [
"MIT"
] | permissive | elektrik-elektronik-muhendisligi/MicroPython-Examples-1 | a9532b06aba470f7f26f841929f4fb145549f70b | f7b08e95ff73e3417af21918c9c6bcf2f83281c6 | refs/heads/master | 2021-05-25T22:58:36.207098 | 2020-04-01T09:50:53 | 2020-04-01T09:50:53 | 253,956,073 | 1 | 0 | null | 2020-04-08T01:39:46 | 2020-04-08T01:39:45 | null | UTF-8 | Python | false | false | 726 | py | '''
实验名称:外部中断
版本: v1.0
日期: 2019.12
作者: 01Studio
说明:通过按键改变 LED 的亮灭状态(外部中断方式)
'''
from Maix import GPIO
from fpioa_manager import fm
import utime
#注册IO,注意高速GPIO口才有中断
fm.register(12, fm.fpioa.GPIO0)
fm.register(16, fm.fpioa.GPIOHS0)
#构建lED和KEY对象
LED_B=GPIO(GPIO.GPIO0,GPIO.OUT,value=1)
KEY=GPIO(GPIO.GPIOHS0, GPIO.IN, GP... | [
"237827161@qq.com"
] | 237827161@qq.com |
0aef20c455303401003a675deed4e7888a3a0865 | a86ca34e23afaf67fdf858df9e47847606b23e0c | /lib/temboo/Library/Amazon/Marketplace/Reports/MerchantListingsReport.py | f9c80bd5c6ad689f862a6e51a89af891e22ad131 | [] | no_license | miriammelnick/dont-get-mugged | 6026ad93c910baaecbc3f5477629b0322e116fa8 | 1613ee636c027ccc49c3f84a5f186e27de7f0f9d | refs/heads/master | 2021-01-13T02:18:39.599323 | 2012-08-12T23:25:47 | 2012-08-12T23:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,736 | py |
###############################################################################
#
# MerchantListingsReport
# Returns a tab-delimited report of active listings.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
fro... | [
"miriam@famulus"
] | miriam@famulus |
d404e0bda811fd33c2e96dbfaa0870131e8184a9 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /toontown/speedchat/TTSCHalloweenMenu.py | 9451e1ceac323d44fae4773d6c57b1a6f0a65bf7 | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | # 2013.08.22 22:25:08 Pacific Daylight Time
# Embedded file name: toontown.speedchat.TTSCHalloweenMenu
from direct.showbase import PythonUtil
from otp.speedchat.SCMenu import SCMenu
from otp.speedchat.SCMenuHolder import SCMenuHolder
from otp.speedchat.SCStaticTextTerminal import SCStaticTextTerminal
from otp.otpbase i... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
5cadfcc566e5d20ec4df60ec331f7b1069d07004 | 5d3c546ed535fda1a62c2bd1a2dd36d86ea3049d | /manage.py | 55843edd0f9d4f7175279abbc27ee7621badd553 | [] | no_license | rcthomas/decals-web | 6e642082c7daf22f41f3f1ed0ea4db6f74bed682 | 64467865227d33124f42febdbd09e49e64e0dbfa | refs/heads/master | 2021-05-10T15:46:42.048404 | 2018-01-22T20:06:09 | 2018-01-22T20:06:09 | 118,561,087 | 0 | 0 | null | 2018-01-23T05:13:27 | 2018-01-23T05:13:26 | null | UTF-8 | Python | false | false | 249 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "decals.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"dstndstn@gmail.com"
] | dstndstn@gmail.com |
690d8d6d04910f8f8a9d04cfd88444c258e5ac33 | 00fc9d9e0de636809a66a05ddc8264682fb46297 | /.history/implementations/pixelda/pixelda_try_20190106191202.py | 947a40ba80662b98b8dc38df4f9ffb34f19e695c | [
"MIT"
] | permissive | Napkin-DL/PyTorch-GAN | 56746d490da1064cd895be4825f8b8c96acb36fa | 4668fb434a74a4e4771631944e4abfb0ec1c8795 | refs/heads/master | 2020-04-14T07:55:12.381763 | 2019-01-06T11:51:52 | 2019-01-06T11:51:52 | 163,724,755 | 0 | 0 | MIT | 2019-01-01T08:59:51 | 2019-01-01T08:59:51 | null | UTF-8 | Python | false | false | 17,169 | py | import argparse
import os
import numpy as np
import math
import itertools
import torchvision.transforms as transforms
from torchvision.utils import save_image
from torch.utils.data import DataLoader
from torchvision import datasets
from torch.autograd import Variable
from mnistm import MNISTM
import torch.nn as nn
... | [
"dolpal2@gmail.com"
] | dolpal2@gmail.com |
05391db40e348f679bd0fb7f3aff7fb9312e86dc | 6515dee87efbc5edfbf4c117e262449999fcbb50 | /cn/437.py | 9db648c3425be2e1fcd9d392cba20e26e2e594f9 | [] | no_license | wangyunge/algorithmpractice | 24edca77e180854b509954dd0c5d4074e0e9ef31 | 085b8dfa8e12f7c39107bab60110cd3b182f0c13 | refs/heads/master | 2021-12-29T12:55:38.096584 | 2021-12-12T02:53:43 | 2021-12-12T02:53:43 | 62,696,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def pathSum(self, root, targetSum):
"""
:type root: TreeNode
:type t... | [
"wangyunge1@yahoo.com"
] | wangyunge1@yahoo.com |
2ce8806bfe4f7d6fc569bc79af8db82d2fc93e01 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_083/ch87_2020_06_22_18_11_23_637038.py | a6ce84b797d6cb26843f6f35d6d9f2edd6852dc2 | [] | 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 | 264 | py | preco_total = 0
with open('churras.txt', 'r') as arquivo:
conteudo = arquivo.readlines()
for contador in conteudo:
listas = conteudo.strip()
lista = listas.split(',')
preco_total += int(listas[1])*float(listas[2])
print(preco_total) | [
"you@example.com"
] | you@example.com |
6e84f34b20b277f4cc2f6eed0c7053350f95dd5d | 0f8bb3285ae796ad0c000fb7f0d897bf9d92aef3 | /prepare_data.py | 0fc88eeb4834c5c2a6e425d93e78f9c45049e96b | [
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | viuts/stylegan2-pytorch | 3e23479ec53d5d8f39fcae6f5b95c2bb1f005a88 | 2fdd10b3e9e3261390032963c59646cd298a60b1 | refs/heads/master | 2020-12-04T22:04:35.950846 | 2020-01-11T05:08:35 | 2020-01-11T05:08:35 | 231,915,562 | 0 | 0 | NOASSERTION | 2020-01-05T12:40:25 | 2020-01-05T12:40:24 | null | UTF-8 | Python | false | false | 2,189 | py | import argparse
from io import BytesIO
import multiprocessing
from functools import partial
from PIL import Image
import lmdb
from tqdm import tqdm
from torchvision import datasets
from torchvision.transforms import functional as trans_fn
def resize_and_convert(img, size, quality=100):
img = trans_fn.resize(img,... | [
"kim.seonghyeon@snu.ac.kr"
] | kim.seonghyeon@snu.ac.kr |
1e4a47dbddec9e8e9aea682ee7b2c0fd3003f97c | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/copp/arpdrop1year.py | 3bffde23d40d502aac18f85c8cd0529f3385b7c4 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,909 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
77bed12fb92ed9a4be75f7a3e3e79b0e4a1560f2 | 9ba2b89dbdeefa54c6b6935d772ce36be7b05292 | /devilry/devilry_group/migrations/0002_feedbackset_gradeform_json.py | 61b10f5028325b2b42f1b43c33e35c9c77ae6cf1 | [] | no_license | kristtuv/devilry-django | 0ffcd9d2005cad5e51f6377484a83d778d65050f | dd2a4e5a887b28268f3a45cc3b25a40c0e313fd3 | refs/heads/master | 2020-04-27T06:02:45.518765 | 2019-02-15T13:28:20 | 2019-02-15T13:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('devilry_group', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='feedbackset',
nam... | [
"stianjul@gmail.com"
] | stianjul@gmail.com |
3ae711f77841ae1d7c0a636a8750ef11aeb7dd2f | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp223_9000.py | dba8a0ab5453dc43f268323efdbd4e331fe24c86 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,732 | py | ITEM: TIMESTEP
9000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.7399323368011969e+02 2.2119323368016401e+02
-1.7399323368011969e+02 2.2119323368016401e+02
-1.7399323368011969e+02 2.2119323368016401e+02
ITEM: ATOMS id type xs ys zs
1879 1 0.460811 0.97243 0.0129587
1731 1 0.257982 0.0772842 0.0303815
640 1 0... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
75ceb6fdf8315b35a20773ebbf24f3381cb9ae67 | 1e4aef2d451a97a8aafb4e1cddfa4ebb0cc309cc | /first_step/shopping_cart/shopping_cart.py | 7665887eb831ea8e6b30c1d9609e1458235dfea7 | [] | no_license | FleeaniCh/python | 4c40b5d9d711796cee49a7b95bb7f64fa9257662 | 129a759212a8221de1a3d9c1cb3b66c6fece5a63 | refs/heads/master | 2023-03-12T06:40:05.120123 | 2021-02-28T02:03:34 | 2021-02-28T02:03:34 | 342,999,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | dict_commodity_info = {
101: {"name": "屠龙刀", "price": 10000},
102: {"name": "倚天剑", "price": 10000},
103: {"name": "九阴白骨爪", "price": 8000},
104: {"name": "九阳神功", "price": 9000},
105: {"name": "降龙十八掌", "price": 8000},
106: {"name": "乾坤大挪移", "price": 10000}
}
list_order = []
def select_menu():
... | [
"17354108830@163.com"
] | 17354108830@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.