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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91560eee0d52a0f1cb3f860505d7313e30f96db9 | 6f9b15325e4bbe177e0e82f2c6d77f149fc59b65 | /pump_script.py | 79d334df43a36b90461a8be697a08716fee13a63 | [
"MIT"
] | permissive | hulsed/FFERMAT | c411d19ea0c6e98b96ebd267bdfb83470688ef80 | 5b180e637a2507a022e4a2c42c0b98cd44b6f8d6 | refs/heads/master | 2020-04-10T23:54:47.382002 | 2019-10-04T16:49:47 | 2019-10-04T16:49:47 | 161,368,580 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | # -*- coding: utf-8 -*-
"""
File name: pump_script.py
Author: Daniel Hulse
Created: October 2019
Description: A simple example of I/O using faultprop.py and the pump model in ex_pump.py
"""
#Using the model that was set up, we can now perform a few different operations
#First, import the fault propogation library as ... | [
"hulsed@oregonstate.edu"
] | hulsed@oregonstate.edu |
49e4ce94174f630a74b92c620d81985a5f6ed000 | 472411e2fef7b01f240e6a7246ce52b15cd37294 | /brake/backends/dummybe.py | 9280d09644ac778530bbb3533ca52c7f8008a794 | [
"BSD-3-Clause"
] | permissive | SilentCircle/django-brake | 8f3357c7d4f3aa514ee3fdf89e6f9e476758baab | ed752d5219d1ad05760f40a647ec34f210cd0961 | refs/heads/master | 2021-01-16T20:44:51.716817 | 2015-07-01T05:56:09 | 2015-07-01T05:56:09 | 6,924,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | import random
from cachebe import CacheBackend
class DummyBackend(CacheBackend):
"""
A dummy rate-limiting backend that disables rate-limiting,
for testing.
"""
def get_ip(self, request):
return str(random.randrange(10e20))
def limit(self, func_name, request,
ip=True, ... | [
"stavros@korokithakis.net"
] | stavros@korokithakis.net |
ee89e4d12c58034f1d5306a8bba9cd9e34395fc1 | 81139ce962b55f699b32acb8fb6e7e340bcf5a73 | /checkout/signals.py | 4f3997b21b8f0de665df2158488581315bc98174 | [] | no_license | Paul-Glanville/full-stack-ci-mini-project | a40132e429c881c3add2b6d5a7d47a3caa6b5b45 | eb53831fb01f1506d40a188d9d1c1eef4079ab51 | refs/heads/master | 2023-06-26T20:38:29.452454 | 2021-08-06T17:40:41 | 2021-08-06T17:40:41 | 380,587,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django.db.models.signals import post_save, post_delete
from django.dispatch import receiver
from .models import OrderLineItem
@receiver(post_save, sender=OrderLineItem)
def update_on_save(sender, instance, created, **kwargs):
"""
update order total on lineitem update/create
"""
instance.order.up... | [
"glanville49@googlemail.com"
] | glanville49@googlemail.com |
2b245b6ffdf88f4f85b306283077ccb69f097f21 | be71b41657883acc5e02c2ad988c2f2cf064cbcc | /baseDjango/wsgi.py | d58cf9cad79d45433d8c9662a6563ddaedcd119d | [] | no_license | SaltyCoco/baseDjango | 603c15e8945feab0f1d1a02dc6133ee0dbfaff8a | 81ec9b6d876f9f8524ddc23be24d4df30e643bea | refs/heads/master | 2023-05-03T19:17:53.952993 | 2021-06-01T17:16:44 | 2021-06-01T17:16:44 | 372,886,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for baseDjango 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"ryan.j.schulte@gmail.com"
] | ryan.j.schulte@gmail.com |
87a9e86353db3c608e1daaeff1ac61734e6ce8a8 | 8b4ae6987529bb8d48d7d8470776f3ca99a17e60 | /personal/urls.py | a590295ac8bbe0fcdbb27b901571ffdca297ff4c | [] | no_license | Adesola-samuel/cyberloan | 0124241d3edc3d9cf3ac1c718db46525e4e9374d | 89cbf31f255c91ede8a6bf8f7a1d615b285824e7 | refs/heads/master | 2023-02-10T05:28:54.183872 | 2021-01-10T21:18:30 | 2021-01-10T21:18:30 | 328,499,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from django.urls import path
from . import views
app_name = 'profile'
urlpatterns = [
path('update', views.update, name='update'),
path('profile/<int:id>/', views.profile, name='user-profile'),
path('portfolio-detail/<int:id>/', views.portfolio_detail, name='portfolio-detail'),
path('ID-Card', views.ca... | [
"adesolapastorsamuel@gmail.com"
] | adesolapastorsamuel@gmail.com |
5a8f100ef380c3b09160c5a8e0ecaf752d8e43e3 | da607092db8e52b38ba1714c8e9989812eb4dbc7 | /newapp/urls.py | 8234d792944d74cff4989b26e34b3eb3b7333f33 | [] | no_license | eashwerks/project_exel | 4782b8a30f23a09f346ce63863bfdc24e855b5aa | 53a5c51bbd9f234ca3b3e6ece8bbf433cf2ead7a | refs/heads/master | 2020-04-08T11:30:32.817681 | 2018-11-27T10:32:47 | 2018-11-27T10:32:47 | 159,308,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from django.conf.urls.static import static
from django.urls import path, include, re_path
from rest_framework.routers import DefaultRouter
from project_exel import settings
from . import views
router = DefaultRouter()
router.register(r'employees', views.EmployeeModelViewSet, basename='employees')
# router.register(r'... | [
"eashwerks@gmail.com"
] | eashwerks@gmail.com |
c6b360f08562aaddf5900e08cd01d476537105f1 | 0edb94d9de7222d31ac8350a8cc330179f69ef60 | /urls.py | 5b7e936fb82222a7f0a25bc6333ac4cee7b25143 | [] | no_license | ondrejsika/django-1.6-blank-project | 0f503fd661ec38fd3a9977d2e8fb4772d1c6da80 | 51b59c0a3102d8601c0490d2ee0e3b65afee0b33 | refs/heads/master | 2016-09-11T00:06:38.522221 | 2015-04-12T18:54:28 | 2015-04-12T18:54:28 | 26,711,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'twistedexample.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
| [
"ondrej@ondrejsika.com"
] | ondrej@ondrejsika.com |
d259ae82743f9dd80d1891b6d940a00ed317e4c1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03815/s988732380.py | cb8e305d533c05ff2909fab480bd1c9ceab07cc4 | [] | 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 | 102 | py | x = int(input())
a = x//11
b = x%11
if b == 0: print(2*a)
elif b > 6: print(2*a+2)
else: print(2*a+1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1fb93c149f16a39467aeae55188a00beff837de3 | 5a6a7b6750a330fdf141c21191a8208bd6e7092b | /es setting/joinData/dataCollecttor.py | f4fd6f4f3986d5586e78462f4fe43387f2dd2cba | [] | no_license | gjp-git/esdata | 6957c64f38a4d5ad72381ccf987afe1526ad0329 | 7171c87b4a93159d13eac4fa16be71a5244fedb1 | refs/heads/master | 2020-04-13T09:49:06.160201 | 2019-01-21T07:00:17 | 2019-01-21T07:00:17 | 163,121,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,834 | py | # -*- coding: utf-8 -*-
import os
import json
import time
def matchLine(target,lines,index):
if index >= len(lines):
return -1
timeprefix = lines[index].replace('.','')[:11]
if target < timeprefix:
return -1
while target != timeprefix:
index += 1
if index >= len(lines):
return -1
timeprefix ... | [
"1435842616@qq.com"
] | 1435842616@qq.com |
9c4fb21102c3b1103255d3567f24a7281093eb0f | daa5f181ae982030a26777ca74080946cb29b8c5 | /rottencherries_v3/account/views.py | d431779bf209504c12739d5c1c7075b1d43b4888 | [] | no_license | hannibal1296/Project | a4e6f2fedee106559d705c3a955fb5b7d3c77731 | 3884dc380713684ec0c80b39a51aca9b401cabd0 | refs/heads/master | 2021-05-14T08:01:36.150077 | 2018-03-07T05:29:30 | 2018-03-07T05:29:30 | 116,282,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,054 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from mainpage import views as mainpage_view
from django.contrib.auth.decorators import login_required
from .forms import UserForm, StudentForm
from ... | [
"show1296@gmail.com"
] | show1296@gmail.com |
94b4e8d8f567da5caa24b59eddc1e618e7006a22 | 12c41119156dd3783c3801e07f5f973289f26bb0 | /aliyun-python-sdk-dbs/aliyunsdkdbs/request/v20190306/ModifyBackupPlanNameRequest.py | ba55c010034c829610d62b54c02abad12cceb8cd | [
"Apache-2.0"
] | permissive | toywei/aliyun-openapi-python-sdk | bfe0893da38af9b222ce072fd7587d5b6cdce204 | ce8f683e3201fca8c473512267f50a34f71e31d3 | refs/heads/master | 2020-08-07T23:42:00.053692 | 2019-10-08T08:50:21 | 2019-10-08T08:50:21 | 213,626,962 | 1 | 0 | NOASSERTION | 2019-10-08T11:43:15 | 2019-10-08T11:43:15 | null | UTF-8 | Python | false | false | 1,697 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
1db358528dfe7eb150bfcf52b137cce3df1bb254 | 027dd49b92ee92c8faa5ea05bce95d28efd2268d | /Documents/django/crudView/crudapp/migrations/0001_initial.py | 03b4d87a72cb9fdab2c706d0b7c2ab583aa93a89 | [] | no_license | arunkumar27-ank-tech/RestAPIcrud | 0ac06a4f0b6cf3373eb76b815e3cd6c5748610d5 | 387c5fad78f4b72cfbbe47d06e79c1a15038ad69 | refs/heads/master | 2023-06-13T21:44:08.157685 | 2021-07-06T14:11:12 | 2021-07-06T14:11:12 | 383,477,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # Generated by Django 3.1.5 on 2021-07-06 06:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | [
"arunkumar834428@gmail.com"
] | arunkumar834428@gmail.com |
246e721355400a47a1dc99c1418a351878281f59 | 67a62a0ea5c5daed433e659dceb8dc1bb83a5dbb | /game_interface.py | 08e132e3fc9f92242d14842bf310675736b05cd3 | [] | no_license | hengkan/heng | fa742ef52028cccac5a08ab18672c241b765ca54 | 44eb8db238fbae3e4b2b1d9adbea3fff270792de | refs/heads/master | 2020-03-19T18:39:40.346388 | 2018-06-10T15:08:05 | 2018-06-10T15:08:05 | 136,818,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,886 | py | """
The module used to play our games.
Please fill in the TODO's (i.e. importing games and strategies as needed)
Note: You do not have to run python_ta on this file.
You may import your games from A1 (i.e. Chopsticks). However, the minimax
strategy cannot be used on Chopsticks unless you account for infinite loops.
(Y... | [
"noreply@github.com"
] | hengkan.noreply@github.com |
0527bee5e87be348d59d9a2dceebb0b42f5a6ea2 | c2be395eac600d0d853de03cd67070bd8391038f | /ofm_request_reverse_rd/__manifest__.py | 39a1213f2bec2e986a4933fa317933ec0a2efee5 | [] | no_license | amendoncabh/salary_emp | 960cfdb4df48df70ab361886039c790840a5e8d2 | 2ac2dd9461271153cb2ee406bf70a29f614c25f1 | refs/heads/master | 2022-03-30T22:35:10.704092 | 2020-01-05T16:23:20 | 2020-01-05T16:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | # -*- coding: utf-8 -*-
# © <YEAR(S)> <AUTHOR(S)>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Trinity Roots :: OFM Request Approve Reverse RD",
"summary": "For updating related project modules",
"version": "8.0.1.0.0",
"category": "Uncategorized",
"description": "... | [
"loveprakon@gmail.com"
] | loveprakon@gmail.com |
58810b1fc046396db89749b69a23a37c30c942cb | 8204ba94c61602331fc4942e3cc53cbafe8d11b3 | /excel-word-pdf/py-pdf.py | 800d627689b0c3bfa4acb41970fe71899926d17a | [] | no_license | mkhira2/automate-the-boring-stuff | 73ee0bb5d68e13d8445d4a80f93e784c46895217 | b3cf67e2309a3469581ab3cc4dd451d0132b09d4 | refs/heads/master | 2021-06-12T00:43:42.176697 | 2019-10-02T16:24:37 | 2019-10-02T16:24:37 | 136,773,031 | 0 | 1 | null | 2019-10-02T16:24:38 | 2018-06-10T02:25:44 | Python | UTF-8 | Python | false | false | 1,140 | py | import PyPDF2, os
# download example pdfs from:
# http://autbor.com/meetingminutes1.pdf
# http://autbor.com/meetingminutes2.pdf
# rb = read binary, wb = write binary
# necessary for pdf files
os.chdir('c:\\users\\mkhir\\documents')
pdfFile = open('meetingminutes1.pdf', 'rb')
reader = PyPDF2.PdfFileReader(pdfFile)
p... | [
"mkhira2@gmail.com"
] | mkhira2@gmail.com |
d776bc09bc587e3731a54a38fe8a68057100c76e | a25056c5a5a8e4209bca9ee8dc1fbdd21148dfae | /test_cramers_rule.py | 986da3fa44c63a03fd4d6d7070967721502ab105 | [] | no_license | ElFanzo/Cramer-s-rule | 9606d8dab152e3f7ed9300159fb63a098e1f0279 | 1d7e211bedf02e9e84394199e306925e57bde312 | refs/heads/master | 2020-07-29T14:55:18.895332 | 2020-03-04T17:00:22 | 2020-03-04T17:00:22 | 209,852,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,424 | py | from unittest import main, TestCase
from cramers_rule import arr_remove, arr_replace_column, get_det, solve
class TestSolve(TestCase):
def test_correct_array(self):
arr_a = [
[2, 5, 4],
[1, 3, 2],
[2, 10, 9],
]
arr_b = [30, 150, 110]
self.assert... | [
"fan.hakimov2010@yandex.ru"
] | fan.hakimov2010@yandex.ru |
2ea601fe51a05f0441db552e2eccc67851d668d1 | 1c28a4d2a451b6220b14f486132b17a64308af10 | /venv/Scripts/pip3.7-script.py | 34ea88bd371865854c1428579324623e0b82f03c | [] | no_license | color-me/HOKA-django | a0c53fe08397ec3908a77849a500c8fe2f23316f | 6a42f5717feaa3e723728b1a6d2f2c956cee47cf | refs/heads/master | 2021-05-22T13:34:49.215552 | 2020-06-12T07:45:58 | 2020-06-12T07:45:58 | 252,945,612 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!D:\PycharmProjects\first\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.... | [
"agent.chensf@gmail.com"
] | agent.chensf@gmail.com |
088a53bea4709075e3b76018e76868d0ff7b892b | 9b42089df76ec33388fbece8d309cd8f0cd96c5a | /todoapp/wsgi.py | 81fb5453e0e952a6eb46f3b1037c57f7689e4961 | [
"Unlicense"
] | permissive | YuliyaZhdanova/module12 | 5d953046152ea550ca8a3122af2d68914a5d25ff | 65c2e4469532d08a9bff736f86ade6b2f1e724ed | refs/heads/master | 2021-06-25T09:24:53.206503 | 2019-07-24T18:49:59 | 2019-07-24T18:49:59 | 198,691,657 | 0 | 0 | Unlicense | 2021-06-10T21:45:43 | 2019-07-24T18:43:54 | Python | UTF-8 | Python | false | false | 391 | py | """
WSGI config for todoapp 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"k4ty@mail.ru"
] | k4ty@mail.ru |
2aa8324aee23f64603e3406c3de9441e9cb98c51 | 4b4544e5860bf2776ef578ba8e91dd34a9cf2b80 | /nodejs/patches/pkgsrc/lang/nodejs/patches/patch-deps_cares_cares.gyp | ba1548a9de0c9d65a856346f95ff4d5904181d81 | [
"CC0-1.0"
] | permissive | nabla-containers/rumprun-packages | 1e00e5cf0b6995f1772e8dff6b20d7d064ac71cf | 687c6dab278ff3dba68b914e1ed0511eb5525551 | refs/heads/solo5 | 2021-07-08T10:42:24.436007 | 2019-02-21T22:39:36 | 2019-02-21T22:43:57 | 137,268,640 | 1 | 4 | NOASSERTION | 2019-02-20T02:29:18 | 2018-06-13T20:44:12 | Makefile | UTF-8 | Python | false | false | 647 | gyp | $NetBSD: patch-deps_cares_cares.gyp,v 1.1 2013/05/22 15:17:07 mspo Exp $
Add support for NetBSD.
--- deps/cares/cares.gyp.orig 2013-03-14 10:55:24.000000000 +0900
+++ deps/cares/cares.gyp 2013-03-14 10:55:47.000000000 +0900
@@ -140,6 +140,10 @@
'include_dirs': [ 'config/freebsd' ],
'sources': [ '... | [
"dahalls@gmail.com"
] | dahalls@gmail.com |
f1c2b26a52b2931804652f2426eac16b54d10b88 | 27c38ecfc6d13728bd716ac9fb908683525d22cd | /variablesEvaluation/barras.py | 56c53019e601e00d6c0a3d2db0304b9a95b655c3 | [] | no_license | ccsc-research/trusted-system | 23a5aee3a13298b60a030280a956c3b3edcb7d4d | 256a103f0858ee1223b37142301d46bf352aefdd | refs/heads/main | 2023-03-21T17:42:18.760442 | 2021-03-18T15:26:00 | 2021-03-18T15:26:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py | import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.markers
import sys
import numpy as np
import statistics
plt.rcParams['pdf.fonttype'] = 42
plt.rcParams['ps.fonttype'] = 42
plt.rcParams['figure.figsize'] = (12,10)
plt.rcParams["font.family"] = "Times New Roman"
plt.rcParams['font.size'] = 36
#df = ... | [
"31410440+BrunoSchwengber@users.noreply.github.com"
] | 31410440+BrunoSchwengber@users.noreply.github.com |
bc8c33b8c7c2217ef583a00773343483d531e800 | c7ffc57fa1155ac82b717d50baa5ffe26c92bc99 | /override.py | 6a9ed2662881f9bb153a96a3a6482855628a6507 | [] | no_license | QueenieCplusplus/Backend_Script3 | cdfc3994d79a96ed8577b507bdf1a4aeb59f0df9 | bb89999a57a261a42c05e81556b46ded0a97dc8c | refs/heads/master | 2020-11-24T19:08:42.484494 | 2020-11-09T01:06:31 | 2020-11-09T01:06:31 | 228,305,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # 2020, 1/14, AM 10:15, by Queenie Chen
# override
class A:
def__init__(self, i=0):
self.i=i
def mmm(self):
self.i *= 100
class B(A):
def__init__(self, j=0):
super().__init__(6)
self.j = j
def mmm(self):
self.i *= 1000
def main():
a = A()
b = B()
... | [
"noreply@github.com"
] | QueenieCplusplus.noreply@github.com |
14be5d11b7f486101bd0a54389493bdede54e2c1 | dbfb911ddb166f0522a7286ecef715708acdf2c5 | /src/constants.py | 3b3296ce8e292b2c19adb9f83282ff43297c6938 | [] | no_license | gabrielle2801/P3_MacGyver | cc4fae540cf3dc2e58eca33c8b64f2b767a8a6bc | d5042f1cd73b34c4863ba66c94cd50e99af5309c | refs/heads/master | 2021-02-12T17:17:38.856180 | 2020-03-07T13:23:03 | 2020-03-07T13:23:03 | 244,611,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | MAX_NUMBER_ITEM = 3
WEAPONS_LIST = ("needle", "plastic_tube", "ether")
SPRITES_LINES = 17 * 44
SPRITES_COLUMMS = 15 * 44
sprite_size = 44
X_SIZE = 15
Y_SIZE = 15
| [
"gabrielleazadian@gmail.com"
] | gabrielleazadian@gmail.com |
9feb6015066f24f3eadcdf5ce0d2aad92b5b7785 | 8f34f7b1b586f852abe24c0af8ad9caf2d986148 | /app/core/migrations/0004_recipe.py | edff153df904646ba316e5c4c53776be66a5fdc2 | [
"MIT"
] | permissive | johan-uribe21/recipe-app-api | 1e65f7cfa0d0fdaa4d5e2bbbffe1e4ee20834db9 | 14e642e2e09a9b3974e989567756ae31843c1721 | refs/heads/master | 2020-07-07T06:17:37.933317 | 2019-10-29T13:49:04 | 2019-10-29T13:49:04 | 203,275,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | # Generated by Django 2.1.11 on 2019-08-28 23:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0003_ingredient'),
]
operations = [
migrations.CreateModel(
... | [
"johanandresuribe@gmail.com"
] | johanandresuribe@gmail.com |
ed240b64758a709dbdc34b22204a6fef55cf355e | b51ac97fc0dcb19c401f92a48e8657de9a2b86db | /tccli/services/tke/tke_client.py | a2c1e960dff0206080bec664527d89c408e09bbe | [
"Apache-2.0"
] | permissive | tarnover/tencentcloud-cli | 657b97d7b07997cff98456c111847d97324d9372 | 5b0537913a33884a20d7663405a8aa1c2276b41a | refs/heads/master | 2020-05-03T12:54:37.091798 | 2019-04-05T16:23:21 | 2019-04-05T16:23:21 | 178,639,639 | 0 | 0 | Apache-2.0 | 2019-04-05T05:36:09 | 2019-03-31T03:49:37 | Python | UTF-8 | Python | false | false | 12,592 | py | # -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli.nice_command import NiceCommand
import tccli.error_msg as ErrorMsg
import tccli.help_template as HelpTemplate
from tccli import __version__
from tccli.utils import Utils
from ... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
3b42e213c226cfb3959f04faaf51a1e274f60e8a | 2e09400c3166eb00c87139941a18ae2e6c413d12 | /__manifest__.py | 5ce43cab388c0bbc592df5b936b7c2c4d83d426b | [] | no_license | claudm/dw_sale | 87d204e30c2ea230ea5dba4ce90516e488c6b269 | 701f108b5b27a418a9193a539629af723ca02323 | refs/heads/master | 2023-03-16T11:53:42.884976 | 2018-10-30T17:11:13 | 2018-10-30T17:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | # -*- coding: utf-8 -*-
{
'name': "DW Sale",
'license': 'AGPL-3', # TODO: Verificar se a licensa desejada será essa
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long descripti... | [
"evertonalves92@gmail.com"
] | evertonalves92@gmail.com |
7a885c6b840ef4f4c81ca95bc7f26f7114261289 | a0d90c0c4c1dde93b656d06c2d1bebd526fae7db | /text_classifier2.py | 9ba93dbeee3448c4e3c4b505df8f5ab974dea7f2 | [] | no_license | vic-ayres/ArticleProject | a1be834d920fe65cebf8c9b473ada2860c5ca0ab | 706d69730843fabcfa71b4c93a225b0138634da2 | refs/heads/master | 2020-06-10T04:35:32.457031 | 2019-06-24T22:28:52 | 2019-06-24T22:28:52 | 193,583,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | import numpy as np
import load_data as load
import spacy_tokenizer as st
import word_embeddings as emb
from gensim.models import KeyedVectors
from confusion_matrix import ConfusionMatrix
from imblearn.over_sampling import SMOTE
from sklearn.model_selection import train_test_split
from sklearn.linear_model import Logist... | [
"victoriaayresibarra@gmail.com"
] | victoriaayresibarra@gmail.com |
ff8c5303dc7f579180a40c27ff0d8d164a3e8dca | 922e43e0db6abc3b8852b1c4b1f88b1118c724b4 | /ecommerce/backend/views.py | 260bfb550773181bffce41503e9fb6e74cad7620 | [] | no_license | Lamduy0807/EcommerceBackend | fb862cf856a27da24d8a6787f8dd3446dd78c057 | 1559e45d5cd084b503facf0adc3291d27ff84d54 | refs/heads/main | 2023-09-02T18:56:32.362435 | 2021-10-20T14:16:37 | 2021-10-20T14:16:37 | 413,791,163 | 0 | 0 | null | 2021-10-05T11:38:08 | 2021-10-05T11:34:17 | null | UTF-8 | Python | false | false | 1,333 | py | from django.contrib.auth.models import Permission
from django.shortcuts import render
from rest_framework import serializers, viewsets, permissions, generics
from rest_framework.response import Response
from rest_framework import status
from .models import *
from .serializers import *
from rest_framework.parsers import... | [
"19521421@gm.uit.edu.vn"
] | 19521421@gm.uit.edu.vn |
d02c7802cac3338856b1ad9f56d833cb3b40e76f | 3cce7f1d06238ad48978955b8e8d456eef1fdc12 | /trainModel.py | 3e4b9abe28dbf342f5963a2c20bc6258c3feada2 | [
"MIT"
] | permissive | simon27-0/TA2_2021_Kelompok12 | ba44a4aa3913bf60116c343a970e9fa0fd2f7f7d | f35d7a1eccf24c9d050185fefb0cedc7e724a2e3 | refs/heads/main | 2023-07-01T10:40:48.952942 | 2021-08-09T05:31:41 | 2021-08-09T05:31:41 | 378,032,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,316 | py | # Code ini untuk train model yang sudah ada pada dataset
# USAGE
# import the necessary packages
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.applications import MobileNetV2
from tensorflow.keras.layers import AveragePooling2D
from tensorflow.keras.layers import Dropout
fro... | [
"noreply@github.com"
] | simon27-0.noreply@github.com |
86e6a118b49dcff4397daafa09388751e0ee8c56 | 6ff29687d43202757565521fc2a223a616a3e2b6 | /else/天马杯--AI+z智能质检/code/run_c3.py | f94be65e07053fa528c493f6721db87a0afc3d62 | [] | no_license | xiaoyusmd/data-science-competition | e0964398749988e31094b6fc66871cb33fe0a230 | faf7aad6a90d843b61e9ec8a0d41702b17c53a51 | refs/heads/main | 2023-05-31T16:14:36.174908 | 2021-06-20T04:22:13 | 2021-06-20T04:22:13 | 413,094,887 | 1 | 1 | null | 2021-10-03T14:04:57 | 2021-10-03T14:04:57 | null | UTF-8 | Python | false | false | 10,671 | py | """
This script provides an exmaple to wrap UER-py for C3 (multiple choice dataset).
"""
import argparse
import json
import torch
import random
import torch.nn as nn
from uer.utils.vocab import Vocab
from uer.utils.constants import *
from uer.utils.tokenizer import *
from uer.layers.embeddings import *
from uer.encoder... | [
"39004676+DLLXW@users.noreply.github.com"
] | 39004676+DLLXW@users.noreply.github.com |
21acfdfebbfa573c6f03151a2582739a309134ee | d6f7d4f71b4ce5204a17e3ef7a21f495e45a44ce | /Unique Integers in Sorted List.py | f81e2a91f47e1b9c7b83c7903663a189c5d4b05f | [] | no_license | zoskar/Binary_search | de43168105688ded7b58e11963bdcce57f83b8af | 532e67b074c478a5af0f23a644e79043e89ed0c5 | refs/heads/master | 2023-06-04T08:13:03.897436 | 2021-06-20T12:24:29 | 2021-06-20T12:24:29 | 356,622,345 | 0 | 0 | null | 2021-06-20T12:24:29 | 2021-04-10T15:29:43 | Python | UTF-8 | Python | false | false | 74 | py | class Solution:
def solve(self, nums):
return len(set(nums))
| [
"zoskar00@gmail.com"
] | zoskar00@gmail.com |
263dbf5122189f82d269deadb89ecd37c4e4936c | 76003819bb5dd0fea7c6cc685d8263354bd94681 | /dask-gateway-server/dask_gateway_server/options.py | 15b413843a528c8e966258a3f4adce0b899c7fb0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | ydataai/dask-gateway | e9eada4056b059301ee869d25df63c900079193d | 75ff9453c97ae42a909ed9921e6eae99eea8bc75 | refs/heads/main | 2023-06-09T22:35:52.116925 | 2021-06-28T14:59:48 | 2021-06-28T14:59:48 | 380,277,835 | 2 | 0 | BSD-3-Clause | 2021-06-28T14:59:49 | 2021-06-25T15:19:59 | Python | UTF-8 | Python | false | false | 11,048 | py | import copy
import inspect
import textwrap
from collections import OrderedDict
from collections.abc import Sequence
from .utils import FrozenAttrDict
__all__ = ("Options", "String", "Bool", "Integer", "Float", "Select", "Mapping")
class Options(object):
"""A declarative specification of exposed cluster options... | [
"noreply@github.com"
] | ydataai.noreply@github.com |
b0a67ae46e2cc09f784f219659fe6a52ae000b70 | 6f82a98751f27d07a947f3a22b8523b2d0b9c0db | /oneclickvitals/migrations/0024_auto_20150427_1920.py | 0100d64d0e2980848e64db385b51246639b7b7fd | [] | no_license | SirishaDumpala/MedicalProject | 6078bcc3098750e4afcf4af42002cb5e424099b7 | 83fec120bdf41e673f7672576a481d334e4d4289 | refs/heads/master | 2021-01-19T06:53:14.091093 | 2015-04-28T18:41:44 | 2015-04-28T18:41:44 | 31,844,156 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('oneclickvitals', '0023_auto_20150427_1605'),
]
operations = [
migrations.AlterField(
model_name='labresults',
... | [
"birlangisiri@gmail.com"
] | birlangisiri@gmail.com |
def2133f683035964fdbf030fa9a9bec0085cb22 | f1fcaf58e53792db786bf6ffb87f67b815ed600e | /Chapter8.py | 4e1e60f78cbb1e010b37949f78d483331693bc96 | [] | no_license | stephenosullivan/effective-python3 | 8e414d0aa64eb2a599ba661056809830b6e4a39f | c933b3f80021f9ba3d1f0ad608f563a106d89bd8 | refs/heads/master | 2021-01-13T07:39:56.418989 | 2015-10-04T01:27:26 | 2015-10-04T01:27:26 | 39,714,317 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | __author__ = 'stephenosullivan'
class Item55:
"""
Use repr Strings for debugging output
"""
def __init__(self):
a = "string"
print(a)
print(repr(a))
print(eval(repr(a)))
print('%r' % a)
a = Opaque(5,4)
print(a)
b = BetterClass(6,7)
... | [
"osullisg@gmail.com"
] | osullisg@gmail.com |
1ef2e9efc80c13efd70ec5dc3809ee3bea477113 | 8cb45cfc28e207dc56bee330e4f670e3f17e1e9d | /uofa-homepage.py | 86c94941587174e5d37e4b212863967f9db12546 | [] | no_license | llDanieLll/url_headers_parse | e643207c4451b4bcf53ffcd102976378876ea910 | 2d4f9facddab8806155e46dd5a22264dc57f7018 | refs/heads/master | 2020-03-07T11:24:18.783326 | 2018-03-30T17:27:15 | 2018-03-30T17:27:15 | 127,454,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | import urllib.request
import urllib.parse
try:
url = 'https://www.ualberta.ca/'
values = {}
headers = {}
data = urllib.parse.urlencode(values)
data = data.encode('utf-8')
headers['User-Agent']='Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27... | [
"noreply@github.com"
] | llDanieLll.noreply@github.com |
4344b251328ece82d57f22c21563a169e723a2c2 | f94e54d3085cd07a6f4972f2111574ad95fe4d89 | /utils/iotools.py | 406433fab0cdf5f54f662d8821bdadfae2017c15 | [] | no_license | banskt/statsfpl | b4e67ca4ed09a8cdc927ec4cb4ad570d891ad395 | b442208fa4d07e3a097445c75a4fd2f8098440ff | refs/heads/master | 2021-06-30T01:54:05.461439 | 2020-09-07T09:41:04 | 2020-09-07T09:41:04 | 143,441,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | import numpy as np
import collections
import csv
from utils.containers import FixtureInfo
def get_fixtures(filename, scores):
fixtures = [{} for x in range(38)]
with open(filename) as csvfile:
instream = csv.reader(csvfile, delimiter = ',')
for row in instream:
team = row[0].strip(... | [
"bnrj.saikat@gmail.com"
] | bnrj.saikat@gmail.com |
b7c52076b044cbf724a5c615bcde432d581148bf | 0bd17d41590d8946df411db0af0e8e814854dcce | /pycmbs/diagnostic/__init__.py | 80c3801fcdea8281f7a9be5a73a8d7f856407424 | [
"MIT"
] | permissive | wk1984/pycmbs | 39b36c62b62aa7b9ca9fcd7f2fc9104838524c19 | 853bcd1995e0b89b92aa94d30f967f6ecdd16bcc | refs/heads/master | 2020-04-08T14:44:06.822629 | 2015-08-04T17:45:37 | 2015-08-04T17:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | # -*- coding: utf-8 -*-
"""
This file is part of pyCMBS.
(c) 2012- Alexander Loew
For COPYING and LICENSE details, please refer to the LICENSE file
"""
from diagnostic_basic import *
from regional_analysis import RegionalAnalysis
| [
"a.loew@gmx.net"
] | a.loew@gmx.net |
decc14ec6c9e00b0fbed6e000b45d1b1efb74fa2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2335/60705/241811.py | ab11ecca95033a28315b69c996ee7f5b73163e7e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | x = int(input())
y = int(input())
count = 0
s = {x}
while not s.__contains__(y):
s2 = set()
for i in s:
s2.add(2*i)
s2.add(i - 1)
for j in s2:
s.add(j)
count += 1
print(count) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9697269b3760a99d42530da45367f35e3567521c | c597ef67cef06a2073e32ab0cf0f58634a6857ef | /main.py | 6fae7d67aa4880eb5c7996517728d507f1d52d79 | [] | no_license | EdwinMichaelLab/a_dockerized_flask_app | 7b523f4657503a3d7f0a6001c315bea6c3a025a7 | 48f2193e60384b9a2bc882bac1f5ac9f5e4f1887 | refs/heads/main | 2023-08-13T18:40:36.949013 | 2021-10-08T02:18:39 | 2021-10-08T02:18:39 | 414,640,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | '''
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World'
'''
from flask import Flask, request
from flask import jsonify
app = Flask(__name__)
@app.route('/')
def myapp():
message = "To use this app: %s/add?x=value&y=value" % request.base_url
return message
@app.... | [
"sookim@usf.edu"
] | sookim@usf.edu |
3eacd279773774d50e98c01956d5ca188f7c8b09 | c1d3bbeef64bcd8565f96dcad616c9db38d03b6f | /preprocess/prep_ae.py | 3c43a19cf49cb9bc697f9b14156f760c3b869092 | [] | no_license | amymok1318/SentiLARE | 8ddbba5ca14adf8a87f385b6c6072511d6df0e08 | 5f1243788fb872e56b5e259939b932346b378419 | refs/heads/master | 2023-04-20T07:31:46.438255 | 2021-04-28T04:36:18 | 2021-04-28T04:36:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,687 | py | # Pre-processing codes for aspect term extraction
# This code is modified based on
# https://github.com/howardhsu/BERT-for-RRC-ABSA/blob/master/pytorch-pretrained-bert/preprocessing/prep_ae.py
import nltk
import numpy as np
import json
from collections import defaultdict
import xml.etree.ElementTree as ET
import rando... | [
"noreply@github.com"
] | amymok1318.noreply@github.com |
345593e9bcdc9ac1039f7722b7abe6402d3352ae | 188b2f0a0a9dbdf6261feb59442c0fe8d03daa6c | /users/permission.py | 394f2d771aefb8578da8999120472b2d47138c47 | [] | no_license | andre1201/work | 966eca5901eb22a1d816b9f5bff0c03690c39b93 | dbf656c612021cc074ef652b28f3a87e9a6481be | refs/heads/master | 2021-01-10T14:30:34.595668 | 2015-11-10T08:34:16 | 2015-11-10T08:34:16 | 43,693,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from rest_framework.permissions import BasePermission
from django.contrib.auth.models import User
class IsAdminUser(BasePermission):
def has_permission(self, request, view):
# if (request.user and not request.user.is_staff):
# return request.user and not request.user.is_staff
return re... | [
"shukin_am@crvtu.local"
] | shukin_am@crvtu.local |
d6e6e537527df94454a1ffa739957e917b26d616 | 8ce656578e04369cea75c81b529b977fb1d58d94 | /bank_guarantee/helpers/copy_request.py | 6d2267189010e53aa1b00484d02d30b070321647 | [] | no_license | JJvzd/django_exp | f9a08c40a6a7535777a8b5005daafe581d8fe1dc | b1df4681e67aad49a1ce6426682df66b81465cb6 | refs/heads/master | 2023-05-31T13:21:24.178394 | 2021-06-22T10:19:43 | 2021-06-22T10:19:43 | 379,227,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,328 | py | import os
import requests
from django.db import models
from django.db.models import Q
from django.utils import timezone
from django.utils.functional import cached_property
from sentry_sdk import capture_exception
from accounting_report.fields import QuarterData
from accounting_report.models import Quarter
from bank_g... | [
"javad@MacBook-Pro-Namig.local"
] | javad@MacBook-Pro-Namig.local |
1d24db42c4a9e7491a0048d011a432ca391c9bca | 89414e420826da539f1b4934f5eb98f1ff57c131 | /scrape_mars1.py | 1b06e13ce91da8991fe4949be7f6d440ff4b6c86 | [] | no_license | shuyijun2020/web-scraping-challenge | 11bf48048264d2678b08ce73265516bb07ebb136 | e863e8521fb1d8282e221bba7ed228ab30e104c4 | refs/heads/master | 2022-11-26T23:16:09.567979 | 2020-08-06T03:15:06 | 2020-08-06T03:15:06 | 283,396,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from splinter import Browser
from bs4 import BeautifulSoup as bs
import time
def init_browser():
# @NOTE: Replace the path with your actual path to the chromedriver
executable_path = {"executable_path": "chromedriver.exe"}
return Browser("chrome", **executable_path, headless=False)
def scrape_info():
... | [
"64697542+shuyijun2020@users.noreply.github.com"
] | 64697542+shuyijun2020@users.noreply.github.com |
ad9cfaa7af4750b0980f01e8a34a73266f8458bb | 71a6969fbec7f1a4b2886108cbf8ced578cadb97 | /memory_vs_trial_type.py | 6079c6fa99abff0684dd567c8b99f6b72acde068 | [] | no_license | gadietz/SURF_analysis | 796662492ccf1fb2658b4cc4bf28b8bfe771aede | c3eba9d081fe92474ec2896dce064fa5cc737382 | refs/heads/master | 2022-11-23T18:11:51.715942 | 2020-07-24T20:30:47 | 2020-07-24T20:30:47 | 274,964,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,274 | py | #Data Processing
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from statsmodels.stats.anova import AnovaRM
memory = pd.read_csv('data_memory.csv')
control = pd.read_csv('data_control.csv')
#remove bad subjects - found previously
excludedSubjects = [5, 21, 38, 72] #pids of bad subjects... | [
"noreply@github.com"
] | gadietz.noreply@github.com |
788ef0052aafc50928a425010a71836954b38794 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/ChainedComparison9.py | b9dfa664cb719771acc687073432f02f50687c0f | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 24 | py | 0 < x and True and x < 2 | [
"mikhail.golubev@jetbrains.com"
] | mikhail.golubev@jetbrains.com |
a30badd10e968213b68d1cab709d7f6258ff4478 | 921c29354a9065a4f76f816c2b2ec68457f66aef | /todo/tests/test_task.py | e4752471e00904681378c98b7d75e47dcc6c54c8 | [] | no_license | AmrAnwar/ToDoList | 520fa0529090183832dfd8c274fb3e7dad4d7a3b | de5e9e9887dee857e6169184aa9c7b74f31d32c4 | refs/heads/master | 2020-04-11T15:51:39.869491 | 2018-12-15T17:20:11 | 2018-12-15T17:20:11 | 161,905,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | from .test_init import InitTest
class TestList(InitTest):
def setUp(self):
super(TestList, self).setUp()
def test_get_task(self):
res = self.client.get(self.task.get_absolute_url())
self.assertEqual(res.status_code, 404)
self.client.login(username="anwar", password="password")... | [
"amranwar945@gmail.com"
] | amranwar945@gmail.com |
d432534c8bdaa3ee9066132eed7708eab9d2652a | 3346669e5b8bfb5318179819ec46dbe2011d1619 | /DQN/Deep_Q_Network.py | 79b0897187c4e52ab0dab3b2d3a705adfed701f5 | [] | no_license | alidzhikov/reinforcement-learning | 1d9c5560a66ca7b22e1eb5bc23c6ef2b26e4539b | 83db4325a8d0f034e977d5359d7e825baac7ed74 | refs/heads/main | 2023-07-01T13:14:23.245919 | 2021-08-07T06:59:12 | 2021-08-07T06:59:12 | 357,237,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,974 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 26 20:03:15 2021
@author: Mustafa
"""
import gym
import random
import torch
import numpy as np
from collections import deque
import matplotlib.pyplot as plt
from model import QNetwork
env = gym.make('LunarLander-v2')
env.seed(0)
print('State shape: ', env.observation_s... | [
"m.alidzhikov2630@gmail.com"
] | m.alidzhikov2630@gmail.com |
866b8f99d6eac8ae5e5950e1f6719735879f0ae8 | 42931eaf6eefe529cfd88bcdfe1d8c7bf9836132 | /ProgrammerProfile/migrations/0003_auto_20170328_1747.py | 75a103d46860bc39e82460a7a659ca684e1f1f59 | [] | no_license | pythongiant/Programming-Hub | 283eeafda84dff3fc71037a258e8b623e797e9e0 | de87e020ce2616e35e2545900db1097dccf22f72 | refs/heads/master | 2021-01-23T06:01:43.364433 | 2018-03-06T10:57:45 | 2018-03-06T10:57:45 | 86,331,204 | 2 | 2 | null | 2017-04-27T11:19:41 | 2017-03-27T12:12:55 | JavaScript | UTF-8 | Python | false | false | 884 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-28 12:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ProgrammerProfile', '0002_auto_20170328_1745'),
]
operations = [
migrations... | [
"srihari.unnikrishnan@gmail.com"
] | srihari.unnikrishnan@gmail.com |
db8b10220ef515e9136d2d50773d63d16206705d | 65ca31a4d4d8f337b624d8e21b0e84596c7bf604 | /Level 5 - Expanding Nebula Solution.py | 1600eba937ec10e908fbe627cdc6c434f119bf99 | [] | no_license | jonyeh48/myGoogleFoobarChallenges | ae9b9cb61496d386e7a5d7abdbf975dbc1a3feac | 8aadfe6b7b951c9373a73bfa819a175ba9083dd5 | refs/heads/main | 2023-02-16T13:00:24.002190 | 2021-01-18T00:06:18 | 2021-01-18T00:06:18 | 327,396,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | #This was extremely hard. Cellular Automaton is no joke. Solution heavily influenced by Jinzhou Zhang's (lotabout)'s solution. https://gist.github.com/lotabout/891621ae8a01d8e512afd4b5254516b4
def create(c1,c2,bit_length):
w = c1 & ~(1<<bit_length)
x = c2 & ~(1<<bit_length)
y = c1 >> 1
z = c2 >> 1
r... | [
"noreply@github.com"
] | jonyeh48.noreply@github.com |
22902253ca00137cc6feea542ec4cd16598ac16c | 8dadbb206f2c5cd2506165afb98e3c7dc1ec591a | /python_program-105.py | f3c67a5afd20badea992594518aec1c24ebea9aa | [] | no_license | Bansi-Parmar/Python_Basic_Programs | fe3c541e37be9660027e2d02fc8f468cc0d60f2e | 5fe29f81e83f07e8897261e773e751bfef7810da | refs/heads/master | 2023-05-12T07:06:56.514433 | 2021-05-31T17:38:33 | 2021-05-31T17:38:33 | 372,475,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | ## 105. To find the reverse number of a given positive number.
print('\n\t reverse number')
print('\t.................\n')
n = int(input("Enter Number :- "))
print('Reverse Number is :- ',str(n)[::-1])
| [
"bansiparmar3999@gmail.com"
] | bansiparmar3999@gmail.com |
8de9d49675be983416774ae4bf4609d2d1d95145 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/142/usersdata/227/62295/submittedfiles/av2_p3_civil.py | 280c0440154f4d960bd1fc3ba353a60f8deb5e93 | [] | 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 | 633 | py | # -*- coding: utf-8 -*-
def media(a):
soma = 0
for i in range(0,len(a),1):
soma = soma + a[i]
media = soma/len(a)
return (media)
#ESCREVA AS DEMAIS FUNÇÕES
def somaA(x,y):
mx=media(x)
my=media(y)
soma=0
for i in range(0,len(x),1):
soma=soma+((x[i]-mx)*(y[i])-my)
ret... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8e0e53a5764b7b9a3db6808cd0c63699d8c4d210 | e33325d9a49c5190c0305ffa8c2dee0566b3dae9 | /Switch_Atoms.py | fe7d18c6a2115b60927e14e69bd0e9b2270b6373 | [] | no_license | rtrottie/VTST-Tools | 3820006e3173c068f3fa915896c492c5e1a4a058 | b3e467c656442900e2704b68c28055c158d7f538 | refs/heads/master | 2021-07-21T15:14:48.169104 | 2021-02-23T17:33:21 | 2021-02-23T17:33:21 | 37,675,855 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #!/usr/bin/env python
# Switches specified atoms from the run. Updates INCAR afterwards with values from the cfg.py. Atoms are switched
# pairwise so when called with 1 2 3 4, 1 and 2 switch, and 3 and 4 switch
# TODO: Stop this from messing with the MAGMOM
# Usage: Remove_Atoms.py Previous_Dir [This_Dir] Atom_#s
... | [
"themeisme@gmail.com"
] | themeisme@gmail.com |
a9e2684649859d6b87e451d62c77a2a7bc594f57 | 5b4b1866571453f78db5b06a08ff0eda17b91b04 | /test/vanilla/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py | 8514033f930cc55c1503dfc44161367f746472ce | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | koek67/autorest.azure-functions-python | ba345f1d194ca7431daab1210a0cd801d4946991 | b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783 | refs/heads/main | 2022-12-20T13:27:56.405901 | 2020-09-30T08:23:11 | 2020-09-30T08:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,257 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"varad.meru@gmail.com"
] | varad.meru@gmail.com |
b1809dd3f4b79f8398dbf2558718ef516e945463 | d5bb9f9e4cabf8422c63b4668f1545ccc5c9d8f6 | /tools/filecnv.py | b0c3c6a1cd97ac5ca47214aa2421a4820857fc85 | [] | no_license | mohebifar/forcebalance | 3823caf0ce971221e5f9b5f837fa5ceaae2a00bd | d830166f2954eb35d669977a522c32a1372f7973 | refs/heads/master | 2021-07-08T18:10:58.161099 | 2017-09-23T00:12:39 | 2017-09-23T00:12:39 | 106,040,943 | 3 | 0 | null | 2017-10-06T19:07:58 | 2017-10-06T19:07:58 | null | UTF-8 | Python | false | false | 330 | py | #!/home/leeping/local/bin/python
from forcebalance.molecule import Molecule
from sys import argv
def main():
M = Molecule(argv[1])
tempfnm = argv[3] if len(argv) >= 4 else None
if tempfnm != None:
M.add_quantum(tempfnm)
print M.Data.keys()
M.write(argv[2])
if __name__ == "__main__":
... | [
"leeping@e93b7d5b-8bb4-0410-82c6-a20ae092c748"
] | leeping@e93b7d5b-8bb4-0410-82c6-a20ae092c748 |
bec0d07a9a0cf235e71abbecd3a26b45a53a69b9 | c3120adea9862e6791a6d7b6ea99ceef4d1db1cc | /program/Deep/unet2/test.py | d57b572f8a972a3ceb7a5a3d9af5ec37a7effdaa | [] | no_license | Millasta/SkyEye | 634dc57514b93b61d7b4b66a4534c874de09a699 | ea5abef39c99d40e41472950cea7cf5619b46213 | refs/heads/master | 2022-12-07T06:38:32.164100 | 2020-01-16T15:49:12 | 2020-01-16T15:49:12 | 228,794,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | from program.Deep.unet2.model_v2 import *
from program.Deep.unet2.data import *
from program.Deep.unet2.weighted_categorical_crossentropy import *
import numpy as np
import cv2
import os
import warnings
warnings.filterwarnings("ignore")
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
def image_normalized(file_path):
'''... | [
"valentinm1997@gmail.com"
] | valentinm1997@gmail.com |
e7f4f24803a27a38a46f361243a674a5236a571a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03274/s010264861.py | c2235d0bdb18733aa448f6ca2a63b3cad841e71a | [] | 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 | 463 | py | import collections
n,k = map(int, raw_input().split(' '))
xis = map(int, raw_input().split(' '))
ais = [xi for xi in xis if xi >= 0]
bis = [-xi for xi in xis if xi < 0][::-1]
m = ais[k -1] if k-1 < len(ais) else +float('inf')
m = min(m, bis[k -1] if k-1 < len(bis) else +float('inf'))
for i in range(len(ais)):
if i +... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
89c21fb20a8613232a8f3d0a3ae35002b51efa11 | b1e77b3e652325db8ca3904c779ce758897c1dc8 | /introduction_to_python/conditionals/booleans.py | 239cc76b880c97b38f1eda181d7cb87409fd40af | [] | no_license | DebbyMurphy/debbys-python-projects | 330241c8047af903b0be585447557e7b46448371 | 5429a6575ea12b8526d16d9e1d1f7500fd8b07f2 | refs/heads/master | 2022-11-06T15:46:00.901194 | 2020-07-01T07:17:19 | 2020-07-01T07:17:19 | 276,279,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | # Booleans
print("AND Comparisons:")
is_raining = False
is_cold = False
print(is_raining and is_cold, not is_cold, is_raining and not is_cold)
is_raining = False
is_cold = True
print(is_raining and is_cold, not is_cold, is_raining and not is_cold)
is_raining = True
is_cold = False
print(is_raining and is_cold, not i... | [
"debby.m.jones@gmail.com"
] | debby.m.jones@gmail.com |
e61d98ff2befe6683e0a0492845c7ee6b7229d88 | 58399ec14cef82b023fb9eb83188cd3f4f5f8c20 | /loop.py | 02220070f04c09572a8c005479add22e810049f3 | [] | no_license | Venky9791/Venky_Geekexample | 0baf4262c05cfa1db4e2b2dfa57f05a2297b11da | 02d0389949d7add55a115ee9c02e064688706a9e | refs/heads/master | 2020-06-26T19:08:01.335717 | 2019-08-04T22:22:45 | 2019-08-04T22:22:45 | 199,725,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py |
def emi_calculator(p,r,t):
r = r / (12*100)
t = t * 12
emi = (p*r*pow(1+r,t) / (pow(1+r,t))-1)
return emi
print("Geeks",end=" ")
print("For Geeks")
a = [1,2,3,4]
for i in range(0,len(a)):
print(a[i],sep='@')
principal = 34500
rate = 4.5
time = 13
emi = emi_calculator(principal,rate,time)
print("... | [
"bharthivenky76@gmail.com"
] | bharthivenky76@gmail.com |
cfb9d650e62d8e31c21c44cca0bdf58358225e04 | cd92483d2b32ddb20656c520eccd7ac0e0b113bb | /tm1637.py | cafbbf96acf07e1813fdc4ba24e55a4ba4c09697 | [] | no_license | Aleksandr277/Micropython | 7755602fa13ec7f8461e4a20346148d8e13d9a2e | d8b2e4869e9d018873476063be80846c39bedc97 | refs/heads/master | 2021-07-25T22:23:29.932680 | 2017-11-06T20:30:15 | 2017-11-06T20:30:15 | 109,744,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,585 | py | # MicroPython TM1637 quad 7-segment LED display driver
# from machine import Pin # old version
from pyb import Pin
from time import sleep_us
_CMD_SET1 = const(64) # 0x40 data set
_CMD_SET2 = const(192) # 0xC0 address command set
_CMD_SET3 = const(128) # 0x80 data control command set
# 0-9, a-f, blank, dash
_SEGMEN... | [
"noreply@github.com"
] | Aleksandr277.noreply@github.com |
c77fe9366e51374c8ecebcf429288fd9af1bc905 | e506683acbdd23c6308ae720e5acc70dc2f27df5 | /stage_statistics_generic_inherit/models/stage_history.py | 63a17d9ffc42ded2a3899d682a172ed1c10a5f9c | [] | no_license | oycl/odoo | 9b017b8fecf5812fe104351e42228f308522a583 | c6bb7c85039eb16ef811c0de08f43fe0530f137a | refs/heads/master | 2020-07-04T17:26:38.329035 | 2019-08-13T21:44:08 | 2019-08-13T21:44:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import date
from odoo import api, fields, models
class TechnicalSupportOrder(models.Model):
_inherit = "technical_support.order"
tracking_fields = ['state', 'user_id']
class Part(models.Model):
... | [
"r.tejada@electronicamedica.com"
] | r.tejada@electronicamedica.com |
537e3611939a3398300c03731edf4b5724974f7c | 7971b6f96d6fae6716c77e893b128d0df0ee5a6f | /assignment8_4.py | 1b9b87424e9fd984a5744631c124323487522796 | [] | no_license | cacavelli/python_projects | c48768d0cc8a97ee6930354046137ef40ff1cb8d | 60c0453200b9ade66839ddcc13914d41a785ac78 | refs/heads/master | 2021-02-09T00:51:39.144799 | 2020-04-14T19:23:25 | 2020-04-14T19:23:25 | 244,218,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | """
Este código foi a resposta de uma atividade do curso de Python da Universidade de Michigan.
O arquivo romeo.txt está na pasta para que o código possa ser testado.
Open the file romeo.txt and read it line by line.
For each line, split the line into a list of words using the split() method.
The program s... | [
"noreply@github.com"
] | cacavelli.noreply@github.com |
990c514d0438c13979250bc1440ae99ceb870238 | c191ff2917c46483dabeb4d5bef23e305954cd88 | /Project 1/Part2/clickomania.py | c382494a9352112e306a2b06c1f82582980d406f | [] | no_license | ElvishElvis/Ve593-JI-SJTU-AI-technique | 76cbcbd49d0220cff9c49fc5b583400147060364 | 47c990bce3c7f64de6f0b0c32a78cd822236b1c4 | refs/heads/master | 2020-04-10T18:15:39.303897 | 2019-01-17T01:43:55 | 2019-01-17T01:43:55 | 161,198,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,943 | py |
class Clickomania:
def __init__(self, N, M, K, state):
self.row = N
self.column = M
self.color = K
self.score = 0
self.state = state
#This make a copy from the state
def clone(self):
NewClickomania = Clickomania(self.row, self.column, self.color, self.state... | [
"noreply@github.com"
] | ElvishElvis.noreply@github.com |
1ac2f22455ca09da9f263824044202716a86b122 | 15b0ef49a2cbc6fb71e472f91f6ad656a2bb2e01 | /Other.py | e5fe4e618f12e1d196381856c0694b3994f09c15 | [] | no_license | diexel64/News_Scraper | e148b870ade1ebcbd98ab973533fd4b83dbe62aa | c92addec3c417dfdc623c9fe4282c0a0824d6365 | refs/heads/master | 2020-12-02T20:34:22.961493 | 2019-12-31T16:13:54 | 2019-12-31T16:13:54 | 231,113,378 | 0 | 0 | null | 2019-12-31T16:11:53 | 2019-12-31T15:53:31 | null | UTF-8 | Python | false | false | 5,134 | py | import requests, datetime, time, os
from bs4 import BeautifulSoup
import openpyxl, re, pprint
import pandas as pd
from pandas import ExcelWriter
#lst = []
destFolder = os.path.dirname(os.path.abspath(__file__))
headers = {
'User-Agent': 'Mozilla/5.0',
'From': 'monsieur@domain.com'
}
class Oth... | [
"noreply@github.com"
] | diexel64.noreply@github.com |
75687bab192a3f68f275a053b3ee4aa69bc1955b | 523fb785bda41e33546c929a5c2de6c93f98b434 | /专题学习/树/BinaryTreePathDivideConquer.py | 63bc4f925a2a8db053b249b643773310f578e34c | [] | no_license | lizhe960118/TowardOffer | afd2029f8f9a1e782fe56ca0ff1fa8fb37892d0e | a0608d34c6ed96c9071cc3b9bdf70c95cef8fcbd | refs/heads/master | 2020-04-27T10:33:21.452707 | 2019-05-02T10:47:01 | 2019-05-02T10:47:01 | 174,259,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | """
Definition of TreeNode:
"""
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
class Solution:
"""
@param root: the root of the binary tree
@return: all root-to-leaf paths
"""
def binaryTreePaths(self, root):
paths = [] ... | [
"2957308424@qq.com"
] | 2957308424@qq.com |
2dc148a31732191d413c4a03bd9a8984c6e4ea01 | 28f5df5450a3091bd83c43d1eb7c5af9e6ca4a9e | /day2/tests/test_task2.py | d97858145e27deaf5c4fd8ce8106100e8a7268bc | [] | no_license | meriliis/advent-of-code-2019 | 10cc553ecd4a53977c7cccfe4733bc445b583e1f | 94baaf4eef2d20dc9a56ae25b2623699c6b0d0d5 | refs/heads/master | 2020-09-22T10:23:07.769376 | 2019-12-09T15:21:31 | 2019-12-09T15:21:31 | 225,154,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import pytest
import sys, os
sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/.."))
from day2.task2 import find_inputs_for_output
class TestFindInputsForOutput:
def test_finds_correct_inputs(self):
initial_program = [1, 0, 0, 0, 99]
desired_output = 4
expected_inputs = (2, 2)... | [
"meri@MacBook-Pro.local"
] | meri@MacBook-Pro.local |
1eb95df50b7fce6a96b9c2a92aed8338bb8782fb | 2237771ca104604ed17f4ddf59cddea0e4802460 | /models 1.py | 3298cf2da87593c523a64c0ae9c66833017e6120 | [] | no_license | shubham727-ai/Project-Assignment | 8ba8a82ee34db2f2535e16615896d3486b6e36e7 | f40092a5c60e81de0b726708302b3d7d664efa74 | refs/heads/main | 2023-02-16T10:06:31.189562 | 2021-01-13T11:18:02 | 2021-01-13T11:18:02 | 329,280,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from django.db import models
# Create your models here.
makemigration - create change and store in a file
migrate - apply the pending change created by makemigrations
class index(models.model):
name =models.models.CharField(_(""), max_length=50)
surname =models.models.CharField(_(""), max_length=5... | [
"noreply@github.com"
] | shubham727-ai.noreply@github.com |
b00ff6d542ee367cb1dcf0375a7039877f16c8ce | c100e6474e4a10bd658a24b5d4ba673928a0bac6 | /cafemanagement.py | 3caeafdae70635133f0106a3ff33249ae1da684a | [] | no_license | akthunder/Hotel_management_gui | 56f16690c800a9caa7338e3f43f9a3a839edc424 | 5b32e2c0847e602dca43245333e66bfe32d46104 | refs/heads/master | 2022-10-04T08:21:22.118594 | 2020-06-01T10:42:22 | 2020-06-01T10:42:22 | 268,493,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,791 | py | from tkinter import *
import random
import time;
import sqlite3
win=Tk()
win.geometry("1400x700")
win.title("This is cafe management system")
f1=Frame(win, width=1400 ,height=100, bd=14, relief="raise")
f1.pack(side=TOP)
label=Label(f1, text="Cafe Management Systems", font=("arial","40","bold"),fg="black")... | [
"noreply@github.com"
] | akthunder.noreply@github.com |
a2dcadde1e6487627bc4b4681ce85f833c374bb5 | dcefcd767067736bb5d343e01ded03fe67b6c0a5 | /gazon.py | 9b749bb4e45e33a10f0a3dbb69bdbfe5191cd381 | [] | no_license | bekk-studio/Astek-etude-tondeuse-autonome | 2c0b09f695723554653a75ab1026b17374a44242 | 59699ecfaa8949bb00073615e0e54ff3567af88b | refs/heads/master | 2020-04-12T20:11:24.306179 | 2018-12-21T15:49:15 | 2018-12-21T15:49:15 | 162,728,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,330 | py | import numpy as np
import sys
from six import StringIO, b
from gym import utils
from gym.envs.toy_text import discrete
FORWARD = 0
TURNRIGHT = 1
TURNLEFT = 2
"""orientation
0
3 1
2
"""
MAPS = {
"4x4": [
"SPPP",
"PPPP",
"PPPP",
"PPBG"
],
"8x8": [
"SPP... | [
"noreply@github.com"
] | bekk-studio.noreply@github.com |
ea211242d31bbd76d12c68ffe5aaa4ac19432641 | 4b1c693a6a18ac3856f2f855c15bb2c9bed90410 | /quat2/parser.py | f6e920ac6288b91cc8c5b0de252430903530acda | [] | no_license | mouboo/quat2 | 73cb06315400dd725bfd34dc13634f61366f8597 | f5d0519d0279aff8d0e5069db6211200a1e8263f | refs/heads/master | 2020-09-23T11:07:27.077622 | 2020-01-05T13:37:53 | 2020-01-05T13:37:53 | 225,485,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,694 | py | # parser.py
import itertools
import actions
### Words
verbdict = {'go' : ['walk', 'move'],
'take' : ['get','grab'],
'wear' : ['put on'],
'look' : ['examine']
}
preps = ['in','to','on','at']
def parse(phrase, player):
"""Takes a user input string and executes a co... | [
"peterkvillegard@gmail.com"
] | peterkvillegard@gmail.com |
deb209eab8d82b4f9f28f02ec254c0b89224d034 | a51e4a1299cd5e2f5a5205f49a9c82a3e9e6939d | /1.2 Data Analysis with Pandas/2.2 Pandas DataFrame.py | 309155cdb4684bcc14464a71252ad21a022aa1aa | [] | no_license | Deviloxide/Introduction-to-Machine-Learning | 0309861a63e91766eadf4be64d57dbe18efe359a | 9599066dd747e2f4deb1b87b10ba7abd7c3ed314 | refs/heads/main | 2023-05-26T00:14:14.764233 | 2021-06-09T15:36:55 | 2021-06-09T15:36:55 | 373,716,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import numpy as np
import pandas as pd
# The coding exercise for this chapter involves creating various pandas
# DataFrame objects.
# We'll first create a DataFrame from a Python dictionary. The dictionary
# will have key-value pairs 'c1':[0, 1, 2, 3] and 'c2':[5, 6, 7, 8], in that
# order.
# The index f... | [
"noreply@github.com"
] | Deviloxide.noreply@github.com |
7027469100609fa2a1519d5ef522ba4867d97b0b | e6b800c3ff19fade9ac64f0042377c5e1ba98e6c | /tutorial/urls.py | cc7e263f17f24d673884c620a468d7c2a8ca2fc9 | [] | no_license | GHOWTAN/Django_REST_framework_Tutorial | 1151ce4c365d41475d27f40828081663b9587531 | 25c0357c2e700cf3ed6e2b73f490930526dda5f5 | refs/heads/master | 2021-05-05T23:09:20.271403 | 2018-01-25T21:45:07 | 2018-01-25T21:45:07 | 116,521,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from django.conf.urls import url, include
from rest_framework import routers
from quickstart import views
router = routers.DefaultRouter()
router.register(r'owners', views.OwnerViewSet)
router.register(r'products', views.ProductViewSet)
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.Gro... | [
"paradisetan798@gmail.com"
] | paradisetan798@gmail.com |
80154383ca6b13dd06a95d0e165de2d67e2c7647 | 57a2a0db80453940e2a6816764581b44169177ca | /Stage_3/Task12_Recursion_Backtracking_Divide&Conquer/eight_queen_puzzle.py | bb0f89b12c174fe0dd6d5d2e22aee3c3365cc7bf | [
"MIT"
] | permissive | Pyabecedarian/Algorithms-and-Data-Structures-using-Python | cf9c7a2ecce3b3f9398509e30741279dd51ed241 | 08642357df60d48cb185b5487150204b42764260 | refs/heads/master | 2020-12-14T10:53:29.862940 | 2020-02-29T05:36:40 | 2020-02-29T05:36:40 | 234,718,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,914 | py | """
Backtracking: The Eight Queen Puzzle
Backtracking is an algorithmic paradigm that tries different solutions until finds a solution that `works`.
Problems which are typically solved using backtracking technique have following property in common:
> these problem can be solved by trying every possible configurati... | [
"42270798+Pyabecedarian@users.noreply.github.com"
] | 42270798+Pyabecedarian@users.noreply.github.com |
bcbcad4aff1e9d1403cd1fac2ef49fb0335964ca | f3c60bcaec68ed7025cae6c3b41065f1767e7f53 | /1_Simulations/2_Atmosphere/fit_psf.py | 670df5190be3773796e7c5bf6f11344e91654bb2 | [] | no_license | maxime-rey/M2_Internship | c5adb1836596a42c8b7723a9fbfe9c5a5c326edd | e4006553b4d843a3a368f69e7f7b668687c336db | refs/heads/master | 2022-01-20T21:54:14.010367 | 2019-07-28T13:21:33 | 2019-07-28T13:21:33 | 194,552,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,753 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time-stamp: <2018-06-04 15:34:50 ycopin>
"""
3D-spectrography PSF analysis.
"""
from __future__ import division, print_function
from astropy.table import Table
import numpy as N
import matplotlib.pyplot as P
import iminuit
from iminuit.frontends import console #Fronte... | [
"m.rey@ipnl.in2p3.fr"
] | m.rey@ipnl.in2p3.fr |
977c8b79c54b1cb10224b1f61fdd478aac3bad96 | 16435aa45aed532911ca7924fc910990c0d76fc1 | /manage.py | c9dfa60cc269a4b3d578fd0aebcbd371ada8bf5f | [] | no_license | konekato/view-atcoder-questions | 14fabf0adae5a5e7f180ebd946e3240c6d68ab05 | 84a5fb43b478bcecdffdc0194e1d887366e0be00 | refs/heads/master | 2020-12-15T10:53:53.883854 | 2020-02-29T07:23:10 | 2020-02-29T07:23:10 | 235,080,363 | 0 | 0 | null | 2020-02-15T06:53:10 | 2020-01-20T10:55:06 | HTML | UTF-8 | Python | false | false | 642 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'view_atcoder_questions.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"18ec033@ms.dendai.ac.jp"
] | 18ec033@ms.dendai.ac.jp |
4eccb52479c5050a8cb64f03d50f62ec22ebf031 | 083d93a621f0fd411aabd9b1607e83aedd588d2c | /etg/propgridiface.py | 847a0e054be21e3f253b5d29483057e83d7d49fc | [] | no_license | jns4u/Phoenix | 0a8e5b50326d37048aa58d11023308517ace525b | 478e192ccf0d75a04b78c6600963614d1039dd53 | refs/heads/master | 2021-01-09T06:20:02.546100 | 2017-02-05T03:33:00 | 2017-02-05T03:33:00 | 80,965,252 | 1 | 0 | null | 2017-02-05T03:10:08 | 2017-02-05T03:10:08 | null | UTF-8 | Python | false | false | 2,648 | py | #---------------------------------------------------------------------------
# Name: etg/propgridiface.py
# Author: Robin Dunn
#
# Created: 23-Feb-2015
# Copyright: (c) 2015 by Total Control Software
# License: wxWindows License
#--------------------------------------------------------------------... | [
"robin@alldunn.com"
] | robin@alldunn.com |
5e843d4b41898209060fd90c9b740c89bfce701b | d5d6f814794fb86543c69528188c7b6c6fe818d5 | /classifier.py | aed6f5a5c21b6d97d0ec0447687a4c94db75ea68 | [] | no_license | aguerra7002/InversionSampling | d61a79247cff82fe0856fdd40b89ec892dd1852f | 09d93e960caf9e900b0ff50714132fc9bc0f8878 | refs/heads/master | 2023-08-25T05:48:22.436982 | 2021-11-04T03:11:49 | 2021-11-04T03:11:49 | 424,456,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | # prerequisites
import torch
import torch.nn as nn
import torch.nn.functional as F
class MLPClassifier(nn.Module):
def __init__(self, x_dim, h_dim1, h_dim2, out_dim):
super(MLPClassifier, self).__init__()
# encoder part
self.fc1 = nn.Linear(x_dim, h_dim1)
self.fc2 = n... | [
"alexguerra618@gmail.com"
] | alexguerra618@gmail.com |
54ecb86c49656278cd829b496017000c28b118b7 | 93fd5507aa5a529604f1b1530d1ddf811ac28e3c | /Api/Api/settings.py | 5183fb7b5a96d8d45e3876d6bdc367a6b399614f | [] | no_license | Teng0/Django_Api | 50d7293d32a5c1b07bf068daee689b6768d88dae | 9ba567a74c727e893640d401393a1cd8398e336a | refs/heads/main | 2023-05-22T23:53:50.763985 | 2021-06-15T12:41:18 | 2021-06-15T12:41:18 | 377,158,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | """
Django settings for Api project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib imp... | [
"tengosmail@gmail.com"
] | tengosmail@gmail.com |
b2d1bee1c1f29ad7eb9757329b61d459d81ec670 | 9ff9a4871217759235c8556446244b09ad3fd6c2 | /scripts/simple_comparison.py | 665144b3c1ee32bbe87fc09ee9d0b46ac649ba3a | [] | no_license | ATSpitzer/FlightFinder | 65111cf85da10ecaaf0a3a67b61a18867f049512 | 7656323b37d4eaa258a21c39c8cbaff078984565 | refs/heads/master | 2022-11-25T13:22:38.265190 | 2020-07-30T23:31:46 | 2020-07-30T23:31:46 | 277,891,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | from Page_Explorer.Trip.TripResults_Explorer import TripResultsExplorer
from ResultParser import combine_result_dicitonary, filter_combined_results
import json
import pandas
pandas.set_option('display.max_rows', None)
pandas.set_option('display.max_columns', None)
URL_1="https://us.trip.com/hotels/list?city=7291&cou... | [
"ATSpitzer@users.noreply.github.com"
] | ATSpitzer@users.noreply.github.com |
e83a5ab48045b3772e0757155a62cbe6deddfd54 | 54263a576ee5d2ef9e5bd9c20aa05f93a75065f4 | /peers/accounts/permissions.py | 60613cd54d8745da1932f96a2a08fead6bb8005c | [] | no_license | rmishra7/usgbc.peers | 9f6bfe84e7a05d05b42c2f7b25a72bf2fb311dde | 240a11f2766d0963d604dc41acc909771bb46dd6 | refs/heads/master | 2020-05-21T20:13:15.160419 | 2016-12-27T05:39:00 | 2016-12-27T05:39:00 | 65,134,232 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 338 | py |
from rest_framework import permissions
__all__ = [
'IsNotAuthenticated',
]
class IsNotAuthenticated(permissions.BasePermission):
"""
Allows access only to un-authenticated users.
"""
def has_permission(self, request, view):
return not (request.user and request.user.is_... | [
"rmishra@usgbc.org"
] | rmishra@usgbc.org |
e934bf6fc00ef71de0e2e6196f8ddca60a64e648 | e3154403f4f93012e97c5163a537789431be50dd | /firstforpython/5.7/zoo.py | 6a7d9da63d9e8999c9119fda0fb47b626522d284 | [] | no_license | leeryu/python-for-sysadmin | c1e6debe7c44e10b8f7a9ec9a218adc0864b6acd | 7777a1b9807378cd6de742b708fcec8841b57356 | refs/heads/master | 2021-05-11T23:34:09.664208 | 2018-01-19T07:02:23 | 2018-01-19T07:02:23 | 117,513,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py |
def hours():
return 'Open 9-5 daily' | [
"sexyuck@gmail.com"
] | sexyuck@gmail.com |
b392a03ab73267692b64ee4c97a84ddab5311947 | b692a9a9bc8853111742b038c54cc1b274a337b5 | /img_brightness_show.py | bc25cc33ebfcc65b33aed19c2c3552d76d8b9aa6 | [
"MIT"
] | permissive | tianfr/Image_Process_Methods | cac5f3ba0e67e9a1fb3d5659dcfdd034cac13867 | 0b5ba2329d9afa59841c0e6a45bd214996faaa6d | refs/heads/master | 2022-11-20T12:10:42.153316 | 2020-07-27T12:03:03 | 2020-07-27T12:03:03 | 282,885,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | #!usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author:Sui yue
@describe: 灰度直方图,描述每个灰度级在图像矩阵中的像素个数或者占有率
@time: 2019/09/15
"""
import sys
import cv2
import numpy as np
import matplotlib.pyplot as plt
# 对于8位图,图像的灰度级范围式0~255之间的整数,通过定义函数来计算直方图
def calcGrayHist(image):
# 灰度图像矩阵的高、宽
rows, cols = image.shape
... | [
"747458467@qq.com"
] | 747458467@qq.com |
6ae98ec9b19602ca3b934564f4ae0d463cb011ee | a99a3781732dff2c0808d42fa0452f3baca4b0e2 | /launch_training_tournament.py | 231f0f17e8c5728b23ad1b706a7636d833e099a6 | [
"MIT"
] | permissive | linearregression/ai-challenger | 51e639ffc1b5c92f1d33b52d53e8e7f5b96b7fee | ae2819ba7b842135673aee3dfc3612783f8d7813 | refs/heads/master | 2020-12-30T19:57:58.638055 | 2015-10-20T16:20:03 | 2015-10-20T16:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | #!/usr/bin/env python
import json
import os
import urllib
import urllib2
import subprocess
import sys
HOST = 'http://127.0.0.1:8081'
SERVER_BINARY = './ai-challenger-grid/ai-challenger-grid'
def main():
dirname = os.path.dirname(os.path.realpath(__file__))
os.chdir(dirname)
if not os.path.exists(SERVER... | [
"divanov@machinezone.com"
] | divanov@machinezone.com |
d7c53619199ac1dfc49c7119f880c6f0920483a1 | 14e4b6a6683de09fc3a7d5ace5b40aca1388d760 | /examples/gr0.py | f3846c19a5f1c22a55b077f39f95500544a09414 | [] | no_license | OptimalPandemic/CS476-3 | f43bfb995c4c90338ac0575d1e44d8d139731c62 | 6f7a59e758761ebf26dfc5f9a36a744d7e4ddca0 | refs/heads/master | 2021-01-20T00:58:42.093346 | 2016-11-05T02:07:48 | 2016-11-05T02:07:48 | 72,062,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | import sys
from turtle import Turtle, mainloop
class KeysMouseEvents:
def __init__(self):
super().__init__()
self.T = Turtle()
self.screen = self.T.getscreen()
self.screen.onkey(self.clear, "c")
self.screen.onkey(self.quit, "q")
self.screen.onclick(self.draw_fig)
... | [
"austin@campuswise.com"
] | austin@campuswise.com |
c85c401ca39a394abef692d10332763a237fa7ed | 5764941cfdbb67c78afa7861b2df41c153637827 | /chap04树与图/03list_of_depth.py | 906015b4a3f3ee1a4c98c8b9515eed6f983bc9f3 | [
"MIT"
] | permissive | zzsyjl/crack_the_coding_interview | 4b496a5c693d1a8dd9c175132d968ff21b1ba82f | ea76b9f87c321880833fe69bee2b98f4b3f13ff0 | refs/heads/main | 2023-08-14T01:15:54.940998 | 2021-09-17T07:00:09 | 2021-09-17T07:00:09 | 373,381,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | from collections import deque
import sys
sys.path.append(
'/Users/jlyang/python_projects/crack_the_coding_interview/chap02链表')
from linked_list import LinkedList
import unittest
"""
特定深度节点链表. 给定一个二叉树, 设计一个算法, 创建每个深度上的节点链表
分析:
这个东西应该也是很有用的. 我用层遍历的思路, 每次集体出一层的时候, 再集体进一层.
"""
from collections import deque
import sys
... | [
"287683119@qq.com"
] | 287683119@qq.com |
f613d66153900cdfab69753db317f2b3e2792278 | 64c8d431c751b1b7a7cb7224107ee40f67fbc982 | /code/python/external/pi3d/constants/__init__.py | a0dfd912eed894eb189c79ca89c51473d892341d | [
"MIT"
] | permissive | silky/echomesh | 6ac4755e4ff5ea3aa2b2b671c0979068c7605116 | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | refs/heads/master | 2021-01-12T20:26:59.294649 | 2013-11-16T23:29:05 | 2013-11-16T23:29:05 | 14,458,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | from __future__ import absolute_import, division, print_function, unicode_literals
"""
pi3d.constants contains constant values, mainly integers, from OpenGL ES 2.0.
"""
VERSION = '0.06'
STARTUP_MESSAGE = """
Pi3D module - version %(version)s
Copyright (c) Tim Skillman, 2012-2013
Copyright (c) Patrick Gaunt, ... | [
"tom@swirly.com"
] | tom@swirly.com |
e5ec85f0684534bf8f010ac3e339a54ac37dfb2e | ccef8d9a16c0752fdf8de608c8b4f728f0586e1d | /resize_rotate_images.py | 7bb1f3d944d2380face6cc7ddb804df97d83c603 | [] | no_license | Sarath197/Intruder-Alert-System | fdcf79087cda7906fbc5ddf6a002dfcb4f4e76da | cb0bd495e21e428a9f1a453317e63ef30e162de3 | refs/heads/master | 2020-04-10T08:49:02.062196 | 2018-12-08T07:49:56 | 2018-12-08T07:49:56 | 160,915,874 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | '''
Sarath Kumar
sarathsmartzs[at]gmail[dot]com
SACET, Chirala
Takes all the images in "input_path" and rotates , resizes them with given parameters.
Modified images are saved at "output_path".
'''
import cv2
from os import listdir
input_path= "input_images/"
output_path= "new_resize/"
images= listdi... | [
"noreply@github.com"
] | Sarath197.noreply@github.com |
22ba7a4d8a0971eeedfd25e58733e5baece63ad0 | c73db175fa1b9575609e7865dc544dacb3ee1fa7 | /app/errors.py | a4aa6e8389e3ef23d88a181763e8c56832fba4dc | [] | no_license | ArthurConan/test_parser | ccb1f51b45d710fdb6e65c36790f7fa652abe7b1 | 1c74c81dab907210f0f119f59a1a4348569e794c | refs/heads/master | 2021-03-28T01:12:11.760610 | 2020-03-16T22:10:45 | 2020-03-16T22:10:45 | 247,822,875 | 0 | 0 | null | 2021-03-20T03:10:47 | 2020-03-16T21:48:04 | Python | UTF-8 | Python | false | false | 1,088 | py | import asyncio
import aiohttp
import aioredis
request_errors = (
ConnectionRefusedError,
ConnectionResetError,
asyncio.TimeoutError,
aiohttp.InvalidURL,
aiohttp.client_exceptions.ClientConnectorError,
aiohttp.client_exceptions.ClientResponseError... | [
"noreply@github.com"
] | ArthurConan.noreply@github.com |
003c3aaec70843e685a4dec277cb198174d2ec40 | 7eb49bb0e94816bbccf52d4f00459b45d4b2e425 | /aoc2018/__init__.py | 3f8996332d61d8ea2c9ee37771cbc99a31b45975 | [] | no_license | phorkyas-tg/advent-of-code | 0b65360c0d70f2be2d59cbe978a7e8585ce8cd7b | e61dfdde4489f965892d5f71966e20a0a36f1e79 | refs/heads/master | 2022-12-26T07:46:54.761010 | 2022-12-25T09:58:43 | 2022-12-25T09:58:43 | 228,563,146 | 0 | 0 | null | 2022-05-09T19:16:40 | 2019-12-17T07:55:43 | Python | UTF-8 | Python | false | false | 882 | py | from .AocInput import *
from .CalculateFrequency import CalculateFrequency, CalculateFrequencyDuplicate
from .CheckSum import CalculateChecksum
from .HammingDistance import GetCommonCharsFromIds
from .OverlappingSquares import GetMultipleClaimedSquares, GetIntactClaimId
from .GuardSchedule import GenerateGuardSche... | [
"tom.gothan@tracetronic.de"
] | tom.gothan@tracetronic.de |
8919b11db0a35f57941caa8a697d20d6bcaef424 | aac676acd9d9ab5d68ce46b72da8fe010a430bb1 | /Pacman/search/search.py | ab6ee7460169f3a9acf59e35a12262d56582c2cc | [] | no_license | SamuelFoo/Learn | 55609118b502269956784830bdd7e4849b014e1a | 5bb05a2cdb1b5f7294d4ab70df48a57e9d29365f | refs/heads/master | 2022-06-05T17:16:08.398649 | 2020-04-28T03:31:03 | 2020-04-28T03:31:03 | 259,520,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,098 | py | # search.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# A... | [
"fooenzesamuel@gmail.com"
] | fooenzesamuel@gmail.com |
49acb7c799821f6f485dc8243c3203145bd9385f | c6db8eccba0f863e464fa23e7c8c5f27d6da277b | /CS/Programming_Languages/Python/Modules/exterior/topics/gui/dearPyGUI/tutorials/_3_item_usage/_3_3_configuration_state_info/configure_items.py | ea4e913f1183433230106f6806d466fcd30d277d | [] | no_license | corridda/Studies | ceabb94f48bd03a31e4414e9af841d6a9b007cf9 | 1aacf52f2762e05a416c9e73ebe20794cb5d21cf | refs/heads/master | 2023-02-05T18:51:04.217528 | 2023-01-28T09:21:03 | 2023-01-28T09:21:03 | 216,492,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import dearpygui.dearpygui as dpg
dpg.create_context()
with dpg.window(label="Tutorial"):
# configuration set when button is created
dpg.add_button(label="Apply", width=300)
# user data and callback set any time after button has been created
btn = dpg.add_button(label="Apply 2")
dpg.set_item_labe... | [
"corridda@yandex.ru"
] | corridda@yandex.ru |
2d2a0919eaf9d4900549e260e76a29a86aff5212 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab9/set 2/VICTORIA ALEXANDRA ALERS_19376_assignsubmission_file_Lab9/VICTORIA ALEXANDRA ALERS_19376_assignsubmission_file_Lab9.py | 23b6a370b40815a0efeb963db12ada5ea16a12bf | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #1________________________________
from math import sin, exp
class F:
def __init__(self, a, w):
self.a = a
self.w = w
def value(self, x):
a = self.a
w = self.w
return exp(-a * w) * sin(w * x)
from math import pi
f = F(a=1.0, w=0.1)
print (f.value(x=pi))
f.a = 2
print... | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
a55ea6fb88744fafbc82c42cd4a4bc6df2028af1 | 98e1f43d148d556bb2ce76515f10e509e854ee1a | /hogehoge/python/sura2yomeruPython/chap5/chap5-3-2.py | 771b54a197290a202e71f36d7fea17be8a6411c1 | [] | no_license | hiroshikinofu/hoihoi | 0688d4a02f4eeab5b2f2a74610addacca5c5b705 | a404940c2066d25714f5da752c9840bfa11d0e5b | refs/heads/master | 2018-10-14T05:52:12.695354 | 2018-08-21T00:40:40 | 2018-08-21T00:40:40 | 117,177,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | # 日付一覧に曜日も表示する
# python3
from datetime import date, timedelta
# datetimeモジュールからdateオブジェクトとtimedeltaオブジェクトを取り込め
youbi = '月火水木金土日'
# 文字列「月火水木金土日」を変数youbiに入れろ
start = date(2018, 6, 18)
# 数値2018と数値6と数値18を指定してdateオブジェクトを作成し、変数startに入れろ
for d in range(14):
# 0~数値14直前の範囲内の整数を変数dに順次入れる間、以下を繰り返せ
cur = start + timedelt... | [
"hiroshikinofu@gmail.com"
] | hiroshikinofu@gmail.com |
7b91c8ada0db683715b51a9cca5e470b4c885b26 | 281210f0b78371bb991df7be50e3fea41c259418 | /learning_users/settings.py | bece60ed129a538b3da095e6677c40113f13c11d | [] | no_license | Faiz4work/first-django-deployment | 5cd0ca8a29059a7c9cc0beadbb088784a166b643 | 2e361e262b674c67986db4d9daac3d649bac236e | refs/heads/master | 2020-05-02T20:03:08.624399 | 2019-04-03T07:41:28 | 2019-04-03T07:41:28 | 178,177,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | """
Django settings for learning_users project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
impor... | [
"faizahmed11234@gmail.com"
] | faizahmed11234@gmail.com |
425c324708d6569908e314be60f581c65bb1afea | 82dfca511e209dca52e349ef31f09b633415b85b | /Metodo Grafico/metodografico.py | adf535bbc9e568c59e54c44837ef97ba8451e1c7 | [] | no_license | Cristian-Blanco/investigacion-operaciones | 9abf1f8db8dfbffbc4325420792e61217bf43b92 | 091a320a87f62e001e7e24c00aabdaeb17378a1a | refs/heads/master | 2023-03-11T13:23:36.628644 | 2021-02-24T23:34:32 | 2021-02-24T23:34:32 | 301,534,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,439 | py | import sympy as sym
from sympy import symbols, plot_implicit, And
from sympy.plotting import plot
#VARIABLES
x, y = symbols('x, y') #Declaramos las variables X,Y
diccionario = {} #Este diccionario lo utilizaremos para guardar los maximos o Minimos (Depende el caso)
lista = [] #La lista nos ayudara a organizar los maxi... | [
"cristianjmb10@gmail.com"
] | cristianjmb10@gmail.com |
e6297b19b200728ecedcc82b222603e469f71954 | b071bedf74a7e9cdde9040947433447e77de98fc | /portfolio/migrations/0004_login_email.py | 5987218bc89e2d3730d33ff4f5f47f909a4b6caf | [] | no_license | Yomnaali22/Django3_project | 0e9b28024c67c9916d62cd4462861dfd37795425 | 33e6c45417a3277a311df956bbf692a93d9433ca | refs/heads/master | 2023-03-25T01:10:21.708135 | 2021-03-17T16:26:38 | 2021-03-17T16:26:38 | 338,165,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # Generated by Django 3.1.4 on 2021-02-26 22:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0003_auto_20210227_0010'),
]
operations = [
migrations.AddField(
model_name='login',
name='Email',
... | [
"Yomnaali1718@gmail.com"
] | Yomnaali1718@gmail.com |
0844bbe4a8d7dc1254333da5414f1afff5a87ca7 | f4b694982027ac362de1e9d6755f2943d0355a06 | /DECSKS-24_--_Boundary_conditions_revisited_on_a_cell_centered_perspective/DECSKS/main.py | 64e3792512a19fa7015a7435945c2d43bd03da74 | [] | no_license | dsirajud/IPython-notebooks | 55275e44191c16f5393571522787993f931cfd98 | 6ad9d978c611558525fc9d716af101dc841a393b | refs/heads/master | 2021-01-15T15:33:57.119172 | 2016-07-13T20:08:29 | 2016-07-13T20:08:29 | 35,054,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,042 | py | #!/usr/bin/env python
#============================================================================##
#DECSKS - DEterministic Convected Scheme Kinetic Solver for Boltzmann systems #
#-----------------------------------------------------------------------------#
# 1D1V Vlasov-Poisson system, two species ... | [
"sirajuddin@wisc.edu"
] | sirajuddin@wisc.edu |
c00448b92e9ee8ba2796820e55c64a9ef18a190f | 911794909018514bf742b8411eade0d4e4daccaa | /backend/backend/urls.py | 1a3614c13f2768258949e278d7155324e2270442 | [] | no_license | iza17hor/Python-JavaScript-TodoList | b0328dd1bf01007550b98729cdb533c550281243 | 8e08b05b12450ba78b3bef26aeb0741ba1f9a2f1 | refs/heads/main | 2023-03-07T03:33:39.985566 | 2021-02-25T21:58:04 | 2021-02-25T21:58:04 | 342,390,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """backend 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='home')
Class-based... | [
"iza17hor@gmail.com"
] | iza17hor@gmail.com |
1fdca67de448f93540d8a9c52f91526ca3245071 | 0693aa6a146126c43a3114b79d2f458abde4d58a | /julia-version/genGraph.py | 363b90b33362990c8f867c1703a8346f1515c068 | [] | no_license | ReNginx/LRAstar | 5301ddd63c19265671b730477f48cda1788e9b7c | eebd14f7b55d0ab0694e4e5691cae43504558e1d | refs/heads/master | 2020-04-03T22:47:13.997184 | 2019-05-29T04:14:23 | 2019-05-29T04:14:23 | 155,609,582 | 0 | 1 | null | 2018-11-08T22:52:09 | 2018-10-31T19:04:30 | C++ | UTF-8 | Python | false | false | 5,577 | py | import numpy as np
import turtle as tl
import math
import heapq
ang_gap = 30
dis_gap = 1
class segment:
def __init__(self, p1, p2):
self.p1 = np.array(p1)
self.p2 = np.array(p2)
self.d = self.p2 - self.p1
def intersect(self, seg):
return np.cross(((seg.p1 - self.p1).reshape(1,... | [
"969765303@qq.com"
] | 969765303@qq.com |
59b8200d9e426b9b624b7b691217b17661c322ac | 2c505ac232a9c56cc46503c5c2e77c2a7cdb13bc | /app.py | a64ac8d46c208fd50731e557ae399d2a78f18f86 | [] | no_license | underhood31/EzyChair | 4b612e6ee94e7c96a36fddb4fc22f846c14a69a0 | ba5771cd8dfddfc62762478fc4002a7b706d5da5 | refs/heads/master | 2020-04-26T14:02:31.391383 | 2019-03-05T16:40:51 | 2019-03-05T16:40:51 | 173,599,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import flask
from flask import render_template
from flask import request
app = flask.Flask(__name__)
@app.route('/')
def homepage():
# return("Welcome to the home page new page")
return render_template("./EzyChair.html")
if __name__ == "__main__" :
app.run(debug=True) | [
"manavjeet18295@iiitd.ac.in"
] | manavjeet18295@iiitd.ac.in |
db65f69a9e0e554a65106f54ff445628c3458f7c | 839d8d7ccfa54d046e22e31a2c6e86a520ee0fb5 | /icore/high/thread/thread_queue.py | 7e1d562ecf087f475cb24370b431819ad85ae3b5 | [] | no_license | Erich6917/python_corepython | 7b584dda737ef914780decca5dd401aa33328af5 | 0176c9be2684b838cf9613db40a45af213fa20d1 | refs/heads/master | 2023-02-11T12:46:31.789212 | 2021-01-05T06:21:24 | 2021-01-05T06:21:24 | 102,881,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | # -*- coding: utf-8 -*-
# @Time : 2017/12/29
# @Author : LIYUAN134
# @File : thread_queue.py
# @Commment:
#
# -*- coding: UTF-8 -*-
import Queue
import threading
import time
exitFlag = 0
class myThread(threading.Thread):
def __init__(self, threadID, name, q):
threading.Thread.__init... | [
"1065120559@qq.com"
] | 1065120559@qq.com |
8f9d55a7ec42f1f6e1469f2eb18176ef4fb5e402 | d85abbce34bc6aa43b9069168688c063949b0b8f | /trivia/trivia/wsgi.py | c5baa3e6f87a5578683e53c3c070dd9d5e413d0a | [] | no_license | wilsonramstead/TriviaGame | 048b6e3929c16da0c40d88338d667f9d5779fa65 | 8d4b562a381c271c23eda5a7e0790932f7e737cd | refs/heads/master | 2020-06-14T08:35:21.263753 | 2019-07-04T05:20:51 | 2019-07-04T05:20:51 | 194,960,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
WSGI config for trivia 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"ramsteadwilson@gmail.com"
] | ramsteadwilson@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.