blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
319afda57560172da3a9a019607006d6b877dc1b | bf681fbd7edbf4f8f1e0b20cbd09b362f777c9c3 | /python/bazel_pystyle_black_isort/python_lint.py | 27376fcf03eb86e135e50205d356355a6d6d6ac5 | [
"BSD-3-Clause"
] | permissive | EricCousineau-TRI/repro | 308d4a86f3c7da8be5811db2f3f68d39db60d7ed | 9800f45e07f511c9a355ee90333955451b55559a | refs/heads/master | 2023-08-31T13:49:23.540640 | 2023-08-25T19:18:33 | 2023-08-25T19:18:33 | 87,116,976 | 24 | 13 | NOASSERTION | 2023-03-25T01:40:55 | 2017-04-03T20:19:28 | Jupyter Notebook | UTF-8 | Python | false | false | 6,591 | py | """
Check Python code for semantic errors (bad imports, etc.).
"""
import argparse
import json
from os.path import isfile
import re
import sys
from textwrap import indent
# N.B. black's public API is a bit unstable.
import black
import isort
KNOWN_PYTORCH_PACKAGES = [
"torch",
"torchvision",
]
def eprint(*... | [
"eric.cousineau@tri.global"
] | eric.cousineau@tri.global |
354922c78bf1544cd2219eeed6a057b22c959414 | 9bb01fa882e713aa59345051fec07f4e3d3478b0 | /tests/cysparse_/sparse/common_attributes/test_common_attributes_matrices_likes_ConjugatedSparseMatrix_INT32_t_INT32_t.py | 28785255adae738602ca0b0a187f84a636ddd1c9 | [] | no_license | syarra/cysparse | f1169c496b54d61761fdecbde716328fd0fb131b | 7654f7267ab139d0564d3aa3b21c75b364bcfe72 | refs/heads/master | 2020-05-25T16:15:38.160443 | 2017-03-14T21:17:39 | 2017-03-14T21:17:39 | 84,944,993 | 0 | 0 | null | 2017-03-14T12:11:48 | 2017-03-14T12:11:48 | null | UTF-8 | Python | false | false | 7,379 | py | #!/usr/bin/env python
"""
This file tests basic common attributes for **all** matrix like objects.
Proxies are only tested for a :class:`LLSparseMatrix` object.
See file ``sparse_matrix_coherence_test_functions``.
"""
from sparse_matrix_like_common_attributes import common_matrix_like_attributes
import unittest
fro... | [
"sylvain.arreckx@gmail.com"
] | sylvain.arreckx@gmail.com |
fd56737b198629084231e79e509803626fa804c2 | 7b033781f8bce77dad1ee27c7c96ef7b8361f27c | /config/config_otc.py | 6b1e4b16229dfd06fa4d98d2d02877cae7a13878 | [] | no_license | cash2one/announcement_otc | c1ecb8e5e82d800e6aaf731f2de4d1a446d93d37 | 86be08325bd193eadff7bd56968d150f573b2a27 | refs/heads/master | 2020-05-23T12:57:26.496296 | 2016-09-20T03:23:29 | 2016-09-20T03:23:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | # -*- coding: utf-8 -*-
from os.path import join, abspath, dirname
refer_uri = 'http://www.neeq.com.cn/announcement'
URI = 'http://www.neeq.com.cn/disclosureInfoController/infoResult.do?callback='
FORM_DATA = {
'disclosureType': '5',
'page': '0', # Change
'companyCd': '',
'isNewThree':... | [
"xutao.ding@chinascopefinancial.com"
] | xutao.ding@chinascopefinancial.com |
7e5067e2793e982f135b0207ea31c1392356f0a2 | f8c3c8ae27b9ed7df6129edbbadec253a344c5e1 | /treenav/migrations/0003_auto__chg_field_menuitem_parent.py | e655d162f0283a79e5fb8538e04bc7cbe5daf74e | [] | no_license | weijia/django-treenav | 7607c0a11e5df108a0786263a738a87ef3f0fe75 | 662bc5ef75f62a36294dc33fee57f86156ac0dd2 | refs/heads/master | 2021-01-17T22:07:56.956872 | 2014-12-26T12:13:18 | 2014-12-26T12:13:18 | 22,033,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,815 | 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 'MenuItem.parent'
db.alter_column('treenav_menuitem', '... | [
"vinod@kurup.com"
] | vinod@kurup.com |
dc9bc36023145396ce10142e03973da1fcdcc40d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_disheartened.py | ed77d9dc087968f2e62aa3634513e24abf38d7af | [
"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 | 240 | py |
#calss header
class _DISHEARTENED():
def __init__(self,):
self.name = "DISHEARTENED"
self.definitions = dishearten
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['dishearten']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8136b0804c994e0b9a7b49fbb306c86db7faed72 | e9aba67fd59abf7fd68df28a0cc69cae97c7dc4c | /backend/event/migrations/0001_initial.py | 09e5f55e56afdcc5df6ce1be051d19b884c5af33 | [] | no_license | crowdbotics-apps/demo-20477 | d709c453c8411ffbd5b41c5bab1030ec94d9af2e | 63f7e3b9f5304bbfa0e31647d3fbc13287564373 | refs/heads/master | 2022-12-08T20:19:33.326484 | 2020-09-20T13:12:17 | 2020-09-20T13:12:17 | 297,078,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,766 | py | # Generated by Django 2.2.16 on 2020-09-20 13:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a9bd379e1a0a8ad0be07121782f5822df1b0140a | 0edf65db87f6f0a99c74ab14231471d6a1e85d55 | /nautobot_golden_config/tests/test_api.py | ae904067394ff1ea5b64af880de416fd1c7a9604 | [
"Apache-2.0"
] | permissive | jpobeda/nautobot-plugin-golden-config | cfe94b6735edfb0509e6064ed7197821592e5096 | e911cf5b229900f69fd8792ed6b1a92db9ebc55a | refs/heads/main | 2023-03-29T06:44:59.703555 | 2021-02-24T14:40:11 | 2021-02-24T14:40:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | """Unit tests for nautobot_golden_config."""
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APIClient
from nautobot.users.models import Token
User = get_user_model()
class PlaceholderAP... | [
"ken@celenza.org"
] | ken@celenza.org |
ff9a26845781688bda48a45f8d89c8396d8adac0 | 1be6d0cae96d906866582af8e3fbda00aa42758c | /webssh/worker.py | 672b5b6b2eb9aef8a302bbd199ad87f1c6d4e578 | [] | no_license | CaesarLinsa/webssh_caesarlinsa | 1e0fe862ca8d735de9e7349f98cb9bb9fd10e13f | fb32e1daa6aa23d2b9a5114cd94d5105fd775899 | refs/heads/master | 2022-12-09T10:29:09.185492 | 2020-09-11T16:42:05 | 2020-09-11T16:42:05 | 289,730,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,827 | py | import logging
import tornado.websocket
from tornado.ioloop import IOLoop
from tornado.iostream import _ERRNO_CONNRESET
from tornado.util import errno_from_exception
BUF_SIZE = 32 * 1024
clients = {} # {ip: {id: worker}}
def clear_worker(worker, clients):
ip = worker.src_addr[0]
workers = clients.get(ip)
... | [
"Caesar_Linsa@163.com"
] | Caesar_Linsa@163.com |
d1525729bdb24fb613931bb8f6ddaeb00fa31629 | 4ce0f35c6aa01f5041a11979a8b5662d8ad08962 | /news/views.py | b14783e6a08dc503f62691fb52f589bfcfd6b640 | [] | no_license | lanlanzky/tt | f125785b00b51774c9033492117305dfba19fb8f | 4666af6a250a48200f5af9ef9692da53bbfcd79d | refs/heads/master | 2016-09-06T02:19:18.492453 | 2014-09-01T13:26:55 | 2014-09-01T13:26:55 | 23,542,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | #coding=utf8
import os,sys
import datetime
import time
from django.http import HttpResponse
from django.shortcuts import render_to_response
from pybrain.datasets import SupervisedDataSet
from pybrain.tools.shortcuts import buildNetwork
from pybrain.supervised.trainers import BackpropTrainer
def information(request):
c... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a8885a65b1123681cd589e5c8d409f3fbf5a5937 | e54ba2b1a15f0a84c917dcbcb9b2a9a515558226 | /cksearching7.py | e9a1fc2ab0a302710e3bdf6a590c40e04e05c71e | [] | no_license | Vk-Demon/vk-code | 09160de1524473227972d3a95a66f4c0cd1ac7c6 | cfb86fce590bff68b8ec5835394f7879a58c3655 | refs/heads/master | 2023-03-30T14:38:54.365966 | 2021-04-05T06:44:11 | 2021-04-05T06:44:11 | 197,799,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | nstd,rmrk=input().split() # Ramesh is a studious student and wants to find out if there is any other student in his class who has got the same marks as his, in maths. Help him find out.
nstd,rmrk,idx=int(nstd),int(rmrk),0
amrk=[int(i) for i in input().split()]
for i in range(0,nstd):
if(amrk[i]==rmrk):
idx=i
if(... | [
"noreply@github.com"
] | Vk-Demon.noreply@github.com |
b1036fadfec9795fab8120a8e4ae33690af59d34 | 962637d5981c1702e1aa64af867fb4b76d699285 | /tensorflow2/mnist_dataset_classify/config.py | 53f7eee1435937c8970dd1e024c419b0a3c50f1a | [] | no_license | shawroad/Tensorflow-Learning-Summary | eebbeae629196d1a11688873a12a29a64a6c0b97 | 57035d21cd47dca1fce9373b77677f7979af9681 | refs/heads/master | 2021-06-15T02:41:13.224445 | 2021-06-04T12:07:30 | 2021-06-04T12:07:30 | 196,351,497 | 4 | 0 | null | 2019-10-18T10:16:18 | 2019-07-11T08:21:29 | Python | UTF-8 | Python | false | false | 282 | py | """
@file : config.py
@author : xiaolu
@email : luxiaonlp@163.com
@time : 2021-06-03
"""
import argparse
def set_args():
parser = argparse.ArgumentParser()
parser.add_argument('--epoch_num', default=10, type=int, help='训练几轮')
return parser.parse_args()
| [
"luxiaonlp@163.com"
] | luxiaonlp@163.com |
9d6498414eb3569fee4886cc8b43bf5ecce0a8ec | 9788df18d5adaa469a0cb51f47309cd7401201e5 | /alisdk/top/api/rest/AthenaItemSolutionGetRequest.py | cbe900ed1a4cbdf6c5f90717aae6966c1385a217 | [] | no_license | sevennothing/aliyunTestPrj | cf690ce4765497f1b16359b82ef64f1ef992713c | 1b3e883d32c759e03fe5053c50e9a973f59bbffc | refs/heads/master | 2021-01-17T03:15:59.082544 | 2015-03-11T14:16:58 | 2015-03-11T14:16:58 | 32,001,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | '''
Created by auto_sdk on 2014-11-20 12:53:43
'''
from top.api.base import RestApi
class AthenaItemSolutionGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.id = None
self.item_id = None
self.type_key = None
def getapiname(self):
... | [
"licj@out.lrserver"
] | licj@out.lrserver |
45e5c6d2945b78df18430336bc4bcc70196107e9 | 2fa102b20ea99d796cc3677c9305f1a80be18e6b | /Mixed OJ Problems/hackerEarth_sudoku_sets.py | 1d3c479ae42d5567df0e488afdb019871dd8ea13 | [] | no_license | pronob1010/Codeforces_Solve | e5186b2379230790459328964d291f6b40a4bb07 | 457b92879a04f30aa0003626ead865b0583edeb2 | refs/heads/master | 2023-03-12T11:38:31.114189 | 2021-03-03T05:49:17 | 2021-03-03T05:49:17 | 302,124,730 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | def f_check(arr, x, y , pos):
c = 0
for j in range(len(arr)):
if arr[x][j] == pos:
c+=1
if c>1:
return False
c1 = 0
for i in range(len(arr)):
if arr[i][y] == pos:
c1 += 1
if c1 > 1:
return False
c2 = 0
sub_l_top_i = 3 * (x // 3)
... | [
"pronobmozumder.info@gmail.com"
] | pronobmozumder.info@gmail.com |
b8d7443843982154ec11b278ff138a1bf30495e7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04031/s576833992.py | 7db85f5ebc14a093e163e73cd0e05bba80ea0103 | [] | 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 | 188 | py | N = int(input())
A = list(map(int,input().split()))
ans = float('inf')
for i in range(-100, 101):
cnt = 0
for a in A:
cnt += (a - i) ** 2
ans = min(ans, cnt)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
754752d63343e801239f4e51bc7b4ef8c6c0f390 | fd25231975acd147e04dc3ed3627c92cb1a4f86c | /FlaskAPI/vir_env/lib/python3.7/site-packages/sklearn/feature_selection/tests/test_feature_select.py | 1a0af94ee8f55baf7c02ba875f52e3c13ff229d0 | [] | no_license | sumitkutty/Flight-Price-Prediction | 832a2802a3367e655b46d3b44f073d917abd2320 | d974a8b75fbcbfa42f11703602af3e45a3f08b3c | refs/heads/master | 2022-12-25T07:13:06.375888 | 2020-10-08T18:46:44 | 2020-10-08T18:46:44 | 302,366,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:cc2c77543822b3e007daf24741057904eebe3b78020ca490985edca1102450b1
size 25886
| [
"sumitkutty37@gmail.com"
] | sumitkutty37@gmail.com |
d56c01585b7a3851cc7fa771e3868c718808748c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_ungrammatical.py | e2606d18bef4b164758f1c962a25a669edef2016 | [
"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 | 387 | py |
#calss header
class _UNGRAMMATICAL():
def __init__(self,):
self.name = "UNGRAMMATICAL"
self.definitions = [u'not grammatical']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.jsond... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7967aa8110d0d5fc2f706b22f0c3d78d9137574d | 6cd9b7611a9f095b50531523b9e78285c16cb6fe | /tests/integration/test_eden_journal.py | 9eb054d70fc443273a96b34e5f2972937829b644 | [
"Apache-2.0"
] | permissive | RejoiceSupsup/watchman | 659c8750f075933c7bb454fbeecd24a9f2ba56a6 | c967fd07161e6eba9a78a60be70c81056d45c461 | refs/heads/master | 2021-07-12T07:32:25.511590 | 2017-10-17T15:42:29 | 2017-10-17T15:54:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | # vim:ts=4:sw=4:et:
# Copyright 2017-present Facebook, Inc.
# Licensed under the Apache License, Version 2.0
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# no unicode literals
import WatchmanEdenTestCase
class TestEdenJournal(WatchmanEdenTestCase.Watch... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b3b25fc2a459f7f34575499a1fd5144ba145200e | 19d03d646fcee318cca8078af27636732290d77b | /tests/test_apex.py | fe5f1532a55e28c2c019c857ea385c0e53ac54a9 | [
"MIT"
] | permissive | yongkyung-oh/CMU-Studio-Project | 2d6fe6ef6fa30fda1a4f2d1fc45c5b85d6143775 | 448492f342e8157df2e736aa52825b66b1d66fd7 | refs/heads/master | 2022-10-24T16:56:46.763865 | 2020-07-01T10:03:00 | 2020-07-01T10:03:00 | 252,878,283 | 2 | 5 | MIT | 2021-03-25T23:50:27 | 2020-04-04T01:02:44 | Python | UTF-8 | Python | false | false | 3,413 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
try:
import apex # noqa: F401
APEX_AVAILABLE = True
except ImportError:
APEX_AVAILABLE = False
import un... | [
"yongkyung-oh@outlook.com"
] | yongkyung-oh@outlook.com |
14587f6aee8eef8ddd494549c47de7afe707c3d8 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/83_11.py | 31ed7afe706da4ab11680070dc11b4d3bd1fc19c | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | Python | Test if number is valid Excel column
Sometimes, while working with Python strings, we can have a problem in which
we need to test for string if its a valid excel column. This has application
in many domains including day-day programming, web development and Data
Science. Lets discuss certain way in w... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
e375079fc67427f47b931e429a733a07af05de98 | 3cf0d750948a758d5771dd778fbb783d64a044ae | /src/algo_cases/第6章/6_3.py | 23dd82accd699c8827ce87af05f0f1038260bf4d | [
"CC-BY-NC-SA-4.0",
"Apache-2.0"
] | permissive | hbulpf/pydemo | 6552a08b3c85721ac1b2ba335b030e234ad03b6c | ea3e9f9086116a86ecef803e9e3179a34c94c20f | refs/heads/master | 2022-11-30T21:06:29.933820 | 2022-01-15T17:05:16 | 2022-01-15T17:05:16 | 237,584,300 | 6 | 1 | Apache-2.0 | 2022-11-22T09:49:38 | 2020-02-01T08:20:43 | Python | UTF-8 | Python | false | false | 913 | py | def symmetric(root):
if not root: return True
queue=[]
queue.append(root.left)
queue.append(root.right)
while(queue):
root1=queue.pop()
root2=queue.pop()
if not root1 and not root2:
continue
if not root1 or not root2:
return False
if ro... | [
"hudalpf@163.com"
] | hudalpf@163.com |
9eceb3b73124a3f49ba54036dcfcf72af53f0dbd | 91315e1a5329ec778e007137a369e3617f760602 | /app/applib/ldmbridge.py | 1ba29c9775b0e30643c8df32f7d6da743f900b66 | [
"Apache-2.0"
] | permissive | akrherz/rtstats | b3e0fc8367600db5f333d49ddce254491eac203f | f1466c2af7b0ffa1c1433ede8276f915008d0170 | refs/heads/master | 2022-09-25T17:30:01.568552 | 2020-12-12T12:18:52 | 2020-12-12T12:18:52 | 178,928,561 | 0 | 0 | Apache-2.0 | 2019-04-01T19:01:52 | 2019-04-01T19:01:52 | null | UTF-8 | Python | false | false | 878 | py | """Async bridge."""
from twisted.internet import stdio
from twisted.python import log
from twisted.internet import reactor
from twisted.protocols import basic
from applib import rtstats
class RTStatsIngestor(basic.LineReceiver):
# default delimiter is \r\n
delimiter = b"\n"
def connectionLost(self, reaso... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
095eaf264a1f8c815c0c7c7bcb27959b6da0020b | 94a2c4417c1fdd8577a75b09a17912ebae129e6c | /ramda/find.py | b6af42cb8f0dfbed542ee7ec5ac8e8d6fc5701e3 | [
"MIT"
] | permissive | slavaGanzin/ramda.py | ad88a3cf6e7eb1461d4a09aad35ae1c18ca32db8 | 634bfbe0dcb300315ded327756cb3e33241589b8 | refs/heads/master | 2023-01-23T04:43:48.485314 | 2023-01-06T10:11:53 | 2023-01-06T10:11:53 | 142,413,822 | 68 | 7 | MIT | 2021-12-22T13:59:56 | 2018-07-26T08:43:31 | Python | UTF-8 | Python | false | false | 368 | py | from toolz import curry
@curry
def find(p, xs):
"""Returns the first element of the list which matches the predicate, or
undefined if no element matches.
Dispatches to the find method of the second argument, if present.
Acts as a transducer if a transformer is given in list position"""
for found i... | [
"slava.ganzin@gmail.com"
] | slava.ganzin@gmail.com |
4197bb2b46c58ad26bca73630a73765492379c17 | 02800e659f2088550a402d7d7d8e3902560893e3 | /private_kendall/top_k.py | 8e06ceeab9de9fd95a4f3f2d1274cbaede0ccaa1 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | antonpolishko/google-research | ab8a445d5401185eadfe757e73dc8bcf34da8dea | 1b4e7db5f90bcb4f80803383a81d8613ebfdfeec | refs/heads/master | 2023-08-31T06:38:33.963505 | 2023-08-26T16:33:48 | 2023-08-26T16:37:57 | 422,090,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
8937598eaf6e22d75f33a3fa5ea29ad2c4a3adf2 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy3280.py | 105efa63d88d15405cd0e969f6095abf9a8d2f02 | [
"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 | 4,361 | py | # qubit number=4
# total number=44
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
35d99a41e418a6c8ac4c7a9b6c5aa6d4f7fc8977 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/A/annathieme/drivenow.py | 7b1456514d75e90ba45c19f4d5af303b2b491480 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import scraperwiki
# Blank Python
import scraperwiki
import requests
import lxml.html
from lxml.cssselect import CSSSelector
def scrape_site():
url = "http://de.drive-now.com/static/metropolis/js/Map.js"
html = requests.get(url, verify = False).text
root = lxml.html.fromstring(html)
print root.cs... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
655c67a4e1eb9b022dd7dfca01622419c50e2e96 | 5ae3bc1920fafc33693cdfa3928a48158aa6f725 | /132/132.py | 62ba54ee7675b1aa68ef20a6aa47d901a672400f | [] | no_license | sjzyjc/leetcode | 2d0764aec6681d567bffd8ff9a8cc482c44336c2 | 5e09a5d36ac55d782628a888ad57d48e234b61ac | refs/heads/master | 2021-04-03T08:26:38.232218 | 2019-08-15T21:54:59 | 2019-08-15T21:54:59 | 124,685,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | class Solution:
def minCut(self, s):
"""
:type s: str
:rtype: int
n^2
n^2
"""
if not s:
return 0
is_palin = self.calPlin(s)
f = [0 for i in range(len(s) + 1)]
f[0] = 0
for i in range(1, len... | [
"jcyang@MacBook-Air.local"
] | jcyang@MacBook-Air.local |
0ed9017d0c61624759f4c16379b91436f8d8a752 | f167f7989dcd0fff12ab0df72b16b60ab17460a0 | /apps/reader/tasks.py | b4e2df93b206c7a1fea291c91d90a3522684b5a3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | imageoptimiser/NewsBlur | 883a028913e94c0f03ece22b52f78915e9f0cb63 | 63bd36212cef8a9209e4adde638f24913ffa8443 | refs/heads/master | 2020-12-25T12:47:11.344588 | 2012-12-24T08:10:40 | 2012-12-24T08:10:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | import datetime
from celery.task import Task
from utils import log as logging
from django.contrib.auth.models import User
from django.conf import settings
from apps.reader.models import UserSubscription
from apps.social.models import MSocialSubscription
class FreshenHomepage(Task):
name = 'freshen-homepage'
... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
5a1555ec9d6aa4e728517b5fe56e291c88167f8a | a8750439f200e4efc11715df797489f30e9828c6 | /CodeForces/CFR_266_2_A.py | 3f7270e31a9ff9b1c7c98cee59bbe4129891bfd4 | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py |
# -*- coding: utf-8 -*-
# @Date : 2018-09-27 13:25:36
# @Author : raj lath (oorja.halt@gmail.com)
# @Link : link
# @Version : 1.0.0
from sys import stdin
max_val=int(10e12)
min_val=int(-10e12)
def read_int() : return int(stdin.readline())
def read_ints() : return [int(x) for x in stdin.readline().spli... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
368073da4f30c3037ceee1aec7a1afbdfa898915 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/projects/GUI_Development_with_PyQt5_and_SQL/my_old/ui_new_employee.py | 91efe1257932fe069b4f32ce1c9c4dd45a0b877d | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 5,673 | py | # -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
from employee_full_info import EmployeeFullInfo
from ui_calendar_dialog import CalendarDialog
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(432, 429)
self.gridLayout = QtW... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
0c85b95bcb59f67c6c4975f3d22de0df21c2ef54 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_2208+014/sdB_pg_2208+014_lc.py | 13621568094978e8e6c0c9a2832d8e7d00caabf1 | [] | 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 | 344 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[332.689417,1.693167], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_2208+014/sdB_pg_2208+014_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
5646d9835ee82fd4e401019cda9c8e7bdda0a655 | eb96dbfad894771713e7a03802a48dd0effb96c7 | /scripts/optical_parameters.py | dc894cd789bcee95186f08179b3f3e9423d2aa6d | [] | no_license | daniel-muthukrishna/SNIaLightCurveModelling | d80375fb70cedfc8b87778c666938e18cd13ec05 | 169b91d48bec0968c6d9f92d2785cc604352e677 | refs/heads/master | 2021-09-11T09:50:34.400189 | 2018-04-06T14:26:55 | 2018-04-06T14:26:55 | 111,708,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,944 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
from sklearn import linear_model
from sklearn.metrics import mean_squared_error, r2_score
from scipy import stats
import copy
def read_optical_fitted_table(filename):
""" Read in optical parameters as a panda... | [
"daniel.muthukrishna@gmail.com"
] | daniel.muthukrishna@gmail.com |
020df92ddd9062442496296596e24b0c7800afbf | 6630694f401f6f475dd81bb01ff9368db844ccff | /mmpretrain/engine/runners/__init__.py | 23206e1ea7c83fa1d547c677b3fe5203f8c5485f | [
"Apache-2.0"
] | permissive | open-mmlab/mmpretrain | 98a4d6b3bb747efc3d50decebf84fc3ffa41076a | d2ccc44a2c8e5d49bb26187aff42f2abc90aee28 | refs/heads/main | 2023-08-30T19:11:24.771498 | 2023-08-23T02:45:18 | 2023-08-23T02:45:18 | 278,415,292 | 652 | 186 | Apache-2.0 | 2023-09-08T08:01:40 | 2020-07-09T16:25:04 | Python | UTF-8 | Python | false | false | 165 | py | # Copyright (c) OpenMMLab. All rights reserved.
from .retrieval_loop import RetrievalTestLoop, RetrievalValLoop
__all__ = ['RetrievalTestLoop', 'RetrievalValLoop']
| [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
dbd05061cad97bb1373c01b30bf50c58b80fd234 | 06b695d1221521f4de4896f315cd6a39e9af8581 | /tests/test.py | 942ad8428c0ea38c700624d64f24e354efa850ad | [] | no_license | Eugeny/PythonUpstart | 6665690872560e622c99b7dbbc4d1dc51832487c | 8b33f425ab71167931c84bea57e81c958455e7d0 | refs/heads/master | 2021-01-17T10:18:27.190060 | 2015-01-31T09:44:07 | 2015-01-31T09:44:07 | 30,106,514 | 1 | 0 | null | 2015-01-31T08:04:11 | 2015-01-31T08:04:11 | null | UTF-8 | Python | false | false | 1,685 | py | #!/usr/bin/env python2.7
import sys
sys.path.insert(0, '..')
from pprint import pprint
from sys import stdout
def test_system():
from upstart.system import UpstartSystem
s = UpstartSystem()
print("Version: %s" % (s.get_version()))
current_priority = s.get_log_priority()
print("Current priority... | [
"myselfasunder@gmail.com"
] | myselfasunder@gmail.com |
30ad7c8c22755ce0c400cb26b5e03570165ecaf9 | f68b4cb7f006f0519f3e9ab081fc4fd05b5e070a | /meshio/stl_io.py | 8ece17d2f1d52c9ec9f646d7f138f92e9ebd57c4 | [
"MIT"
] | permissive | ZhimingGuo/meshio | cdc2deffcd9d24dcd732250c624fa5ca1517ed6b | e5bafc42084f3e4ffeebacb001fe099f57e99bf6 | refs/heads/master | 2020-05-17T06:38:17.790987 | 2018-08-12T15:44:32 | 2018-08-12T15:44:32 | 183,563,348 | 0 | 0 | MIT | 2019-04-26T05:33:10 | 2019-04-26T05:33:10 | null | UTF-8 | Python | false | false | 5,035 | py | # -*- coding: utf-8 -*-
#
"""
I/O for the STL format, cf.
<https://en.wikipedia.org/wiki/STL_(file_format)>.
"""
import numpy
from .mesh import Mesh
def read(filename):
"""Reads a Gmsh msh file.
"""
with open(filename, "rb") as f:
out = read_buffer(f)
return out
def read_buffer(f):
data... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
e08ac2649bd87e3c1cf24621d2a53f272dbac3da | d54476a109bb7a75ab18c742e53425358eae2df7 | /shop/management/commands/groups.py | 6dbeae6f03eef2c3bb0d18e6b73e7cb4ce0b0120 | [] | no_license | OmarGonD/stickers_gallito | 8b46673a73d3fa6fdbdeb9726804f3e3c176543b | 4aa4f5aeb272b393410ed8b518aa39040f46a97b | refs/heads/master | 2022-12-09T20:38:23.672740 | 2019-12-13T14:41:41 | 2019-12-13T14:41:41 | 163,198,792 | 0 | 1 | null | 2022-04-22T21:00:01 | 2018-12-26T16:35:33 | HTML | UTF-8 | Python | false | false | 480 | py | import pandas as pd
from django.contrib.auth.models import Group, Permission
from django.core.management.base import BaseCommand
tmp_data_groups = pd.read_csv('static/data/groups.csv', sep=',', encoding='iso-8859-1').fillna(" ")
class Command(BaseCommand):
def handle(self, **options):
groups = [
... | [
"oma.gonzales@gmail.com"
] | oma.gonzales@gmail.com |
6b778fac686de7c1d563301108cc9df829b487fd | a75ac3c5c641fc00a3c403b08eeb6008f648639e | /LeetCode/712.py | cc13910b4168cfe3263adc3cf429563194063e39 | [] | no_license | Greenwicher/Competitive-Programming | 5e9e667867c2d4e4ce68ad1bc34691ff22e2400a | 6f830799f3ec4603cab8e3f4fbefe523f9f2db98 | refs/heads/master | 2018-11-15T15:25:22.059036 | 2018-09-09T07:57:28 | 2018-09-09T07:57:28 | 28,706,177 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | # Version 1, Dynamic Programming
class Solution(object):
def minimumDeleteSum(self, s1, s2):
"""
:type s1: str
:type s2: str
:rtype: int
"""
m, n = len(s1), len(s2)
ord1, ord2 = map(lambda s: [ord(x) for x in s], [s1, s2])
# dp[i][j] represents the min... | [
"weizhiliu2009@gmail.com"
] | weizhiliu2009@gmail.com |
dacafae4865912427306357a6de35c624bf6f708 | 8a56050d358eafe16ff4049fb0b8b4118b8c5b24 | /Binance_futures_python/example/market/get_top_long_short_accounts.py | 6a8fc367a110bb13fa0fe81dd7417d44bad7b8d6 | [
"MIT"
] | permissive | jiaweiloo/dora-scalp-bot | 576147fe6dab146d29658d430ac9cad2dd343028 | 77eaa0ad1a7d0480d49c85a0a558ec078a3d5886 | refs/heads/master | 2023-08-07T22:06:31.212483 | 2021-09-23T02:53:17 | 2021-09-23T02:53:17 | 412,504,217 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from binance_f import RequestClient
from binance_f.constant.test import *
from binance_f.base.printobject import *
request_client = RequestClient(api_key=g_api_key, secret_key=g_secret_key)
# result = request_client.get_liquidation_orders()
result = request_client.get_top_long_short_accounts(symbol="BTCUSDT", period=... | [
"huggingrobot@gmail.com"
] | huggingrobot@gmail.com |
30fc0d8883293aabb2857d5b4f9397ae44af5980 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/repoze.who-2.3/docs/examples/standalone_login_no_who.py | 48defd406d90492942af82c0b88c71805b498d67 | [
"Apache-2.0",
"BSD-3-Clause-Modification"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 3,146 | py | # Standalone login application for demo SSO:
# N.B.: this version does *not* use repoze.who at all, but should produce
# a cookie which repoze.who.plugin.authtkt can use.
import datetime
from paste.auth import auth_tkt
from webob import Request
LOGIN_FORM_TEMPLATE = """\
<html>
<head>
<title> Demo SSO Login </t... | [
"ranade@cloudera.com"
] | ranade@cloudera.com |
50891a903b975e1ef6fff8631669eddf50d09839 | 7b2dc269c3766deadb13415284d9848409d850c5 | /notebooks/spatial_gmm/made_best.py | f97eed478f7f6616b79b502b3f569697aaf4db1b | [] | no_license | Joaggi/demande | 8c3f32125cdf6377c9bd8a5b33bf162f8a5ec5cc | 289b8237d8e872e067dd4f6ab2297affe3903f4e | refs/heads/main | 2023-04-18T20:47:21.769183 | 2023-03-08T21:36:08 | 2023-03-08T21:36:08 | 611,455,062 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | try:
from initialization import initialization
except:
from notebooks.initialization import initialization
parent_path = initialization("2021-2-conditional-density-estimation", "/Doctorado/")
from run_experiment_best_configuration import run_experiment_best_configuration
import sys
if len(sys.argv) > 1:
... | [
"joaggi@gmail.com"
] | joaggi@gmail.com |
75d132b4a10e11371871d7d6bce7576c6dffaaf8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03378/s300114441.py | d8bf1b5526ad860f80565a1157605749c4efffbe | [] | 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 | 162 | py | n, m, x = map(int, input().split())
a = list(map(int, input().split()))
r = [0 for _ in range(n+1)]
for i in a:
r[i] += 1
print(min(sum(r[x:]), sum(r[:x+1]))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
43ca3653cc2bb0879d105437d102e94db4196829 | 243c89211b8f97189dda683ddad440d5e0837440 | /learning/autovisualization_online.py | b9c2890b93b94817e10de03a44a91522b0b3572d | [
"BSD-3-Clause"
] | permissive | EmergentSystemLabStudent/SpCoSLAM | 4776e4da1bc8b7bb99cdc2d55de48102914c8f1f | 0e910bbd91e92b76d3f6d73ea2158a1922a3823c | refs/heads/master | 2022-12-12T16:36:50.758250 | 2020-09-11T01:07:49 | 2020-09-11T01:07:49 | 99,771,354 | 11 | 3 | BSD-3-Clause | 2020-09-11T01:07:51 | 2017-08-09T06:11:47 | Python | UTF-8 | Python | false | false | 6,660 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#自己位置と場所概念(位置分布)の可視化用プログラム(実行不可)
#Akira Taniguchi 2017/02/28 - 2017/09/01
import sys
import os
import random
import string
import signal
import subprocess
import time
import rospy
from std_msgs.msg import String
from __init__ import *
endstep = 50
# Readin... | [
"a.taniguchi@em.ci.ritsumei.ac.jp"
] | a.taniguchi@em.ci.ritsumei.ac.jp |
0eb3fad70edea6638009514f2afd7c55c0cbc3f2 | d06d6d253314a0288b8f7bbd92de84267c96352f | /revscoring/features/temporal/revision_oriented.py | 6fe7a65c30b8b32b45ee5e1500b76e40aa7b10fa | [
"MIT"
] | permissive | harej/revscoring | 6bfefecf26e6097d70ed5454a3e1a484d9e74b09 | cdc8c912901e825d03bd0da8de84c72632f10422 | refs/heads/master | 2020-12-31T02:22:18.315668 | 2016-04-02T11:42:29 | 2016-04-02T11:42:29 | 55,309,478 | 0 | 0 | null | 2016-04-02T18:17:14 | 2016-04-02T18:17:13 | null | UTF-8 | Python | false | false | 7,068 | py | import logging
from datetime import datetime
import mwtypes
from pytz import utc
from ...datasources import revision_oriented
from ...dependencies import DependentSet
from ..feature import Feature
MW_REGISTRATION_EPOCH = mwtypes.Timestamp("2006-01-01T00:00:00Z")
logger = logging.getLogger(__name__)
class Revision... | [
"aaron.halfaker@gmail.com"
] | aaron.halfaker@gmail.com |
1d58834211e97592165e22aaca98e637f0d69898 | b47d29e8df20eb175950459c55b1d80ed0648374 | /example02/lists/views.py | 00200cb98711b2fc11b643332f65cf890948444b | [] | no_license | lee-seul/Testing-goat | aea7151c4402e9bd81a7dbf1ba3351da4f2062ce | bbc4238f24b9cffc1862a3d609da5ac1c423f569 | refs/heads/master | 2021-01-22T23:43:03.552544 | 2017-04-02T15:22:01 | 2017-04-02T15:22:01 | 85,662,887 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from django.shortcuts import redirect, render
from lists.models import Item, List
def home_page(request):
return render(request, 'home.html')
def view_list(request, list_id):
list_ = List.objects.get(id=list_id)
items = Item.objects.filter(list=list_)
return render(request, 'list.html', {'items': it... | [
"blacksangi14@naver.com"
] | blacksangi14@naver.com |
5932c4c0622a05daa3b68f9c380c77597f8cc5c6 | f82ed6cdb95be784d2e1fc2726aaebd6831b60c9 | /sms_project/smsapp/views.py | 4800fd6de7d231356c24534efb5b22aff3c9277f | [] | no_license | snehaindulkar/Mini-project-Student-Management-System-using-Django-framework | fd335b14558caa44208cb81a62b65d41f82b89e5 | 608135cd030119eec89610a14a0e17fb5fe51dd4 | refs/heads/master | 2023-03-19T15:58:35.994347 | 2021-03-11T13:14:22 | 2021-03-11T13:14:22 | 346,706,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | from django.shortcuts import render,redirect
from .models import StudentModel
from .forms import StudentForm
def home(request):
data = StudentModel.objects.all()
return render (request,'home.html',{'data':data})
def create(request):
if request.method=="POST":
f = StudentForm(request.POST)
if f.is_valid():
f... | [
"="
] | = |
8b750b891ce94bb7f0eec47745b616fade9ff848 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2348/60765/316885.py | 7910ed429d1d944688c3f7f08300db83696c6b22 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import math
import sys
# n = int(input())
# n,t=list(map(int,input().split()))
# serial=input().split()
#n,t,c=list(map(int,input().split()))
#p=list(map(int,input().split()))
count=0
res=0
#for pri in p:
# if pri>t:
# count=0
# else:
# count+=1
# ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
dcb0504e32337768810a25d6a021c0a0917818e5 | 4eebce0d0c1132aed8227325bd58faf61a4010c7 | /CONTEXT_130/enough_array.py | d538b92113e82c05614fe55a17675dd23ee010fc | [] | no_license | xu1718191411/AT_CODE_BEGINNER_SELECTION | 05836cfcc63dab2a0a82166c8f4c43c82b72686b | e4e412733d1a632ce6c33c739064fe036367899e | refs/heads/master | 2021-07-17T00:59:46.315645 | 2020-09-22T06:14:27 | 2020-09-22T06:14:27 | 214,153,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # n = 4
# k = 10
# arr = [6, 1, 2, 7]
#
# n = 3
# k = 5
# arr = [7, 7, 7]
# n = 10
# k = 53462
# arr = [103,35322,232,342,21099,90000,18843,9010,35221,19352]
# S = input().split(" ")
# n = int(S[0])
# k = int(S[1])
#
# S = input().split(" ")
# arr = [int(s) for s in S]
def calculate(n,k,arr):
ans = 0
j = 0... | [
"xu1718191411@gmail.com"
] | xu1718191411@gmail.com |
27ae98049009dcca4873a157a2967896e7a8c238 | 18a79067223932c2f7aa6ff6b81d0b3f36169db2 | /codeforces/902/B.py | b7b2dffb93d390dec0466bcc7c1d8c9c258fbf77 | [] | no_license | aadiupadhyay/CodeForces | 894b0e5faef73bfd55a28c2058fb0ca6f43c69f9 | 76dac4aa29a2ea50a89b3492387febf6515cf43e | refs/heads/master | 2023-04-12T17:58:52.733861 | 2021-05-07T20:08:00 | 2021-05-11T20:07:11 | 330,149,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from collections import deque
n=int(input())
l=list(map(int,input().split()))
k=list(map(int,input().split()))
col_dict={i+1:k[i] for i in range(n)}
d={i:[] for i in range(1,n+1)}
c=2
for i in l:
d[i].append(c)
c+=1
col=[0 for i in range(n+1)]
q=deque()
q.append(1)
ans=0
while q:
a=q.popleft()
if c... | [
"upadhyay.aaditya2001@gmail.com"
] | upadhyay.aaditya2001@gmail.com |
1dff0928a26db2a3f55967445a4c2d60fab17a94 | 1cbcf8660d3ea833b0a9aa3d36fe07839bc5cfc5 | /apps/migrations/user/urls.py | ec65ea30c47fd407d556709f22e8121a4ce337f3 | [] | no_license | zhanghe06/migration_project | f77776969907740494281ac6d7485f35d4765115 | 0264b292873b211bfeca0d645cc41abc9efe883f | refs/heads/master | 2022-12-12T10:55:43.475939 | 2019-09-29T09:19:13 | 2019-09-29T09:19:13 | 185,584,884 | 0 | 1 | null | 2022-12-08T05:04:58 | 2019-05-08T10:31:57 | Python | UTF-8 | Python | false | false | 372 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: urls.py
@time: 2019-05-06 17:26
"""
from apps.migrations import migrations_api
from apps.migrations.user.resource import (
UsersSyncResource,
)
# 用户
migrations_api.add_resource(
UsersSyncResource,
'/users/sync',
en... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
72f4a4341e05145334d6817c24fdb1338299ebef | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/network/v20190401/get_virtual_network_gateway_bgp_peer_status.py | 0571978649d0c41f3e0e4cdfb760fc28f8d18e04 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 2,712 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | test-wiz-sec.noreply@github.com |
6feb34c82ee0633edb9aa5622398680c326bc0ca | d07b91e42e32b0a0642254a460bc56a546f60a63 | /source/tests/shared/test_dataset_group.py | 6cf2423b39d67dd4f76f184c0bcd948ea0fc5614 | [
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | emmanuellim/improving-forecast-accuracy-with-machine-learning | 81a30674f24d8249b7a55d6cce4fabe4f8fb4fdf | 2470b13c4b23861907c326cb2c3fdb6fbf4b2397 | refs/heads/master | 2023-01-14T13:41:42.978184 | 2020-11-24T19:07:35 | 2020-11-24T19:07:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,074 | py | # #####################################################################################################################
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# ... | [
"ssdzd@amazon.com"
] | ssdzd@amazon.com |
d388eae20d45924f6cfc8f51f50352030440956f | fe9ee466f56a6c5a40a7fa9ee35bcfbec17404f3 | /patrol_algo/scripts_py/tpbp_offline.py | be98a7dc2ccb456287a6337e6c52fb68eb46813d | [] | no_license | Dikshuy/Driverless_car | 0ffd320f4adb1f79ec477f44fc5e22e476b8bf4d | d20f6023ba841cbf80842bd8d15a749340c56d51 | refs/heads/master | 2022-12-07T06:27:38.460236 | 2020-08-23T18:05:59 | 2020-08-23T18:05:59 | 262,848,797 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,629 | py | #!/usr/bin/env python
import os
import networkx as nx
from copy import deepcopy
#from itertools import imap
def add_vertex_trail(graph, path, len_path, vertex, dest, len_max):
# Distinct edges
cur = path[-1]
len_rem = nx.shortest_path_length(graph, cur, dest, weight = 'length')
#print "here----", len... | [
"dikshant1212hsr@gmail.com"
] | dikshant1212hsr@gmail.com |
45359316a3e505882be6309a6699d1c97092b768 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03254/s918515708.py | 6e6f123cf6d0044e1c3f8d7ccea1138d580a988b | [] | 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 | 401 | py | #!/usr/bin/env python
n, x = map(int, input().split())
a = list(map(int, input().split()))
a = sorted(a)
if x < a[0]:
print(0)
exit()
cnt = 0
al = False
for i in range(n):
if x >= a[i]:
x -= a[i]
cnt += 1
else:
break
if i == n-1:
al = True
if al:
if x > 0:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
864917aa12dd5a3e51acb4855b64d0cceecd30e0 | 4a36849188747a1e3cc4b052eb6bc3a21e3e53bb | /BlueBridgeCup/Subject/2014-/Province_C_C++_C/6/code.py | b4541392cdd045987f3499869b44dcefb5c1b45f | [] | no_license | koking0/Algorithm | 88f69a26f424d1b60a8440c09dd51c8563a86309 | 2828811ae2f905865b4f391672693375c124c185 | refs/heads/master | 2022-07-06T17:10:07.440930 | 2022-06-24T14:59:40 | 2022-06-24T14:59:40 | 216,952,717 | 35 | 48 | null | 2020-07-21T02:46:26 | 2019-10-23T02:41:09 | Java | UTF-8 | Python | false | false | 1,584 | py | #!/usr/bin/env python
# -*- coding: utf-H -*-
# @Time : 2020/B/11 18:40
# @File : BubbleSortCode.py
# ----------------------------------------------
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
# >>> Author : Alex
# >>> QQ : 2426671397
# >>> Mail : alex18812649207@gmail.com
# >>> Github : https://github.com/koking0
# ☆ ☆... | [
"alex18812649207@gmail.com"
] | alex18812649207@gmail.com |
9cff1c09fb9af5774d9d68d3a2196d0955530e45 | 51ab6a4bffa0abc845ee843ba9e876d1ea7c6072 | /meimeiproject/meimeiproject/middlewares.py | e627d8284613e35fbf00794d54455907a8c860e6 | [] | no_license | yuqianpeng/spider | bbc0c781cf6d8f145042cd17a400d100a62d0bbe | ecfcc87c5d55b43a91e8f06161267e9294429f18 | refs/heads/master | 2021-05-12T12:49:44.148337 | 2018-01-14T11:56:43 | 2018-01-14T11:56:43 | 117,422,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,008 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
import random
from scrapy import signals
# from meimeiproject.settings import IPPOOL
#
# class MyproxiesSpiderMiddleware(ob... | [
"lsxxxxxx@126.com"
] | lsxxxxxx@126.com |
4ab74947fe13c3cea078aba79cc9b1d4a812db66 | 45870a80cbe343efe95eb9e8d0bd47c8c88353d1 | /Python爬虫实战/quotetutorial/quotetutorial/settings.py | cf48f79dc566d26b49342f407fac3c44f8e0021b | [] | no_license | pippichi/IntelliJ_PYTHON | 3af7fbb2c8a3c2ff4c44e66736bbfb7aed51fe88 | 0bc6ded6fb5b5d9450920e4ed5e90a2b82eae7ca | refs/heads/master | 2021-07-10T09:53:01.264372 | 2020-07-09T13:19:41 | 2020-07-09T13:19:41 | 159,319,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | py | # -*- coding: utf-8 -*-
# Scrapy settings for quotetutorial project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest... | [
"874496049@qq.com"
] | 874496049@qq.com |
7c8fd6ac2fdf96db47f52c24049c7725385781a1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/GPMM/YW_GPMM_SHSJ_017.py | 811c31428bf1d9feb2ecfa5aa60c0215d5a8e695 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
7c4e0156ec27874dc0cb5c054c3c611edf1f64c1 | 3c4b5c0938ab63584b813a0f108ed5096c784530 | /gan_series/png2jpg.py | de56e4ba3e609872b095d7dff7ad308efb3029af | [] | no_license | Ryanshuai/tensorflow_classical_template | 5584b4de6371af3ea271ed8f506434f40c7a0ac1 | 323881ab690ee182b2aa69613706849e297164c0 | refs/heads/master | 2021-05-15T22:30:37.408899 | 2017-12-04T10:20:53 | 2017-12-04T10:20:53 | 106,711,164 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import os
from PIL import Image
current_dir = os.getcwd()
# parent = os.path.dirname(current_dir)
pokemon_dir = os.path.join(current_dir, 'data/')
i = 1
for each in os.listdir(pokemon_dir):
print(each)
img = Image.open(pokemon_dir+each)
img = img.convert("RGB")
img.save('./jpg_data/'+str(i)+".jpg", ... | [
"1018718155@qq.com"
] | 1018718155@qq.com |
a56d56c30b8a3487b9ffa6839adda0b02fafaa83 | 6b915ba9db1de8d26bec39589c77fd5d225e1fce | /neural_data/regress_rois.py | b3c9c8313d7d52736a381f42f1242b1d062bb8a5 | [
"Apache-2.0"
] | permissive | bjsmith/reversallearning | c9179f8cbdfdbbd96405f603e63e4b13dfc233af | 023304731d41c3109bacbfd49d4c850a92353978 | refs/heads/master | 2021-07-09T23:42:22.550367 | 2018-12-08T01:40:54 | 2018-12-08T01:40:54 | 100,329,149 | 0 | 2 | null | 2017-09-05T04:27:41 | 2017-08-15T02:21:25 | R | UTF-8 | Python | false | false | 1,976 | py | import numpy as np
import pandas as pd
from scipy.stats import ttest_1samp, t, norm
#copied from Luke Chang's NeuroLearn Data Classes, this is adapted to process a pandas adat table instaed of a Brain_Data
def regress_rois(X,data):
""" run vectorized OLS regression across voxels.
Returns:
out: dicti... | [
"benjsmith@gmail.com"
] | benjsmith@gmail.com |
27a7ee5e7598e11e429f14b9fc773726c3252323 | e29ef7e3f41b18aaa7849361c402c85b27cd64a9 | /2017/2017-8.py | a57b43a6574ea73dae6866cdb38a7133c1b6710c | [] | no_license | sijapu17/Advent-of-Code | 7b8999f459df35d871081a93975c9580cf473643 | a3847a1b0637efd66fa86d5ad70f260c38fcce60 | refs/heads/master | 2023-06-22T12:58:07.791532 | 2023-06-18T09:14:57 | 2023-06-18T09:14:57 | 225,470,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,376 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 20 21:54:55 2017
@author: Simon
"""
#Advent of Code 2017 Day 8
f = open('C:/Users/Simon/SkyDrive/Home Stuff/Python/Advent of Code/2017-8.txt')
contents = f.read()
file_as_list = contents.splitlines()
class Instruction():
def __init__(self,line):
self.line=l... | [
"simon.purkess@hotmail.com"
] | simon.purkess@hotmail.com |
1be1cfc93ce127e6634e661c7e56f3e8917a2ee2 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binaryTree_20200615145212.py | d5a052b60315ffb72b51baf80bc5456987c202ab | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | # define node class
class Node(object):
# constructor
def __init__(self,value):
self.value = value
self.left = None
self.right = None
# define binary tree class
class BinaryTree(object):
def __init__(self,root):
# converting data
self.root = Node(root)
def pr... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
7f494ca2eef40e8585816b3a880c27cc7fb3d6fa | e97e727972149063b3a1e56b38961d0f2f30ed95 | /knetik_cloud/models/operator.py | e0e3d373a195124e5ad94a75a749eeedfb8564b7 | [] | no_license | knetikmedia/knetikcloud-python-client | f3a485f21c6f3e733a864194c9acf048943dece7 | 834a24415385c906732437970db105e1bc71bde4 | refs/heads/master | 2021-01-12T10:23:35.307479 | 2018-03-14T16:04:24 | 2018-03-14T16:04:24 | 76,418,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | # coding: utf-8
"""
Knetik Platform API Documentation latest
This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com.
OpenAPI spec version: latest
Contact: support@knetik.com
Generated by: https://github.com/swagger-api/swagger-codeg... | [
"shawn.stout@knetik.com"
] | shawn.stout@knetik.com |
830f960472cac313d0309b92f6aee61ad57da1dc | 90b9ea7fae7b4a3bfd380906c8f77e385c41b7eb | /上課內容/lesson7_function2.py | d2c585ddb746af2fd1352307d92f480809a56af7 | [] | no_license | ablegods/python | ed3e8eebfe71bd9197a035248545885f5abefc1b | 4fc48d059ab2a3e48b02a39ab07858f957bc743b | refs/heads/master | 2023-08-03T22:10:20.379220 | 2021-10-03T03:50:12 | 2021-10-03T03:50:12 | 389,303,048 | 0 | 0 | null | 2021-09-26T09:19:47 | 2021-07-25T08:53:32 | Jupyter Notebook | UTF-8 | Python | false | false | 525 | py | import random
def lotGenerator():
lot = set()
while len(lot) != 7:
lot.add(random.randint(1,49))
lotList = list(lot)
specialNum = lotList.pop()
for item in sorted(lotList):
print(item,end=" ")
print()
print(f"特別號是:{specialNum}")
if __name__ == "__main__":
print("大樂透自動選號... | [
"roberthsu2003@gmail.com"
] | roberthsu2003@gmail.com |
ba28a2130b97d489e5046e158bfa66bdb425af68 | 4f782b0fa8a88c70fbc7b3f1b455568dedcbb41c | /src/settings/base.py | 1f0387001c42fc62d469b38955bdda3c2b6b2c23 | [
"MIT"
] | permissive | stuartelimu/memorial-hall | 7f8a2623117db7eb2c1fee2e3b44039fb19e9efb | 7a858a25d011cef2207ef1f6fa1ca93928e04822 | refs/heads/master | 2023-06-23T17:35:40.785737 | 2021-07-16T07:47:30 | 2021-07-16T07:47:30 | 385,521,212 | 1 | 0 | MIT | 2021-07-16T07:47:31 | 2021-07-13T07:47:35 | Python | UTF-8 | Python | false | false | 3,557 | py | """
Django settings for src project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib imp... | [
"stuartelimu@gmail.com"
] | stuartelimu@gmail.com |
2e54ef3a7a61c88cc2eee2446a30a21c21f54d05 | 8ecd899a8558ad0a644ecefa28faf93e0710f6fb | /ABC188/ABC188_B.py | d0e3d6af2974df786349722dbeeefb0cec28193a | [] | no_license | yut-inoue/AtCoder_ABC | b93885547049788d452e86b442a4a9f5ee191b0e | 3d2c4b2b2f8871c75f86040ad07ccd7736ad3dbe | refs/heads/master | 2021-07-03T09:09:20.478613 | 2021-02-21T13:20:31 | 2021-02-21T13:20:31 | 227,140,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | n = int(input())
#a, b = map(int,input().split())
al = list(map(int,input().split()))
bl = list(map(int,input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
def prod(a, b):
res=0
for i in range(n):
res+=a[i]*b[i]
return res
if prod(al, bl)==0:
print('Yes')
else:
... | [
"yinoue.1996787@gmail.com"
] | yinoue.1996787@gmail.com |
d810dcb82cfac73446da13607ff1d51eb6705b4e | 209aae9f40657d48461bed5e081c4f235f86090a | /2020/day2-2.py | 76d087800596c7176b9bb498b9fca10bf3002b43 | [] | no_license | scheidguy/Advent_of_Code | 6e791132157179928e1415f49467ad221ef1e258 | fbc09e4d26502b9a77e0c8d2840b11ec85a3c478 | refs/heads/main | 2023-03-05T12:34:15.343642 | 2021-02-20T00:27:58 | 2021-02-20T00:27:58 | 329,106,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 1 21:51:59 2020
@author: schei
"""
f = open('day2-1_input.txt')
text = f.readlines()
f.close()
valid = 0
for entry in text:
entry = entry.split(' ')
code = entry[0].split('-')
letter = list(entry[1])[0]
password = list(entry[2])
if password[int(cod... | [
"scheidguy@gmail.com"
] | scheidguy@gmail.com |
8a005165f083fb323059a63cbfbf3c1036d35554 | 91bbbb9253b2f1f61aed7f11e14f73e5b4bb8f40 | /mnist/homework.py | 033cc54e5abace0f61ca070817b5c35c83998c03 | [] | no_license | rajkiran485/machine-learning | cdd4b9c7df9671a8775c0bd086e486e5f46a0150 | 899f655275a92678bf6a486505296ed365bb71c0 | refs/heads/master | 2020-04-20T16:55:40.322857 | 2015-01-11T00:28:26 | 2015-01-11T00:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | from sklearn.cross_validation import train_test_split
from sklearn.metrics import classification_report
from scipy.ndimage import convolve
import scipy.ndimage as nd
from nolearn.dbn import DBN
import numpy as np
import pandas as pd
from time import gmtime, strftime
import cPickle
train = pd.read_csv("train.csv")
te... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
553758b15e4d7f3c3cc6b1f0d698b8d2a8ba2fde | cefc3137b8745b4da2996723de5a910ece941fbc | /models/maml/maml_omniglot.py | 0585e73faead12c408736c644003da493fedf767 | [] | no_license | lovehoroscoper/MetaLearning-TF2.0 | 75eeb8c4679f13cbed1a943828dc434f0782fddd | 1cc203cb3f8300ff117e71a2a2554ffb4e799e5c | refs/heads/main | 2023-05-31T02:09:55.106687 | 2021-06-21T17:31:56 | 2021-06-21T17:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | from models.maml.maml import ModelAgnosticMetaLearningModel
from networks.maml_umtra_networks import SimpleModel
from databases import OmniglotDatabase
def run_omniglot():
omniglot_database = OmniglotDatabase(
random_seed=47,
num_train_classes=1200,
num_val_classes=100,
)
maml = M... | [
"siavash.khodadadeh@gmail.com"
] | siavash.khodadadeh@gmail.com |
f1306a98ad30f2b9e644d281811bc4433d9c45fe | f67e9154c3e077eaad349f85439d88820098a6fc | /BinaryTree/113_PathSumII.py | ac8e08540e3c42c42cbe05a2de3a0b1b9e4d93f9 | [] | no_license | pondjames007/CodingPractice | 0c159ae528d1e595df0f0a901ee1ab4dd8925a14 | fb53fea229ac5a4d5ebce23216afaf7dc7214014 | refs/heads/master | 2020-06-08T02:31:04.569375 | 2020-01-15T20:41:34 | 2020-01-15T20:41:34 | 193,142,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # TIPS:
# * The way I am doing is post-order traversal
# By stacking left and right nodes
# * No. 112 Path Sum I
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def pathSum(self, roo... | [
"jameshuang@nyu.edu"
] | jameshuang@nyu.edu |
cbd0ba02a0baebd1327c5db3297e7fde836080d3 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/X/Xan_Guindan/estamosfartas_es.py | 57193c5aea6eb1ef53f6b3ee595ae7d8d6307ff2 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py | ###################################################################################
# Twitter API scraper - designed to be forked and used for more interesting things
###################################################################################
import scraperwiki
import simplejson
import urllib2
# Get results f... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
220b61e4297c5c627135874d582484e2f321d48c | ea3d7a79136594f5a6b979be6ed0b9edfe46e33b | /blog_app/models.py | ae5faaafccd6b9067e5cdd778b6f38778c0f83b4 | [] | no_license | Cuddlemuffin007/django_social | 97574b7d0606fe081b835837813c3304600ea803 | 908a8f875bca39e096afa792f0b8f656bb24caac | refs/heads/master | 2021-01-10T17:38:42.476345 | 2016-03-08T13:59:02 | 2016-03-08T13:59:02 | 53,369,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from django.db import models
class Follower(models.Model):
follower_name = models.CharField(max_length=30, blank=True)
def __str__(self):
return self.follower_name
class UserProfile(models.Model):
user = models.OneToOneField('auth.User')
age = models.IntegerField(null=True)
followers = ... | [
"brennonkrogers@gmail.com"
] | brennonkrogers@gmail.com |
e1b3bc8875ec8237743dcdd1fdcb0bc746e7063a | 4e05cb669eba005b6ff040ab70b308ee24318f2a | /tests/testsegmentation.py | dd10b34f90d7f38caf3d60f8957dda7f94369108 | [] | no_license | fgrelard/ProcessMRI | 6e1784284bc845e853fb8dd4533dabe50f8e729e | 842bbfe6b409708e049e1a6027c59a88f435823a | refs/heads/master | 2023-08-22T09:31:53.121075 | 2021-03-11T09:49:08 | 2021-03-11T09:49:08 | 185,219,666 | 0 | 1 | null | 2021-10-12T23:10:34 | 2019-05-06T15:05:25 | Python | UTF-8 | Python | false | false | 763 | py | import unittest
import nibabel as nib
import importlib.machinery
import src.segmentation as segmentation
import src.maincontroller as mc
import numpy as np
import matplotlib.pyplot as plt
class TestSegmentation(unittest.TestCase):
def setUp(self):
img = nib.load("/mnt/d/IRM/nifti/BLE/250/50/50_subscan_1.n... | [
"gm.florent@gmail.com"
] | gm.florent@gmail.com |
49e8c88fcb4c66d84b242e23193a9cd0d517bd5d | 2941d8b998b1f86991f4f68303f15a62742d139d | /data_preprocess.py | a931f605b2b3d43d24613d1a34725b2962259b75 | [
"BSD-3-Clause"
] | permissive | luomingshuang/GE2E-SV-TI-Voxceleb-LMS | 4c8379947123d9ecc2fa180b002b668727c30ddf | 000b0176b4b3a484e390c986045e491d64427c8b | refs/heads/master | 2020-07-02T15:43:16.821221 | 2019-08-10T04:05:30 | 2019-08-10T04:05:30 | 201,577,250 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,384 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#Modified from https://github.com/JanhHyun/Speaker_Verification
import glob
import os
import librosa
import numpy as np
from hparam import hparam as hp
vox1_path = '/home/momozyc/Music/voxceleb/vox1_wav'
audio_dirs = glob.glob(os.path.join(vox1_path, '*'))
#audio_files = ... | [
"noreply@github.com"
] | luomingshuang.noreply@github.com |
cf3c6ee1ec55d220b02d23c84a364072c561f2e0 | c3145ee041d4d3e0cf26ec260d9409da8e8b160a | /conferences/migrations/0040_auto_20160629_2118.py | 9eba5dcbae95caffd527de9ccc971ee992718add | [] | no_license | jlundell-bot/library_website | 0b7cab541d3cf69dd97c7c8350e21315e9155798 | 59a5e48adf28ecbc43c7be145f9ec386b1066313 | refs/heads/master | 2021-06-21T14:16:57.542644 | 2017-08-18T15:51:44 | 2017-08-18T19:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,469 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-29 21:18
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0028_merge'... | [
"bbusenius@users.noreply.github.com"
] | bbusenius@users.noreply.github.com |
0a36f64bbeb284cabfa37de0e47f4dfd52159f50 | ad10cd9aecb8e1b277996484a35f54544a3f56c4 | /New folder (3)/programs/firstprogram.py | 8e0c1cc28423c66723be458fd9685313f736c370 | [] | no_license | gokul05021992/whole-projects | 4a4264ec75e1878a3661145a63c99c2b4b7c8350 | 993a8b8db83266e434387730cc5f8b16e4a8b77e | refs/heads/master | 2023-05-22T18:36:38.651925 | 2021-06-13T01:09:11 | 2021-06-13T01:09:11 | 376,460,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | print("hellow")
A=1
print("a value is ",A)
B=int(input("enter the b value"))
print ("b value is", B)
C=input("enter yout name ")
print (C)
D=int(input("enter the value"))
sum=B+D
print("total is",sum) | [
"bgokul92@gmail.com"
] | bgokul92@gmail.com |
99e08dc8c404c649f4b96eff136ea4cb9283f92e | c34308d9e283d3689baeade246b69dad13eea0c1 | /Demo/SQLDemo/e4_insert_into_table.py | 05fb7dda0bc78dcd7abf0010705c74fa53898954 | [] | no_license | michaelChen07/studyPython | d19fe5762cfbccdff17248d7d5574939296d3954 | 11a2d9dd0b730cad464393deaf733b4a0903401f | refs/heads/master | 2021-01-19T00:20:27.347088 | 2017-05-13T08:43:44 | 2017-05-13T08:43:44 | 73,004,133 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | #coding=utf-8
import MySQLdb
import random
import time
conn = MySQLdb.connect(
host = "127.0.0.1",
port = 3306,
user = "root",
passwd = "gloryroad" ,
db = "pythondbnew",
charset = "utf8"
)
# 使用cursor()方法获取数据库的操作游标
cursor = conn.cursor()
#method1:插入一条数据
insert = cursor.execute('''insert into emp_info (name,sex,dept,mo... | [
"286522215@qq.com"
] | 286522215@qq.com |
dc503665e026df92febb09f40f4492b783d04a36 | 32aeef033b0d6af953f698a934ee7864c6102b08 | /crm/views.py | dc5d9df20ca150164f5a140d15c43538f2e86deb | [] | no_license | so1so2so/Mycrm | 3d5aee13a93ce3aff47fe6715cc8ced2f4d69b80 | 34c59bbf24801871fe60ac6c2bc66443d1beb502 | refs/heads/master | 2021-08-08T01:36:02.245935 | 2017-11-09T09:26:07 | 2017-11-09T09:26:07 | 109,856,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.shortcuts import render, HttpResponse
# Create your views here.
def index(requset):
return render(requset, 'index.html')
# return HttpResponse('zhangneb')
| [
"1037930435@qq.com"
] | 1037930435@qq.com |
6a984e08f9194841186b33197b6fed29dc0c2737 | 5ef268c504ad792d49257bb665e0f2128554ebda | /integration/bitcnt-2/test.py | 5156f38da5df127bb3446ea2162d1d8b28153480 | [
"MIT",
"Python-2.0"
] | permissive | qq431169079/retdec-regression-tests | eb40905310af042ae4e9d3fa17e653192c4896e8 | e313b867daae310649fb955f45dabdd849e35a16 | refs/heads/master | 2020-04-11T12:08:49.034461 | 2018-12-04T13:14:29 | 2018-12-04T13:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | from regression_tests import *
class TestBase(Test):
def test_produce_expected_output(self):
self.assert_c_produces_output_when_run(
input='255',
expected_return_code=0,
expected_output='255 contains 8 bit set\n'
)
self.assert_c_produces_output_when_run(
... | [
"petr.zemek@avast.com"
] | petr.zemek@avast.com |
4da0ed25bcde1f134aa80715a4bc50452cfb53b5 | 89fbfd0bc72c377040f1b642e662971de5151268 | /lisztfeverapp/users/admin.py | f6e7c0c5cb550d1b97f018c1d0b22b6a88750c66 | [] | no_license | altdotenv/lisztfeverapp | 790372f6865e4b371ed097d88c6f20ae6b5f9560 | 1d50bba74eec6ee415207f4e37f4991d662d6a60 | refs/heads/master | 2020-03-09T21:35:04.665519 | 2018-07-30T01:57:00 | 2018-07-30T01:57:00 | 129,012,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | from django import forms
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as AuthUserAdmin
from django.contrib.auth.forms import UserChangeForm, UserCreationForm
from .models import User
from . import models
class MyUserChangeForm(UserChangeForm):
class Meta(UserChangeForm.Meta):
... | [
"jisu.han3201@gmail.com"
] | jisu.han3201@gmail.com |
631b1834f5f79136d605be091648a69a8ffaee30 | 771b50f241c6bd40c348b8bc6bd969e65aabbe52 | /scripts/gen-vocab.py | af626c52f6720b946e69ade37d1f68159734f3d2 | [
"MIT"
] | permissive | sakshamjindal/NSCL-PyTorch-Release | 0abd26520b9e3f64a8506b1f684f5a830feaa167 | 830842d10da68f82916c131e1f1cbf31b5f8b918 | refs/heads/master | 2022-12-30T05:50:05.924479 | 2020-10-25T13:56:32 | 2020-10-25T13:56:32 | 306,860,381 | 1 | 0 | MIT | 2020-10-25T13:56:33 | 2020-10-24T10:36:11 | Python | UTF-8 | Python | false | false | 1,444 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : gen-vocab.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 11/11/2018
#
# This file is part of NSCL-PyTorch.
# Distributed under terms of the MIT license.
import os.path as osp
from jacinle.cli.argument import JacArgumentParser
from jacinl... | [
"maojiayuan@gmail.com"
] | maojiayuan@gmail.com |
8b0078aacc3ba56e3e25ba43034870d931a1a73f | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/validators/carpet/hoverlabel/font/__init__.py | dc2b5df9b733f31e22a8c42cd3eebde3b52c5612 | [
"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 | 3,255 | py |
import _plotly_utils.basevalidators
class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(
self,
plotly_name='sizesrc',
parent_name='carpet.hoverlabel.font',
**kwargs
):
super(SizesrcValidator, self).__init__(
plotly_name=plotly_... | [
"noreply@github.com"
] | Jonathan-MW.noreply@github.com |
e5601d7d828d5283d62f4a1c7ffc0982c9a8f929 | f16ee0bd3c27c2f6c1f9b343993d6d76feaf4eda | /Appium/LinBaO_Android/src/ReleasePage/Case12_JiaSi_CommodityTypes.py | 6612843911d74ca382e21246dde5ee3d9c4cf678 | [] | no_license | Fengyongming0311/TANUKI | 482e4b8f779265da67fe1943cda5dae9c4c3dc55 | 618a47ea572f8fccfbf10f5f50aff1dfffb7b0e3 | refs/heads/master | 2021-12-25T05:33:58.891202 | 2021-12-21T06:23:55 | 2021-12-21T06:23:55 | 171,840,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | __author__ = 'TANUKI'
# coding:utf-8
import time,sys
sys.path.append("..")
class JiaSiCommodityTypes:
def JiaSiCommodityTypes(driver):
try:
driver.implicitly_wait(10)
time.sleep(2)
driver.find_element_by_css_selector("wx-dropdownmenu[class=\"goods_categories\"][id=\"goo... | [
"fengyongming0311@163.com"
] | fengyongming0311@163.com |
480659c675c451bb8083b0d428c86fc6afb442bc | 29bd55d171733586f24f42151d44f4312b6a610e | /Python/python03_list.py | 60fdebac0ed5aa07e465530a0bc0f6ae85529d6c | [] | no_license | votus777/AI_study | 66ab1da2b8e760d0c52b0ed2b2f74158e14f435b | f4e38d95690c8ee84d87c02dc20a1ea59c495f04 | refs/heads/master | 2022-12-04T15:52:14.855624 | 2020-08-20T06:12:52 | 2020-08-20T06:12:52 | 262,975,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py |
#자료형
# 1. 리스트
a = [ 1,2,3,4,5]
b = [1,2,3,'a', 'b']
print(b) #[1, 2, 3, 'a', 'b']
#list 안에 들어가는 자료를은 형이 달라도 되지만
#numpy에 들어가는 데이터는 딱 한가지 자료형만 써야한다
print(a[0] + a[3]) # 5 (1+4)
# print(b[0] + a[3]) # error
print (type(a)) # list
print (a[-2]) # 4
print (a[1:3]) #[2,3]
a = [1,2,3, ['a', 'b', 'c']]
print(... | [
"votus777@users.noreply.github.com"
] | votus777@users.noreply.github.com |
096b04f07443d8fd221786be8b63b62be958f991 | 388e90c9cfdb59b28654d711fe1943aeda7cf3fd | /third_party/rlkit_library/examples/td3.py | 61799e1e9ac79b7e7e9684163cb06f8ae9823600 | [
"MIT",
"Apache-2.0"
] | permissive | google-research/DBAP-algorithm | bbb2827de7f00c9efa30e3cde109ff755b4d008a | 545a4e780f9d9d480c96b67e7a8ae590a983db6b | refs/heads/main | 2023-07-05T00:38:47.424870 | 2021-08-09T23:59:10 | 2021-08-09T23:59:10 | 394,473,322 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,448 | py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"karolhausman@google.com"
] | karolhausman@google.com |
1e7409a41d0d5782c505a94f099bcf920419e3d4 | da3ee480f882df7d4f0897a1d0a51abc5253737c | /src/ocd/storages.py | 2411cdc19427aa20ce83c13d43b8688f807a2a40 | [
"BSD-2-Clause"
] | permissive | Niros/OpenCommunity | 4876c7ec57dd1487fbf9484b51c389b0f1e755ab | 4c91136db6243a1cd65b55ecf5a44c2bce24a45a | refs/heads/master | 2021-01-15T12:54:39.037042 | 2013-11-05T11:03:52 | 2013-11-05T11:03:52 | 14,309,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.conf import settings
from django.core.files.storage import FileSystemStorage
uploads_storage = FileSystemStorage(settings.UPLOAD_PATH)
| [
"udioron@gmail.com"
] | udioron@gmail.com |
b8d07e9a80c471b2a19d8a1e3f74ff7e0e7b5b2b | 9ad1d339cdd4424c7fcba0f58bd2a5fe74ac5529 | /manage.py | 87b7187a536746afc97a322590dc5c9be1a70fe4 | [] | no_license | viralsir/djangoProject | d26892e47216511b053858922d908a522a19cde5 | 7ef1b959c7091e522bcafa45f0e490a1a895587e | refs/heads/master | 2023-01-23T12:30:20.668464 | 2020-12-07T08:45:57 | 2020-12-07T08:45:57 | 319,211,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoProject.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"viralsir2018@gmail.com"
] | viralsir2018@gmail.com |
60193f621f11ea2ae9a6d684dd0775aef45cb307 | 58eac1826eb44833ffc5a4c61ae017883b202334 | /my_cookbook/skill/handlers/ingredients_or_instructions.py | 6725f95720c3d99849d073832b57f53bbd177813 | [] | no_license | PeterMitrano/my_cookbook | dd8b91170cd101d453c942972a87b2d85dc163b4 | 46d47e863d10947b3052fc59351da5d83a8dba36 | refs/heads/master | 2021-01-19T06:36:26.718989 | 2016-10-17T03:35:17 | 2016-10-17T03:35:17 | 61,961,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,997 | py | from my_cookbook.util import core
from my_cookbook.util import responder
from my_cookbook.util import recipe_reader
class IngredientsOrInstructionsHandler():
def IngredientsIntent(self, handlers, persistant_attributes, attributes, slots):
# check we've got a working recipe at the moment
if 'curren... | [
"mitranopeter@gmail.com"
] | mitranopeter@gmail.com |
8410d4407487790ffd9390d1380792d2c3cb81f1 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /2JHYavYqynX8ZCmMG_6.py | 917033bb69be0d4fe969baad4c56947a20f83bc7 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | """
Create a function that compares two words based on the sum of their ASCII
codes and returns the word with the smaller ASCII sum.
### Examples
ascii_sort(["hey", "man"]) ➞ "man"
# ["h", "e", "y"] ➞ sum([104, 101, 121]) ➞ 326
# ["m", "a", "n"] ➞ sum([109, 97, 110]) ➞ 316
ascii_sort(["majorly... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8820cbda2c5e724551c7818152f98925ae46c154 | ca37ff6a91d42a2a1cafeef842e1359c0ae48c1d | /backend/base/migrations/0002_order_orderitem_review.py | 530f912d5c215034b8660233175bf80f5a100df1 | [] | no_license | naol-hub/best_shop | 77b629b4a7c2c63e94e7921dd013122e2233f2bf | 93d8bdf629c148520e5cefe48a154f7453983937 | refs/heads/master | 2023-06-19T18:47:23.573613 | 2021-07-21T19:19:54 | 2021-07-21T19:19:54 | 388,220,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py | # Generated by Django 3.1.4 on 2021-07-04 16:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('base', '0001_initial'),
... | [
"you@example.com"
] | you@example.com |
e498d1690cc941bf265d5f8bd404dac926f3af76 | 7f4191f0e12a70d465b15762ce83b57b4976d448 | /Chapter3/INheretence.py | 8ea1996f796b4fa8c413cbaa33fd59124f4555b0 | [] | no_license | PacktPublishing/Hands-On-Penetration-Testing-with-Python | 33f72df57b9158e002f78330c1242e1fde777898 | 7b11c8e63e4ac350ba138161f60f7ce4c08ed7cd | refs/heads/master | 2023-02-06T04:52:12.475428 | 2023-01-30T10:03:47 | 2023-01-30T10:03:47 | 131,272,051 | 79 | 40 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | #! /usr/bin/python3.5
class Id_Generator():
def __init__(self):
self.id=0
def generate(self):
self.id=self.id + 1
return self.id
class Department():
def __init__(self,name,location):
self.name=name
self.loc=location
def DepartmentInfo(self):
return "Department Name : " +str(self.... | [
"furqankhan08@gmail.com"
] | furqankhan08@gmail.com |
6fd710ff73ec9263e9e55367fc477e652acb033b | 5e22728a45dc131b5abcdde3c10928557177898b | /msticnb/nblib/entity_tools.py | 1544e4239ee714babd97514089a5bc45b8f2b108 | [
"MIT"
] | permissive | microsoft/msticnb | 74fc9636964be68900702ee0c85b0c992f0779ad | cefc4ee5a22285d33e7abd91371c617fe42f8129 | refs/heads/main | 2023-06-30T02:00:29.253130 | 2023-03-16T20:14:27 | 2023-03-16T20:14:27 | 250,417,186 | 25 | 11 | MIT | 2023-03-16T20:14:28 | 2020-03-27T02:00:17 | Python | UTF-8 | Python | false | false | 1,252 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""Entity ... | [
"ianhelle@microsoft.com"
] | ianhelle@microsoft.com |
76d34d609a1f8d2dd9bc469663aa252496e1d5df | 529bba93d8671fb3ca3844b4df4c3e192805c3f9 | /Lesson 1 - Homeworks/find 1/find1.py | 70b0a0bed91892e1830de4e07d5114652366045a | [] | no_license | zischuros/Introduction-To-Computer-Science-JPGITHUB1519 | 140b131edd6711197c2f2c6ab3f3a8efbb57dc18 | 0556e82a6f74577b4542c80e11471c03325236f0 | refs/heads/master | 2023-03-23T14:46:14.721869 | 2016-05-04T21:55:19 | 2016-05-04T21:55:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # Assume text is a variable that
# holds a string. Write Python code
# that prints out the position
# of the first occurrence of 'hoo'
# in the value of text, or -1 if
# it does not occur at all.
text = "first hoo"
# ENTER CODE BELOW HERE
print text.find("hoo") | [
"juanpedro1519@gmail.com"
] | juanpedro1519@gmail.com |
bda082cc78e9cd787776e49c9ed4dce261314ee1 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayUserCardActivateurlQueryResponse.py | 64d32016949b8988e7f3520c8fe40ba9ba078b48 | [
"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,041 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayUserCardActivateurlQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayUserCardActivateurlQueryResponse, self).__init__()
self._apply_card_url = None... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
bc3c39df6e99e811e0ba62dc289bcc6a02651920 | 3823c76ef517d9995920455c87b3f3fbf75aa06b | /download_data_ooi1_0.py | b9cf53b3407217433cfa78ac3f010d533084a6f7 | [] | no_license | ooi-data-lab/data-download | 765ae7d30daa984f2ee7b66482d8f0230251829d | 822f02f8c786a70271640ed653b026ba04811a2f | refs/heads/master | 2020-04-27T13:24:44.652725 | 2019-05-29T14:31:15 | 2019-05-29T14:31:15 | 174,368,968 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | #!/usr/bin/env python
"""
Created on Sep 7 2018
@author: Lori Garzio
@brief: This script imports tools to use the data_review_list
(https://github.com/ooi-data-lab/data-review-tools/tree/master/review_list) to download OOI 1.0 datasets via the OOI
M2M interface.
@usage:
sDir: directory where outputs are saved, and w... | [
"lgarzio@marine.rutgers.edu"
] | lgarzio@marine.rutgers.edu |
3d1b02416928674854e82e448ad25812a8d5e2e3 | f6de805e4e0e169cd82562aca20bfef3b38c8c31 | /venv/Scripts/gifmaker.py | 7036a340c87acdf26d6bc26a1f9bfd754c935b7f | [] | no_license | Huangkai1008/stuonline | 742ac9b27ea1cda8e2c35bf0425cb076ff0345dc | f874eeeb91433d7d789783347e4ffbb01198da58 | refs/heads/master | 2022-10-26T03:36:40.910069 | 2018-01-08T05:41:15 | 2018-01-08T05:41:29 | 114,594,601 | 0 | 1 | null | 2022-10-18T01:01:58 | 2017-12-18T04:05:32 | Python | UTF-8 | Python | false | false | 692 | py | #!c:\users\huangkai\pycharmprojects\stuonline\venv\scripts\python.exe
#
# The Python Imaging Library
# $Id$
#
# convert sequence format to GIF animation
#
# history:
# 97-01-03 fl created
#
# Copyright (c) Secret Labs AB 1997. All rights reserved.
# Copyright (c) Fredrik Lundh 1997.
#
# See the README file f... | [
"18778335525@163.com"
] | 18778335525@163.com |
4ad4ff6e2904bfa1d05b0636df4dcf6e1dad797d | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /leet_code/111. Minimum Depth of Binary Tree.py | 32f64c72979c0a30bda905626e31da5ffa8920a8 | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def minDepth(self, root: TreeNode) -> int:
if not root:
return 0
def dfs(node, depth):
... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
1ce516617a7ed38b6bddd8a4a069d6da44127912 | 90c161bc5861c14b426cc6627ce08f2241ad3576 | /django_project_template/django_project_template/apps/app/models.py | d23ecefbfdab097a30b9fbdec86489003734ef5f | [
"MIT"
] | permissive | eduardolujan/django_project_template | dd6eb421eedac07c52d429e74c7461941fb96ef9 | 6e449b1da6d95ab7afb532a4a76d724be666ae4f | refs/heads/master | 2016-09-05T22:01:07.106705 | 2015-08-24T22:48:18 | 2015-08-24T22:48:18 | 35,395,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from django.db import models
# Create your models here.
class Person(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
other = models.CharField(max_length=30)
| [
"eduardo.lujan.p@gmail.com"
] | eduardo.lujan.p@gmail.com |
2cbebb6288b0c8a6157c34869367770c6916c8a2 | 02c30e3e2c0f701d77f0a23591027ae62f37a512 | /libs/applibs/kivymd/grid.py | c2d59d0d4cf04b4e9156a363d5dec219b4a4192e | [
"MIT"
] | permissive | mkbeh/CRyptoLab | 5341a48a403ecf23e10248c46e919c1381275551 | 424c938c16c9264e99eff71e4c1a27ca65314d42 | refs/heads/master | 2022-12-22T06:39:36.909313 | 2018-09-25T14:40:32 | 2018-09-25T14:40:32 | 144,743,677 | 0 | 2 | MIT | 2022-12-08T02:22:14 | 2018-08-14T16:09:19 | Python | UTF-8 | Python | false | false | 5,151 | py | # coding=utf-8
from kivy.lang import Builder
from kivy.properties import StringProperty, BooleanProperty, ObjectProperty, \
NumericProperty, ListProperty, OptionProperty
from kivy.uix.behaviors import ButtonBehavior
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.floatlayout import FloatLayout
from libs.appl... | [
"mkbehforever@gmail.com"
] | mkbehforever@gmail.com |
a77d7b5ddda7a942f99d2e3cccf3bf59b4f1315f | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/azure-firewall/azext_firewall/vendored_sdks/v2021_08_01/v2021_08_01/aio/_configuration.py | 86d05cdb64608c7096fa37b26058687fa39110c9 | [
"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 | 3,380 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
fd0e1bda9b0e00e801221a122a381f259448e504 | 8c68f9d99b769bbd8aae676666b386156ffb26ff | /toga_cassowary/widget.py | 57918cd93727e633475e349489e7dbef74e5b92f | [
"BSD-3-Clause"
] | permissive | pybee/toga-cassowary | 2209a2de17ab3774582423b700088572513c55ef | 74be7f9b5e7f435f839749870fec7effd73959bb | refs/heads/master | 2016-09-15T14:47:15.951453 | 2016-03-11T10:09:37 | 2016-03-11T10:09:37 | 23,016,663 | 2 | 4 | null | 2016-03-11T10:09:38 | 2014-08-16T11:31:40 | Python | UTF-8 | Python | false | false | 4,035 | py | from __future__ import print_function, absolute_import, division
from toga.constraint import Attribute, Constraint
from toga.widget import Widget as WidgetBase
from .layout import BoundingBox, LayoutManager
class Widget(WidgetBase):
def __init__(self):
super(Widget, self).__init__()
self._boundi... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
b7eeafbb0578c3aff3f997b879d90719598bf4fc | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/slb/slb_connection_reuse.py | 9be7f959106aa709eef0df8f1744fb66d72c95fe | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 3,137 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class SamplingEnable(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param counters1: {"enum": ["all", "current_open", "current_active", "nbind", "nunbind", "nestab", "ntermi", "ntermi_err", "delay_unbind", "long_resp"... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.