blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e5f55abcdb9c2711452c8f7fefe4f9e6508614e | 5a68f0da6d679626cabca3eb3f85012d85eb8949 | /gameMenus.py | 8a30c925e0afd61aab3021fbc5c606220ce2fd62 | [] | no_license | sycombs/OfficialFortranFanclub_KeyboardHero | 377ef8866b2f8baff7cdeb0595e36a37bd58b8fd | 4f1e9f8e0a442c2a7855728519ba429f44abb0d7 | refs/heads/master | 2020-03-31T10:27:37.894265 | 2018-12-07T03:14:32 | 2018-12-07T03:14:32 | 152,135,448 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | py | """@package docstring
gameMenus.py creates and manages the menus when opening the game, and is in charge of passing information to the gamelogic.py. Specific tasks include
operating the main menu, song selection menu, and mode menus, selecting of songs and difficulties, and starting the gameLogic with the select... | [
"nathan.a.pelletier@gmail.com"
] | nathan.a.pelletier@gmail.com |
62b12fd65ce14e281a3dbf1d0319ff01e6f78184 | 5513bf0eccd4fda599e6123e3bbde58d4151cd0f | /data/read_newdata.py | ba3542f2f63ff2a96c69218d8d24bc02967b48e2 | [] | no_license | houweidong/CubeModel | 8bf035cc25314faae02be404257287b4451f62ea | 4e3a81358e21785e7aa167c3bc3f42f637a78563 | refs/heads/master | 2020-05-21T00:08:52.628923 | 2020-03-03T21:13:51 | 2020-03-03T21:13:51 | 177,306,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,773 | py | from torch.utils.data import Dataset
import os
from data.attributes import WiderAttributes as WdAt, Attribute, AttributeType as AtTp
from torchvision.datasets.folder import pil_loader
import json
from data.image_loader import opencv_loader
class NewdataAttr(Dataset):
def __init__(self, attributes, root, subset, m... | [
"377473270@qq.com"
] | 377473270@qq.com |
f838211f09a1c537c0773edbbd1550086a9da546 | 2dbcea415ce05b32514e7c67dc8131cce32dfb13 | /data_collection/data/gucco/metaread.py | d1534ad9bf639880ad12c98ef90290727e4a615c | [] | no_license | WeiXie03/quiXtinguish | f881ce6df2e15c6adffa2e6616998b7cb1061789 | 54f217a8969afa2aafb3b8bf158fc2e232670743 | refs/heads/master | 2022-04-29T20:46:34.624528 | 2022-04-08T03:09:38 | 2022-04-08T03:09:38 | 169,194,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | import pickle
with open('./metadata.dat', 'rb') as metaf:
print(pickle.load(metaf))
| [
"cheng.k.xie@gmail.com"
] | cheng.k.xie@gmail.com |
3d39d939f1f3d729238a3f0067f3730e41cbf1e6 | 49e3fbd1c978036b59fa3cddddbf504ec42fc402 | /question_app/views.py | 9be75d3aee571379706b4c3b4d939674bd988d35 | [] | no_license | tahaenesaslanturk/question_app_backend | 030ff9c99c74c3ec540dda6d091b787b8af9a702 | c08d7f5b4c2cfd7e534dc45700c1a14e307e0e99 | refs/heads/master | 2023-08-15T05:58:51.836759 | 2021-10-14T19:44:59 | 2021-10-14T19:44:59 | 417,262,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,695 | py | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework import generics, status, filters
from rest_framework.response import Response
from question_app.models import (Book, Tag, Question, Answer)
from question_app.api import (serializers, permissions)
# BOOK VIEWS
class BookL... | [
"enes.aslanturk@ug.bilkent.edu.tr"
] | enes.aslanturk@ug.bilkent.edu.tr |
09dc4b8c4826d5758b97747fe4b4d51aa543a01a | 5053116ea6876add7903bf9433a9cf5da6aa5cbb | /CI_final project/rbfnet/RBF.py | 37606ac2732850630bf4bcd555651a1ffac725a9 | [] | no_license | Yasaman1997/Computatioanal-Intelligence | 4c400643bc4eb8ab30e51fc1fe7e76cf2d2ca2e5 | 65607a5d3ff6e08269584f9055f4feba5358abe2 | refs/heads/master | 2020-12-27T07:41:18.100841 | 2020-02-02T19:29:28 | 2020-02-02T19:29:28 | 237,819,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,066 | py | import math
import matplotlib.pyplot as plt
import numpy as np
import FCM
import code
class RBF:
def __init__(self, path, clusters, fuzziness_parameter, gama, n_class):
path = path
self.dataset = code.prepare_data()
self.n_cluster = clusters
self.m = fuzziness_param... | [
"noreply@github.com"
] | Yasaman1997.noreply@github.com |
805ab78f8d4034cd64e19a00ebcca498dc8e2775 | b14a19612f2a24f9ee957099442bd87450a5db49 | /ToDo/ToDo/urls.py | ff04977e8fd2f70aa174504c4376dc4639ccd161 | [] | no_license | ShahzaibSE/Django_ToDo_App | dc92ea7517e02f2532812d13ae89d6751b5220c2 | de4c50e9b066d977f3eda204f3158243299ca4f5 | refs/heads/master | 2021-01-21T11:14:52.545816 | 2017-03-01T09:36:32 | 2017-03-01T09:36:32 | 83,537,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """ToDo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"shahzaibanalyst@outlook.com"
] | shahzaibanalyst@outlook.com |
b89d6cd1990de68f12e52d48b92f63c403f611e2 | 773b39245ad6f399ccaba093e4eba0d1c0c22661 | /train/test_GT.py | 4d40b8e4e1c2c4e7016692a431ade6cbf08901db | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PeiyanGong/frustum-pointnets | 9a06008d536ea5d6d68499cc3771d3e6b6e2bc16 | 927fb3bc64a755239040fbdd0d44c8434535ab25 | refs/heads/master | 2020-03-19T10:19:17.568388 | 2018-08-03T05:43:33 | 2018-08-03T05:43:33 | 136,361,136 | 1 | 0 | Apache-2.0 | 2018-06-06T17:10:38 | 2018-06-06T17:10:37 | null | UTF-8 | Python | false | false | 15,747 | py | ''' Evaluating Frustum PointNets.
Write evaluation results to KITTI format labels.
and [optionally] write results to pickle files.
Author: Charles R. Qi
Date: September 2017
'''
from __future__ import print_function
import os
import sys
import argparse
import importlib
import numpy as np
import tensorflow as tf
impor... | [
"pygong@umich.edu"
] | pygong@umich.edu |
4e7940d62260347580b6c8eea968dbb082f74f84 | 6bedc2d1671e01e4d88314fc3f4dd0cf3b57e739 | /modules/game.py | eaf0ef4662db42269e1537a2af1e0a2d6485cf0d | [
"MIT"
] | permissive | gabryatfendor/PyEscape | 4c7d4ba5243620b4e149aba68df065cb9ff438cf | 3b375252466d380de3f516ebfa39695f1ee8287e | refs/heads/master | 2021-10-23T22:24:03.522844 | 2019-03-20T13:15:28 | 2019-03-20T13:15:28 | 65,304,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,638 | py | """Game common properties"""
import os
import sys
import pygame
from enums.direction import Direction
from .graphics import Color, Tiles, Images
from .screen import Screen
from .map import Map
from .strings import Common
from .ai import Npc
from .level import Level
from .audio import Sound
class Game:
"""Game com... | [
"gabriele.sani@antreem.com"
] | gabriele.sani@antreem.com |
485b464e4b94a31de2a1e612ab6f6c40411628a1 | 4de0c6d3a820d7669fcef5fd035416cf85b35f23 | /ITcoach/xlrd_xlwt处理数据/第1章 python基础/1.7 学Python,不愁没对象!/1.7.2.py | 41358a812e40297cbed3f5cf30e10307d8cf4862 | [
"AFL-3.0"
] | permissive | ww35133634/chenxusheng | 5e1b7391a94387b73bcd7c4d12f1247b79be8016 | 666e0eb3aedde46342faf0d4030f5c72b10c9732 | refs/heads/master | 2022-11-12T03:46:47.953680 | 2020-07-02T20:50:56 | 2020-07-02T20:50:56 | 275,168,080 | 0 | 0 | AFL-3.0 | 2020-07-02T20:58:37 | 2020-06-26T13:54:48 | HTML | UTF-8 | Python | false | false | 34 | py | print(type(99))
print(type('abc')) | [
"82516351@qq.com"
] | 82516351@qq.com |
af271b98f1344693605ccb7e95dd2e95db2b43de | 00f3494393c710277d537ebabb23b727afa874a7 | /setup.py | 6267db92d43fadfbdde8620b0c853e04a33bf497 | [] | no_license | drewsonne/datagovuk | b0296455cd0cf6e94389461fd051b23d61cfe001 | 71ac9f9657e357bf05eac2c8abd72f45034bf08a | refs/heads/master | 2022-12-09T22:58:57.295458 | 2020-03-02T14:25:56 | 2020-03-02T14:25:56 | 156,659,985 | 0 | 0 | null | 2022-08-05T22:00:47 | 2018-11-08T06:24:09 | Python | UTF-8 | Python | false | false | 689 | py | from setuptools import find_packages, setup
setup(
name='datagovuk',
version='0.1.3',
packages=find_packages(),
url='https://github.com/drewsonne/datagovuk',
license='LGPLv3',
author='Drew J. Sonne',
author_email='drew.sonne@gmail.com',
description='Tool to allow easy importing to data ... | [
"drew.sonne@gmail.com"
] | drew.sonne@gmail.com |
d63654f3fa9af4278647cce6e1d80a3eade43c50 | 032064ca629aa84e6ef831e707da7adae5a3c2a0 | /psroadmap/bruteforce/1748.py | 61e20ef71b98119f89cfbcb8badbc6f6f923c9c8 | [] | no_license | skfo763/Problem_Solving | 6a53fbb2fa2a575e10401460638231bebb109057 | cdad27b493e941d7938f29baf88ceaae4cbffb87 | refs/heads/master | 2021-08-07T05:29:09.968394 | 2021-07-12T02:37:30 | 2021-07-12T02:37:30 | 205,546,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | import sys
sys.setrecursionlimit(100000)
input = sys.stdin.readline
def f(num, k):
if k == 0:
return 0
else:
if num >= 10 ** k:
val = 9 * (10**(k-1))
else:
val = num - (10 ** (k-1)) + 1
return f(num, k-1) + (k * val)
n = input().rstrip()
len_n = len(n)
pr... | [
"scy7351@naver.com"
] | scy7351@naver.com |
fe74a07943cbbc198295913a72e0c97901d333e8 | 4bbb67ae8d51c29641b153371e1f404b9af404f0 | /tetris/tetris.py | d54e00fbee9dd349be46d1875ea764db646c4d88 | [] | no_license | timurbakibayev/python_advanced | e328dd3b26d4b94a05e9218be483e97b149fa8bf | da7beace64e2c17c447efec314d757f8181b6acf | refs/heads/master | 2023-01-30T04:07:19.296989 | 2020-12-08T12:47:34 | 2020-12-08T12:47:34 | 291,979,925 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,905 | py | import pygame
import random
pygame.init()
colors = [
(0, 0, 0),
(120, 37, 179),
(100, 179, 179),
(80, 34, 22),
(80, 134, 22),
(180, 34, 22),
(180, 34, 122),
]
transparent = (255,255,255,40)
figures = [
[[1, 5, 9, 13], [4, 5, 6, 7]],
[[4, 5, 9, 10], [2, 6, 5, 9]],
[... | [
"timurbakibayev@gmail.com"
] | timurbakibayev@gmail.com |
eeed637ae329962457dea76e8a46dd6381f588f2 | 1832a909b2c564bc623bca36dd3eea8c5587e2db | /server/core/migrations/0007_auto_20170206_0100.py | 30aa6f8b8b22f8af086a24dce4fe314c5837a1d1 | [] | no_license | bravesoftdz/tramsdaol | ea4370b93ccba6ba569e948d552bab89042fb337 | e726a00a0296454582f18d18956140c67be8cf8d | refs/heads/master | 2020-03-20T02:57:25.088779 | 2017-04-01T01:31:49 | 2017-04-01T01:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-06 01:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0006_geographiccoordinate_search_address'),
]
operations = [
migrations.Alt... | [
"johni.douglas.marangon@gmail.com"
] | johni.douglas.marangon@gmail.com |
fe5da088af2c6a323c9f38e0f3bba0a9f119a729 | 251fd82363aa498daf65db264cf8d95e67d9bafa | /2 chapter 4.py | 66c1e0599469f3078c13994e32e85f15c26cda7e | [] | no_license | kuncara15/Chapter-4-PROTEK | 470a2888f957be14b619924ef98790a4cc24dbdd | df10be31c80b63dc47ff866602e8d42b96dee6f5 | refs/heads/main | 2023-08-15T20:43:46.297304 | 2021-10-10T14:01:53 | 2021-10-10T14:01:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | Jarak = 795
#bensin 1 liter mampu 12 km
Bensin = Jarak / 12
print('jadi banyak bensin yang dibutuhkan ',Bensin,' liter')
| [
"noreply@github.com"
] | kuncara15.noreply@github.com |
d53f793130ad637fa94478ead59dfdb25096422e | 4887402b3dad4b14fce6e9cdb1c5ff681ad70230 | /DQN/pytorch/dqn.py | 7c57f07d8d1fc23da67685351eaf8cb78f7189ef | [] | no_license | MonicaPH/reinforcementLearning | 13fb545825ba60bcfe812fc69e440f89ef2692b9 | c06d3842e837e198642740eccd4f87d29dbde9b0 | refs/heads/master | 2022-04-25T21:46:23.941267 | 2020-05-03T13:39:13 | 2020-05-03T13:39:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | import sys
import gym
import math
import random
import numpy as np
import torch
import matplotlib
import matplotlib.pyplot as plt
from itertools import count
from PIL import Image
from agents import DQNAgent
matplotlib.use('Agg')
matplotlib.style.use('ggplot')
env = gym.make('CartPole-v0')
if __name__=="__main__":
... | [
"suryanvineet47@gmail.com"
] | suryanvineet47@gmail.com |
f3ecbb370628cb6c14b6a0b65d0bc05ac04ea0b2 | 4bf0bfd84cee17d0b033be133c7e28fa8d291e82 | /electra/transformers/configuration_utils.py | 668892fa6655113f69d0cab8d2857cbcb7183415 | [] | no_license | TeamRaccoon/SentiReview | 3234be753d4e0296f624aff6b387079ac071a34c | f7a1ebc75378a49bb51ef4c523297fe269f5aff2 | refs/heads/master | 2023-06-05T06:32:38.424705 | 2021-07-03T06:07:24 | 2021-07-03T06:07:24 | 302,822,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,271 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a cop... | [
"comma1010k@gmail.com"
] | comma1010k@gmail.com |
547e0693292107da53eae3973d593735371befe6 | bd9f9d3937f7ea8a825e1d9b61fb5493f88b4653 | /python-prototype/data/id.py | 46273c41b1385dad0a7b12dfc89ab519f9144b87 | [] | no_license | tea2code/fantasy-rts | ba3b0b73975d4c6d4c986a36f11002073b40995f | c38b43edb7ec54f18768564c42859195bc2477e4 | refs/heads/master | 2021-01-20T02:48:03.999913 | 2015-02-07T10:12:10 | 2015-02-07T10:12:10 | 15,477,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | """ ID constants.
Constants with _ as prefix are no IDs but used for validation...
"""
# Actions.
ACTION_CURSOR_NORTH = 'action.cursor_north'
ACTION_CURSOR_SOUTH = 'action.cursor_south'
ACTION_CURSOR_WEST = 'action.cursor_west'
ACTION_CURSOR_EAST = 'action.cursor_east'
ACTION_SCROLL_NORTH = 'action.scroll_north'
ACTI... | [
"stefan4875@gmail.com"
] | stefan4875@gmail.com |
53aa4d458a908c0ef995937fc4f01649c8822421 | 0ba174a9c1b1afb5b2f9f53703b77a2b7c636e20 | /app.py | d5323754aec4d8877ef3c892263d52d6dbfcf90d | [] | no_license | bhaveshpatel640/cart | ae680f77663081d1f30172eef89b40bb88e96b30 | 9b4be4e4015b6b095ce0cc495beec2f9ac80c88e | refs/heads/master | 2022-10-14T18:34:30.611346 | 2020-06-11T07:38:46 | 2020-06-11T07:38:46 | 271,601,608 | 0 | 0 | null | 2020-06-11T17:00:53 | 2020-06-11T17:00:52 | null | UTF-8 | Python | false | false | 512 | py | user_ip = 'Welcome'
data = []
def menu():
print('Menu:')
print('1. Add an item?')
print('2. Remove an item?')
print('3. View items?')
print('4. Exit')
while user_ip != '4':
menu()
user_ip = input('enter your choice: ')
if user_ip == '1':
item = input('enter ... | [
"noreply@github.com"
] | bhaveshpatel640.noreply@github.com |
9aa63aac3e6bf6b02a6ac01ef808c52247f95e0c | 649255f0d9b6d90be3d3f68263680081f893a089 | /test/test_excluded_scan_targets.py | 85f9366583d08f39747f863208b29caf424513f5 | [] | no_license | khantext/r7ivm3 | 611e1bbc988d9eb8fbb53294d3ed488130e46818 | bd9b25f511f9e7479ea7069d71929700bed09e87 | refs/heads/master | 2023-05-01T10:01:16.336656 | 2021-05-03T18:16:12 | 2021-05-03T18:16:12 | 237,514,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,254 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"justinlute@gmail.com"
] | justinlute@gmail.com |
2a38b18643398080afdf4fbe89533401fdd3c67d | 4c300a18ba13bed9e0fa933a9f6d01187e005468 | /devrun/cmd/web.py | d2a193d5aa0a8dded14213a28127cad236a46f7a | [] | no_license | smurfix/devrun | 08def56eda1090e9489b2f3c33d2a26d9a143277 | d6098fafc79c81d65468a6cbdaaf0b8633ebde97 | refs/heads/master | 2021-01-25T01:22:05.091114 | 2017-06-22T10:54:40 | 2017-06-22T10:54:40 | 94,753,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division, unicode_literals
##
## This file is part of devrun, a comprehensive controller and monitor for
## various typed code.
##
## devrun is Copyright © 2016 by Matthias Urlichs <matthias@urlichs.de>,
## it is licensed under the GPLv3. S... | [
"matthias@urlichs.de"
] | matthias@urlichs.de |
8b40a9aa586e50e8f8aa6b0a0a9477c7c983d9d7 | 9aeefd99efa17e796ee4f235511c61360f786d95 | /rhino/SoftwareTool/Floorslab_AIM_GH_30.py | fd8cea9902b90ba3df44b8820380dc52b964d3a7 | [
"MIT"
] | permissive | augmentedfabricationlab/timber_clay_hybrid | fe1e9c4f4a8e962a9f13f97d4301628ddaf74ba7 | 243efddac77970c989b551697a0e188932064849 | refs/heads/master | 2023-03-27T05:23:31.853335 | 2021-03-25T21:06:38 | 2021-03-25T21:06:38 | 293,768,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,796 | py | import math
import copy
import operator
from compas.geometry import Point, Box, Frame, Vector, scale_vector, normalize_vector, Polygon, Rotation, is_point_in_polygon_xy, angle_vectors_signed
from compas.datastructures import Mesh
from compas.geometry import Line
from compas.geometry import intersection_line_line_xy, i... | [
"jkt1995@gmail.com"
] | jkt1995@gmail.com |
9d818c8075bee01c6c345bcb48c5f1e8ac8d53cd | afabbdea254f9ae007fc39d9574eac585b08a62a | /hackerrankChallenges/haloweenParty.py | 28811b9a40ad7ec37e4b6c6f9a7f87d7831ab561 | [] | no_license | brunofracalossi/codingExercises | 259852cf5f50be14d3fd75e50b5a12b3a79921a4 | 693711c4c251872a43468302bd247a0a2bbafb92 | refs/heads/master | 2016-09-05T10:11:47.320593 | 2014-11-19T15:56:59 | 2014-11-19T15:56:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
T = input()
for i in range (0,T):
cuts = input()
pieces = ((cuts / 2) * (cuts / 2)) + ((cuts % 2) * (cuts / 2))
print pieces | [
"brunofracalossi@gmail.com"
] | brunofracalossi@gmail.com |
954a8cb67b772cd3be6d84bb56dcd00463f7b965 | f8886234ddc67ce1f7949c8489701c954a90b41a | /CanteenBillingSystem/CanteenBillingSystem/settings.py | c783109821f518cf974326d1873515fae3dbf456 | [] | no_license | pro-metheus/Oottupura | 9718efafda7850ea39d9469686cf89b8918a6a6e | e572d19efec0a3f0ba21a2dd041e529177e53f6b | refs/heads/master | 2021-08-14T06:16:52.848864 | 2017-11-14T19:28:37 | 2017-11-14T19:28:37 | 110,568,054 | 0 | 0 | null | 2017-11-14T19:50:05 | 2017-11-13T15:48:45 | HTML | UTF-8 | Python | false | false | 3,286 | py | """
Django settings for CanteenBillingSystem project.
Generated by 'django-admin startproject' using Django 1.11.2.
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/se... | [
"noreply@github.com"
] | pro-metheus.noreply@github.com |
a32077954feaaf66d2e4a23b6ccbfb1d5d8009ef | bcc199a7e71b97af6fbfd916d5a0e537369c04d9 | /leetcode/solved/53_Maximum_Subarray/solution.py | 4b9dd9a6ff3ffd63395f61fdf9315a2b1fb9c7b9 | [] | no_license | sungminoh/algorithms | 9c647e82472905a2c4e505c810b622b734d9d20d | 1389a009a02e90e8700a7a00e0b7f797c129cdf4 | refs/heads/master | 2023-05-01T23:12:53.372060 | 2023-04-24T06:34:12 | 2023-04-24T06:34:12 | 87,406,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 sungminoh <smoh2044@gmail.com>
#
# Distributed under terms of the MIT license.
"""
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
A subarray is... | [
"smoh2044@gmail.com"
] | smoh2044@gmail.com |
72e65088eaae6e1b15512d9842084c538cf5c3d2 | 9b6f0abbd2168d81624fdc507cdc5bb773cb6eb7 | /Small_Code/region_checker.py | bb980656ae16e234165eb6b3e67cedd97f285c18 | [] | no_license | IndraSigicharla/Python-Code | fb59adf0553ab05c3a28f95fea51724a716ece0f | d9fa259dafe4e9c798fb253403e4679ae084ec8b | refs/heads/master | 2023-02-15T19:17:02.886822 | 2021-01-14T14:55:56 | 2021-01-14T14:55:56 | 303,578,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | name, age, gender, region = ([] for i in range(4))
n = int(input("Enter the number of customers: "))
for _ in range(n):
name.extend([input("Enter the name: ")])
age.extend([int(input("Enter the age: "))])
gender.extend([input("Enter the gender: ")])
region.extend([input("Enter the region: ")])
y = input... | [
"indhhra@gmail.com"
] | indhhra@gmail.com |
20d8bfd423141485558ec1c150cadcdd244584a4 | 19643168a846a9a0f650e1f6f30c7283ea2e488a | /ML_Project_Reinforcement_Evolutionary/Lib/site-packages/matplotlib/quiver.py | f7f5cda23010da238d3a3696f247268daeceb141 | [] | no_license | ardagon89/Performance-comparison-of-Genetic-algorithm-w-Reinforcement-learning-for-simple-game-learning-CS6375 | eb9aa7031b655ab6a410de7e1fb604004a357e60 | 284d2598f15a529bc0fa6dcca2bf12a58cb4d057 | refs/heads/master | 2022-12-13T16:12:50.515510 | 2020-08-29T19:18:16 | 2020-08-29T19:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,766 | py | """
Support for plotting vector fields.
Presently this contains Quiver and Barb. Quiver plots an arrow in the
direction of the vector, with the size of the arrow related to the
magnitude of the vector.
Barbs are like quiver in that they point along a vector, but
the magnitude of the vector is given schematically by t... | [
"shariq.mellon@gmail.com"
] | shariq.mellon@gmail.com |
61a683398939f28b88f16a0cf02b6bc54d0c738a | 81df54e1245fbc50ffaa6c08108deeef43710596 | /Training/python_csv_parser01.py | 8afd6a3a77bdb19174929689bbcd4a631d3f2d02 | [] | no_license | gurupsv/LearnPython | 1abdca29ac910e8c99af43fd431da02618175bf2 | e0b25a0a4fa70ee3e0ce5f96cc7bf35eeba8b15c | refs/heads/master | 2021-08-29T03:09:05.366315 | 2021-08-19T03:36:40 | 2021-08-19T03:36:40 | 117,851,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | import csv
fo= open('first.csv',"r")
reader = csv.reader(fo, delimiter=':')
print(list(reader))
#list of list | [
"guruprasad.sv@gmail.com"
] | guruprasad.sv@gmail.com |
47dc6990e375d8681d361bb1f19aad8d7649a3a9 | aa6cd5374a115ec5c0aacd2704e161daf0bb941b | /pynqcopter/ip/bmeDriver/__init__.py | a60b489ac292378e03cd778595f285064c65d6e0 | [
"BSD-3-Clause"
] | permissive | yummy0929/pynq-copter | c422eff93b3c72206396e9926f04d87ef447c040 | 634e4c41a3ed6ecff84fbef6a04f107cf4fa94d6 | refs/heads/master | 2023-03-15T15:52:16.409089 | 2019-01-13T23:48:45 | 2019-01-13T23:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | ###############################################################################
# Copyright (c) 2018, The Regents of the University of California All
# rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:... | [
"noreply@github.com"
] | yummy0929.noreply@github.com |
91e4afe9a69b64b1252d3f879b3ec018d529bbad | 5dd190725aaaeb7287d935b3c99c20480b208816 | /object_detection/utils/np_mask_ops_test.py | a0ee46eff01f165f5ae94346b8a1b7fe2636149c | [
"MIT"
] | permissive | DemonDamon/mask-detection-based-on-tf2odapi | 32d947164fb54395b9e45368c0d4bcf3a6ea1c28 | 192ae544169c1230c21141c033800aa1bd94e9b6 | refs/heads/main | 2023-05-13T05:05:44.534885 | 2021-06-08T05:56:09 | 2021-06-08T05:56:09 | 369,463,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"noreply@github.com"
] | DemonDamon.noreply@github.com |
067353e1f75365baf3c94cb3093b7b8bce12509f | 8a6bb67a4d6d66c166ccd98058d9a8dcf165935e | /Homework/HW.py | 5dcd38ff7bb36a1f095b4a344d2ad1521ccc8b3b | [] | no_license | tandiawanedgar/Edgar-2101699666 | a459b01a40284541956147153800e9d69b6daacd | b6cca11a5d0312d6152158730d5ea3575794785c | refs/heads/master | 2021-06-30T09:22:13.978410 | 2017-09-19T14:19:36 | 2017-09-19T14:19:36 | 104,050,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | for x in range (2000,3200):
if x %7 == 0 and x %5 != 0:
print(x,end=',')
| [
"tandiawanedgar@yahoo.com"
] | tandiawanedgar@yahoo.com |
3a559961d460a100177dfb05a88dd44d35beacac | 17993dcca87d490bc9841437309f309a5592ab38 | /Codes/support_vector_machine/lib/svm_smo.py | 0e73fa2184ef4d2fcb86116b01efa95cec3c0255 | [] | no_license | dreamlikexin/machine_learning | bc86ea15ef8552ad1be78a5bc65fb74a2cdb274e | 850e87025270847210b6ad188d2da181983a72c7 | refs/heads/master | 2022-01-16T09:51:20.538340 | 2019-06-19T16:27:26 | 2019-06-19T16:27:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | import numpy as np
class SVM:
def get_H(self, Lambda, i, j, y):
if y[i]==y[j]:
return Lambda[i] + Lambda[j]
else:
return float("inf")
def get_L(self, Lambda, i, j, y):
if y[i]==y[j]:
return 0.0
else:
return max(0, Lambda[j] - ... | [
"wanglei@wanglei-mbp.local"
] | wanglei@wanglei-mbp.local |
d63b055e6a1a70097d0d5ee18f0a9f4d240ca48e | 6764b95ca9c3a77e0ed52304f099d0f67cfa8307 | /monitoringTool/views.py | 188b2939c19d19dd529b3ed0eeb3b8b09c9ed277 | [] | no_license | muriox/Pods_Monitoring_Tool | 971fc33cd2cb90f46cc2d0329bb4892b6aee057a | 9e8ed037576c528a3a4fd3d04a72ecb15342ce72 | refs/heads/master | 2020-06-27T02:16:49.404821 | 2019-10-26T19:47:46 | 2019-10-26T19:47:46 | 199,816,961 | 0 | 0 | null | 2020-06-05T22:09:31 | 2019-07-31T08:47:52 | JavaScript | UTF-8 | Python | false | false | 84,422 | py | from django.shortcuts import render
from django.db.models import Q
import datetime
from django.http import HttpResponse
from .models import Test, EmployeesProfile, StaffLogin, Countries, Cities, Areas, Devices, DevicesConfiguration, \
ClusterTypes, ClustersSetup, ClustersNetworkConfiguration, ContentTypes, Contents... | [
"murio_x@yahoo.com"
] | murio_x@yahoo.com |
ed4d5f5546453934b727cc45c8962030c05640cd | eb4d89817ebaa490d4cfd113490dfc0e607365f8 | /assignment_1/q3.py | ba387c989f2d19980707af10bf112e6f156c999d | [] | no_license | Mandeep3838/Statistical-Pattern | 52fec7db51d422ea3f91b8377cc91d98c8e375f6 | a8935540eea9130bb5ecd368ed92a37152498c84 | refs/heads/master | 2023-02-23T07:22:55.994504 | 2021-01-18T10:38:45 | 2021-01-18T10:38:45 | 330,629,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,088 | py | import numpy
import matplotlib.pyplot as plt
import scipy.stats as stats
from scipy.integrate import quad
import math
'''
Normal Distribution Function
'''
def pdf_fun(feet, mu, sig):
return (1/(sig*numpy.sqrt(2*numpy.pi)))*numpy.exp((-1/2)*((feet-mu)/sig)**2)
'''
Using Bayesian Method find point of spli... | [
"9814723517b@gmail.com"
] | 9814723517b@gmail.com |
5fb016d5b03d155449905d8372106645e993f24d | c4bd2b67b14780cf11b643f228d1e05ec48fd3f9 | /portfolio/views.py | bcfd6fd0f3fd07124021946d716c0f6926f32aae | [] | no_license | abatistadeoliveira/efsalex | 0a2e3d2f3c6903575d74fd92c063a3eb2455aaaa | 142725dbeebc3218dbdbed4cb3f49b6a4bb4873f | refs/heads/master | 2023-03-30T05:20:15.756931 | 2021-03-31T01:03:03 | 2021-03-31T01:03:03 | 339,247,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,757 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from .models import *
from .forms import *
from django.shortcuts import render, get_object_or_404
from django.shortcuts import redirect
from django.db.models import Sum
from rest_framework.views import APIView
from rest_framew... | [
"abatistadeoliveira@unomaha.edu"
] | abatistadeoliveira@unomaha.edu |
5dc3bef4afd928a08151a42b378ae0cc9051a420 | a8062308fb3bf6c8952257504a50c3e97d801294 | /problems/N539_Minimum_Time_Difference.py | 606f46d1a86602b05472d086e54f47d8e7fe6dbb | [] | no_license | wan-catherine/Leetcode | 650d697a873ad23c0b64d08ad525bf9fcdb62b1b | 238995bd23c8a6c40c6035890e94baa2473d4bbc | refs/heads/master | 2023-09-01T00:56:27.677230 | 2023-08-31T00:49:31 | 2023-08-31T00:49:31 | 143,770,000 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | class Solution(object):
def findMinDifference(self, timePoints):
"""
:type timePoints: List[str]
:rtype: int
"""
if not timePoints:
return
times = []
for point in timePoints:
times.append(int(point[:2])*60 + int(point[3:]))
time... | [
"rarry2012@gmail.com"
] | rarry2012@gmail.com |
1faa096e7a24919a35a42e5ad3d78eaf5f63842a | 959c361c1ff09c7638b969371d3ceb43d3846188 | /Day4/Speech/talktoROS.py | 29f4ac30b9b71c3f70d4c5836be12105ceab1cd8 | [] | no_license | RobotCitizens/ros-workshop | 0ccf56b4c4e50835842708df745971a0184d444d | 3e0320e4d740bef4fcbbec392204322005bcf65b | refs/heads/master | 2023-06-26T04:36:58.903471 | 2020-08-21T00:30:26 | 2020-08-21T00:30:26 | 284,623,912 | 6 | 4 | null | 2022-02-05T08:06:54 | 2020-08-03T06:41:49 | Python | UTF-8 | Python | false | false | 2,515 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
import speech_recognition as sr
from playsound import playsound
import rospy
from std_msgs.msg import String
# Record Audio
r = sr.Recognizer()
m = sr.Microphone()
pub = rospy.Publisher('TalktoROS', String, queue_si... | [
"vasutorn.s@ku.th"
] | vasutorn.s@ku.th |
4f1b2919c80f653aa68187546666dfbbeb759cfa | 2aa728e3de9916673995a2a5df3c6ec2a802ea70 | /Twitter/checkTime.py | eb011a43c85bbf061a8f075ac92edc2b98483880 | [] | no_license | jains8844/Tweezy | fdfe1d2d5e76aff6b0d4846162cf89c346089ac6 | 143f4f7f7b44ba31feee66d6a3b6dec448acfb80 | refs/heads/master | 2020-04-11T00:07:13.648978 | 2018-12-08T08:14:44 | 2018-12-08T08:14:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import re, math
from collections import Counter
import urllib, sys, bs4
from pyshorteners import Shortener
try:
from .url import fetch_url
except:
from url import fetch_url
def findTimeDiff(dataset,pos1,pos2):
t1 = str(dataset[pos1])
t2 = str(d... | [
"iit2016106@iiita.ac.in"
] | iit2016106@iiita.ac.in |
4f5051b736e5d738c659f61b16ec0fcb360ef749 | 55b3b942183b50565ea5f557a8de6a5fc9c09741 | /inactive/discord_bots/moosterybot/character_classes.py | bd46f81f7d2edb926c01f5c5c4a6e72eb0633cad | [] | no_license | weakunix/python_git | e29b3fdaed58f1951718cc412db0007a4183dad9 | a2bfa0365d66e607a952f1b86b734cea0fba020f | refs/heads/master | 2023-09-01T07:13:45.134448 | 2023-08-21T18:03:47 | 2023-08-21T18:03:47 | 190,823,760 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,456 | py | import json
import main
import actual_game
import random
import discord
import asyncio
class Game:
_classInstances = []
def __init__(self, id, containerFilledWithKids):
self.id = str(id)
self.date = 1
with open("games.json", 'r') as brr:
ppl = json.load(brr)
self.... | [
""
] | |
e831296b955c4901d82f0f076e71adc6e4910c97 | 43dec81f8466acb925a9c4830fe274de9cd1f51e | /backend/home/migrations/0004_auto_20201124_1916.py | 31248f325cd782e66c1f5f5fd515ded3f3aaa5f0 | [] | no_license | crowdbotics-apps/lizz-11-10-mob2-22484 | 6cd2af76c92fb2f2c9047b70017b9e0c5adfbcdb | 61ab9254234534b8384ec2b64451cf5ba7d587de | refs/heads/master | 2023-02-03T02:07:07.406375 | 2020-12-22T18:53:04 | 2020-12-22T18:53:04 | 311,748,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # Generated by Django 2.2.17 on 2020-11-24 19:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0003_homepage_hello'),
]
operations = [
migrations.RemoveField(
model_name='homepage',
name='body',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5634ebaa358971f4de28704f86ff95ab91d76915 | 22b93005b05aa4cbfa6287c42e07244b9bf83be9 | /mlflow/ml_package_versions.py | b5be01dffc43abf48dbe7e9ab8fc1f6dee71ebf8 | [
"Apache-2.0"
] | permissive | dbczumar/mlflow | 63ede1f21966def17ded0da9c8e92a207b34b90d | e293a73b510c924cbca50b6337b6d6f9fd9f8f1b | refs/heads/master | 2023-08-31T23:40:55.475707 | 2023-07-15T04:22:18 | 2023-07-15T04:22:18 | 138,797,518 | 1 | 3 | Apache-2.0 | 2023-08-23T23:01:08 | 2018-06-26T21:51:19 | Python | UTF-8 | Python | false | false | 5,987 | py | # This file was auto-generated by update_ml_package_versions.py.
# Please do not edit it manually.
_ML_PACKAGE_VERSIONS = {
"sklearn": {
"package_info": {
"pip_release": "scikit-learn"
},
"models": {
"minimum": "0.22.1",
"maximum": "1.3.0"
},
... | [
"noreply@github.com"
] | dbczumar.noreply@github.com |
5dcf8865003230ebeac474dee3ac8b11da49ca2e | aecd5668508148abe68301c901fe5e6cfe57c92d | /gigsyncevents/web/urls.py | 21ba3db3ba40bfe59f7d39fb68e1825e2ea3738c | [] | no_license | ttanay/GigSyncEvents | 865ea5b79fc668264ae75ee79e0769f8df72a344 | c4b21d174241bbaac0d50297081c81348e5a2f0d | refs/heads/master | 2022-12-14T10:00:10.573187 | 2019-02-07T15:11:40 | 2019-02-07T15:11:40 | 127,155,635 | 2 | 0 | null | 2022-12-08T00:51:03 | 2018-03-28T14:48:51 | CSS | UTF-8 | Python | false | false | 1,054 | py | from django.conf.urls import url
from . import views
app_name = 'web'
urlpatterns = [
url(r'^populate/$', views.populate, name='populate'),
url(r'^add_event/(?P<fb_id>[0-9]+)/$', views.add_event, name='add_event'),
url(r'^$', views.home, name='home'),
url(r'^filter', views.filter, name='filter'),
... | [
"ttanay100@gmail.com"
] | ttanay100@gmail.com |
a9ddbf2a6fc03616e4b538fba7b3f3d747f01215 | 85fe014253fd6852c4b72d633c132d2d8406e70f | /Image/simple_function.py | d34c050ea9e67079477f7ed98efca9b74b6857e9 | [] | no_license | mtsj279github/Hornet | e4e1809ca198852fef7800bff5f6c284e29bb678 | a31bcbceceb499f4a70e7a48fb890d73ecc6887c | refs/heads/main | 2023-03-02T04:43:03.816576 | 2021-02-08T17:25:46 | 2021-02-08T17:25:46 | 337,153,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | import time
import torch
import torch.nn as nn
import torch.nn.functional as F
class Mean(nn.Module):
def __init__(self):
super(Mean, self).__init__()
def forward(self, x):
return x - x.mean()
class Flattenlayer(nn.Module):
def __init__(self):
super(Flattenlayer,... | [
"noreply@github.com"
] | mtsj279github.noreply@github.com |
65f54d01c9ea1fbb547071a01e1e7a3c0eb52797 | da579bb55743314e135c6c876a39cb866c284f77 | /projectdb/config.py | 45b3474dc95f01754332ba84f544511c093d7232 | [] | no_license | ITPNYU/projectdb | 0b4e2f5a152c703ed623720ed4fa31e1416bb15a | 9d1b2522afd0b782a7e098ea1107880a9dca7bd7 | refs/heads/master | 2016-08-02T22:40:27.385666 | 2014-05-14T02:15:50 | 2014-05-14T02:15:50 | 19,279,944 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from ConfigParser import SafeConfigParser
from os.path import abspath, join, normpath
config = SafeConfigParser()
config_path = normpath(join(abspath(__file__), '..', '..', 'projectdb.cfg'))
config.read(config_path)
| [
"karl@ghostghost.net"
] | karl@ghostghost.net |
cfafb9217db78151b5a5e9cbfc97c4607fa65912 | 3f5e65f59d5325d90fe4f59876f57f313aa36226 | /items/pipe_case.py | 549f900f3e0fe357a873e88b962a99ad10b5ebf8 | [] | no_license | enygma/text-etp-s04e03 | 99b3bbbc8dd9f016a59cecf19c43301b65c78c5c | 3033580dfc5f918c4866aa2adc2b167cd4049f34 | refs/heads/master | 2022-03-08T11:39:37.258558 | 2022-03-02T22:08:37 | 2022-03-02T22:08:37 | 173,448,339 | 0 | 0 | null | 2022-03-02T22:08:37 | 2019-03-02T12:59:44 | Python | UTF-8 | Python | false | false | 1,144 | py | from detail_item import *
from inventory import inv
from items.pipe import Pipe
import formatting
import room_list
class PipeCase(Detail_Item):
def __init__(self, name, *aliases):
Detail_Item.__init__(self, name, *aliases)
self.takeable = True
self.locked = True
self.descr... | [
"enygma@phpdeveloper.org"
] | enygma@phpdeveloper.org |
6bbef2f719c183b0899b7d6797cb8d76084219e7 | 035aa984d2dcc08789b5e0db8f3c836cab6bcfa5 | /Cell.py | 5bab40681fbc5ed55794a9a2451bd06eec5466d4 | [] | no_license | eduardolagobatista/academic-research-project | e73ad04bbea822dfd2016dbc052f3dd843764850 | 6fa2680c6fc99c4ecf7f3548f3a35500e465eb20 | refs/heads/master | 2020-09-30T02:50:26.874904 | 2020-01-19T19:44:49 | 2020-01-19T19:44:49 | 227,183,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,795 | py | from abaqus import *
from abaqusConstants import *
from caeModules import *
from driverUtils import executeOnCaeStartup
def cell(tipo, fraction, matrix, meshsize):
if tipo == 'CCC':
sime = float(meshsize)
sizemesh = 7.2e-05/(sime)
if fraction == '15':
a = 955.8... | [
"noreply@github.com"
] | eduardolagobatista.noreply@github.com |
dda541645b65bae338d51ba3d7edacf8282aa3b3 | 2676a277a6ea495efb1c087657d258393326994a | /music_controller_project/urls.py | 59eab4c839292ee2203a7b198906a99c50baa271 | [] | no_license | Equinox-13/music-controller | acf9e892a3978644bfc3b08f55af3f8a028a3a0e | 3e62702933785cb45b747d5c988e169fdf308245 | refs/heads/main | 2023-02-16T11:19:30.756252 | 2021-01-10T16:17:56 | 2021-01-10T16:17:56 | 326,447,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """music_controller_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='h... | [
"quaid.johar33@gmail.com"
] | quaid.johar33@gmail.com |
ea4ca9c71465c771686249e18b6c43ec8effd325 | 38b5f1bde02310b674a96a5e535af9dda4d56e95 | /src/parser/floodgate/__init__.py | 56990dedb4a35356cb72bcbe1899f9cd44b89413 | [] | no_license | aratakokubun/deeMahjong | 84ffea90056e26d4a97da77c30b0367e9ed8ecaf | dbf9f7007b0523fb81a64475c414ee07d5b84ef6 | refs/heads/master | 2021-01-21T18:38:28.386161 | 2017-05-29T16:22:21 | 2017-05-29T16:22:21 | 92,063,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | """Floodgate web site parser module."""
from src.parser.floodgate import (FloodgateParseExceptions, FloodgateParserUtils,
FloodgateParser, FloodgateFullParser,
FloodgateRecentParser)
| [
"kkbnart@cyber.t.u-tokyo.ac.jp"
] | kkbnart@cyber.t.u-tokyo.ac.jp |
bf29aac5c207544133fb68b24af753d74d7b9796 | a3746020cf091f433beb41bde1b62818b4de569b | /new_rule/ticket-rules/oracle/SQL_TO_CHANGE_TYPE.py | 1109b2501f3b147a116f67fc69a8723297cb7134 | [] | no_license | kk71/sqlaudit | 59bab5765a67f56f1dd2f3103812051c5acbbc49 | 747aaa02573a9c2b46a9e14415d27c0ab8e6158c | refs/heads/master | 2023-02-04T18:38:46.125746 | 2020-06-05T09:49:46 | 2020-06-05T09:49:46 | 323,559,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import re
def code(rule, entries, **kwargs):
sql_plan_qs = kwargs["sql_plan_qs"]
plans = sql_plan_qs.filter(
filter_predicates=re.compile(r"(SYS_OP|TO_NUMBER|INTERNAL_FUNCTION)", re.I)
)
for x in plans:
return -rule.weight, [
x.statement_id,
x.plan_id,
... | [
"kai.fang@kirintech.cn"
] | kai.fang@kirintech.cn |
36ba72b8e2dc8428ec0a35ebe93544c8fc8b6db5 | 4cc851fb713176e197679492fb1d0f420ea018fa | /Valid_Perfect_Square.py | a73e20fe0981aa0186a21b69c2e317fad8882b1b | [] | no_license | supriya1511/May-LeetCoding-Challenge | 4c5b1d6a60941aeb599bcc14039940f13ad0f1a8 | 309a21394e78cb90de7f7c6a4e7c81146fcfb47a | refs/heads/master | 2022-07-01T01:38:24.311590 | 2020-05-09T11:21:40 | 2020-05-09T11:21:40 | 261,738,303 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | '''
Given a positive integer num, write a function which returns True if num is a perfect square else False.
Note: Do not use any built-in library function such as sqrt.
Example 1:
Input: 16
Output: true
Example 2:
Input: 14
Output: false
'''
import math
class Solution:
def isPerfectSquare(self, n: int) -> boo... | [
"noreply@github.com"
] | supriya1511.noreply@github.com |
d039f7c165307c3cab9557169d0d0820f5754329 | cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5 | /swea/D3/10570. 제곱 팰린드롬 수.py | 9345f0450146e6efeba20eb3d88dd2e9b24a99b9 | [] | no_license | jbsam2/algo_problem | 141c17003e88a69afdeea93a723e7f27c4626fdc | 18f2cab5a9af2dec57b7fd6f8218badd7de822e4 | refs/heads/master | 2023-05-18T10:03:00.408300 | 2021-06-02T10:36:50 | 2021-06-02T10:36:50 | 282,104,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | def c(num):return 1 if num==int(num**(0.5))**2 else 0
for t in range(int(input())):
a,b=map(int,input().split());ans=0
for i in range(a,b+1):
p=int(i**(0.5))
if c(i) and str(i)==str(i)[::-1] and str(p)==str(p)[::-1]:ans+=1
print(f'#{t+1}',ans) | [
"kbsam2@gmail.com"
] | kbsam2@gmail.com |
1318b066a0be3871e6ea6ddbc2fb81e2242f38cc | c21c7dbdb05f6781ceec79870d2a662f2e9b01bd | /python/exercises/weave/main.py | 521f19d8c35ee586d15bc36a71ed333fe2a1ba89 | [] | no_license | SheaMeyers/udemy-algorithms-datastructures-course | 5ab8581d3a4857f1e5de26d0019e8ad7ea34a2c9 | d508ad6a51716232a627535760c5088696ebb4b3 | refs/heads/master | 2022-01-13T22:51:19.817789 | 2022-01-12T17:37:45 | 2022-01-12T17:37:45 | 236,154,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | class Queue:
def __init__(self):
self.queue = []
def add(self, item):
self.queue.append(item)
def remove(self):
if not self.queue:
return None
return self.queue.pop(0)
def peek(self):
if not self.queue:
return None
retu... | [
"shea.meyers@gmail.com"
] | shea.meyers@gmail.com |
a0adb96467c96dad6dd4c36cc41e36636bc0d50b | b2625b1a1ef4a3a255ae88b6d77c425727187eeb | /.dev_scripts/github/update_copyright.py | 74320198598ed850edad4f2404605c54f1b4e17f | [
"Apache-2.0"
] | permissive | wojiazaiyugang/mmpose | acd4083d142c5c4c2dd87e6be94a5891a42d2797 | 8947b39294b037e8272c6cf2f53ae4aa7d22193b | refs/heads/master | 2023-09-01T23:45:43.857657 | 2021-11-23T03:03:02 | 2021-11-23T03:03:02 | 356,105,054 | 0 | 0 | Apache-2.0 | 2021-09-16T06:36:44 | 2021-04-09T02:08:50 | Python | UTF-8 | Python | false | false | 2,928 | py | #!/usr/bin/env python
# Copyright (c) OpenMMLab. All rights reserved.
import argparse
import os
import os.path as osp
import re
import sys
HEADER = 'Copyright (c) OpenMMLab. All rights reserved.\n'
HEADER_KEYWORDS = {'Copyright', 'License'}
def contains_header(lines, comment_symbol, max_header_lines):
for line ... | [
"noreply@github.com"
] | wojiazaiyugang.noreply@github.com |
17059cb95953bb9c36e27fd72be7ff935fa8af11 | 8d281724890c0e487e1b38c77fe6acd066e650d3 | /evaluate_server.py | 8d047b338e852f6093f4f8591852a959e92fdd8b | [] | no_license | devopsmi/facial_recognition | 1801e3d12cd14dc8c1dbd05aec38f522678678d0 | 10316d82abff441d3b84e48bbdd1f81dfea9950d | refs/heads/master | 2020-03-18T18:36:17.326113 | 2018-05-17T01:44:19 | 2018-05-17T01:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | from http.server import BaseHTTPRequestHandler, HTTPServer
# HTTPRequestHandler class
class TestHTTPServer(BaseHTTPRequestHandler):
# GET
def do_GET(self):
# Send response status code
self.send_response(200)
# Send headers
self.send_header('Content-type', 'text/html')
... | [
"shreyas.niradi@gmail.com"
] | shreyas.niradi@gmail.com |
ee412e07be6268a16d56184e2efbf2b79ef71dae | 6747394d5ab9eb4c3c6ce7552320562f628bd868 | /task1.py | 6d4898ad5b28770aa2a9ad67c3c5f3242eeb3412 | [] | no_license | nastiakh1301/hw7 | 958efdbae3509e38e0953338b8eeab3b4d649c37 | 29c17dcf0e5e734ab561fa248a05dcd90145b8bd | refs/heads/main | 2023-03-08T21:57:17.534261 | 2021-02-27T22:26:41 | 2021-02-27T22:26:41 | 341,272,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | """
Написать функцию, которая принимает список строк,
и возвращает другой список, содержащий все самые длинные строки.
Например:
[in] ['a', 'asd', 'bd', 'q', 'dsq']
[out] ['asd', 'dsq']
"""
import re
def main():
list_in = input("Enter string: ")
words = re.findall(r"\w+", list_in)
longe... | [
"nastia.1092.ch@gmail.com"
] | nastia.1092.ch@gmail.com |
c8b154dab2281801b43e48a85feba5d9d2e98787 | b082d1f780cba54b2e5f1055b46e76d4b5ba0d0d | /theano_mnist_logistic_sgd.py | be16483a3424163b58d50b55ba7c75aed1a2cc3b | [
"MIT"
] | permissive | sjqgithub/GetHandsDirty | 3b361cb00687e43bc6d9bced5a47d762ebddddba | 0e3f52a3c48d2bfe46ccdb9307ab1fb6d6d2f21a | refs/heads/master | 2020-03-07T06:19:18.757832 | 2018-04-25T16:58:32 | 2018-04-25T16:58:32 | 127,318,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,174 | py | """
This tutorial introduces logistic regression using Theano and stochastic
gradient descent.
Logistic regression is a probabilistic, linear classifier. It is parametrized
by a weight matrix :math:`W` and a bias vector :math:`b`. Classification is
done by projecting data points onto a set of hyperplanes, the distance... | [
"835973050@qq.com"
] | 835973050@qq.com |
2df9bb0f75e0aa888664ef8141109604c4fb80ce | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /DQMServices/Components/python/test/test_good_online_run_cfg.py | b7f1fc42e7ebfd7330bb6887869aa39da91b28bf | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | Python | false | false | 470 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TestDQMFileSaver")
process.load("DQMServices.Components.test.test_good_online_basic_cfi")
process.load("DQMServices.Components.test.MessageLogger_cfi")
process.load("DQMServices.Components.DQMEnvironment_cfi")
process.load("DQMServices.Core.DQM_cfg")
... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
99384abafe67b59e636e78148031a0421cb853e0 | 86aec9575bd85450a6a9c6268dd171a77c5356ca | /AlienInvasion/game_functions.py | a225c61778c2ee6af2ac83cf6ee84a380ed331a7 | [] | no_license | hyl-code/Python | 19bb6d0e58285a1eaacb835fc0d9b6c4d57f3945 | 7997b24011d9d7c056fc1d1445bbaa371c27b533 | refs/heads/main | 2023-04-21T19:23:33.930152 | 2021-05-09T06:08:11 | 2021-05-09T06:08:11 | 365,680,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,020 | py | import sys
from time import sleep
import pygame
from bullet import Bullet
from alien import Alien
def check_keydown_events(event, ai_settings, screen, ship, bullets):
"""响应按键"""
if event.key == pygame.K_RIGHT:
ship.moving_right = True
elif event.key == pygame.K_LEFT:
ship.moving_left = Tru... | [
"2839797603@qq.com"
] | 2839797603@qq.com |
615af758d32d2c1268ec81eea7298e8b8de7ef55 | 576cc83449e10fd3f98281970c46016ea7a5aea2 | /demo01/demo04-resize.py | 7fe6931b6b3219fd8402aa1089ff29d446980c6a | [] | no_license | HotView/PycharmProjects | 215ab9edd341e3293daebcf86d97537f8cd28d75 | 61393fe5ba781a8c1216a5cbe7e0d06149a10190 | refs/heads/master | 2020-06-02T07:41:53.608742 | 2019-11-13T08:31:57 | 2019-11-13T08:31:57 | 191,085,178 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from matplotlib import pyplot as plt
import numpy as np
import cv2
img = cv2.imread("book01-.jpg")
img_cut = img[1000:,:]
img_resize = cv2.resize(img_cut,(600,600),interpolation=cv2.INTER_CUBIC)
#cv2.imwrite("book01resize-.jpg",img_resize)
cv2.imshow("origin",img)
cv2.imshow("reszie",img_resize)
cv2.waitKey()
cv2.destr... | [
"864773190@qq.com"
] | 864773190@qq.com |
e2e43bc43591ab3a69f36a5bce40f473957e54cc | e4569342fb0383b5089a3b0ca2a4d2054f95a835 | /scientific_expedition/common-words.py | 73645874afca977a3dc9ca1c40c3e11fed252dea | [] | no_license | BEricDavis/checkio | 52b1dd9d9bfcc8bbab0c09ee6751baeee3184682 | 88feaf53ddfb465ef6a9603f79c18e83ef59ade4 | refs/heads/master | 2020-04-10T21:06:28.039515 | 2016-11-12T00:35:57 | 2016-11-12T00:35:57 | 68,023,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | # Let's continue examining words. You are given two string with words separated by commas. Try to find what is common between these strings. The words are not repeated in the same string.
# Your function should find all of the words that appear in both strings. The result must be represented as a string of words separa... | [
"feralmonkey@gmail.com"
] | feralmonkey@gmail.com |
614ce4ae7a8e1bdca93744679296e4b7228793ef | cae6bd1bd20086d0e6605036b2671f74f812c85c | /saliency_map_pointnet.py | 6cd959c1452d363eca4eaa8428a0138c9ddd7122 | [
"MIT"
] | permissive | LIDONGgittt/saliency-map-pointnet | d1c5a70677335c7be5665a4d2e5170e244be6a65 | 8d1b4b6d89873b04c60475f1ea60a16d7940501b | refs/heads/master | 2023-05-12T20:10:46.997745 | 2023-04-25T22:13:41 | 2023-04-25T22:13:41 | 208,053,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,863 | py | import tensorflow as tf
import numpy as np
import argparse
import socket
import importlib
import time
import os
import scipy.misc
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(BASE_DIR)
sys.path.append(os.path.join(BASE_DIR, 'models'))
sys.path.append(os.path.join(BASE_DIR, 'utils'))
... | [
"noreply@github.com"
] | LIDONGgittt.noreply@github.com |
2529f7135379a1999beb057ea49aeddf6e6e70ae | 644b153f8020cc99c99e8347efb6b475124e9dd9 | /TravelBook/urls.py | ee2c2f6c282b51c3b804a9c7f3eb32466db5f239 | [] | no_license | zaher-abb/Travell20-Booking-Webseit-with-Django | a5ace430ff1f316e5b284b6f3b93b5472e4db54d | 14ed1a018cdd8a7e32adad733ca589534a43b604 | refs/heads/master | 2023-01-15T18:39:34.118390 | 2020-11-25T11:00:07 | 2020-11-25T11:00:07 | 265,588,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | from django.urls import path
from . import views
app_name = 'Booking'
urlpatterns = [
path('', views.index,name='index'),
path('contect', views.contactus,name='contect'),
path('search',views.fetchdata,name='search'),
] | [
"52354101+zaher-abb@users.noreply.github.com"
] | 52354101+zaher-abb@users.noreply.github.com |
d26d7be46fc2085d459c9f277a3f48b981d6c434 | 25728ed127a43b8a7dea7ddccfc8231ef0aea139 | /my_blog_/article/urls.py | dee500ec074aef0f4a574f1d4882a9a418bc1b05 | [] | no_license | bestarMing/django_example | 77f4b75e78327f6ef616ae1500c820760df99681 | 2d267aedecd7085ba40af03f3de4ef0d0c708037 | refs/heads/master | 2021-05-20T01:09:38.627908 | 2020-04-04T03:47:51 | 2020-04-04T03:47:51 | 252,122,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # 引入path
from django.urls import path
from . import views
# 正在部署的应用的名称
app_name = 'article'
urlpatterns = [
path('article-list/', views.article_list, name='article_list'),
# 文章详情
path('article-detail/<int:id>/', views.article_detail, name='article_detail'),
# 写文章
path('article-create/', views.arti... | [
"2605645264@qq.com"
] | 2605645264@qq.com |
57fb16f675c90793cb94976541599e42a70eb327 | 267c1baa46fb9b65992012634a6ce9b6b0a6396a | /løsningsforslag/S2/S2_16V/figs/oppgave2_c_del2.py | 237dd2e1baf624ceb8de106f9df770f755441e85 | [
"MIT"
] | permissive | matematikk/vgs_eksamener | 24510de9fd297689fd0914835d29a5db65704af9 | b2d9b70804bf811e0f1e7a63e38cd6c7430418f1 | refs/heads/master | 2021-06-14T07:04:36.569350 | 2019-05-23T19:41:58 | 2019-05-23T19:41:58 | 125,091,197 | 5 | 10 | MIT | 2019-05-23T19:41:59 | 2018-03-13T17:42:11 | Jupyter Notebook | UTF-8 | Python | false | false | 1,056 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 6 13:16:53 2017
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
matplotlib.rcParams['text.usetex'] = True
matplotlib.rcParams['text.latex.unicode'] = True
years = [2, 4, 6, 8, 10, 12]
data = [197, 1888, 8950, 21530, 31440, 38350]
da... | [
"tommy.odland@gmail.com"
] | tommy.odland@gmail.com |
dc55733617c4e5bc4d11e56ea9624c383e2807c2 | d713207e0570b54c86d983bbb11ab7873e66fa27 | /ZERO/run.py | d4b14e69025c35aeb8ed5189b4de2a3533d432fd | [] | no_license | jiuguai/qhj | 5a2508f47872c27160c047e0653d4842081412a3 | 71d2f9467cfc74e48e74e6981e1d4d6a51e8fdf1 | refs/heads/master | 2020-09-11T01:56:04.208308 | 2020-04-22T16:44:51 | 2020-04-22T16:44:51 | 221,592,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | import sys
import platform
if platform.node() == "zero_PC":
sys.path.append(r"F:\QHJ\qhj\ZERO")
else:
sys.path.append(r"D:\往期\QHJ\ZERO")
import warnings
warnings.filterwarnings('ignore')
# import app
import importlib
select_map = {
'describe': '奇货居事务处理',
'func': None,
1: {
'describe': '[%... | [
"jijiyezero@163.com"
] | jijiyezero@163.com |
de5c19238be861c5823a384f3a86168a55063130 | b295128ed1c946a82d594c768a607eb6f5656a97 | /AV_BlackFridayHack/prepData.py | aa2009947dec8b231c14c2590e4db0c8de881926 | [] | no_license | letthedataconfess/ML | c1a5d0ea6f791d63c484c51922d58e3e15184841 | 0228963c60fc67ea18fba916a774ba3c7a10f092 | refs/heads/main | 2023-04-23T12:02:36.227187 | 2021-05-02T06:00:33 | 2021-05-02T06:00:33 | 363,578,016 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,606 | py | import sys
import pandas as pd
import numpy as np
from sklearn.cross_validation import KFold
from sklearn import ensemble
from sklearn import metrics
from sklearn.preprocessing import LabelEncoder
sys.path.append("/home/sudalai/Softwares/XGB_pointfour/xgboost-master/wrapper/")
import xgboost as xgb
gender_dict = {'F':... | [
"noreply@github.com"
] | letthedataconfess.noreply@github.com |
9137f27ec4c8f050a41a19a14e938c78fb1cd0e9 | 3dd43ff0dab514a39f611487ab421256b3b5b13b | /scripts/client/gui/Scaleform/daapi/view/lobby/hangar/carousels/ranked/carousel_data_provider.py | 048d8fce65aedbf46febbd1c5c6f3b312913163c | [] | no_license | kusaku/wotscripts | 04ab289e3fec134e290355ecf81cf703af189f72 | a89c2f825d3c7dade7bc5163a6c04e7f5bab587d | refs/heads/master | 2023-08-20T00:17:36.852522 | 2018-02-26T14:53:44 | 2018-02-26T14:53:44 | 80,610,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/hangar/carousels/ranked/carousel_data_provider.py
from gui.Scaleform.daapi.view.lobby.hangar.carousels.basic.carousel_data_provider import HangarCarouselDataProvider
from gui.Scaleform.locale.RANKED_BATTLES import RANKED_BATTLES
from gui.shared.formatt... | [
"kirill.a@aggrostudios.com"
] | kirill.a@aggrostudios.com |
c1601820adbb4161f62a9aae0887e3f8a08e1626 | 6d8a338ed0ae052bb9335a506402a5ae5ca4d808 | /OmaxHelp.py | 965b6e90f203217fe6403d641171ed93959cfd02 | [] | no_license | jacob9706/OMAX_Sublime_Plugin | ee618a6899ce546d3b4461b6136bf90748af2c76 | bec6326bff2abc06e925c7db41c6a5205acdede1 | refs/heads/master | 2020-05-05T00:55:06.647568 | 2013-10-16T00:07:42 | 2013-10-16T00:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import sublime, sublime_plugin, re, os
# This is a TextCommand. It operates on the selected text (in this case) and looks up documentation.
class OmaxHelpCommand(sublime_plugin.TextCommand):
def run(self, edit):
view = self.view
# Get selected text and convert to lowercase
selection_region = view.sel()[0]
wo... | [
"jacob.o.ebey@gmail.com"
] | jacob.o.ebey@gmail.com |
c5f7f3a99a2f6436767faff364d076e4e0b239e7 | 2416fa60d44c96e933e698eeb35bbcc52f8ad0cc | /python/[E]26.Remove-Duplicates-from-Sorted-Array.py | 93dfed9d2a87cb0f844520a797b533a37dd1a060 | [] | no_license | AlbusPicus/leetcode-practice | c76515e5af91cf4a1f291c83d1b728a6c3e2a621 | 0050996d8c947c374f89b04e3ba5987793140791 | refs/heads/main | 2023-04-08T20:07:46.348240 | 2021-04-11T18:01:16 | 2021-04-11T18:01:16 | 318,795,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # Runtime: 80 ms, faster than 82.51% of Python3 online submissions for Remove Duplicates from Sorted Array.
# Memory Usage: 15.8 MB, less than 82.79% of Python3 online submissions for Remove Duplicates from Sorted Array.
class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
if not nums: 0
... | [
"noreply@github.com"
] | AlbusPicus.noreply@github.com |
2b5dca7db0f58ee69e6318f2c079d184c1943643 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/python2.7/UserList.py | 873357b193bd393a87bea69e9ef416b43aad7303 | [] | 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 | 68 | py | /home/action/.parts/packages/python2/2.7.6/lib/python2.7/UserList.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
6ec84121b18afcd8d9182c28abb5c236cb7119de | 249f7e8bf23bf7298b6d51b5abb3c053da3a19e1 | /Solutions/MinStack.py | c776d58839a2a3491b2fc39a5b86420bf0ac88d8 | [] | no_license | sherld/LeetCodeForPython | 0e82174ec68fbc96cac2dff61afa3ca0f9ae9b87 | be2bf7c78aaf2628419be4a6ff34817dac719a57 | refs/heads/master | 2020-03-23T00:33:58.431390 | 2019-06-26T16:28:19 | 2019-06-26T16:28:19 | 140,870,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | class MinStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.stack = []
self.min = 0
self.max = 0
def push(self, x):
"""
:type x: int
:rtype: void
"""
curMin = self.getMin()
if cur... | [
"sherld@163.com"
] | sherld@163.com |
76884be84b73cffc74cbf5157ec534df610216e9 | 6a5ce7d885db1baa5a9d43b26f0ae623a5ef0f01 | /azure-mgmt-web/azure/mgmt/web/models/web_site_management_client_enums.py | fcb642b79aa76c81394fb900d1b60c22ede03d1c | [
"Apache-2.0"
] | permissive | JammyBrand82/azure-sdk-for-python | 333af194ff9143ec77f49203a5a71f15c399f278 | c65e189cd41bd3464556b17bfcdee1303867996c | refs/heads/master | 2021-01-17T18:31:10.661151 | 2016-03-17T21:03:08 | 2016-03-17T21:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,118 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
1d3550d8edb492366aaa46dc4b67d248aca4bbae | c7c72c2fa169bfd47aaff9b111ea751019e39848 | /Pyton_Codes/Using Databases with Python/Teste_SQL_BDP.py | ac0b0175d61bb6f7f50e0ad35a9dd231fe2bbc57 | [
"MIT"
] | permissive | Bombjack88/Python-for-Everybody--PY4E- | 88bfdcf704d9d99902b893f73835928b0ef9754f | 0dee57e015ed0c773bdb11e841ed4b2b639b5eca | refs/heads/main | 2023-08-11T22:24:12.209353 | 2021-09-26T15:34:56 | 2021-09-26T15:34:56 | 384,496,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import pyodbc
import pyodbc
conn = pyodbc.connect('Driver={SQL Server};'
'Server=sipo-dba06\wrap1;'
'Database=DL_DDEMC;'
'Trusted_Connection=yes";')
cursor = conn.cursor()
cursor.execute('SELECT TOP 100 * FROM DL_DDEMC.CQ.ComparacaoCRCEMF_CRCDetalhe or... | [
"cash-flow@hotmail.com"
] | cash-flow@hotmail.com |
c2118a697fa638d428706d238ad08eea8edbdb58 | 92433c3ff647e7bb168a7514d01974471b3b186d | /blog/urls.py | dc11bd1a75470ae0619fec24030ac9d36fd90f2e | [] | no_license | abhi40308/code-stamper | c709b0e7a5c5963df1e6ab8bbeab382f1d6bc103 | 3c810f2609028fead05d37c5aba4780a3c508bea | refs/heads/master | 2021-09-24T01:41:53.887618 | 2018-10-01T09:33:06 | 2018-10-01T09:33:06 | 108,854,589 | 3 | 1 | null | 2018-10-01T09:33:07 | 2017-10-30T13:27:02 | JavaScript | UTF-8 | Python | false | false | 786 | py | from django.conf.urls import url
from . import views
# Import settings if not imported
from django.conf import settings
# Import static if not imported
from django.conf.urls.static import static
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^home$', views.home, name='home'),
url(r'^news$', vie... | [
"abhijeetsinghkhangarot@Abhijeets-MacBook-Air.local"
] | abhijeetsinghkhangarot@Abhijeets-MacBook-Air.local |
bdc12326541f19286f05a186e038b786ae9ec5ae | a20aef53a24f70acba96dccf4c234c372a2fd89a | /32th.py | 8225a6050261bee9624f6db75360ea0cefffc2bb | [] | no_license | myishh/python | da880b201983ea3bc51f7f4d03f8316c25e64e72 | 55fe58d04e3f1cb842432311a2aae245a9a84f17 | refs/heads/master | 2021-08-23T06:40:02.310841 | 2017-12-03T23:32:49 | 2017-12-03T23:32:49 | 109,615,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | def complain():
print('-'*30)
print('Life is short, You need Python!')
print('-'*30)
complain()
def myinfo():
print('-'*30)
print('Name: \t', 'Rose Dorsen')
print('Age :\t', '26')
print('Gender: \t', 'Male')
print('Addr: \t', '105 5th St, Lowell, MA')
print('-'*30)
myinfo()
| [
"myishh@qq.com"
] | myishh@qq.com |
38ad1a42f33af13f6acd267dc121146ebe720417 | 2d0a67977fb1f4e82ad8e386b338d3d84608692f | /bot/python/predictor_movement_target.py | 28ce52af5fb79fe454eeb269cb4e467263bc784c | [
"MIT"
] | permissive | HalfVoxel/sc2-voxelbot | 7c12077e8f6c8648817a728050e3281214b30ae1 | 11647cf6a6978b7d0f75b3c97a6b9179c9075408 | refs/heads/master | 2020-04-12T00:12:03.114852 | 2019-05-17T23:48:45 | 2019-05-17T23:48:45 | 162,192,324 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,970 | py | import os
import json
import shutil
import subprocess
import math
from common import count_parameters, load_all, PadSequence, training_loop, print_parameters, TensorBoardWrapper
import common
import numpy as np
import torch
import torch.nn as nn
from trainer_movement_target import MovementStepper
from trainer_rnn impor... | [
"aron.granberg@gmail.com"
] | aron.granberg@gmail.com |
b9bcf777f1ec9d994241c5981eb240d6b53388b9 | dabc3a52976633425991a4f8f55b0735070461c9 | /django_project/urls.py | c4892d000990bf7fa1f70e14d13823179f61999b | [] | no_license | nievadev/django-blog | a08418cd223f18bde083e42e9f25eedd7f013a8e | b9202d10f667b550f5c33f156dfbd27a9fbe5a9b | refs/heads/master | 2022-11-30T13:58:16.999056 | 2020-03-04T05:39:02 | 2020-03-04T05:39:02 | 244,799,049 | 0 | 0 | null | 2022-03-12T00:17:50 | 2020-03-04T03:31:56 | Python | UTF-8 | Python | false | false | 2,236 | py | """django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"martinjafactor@gmail.com"
] | martinjafactor@gmail.com |
1c81b2bd183a9a7791036d9e9598859e2390441c | 4264dee318c99acead4f9e4012469a9083215fe7 | /Week 6 - Python/dna/assignments.py | 3654cc3144c5b7571724440089a93a21bad6087c | [] | no_license | haileykr/CS50 | 269603a727d80d891539e4c31e7587eaeb08af36 | 2702f33645367b9376c6cf775b5377d5e889447b | refs/heads/main | 2023-05-04T01:46:59.482273 | 2021-05-21T01:28:49 | 2021-05-21T01:28:49 | 311,566,116 | 0 | 0 | null | 2021-05-21T01:30:38 | 2020-11-10T06:26:07 | null | UTF-8 | Python | false | false | 1,293 | py | import csv
from sys import exit
from sys import argv
def get_max_num_repetition(s, sub):
# calculate the maximum number of times a substring is repeated
# s: [ATATATTATATTT]
# ans: [302010201000] - starting at that index how many times does the substring repeat in s
# sub: AT
ans = [0]*len(s)
... | [
"41278804+haileykr@users.noreply.github.com"
] | 41278804+haileykr@users.noreply.github.com |
c3cf1eb15c5eb1f9af46fd2a29648c44e7ebd2b9 | 47fd05726a04a09bc7b6ec0043519bc3c1b82d89 | /blog/models.py | 52224bef9d7b0fa8a62d9fffcf9bd2205e84aeed | [] | no_license | KiWiChoco/my-first-blog | 2bda917136d281d7478bd6e749042025ba5a8ce9 | 44c9483201f9a905f6b28b85810f0908a48271f4 | refs/heads/master | 2021-07-16T23:30:15.974951 | 2017-10-24T07:32:49 | 2017-10-24T07:32:49 | 107,497,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=timezone.now)
publis... | [
"qmopla@naver.com"
] | qmopla@naver.com |
3dc4fcb72c535bd5635233808c4b20178c15fe20 | c2849586a8f376cf96fcbdc1c7e5bce6522398ca | /ch39/interfacetracer.py | 033591fd7329b9bc42e2527b180411b9735c1e96 | [] | no_license | freebz/Learning-Python | 0559d7691517b4acb0228d1cc76de3e93915fb27 | 7f577edb6249f4bbcac4f590908b385192dbf308 | refs/heads/master | 2020-09-23T01:48:24.009383 | 2019-12-02T12:26:40 | 2019-12-02T12:26:40 | 225,371,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | def Tracer(aClass): # @ 데코레이션할 때
class Wrapper:
def __init__(self, *args, **kargs): # 인스턴스 생성할 때
self.fetches = 0
self.wrapped = aClass(*args, **kargs) # 유효 범위 이름 사용
def __getattr__(self, attrname):
print('Trace: ' + at... | [
"freebz@hananet.net"
] | freebz@hananet.net |
fae3f02c3e6f93306f8cb17d12ebc3a8cf77305c | 7330013473ee9c7d17f58981faeb24f5db067a4a | /messaging/urls.py | 8b7fc214ed471cc38c7fc645105be4cadbce8d78 | [] | no_license | beb97/django-messaging | 41d6c1a9704a3a3b657589a365ca8efc014bd142 | 1210de2b858fc66deef2e8c1a3edee266f0961a4 | refs/heads/master | 2021-05-10T19:25:23.118880 | 2018-01-28T20:50:42 | 2018-01-28T20:51:37 | 118,152,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | from django.urls import path
from messaging.views import UserDetailView
from . import views
app_name = 'messaging'
urlpatterns = [
# messages/
path('', views.index, name='index'),
# messages/1
path('<int:question_id>/', views.detail, name='detail'),
# messages/1/answer/
path('<int:question_id>... | [
"beb97@hotmail.com"
] | beb97@hotmail.com |
46e06ceb771bf80a1eaf7123dd0113daeeeff3a3 | d4ed7e3c2b4607d004d69f8bbe0505aace5fb932 | /silverstrike/tests/models/test_models.py | e20f8dcf86a0ac96cc3aa6f1deccfdb23416cbeb | [
"MIT"
] | permissive | denhartog/silverstrike | 086998ed36cf0e64f3a6fe0e8f2495432ab2b9ac | 82a63f43d9d786dd8a971e9677f30c0348ad9053 | refs/heads/master | 2021-05-14T02:26:50.844619 | 2018-01-04T22:59:51 | 2018-01-04T22:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,582 | py | from django.contrib.auth.models import User
from django.test import TestCase
from django.urls import reverse
from silverstrike.models import Account, Category, Split, Transaction
class ModelTests(TestCase):
def test_account_str_method(self):
account = Account.objects.create(name="some_account")
s... | [
"simhnna@gmail.com"
] | simhnna@gmail.com |
9d5151cef330de7b05badd2e73eca0ceb680c32d | 545f633f49653a63dbbd0588ac517ee1fba047fd | /birdcollector/birdcollector/urls.py | 9e9d0bde1a13adf82edcd4c784ca8ff28f793329 | [] | no_license | AndreykaVSR/Finch-Collector | cb76a3553912a9c848fe2f6d0db8762ed545fc63 | 854c0747f04ba549e9f69565edcea0ee60a9f964 | refs/heads/master | 2020-04-29T05:54:52.715745 | 2019-03-15T22:29:44 | 2019-03-15T22:29:44 | 175,898,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | """birdcollector URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"andreykasokolov@gmail.com"
] | andreykasokolov@gmail.com |
3403301ee31e239b15a3083f41239f9a1b5f7aa7 | 7bbb78524392ea08f3ceb3424299cd711c590567 | /LSTM_fix/attention_test.py | 7cae4c9be3db834d1b0d60e0b43dcc5892080502 | [
"MIT"
] | permissive | FudanNLP/Attn-KGE | 3ce7677fc6402a043e52b8c8d25a40371b33653d | dbd198a33abcc9b5473c2bb9de3cf53bf85806e1 | refs/heads/master | 2021-08-26T08:39:21.951258 | 2017-11-22T17:31:02 | 2017-11-22T17:31:02 | 111,765,615 | 2 | 1 | null | 2017-11-23T05:05:09 | 2017-11-23T05:05:08 | null | UTF-8 | Python | false | false | 1,922 | py | import os, numpy, theano, time
import cPickle as pkl
from util import *
import getopt
import sys
# from lstm_launch import *
# from lstm_att_launch import *
from theano import config
def test(
):
attention_path = 'att_new.pkl'
import cPickle as pkl
e2i, i2e, w2i, i2w = None, None, None, None
with ope... | [
"noreply@github.com"
] | FudanNLP.noreply@github.com |
6313278bd2a18530a6dfe65f6e6b70c95af42f7b | d7913fb7e1ef8c00a428680c93dd571699116281 | /stegaware_front.py | c622a838dd65a786f48763891b9a2a064fc1b667 | [] | no_license | UoK424/RAMSES_StegAware | d2b6460e3ce8fb49a16ae311d241aab68ccb0995 | 76c585ed1ce5c5f53592381fa22d8d744bed0e67 | refs/heads/current | 2022-07-13T07:42:16.216205 | 2019-09-16T11:22:03 | 2019-09-16T11:22:03 | 145,890,626 | 0 | 2 | null | 2019-10-29T21:25:45 | 2018-08-23T18:10:34 | Java | UTF-8 | Python | false | false | 190 | py | from PyQt5 import QtWidgets, uic
import sys
app = QtWidgets.QApplication([])
win = uic.loadUi("main_menu.ui") #specify the location of your .ui file
win.show()
sys.exit(app.exec()) | [
"d.hurleysmith@gmail.com"
] | d.hurleysmith@gmail.com |
c866c0b937c88c9c60b2b8d936a5f752ae5a99a8 | ca6738eb385edba05261288a0f9f72897e54b8d5 | /nptel/joy_of_computing_using_python/w3_pa1.py | 444cb97ef8b3a2f1e1638f1acaecff7b3c2f5ae6 | [] | no_license | adarsh-av13/courses | 58eea742557ac4aec06f16a4b7bd0259da6777fe | 0a2b4ed50ab0c9dc441cf2ebc439b7f21d56d119 | refs/heads/master | 2020-08-27T11:26:30.680074 | 2019-10-24T14:52:04 | 2019-10-24T14:52:04 | 217,351,185 | 0 | 0 | null | 2019-10-24T17:05:16 | 2019-10-24T17:05:16 | null | UTF-8 | Python | false | false | 674 | py | '''
24-08-2019
Given a list of numbers (integers), find second maximum and second minimum in this list.
Input Format: The first line contains numbers separated by a space.
Output Format: Print second maximum and second minimum separated by a space
Example: Input: 1 2 3 4 5
Output: 4 2
Solution:
... | [
"hishamalip@gmail.com"
] | hishamalip@gmail.com |
f01c9f4cb6e578f40f952d27a77dbdab38e9b181 | 0b5ab7349485da4ea40ca343bc50f4cab74c917c | /week09/tutorial/snippets/urls.py | 2dcc6decba1a0c26454d9a83c0f3e37011525c86 | [] | no_license | workherd/Python006-006 | 9bf2782ccda037de9af98eb7daa87fd1edeb3caf | 7aa176c3cf4effd015802b550edfb70f859e94d9 | refs/heads/main | 2023-04-29T14:37:43.545376 | 2021-05-16T04:13:08 | 2021-05-16T04:13:08 | 323,247,475 | 1 | 0 | null | 2020-12-21T06:13:42 | 2020-12-21T06:13:42 | null | UTF-8 | Python | false | false | 2,227 | py |
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from snippets import views
# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r'snippets', views.SnippetViewSet)
router.register(r'users', views.UserViewSet)
# The API URLs are now dete... | [
"1330430077@qq.com"
] | 1330430077@qq.com |
4f31427a7b83dc75c42614a44e4a0ce4a1eb258d | 834211271a58c0bd4f91c820d44fd3ea5a7eda4a | /src/propagation.py | 38beb3e903b06ca171b661346e60e93bd46b0d0d | [
"MIT"
] | permissive | Thefalas/disksMD | 2f01277ebab8c9015c747f6b804280e6d0293611 | 1f3a0a1814baf1fd8905da2e88d2244de90d14ec | refs/heads/master | 2021-04-27T05:43:39.506723 | 2018-07-02T10:31:32 | 2018-07-02T10:31:32 | 122,599,573 | 0 | 0 | MIT | 2018-03-07T17:52:18 | 2018-02-23T09:19:59 | Python | UTF-8 | Python | false | false | 1,764 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 28 13:58:14 2018
@author: malopez
"""
import numpy as np
class Propagator():
def __init__(self, size_X, size_Y, periodicWalls, periodicSideWalls):
self.size_X = size_X
self.size_Y = size_Y
self.periodicSideWalls = periodicSideWalls
sel... | [
"malopez00@gmail.com"
] | malopez00@gmail.com |
79a1e0cf6711dddd4ad2430e89c450dd28186379 | dc8154f8ec1d102ed331c25878cab986961a160f | /knn.py | 51308e0d2135b7d55337b88f7399492301725cbf | [] | no_license | Lesleychen/Pattern-recognition | 3c4c4ef51851f1c765194547a0ee053ee838581e | e89062d5719c77325c0a820c22b0d105ac48eb91 | refs/heads/master | 2020-08-02T18:48:06.000934 | 2019-09-28T08:54:37 | 2019-09-28T08:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,281 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
import scipy.io as scio
import numpy as np
from numpy import *
import matplotlib.pyplot as plt
from math import log
# In[3]:
def logTransform(dataSet):
'preprocessing data by log transform'
dataSet = np.log(dataSet + 0.1)
return dataSet
# In[4]:
def ... | [
"noreply@github.com"
] | Lesleychen.noreply@github.com |
396dcfca2e0055288c638df5e334f9ce9e511181 | 8f2246d1837ddf51f56e86d4b0b176bd834fd3e5 | /old_version/VSAE.py | 2a35dd06be0313628de20cee8b7b255f471868a3 | [] | no_license | ehsansiddiqui/ICDE2020_GMVSAE | 34d79cb3b7932cd3086d71195af18a32293e68fc | c329a6884e5abeef3f6d30da04d733b190906602 | refs/heads/master | 2023-03-17T11:47:14.233539 | 2021-02-16T14:48:34 | 2021-02-16T14:48:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,031 | py | import os
import sys
sys.path.append("../")
import time
import argparse
import numpy as np
import tensorflow as tf
from data_generator import DataGenerator
from sklearn.metrics import precision_recall_curve, auc
def auc_score(y_true, y_score):
precision, recall, _ = precision_recall_curve(1-y_true... | [
"noreply@github.com"
] | ehsansiddiqui.noreply@github.com |
040989beec30c94ff693704650c5a6eb9b0e2bbe | 8d1ed2b2dcf0101f05a032a84fa268cfcf0f1d9b | /app/controllers/points_controller.py | 08ddb16baf6a1e7b0cbb3d9502e0aa7f4c123d77 | [] | no_license | gitter-badger/pgis | 747015237caa110c7e05003191d2d7747024f9e4 | 491f92063cb8253ed55bc58a232b950c8dfbc3c8 | refs/heads/master | 2021-01-21T00:56:58.794867 | 2015-08-11T22:51:48 | 2015-08-11T22:51:48 | 40,593,860 | 0 | 0 | null | 2015-08-12T10:02:13 | 2015-08-12T10:02:13 | null | UTF-8 | Python | false | false | 2,883 | py | from app.models.point import Point
from flask import render_template, flash, redirect, abort, session, url_for, request, g, json, Response
from geoalchemy2 import Geometry, func
from geoalchemy2.functions import GenericFunction
import app.helpers.point_form
import base64
import sys
import os
from app import db
class P... | [
"shotabakuradze@gmail.com"
] | shotabakuradze@gmail.com |
c4a9a95662f27866ed86d3e6eae6b0ded9da7270 | 135e60a01581b2b321c3a1fb2105d7d1fdb7b431 | /venv/bin/gunicorn | 751c1e2e92d1e55518998e74c7dbfbbff75dbe1a | [] | no_license | bryan0578/dynamic-site | 749712b38a8328c123e5ca3e7028c49c37ffbd9d | bb1ff31c85f6da9ad3f6ca41ce42cf77248555a7 | refs/heads/master | 2023-02-19T15:18:04.038142 | 2019-08-21T21:37:41 | 2019-08-21T21:37:41 | 76,591,594 | 0 | 0 | null | 2023-02-15T21:34:00 | 2016-12-15T19:58:36 | Python | UTF-8 | Python | false | false | 253 | #!/Users/bryancash/Desktop/Python1/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"bcash0578@gmail.com"
] | bcash0578@gmail.com | |
bee5464c4d179c22011d84101b2bc96fc2cb49a7 | 55b89b8ae2c9fdf7b78ee922863bcc6acaa5ff83 | /sql.py | a3b2c84595aa0e621053aaba1331a98955497baf | [] | no_license | ostrbor/nikita | 8de6beaeaa5a97cab1f809ab0bd05b4b4a6c2d9a | 0d7a9c31186be14f3f33c877cc77281ff250f730 | refs/heads/master | 2021-01-10T06:02:37.580632 | 2015-12-03T13:45:37 | 2015-12-03T13:45:37 | 47,254,547 | 0 | 1 | null | 2015-12-02T16:36:57 | 2015-12-02T10:40:28 | Python | UTF-8 | Python | false | false | 1,942 | py | sql_keys = ('StartDate', 'FinishDate', 'No_Disp')
sql_template = 'SELECT `calldate` AS `calldate`, `dstchannel` AS `dstchannel`, ( SELECT COUNT( `disposition` ) FROM `asteriskcdrdb`.`cdr` WHERE `calldate` >= "%(StartDate)s" AND `dstchannel` LIKE "SIP/%(No_Disp)s%%" AND `billsec` BETWEEN 40 AND 80 AND `disposition` = "A... | [
"saries@yandex.ru"
] | saries@yandex.ru |
07272b8cbacf3ce9f0e35dc3f1f33321829249ac | b5ab8d266984a4eb27feb19baa075c23da03e59d | /print_left_right_node.py | 828976a77116da143ef95ea17bb20d9be4f1c96c | [] | no_license | solivier/algo | 70e566c72b55565ab55ae8cd1cd05d9648ffb276 | d1750785386fdb8da460ff5fef88fa962ded59b7 | refs/heads/main | 2023-04-21T16:50:12.723956 | 2021-04-20T17:11:27 | 2021-04-20T17:11:27 | 343,557,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | class Node:
def __init__(self, value):
self.left = None
self.right = None
self.value = value
self.path = []
class Graph:
def bfs(self, root):
queue = [root]
while len(queue) > 0:
n = len(queue)
for i in range(n):
node = ... | [
"olivier.soulet@anyti.me"
] | olivier.soulet@anyti.me |
8d0a0b0dec63a2130b9ada6f938cfbddbaeeb4a8 | 10920b11a22a20f9a7f63157818327f3c4e41888 | /jibby_opencv/Object Recognition/two.py | 10e258ca8fedf5c5342ee07ae449937c19975227 | [] | no_license | dsall/computerv | e331b3d025c8cec0119b789107d1fef18d08f02a | 40671d618c31ad9d9b20fc902a218a8e281098bc | refs/heads/master | 2021-09-15T09:33:08.495580 | 2018-05-29T23:41:42 | 2018-05-29T23:41:42 | 135,363,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 5 00:23:15 2018
@author: djibrilsall
"""
import numpy as np
import cv2
# multiple cascades: https://github.com/Itseez/opencv/tree/master/data/haarcascades
#https://github.com/Itseez/opencv/blob/master/data/haarcascades/haarcascade_frontalface_de... | [
"djiby45@outlook.com"
] | djiby45@outlook.com |
27686a5573582bba05fe1c037ddb797cb55f040b | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0216_Combination_Sum_III/solution.py | e332183e542f99042b9b4fe0e2ddce1af912459b | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 139 | py | class Solution:
# @param {integer} k
# @param {integer} n
# @return {integer[][]}
def combinationSum3(self, k, n):
| [
"romain_li@163.com"
] | romain_li@163.com |
90ca74b0d292bd39c8f14bc47cfc1b3cc42337c7 | 8148b00b8fc3824509cc54ac02160395a487be91 | /get_patent_id.py | bf11a1ba3922e02cfc8595b9cd264cd69ddad4c7 | [] | no_license | wangchaoqiang/SIPO | e278353fc36d04dd72c8188aa2791d7fa41a7004 | 9372d45ea5355c010d837fd08bdbaa13afbc8ba8 | refs/heads/master | 2020-05-17T01:40:30.246378 | 2019-04-25T12:50:01 | 2019-04-25T12:50:01 | 183,433,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | import requests
import json
import time
class Get_Patent_Id(object):
# def __init__(self):
# self.id_list = self.get_id()
def get_id(self,num):
url = 'https://www.hongjianguo.com/public/apns/?authorization=CpqueryIsABadGuy&count='+str(num)
patent_id_str = requests.get(url)
patent... | [
"forthespada@foxmail.com"
] | forthespada@foxmail.com |
0ef3a3afbb0a5ad1f607d1f4fa56b8207a2c978d | 857a9e588a04b40a66b6ca115063cb67ef0427ea | /timemachines/skaters/glu/glusimple.py | 45f7a1894d2d9f43387ba47e6408b68c40771bb8 | [
"MIT"
] | permissive | rambam613/timemachines | 81b88357498871f77efed0faf9c25b4c408d822c | cd243d4606b4ad9c1d419988fc6c04b0964af2e6 | refs/heads/main | 2023-07-03T07:06:24.421114 | 2021-08-07T17:42:40 | 2021-08-07T17:42:40 | 393,793,785 | 1 | 0 | MIT | 2021-08-07T21:13:35 | 2021-08-07T21:13:34 | null | UTF-8 | Python | false | false | 1,092 | py | from timemachines.skatertools.utilities.conventions import Y_TYPE, A_TYPE, R_TYPE, E_TYPE, T_TYPE, wrap
from typing import Any
from timemachines.skatertools.components.parade import parade
from timemachines.skatertools.utilities.nonemath import nonecast
from timemachines.skatertools.ensembling.ensemblefactory import pr... | [
"peter.cotton@microprediction.com"
] | peter.cotton@microprediction.com |
d7184be83f3504e54bb4a2a7dd18d56a038eba05 | 1901aaee0574fdcc158fab4481630956841cf317 | /EntregaOrdinaria/ProyectoOrdinaria/ProyectoOrdinaria/urls.py | a74d6b030275926aabdbab44359ba6fdf10a8fbd | [] | no_license | Jkoroso2000/RepositorioProyectoOrdinaria | 775b2edc829c5655096aaa6fef8472cafdd38d05 | 8dce9620ed63902c3777f9b5f2f41da582d2378c | refs/heads/master | 2022-08-28T07:19:44.184210 | 2020-05-27T18:29:05 | 2020-05-27T18:29:05 | 267,383,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | """ProyectoOrdinaria URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='h... | [
"noreply@github.com"
] | Jkoroso2000.noreply@github.com |
7378476f005f5e3ba8c29c7800879bb39b7c6cf8 | c7cce7752ccfa3c5687cd427160af3da7950b2bc | /Mundo - 2/Ex 49 - Tabuada for.py | 8237d621fec1838425a38c9dec5c8f70edb78599 | [] | no_license | lucas-silvs/Curso-Guanabara | cea05768374bb6a9d0295deb6d17d1da4c13646b | 42f62d518eecce7f2bbc6794ad424d7f7218c81e | refs/heads/main | 2023-01-24T07:07:35.757243 | 2020-12-05T01:08:51 | 2020-12-05T01:08:51 | 315,467,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | n = int(input('Digite um número:\n'))
for i in range(1,11):
print(f'{n} X {i} = {n*i}') | [
"lucas.parkl@outlook.com"
] | lucas.parkl@outlook.com |
57804adfbca916f555d07126448c1cdd84899b11 | 1c611977439d4fbc2d758d2343b022825fd1d44c | /code/src/app/init.py | a243f930546fa1a9ad8409db4adc7ca3478d98d4 | [] | no_license | Xinrea/Location-Privacy-Preservation | 60ce96ef121cddcafcfc64b3177c1f1e29e0d995 | 0b71c01514ea392ce14042c8611125e51648690a | refs/heads/master | 2022-04-23T16:48:23.269804 | 2020-04-30T02:45:58 | 2020-04-30T02:45:58 | 232,025,374 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,546 | py | import sys
import os
sys.path.append("..")
from flask import Flask,render_template,request,redirect,json,send_file
from os import path
import hashlib
import MainProcess
import threading
import time
import csv
app = Flask('Feature-base LPP')
@app.route('/',methods=['POST','GET'])
@app.route('/index',methods=['POST','G... | [
"s11s@vip.qq.com"
] | s11s@vip.qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.