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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61b940807ba953d8d1281bb51f0dd723c7a377c4 | 8eba953d39769dd1e9b83a48beef3942180553b2 | /myblog/blog/templatetags/new_highlight.py | 616983a527dde7d0f9871806c0f2439070760ff1 | [] | no_license | chenyufei91/blog | b016e83a474109587df663b0794949686c2001e6 | 1fbed7795bbbc4a4971842b9675393b3b4d3dc15 | refs/heads/master | 2021-01-02T08:30:16.066951 | 2017-09-12T12:04:26 | 2017-09-12T12:04:26 | 99,013,043 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,021 | py | # encoding: utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
from django import template
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils import six
from haystack.utils import importlib
register = template.Library()
c... | [
"418587175@qq.com"
] | 418587175@qq.com |
310f57f68e84aa364cd0a8bff37692ad665e16c1 | a0752885a2cb58a9651370d67644a61c485c8b69 | /app.py | 69385c4382f02ecd44f1c1451a81a60a45104218 | [] | no_license | Omar-Al-Azzawi/kuva-gallery | 84aa2acb6741c6411bf15805d9405e73ce32c2cc | ca73821e95cfb37b2c2da74db9f8f8431991b018 | refs/heads/main | 2023-04-09T08:44:04.668547 | 2021-04-30T17:54:27 | 2021-04-30T17:54:27 | 363,218,683 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,205 | py | import os
from flask import Flask, request, redirect, render_template, send_from_directory
from werkzeug.utils import secure_filename
app = Flask(__name__)
APP_ROOT = os.path.dirname(os.path.abspath(__file__))
ALLOWED_EXTENSIONS = set(['png', 'jpg', 'jpeg', 'gif'])
@app.route("/")
def index():
images = os.listd... | [
"alazzawiomar01@gmai.com"
] | alazzawiomar01@gmai.com |
a313555b0019f0f153a4c1bb8ea702d099dea1cc | a2d117137df3e0c269081294bfada1955a439b65 | /TrainingSuite/migrations/0003_auto_20160319_1543.py | 53b02e82ab749e7ea3e78887ca68ff2727c8f978 | [] | no_license | ros-viper/training_suite | 05ee80b4d6788af355c06c40f0cf25a250692d3f | ee2deb9ae3c4322d8f93ab58f3f95c61800cada6 | refs/heads/master | 2020-03-29T04:21:57.515964 | 2018-09-20T00:44:33 | 2018-09-20T00:44:33 | 149,528,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-19 15:43
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependen... | [
"rostyslav.rzhenetskyy@gmail.com"
] | rostyslav.rzhenetskyy@gmail.com |
2028b80a4b6d97ce46899f4a0460a1a563aa6c5c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02767/s175337385.py | 603d5a2e1d8cc05d8e395e38bf7392094f4f30ff | [] | 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 | 171 | py | N = int(input())
X = list(map(int, input().split()))
ans = 100 ** 100
for p in range(1, 101):
now = 0
for x in X:
now += (p - x) ** 2
ans = min(ans, now)
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a11ab50f121f06a787e4f3eca2800a50201185cd | 58c07f23c63bfb0ac69c7aa7de03973f1b1b4234 | /tests/celery/test_periodic.py | d62362f9f4c18f737df3b3792eed390ded46d6b2 | [
"MIT"
] | permissive | zconnect-iot/zconnect-django | 4d32e7535bebce4e94d1eb1a532d7e3b82326ca7 | 5c569f54f100e23d72e2ac4de795739ea461a431 | refs/heads/master | 2020-03-21T15:35:35.361709 | 2018-07-05T11:00:25 | 2018-07-05T11:00:25 | 138,721,705 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,733 | py | import contextlib
from datetime import datetime
from unittest.mock import Mock, patch
from freezegun import freeze_time
import pytest
from zconnect.tasks import (
remove_old_periodic_data, trigger_scheduled_events, trigger_update_strategy)
from zconnect.testutils.factories import (
DeviceSensorFactory, Sensor... | [
"boulton@zoetrope.io"
] | boulton@zoetrope.io |
4d6cd1027ba3345911bdaf11bec3f493ce34647d | ebaa487f4fde26c83ce35e304cd2d7c33a76e2a8 | /csv_to_db.py | f0253c6c432c2b417b6ecd829fefd71c67856cbd | [] | no_license | vlampietti/finderscope-evantey | 40f82e4c0b4958f6b6e3952cbe1d8bfb7a8dce98 | 3125e3bb50bb2c15e658c82a4f22484fb97802a9 | refs/heads/master | 2021-07-06T05:06:22.597818 | 2017-07-19T19:25:04 | 2017-07-19T19:25:04 | 105,554,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | import os
from config import basedir
from finderscope import app
from finderscope.models import *
import pandas as pd
def load_files():
# load test data as single course
course = Course(title="a_sample_course")
db.session.add(course)
db.session.commit()
id_course = course.id
# load person_c... | [
"evantey14@gmail.com"
] | evantey14@gmail.com |
c5153f275342c54b4f05c24d5b6f29c3ee31f56e | b2a3f09c0cc32b8bda9234b5f3b1074e79e8fc7a | /pySDC/implementations/transfer_classes/TransferMesh_NoCoarse.py | e606661a27c09325b28f69cfb6430971250cf41d | [
"BSD-2-Clause"
] | permissive | gdmcbain/pySDC | 5f3d683b5980ebda65449bf8652497568e955cb6 | 493b73b76c32562dbdd98c80a7935943c0fa8e11 | refs/heads/master | 2023-04-18T00:11:45.500910 | 2021-05-03T15:05:01 | 2021-05-03T15:05:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py |
import scipy.sparse as sp
from pySDC.core.Errors import TransferError
from pySDC.core.SpaceTransfer import space_transfer
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh
class mesh_to_mesh(space_transfer):
"""
Custon base_transfer class, implements Transfer.py
This implementatio... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
8726aad8b9ee42024c92a015ec47d895be38a8af | a728fe7ee13800053dfa229e9fbc4770072de3cd | /polling_stations/apps/data_collection/management/commands/import_leeds.py | 8a268d1a49f89f95d6637253547e4015f0da8556 | [] | no_license | amelvin/UK-Polling-Stations | 03cc27c5d6d191458b7c159650179b2e01568464 | a5ce2cf57f732720af9d0e18b66635879c127f7b | refs/heads/master | 2021-01-12T01:15:46.442982 | 2016-12-21T11:22:53 | 2016-12-21T11:22:53 | 78,362,111 | 1 | 0 | null | 2017-01-08T18:26:53 | 2017-01-08T18:26:53 | null | UTF-8 | Python | false | false | 2,122 | py | from data_collection.management.commands import BaseMorphApiImporter
class Command(BaseMorphApiImporter):
srid = 4326
districts_srid = 4326
council_id = 'E08000035'
elections = []
scraper_name = 'wdiv-scrapers/DC-PollingStations-Leeds'
geom_type = 'geojson'
split_districts = set()
de... | [
"hishivshah@gmail.com"
] | hishivshah@gmail.com |
e07ba57b62f3de2f75247e36a9b41e606b23c21d | b6a37b551243c74c68d01205e87af5a89adc0ca9 | /model/train.py | 2e27b70c570b5c3faf2af301b04aa62c85a538ac | [
"MIT"
] | permissive | yhy-2000/Socialformer | 77a438c95b2405cf3b17023364ec46f0cb10af90 | 09d3be336cf78346d31a2ba6dd1460db18d076de | refs/heads/main | 2023-08-29T03:02:19.033728 | 2021-10-22T11:49:31 | 2021-10-22T11:49:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,531 | py | import time
import argparse
import pickle
import random
import numpy as np
import torch
import logging
import torch.nn.utils as utils
import torch.nn.functional as F
from torch.utils.data import DataLoader, TensorDataset
from model import BertForSearch
from transformers import AdamW, get_linear_schedule_with_warmup, Be... | [
"noreply@github.com"
] | yhy-2000.noreply@github.com |
cb9224a4e42308249f9ab62d7934b7b6831f949b | 5666fde1b7d6a54bacd134fddf5b788e130e538c | /freqTable.py | dcd4331ea9f69cc44e97c940511842462db70830 | [] | no_license | 2CinnamonToast17/untitled1 | dae281ee51bbc94f2fd85cc68277b3f21bcd22a0 | e95dc113ba80a27f72ee553c10ccd7f04abd308a | refs/heads/master | 2021-08-11T13:03:15.805890 | 2017-11-13T18:47:44 | 2017-11-13T18:47:44 | 110,587,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | from collections import Counter
def create_classes(numbers, n):
low = min(numbers)
high = max(numbers)
# Width of each class
width = (high - low)/n
classes = []
a = low
b = low + width
classes = []
while a < (high-width):
classes.append((a, b))
a = b
b = a ... | [
"ajbonino217@gmail.com"
] | ajbonino217@gmail.com |
5c5d95676a4b1f9f05f4dd859dd0123d6394a5b4 | 96d22c2c40f5f0336a8a63c0f3a83f41532d975b | /season1/l014_function.py | 6905a2be1ebc5de39d6833221e9437dc235d1370 | [] | no_license | haluto/python | 98fd83707867b56846aa40ea5e492789f0a3e8bf | 52e72e9db041c0c95b3a35e7f39907248aa3e06b | refs/heads/master | 2023-03-28T04:33:47.062479 | 2021-04-01T03:02:41 | 2021-04-01T03:02:41 | 115,498,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,510 | py | #!/usr/bin/python
#coding=utf-8
########
##
########
def ChangeInt(a):
a = 10
print "in ChangeInt function: ", a
def changeme(mylist):
mylist.append([1,2,3,4])
print "in changeme function: ", mylist
return
def printinfo(name, age):
print "Name: ", name
print "Age: ", ... | [
"jun.yin@tinno.com"
] | jun.yin@tinno.com |
af17030af8cd9d2852ba66eb17d6deacf28b5f24 | ad4d927b05d3004cc5f835c84807a272ecff439f | /src/olaf/build/rosserial/rosserial_arduino/catkin_generated/rosserial_arduino-extras.cmake.develspace.context.cmake.py | a1ba22978d6991df0e04c88abda9b4707da66098 | [] | no_license | kookmin-sw/capstone-2020-11 | 73954f8a692d3240a22ca9a81c9bede8538fabbf | 081733fb0470d83930433a61aabf9708275d64dd | refs/heads/master | 2023-03-06T23:02:14.869404 | 2022-11-09T01:44:27 | 2022-11-09T01:44:27 | 246,285,681 | 5 | 4 | null | 2023-03-04T13:53:47 | 2020-03-10T11:42:27 | C++ | UTF-8 | Python | false | false | 1,447 | py | # generated from catkin/cmake/template/cfg-extras.context.py.in
DEVELSPACE = 'TRUE' == 'TRUE'
INSTALLSPACE = 'FALSE' == 'TRUE'
CATKIN_DEVEL_PREFIX = '/home/nvidia/olaf/devel'
CATKIN_GLOBAL_BIN_DESTINATION = 'bin'
CATKIN_GLOBAL_ETC_DESTINATION = 'etc'
CATKIN_GLOBAL_INCLUDE_DESTINATION = 'include'
CATKIN_GLOBAL_LIB_DES... | [
"ksp2246@naver.com"
] | ksp2246@naver.com |
66a39e8da4051e3be3eda89e19b36ed5bf8ddf44 | 6f94db52103adeee9727d795ca1ba0b9d98f096f | /geodjango/api/migrations/0006_auto_20180731_2052.py | c085ed52aca72c086d7ebf39b07aa32d5fb85eb0 | [] | no_license | dannybombastic/vozplus | a15fa5a13f39b749479bdc39ad87062b50f775a7 | b338809797f874388bbff270dea1c342e9d0fa56 | refs/heads/master | 2022-12-10T12:53:27.441115 | 2018-08-01T08:52:39 | 2018-08-01T08:52:39 | 143,129,291 | 0 | 0 | null | 2022-12-08T02:25:12 | 2018-08-01T08:48:10 | Python | UTF-8 | Python | false | false | 591 | py | # Generated by Django 2.0.7 on 2018-07-31 20:52
import django.contrib.gis.db.models.fields
import django.contrib.gis.geos.point
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0005_auto_20180731_2042'),
]
operations = [
mig... | [
"root@tough-cough.com"
] | root@tough-cough.com |
297121678430c46b62630c0bcc79578fe7d3bb1f | a98ea0571455b88e48af90e731b94d595ecfa4f7 | /LinkedList/09_linkedlist.py | 92c388ca665b5d32bea14f384150ce9274bf9e56 | [] | no_license | KishoreKicha14/DSandALGO | f0ccbe206259e59d60f22fd2f7654db8c102f4bc | 837adfaea1f94f91b3c157caf1734312d9ecc1a2 | refs/heads/master | 2020-06-18T08:01:29.786775 | 2019-07-10T16:49:17 | 2019-07-10T16:49:17 | 196,224,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | class Node(object):
def __init__(self,data):
self.data=data
self.link=None
class LinkedList(object):
def __init__(self):
self.head=None
self.size=0
def insertend(self,data):
if not self.head:
self.head=data
else:
actucal=se... | [
"noreply@github.com"
] | KishoreKicha14.noreply@github.com |
6538063f4beba7f3d0a8ad1bc05baee8cbbf0ddf | 23b686feb2d0ab9082a7ce622fc055946ed99c55 | /.history/atkd/forms_20190411112355.py | ce642266f9f3f7e83b028ecf825e5faa01be9731 | [] | no_license | jasvr/atkd | a18b9840bf9948a7560684cd5eb0d5e22f6c52c7 | daf61f7aa11cfc812171298894b1d0019641c4bd | refs/heads/master | 2020-05-07T09:35:56.343837 | 2019-04-12T16:17:09 | 2019-04-12T16:17:09 | 180,383,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from django import forms
from .models import Parent, Student
class ParentForm(forms.ModelForm):
class Meta:
model = Parent
fields = ('first_name','last_name')
class StudentForm(forms.ModelForm):
class Meta:
model = Song
fields = ('title', 'album', 'preview_url', 'artist',... | [
"jas.vrgs@gmail.com"
] | jas.vrgs@gmail.com |
5e8bddb5ee16dfb2c418e0ce4eba2ee031a27d5d | cbf9dc37d7082f609a3d4aed505be32cc3e95cb0 | /server.py | 7d0e6e1bd13fce3f99592b75c14a5b0384b17de1 | [] | no_license | ciprian123/securitatea_informatiei_tema1 | 38e1cf9f5d7c88c291ce92d134cd2f0dee3bed6a | 2913790710642c7ab221b50830ae6a30a8d71f58 | refs/heads/main | 2023-01-06T15:08:26.421300 | 2020-11-01T13:21:32 | 2020-11-01T13:21:32 | 308,021,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,595 | py | import sys
import socket
import pickle
from random import randint
from threading import Thread
from encryptor import Encryptor
from decrypter import Decrypter
def get_random_string(n):
digits = "0123456789"
string = ""
for i in range(n):
string += (digits[randint(0, 9)])
return b... | [
"noreply@github.com"
] | ciprian123.noreply@github.com |
762d3a50e6ea2118503945c0eebae37e5cfa5665 | 8b1f8b425091d16be780ebc848fbc03807067154 | /main.py | 948591522ccebc53ae36f991c6116d2ecf8b2bca | [] | no_license | KyotoWeb/RandomPw | 300673f17e219a87863efede4a0b800770af6181 | 498d4ab733ccd3afdade0969ffc0f90bff0d9ffe | refs/heads/main | 2023-08-27T10:38:04.047612 | 2021-10-03T11:07:21 | 2021-10-03T11:07:21 | 413,053,141 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | from pystyle import Colorate, Colors
from pycenter import center
from os import name, system
import random
def clear():
system("cls" if name == 'nt' else "clear")
if name =='nt':
system("title RandomPw & mode 190, 40 ")
banner = """\n
██▀███ ▄▄▄ ███▄ █ ▓█████▄ ▒█████ ███▄... | [
"noreply@github.com"
] | KyotoWeb.noreply@github.com |
c4b45dd88a794716f552bc60a41f70ae15c9b8e0 | 6be8f6e0387c3d250170acad54b6d39a6f439fdb | /todo/urls.py | 3af915fe2b2362725af0ffa466a3b450883eea6e | [] | no_license | Notsamu/todoproject | 906786497caf8f06fb079771b1e7dd0f1d19cf48 | e7fd2f8313ba71d4afc457494686945afa727b6f | refs/heads/main | 2023-03-19T01:41:18.585140 | 2021-03-11T07:37:47 | 2021-03-11T07:37:47 | 346,617,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from django.urls import path, include
from .views import TodoList, TodoDetail, TodoCreate, TodoDelete, TodoUpdate
urlpatterns = [
path('list/', TodoList.as_view(), name='list'),
path('detail/<int:pk>', TodoDetail.as_view(), name='detail'),
path('create/', TodoCreate.as_view(), name='create'),
path('del... | [
"introduction7991@gmail.com"
] | introduction7991@gmail.com |
fb1c41b85bf8f1158c015ac18a96d7dd139dc578 | 3479c74de4c5afe01df8692affb1d1b65a987210 | /main.py | 39098719b00ac8e2f4f17e795cf92d347ccc2010 | [] | no_license | rutvikvijjali/vizdoom-ddqn | c521581665bab2e122d0b1cc92c72ede5c735e0f | 7217b9ffedce222c5abadfb42eb5b8b560b767bf | refs/heads/master | 2020-04-24T16:07:26.242869 | 2019-02-22T16:25:05 | 2019-02-22T16:25:05 | 172,095,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,885 | py | from vizdoom import *
import numpy as np
import time,random
import tensorflow as tf
from collections import deque
import skimage
from skimage import transform, color, exposure
import warnings # This ignore all the warning messages that are normally printed during the training because of skiimage
import objgraph
warning... | [
"noreply@github.com"
] | rutvikvijjali.noreply@github.com |
2aa471776ae7fad67f7b996be82f08b6c4f54650 | 9960f7e058fd7c7fb684774dd654b0f3f1f4a84e | /tests/integration/text/test_empty_document.py | 83414e2411c8fc1635f8654d85c1dda4d18cea8c | [
"BSD-3-Clause"
] | permissive | prepare/pyglet | 6998fdf1622db851d497f458dfef0e5ca0424443 | 79684462d2ddbabaa0b0c8d80adb99105890a39b | refs/heads/master | 2020-09-22T01:57:33.244516 | 2016-08-31T02:38:30 | 2016-08-31T02:38:30 | 67,846,145 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | import unittest
from pyglet import gl
from pyglet import graphics
from pyglet.text import document
from pyglet.text import layout
from pyglet import window
class TestWindow(window.Window):
def __init__(self, doctype, *args, **kwargs):
super(TestWindow, self).__init__(*args, **kwargs)
self.batch ... | [
"ben@isengard"
] | ben@isengard |
81c0750b574537a9ae3abd73b8ebb78de5a7fd6c | 885c9482836df5c4cb8995ab649d36caff7a2194 | /python/__init__.py | ea3c9a99420792f858dc65105d9d0517d117da67 | [] | no_license | NELOUNI/rfnoc-spectrum_sensor | b0562de141733e7c6e04dbba523089f947459a2b | 47f6df789ebaf16920eea7704a720402e685036a | refs/heads/master | 2020-05-21T06:02:28.876834 | 2017-03-10T17:22:45 | 2017-03-10T17:22:45 | 84,583,452 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | #
# Copyright 2008,2009 Free Software Foundation, Inc.
#
# This application is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This application is di... | [
"naceur.elouni@nist.gov"
] | naceur.elouni@nist.gov |
9fe5a578b156da01b0ae0d09bb532a70be59e6ed | fe6b204445ae65113a16e6157f8b3d0632684280 | /build/basics/catkin_generated/pkg.develspace.context.pc.py | 468906e6d59d610c652c969578655e14baab4656 | [] | no_license | SaiTeja1898/ros-basics | 3f72926ba0b4a800cf6899e8192d9c871aead7b4 | bbf720a7e8a0a36e4fd4c34a699ab35895dc1c96 | refs/heads/master | 2022-11-19T09:16:17.624121 | 2020-07-18T08:24:57 | 2020-07-18T08:24:57 | 280,619,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/teja/catkin_ws/devel/include".split(';') if "/home/teja/catkin_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;actionlib_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WIT... | [
"saiteja.p15@iiits.in"
] | saiteja.p15@iiits.in |
a5372f5c655106f8145adff399760466e3954c13 | 5c21f6425ab41ca130bb6820b57118bb1be82826 | /gameshop/gameshop/storeutils/cart/urls.py | d3d931170f3fec9420a1e7620279591275cb111c | [] | no_license | jy03189211/gameshop | ad2079af9ca84b6ec0246a9be650a15fb6d1f083 | b36f44febb1512e07472fdf34a7af8a2828f362a | refs/heads/master | 2020-05-24T17:19:34.482708 | 2017-03-06T19:23:39 | 2017-03-06T19:23:39 | 84,862,987 | 0 | 0 | null | 2020-05-05T16:39:26 | 2017-03-13T18:52:17 | CSS | UTF-8 | Python | false | false | 238 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^add/(?P<item_id>\d+)/$', views.add_to_cart_view, name="cart_add"),
url(r'^remove/(?P<item_id>\d+)/$', views.remove_from_cart_view, name="cart_remove"),
] | [
"roope.palomaki@me.com"
] | roope.palomaki@me.com |
e8b54851aec473d844e4e39a4dd239fb22a82614 | d534b9e9ae739793a49c32e41b736ce7081cec0b | /mysite/venv/bin/sqlformat | 6cfca9230e7f31cf1e5c15a16bf6a2e0b2b45967 | [] | no_license | VladyslavPodrazhanskyi/django | 1d7e41404b90977ad75195935f53fd923b126b57 | fbaa1b52281a700aae90f6d81b2e0ad9f61c1142 | refs/heads/master | 2020-06-12T22:09:31.811495 | 2019-06-29T19:38:46 | 2019-06-29T19:38:46 | 194,441,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/pvv/projects/django/mysite/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vladislav304304@gmail.com"
] | vladislav304304@gmail.com | |
1704eae1f7b1ffd9b9fc112defa0ea55e1ad4a8d | fa4cf4236eac798c60c4e3195d78e603b846b37f | /03-Python编程:从入门到实践/DataVisualization/PopulationMap/NorthAmericaPopulation.py | 5f89bd862a6d4d36ff837760fa4ced98d247c25e | [
"Apache-2.0"
] | permissive | iloeng/ReadBooks | d58131b9c216ef1f8948ee2a680314a7701b9526 | e997b9c876cc692206a46f139a6b1fb0ba3787ab | refs/heads/master | 2022-11-22T13:33:09.074552 | 2019-09-21T03:20:19 | 2019-09-21T03:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: NorthAmericaPopulation
Description :
Author : Liangz
Date: 2018/10/26
-------------------------------------------------
Change Activity:
2018/10/26:
----------------------------... | [
"Liangz.org@gmail.com"
] | Liangz.org@gmail.com |
4a9f0774832445d60d06aa421f5507b09539cfa8 | 5d4d4f5a0237b8584e48bb090e4171d30d0bdf81 | /xlstolua/xls2luas.py | a2f83dbe2b232d2a3138971ee6c94084383c621f | [] | no_license | dmxzxy/Love2DCrowdTest | b7233d61d42fdab15ba5d6962bff604e07736c0f | bbee735cebfcb9820922b17a49575395bce8ab50 | refs/heads/master | 2021-01-22T02:21:03.999914 | 2018-02-23T10:35:11 | 2018-02-23T10:35:11 | 92,353,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import shutil
from summary_tools import *
from descriptor import *
import plugins
ignoreList = [
'90.脏字过滤_keywords'
]
def isInIgnoreList(fname):
for i in ignoreList:
ifname = i.decode('utf8')
fname = fname.decode('gbk')
... | [
"xiaoyu.zhang@dena.com"
] | xiaoyu.zhang@dena.com |
2556ae1392f806ccb45d5def032e85458b535096 | 91503ee4dd0f64aba9963374f4ca82ab814e9809 | /env/bin/djeesefs | 4fb1da014b6a5547d5b99ce321475120d8afb528 | [] | no_license | Venturi/asir | c59b90b618983770c5621deb2a05a5b14b04002e | fd5765b2c2b5b16660ab9c41c3148201c4e19158 | refs/heads/develop | 2022-10-19T03:04:25.473415 | 2019-03-14T11:21:57 | 2019-03-14T11:21:57 | 51,375,781 | 0 | 1 | null | 2022-10-11T05:57:58 | 2016-02-09T15:31:38 | CSS | UTF-8 | Python | false | false | 212 | #!/app/env/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from fs.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"venturi@openmailbox.org"
] | venturi@openmailbox.org | |
6421d69b4ba2284140d9f66784a8d252db793176 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /bittenforgitplugin/0.11/0.6b2/bitten/build/pythontools.py | 6a3d9219e8fea9eab21026b73f367d71dde254f7 | [
"BSD-3-Clause"
] | permissive | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,370 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de>
# Copyright (C) 2008 Matt Good <matt@matt-good.net>
# Copyright (C) 2008 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribu... | [
"tauran@7322e99d-02ea-0310-aa39-e9a107903beb"
] | tauran@7322e99d-02ea-0310-aa39-e9a107903beb |
d53fb38508be7fd74076e39e5bf8335660d0fae8 | 1dd4c16c80ebf0f7fc05879441dbc480610219cf | /calculator.pyw | 0b15554747846ca4dee64f58810e95bcbc7f0762 | [] | no_license | deepakmittal1412/Claculator-Python | a93a579efe4d3a789337e127e2c0de5ea98a2370 | e08ef54a18317a2777d70515d6c7a2a876f01356 | refs/heads/master | 2021-05-01T18:19:05.437411 | 2018-02-10T10:40:46 | 2018-02-10T10:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | pyw | from tkinter import *
import parser
root = Tk()
root.resizable(0, 0)
root.propagate()
i = 0
def operation(op):
global i
l = len(op)
ent.insert(i, op)
i += l
def calculate():
s = ent.get()
if '!' in s:
j = s.index('!')
n = int(s[j - 1])
f = 1
... | [
"noreply@github.com"
] | deepakmittal1412.noreply@github.com |
b89e94fe82fecc77f5813b38e5a7aef86986ca77 | 862404583e59163a512c692e732b22ce5affa0a8 | /sidemash_sdk/StreamSquare.py | 1042f0863b0ab5a63f93339c2552b33184ce19d3 | [
"Apache-2.0"
] | permissive | sidemashold/sdk-python | f06cba8eae3cc63bd0b63365e99b3d52bca809f9 | d77e2eb8f50f818511b5a8538da6fd6d981d5e42 | refs/heads/master | 2023-02-24T22:57:11.893984 | 2021-02-02T15:42:08 | 2021-02-02T15:42:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,671 | py | # Copyright © 2020 Sidemash Cloud Services
#
# 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... | [
"serge.nguetta@sidemash.com"
] | serge.nguetta@sidemash.com |
691d14e28d73bf783bdb8e31d1289980cfa3a85e | 3330b2672f6f4677e2a169469f5512f0e4d4e5a3 | /levelword.py | 25316903ab13ea6619ecf8d648674817a962631f | [] | no_license | XcloudFance/Project.Irene | 49dcf321c2ad947b4edf415f3501c5af93b163a2 | a6f2e5a66ecd963f303add439a164c63e0532f79 | refs/heads/master | 2021-07-03T16:09:51.048626 | 2020-03-07T07:45:34 | 2020-03-07T07:45:34 | 241,767,722 | 0 | 0 | null | 2021-05-30T02:29:04 | 2020-02-20T01:39:39 | Python | UTF-8 | Python | false | false | 1,767 | py | import requests_html
from requests_html import requests
from requests_html import HTMLSession
from bs4 import BeautifulSoup
from multiprocessing import Process,Pipe,Pool
import numpy as np
import redis
#redis_conn = redis.Redis(host='127.0.0.1', port= 6379, password= '', db= 0)
class node:
def init(self):
... | [
"34064977+XcloudFance@users.noreply.github.com"
] | 34064977+XcloudFance@users.noreply.github.com |
4dcf436b1af1fdf9501f398fbce1fe495b0d41bb | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/FCOS/configs/vfnet/vfnet_r101_fpn_2x_coco.py | d0a1f569463972dc5b7fe10c35f8fb5d3321a261 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 165 | py | _base_ = './vfnet_r50_fpn_1x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
lr_config = dict(step=[16, 22])
total_epochs = 24
| [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
392f1b32710b3e56af0c84af350bd6efebfe00da | 1d40d4532f1bb6f08d98a9c4dd8a3e711230bfea | /themes/migrations/0003_auto_20190104_0351.py | 2f28efea3ce670d190d5fc609f65f8628306e592 | [] | no_license | Swiftkind/market | 22f2a71548a4b2af97da8001ed0e0890cdee9316 | 4c5aedef9ffe2f16d80430ae3ac91ab053bf8c95 | refs/heads/develop | 2020-04-07T11:20:05.740553 | 2019-02-10T22:49:46 | 2019-02-10T22:49:46 | 158,321,793 | 0 | 0 | null | 2019-02-18T02:34:24 | 2018-11-20T02:51:07 | CSS | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.1.4 on 2019-01-04 03:51
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),
('themes', '0002_auto_2019... | [
"doradomiguel35@gmail.com"
] | doradomiguel35@gmail.com |
dc8bfcb8439268293ef63419fa45a3962b90fa89 | 9f4c0d12679c18701e83f1cc840a0f82e502cc18 | /models/menu.py | 0d349b4d7fe59b02377e2dc0c2c9b2859fbaab6f | [
"LicenseRef-scancode-public-domain"
] | permissive | kilimanjaro2/Library-Portal | afb76637836d96ecba3cbdb92de14c3266280319 | 55888a49f7d51fe65e891841d606dd2e4dc0ec0f | refs/heads/master | 2021-01-11T16:33:41.014410 | 2017-01-26T11:49:54 | 2017-01-26T11:49:54 | 80,110,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
#########################################################################
## Customize your APP title, subtitle and menus here
#########################################################################
response.logo... | [
"kilimanjaro2@localhost.localdomain"
] | kilimanjaro2@localhost.localdomain |
ba44720d56ea9eaa51525df76280889d5db4248f | a51902bfe09d32577eba968dd2c5c579505b0c16 | /webSiteProject/settings.py | 7cdf892a0b923d46d81949719bd75973dc42e86f | [] | no_license | Teekkarimetsastajat/newWebSite | 22bcd8267412f20c55cdbe40a07b32ed6cc3802a | a184e4e498d808fd5edbbf33a032c8c2d995ba6b | refs/heads/master | 2021-01-17T14:22:05.495613 | 2016-12-06T10:43:05 | 2016-12-06T10:43:05 | 55,509,771 | 0 | 0 | null | 2016-07-12T17:29:34 | 2016-04-05T13:24:02 | Python | UTF-8 | Python | false | false | 3,249 | py | """
Django settings for webSiteProject project.
Generated by 'django-admin startproject' using Django 1.9.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
impor... | [
"lauri.peltola@aalto.fi"
] | lauri.peltola@aalto.fi |
aaebb9ee00e234cedfd8b5c5a1593eeb6fd25a53 | 4bd6bf514826ce927d19ad969d34a2f76c0829f6 | /catalog/admin.py | dd908ee6bd4c62552295bcc27f28fded9ff652dd | [] | no_license | dangthihoa/mysite | 03bda2b80f82064dd06314a58276db05ce9dbb15 | b37c6b0e50732e41fdd37a424d1034994d321516 | refs/heads/master | 2022-12-04T10:52:12.706578 | 2020-08-13T09:20:57 | 2020-08-14T02:08:21 | 285,453,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from django.contrib import admin
from .models import Author, Genre, Book, BookInstance, Language
#admin.site.register(Book)
#admin.site.register(Author)
admin.site.register(Genre)
admin.site.register(Language)
#admin.site.register(BookInstance)
# Define the admin class
class AuthorAdmin(admin.ModelAdmin):
list_di... | [
"dang.thi.hoa@sun-asterisk.com"
] | dang.thi.hoa@sun-asterisk.com |
4ba12cdf38c6a4674d41c5c8b0e45392fa5521cf | c3db4c42360c47471635a97568bfc9c21bc14c06 | /pdfmerge/migrations/0018_field_field_question.py | d091202c1080d237688913ae37a521e3eeb390e0 | [
"MIT"
] | permissive | rupin/pdfmerger | 3ede9aa9f1f374eba9b1ea2c33b6920403a8f4ad | fee19523e88362d215f1a29cdab0d140f4c9385c | refs/heads/master | 2020-04-07T20:37:56.821730 | 2019-07-18T16:58:01 | 2019-07-18T16:58:01 | 158,696,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 2.1.3 on 2019-07-10 08:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pdfmerge', '0017_auto_20190707_1955'),
]
operations = [
migrations.AddField(
model_name='field',
name='field_questio... | [
"rupin.chheda@gmail.com"
] | rupin.chheda@gmail.com |
1cf415e37e252d91ffc466ca06613a4cadb53fa5 | 7c86d3bfcb044cdeff1e96cb5cfddfbd18a01cf6 | /Lecture6/src/homepage/admin.py | 8a7432230ac0487ad7b0f3dc7a651145156f18c2 | [] | no_license | michellextai/98215 | d360e9559d8bdf62244f792308b49f9158c253f8 | dd89d2c917782bd47d09a78e54f9d22fcfc1ec10 | refs/heads/master | 2021-01-10T06:31:52.400172 | 2016-03-08T07:03:38 | 2016-03-08T07:03:38 | 50,899,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.contrib import admin
# Register your models here.
from .models import blog
admin.site.register(blog) | [
"michellextai@gmail.com"
] | michellextai@gmail.com |
d76885027a58cf9fd8188064e6ad01e1ade42ed8 | ef48678dad15e860bfa033717c754d0f3d047a07 | /ejercicios_python/Clase 4/Sin título0.py | 61bf0cf09762926b148cdb9d14f3e30adccfb81b | [] | no_license | agustinfernandez/Python_Unsam | 7411e2ca33ef8f57defb36ac8b98fcf62bb55079 | 816151b98e70bde0448ed1a5af5874b1f870392b | refs/heads/master | 2023-01-11T13:46:21.954509 | 2020-11-17T18:53:58 | 2020-11-17T18:53:58 | 312,004,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 27 10:10:07 2020
@author: agustin18
"""
# def tienen_a(expresion):
# n = len(expresion)
# i = 0
# while i<n:
# if expresion[i] == 'a':
# return True
# else:
# return False
# i+=1
# rta =... | [
"noreply@github.com"
] | agustinfernandez.noreply@github.com |
7b982b5e2d58b297d4b4466319c1fb437e635850 | 81d7b9dd63d7e0129eca909271307a61cf2d4a7d | /test.py | 3267123b58c228cd0f687cec94d9691714888a95 | [] | no_license | sambiak/djikstra | 4c9e6c584aced4deea556c87578c1e01caf20a84 | ff18ed45662fd0146b45c224501cd4a90e564aea | refs/heads/master | 2021-08-22T06:33:39.070392 | 2017-11-29T14:44:18 | 2017-11-29T14:44:18 | 111,694,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | from djisktra import *
def graphe_non_orienté1():
G = dict()
G["a"] = {"b":6, "c":2}
G["b"] = {"a": 6, "c": 3}
G["c"] = {"b": 3, "a": 2}
return G
def graphe_non_orienté2():
G = dict()
G["a"] = {"b":6, "c":2}
G["b"] = {"a": 6, "c": 3, "d": 4}
G["c"] = {"b": 3, "a": 2}
G["d"] = ... | [
"gaugustoni@mourepiane155.etu.ec-m.fr"
] | gaugustoni@mourepiane155.etu.ec-m.fr |
b72a050a8db14761b2e3ec45dce8f1b91cdb0c07 | fc622a2514c7ee4086e9db657c41ff3f2eb790bd | /ipcheck.py | ecfd3b41f5ded2a16dbf52cf057ba1dd1ecb936b | [] | no_license | Owen000/IPcheck | 131e4e17ec805d85f2ad032c21aee0e68fa723ef | 98646d7eb77950bd6139f12cc30f9f8bef0884ca | refs/heads/main | 2023-03-30T03:44:27.863088 | 2021-04-09T21:42:30 | 2021-04-09T21:42:30 | 356,404,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | #Imports subprocess (used for async functionality)
import subprocess
#Asks user for input (can be dragged from desktop)
fields = ['IP', 'Response']
plist = input("Paste exact file path of ip list: ")
filename = input("What do you want the name of the output file to be?")
with open(plist, 'r') as fileobj:
d... | [
"noreply@github.com"
] | Owen000.noreply@github.com |
e8c1c049131555e638de9598eff80205c9df752b | 8dd6d5d843a82105592bf99f5afe79b644aa7d62 | /Pandas/pd8.py | ab65e91ffab4d207cd6fe7ea193e1679abadb266 | [] | no_license | SeelamVenkataKiran/PythonTests | a05869c7cb198e135de38661e8eff238cfda8faf | c01bf53d162b7cf9b69a3b2f5722425399325616 | refs/heads/master | 2023-01-22T10:22:33.752483 | 2020-11-29T18:08:48 | 2020-11-29T18:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | import pandas as pd
import numpy as np
#Axis indexes with duplicate values
ser11 = pd.Series(range(5), index=['a', 'a', 'b', 'b', 'c'])
ser11.index.is_unique
#Data selection with duplicates.
# Indexing a value with multiple entries returns a Series
ser11['a']
# Indexing a value with single entries return a scalar ... | [
"ajaykuma24@gmail.com"
] | ajaykuma24@gmail.com |
4fc6b2bc89bc622ffea7099b93f9ff84ba5fe6ca | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/280/82009/submittedfiles/testes.py | 58e6cb4900bd50ebf73f8061e32b3fbbb75a3190 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
"""
Aula de python (04/09)
"""
"""
print ("Hello World")
print ("Olá\nMundo")
print ("Antônio Marcos Cruz da Paz")
print ("18")
a=11
b=1037
print (a+b)
a=35
print ((9*a+160)/5)
h=30
d=10
print (3.14159*((d/2)**2)*h)
a=2
b=5
print ((2+5)**2)
"""
"""
Prog... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f044e59a2d8c9964b9e4360d450379c15ca426d7 | 7f5943bba5d189b8a9cd1aed36604a6c74cca3bf | /Python/98.py | 3f784c79d64fddb11269e967b4b7bc081494d7a3 | [] | no_license | EpsilonHF/Leetcode | 2b3ea060862997e9ebd4db5e75b821d09e596883 | cdf33ab470914210a0d710800337565d1697aa03 | refs/heads/master | 2021-08-18T07:36:10.547074 | 2020-05-08T12:41:10 | 2020-05-08T12:41:10 | 179,662,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | """
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the
node's key.
The right subtree of a node contains only nodes with keys greater than
the node's key.
Both the left and right subtrees... | [
"epsilonhf@outlook.com"
] | epsilonhf@outlook.com |
19a0dffc227328252e02acdbd7635de518c330fa | ff7b73e2142306c4019122874606fae0f09ce8f8 | /desirecart/wsgi.py | 13c56e143ada4fb6b461d45e449ac27fc8bb77d7 | [] | no_license | RajatPal158/E-Commerce | e5a276f42b8ee2a12dcec45ea1015b6c156ccd3e | 0547800ac0944e2142436792867885538add39e4 | refs/heads/main | 2023-08-07T16:48:31.872346 | 2021-09-23T20:30:50 | 2021-09-23T20:30:50 | 404,694,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for desirecart project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"noreply@github.com"
] | RajatPal158.noreply@github.com |
d8c5f97073544c655718a44ba248998ba5b1599c | b70c5ba9e3df90e2c99da2c6d80f48f043eaf578 | /Chapter_5_文件与IO/5.13获取文件夹中的文件列表.py | 4ad68cc6112730e9ac3612c76d0a816ce82feca8 | [] | no_license | zh805/PythonCookbook_Codes | 90bdb67ec789efe695f629abdec2c28ca90859c1 | 81c6d20c487650ffa7adc8be68fb2078fc4ec159 | refs/heads/master | 2022-07-14T13:10:01.791019 | 2020-05-13T03:37:10 | 2020-05-13T03:37:10 | 256,399,267 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | '''
@Time : 2020/05/05 19:21:14
@Author : Zhang Hui
'''
# 问题:想获取文件系统中某个目录下的所有文件列表
import os
import glob
import fnmatch
if __name__ == '__main__':
# 文件列表
all_names = os.listdir('.')
# print(all_names)
# Get all regular files
file_names = [name for name in os.listdir('.')
... | [
"771662863@qq.com"
] | 771662863@qq.com |
2aa946ad55db684d941665e168df9ddd64d00992 | 1574c8c379cdefe49ef35bd53c5181e783d6ce45 | /djproject/djproject/sync/migrations/0001_initial.py | 166fde6c8648160868253f6605c4d15a8099c64d | [] | no_license | sporty/FruitySync | 957ce495eb6e5f8c495acc97cb8307232b6ae462 | aefa53b65b9c555ec7cccce4ab923bff7c6b5376 | refs/heads/master | 2021-03-24T10:22:14.888552 | 2013-12-09T16:03:35 | 2013-12-09T16:03:35 | 4,232,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,320 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'SnsAccount'
db.create_table('sync_snsaccount', (
('id', self.gf('django.db.model... | [
"rt.sporty@gmail.com"
] | rt.sporty@gmail.com |
f39e6e125d9adbcb718d8c4e280946557001193a | 520908cb844d4f26e06c36675a0aeecd1d428942 | /teachDRL/gan/maze_generators/aldousbroder.py | 5f483767a55e32ebb0ee25a89d96066dbd59ca77 | [
"MIT"
] | permissive | pierreosselin/teachDeepRL | 713e3b2273aafbb4adcf562f745c69854c59b808 | 51b512ce17a271a63b4d8b0780850511eb008750 | refs/heads/master | 2023-08-14T23:47:27.575306 | 2021-09-23T20:37:36 | 2021-09-23T20:37:36 | 395,716,623 | 1 | 0 | MIT | 2021-08-13T16:13:20 | 2021-08-13T16:13:18 | null | UTF-8 | Python | false | false | 3,691 | py | # https://github.com/theJollySin/mazelib/blob/master/mazelib/generate/AldousBroder.py
import abc
import numpy as np
from numpy.random import shuffle
from random import choice, randrange
from pacman import make_grid
import cv2
class MazeGenAlgo:
__metaclass__ = abc.ABCMeta
def __init__(self, size=(17, 17)):
... | [
"pierre.osselin@gmail.com"
] | pierre.osselin@gmail.com |
5d22f877f65695e9ad850b005e38abd8a474084c | 15aa25f9d93cd2663a59f2e92e58fbb9624d323f | /backend/core/__init__.py | 5e09a1f8bca1ce1a6ca4966dc543dd903d3f4f68 | [] | no_license | chdsbd/vscode-python-ls-reproduction | 311a9febdef11cf9871ad72b8573f38f17ce09aa | 665f6f282dbbe32000065d4cc94af8429cbf1b56 | refs/heads/master | 2020-05-15T08:05:06.870189 | 2019-04-18T20:27:04 | 2019-04-18T20:27:04 | 182,152,958 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | def cli():
print('hello world')
| [
"chris@dignam.xyz"
] | chris@dignam.xyz |
e8107a19177723d616b7a18b7ffeb70bc030232e | 5aeace80063fdef57e7594ff5aa3f8c56b662042 | /todoism/apis/v1/auth.py | c496c01358bbab60f4e2b697f38d0a8069046d73 | [
"MIT"
] | permissive | TrumpUSA/todoism | 4491db32a78559b3f41f633ddbc1ea79c6f56b5c | dffda90e9a6f2ef04eecb0c068f61cfa2a955731 | refs/heads/master | 2020-04-11T03:53:30.058288 | 2019-03-23T07:09:08 | 2019-03-23T07:09:08 | 161,493,223 | 0 | 0 | MIT | 2018-12-12T13:35:21 | 2018-12-12T13:35:20 | null | UTF-8 | Python | false | false | 2,073 | py | from functools import wraps
from flask import g, current_app, request
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer, BadSignature, SignatureExpired
from todoism.apis.v1.errors import api_abort, invalid_token, token_missing
from todoism.models import User
def generate_token(user):
expira... | [
"withlihui@gmail.com"
] | withlihui@gmail.com |
858b628115ecbb92aca52d08a4a9c8a4267b07a4 | 0397b7112b0915f8b7a9d32d07853ce14980d1de | /pagerank.py | 76429d16cf907e0c181e84b44073b12e56be597f | [] | no_license | Sulemanovaaa/info_search | b7b4c75a3b23126b9942560a125b982ad9006ee0 | b5c8359ea963f01b7dbd9bd0a70adffa0f6bf431 | refs/heads/master | 2020-04-23T14:46:01.410728 | 2019-04-08T09:28:35 | 2019-04-08T09:28:35 | 171,243,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from crawler import load_redirect_map
import operator
def pagerank(answers):
redirect = load_redirect_map()
d = 0.25
N = len(answers)
pageranks = dict()
for page in answers:
summa = 0
for links in redirect:
for item in redirect.get(links):
if item == page:
summa ... | [
"sulemanovaaa@icloud.com"
] | sulemanovaaa@icloud.com |
e903f2aeb74765f6e935dbaf8f926ae38e99a4d9 | 5536a6e94d2761697e16db65d7e69f1930fcd7f2 | /cart/cart.py | 9ff74b331e64c023b5a8cd8cc9400c88b2626712 | [] | no_license | morshedmasud/e_commerse | 6b8614c5e8759eceb5125dc1ab5ee6a14a852b2a | 58bf694f9fea141ec9a0b8de52063f6318ce5f73 | refs/heads/master | 2020-04-01T14:40:26.055994 | 2019-05-11T17:00:28 | 2019-05-11T17:00:28 | 153,303,417 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,251 | py | from decimal import Decimal
from django.conf import settings
from product.models import Products
class Cart(object):
# Initialize the cart
def __init__(self, request):
self.session = request.session
cart = self.session.get(settings.CART_SESSION_ID)
if not cart:
# save an em... | [
"masudraj6@gmail.com"
] | masudraj6@gmail.com |
52c0d97eb821a1b0157be50def2a1d1c46208948 | 88022686e05595ea2f22bc74617202ff4a214f65 | /stories/views.py | 600bbc6903193f931fe23fb3aab7b2590a4492fb | [] | no_license | mohamedAbdElhameed/ricardo | 22fbda1f94290166b8e24a8d1de6d4269ded4b2b | b3258b1080e23b4f87d6af5f37daf50e70d3e87e | refs/heads/master | 2022-12-15T06:25:26.906532 | 2020-05-23T02:37:39 | 2020-05-23T02:37:39 | 155,744,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | from django.shortcuts import render
# Create your views here.
from products.models import Category
from stories.models import ArtisanMaster, Tale
from userprofile.forms import SignUpForm, LoginForm
def masters_view(request):
masters = ArtisanMaster.objects.all()
categories = Category.objects.all()
sign_u... | [
"mohamedabdelhameed34@gmail.com"
] | mohamedabdelhameed34@gmail.com |
10cd9918c5d0e08e3736f3197fb1f3ffb2ad3ec3 | 5bbfb88f5e6d5af4ffdd424c72713ee8e9fb7073 | /NewProj/env/app/flask_rest_app.py | 7a74292804b7d999570e31e9340489987965f558 | [] | no_license | Icode4passion/myPytho2code | 7e958a7c2acd1495410c8d3ba56aa1bde938b168 | ac7ac954c4fb617451713be5ad60a6e08ce74c31 | refs/heads/master | 2020-03-25T10:51:06.723836 | 2018-08-06T09:43:46 | 2018-08-06T09:43:46 | 143,708,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from flask import Flask
from flask_restplus import Resource , Api
app = Flask('__name__')
api = Api(app)
@api.route('/hello')
class HelloWorld(Resource):
"""docstring for HelloWorld"""
def get(self):
return {'hello':'world'}
if __name__ == '__main__':
app.run(debug = True)
| [
"yogeerama@gmail.com"
] | yogeerama@gmail.com |
e93039f1ea685d28128320151b61e83c0f7ec59e | 0a900c26f163cbcb592b94a88ced63cd751f6f74 | /projects/remstat/rc_remstat.py | 59fc320d8c0a6195c268027011bb35307b774c43 | [] | no_license | choco1911/try_py | b56e7818498b848cbb4f79a6f434c00597041f91 | 5ca2960402d28cc30ffbefb420032450a8d3e4a0 | refs/heads/master | 2021-01-12T05:35:49.177898 | 2017-02-09T16:45:17 | 2017-02-09T16:45:17 | 77,140,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,880 | py | #!/usr/bin/env python
import urllib2 as u
import re
import operator
servs = dict()
web_page = 'http://mailmon2.rambler.ru/cgi-bin/problem.cgi?report=hdd_smart_attributes&attr=5'
def getHtml(urll):
req = u.Request(urll)
html = u.urlopen(req).read()
#print('Get data from site')
return html.split('\... | [
"choco@rambler-co.ru"
] | choco@rambler-co.ru |
d34bfba5821dcb55b1e8f2cbfc59752953f18a40 | d15f7e7616d54576dee9b9f235e9d5b68f0dbe79 | /tests/granular/test_words.py | c4a962ec5eb9fa2c27d957bfaa4b79cbd6383c2f | [
"Apache-2.0"
] | permissive | MANISH007700/nlp_profiler | f371d59a18c751c7f2a1286ff38bc85f409a7cd3 | a610f0e49b2c7b3a0ed2d0d16d04c86b48a9872c | refs/heads/master | 2023-01-19T01:26:10.310960 | 2020-11-27T02:13:13 | 2020-11-27T02:17:16 | 316,686,101 | 1 | 0 | NOASSERTION | 2020-11-28T08:06:08 | 2020-11-28T08:06:08 | null | UTF-8 | Python | false | false | 1,783 | py | import numpy as np
import pytest
from nlp_profiler.constants import NaN
from nlp_profiler.granular_features.words \
import gather_words, count_words # noqa
text_with_a_number = '2833047 people live in this area'
text_to_return_value_mapping = [
(np.nan, []),
(float('nan'), []),
(None, []),
]
@pyte... | [
"sadhak001@gmail.com"
] | sadhak001@gmail.com |
ff8fe1e7b0adadab747445b080980151c55c552a | b8a25f07753481521c8aa0f9217aa1b8112a91a2 | /srv/asgi.py | 42d80d0047499a53feebfa61b890fa1cf3803c30 | [] | no_license | rudGess/web1c | f55e30bed0d223e18d8d6203a451af3cf8c72294 | 5c8b73082217dea3b88165212bdec3549c6fe2e3 | refs/heads/master | 2023-08-03T22:57:01.500631 | 2021-09-24T17:38:29 | 2021-09-24T17:38:29 | 410,048,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | """
ASGI config for srv project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.asgi import ge... | [
"Frenki4palica@yandex.ru"
] | Frenki4palica@yandex.ru |
608f1b5f7a4e0584bda407870c0aeab19bfe99eb | 255de81bb35ca27b5362b7c872132aa58a87a29b | /Predictor-LinearRegressionOneVar.py | bd48819dd953267b1037a2619801be332397b321 | [] | no_license | etowusu/LinearRegressionOneVar | 7411f31e32673cb8a07f2e7ea802e76c55c5e301 | c47479a52919a0f30417a1cd8926053016cd14c5 | refs/heads/master | 2020-09-04T16:49:27.930932 | 2019-11-06T21:46:58 | 2019-11-06T21:46:58 | 219,809,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | def predict(X,theta):
"""
Takes in numpy array of x and theta and return the predicted value of y based on theta
"""
predictions= np.dot(theta.transpose(),X)
return predictions[0] | [
"etowusu@gmail.com"
] | etowusu@gmail.com |
ff47455f97a12eb18764b2e2dd20cfd0ae263b0e | 9e5608843fd165cfdd02d1b3214c1244ec3cfeae | /test/test_core.py | 06383f8f3bb2dc7683fe72c50892fd1966c66eb7 | [
"BSD-2-Clause"
] | permissive | OliverPSZ/lamprop | 3ba4b046ecc04a0f46aed0306903990c5f896a25 | b8ba07913448c269b7ba8ce11a198845552d934f | refs/heads/master | 2022-04-09T04:33:08.441607 | 2020-03-13T20:30:30 | 2020-03-13T20:30:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | # file: test_types.py
# vim:fileencoding=utf-8:ft=python:fdm=marker
#
# Author: R.F. Smith <rsmith@xs4all.nl>
# Created: 2015-04-05 23:36:32 +0200
# Last modified: 2019-01-01T02:40:22+0100
"""Test for lamprop types"""
import sys
# Inserting the path is needed to make sure that the module here is loaded,
# not an inst... | [
"rsmith@xs4all.nl"
] | rsmith@xs4all.nl |
2da7c30eaed45f2b40980583085df5d884f197a3 | bb527b98ffe5c458608059087b29b2e1ff04645c | /crossword/urls.py | 28f45260619fc0eeee556835b6a55313968355b4 | [] | no_license | adecker89/Collaborative-Crossword | cc2a1784d4cc6a51ad4b1171233d458ef05c1f7d | 3849d6a7da277b191d1538002e047a036d786ccb | refs/heads/master | 2021-01-01T05:34:24.456932 | 2012-04-11T03:22:37 | 2012-04-11T03:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'crossword.views.home', name='home'),
# url(r'^crossword/', include('crossword.foo.urls')),
... | [
"adecker89@gmail.com"
] | adecker89@gmail.com |
67d6e19618ccf25a7d4121d48598dcff95796dfe | 48be040a96ee190c9c473e7e4b02d1f4253a2d14 | /gromos2amber/__init__.py | 79fc6ec847e2745bae28a37dc14b458ac3efd6ec | [
"MIT"
] | permissive | ATB-UQ/gromos2amber | 22c6944e512590db00d49770e9048efa89d02ef8 | afe2112b28ec47a863607da514f9e8832cc426f0 | refs/heads/master | 2023-06-24T13:56:37.723640 | 2023-06-06T23:32:34 | 2023-06-06T23:32:34 | 196,283,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py |
from .Converter import convert
from .Errors import GromosFormatError, IllegalArgumentError
| [
"contact@tomlee.com.au"
] | contact@tomlee.com.au |
11e2847e92b4b026669f4204ab265c94131f3bea | b3281a2988342ab5ee2b968b2ded686cf9c09c9b | /ckanext-ceh-comment/ckanext/ceh_comment/commands/command.py | 8bb4b0c8bc07bf22313b1178893ce8f95fc4b4d4 | [] | no_license | glujan04/ceh_ckan | 0516d0f5fe927f550443887debdd39e9e5f1e546 | 2ebb08c83de077daa194e613decc5be40f7eb882 | refs/heads/master | 2022-11-27T13:30:26.654388 | 2020-08-11T19:46:22 | 2020-08-11T19:46:22 | 286,791,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | from __future__ import print_function
import sys
from pprint import pprint
from ckan import model
from ckan.logic import get_action, ValidationError
from ckan.plugins import toolkit
from ckan.lib.cli import CkanCommand
class CehComment(CkanCommand):
'''CehComment remotely mastered metadata
Usage:
ce... | [
"glujan04@github.com"
] | glujan04@github.com |
50abf53e3a15ea6328179df1801559cc195cd590 | f70d5a5f3147d49ba046388057da5baf42997783 | /stackdjango/urls.py | ce998155c057224ee9779640148aed5a05e13a6b | [
"MIT"
] | permissive | arathijagdish/stackdjango | 76a2c3b75e5d52d91aeb256f957b0b1ee4d953e4 | 2064459fcbccc4069660cf23d68c7ca26aea110c | refs/heads/master | 2022-12-25T20:45:33.368843 | 2020-10-09T11:50:17 | 2020-10-09T11:50:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | """stackdjango URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"mishelvettukattil@outlook.com"
] | mishelvettukattil@outlook.com |
ab814df1e19d524f90b6ec14783658f970b2b78f | 0ecc632414dac4f698330a2ff00cd210dfd34297 | /apps/CMDB/migrations/0037_auto_20181219_2035.py | 8eaf7e3939599baec47042a78e134ff1114a8014 | [] | no_license | qiuwenhuifx/roe | 0a6acd9356d65a50acb473012319fbc115aaa791 | 688729480f1d047f7eab9ffaf316d2d56046111d | refs/heads/master | 2021-07-13T03:15:00.266986 | 2020-05-31T13:12:01 | 2020-05-31T13:12:01 | 148,592,094 | 1 | 0 | null | 2020-05-31T13:12:02 | 2018-09-13T06:27:36 | JavaScript | UTF-8 | Python | false | false | 443 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-12-19 12:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('CMDB', '0036_auto_20181213_1404'),
]
operations = [
migrations.AlterUniqueTogether... | [
"flc009@163.com"
] | flc009@163.com |
33c6d15a089071143f72c473f9eaddb43f0a52c9 | 3b92adca223a7b5f8df881a3cc6c0f717c6536f2 | /crm/urls.py | 5358c26a296b5f3541999665f79be4c2c92f8fff | [] | no_license | archdim1/crm_smartbuild | aefa28a6489cfafa3a0fe65807972bcd5e58a085 | ab5f3bbe92a36184383d04e00da9ed35f2a9175a | refs/heads/main | 2023-07-22T03:36:12.486853 | 2021-08-24T15:33:47 | 2021-08-24T15:33:47 | 398,759,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | from django.urls import path
from .views import \
CompanyDetailView, \
CompanyCreateView, \
CompanyDeleteView, \
CompanyUpdateView, \
CompanyProjectsDetailView, \
ProjectDetailView, \
ProjectDeleteView, \
ProjectUpdateView, \
CompanyProjectsNotStartedDetailView, \
CompanyProjects... | [
"archibelousov@gmail.com"
] | archibelousov@gmail.com |
96f95611c168147d5b4d65814ff89772133e9dad | b79818001c10fc26125496077ff8d74856570ea4 | /auth/tests/models.py | c864fce217fd25839a5ea73a6ce56e1af85bfa0f | [] | no_license | nexascale/nexathan | eb9ffdf8ad26db2f5017e8bd4317c8d4bf4df40a | 22ba52092ff3598f790ff3284104ad1f0ca692de | refs/heads/master | 2021-01-17T05:34:04.911657 | 2011-05-27T20:45:55 | 2011-05-27T20:45:55 | 1,660,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | from django.conf import settings
from django.test import TestCase
from nexathan.auth.models import User, SiteProfileNotAvailable
class ProfileTestCase(TestCase):
fixtures = ['authtestdata.json']
def setUp(self):
"""Backs up the AUTH_PROFILE_MODULE"""
self.old_AUTH_PROFILE_MODULE = getattr(setti... | [
"nexascale@gmail.com"
] | nexascale@gmail.com |
731f3151c859fbee1a2b02c34ae093ac8b5e7150 | 249bf0a1b3b6368c851234b260abc6bfee58d4b1 | /game_deplacement.py | 40a697e7413eff235fac0bd2fef6e6d2d7049588 | [] | no_license | urvd/2048 | e3b60566a8adffa4414343be16b545f060b23b53 | 5a7cb7e0c33b7e2257fac70dcd4e1fba60d51787 | refs/heads/main | 2023-02-21T12:06:30.198281 | 2021-01-27T22:40:55 | 2021-01-27T22:40:55 | 302,426,467 | 0 | 0 | null | 2021-01-07T09:09:19 | 2020-10-08T18:18:50 | Python | UTF-8 | Python | false | false | 6,670 | py | import math
#action_left_limit
from copy import copy
from case_de_tableaux import Case
def show(states, len):
for col in range(len):
res = ''
for row in range(len):
if (row == len - 1):
res += '| ' + str(states[(row, col)]) + ' |'
else:
res ... | [
"uriel.vido@hotmail.fr"
] | uriel.vido@hotmail.fr |
5b79ef2e09e916e395b10697694b70a64388948c | 42c018a34285488c7bdaea525c24fae30e512415 | /model/operators.py | 2c061e750fbf6283c4c2207ae40e0444e5d50f0c | [
"MIT"
] | permissive | arita37/Zeroshot-GAN | 55f055a575988ee476d798e0fe4572113b2621cb | 1a99766c64bd6e28ff621cd04cb7d21ef6ce92db | refs/heads/master | 2022-01-07T17:10:29.829988 | 2018-04-29T09:06:38 | 2018-04-29T09:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,583 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
import numpy as np
import tensorflow as tf
import scipy
import cPickle
import os
import glob
import random
import imageio
import scipy.misc as misc
log_device_placement = True
allow_soft_placement = True
gpu_option... | [
"zuiaineo@foxmail.com"
] | zuiaineo@foxmail.com |
10b5ae95355c1e9e2dc296bec61f375ee994c223 | a6106cedc42dcab94ccc4ee6d681372d2246ce5e | /python/활용자료/예제/13/ex13-3.py | 87df268d5b02428277de9099026e305e6aa4e74c | [] | no_license | leemyoungwoo/pybasic | a5a4b68d6b3ddd6f07ff84dc8df76da02650196f | 481075f15613c5d8add9b8c4d523282510d146d2 | refs/heads/master | 2022-10-08T19:57:26.073431 | 2020-06-15T06:50:02 | 2020-06-15T06:50:02 | 267,502,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import numpy as np
data1 = np.zeros(10)
print(data1)
print(data1.dtype)
data2 = np.zeros((2, 3))
print(data2)
data3 = np.zeros((2, 3), dtype=np.int32)
print(data3) | [
"mwlee2587@gmail.com"
] | mwlee2587@gmail.com |
20d078b4e77f64731c2b7679455f1ac78f6bdf9c | c35362d5d17bc57688ea77e796d310fa34ac6b48 | /Antlr2/Source_Code_Analysis.py | 61feab8180764ffdca5fd79495a696904f76034b | [] | no_license | parsamorsal/Vulnerability-Insertion | a0a7820d62a76f287c8cb890dd381b86d7576658 | a3f9f20d000b04fc3ab84cff386924c614c53286 | refs/heads/master | 2020-09-20T22:13:45.513804 | 2019-11-28T09:05:41 | 2019-11-28T09:05:41 | 224,603,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,313 | py | import sys
import collections
from antlr4 import *
from CLexer import CLexer
from CParser import CParser
from CListener import CListener
def main():
get_file()
file = FileStream("program.c")
lexer = CLexer(file)
stream = CommonTokenStream(lexer)
parser = CParser(stream)
tree = ... | [
"parsa.morsal@gmail.com"
] | parsa.morsal@gmail.com |
74b8ee0b52f345b94e5c3b3e63e8e2c9f074acd2 | 2ab1bfbc8c89a2448facf1d7636a80d7f9f45608 | /nlpnet/utils.py | eecb182865bcae1517d784e381149ab6e31114aa | [
"MIT"
] | permissive | eduardosan/nlpnet | e1fe7fbe4027eeda13710a7185af17efe2bf8d75 | 601f5411f8858505768e785d20d45abec100bb7e | refs/heads/master | 2019-07-12T03:00:04.421042 | 2014-05-19T18:38:17 | 2014-05-19T18:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,602 | py | # -*- coding: utf-8 -*-
"""
Utility functions
"""
import re
import logging
import nltk
import numpy as np
from nltk.tokenize.regexp import RegexpTokenizer
import config
import attributes
# these variables appear at module level for faster access and to avoid
# repeated initialization
_tokenizer_regexp = ur'''(?ux... | [
"erickrfonseca@gmail.com"
] | erickrfonseca@gmail.com |
638d1060ff17dc040d47d964c661fab869e786ca | caf90dfe5eb1d9f5ad70b46def46346b06c7c651 | /lesson6.py | 4c2e3dafbee923f28b621a15b3a40eae7bc8f89d | [] | no_license | cheyangggg/cheyangdecangku | 1f9180993f4196db999076544852302be867847c | 85376712638d3cb76d62f76b4e3cfb9f5cc45f0e | refs/heads/master | 2022-11-17T11:10:49.475075 | 2020-07-16T11:08:46 | 2020-07-16T11:08:46 | 272,627,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,741 | py |
# 接口自动化步骤
# 1.excl测试用例准备ok,代码自动读取测试数据
# 2.发送接口请求,得到响应信息
# 3.断言:实际结果和预期结果比较——通过/不通过
# 4.写入通过/不通过到excl里
# 第三方库:操作excl表格————openpyxl库:实现excl读取测试数据,并写入数据
# 1.安装 pip install openpyxl 2.导入
# 注意:把文件拉到pycharm里,lesson6同级,方便读取
# EXcel中三大对象:
# 1.工作簿workbook
# 2.表单shell sheet = wb['register']获取表单
# 3.单元格ce... | [
"cheyang1118@163.com"
] | cheyang1118@163.com |
52910eb5556673b244e2ed6934696591f10c0ddc | 98681f52c31debaf58c75202b945ec11426b1ff3 | /samples/py_sample/run_sample.py | 0e94c486b45305c4a9959f5c314931c84887b49e | [
"MIT"
] | permissive | whn09/EDCC-Palmprint-Recognition | d59c8fb92f2ddae315c62fd9aece11b042da4afe | 57f589f4d9f0bb522a9f8ca9d677b918a8761e16 | refs/heads/master | 2020-03-22T16:57:48.566914 | 2019-01-25T04:25:02 | 2019-01-25T04:25:02 | 140,363,523 | 1 | 0 | null | 2018-07-10T01:59:41 | 2018-07-10T01:59:41 | null | UTF-8 | Python | false | false | 6,074 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*
import os
from edcc_adapter import *
from PalmprintImageFactory import *
from PalmprintCodeRepository import *
import time
class PalmprintCodeDTO(object):
def __init__(self, ID, instanceID, imagePath, code):
self.palmprint = PalmprintDTO(ID, instanceID, image... | [
"513887568@qq.com"
] | 513887568@qq.com |
6760603b7754e9c68b36c7f7dd9d84a2f2b0021b | f4a01269d4c2ce3d6cebab5731620a343cd92337 | /tingweb/migrations/0010_userresetpassword.py | 5602776ef67acadf2dd15c8fba4bca92add32e14 | [] | no_license | irchriscott/Ting.com-Web | 12ca685208b14d09f95eb2dfe832fdff7fa0cf4c | 23121327a02bc437038fc507681a11a599640574 | refs/heads/master | 2023-01-07T19:22:35.435177 | 2021-04-04T13:15:34 | 2021-04-04T13:15:34 | 189,359,859 | 1 | 0 | null | 2023-01-07T06:27:32 | 2019-05-30T06:38:08 | JavaScript | UTF-8 | Python | false | false | 977 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-12 08:12
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tingweb', '0009_promotion_category'),
]
operation... | [
"irchristianscott@gmail.com"
] | irchristianscott@gmail.com |
d5a2904e70fa7cb4092b1e19025ce5bf4d415b44 | 39e1e256acae3fe9be4434024d42b9bb47bdd02f | /browser-request-logger.py | 46a0ec65b4fa7422e210f90bead13609251462a9 | [] | no_license | neulab/tranx-study | 9fb67b9a2181f0b362e4f97316c502eee4539b19 | e2a7089689f7f95e773e19c8f19513abe4fb8b9b | refs/heads/master | 2023-06-14T04:46:01.010892 | 2021-07-08T09:29:05 | 2021-07-08T09:29:05 | 250,357,553 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | import os
import time
import requests
from utils import read_current_user_task
"""
RequestsLogger is an addon for mitmdump that logs information about request
and response pairs to server. As it does not do any changes to the body of the
request/response, I advise to run it with `--set stream_large_bodies=... | [
"frankxu2004@gmail.com"
] | frankxu2004@gmail.com |
3d4c3eb3118985746e7b85d5db222f792fcbc570 | 6879753209a2c1641b143a18640d7e83c325b198 | /RankCompare.py | 73566ee602eddd5e0dc0005a795ff59a04afc83d | [] | no_license | EmileDHaene/WordFrequencyCounters | 7a74fa1e3d61efd277e469851663ac72ba386877 | cf3f0745c905e42c819955521b0e4d3cb9f33e56 | refs/heads/master | 2022-07-11T21:19:35.678548 | 2020-05-17T16:34:20 | 2020-05-17T16:34:20 | 264,710,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,328 | py | import matplotlib.pyplot as plt
import sys
import operator
import argparse
import csv
import numpy
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
"word",
help="the word to be searched for in the text file."
)
parser.add_argument(
"filename",
... | [
"noreply@github.com"
] | EmileDHaene.noreply@github.com |
3580f9914a3e50e1aa6916f722ff3c976dc3b7b7 | ba35b813b5a5e3eaf2eb1a017c1427fcb4b88978 | /python_stack/flask/flask_mysql/create_read_pets/server.py | 41f1f73fbc372cddff107d6a3167789704627a52 | [] | no_license | bluecrayon52/CodingDojo | 08d3b5d745ec898cf43e731aabc48bc676ce9f34 | 1cc53c8f05760b2c1860e39c58b68a61bb6b7cb9 | refs/heads/master | 2020-04-29T13:35:27.052435 | 2019-05-13T16:20:37 | 2019-05-13T16:20:37 | 176,172,794 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | from flask import Flask, render_template, request, redirect
# import the function that will return an instance of a connection
from mysqlconnection import connectToMySQL
app = Flask(__name__)
@app.route("/")
def index():
# call the function, passing in the name of our db
mysql = connectToMySQL('pets')
# ca... | [
"16687465+bluecrayon52@users.noreply.github.com"
] | 16687465+bluecrayon52@users.noreply.github.com |
4a17901fb414e1cfb8021a49ed8465d6f5d36c5c | bc22d49505eee02849e34970c2cade3c5f38ba25 | /dota-benchmark/tests/test_fbnet.py | 5382b92da51ca92b0a41ac83c66ec25283c5ab85 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Davis-love-AI/CV-2019-Fall-Course | 2937d74c2daa1eacb9f290f0d3d5e2f3f5769e43 | bfe46f7e004483f59299ea19ff41b9ad9b8d96bf | refs/heads/master | 2022-03-28T19:58:33.065889 | 2020-01-09T13:51:45 | 2020-01-09T13:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import unittest
import numpy as np
import torch
import maskrcnn_benchmark.modeling.backbone.fbnet_builder as fbnet_builder
TEST_CUDA = torch.cuda.is_available()
def _test_primitive(self, device, op_name, op_func, N, C_in, C_out, expand, strid... | [
"XuehaiPan@pku.edu.cn"
] | XuehaiPan@pku.edu.cn |
18dba6e7cb63aa7c3ea62bc795d5f73a4039aa28 | 99b7f1a8bde483d38c808576d6794b9377c0409b | /mycommand_tests/acceptances/test_cli_logger.py | 227ccf5a2bdcc6a945b8cb4a3311726936817dd3 | [
"MIT"
] | permissive | FabienArcellier/spike_json_formatter_for_logging_python | 17249089a1fcd251d8f5b085c199c2423dbde7fd | e4e831d24039a5484af05654a30189ec658b1eac | refs/heads/master | 2020-05-19T07:46:15.439668 | 2019-05-04T14:21:46 | 2019-05-04T14:35:22 | 184,904,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | # coding=utf-8
import json
import sys
import unittest
from io import StringIO
from mycommand.cli_logger import get_logger
class CliLoggerTest(unittest.TestCase):
def setUp(self):
self.stderr = sys.stderr
self.stderr_mock = StringIO()
sys.stderr = self.stderr_mock
def tearDown(self):
... | [
"farcellier@octo.com"
] | farcellier@octo.com |
5c77b58b960e7d80d32ffb0e8e9efb1cc1fe1979 | db903a5e99712d1f45e1d45c4d77537f811ae569 | /src/python/pants/backend/python/util_rules/interpreter_constraints.py | 1b8e67d19729242b40f6b2eb83105f17f2289258 | [
"Apache-2.0"
] | permissive | Hirni-Meshram2/pants | 777db8ea67c1fc66de46f0ab374ba4fff8597357 | e802d62cc68176aa66947a939c771b01f47d5425 | refs/heads/main | 2023-05-01T09:23:10.973766 | 2021-05-19T08:24:50 | 2021-05-19T08:24:50 | 366,021,656 | 0 | 2 | Apache-2.0 | 2021-05-10T11:38:07 | 2021-05-10T11:38:06 | null | UTF-8 | Python | false | false | 10,142 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import functools
import itertools
from collections import defaultdict
from typing import FrozenSet, Iterable, List, Sequence, Set, Tuple, TypeVar
from ... | [
"noreply@github.com"
] | Hirni-Meshram2.noreply@github.com |
9791cdad6d0536107ee110dc74e7810dcaa4262f | 5bcbd788faf57bc867aa365096ba9f9db51f64d6 | /pageDemo/pageDemo/wsgi.py | 126f3dbcaff28013ca17263b989a791604647a04 | [] | no_license | sunren123/Python | 8c2fbf6a1552cd6c3fb80048e2fd6718e9ca85e0 | ee80fc805d2517e1d69d3d1d55edbd370bf8fd9b | refs/heads/master | 2020-04-06T16:27:21.471948 | 2018-12-10T13:07:16 | 2018-12-10T13:13:30 | 157,620,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for pageDemo project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"462227979@qq.com"
] | 462227979@qq.com |
18dbba319cb3ef28d2fcaa47fe2029c18352b524 | e7bc9bf2dfc3538c68cf0ae0b1e1ac396df87bbf | /stats-monitor/api/urls.py | 87c09031bf47ab0c02f9195cbcc9c29e6f43f24b | [
"MIT"
] | permissive | cryptobench/golemstats-monitor | 84d7677935333f2f7c5551718683de7c2644dfaa | affbb8ff3c428ed8bb437db92d0d869354931826 | refs/heads/master | 2023-05-04T08:47:36.106127 | 2021-05-28T12:37:16 | 2021-05-28T12:37:16 | 366,701,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.urls import path
from django.shortcuts import render
from . import views
app_name = 'api'
urlpatterns = [
path('', views.FullLog),
]
| [
"phillip@golemgrid.com"
] | phillip@golemgrid.com |
f6afc5671b7cf400d2f9edd37587cd75cd30459e | 4443d08048f9980045e5f0541c69db0d756391d1 | /partner_ngos/programs_management/doctype/indicator_tool/test_indicator_tool.py | 28fd19f623e734f4cd2e5e8399ebdc359cfe0344 | [
"MIT"
] | permissive | mohsinalimat/partner_ngos | dea0db6e0f9718e7ffc69f7171bdb1603a055d72 | 4a345fb6989ff5a21db7fca07aa4e5174dca8f59 | refs/heads/master | 2023-03-15T13:15:40.571368 | 2020-07-09T07:22:59 | 2020-07-09T07:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Akram Mutaher and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestIndicatorTool(unittest.TestCase):
pass
| [
"frappe@ubuntu.vm"
] | frappe@ubuntu.vm |
2cbf45b9287321db3c32577c13b6b844623a137f | 6b9714ab4d4d6c69259aa5f8641e11b92aa3389c | /setup.py | 9e59a4cd4f8e910d3e1999c643fb139e1d1d77bf | [] | no_license | anujgulati/repository1 | 676436699eb62828eae1549f1391093f84a30799 | 8c6604c982768c1cf00db7ae7367aa60c97ee441 | refs/heads/master | 2021-06-01T17:08:04.794706 | 2021-05-18T11:17:18 | 2021-05-18T11:17:18 | 18,926,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | print('Hello, world! this is my first test s2- file- anuj')
print('balle shawa balle shawa')
| [
"noreply@github.com"
] | anujgulati.noreply@github.com |
fbfbe35c0fb0bba849098594867e351a69ca1810 | 6f9426260fc668fe7478f172f1bb8cf080339759 | /code/jianshu.py | 026935d001ad1ebf4482babf48113a1361a55e7b | [] | no_license | DriverSong/Huaweiruantiao_2018 | bac3312b5196848462fcc3d493ad3ca11b487646 | 3d3a2b1b856bceee731550c75b3924dcc5fbf276 | refs/heads/master | 2021-03-31T00:37:06.808004 | 2018-03-29T10:13:15 | 2018-03-29T10:13:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,591 | py | # -*- coding:utf-8 -*-
import pandas as pd
import numpy as np
from statsmodels.tsa.arima_model1 import ARMA
import sys
from dateutil.relativedelta import relativedelta
from copy import deepcopy
import matplotlib.pyplot as plt
class arima_model:
def __init__(self, ts, maxLag=9):
self.data_ts = ts
s... | [
"sijieqian@foxmail.com"
] | sijieqian@foxmail.com |
846bed4e9453324aa3a7fb1a5ce934bd477987c5 | 73c9537b3e2dd9c57e581d474b9e2daf7a8fb02a | /portalpetcc/atividades/migrations/0021_auto_20160423_1616.py | 8a121e57a2c618238c4a1245a4fc58b440f57782 | [] | no_license | pviniciusm/petcc | 8f6ec2966729051f11b482c4c7ed522df3f920ba | 30ccddce6d0e39ccea492ac73b2ddca855c63cee | refs/heads/master | 2021-01-21T13:29:52.835434 | 2016-04-23T18:06:07 | 2016-04-23T18:06:07 | 54,607,007 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import datetime
class Migration(migrations.Migration):
dependencies = [
('atividades', '0020_auto_20160423_1615'),
]
operations = [
migrations.RemoveField(
model_name='at... | [
"pvinics@gmail.com"
] | pvinics@gmail.com |
c4443b3628789cf496fd597c99da7d5c309b892e | 24946a607d5f6425f07d6def4968659c627e5324 | /HackerRank-30-Days-Challenges/d29.py | 070dc42ec9d10e85936c892e53021e6e0ad66aaf | [] | no_license | mmrubayet/HackerRank_solutions | 5d8acbb8fd6f305a006f147e6cb76dbfc71bbca5 | f1c72fbf730b6a79656d578f6c40a128a6f0ac5c | refs/heads/master | 2023-06-02T16:51:18.017902 | 2021-06-19T18:35:41 | 2021-06-19T18:35:41 | 233,853,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | t = int(input())
for _ in range(t):
n, k = map(int, input().split())
maximum = 0
for a in range(n-1, 1, -1):
for b in range(n, a, -1):
ab = a&b
if k > ab > maximum:
maximum = ab
if maximum == k-1:
break
if maximum == k-1:
... | [
"m.rubayet94@gmail.com"
] | m.rubayet94@gmail.com |
4ed69fad2fa0e115898e23a9601da84e556103dc | 933e9343194383d480d49126b2ffb1efe09cb0cd | /api/background/manipulators/position_manipulator.py | 61932fe4ce2bdf5b2a8c171e0bf2623b7c6f7e2c | [] | no_license | ostaninanastya/space_ship | e67b564ef53af2ad5fdbab5babd2ce0d4d42394b | 88ed6c173b3f10908cd8d2ee9ece25dac6a9361f | refs/heads/master | 2020-03-07T00:25:57.391503 | 2018-06-15T17:15:45 | 2018-06-15T17:15:45 | 127,157,140 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | import sys, os
import configparser
import datetime
import graphene
sys.path.append(os.environ['SPACE_SHIP_HOME'] + '/api/background/mappers')
from position_mapper import PositionMapper
sys.path.append(os.environ['SPACE_SHIP_HOME'] + '/logbook')
import cassandra_mediator
config = configparser.ConfigParser()
config.... | [
"zeionara@gmail.com"
] | zeionara@gmail.com |
ee208ab4675636710f8c6b6961a514af75ee1208 | e32bb97b6b18dfd48760ed28553a564055878d48 | /source_py3/python_toolbox/caching/cached_property.py | b37f9dd0a1b3806a1c67e463d035432846e91edc | [
"MIT"
] | permissive | rfdiazpr/python_toolbox | 26cb37dd42342c478931699b00d9061aedcd924a | 430dd842ed48bccdb3a3166e91f76bd2aae75a88 | refs/heads/master | 2020-12-31T04:15:53.977935 | 2014-04-30T23:54:58 | 2014-04-30T23:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | # Copyright 2009-2014 Ram Rachum.
# This program is distributed under the MIT license.
'''
Defines the `CachedProperty` class.
See its documentation for more details.
'''
from python_toolbox import decorator_tools
from python_toolbox import misc_tools
class CachedProperty(misc_tools.OwnNameDiscoveringDescriptor):
... | [
"ram@rachum.com"
] | ram@rachum.com |
73e8cea08fed55cb41bafe7747f679e33f16c5e4 | 1a2ab983bd0043bced47a1d4c5b9184821f05c09 | /tensordiffeq/__init__.py | 177dc38dbf3418c168868e80f13ea56bc87078a4 | [] | no_license | tensordiffeq/TensorDiffEq | c447a0efe4e558f64565865f2c2ade7c5d7255eb | 7633927b8471a4150ea25972fbf41902af01070d | refs/heads/main | 2023-06-21T12:44:33.099745 | 2022-03-01T07:26:05 | 2022-03-01T07:26:05 | 300,818,380 | 92 | 35 | null | 2021-08-31T17:26:36 | 2020-10-03T07:05:08 | Python | UTF-8 | Python | false | false | 629 | py | from __future__ import absolute_import
from tensordiffeq import models, optimizers, networks, plotting, utils, domains, boundaries, fit, helpers, sampling
# from .models import CollocationSolverND, DiscoveryModel
# from .boundaries import dirichletBC, periodicBC, IC
# from .utils import constant, LatinHypercubeSample... | [
"levimcclenny@tamu.edu"
] | levimcclenny@tamu.edu |
64f802685d92208bb1dc54b2bf3fb8eb1ba4c7ba | 6e47d5c133dfc7158f97902081b1607e130b516a | /components/fighter.py | ba79439867e8aa202c0725199173a9af9b3d9724 | [] | no_license | commonguy356/Cavelike | b9c85b648fb2453b2f96dac400c75352f8b737a0 | 8ebeac5b0f9bcb7f07dd6b1ea25fefe69cdf9112 | refs/heads/master | 2022-11-10T04:04:55.479267 | 2020-07-02T20:20:40 | 2020-07-02T20:20:40 | 273,542,371 | 0 | 0 | null | 2020-07-02T20:05:46 | 2020-06-19T16:42:32 | Python | UTF-8 | Python | false | false | 915 | py | class Fighter:
def __init__(self, hp, defense, power):
self.max_hp = hp
self.hp = hp
self.defense = defense
self.power = power
def take_damage(self, amount):
results = []
self.hp -= amount
if self.hp <= 0:
results.append({'dead'... | [
"noreply@github.com"
] | commonguy356.noreply@github.com |
82e33027da58a104bd86d11192b73a336f7ad7f2 | 3c099a78896ca4b775d28fccf38c2bfdf6a1a555 | /CorePython/DataTypes/List/RotateString.py | 70094c27d723b5432c93d357b08a84132027dd71 | [] | no_license | anmolparida/selenium_python | db21215837592dbafca5cced7aecb1421395ed41 | 78aec8bf34d53b19fb723a124ad13342c6ce641c | refs/heads/master | 2022-12-03T23:52:32.848674 | 2020-08-30T19:26:30 | 2020-08-30T19:26:30 | 282,207,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py |
def rotate_string(vStr, step):
print(vStr[step:] + vStr[:step])
rotate_string('abcdef', 3)
rotate_string('123456', 1)
| [
"anmolparida@gmail.com"
] | anmolparida@gmail.com |
1d62494ced0747adf81d6714036dc881f234fbbb | 9df0c1c31db47e31703b316ac71cdebbe1934668 | /chapter/chapter8.py | 54d2f8bb3483cb94bbe078a3518ab604ae3f2a3b | [] | no_license | Parkduksung/study-python | 61f7d463e06eeb9a6771ea2f6521cb6b58e14f53 | b642df368931c8ae985795b791106b77f296871a | refs/heads/main | 2023-02-21T08:23:04.888549 | 2021-01-25T11:47:43 | 2021-01-25T11:47:43 | 320,812,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,663 | py | #8-1
def create_student(name, korean, math, english, science) :
return {
"name" : name,
"korean" : korean,
"math" : math,
"english" : english,
"science" : science
}
students = [
create_student("1",1,1,1,1),
create_student("2",2,2,2,2),
create_student("3",3,3... | [
"duksung1234@naver.com"
] | duksung1234@naver.com |
d6dc2df3404943b96f01f73ff3255ecac887bc85 | 7ac1077baaf848a4bce7c54edf0719950bf5d1fb | /contact.py | 3d89f9754aae1f03b0e7cb64ac20af44f7da04e2 | [] | no_license | quanted/pisces_app | c78a86ccd465cd5a66c485f0d688e1f5cac8e32d | a04bb599cf54054a17015ce33aa43533ac9f08e4 | refs/heads/dev | 2023-08-31T12:36:35.738980 | 2022-04-05T13:39:29 | 2022-04-05T13:39:29 | 78,229,986 | 0 | 0 | null | 2020-04-03T13:42:31 | 2017-01-06T18:44:25 | Python | UTF-8 | Python | false | false | 5,479 | py | from django.template.loader import render_to_string
from django.http import HttpResponse, HttpResponseRedirect
import pisces_app.links_left as links_left
import sqlite3
import os
import logging
import datetime
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
db_name = "pisces_comments.sqlite3"
def create_co... | [
"deron.brock@gmail.com"
] | deron.brock@gmail.com |
5be977d0c32e84398780b29822f3d723b46e0eb8 | 40a73c565b602bce4a2bf0117c80fdb3ce9aeaee | /MisPerris/urls.py | cf32d713c9e54a3424da1bf296ea49207a5d8cdb | [] | no_license | bastianGV23/Social_Perris | 9fb26976245475f0c0648b519fa4d7a0c4b9bf3f | 5e22f115430279986fb185a65689cb449bee8e71 | refs/heads/master | 2020-04-06T23:22:46.615819 | 2018-11-16T13:50:28 | 2018-11-16T13:50:28 | 157,866,893 | 0 | 0 | null | 2018-11-16T13:50:49 | 2018-11-16T12:49:32 | Python | UTF-8 | Python | false | false | 1,495 | py | """MisPerris 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-bas... | [
"bastian.gv@outlook.com"
] | bastian.gv@outlook.com |
bbd0f23bcda4053e645882ffa2b31ede505b6e3d | f789f5e6d1e5c84dde4379dc59b39f279e2c6253 | /Unique Binary Search Trees/Accepted-6612953.py | 70c36c7afcd1fb6e9140446a6631975a37284a07 | [] | no_license | SakuraSa/MyLeetcodeSubmissions | ce46fe195742e43ab48444c953c10b68a7192fcd | 6c0952867bafe69e70ad08fbae088da995396e3b | refs/heads/master | 2016-09-03T06:30:02.792302 | 2014-11-13T09:17:11 | 2014-11-13T09:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | #Author : sakura_kyon@hotmail.com
#Question : Unique Binary Search Trees
#Link : https://oj.leetcode.com/problems/unique-binary-search-trees/
#Language : python
#Status : Accepted
#Run Time : 152 ms
#Description:
#Given n, how many structurally unique ###BST's### (binary search trees) that store va... | [
"sakura_kyon@hotmail.com"
] | sakura_kyon@hotmail.com |
f00d10e19e12b9f68c9c87f8b7226e5333df3cd3 | 828ed7a5c35ce716e586b8b85ec2e882288a7eae | /tvdb_client/tests/client.py | d3fe898acc1ca43e15de8675814b64bdbd282506 | [
"Apache-2.0"
] | permissive | miigotu/tvdb_client | 9db857c25dfc9f2effe1bd47ff372fee0cb50fa0 | 9f7d90f987a9d1fb71c3a9aa47db7d1e5984813a | refs/heads/master | 2020-05-25T15:44:16.019858 | 2016-08-01T14:53:37 | 2016-08-01T14:53:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | from unittest import TestCase
from tvdb_client.clients import ApiV1Client, ApiV2Client
from tvdb_client.exceptions import UserNotLoggedInException
__author__ = 'tsantana'
class LoginTestCase(TestCase):
def runTest(self):
pass
def test_001_01_api_v1_login_success(self):
pass
def test_00... | [
"tlsantana.un@gmail.com"
] | tlsantana.un@gmail.com |
a552bad7899811fcddc760b313e1d22e5f71cf6e | a44c4a543bd9b21f39526fbb5fd7f7b7162a525a | /catch2js.py | 5d77af36fdbd11690d2274f830d520415cd8a447 | [] | no_license | castro-miguel-1993/catch2js | 4dc30d595b7bb59d741c96fcb3ae97925889a766 | ac79b78a460be712cb3759a4a3f3b7f34ef33e7a | refs/heads/master | 2022-07-19T09:02:34.179648 | 2020-05-14T03:40:44 | 2020-05-14T03:40:44 | 263,801,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | import urllib.request
from urllib.request import urlopen, Request
import os
import sys
from bs4 import BeautifulSoup
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.3'}
try:
req = Request(url=sys.argv[1], headers=headers)
datos = ... | [
"noreply@github.com"
] | castro-miguel-1993.noreply@github.com |
f10d66837b8f7ebee62e48a4756ae0c6ec88875e | 53564ee0c9552e3ad4368fef9e2e2a65ac1b2952 | /scripts/distribui_palestras_es.py | 9cf8b68050f0c3d80e3ef4a74d5ea07bf79f15a1 | [] | no_license | alynnefs/pybr2021-org | 899a37d2cc2afec74d07c63a468097cada765ba5 | 81365949dcc6524f07f2d23fead4722ed8029c25 | refs/heads/main | 2023-08-27T12:44:41.632675 | 2021-10-14T23:52:54 | 2021-10-14T23:52:54 | 372,657,470 | 0 | 0 | null | 2021-06-01T00:15:24 | 2021-06-01T00:15:24 | null | UTF-8 | Python | false | false | 2,122 | py | import pandas as pd
def trata_entrada():
entrada = pd.read_excel("entrada-revisada.xlsx")
entrada = entrada[entrada[entrada.columns[1]]=="Español"].copy()
entrada = entrada.drop(columns=entrada.columns.values[:52])
entrada[entrada.columns[1]]=entrada[entrada.columns[1]].apply(lambda x : x.strip())
entrada = entra... | [
"izabela.cardoso.tw@naturapay.net"
] | izabela.cardoso.tw@naturapay.net |
01a67e7aa5fdbd2999b05e02fd301afcbe31c173 | 26e91aead18d0fad6f5ce8fc4adf7d8e05a2f07f | /byceps/events/snippet.py | 36bdd9c77f6f317d8d47c3faf09d1487650be7fa | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leathe/byceps | 40c1f8a1aab3521fcac45d88eab6364d448d4e67 | cd0c618af63fed1cd7006bb67da46eac0ddbb1c7 | refs/heads/master | 2020-12-02T09:02:51.087511 | 2019-12-14T17:00:22 | 2019-12-14T17:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | """
byceps.events.snippet
~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from dataclasses import dataclass
from ..services.snippet.transfer.models import SnippetVersionID
from .base import _BaseEvent
@dataclass(frozen=True)
class _SnippetEvent... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.