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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
648b52fbcf90fe013704d34e152bc581ae3c40be | 0bce796dc4d44c3f8ce5653fedcb12adba37dcb4 | /app/shadowsocks/common.py | 4e07e913304cea11f600e41112dfd2dc1bbca612 | [
"Apache-2.0"
] | permissive | littleguyy/ShadowSocksShare-OpenShift | 2d79081bc14dd2e70add77e730373a1fdac2bc96 | 4e9e0021d573391e33f104e47e882122c988a187 | refs/heads/master | 2021-08-30T01:37:37.148308 | 2017-12-15T15:25:01 | 2017-12-15T15:25:01 | 109,275,324 | 2 | 1 | null | 2017-12-03T01:59:15 | 2017-11-02T14:26:28 | Python | UTF-8 | Python | false | false | 13,597 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2013-2015 clowwindy
#
# 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 requi... | [
"charl3s.xu@gmail.com"
] | charl3s.xu@gmail.com |
3996ea5205bce142f2d098be854ce4f05c36bccd | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/SUBNETVLAN-MIB.py | 95ca61b3c6a9edbac4884b175851f6f36864374d | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 7,163 | py | #
# PySNMP MIB module SUBNETVLAN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SUBNETVLAN-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:04:13 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
13a8a9192a0704ac0a5f613ec6e8a89444481bac | f2cb9b54e51e693e1a1f1c1b327b5b40038a8fbe | /src/bin/shipyard_airflow/shipyard_airflow/dags/config_path.py | 514e419d56879d5abf0cb8da4261ab92b9b04efb | [
"Apache-2.0"
] | permissive | airshipit/shipyard | 869b0c6d331e5b2d1c15145aee73397184290900 | 81066ae98fe2afd3a9c8c5c8556e9438ac47d5a2 | refs/heads/master | 2023-08-31T11:46:13.662886 | 2023-07-01T06:42:55 | 2023-08-30T16:04:47 | 133,844,902 | 6 | 2 | Apache-2.0 | 2023-09-12T19:09:02 | 2018-05-17T17:07:36 | Python | UTF-8 | Python | false | false | 811 | py | # Copyright 2018 AT&T Intellectual Property. All other 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... | [
"bryan.strassner@gmail.com"
] | bryan.strassner@gmail.com |
4fce15cbe97195207d61da778af98e7e72d75477 | e3a25b40812b6b70f10b52a6f66f9348dcc251a6 | /algorithm/0327야자/장기.py | 5c72cba9ab087f171a914be70dab9629329ed05f | [] | no_license | yoonwoo123/python101 | 75643cb5dcf411c9ddcf988bf09bb88e4523206c | 637dce64a6320a6f46eb941e33e8e9f6ee41c910 | refs/heads/master | 2020-04-14T11:30:43.018126 | 2019-07-25T08:28:31 | 2019-07-25T08:28:31 | 163,815,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import sys, collections
sys.stdin = open("장기_input.txt")
dx = [-2, -1, 1, 2, 2, 1, -1, -2]
dy = [1, 2, 2, 1, -1, -2, -2, -1]
def BFS(x, y, cnt):
global res
que = []
que.append([x, y, cnt])
arr[x][y] = 1 # 방문체크
while que:
x, y, cnt = que.pop(0)
cnt += 1
for i in range(8):
... | [
"lkkjasd@korea.ac.kr"
] | lkkjasd@korea.ac.kr |
c58cde042b033608e1766802b4f37d02faa1f2e1 | bca68c22ac8f44203a234d8dc69b37960ab813cc | /models/networks.py | 6c92fc2c50116ea33c1dc05c3bcb863985308acc | [
"MIT"
] | permissive | Jeozhao/AGIS-Net | a48362d4894de0c312008554640814677d49f333 | da0145e21d804da21ae7b9c66f7857316d0485d7 | refs/heads/master | 2022-05-29T13:33:09.355458 | 2020-04-30T11:10:07 | 2020-04-30T11:10:07 | 260,710,410 | 1 | 0 | null | 2020-05-02T14:57:21 | 2020-05-02T14:57:21 | null | UTF-8 | Python | false | false | 59,925 | py | import functools
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn import Parameter, init
from torch.optim import lr_scheduler
from .vgg import VGG19
###############################################################################
# Functions
############################################... | [
"hologerry@gmail.com"
] | hologerry@gmail.com |
145db62f75560083ee2bd45d160704022eef6670 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/validators/bar/marker/__init__.py | 2d3ccf70da92019456a5471e03e28185ae7217bc | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 22,600 | py |
import _plotly_utils.basevalidators
class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name='showscale', parent_name='bar.marker', **kwargs
):
super(ShowscaleValidator, self).__init__(
plotly_name=plotly_name,
parent_n... | [
"noreply@github.com"
] | Jonathan-MW.noreply@github.com |
df6ab93663cc3b77221a50587f2e67a918d035eb | a977365234cad283d9f3edc022976a70501c1c41 | /API-Auto/testCase/salesman/test6_20case.py | 2c0fd2d7a472932f5ba3de597609b5174e6782ca | [] | no_license | quqiao/hezongyy | 849f2b9c8a4db562bde5e415ef012ff29c704fd8 | cde6805ada979afe0b24911f8c5d0977cfd92e5a | refs/heads/master | 2021-08-16T10:20:12.618268 | 2020-07-23T09:09:07 | 2020-07-23T09:09:07 | 205,772,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,687 | py | import json
import unittest
from common1.configHttp import RunMain
import paramunittest
import geturlParams
import urllib.parse
# import pythoncom
import time
import readExcel
# pythoncom.CoInitialize()
# url = geturlParams.geturlParams().get_Url1_3() # 调用我们的geturlParams获取我们拼接的URL
login_xls = readExcel.readExcel().ge... | [
"553248560@.com"
] | 553248560@.com |
d3f0da288b31dd9c16b761b157afff6e6a2e560e | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_Reckon_sheep.py | 53fe372642f8e0798c770f04c5611f190c3b4e98 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 502 | py | def count_sheep(n):
if n == 0:
return "INSOMNIA"
all_digits = set()
for i in range(0,10):
all_digits.add(i)
digits = set()
total = 0
prev = 0
while digits != all_digits:
prev = total
total += n
for i in str(total):
digits.add... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
fc995d5b1e327ff5d62745113f22f6ee8701faf7 | 57db61160494659af43ee255d1e6ab2af6617114 | /ultron-api/advantages/migrations/0001_initial.py | 4896f942309121a367273a44dde8b46f7ed02bb3 | [] | no_license | gloompi/ultron-studio | fc667d563467b386a8dec04a6079e7cdcfedc5a7 | ec2ae8051644df2433b931c7e0228e75eaf20990 | refs/heads/master | 2023-06-25T19:22:45.119315 | 2019-12-08T05:53:02 | 2019-12-08T05:53:02 | 226,545,035 | 0 | 0 | null | 2023-06-10T00:22:15 | 2019-12-07T16:44:16 | JavaScript | UTF-8 | Python | false | false | 1,345 | py | # Generated by Django 2.2.3 on 2019-08-01 16:57
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AdvantagesSectio... | [
"gloompi@gmail.com"
] | gloompi@gmail.com |
3f48495450dbab8a40f102e8fcf7f50b74aa16e7 | f8777c76ec7c8da686c72a2975c17bbd294edc0e | /eden/integration/fsck_test.py | 25fa242bb4141942126412262227e4313e8399cf | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | jmswen/eden | 3a8e96bf0fbbf6c987f4b17bbd79dcbe0964c033 | 5e0b051703fa946cc77fc43004435ae6b20599a1 | refs/heads/master | 2020-06-06T06:08:28.946268 | 2019-06-19T04:45:11 | 2019-06-19T04:45:11 | 192,659,804 | 0 | 0 | NOASSERTION | 2019-06-19T04:43:36 | 2019-06-19T04:43:36 | null | UTF-8 | Python | false | false | 6,885 | py | #!/usr/bin/env python3
#
# Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f29c393fb5d26ef7471da24846610d659313a979 | 44c29ed593d91919752ba251eb328330cfa8ea79 | /logstash/urls.py | f2d42066d18134332b2391b397b6f446f7ef8507 | [
"MIT"
] | permissive | Azimut-Prod/azimut-gestion | 51b21732815a6f9dbe1d15baef746c777469c601 | fafb30599a26cd89cbe34bbf53179c2cfe0d5cb7 | refs/heads/master | 2020-12-24T14:26:51.160788 | 2014-10-02T17:34:15 | 2014-10-02T17:34:15 | 13,557,198 | 0 | 2 | null | 2014-06-20T07:56:43 | 2013-10-14T09:21:32 | Python | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
urlpatterns = patterns(
'logstash.views',
url(r'^$', 'file_list'),
url(r'^(?P<pk>[0-9]*)/show/$', 'file_show'),
url(r'^(?P<pk>[0-9]*)/edit/$', 'file_edit'),
url(r'^(?P<pk>[0-9]*)/delete/$', 'file_delete'),
url(r'^(?P<name>.*... | [
"maximilien@theglu.org"
] | maximilien@theglu.org |
4b4294d9cc6ed233881c46938df6a8a067bee583 | e146d44875fb44a13b3b004604694bccaa23ddf2 | /docs/Amadeus-master/pactravel-master/python-client/test/test_restricted_rate.py | 477739ad7b3413811f0c07b2ffdbd8a05be8093f | [] | no_license | shopglobal/travel | 8d959b66d77f2e1883b671628c856daf0f3b21bb | 0c33467cd2057da6e01f9240be2fd4b8f5490539 | refs/heads/master | 2022-12-23T00:13:02.597730 | 2017-09-26T06:03:15 | 2017-09-26T06:03:15 | 104,405,869 | 0 | 0 | null | 2022-12-08T00:35:36 | 2017-09-21T22:43:23 | PHP | UTF-8 | Python | false | false | 951 | py | # coding: utf-8
"""
Amadeus Travel Innovation Sandbox
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 1.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
imp... | [
"president@worldvaporexpo.com"
] | president@worldvaporexpo.com |
1638e7347594a5b77e8ede5907e8984e480a8384 | 320bd873b6cf5db2fc9194cc4ad782a49373d6ee | /page/base_page.py | 7753eaa01b0d7f8d3fee1fec5a4453ad2c0757e7 | [] | no_license | donniezhanggit/AppiumDemo8_Android | 7b0aed903969e2101330b5da4e89c39e3d591723 | 7a2ed3be27ed6cb27bd4e30e13d48cc8f34aa654 | refs/heads/master | 2020-09-13T17:35:33.749237 | 2019-03-10T10:04:46 | 2019-03-10T10:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py | from appium.webdriver import WebElement
from appium.webdriver.common.mobileby import MobileBy
from lxml.html import Element
from selenium.webdriver.common.by import By
from driver.Appium import Appium
from lxml import etree
class BasePage(object):
def __init__(self):
pass
@classmethod
def byAndr... | [
"seveniruby@gmail.com"
] | seveniruby@gmail.com |
913718a80453266c1a4049cef48c9a4760dc651f | 0fd92b7d882a1edb5542f6600bb177dcad67ed50 | /powerful104/1003.py | 37f52fb9dbd627a8706e69ccc3234286a7f874e4 | [] | no_license | alpha-kwhn/Baekjun | bce71fdfbbc8302ec254db5901109087168801ed | f8b4136130995dab78f34e84dfa18736e95c8b55 | refs/heads/main | 2023-08-02T11:11:19.482020 | 2021-03-09T05:34:01 | 2021-03-09T05:34:01 | 358,347,708 | 0 | 0 | null | 2021-04-15T17:56:14 | 2021-04-15T17:56:13 | null | UTF-8 | Python | false | false | 340 | py | def fibo(n):
fn = 0
fn1 = 1
ans = fn1
for _ in range(n - 1):
ans = fn + fn1
fn = fn1
fn1 = ans
return ans
num = int(input())
for _ in range(num):
n = int(input())
if(n==0):
print(1,0)
elif(n==1):
print(0,1)
else:
prin... | [
"noreply@github.com"
] | alpha-kwhn.noreply@github.com |
136b32274f21e8d126ad13eadf2f5747cf24e7c9 | 99ef323acf05ae8c76f8ade8d2fe03d455c00302 | /tmp/fast_sufarr.py | 2ecb40e3773710a7258987394d63227cc5d35d3f | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | kcarnold/suggestion | b166fd3d986eace138a9d6c877ee4f71d94a796a | 27650cbf724b77361f8f4e609774ecb9bcf9e3c9 | refs/heads/master | 2021-01-13T15:24:43.195938 | 2018-12-21T23:02:31 | 2018-12-21T23:02:31 | 76,397,078 | 1 | 0 | null | 2017-02-21T16:19:02 | 2016-12-13T20:48:02 | Python | UTF-8 | Python | false | false | 5,235 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 20 14:48:33 2017
@author: kcarnold
"""
import numpy as np
from suggestion import suggestion_generator
import kenlm
import tqdm
#%%
def sizeof_fmt(num, suffix='B', units=None, power=None, sep='', precision=2, sign=False):
prefix = '+' if sign and num > 0 else ''
... | [
"kcarnold@alum.mit.edu"
] | kcarnold@alum.mit.edu |
79b80e6a18f0426dadc135a21d26ca7e0eedd67b | 6371acdb640e62e4e6addac2ba1aa70002a8c1b1 | /Algorithms/pySINDy/env/lib/python3.6/site-packages/pylint/test/test_self.py | cbc23176b4c9b816cad25a9895ecb6ae69cadc63 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | M-Vause/SEED | 263307152ebac1e4f49cd81dcd5207ecbdf51139 | cda94a02a5ef47a1e9a885d330eef2821301ebed | refs/heads/master | 2022-12-13T20:11:58.893994 | 2020-04-27T16:10:09 | 2020-04-27T16:10:09 | 252,790,026 | 3 | 3 | MIT | 2022-12-08T01:52:05 | 2020-04-03T16:55:10 | Jupyter Notebook | UTF-8 | Python | false | false | 20,431 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2006-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
# Copyright (c) 2014-2018 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2014 Vlad Temian <vladtemian@gmail.com>
# Copyright (c) 2014 Google, Inc.
# Copyright (c) 2014 Arun Persaud <arun@nubati.net>
# Copyright (c)... | [
"58262117+M-Vause@users.noreply.github.com"
] | 58262117+M-Vause@users.noreply.github.com |
87f02715b690985909049acdc08e8c98984300e1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_259/ch89_2020_05_06_17_38_05_834845.py | e551edeb3e60c84128b1bced37b853fd9b3307c6 | [] | 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 | 265 | py | class Circulo:
def __init__(self,centro,raio):
self.centro = p1
self.raio = numero
def Contem(self,ponto):
if ((self.centro.x-ponto.x)**2+(self.centro.y-ponto.y)**2)**0.5 < self.raio:
return True
return False | [
"you@example.com"
] | you@example.com |
250a4740724dde3382658dc89f01f5972e1f4cd5 | 8b5e9766ca9e2a3457e921f8fda0649b4f4019b5 | /src/pytest_benchmark/histogram.py | 99ed4eacc97952485d642a06d049181befa89fde | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | stanislavlevin/pytest-benchmark | b53b111c20a32f8d8bc4d32a3556740ed0012d96 | e6d9b63468319ec87504f6c81592826ee242887b | refs/heads/master | 2020-04-12T09:58:10.103228 | 2018-11-23T15:45:59 | 2018-11-25T04:03:23 | 162,414,447 | 0 | 0 | BSD-2-Clause | 2018-12-19T09:30:34 | 2018-12-19T09:30:33 | null | UTF-8 | Python | false | false | 3,478 | py | from collections import Iterable
import py
from .utils import TIME_UNITS
from .utils import slugify
try:
from pygal.graph.box import Box
from pygal.style import DefaultStyle
except ImportError as exc:
raise ImportError(exc.args, "Please install pygal and pygaljs or pytest-benchmark[histogram]")
class C... | [
"contact@ionelmc.ro"
] | contact@ionelmc.ro |
25443c2e8849e4b7ce67817990bccc5573455d64 | 1fc638bf8b485f6a0466da096a51038c2e10dad6 | /aidu_gui/src/aidu_gui/msg/__init__.py | 8f6452927883fd761b3f27ef21f14c6c61ced507 | [
"MIT"
] | permissive | MartienLagerweij/aidu | a2621288e78cc7c0d9df821ab60f597818158836 | a9b6e5a61f20bd60a7773495ba254e1bded1d7a1 | refs/heads/master | 2021-01-10T19:50:18.576658 | 2014-01-31T14:52:14 | 2014-01-31T14:52:14 | 30,254,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from ._Solenoid import *
| [
"rjagerman@gmail.com"
] | rjagerman@gmail.com |
fe32a7e6d3393931c7e334cc368e537008db42c1 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/securityinsight/azext_sentinel/aaz/latest/sentinel/entity_query/template/__cmd_group.py | 91049c1fe8f891761c3c334396713083e30a9df8 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 648 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
fd0fee403e8525c2faf6875daec96b184ed9db55 | 3f658c0098a66015840bd9d631987e6b937bb300 | /53.Flask_CafeWifi/main.py | 3e74bc359eee40baaa9c1fc79e03690a38a78d0a | [] | no_license | RohitPr/PythonProjects | 4cf7ec37cfba60afecc88ae542cc4155b72f4098 | 7dd807a45cd86cf0851cb95a1b1433805891f990 | refs/heads/main | 2023-06-01T06:42:40.147968 | 2021-06-13T00:57:05 | 2021-06-13T00:57:05 | 337,298,986 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | from flask import Flask, render_template, redirect, url_for
from flask_bootstrap import Bootstrap
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, DateField
from wtforms.fields.core import SelectField
from wtforms_components import TimeField
from wtforms.validators import DataRequired... | [
"bladekiller95@gmail.com"
] | bladekiller95@gmail.com |
46a2c839cd2adda1f78de52d264f9c9633dcced1 | eeeb97414f4182c373ba95e53353adb187bd3b0e | /app/main/views.py | 7272292e11c4878121ddde53a29021f4db377abc | [
"MIT"
] | permissive | tharcissie/pitchapp | 02ad1aad01a751c6bc3ddaa32e1c7bc7fd511e92 | c5c734694f7b68342db5e07e6312ed8605696263 | refs/heads/master | 2023-02-07T07:41:15.065913 | 2020-12-21T06:50:56 | 2020-12-21T06:50:56 | 316,588,283 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,124 | py | from flask import render_template, redirect, url_for,abort,request
from . import main
from flask_login import login_required,current_user
from ..models import User,Pitch,Comment,Upvote,Downvote
from .form import UpdateProfile,PitchForm,CommentForm
from .. import db,photos
@main.route('/')
def index():
pitch = Pitc... | [
"tharcissieidufashe@gmail.com"
] | tharcissieidufashe@gmail.com |
458015465088494352355186a88764a734c45216 | 234886b79094aa9905a4d44a5167b748c88e7961 | /nod32-2.py | 9777fd2516a205c1bf934bb15f489c493c391919 | [] | no_license | rurigeo/python | 929d3bde7dc90e38ce396831de8d6d016e5a9828 | 31a46533020fb716673e2464f573b2e15f364116 | refs/heads/master | 2021-01-01T17:42:05.071824 | 2015-01-05T03:56:42 | 2015-01-05T03:56:42 | 28,733,277 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | #! /usr/bin/env python
# coding=utf-8
import urllib2
response = urllib2.urlopen('http://www.nod32jihuoma.cn/')
html = response.read()
with open('test','wb') as f : f.write(html)
f = open('test','rb')
for line in f:
#print line.decode('utf-8').rstrip()
if line.rstrip().startswith('<p>用户名'):
pri... | [
"you@example.com"
] | you@example.com |
b7eb06bd358d82f342e1a9fdbfe3a27e4a171857 | 494b763f2613d4447bc0013100705a0b852523c0 | /dnn/ex05_overfittingCheck.py | 9a0575cd56b68bdd68c4c397529f18b80d6362aa | [] | no_license | DL-DeepLearning/Neural-Network | dc4a2dd5efb1b4ef1a3480a1df6896c191ae487f | 3160c4af78dba6bd39552bb19f09a699aaab8e9e | refs/heads/master | 2021-06-17T05:16:22.583816 | 2017-06-07T01:21:39 | 2017-06-07T01:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | #-*- coding: utf-8 -*-
''' Import theano and numpy '''
import theano
import numpy as np
execfile('00_readingInput.py')
''' set the size of mini-batch and number of epochs'''
batch_size = 16
nb_epoch = 50
''' Import keras to build a DL model '''
from keras.models import Sequential
from keras.layers.core import Dense A... | [
"teinhonglo@gmail.com"
] | teinhonglo@gmail.com |
2b6473bd7bb963c995ddf41427e148de56526422 | a59ec95fddc064ea9a554ad41e4ac8e82376701a | /xadmin/demo_app/repurchasearea/migrations/0002_sale.py | 02ff589f4ecd5b0fac9b11243a3304b878169813 | [
"BSD-3-Clause"
] | permissive | Nicholas86/PythonDemos | 449c08713c7c03633719a4ae7287b127783d7574 | 4f06639cc65a5e10cc993335d3d34e2d60aac983 | refs/heads/master | 2021-01-22T21:07:11.457179 | 2017-08-18T06:40:44 | 2017-08-18T06:40:44 | 100,681,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-07-17 10:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0007_address_user_id'),
('repurchasearea', '0... | [
"970649831@qq.com"
] | 970649831@qq.com |
bb73d12a82c820135bba274b472bb02a2b25b8f0 | 9262e23dcff032dbbd05d724435d473778f47417 | /pywind/ofgem/StationSearch.py | cbb1acba5bd013e9b00481dfeda6c4be303982cf | [] | no_license | mseaborn/pywind | c825bd6c32db226a10a1389a6fd9e1e28656438a | ca89a305cdcfd56891afce33a0613208f1080ead | refs/heads/master | 2020-07-10T05:37:36.666758 | 2016-01-03T17:04:28 | 2016-01-03T17:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | # coding=utf-8
#
# Copyright 2013-2015 david reid <zathrasorama@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"zathrasorama@gmail.com"
] | zathrasorama@gmail.com |
3ae79867f0f0711e57ceb1c0cedc23de74baf1d0 | 54277288865f738e44d7be1d6b41b19c63af267e | /pyvrl/datasets/frame_samplers/uniform_sampler.py | e5263cac4c5dfcdf043d1b756c2e3cb0057d981c | [] | no_license | scenarios/SR-SVRL | 7b41d29e16cff3020f333efc28a624d85bba4537 | 26e89ecb29355635b10a355f2f16f1b5db9c4e9b | refs/heads/master | 2023-02-26T06:16:13.314491 | 2021-01-30T16:30:57 | 2021-01-30T16:30:57 | 307,295,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | import numpy as np
import random
from typing import List, Union
class UniformFrameSampler(object):
def __init__(self,
num_clips: int,
clip_len: int,
strides: Union[int, List[int]],
temporal_jitter: bool):
self.num_clips = num_clips
... | [
"zyz0205@hotmail.com"
] | zyz0205@hotmail.com |
bef650bd59c2153082ed917c021d96d1a21834a3 | 786232b3c9eac87728cbf2b5c5636d7b6f10f807 | /Leetcode/medium/130.py | f3efee7f4cf1148a224934ce604343805b35df73 | [] | no_license | luoyanhan/Algorithm-and-data-structure | c9ada2e123fae33826975665be37ca625940ddd4 | fb42c3a193f58360f6b6f3b7d5d755cd6e80ad5b | refs/heads/master | 2021-12-22T15:45:28.260386 | 2021-12-02T03:08:35 | 2021-12-02T03:08:35 | 251,007,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,850 | py | class Solution:
def solve(self, board) -> None:
if not board:
return
rows = len(board)
cols = len(board[0])
def dfs(board, i, j):
if i < 0 or i >= rows or j < 0 or j >= cols or board[i][j] != 'O':
return
board[i][j] = '#'
... | [
"707025023@qq.com"
] | 707025023@qq.com |
9be1ccf4fb9057ff69eb200527dba9ac9462a585 | 6b9888a32733bc9d67f290cd006fb4dca84bcaf1 | /users/admin.py | ad1d88cde2247208a9212ee198fc22f718c790b8 | [] | no_license | Shatki/TanyaSite2.7 | a2008257a63134411139594c54473e88f21df8c0 | 69c7d6516d3d28dbe9370d94aacce0ac04070822 | refs/heads/master | 2020-04-30T02:31:10.274659 | 2019-03-27T19:41:59 | 2019-03-27T19:41:59 | 176,562,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth import forms
from .models import User, Feedback
class UserCreationForm(forms.UserCreationForm):
class Meta:
model = User
fields = (
'user... | [
"Shatki@mail.ru"
] | Shatki@mail.ru |
509047a9ed74a663ba2172533a3ff084bfe7d217 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_image_tag_request.py | 90185a5e2726fddf941f3db5190f683b70ee737d | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,316 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListImageTagRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribut... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8ee63e735b089b79918fd1a7e922e8c9e2efe5dd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_017/ch19_2020_09_30_19_20_44_293987.py | ddb89c04d24c9ab8a2235c3a4071ba046f6c3af0 | [] | 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 | 213 | py | def classifica_triangulo(a,b,c):
if a == b and b==c:
return "equilátero"
elif a == b and a != c or a==c and a!= b or b==c and b!=a:
return "isósceles"
else:
return "escaleno"
| [
"you@example.com"
] | you@example.com |
d2ffd9a8a0f8818b36082eb7be20047d65ee079e | 309556112e15b2b79c2e857d495d3f363a9f8c69 | /Python/GA_Class/6_logreg/example_logreg.py | d585a00b18074293f31e9f2431aeda4d7a7daddb | [] | no_license | karoljohnston/data-analysis-examples | 0aeefd8bc0780c0cc6135352a79605ac68484afd | fbd46483072bf544102bc5c02917743c5a3bb976 | refs/heads/master | 2023-03-17T15:09:29.290959 | 2016-03-22T12:15:53 | 2016-03-22T12:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | """ Logistic Regression is a type of probabilistic statistical classification
model used to predict a binary response from a binary predictor
* We use Linear Regression for a response that is continuous and binary for
one that is 0 and 1's, like alive or dead
* Used for predicting the outcome of a categorical... | [
"William.Q.Liu@gmail.com"
] | William.Q.Liu@gmail.com |
c015ef847a2a849a4f5d0fbfe324e61baf9638bf | d1d79d0c3889316b298852834b346d4246825e66 | /blackbot/core/wss/ttp/art/art_T1071.004-1.py | 6a6eff49b2d77503a64c7522e67acc60bc7209ce | [] | no_license | ammasajan/Atomic-Red-Team-Intelligence-C2 | 78d1ed2de49af71d4c3c74db484e63c7e093809f | 5919804f0bdeb15ea724cd32a48f377bce208277 | refs/heads/master | 2023-07-17T12:48:15.249921 | 2021-08-21T20:10:30 | 2021-08-21T20:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | from blackbot.core.utils import get_path_in_package
from blackbot.core.wss.atomic import Atomic
from terminaltables import SingleTable
import os
import json
class Atomic(Atomic):
def __init__(self):
self.name = 'CommandControl/T1071.004-1'
self.controller_type = ''
self.external_id = 'T1071... | [
"root@uw2artic201.blackbot.net"
] | root@uw2artic201.blackbot.net |
c345aa80414650ac554092489ed0ab72952bae22 | eef659a707d87e979741cc11ad59344c911790f5 | /cc3/billing/migrations/0039_auto_20160907_1252.py | 99d7ee5b8028f8e281c4179cfbb988998ba510f3 | [] | no_license | qoin-open-source/samen-doen-cc3 | 1e5e40a9b677886aa78f980670df130cbbb95629 | 8b7806177e1e245af33b5112c551438b8c0af5d2 | refs/heads/master | 2020-05-04T02:26:07.039872 | 2019-04-02T21:19:54 | 2019-04-02T21:19:54 | 178,926,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('billing', '0038_auto_20160907_1132'),
]
operations = [
migrations.AlterModelOptions(
name='transactionparams',
... | [
"stephen.wolff@qoin.com"
] | stephen.wolff@qoin.com |
fcaed1402e3231f8c18ab3bd0e597b4762ef27b2 | e6e416ddd59ae047bc275201f1914fc19dda4083 | /pytest_asyncio/__init__.py | 4f3ba40050513ee00771465a6fdbd1b2ecd41099 | [
"Apache-2.0"
] | permissive | smagafurov/pytest-asyncio | 29652198a98349e8cc91e550fce6c32e049a444c | 16cc19d03d1922078372dc9f02ab1215f03fb1ca | refs/heads/master | 2021-01-01T17:51:28.065758 | 2017-09-11T08:47:09 | 2017-09-11T08:47:09 | 98,177,945 | 0 | 0 | null | 2017-07-24T10:16:49 | 2017-07-24T10:16:49 | null | UTF-8 | Python | false | false | 83 | py | """The main point for importing pytest-asyncio items."""
__version__ = '0.7.0-dev'
| [
"tinchester@gmail.com"
] | tinchester@gmail.com |
63cd8309b79898c60f030b6b5afa8c57404c8ecc | 6de5f28a1a87f7d5e609a8f198b286ef1b38e8b2 | /.history/__init___20191206200142.py | 04cf790acaa353cf64eac8fcf888d44c21e002dd | [] | no_license | RakshithHebbar/udacity_second_project | b8a87633ee1875b9ba49cd021871ac72e5d869dc | 25714663437aeb43dd68915b6fd0f4b11b428a0c | refs/heads/master | 2020-09-24T20:54:38.104382 | 2019-12-10T05:26:45 | 2019-12-10T05:26:45 | 225,841,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,778 | py | from flask import (Flask,
render_template,
request,
redirect,
jsonify,
url_for,
flash)
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from database_setup import B... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
77843a19cd8bf835fad6c3b481a326aa9b391598 | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/ospfv2/areas/area/lsdb/lsa_types/lsa_type/lsas/lsa/opaque_lsa/extended_link/tlvs/tlv/state/__init__.py | 01dddb05a1e5b2f8b56876833126020f6f7dbddb | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 12,940 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
b1789fc9bfd8eb03b63cd55618176bb3246ad504 | 8e90afd3f0dc945d9ebd6099a60094807c0067cf | /Kangho/pro_four_rules_calculation.py | 152ba821a381a63c190ada513f227f36378c3783 | [] | no_license | Deserve82/KK_Algorithm_Study | ffa109e02f1c9297597c9e07c7c3006628046740 | d3ec01b66d6e3852b7d68adaa8ba87c7e9617e24 | refs/heads/master | 2021-11-10T00:23:30.711422 | 2021-10-23T02:37:04 | 2021-10-23T02:37:04 | 231,358,800 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | def solution(arr):
mx = [[None for i in range(len(arr))] for j in range(len(arr)) ]
mi = [[None for i in range(len(arr))] for j in range(len(arr)) ]
def mxdp(a, b):
if a == b:
mx[a][b] = int(arr[a])
mi[a][b] = int(arr[a])
if mx[a][b] != None:
return mx[a][... | [
"noreply@github.com"
] | Deserve82.noreply@github.com |
d261be900134a7888155a860a7ba078f36751b08 | 9efe15e39ffda8391abd5a63b95e441648ba57c2 | /event_service/app.py | b02fd16c6784654ca29e61e272a3ad7fd1c15105 | [] | no_license | TechAcademy-Azerbaijan/mini_microservice_app | 3af2f80047b9a945f07ac1d4c7dd5a01980169e0 | b06c13a7feac4b9f46ab1d3bed19e36a7de3cd4e | refs/heads/master | 2023-08-15T19:49:22.058966 | 2021-10-22T08:21:40 | 2021-10-22T08:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from flask import Flask
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
from routers import *
if __name__ == '__main__':
app.run(port=5002, debug=True) | [
"idris.sabanli@gmail.com"
] | idris.sabanli@gmail.com |
129bfd5b719f491ee5efb2dd5d38136c3627af9c | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/system_wide_roles/admin/forms.py | 7b0f8b93b9a1abffa55e9db24a5a78a83f9d01e9 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 180 | py | """
Forms used for system wide roles admin.
"""
from edx_rbac.admin import UserRoleAssignmentAdminForm
class SystemWideRoleAssignmentForm(UserRoleAssignmentAdminForm):
pass
| [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
3e071265284220746e3abe9cf746007211033a47 | fef0991726dad837245b206c1720cf8da894ef53 | /TestWindow/testExample.py | 584e5edfee3c325f2ad42403555dc4ea96cd8fd2 | [] | no_license | TianD/TianDao-git-Test | 95dfbc644e9802b548c8c95201400fce7acd9e19 | 99cfbb742acf04c242a34657495bfa67bcbb68cd | refs/heads/master | 2020-04-15T19:10:57.386454 | 2014-07-04T15:08:35 | 2014-07-04T15:08:35 | 21,501,299 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 359 | py |
#coding=utf-8
import sys
from PyQt4 import QtCore, QtGui
class MyWindow( QtGui.QMainWindow ):
def __init__( self ):
QtGui.QMainWindow.__init__( self )
self.setWindowTitle( "PyQt" )
self.resize( 300, 200 )
app = QtGui.QApplication( sys.argv )
mywindow =... | [
"tiandao_dunjian@sina.cn"
] | tiandao_dunjian@sina.cn |
68c58fbec15f59c374e2ad7ea1ea5561ce6410d6 | 885d3e4017d96ed9fd56545d95ad63895e6dc01d | /rootpy/utils/tests/test_cpp.py | 24e5b87907e9d4dfe79ad31dbfa0cee3d658cc29 | [
"BSD-3-Clause"
] | permissive | rootpy/rootpy | c3eb7f70d29e4779a0bda8356fb96922bb95537f | 3926935e1f2100d8ba68070c2ab44055d4800f73 | refs/heads/master | 2021-01-17T04:08:51.330059 | 2019-01-05T17:05:50 | 2019-01-05T17:05:50 | 3,276,014 | 159 | 60 | BSD-3-Clause | 2019-12-08T12:35:08 | 2012-01-26T18:05:37 | Python | UTF-8 | Python | false | false | 1,191 | py | from __future__ import print_function
import sys
from ROOT import MethodProxy
import inspect
from rootpy.utils.cpp import CPPGrammar
from rootpy.utils.extras import iter_ROOT_classes
from nose.plugins.attrib import attr
@attr('slow')
def test_cpp():
i = 0
num_methods = 0
for cls in iter_ROOT_classes():
... | [
"noel.dawe@gmail.com"
] | noel.dawe@gmail.com |
f8660d21741423252b46a2563a116dcf317a8879 | 202e4511f8e89e2eb588581b6a1f9cd7fb1a89bf | /Server_Scripts/mitoGenome.py | 2d22301eb1cd22c0ba3a5824136faab8f1d6b2c7 | [] | no_license | labdevgen/FishHiC | 6b91e606401578e1415f3295570d5ecee085d1f7 | 27df46cf2597ae15ffb2e518ab7c04b0ec270e02 | refs/heads/master | 2021-01-18T12:58:26.279717 | 2019-12-09T05:42:42 | 2019-12-09T05:42:42 | 100,369,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | from mirnylib import genome
| [
"zakazserov@gmail.com"
] | zakazserov@gmail.com |
19ee67b228a24979c31aff0bd9900dd58e0f1895 | 23545a102f6f937d59d39f95c682235113599096 | /main/models.py | 13076268296cd7d4b761496e8643fb26509001f6 | [] | no_license | Adi19471/vsu-rating-2021 | 11e6204d86e28320ad505bdf77150011fd041ff9 | 3360abf7b024058c60ce4a8d80f98300048e4a2d | refs/heads/main | 2023-07-13T18:56:02.395628 | 2021-06-24T06:17:01 | 2021-06-24T06:17:01 | 379,822,363 | 0 | 0 | null | 2021-08-29T09:58:45 | 2021-06-24T06:11:43 | JavaScript | UTF-8 | Python | false | false | 1,209 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Movie(models.Model):
# fields for the movie table
name = models.CharField(max_length=300)
director = models.CharField(max_length=300)
cast = models.CharField(max_length=800)
description = models... | [
"akumatha@gmail.com"
] | akumatha@gmail.com |
313ef19914bc291335c072fdcf2d2a678887d9ff | 6c69b3229dc01621561330b67dca894799ea3804 | /PlantillaOpenGL.py | e479b259ec479cc2f03c41449ddd829dfdb32e91 | [] | no_license | DamianBurboa/PracticaCasa | 484cd86afd3890288c83c216cf24ceaee6afafa2 | 83222060594f0ff76d212a5214f0358387d22d71 | refs/heads/master | 2023-02-24T11:42:43.524122 | 2021-01-28T01:30:50 | 2021-01-28T01:30:50 | 333,610,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,207 | py | from OpenGL.GL import *
from glew_wish import *
import glfw
from math import *
def dibujarPasto():
glColor3f(0.427,0.819,0.321)
glBegin(GL_QUADS)
glVertex3f(-1.0,-0.6,0)
glVertex3f(1.0,-0.6,0)
glVertex3f(1.0,-1.0,0)
glVertex3f(-1.0,-1.0,0)
glEnd()
def dibujarSol():
glColor3f(0.921,0.89... | [
"you@example.com"
] | you@example.com |
afdd4a96f7bf490989dfa4d5e783bff6701247fa | 4d3999e06a63989cd4dc7fe928940e0ca533cbd4 | /test/test_inline_response20011.py | d78bbabcdfd3fc665194d388445a31299edf971d | [] | no_license | ribaguifi/orchestra-client-python | c8f1c4b9760c2df173222bb5bcaf73b231d2b4bb | a211f7f6c0353f4476176c6c2fed11a2be553db8 | refs/heads/main | 2023-06-03T00:28:57.108274 | 2021-06-22T12:22:28 | 2021-06-22T12:22:28 | 379,258,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import sw... | [
"santiago@ribaguifi.com"
] | santiago@ribaguifi.com |
50ba1c7ef8fbb7d9a24a7636649bee002763c5fa | 4eaab9327d25f851f9e9b2cf4e9687d5e16833f7 | /problems/validate_binary_search_tree/solution.py | 4b027255c5de04c726d305a51e41b228bcb44e00 | [] | no_license | kadhirash/leetcode | 42e372d5e77d7b3281e287189dcc1cd7ba820bc0 | 72aea7d43471e529ee757ff912b0267ca0ce015d | refs/heads/master | 2023-01-21T19:05:15.123012 | 2020-11-28T13:53:11 | 2020-11-28T13:53:11 | 250,115,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def isValidBST(self, root: TreeNode) -> bool:
stack = []
prev_node = float('-inf')
w... | [
"kadhirash@gmail.com"
] | kadhirash@gmail.com |
4974c067418ad8b5e155e0a7dcd40cd94d0f920c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_259/ch147_2020_04_08_17_39_35_490926.py | 1cb72ae4df13990fa8e046149c2139db0e4e5da0 | [] | 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 | 406 | py | def mais_frequente(lista):
ocorrencias = {}
for i in lista:
ocorrencias[i] = 0
for i in lista:
if i in ocorrencias:
ocorrencias[i]+=1
contadores = occorencias.values()
max = 0
for i in contadores:
for j in contadores:
if i>j:
max = ... | [
"you@example.com"
] | you@example.com |
6a5bce666dbf467bf0894436cd1fcb1414585edc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03127/s858089481.py | 6247fc003f271e8077da902951482327a7e441e4 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | n=int(input())
a=list(map(int,input().split()))
def gcd(x,y):
if y==0:
return x
return gcd(y,x%y)
ans=a[0]
for i in a:
ans=gcd(ans,i)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
063a2ab6fefbfe29cb136d4ed2c17a6cb71ffe90 | 5ce1c0ab1b6147428fc30bcd1698e4d0e53b688e | /1094.py | fc044748f63df33ff98d34ab4b9de72e8658f50b | [] | no_license | junyang10734/leetcode-python | 035b12df3f7d9fc33553140d1eb0692750b44f0a | eff322f04d22ffbc4f9b10e77f97c28aac5c7004 | refs/heads/master | 2023-07-22T11:16:38.740863 | 2023-07-14T00:22:00 | 2023-07-14T00:22:00 | 189,197,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # 1094. Car Pooling
# Array / 差分数组
# 差分数组
# time: O(n)
class Solution:
def carPooling(self, trips: List[List[int]], capacity: int) -> bool:
maxD = 0
for n,f,t in trips:
maxD = max(maxD, t)
diff = [0 for _ in range(maxD+1)]
for n,f,t in trips:
diff[f... | [
"48000364+junyang10734@users.noreply.github.com"
] | 48000364+junyang10734@users.noreply.github.com |
4a4a2f467172452c9d4cb3d75181baf874606b76 | 3f0a886b4ea2c8de185511d74dc5ff4175d9abc6 | /myenv/bin/easy_install-2.7 | 40fc82520ca304f4b3bee2dc9eb01436be85bda8 | [] | no_license | feminas-k/poll_app | 3a4d59810a4840dfee25ae0c2475721af2bc6741 | 405bb3377a24ff80dac6dadefbdcf7f8d3828a0b | refs/heads/master | 2021-01-22T00:52:46.012103 | 2017-03-01T17:22:50 | 2017-03-01T17:22:50 | 83,581,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | 7 | #!/home/feminas/pollapp_feb17/myenv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"femi1991@gmail.com"
] | femi1991@gmail.com |
d7e6712811fdf092b1950a8d0880765d318b7cd9 | 4e308e8bb7056f1fd6914777b38d98b18254867f | /DECOMPYLED/LV2_LX2_LC2_LD2/Params.py | a509f673e5d1e85d5e6b3c414e982b62497335bd | [] | no_license | bschreck/cuttlefish | 165aae651bf58c1142cc47934802a7a3614e39da | 0f44ccca0ebf1a6f78165001586fcb67b98b406a | refs/heads/master | 2020-05-19T23:07:11.520086 | 2014-02-25T05:26:18 | 2014-02-25T05:26:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | # emacs-mode: -*- python-*-
AUTO_FILTER_PARAMS = {'LFO Sync Rate': 'LFO Synced Rate'}
AUTO_PAN_PARAMS = {'Sync Rate': 'Synced Rate'}
BEAT_REPEAT_PARAMS = {'Decay': 'Damp Volume',
'Pitch Decay': 'Damp Pitch',
'Volume': 'Wet Level',
'Repeat': 'Instant Repeat'}
EQ_FOUR_PARAMS = {'1 Filter On A': '1 Filter On',
'1 Freq... | [
"bschreck@mit.edu"
] | bschreck@mit.edu |
b844fe2134f61d12924df1dbdb2e53f8a9063706 | 6fbda2fa7d0741813b5141dfbae7fec76a471fc9 | /modal/popup/urls.py | ccd86b0fcb72169d2e0d2ea843b8b97b17ac1fc7 | [] | no_license | innotexak/Popup-in-Django | f31d1bb9539d38a6bba3b29b7a9e41c7a0187125 | bfefd0feb24eb7729de1cdc3aa4c23cdf75273c7 | refs/heads/master | 2023-03-09T13:56:38.891788 | 2021-03-01T14:36:09 | 2021-03-01T14:36:09 | 343,439,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.urls import path
from django.conf.urls.static import static
from django.conf import settings
from . import views
urlpatterns = [
path("", views.home, name ="home"),
path('signup/', views.SignUpView.as_view(), name='signup'),
path('login/', views.CustomLoginView.as_view(), name='login'),
]+ st... | [
"akuhinnocent2016@gmail.com"
] | akuhinnocent2016@gmail.com |
573e0d1262f5d6af7cbc0a4e35a0616f147502be | 2bb633b7b0590d64a1055fb9bf6fcd0e22701ef5 | /main/drive_MTM_study.py | 860ef499307487a32d38c12b2d05a12dd79a69a4 | [] | no_license | nag92/haptic_mtm | 2df0ed46ce284e6726d9352b89d7ba5f9d4b31e6 | 503858d98a395e7465ec12f46657586453d25c53 | refs/heads/master | 2022-04-07T06:29:39.937383 | 2020-02-28T00:02:08 | 2020-02-28T00:02:08 | 241,441,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,953 | py | from Tkinter import *
import rosbag
from datetime import datetime
import subprocess
import signal
import shlex
import rospy
from std_msgs.msg import Time
from std_msgs.msg import Empty
from geometry_msgs.msg import Pose, PoseStamped
import time
import os
import threading
class MTM_DRIVER:
def __init__(self):... | [
"nagoldfarb@wpi.edu"
] | nagoldfarb@wpi.edu |
7451fcfbc277bfe38be457cb375d98fbb28cbcbd | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.3/tests/regressiontests/i18n/tests.py | 3698b91f712325f4a65128e4ad056252380c8976 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.3/tests/regressiontests/i18n/tests.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
af8d982fa9c11c8549511d906334edf7a27dc55f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/284/109078/submittedfiles/minha_bib.py | 225e6592cfde216e2fee7b7f14605137fb56fb8b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py |
import random
def solicitaSimboloDoHumano():
letra = 0
while not (letra == 'O' or letra == 'X'):
print('Qual símbolo você deseja utilizar no jogo? (X ou O) ')
letra = input().upper()
if letra == 'X':
return ['X','O']
else:
return ['O','X']
def sorteioPri... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e8f2a8f39ca3eda6c2fbc091779c75346d7c82a4 | 7bd9be7f25be80791f9220b62025f06170273293 | /front-plugins/mstatuses/src/event.py | 0a8fbb59dc5cf9f9aff2be3263775c0b94367aed | [] | no_license | cerebrohq/cerebro-plugins | ab46b4844adcb12c51d14e21f2c0d8b758b0bb57 | e2e0f97b548ef22957e13d614200027ba89215e0 | refs/heads/master | 2021-11-12T16:25:48.228521 | 2021-10-22T11:25:58 | 2021-10-22T11:25:58 | 143,178,631 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,907 | py | # -*- coding: utf-8 -*-
import cerebro
import datetime
from cerebro.aclasses import Statuses
from cerebro.aclasses import Users
from cerebro.aclasses import AbstractMessage
report_status_name = 'pending review' # status after posting Report
review_status_name = 'in progress' # status after posting Review
client_revie... | [
"41910371+cerebroSupport@users.noreply.github.com"
] | 41910371+cerebroSupport@users.noreply.github.com |
0f92e21e1cee1331ff57006aa1afe38de3ff9f3d | 286769965e3f4a63753d96fb0bda6e1d85b0c569 | /harvest.py | 8ce22843f11462a883170a1151bbb1b4a0230cb2 | [] | no_license | Krysioly/Harvest-Lab | 2cf64829995c72eb798d31313b0567fc77307cee | b912a97b22c5fc2d2996cf7e75e1b3025fbcd13f | refs/heads/master | 2020-03-28T16:23:58.129249 | 2018-09-13T19:51:04 | 2018-09-13T19:51:04 | 148,690,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,429 | py | ############
# Part 1 #
############
class MelonType(object):
"""A species of melon at a melon farm."""
def __init__(self, code, first_harvest, color, is_seedless, is_bestseller,
name):
"""Initialize a melon."""
self.pairings = []
self.code = code
self.fi... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
de5c9d890930f8e6909373eac0b3df8cf9831877 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-4288.py | af18005dbcc70d2bdff0291cb2217028820a6daa | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
33643977282d87b0b7f0d9e84435de680a12464a | ab621c65fc91f5194c4032d68e750efaa5f85682 | /account_budget_activity/models/account_budget_summary.py | c0293bb5ce21aaffd2c726edb10d045d2fc83b59 | [] | no_license | pabi2/pb2_addons | a1ca010002849b125dd89bd3d60a54cd9b9cdeef | e8c21082c187f4639373b29a7a0905d069d770f2 | refs/heads/master | 2021-06-04T19:38:53.048882 | 2020-11-25T03:18:24 | 2020-11-25T03:18:24 | 95,765,121 | 6 | 15 | null | 2022-10-06T04:28:27 | 2017-06-29T10:08:49 | Python | UTF-8 | Python | false | false | 2,378 | py | # -*- coding: utf-8 -*-
from openerp import tools
import openerp.addons.decimal_precision as dp
from openerp import models, fields, api
class BudgetSummary(models.Model):
_name = 'budget.summary'
_auto = False
budget_id = fields.Many2one(
'account.budget',
string="Budget",
)
budge... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
ea9f1d44be60e436552ebd6088b3a92204b02381 | f8d5c4eb0244c4a227a615bc11c4c797760c3bec | /log/REINFORCEMENT_2017-11-23 01:19:24.645036/REINFORCE_cart_pole.py | c9cc30fc771a980cf4d433f5a4d099bed1fa9fbf | [] | no_license | SamPlvs/reinforcement_learning_pytorch | e9b84659f870d938814177f1288fa4a2eb152599 | ffb9e53eeff011c4d3d5933a60c2b65fdbb18e2a | refs/heads/master | 2020-03-23T04:08:51.778325 | 2018-01-16T22:36:48 | 2018-01-16T22:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | import torch
import gym
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
# import datetime
from REINFORCEAgent import REINFORCEAgent
# import random
# from torch.autograd import Variable
import signal
import utils.util as util
import os, sys, datetime, shutil
import utils.logger as logger
from date... | [
"kebai0624@gmail.com"
] | kebai0624@gmail.com |
0291a73ff7e829012f8dfc0c270e4538dbf177bd | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R3/benchmark/startQiskit_QC683.py | 68124f75e75ac6a9cc3004e511f0837184c87a77 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | # qubit number=3
# total number=15
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
f7cda2f1394a3ee632aec0355cfbb9862944735b | ec78979fd8479e884ab93d723360744db5152134 | /file-move-task1.py | 82398d6af3c6f1287df01f3e489cb86e09123314 | [] | no_license | xushubo/learn-python | 49c5f4fab1ac0e06c91eaa6bd54159fd661de0b9 | 8cb6f0cc23d37011442a56f1c5a11f99b1179ce6 | refs/heads/master | 2021-01-19T17:00:05.247958 | 2017-09-03T03:22:28 | 2017-09-03T03:22:28 | 101,032,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import os
from datetime import *
print('当前时间:', datetime.today())
dir_file = input('请输入所查路径:')
print('文件名 ','大小 ','修改时间 ', '创建时间')
for x in os.listdir(dir_file):
full_dir_file = os.path.join(dir_file, x)
mod_time = os.path.getmtime(full_dir_file) #获取文件修改时间
cha_time = os.path.getctime(full_dir_file) #获取文件创建时... | [
"tmac523@163.com"
] | tmac523@163.com |
6a824cb6a31c39b015630030f2bb6980b9dfa5d4 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/InstallArea/x86_64-slc6-gcc49-opt/python/StrippingArchive/Stripping18/StrippingB2MuMuX.py | ec0204f230df93c41cd9608cffccfd8e368d4099 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,715 | py | #\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
'''
B->mumugamma,mumumumu,v0mu
Author: M. Williams
'''
__author__ = ['Mike Williams','Kostas Petridis']
moduleName = 'B2MuMuX'
#\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
from Gaudi.Configuration imp... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
1c61fe33c2cca29b658edc0a181eaf396fa6a621 | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/third_party/apitools/base/py/base_api.py | c49ff783ef115c77e8093cfe05692efd1643542f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 28,771 | py | #!/usr/bin/env python
#
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
b9eec62397c7f79c955d49c0b46f8fd41ced3917 | e7031386a884ae8ed568d8c219b4e5ef1bb06331 | /processor/migrations/0002_auto_20180913_1628.py | 45d0290b0812897f75230932fc52f99dfa1e0a97 | [] | no_license | ikbolpm/ultrashop-backend | a59c54b8c4d31e009704c3bf0e963085477092cf | 290fa0ecdad40ec817867a019bff2ce82f08d6fe | refs/heads/dev | 2022-11-30T21:49:17.965273 | 2020-09-24T10:16:12 | 2020-09-24T10:16:12 | 147,561,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # Generated by Django 2.1.1 on 2018-09-13 11:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('processor', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='processor',
name='integrated_graphi... | [
"ikbolpm@gmail.com"
] | ikbolpm@gmail.com |
ef3543e6c47ae443673e0966415707b5c7a18f6c | 5f2103b1083b088aed3f3be145d01a770465c762 | /162. Find Peak Element.py | d52a25826c9f187eb02642488362b2153d4a0352 | [] | no_license | supersj/LeetCode | 5605c9bcb5ddcaa83625de2ad9e06c3485220019 | 690adf05774a1c500d6c9160223dab7bcc38ccc1 | refs/heads/master | 2021-01-17T17:23:39.585738 | 2017-02-27T15:08:42 | 2017-02-27T15:08:42 | 65,526,089 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # A peak element is an element that is greater than its neighbors.
#
# Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.
#
# The array may contain multiple peaks, in that case return the index to any one of the peaks is fine.
#
# You may imagine that num[-1] = num[n] = -∞.
#... | [
"ml@ml.ml"
] | ml@ml.ml |
db9cd50f3aadca1b7aa8743f04df52bb8500e648 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_ragging.py | caeac9f2b2bb16f84f6163f1ccab0b4105891c5f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py |
from xai.brain.wordbase.nouns._rag import _RAG
#calss header
class _RAGGING(_RAG, ):
def __init__(self,):
_RAG.__init__(self)
self.name = "RAGGING"
self.specie = 'nouns'
self.basic = "rag"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0732038e2ed3db4d41b13d62d60565ab5ed657eb | 4ee2ebef215cf879aafdfa44221f52d82775176a | /Inheritance/Lab/2-Single_Inheritance/project/dog.py | 56c8b0f2a4ed21f170821e2ff8e0bb9e5a15f259 | [] | no_license | Avstrian/SoftUni-Python-OOP | d2a9653863cba7bc095e647cd3f0561377f10f6d | 6789f005b311039fd46ef1f55f3eb6fa9313e5a6 | refs/heads/main | 2023-08-01T09:31:38.099842 | 2021-08-24T04:21:38 | 2021-08-24T04:21:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from project.animal import Animal
class Dog(Animal):
def bark(self):
return "barking..." | [
"noreply@github.com"
] | Avstrian.noreply@github.com |
242fe20624e3d8037961ba02bdb58f7f241e70f3 | 487487954ce7b34b97a904be4082e5da5cfacec2 | /111 - [Dicionários] Dicionário ao Quadrado.py | 196171116d337553c2a4b528249b5ec6029ee31c | [] | no_license | rifatmondol/Python-Exercises | 62eae905793e4f747a51653fd823fe7aba49a3c3 | 5b5f3fa6bf34408ca9afa035604a79cf19559304 | refs/heads/master | 2022-01-19T02:07:10.940300 | 2018-12-26T18:07:17 | 2018-12-26T18:07:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | #111 - Define a function which can print a dictionary where the keys are numbers between 1 and 20
# (both included) and the values are square of keys.
#Hints:
#Use dict[key]=value pattern to put entry into a dictionary.
#Use ** operator to get power of a number.
#Use range() for loops.
dic = dict()
for i in range(... | [
"astrodelta14@gmail.com"
] | astrodelta14@gmail.com |
8d0ce9b1ef5e3b6c693faf33f8dbac726b2e6695 | d69361c62ba587b9666f39829afdc9ad8ed9e420 | /svm/svm.py | cc339ecafd0e26cb2994ff4a348ca8775d626ce9 | [] | no_license | ienoob/noob_ml | cd7dc184460344e1029631efd34ded0965e2bb48 | 6998d6e4e181e44ad3f0ca7cf971f16638d04ce4 | refs/heads/master | 2021-07-04T10:27:40.006224 | 2020-07-27T15:17:31 | 2020-07-27T15:17:31 | 129,582,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
svm 可以转化为二次规划问题,因此我们使用cvxopt, 优化计算包
hard margin
"""
import numpy as np
from cvxopt import matrix, solvers
A = matrix([[-1.0, -1.0, 0.0, 1.0], [1.0, -1.0, -1.0, -2.0]])
b = matrix([1.0, -2.0, 0.0, 4.0])
c = matrix([2.0, 1.0])
sol = solvers.lp(c,A,b)
print(sol['... | [
"jack.li@eisoo.com"
] | jack.li@eisoo.com |
be991b336ec80eefea679e6f1036e7c93a80836d | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/qos/dpppoldef.py | 07db39bf27f51318af1f2d27fe217aedf070436a | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 13,954 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
72fa7896536b8eb0c0e4ac68879b393b1d8eb55e | c3432a248c8a7a43425c0fe1691557c0936ab380 | /21_06/21318_피아노 체조.py | 2ac7ef5cc09f9db10fd4aaedd83e2750eab32bd7 | [] | no_license | Parkyunhwan/BaekJoon | 13cb3af1f45212d7c418ecc4b927f42615b14a74 | 9a882c568f991c9fed3df45277f091626fcc2c94 | refs/heads/master | 2022-12-24T21:47:47.052967 | 2022-12-20T16:16:59 | 2022-12-20T16:16:59 | 232,264,447 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import sys
input = sys.stdin.readline
N = int(input())
arr = [0] + list(map(int, input().split()))
count = [0] * (N + 1)
for i in range(1, N + 1):
if arr[i - 1] > arr[i]:
count[i] = count[i - 1] + 1
else:
count[i] = count[i - 1]
for _ in range(int(input())):
x, y = map(int, input().split()... | [
"pyh8618@gmail.com"
] | pyh8618@gmail.com |
70cef27fcfb994c1a1bfac85041aa6da8f0723c0 | b40a25499e22c5d190a03967d894767274306cdf | /python1809/django/day01/day01/settings.py | ea10f988e583b48c9b90cabdada0da0d5b60cb1c | [] | no_license | 845788173/copy | d47a9f8250e4bdf914acac16881b54f2afefdd9a | 574f147713112afe2233074677ae0c441c2217f5 | refs/heads/master | 2022-12-18T14:20:41.998343 | 2018-12-08T11:01:12 | 2018-12-08T11:01:12 | 160,929,213 | 0 | 0 | null | 2022-12-08T02:27:51 | 2018-12-08T10:41:58 | JavaScript | UTF-8 | Python | false | false | 3,288 | py | """
Django settings for day01 project.
Generated by 'django-admin startproject' using Django 1.11.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"845788173@qq.com"
] | 845788173@qq.com |
8a872f8344458b89f8e88fb66eedacc0c973bc03 | 96858f02c03fc60a8854ea62ee2b0d0faff52e80 | /mid/auth_/admin.py | 829b7dd3f3d8a4bda9897d6a5defdad313a3567c | [] | no_license | dorenyerbolov/django-mid | e9fe0d8dacef806d4f872f647c79f93c82690cf8 | ffdf076840c3295e6b85cbb5c9cfebd33e872bf1 | refs/heads/main | 2023-03-23T09:50:22.391463 | 2021-03-20T06:24:48 | 2021-03-20T06:24:48 | 349,621,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.contrib import admin
from auth_.models import Profile
admin.site.register(Profile)
| [
"doren.yerbolov@gmail.com"
] | doren.yerbolov@gmail.com |
b84e4f89e4a5a239ea8d712e0f74b8bef791e17c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/14a30f4e97714ddc8d4a087e3b3fe203.py | 2df8a4dced86b19360b6f8f44dbe4d2408d9e2e4 | [] | 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 | 1,677 | py | #
# Skeleton file for the Python "Bob" exercise.
#
def hey(what):
""" exercise bob """
stating_something = ('Tom-ay-to, tom-aaaah-to.')
shouting = ('WATCH OUT!')
asking_a_question = ('Does this cryogenic chamber make me look fat?')
asking_a_numeric_question = ('You are, what, like 15?')
talking... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
5366df88285235633e44287a3950189650d383b1 | 2d9cea7839a900921850f2af1ccafc623b9d53b9 | /websecurityscanner/google/cloud/websecurityscanner_v1alpha/types.py | 594571c6551b0c0557820428c4ec53212cbc344e | [
"Apache-2.0"
] | permissive | smottt/google-cloud-python | cb28e8d59cc36932aa89e838412fe234f6c4498c | 2982dd3d565923509bab210eb45b800ce464fe8a | refs/heads/master | 2020-03-31T21:12:02.209919 | 2018-10-10T18:04:44 | 2018-10-10T18:04:44 | 152,571,541 | 0 | 1 | Apache-2.0 | 2018-10-11T10:10:47 | 2018-10-11T10:10:47 | null | UTF-8 | Python | false | false | 2,175 | py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | smottt.noreply@github.com |
691659c96bf52e69564c6ecb6e45aef25c446dad | ab0deb25919bcc71c1314a817097429063009364 | /tests/conftest.py | 5a05b92c97189d95238ceb1c91c9ae4ff89cb1b0 | [
"MIT"
] | permissive | spiritEcosse/panda | babecf3b4c72b3ddf78d967336547f1ce8728f40 | f81284bfd331a3eb24ce6e5a8adbaf9922fa07e2 | refs/heads/master | 2020-07-29T09:45:33.123744 | 2020-02-06T12:24:31 | 2020-02-06T12:24:31 | 201,935,610 | 0 | 0 | MIT | 2019-08-12T14:09:28 | 2019-08-12T13:26:57 | Python | UTF-8 | Python | false | false | 1,461 | py | import os
import warnings
import uuid
import django
location = lambda x: os.path.join(
os.path.dirname(os.path.realpath(__file__)), x)
def pytest_addoption(parser):
parser.addoption(
'--deprecation', choices=['strict', 'log', 'none'], default='log')
def pytest_configure(config):
os.environ.setde... | [
"shevchenkcoigor@gmail.com"
] | shevchenkcoigor@gmail.com |
2950e13658a7f32171eb003a46a7e20312cf93e7 | c85ec51b920350e095b6fc67435a490352cef1f4 | /goods/migrations/0011_auto_20171123_1905.py | c64ad543bd44f19a496033c50db30be361e4f006 | [
"Apache-2.0"
] | permissive | huachao2017/goodsdl | 195dbc959d424248982b61f2fe2c22dbc4347746 | 3616d53b90696a97a5d56a064e2a14d484b821d7 | refs/heads/master | 2021-06-11T01:55:16.235507 | 2019-09-24T07:49:08 | 2019-09-24T07:49:08 | 109,931,837 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-23 19:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goods', '0010_actionlog_traintype'),
]
operations = [
migrations.AlterField... | [
"21006735@qq.com"
] | 21006735@qq.com |
99fa6952d27fe8543059eb0ba864ec39c86bcbd7 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_3094.py | fbce41b739b90bf7443909681aa9ce1029fc56ab | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # How can I get 'urlpatterns = __import__(<string_name>)' to work like a normal import statement?
urlpatterns = __import__(project_urls).whateversubmodule.urlpatterns
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
284762867cc565f2e98d0cd20d8e708a667b0cbd | 8dfb45ef6c142bb25183339e6a13e06a14a86dbe | /kansha/comment/comp.py | 71e725244c85f4652c5b1310caff84edf4185a08 | [] | no_license | blugand/kansha | 04be2581fa0bf9d77898bc26f668e2febb78dac4 | 227d834596bd66b03c2fc78f7f65dee04116668a | refs/heads/master | 2021-01-15T10:35:52.144198 | 2015-11-24T09:29:21 | 2015-11-24T09:29:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,094 | py | # -*- coding:utf-8 -*-
#--
# Copyright (c) 2012-2014 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
#--
import datetime
from nagare import component, security
from nagare.databas... | [
"romuald.texier-marcade@net-ng.com"
] | romuald.texier-marcade@net-ng.com |
35af09717e2aaf8be07a673fd6762eae2a90d225 | f9505e7e8d9428bea5db3a7a1d41fbae25f0d803 | /school/south_migrations/0008_auto__chg_field_deal_heading__chg_field_event_heading.py | d302a0155431fbfe3e8520eea8673f28ae95bf4c | [] | no_license | SIMSON20/main | ec2d046c0ccbe56048317e5ff6a0254a21383705 | 1f0086547123a9ccc4a2c60a5faa49cb2637ec34 | refs/heads/master | 2021-05-30T11:33:21.356930 | 2015-09-29T23:29:04 | 2015-09-29T23:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,034 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Deal.heading'
db.alter_column('school_deal', 'heading'... | [
"awwester@gmail.com"
] | awwester@gmail.com |
e05551940606357497877b7b37864e74b5955d81 | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /pyobjc/pyobjc/pyobjc-framework-Cocoa-2.5.1/PyObjCTest/test_nsobject_additions.py | 440f0068238912d07f34ae5b24bf1f43a761262d | [
"MIT"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 15,818 | py | from PyObjCTools.TestSupport import *
import Foundation
import sys
if sys.version_info[0] == 2:
from StringIO import StringIO
def _str(v): return v
else:
from io import StringIO
def _str(v):
if isinstance(v, str):
return v
return v.decode('ascii')
class TheadingHelperTest... | [
"opensource@apple.com"
] | opensource@apple.com |
807e79a4a73a139395c2af3d8c63d99759a161d1 | e7dd22eb03b914b1be39c0e46799857fac1d3f8a | /tests/log_generator.py | dae9a56cf64769986c40651a02254901a8875048 | [] | no_license | O-Swad/PyLog | f6d774636e059939fd449daaebe5f8e807ccb1cd | 360d86ef13b40622f7fb83eaf0c2dbea77d5dbc5 | refs/heads/main | 2023-06-03T20:38:04.986515 | 2021-06-26T16:41:47 | 2021-06-26T16:41:47 | 374,059,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | import time
import random
hours = 2
now_time = int(time.time()*1000)
last_time = now_time - 3600 * 1000 * hours # one day of data in milliseconds
hosts = ['everest', 'annapurna', 'lhotse', 'manaslu', 'dhaulagiri']
separator = ' '
counter = 0
with open('test-log-file.txt', 'a') as log_file:
for log_timestamp in r... | [
"="
] | = |
5c1d8320d057b699aa7ea010ec4e33e8dd18a69a | 36c28058a966b777f39d8212ac598da48a9ec04e | /functions.py | f9611c9788718ef2431ebdb872ed792f1546c5b6 | [] | no_license | cjmugs/Python_files | 02ee681baac4a43e5aa6e490fa538a6d67932364 | 5e8d38a9938e631a8ded474708c1fab86cc0784b | refs/heads/master | 2022-12-19T16:37:34.061004 | 2020-09-29T01:43:23 | 2020-09-29T01:43:23 | 299,338,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | # creating a function that squares a number
#This is how to define a function/ / /X=input
def square(x):
return x * x
| [
"cjmugs@gmail.com"
] | cjmugs@gmail.com |
7ddbc340eb0394d89d0c8a87e6b760b2066eff80 | 65d9e2e2919554af3d84f63006ce7baa9f5b0213 | /oops/class method.py | 82902983f9b732c20f372e10b6324e2014989def | [] | no_license | quintus2020intern/PM_Basic_Python | 538e970f9a416691a229a594ffadfb18f28084a7 | 4891967490f068c7dd2d86df0519d852f066046f | refs/heads/master | 2020-12-11T08:24:09.987816 | 2020-03-30T10:45:03 | 2020-03-30T10:45:03 | 233,799,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # class Test:
# count = 0 # static variable
#
# def __init__(self):
# Test.count = Test.count + 1
#
# @classmethod
# def getNoOfObject(cls):
# print("no of object", cls.count)
#
#
# t1 = Test()
# t1.getNoOfObject()
# class Test:
# @classmethod
# def df(cls):
# print(id... | [
"pragayanparamitaguddi111@gmail.com"
] | pragayanparamitaguddi111@gmail.com |
90fae8edfd4aa80e595fc01abed64323bf71279f | fe0017ae33385d7a2857d0aa39fa8861b40c8a88 | /env/lib/python3.8/site-packages/sklearn/cluster/__init__.py | 04fcee55d143f04403e2a52690a0d6b07eb1a638 | [] | no_license | enriquemoncerrat/frasesback | eec60cc7f078f9d24d155713ca8aa86f401c61bf | e2c77f839c77f54e08a2f0930880cf423e66165b | refs/heads/main | 2023-01-03T23:21:05.968846 | 2020-10-18T21:20:27 | 2020-10-18T21:20:27 | 305,198,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | """
The :mod:`sklearn.cluster` module gathers popular unsupervised clustering
algorithms.
"""
from ._affinity_propagation import affinity_propagation, AffinityPropagation
from ._agglomerative import (ward_tree, AgglomerativeClustering,
linkage_tree, FeatureAgglomeration)
from ._bicluster i... | [
"enriquemoncerrat@gmail.com"
] | enriquemoncerrat@gmail.com |
9e23232fb9f4b9c0dfab6d79764b757d42dd29e1 | 52580a60f1f7b27655a2543b1aa4c92a56053ead | /migrations/versions/824086b2abe3_bookmarks_table.py | 63851c4dfd9eb9032d2371364c2bc96f09fa116f | [] | no_license | nitin-cherian/personal_blog | 4d42a886e527dabecbfc82d30d3125c07d428192 | f3ef365ff0a5d9004c6b5407912aa93af2f0f855 | refs/heads/master | 2021-04-09T15:18:09.855063 | 2018-03-25T11:39:51 | 2018-03-25T11:39:51 | 125,714,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | """bookmarks table
Revision ID: 824086b2abe3
Revises: 9c5d6731465a
Create Date: 2018-03-25 16:32:09.932871
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '824086b2abe3'
down_revision = '9c5d6731465a'
branch_labels = None
depends_on = None
def upgrade():
... | [
"nitin.cherian@gmail.com"
] | nitin.cherian@gmail.com |
76ca7e8409c7d796eb9fd1e95f6eabb2688c03f6 | f9e50b7c9079c5994b9f9f1b661c6259c3ff7510 | /video_sub/settings.py | 646fdabba6d3920d27a94c5b3564da09fdf1575a | [] | no_license | njokuifeanyigerald/video-subscription | 6598f9ec3a677ec1bcb031aa5499f546fed97bf3 | 5e479f142306f149d0d9aa3169bfeeba0953d6c2 | refs/heads/master | 2022-11-16T07:15:27.780389 | 2020-07-08T12:39:17 | 2020-07-08T12:39:17 | 277,650,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,164 | py | """
Django settings for video_sub project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"brainboyrichmond@gmail.com"
] | brainboyrichmond@gmail.com |
08f4d070632ee86bad8a064fde41cbfb19aeb520 | e17e40dbb6ed8caaac5c23de29071b403637f5ae | /transformers_keras/transformer/point_wise_ffn.py | 317f811c72b207e769dbb52cc0c3d75b49867c4c | [
"Apache-2.0"
] | permissive | Linessiex/transformers-keras | cb739075c8daab39d52dc6cd6bafe5e45f8259be | 0bb576db356f575390815dc64840b78b8ecf6227 | refs/heads/master | 2020-11-25T05:58:09.448200 | 2019-09-23T09:13:59 | 2019-09-23T09:13:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | import tensorflow as tf
class PointWiseFeedForwardNetwork(tf.keras.Model):
def __init__(self, d_model, dff):
super(PointWiseFeedForwardNetwork, self).__init__(name='ffn')
# self.d_model = d_model
self.dense_1 = tf.keras.layers.Dense(dff, activation='relu')
self.dense_2 = tf.keras.... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
4415658f3a51da55638037244704972110642216 | bb6bc5929b463c6d8564e0d2045b25402e855041 | /graphutils/graphClusterSampler.py | 4af5dbcd62721ee1fd740f2f85707126c18a34a8 | [] | no_license | xjtuwgt/ContrastiveKGE | e6560fc7c8ddacb1bfd8118fe9c4f1112f234a18 | 15e2f58b4bef527fe49e0b2a817c4b7ab706d03b | refs/heads/main | 2023-07-20T13:04:36.780926 | 2021-09-07T02:17:19 | 2021-09-07T02:17:19 | 348,168,386 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | import os
import dgl
import torch
from graphutils.partition_utils import get_partition_list
import numpy as np
class ClusterIter(object):
'''The partition sampler given a DGLGraph and partition number.
The metis is used as the graph partition backend.
'''
def __init__(self, dn, g, psize, batch_size):
... | [
"guangtao.wang@jd.com"
] | guangtao.wang@jd.com |
6a4e0c9277e2d77ad14e7fd67a40cff6e71e563c | b4eb1cd674580ef0136d1d5452cc039b295ecc6c | /tests/test_middleware.py | df774ee26a644c82aa55d405a7c4aca0dcde8b3f | [
"MIT"
] | permissive | jrobichaud/django-groups-cache | e0689c276adc8db93b0babb9245d65aa1896d2bb | cf219753f1e9d8f10437ce11671a246327431598 | refs/heads/master | 2020-04-30T09:31:18.855358 | 2018-01-06T13:57:12 | 2018-01-06T13:57:12 | 176,749,747 | 0 | 0 | null | 2019-03-20T14:18:18 | 2019-03-20T14:18:18 | null | UTF-8 | Python | false | false | 2,242 | py | import django
from django.core.cache import cache
from django.contrib.auth.models import AnonymousUser, User, Group
from django.test import TestCase
from mock import Mock
import mock
from groups_cache.compat import is_authenticated
from groups_cache.middleware import GroupsCacheMiddleware
from groups_cache import signa... | [
"castner.rr@gmail.com"
] | castner.rr@gmail.com |
bb042febed8e692192c700d682213ca7c55341eb | 3e7db53009b413d1e9d2631be662487fb1e77117 | /asposetaskscloud/models/timephased_data_type.py | d636d7d383e4b84bb6debe99fdf47c6aa0aed1ca | [
"MIT"
] | permissive | aspose-tasks-cloud/aspose-tasks-cloud-python | d35e318ecc35ee9463fd7602a2e1f4f7dad17e33 | 7b61335d82529020f610bd5ae679244d0cdb83d1 | refs/heads/master | 2022-12-24T23:06:02.336709 | 2022-12-17T12:23:33 | 2022-12-17T12:23:33 | 240,446,905 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,294 | py | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="TimephasedDataType.py">
# Copyright (c) 2020 Aspose.Tasks Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of th... | [
"ivan.andreychikov@gmail.com"
] | ivan.andreychikov@gmail.com |
817f724a608c79e36228a2d083a46f35bbc6f05e | 6abb92d99ff4218866eafab64390653addbf0d64 | /AtCoder/asa/2020/asa1117/c.py | f70e5d0c728ab867d45e89e016167d61880e2a9b | [] | no_license | Johannyjm/c-pro | 38a7b81aff872b2246e5c63d6e49ef3dfb0789ae | 770f2ac419b31bb0d47c4ee93c717c0c98c1d97d | refs/heads/main | 2023-08-18T01:02:23.761499 | 2023-08-07T15:13:58 | 2023-08-07T15:13:58 | 217,938,272 | 0 | 0 | null | 2023-06-25T15:11:37 | 2019-10-28T00:51:09 | C++ | UTF-8 | Python | false | false | 366 | py | n, m = map(int, input().split())
sc = [list(map(int, input().split())) for _ in range(m)]
for i in range(1000):
num = str(i)
d = len(num)
if(d != n): continue
valid = True
for s, c in sc:
s -= 1
if(num[s] != str(c)):
valid = False
break
if(valid... | [
"meetpastarts@gmail.com"
] | meetpastarts@gmail.com |
0bbf230ea672d04d5387ce3b1400a15eacbd03f4 | 47404873eebf6f042fcdfc488f7f2c87d27be755 | /checkov/version.py | 2be33f00faead58ef9c74921ccdbfa39765e2abd | [
"Apache-2.0"
] | permissive | rodrigoieh/checkov | 234bd96f9de45f2a84c02d41df9baa20c61e46fd | 90323525549fd0344b46db8c9e4952e4511e9efa | refs/heads/master | 2023-03-29T15:17:37.619865 | 2021-04-10T08:20:39 | 2021-04-10T08:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | version = '2.0.28'
| [
"action@github.com"
] | action@github.com |
120e45f76663885b569469fe940f8275dabec8d8 | 31312c4070788c045a35efb29f97da421ca3b1cf | /models/db.py | b89340b82593eea5e256fd3fdc20294991400418 | [
"LicenseRef-scancode-public-domain"
] | permissive | hitesh96db/stopstalk | c530f30335efdc0c8939c640bb1efd9e33565851 | 486b3876a928ba634d245ed9e153e63d54af5820 | refs/heads/master | 2020-12-30T20:56:08.016000 | 2015-10-06T22:22:33 | 2015-10-06T22:22:33 | 43,397,646 | 0 | 0 | null | 2015-09-29T22:15:46 | 2015-09-29T22:15:46 | null | UTF-8 | Python | false | false | 7,246 | py | # -*- coding: utf-8 -*-
#########################################################################
## This scaffolding model makes your app work on Google App Engine too
## File is released under public domain and you can use without limitations
#########################################################################
... | [
"raj454raj@gmail.com"
] | raj454raj@gmail.com |
c80e6023fed108386a207eb74c98d32d92da4a79 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_swellest.py | c1d8de1b1e9a8d50b6af4e00d336f59e34ce7fc6 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py |
from xai.brain.wordbase.adjectives._swell import _SWELL
#calss header
class _SWELLEST(_SWELL, ):
def __init__(self,):
_SWELL.__init__(self)
self.name = "SWELLEST"
self.specie = 'adjectives'
self.basic = "swell"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d7431e16f379bab0fbe33e2d1a47595816abb9e5 | 5dff0d0bcb6f48085f934dc4ab28f4e55727282d | /server/instruments/reaper.py | 4eff8967fb514f27e40d335884bff3d7c351c998 | [] | no_license | the-fool/hoku | 4d2304d602fc86400687c68c359799569e55effd | 2f53ecf6ef978ea9d75fa3c77e750ec328065add | refs/heads/master | 2018-10-26T09:14:12.214534 | 2018-08-26T22:49:19 | 2018-08-26T22:49:19 | 103,051,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | from .base import BaseInstrument
class Reaper(BaseInstrument):
MINI_1_VOL = 9
MINI_1_VERB = 10
MINI_1_DIST = 11
MINI_2_VOL = 15
MINI_2_VERB = 12
MINI_2_DIST = 13
DRUM_VERB = 14
def mini_1_vol(self, value):
self._control(self.MINI_1_VOL, int(value))
def mini_2_vol(self, ... | [
"sketchbang@gmail.com"
] | sketchbang@gmail.com |
4720ddc731d6c1da9f9078fa6bd36c468dff766e | b0b87924d07101e25fa56754ceaa2f22edc10208 | /workspace/python_study/python_gspark/day4-1.py | f83b2699257b4262d3bbda20f3dba246ce56ecb2 | [] | no_license | SoheeKwak/Python | 2295dd03e5f235315d07355cbe72998f8b86c147 | e1a5f0ecf31e926f2320c5df0e3416306b8ce316 | refs/heads/master | 2020-04-02T13:49:58.367361 | 2018-11-23T09:33:23 | 2018-11-23T09:33:23 | 154,499,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | from bs4 import BeautifulSoup
html = """
<html><body>
<ul>
<li>
<a href="http://www.naver.com">naver</a>
</li>
<li>
<a href="http://www.daum.net">daum</a>
</li>
</ul>
</body></html>
"""
soup = BeautifulSoup(html, 'html.parser')
link = soup.find("a")
print(link)
li... | [
"soheekwak728@gmail.com"
] | soheekwak728@gmail.com |
5b359b667dad448b3a80c84e30867c87d641f496 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/str_get_element-42.py | 890eb44f037c7631688f2cc5967b68b4d12596ca | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | x:str = "abc"
a:str = ""
b:str = ""
c:str = ""
def str_get(s:str, $TypedVar) -> str:
return s[i]
a = str_get(x, 0)
b = str_get(x, 1)
c = str_get(x, 2)
print(a)
print(b)
print(c)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.