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
1eb0097e0c8cd468a65d150445c6869570bf0e9b
4a8c1f7d9935609b780aff95c886ef7781967be0
/atcoder/ABC/A/154_a.py
8d5b91dddaa69962c59f8ea2171b704dc855ff16
[]
no_license
recuraki/PythonJunkTest
d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a
2556c973d468a6988d307ce85c5f2f8ab15e759a
refs/heads/master
2023-08-09T17:42:21.875768
2023-07-18T23:06:31
2023-07-18T23:06:31
13,790,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,015
py
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): s, t = input().split() a, b = map(int,input().split()) u = input() d = dict() d[s] = a d[t] = b d[u] -= 1 print("{0} {1}".format(d[s], d[t])) class TestClass(unittest.TestCase): def assertIO(self, input, output): stdout, stdin = sys.stdout, sys.stdin sys.stdout, sys.stdin = StringIO(), StringIO(input) resolve() sys.stdout.seek(0) out = sys.stdout.read()[:-1] sys.stdout, sys.stdin = stdout, stdin self.assertEqual(out, output) def test_input_1(self): print("test_input_1") input = """red blue 3 4 red""" output = """2 4""" self.assertIO(input, output) def test_input_2(self): print("test_input_2") input = """red blue 5 5 blue""" output = """5 4""" self.assertIO(input, output) if __name__ == "__main__": unittest.main()
[ "glenda.kanai@gmail.com" ]
glenda.kanai@gmail.com
3608562ae34b92bfa84cac700954eb53ae13340b
917b080572da1d0572bd7322080962aae96c3534
/wpscan_out_parse/parser/components/_parts/wp_item_version.py
e50b80afd9a950d6abf7ff93402ea09550db06f6
[ "MIT" ]
permissive
tristanlatr/wpscan_out_parse
90bff72cf43cc718eb6daa1c183180cb13c33e24
737a7e9b5f47c7e433351b7a9c0b55d76f173e25
refs/heads/master
2023-06-24T18:44:50.969064
2021-07-27T03:22:24
2021-07-27T03:22:24
287,036,975
8
5
MIT
2021-04-26T20:45:13
2020-08-12T14:34:46
Python
UTF-8
Python
false
false
1,494
py
from typing import Any, Dict, Sequence from .finding import Finding class WPItemVersion(Finding): def __init__(self, data:Dict[str,Any], *args: Any, **kwargs: Any) -> None: """Themes, plugins and timthumbs Version. From: https://github.com/wpscanteam/wpscan/blob/master/app/views/json/theme.erb https://github.com/wpscanteam/wpscan/blob/master/app/views/json/enumeration/plugins.erb https://github.com/wpscanteam/wpscan/blob/master/app/views/json/enumeration/timthumbs.erb """ super().__init__(data, *args, **kwargs) self.number: str = self.data.get("number", None) def get_alerts(self) -> Sequence[str]: """Return any item version vulnerabilities""" return super().get_alerts() def get_warnings(self) -> Sequence[str]: """Return empty list""" return [] def get_infos(self) -> Sequence[str]: """Return 0 or 1 info. No infos if version could not be recognized""" if self.number: info = "Version: {}".format(self.number) # If finding infos are present, add them super_infos = super().get_infos() if super_infos and all(super_infos) and self.show_all_details: info += "\n{}".format(next(iter(super_infos))) return [info] else: return [] def get_version(self) -> str: if self.get_infos(): return self.number else: return "Unknown"
[ "tris.la.tr@gmail.com" ]
tris.la.tr@gmail.com
26373103568f5bf47e748a3addd1fa83f8849293
eeb1c9e26683f9d889b7b9dd36b872460570b20c
/day6/program11.py
001c8ae84336fa27fbc5248e0818b6bbbaf36698
[]
no_license
PiyushKumar0/tathastu_week_of_code
e103d7f343bda876ddf587971a0e6a53d4d7f608
7a12f1a17ea7ce26c4990fadba4b132c437a7c0b
refs/heads/master
2022-08-19T13:58:39.085360
2020-05-25T17:46:55
2020-05-25T17:46:55
265,224,263
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
#https://www.linkedin.com/in/piyushkumar0/ size = int(input("Enter size of list: ")) ls = [] for i in range(size): ls.append(int(input("Enter element " + str(i+1) + " : "))) ls.sort() print("\nLargest product of 3 nummbers in list is:", ls[-1]*ls[-2]*ls[-3])
[ "noreply@github.com" ]
PiyushKumar0.noreply@github.com
904c35da6fd52f687a268b76d5854921093b3f83
c6e5d5ff2ee796fd42d7895edd86a49144998067
/platform/coredb/tests/test_api/test_projects_serializers.py
87469beef2281918ad7a46fe6d1fccf9c43e180d
[ "Apache-2.0" ]
permissive
zeyaddeeb/polyaxon
f4481059f93d8b70fb3d41840a244cd9aaa871e0
1f2b236f3ef36cf2aec4ad9ec78520dcc9ef4ee5
refs/heads/master
2023-01-19T05:15:34.334784
2020-11-27T17:08:35
2020-11-27T17:08:35
297,410,504
0
0
Apache-2.0
2020-09-21T17:20:27
2020-09-21T17:20:26
null
UTF-8
Python
false
false
2,458
py
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import pytest from coredb.api.projects.serializers import ( ProjectDetailSerializer, ProjectNameSerializer, ProjectSerializer, ) from tests.test_api.base import BaseTestProjectSerializer @pytest.mark.serializers_mark class TestProjectNameSerializer(BaseTestProjectSerializer): serializer_class = ProjectNameSerializer expected_keys = {"name"} def test_serialize_one(self): obj1 = self.create_one() data = self.serializer_class(obj1).data assert set(data.keys()) == self.expected_keys for k, v in data.items(): assert getattr(obj1, k) == v @pytest.mark.serializers_mark class TestProjectSerializer(BaseTestProjectSerializer): serializer_class = ProjectSerializer expected_keys = { "uuid", "name", "description", "tags", "created_at", "updated_at", } def test_serialize_one(self): obj1 = self.create_one() data = self.serializer_class(obj1).data assert set(data.keys()) == self.expected_keys data.pop("created_at") data.pop("updated_at") assert data.pop("uuid") == obj1.uuid.hex for k, v in data.items(): assert getattr(obj1, k) == v @pytest.mark.serializers_mark class TestProjectDetailSerializer(TestProjectSerializer): serializer_class = ProjectDetailSerializer expected_keys = TestProjectSerializer.expected_keys | { "readme", } def test_serialize_one(self): obj1 = self.create_one() data = self.serializer_class(obj1).data assert set(data.keys()) == self.expected_keys data.pop("created_at") data.pop("updated_at") assert data.pop("uuid") == obj1.uuid.hex for k, v in data.items(): assert getattr(obj1, k) == v del BaseTestProjectSerializer
[ "mouradmourafiq@gmail.com" ]
mouradmourafiq@gmail.com
f7f5375e94e82e817d562cf4d76c04cd6fd9cb62
a59e13d5bdf7fa933229fdecee203a4e72fc01a2
/ldcpy/plot.py
6cce356c3b4a9733f848d4fb6aaf20f1c68966c3
[]
no_license
mnlevy1981/ldcpy
7fa331c8a5d1e5f2b1a4583f72928ea3ddcc5c56
2aa7285b7addf59116eeafa567094cf6f5113180
refs/heads/master
2020-08-18T22:45:11.450989
2019-10-18T19:59:28
2019-10-18T19:59:28
215,843,523
0
0
null
2019-10-17T16:59:52
2019-10-17T16:59:52
null
UTF-8
Python
false
false
4,854
py
import numpy as np import matplotlib.pyplot as plt #import matplotlib as mpl import cartopy import cartopy.crs as ccrs import cmocean from cartopy.util import add_cyclic_point ############### def compare_mean(ds, varname, ens_o, ens_r, method_str, nlevs=24): """ visualize mean value at each grid point for orig and compressed (time-series) assuming FV data and put the weighted mean """ mean_data_o = ds[varname].sel(ensemble=ens_o).mean(dim='time') mean_data_r = ds[varname].sel(ensemble=ens_r).mean(dim='time') #weighted mean gw = ds['gw'].values o_wt_mean = np.average(np.average(mean_data_o,axis=0, weights=gw)) r_wt_mean = np.average(np.average(mean_data_r,axis=0, weights=gw)) lat = ds['lat'] cy_data_o, lon_o = add_cyclic_point(mean_data_o, coord=ds['lon']) cy_data_r, lon_r = add_cyclic_point(mean_data_r, coord=ds['lon']) fig = plt.figure(dpi=300, figsize=(9, 2.5)) mymap = cmocean.cm.thermal # both plots use same contour levels levels = _calc_contour_levels(cy_data_o, cy_data_r, nlevs) ax1 = plt.subplot(1, 2, 1, projection=ccrs.Robinson(central_longitude=0.0)) title = f'orig:{varname} : mean = {o_wt_mean:.2f}' ax1.set_title(title) pc1 = ax1.contourf(lon_o, lat, cy_data_o, transform=ccrs.PlateCarree(), cmap=mymap, levels=levels) ax1.set_global() ax1.coastlines() ax2 = plt.subplot(1, 2, 2, projection=ccrs.Robinson(central_longitude=0.0)) title = f'{method_str}:{varname} : mean = {r_wt_mean:.2f}' ax2.set_title(title) pc2 = ax2.contourf(lon_r, lat, cy_data_r, transform=ccrs.PlateCarree(), cmap=mymap, levels=levels) ax2.set_global() ax2.coastlines() # add colorbar fig.subplots_adjust(left=0.1, right=0.9, bottom=0.05, top=0.95) cax = fig.add_axes([0.1, 0, 0.8, 0.05]) cbar = fig.colorbar(pc1, cax=cax, orientation='horizontal') cbar.ax.tick_params(labelsize=8, rotation=30) ############### def compare_std(ds, varname, ens_o, ens_r, method_str, nlevs=24): """ TODO: visualize std dev at each grid point for orig and compressed (time-series) assuming FV mean """ std_data_o = ds[varname].sel(ensemble=ens_o).std(dim='time', ddof=1) std_data_r = ds[varname].sel(ensemble=ens_r).std(dim='time', ddof=1) lat = ds['lat'] cy_data_o, lon_o = add_cyclic_point(std_data_o, coord=ds['lon']) cy_data_r, lon_r = add_cyclic_point(std_data_r, coord=ds['lon']) fig = plt.figure(dpi=300, figsize=(9, 2.5)) mymap = plt.get_cmap('coolwarm') # both plots use same contour levels levels = _calc_contour_levels(cy_data_o, cy_data_r, nlevs) ax1 = plt.subplot(1, 2, 1, projection=ccrs.Robinson(central_longitude=0.0)) title = f'orig:{varname}: std' ax1.set_title(title) pc1 = ax1.contourf(lon_o, lat, cy_data_o, transform=ccrs.PlateCarree(), cmap=mymap, levels=levels) ax1.set_global() ax1.coastlines() ax2 = plt.subplot(1, 2, 2, projection=ccrs.Robinson(central_longitude=0.0)) title = f'{method_str}:{varname}: std' ax2.set_title(title) pc2 = ax2.contourf(lon_r, lat, cy_data_r, transform=ccrs.PlateCarree(), cmap=mymap, levels=levels) ax2.set_global() ax2.coastlines() # add colorbar fig.subplots_adjust(left=0.1, right=0.9, bottom=0.05, top=0.95) cax = fig.add_axes([0.1, 0, 0.8, 0.05]) cbar = fig.colorbar(pc1, cax=cax, orientation='horizontal') cbar.ax.tick_params(labelsize=8, rotation=30) ############### def mean_error(ds, varname, ens_o, ens_r, method_str): """ visualize the mean error want to be able to input multiple? """ e = ds[varname].sel(ensemble=ens_o) - ds[varname].sel(ensemble=ens_r) mean_e = e.mean(dim='time') lat = ds['lat'] cy_data, lon = add_cyclic_point(mean_e, coord=ds['lon']) myfig = plt.figure(dpi=300) mymap = plt.get_cmap('coolwarm') nlevs = 24 ax = plt.subplot(1, 1, 1, projection=ccrs.Robinson(central_longitude=0.0)) pc = ax.pcolormesh(lon, lat, cy_data, transform=ccrs.PlateCarree(), cmap=mymap) # pc = ax.contourf(lon, lat, cy_data, transform=ccrs.PlateCarree(), cmap=mymap, levels=nlevs) cb = plt.colorbar(pc, orientation='horizontal', shrink=.95) cb.ax.tick_params(labelsize=8, rotation=30) ax.set_global() ax.coastlines() title = f'{varname} ({method_str}): mean error ' ax.set_title(title) ############### def error_time_series(ds, varname, ens_o, ens_r): """ error time series """ pass ############### def _calc_contour_levels(dat_1, dat_2, nlevs): # both plots use same contour levels minval = np.nanmin(np.minimum(dat_1, dat_2)) maxval = np.nanmax(np.maximum(dat_1, dat_2)) levels = minval + np.arange(nlevs+1)*(maxval - minval)/nlevs #print('Min value: {}\nMax value: {}'.format(minval, maxval)) return levels
[ "mike.levy.work@gmail.com" ]
mike.levy.work@gmail.com
cd9ee91eaefcc759f583a3258f9ed8c6a10deef1
716c84588373d72e200df58301dace387a290a08
/annotate_xml_gen.py
c17a021c0af4928f1da24bd032a01ca13278702f
[]
no_license
Yazkard/autonomy
c2a1a6706964332522c4e997731432c02e8ca07d
8d1d5bbb15bdf677353a712b9d9223b5a743ad9f
refs/heads/master
2020-04-17T08:09:08.449599
2019-01-18T13:29:03
2019-01-18T13:29:03
166,398,858
0
0
null
null
null
null
UTF-8
Python
false
false
1,824
py
import os import cv2 from lxml import etree import xml.etree.cElementTree as ET def write_xml(folder, img, objects, tl, br, savedir): if not os.path.isdir(savedir): os.mkdir(savedir) image = cv2.imread(img.path) height, width, depth = image.shape annotation = ET.Element('annotation') ET.SubElement(annotation, 'folder').text = folder ET.SubElement(annotation, 'filename').text = img.name ET.SubElement(annotation, 'segmented').text = '0' size = ET.SubElement(annotation, 'size') ET.SubElement(size, 'width').text = str(width) ET.SubElement(size, 'height').text = str(height) ET.SubElement(size, 'depth').text = str(depth) for obj, topl, botr in zip(objects, tl, br): ob = ET.SubElement(annotation, 'object') ET.SubElement(ob, 'name').text = obj ET.SubElement(ob, 'pose').text = 'Unspecified' ET.SubElement(ob, 'truncated').text = '0' ET.SubElement(ob, 'difficult').text = '0' bbox = ET.SubElement(ob, 'bndbox') ET.SubElement(bbox, 'xmin').text = str(topl[0]) ET.SubElement(bbox, 'ymin').text = str(topl[1]) ET.SubElement(bbox, 'xmax').text = str(botr[0]) ET.SubElement(bbox, 'ymax').text = str(botr[1]) xml_str = ET.tostring(annotation) root = etree.fromstring(xml_str) xml_str = etree.tostring(root, pretty_print=True) save_path = os.path.join(savedir, img.name.replace('png', 'xml')) with open(save_path, 'wb') as temp_xml: temp_xml.write(xml_str) if __name__ == '__main__': """ for testing """ folder = 'images' img = [im for im in os.scandir('images') if '000001' in im.name][0] objects = ['tennis_ball'] tl = [(10, 10)] br = [(100, 100)] savedir = 'annotations' write_xml(folder, img, objects, tl, br, savedir)
[ "jakubprzygodzki@gmail.com" ]
jakubprzygodzki@gmail.com
eb9a50de88e516ed6f69c41390f76dc0a019f264
e4e669c42287fa6b1f77a68fb5875ddcd09bd040
/FeedbackAnalysis1/hotels/urls.py
47d5d36017cee3cc9c3f0728d1a7966676c3f49e
[]
no_license
Ajanthy/Django_RAD
6e69cb932733eff613df331a254c457c782d7cec
d241bc7055f8d4b77567e0e943768be90e1f7138
refs/heads/master
2022-01-11T09:23:39.854510
2019-08-10T12:10:39
2019-08-10T12:10:39
198,010,335
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
from django.urls import path from . import views urlpatterns = [ path('login/',views.login,name = "login"), path('signup/',views.signup,name = "signup") ]
[ "ajanthyjaya@gmail.com" ]
ajanthyjaya@gmail.com
700a5bd7c718ae55bda73826ce532108ac562ec7
56b2c2009c32a193ab461f0d78048231738c8dce
/data/serializers.py
67ac1a5248994462545ee9635013230da811cf74
[ "MIT" ]
permissive
howdoicomputer/calischools
ff14792f28f7c1eec8d3c3e5b60bae4251563fb9
a5cd0ebf60cfc004193637c68d30c4ab5b5f0adb
refs/heads/master
2021-01-20T16:03:46.008917
2015-10-23T17:21:25
2015-10-23T17:21:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,606
py
import six from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from rest_framework.exceptions import ValidationError from schools.models import SCHOOL_STATUS_CHOICES, School class CountyCodeField(serializers.CharField): def to_internal_value(self, data): # We need only the first 2 digits of the full 14 digit school code value = data[:2] return super(CountyCodeField, self).to_internal_value(value) class DistrictCodeField(serializers.CharField): def to_internal_value(self, data): # We need the first 7 digits of the full 14 digit school code value = data[:7] return super(DistrictCodeField, self).to_internal_value(value) class SchoolStatusField(serializers.CharField): def __init__(self, **kwargs): super(SchoolStatusField, self).__init__(**kwargs) self.school_status_choices = { six.text_type(v): k for k, v in SCHOOL_STATUS_CHOICES } def to_internal_value(self, data): if data == '' and self.allow_blank: return '' try: return self.school_status_choices[six.text_type(data)] except KeyError: raise ValidationError( _('"{input}" is not a valid status.').format(input=data) ) class YesNoField(serializers.BooleanField): TRUE_VALUES = {'Yes', 'yes', 't', 'T', 'true', 'True', 'TRUE', '1', 1, True} FALSE_VALUES = {'', 'No', 'no', 'f', 'F', 'false', 'False', 'FALSE', '0', 0, 0.0, False} class OptionalDateField(serializers.DateField): def __init__(self, *args, **kwargs): kwargs.update({'allow_null': True, 'required': False}) super(OptionalDateField, self).__init__(*args, **kwargs) def to_internal_value(self, value): if not value: return None return super(OptionalDateField, self).to_internal_value(value) class CountySerializer(serializers.Serializer): code = CountyCodeField(max_length=2) county = serializers.CharField(source='name') class DistrictSerializer(serializers.Serializer): code = DistrictCodeField(max_length=7) district = serializers.CharField(source='name') class SchoolSerializer(serializers.ModelSerializer): code = serializers.CharField(max_length=14) status = SchoolStatusField() year_round = YesNoField() charter = YesNoField() open_date = OptionalDateField() close_date = OptionalDateField() class Meta: model = School exclude = ('county', 'district', 'lat', 'lng',)
[ "me@jeev.io" ]
me@jeev.io
c45763e5fa0e1be16b1a5c6db931a5ffc4b7c0af
bf033827dad5a47d2ab86b8de0d5d62db10c3da8
/python-scripts/compose/EncodeToAttach
ddfc5608f2479eb02d75499d4fcb0df7d9a28334
[]
no_license
BartekUR/Steganosaurus
5305fa5f8cf7825a0d698f991143728fc8351433
5cf2638286ef5f39bd41f0eb3c000f99c7f3fcb9
refs/heads/master
2021-01-12T01:43:20.802644
2017-01-10T13:25:33
2017-01-10T13:29:02
78,421,850
3
1
null
2017-01-09T17:01:49
2017-01-09T11:14:32
Python
UTF-8
Python
false
false
804
# -*- coding: utf-8 -*- import imp from os.path import expanduser imp.load_source("imgenc", expanduser("~/.claws-mail/python-scripts/tools/imgenc.py")) from imgenc import encode # pobierz caly tekst wiadomosci buffer = clawsmail.compose_window.text.get_buffer() # wykonuj tylko jesli istnieje zaznaczenie if buffer.get_selection_bounds() != (): # pobierz poczatek i koniec zaznaczenia (start, end) = buffer.get_selection_bounds() # pobierz zaznaczony fragment message = start.get_text(end) # usun zaznaczony fragment buffer.delete(start, end) # zakoduj wiadomosc w obrazku encode(expanduser("~/.claws-mail/python-scripts/tools/lolcat.jpg"), "/tmp/lolcat.png", message) # dolacz obrazek clawsmail.compose_window.attach(["/tmp/lolcat.png"]) # vim: ft=python
[ "iroedius@users.noreply.github.com" ]
iroedius@users.noreply.github.com
b99f002ee641d23ac3789b8edf96db250b0294b1
4ad94b71e30883d6df07a3277265bd6fb7457ba7
/python/examples/doc_examples/data/fe_triangles1_nodemap.py
b0295380cdacfafb6240a3f7b0f9593d8553717a
[ "MIT" ]
permissive
Tecplot/handyscripts
7cb1d4c80f323c785d06b0c8d37aeb0acb67f58c
84a89bfecff5479a0319f08eb8aa9df465283830
refs/heads/master
2023-08-22T15:29:22.629644
2023-08-12T01:19:59
2023-08-12T01:19:59
149,826,165
89
64
MIT
2022-01-13T01:11:02
2018-09-21T22:47:23
Jupyter Notebook
UTF-8
Python
false
false
2,588
py
import tecplot as tp from tecplot.constant import * # Triangle 0 nodes0 = ( (0, 0, 0 ), (1, 0, 0.5), (0, 1, 0.5)) scalar_data0 = (0, 1, 2) conn0 = ((0, 1, 2),) neighbors0 = ((None, 0, None),) neighbor_zones0 = ((None, 1, None),) # Triangle 1 nodes1 = ( (1, 0, 0.5), (0, 1, 0.5), (1, 1, 1 )) scalar_data1 = (1, 2, 3) conn1 = ((0, 1, 2),) neighbors1 = ((0, None, None),) neighbor_zones1 = ((0, None, None),) # Create the dataset and zones ds = tp.active_frame().create_dataset('Data', ['x','y','z','s']) z0 = ds.add_fe_zone(ZoneType.FETriangle, name='FE Triangle Float (3,1) Nodal 0', num_points=len(nodes0), num_elements=len(conn0), face_neighbor_mode=FaceNeighborMode.GlobalOneToOne) z1 = ds.add_fe_zone(ZoneType.FETriangle, name='FE Triangle Float (3,1) Nodal 1', num_points=len(nodes1), num_elements=len(conn1), face_neighbor_mode=FaceNeighborMode.GlobalOneToOne) # Fill in and connect first triangle z0.values('x')[:] = [n[0] for n in nodes0] z0.values('y')[:] = [n[1] for n in nodes0] z0.values('z')[:] = [n[2] for n in nodes0] #{DOC:highlight}[ z0.nodemap[:] = conn0 #] z0.values('s')[:] = scalar_data0 # Fill in and connect second triangle z1.values('x')[:] = [n[0] for n in nodes1] z1.values('y')[:] = [n[1] for n in nodes1] z1.values('z')[:] = [n[2] for n in nodes1] z1.nodemap[:] = conn1 z1.values('s')[:] = scalar_data1 # Set face neighbors z0.face_neighbors.set_neighbors(neighbors0, neighbor_zones0, obscures=True) z1.face_neighbors.set_neighbors(neighbors1, neighbor_zones1, obscures=True) ### Setup a view of the data plot = tp.active_frame().plot(PlotType.Cartesian3D) plot.activate() plot.contour(0).colormap_name = 'Sequential - Yellow/Green/Blue' plot.contour(0).colormap_filter.distribution = ColorMapDistribution.Continuous for ax in plot.axes: ax.show = True plot.show_mesh = False plot.show_contour = True plot.show_edge = True plot.use_translucency = True # View parameters obtained interactively from Tecplot 360 plot.view.distance = 10 plot.view.width = 2 plot.view.psi = 80 plot.view.theta = 30 plot.view.alpha = 0 plot.view.position = (-4.2, -8.0, 2.3) fmaps = plot.fieldmaps() fmaps.surfaces.surfaces_to_plot = SurfacesToPlot.All fmaps.effects.surface_translucency = 40 # Turning on mesh, we can see all the individual triangles plot.show_mesh = True fmaps.mesh.line_pattern = LinePattern.Dashed plot.contour(0).levels.reset_to_nice() tp.export.save_png('fe_triangles1.png', 600, supersample=3)
[ "55457608+brandonmarkham@users.noreply.github.com" ]
55457608+brandonmarkham@users.noreply.github.com
f55827351df455a8b0d8b5c51ce37d76b515980f
5eea120356afc15cc3edb71f8864d6771ad865c6
/rl_trading/market_sim/_agents/__init__.py
c03253c2612328563c49661dbd99123580adc1c6
[ "Apache-2.0" ]
permissive
ShubraChowdhury/Investment_Finance
469d5e5a200616eee830be18cb4a86d54319a30b
3da761d755278d3d2de8c201b56d4ff9cb23def4
refs/heads/master
2022-12-12T11:52:33.585329
2021-09-23T18:13:15
2021-09-23T18:13:15
153,317,318
2
0
null
2022-12-08T00:45:34
2018-10-16T16:22:56
Jupyter Notebook
UTF-8
Python
false
false
445
py
""" The __init__.py files are required to make Python treat the directories as containing packages; this is done to prevent directories with a common name, such as string, from unintentionally hiding valid modules that occur later (deeper) on the module search path. @author: ucaiado Created on 08/19/2016 """ from .agent_frwk import BasicAgent from .agent_rl import QLearningAgent, RandomAgent import dissertation_tests as dissertation_tests
[ "noreply@github.com" ]
ShubraChowdhury.noreply@github.com
bc6aa28006763ba25c3816789e06e83fddd5584b
eb35d746c71cf524dc0be3acd557dc0d9adff3f3
/elementos_modelo/recursos_humanos.py
78821b87db68b59f57cd05204b09ed52d184c9e0
[]
no_license
DavidRicardoGarcia/proyecto_final
8c3da1c214dd008778585888784d6779e69f9577
8d337a0e57e9190b10f252f7a1b69ee68eb43aed
refs/heads/master
2023-05-03T03:23:04.849114
2021-05-21T00:59:18
2021-05-21T00:59:18
337,512,228
0
0
null
null
null
null
UTF-8
Python
false
false
3,887
py
from datetime import timedelta, datetime import random from faker import Faker import json import os.path class trabajador: def __init__(self,id,nom_ape,email,telefono,empresa,estacion_trabajo): self.id=id self.nom_ape=nom_ape self.email=email self.telefono=telefono self.empresa=empresa self.cargo='operario' self.departamento='produccion y operaciones' self.estacion_trabajo=estacion_trabajo self.salario=16 #pesos hora self.horas_Extra=25 #pesos hora def get_dict(self): data={'id':self.id,'nombre':self.nom_ape,'email':self.email, 'telefono':self.telefono,'empresa':self.empresa,'cargo':self.cargo,'departamento':self.departamento, 'estacion':self.estacion_trabajo,'salario':self.salario,'horas_extra':self.horas_Extra} return data class horarios(): def __init__(self): super().__init__() save_path = '/home/david/Desktop/optimizacion_final/datos_json' name_of_file = 'datae' completeName = os.path.join(save_path, name_of_file+".txt") with open(completeName) as json_file: data = json.load(json_file) self.data=data def crear_lista_De_Empleados(self): save_path = '/home/david/Desktop/optimizacion_final/datos_json' name_of_file = 'datae' completeName = os.path.join(save_path, name_of_file+".txt") elist={} elist['empleados']=[] estacion_De_trabajo=['desembarque','banda transportadora','lavado','pelado','molienda','centrifuga','uht', 'tanque mecanico','tanque carbonatacion','enlatadora','embarque'] fake=Faker() #inicializacion de clientes for i in range(0,int(len(estacion_De_trabajo))): empleado=trabajador(i,fake.name(),fake.name()+'@gmail.com',3001231234, 'Punta Delicia',estacion_De_trabajo[i]) elist['empleados'].append(empleado.get_dict()) with open(completeName,'w') as outfile: json.dump(elist,outfile) def asignar_horario(self,nombre): save_path = '/home/david/Desktop/optimizacion_final/datos_json' name_of_file = 'datae' completeName = os.path.join(save_path, name_of_file+".txt") with open(completeName) as json_file: data = json.load(json_file) name_of_file_1 = nombre completeName_1 = os.path.join(save_path, name_of_file_1+".txt") hlist={} hlist['horario empleados']=[] for i in data['empleados']: r=random.uniform(0,1) if (r>0.8): i['hinicio']=0 i['hsalida']=0 i['estado']='incapacidad' #en el caso de incapacidad suponer que la maquina no se opera ese dia o que alguien hace relevo y toca pagarle un extra? else: i['hinicio']=8 i['hsalida']=18 i['estado']='disponible' hlist['horario empleados'].append(i) with open(completeName_1,'w') as outfile: json.dump(hlist,outfile) def asignar_horario_ng(self): hlist={} hlist['horario empleados']=[] for i in self.data['empleados']: r=random.uniform(0,1) if (r>1): i['hinicio']=0 i['hsalida']=0 i['estado']='incapacidad' #en el caso de incapacidad suponer que la maquina no se opera ese dia o que alguien hace relevo y toca pagarle un extra? else: i['hinicio']=8 i['hsalida']=18 i['estado']='disponible' hlist['horario empleados'].append(i) return hlist #x=horarios() #x.crear_lista_De_Empleados() #x.asignar_horario('prueba1')
[ "davidnf.44@gmail.com" ]
davidnf.44@gmail.com
62dff96b260a49f31cbe76d1e58c81bda60fd4f0
61699048dc567cd3a814e5b987599dae175bed19
/Python/month02/day10/exercise03_server.py
8a627c5c241d5ba129929658ea504a026f743174
[]
no_license
Courage-GL/FileCode
1d4769556a0fe0b9ed0bd02485bb4b5a89c9830b
2d0caf3a422472604f073325c5c716ddd5945845
refs/heads/main
2022-12-31T17:20:59.245753
2020-10-27T01:42:50
2020-10-27T01:42:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
import socket import pymysql address = ('0.0.0.0', 45678) db_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) db = pymysql.connect(host='192.168.196.128', port=3306, user='root', password='123456', database='dict', charset='utf8') cur = db.cursor() db_socket.bind(address) while True: word,addr = db_socket.recvfrom(1024) sql = 'select mean from words where word=%s' print("要查询的单词为",word.decode()) cur.execute(sql,[word.decode()]) result=cur.fetchone() if not result: result = 'NOT FOUND' else: result = result[0].strip() print("查询结果为:",result) db_socket.sendto(result.encode(),addr)
[ "1450030827@qq.com" ]
1450030827@qq.com
2aa5a26769a98095bac2decf04966187a013a65c
bd5de5a7aa43900e20a73c067916ee6273bf9f90
/cream/migrations/0016_auto_20190305_1604.py
c2c0d2ee88a92dc44ddd7a65a3ff91fdb21ce04f
[]
no_license
Jeffmusa/De-o-clock
aa321fe194bc11354b1ccd6ff4519834b41b156d
d466253ef8e6de05f9c41fb742bfe0573fd7628c
refs/heads/master
2020-04-29T03:50:07.318419
2019-03-15T14:01:51
2019-03-15T14:01:51
175,825,375
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-03-05 13:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cream', '0015_auto_20190305_1603'), ] operations = [ migrations.RemoveField( model_name='type', name='cake', ), migrations.AddField( model_name='cake', name='Type', field=models.ManyToManyField(related_name='cake_type', to='cream.Type'), ), ]
[ "jeffmusa@gmail.com" ]
jeffmusa@gmail.com
c75ac440fddd44702dfc367a9490ae6977caa511
ff2f56cadf3c28770ad435cf876242eb8d99f137
/rate_limiter/timer.py
8c8fddb31c8557c25488b6b607b5c62445454e1c
[]
no_license
yzhishko/rate-limiter
09bec8b483bb09f803168bfa40275b714fd77a62
6677c9a30bceb76ee1ab4774654bd035463f3277
refs/heads/master
2022-10-27T15:02:42.811835
2020-06-15T01:07:10
2020-06-15T01:07:10
272,309,385
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
import time from abc import ABC, abstractmethod class Timer(ABC): @abstractmethod def next_tick_in_ms(self) -> int: """ :return: time in milliseconds from epoch """ pass class SystemTimer(Timer): """ Generate system timestamp in milliseconds from epoch """ def next_tick_in_ms(self) -> int: return int(round(time.time() * 1000))
[ "yury.zhyshko@datarobot.com" ]
yury.zhyshko@datarobot.com
5641fe7e250b313fa804fa4895cae9b6f58bb729
54a7120bd5b7f7326837a6463b08e784e293f4e9
/project/preprocess.py
a4ff54ad44a2f24a17c1022763a253d78321f5c1
[]
no_license
df424/drexel_INFO-T780
f3c0b8dad9493e44e911cb6635bafd53129984a9
418410906761ccdaa9d603923864cef4a4f64633
refs/heads/master
2020-05-16T22:11:16.122110
2019-06-14T19:47:17
2019-06-14T19:47:17
183,327,956
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
import numpy as np from skimage.transform import resize from skimage import color def scaleImg(img): return resize(img, (88, 88), anti_aliasing=True) def toGrayScale(img): return color.rgb2gray(img) if __name__=='__main__': image = np.random.randint(0, 255, (160, 160, 3)) print(image.shape) print(scaleImg(image).shape)
[ "d.l.flanagan01@gmail.com" ]
d.l.flanagan01@gmail.com
00e0fe9c483a4afe979051a4f8bbfd9930efbc9c
921c689451ff3b6e472cc6ae6a34774c4f57e68b
/llvm-2.8/tools/clang/bindings/python/clang/cindex.py
f0f81b5d6948c4e8a0360ca3022341a9fa5d892d
[ "NCSA" ]
permissive
xpic-toolchain/xpic_toolchain
36cae905bbf675d26481bee19b420283eff90a79
9e6d4276cc8145a934c31b0d3292a382fc2e5e92
refs/heads/master
2021-01-21T04:37:18.963215
2016-05-19T12:34:11
2016-05-19T12:34:11
29,474,690
4
0
null
null
null
null
UTF-8
Python
false
false
30,029
py
#===- cindex.py - Python Indexing Library Bindings -----------*- python -*--===# # # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LICENSE.TXT for details. # #===------------------------------------------------------------------------===# r""" Clang Indexing Library Bindings =============================== This module provides an interface to the Clang indexing library. It is a low-level interface to the indexing library which attempts to match the Clang API directly while also being "pythonic". Notable differences from the C API are: * string results are returned as Python strings, not CXString objects. * null cursors are translated to None. * access to child cursors is done via iteration, not visitation. The major indexing objects are: Index The top-level object which manages some global library state. TranslationUnit High-level object encapsulating the AST for a single translation unit. These can be loaded from .ast files or parsed on the fly. Cursor Generic object for representing a node in the AST. SourceRange, SourceLocation, and File Objects representing information about the input source. Most object information is exposed using properties, when the underlying API call is efficient. """ # TODO # ==== # # o API support for invalid translation units. Currently we can't even get the # diagnostics on failure because they refer to locations in an object that # will have been invalidated. # # o fix memory management issues (currently client must hold on to index and # translation unit, or risk crashes). # # o expose code completion APIs. # # o cleanup ctypes wrapping, would be nice to separate the ctypes details more # clearly, and hide from the external interface (i.e., help(cindex)). # # o implement additional SourceLocation, SourceRange, and File methods. from ctypes import * def get_cindex_library(): # FIXME: It's probably not the case that the library is actually found in # this location. We need a better system of identifying and loading the # CIndex library. It could be on path or elsewhere, or versioned, etc. import platform name = platform.system() if name == 'Darwin': return cdll.LoadLibrary('libclang.dylib') elif name == 'Windows': return cdll.LoadLibrary('libclang.dll') else: return cdll.LoadLibrary('libclang.so') # ctypes doesn't implicitly convert c_void_p to the appropriate wrapper # object. This is a problem, because it means that from_parameter will see an # integer and pass the wrong value on platforms where int != void*. Work around # this by marshalling object arguments as void**. c_object_p = POINTER(c_void_p) lib = get_cindex_library() ### Structures and Utility Classes ### class _CXString(Structure): """Helper for transforming CXString results.""" _fields_ = [("spelling", c_char_p), ("free", c_int)] def __del__(self): _CXString_dispose(self) @staticmethod def from_result(res, fn, args): assert isinstance(res, _CXString) return _CXString_getCString(res) class SourceLocation(Structure): """ A SourceLocation represents a particular location within a source file. """ _fields_ = [("ptr_data", c_void_p * 2), ("int_data", c_uint)] _data = None def _get_instantiation(self): if self._data is None: f, l, c, o = c_object_p(), c_uint(), c_uint(), c_uint() SourceLocation_loc(self, byref(f), byref(l), byref(c), byref(o)) f = File(f) if f else None self._data = (f, int(l.value), int(c.value), int(c.value)) return self._data @property def file(self): """Get the file represented by this source location.""" return self._get_instantiation()[0] @property def line(self): """Get the line represented by this source location.""" return self._get_instantiation()[1] @property def column(self): """Get the column represented by this source location.""" return self._get_instantiation()[2] @property def offset(self): """Get the file offset represented by this source location.""" return self._get_instantiation()[3] def __repr__(self): return "<SourceLocation file %r, line %r, column %r>" % ( self.file.name if self.file else None, self.line, self.column) class SourceRange(Structure): """ A SourceRange describes a range of source locations within the source code. """ _fields_ = [ ("ptr_data", c_void_p * 2), ("begin_int_data", c_uint), ("end_int_data", c_uint)] # FIXME: Eliminate this and make normal constructor? Requires hiding ctypes # object. @staticmethod def from_locations(start, end): return SourceRange_getRange(start, end) @property def start(self): """ Return a SourceLocation representing the first character within a source range. """ return SourceRange_start(self) @property def end(self): """ Return a SourceLocation representing the last character within a source range. """ return SourceRange_end(self) def __repr__(self): return "<SourceRange start %r, end %r>" % (self.start, self.end) class Diagnostic(object): """ A Diagnostic is a single instance of a Clang diagnostic. It includes the diagnostic severity, the message, the location the diagnostic occurred, as well as additional source ranges and associated fix-it hints. """ Ignored = 0 Note = 1 Warning = 2 Error = 3 Fatal = 4 def __init__(self, ptr): self.ptr = ptr def __del__(self): _clang_disposeDiagnostic(self.ptr) @property def severity(self): return _clang_getDiagnosticSeverity(self.ptr) @property def location(self): return _clang_getDiagnosticLocation(self.ptr) @property def spelling(self): return _clang_getDiagnosticSpelling(self.ptr) @property def ranges(self): class RangeIterator: def __init__(self, diag): self.diag = diag def __len__(self): return int(_clang_getDiagnosticNumRanges(self.diag)) def __getitem__(self, key): return _clang_getDiagnosticRange(self.diag, key) return RangeIterator(self.ptr) @property def fixits(self): class FixItIterator: def __init__(self, diag): self.diag = diag def __len__(self): return int(_clang_getDiagnosticNumFixIts(self.diag)) def __getitem__(self, key): range = SourceRange() value = _clang_getDiagnosticFixIt(self.diag, key, byref(range)) if len(value) == 0: raise IndexError return FixIt(range, value) return FixItIterator(self.ptr) def __repr__(self): return "<Diagnostic severity %r, location %r, spelling %r>" % ( self.severity, self.location, self.spelling) class FixIt(object): """ A FixIt represents a transformation to be applied to the source to "fix-it". The fix-it shouldbe applied by replacing the given source range with the given value. """ def __init__(self, range, value): self.range = range self.value = value def __repr__(self): return "<FixIt range %r, value %r>" % (self.range, self.value) ### Cursor Kinds ### class CursorKind(object): """ A CursorKind describes the kind of entity that a cursor points to. """ # The unique kind objects, indexed by id. _kinds = [] _name_map = None def __init__(self, value): if value >= len(CursorKind._kinds): CursorKind._kinds += [None] * (value - len(CursorKind._kinds) + 1) if CursorKind._kinds[value] is not None: raise ValueError,'CursorKind already loaded' self.value = value CursorKind._kinds[value] = self CursorKind._name_map = None def from_param(self): return self.value @property def name(self): """Get the enumeration name of this cursor kind.""" if self._name_map is None: self._name_map = {} for key,value in CursorKind.__dict__.items(): if isinstance(value,CursorKind): self._name_map[value] = key return self._name_map[self] @staticmethod def from_id(id): if id >= len(CursorKind._kinds) or CursorKind._kinds[id] is None: raise ValueError,'Unknown cursor kind' return CursorKind._kinds[id] @staticmethod def get_all_kinds(): """Return all CursorKind enumeration instances.""" return filter(None, CursorKind._kinds) def is_declaration(self): """Test if this is a declaration kind.""" return CursorKind_is_decl(self) def is_reference(self): """Test if this is a reference kind.""" return CursorKind_is_ref(self) def is_expression(self): """Test if this is an expression kind.""" return CursorKind_is_expr(self) def is_statement(self): """Test if this is a statement kind.""" return CursorKind_is_stmt(self) def is_invalid(self): """Test if this is an invalid kind.""" return CursorKind_is_inv(self) def __repr__(self): return 'CursorKind.%s' % (self.name,) # FIXME: Is there a nicer way to expose this enumeration? We could potentially # represent the nested structure, or even build a class hierarchy. The main # things we want for sure are (a) simple external access to kinds, (b) a place # to hang a description and name, (c) easy to keep in sync with Index.h. ### # Declaration Kinds # A declaration whose specific kind is not exposed via this interface. # # Unexposed declarations have the same operations as any other kind of # declaration; one can extract their location information, spelling, find their # definitions, etc. However, the specific kind of the declaration is not # reported. CursorKind.UNEXPOSED_DECL = CursorKind(1) # A C or C++ struct. CursorKind.STRUCT_DECL = CursorKind(2) # A C or C++ union. CursorKind.UNION_DECL = CursorKind(3) # A C++ class. CursorKind.CLASS_DECL = CursorKind(4) # An enumeration. CursorKind.ENUM_DECL = CursorKind(5) # A field (in C) or non-static data member (in C++) in a struct, union, or C++ # class. CursorKind.FIELD_DECL = CursorKind(6) # An enumerator constant. CursorKind.ENUM_CONSTANT_DECL = CursorKind(7) # A function. CursorKind.FUNCTION_DECL = CursorKind(8) # A variable. CursorKind.VAR_DECL = CursorKind(9) # A function or method parameter. CursorKind.PARM_DECL = CursorKind(10) # An Objective-C @interface. CursorKind.OBJC_INTERFACE_DECL = CursorKind(11) # An Objective-C @interface for a category. CursorKind.OBJC_CATEGORY_DECL = CursorKind(12) # An Objective-C @protocol declaration. CursorKind.OBJC_PROTOCOL_DECL = CursorKind(13) # An Objective-C @property declaration. CursorKind.OBJC_PROPERTY_DECL = CursorKind(14) # An Objective-C instance variable. CursorKind.OBJC_IVAR_DECL = CursorKind(15) # An Objective-C instance method. CursorKind.OBJC_INSTANCE_METHOD_DECL = CursorKind(16) # An Objective-C class method. CursorKind.OBJC_CLASS_METHOD_DECL = CursorKind(17) # An Objective-C @implementation. CursorKind.OBJC_IMPLEMENTATION_DECL = CursorKind(18) # An Objective-C @implementation for a category. CursorKind.OBJC_CATEGORY_IMPL_DECL = CursorKind(19) # A typedef. CursorKind.TYPEDEF_DECL = CursorKind(20) ### # Reference Kinds CursorKind.OBJC_SUPER_CLASS_REF = CursorKind(40) CursorKind.OBJC_PROTOCOL_REF = CursorKind(41) CursorKind.OBJC_CLASS_REF = CursorKind(42) # A reference to a type declaration. # # A type reference occurs anywhere where a type is named but not # declared. For example, given: # typedef unsigned size_type; # size_type size; # # The typedef is a declaration of size_type (CXCursor_TypedefDecl), # while the type of the variable "size" is referenced. The cursor # referenced by the type of size is the typedef for size_type. CursorKind.TYPE_REF = CursorKind(43) ### # Invalid/Error Kinds CursorKind.INVALID_FILE = CursorKind(70) CursorKind.NO_DECL_FOUND = CursorKind(71) CursorKind.NOT_IMPLEMENTED = CursorKind(72) ### # Expression Kinds # An expression whose specific kind is not exposed via this interface. # # Unexposed expressions have the same operations as any other kind of # expression; one can extract their location information, spelling, children, # etc. However, the specific kind of the expression is not reported. CursorKind.UNEXPOSED_EXPR = CursorKind(100) # An expression that refers to some value declaration, such as a function, # varible, or enumerator. CursorKind.DECL_REF_EXPR = CursorKind(101) # An expression that refers to a member of a struct, union, class, Objective-C # class, etc. CursorKind.MEMBER_REF_EXPR = CursorKind(102) # An expression that calls a function. CursorKind.CALL_EXPR = CursorKind(103) # An expression that sends a message to an Objective-C object or class. CursorKind.OBJC_MESSAGE_EXPR = CursorKind(104) # A statement whose specific kind is not exposed via this interface. # # Unexposed statements have the same operations as any other kind of statement; # one can extract their location information, spelling, children, etc. However, # the specific kind of the statement is not reported. CursorKind.UNEXPOSED_STMT = CursorKind(200) ### # Other Kinds # Cursor that represents the translation unit itself. # # The translation unit cursor exists primarily to act as the root cursor for # traversing the contents of a translation unit. CursorKind.TRANSLATION_UNIT = CursorKind(300) ### Cursors ### class Cursor(Structure): """ The Cursor class represents a reference to an element within the AST. It acts as a kind of iterator. """ _fields_ = [("_kind_id", c_int), ("data", c_void_p * 3)] def __eq__(self, other): return Cursor_eq(self, other) def __ne__(self, other): return not Cursor_eq(self, other) def is_definition(self): """ Returns true if the declaration pointed at by the cursor is also a definition of that entity. """ return Cursor_is_def(self) def get_definition(self): """ If the cursor is a reference to a declaration or a declaration of some entity, return a cursor that points to the definition of that entity. """ # TODO: Should probably check that this is either a reference or # declaration prior to issuing the lookup. return Cursor_def(self) def get_usr(self): """Return the Unified Symbol Resultion (USR) for the entity referenced by the given cursor (or None). A Unified Symbol Resolution (USR) is a string that identifies a particular entity (function, class, variable, etc.) within a program. USRs can be compared across translation units to determine, e.g., when references in one translation refer to an entity defined in another translation unit.""" return Cursor_usr(self) @property def kind(self): """Return the kind of this cursor.""" return CursorKind.from_id(self._kind_id) @property def spelling(self): """Return the spelling of the entity pointed at by the cursor.""" if not self.kind.is_declaration(): # FIXME: clang_getCursorSpelling should be fixed to not assert on # this, for consistency with clang_getCursorUSR. return None return Cursor_spelling(self) @property def location(self): """ Return the source location (the starting character) of the entity pointed at by the cursor. """ return Cursor_loc(self) @property def extent(self): """ Return the source range (the range of text) occupied by the entity pointed at by the cursor. """ return Cursor_extent(self) def get_children(self): """Return an iterator for accessing the children of this cursor.""" # FIXME: Expose iteration from CIndex, PR6125. def visitor(child, parent, children): # FIXME: Document this assertion in API. # FIXME: There should just be an isNull method. assert child != Cursor_null() children.append(child) return 1 # continue children = [] Cursor_visit(self, Cursor_visit_callback(visitor), children) return iter(children) @staticmethod def from_result(res, fn, args): assert isinstance(res, Cursor) # FIXME: There should just be an isNull method. if res == Cursor_null(): return None return res ## CIndex Objects ## # CIndex objects (derived from ClangObject) are essentially lightweight # wrappers attached to some underlying object, which is exposed via CIndex as # a void*. class ClangObject(object): """ A helper for Clang objects. This class helps act as an intermediary for the ctypes library and the Clang CIndex library. """ def __init__(self, obj): assert isinstance(obj, c_object_p) and obj self.obj = self._as_parameter_ = obj def from_param(self): return self._as_parameter_ class _CXUnsavedFile(Structure): """Helper for passing unsaved file arguments.""" _fields_ = [("name", c_char_p), ("contents", c_char_p), ('length', c_ulong)] ## Diagnostic Conversion ## _clang_getNumDiagnostics = lib.clang_getNumDiagnostics _clang_getNumDiagnostics.argtypes = [c_object_p] _clang_getNumDiagnostics.restype = c_uint _clang_getDiagnostic = lib.clang_getDiagnostic _clang_getDiagnostic.argtypes = [c_object_p, c_uint] _clang_getDiagnostic.restype = c_object_p _clang_disposeDiagnostic = lib.clang_disposeDiagnostic _clang_disposeDiagnostic.argtypes = [c_object_p] _clang_getDiagnosticSeverity = lib.clang_getDiagnosticSeverity _clang_getDiagnosticSeverity.argtypes = [c_object_p] _clang_getDiagnosticSeverity.restype = c_int _clang_getDiagnosticLocation = lib.clang_getDiagnosticLocation _clang_getDiagnosticLocation.argtypes = [c_object_p] _clang_getDiagnosticLocation.restype = SourceLocation _clang_getDiagnosticSpelling = lib.clang_getDiagnosticSpelling _clang_getDiagnosticSpelling.argtypes = [c_object_p] _clang_getDiagnosticSpelling.restype = _CXString _clang_getDiagnosticSpelling.errcheck = _CXString.from_result _clang_getDiagnosticNumRanges = lib.clang_getDiagnosticNumRanges _clang_getDiagnosticNumRanges.argtypes = [c_object_p] _clang_getDiagnosticNumRanges.restype = c_uint _clang_getDiagnosticRange = lib.clang_getDiagnosticRange _clang_getDiagnosticRange.argtypes = [c_object_p, c_uint] _clang_getDiagnosticRange.restype = SourceRange _clang_getDiagnosticNumFixIts = lib.clang_getDiagnosticNumFixIts _clang_getDiagnosticNumFixIts.argtypes = [c_object_p] _clang_getDiagnosticNumFixIts.restype = c_uint _clang_getDiagnosticFixIt = lib.clang_getDiagnosticFixIt _clang_getDiagnosticFixIt.argtypes = [c_object_p, c_uint, POINTER(SourceRange)] _clang_getDiagnosticFixIt.restype = _CXString _clang_getDiagnosticFixIt.errcheck = _CXString.from_result ### class Index(ClangObject): """ The Index type provides the primary interface to the Clang CIndex library, primarily by providing an interface for reading and parsing translation units. """ @staticmethod def create(excludeDecls=False): """ Create a new Index. Parameters: excludeDecls -- Exclude local declarations from translation units. """ return Index(Index_create(excludeDecls, 0)) def __del__(self): Index_dispose(self) def read(self, path): """Load the translation unit from the given AST file.""" ptr = TranslationUnit_read(self, path) return TranslationUnit(ptr) if ptr else None def parse(self, path, args = [], unsaved_files = []): """ Load the translation unit from the given source code file by running clang and generating the AST before loading. Additional command line parameters can be passed to clang via the args parameter. In-memory contents for files can be provided by passing a list of pairs to as unsaved_files, the first item should be the filenames to be mapped and the second should be the contents to be substituted for the file. The contents may be passed as strings or file objects. """ arg_array = 0 if len(args): arg_array = (c_char_p * len(args))(* args) unsaved_files_array = 0 if len(unsaved_files): unsaved_files_array = (_CXUnsavedFile * len(unsaved_files))() for i,(name,value) in enumerate(unsaved_files): if not isinstance(value, str): # FIXME: It would be great to support an efficient version # of this, one day. value = value.read() print value if not isinstance(value, str): raise TypeError,'Unexpected unsaved file contents.' unsaved_files_array[i].name = name unsaved_files_array[i].contents = value unsaved_files_array[i].length = len(value) ptr = TranslationUnit_parse(self, path, len(args), arg_array, len(unsaved_files), unsaved_files_array) return TranslationUnit(ptr) if ptr else None class TranslationUnit(ClangObject): """ The TranslationUnit class represents a source code translation unit and provides read-only access to its top-level declarations. """ def __init__(self, ptr): ClangObject.__init__(self, ptr) def __del__(self): TranslationUnit_dispose(self) @property def cursor(self): """Retrieve the cursor that represents the given translation unit.""" return TranslationUnit_cursor(self) @property def spelling(self): """Get the original translation unit source file name.""" return TranslationUnit_spelling(self) def get_includes(self): """ Return an iterable sequence of FileInclusion objects that describe the sequence of inclusions in a translation unit. The first object in this sequence is always the input file. Note that this method will not recursively iterate over header files included through precompiled headers. """ def visitor(fobj, lptr, depth, includes): loc = lptr.contents includes.append(FileInclusion(loc.file, File(fobj), loc, depth)) # Automatically adapt CIndex/ctype pointers to python objects includes = [] TranslationUnit_includes(self, TranslationUnit_includes_callback(visitor), includes) return iter(includes) @property def diagnostics(self): """ Return an iterable (and indexable) object containing the diagnostics. """ class DiagIterator: def __init__(self, tu): self.tu = tu def __len__(self): return int(_clang_getNumDiagnostics(self.tu)) def __getitem__(self, key): diag = _clang_getDiagnostic(self.tu, key) if not diag: raise IndexError return Diagnostic(diag) return DiagIterator(self) class File(ClangObject): """ The File class represents a particular source file that is part of a translation unit. """ @property def name(self): """Return the complete file and path name of the file.""" return File_name(self) @property def time(self): """Return the last modification time of the file.""" return File_time(self) class FileInclusion(object): """ The FileInclusion class represents the inclusion of one source file by another via a '#include' directive or as the input file for the translation unit. This class provides information about the included file, the including file, the location of the '#include' directive and the depth of the included file in the stack. Note that the input file has depth 0. """ def __init__(self, src, tgt, loc, depth): self.source = src self.include = tgt self.location = loc self.depth = depth @property def is_input_file(self): """True if the included file is the input file.""" return self.depth == 0 # Additional Functions and Types # String Functions _CXString_dispose = lib.clang_disposeString _CXString_dispose.argtypes = [_CXString] _CXString_getCString = lib.clang_getCString _CXString_getCString.argtypes = [_CXString] _CXString_getCString.restype = c_char_p # Source Location Functions SourceLocation_loc = lib.clang_getInstantiationLocation SourceLocation_loc.argtypes = [SourceLocation, POINTER(c_object_p), POINTER(c_uint), POINTER(c_uint), POINTER(c_uint)] # Source Range Functions SourceRange_getRange = lib.clang_getRange SourceRange_getRange.argtypes = [SourceLocation, SourceLocation] SourceRange_getRange.restype = SourceRange SourceRange_start = lib.clang_getRangeStart SourceRange_start.argtypes = [SourceRange] SourceRange_start.restype = SourceLocation SourceRange_end = lib.clang_getRangeEnd SourceRange_end.argtypes = [SourceRange] SourceRange_end.restype = SourceLocation # CursorKind Functions CursorKind_is_decl = lib.clang_isDeclaration CursorKind_is_decl.argtypes = [CursorKind] CursorKind_is_decl.restype = bool CursorKind_is_ref = lib.clang_isReference CursorKind_is_ref.argtypes = [CursorKind] CursorKind_is_ref.restype = bool CursorKind_is_expr = lib.clang_isExpression CursorKind_is_expr.argtypes = [CursorKind] CursorKind_is_expr.restype = bool CursorKind_is_stmt = lib.clang_isStatement CursorKind_is_stmt.argtypes = [CursorKind] CursorKind_is_stmt.restype = bool CursorKind_is_inv = lib.clang_isInvalid CursorKind_is_inv.argtypes = [CursorKind] CursorKind_is_inv.restype = bool # Cursor Functions # TODO: Implement this function Cursor_get = lib.clang_getCursor Cursor_get.argtypes = [TranslationUnit, SourceLocation] Cursor_get.restype = Cursor Cursor_null = lib.clang_getNullCursor Cursor_null.restype = Cursor Cursor_usr = lib.clang_getCursorUSR Cursor_usr.argtypes = [Cursor] Cursor_usr.restype = _CXString Cursor_usr.errcheck = _CXString.from_result Cursor_is_def = lib.clang_isCursorDefinition Cursor_is_def.argtypes = [Cursor] Cursor_is_def.restype = bool Cursor_def = lib.clang_getCursorDefinition Cursor_def.argtypes = [Cursor] Cursor_def.restype = Cursor Cursor_def.errcheck = Cursor.from_result Cursor_eq = lib.clang_equalCursors Cursor_eq.argtypes = [Cursor, Cursor] Cursor_eq.restype = c_uint Cursor_spelling = lib.clang_getCursorSpelling Cursor_spelling.argtypes = [Cursor] Cursor_spelling.restype = _CXString Cursor_spelling.errcheck = _CXString.from_result Cursor_loc = lib.clang_getCursorLocation Cursor_loc.argtypes = [Cursor] Cursor_loc.restype = SourceLocation Cursor_extent = lib.clang_getCursorExtent Cursor_extent.argtypes = [Cursor] Cursor_extent.restype = SourceRange Cursor_ref = lib.clang_getCursorReferenced Cursor_ref.argtypes = [Cursor] Cursor_ref.restype = Cursor Cursor_ref.errcheck = Cursor.from_result Cursor_visit_callback = CFUNCTYPE(c_int, Cursor, Cursor, py_object) Cursor_visit = lib.clang_visitChildren Cursor_visit.argtypes = [Cursor, Cursor_visit_callback, py_object] Cursor_visit.restype = c_uint # Index Functions Index_create = lib.clang_createIndex Index_create.argtypes = [c_int, c_int] Index_create.restype = c_object_p Index_dispose = lib.clang_disposeIndex Index_dispose.argtypes = [Index] # Translation Unit Functions TranslationUnit_read = lib.clang_createTranslationUnit TranslationUnit_read.argtypes = [Index, c_char_p] TranslationUnit_read.restype = c_object_p TranslationUnit_parse = lib.clang_createTranslationUnitFromSourceFile TranslationUnit_parse.argtypes = [Index, c_char_p, c_int, c_void_p, c_int, c_void_p] TranslationUnit_parse.restype = c_object_p TranslationUnit_cursor = lib.clang_getTranslationUnitCursor TranslationUnit_cursor.argtypes = [TranslationUnit] TranslationUnit_cursor.restype = Cursor TranslationUnit_cursor.errcheck = Cursor.from_result TranslationUnit_spelling = lib.clang_getTranslationUnitSpelling TranslationUnit_spelling.argtypes = [TranslationUnit] TranslationUnit_spelling.restype = _CXString TranslationUnit_spelling.errcheck = _CXString.from_result TranslationUnit_dispose = lib.clang_disposeTranslationUnit TranslationUnit_dispose.argtypes = [TranslationUnit] TranslationUnit_includes_callback = CFUNCTYPE(None, c_object_p, POINTER(SourceLocation), c_uint, py_object) TranslationUnit_includes = lib.clang_getInclusions TranslationUnit_includes.argtypes = [TranslationUnit, TranslationUnit_includes_callback, py_object] # File Functions File_name = lib.clang_getFileName File_name.argtypes = [File] File_name.restype = c_char_p File_time = lib.clang_getFileTime File_time.argtypes = [File] File_time.restype = c_uint ### __all__ = ['Index', 'TranslationUnit', 'Cursor', 'CursorKind', 'Diagnostic', 'FixIt', 'SourceRange', 'SourceLocation', 'File']
[ "helmutmanck@5227c84a-046b-4545-895e-fca5577db8e1" ]
helmutmanck@5227c84a-046b-4545-895e-fca5577db8e1
bd27bc021e11b0220951a285f14747e85ca4b5c9
13320f608a2f5d64b06099e271e3491fdc029883
/invest_management/invest/analysis_code/per_predict.py
4d5cbb81b668d2484cc474ef88f24aa0b2a78b19
[]
no_license
Mukai01/Invest-Management
c2c6ea0c03b6b87a994dffb4da9accf4627bc202
cf4084a5d52975cdde2fe986a2f0eecbc3c8f42a
refs/heads/master
2023-08-21T20:39:49.237099
2021-11-02T15:55:39
2021-11-02T15:55:39
415,962,462
0
0
null
null
null
null
UTF-8
Python
false
false
9,145
py
import pandas as pd import matplotlib.pyplot as plt from sklearn.ensemble import RandomForestRegressor from sklearn.metrics import r2_score from sklearn.model_selection import GridSearchCV import mglearn import numpy as np import japanize_matplotlib import numpy as np from urllib import request from bs4 import BeautifulSoup import re from pathlib import Path BASE_DIR = Path(__file__).resolve().parent.parent.parent shiller_url = "https://www.multpl.com/shiller-pe" per_url = 'https://www.multpl.com/s-p-500-pe-ratio' def get_per(url): # shiller-perのスクレイピング # html取得 response = request.urlopen(url) content = response.read() response.close() html = content.decode() #print(html) # htmlから要素を抽出 soup = BeautifulSoup(html) current_item = soup.find('div', id='current') current_item=current_item.get_text() # 正規表現で抽出 p = re.compile('\d+\.\d+') shiller_per_value = float(p.search(current_item).group()) return shiller_per_value def random_forest_predict_byshillerper(afteryears): # データ読み込み df=pd.read_excel('C:/Users/nakam/Dropbox/資産/Django/data/S and P PE Ratio.xlsx') df1=pd.read_excel('C:/Users/nakam/Dropbox/資産/Django/data/S and P PE Ratio.xlsx', sheet_name='Shiller PE Ratio') df2=pd.read_excel('C:/Users/nakam/Dropbox/資産/Django/data/S and P PE Ratio.xlsx', sheet_name='Stock Price') # monthの作成 df1['DateTime'] = pd.to_datetime(df1['DateTime']) df1['Month']=df1['DateTime'].dt.strftime('%Y%m') df2['DateTime'] = pd.to_datetime(df2['DateTime']) df2['Month']=df2['DateTime'].dt.strftime('%Y%m') df = df.iloc[:,:2] df['DateTime'] = pd.to_datetime(df['DateTime']) df['Month']=df['DateTime'].dt.strftime('%Y%m') # 結合 df3=pd.merge(df2,df,how='left',on='Month') df3=pd.merge(df3,df1,how='left',on='Month') df3=df3.sort_values('DateTime_x') df3=df3.reset_index(drop=True) # display(df3) # 数年後のリターンを計算 df3['afteryears']=0 for i in range(len(df3)): now_month = df3.loc[i, 'Month'] after_month = str(int(now_month)+afteryears*100) # print(now_month,"⇒",after_month) try : # print(df3[df3['Month']==after_month]['S&P 500'].values[0]) df3.loc[i,"afteryears"] = df3[df3['Month']==after_month]['S&P 500'].values[0] except IndexError: continue # 数年後リターンの計算 df3['afteryearsReturn'] = df3['afteryears'] / df3["S&P 500"] # リターンが0以外のもののみ抽出 df4=df3[df3['afteryearsReturn']!=0] df4=df4[df4['DateTime_x']>pd.to_datetime('1980-01-01')] df4=df4.reset_index(drop=True) # display(df4) # 学習用データの作成 x_train = df4['Shiller PE Ratio'].values y_train = df4['afteryearsReturn'].values x_train = x_train.reshape(-1,1) # # GridSearchでパラメータ決定 # param_grid = {'n_estimators': [1,2,3,4,5,6,7,8,9,10], 'max_depth': [1,2,3,4,5,6,7,8,9,10]} # grid_search = GridSearchCV(RandomForestRegressor(), param_grid, cv=5, verbose = 2) # grid_search.fit(x_train,y_train) # # ヒートマップの作成 # results = pd.DataFrame(grid_search.cv_results_) # scores = np.array(results.mean_test_score).reshape(10, 10) # mglearn.tools.heatmap(scores, xlabel='n_estimators', xticklabels=param_grid['n_estimators'], # ylabel='max_depth', yticklabels=param_grid['max_depth'], cmap="viridis", fmt='%0.1f') # plt.show() # ランダムフォレストによる予測 rfr = RandomForestRegressor(n_estimators=8,max_depth = 3, random_state=5) rfr.fit(x_train,y_train) x_test = np.linspace(8,50,1000).reshape(-1,1) predict = rfr.predict(x_test) # 現在のPerを計算に使用する shiller_per_value = get_per(shiller_url) now_value=np.array(shiller_per_value).reshape(-1,1) estimate=rfr.predict(now_value) # グラフ化 plt.rcParams["legend.framealpha"] = 1 plt.rcParams['figure.subplot.bottom'] = 0.15 plt.rcParams['figure.subplot.top'] = 0.90 plt.figure(figsize=(10,3.5)) plt.scatter(df4['Shiller PE Ratio'],df4['afteryearsReturn'],s=100,alpha=0.2, label='Since 1980/01/01') plt.vlines([shiller_per_value],0.5,df4['afteryearsReturn'].max(),color='black', label='Current Shiller PE Ratio') plt.hlines([1],0,50,color='black',linestyles='dotted') plt.plot(x_test[:,0],predict,c='r',label='Predict by RandomForest') plt.text(now_value+1,df4['afteryearsReturn'].max()/2,'Shiller PER =' + str(shiller_per_value) +'\npredict ='+str(round(estimate[0],2)),fontsize=13) plt.xlim([0,50]) plt.legend(fontsize=12) plt.title('{}年後のリターン予測'.format(afteryears),fontsize=18) plt.xlabel('Shiller PE ratio',fontsize=15) plt.ylabel('{}年後のリターン(倍)'.format(afteryears),fontsize=15) plt.xticks(fontsize=11) plt.yticks(fontsize=12) plt.grid() plt.savefig(str(BASE_DIR)+'/static/images/shiller_per_predict.png') # plt.show() def random_forest_predict_byper(afteryears): # データ読み込み df=pd.read_excel('C:/Users/nakam/Dropbox/資産/Django/data/S and P PE Ratio.xlsx') df1=pd.read_excel('C:/Users/nakam/Dropbox/資産/Django/data/S and P PE Ratio.xlsx', sheet_name='PE Ratio') df2=pd.read_excel('C:/Users/nakam/Dropbox/資産/Django/data/S and P PE Ratio.xlsx', sheet_name='Stock Price') # monthの作成 df1['DateTime'] = pd.to_datetime(df1['DateTime']) df1['Month']=df1['DateTime'].dt.strftime('%Y%m') df2['DateTime'] = pd.to_datetime(df2['DateTime']) df2['Month']=df2['DateTime'].dt.strftime('%Y%m') df = df.iloc[:,:2] df['DateTime'] = pd.to_datetime(df['DateTime']) df['Month']=df['DateTime'].dt.strftime('%Y%m') # 結合 df3=pd.merge(df2,df,how='left',on='Month') df3=pd.merge(df3,df1,how='left',on='Month') df3=df3.sort_values('DateTime_x') df3=df3.reset_index(drop=True) # 5年後のリターンを計算 df3['afteryears']=0 for i in range(len(df3)): now_month = df3.loc[i, 'Month'] after_month = str(int(now_month)+afteryears*100) # print(now_month,"⇒",after_month) try : # print(df3[df3['Month']==after_month]['S&P 500'].values[0]) df3.loc[i,"afteryears"] = df3[df3['Month']==after_month]['S&P 500'].values[0] except IndexError: continue # 数年後リターンの計算 df3['afteryearsReturn'] = df3['afteryears'] / df3["S&P 500"] # リターンが0以外のもののみ抽出 df4=df3[df3['afteryearsReturn']!=0] df4=df4[df4['DateTime_x']>pd.to_datetime('1980-01-01')] df4=df4.reset_index(drop=True) # display(df4) # 学習用データの作成 x_train = df4['PE Ratio_x'].values y_train = df4['afteryearsReturn'].values x_train = x_train.reshape(-1,1) # # GridSearchでパラメータ決定 # param_grid = {'n_estimators': [1,2,3,4,5,6,7,8,9,10], 'max_depth': [1,2,3,4,5,6,7,8,9,10]} # grid_search = GridSearchCV(RandomForestRegressor(), param_grid, cv=5, verbose = 2) # grid_search.fit(x_train,y_train) # # ヒートマップの作成 # results = pd.DataFrame(grid_search.cv_results_) # scores = np.array(results.mean_test_score).reshape(10, 10) # mglearn.tools.heatmap(scores, xlabel='n_estimators', xticklabels=param_grid['n_estimators'], # ylabel='max_depth', yticklabels=param_grid['max_depth'], cmap="viridis", fmt='%0.1f') # plt.show() # ランダムフォレストによる予測 rfr = RandomForestRegressor(n_estimators=10,max_depth = 2, random_state=5) rfr.fit(x_train,y_train) x_test = np.linspace(8,50,1000).reshape(-1,1) predict = rfr.predict(x_test) # 現在のPerを計算に使用する per_value = get_per(per_url) now_value = np.array(per_value).reshape(-1,1) estimate = rfr.predict(now_value) # グラフ化 plt.rcParams["legend.framealpha"] = 1 plt.rcParams['figure.subplot.bottom'] = 0.15 plt.rcParams['figure.subplot.top'] = 0.90 plt.figure(figsize=(10,3.5)) plt.scatter(df4['PE Ratio_x'],df4['afteryearsReturn'],s=100,alpha=0.2, label='Since 1980/01/01') plt.vlines([per_value],0.5,df4['afteryearsReturn'].max(),color='black', label='Current PE Ratio') plt.hlines([1],0,50,color='black',linestyles='dotted') plt.plot(x_test[:,0],predict,c='r',label='Predict by RandomForest') plt.text(now_value+1,df4['afteryearsReturn'].max()/2,'PER =' + str(per_value) +'\npredict ='+str(round(estimate[0],2)),fontsize=13) plt.xlim([0,50]) plt.legend(fontsize=12) plt.title('{}年後のリターン予測'.format(afteryears),fontsize=18) plt.xlabel('PE ratio',fontsize=15) plt.ylabel('{}年後のリターン(倍)'.format(afteryears),fontsize=15) plt.xticks(fontsize=11) plt.yticks(fontsize=12) plt.grid() plt.savefig(str(BASE_DIR)+'/static/images/per_predict.png') # plt.show()
[ "nakamukaiya@gmail.com" ]
nakamukaiya@gmail.com
4280273f863bf6db33ef9b6e39f235c1147faeb2
6a07912090214567f77e9cd941fb92f1f3137ae6
/cs101/Unit 2/21.py
0e2c93050707e132334251d46f9f789d59f35a8d
[]
no_license
rrampage/udacity-code
4ab042b591fa3e9adab0183d669a8df80265ed81
bbe968cd27da7cc453eada5b2aa29176b0121c13
refs/heads/master
2020-04-18T08:46:00.580903
2012-08-25T08:44:24
2012-08-25T08:44:24
5,352,942
3
0
null
null
null
null
UTF-8
Python
false
false
319
py
# cs101 ; Unit 2 ; 21 # Define a procedure, biggest, that takes three # numbers as inputs and returns the largest of # those three numbers. def biggest(): #print biggest(3, 6, 9) #>>> 9 #print biggest(6, 9, 3) #>>> 9 #print biggest(9, 3, 6) #>>> 9 #print biggest(3, 3, 9) #>>> 9 #print biggest(9, 3, 9) #>>> 9
[ "raunak1001@gmail.com" ]
raunak1001@gmail.com
4fa4b736036bbfe2740e9156de8bd98f704ed0d2
848b03400ae490d8820a562bc88083331dc5de1a
/Webappnondocker/Webappnondocker/settings.py
9aafb1a2709c7e3dade6fac5acd3dc93ae361f0d
[]
no_license
naclhv/LitSearch
b9fc1d5c47bcc059e521ebe22bf9c1b14901ea5a
5367468e2a74b45d46b2c1109a6d0541d378ad94
refs/heads/master
2020-04-10T21:22:59.260944
2018-12-11T08:09:09
2018-12-11T08:09:09
161,295,307
0
0
null
2018-12-11T08:09:10
2018-12-11T07:35:05
Jupyter Notebook
UTF-8
Python
false
false
3,252
py
""" Django settings for Webappnondocker project. Generated by 'django-admin startproject' using Django 2.1.4. 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/ """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '))9mdlnk*o8v4f@xl0_b$of9g4^-3&p3@!le8xb8&^zyaokrw^' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'litsearch', 'rest_framework', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'Webappnondocker.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'Webappnondocker.wsgi.application' # Database # https://docs.djangoproject.com/en/2.1/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # Password validation # https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/2.1/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.1/howto/static-files/ STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, "static"), )
[ "nathanlee@pop-os.localdomain" ]
nathanlee@pop-os.localdomain
30289cd6ca108a992ed0e2ea69fc290133a69895
e51f208a853235588428b65bb6931136bfdfeed3
/usr/lib/enigma2/python/Plugins/Extensions/RaedQuickSignal/logging.py
663bf8bc6c0a7c02db5ca64e3813de1df6f9ab89
[]
no_license
ostende/RaedQuickSignal
04601e5e42124b820384e9459da5576eaabffb9e
3307433280802ba41fda60cbba4c9aedc9c4249a
refs/heads/master
2022-11-27T21:12:44.497786
2020-07-26T15:35:45
2020-07-26T15:35:45
282,678,796
0
0
null
null
null
null
UTF-8
Python
false
false
808
py
import os, sys, traceback logFile='/tmp/RaedQuickSignal.log' def trace_error(): try: traceback.print_exc(file=sys.stdout) traceback.print_exc(file=open(logFile, 'a')) except: pass def logdata(label_name = '', data = None,mode='a'): try: data=str(data) if mode=='w': fp = open(logFile, 'w') else: fp = open(logFile, 'a') fp.write( str(label_name) + ': ' + data+"\n") fp.close() except: trace_error() pass def dellog(): try: if os_path.exists(logFile): os_remove(logFile) except: pass def DreamOS(): if os_path.exists('/var/lib/dpkg/status'): return True else: return False
[ "redouaneelrhachi@gmail.com" ]
redouaneelrhachi@gmail.com
3ddeffe2b0b62d255e649df3e60789d17dfa27a8
48e463613924b9214cf1bd447d6dd4e240f7b595
/registers/apps.py
77493497492ff0efb84e22b8d963365debaf6b60
[]
no_license
jjrubio/ObservatorioCIEC
e8d2ee128273a7755fa83893769b0110baf3fc6f
131b9976bbbdf9fd2b640971500ce2cb68f3dddf
refs/heads/master
2016-09-05T23:21:43.248432
2015-09-15T14:33:03
2015-09-15T14:33:03
18,084,639
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
from django.apps import AppConfig class RegistersConfig(AppConfig): name = 'registers' verbose_name = "Registros"
[ "jefferson.jrubio@gmail.com" ]
jefferson.jrubio@gmail.com
a05d341795df4bead5442dee170fa530a6f660b0
a060c70f8fbacc8b2455efce7b08beeacc7e0e8a
/PythonCrashCourse/Chapter10/pi_string.py
7c3790bd0e934eb9736faade4d0817ef03235729
[]
no_license
mingqin-joy/python-crash-course
091cb36ffd838fb8e9a9555c442c3a6994bd92aa
31363d91d5cb9f28f145b5cc583a354bc08419ba
refs/heads/master
2020-05-15T02:37:50.092231
2019-04-29T06:35:56
2019-04-29T06:35:56
182,052,267
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
filename = 'C:/Users/MingqinZhou/Desktop/pi_digits.txt' with open(filename) as file_object: lines = file_object.readlines() pi_string = '' for line in lines: pi_string += line.strip() print(pi_string) print(len(pi_string)) filename2 = 'C:/Users/MingqinZhou/Desktop/pi_million_digits.txt' with open(filename2) as file_object2: lines2 = file_object2.readlines() birthday = input("Enter your birthday, in the form mmddyy: ") if birthday in pi_string2: print("Your birthday appears in the first million digits of pi!") else: print("Your birthday does not appear in the first million digits of pi!") pi_string2 = '' for line in lines2: pi_string2 += line.strip() print(pi_string2[:52] + "...") print(len(pi_string2))
[ "mingqin-joy@outlook.com" ]
mingqin-joy@outlook.com
68adc132a13b547082ae9bf93266f387975af7e3
55cbb7dc747477b72386cdf5ff836752753f8452
/Downloader/file_clipper.py
fca1b2cd6860399b223135bc1ad18c4eb15bb495
[]
no_license
MScatolin/W251_Final_Project_Say1-10
732fc2d494aef8ba18db3294371153f1a6a2891f
15c0f4a88627f7a9e5888209ee8a8c5442596352
refs/heads/master
2023-04-07T03:43:42.815118
2019-08-25T23:49:37
2019-08-25T23:49:37
198,738,511
3
1
null
2023-03-24T21:54:46
2019-07-25T02:02:27
Python
UTF-8
Python
false
false
5,020
py
import os import cv2 import math import time from pydub import AudioSegment # verify files path save_dir = "data/" list_of_words = ["ZERO", "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE"] fps = 100 # according to dataset documentation height = 640 # original height is 1920 width = 360 # original width is 1080 fourcc = cv2.VideoWriter_fourcc(*'mpg2') # encoder case we want to convert to other file formats. Can lose quality. logfile = save_dir + "logfile.txt" # simple text file for logging and debugging. for filename in os.listdir(save_dir + "full_files/transcripts"): # filename example SPEAKER09_C1_AUD1.lab # open tanscriptions file f = open(save_dir + "full_files/transcripts/" + filename) # logging for debug print(time.asctime(), " - processing file: ", filename) print(time.asctime(), " - processing file: ", filename, file=open(logfile, "a")) try: # case hidden files are created inside the dataset folders # iterate line by line, extract the word for line in f: line = line.strip() init_ts, end_ts, word = line.split(' ') # open the left video file with openCV captureL = cv2.VideoCapture(save_dir + "full_files/videos/" + filename.split('_')[0] + "_" + filename.split('_')[1] + "_STRL.mkv") # open the right video file with openCV captureR = cv2.VideoCapture(save_dir + "full_files/videos/" + filename.split('_')[0] + "_" + filename.split('_')[1] + "_STRR.mkv") # open audio file full_audio = AudioSegment.from_wav(save_dir + "full_files/audios/" + filename.split('_')[0] + "_" + filename.split('_')[1] + "_AUD2.wav") # check if current word is on the target words list if word in list_of_words: # calculate initial and final timestamps in microseconds, and frames to be iterated start_pos = math.floor(int(init_ts) / 10000) end_pos = math.ceil(int(end_ts) / 10000) frame_count = math.ceil((end_pos - start_pos)/10 + 1) # set a code based on time to avoid overwriting and match all files: filecode = str(int(time.time())) # logging for debug purposes print(time.asctime(), " - new word: ", word, start_pos/1000, "secs to", end_pos/1000, "secs, filecode #: ", filecode) print(time.asctime(), " - new word: ", word, start_pos/1000, "secs to", end_pos/1000, "secs, filecode #: ", filecode, file=open(logfile, "a")) # set decoders and initial time to start clipping videos captureL.set(cv2.CAP_PROP_FOURCC, fourcc) captureL.set(cv2.CAP_PROP_POS_MSEC, start_pos) captureR.set(cv2.CAP_PROP_FOURCC, fourcc) captureR.set(cv2.CAP_PROP_POS_MSEC, start_pos) # set up video output for left camera output_videoL = cv2.VideoWriter(save_dir + "videos/" + word + "/" + filename.split('_')[0] + "_" + filename.split('_')[1] + "_L_" + filecode + ".mkv", fourcc, fps, (width, height)) # iterate through frames, saving to new short video for frame_num in range(frame_count): ret, frame = captureL.read() resized = cv2.resize(frame, (width, height), interpolation=cv2.INTER_AREA) output_videoL.write(resized) # set up video output for right camera output_videoR = cv2.VideoWriter(save_dir + "videos/" + word + "/" + filename.split('_')[0] + "_" + filename.split('_')[1] + "_R_" + filecode + ".mkv", fourcc, fps, (width, height)) # iterate through frames, saving to new short video for frame_num in range(frame_count): ret, frame = captureR.read() resized = cv2.resize(frame, (width, height), interpolation=cv2.INTER_AREA) output_videoR.write(resized) # cut audio file and store it audio = full_audio[start_pos:end_pos] audio.export(save_dir + "audios/" + word + "/" + filename.split('_')[0] + "_" + filename.split('_')[1] + "_" + filecode + ".wav", format="mp3") # release videos captureL.release() captureR.release() else: # release video file after the last word was processed. captureL.release() captureR.release() except: # case the file isn't a transcription, ignore it and move on. continue
[ "marceloscatolin.queiroz@gmail.com" ]
marceloscatolin.queiroz@gmail.com
46dadfd93b119bf9ce928e5793491dcaf6946d38
f63c4eb29ce57319441f5469d1d049b63bc220de
/swu_cycle_variance/run345.py
2c0fb812bf7981a62a7013b0adf18e22cdad3021
[]
no_license
a-co/diversion_models
0237642153668b16035699e9e734ff0538568582
69eed2687b1cd2b48f5717d15919eccd24a0eabc
refs/heads/main
2023-05-02T19:04:26.333677
2020-06-18T20:50:18
2020-06-18T20:50:18
216,904,337
0
0
null
null
null
null
UTF-8
Python
false
false
6,362
py
SIMULATION = {'simulation': {'agent': [{'name': 'deployer_military', 'prototype': 'military_deployer'}, {'name': 'deployer_civilian', 'prototype': 'civilian_deployer'}, {'name': 'deployer_shared', 'prototype': 'shared_deployer'}], 'archetypes': {'spec': [{'lib': 'cycamore', 'name': 'DeployInst'}, {'lib': 'cycamore', 'name': 'Source'}, {'lib': 'cycamore', 'name': 'Sink'}, {'lib': 'cycamore', 'name': 'Storage'}, {'lib': 'cycamore', 'name': 'Reactor'}, {'lib': 'cycamore', 'name': 'Separations'}, {'lib': 'cycamore', 'name': 'Enrichment'}]}, 'control': {'duration': '144', 'explicit_inventory': 'true', 'startmonth': '1', 'startyear': '2020'}, 'prototype': [{'config': {'Source': {'inventory_size': '1e30', 'outcommod': 'u_ore', 'outrecipe': 'r_u_ore', 'throughput': '1e10'}}, 'name': 'mine'}, {'config': {'Separations': {'feed_commod_prefs': {'val': ['1.0', '10.0', '100.0']}, 'feed_commods': {'val': ['u_ore', 'u_ore1', 'u_ore2']}, 'feedbuf_size': '2e8', 'leftover_commod': 'waste', 'streams': {'item': {'commod': 'u_nat', 'info': {'buf_size': '150000', 'efficiencies': {'item': [{'comp': 'U', 'eff': '.99'}, {'comp': 'O', 'eff': '.99'}]}}}}, 'throughput': '2e8'}}, 'name': 'milling'}, {'config': {'Separations': {'feed_commod_prefs': {'val': '1.0'}, 'feed_commods': {'val': 'u_nat'}, 'feedbuf_size': '200000', 'leftover_commod': 'waste', 'streams': {'item': {'commod': 'uf6', 'info': {'buf_size': '200000', 'efficiencies': {'item': {'comp': 'U', 'eff': '.99'}}}}}, 'throughput': '200000'}}, 'name': 'conversion'}, {'config': {'Enrichment': {'feed_commod_prefs': {'val': '1'}, 'feed_commods': {'val': 'uf6'}, 'feed_recipe': 'r_uox', 'max_feed_inventory': '20000', 'product_commod': 'mil_fiss', 'swu_capacity': '15629.004702770533', 'tails_assay': '0.003', 'tails_commod': 'mil_u_dep'}}, 'name': 'mil_enrichment'}, {'config': {'Storage': {'in_commods': {'val': 'mil_u_dep'}, 'out_commods': {'val': 'mil_u_dep_str'}, 'residence_time': '0'}}, 'name': 'mil_str_u_dep'}, {'config': {'Storage': {'in_commod_prefs': {'val': '1'}, 'in_commods': {'val': 'uf6'}, 'in_recipe': 'r_mil_uox', 'max_inv_size': '30000', 'out_commods': {'val': 'mil_uox'}, 'residence_time': '0'}}, 'name': 'mil_uox_fabrication'}, {'config': {'Reactor': {'assem_size': '14000', 'cycle_time': '-5', 'fuel_incommods': {'val': 'mil_uox'}, 'fuel_inrecipes': {'val': 'r_mil_uox'}, 'fuel_outcommods': {'val': 'mil_uox_spent'}, 'fuel_outrecipes': {'val': 'r_mil_uox_spent'}, 'fuel_prefs': {'val': '1'}, 'n_assem_batch': '1', 'n_assem_core': '1', 'power_cap': '0.15', 'refuel_time': '0'}}, 'lifetime': '960', 'name': 'mil_lwr'}, {'config': {'Storage': {'in_commods': {'val': 'mil_mox_spent'}, 'out_commods': {'val': 'mil_mox_spent_str'}, 'residence_time': '60'}}, 'name': 'mil_str_mox_spent'}, {'config': {'Separations': {'feed_commod_prefs': {'val': '1.0'}, 'feed_commods': {'val': 'mil_uox_spent'}, 'feedbuf_size': '30000000000', 'leftover_commod': 'waste', 'streams': {'item': {'commod': 'mil_fiss', 'info': {'buf_size': '3000000000', 'efficiencies': {'item': {'comp': 'Pu', 'eff': '.95'}}}}}, 'throughput': '1e100'}}, 'name': 'reprocessing'}, {'config': {'Storage': {'in_commod_prefs': {'val': '10'}, 'in_commods': {'val': 'mil_fiss'}, 'in_recipe': 'r_mil_heu', 'max_inv_size': '1e100', 'out_commods': {'val': 'mil_heu'}, 'residence_time': '0'}}, 'name': 'mil_str_fiss'}, {'config': {'Enrichment': {'feed_commod_prefs': {'val': ['1', '20']}, 'feed_commods': {'val': ['uf6', 'mil_uf6']}, 'feed_recipe': 'r_natl_u', 'max_feed_inventory': '100000', 'product_commod': 'civ_leu', 'swu_capacity': '35000', 'tails_assay': '0.003', 'tails_commod': 'u_dep'}}, 'name': 'civ_enrichment'}, {'config': {'Storage': {'in_commods': {'val': 'u_dep'}, 'out_commods': {'val': 'u_dep_str'}, 'residence_time': '0'}}, 'name': 'civ_str_u_dep'}, {'config': {'Storage': {'in_commod_prefs': {'val': '1000'}, 'in_commods': {'val': 'civ_leu'}, 'in_recipe': 'r_uox', 'max_inv_size': '30000', 'out_commods': {'val': 'uox'}, 'residence_time': '1'}}, 'name': 'civ_fabrication'}, {'config': {'Reactor': {'assem_size': '29565', 'cycle_time': '18', 'fuel_incommods': {'val': 'uox'}, 'fuel_inrecipes': {'val': 'r_uox'}, 'fuel_outcommods': {'val': 'uox_spent'}, 'fuel_outrecipes': {'val': 'r_uox_spent'}, 'n_assem_batch': '1', 'n_assem_core': '3', 'power_cap': '900', 'refuel_time': '0'}}, 'lifetime': '960', 'name': 'civ_lwr'}, {'config': {'Storage': {'in_commods': {'val': 'uox_spent'}, 'out_commods': {'val': 'uox_spent_str'}, 'residence_time': '60'}}, 'name': 'civ_str_uox_spent'}, {'config': {'DeployInst': {'build_times': {'val': ['37', '37', '61', '73']}, 'n_build': {'val': ['1', '1', '1', '1']}, 'prototypes': {'val': ['mil_enrichment', 'mil_str_u_dep', 'mil_uox_fabrication', 'mil_str_fiss']}}}, 'name': 'military_deployer'}, {'config': {'DeployInst': {'build_times': {'val': ['121', '121', '121', '145', '157', '169']}, 'n_build': {'val': ['1', '1', '1', '1', '1', '1']}, 'prototypes': {'val': ['civ_enrichment', 'civ_str_u_dep', 'civ_fabrication', 'civ_lwr', 'civ_str_uox_spent', 'civ_lwr']}}}, 'name': 'civilian_deployer'}, {'config': {'DeployInst': {'build_times': {'val': ['1', '1', '1']}, 'n_build': {'val': ['1', '1', '1']}, 'prototypes': {'val': ['mine', 'milling', 'conversion']}}}, 'name': 'shared_deployer'}], 'recipe': [{'basis': 'mass', 'name': 'r_u_ore', 'nuclide': [{'comp': '0.0071', 'id': '922350000'}, {'comp': '0.9929', 'id': '922380000'}, {'comp': '999', 'id': '120240000'}]}, {'basis': 'mass', 'name': 'r_natl_u', 'nuclide': [{'comp': '0.0071', 'id': '922350000'}, {'comp': '0.9929', 'id': '922380000'}]}, {'basis': 'mass', 'name': 'r_uox', 'nuclide': [{'comp': '0.05', 'id': '922350000'}, {'comp': '0.95', 'id': '922380000'}]}, {'basis': 'mass', 'name': 'r_uox_spent', 'nuclide': [{'comp': '0.01', 'id': '922350000'}, {'comp': '0.94', 'id': '922380000'}, {'comp': '0.01', 'id': '942390000'}, {'comp': '0.001', 'id': '952410000'}, {'comp': '0.03', 'id': '551350000'}]}, {'basis': 'mass', 'name': 'r_mil_uox', 'nuclide': [{'comp': '0.0071', 'id': '922350000'}, {'comp': '0.9929', 'id': '922380000'}]}, {'basis': 'mass', 'name': 'r_mil_uox_spent', 'nuclide': [{'comp': '0.0071', 'id': '922350000'}, {'comp': '0.9919', 'id': '922380000'}, {'comp': '0.001', 'id': '942390000'}]}, {'basis': 'mass', 'name': 'r_mil_heu', 'nuclide': [{'comp': '0.90', 'id': '922350000'}, {'comp': '0.10', 'id': '922380000'}]}]}}
[ "acaldwel@wellesley.edu" ]
acaldwel@wellesley.edu
402064ca0456d37b5d3880b716a2b872d0626cfb
c4d24e33c688709fa6e96619d52f3be4af4cc72c
/pre_Net50.py
6fa257b22fdd0259fcb94702070be9b2f5c9211c
[]
no_license
yangyi521/image_recognition
b7ef20ad0275cf547afcae11efe6ff94af6bbc0f
638865186fc9db004091c6e714e702bb9247823a
refs/heads/master
2020-03-08T02:43:06.768968
2018-04-22T07:59:00
2018-04-22T07:59:00
127,868,528
0
0
null
null
null
null
UTF-8
Python
false
false
3,093
py
from keras.models import load_model from keras.preprocessing import image #从Keras中导入image模块 进行图片处理 from keras.applications.vgg16 import VGG16, preprocess_input import numpy as np import os import random from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import StratifiedShuffleSplit my_model=load_model('Net50.h5') def read_and_process_image(data_dir, width=64, height=64, channels=3, preprocess=False): train_images = [data_dir + i for i in os.listdir(data_dir) ]#if i != '.DS_Store'#将所有的要训练的问图片的名称读取到train_images的列表中 #print(train_images) random.shuffle(train_images)#将train_image中的内容随机排序 #定义读取图片 def read_image(file_path, preprocess): img = image.load_img(file_path, target_size=(height, width)) #print("img",img) x = image.img_to_array(img)#使用keras中的img_to_array()函数,可以将一张图片转换成一个矩阵 #print('img_to_array返回的结果:',x) x = np.expand_dims(x, axis=0)#将x增加维数 if preprocess: x = preprocess_input(x)#进行图像预处理 return x #将所有的图片转换成一个2进制的形式进行保存 def prep_data(images, preprocess): count = len(images) data = np.ndarray((count, width, height, channels), dtype=np.float32) for i, image_file in enumerate(images): #print("i的值:",i) image = read_image(image_file, preprocess) #print("image的值:",image) data[i] = image print("data",data.shape) return data def read_labels(file_path): # Using 1 to represent dog and 0 for cat labels = [] label_encoder = LabelEncoder() for i in file_path: label = i.split('/')[1].split('.')[0].split('_')[0] labels.append(label) labels = label_encoder.fit_transform(labels) return labels, label_encoder X = prep_data(train_images, preprocess)#调用前面写的函数 将所有的图片转换成向量的形式进行保存并且返回 labels, label_encoder = read_labels(train_images)#将训练好的模型跟所有的名字进行调用并且保存,labels包括所有的结果集,label_encoder是训练好的模型 assert X.shape[0] == len(labels) print("Train shape: {}".format(X.shape)) return X,label_encoder WIDTH = 64 HEIGHT = 64 CHANNELS = 3 #函数开始运行 X,label_encoder = read_and_process_image('test_image/', width = WIDTH, height = HEIGHT, channels = CHANNELS) label_encoder.classes_ my_predict=my_model.predict(X) X_value=my_predict[0] X_value=X_value.tolist() result=X_value.index(max(X_value)) print(result) if(result==0): print("computer") elif(result==1): print("tong") else: print("wt310") print('my_predict',my_predict) #print('y_label',y_label) # if not (my_predict-[[0.,1.]]).any(): # print("wt310") # elif not (my_predict-[[1.,0.]]).any(): # print("computer") # else: # print("burenshi")
[ "yangyi521@163.com" ]
yangyi521@163.com
28a783a5837335c8310dff6dfc3244031372e107
02a7e6c18f7cf6197efeddca2b89b227cc28c99d
/sandbox/settings/demo.py
203bdf29b4543388710f6d38b2f632e0c15d4ec4
[ "MIT" ]
permissive
ChangqiaoWang/djangocodemirror
c34f48d86cc8eb7914f62c9a8744fb38a8765126
02869149fb698315474b7f7544876def0e9fe21d
refs/heads/master
2023-03-15T16:30:40.740257
2019-05-05T13:18:23
2019-05-05T13:18:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
""" Django settings for project demonstration (will not work for unittests) Actually inherits from settings for Django 1.6. Intended to be used with ``make server``. """ import os, copy from sandbox.settings.base import * # # DjangoCodemirror settings # from djangocodemirror.settings import * # Keep default shipped configs old = copy.deepcopy(CODEMIRROR_SETTINGS) # Install tests required settings from sandbox.settings.djangocodemirror_app import * # Restore default shipped configs additionaly to the tests ones CODEMIRROR_SETTINGS.update(old)
[ "sveetch@gmail.com" ]
sveetch@gmail.com
5d70031e2cb538656aadfb873d8d04524272ca7b
76122e6a59deef5b2ca59553c7b7efb1ab3e0a3b
/main.py
77161e7ce2aceef8c17494948d649b11af9548be
[]
no_license
lunaplush/star
2d43c8f7589101d0998bce96774d20e6e8786b80
b13f4383baa12e25f826cd11344789a737e2ac37
refs/heads/master
2020-03-30T12:09:17.169787
2019-02-13T06:36:17
2019-02-13T06:36:17
151,210,942
0
0
null
null
null
null
UTF-8
Python
false
false
8,614
py
import torch import torch.utils.data as torchdata import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import numpy as np import matplotlib.pyplot as plt import time import csv from sklearn.preprocessing import StandardScaler import seaborn as sns from sklearn.model_selection import StratifiedShuffleSplit from sklearn.metrics import confusion_matrix from matplotlib.colors import ListedColormap from sklearn import datasets, linear_model, metrics from sklearn.neighbors import LocalOutlierFactor from sklearn.ensemble import IsolationForest #%% my funcs def make_same_length_classes(X,Y): len = [ Y[Y==k].shape[0] for k in set(Y)] max_len = max(len) for k in set(Y): k_len = Y[Y == k].shape[0] add_len = max_len - k_len if add_len!= 0: if add_len <= k_len: add_x = X[Y==k][:add_len] else: if add_len % k_len!= 0: add_x = X[Y==k][: add_len % k_len] one = 0 else: add_x = X[Y==k] one = 1 for i in np.arange(add_len // k_len - one): add_x = np.vstack((add_x, X[Y==k])) X = np.vstack((X,add_x)) Y = np.hstack((Y, np.ones(add_len)*k)) return (X,Y) np.random.seed(15) INPUT_DATA = 2 # 1 - Model data # 2 - PetroSpec #%% read data from file if INPUT_DATA == 2: F_with_outlier = False if F_with_outlier: myfile = open("PS_X.csv","r") with myfile: reader = csv.reader(myfile) i = -1 for row in reader: if i == -1 : X = np.array([row], float) i = 1 elif i == 1: i = 0 else: X = np.insert(X,X.shape[0],row, axis = 0) i = 1 myfile = open("PS_Y.csv","r") with myfile: reader = csv.reader(myfile) i = -1 for row in reader: if i == -1 : Y = np.array([row],float) i = 1 elif i == 1: i = 0 else: Y = np.insert(Y,Y.shape[0],row, axis = 0) i = 1 Y = np.array(Y,int).reshape(Y.shape[0],) clf = LocalOutlierFactor(n_neighbors = 20,contamination = 0.07 ) y_pred = clf.fit_predict(X) X_scores = clf.negative_outlier_factor_ else: myfile = open("PS_X_without_outlier.csv","r") with myfile: reader = csv.reader(myfile) i = -1 for row in reader: if i == -1 : X = np.array([row], float) i = 1 elif i == 1: i = 0 else: X = np.insert(X,X.shape[0],row, axis = 0) i = 1 myfile = open("PS_Y_without_outlier.csv","r") with myfile: reader = csv.reader(myfile) i = -1 for row in reader: if i == -1 : Y = np.array([row],float) i = 1 elif i == 1: i = 0 else: Y = np.insert(Y,Y.shape[0],row, axis = 0) i = 1 Y = np.array(Y,int).reshape(Y.shape[0],) Y = Y-1 #%% model data if INPUT_DATA == 1: [X,Y] = datasets.make_blobs(n_samples = 500, n_features = 2, centers = 4, cluster_std = [0.2,0.2,0.3,0.15,0.15], random_state = 58) #%% # PyTorch Dataset class MyDataSet(torchdata.Dataset): def __init__(self, X,Y, transform = None): if transform !=None: X= transform(X) self.X = torch.from_numpy(X) self.Y =torch.from_numpy(Y) def __len__(self): return self.X.shape[0] def __getitem__(self, idx): #sample = (X[idx,:],self.code_to_vec(Y[idx] - 1)) sample = (self.X[idx, :], self.Y[idx]) return sample #https://discuss.pytorch.org/t/multi-label-classification-in-pytorch/905 def code_to_vec(self, class_num): y = np.zeros(output_shape, dtype = np.float32) y[int(class_num.item())] = 1. return y #%% input_shape = X.shape[1] output_shape = 16#len(set(Y)) PARAMETERS = {"lr":0.01, "momentum":0.5,"epochs": 500, "batchsize": 64, "batchsize_test": 500} #https://github.com/pytorch/examples/blob/m aster/mnist/main.py class Net(nn.Module): def __init__(self, hidden = 50 ): super(Net,self).__init__() self.fc1 = nn.Linear(input_shape,hidden) self.fc2 = nn.Linear(hidden, output_shape) def forward(self,x): #x = x.view(-1,self.num_flat_features(x)) x = self.fc1(x).clamp(min = 0) x = self.fc2(x) return x#F.log_softmax(x,dim = 1) def num_flat_features(self,x): size = x.size()[1:] num_features = 1 for s in size: num_features *= s return num_features def train(args, model, train_loader, optimizer, epoch): model.train() for data,target in train_loader: output = model(data) loss = MyLossFunc(output,target) optimizer.zero_grad() loss.backward() optimizer.step() print('Train Epoch: {} Loss {:.6f}%'.format(epoch, loss.item())) def test(args,model,test_loader): model.eval() test_loss = 0 correct = 0 all = 0 with torch.no_grad(): for data, target in test_loader: output = model(data) test_loss += MyLossFunc(output,target).item() pred = output.max(1, keepdim = True)[1] tmp = torch.tensor(pred.eq(target.view_as(pred)),dtype = torch.float32) correct += int(tmp.sum().item()) all +=target.shape[0] C = confusion_matrix(np.array(target),np.array(pred)) test_loss /= test_loader.__len__() acc = 100. * correct / all # print('Test set: Average loss {:.4f}, Accuracy {} / {} (){:.0f}%'.format(test_loss,correct,X.shape[0]//len(test_loader), acc )) print('Test set: Average loss {:.4f}% Accuracy {:.2f}% ( {} / {})'.format(test_loss,acc, correct, all)) print(C) return C,np.array(target),np.array(pred) model = Net() #model.load_state_dict(torch.load("PS_classifier.pt")) #model.eval() MyLossFunc = torch.nn.CrossEntropyLoss() #optimizer = optim.Adam(model.parameters(), lr= PARAMETERS['lr']) optimizer = optim.SGD(model.parameters(), lr = PARAMETERS["lr"], momentum = PARAMETERS["momentum"]) #%% extend data to same class length len = [ Y[Y==k].shape[0] for k in set(Y)] (X,Y) = make_same_length_classes(X,Y) print("Make same length classes ok", list(zip(len,[Y[Y==k].shape[0] for k in set(Y)]))) X = X.astype(np.float32) scaler = StandardScaler().fit(X) Y = Y.astype(np.int64) s = StratifiedShuffleSplit(n_splits= 1, train_size= 0.7) train_index,test_index = next(s.split(X,Y)) PSdataset_train = MyDataSet(X[train_index],Y[train_index], transform= scaler.transform) PSdataset_test = MyDataSet(X[test_index],Y[test_index], transform=scaler.transform) train_loader = torchdata.DataLoader(PSdataset_train, batch_size= PARAMETERS["batchsize"], shuffle =True ) test_loader = torchdata.DataLoader(PSdataset_test,batch_size= PSdataset_test.Y.shape[0], shuffle = True) for epoch in range(1, PARAMETERS["epochs"] + 1): train(PARAMETERS, model, train_loader, optimizer, epoch) C,Y_target,Y_pred = test(PARAMETERS, model, test_loader) F_score = sklearn.metrics.f1_score(Y_target,Y_pred, average = None) F_score_avarage = sklearn.metrics.f1_score(Y_target,Y_pred, average = ) ILLUSTRATE = True if True: plt.scatter(X[:, 0], X[:, 1], c=Y, cmap=plt.cm.Paired) Y_net = model(torch.from_numpy(scaler.transform(X).astype(np.float32))).max(1, keepdim=True)[1] plt.scatter(X[:, 0], X[:, 1], s = 4, marker= "s", c=Y_net.numpy().reshape(Y_net.shape[0],), cmap=plt.cm.Paired) #print(model(torch.from_numpy(scaler.transform([X[1122,:]]).astype(np.float32))).max(1, keepdim = True)[1]+1) #print(list(zip(model(torch.tensor(X[1:10,:])).argmax(1, keepdim = True),torch.tensor(Y[1:10])))) #illustrate #load PS_classifier #torch.save(model.state_dict(), "PATH name") - SAVE # model = Net() #model.load_state_dict(torch.load("PS_classifier.pt")) #model.eval()
[ "lunaplus@mail.ru" ]
lunaplus@mail.ru
c6b64a5371c2b0fa60db0caa630c15cbb675b7bb
e9988eb38fd515baa386d8b06bb7cce30c34c50d
/sitevenv/lib/python2.7/site-packages/django/utils/dateformat.py
c417f6b146a02caca26d99923709ff5386a7db58
[]
no_license
Arrrrrrrpit/Hire_station
8c2f293677925d1053a4db964ee504d78c3738d8
f33f044628082f1e034484b5c702fd66478aa142
refs/heads/master
2020-07-01T01:24:18.190530
2016-09-25T20:33:05
2016-09-25T20:33:05
201,007,123
0
0
null
null
null
null
UTF-8
Python
false
false
12,263
py
""" PHP date() style date formatting See http://www.php.net/date for format strings Usage: >>> import datetime >>> d = datetime.datetime.now() >>> df = DateFormat(d) >>> print(df.format('jS F Y H:i')) 7th October 2003 11:39 >>> """ from __future__ import unicode_literals import calendar import datetime import re import time from django.utils import six from django.utils.dates import ( MONTHS, MONTHS_3, MONTHS_ALT, MONTHS_AP, WEEKDAYS, WEEKDAYS_ABBR, ) from django.utils.encoding import force_text from django.utils.timezone import get_default_timezone, is_aware, is_naive from django.utils.translation import ugettext as _ re_formatchars = re.compile(r'(?<!\\)([aAbBcdDeEfFgGhHiIjlLmMnNoOPrsStTUuwWyYzZ])') re_escaped = re.compile(r'\\(.)') class Formatter(object): def format(self, formatstr): pieces = [] for i, piece in enumerate(re_formatchars.split(force_text(formatstr))): if i % 2: if type(self.data) is datetime.date and hasattr(TimeFormat, piece): raise TypeError( "The format for date objects may not contain " "time-related format specifiers (found '%s')." % piece ) pieces.append(force_text(getattr(self, piece)())) elif piece: pieces.append(re_escaped.sub(r'\1', piece)) return ''.join(pieces) class TimeFormat(Formatter): def __init__(self, obj): self.data = obj self.timezone = None # We only support timezone when formatting datetime objects, # not date objects (timezone information not appropriate), # or time objects (against established django policy). if isinstance(obj, datetime.datetime): if is_naive(obj): self.timezone = get_default_timezone() else: self.timezone = obj.tzinfo def a(self): "'a.m.' or 'p.m.'" if self.data.hour > 11: return _('p.m.') return _('a.m.') def A(self): "'AM' or 'PM'" if self.data.hour > 11: return _('PM') return _('AM') def B(self): "Swatch Internet time" raise NotImplementedError('may be implemented in a future release') def e(self): """ Timezone name. If timezone information is not available, this method returns an empty string. """ if not self.timezone: return "" try: if hasattr(self.data, 'tzinfo') and self.data.tzinfo: # Have to use tzinfo.tzname and not datetime.tzname # because datatime.tzname does not expect Unicode return self.data.tzinfo.tzname(self.data) or "" except NotImplementedError: pass return "" def f(self): """ Time, in 12-hour hours and minutes, with minutes left off if they're zero. Examples: '1', '1:30', '2:05', '2' Proprietary extension. """ if self.data.minute == 0: return self.g() return '%s:%s' % (self.g(), self.i()) def g(self): "Hour, 12-hour format without leading zeros; i.e. '1' to '12'" if self.data.hour == 0: return 12 if self.data.hour > 12: return self.data.hour - 12 return self.data.hour def G(self): "Hour, 24-hour format without leading zeros; i.e. '0' to '23'" return self.data.hour def h(self): "Hour, 12-hour format; i.e. '01' to '12'" return '%02d' % self.g() def H(self): "Hour, 24-hour format; i.e. '00' to '23'" return '%02d' % self.G() def i(self): "Minutes; i.e. '00' to '59'" return '%02d' % self.data.minute def O(self): """ Difference to Greenwich time in hours; e.g. '+0200', '-0430'. If timezone information is not available, this method returns an empty string. """ if not self.timezone: return "" seconds = self.Z() if seconds == "": return "" sign = '-' if seconds < 0 else '+' seconds = abs(seconds) return "%s%02d%02d" % (sign, seconds // 3600, (seconds // 60) % 60) def P(self): """ Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left off if they're zero and the strings 'midnight' and 'noon' if appropriate. Examples: '1 a.m.', '1:30 p.m.', 'midnight', 'noon', '12:30 p.m.' Proprietary extension. """ if self.data.minute == 0 and self.data.hour == 0: return _('midnight') if self.data.minute == 0 and self.data.hour == 12: return _('noon') return '%s %s' % (self.f(), self.a()) def s(self): "Seconds; i.e. '00' to '59'" return '%02d' % self.data.second def T(self): """ Time zone of this machine; e.g. 'EST' or 'MDT'. If timezone information is not available, this method returns an empty string. """ if not self.timezone: return "" name = None try: name = self.timezone.tzname(self.data) except Exception: # pytz raises AmbiguousTimeError during the autumn DST change. # This happens mainly when __init__ receives a naive datetime # and sets self.timezone = get_default_timezone(). pass if name is None: name = self.format('O') return six.text_type(name) def u(self): "Microseconds; i.e. '000000' to '999999'" return '%06d' % self.data.microsecond def Z(self): """ Time zone offset in seconds (i.e. '-43200' to '43200'). The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. If timezone information is not available, this method returns an empty string. """ if not self.timezone: return "" try: offset = self.timezone.utcoffset(self.data) except Exception: # pytz raises AmbiguousTimeError during the autumn DST change. # This happens mainly when __init__ receives a naive datetime # and sets self.timezone = get_default_timezone(). return "" # `offset` is a datetime.timedelta. For negative values (to the west of # UTC) only days can be negative (days=-1) and seconds are always # positive. e.g. UTC-1 -> timedelta(days=-1, seconds=82800, microseconds=0) # Positive offsets have days=0 return offset.days * 86400 + offset.seconds class DateFormat(TimeFormat): year_days = [None, 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334] def b(self): "Month, textual, 3 letters, lowercase; e.g. 'jan'" return MONTHS_3[self.data.month] def c(self): """ ISO 8601 Format Example : '2008-01-02T10:30:00.000123' """ return self.data.isoformat() def d(self): "Day of the month, 2 digits with leading zeros; i.e. '01' to '31'" return '%02d' % self.data.day def D(self): "Day of the week, textual, 3 letters; e.g. 'Fri'" return WEEKDAYS_ABBR[self.data.weekday()] def E(self): "Alternative month names as required by some locales. Proprietary extension." return MONTHS_ALT[self.data.month] def F(self): "Month, textual, long; e.g. 'January'" return MONTHS[self.data.month] def I(self): "'1' if Daylight Savings Time, '0' otherwise." try: if self.timezone and self.timezone.dst(self.data): return '1' else: return '0' except Exception: # pytz raises AmbiguousTimeError during the autumn DST change. # This happens mainly when __init__ receives a naive datetime # and sets self.timezone = get_default_timezone(). return '' def j(self): "Day of the month without leading zeros; i.e. '1' to '31'" return self.data.day def l(self): "Day of the week, textual, long; e.g. 'Friday'" return WEEKDAYS[self.data.weekday()] def L(self): "Boolean for whether it is a leap year; i.e. True or False" return calendar.isleap(self.data.year) def m(self): "Month; i.e. '01' to '12'" return '%02d' % self.data.month def M(self): "Month, textual, 3 letters; e.g. 'Jan'" return MONTHS_3[self.data.month].title() def n(self): "Month without leading zeros; i.e. '1' to '12'" return self.data.month def N(self): "Month abbreviation in Associated Press style. Proprietary extension." return MONTHS_AP[self.data.month] def o(self): "ISO 8601 year number matching the ISO week number (W)" return self.data.isocalendar()[0] def r(self): "RFC 5322 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'" return self.format('D, j M Y H:i:s O') def S(self): "English ordinal suffix for the day of the month, 2 characters; i.e. 'st', 'nd', 'rd' or 'th'" if self.data.day in (11, 12, 13): # Special case return 'th' last = self.data.day % 10 if last == 1: return 'st' if last == 2: return 'nd' if last == 3: return 'rd' return 'th' def t(self): "Number of days in the given month; i.e. '28' to '31'" return '%02d' % calendar.monthrange(self.data.year, self.data.month)[1] def U(self): "Seconds since the Unix epoch (January 1 1970 00:00:00 GMT)" if isinstance(self.data, datetime.datetime) and is_aware(self.data): return int(calendar.timegm(self.data.utctimetuple())) else: return int(time.mktime(self.data.timetuple())) def w(self): "Day of the week, numeric, i.e. '0' (Sunday) to '6' (Saturday)" return (self.data.weekday() + 1) % 7 def W(self): "ISO-8601 week number of year, weeks starting on Monday" # Algorithm from http://www.personal.ecu.edu/mccartyr/ISOwdALG.txt week_number = None jan1_weekday = self.data.replace(month=1, day=1).weekday() + 1 weekday = self.data.weekday() + 1 day_of_year = self.z() if day_of_year <= (8 - jan1_weekday) and jan1_weekday > 4: if jan1_weekday == 5 or (jan1_weekday == 6 and calendar.isleap(self.data.year - 1)): week_number = 53 else: week_number = 52 else: if calendar.isleap(self.data.year): i = 366 else: i = 365 if (i - day_of_year) < (4 - weekday): week_number = 1 else: j = day_of_year + (7 - weekday) + (jan1_weekday - 1) week_number = j // 7 if jan1_weekday > 4: week_number -= 1 return week_number def y(self): "Year, 2 digits; e.g. '99'" return six.text_type(self.data.year)[2:] def Y(self): "Year, 4 digits; e.g. '1999'" return self.data.year def z(self): "Day of the year; i.e. '0' to '365'" doy = self.year_days[self.data.month] + self.data.day if self.L() and self.data.month > 2: doy += 1 return doy def format(value, format_string): "Convenience function" df = DateFormat(value) return df.format(format_string) def time_format(value, format_string): "Convenience function" tf = TimeFormat(value) return tf.format(format_string)
[ "kunal1510010@gmail.com" ]
kunal1510010@gmail.com
76bc6edf4843b543cc1807d9ab867ff6663da885
bb4bc61520ba68aba6dbd66c9210ef2c9cf30402
/u_net.py
64561a5891b6e8e35fadea6ba4eb95d4489ff92a
[]
no_license
rollervan/PD2D
815763a9e6327438bcaba9aaf64aa9137507072a
7f8610b53df44748064449353daaebf2c106e266
refs/heads/master
2021-07-07T03:57:20.922494
2020-10-17T21:43:51
2020-10-17T21:43:51
200,839,408
0
0
null
null
null
null
UTF-8
Python
false
false
12,839
py
import tensorflow as tf def unet(self,inputs,kernel_size,padding, training=False): with tf.name_scope('UNet'): if self.batch_norm: preactivation = tf.layers.batch_normalization(inputs,training=training) else: preactivation = inputs # Down res1 = tf.layers.conv2d(preactivation, filters=32, kernel_size=kernel_size, strides=1, padding=padding,activation=tf.nn.relu) if self.batch_norm: res1 = tf.layers.batch_normalization(res1,training=training) res1 = tf.layers.max_pooling2d(res1, pool_size=2, strides=2, padding=padding) res2 = tf.layers.conv2d(res1, filters=64, kernel_size=kernel_size, strides=1, padding=padding,activation=tf.nn.relu) if self.batch_norm: res2 = tf.layers.batch_normalization(res2,training=training) res2 = tf.layers.max_pooling2d(res2, pool_size=2, strides=2, padding=padding) res3 = tf.layers.conv2d(res2, filters=128, kernel_size=kernel_size, strides=1, padding=padding,activation=tf.nn.relu) if self.batch_norm: res3 = tf.layers.batch_normalization(res3,training=training) res3 = tf.layers.max_pooling2d(res3, pool_size=2, strides=2, padding=padding) # Up res2_up = tf.layers.conv2d(res3, filters=64, kernel_size=kernel_size, strides=1, padding=padding,activation=tf.nn.relu) if self.batch_norm: res2_up = tf.layers.batch_normalization(res2_up,training=training) res2_up = tf.image.resize(res2_up, [int(self.IM_ROWS/4), int(self.IM_COLS/4)]) res2_up = tf.concat([res2,res2_up],axis=-1) res1_up = tf.layers.conv2d(res2_up, filters=32, kernel_size=kernel_size, strides=1, padding=padding,activation=tf.nn.relu) if self.batch_norm: res1_up = tf.layers.batch_normalization(res1_up,training=training) res1_up = tf.image.resize(res1_up, [int(self.IM_ROWS / 2), int(self.IM_COLS / 2)]) res1_up = tf.concat([res1,res1_up],axis=-1) recon = tf.layers.conv2d(res1_up,filters=16, kernel_size=3,strides=1,padding=padding,activation=tf.nn.relu) recon = tf.image.resize(recon, [self.IM_ROWS, self.IM_COLS]) recon = tf.layers.conv2d(recon,filters=1, kernel_size=3,strides=1,padding=padding,activation=None) return recon, res3 def real_unet(self, inputs, kernel_size, padding, training=False, reuse=False): with tf.variable_scope('UNet', reuse=reuse): scale = 1 # preactivation = tf.image.resize(inputs, [120,120]) preactivation = inputs pre_coded_inpunt = preactivation # Down res1 = tf.layers.conv2d(preactivation, filters=int(64*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res1 = tf.layers.batch_normalization(res1, training=training) res1 = tf.layers.conv2d(res1, filters=int(64*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res1 = tf.layers.batch_normalization(res1, training=training) res1 = tf.layers.max_pooling2d(res1, pool_size=2, strides=2, padding=padding) ##################### res2 = tf.layers.conv2d(res1, filters=int(128*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res2 = tf.layers.batch_normalization(res2, training=training) res2 = tf.layers.conv2d(res2, filters=int(128*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res2 = tf.layers.batch_normalization(res2, training=training) res2 = tf.layers.max_pooling2d(res2, pool_size=2, strides=2, padding=padding) ##################### res3 = tf.layers.conv2d(res2, filters=int(256*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res3 = tf.layers.batch_normalization(res3, training=training) res3 = tf.layers.conv2d(res3, filters=int(128*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res3 = tf.layers.batch_normalization(res3, training=training) res3 = tf.layers.max_pooling2d(res3, pool_size=2, strides=2, padding=padding) ##################### res4 = tf.layers.conv2d(res3, filters=int(512*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res4 = tf.layers.batch_normalization(res4, training=training) res4 = tf.layers.conv2d(res4, filters=int(512*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res4 = tf.layers.batch_normalization(res4, training=training) res4 = tf.layers.max_pooling2d(res4, pool_size=2, strides=2, padding=padding) ##################### res5 = tf.layers.conv2d(res4, filters=int(512*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res5 = tf.layers.batch_normalization(res5, training=training) res5 = tf.layers.conv2d(res5, filters=int(1024*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res5 = tf.layers.batch_normalization(res5, training=training) res5 = tf.layers.conv2d(res5, filters=int(1024*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res5 = tf.layers.batch_normalization(res5, training=training) # Up res4_up = tf.layers.conv2d(res5, filters=int(512*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res4_up = tf.layers.batch_normalization(res4_up, training=training) res4_up = tf.concat([res4, res4_up], axis=-1) res4_up = tf.layers.conv2d(res4_up, filters=int(512*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res4_up = tf.layers.batch_normalization(res4_up, training=training) res4_up = tf.layers.conv2d(res4_up, filters=int(512*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res4_up = tf.layers.batch_normalization(res4_up, training=training) ##################### res3_up = tf.layers.conv2d_transpose(res4_up, filters=int(256*scale), kernel_size=kernel_size, strides=2, padding=padding, activation=tf.nn.relu) if self.batch_norm: res3_up = tf.layers.batch_normalization(res3_up, training=training) # res3_up = res3_up[:,0:15,0:15,:] res3_up = tf.concat([res3, res3_up], axis=-1) res3_up = tf.layers.conv2d(res3_up, filters=int(256*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res3_up = tf.layers.batch_normalization(res3_up, training=training) res3_up = tf.layers.conv2d(res3_up, filters=int(256*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res3_up = tf.layers.batch_normalization(res3_up, training=training) ##################### res2_up = tf.layers.conv2d_transpose(res3_up, filters=int(128*scale), kernel_size=kernel_size, strides=2, padding=padding, activation=tf.nn.relu) if self.batch_norm: res2_up = tf.layers.batch_normalization(res2_up, training=training) res2_up = tf.concat([res2, res2_up], axis=-1) res2_up = tf.layers.conv2d(res2_up, filters=int(128*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res2_up = tf.layers.batch_normalization(res2_up, training=training) res2_up = tf.layers.conv2d(res2_up, filters=int(128*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res2_up = tf.layers.batch_normalization(res2_up, training=training) ##################### res1_up = tf.layers.conv2d_transpose(res2_up, filters=int(64*scale), kernel_size=kernel_size, strides=2, padding=padding, activation=tf.nn.relu) if self.batch_norm: res1_up = tf.layers.batch_normalization(res1_up, training=training) res1_up = tf.concat([res1, res1_up], axis=-1) res1_up = tf.layers.conv2d(res1_up, filters=int(64*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res1_up = tf.layers.batch_normalization(res1_up, training=training) res1_up = tf.layers.conv2d(res1_up, filters=int(64*scale), kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res1_up = tf.layers.batch_normalization(res1_up, training=training) ##################### recon = tf.layers.conv2d(res1_up, filters=2, kernel_size=1, strides=1, padding=padding, activation=None) recon = tf.image.resize(recon, [self.IM_ROWS, self.IM_COLS]) return recon, pre_coded_inpunt def net(self,inputs,kernel_size,padding, training=False): with tf.name_scope('UNet'): if self.batch_norm: preactivation = tf.layers.batch_normalization(inputs, training=training) else: preactivation = inputs # Down res1 = tf.layers.conv2d(preactivation, filters=32, kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu, dilation_rate=2) if self.batch_norm: res1 = tf.layers.batch_normalization(res1, training=training) res1 = tf.layers.max_pooling2d(res1, pool_size=2, strides=2, padding=padding) res2 = tf.layers.conv2d(res1, filters=64, kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu, dilation_rate=2) if self.batch_norm: res2 = tf.layers.batch_normalization(res2, training=training) res2 = tf.layers.max_pooling2d(res2, pool_size=2, strides=2, padding=padding) res3 = tf.layers.conv2d(res2, filters=128, kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu, dilation_rate=2) if self.batch_norm: res3 = tf.layers.batch_normalization(res3, training=training) res3 = tf.layers.max_pooling2d(res3, pool_size=2, strides=2, padding=padding) # Up res2_up = tf.layers.conv2d(res3, filters=64, kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu, dilation_rate=2) if self.batch_norm: res2_up = tf.layers.batch_normalization(res2_up, training=training) res2_up = tf.image.resize(res2_up, [int(self.IM_ROWS / 4), int(self.IM_COLS / 4)]) res2_up = tf.concat([res2, res2_up], axis=-1) res1_up = tf.layers.conv2d(res2_up, filters=32, kernel_size=kernel_size, strides=1, padding=padding, activation=tf.nn.relu) if self.batch_norm: res1_up = tf.layers.batch_normalization(res1_up, training=training) res1_up = tf.image.resize(res1_up, [int(self.IM_ROWS / 2), int(self.IM_COLS / 2)]) res1_up = tf.concat([res1, res1_up], axis=-1) recon = tf.layers.conv2d(res1_up, filters=16, kernel_size=3, strides=1, padding=padding, activation=tf.nn.relu) recon = tf.image.resize(recon, [self.IM_ROWS, self.IM_COLS]) recon = tf.layers.conv2d(recon, filters=2, kernel_size=3, strides=1, padding=padding, activation=None) return recon, res1
[ "17121671+rollervan@users.noreply.github.com" ]
17121671+rollervan@users.noreply.github.com
f6d960bea038dcac875c5f80e5f262a69400f102
0e5291307525916f95faecaaa175fd7839eddbf8
/SySeVR_docker/docker_build/home/SySeVR/softdir/py2neo-py2neo-2.0/test/core/1/neo4j_cast_test.py
cc070d56dc67b8a7f41fd44bad874245d3d0c1f2
[ "Apache-2.0" ]
permissive
SySeVR/SySeVR
9d7df721ac4964c4746e18938b4383e4a8142cc8
5e195d0bc63a76a298b65c9c3460fed0ee3082c7
refs/heads/master
2022-06-16T22:17:21.117906
2021-10-29T08:59:23
2021-10-29T08:59:23
141,377,750
255
125
null
2022-06-05T03:02:06
2018-07-18T03:45:49
HTML
UTF-8
Python
false
false
1,937
py
#/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011-2014, Nigel Small # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from py2neo import Graph, Node, Relationship def test_can_cast_node(graph): alice, = graph.create({"name": "Alice"}) casted = Graph.cast(alice) assert isinstance(casted, Node) assert casted.bound assert casted["name"] == "Alice" def test_can_cast_dict(): casted = Graph.cast({"name": "Alice"}) assert isinstance(casted, Node) assert not casted.bound assert casted["name"] == "Alice" def test_can_cast_rel(graph): a, b, ab = graph.create({}, {}, (0, "KNOWS", 1)) casted = Graph.cast(ab) assert isinstance(casted, Relationship) assert casted.bound assert casted.start_node == a assert casted.type == "KNOWS" assert casted.end_node == b def test_can_cast_3_tuple(): casted = Graph.cast(("Alice", "KNOWS", "Bob")) assert isinstance(casted, Relationship) assert not casted.bound assert casted.start_node == Node("Alice") assert casted.type == "KNOWS" assert casted.end_node == Node("Bob") def test_can_cast_4_tuple(): casted = Graph.cast(("Alice", "KNOWS", "Bob", {"since": 1999})) assert isinstance(casted, Relationship) assert not casted.bound assert casted.start_node == Node("Alice") assert casted.type == "KNOWS" assert casted.end_node == Node("Bob") assert casted["since"] == 1999
[ "CGDdataset@126.com" ]
CGDdataset@126.com
fac215a3e006406cdae14e047b25247876042968
2babf591c9d87adaeb32578c4b8624ba49e62b35
/mmdet/models/dense_heads/light_rpn_headv2.py
00e6c66d342a5368dcb3973cf31ca6e5479360a3
[ "Apache-2.0" ]
permissive
TonojiKiobya/thundernet_mmdetection
c55cc2536f6999290ab119bdfc158545101a7d0a
9430592316134c390d9094560cfdb848d3e195ac
refs/heads/master
2023-03-19T01:38:12.919553
2021-02-20T09:52:47
2021-02-20T09:52:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,296
py
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import normal_init from mmcv.ops import batched_nms from ..builder import HEADS from .anchor_head import AnchorHead from .rpn_test_mixin import RPNTestMixin from mmdet.core import merge_aug_proposals, multi_apply class h_sigmoid(nn.Module): def __init__(self, inplace=True): super(h_sigmoid, self).__init__() self.relu = nn.ReLU6(inplace=inplace) def forward(self, x): return self.relu(x + 3) / 6 @HEADS.register_module() class LightRPNHead(RPNTestMixin, AnchorHead): """RPN head. Args: in_channels (int): Number of channels in the input feature map. """ # noqa: W605 def __init__(self, in_channels, **kwargs): super(LightRPNHead, self).__init__(1, in_channels, **kwargs) def _init_layers(self): """Initialize layers of the head.""" self.rpn_conv_dw = nn.Conv2d( self.in_channels, self.in_channels, 5, padding=2, groups=self.in_channels) self.rpn_conv_linear = nn.Conv2d( self.in_channels, self.feat_channels, 1, padding=0) self.rpn_cls = nn.Conv2d(self.feat_channels, self.num_anchors * self.cls_out_channels, 1) self.rpn_reg = nn.Conv2d(self.feat_channels, self.num_anchors * 4, 1) self.sam = nn.Conv2d( self.feat_channels, self.in_channels, 1, padding=0, bias=False) self.bn = nn.BatchNorm2d(self.in_channels) self.act = h_sigmoid() def init_weights(self): """Initialize weights of the head.""" normal_init(self.rpn_conv_dw, std=0.01) normal_init(self.rpn_conv_linear, std=0.01) normal_init(self.rpn_cls, std=0.01) normal_init(self.rpn_reg, std=0.01) normal_init(self.sam, std=0.01) def forward_single(self, x): """Forward feature map of a single scale level.""" rpn_out = self.rpn_conv_dw(x) rpn_out = F.relu(rpn_out, inplace=True) rpn_out = self.rpn_conv_linear(rpn_out) rpn_out = F.relu(rpn_out, inplace=True) sam = self.act(self.bn(self.sam(rpn_out))) x = x * sam rpn_cls_score = self.rpn_cls(rpn_out) rpn_bbox_pred = self.rpn_reg(rpn_out) return rpn_cls_score, rpn_bbox_pred, x def forward(self, feats): """Forward features from the upstream network. Args: feats (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor. Returns: tuple: A tuple of classification scores and bbox prediction. - cls_scores (list[Tensor]): Classification scores for all \ scale levels, each is a 4D-tensor, the channels number \ is num_anchors * num_classes. - bbox_preds (list[Tensor]): Box energies / deltas for all \ scale levels, each is a 4D-tensor, the channels number \ is num_anchors * 4. """ rpn_cls_score, rpn_bbox_pred, x = self.forward_single(feats[0]) cls_score = [rpn_cls_score, rpn_cls_score[:, 1::2, 1::2], rpn_cls_score[:, 2::4, 2::4], rpn_cls_score[:, 4::8, 4::8], rpn_cls_score[:, 8::16, 8::16]] tuple(map(list, zip(*map_results))) # return multi_apply(self.forward_single, feats) def simple_test_rpn(self, x, img_metas): """Test without augmentation. Args: x (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor. img_metas (list[dict]): Meta info of each image. Returns: list[Tensor]: Proposals of each image. """ rpn_outs = self(x) x = rpn_outs[-1] outs = rpn_outs[:2] proposal_list = self.get_bboxes(*outs, img_metas) return proposal_list, x def aug_test_rpn(self, feats, img_metas): samples_per_gpu = len(img_metas[0]) aug_proposals = [[] for _ in range(samples_per_gpu)] x_out = [] for x, img_meta in zip(feats, img_metas): proposal_list, x = self.simple_test_rpn(x, img_meta) x_out.append(x) for i, proposals in enumerate(proposal_list): aug_proposals[i].append(proposals) # reorganize the order of 'img_metas' to match the dimensions # of 'aug_proposals' aug_img_metas = [] for i in range(samples_per_gpu): aug_img_meta = [] for j in range(len(img_metas)): aug_img_meta.append(img_metas[j][i]) aug_img_metas.append(aug_img_meta) # after merging, proposals will be rescaled to the original image size merged_proposals = [ merge_aug_proposals(proposals, aug_img_meta, self.test_cfg) for proposals, aug_img_meta in zip(aug_proposals, aug_img_metas) ] return merged_proposals, tuple(x_out) def forward_train(self, x, img_metas, gt_bboxes, gt_labels=None, gt_bboxes_ignore=None, proposal_cfg=None, **kwargs): """ Args: x (list[Tensor]): Features from FPN. img_metas (list[dict]): Meta information of each image, e.g., image size, scaling factor, etc. gt_bboxes (Tensor): Ground truth bboxes of the image, shape (num_gts, 4). gt_labels (Tensor): Ground truth labels of each box, shape (num_gts,). gt_bboxes_ignore (Tensor): Ground truth bboxes to be ignored, shape (num_ignored_gts, 4). proposal_cfg (mmcv.Config): Test / postprocessing configuration, if None, test_cfg would be used Returns: tuple: losses: (dict[str, Tensor]): A dictionary of loss components. proposal_list (list[Tensor]): Proposals of each image. """ rpn_outs = self(x) x = rpn_outs[-1] outs = rpn_outs[:2] if gt_labels is None: loss_inputs = outs + (gt_bboxes, img_metas) else: loss_inputs = outs + (gt_bboxes, gt_labels, img_metas) losses = self.loss(*loss_inputs, gt_bboxes_ignore=gt_bboxes_ignore) if proposal_cfg is None: return losses else: proposal_list = self.get_bboxes(*outs, img_metas, cfg=proposal_cfg) return losses, proposal_list, x def loss(self, cls_scores, bbox_preds, gt_bboxes, img_metas, gt_bboxes_ignore=None): """Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_anchors * num_classes, H, W) bbox_preds (list[Tensor]): Box energies / deltas for each scale level with shape (N, num_anchors * 4, H, W) gt_bboxes (list[Tensor]): Ground truth bboxes for each image with shape (num_gts, 4) in [tl_x, tl_y, br_x, br_y] format. img_metas (list[dict]): Meta information of each image, e.g., image size, scaling factor, etc. gt_bboxes_ignore (None | list[Tensor]): specify which bounding boxes can be ignored when computing the loss. Returns: dict[str, Tensor]: A dictionary of loss components. """ losses = super(LightRPNHead, self).loss( cls_scores, bbox_preds, gt_bboxes, None, img_metas, gt_bboxes_ignore=gt_bboxes_ignore) return dict( loss_rpn_cls=losses['loss_cls'], loss_rpn_bbox=losses['loss_bbox']) def _get_bboxes_single(self, cls_scores, bbox_preds, mlvl_anchors, img_shape, scale_factor, cfg, rescale=False): """Transform outputs for a single batch item into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (num_anchors * num_classes, H, W). bbox_preds (list[Tensor]): Box energies / deltas for each scale level with shape (num_anchors * 4, H, W). mlvl_anchors (list[Tensor]): Box reference for each scale level with shape (num_total_anchors, 4). img_shape (tuple[int]): Shape of the input image, (height, width, 3). scale_factor (ndarray): Scale factor of the image arange as (w_scale, h_scale, w_scale, h_scale). cfg (mmcv.Config): Test / postprocessing configuration, if None, test_cfg would be used. rescale (bool): If True, return boxes in original image space. Returns: Tensor: Labeled boxes in shape (n, 5), where the first 4 columns are bounding box positions (tl_x, tl_y, br_x, br_y) and the 5-th column is a score between 0 and 1. """ cfg = self.test_cfg if cfg is None else cfg # bboxes from different level should be independent during NMS, # level_ids are used as labels for batched NMS to separate them level_ids = [] mlvl_scores = [] mlvl_bbox_preds = [] mlvl_valid_anchors = [] for idx in range(len(cls_scores)): rpn_cls_score = cls_scores[idx] rpn_bbox_pred = bbox_preds[idx] assert rpn_cls_score.size()[-2:] == rpn_bbox_pred.size()[-2:] rpn_cls_score = rpn_cls_score.permute(1, 2, 0) if self.use_sigmoid_cls: rpn_cls_score = rpn_cls_score.reshape(-1) scores = rpn_cls_score.sigmoid() else: rpn_cls_score = rpn_cls_score.reshape(-1, 2) # We set FG labels to [0, num_class-1] and BG label to # num_class in RPN head since mmdet v2.5, which is unified to # be consistent with other head since mmdet v2.0. In mmdet v2.0 # to v2.4 we keep BG label as 0 and FG label as 1 in rpn head. scores = rpn_cls_score.softmax(dim=1)[:, 0] rpn_bbox_pred = rpn_bbox_pred.permute(1, 2, 0).reshape(-1, 4) anchors = mlvl_anchors[idx] if cfg.nms_pre > 0 and scores.shape[0] > cfg.nms_pre: # sort is faster than topk # _, topk_inds = scores.topk(cfg.nms_pre) ranked_scores, rank_inds = scores.sort(descending=True) topk_inds = rank_inds[:cfg.nms_pre] scores = ranked_scores[:cfg.nms_pre] rpn_bbox_pred = rpn_bbox_pred[topk_inds, :] anchors = anchors[topk_inds, :] mlvl_scores.append(scores) mlvl_bbox_preds.append(rpn_bbox_pred) mlvl_valid_anchors.append(anchors) level_ids.append( scores.new_full((scores.size(0),), idx, dtype=torch.long)) scores = torch.cat(mlvl_scores) anchors = torch.cat(mlvl_valid_anchors) rpn_bbox_pred = torch.cat(mlvl_bbox_preds) proposals = self.bbox_coder.decode( anchors, rpn_bbox_pred, max_shape=img_shape) ids = torch.cat(level_ids) if cfg.min_bbox_size > 0: w = proposals[:, 2] - proposals[:, 0] h = proposals[:, 3] - proposals[:, 1] valid_inds = torch.nonzero( (w >= cfg.min_bbox_size) & (h >= cfg.min_bbox_size), as_tuple=False).squeeze() if valid_inds.sum().item() != len(proposals): proposals = proposals[valid_inds, :] scores = scores[valid_inds] ids = ids[valid_inds] # TODO: remove the hard coded nms type nms_cfg = dict(type='nms', iou_threshold=cfg.nms_thr) dets, keep = batched_nms(proposals, scores, ids, nms_cfg) return dets[:cfg.nms_post]
[ "yanghuiyu@yanghuiyudeMacBook-Pro.local" ]
yanghuiyu@yanghuiyudeMacBook-Pro.local
bf60457b7b6ba31dd0c6852c148dc769a2f29581
575c17073b44cac78ebbad6b1f5c5e629fee5dc3
/DP_RFID/main_2.py
d08a18f94a39b57bb11d96b48e08da0f833c046a
[]
no_license
Parthgaba/dp-rfid
a707efe8b5bc3bae460e29bcc3650153295d65ec
92b58e521096ff79c73943831757538a18d1eff4
refs/heads/main
2023-02-16T12:09:32.700904
2020-12-30T10:47:21
2020-12-30T10:47:21
325,523,305
0
0
null
null
null
null
UTF-8
Python
false
false
15,185
py
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtGui import QIcon, QPixmap import mysql.connector as con import shutil import database import requests import serial as ser import threading import serial.tools.list_ports comlist = serial.tools.list_ports.comports() connected = [] for element in comlist: connected.append(element.device) class Ui_MainWindow(object): def openDash(self): self.window = QtWidgets.QMainWindow() self.ui = database.Ui_MainWindow() self.ui.setupUi(self.window) self.window.show() def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(965, 683) font = QtGui.QFont() font.setFamily("Meiryo") font.setPointSize(12) MainWindow.setFont(font) MainWindow.setStyleSheet("background:rgb(41,54,63)\n") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.left = QtWidgets.QFrame(self.centralwidget) self.left.setGeometry(QtCore.QRect(-1, -1, 291, 711)) self.left.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor)) self.left.setStyleSheet("background :rgb(98, 221, 154);\n") self.left.setFrameShape(QtWidgets.QFrame.StyledPanel) self.left.setFrameShadow(QtWidgets.QFrame.Raised) self.left.setObjectName("left") self.textEdit = QtWidgets.QTextEdit(self.left) self.textEdit.setGeometry(QtCore.QRect(0, 0, 291, 741)) font = QtGui.QFont() font.setPointSize(10) self.textEdit.setFont(font) self.textEdit.setStyleSheet("color:white") self.textEdit.setReadOnly(True) self.textEdit.setFrameShape(QtWidgets.QFrame.NoFrame) self.textEdit.setFrameShadow(QtWidgets.QFrame.Raised) self.textEdit.setObjectName("textEdit") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(320, 10, 541, 41)) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(14) font.setBold(True) font.setItalic(False) font.setUnderline(False) font.setWeight(75) self.label.setFont(font) self.label.setObjectName("label") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(340, 80, 51, 21)) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(12) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.label_3 = QtWidgets.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(340, 150, 48, 21)) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(12) self.label_3.setFont(font) self.label_3.setObjectName("label_3") self.label_4 = QtWidgets.QLabel(self.centralwidget) self.label_4.setGeometry(QtCore.QRect(350, 420, 51, 21)) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(12) self.label_4.setFont(font) self.label_4.setObjectName("label_4") self.label_5 = QtWidgets.QLabel(self.centralwidget) self.label_5.setGeometry(QtCore.QRect(340, 210, 81, 21)) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(12) self.label_5.setFont(font) self.label_5.setObjectName("label_5") self.label_6 = QtWidgets.QLabel(self.centralwidget) self.label_6.setGeometry(QtCore.QRect(460, 260, 272, 40)) self.label_6.setText("") self.label_6.setObjectName("label_6") self.label_7 = QtWidgets.QLabel(self.centralwidget) self.label_7.setGeometry(QtCore.QRect(460, 320, 272, 40)) self.label_7.setText("") self.label_7.setObjectName("label_7") self.label_8 = QtWidgets.QLabel(self.centralwidget) self.label_8.setGeometry(QtCore.QRect(460, 80, 272, 40)) self.label_8.setText("") self.label_8.setObjectName("label_8") self.label_9 = QtWidgets.QLabel(self.centralwidget) self.label_9.setGeometry(QtCore.QRect(460, 140, 272, 40)) self.label_9.setText("") self.label_9.setObjectName("label_9") self.lineEdit = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit.setGeometry(QtCore.QRect(465, 85, 261, 31)) self.lineEdit.setStyleSheet("border:none;color:white;") self.lineEdit.setObjectName("lineEdit") self.lineEdit_2 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_2.setGeometry(QtCore.QRect(465, 145, 261, 31)) self.lineEdit_2.setStyleSheet("border:none;color:white;") self.lineEdit_2.setObjectName("lineEdit_2") self.lineEdit_3 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_3.setGeometry(QtCore.QRect(465, 265, 261, 31)) self.lineEdit_3.setStyleSheet("border:none;color:white;") self.lineEdit_3.setObjectName("lineEdit_3") self.lineEdit_4 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_4.setGeometry(QtCore.QRect(465, 325, 261, 31)) self.lineEdit_4.setStyleSheet("border:none;color:white;") self.lineEdit_4.setObjectName("lineEdit_4") self.label_10 = QtWidgets.QLabel(self.centralwidget) self.label_10.setGeometry(QtCore.QRect(670, 210, 47, 13)) self.label_10.setText("") self.label_10.setObjectName("label_10") self.label_11 = QtWidgets.QLabel(self.centralwidget) self.label_11.setGeometry(QtCore.QRect(340, 270, 81, 21)) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(12) self.label_11.setFont(font) self.label_11.setObjectName("label_11") self.label_12 = QtWidgets.QLabel(self.centralwidget) self.label_12.setGeometry(QtCore.QRect(340, 330, 81, 21)) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(12) self.label_12.setFont(font) self.label_12.setObjectName("label_12") self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(510, 410, 75, 23)) self.pushButton.setObjectName("pushButton") self.label_13 = QtWidgets.QLabel(self.centralwidget) self.label_13.setGeometry(QtCore.QRect(590, 420, 47, 13)) self.label_13.setObjectName("label_13") self.label_13.setStyleSheet("color:white;") self.label_13.clear() self.label_13.setText("no image selected") self.lineEdit_5 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_5.setGeometry(QtCore.QRect(350, 510, 151, 31)) self.lineEdit_5.setStyleSheet("border:none;color:white;") self.lineEdit_5.setObjectName("lineEdit_5") self.label_15 = QtWidgets.QLabel(self.centralwidget) self.label_15.setGeometry(QtCore.QRect(460, 200, 272, 40)) self.label_15.setText("") self.label_15.setObjectName("label_15") self.lineEdit_6 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_6.setGeometry(QtCore.QRect(470, 210, 241, 21)) self.lineEdit_6.setStyleSheet("border:none;") self.lineEdit_6.setObjectName("lineEdit_6") self.lineEdit_6.setStyleSheet("border:none;color:white;") self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_2.setGeometry(QtCore.QRect(860, 600, 75, 23)) self.pushButton_2.setObjectName("pushButton_2") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 965, 21)) self.menubar.setObjectName("menubar") self.label_14 = QtWidgets.QLabel(self.centralwidget) self.label_14.setGeometry(QtCore.QRect(350, 510, 151, 31)) self.label_14.setText("") self.label_14.setObjectName("label_14") self.pushButton_3 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_3.setGeometry(QtCore.QRect(350, 510, 151, 31)) self.pushButton_3.setStyleSheet("background-color: rgba(255, 0, 0, 0);") self.pushButton_3.setText("") self.pushButton_3.setObjectName("pushButton_3") MainWindow.setMenuBar(self.menubar) textentry = QPixmap("textedit_entry.png") self.label_6.setPixmap(textentry) self.label_7.setPixmap(textentry) self.label_8.setPixmap(textentry) self.label_9.setPixmap(textentry) self.label_9.setPixmap(textentry) #self.label_15.setPixmap(textentry) dashbutton = QPixmap("dash.png") self.label_14.setPixmap(dashbutton) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) self.textEdit.append("started app...") self.pushButton_3.clicked.connect(self.conn) self.pushButton.setStyleSheet("color:white;") self.pushButton_2.setStyleSheet("color:white;") self.pushButton.clicked.connect(self.openFile) self.pushButton_2.clicked.connect(self.openDash) t = threading.Thread(target=self.serial_read) t.start() def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.textEdit.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:8.25pt;\"><br /></p></body></html>")) self.label.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#ffffff;\">Delhi Police RFID</span></p><p><br/></p></body></html>")) self.label_2.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#ffffff;\">Name</span></p></body></html>")) self.label_3.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#ffffff;\">RFID</span></p></body></html>")) self.label_4.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#ffffff;\">Image</span></p></body></html>")) self.label_5.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#ffffff;\">location</span></p><p><br/></p></body></html>")) self.label_11.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#ffffff;\">latitude</span></p><p><br/></p></body></html>")) self.label_12.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#ffffff;\">longitude</span></p></body></html>")) self.pushButton.setText(_translate("MainWindow", "image")) self.label_13.setText(_translate("MainWindow", "TextLabel")) self.pushButton_2.setText(_translate("MainWindow", "database")) def store(self): global im try: shutil.copyfile(src=im, dst='C:/Users/Parth/Desktop/DP_RFID/images/'+self.lineEdit_2.text()+'.png') print("File copied successfully.") except shutil.SameFileError: print("Source and destination represents the same file.") except IsADirectoryError: print("Destination is a directory.") except PermissionError: print("Permission denied.") except Exception as e: print("Error occurred while copying file.",e) self.textEdit.append('written succesfully') def conn(self): self.textEdit.append("trying to connect with the database...") if self.lineEdit.text()=='' or self.lineEdit_2.text()=='' or self.lineEdit_3.text()=='' or self.lineEdit_4.text()=='': self.textEdit.append('cannot accept your request, first fill all the arguements required!!!') return if not (self.lineEdit_2.text().isnumeric()): self.textEdit.append('You cannot enter any character value in rfid field') return if (self.lineEdit_3.text().isnumeric()): self.textEdit.append('You can enter decimal value in latitude field') return if (self.lineEdit_4.text().isnumeric()): self.textEdit.append('You can enter decimal value in longitude field') return try: url = "http://dptestparth.000webhostapp.com/insert.php" query = "insert into rfid_data values("+self.lineEdit_2.text()+",\""+self.lineEdit.text()+"\","+self.lineEdit_3.text()+","+self.lineEdit_4.text()+");" PARAMS = {'query':query} r = requests.get(url,params=PARAMS) data = r.content self.store() self.lineEdit.clear() self.lineEdit_2.clear() self.lineEdit_3.clear() self.lineEdit_4.clear() self.textEdit.append("new entry written") except Exception as e: print(e) error = e def serial_read(self): new = '' while True: try: serial_ = ser.Serial(port='COM4',baudrate=9600) print(serial_) if serial_.is_open: if self.lineEdit_2.text()=="": while True: data = str(serial_.read(14)) print('data',data) if data=="": continue self.textEdit.append('data retrieving... '+str(data)) new = data.split('\'') self.lineEdit_2.setText(str(new[1][:10])) serial_.close() break else: print('no data') serial_.close() except Exception as e: print(e) def openFile(self): global im options = QtWidgets.QFileDialog.Options() options |= QtWidgets.QFileDialog.DontUseNativeDialog f,_ = QtWidgets.QFileDialog.getOpenFileName() im=f print(im) if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) MainWindow = QtWidgets.QMainWindow() ui = Ui_MainWindow() ui.setupUi(MainWindow) MainWindow.show() sys.exit(app.exec_())
[ "noreply@github.com" ]
Parthgaba.noreply@github.com
a066fc2995434fea778230d30bb6230153f10f38
c41d75f9791970600a8d63c8b175bca47f9f290e
/main.py
4cfe442d9c1f6f92295bae1aa633170bc8f1a0c5
[]
no_license
jesse-chen-yuki/snakeGame
f8f20068eece7acc378845bcd8f0f2c42d831b7e
013b9bf77c3b7e1b5af297710200b7a286641591
refs/heads/master
2023-05-02T16:09:03.795133
2021-05-26T03:01:27
2021-05-26T03:01:27
370,889,472
0
0
null
null
null
null
UTF-8
Python
false
false
6,203
py
# a snake game import random import pygame import tkinter as tk from tkinter import messagebox class cube(object): rows = 20 w = 500 def __init__(self, start, dirnx=1, dirny=0, color=(255, 0, 0)): self.pos = start self.dirnx = 1 self.dirny = 0 self.color = color def move(self, dirnx, dirny): self.dirnx = dirnx self.dirny = dirny self.pos = (self.pos[0] + self.dirnx, self.pos[1] + self.dirny) def draw(self, surface, eyes=False): dis = self.w // self.rows i = self.pos[0] j = self.pos[1] pygame.draw.rect(surface, self.color, (i * dis + 1, j * dis + 1, dis - 2, dis - 2)) # eyes: if eyes: centre = dis // 2 radius = 3 circleMiddle = (i * dis + centre - radius, j * dis + 8) circleMiddle2 = (i * dis + dis - radius * 2, j * dis + 8) pygame.draw.circle(surface, (0, 0, 0), circleMiddle, radius) pygame.draw.circle(surface, (0, 0, 0), circleMiddle2, radius) class snake(object): body = [] turns = {} def __init__(self, color, pos): self.color = color self.head = cube(pos) self.body.append(self.head) # direction of the snake self.dirnx = 0 self.dirny = 1 def move(self): for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() keys = pygame.key.get_pressed() for key in keys: if keys[pygame.K_LEFT]: self.dirnx = -1 self.dirny = 0 # dictionary # key as position of the head at the moment # value as the direction of the turn self.turns[self.head.pos[:]] = [self.dirnx, self.dirny] elif keys[pygame.K_RIGHT]: self.dirnx = 1 self.dirny = 0 self.turns[self.head.pos[:]] = [self.dirnx, self.dirny] elif keys[pygame.K_UP]: self.dirnx = 0 self.dirny = -1 self.turns[self.head.pos[:]] = [self.dirnx, self.dirny] elif keys[pygame.K_DOWN]: self.dirnx = 0 self.dirny = 1 self.turns[self.head.pos[:]] = [self.dirnx, self.dirny] # get index and cube object for i, c in enumerate(self.body): p = c.pos[:] if p in self.turns: turn = self.turns[p] c.move(turn[0], turn[1]) if i == len(self.body) - 1: self.turns.pop(p) else: # edge detection if c.dirnx == -1 and c.pos[0] <= 0: c.pos = (c.rows - 1, c.pos[1]) elif c.dirnx == 1 and c.pos[0] >= c.rows - 1: c.pos = (0, c.pos[1]) elif c.dirny == 1 and c.pos[1] >= c.rows - 1: c.pos = (c.pos[0], 0) elif c.dirny == -1 and c.pos[1] <= 0: c.pos = (c.pos[0], c.rows - 1) else: c.move(c.dirnx, c.dirny) def reset(self, pos): self.head = cube(pos) self.body = [] self.body.append(self.head) self.turns = {} self.dirnx = 0 self.dirny = 1 def addCube(self): tail = self.body[-1] dx, dy = tail.dirnx, tail.dirny if dx == 1 and dy == 0: self.body.append(cube((tail.pos[0] - 1, tail.pos[1]))) elif dx == -1 and dy == 0: self.body.append(cube((tail.pos[0] + 1, tail.pos[1]))) elif dx == 0 and dy == 1: self.body.append(cube((tail.pos[0], tail.pos[1] - 1))) elif dx == 0 and dy == 0: self.body.append(cube((tail.pos[0], tail.pos[1] + 1))) self.body[-1].dirnx = dx self.body[-1].dirny = dy def draw(self, surface): for i, c in enumerate(self.body): if i == 0: c.draw(surface, True) else: c.draw(surface) def drawGrid(surface): global width, rows w = width # w width of screen # rows number of rows of cubes sizeBtwn = w // rows x = 0 y = 0 for l in range(rows): x = x + sizeBtwn y = y + sizeBtwn pygame.draw.line(surface, (255, 255, 255), (x, 0), (x, w)) pygame.draw.line(surface, (255, 255, 255), (0, y), (w, y)) def redrawWindow(surface): global rows, width, s, snack surface.fill((0, 0, 0)) s.draw(surface) snack.draw(surface) drawGrid(surface) pygame.display.update() def randomSnack(rows, item): positions = item.body while True: x = random.randrange(rows) y = random.randrange(rows) # make sure snack is not in the snake body if len(list(filter(lambda z: z.pos == (x, y), positions))) > 0: continue else: break return (x, y) def message_box(subject, content): root = tk.Tk() root.attributes("-topmost", True) root.withdraw() messagebox.showinfo(subject, content) try: root.destroy() except: pass def main(): global width, rows, s, snack width = 500 height = 500 rows = 20 win = pygame.display.set_mode((width, width)) s = snake((250, 0, 0), (10, 10)) snack = cube(randomSnack(rows, s), color=(0, 255, 0)) flag = True clock = pygame.time.Clock() while flag: pygame.time.delay(50) clock.tick(10) s.move() if s.body[0].pos == snack.pos: s.addCube() snack = cube(randomSnack(rows, s), color=(0, 255, 0)) for x in range(len(s.body)): if s.body[x].pos in list(map(lambda z: z.pos, s.body[x + 1:])): print('Score: ', len(s.body)) message_box("You Lost! ", 'Play again....') s.reset((10, 10)) break redrawWindow(win) pass # # rows = 0 # w = 0 # h = 0 # cube.rows = rows # cube.w = w main()
[ "jesse.chen@ualberta.ca" ]
jesse.chen@ualberta.ca
d1531795a5292c3471408eef7862c551b90b8234
069f74659f8d8ab92560109e600ab175c81d449f
/meiduo_mall/celery_tasks/sms/yuntongxun/xmltojson.py
256cbf43938e094647aa9326ded8ceacb6cff856
[ "Apache-2.0" ]
permissive
ld-xy/VUE3.x-Django-cli4.x
e9d7a659750b8645820cf8353d02479d5d7f8540
17c662f5a5844c066fd0a59d64e43b4306f94cfd
refs/heads/main
2023-06-24T02:00:53.018569
2021-07-31T08:59:38
2021-07-31T08:59:38
391,298,709
2
0
null
null
null
null
UTF-8
Python
false
false
5,206
py
import os import xml.etree.ElementTree as ET from xml.dom import minidom import logging logger = logging.getLogger('django') class xmltojson: # global var # show log SHOW_LOG = True # XML file XML_PATH = None a = {} m = [] def get_root(self, path): '''parse the XML file,and get the tree of the XML file finally,return the root element of the tree. if the XML file dose not exist,then print the information''' # if os.path.exists(path): # if SHOW_LOG: # print('start to parse the file : [{}]'.format(path)) tree = ET.fromstring(path) return tree # else: # print('the path [{}] dose not exist!'.format(path)) def get_element_tag(self, element): '''return the element tag if the element is not None.''' if element is not None: return element.tag else: logger.info('the element is None!') def get_element_attrib(self, element): '''return the element attrib if the element is not None.''' if element is not None: return element.attrib else: logger.info('the element is None!') def get_element_text(self, element): '''return the text of the element.''' if element is not None: return element.text else: logger.info('the element is None!') def get_element_children(self, element): '''return the element children if the element is not None.''' if element is not None: return [c for c in element] else: logger.info('the element is None!') def get_elements_tag(self, elements): '''return the list of tags of element's tag''' if elements is not None: tags = [] for e in elements: tags.append(e.tag) return tags else: logger.info('the elements is None!') def get_elements_attrib(self, elements): '''return the list of attribs of element's attrib''' if elements is not None: attribs = [] for a in elements: attribs.append(a.attrib) return attribs else: logger.info('the elements is None!') def get_elements_text(self, elements): '''return the dict of element''' if elements is not None: text = [] for t in elements: text.append(t.text) return dict(zip(self.get_elements_tag(elements), text)) else: logger.info('the elements is None!') def main(self, xml): # root root = self.get_root(xml) # children children = self.get_element_children(root) children_tags = self.get_elements_tag(children) children_attribs = self.get_elements_attrib(children) i = 0 # 获取二级元素的每一个子节点的名称和值 for c in children: p = 0 c_children = self.get_element_children(c) dict_text = self.get_elements_text(c_children) if dict_text: # print (children_tags[i]) if children_tags[i] == 'TemplateSMS': self.a['templateSMS'] = dict_text else: if children_tags[i] == 'SubAccount': k = 0 for x in children: if children_tags[k] == 'totalCount': self.m.append(dict_text) self.a['SubAccount'] = self.m p = 1 k = k + 1 if p == 0: self.a[children_tags[i]] = dict_text else: self.a[children_tags[i]] = dict_text else: self.a[children_tags[i]] = c.text i = i + 1 return self.a def main2(self, xml): # root root = self.get_root(xml) # children children = self.get_element_children(root) children_tags = self.get_elements_tag(children) children_attribs = self.get_elements_attrib(children) i = 0 # 获取二级元素的每一个子节点的名称和值 for c in children: p = 0 c_children = self.get_element_children(c) dict_text = self.get_elements_text(c_children) if dict_text: if children_tags[i] == 'TemplateSMS': k = 0 for x in children: if children_tags[k] == 'totalCount': self.m.append(dict_text) self.a['TemplateSMS'] = self.m p = 1 k = k + 1 if p == 0: self.a[children_tags[i]] = dict_text else: self.a[children_tags[i]] = dict_text else: self.a[children_tags[i]] = c.text i = i + 1 return self.a
[ "1614030192@qq.com" ]
1614030192@qq.com
0dd44d8ea65004079b96c2e8cb51d5a1f17591d9
4fd6295b415c65a81f541b8ce94eb6f7a4f44829
/LeetCode/gas-station.py
e6f9bdf7098eb6edf3e8e3440999f814b1e580e3
[]
no_license
CWood994/ABC
e0e34c8a334c2fa3ac03d42eae965c2dfb8aa42b
81abf2a3331a0097d278df327213d86ce3af90ca
refs/heads/master
2021-05-07T04:16:38.522566
2018-02-26T21:35:11
2018-02-26T21:35:11
111,267,148
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
class Solution(object): def canCompleteCircuit(self, gas, cost): """ :type gas: List[int] :type cost: List[int] :rtype: int """ if sum(gas) < sum(cost) or len(gas) != len(cost): return -1 index = 0 left = 0 for i in range(len(gas)): left += (gas[i] - cost[i]) if left < 0: index = i + 1 left = 0 return index
[ "connwood@cisco.com" ]
connwood@cisco.com
38ca812feb5a61935672a65d6f86f79c928ffb60
3784495ba55d26e22302a803861c4ba197fd82c7
/venv/lib/python3.6/site-packages/tensorflow_core/_api/v2/compat/v1/saved_model/constants/__init__.py
cc4fda4d17880c50607f1863aeb5f3dcd9d02668
[ "MIT" ]
permissive
databill86/HyperFoods
cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789
9267937c8c70fd84017c0f153c241d2686a356dd
refs/heads/master
2021-01-06T17:08:48.736498
2020-02-11T05:02:18
2020-02-11T05:02:18
241,407,659
3
0
MIT
2020-02-18T16:15:48
2020-02-18T16:15:47
null
UTF-8
Python
false
false
1,080
py
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Constants for SavedModel save and restore operations. """ from __future__ import print_function as _print_function import sys as _sys from tensorflow.python.saved_model.constants import ASSETS_DIRECTORY from tensorflow.python.saved_model.constants import ASSETS_KEY from tensorflow.python.saved_model.constants import DEBUG_DIRECTORY from tensorflow.python.saved_model.constants import DEBUG_INFO_FILENAME_PB from tensorflow.python.saved_model.constants import LEGACY_INIT_OP_KEY from tensorflow.python.saved_model.constants import MAIN_OP_KEY from tensorflow.python.saved_model.constants import SAVED_MODEL_FILENAME_PB from tensorflow.python.saved_model.constants import SAVED_MODEL_FILENAME_PBTXT from tensorflow.python.saved_model.constants import SAVED_MODEL_SCHEMA_VERSION from tensorflow.python.saved_model.constants import VARIABLES_DIRECTORY from tensorflow.python.saved_model.constants import VARIABLES_FILENAME del _print_function
[ "luis20dr@gmail.com" ]
luis20dr@gmail.com
c6069f5ac010ee31dcdeaa9b41fc91621e3f0016
fc21f4b9b865bd6e6fda1885e5c1c392f413918e
/src/models.py
299d850d6e7efcf1dc68542beb3d8aa7bb432385
[ "MIT" ]
permissive
vishwa742/WebApp
8d44a3d96a29456f661ef498aeba9a6d210c5047
28d626b463e043c8e11d22b368af39ddda98b6a8
refs/heads/master
2023-05-11T23:06:58.258714
2019-12-14T04:25:04
2019-12-14T04:25:04
226,716,091
0
1
MIT
2023-05-01T20:37:37
2019-12-08T18:57:43
Python
UTF-8
Python
false
false
268
py
import flask_sqlalchemy db = flask_sqlalchemy.SQLAlchemy() class Cats(db.Model): __tablename__ = 'cats' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(100)) price = db.Column(db.Integer) breed = db.Column(db.String(100))
[ "ezhilvishwanath@gmail.com" ]
ezhilvishwanath@gmail.com
ff606b815720b309fbfb5d46398331bbd566a330
9dc8c299ee7d4a225002127cc03b4253c8a721fd
/config.py
ba04b01c88725efffc4982638a1496ea86151d3f
[]
no_license
namesuqi/strategy_corgi
5df5d8c89bdf7a7c465c438048be20ef16120f4f
557b8f8eabf034c2a57c25e6bc581858dd4f1b6e
refs/heads/master
2020-03-07T04:00:18.313901
2018-03-29T07:50:50
2018-03-29T07:50:50
127,253,453
0
0
null
null
null
null
UTF-8
Python
false
false
7,068
py
#!/usr/bin/python # coding=utf-8 # __author__ = JinYiFan from libs.module.configs import * from libs.module.files import * from libs.module.onlines import * from libs.module.peers import * from libs.sdk.file import * from libs.const.config import CPPC, PSIZE, DURATION, OPERATION, PLAY_TYPE, ERROR_TYPE from libs.module.live_onlines import * from libs.module.live_files import * from libs.module.live_peers import * from libs.sdk.live_file import * import datetime import requests import sys orm = MysqlORM() # read config table information in mysql def read_config(): global push_download_bandwidth, seed_download_bandwidth, sdk_review_duration, push_review_duration, peer_count, \ file_count, push_write_num, file_write_num, file_status_write_number, sdk_write_number, live_file_count, \ live_peer_count, rate_of_peer_and_file results = orm.session.query(Configs).all() orm.session.close() for result in results: if result.role == "push_download_bandwidth": push_download_bandwidth = int(result.content) elif result.role == "seed_download_bandwidth": seed_download_bandwidth = int(result.content) elif result.role == "sdk_review_duration": sdk_review_duration = int(result.content) elif result.role == "push_review_duration": push_review_duration = int(result.content) elif result.role == "peer_count": peer_count = int(result.content) elif result.role == "file_count": file_count = int(result.content) elif result.role == "push_write_num": push_write_num = int(result.content) elif result.role == "file_write_num": file_write_num = int(result.content) elif result.role == "file_status_write_number": file_status_write_number = int(result.content) elif result.role == "sdk_write_number": sdk_write_number = int(result.content) elif result.role == "live_file_count": live_file_count = int(result.content) elif result.role == "live_peer_count": live_peer_count = int(result.content) elif result.role == "rate_of_peer_and_file": rate_of_peer_and_file = int(result.content) return push_download_bandwidth, seed_download_bandwidth, sdk_review_duration, push_review_duration, peer_count, \ file_count, push_write_num, file_write_num, file_status_write_number, sdk_write_number, live_file_count, \ live_peer_count, rate_of_peer_and_file push_download_bandwidth, seed_download_bandwidth, sdk_review_duration, push_review_duration, peer_count, file_count, \ push_write_num, file_write_num, file_status_write_number, sdk_write_number, live_file_count, live_peer_count, rate_of_peer_and_file = \ read_config() # write files table def write_file_table(file_count): for i in range(file_count): files = File(file_id=get_random_file_id(), file_size=get_random_file_size(), url=get_random_file_url(), ppc=get_random_ppc(), cppc=CPPC, piece_size=PSIZE) orm.session.add(files) orm.session.commit() orm.session.close() print("reset file table done", datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')) # write peer table def write_peer_table(peer_count): peer_num_infos = orm.session.query(Online).limit(peer_count).all() for num in range(peer_count): print peer_num_infos[num].peer_id peer_info = peer_num_infos[num] file_info = orm.session.query(File).first() peer_sdk = Peer(peer_id=peer_info.peer_id, sdk_version=peer_info.sdk_version, public_ip=peer_info.public_ip, public_port=peer_info.public_port, private_ip=peer_info.private_ip, private_port=peer_info.private_port, nat_type=peer_info.nat_type, stun_ip=peer_info.stun_ip, isp_id=peer_info.isp_id, province_id=peer_info.province_id, duration=DURATION, file_id=file_info.file_id, seeds_download=0, seeds_upload=0, cdn_download=0, p2p_download=0, operation=OPERATION, play_type=PLAY_TYPE, error_type=ERROR_TYPE, file_size=file_info.file_size, url=file_info.url, ppc=file_info.ppc, cppc=file_info.cppc, piece_size=file_info.piece_size) orm.session.add(peer_sdk) orm.session.commit() orm.session.close() print("write peer table done", datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')) # config priority_file def priority_file_config(): if orm.session.query(File).count() > 1: file_info = orm.session.query(File)[1] orm.session.close() priority_file_id = file_info.file_id req_config = requests.get('http://192.168.1.188:9998/vodpush/control/hfile?cmd=add&type=file&value={0}'.format( priority_file_id)) print("file {0} has been hfile, status code is {1}".format(priority_file_id, req_config.status_code)) # --------------------------------------live parts # write live files table def write_live_file_table(live_file_count): for i in range(live_file_count): live_files = Live_File(file_id=get_random_live_file_id(), ppc=PPC, cppc=CPPC, url=get_random_live_file_url()) orm.session.add(live_files) orm.session.commit() orm.session.close() print("reset live file table done", datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')) # write live_peer table def write_live_peer_table(live_peer_count, rate_of_peer_and_file): peer_num_infos = orm.session.query(Live_Online).limit(live_peer_count).all() file_num_infos = orm.session.query(Live_File).limit(live_peer_count/rate_of_peer_and_file).all() num = 0 for num in range(live_peer_count): file_num = num/rate_of_peer_and_file live_peer_info = peer_num_infos[num] live_file_info = file_num_infos[file_num] print live_peer_info.peer_id print live_file_info.file_id live_peer_sdk = Live_Peer(peer_id=live_peer_info.peer_id, version=live_peer_info.sdk_version, country=live_peer_info.country, province_id=live_peer_info.province_id, city_id=live_peer_info.city_id, isp_id=live_peer_info.isp_id, file_id=live_file_info.file_id, chunk_id=get_random_chunk_id(), operation=OPERATION, cdn=CDN, p2p=P2P, ssid=live_peer_info.ssid, p2penable=P2PENABLE) orm.session.add(live_peer_sdk) num += 1 orm.session.commit() orm.session.close() print("write live peer table done", datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')) if __name__ == '__main__': if sys.argv[1] == "vod": read_config() write_file_table(file_count) write_peer_table(peer_count) priority_file_config() if sys.argv[1] == "live": read_config() write_live_file_table(live_file_count) write_live_peer_table(live_peer_count, rate_of_peer_and_file)
[ "suqi_name@163.com" ]
suqi_name@163.com
098c7a62a3bca39911339029a6b2f591f70f3fa5
bdca9b7a57c3c6b1ddec8f78c457bc50fc9f0ef8
/official/modeling/activations/__init__.py
8bada46826e35f9834da9f59ebcfc5426584005e
[ "Apache-2.0" ]
permissive
cloud-annotations/models
51c108646f82232e4009501f1bad68dd874a5a4f
6b7c444123bc2508a192228a1ef470bdc0f8a4c6
refs/heads/master
2023-01-02T10:32:48.726913
2020-10-30T17:47:44
2020-10-30T17:47:44
295,465,958
1
2
Apache-2.0
2020-10-30T17:47:45
2020-09-14T15:55:21
null
UTF-8
Python
false
false
1,072
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """Activations package definition.""" from official.modeling.activations.gelu import gelu from official.modeling.activations.relu import relu6 from official.modeling.activations.sigmoid import hard_sigmoid from official.modeling.activations.swish import hard_swish from official.modeling.activations.swish import identity from official.modeling.activations.swish import simple_swish
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
31e1a6d6b4854cb7a59cfa8cff8e794a29d0d0b2
5a6ee374bdea5d10c391e7c462f268d2e6e3ee5b
/variant_diskstras_algorithm.py
86c9e19fcdb6aa6938d38d82c89f3397de2459b3
[]
no_license
revhea2/priority-based-resource-allocation
20cf692d860081086de246a0fd935a677dcaebb3
f6f333171f5fb54643ab80b446e4432a0c780d93
refs/heads/main
2023-07-08T07:47:37.774878
2021-08-04T06:52:00
2021-08-04T06:52:00
391,100,971
0
0
null
null
null
null
UTF-8
Python
false
false
2,588
py
class VDA: def __init__(self, graph): self.graph = [ [0, 0, 13, 0, 16, 8], [0, 0, 0, 6, 0, 10], [13, 0, 0, 16, 0, 11], [0, 6, 16, 0, 5, 17], [16, 0, 0, 5, 0, 7], [8, 10, 11, 17, 7, 0], ] self.band = None self.pre = None @staticmethod def get_maximum_band(band, s): max_index = -1 max_value = -1 for index, value in enumerate(band): if index in s and max_value < value: max_value = value max_index = index return max_index def variant_dijkstra_algorithm(self, start, v): i = start s = {1, 2, 3, 4, 5} current = start band = [0, 0, 0, 0, 0, 0] pre = [0, 0, 0, 0, 0, 0] while i < v: for vj in s: if self.graph[current][vj] > 0: if band[vj] == 0: band[vj] = self.graph[current][vj] pre[vj] = current elif band[vj] < min(band[current], self.graph[current][vj]): band[vj] = min(band[current], self.graph[current][vj]) pre[vj] = current u = self.get_maximum_band(band, s) if u != -1: s.remove(u) current = u i += 1 # set global vlaues self.band = band self.pre = pre print("PRE List") print(pre) print("<--------------->") paths = [[] for _ in range(v)] for j in range(1, v): paths[j].append(j) u = j while pre[u] != 0: paths[j].append(pre[u]) u = pre[u] paths[j].append(0) paths[j] = paths[j][::-1] return paths def check_bandwidth(self, node_id): return self.band[node_id] def allocate_band(self, node_id, band_allocated): self.band[node_id] -= band_allocated self.graph[node_id][self.pre[node_id]] -= band_allocated self.graph[self.pre[node_id]][node_id] -= band_allocated def re_allocate_band(self, node_id, pre, band_allocated): self.band[node_id] += band_allocated self.graph[node_id][pre] += band_allocated self.graph[pre][node_id] += band_allocated def view_graph(self): print("Graph Adjacency Matrix:") for arr in self.graph: print(arr) print() if __name__ == '__main__': VDA(None).variant_dijkstra_algorithm(0, 6)
[ "revhea2@gmail.com" ]
revhea2@gmail.com
4e906e38f5f951b8cb0aeb99d8cbc81712bc513a
c8ba48b0b5fd9af22e741374423c6a80fb6ceb0c
/tareas/datosHalotipos.py
6b6a0a513010e08ee8bff36860cad522469f32c3
[]
no_license
EdelmiraUNISON/redes-neuronales
967ba082568b008fbf5feb23a50a06b39c2a6c26
8405d15fc3c24a97d810eb1395eae7e00e4970bb
refs/heads/master
2021-01-23T07:15:15.088788
2017-10-14T04:04:42
2017-10-14T04:04:42
102,504,432
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
# Neurona lineal (notebook de redes neuronales)# import numpy as np import os import matplotlib.pyplot as plt import pandas as pd from feedforward import * #bloque 2 # Lee los datos en un nd array llamado datos #datos = np.loadtxt('datos/carretas.txt', comments='%', delimiter=',') datos = pd.read_csv('datos/CHR-1.csv',sep=',',header = 1) print('Tipo de dato = ',type(datos)) numMuestras,numAtributos = datos.shape print('Numero de muestras =',numMuestras) print('Numero de atributos= ',numAtributos) #SetPrueba = datos[2:40,:] #SetTest = datos[41:56,4:] #print('setPrueba.shape =',setPrueba.shape)
[ "edelmira_rguez_a@gmail.com" ]
edelmira_rguez_a@gmail.com
c416d2ae92b6d036b3140b461889976c2fed96f9
287ac7f26f6e3e3f347bd713ac2742365b399754
/practice.py
c5b8ccf673c2f519821921a379da86b6104c2c34
[]
no_license
gaellou/MusicTrainingProject
91f3d4295311d6fd83cadd01bc45358badc6478c
e048cd906cb7a44c7ac8018f827f48cb50f20d78
refs/heads/master
2020-09-23T19:55:56.992954
2020-04-20T13:04:50
2020-04-20T13:04:50
225,573,241
0
0
null
null
null
null
UTF-8
Python
false
false
4,321
py
import sys import time import random import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow, QAction, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QSpacerItem, QSizePolicy, QPushButton, QMessageBox from PyQt5.QtGui import QIcon from PyQt5.QtCore import QSize from matplotlib.backends.qt_compat import QtCore, QtWidgets, is_pyqt5 if is_pyqt5(): from matplotlib.backends.backend_qt5agg import ( FigureCanvas, NavigationToolbar2QT as NavigationToolbar) else: from matplotlib.backends.backend_qt4agg import ( FigureCanvas, NavigationToolbar2QT as NavigationToolbar) from matplotlib.figure import Figure class ApplicationWindow(QtWidgets.QMainWindow): def __init__(self): super(ApplicationWindow, self).__init__() self._main = QtWidgets.QWidget() self.setCentralWidget(self._main) layoutV = QtWidgets.QVBoxLayout(self._main) self.setWindowTitle("test") self.setGeometry(20, 20, 1000, 1000) self.statusBar().showMessage('Ready') # Faire une barre de status Boutongraph1 = QPushButton("Partition",self) # creer un bouton à l'écran oK mais cela ne dit pas ou layoutV.addWidget(Boutongraph1) # ce bouton met le dans le calque layoutV maintenant je sais ou est le bouton Boutongraph1.clicked.connect(self.plotImage) Boutongraph2 = QPushButton("Courbe",self) layoutV.addWidget(Boutongraph2) Boutongraph2.clicked.connect(self.sinusoiddynamyque) Hlayout = QHBoxLayout() #creer un calque "honrizontal" Hlayout.addWidget(Boutongraph1) # et ajoute lui un widget ici un bouton Hlayout.addWidget(Boutongraph2) # et ajoutes lui un 2 ème bouton layoutV.addLayout(Hlayout) # et ajoute le Hlayout dans le Layout vertical static_canvas = FigureCanvas(Figure(figsize=(5, 3))) # creer un canevas layoutV.addWidget(static_canvas) # et mets le dans le layoutV dynamic_canvas = FigureCanvas(Figure(figsize=(5, 3))) # creer un 2 ème canevas layoutV.addWidget(dynamic_canvas) # et met le aussi dans le layoutV ToolBar2 = NavigationToolbar(dynamic_canvas, self) self.addToolBar(QtCore.Qt.BottomToolBarArea,ToolBar2) layoutV.addWidget(ToolBar2) #et le met la NavigationToolbar sur le layout qui va bien self._static_ax = static_canvas.figure.add_subplot(111) # cette ligne ne pouvais pas être mis dans la fonction graphstatic sinon le bouton n'afficher pas le graphique ce sont les axes du premier canevas appeler static_canvas self._dynamic_ax = dynamic_canvas.figure.add_subplot(111) # creer les axes du 2 ème canevas le canevas dynamique #self._timer = dynamic_canvas.new_timer(100, [(self._update_canvas, (), {})]) #self._timer.start() # fonctionne mais sans le déclenchement du bouton def graphstatic(self,static_canvas): # il fallait aussi transmettre le 2 ème paramètre static_canvas à la fonction graphstatic img = mpimg.imread('./Partition/Exo01_1.png') print(img) imgplot = plt.imshow(img) self.axescanvas3.imshow(img) self.axescanvas3.set_title('PyQt Matplotlib Example') self.axescanvas3.figure.canvas.draw() def sinusoiddynamyque(self): testhopbof = FigureCanvas(Figure(figsize=(5, 3))) self._timer = testhopbof.new_timer(100, [(self._update_canvas, (), {})]) #ne fonctionne pas car new_timer n'est pas détecté problème de portée ? self._timer.start() def _update_canvas(self): self._dynamic_ax.clear() t = np.linspace(0, 10, 101) # Shift the sinusoid as a function of time. self._dynamic_ax.plot(t, np.sin(t + time.time())) self._dynamic_ax.figure.canvas.draw() def plotImage(self,canvas3): NomFichier = './IMAGE/Exercices/Ex11.png' img = mpimg.imread(NomFichier) print(img) imgplot = plt.imshow(img) self._static_ax .imshow(img) self._static_ax.set_title('PyQt Matplotlib Example') self._static_ax .figure.canvas.draw() if __name__ == "__main__": qapp = QtWidgets.QApplication(sys.argv) app = ApplicationWindow() app.show() qapp.exec_()
[ "gaelle.vallet58@gmail.com" ]
gaelle.vallet58@gmail.com
68b7899911ae25733b3fdbd48e64faf7be9a7889
eaffe18b1a63b86eea3b9a79da65137ba0ffef40
/jobs/migrations/0001_initial.py
a90364cd4ca6f4b8be229bce31cf62ee040d9487
[]
no_license
JoNowakowska/PortfolioWithDjango
a09dd42b8d8ddb181967bd6629c387280ef9161f
d673fd754d5ec7f6b5e6d00997ab23618b71b0a6
refs/heads/main
2023-02-16T09:26:27.210745
2021-01-10T19:50:17
2021-01-10T19:50:17
328,142,155
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
# Generated by Django 3.1.5 on 2021-01-09 12:15 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to='images/')), ('summary', models.CharField(max_length=200)), ], ), ]
[ "joanna.k.nowakowska@gmail.com" ]
joanna.k.nowakowska@gmail.com
7d72256d6a89db72f3987acfe1878e5461c7adc2
f361126ee099303113b5ed3cc0e838bd01a9e41b
/Semana1/exec_resolvido_7_4.py
ac1710b5f4ef54b065b8c4d97ce0755950441742
[]
no_license
ju-c-lopes/Univesp_Algoritmos_II
e1ce5557d342ea75fe929cf7b207e633f9aa89cd
5d4eec368be91c18f0ae5c17d342e6eb0f1c79be
refs/heads/master
2023-06-05T11:09:25.415719
2021-07-07T22:26:53
2021-07-07T22:26:53
383,600,096
0
0
null
null
null
null
UTF-8
Python
false
false
847
py
from random import randint print("Inicio do Programa\n") N = 0 while N < 10 or N > 10000: # leitura de N N = int(input("Digite N entre [10, 10000]: ")) cod = [] cont = 0 while cont < N: # laço para gerar a lista de códigos únicos a = randint(10000, 50000) if a not in cod: # este if garante a unicidade cod.append(a) cont += 1 # só conta 1 quando entrou L S = "{0};{1};{2:.2f};{3}\n" # string pré formatado ICMS = (7, 12, 18) # tupla com os 3 valores de ICMS arq = open("Estoque.csv", "w") cont = 0 while cont < N: Qtde = randint(1, 3800) PcUn = randint(180, 43590) / 100 i = randint(0, 2) arq.write(S.format(cod[cont], Qtde, PcUn, ICMS[i])) cont += 1 arq.close() print("\nFim do Programa")
[ "juliano.co.lopes@gmail.com" ]
juliano.co.lopes@gmail.com
86bbdcae18d5cb2995c2a4e9bb3c45991c6e4f91
789410a3b131e42c69a1e81c47e83c008f2243d6
/telegram_bot/request_db.py
98a05131aeeabc0a8c494bc3a998640cfd470700
[]
no_license
SerenadMurtazin/botassistant
be38bac73aea6c89c272ddd2672c7a61baf1cd4c
cf0a911d7e61515636a94425f5e397e4b8af8af9
refs/heads/master
2021-06-13T08:32:54.394143
2020-03-09T11:45:12
2020-03-09T11:45:12
193,751,599
1
0
null
2021-06-01T23:53:50
2019-06-25T17:13:59
Python
UTF-8
Python
false
false
9,877
py
from telegram_bot.helpers import cache, MyException from telegram_bot.config import db_connect, COURSE_LIFE class Base: @property def sql(self): if not self.sql: raise TypeError('Переменная с запросом пустая') else: return self.sql @sql.setter def sql(self, value): self.sql = value def get(self): with db_connect.cursor() as cursor: cursor.execute(self.sql) result = cursor.fetchone() return result or None def all(self): with db_connect.cursor() as cursor: cursor.execute(self.sql) result = cursor.fetchall() return result or [] def commit(self): with db_connect.cursor() as cursor: cursor.execute(self.sql) db_connect.commit() def commit_return(self): with db_connect.cursor() as cursor: cursor.execute(self.sql) result = cursor.fetchone() db_connect.commit() return result def commit_returns(self): with db_connect.cursor() as cursor: cursor.execute(self.sql) result = cursor.fetchall() db_connect.commit() return result class People(Base): table = None sql = None _type = None def __init__(self, _id=None): if _id is None: return data = cache(_id) if data and data[0] == self._type: self.data = data[1] else: self.data = self.get_people(_id).get() cache(_id, (self._type, self.data)) def get_people(self, _id): """ Записан студетн или нет """ self.sql = f""" SELECT * FROM {self.table} WHERE telegram_id = '{_id}' """ return self def del_people(self): self.sql = f""" DELETE FROM {self.table} WHERE id = {self.data[0]}; """ return self def get_group(self, _id=None, name=None): if _id or name: self.sql = f""" SELECT * FROM groups WHERE {'id = ' + str(_id) if _id else f"name = '{name}'" if name else "False"} """ return self def all_course(self): self.sql = f""" SELECT c.id, c.name, initcap(concat(t.last_name, ' ', left(t.first_name, 1), '. ', left(t.patronymic, 1), '.')), s.start_date FROM courses as c, semesters as s, teachers as t WHERE c.semester_id = s.id AND s.start_date + interval '{COURSE_LIFE}' >= date_trunc('day', now()) AND c.author = t.id ORDER BY s.start_date, c.id """ return self def update_people(self, _id, data): new_field = [f'{k}={v}' for k, v in data.items()] if new_field: self.sql = f""" UPDATE {self.table} SET {','.join(new_field)} WHERE id = {_id} """ return self class Student(People): _type = 1 table = 'students' def __new_group(self, group): """Записать новую группу""" self.sql = f""" INSERT INTO groups(name) VALUES ('{group}') ON CONFLICT DO NOTHING """ return self def create_group(self, name): """Создать и вернкть новую группу""" self.__new_group(name).commit() self.sql = f"SELECT id FROM groups WHERE name = '{name}'" return self.get() def create(self, student: dict, returning=False): student['group_id'] = self.create_group(student['group_id'])[0] student['return_text'] = '' if returning: student['return_text'] = "RETURNING id" self.sql = """ INSERT INTO students(group_id, first_name, last_name, patronymic, gradebook_identy, telegram_id) VALUES ({group_id}, '{first_name}', '{last_name}', '{patronymic}', '{gradebook}', '{id}') {return_text} """.format(**student) return self def course_student(self): self.sql = f""" SELECT c.id, c.name, initcap(concat(t.last_name, ' ', left(t.first_name, 1), '. ', left(t.patronymic, 1), '.')) as author FROM courses as c, teachers as t, "group-cource_rels" as gc WHERE c.id = gc.cource_id AND gc.group_id = {self.data[1]} AND c.author = t.id """ return self def get_point_visible(self, course, point=False): if point: table = 'student_performance' field = 'points' else: table = 'student_visits' field = 'visited ' self.sql = f""" SELECT l.date_time, {field} FROM {table} as t, lessons as l WHERE l.id = t.lesson_id AND l.cource_id = {course} AND t.student_id = {self.data[0]} ORDER BY l.date_time """ return self class Teacher(People): _type = 0 table = 'teachers' def create(self, student: dict): self.sql = """ INSERT INTO teachers(first_name, last_name, patronymic, telegram_id) VALUES ('{first_name}', '{last_name}', '{patronymic}', '{id}') """.format(**student) return self def my_course(self): self.sql = f""" SELECT c.id, c.name, c.duration, s.start_date, ARRAY_AGG(g.name) AS groups FROM courses AS c LEFT JOIN semesters AS s ON s.id = c.semester_id LEFT JOIN "group-cource_rels" AS gr ON gr.cource_id = c.id LEFT JOIN groups AS g ON g.id = gr.group_id WHERE c.author = {self.data[0]} GROUP BY c.id, c.name, c.duration, c.author, s.start_date ORDER BY s.start_date """ return self def get_semesters(self, _id=None): self.sql = f""" SELECT * FROM semesters WHERE TRUE {f'AND {_id} = id' if _id else ''} """ return self def create_semesters(self, date_start): self.sql = f""" INSERT INTO semesters(start_date) VALUES ('{date_start}'::DATE) ON CONFLICT DO NOTHING RETURNING id """ return self def create_course(self, course): semester_id = course['semester'] if course['new']: try: semester_id = self.create_semesters(course['semester']).commit_return() semester_id = semester_id[0] except Exception: raise MyException('Не удалоь создать семестр.') self.sql = f""" INSERT INTO courses(name, semester_id, duration, author) VALUES ('{course['name']}', {semester_id}, {course['duration']}, {self.data[0]}) ON CONFLICT DO NOTHING """ return self def check_course(self, course_id): self.sql = f""" SELECT * FROM courses WHERE id = {course_id} AND author = {self.data[0]} """ return self def del_course(self, course_id): if not self.check_course(course_id).get(): raise MyException('Вы не являетесь автором курса') self.sql = f""" SELECT id FROM lessons WHERE cource_id = {course_id} """ lessons = self.commit_returns() if lessons: self.sql = f""" DELETE FROM "lesson-media_resources_rels" WHERE lesson_id = ANY(ARRAY{lessons}) RETURNING media_resource_id """ media = self.commit_returns() self.sql = f""" WITH visible AS ( DELETE FROM student_visits WHERE lesson_id = ANY(ARRAY{lessons}) ), point AS ( DELETE FROM student_performance WHERE lesson_id = ANY(ARRAY{lessons}) ), lesson AS ( DELETE FROM lessons WHERE id = ANY(ARRAY{lessons}) ) DELETE FROM media_resources WHERE id ANY(ARRAY{media or []}::int) """ self.commit() self.sql = f""" WITH grp AS ( DELETE FROM "group-cource_rels" WHERE cource_id = {course_id} ) DELETE FROM courses WHERE id = {course_id} RETURNING semester_id """ semester = self.commit_return() self.sql = f""" SELECT * FROM courses WHERE semester_id = {semester[0]} LIMIT 1 """ if not self.get(): self.sql = f""" DELETE FROM semesters WHERE id = {semester[0]} """ def sing_up_course(self, course_id, group): if not self.check_course(course_id).get(): raise MyException('Вы не являетесь автором курса') self.sql = f""" INSERT INTO "group-cource_rels"(group_id, cource_id) VALUES ({Student().create_group(group)[0]}, {course_id}) """ return self def create_lesson(self, course, group, _date): self.sql = f""" INSERT INTO lessons(group_id, cource_id, date_time) VALUES ({group}, {course}, '{_date}'::TIMESTAMP) RETURNING id """ return self
[ "noreply@github.com" ]
SerenadMurtazin.noreply@github.com
ceb6735bc39c4737f9d8efde27265df5679c07ef
0fb891454b579242f17fe2879102a7c3b9231f26
/api/urls.py
39b41eb4aa09af800ef0a18bf254a4fb54abdd94
[]
no_license
akm-y/pub_sns_api
321e3bbf55f5dc32863749a55bd37da8ce150ca0
96eee80f03df450d63c3d9a3595baab47da4a82a
refs/heads/master
2021-06-20T20:20:46.009554
2019-11-28T13:25:06
2019-11-28T13:25:06
224,618,441
0
0
null
2019-11-28T09:57:06
2019-11-28T09:35:40
Python
UTF-8
Python
false
false
1,259
py
"""api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.conf.urls import url, include from django.urls import path # from app.user.urls import router as user_router urlpatterns = [ url('admin/', admin.site.urls), url(r'^friends', include('app.apis.friend.urls')), url(r'^team', include('app.apis.team.urls')), url(r'^mediate/', include('app.apis.mediate.urls')), url(r'^users', include('app.apis.user.urls')), url(r'^entries', include('app.apis.entries.urls')), url(r'^notice', include('app.apis.notification.urls')), url(r'^chat', include('app.apis.chat.urls')), url('logs/', include('app.log.urls')), ]
[ "y-akamatsu@hulicol.com" ]
y-akamatsu@hulicol.com
678911b2bdd67c084970f11a3dbe2874f7fc11e5
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R2/benchmark/startQiskit67.py
336f9569db3796b23ea2018cebfc43fa75966169
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
5,401
py
# qubit number=3 # total number=12 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from qiskit.test.mock import FakeVigo, FakeYorktown kernel = 'circuit/bernstein' def bitwise_xor(s: str, t: str) -> str: length = len(s) res = [] for i in range(length): res.append(str(int(s[i]) ^ int(t[i]))) return ''.join(res[::-1]) def bitwise_dot(s: str, t: str) -> str: length = len(s) res = 0 for i in range(length): res += int(s[i]) * int(t[i]) return str(res % 2) def build_oracle(n: int, f: Callable[[str], str]) -> QuantumCircuit: # implement the oracle O_f # NOTE: use multi_control_toffoli_gate ('noancilla' mode) # https://qiskit.org/documentation/_modules/qiskit/aqua/circuits/gates/multi_control_toffoli_gate.html # https://quantumcomputing.stackexchange.com/questions/3943/how-do-you-implement-the-toffoli-gate-using-only-single-qubit-and-cnot-gates # https://quantumcomputing.stackexchange.com/questions/2177/how-can-i-implement-an-n-bit-toffoli-gate controls = QuantumRegister(n, "ofc") target = QuantumRegister(1, "oft") oracle = QuantumCircuit(controls, target, name="Of") for i in range(2 ** n): rep = np.binary_repr(i, n) if f(rep) == "1": for j in range(n): if rep[j] == "0": oracle.x(controls[j]) oracle.mct(controls, target[0], None, mode='noancilla') for j in range(n): if rep[j] == "0": oracle.x(controls[j]) # oracle.barrier() # oracle.draw('mpl', filename=(kernel + '-oracle.png')) return oracle def build_circuit(n: int, f: Callable[[str], str]) -> QuantumCircuit: # implement the Bernstein-Vazirani circuit zero = np.binary_repr(0, n) b = f(zero) # initial n + 1 bits input_qubit = QuantumRegister(n+1, "qc") classicals = ClassicalRegister(n, "qm") prog = QuantumCircuit(input_qubit, classicals) # inverse last one (can be omitted if using O_f^\pm) prog.x(input_qubit[n]) # circuit begin prog.h(input_qubit[1]) # number=1 prog.x(input_qubit[2]) # number=2 prog.h(input_qubit[1]) # number=7 prog.cz(input_qubit[2],input_qubit[1]) # number=8 prog.h(input_qubit[1]) # number=9 prog.cx(input_qubit[2],input_qubit[1]) # number=4 prog.z(input_qubit[2]) # number=3 prog.y(input_qubit[2]) # number=5 # apply H to get superposition for i in range(n): prog.h(input_qubit[i]) prog.h(input_qubit[n]) prog.barrier() # apply oracle O_f oracle = build_oracle(n, f) prog.append( oracle.to_gate(), [input_qubit[i] for i in range(n)] + [input_qubit[n]]) # apply H back (QFT on Z_2^n) for i in range(n): prog.h(input_qubit[i]) prog.barrier() # measure return prog def get_statevector(prog: QuantumCircuit) -> Any: state_backend = Aer.get_backend('statevector_simulator') statevec = execute(prog, state_backend).result() quantum_state = statevec.get_statevector() qubits = round(log2(len(quantum_state))) quantum_state = { "|" + np.binary_repr(i, qubits) + ">": quantum_state[i] for i in range(2 ** qubits) } return quantum_state def evaluate(backend_str: str, prog: QuantumCircuit, shots: int, b: str) -> Any: # Q: which backend should we use? # get state vector quantum_state = get_statevector(prog) # get simulate results # provider = IBMQ.load_account() # backend = provider.get_backend(backend_str) # qobj = compile(prog, backend, shots) # job = backend.run(qobj) # job.result() backend = Aer.get_backend(backend_str) # transpile/schedule -> assemble -> backend.run results = execute(prog, backend, shots=shots).result() counts = results.get_counts() a = Counter(counts).most_common(1)[0][0][::-1] return { "measurements": counts, # "state": statevec, "quantum_state": quantum_state, "a": a, "b": b } def bernstein_test_1(rep: str): """011 . x + 1""" a = "011" b = "1" return bitwise_xor(bitwise_dot(a, rep), b) def bernstein_test_2(rep: str): """000 . x + 0""" a = "000" b = "0" return bitwise_xor(bitwise_dot(a, rep), b) def bernstein_test_3(rep: str): """111 . x + 1""" a = "111" b = "1" return bitwise_xor(bitwise_dot(a, rep), b) if __name__ == "__main__": n = 2 a = "11" b = "1" f = lambda rep: \ bitwise_xor(bitwise_dot(a, rep), b) prog = build_circuit(n, f) sample_shot =4000 writefile = open("../data/startQiskit67.csv", "w") # prog.draw('mpl', filename=(kernel + '.png')) backend = BasicAer.get_backend('qasm_simulator') circuit1 = transpile(prog, FakeYorktown()) circuit1.h(qubit=2) circuit1.x(qubit=3) circuit1.measure_all() info = execute(circuit1,backend=backend, shots=sample_shot).result().get_counts() print(info, file=writefile) print("results end", file=writefile) print(circuit1.depth(), file=writefile) print(circuit1, file=writefile) writefile.close()
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
5612c042b4bea48e600064b73d32a76b6fb55e04
f53c1435d72400edc9fdb98e3ba4ba5523eb979b
/unorganized/abiba.py
7849408ddc6766e4d83360f8346b01bae10cb257
[]
no_license
tomaccosheep/teaching_unorganized
2d8e6ed9779c3fb12b53ddcee5d6d1a805ed2789
0f36c883a28bacceaa1d36ec9d34a7de560e8364
refs/heads/master
2021-05-13T11:45:47.286426
2018-01-11T19:21:34
2018-01-11T19:21:34
117,139,392
0
0
null
null
null
null
UTF-8
Python
false
false
141
py
import random eyes = [';', ':'] nose = ['-', '>'] mouth = ['O', '|'] print(random.choice(nose) + random.choice(nose) + random.choice(mouth))
[ "al.burns.email@gmail.com" ]
al.burns.email@gmail.com
b0c3c75530d47e2c268b41bd787787a3917f7840
c92f3868e5c292f5343f4c0034db6f816169c083
/project/scipycon/registration/migrations/0006_auto__add_field_accommodation_accommodation_on_1st__add_field_accommod.py
60df42aa941a33c7cf6cc41d8fba5246a9cb1fb6
[]
no_license
FOSSEE/scipywebsite
32742c1919f63bb61a4bbca5f15b608af51b0534
f0d3f02052585a8bc84860b0ade2b08437acb15d
refs/heads/master
2016-09-05T22:00:43.713530
2012-08-28T12:00:19
2012-08-28T12:00:19
5,585,048
0
1
null
null
null
null
UTF-8
Python
false
false
11,161
py
# encoding: 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 field 'Accommodation.accommodation_on_1st' db.add_column('registration_accommodation', 'accommodation_on_1st', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Adding field 'Accommodation.accommodation_on_2nd' db.add_column('registration_accommodation', 'accommodation_on_2nd', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Adding field 'Accommodation.accommodation_on_3rd' db.add_column('registration_accommodation', 'accommodation_on_3rd', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Adding field 'Accommodation.accommodation_on_4th' db.add_column('registration_accommodation', 'accommodation_on_4th', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Adding field 'Accommodation.accommodation_on_5th' db.add_column('registration_accommodation', 'accommodation_on_5th', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Adding field 'Accommodation.accommodation_on_6th' db.add_column('registration_accommodation', 'accommodation_on_6th', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) def backwards(self, orm): # Deleting field 'Accommodation.accommodation_on_1st' db.delete_column('registration_accommodation', 'accommodation_on_1st') # Deleting field 'Accommodation.accommodation_on_2nd' db.delete_column('registration_accommodation', 'accommodation_on_2nd') # Deleting field 'Accommodation.accommodation_on_3rd' db.delete_column('registration_accommodation', 'accommodation_on_3rd') # Deleting field 'Accommodation.accommodation_on_4th' db.delete_column('registration_accommodation', 'accommodation_on_4th') # Deleting field 'Accommodation.accommodation_on_5th' db.delete_column('registration_accommodation', 'accommodation_on_5th') # Deleting field 'Accommodation.accommodation_on_6th' db.delete_column('registration_accommodation', 'accommodation_on_6th') models = { 'auth.group': { 'Meta': {'object_name': 'Group'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) }, 'auth.permission': { 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) }, 'auth.user': { 'Meta': {'object_name': 'User'}, 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) }, 'base.event': { 'Meta': {'object_name': 'Event'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'scope': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'status': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'turn': ('django.db.models.fields.CharField', [], {'max_length': '255'}) }, 'contenttypes.contenttype': { 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) }, 'registration.accommodation': { 'Meta': {'object_name': 'Accommodation'}, 'accommodation_days': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}), 'accommodation_on_1st': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'accommodation_on_2nd': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'accommodation_on_3rd': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'accommodation_on_4th': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'accommodation_on_5th': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'accommodation_on_6th': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'accommodation_required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'scope': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['base.Event']"}), 'sex': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}), 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}) }, 'registration.payment': { 'Meta': {'object_name': 'Payment'}, 'acco_confirmed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'acco_confirmed_mail': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'confirmed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'confirmed_mail': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'date_confirmed': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), 'details': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'scope': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['base.Event']"}), 'type': ('django.db.models.fields.CharField', [], {'max_length': '25', 'null': 'True', 'blank': 'True'}), 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}) }, 'registration.registration': { 'Meta': {'object_name': 'Registration'}, 'allow_contact': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'city': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}), 'conference': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'final_conference': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'final_sprint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'final_tutorial': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'last_mod': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), 'occupation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}), 'organisation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}), 'phone_num': ('django.db.models.fields.CharField', [], {'max_length': '14', 'blank': 'True'}), 'postcode': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}), 'registrant': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}), 'scope': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['base.Event']"}), 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}), 'sprint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'submitted': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'tshirt': ('django.db.models.fields.CharField', [], {'max_length': '3'}), 'tutorial': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) }, 'registration.wifi': { 'Meta': {'object_name': 'Wifi'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'registration_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), 'scope': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['base.Event']"}), 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}), 'wifi': ('django.db.models.fields.CharField', [], {'max_length': '50'}) } } complete_apps = ['registration']
[ "parth.buch.115@gmail.com" ]
parth.buch.115@gmail.com
7e30673fb15721c04348180bf614306fe1b9bb58
364864d0364d983c85ef3bc973a4ec427dfeb592
/decodewebshell.py
09edcef3af28732f549a96fa54752d67bfd80250
[ "Apache-2.0" ]
permissive
hahadaxia/webshellcat
c39337eaf8a2542046b71dc7d074d6ea45bc8254
0d27726897e10998bdc4117b3c23d87c7fc9aa44
refs/heads/master
2021-03-29T07:21:53.651113
2020-03-24T23:36:50
2020-03-24T23:36:50
247,931,008
1
1
null
null
null
null
UTF-8
Python
false
false
78,745
py
# -*- coding: utf-8 -*- # @Time : 2020-03-24 15:25 # @Author : hahadaxia # @Email : yzujk0502@126.com # webshell from: http://www.lemontreechina.com/statisc/dist/css/x.txt a= ''' eJzs/Xl3XNd5Jor/zazl73BUhlWAieHMAyHAOiMJDgAJgKRIUR e3UCgAJRRQUFWBBEXxwzjqvlE77hVL1mDNtiTHsmRbiiTLjpe7 O+1O0p32z307QyfpTOv3PHufc+rUBIKynXTWNSQCVefseb/zft 93N9fX2p1KqzM+Mfu539qobdb3auPl3duVjY1Wrd0uT46trcTL V+LlR8sr4fLCxdW1ZOF8vOhfiMuPFWvU9m429iuiAv/carY2iq /b27VGY6+yW8P7/HNvjwetBl6Kv3xR3xx/eKvWWdutbNWra08c NDu19trWfnV8YuLO537rxGazVatUt8fH1i4urawqlbYytqPMzS tjNycU+ezRsZ3HlDml3WnV99uNCnptj+PtbE/l0/FAXTwaXfWu GFi93a51UHs5vnQ5Rk/Z5B8TY9vebTS36nvjOis8XLtZaQwtip e1w3pnVjY5thYuLZ1biB/truRjygNzyu6GNZ49kTMXhcUEC0XF m+GvlLk5JW9BFDuB0VebzZ16z76xpyENiwU7cSKblPx6t9Zo12 Rbtep2Uyk/FMaLq/Hy/Mdvv/o7r/7F2z996+fP/+IHf/nQTPq4 LGvhF//V27KtLiQU9v2EWBSx0j1rzW0pbzRv7XFMykZzjZ/7ns 8O1tivVHfKcl9OjG3UW9h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kmx62Fw6Mc +H/+0gr8MG4sLb7+31pah6fvlV3EtM6RGt8bvP4rc9DjQLa9dt 0L33629ff28+9ZgJziI2xdLcSRRvONhLmpqOLi49ybrzdeNZvH zVWqF2yXaVgthN9Drf4pYvWvoFBvP7t1pK7971tHLRLFpbr7xj RsR+WfolpHEoFvFnfvv75KGiShwUHbXNguoxwPdhz4v/7+1//+ AQGoqraq9XXNj9uGTJ679Fq+kdgpdfDmfv1OOuP/ADoxjqI=''' a = a.replace('\n','') import base64 b = base64.b64decode(a) import zlib result = zlib.decompress(b) # decode_str = result.decode('utf-8') print(type(result)) print(result.decode('gb2312')) # print(decode_str) # result = str(result).replace('\r\n','\n') # print(result)
[ "yzujk0502@126.com" ]
yzujk0502@126.com
9fd4535d5ebfc3b94f60f25c3b9a3b465665dd97
5b51eac21b6a31b75dd4f27ce45ad5693aa48f24
/samples/openapi3/client/petstore/python-experimental/test/test_file.py
7154338bc7a512fec6e759e25a4938ff30af7a6f
[ "Apache-2.0" ]
permissive
smasala/openapi-generator
55eef034d1269bd761c70406f6dbe7741d01769f
13430247866cdb06ddedfb03ef02eebb1726fe78
refs/heads/master
2023-04-07T16:27:28.395275
2022-01-07T01:45:49
2022-01-07T01:45:49
151,086,316
0
0
Apache-2.0
2023-03-13T15:02:50
2018-10-01T12:37:33
Java
UTF-8
Python
false
false
782
py
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import sys import unittest import petstore_api from petstore_api.model.file import File class TestFile(unittest.TestCase): """File unit test stubs""" def setUp(self): pass def tearDown(self): pass def test_File(self): """Test File""" # FIXME: construct object with mandatory attributes with example values # model = File() # noqa: E501 pass if __name__ == '__main__': unittest.main()
[ "noreply@github.com" ]
smasala.noreply@github.com
56ed11d9c88d8cf20702f59961d9a7c149c8951d
8d1264d9257eba418f92dbbbc8aac6773c4ec715
/apps/portfolios/forms.py
08d1f5117a239c10b13568d5743028b66bc0ef97
[ "MIT" ]
permissive
aldwyn/effigia
5f3e9e37eb7d169983034b61c7455baedc2d8817
eb456656949bf68934530bbec9c15ebc6d0236b8
refs/heads/main
2023-02-18T00:09:53.905711
2021-06-10T22:04:51
2021-06-10T22:04:51
96,387,903
1
1
MIT
2023-02-15T20:04:00
2017-07-06T04:21:09
HTML
UTF-8
Python
false
false
344
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.forms.models import inlineformset_factory from ..galleries.models import Gallery from .models import Portfolio PortfolioFormSet = inlineformset_factory( Gallery, Portfolio, fields=['name', 'image'], can_delete=False, extra=2, min_num=1, validate_min=True)
[ "aldwyn.up@gmail.com" ]
aldwyn.up@gmail.com
86a41f1d8814055d01d5fa9c2a6bd1f586fa7096
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02716/s413939056.py
e2a9b7ed2cd69d088567f040cab32e9a129cbef5
[]
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
1,630
py
N=int(input()) A=list(map(int,input().split())) if N%2==0: dp=[[-float("inf") for _ in range(2)] for _ in range(N+10)] if N==2: print(max(A[0],A[1])) else: for i in range(N): if i==0: dp[i][0]=A[0] elif i==1: dp[i][1]=A[1] elif i==2: dp[i][0]=A[0]+A[2] else: for j in range(2): if j==0: dp[i][0]=max(dp[i][0],dp[i-2][0]+A[i]) elif j==1: dp[i][1]=max(dp[i][1],dp[i-2][1]+A[i],dp[i-3][0]+A[i]) print(max(dp[N-1])) else: #print(A[0],A[1]) dp=[[-float("inf") for _ in range(3)] for _ in range(N+10)] if N==3: print(max(A[0],A[1],A[2])) else: for i in range(N): if i<4: if i==0: dp[i][0]=A[0] if i==1: dp[i][1]=A[1] if i==2: dp[i][2]=A[2] dp[i][0]=A[0]+A[2] if i==3: dp[i][1]=max(dp[1][1]+A[3],dp[0][0]+A[3]) else: for j in range(3): if j==0:#ここでも2こずつ規則よく飛ばすと決めた dp[i][0]=max(dp[i][0],dp[i-2][0]+A[i]) elif j==1:#1回だけ無茶した dp[i][1]=max(dp[i][1],dp[i-2][1]+A[i],dp[i-3][0]+A[i]) else: dp[i][2]=max(dp[i][2],dp[i-2][2]+A[i],dp[i-3][1]+A[i],dp[i-4][0]+A[i]) print(max(dp[N-1]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
83256cd5d4633d53ea92de928e38688b663384b0
f99629c2cc35985ca0cce20d431783672edda64e
/config/dev.py
7c44d410abdbf5f3e767b23cf839a29fac2ca375
[]
no_license
geokoshy89/book_catalog
8f11295228ee39e86e4178412988ad38d19d1c69
4e2a2f1dce31d966570c0629195a34cad8f5f82c
refs/heads/master
2023-06-29T01:11:37.404619
2021-08-08T05:02:08
2021-08-08T05:02:08
393,857,884
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
DEBUG = True SECRET_KEY = 'topsecret' SQLALCHEMY_DATABASE_URI = 'postgresql://<username>:<password>@host.docker.internal/catalog_db' SQLALCHEMY_TRACK_MODIFICATIONS = False
[ "geo.koshy89@gmail.com" ]
geo.koshy89@gmail.com
a287eacb4951b936c9252d99383e31c0baec073c
d0c2c7289945159283f9bb53069b2365735d61ca
/test.py
ee2213fc599e193a58820413292e85c1ed534956
[]
no_license
TinnaLong/python-study
8ecf4e91257f8a4858489c4f427912fa9890cb3a
03afe2b7caa9df4641d55e2a433572d0d4c4214b
refs/heads/master
2021-08-28T21:27:48.667229
2017-12-13T02:46:57
2017-12-13T02:46:57
110,499,662
2
0
null
2017-11-13T04:21:24
2017-11-13T04:21:23
null
UTF-8
Python
false
false
262
py
# -*- coding: utf-8 -*- print 'hello word 你好,世界!' a =100 if a>=0: print a else: print b c = True if c: print c listDemo = ["ting","quanke"] print len(listDemo) print listDemo print listDemo[0] print listDemo[-2] listDemo.append()
[ "609319858@qq.com" ]
609319858@qq.com
d2ca5052afb25e04487cf66f330bc39cedbe691a
507bf0deb2c2b9492e3c8c053dec391297d68548
/LeetCode24/LeetCode24_way1.py
4ab352361c34b70d7e02148b889b355c2196cdae
[]
no_license
daisy0x00/LeetCode_Python
e2be935a9e1897936186488bbe96b127fe4d65ab
74c60cd07b30fd0d0153d337533f048bb7792326
refs/heads/master
2020-03-15T08:58:29.970858
2019-10-12T12:23:07
2019-10-12T12:23:07
132,064,053
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
#coding:utf-8 class ListNode(): def __init__(self, x): self.val = x self.next = None class Solution(): def swapPairs(self, head): """ :param head: ListNode :return: ListNode """ thead = ListNode(-1) thead.next = head c = head while c.next and c.next.next: a, b = c.next, c.next.next c.next, a.next = b, b.next b.next = a c = c.next.next return head.next
[ "daisy@javabin.cn" ]
daisy@javabin.cn
3eb2d2602b368ea404e9b5cf88b011b4981cf2e5
368d30baa4bd479c6f33923553bde653ab13e54c
/program12.py
c19acbfb449f5489968bf8e172aae85b92f75966
[]
no_license
ParulProgrammingHub/assignment-1-pankilparikh
ff789efb798919efd0fa098b304f9520f42af4de
cdb5710c51c923900122492080061a269844dff0
refs/heads/master
2021-01-11T14:27:36.194880
2017-02-09T17:01:14
2017-02-09T17:01:14
81,424,716
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
principle=int(input(“enter the principle amount:”)) rate=int(input(“enter the rate:”)) time=int(input(“enter the time:”)) n=int(input(“enter the N:”)) def compound_interest(principle,time,rate,n): r=(rate/100) P=principle*(1+r/n)**(n*time) Print(“total compound interest:”,P) compound_interest(principle,time,rate,n)
[ "noreply@github.com" ]
ParulProgrammingHub.noreply@github.com
8805060e78429ac5d302b48abd787e6f83699ca3
35f1962d409ce47614e90f4f1887535899334181
/Bay To Breakers/B2BViz.py
f8e2aa0a510280dea5ff225f2d4e55ec04a2e4e5
[]
no_license
hmswaffles/Data-Analysis
97452c65a62e1272e4738c48fd99bf1463adf097
13c6bd024652ad9fb410e581982fef8130b1495b
refs/heads/master
2020-12-24T16:32:40.073149
2018-11-13T23:55:21
2018-11-13T23:55:21
20,163,187
1
0
null
null
null
null
UTF-8
Python
false
false
3,840
py
#### Bay To Breakers Script ### #SOME bay to breakers analysis #first: Raw graphs - men and women #second: distribution of record times for 2014 race - men and women #correcting for course changes and shortening- can this be detected by mcmc methods? from __future__ import division import prettyplotlib as ppl import numpy as np import time # prettyplotlib imports import matplotlib.pyplot as plt import matplotlib as mpl from prettyplotlib import brewer2mpl # Set the random seed for consistency np.random.seed(12) fig, ax = plt.subplots(1) #getting data# def data_loader(): import csv d = open("C:\Users\Evan\Desktop\B2BTimes.csv",'r') dd = csv.reader(d) mdata = [] fdata = [] for row in dd: mdata.append(row[0:3]) if row[4]: fdata.append([row[0],row[3],row[5]]) ##convert times to seconds## return mdata,fdata def convert_times(d): ###converts times to seconds records = [] for row in d: t = row[2] if len(t) <5: print "Hello" else: if t[0] == '1': (h,m,s)=t.split(':') seconds = int(h)*3600+int(m)*60+int(s) elif t[5] == ':': (m,s,ts)=t.split(':') seconds = int(m)*60+int(s) elif t[5] == '.': (m,s)=t.split(':') seconds = int(m)*60+float(s) else: print t records.append(seconds) return records def convert_dates(d): dates = [] #print len(d) P=len(d)-14 for i in range(len(d)): # print i row = d[i] date = row[0] year = date[-2:] #print year if i >P-2: full_year = '20'+year else: full_year = '19'+year dates.append(full_year) return dates def correct_times(gender,d): speedls = [] if gender=='m': for i in range(len(d)): if i<71: speed = float(d[i])/7.51 else: speed = float(d[i])/7.46 speedls.append(speed) elif gender == 'w': for i in range(len(d)): if i<15: speed = float(d[i])/7.51 else: speed = float(d[i])/7.46 speedls.append(speed) return speedls def cleandata(): M,F = data_loader() MT = MD = convert_dates(M) males = [] for i in range(len(M)): m = [int(MD[i]),MT[i]] males.append(m) return males def make_plots(d,correct): men = d[0] women = d[1] if correct: ay = convert_times(men) Ym = correct_times('m',ay) Xm = convert_dates(men) print "hola" print len(Xm) print len(Ym) ppl.scatter(ax,Xm,Ym,label="Men's speeds") aw = convert_times(women) Yw = correct_times('w',aw) Xw = convert_dates(women) ppl.scatter(ax,Xw,Yw,label="Women's speeds") ppl.legend(ax) ax.set_title("Bay To Breakers Speeds (Seconds per Mile)") fig.savefig("b2bwinningtimescorrected.png") else: Ym = convert_times(men) Xm = convert_dates(men) ppl.scatter(ax,Xm,Ym,label="Men's Times") Yw = convert_times(women) Xw = convert_dates(women) ppl.scatter(ax,Xw,Yw,label="Women's Times") ppl.legend(ax) ax.set_title("Bay To Breakers times (seconds)") fig.savefig("b2bwinningtimes.png") #fig.show() ###First, Raw Graph### def scatter_plot(x,y,title,save,l): ppl.scatter(ax,x,y) ax.set_title(title) ppl.show() if save: ax.set fig.savefig(l)
[ "e.warfel@gmail.com" ]
e.warfel@gmail.com
25698a53f3c48e8ca2f2ab97dd86c6560b86c715
08579903ae523e56179f7adc3f4fd14633850c92
/app.py
652f8cb954bd4ca2d7e0efc0afa6cefbc332fa41
[]
no_license
nickchow2020/Blogly3
f98a48660281a16a4f0fc9425367d45b4cbedd5d
f0cb299aa551fbb86a9fa53285f65a23bc5ccdc5
refs/heads/main
2023-04-06T10:32:52.111202
2021-04-21T18:09:46
2021-04-21T18:09:46
360,263,673
0
0
null
null
null
null
UTF-8
Python
false
false
5,672
py
"""Blogly application.""" from flask import Flask,request,render_template,redirect from flask_debugtoolbar import DebugToolbarExtension from models import db, connect_db,User,Post,Tag,PostTag app = Flask(__name__) app.debug = True app.config['SECRET_KEY'] = 'is so secret keys' app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql:///blogly' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SQLALCHEMY_ECHO'] = True app.config['DEBUG_TB_INTERCEPT_REDIRECTS'] = False toolbar = DebugToolbarExtension(app) connect_db(app) db.create_all() @app.route("/") def home_page(): return redirect("/users") @app.route("/users") def all_users(): all_user = User.query.all() return render_template("all_user.html",users=all_user) @app.route('/users/new') def add_user_form(): return render_template("add_user.html") @app.route('/users/new',methods=["POST"]) def post_user_form(): first_name = request.form["first_name"] last_name = request.form["last_name"] image_url = request.form["user_url"] new_user = User(first_name=first_name,last_name=last_name,image_url=image_url) db.session.add(new_user) db.session.commit() return redirect('/users') @app.route('/users/<int:user_id>') def user_detail(user_id): target_user = User.query.get(user_id) user_post = Post.query.filter(Post.user_id == user_id) return render_template("user_detail.html",user=target_user,post=user_post) @app.route('/users/<int:user_id>/edit') def edit_user(user_id): target_user = User.query.get(user_id) return render_template("edit_user.html",user=target_user) @app.route('/users/<int:user_id>/edit',methods=["POST"]) def save_edit(user_id): first_name = request.form['first_name'] last_name = request.form['last_name'] image_url = request.form['user_url'] target_user = User.query.get(user_id) target_user.first_name = first_name target_user.last_name = last_name target_user.image_url = image_url db.session.commit() return redirect(f'/users/{user_id}') @app.route('/users/<int:user_id>/delete',methods=["POST"]) def delete_user(user_id): get_user_info = User.query.get(user_id) delete_user = User.query.filter_by(id=user_id).delete() db.session.commit() return render_template('delete_user.html',user=get_user_info) @app.route('/users/<int:user_id>/post/new') def show_post_form(user_id): user = User.query.get(user_id) tags = Tag.query.all() return render_template('post_form.html',user=user,tags=tags) @app.route('/users/<int:user_id>/post/new',methods=["POST"]) def post_form(user_id): title = request.form['title'] content = request.form['content'] all_check = request.form.getlist("chkbox") tags = [int(tag) for tag in all_check] new_post = Post(title=title,content=content,user_id=user_id) db.session.add(new_post) db.session.commit() post_tag = [PostTag(post_id=new_post.id,tag_id=id) for id in tags] db.session.add_all(post_tag) db.session.commit() return redirect(f'/users/{user_id}') @app.route('/posts/<int:post_id>') def add_post(post_id): post = Post.query.get(post_id) all_tags = post.tag return render_template("post_detail.html",post=post,tags=all_tags) @app.route('/posts/<int:post_id>/edit') def show_post_edit(post_id): post = Post.query.get(post_id) tags = Tag.query.all() current_tag = [kd.id for kd in post.tag] return render_template('post_edit.html',post=post,tags=tags,current_tag=current_tag) @app.route("/posts/<int:post_id>/edit",methods=["POST"]) def post_edit(post_id): post = Post.query.get(post_id) tags = Tag.query.all() title = request.form["title"] content = request.form["content"] checkbox_value = request.form.getlist("chkbox") PostTag.query.filter(PostTag.post_id == post_id).delete() update_tag = [PostTag(post_id=post_id,tag_id=hk) for hk in checkbox_value] post.title = title post.content = content db.session.add(post) db.session.add_all(update_tag) db.session.commit() return redirect(f"/posts/{post_id}") @app.route("/posts/<int:post_id>/delete",methods=["POST"]) def post_delete(post_id): user = Post.query.filter_by(id=post_id) target_user = user.first() user_id = target_user.user.id user.delete() db.session.commit() return redirect(f"/users/{user_id}") @app.route("/tags") def list_tags(): tags = Tag.query.all() return render_template('all_tag_list.html',tags=tags) @app.route("/tags/<int:tag_id>") def show_tag_detail(tag_id): tag = Tag.query.get(tag_id) the_post = tag.posts return render_template("show_tag.html",tag=tag,posts=the_post) @app.route("/tags/new") def add_new_tag_form(): return render_template('add_tag_form.html') @app.route("/tags/new",methods=["POST"]) def post_new_tag(): tag_value = request.form["tag"] tag = Tag(name=tag_value) db.session.add(tag) db.session.commit() return redirect("/tags") @app.route("/tags/<int:tag_id>/edit") def edit_tag(tag_id): target_tag = Tag.query.get(tag_id) return render_template("edit_tag.html",the_tag=target_tag) @app.route("/tags/<int:tag_id>/edit",methods=["POST"]) def add_post_update(tag_id): tag_to_update = Tag.query.get(tag_id) update_value = request.form["update_tag"] tag_to_update.name = update_value db.session.add(tag_to_update) db.session.commit() return redirect("/tags") @app.route("/tags/<int:tag_id>/delete",methods=["POST"]) def delete_tag(tag_id): Tag.query.filter(Tag.id==tag_id).delete() db.session.commit() return redirect("/tags")
[ "smz1680@gmail.com" ]
smz1680@gmail.com
aa2bf794fbefc8ba02e7bd0690048b97c3187d48
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/63/usersdata/199/28126/submittedfiles/swamee.py
cd633465c8b21b1ffa6e4905d84c1c9aebe4d19e
[]
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
401
py
# -*- coding: utf-8 -*- import math f = 0.2 L = 5000 Q = 0.65 DeltaH = 22 v = 0.000001 g = float(input('Digite o valor de g: ')) e = float (input('Digite o valor de e: ')) Pi = float (input('Digite o valor de Pi: ')) D = (8*f*L*Q*Q) / (Pi*Pi*g*DeltaH) * (8*f*L*Q*Q) / (Pi*Pi*g*DeltaH) * (8*f*L*Q*Q) / (Pi*Pi*g*DeltaH) * (8*f*L*Q*Q) / (Pi*Pi*g*DeltaH) *(8*f*L*Q*Q) / (Pi*Pi*g*DeltaH) print ('%2f' % D )
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
08eb52f772563b9f076ef02197e2496f8fe2e369
cb82ff3240e4367902d8169c60444a6aa019ffb6
/python2.7/site-packages/twisted/internet/iocpreactor/proactor.py
d0c56ee2b5ab91e535cfa2ef84414f6eb6cd0935
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Python-2.0", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft" ]
permissive
icepaule/sslstrip-hsts-openwrt
0a8097af96beef4c48fcfa0b858367829b4dffdc
d5a2a18d2ac1cdb9a64fbf47235b87b9ebc24536
refs/heads/master
2020-12-31T10:22:04.618312
2020-02-07T18:39:08
2020-02-07T18:39:08
238,998,188
0
0
MIT
2020-02-07T18:35:59
2020-02-07T18:35:58
null
UTF-8
Python
false
false
4,269
py
# Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. from twisted.internet import defer, base, main from twisted.internet.interfaces import IReactorTCP, IReactorUDP, IReactorMulticast, IReactorArbitrary, IReactorProcess from twisted.python import threadable, log, reflect from zope.interface import implements, implementsOnly import tcp, udp, process, process_waiter from _iocp import iocpcore class Proactor(iocpcore, base.ReactorBase, log.Logger): # IReactorSSL (or leave it until exarkun finishes TLS) # IReactorCore (cleanup) implementsOnly(IReactorTCP, IReactorUDP, IReactorMulticast, IReactorArbitrary, IReactorProcess) handles = None iocp = None def __init__(self): iocpcore.__init__(self) base.ReactorBase.__init__(self) self.logstr = reflect.qual(self.__class__) self.processWaiter = process_waiter.ProcessWaiter(self) # self.completables = {} def startRunning(self): threadable.registerAsIOThread() self.fireSystemEvent('startup') self.running = 1 def run(self): self.startRunning() self.mainLoop() def mainLoop(self): while self.running: try: while self.running: # Advance simulation time in delayed event # processors. self.runUntilCurrent() t2 = self.timeout() t = self.running and t2 self.doIteration(t) except KeyboardInterrupt: self.stop() except: log.msg("Unexpected error in main loop.") log.deferr() else: log.msg('Main loop terminated.') def removeAll(self): return [] def installWaker(self): pass def wakeUp(self): def ignore(ret, bytes, arg): pass if not threadable.isInIOThread(): self.issuePostQueuedCompletionStatus(ignore, None) def listenTCP(self, port, factory, backlog=50, interface=''): p = tcp.Port((interface, port), factory, backlog) p.startListening() return p def connectTCP(self, host, port, factory, timeout=30, bindAddress=None): c = tcp.Connector((host, port), factory, timeout, bindAddress) c.connect() return c def listenUDP(self, port, protocol, interface='', maxPacketSize=8192): p = udp.Port((interface, port), protocol, maxPacketSize) p.startListening() return p def listenMulticast(self, port, protocol, interface='', maxPacketSize=8192, listenMultiple=False): p = udp.MulticastPort((interface, port), protocol, maxPacketSize) p.startListening() return p def connectUDPblah(self, remotehost, remoteport, protocol, localport=0, interface='', maxPacketSize=8192): p = udp.ConnectedPort((remotehost, remoteport), (interface, localport), protocol, maxPacketSize) p.startListening() return p def listenWith(self, portType, *args, **kw): p = portType(*args, **kw) p.startListening() return p def connectWith(self, connectorType, *args, **kw): c = connectorType(*args, **kw) c.connect() return c def spawnProcess(self, processProtocol, executable, args=(), env={}, path=None, uid=None, gid=None, usePTY=0, childFDs=None): """Spawn a process.""" if uid is not None: raise ValueError("Setting UID is unsupported on this platform.") if gid is not None: raise ValueError("Setting GID is unsupported on this platform.") if usePTY: raise ValueError("PTYs are unsupported on this platform.") if childFDs is not None: raise ValueError( "Custom child file descriptor mappings are unsupported on " "this platform.") return process.Process(self, processProtocol, executable, args, env, path) def logPrefix(self): return self.logstr def install(): from twisted.python import threadable p = Proactor() threadable.init() main.installReactor(p)
[ "adde88@gmail.com" ]
adde88@gmail.com
4d112847a93a8c6994fe3cb73129d41c8234c14e
a86ca34e23afaf67fdf858df9e47847606b23e0c
/lib/temboo/Library/Google/AdSenseHost/AccountService/AssociateAccount.py
a2002b6589325ddb430399d9cbd790b035f02f78
[]
no_license
miriammelnick/dont-get-mugged
6026ad93c910baaecbc3f5477629b0322e116fa8
1613ee636c027ccc49c3f84a5f186e27de7f0f9d
refs/heads/master
2021-01-13T02:18:39.599323
2012-08-12T23:25:47
2012-08-12T23:25:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,869
py
############################################################################### # # AssociateAccount # Creates an association between the developer and the publisher. If an association already exists, the method does nothing. # # Python version 2.6 # ############################################################################### from temboo.core.choreography import Choreography from temboo.core.choreography import InputSet from temboo.core.choreography import ResultSet from temboo.core.choreography import ChoreographyExecution class AssociateAccount(Choreography): """ Create a new instance of the AssociateAccount Choreography. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. """ def __init__(self, temboo_session): Choreography.__init__(self, temboo_session, '/Library/Google/AdSenseHost/AccountService/AssociateAccount') def new_input_set(self): return AssociateAccountInputSet() def _make_result_set(self, result, path): return AssociateAccountResultSet(result, path) def _make_execution(self, session, exec_id, path): return AssociateAccountChoreographyExecution(session, exec_id, path) """ An InputSet with methods appropriate for specifying the inputs to the AssociateAccount choreography. The InputSet object is used to specify input parameters when executing this choreo. """ class AssociateAccountInputSet(InputSet): """ Set the value of the DeveloperURL input for this choreography. ((string) The site to be associated with this publisher.) """ def set_DeveloperURL(self, value): InputSet._set_input(self, 'DeveloperURL', value) """ Set the value of the Email input for this choreography. ((string) The developer's email address.) """ def set_Email(self, value): InputSet._set_input(self, 'Email', value) """ Set the value of the Endpoint input for this choreography. ((optional, string) One of either 'sandbox.google.com' (for testing) or 'www.google.com'. Defaults to 'sandbox.google.com'.) """ def set_Endpoint(self, value): InputSet._set_input(self, 'Endpoint', value) """ Set the value of the Password input for this choreography. ((string) The developer's password.) """ def set_Password(self, value): InputSet._set_input(self, 'Password', value) """ Set the value of the Phone input for this choreography. ((integer) The last five digits of the publisher's phone number, in the form '99999'.) """ def set_Phone(self, value): InputSet._set_input(self, 'Phone', value) """ Set the value of the PostalCode input for this choreography. ((integer) The publisher's 5-digit postal code.) """ def set_PostalCode(self, value): InputSet._set_input(self, 'PostalCode', value) """ Set the value of the PublisherEmail input for this choreography. ((string) The publisher's email address.) """ def set_PublisherEmail(self, value): InputSet._set_input(self, 'PublisherEmail', value) """ A ResultSet with methods tailored to the values returned by the AssociateAccount choreography. The ResultSet object is used to retrieve the results of a choreography execution. """ class AssociateAccountResultSet(ResultSet): """ Retrieve the value for the "Response" output from this choreography execution. ((XML) The response from Google AdSense.) """ def get_Response(self): return self._output.get('Response', None) class AssociateAccountChoreographyExecution(ChoreographyExecution): def _make_result_set(self, response, path): return AssociateAccountResultSet(response, path)
[ "miriam@famulus" ]
miriam@famulus
659418c4f4ce4f567043d1d3fbdcc25e67156f9d
fc6857211e26b64faa590160deaac800cb1d88f7
/build/evaluation_tasks/catkin_generated/pkg.develspace.context.pc.py
24b8f484c87a5fe3042f7d63d241d1977825ccea
[]
no_license
gogovberg/ros
b81beee1667571e2c9360e55bada73c89f41f383
d0e2d48e7969716bbb22cde1d506ee7ccb3475ef
refs/heads/master
2018-10-13T00:53:16.562502
2018-07-17T09:13:42
2018-07-17T09:13:42
109,824,103
1
0
null
null
null
null
UTF-8
Python
false
false
378
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "evaluation_tasks" PROJECT_SPACE_DIR = "/home/odroid/catkin_ws/devel" PROJECT_VERSION = "0.0.0"
[ "gogov91a@gmail.com" ]
gogov91a@gmail.com
1678e91ce5ace5e40a3c35cb1e04ba57b28ca950
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/scipy/fft/tests/test_fft_function.py
835503e486dc0f4ab1d610bc47c359c5b66d3bf3
[]
no_license
Akira331/flask-cifar10
6c49db8485038731ce67d23f0972b9574746c7a7
283e7a2867c77d4b6aba7aea9013bf241d35d76c
refs/heads/master
2023-06-14T16:35:06.384755
2021-07-05T14:09:15
2021-07-05T14:09:15
382,864,970
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:51262535b88c6a0bcef89f60213a99cbef3acba3e2edfd888d594c685645fde5 size 1137
[ "business030301@gmail.com" ]
business030301@gmail.com
3513f7dc658ee9e5b6ebec3533b1c5084f078c7d
bed353201256a9589977f6331a1a104e2ef49c46
/S03_Ground_sensor/controllers/S03_Ground_measurement/plot_gs.py
7f44f5ad9cae2d538c72a20d3d48c62c9d5956da
[]
no_license
loriswit/robotics
810529fc472ea1249ad08f4401dc30796e7df841
e6bbc84e2209702600301127ff2b83d5af147679
refs/heads/master
2021-03-30T15:33:34.592272
2018-04-09T14:21:53
2018-04-09T14:21:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
#******************************************************************************************** # Calibration Plot Demo # # Description: Plot data from CSV file. # Author: Beat Hirsbrunner, Julien Nembrini, Simon Studer (University of Fribourg) # Version: 1.0 (2016-03-03) #******************************************************************************************** from pandas import * import pandas import numpy as np import matplotlib.pyplot as plt # config FILENAME='gs.csv' # get data from CSV file calib = read_csv(FILENAME, index_col=0) calib.drop(calib.columns[3], axis=1, inplace = True) # plot data calib.plot(figsize=(12,9)) plt.legend(loc='upper right') plt.show()
[ "loris.wit@gmail.com" ]
loris.wit@gmail.com
7d3e67fea8f8560ecfc0d49c34db2b098f5dc649
3ffee2f7569bac4d595dba7bd29f55cb8c69e34f
/crawler.py
b08d44e3bc1b4ee78e0e22799e516cc94bcba9fc
[]
no_license
ycw517/C001_PttCrawler
32d30cb1043356195a0371540c4036b327d5280a
b3c98dba593f89463ecf38d6ab075a322541dd32
refs/heads/master
2022-12-16T16:18:01.663138
2020-09-15T09:44:58
2020-09-15T09:44:58
267,609,650
0
0
null
null
null
null
UTF-8
Python
false
false
9,027
py
#-*- coding: UTF-8 -*- import sys import concurrent.futures import requests import urllib3 import os import logging import uuid from bs4 import BeautifulSoup urllib3.disable_warnings() logging.basicConfig(level=logging.WARNING) HTTP_ERROR_MSG = 'HTTP error {res.status_code} - {res.reason}' save_path = '/mnt/smb/PttImg/' class PttSpider: rs = requests.session() ptt_head = 'https://www.ptt.cc' ptt_middle = 'bbs' parser_page_count = 5 push_rate = 10 def __init__(self, **kwargs): self._board = kwargs.get('board', None) self.parser_page = int(kwargs.get('parser_page', self.parser_page_count)) self.push_rate = int(kwargs.get('push_rate', self.push_rate)) self._soup = None self._index_seqs = None self._articles = [] @property def info(self): return self._articles @property def board(self): return self._board.capitalize() def run(self): self._soup = self.check_board() self._index_seqs = self.parser_index() self._articles = self.parser_per_article_url() self.analyze_articles() self.crawler_img_urls() def run_specific_article(self, article): self._board = article.url.split('/')[-2] self.check_board_over18() self._articles = [article] self.analyze_articles() self.crawler_img_urls(True) def check_board(self): print('check board......') if self._board: return self.check_board_over18() else: print("請輸入看版名稱") sys.exit() def check_board_over18(self): load = { 'from': '/{}/{}/index.html'.format(self.ptt_middle, self._board), 'yes': 'yes' } try: res = self.rs.post('{}/ask/over18'.format(self.ptt_head), verify=False, data=load) res.raise_for_status() except requests.exceptions.HTTPError as exc: logging.warning(HTTP_ERROR_MSG.format(res=exc.response)) raise Exception('網頁有問題') return BeautifulSoup(res.text, 'html.parser') def parser_index(self): print('parser index......') max_page = self.get_max_page(self._soup.select('.btn.wide')[1]['href']) return ( '{}/{}/{}/index{}.html'.format(self.ptt_head, self.ptt_middle, self._board, page) for page in range(max_page - self.parser_page + 1, max_page + 1, 1) ) def parser_per_article_url(self): print('parser per article url......') articles = [] for page in self._index_seqs: try: res = self.rs.get(page, verify=False) res.raise_for_status() except requests.exceptions.HTTPError as exc: logging.warning(HTTP_ERROR_MSG.format(res=exc.response)) except requests.exceptions.ConnectionError: logging.error('Connection error') else: articles += self.crawler_info(res, self.push_rate) return articles def analyze_articles(self): for article in self._articles: try: logging.debug('{}{} ing......'.format(self.ptt_head, article.url)) res = self.rs.get('{}{}'.format(self.ptt_head, article.url), verify=False) res.raise_for_status() except requests.exceptions.HTTPError as exc: logging.warning(HTTP_ERROR_MSG.format(res=exc.response)) except requests.exceptions.ConnectionError: logging.error('Connection error') else: article.res = res def crawler_img_urls(self, is_content_parser=False): for data in self._articles: print('crawler image urls......') soup = BeautifulSoup(data.res.text, 'html.parser') title = str(uuid.uuid4()) if is_content_parser: # 避免有些文章會被使用者自行刪除標題列 try: title = soup.select('.article-meta-value')[2].text except Exception as e: logging.debug('自行刪除標題列:', e) finally: data.title = title # 抓取圖片URL(img tag ) for img in soup.find_all("a", rel='nofollow'): data.img_urls += self.image_url(img['href']) @staticmethod def image_url(link): # 不抓相簿 和 .gif if ('imgur.com/a/' in link) or ('imgur.com/gallery/' in link) or ('.gif' in link): return [] # 符合圖片格式的網址 images_format = ['.jpg', '.png', '.jpeg'] for image in images_format: if link.endswith(image): return [link] # 有些網址會沒有檔案格式, "https://imgur.com/xxx" if 'imgur' in link: return ['{}.jpg'.format(link)] return [] @staticmethod def crawler_info(res, push_rate): logging.debug('crawler_info......{}'.format(res.url)) soup = BeautifulSoup(res.text, 'html.parser') articles = [] for r_ent in soup.find_all(class_="r-ent"): try: # 先得到每篇文章的 url url = r_ent.find('a')['href'] if not url: continue title = r_ent.find(class_="title").text.strip() rate_text = r_ent.find(class_="nrec").text author = r_ent.find(class_="author").text if rate_text: if rate_text.startswith('爆'): rate = 100 elif rate_text.startswith('X'): rate = -1 * int(rate_text[1]) else: rate = rate_text else: rate = 0 # 比對推文數 if int(rate) >= push_rate: articles.append(ArticleInfo( title=title, author=author, url=url, rate=rate)) except Exception as e: logging.debug('本文已被刪除') logging.debug(e) return articles @staticmethod def get_max_page(content): start_index = content.find('index') end_index = content.find('.html') page_number = content[start_index + 5: end_index] return int(page_number) + 1 class ArticleInfo: def __init__(self, **kwargs): self.title = kwargs.get('title', None) self.author = kwargs.get('author', None) self.url = kwargs.get('url', None) self.rate = kwargs.get('rate', None) self.img_urls = [] self.res = None @staticmethod def data_process(info, crawler_time): result = [] for data in info: if not data.img_urls: continue dir_name = '{}'.format(ArticleInfo.remove_special_char(data.title, '\/:*?"<>|.')) dir_name += '_{}'.format(data.rate) if data.rate else '' relative_path = os.path.join(crawler_time, dir_name) #print (crawler_time) #print (dir_name) #print (relative_path ) path = os.path.join( save_path ,relative_path ) #os.path.abspath(relative_path) #print (path) try: if not os.path.exists(path): os.makedirs(path) result += [(img_url, path) for img_url in data] except Exception as e: logging.warning(e) return result @staticmethod def remove_special_char(value, deletechars): # 移除特殊字元(移除Windows上無法作為資料夾的字元) for c in deletechars: value = value.replace(c, '') return value.rstrip() def __iter__(self): for url in self.img_urls: yield url class Download: rs = requests.session() def __init__(self, info): self.info = info def run(self): with concurrent.futures.ProcessPoolExecutor() as executor: executor.map(self.download, self.info) def download(self, image_info): url, path = image_info try: res_img = self.rs.get(url, stream=True, verify=False) logging.debug('download image {} ......'.format(url)) res_img.raise_for_status() except requests.exceptions.HTTPError as exc: logging.warning(HTTP_ERROR_MSG.format(res=exc.response)) logging.warning(url) except requests.exceptions.ConnectionError: logging.error('Connection error') else: file_name = url.split('/')[-1] file = os.path.join(path, file_name) try: with open(file, 'wb') as out_file: out_file.write(res_img.content) except Exception as e: logging.warning(e)
[ "ycw517@gmail.com" ]
ycw517@gmail.com
f2ef2bd6bf166763583d87003fe42f71739d3279
c7953bb04fc89ca9d282765813030a2e2c0b6f74
/Core/venv/Lib/site-packages/PySide2/QtNetwork.pyi
bde22f01b57ec0a34231e4c6c2778c6d93d64497
[]
no_license
Lxdsmall/Serial-and-Linechart
27259f7d5f1048f45af111ce80ee5d1ff3a8c56e
4f2a180b3b6b0e84badec44abb63b2b3367a3eac
refs/heads/master
2020-04-17T21:59:08.933491
2019-03-13T14:06:37
2019-03-13T14:06:37
166,974,912
1
0
null
null
null
null
UTF-8
Python
false
false
65,650
pyi
# This Python file uses the following encoding: utf-8 ############################################################################# ## ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: https://www.qt.io/licensing/ ## ## This file is part of Qt for Python. ## ## $QT_BEGIN_LICENSE:LGPL$ ## Commercial License Usage ## Licensees holding valid commercial Qt licenses may use this file in ## accordance with the commercial license agreement provided with the ## Software or, alternatively, in accordance with the terms contained in ## a written agreement between you and The Qt Company. For licensing terms ## and conditions see https://www.qt.io/terms-conditions. For further ## information use the contact form at https://www.qt.io/contact-us. ## ## GNU Lesser General Public License Usage ## Alternatively, this file may be used under the terms of the GNU Lesser ## General Public License version 3 as published by the Free Software ## Foundation and appearing in the file LICENSE.LGPL3 included in the ## packaging of this file. Please review the following information to ## ensure the GNU Lesser General Public License version 3 requirements ## will be met: https://www.gnu.org/licenses/lgpl-3.0.html. ## ## GNU General Public License Usage ## Alternatively, this file may be used under the terms of the GNU ## General Public License version 2.0 or (at your option) the GNU General ## Public license version 3 or any later version approved by the KDE Free ## Qt Foundation. The licenses are as published by the Free Software ## Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 ## included in the packaging of this file. Please review the following ## information to ensure the GNU General Public License requirements will ## be met: https://www.gnu.org/licenses/gpl-2.0.html and ## https://www.gnu.org/licenses/gpl-3.0.html. ## ## $QT_END_LICENSE$ ## ############################################################################# """ This file contains the exact signatures for all functions in module PySide2.QtNetwork, except for defaults which are replaced by "...". """ # Module PySide2.QtNetwork import shiboken2 as Shiboken from PySide2.support.signature import typing from PySide2.support.signature.mapping import ( Virtual, Missing, Invalid, Default, Instance) class Object(object): pass Shiboken.Object = Object import PySide2.QtCore import PySide2.QtNetwork class QAbstractNetworkCache(PySide2.QtCore.QObject): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def cacheSize(self) -> int: ... def clear(self): ... def data(self, url:PySide2.QtCore.QUrl) -> PySide2.QtCore.QIODevice: ... def insert(self, device:PySide2.QtCore.QIODevice): ... def metaData(self, url:PySide2.QtCore.QUrl) -> PySide2.QtNetwork.QNetworkCacheMetaData: ... def prepare(self, metaData:PySide2.QtNetwork.QNetworkCacheMetaData) -> PySide2.QtCore.QIODevice: ... def remove(self, url:PySide2.QtCore.QUrl) -> bool: ... def updateMetaData(self, metaData:PySide2.QtNetwork.QNetworkCacheMetaData): ... class QAbstractSocket(PySide2.QtCore.QIODevice): def __init__(self, socketType:PySide2.QtNetwork.QAbstractSocket.SocketType, parent:PySide2.QtCore.QObject): ... def abort(self): ... def atEnd(self) -> bool: ... @typing.overload def bind(self, address:PySide2.QtNetwork.QHostAddress, port:int=..., mode:PySide2.QtNetwork.QAbstractSocket.BindMode=...) -> bool: ... @typing.overload def bind(self, port:int=..., mode:PySide2.QtNetwork.QAbstractSocket.BindMode=...) -> bool: ... def bytesAvailable(self) -> int: ... def bytesToWrite(self) -> int: ... def canReadLine(self) -> bool: ... def close(self): ... @typing.overload def connectToHost(self, address:PySide2.QtNetwork.QHostAddress, port:int, mode:PySide2.QtCore.QIODevice.OpenMode=...): ... @typing.overload def connectToHost(self, hostName:str, port:int, mode:PySide2.QtCore.QIODevice.OpenMode=..., protocol:PySide2.QtNetwork.QAbstractSocket.NetworkLayerProtocol=...): ... def disconnectFromHost(self): ... def error(self) -> PySide2.QtNetwork.QAbstractSocket.SocketError: ... def flush(self) -> bool: ... def isSequential(self) -> bool: ... def isValid(self) -> bool: ... def localAddress(self) -> PySide2.QtNetwork.QHostAddress: ... def localPort(self) -> int: ... def pauseMode(self) -> PySide2.QtNetwork.QAbstractSocket.PauseModes: ... def peerAddress(self) -> PySide2.QtNetwork.QHostAddress: ... def peerName(self) -> str: ... def peerPort(self) -> int: ... def proxy(self) -> PySide2.QtNetwork.QNetworkProxy: ... def readBufferSize(self) -> int: ... def readData(self, data:str, maxlen:int) -> int: ... def readLineData(self, data:str, maxlen:int) -> int: ... def resume(self): ... def setLocalAddress(self, address:PySide2.QtNetwork.QHostAddress): ... def setLocalPort(self, port:int): ... def setPauseMode(self, pauseMode:PySide2.QtNetwork.QAbstractSocket.PauseModes): ... def setPeerAddress(self, address:PySide2.QtNetwork.QHostAddress): ... def setPeerName(self, name:str): ... def setPeerPort(self, port:int): ... def setProxy(self, networkProxy:PySide2.QtNetwork.QNetworkProxy): ... def setReadBufferSize(self, size:int): ... def setSocketDescriptor(self, socketDescriptor:int, state:PySide2.QtNetwork.QAbstractSocket.SocketState=..., openMode:PySide2.QtCore.QIODevice.OpenMode=...) -> bool: ... def setSocketError(self, socketError:PySide2.QtNetwork.QAbstractSocket.SocketError): ... def setSocketOption(self, option:PySide2.QtNetwork.QAbstractSocket.SocketOption, value:typing.Any): ... def setSocketState(self, state:PySide2.QtNetwork.QAbstractSocket.SocketState): ... def socketDescriptor(self) -> int: ... def socketOption(self, option:PySide2.QtNetwork.QAbstractSocket.SocketOption) -> typing.Any: ... def socketType(self) -> PySide2.QtNetwork.QAbstractSocket.SocketType: ... def state(self) -> PySide2.QtNetwork.QAbstractSocket.SocketState: ... def waitForBytesWritten(self, msecs:int=...) -> bool: ... def waitForConnected(self, msecs:int=...) -> bool: ... def waitForDisconnected(self, msecs:int=...) -> bool: ... def waitForReadyRead(self, msecs:int=...) -> bool: ... def writeData(self, data:str, len:int) -> int: ... class QAuthenticator(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QAuthenticator): ... def __copy__(self): ... def isNull(self) -> bool: ... def option(self, opt:str) -> typing.Any: ... def options(self) -> dict: ... def password(self) -> str: ... def realm(self) -> str: ... def setOption(self, opt:str, value:typing.Any): ... def setPassword(self, password:str): ... def setRealm(self, realm:str): ... def setUser(self, user:str): ... def user(self) -> str: ... class QDnsDomainNameRecord(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QDnsDomainNameRecord): ... def __copy__(self): ... def name(self) -> str: ... def swap(self, other:PySide2.QtNetwork.QDnsDomainNameRecord): ... def timeToLive(self) -> int: ... def value(self) -> str: ... class QDnsHostAddressRecord(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QDnsHostAddressRecord): ... def __copy__(self): ... def name(self) -> str: ... def swap(self, other:PySide2.QtNetwork.QDnsHostAddressRecord): ... def timeToLive(self) -> int: ... def value(self) -> PySide2.QtNetwork.QHostAddress: ... class QDnsLookup(PySide2.QtCore.QObject): @typing.overload def __init__(self, parent:PySide2.QtCore.QObject=...): ... @typing.overload def __init__(self, type:PySide2.QtNetwork.QDnsLookup.Type, name:str, nameserver:PySide2.QtNetwork.QHostAddress, parent:PySide2.QtCore.QObject=...): ... @typing.overload def __init__(self, type:PySide2.QtNetwork.QDnsLookup.Type, name:str, parent:PySide2.QtCore.QObject=...): ... def abort(self): ... def canonicalNameRecords(self) -> PySide2.QtNetwork.QDnsDomainNameRecord: ... def error(self) -> PySide2.QtNetwork.QDnsLookup.Error: ... def errorString(self) -> str: ... def hostAddressRecords(self) -> PySide2.QtNetwork.QDnsHostAddressRecord: ... def isFinished(self) -> bool: ... def lookup(self): ... def mailExchangeRecords(self) -> PySide2.QtNetwork.QDnsMailExchangeRecord: ... def name(self) -> str: ... def nameServerRecords(self) -> PySide2.QtNetwork.QDnsDomainNameRecord: ... def nameserver(self) -> PySide2.QtNetwork.QHostAddress: ... def pointerRecords(self) -> PySide2.QtNetwork.QDnsDomainNameRecord: ... def serviceRecords(self) -> PySide2.QtNetwork.QDnsServiceRecord: ... def setName(self, name:str): ... def setNameserver(self, nameserver:PySide2.QtNetwork.QHostAddress): ... def setType(self, arg__1:PySide2.QtNetwork.QDnsLookup.Type): ... def textRecords(self) -> PySide2.QtNetwork.QDnsTextRecord: ... def type(self) -> PySide2.QtNetwork.QDnsLookup.Type: ... class QDnsMailExchangeRecord(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QDnsMailExchangeRecord): ... def __copy__(self): ... def exchange(self) -> str: ... def name(self) -> str: ... def preference(self) -> int: ... def swap(self, other:PySide2.QtNetwork.QDnsMailExchangeRecord): ... def timeToLive(self) -> int: ... class QDnsServiceRecord(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QDnsServiceRecord): ... def __copy__(self): ... def name(self) -> str: ... def port(self) -> int: ... def priority(self) -> int: ... def swap(self, other:PySide2.QtNetwork.QDnsServiceRecord): ... def target(self) -> str: ... def timeToLive(self) -> int: ... def weight(self) -> int: ... class QDnsTextRecord(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QDnsTextRecord): ... def __copy__(self): ... def name(self) -> str: ... def swap(self, other:PySide2.QtNetwork.QDnsTextRecord): ... def timeToLive(self) -> int: ... def values(self) -> PySide2.QtCore.QByteArray: ... class QDtls(PySide2.QtCore.QObject): def __init__(self, mode:PySide2.QtNetwork.QSslSocket.SslMode, parent:PySide2.QtCore.QObject=...): ... def abortHandshake(self, socket:PySide2.QtNetwork.QUdpSocket) -> bool: ... def decryptDatagram(self, socket:PySide2.QtNetwork.QUdpSocket, dgram:PySide2.QtCore.QByteArray) -> PySide2.QtCore.QByteArray: ... def doHandshake(self, socket:PySide2.QtNetwork.QUdpSocket, dgram:PySide2.QtCore.QByteArray=...) -> bool: ... def dtlsConfiguration(self) -> PySide2.QtNetwork.QSslConfiguration: ... def dtlsError(self) -> PySide2.QtNetwork.QDtlsError: ... def dtlsErrorString(self) -> str: ... def handleTimeout(self, socket:PySide2.QtNetwork.QUdpSocket) -> bool: ... def handshakeState(self) -> PySide2.QtNetwork.QDtls.HandshakeState: ... def ignoreVerificationErrors(self, errorsToIgnore:list): ... def isConnectionEncrypted(self) -> bool: ... def mtuHint(self) -> int: ... def peerAddress(self) -> PySide2.QtNetwork.QHostAddress: ... def peerPort(self) -> int: ... def peerVerificationErrors(self) -> PySide2.QtNetwork.QSslError: ... def peerVerificationName(self) -> str: ... def resumeHandshake(self, socket:PySide2.QtNetwork.QUdpSocket) -> bool: ... def sessionCipher(self) -> PySide2.QtNetwork.QSslCipher: ... def sessionProtocol(self) -> PySide2.QtNetwork.QSsl.SslProtocol: ... def setDtlsConfiguration(self, configuration:PySide2.QtNetwork.QSslConfiguration) -> bool: ... def setMtuHint(self, mtuHint:int): ... def setPeer(self, address:PySide2.QtNetwork.QHostAddress, port:int, verificationName:str=...) -> bool: ... def setPeerVerificationName(self, name:str) -> bool: ... def shutdown(self, socket:PySide2.QtNetwork.QUdpSocket) -> bool: ... def sslMode(self) -> PySide2.QtNetwork.QSslSocket.SslMode: ... def writeDatagramEncrypted(self, socket:PySide2.QtNetwork.QUdpSocket, dgram:PySide2.QtCore.QByteArray) -> int: ... class QHostAddress(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, address:PySide2.QtNetwork.QHostAddress.SpecialAddress): ... @typing.overload def __init__(self, address:str): ... @typing.overload def __init__(self, copy:PySide2.QtNetwork.QHostAddress): ... @typing.overload def __init__(self, ip4Addr:int): ... @typing.overload def __init__(self, ip6Addr:PySide2.QtNetwork.QIPv6Address): ... def __copy__(self): ... def __lshift__(self, arg__1:PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream: ... def __rshift__(self, arg__1:PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream: ... def clear(self): ... def isBroadcast(self) -> bool: ... def isEqual(self, address:PySide2.QtNetwork.QHostAddress, mode:PySide2.QtNetwork.QHostAddress.ConversionMode=...) -> bool: ... def isGlobal(self) -> bool: ... @typing.overload def isInSubnet(self, subnet:PySide2.QtNetwork.QHostAddress, netmask:int) -> bool: ... @typing.overload def isInSubnet(self, subnet:typing.Tuple) -> bool: ... def isLinkLocal(self) -> bool: ... def isLoopback(self) -> bool: ... def isMulticast(self) -> bool: ... def isNull(self) -> bool: ... def isSiteLocal(self) -> bool: ... def isUniqueLocalUnicast(self) -> bool: ... @staticmethod def parseSubnet(subnet:str) -> typing.Tuple: ... def protocol(self) -> PySide2.QtNetwork.QAbstractSocket.NetworkLayerProtocol: ... def scopeId(self) -> str: ... @typing.overload def setAddress(self, address:PySide2.QtNetwork.QHostAddress.SpecialAddress): ... @typing.overload def setAddress(self, address:str) -> bool: ... @typing.overload def setAddress(self, ip4Addr:int): ... @typing.overload def setAddress(self, ip6Addr:PySide2.QtNetwork.QIPv6Address): ... def setScopeId(self, id:str): ... def swap(self, other:PySide2.QtNetwork.QHostAddress): ... @typing.overload def toIPv4Address(self) -> int: ... @typing.overload def toIPv4Address(self, ok:bool) -> int: ... def toIPv6Address(self) -> PySide2.QtNetwork.QIPv6Address: ... def toString(self) -> str: ... class QHostInfo(Shiboken.Object): @typing.overload def __init__(self, d:PySide2.QtNetwork.QHostInfo): ... @typing.overload def __init__(self, lookupId:int=...): ... def __copy__(self): ... @staticmethod def abortHostLookup(lookupId:int): ... def addresses(self) -> PySide2.QtNetwork.QHostAddress: ... def error(self) -> PySide2.QtNetwork.QHostInfo.HostInfoError: ... def errorString(self) -> str: ... @staticmethod def fromName(name:str) -> PySide2.QtNetwork.QHostInfo: ... def hostName(self) -> str: ... @staticmethod def localDomainName() -> str: ... @staticmethod def localHostName() -> str: ... def lookupId(self) -> int: ... def setAddresses(self, addresses:list): ... def setError(self, error:PySide2.QtNetwork.QHostInfo.HostInfoError): ... def setErrorString(self, errorString:str): ... def setHostName(self, name:str): ... def setLookupId(self, id:int): ... def swap(self, other:PySide2.QtNetwork.QHostInfo): ... class QHstsPolicy(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, expiry:PySide2.QtCore.QDateTime, flags:PySide2.QtNetwork.QHstsPolicy.PolicyFlags, host:str, mode:PySide2.QtCore.QUrl.ParsingMode=...): ... @typing.overload def __init__(self, rhs:PySide2.QtNetwork.QHstsPolicy): ... def __copy__(self): ... def expiry(self) -> PySide2.QtCore.QDateTime: ... def host(self, options:PySide2.QtCore.QUrl.ComponentFormattingOption=...) -> str: ... def includesSubDomains(self) -> bool: ... def isExpired(self) -> bool: ... def setExpiry(self, expiry:PySide2.QtCore.QDateTime): ... def setHost(self, host:str, mode:PySide2.QtCore.QUrl.ParsingMode=...): ... def setIncludesSubDomains(self, include:bool): ... def swap(self, other:PySide2.QtNetwork.QHstsPolicy): ... class QHttpMultiPart(PySide2.QtCore.QObject): @typing.overload def __init__(self, contentType:PySide2.QtNetwork.QHttpMultiPart.ContentType, parent:PySide2.QtCore.QObject=...): ... @typing.overload def __init__(self, parent:PySide2.QtCore.QObject=...): ... def append(self, httpPart:PySide2.QtNetwork.QHttpPart): ... def boundary(self) -> PySide2.QtCore.QByteArray: ... def setBoundary(self, boundary:PySide2.QtCore.QByteArray): ... def setContentType(self, contentType:PySide2.QtNetwork.QHttpMultiPart.ContentType): ... class QHttpPart(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QHttpPart): ... def __copy__(self): ... def setBody(self, body:PySide2.QtCore.QByteArray): ... def setBodyDevice(self, device:PySide2.QtCore.QIODevice): ... def setHeader(self, header:PySide2.QtNetwork.QNetworkRequest.KnownHeaders, value:typing.Any): ... def setRawHeader(self, headerName:PySide2.QtCore.QByteArray, headerValue:PySide2.QtCore.QByteArray): ... def swap(self, other:PySide2.QtNetwork.QHttpPart): ... class QIPv6Address(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, QIPv6Address:PySide2.QtNetwork.QIPv6Address): ... def __copy__(self): ... class QLocalServer(PySide2.QtCore.QObject): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def close(self): ... def errorString(self) -> str: ... def fullServerName(self) -> str: ... def hasPendingConnections(self) -> bool: ... def incomingConnection(self, socketDescriptor:int): ... def isListening(self) -> bool: ... @typing.overload def listen(self, name:str) -> bool: ... @typing.overload def listen(self, socketDescriptor:int) -> bool: ... def maxPendingConnections(self) -> int: ... def nextPendingConnection(self) -> PySide2.QtNetwork.QLocalSocket: ... @staticmethod def removeServer(name:str) -> bool: ... def serverError(self) -> PySide2.QtNetwork.QAbstractSocket.SocketError: ... def serverName(self) -> str: ... def setMaxPendingConnections(self, numConnections:int): ... def setSocketOptions(self, options:PySide2.QtNetwork.QLocalServer.SocketOptions): ... def socketDescriptor(self) -> int: ... def socketOptions(self) -> PySide2.QtNetwork.QLocalServer.SocketOptions: ... def waitForNewConnection(self, msec:int, timedOut:bool) -> bool: ... class QLocalSocket(PySide2.QtCore.QIODevice): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def abort(self): ... def bytesAvailable(self) -> int: ... def bytesToWrite(self) -> int: ... def canReadLine(self) -> bool: ... def close(self): ... @typing.overload def connectToServer(self, name:str, openMode:PySide2.QtCore.QIODevice.OpenMode=...): ... @typing.overload def connectToServer(self, openMode:PySide2.QtCore.QIODevice.OpenMode=...): ... def disconnectFromServer(self): ... def error(self) -> PySide2.QtNetwork.QLocalSocket.LocalSocketError: ... def flush(self) -> bool: ... def fullServerName(self) -> str: ... def isSequential(self) -> bool: ... def isValid(self) -> bool: ... def open(self, openMode:PySide2.QtCore.QIODevice.OpenMode=...) -> bool: ... def readBufferSize(self) -> int: ... def readData(self, arg__1:str, arg__2:int) -> int: ... def serverName(self) -> str: ... def setReadBufferSize(self, size:int): ... def setServerName(self, name:str): ... def setSocketDescriptor(self, socketDescriptor:int, socketState:PySide2.QtNetwork.QLocalSocket.LocalSocketState=..., openMode:PySide2.QtCore.QIODevice.OpenMode=...) -> bool: ... def socketDescriptor(self) -> int: ... def state(self) -> PySide2.QtNetwork.QLocalSocket.LocalSocketState: ... def waitForBytesWritten(self, msecs:int=...) -> bool: ... def waitForConnected(self, msecs:int=...) -> bool: ... def waitForDisconnected(self, msecs:int=...) -> bool: ... def waitForReadyRead(self, msecs:int=...) -> bool: ... def writeData(self, arg__1:str, arg__2:int) -> int: ... class QNetworkAccessManager(PySide2.QtCore.QObject): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def activeConfiguration(self) -> PySide2.QtNetwork.QNetworkConfiguration: ... def addStrictTransportSecurityHosts(self, knownHosts:list): ... def cache(self) -> PySide2.QtNetwork.QAbstractNetworkCache: ... def clearAccessCache(self): ... def clearConnectionCache(self): ... def configuration(self) -> PySide2.QtNetwork.QNetworkConfiguration: ... def connectToHost(self, hostName:str, port:int=...): ... def connectToHostEncrypted(self, hostName:str, port:int=..., sslConfiguration:PySide2.QtNetwork.QSslConfiguration=...): ... def cookieJar(self) -> PySide2.QtNetwork.QNetworkCookieJar: ... def createRequest(self, op:PySide2.QtNetwork.QNetworkAccessManager.Operation, request:PySide2.QtNetwork.QNetworkRequest, outgoingData:PySide2.QtCore.QIODevice=...) -> PySide2.QtNetwork.QNetworkReply: ... def deleteResource(self, request:PySide2.QtNetwork.QNetworkRequest) -> PySide2.QtNetwork.QNetworkReply: ... def enableStrictTransportSecurityStore(self, enabled:bool, storeDir:str=...): ... def get(self, request:PySide2.QtNetwork.QNetworkRequest) -> PySide2.QtNetwork.QNetworkReply: ... def head(self, request:PySide2.QtNetwork.QNetworkRequest) -> PySide2.QtNetwork.QNetworkReply: ... def isStrictTransportSecurityEnabled(self) -> bool: ... def isStrictTransportSecurityStoreEnabled(self) -> bool: ... def networkAccessible(self) -> PySide2.QtNetwork.QNetworkAccessManager.NetworkAccessibility: ... @typing.overload def post(self, request:PySide2.QtNetwork.QNetworkRequest, data:PySide2.QtCore.QByteArray) -> PySide2.QtNetwork.QNetworkReply: ... @typing.overload def post(self, request:PySide2.QtNetwork.QNetworkRequest, data:PySide2.QtCore.QIODevice) -> PySide2.QtNetwork.QNetworkReply: ... @typing.overload def post(self, request:PySide2.QtNetwork.QNetworkRequest, multiPart:PySide2.QtNetwork.QHttpMultiPart) -> PySide2.QtNetwork.QNetworkReply: ... def proxy(self) -> PySide2.QtNetwork.QNetworkProxy: ... def proxyFactory(self) -> PySide2.QtNetwork.QNetworkProxyFactory: ... @typing.overload def put(self, request:PySide2.QtNetwork.QNetworkRequest, data:PySide2.QtCore.QByteArray) -> PySide2.QtNetwork.QNetworkReply: ... @typing.overload def put(self, request:PySide2.QtNetwork.QNetworkRequest, data:PySide2.QtCore.QIODevice) -> PySide2.QtNetwork.QNetworkReply: ... @typing.overload def put(self, request:PySide2.QtNetwork.QNetworkRequest, multiPart:PySide2.QtNetwork.QHttpMultiPart) -> PySide2.QtNetwork.QNetworkReply: ... def redirectPolicy(self) -> PySide2.QtNetwork.QNetworkRequest.RedirectPolicy: ... @typing.overload def sendCustomRequest(self, request:PySide2.QtNetwork.QNetworkRequest, verb:PySide2.QtCore.QByteArray, data:PySide2.QtCore.QByteArray) -> PySide2.QtNetwork.QNetworkReply: ... @typing.overload def sendCustomRequest(self, request:PySide2.QtNetwork.QNetworkRequest, verb:PySide2.QtCore.QByteArray, data:PySide2.QtCore.QIODevice=...) -> PySide2.QtNetwork.QNetworkReply: ... @typing.overload def sendCustomRequest(self, request:PySide2.QtNetwork.QNetworkRequest, verb:PySide2.QtCore.QByteArray, multiPart:PySide2.QtNetwork.QHttpMultiPart) -> PySide2.QtNetwork.QNetworkReply: ... def setCache(self, cache:PySide2.QtNetwork.QAbstractNetworkCache): ... def setConfiguration(self, config:PySide2.QtNetwork.QNetworkConfiguration): ... def setCookieJar(self, cookieJar:PySide2.QtNetwork.QNetworkCookieJar): ... def setNetworkAccessible(self, accessible:PySide2.QtNetwork.QNetworkAccessManager.NetworkAccessibility): ... def setProxy(self, proxy:PySide2.QtNetwork.QNetworkProxy): ... def setProxyFactory(self, factory:PySide2.QtNetwork.QNetworkProxyFactory): ... def setRedirectPolicy(self, policy:PySide2.QtNetwork.QNetworkRequest.RedirectPolicy): ... def setStrictTransportSecurityEnabled(self, enabled:bool): ... def strictTransportSecurityHosts(self) -> PySide2.QtNetwork.QHstsPolicy: ... def supportedSchemes(self) -> typing.List: ... def supportedSchemesImplementation(self) -> typing.List: ... class QNetworkAddressEntry(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QNetworkAddressEntry): ... def __copy__(self): ... def broadcast(self) -> PySide2.QtNetwork.QHostAddress: ... def clearAddressLifetime(self): ... def dnsEligibility(self) -> PySide2.QtNetwork.QNetworkAddressEntry.DnsEligibilityStatus: ... def ip(self) -> PySide2.QtNetwork.QHostAddress: ... def isLifetimeKnown(self) -> bool: ... def isPermanent(self) -> bool: ... def isTemporary(self) -> bool: ... def netmask(self) -> PySide2.QtNetwork.QHostAddress: ... def prefixLength(self) -> int: ... def setBroadcast(self, newBroadcast:PySide2.QtNetwork.QHostAddress): ... def setDnsEligibility(self, status:PySide2.QtNetwork.QNetworkAddressEntry.DnsEligibilityStatus): ... def setIp(self, newIp:PySide2.QtNetwork.QHostAddress): ... def setNetmask(self, newNetmask:PySide2.QtNetwork.QHostAddress): ... def setPrefixLength(self, length:int): ... def swap(self, other:PySide2.QtNetwork.QNetworkAddressEntry): ... class QNetworkCacheMetaData(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QNetworkCacheMetaData): ... def __copy__(self): ... def __lshift__(self, arg__1:PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream: ... def __rshift__(self, arg__1:PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream: ... def attributes(self) -> dict: ... def expirationDate(self) -> PySide2.QtCore.QDateTime: ... def isValid(self) -> bool: ... def lastModified(self) -> PySide2.QtCore.QDateTime: ... def rawHeaders(self) -> typing.Tuple: ... def saveToDisk(self) -> bool: ... def setAttributes(self, attributes:dict): ... def setExpirationDate(self, dateTime:PySide2.QtCore.QDateTime): ... def setLastModified(self, dateTime:PySide2.QtCore.QDateTime): ... def setRawHeaders(self, headers:list): ... def setSaveToDisk(self, allow:bool): ... def setUrl(self, url:PySide2.QtCore.QUrl): ... def swap(self, other:PySide2.QtNetwork.QNetworkCacheMetaData): ... def url(self) -> PySide2.QtCore.QUrl: ... class QNetworkConfiguration(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QNetworkConfiguration): ... def __copy__(self): ... def bearerType(self) -> PySide2.QtNetwork.QNetworkConfiguration.BearerType: ... def bearerTypeFamily(self) -> PySide2.QtNetwork.QNetworkConfiguration.BearerType: ... def bearerTypeName(self) -> str: ... def children(self) -> PySide2.QtNetwork.QNetworkConfiguration: ... def connectTimeout(self) -> int: ... def identifier(self) -> str: ... def isRoamingAvailable(self) -> bool: ... def isValid(self) -> bool: ... def name(self) -> str: ... def purpose(self) -> PySide2.QtNetwork.QNetworkConfiguration.Purpose: ... def setConnectTimeout(self, timeout:int) -> bool: ... def state(self) -> PySide2.QtNetwork.QNetworkConfiguration.StateFlags: ... def swap(self, other:PySide2.QtNetwork.QNetworkConfiguration): ... def type(self) -> PySide2.QtNetwork.QNetworkConfiguration.Type: ... class QNetworkConfigurationManager(PySide2.QtCore.QObject): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def allConfigurations(self, flags:PySide2.QtNetwork.QNetworkConfiguration.StateFlags=...) -> PySide2.QtNetwork.QNetworkConfiguration: ... def capabilities(self) -> PySide2.QtNetwork.QNetworkConfigurationManager.Capabilities: ... def configurationFromIdentifier(self, identifier:str) -> PySide2.QtNetwork.QNetworkConfiguration: ... def defaultConfiguration(self) -> PySide2.QtNetwork.QNetworkConfiguration: ... def isOnline(self) -> bool: ... def updateConfigurations(self): ... class QNetworkCookie(Shiboken.Object): @typing.overload def __init__(self, name:PySide2.QtCore.QByteArray=..., value:PySide2.QtCore.QByteArray=...): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QNetworkCookie): ... def __copy__(self): ... def domain(self) -> str: ... def expirationDate(self) -> PySide2.QtCore.QDateTime: ... def hasSameIdentifier(self, other:PySide2.QtNetwork.QNetworkCookie) -> bool: ... def isHttpOnly(self) -> bool: ... def isSecure(self) -> bool: ... def isSessionCookie(self) -> bool: ... def name(self) -> PySide2.QtCore.QByteArray: ... def normalize(self, url:PySide2.QtCore.QUrl): ... @staticmethod def parseCookies(cookieString:PySide2.QtCore.QByteArray) -> PySide2.QtNetwork.QNetworkCookie: ... def path(self) -> str: ... def setDomain(self, domain:str): ... def setExpirationDate(self, date:PySide2.QtCore.QDateTime): ... def setHttpOnly(self, enable:bool): ... def setName(self, cookieName:PySide2.QtCore.QByteArray): ... def setPath(self, path:str): ... def setSecure(self, enable:bool): ... def setValue(self, value:PySide2.QtCore.QByteArray): ... def swap(self, other:PySide2.QtNetwork.QNetworkCookie): ... def toRawForm(self, form:PySide2.QtNetwork.QNetworkCookie.RawForm=...) -> PySide2.QtCore.QByteArray: ... def value(self) -> PySide2.QtCore.QByteArray: ... class QNetworkCookieJar(PySide2.QtCore.QObject): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def allCookies(self) -> PySide2.QtNetwork.QNetworkCookie: ... def cookiesForUrl(self, url:PySide2.QtCore.QUrl) -> PySide2.QtNetwork.QNetworkCookie: ... def deleteCookie(self, cookie:PySide2.QtNetwork.QNetworkCookie) -> bool: ... def insertCookie(self, cookie:PySide2.QtNetwork.QNetworkCookie) -> bool: ... def setAllCookies(self, cookieList:list): ... def setCookiesFromUrl(self, cookieList:list, url:PySide2.QtCore.QUrl) -> bool: ... def updateCookie(self, cookie:PySide2.QtNetwork.QNetworkCookie) -> bool: ... def validateCookie(self, cookie:PySide2.QtNetwork.QNetworkCookie, url:PySide2.QtCore.QUrl) -> bool: ... class QNetworkDatagram(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, data:PySide2.QtCore.QByteArray, destinationAddress:PySide2.QtNetwork.QHostAddress=..., port:int=...): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QNetworkDatagram): ... def __copy__(self): ... def clear(self): ... def data(self) -> PySide2.QtCore.QByteArray: ... def destinationAddress(self) -> PySide2.QtNetwork.QHostAddress: ... def destinationPort(self) -> int: ... def hopLimit(self) -> int: ... def interfaceIndex(self) -> int: ... def isNull(self) -> bool: ... def isValid(self) -> bool: ... def makeReply(self, payload:PySide2.QtCore.QByteArray) -> PySide2.QtNetwork.QNetworkDatagram: ... def senderAddress(self) -> PySide2.QtNetwork.QHostAddress: ... def senderPort(self) -> int: ... def setData(self, data:PySide2.QtCore.QByteArray): ... def setDestination(self, address:PySide2.QtNetwork.QHostAddress, port:int): ... def setHopLimit(self, count:int): ... def setInterfaceIndex(self, index:int): ... def setSender(self, address:PySide2.QtNetwork.QHostAddress, port:int=...): ... def swap(self, other:PySide2.QtNetwork.QNetworkDatagram): ... class QNetworkDiskCache(PySide2.QtNetwork.QAbstractNetworkCache): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def cacheDirectory(self) -> str: ... def cacheSize(self) -> int: ... def clear(self): ... def data(self, url:PySide2.QtCore.QUrl) -> PySide2.QtCore.QIODevice: ... def expire(self) -> int: ... def fileMetaData(self, fileName:str) -> PySide2.QtNetwork.QNetworkCacheMetaData: ... def insert(self, device:PySide2.QtCore.QIODevice): ... def maximumCacheSize(self) -> int: ... def metaData(self, url:PySide2.QtCore.QUrl) -> PySide2.QtNetwork.QNetworkCacheMetaData: ... def prepare(self, metaData:PySide2.QtNetwork.QNetworkCacheMetaData) -> PySide2.QtCore.QIODevice: ... def remove(self, url:PySide2.QtCore.QUrl) -> bool: ... def setCacheDirectory(self, cacheDir:str): ... def setMaximumCacheSize(self, size:int): ... def updateMetaData(self, metaData:PySide2.QtNetwork.QNetworkCacheMetaData): ... class QNetworkInterface(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QNetworkInterface): ... def __copy__(self): ... def addressEntries(self) -> PySide2.QtNetwork.QNetworkAddressEntry: ... @staticmethod def allAddresses() -> PySide2.QtNetwork.QHostAddress: ... @staticmethod def allInterfaces() -> PySide2.QtNetwork.QNetworkInterface: ... def flags(self) -> PySide2.QtNetwork.QNetworkInterface.InterfaceFlags: ... def hardwareAddress(self) -> str: ... def humanReadableName(self) -> str: ... def index(self) -> int: ... @staticmethod def interfaceFromIndex(index:int) -> PySide2.QtNetwork.QNetworkInterface: ... @staticmethod def interfaceFromName(name:str) -> PySide2.QtNetwork.QNetworkInterface: ... @staticmethod def interfaceIndexFromName(name:str) -> int: ... @staticmethod def interfaceNameFromIndex(index:int) -> str: ... def isValid(self) -> bool: ... def maximumTransmissionUnit(self) -> int: ... def name(self) -> str: ... def swap(self, other:PySide2.QtNetwork.QNetworkInterface): ... def type(self) -> PySide2.QtNetwork.QNetworkInterface.InterfaceType: ... class QNetworkProxy(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QNetworkProxy): ... @typing.overload def __init__(self, type:PySide2.QtNetwork.QNetworkProxy.ProxyType, hostName:str=..., port:int=..., user:str=..., password:str=...): ... def __copy__(self): ... @staticmethod def applicationProxy() -> PySide2.QtNetwork.QNetworkProxy: ... def capabilities(self) -> PySide2.QtNetwork.QNetworkProxy.Capabilities: ... def hasRawHeader(self, headerName:PySide2.QtCore.QByteArray) -> bool: ... def header(self, header:PySide2.QtNetwork.QNetworkRequest.KnownHeaders) -> typing.Any: ... def hostName(self) -> str: ... def isCachingProxy(self) -> bool: ... def isTransparentProxy(self) -> bool: ... def password(self) -> str: ... def port(self) -> int: ... def rawHeader(self, headerName:PySide2.QtCore.QByteArray) -> PySide2.QtCore.QByteArray: ... def rawHeaderList(self) -> PySide2.QtCore.QByteArray: ... @staticmethod def setApplicationProxy(proxy:PySide2.QtNetwork.QNetworkProxy): ... def setCapabilities(self, capab:PySide2.QtNetwork.QNetworkProxy.Capabilities): ... def setHeader(self, header:PySide2.QtNetwork.QNetworkRequest.KnownHeaders, value:typing.Any): ... def setHostName(self, hostName:str): ... def setPassword(self, password:str): ... def setPort(self, port:int): ... def setRawHeader(self, headerName:PySide2.QtCore.QByteArray, value:PySide2.QtCore.QByteArray): ... def setType(self, type:PySide2.QtNetwork.QNetworkProxy.ProxyType): ... def setUser(self, userName:str): ... def swap(self, other:PySide2.QtNetwork.QNetworkProxy): ... def type(self) -> PySide2.QtNetwork.QNetworkProxy.ProxyType: ... def user(self) -> str: ... class QNetworkProxyFactory(Shiboken.Object): def __init__(self): ... @staticmethod def proxyForQuery(query:PySide2.QtNetwork.QNetworkProxyQuery) -> PySide2.QtNetwork.QNetworkProxy: ... def queryProxy(self, query:PySide2.QtNetwork.QNetworkProxyQuery=...) -> PySide2.QtNetwork.QNetworkProxy: ... @staticmethod def setApplicationProxyFactory(factory:PySide2.QtNetwork.QNetworkProxyFactory): ... @staticmethod def setUseSystemConfiguration(enable:bool): ... @staticmethod def systemProxyForQuery(query:PySide2.QtNetwork.QNetworkProxyQuery=...) -> PySide2.QtNetwork.QNetworkProxy: ... @staticmethod def usesSystemConfiguration() -> bool: ... class QNetworkProxyQuery(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, bindPort:int, protocolTag:str=..., queryType:PySide2.QtNetwork.QNetworkProxyQuery.QueryType=...): ... @typing.overload def __init__(self, hostname:str, port:int, protocolTag:str=..., queryType:PySide2.QtNetwork.QNetworkProxyQuery.QueryType=...): ... @typing.overload def __init__(self, networkConfiguration:PySide2.QtNetwork.QNetworkConfiguration, bindPort:int, protocolTag:str=..., queryType:PySide2.QtNetwork.QNetworkProxyQuery.QueryType=...): ... @typing.overload def __init__(self, networkConfiguration:PySide2.QtNetwork.QNetworkConfiguration, hostname:str, port:int, protocolTag:str=..., queryType:PySide2.QtNetwork.QNetworkProxyQuery.QueryType=...): ... @typing.overload def __init__(self, networkConfiguration:PySide2.QtNetwork.QNetworkConfiguration, requestUrl:PySide2.QtCore.QUrl, queryType:PySide2.QtNetwork.QNetworkProxyQuery.QueryType=...): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QNetworkProxyQuery): ... @typing.overload def __init__(self, requestUrl:PySide2.QtCore.QUrl, queryType:PySide2.QtNetwork.QNetworkProxyQuery.QueryType=...): ... def __copy__(self): ... def localPort(self) -> int: ... def networkConfiguration(self) -> PySide2.QtNetwork.QNetworkConfiguration: ... def peerHostName(self) -> str: ... def peerPort(self) -> int: ... def protocolTag(self) -> str: ... def queryType(self) -> PySide2.QtNetwork.QNetworkProxyQuery.QueryType: ... def setLocalPort(self, port:int): ... def setNetworkConfiguration(self, networkConfiguration:PySide2.QtNetwork.QNetworkConfiguration): ... def setPeerHostName(self, hostname:str): ... def setPeerPort(self, port:int): ... def setProtocolTag(self, protocolTag:str): ... def setQueryType(self, type:PySide2.QtNetwork.QNetworkProxyQuery.QueryType): ... def setUrl(self, url:PySide2.QtCore.QUrl): ... def swap(self, other:PySide2.QtNetwork.QNetworkProxyQuery): ... def url(self) -> PySide2.QtCore.QUrl: ... class QNetworkReply(PySide2.QtCore.QIODevice): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def abort(self): ... def attribute(self, code:PySide2.QtNetwork.QNetworkRequest.Attribute) -> typing.Any: ... def close(self): ... def error(self) -> PySide2.QtNetwork.QNetworkReply.NetworkError: ... def hasRawHeader(self, headerName:PySide2.QtCore.QByteArray) -> bool: ... def header(self, header:PySide2.QtNetwork.QNetworkRequest.KnownHeaders) -> typing.Any: ... @typing.overload def ignoreSslErrors(self): ... @typing.overload def ignoreSslErrors(self, errors:list): ... def ignoreSslErrorsImplementation(self, arg__1:list): ... def isFinished(self) -> bool: ... def isRunning(self) -> bool: ... def isSequential(self) -> bool: ... def manager(self) -> PySide2.QtNetwork.QNetworkAccessManager: ... def operation(self) -> PySide2.QtNetwork.QNetworkAccessManager.Operation: ... def rawHeader(self, headerName:PySide2.QtCore.QByteArray) -> PySide2.QtCore.QByteArray: ... def rawHeaderList(self) -> PySide2.QtCore.QByteArray: ... def rawHeaderPairs(self) -> typing.Tuple: ... def readBufferSize(self) -> int: ... def request(self) -> PySide2.QtNetwork.QNetworkRequest: ... def setAttribute(self, code:PySide2.QtNetwork.QNetworkRequest.Attribute, value:typing.Any): ... def setError(self, errorCode:PySide2.QtNetwork.QNetworkReply.NetworkError, errorString:str): ... def setFinished(self, arg__1:bool): ... def setHeader(self, header:PySide2.QtNetwork.QNetworkRequest.KnownHeaders, value:typing.Any): ... def setOperation(self, operation:PySide2.QtNetwork.QNetworkAccessManager.Operation): ... def setRawHeader(self, headerName:PySide2.QtCore.QByteArray, value:PySide2.QtCore.QByteArray): ... def setReadBufferSize(self, size:int): ... def setRequest(self, request:PySide2.QtNetwork.QNetworkRequest): ... def setSslConfiguration(self, configuration:PySide2.QtNetwork.QSslConfiguration): ... def setSslConfigurationImplementation(self, arg__1:PySide2.QtNetwork.QSslConfiguration): ... def setUrl(self, url:PySide2.QtCore.QUrl): ... def sslConfiguration(self) -> PySide2.QtNetwork.QSslConfiguration: ... def sslConfigurationImplementation(self, arg__1:PySide2.QtNetwork.QSslConfiguration): ... def url(self) -> PySide2.QtCore.QUrl: ... def writeData(self, data:str, len:int) -> int: ... class QNetworkRequest(Shiboken.Object): @typing.overload def __init__(self, other:PySide2.QtNetwork.QNetworkRequest): ... @typing.overload def __init__(self, url:PySide2.QtCore.QUrl=...): ... def __copy__(self): ... def attribute(self, code:PySide2.QtNetwork.QNetworkRequest.Attribute, defaultValue:typing.Any=...) -> typing.Any: ... def hasRawHeader(self, headerName:PySide2.QtCore.QByteArray) -> bool: ... def header(self, header:PySide2.QtNetwork.QNetworkRequest.KnownHeaders) -> typing.Any: ... def maximumRedirectsAllowed(self) -> int: ... def originatingObject(self) -> PySide2.QtCore.QObject: ... def priority(self) -> PySide2.QtNetwork.QNetworkRequest.Priority: ... def rawHeader(self, headerName:PySide2.QtCore.QByteArray) -> PySide2.QtCore.QByteArray: ... def rawHeaderList(self) -> PySide2.QtCore.QByteArray: ... def setAttribute(self, code:PySide2.QtNetwork.QNetworkRequest.Attribute, value:typing.Any): ... def setHeader(self, header:PySide2.QtNetwork.QNetworkRequest.KnownHeaders, value:typing.Any): ... def setMaximumRedirectsAllowed(self, maximumRedirectsAllowed:int): ... def setOriginatingObject(self, object:PySide2.QtCore.QObject): ... def setPriority(self, priority:PySide2.QtNetwork.QNetworkRequest.Priority): ... def setRawHeader(self, headerName:PySide2.QtCore.QByteArray, value:PySide2.QtCore.QByteArray): ... def setSslConfiguration(self, configuration:PySide2.QtNetwork.QSslConfiguration): ... def setUrl(self, url:PySide2.QtCore.QUrl): ... def sslConfiguration(self) -> PySide2.QtNetwork.QSslConfiguration: ... def swap(self, other:PySide2.QtNetwork.QNetworkRequest): ... def url(self) -> PySide2.QtCore.QUrl: ... class QNetworkSession(PySide2.QtCore.QObject): def __init__(self, connConfig:PySide2.QtNetwork.QNetworkConfiguration, parent:PySide2.QtCore.QObject=...): ... def accept(self): ... def activeTime(self) -> int: ... def bytesReceived(self) -> int: ... def bytesWritten(self) -> int: ... def close(self): ... def configuration(self) -> PySide2.QtNetwork.QNetworkConfiguration: ... def connectNotify(self, signal:PySide2.QtCore.QMetaMethod): ... def disconnectNotify(self, signal:PySide2.QtCore.QMetaMethod): ... def error(self) -> PySide2.QtNetwork.QNetworkSession.SessionError: ... def errorString(self) -> str: ... def ignore(self): ... def interface(self) -> PySide2.QtNetwork.QNetworkInterface: ... def isOpen(self) -> bool: ... def migrate(self): ... def open(self): ... def reject(self): ... def sessionProperty(self, key:str) -> typing.Any: ... def setSessionProperty(self, key:str, value:typing.Any): ... def state(self) -> PySide2.QtNetwork.QNetworkSession.State: ... def stop(self): ... def usagePolicies(self) -> PySide2.QtNetwork.QNetworkSession.UsagePolicies: ... def waitForOpened(self, msecs:int=...) -> bool: ... class QPasswordDigestor(Shiboken.Object): @staticmethod def deriveKeyPbkdf1(algorithm:PySide2.QtCore.QCryptographicHash.Algorithm, password:PySide2.QtCore.QByteArray, salt:PySide2.QtCore.QByteArray, iterations:int, dkLen:int) -> PySide2.QtCore.QByteArray: ... @staticmethod def deriveKeyPbkdf2(algorithm:PySide2.QtCore.QCryptographicHash.Algorithm, password:PySide2.QtCore.QByteArray, salt:PySide2.QtCore.QByteArray, iterations:int, dkLen:int) -> PySide2.QtCore.QByteArray: ... class QSsl: ... class QSslCertificate(Shiboken.Object): @typing.overload def __init__(self, data:PySide2.QtCore.QByteArray=..., format:PySide2.QtNetwork.QSsl.EncodingFormat=...): ... @typing.overload def __init__(self, device:PySide2.QtCore.QIODevice, format:PySide2.QtNetwork.QSsl.EncodingFormat=...): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QSslCertificate): ... def __copy__(self): ... def clear(self): ... def digest(self, algorithm:PySide2.QtCore.QCryptographicHash.Algorithm=...) -> PySide2.QtCore.QByteArray: ... def effectiveDate(self) -> PySide2.QtCore.QDateTime: ... def expiryDate(self) -> PySide2.QtCore.QDateTime: ... def extensions(self) -> PySide2.QtNetwork.QSslCertificateExtension: ... @staticmethod def fromData(data:PySide2.QtCore.QByteArray, format:PySide2.QtNetwork.QSsl.EncodingFormat=...) -> PySide2.QtNetwork.QSslCertificate: ... @staticmethod def fromDevice(device:PySide2.QtCore.QIODevice, format:PySide2.QtNetwork.QSsl.EncodingFormat=...) -> PySide2.QtNetwork.QSslCertificate: ... @staticmethod def fromPath(path:str, format:PySide2.QtNetwork.QSsl.EncodingFormat=..., syntax:PySide2.QtCore.QRegExp.PatternSyntax=...) -> PySide2.QtNetwork.QSslCertificate: ... def handle(self) -> int: ... @staticmethod def importPkcs12(device:PySide2.QtCore.QIODevice, key:PySide2.QtNetwork.QSslKey, cert:PySide2.QtNetwork.QSslCertificate, caCertificates:list=..., passPhrase:PySide2.QtCore.QByteArray=...) -> bool: ... def isBlacklisted(self) -> bool: ... def isNull(self) -> bool: ... def isSelfSigned(self) -> bool: ... def issuerDisplayName(self) -> str: ... @typing.overload def issuerInfo(self, attribute:PySide2.QtCore.QByteArray) -> typing.List: ... @typing.overload def issuerInfo(self, info:PySide2.QtNetwork.QSslCertificate.SubjectInfo) -> typing.List: ... def issuerInfoAttributes(self) -> PySide2.QtCore.QByteArray: ... def publicKey(self) -> PySide2.QtNetwork.QSslKey: ... def serialNumber(self) -> PySide2.QtCore.QByteArray: ... def subjectAlternativeNames(self) -> typing.DefaultDict: ... def subjectDisplayName(self) -> str: ... @typing.overload def subjectInfo(self, attribute:PySide2.QtCore.QByteArray) -> typing.List: ... @typing.overload def subjectInfo(self, info:PySide2.QtNetwork.QSslCertificate.SubjectInfo) -> typing.List: ... def subjectInfoAttributes(self) -> PySide2.QtCore.QByteArray: ... def swap(self, other:PySide2.QtNetwork.QSslCertificate): ... def toDer(self) -> PySide2.QtCore.QByteArray: ... def toPem(self) -> PySide2.QtCore.QByteArray: ... def toText(self) -> str: ... @staticmethod def verify(certificateChain:list, hostName:str=...) -> PySide2.QtNetwork.QSslError: ... def version(self) -> PySide2.QtCore.QByteArray: ... class QSslCertificateExtension(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QSslCertificateExtension): ... def __copy__(self): ... def isCritical(self) -> bool: ... def isSupported(self) -> bool: ... def name(self) -> str: ... def oid(self) -> str: ... def swap(self, other:PySide2.QtNetwork.QSslCertificateExtension): ... def value(self) -> typing.Any: ... class QSslCipher(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, name:str): ... @typing.overload def __init__(self, name:str, protocol:PySide2.QtNetwork.QSsl.SslProtocol): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QSslCipher): ... def __copy__(self): ... def authenticationMethod(self) -> str: ... def encryptionMethod(self) -> str: ... def isNull(self) -> bool: ... def keyExchangeMethod(self) -> str: ... def name(self) -> str: ... def protocol(self) -> PySide2.QtNetwork.QSsl.SslProtocol: ... def protocolString(self) -> str: ... def supportedBits(self) -> int: ... def swap(self, other:PySide2.QtNetwork.QSslCipher): ... def usedBits(self) -> int: ... class QSslConfiguration(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QSslConfiguration): ... def __copy__(self): ... def allowedNextProtocols(self) -> PySide2.QtCore.QByteArray: ... def backendConfiguration(self) -> dict: ... def caCertificates(self) -> PySide2.QtNetwork.QSslCertificate: ... def ciphers(self) -> PySide2.QtNetwork.QSslCipher: ... @staticmethod def defaultConfiguration() -> PySide2.QtNetwork.QSslConfiguration: ... @staticmethod def defaultDtlsConfiguration() -> PySide2.QtNetwork.QSslConfiguration: ... def diffieHellmanParameters(self) -> PySide2.QtNetwork.QSslDiffieHellmanParameters: ... def dtlsCookieVerificationEnabled(self) -> bool: ... def ephemeralServerKey(self) -> PySide2.QtNetwork.QSslKey: ... def isNull(self) -> bool: ... def localCertificate(self) -> PySide2.QtNetwork.QSslCertificate: ... def localCertificateChain(self) -> PySide2.QtNetwork.QSslCertificate: ... def nextNegotiatedProtocol(self) -> PySide2.QtCore.QByteArray: ... def nextProtocolNegotiationStatus(self) -> PySide2.QtNetwork.QSslConfiguration.NextProtocolNegotiationStatus: ... def peerCertificate(self) -> PySide2.QtNetwork.QSslCertificate: ... def peerCertificateChain(self) -> PySide2.QtNetwork.QSslCertificate: ... def peerVerifyDepth(self) -> int: ... def peerVerifyMode(self) -> PySide2.QtNetwork.QSslSocket.PeerVerifyMode: ... def preSharedKeyIdentityHint(self) -> PySide2.QtCore.QByteArray: ... def privateKey(self) -> PySide2.QtNetwork.QSslKey: ... def protocol(self) -> PySide2.QtNetwork.QSsl.SslProtocol: ... def sessionCipher(self) -> PySide2.QtNetwork.QSslCipher: ... def sessionProtocol(self) -> PySide2.QtNetwork.QSsl.SslProtocol: ... def sessionTicket(self) -> PySide2.QtCore.QByteArray: ... def sessionTicketLifeTimeHint(self) -> int: ... def setAllowedNextProtocols(self, protocols:list): ... def setBackendConfiguration(self, backendConfiguration:dict=...): ... def setBackendConfigurationOption(self, name:PySide2.QtCore.QByteArray, value:typing.Any): ... def setCaCertificates(self, certificates:list): ... def setCiphers(self, ciphers:list): ... @staticmethod def setDefaultConfiguration(configuration:PySide2.QtNetwork.QSslConfiguration): ... @staticmethod def setDefaultDtlsConfiguration(configuration:PySide2.QtNetwork.QSslConfiguration): ... def setDiffieHellmanParameters(self, dhparams:PySide2.QtNetwork.QSslDiffieHellmanParameters): ... def setDtlsCookieVerificationEnabled(self, enable:bool): ... def setLocalCertificate(self, certificate:PySide2.QtNetwork.QSslCertificate): ... def setLocalCertificateChain(self, localChain:list): ... def setPeerVerifyDepth(self, depth:int): ... def setPeerVerifyMode(self, mode:PySide2.QtNetwork.QSslSocket.PeerVerifyMode): ... def setPreSharedKeyIdentityHint(self, hint:PySide2.QtCore.QByteArray): ... def setPrivateKey(self, key:PySide2.QtNetwork.QSslKey): ... def setProtocol(self, protocol:PySide2.QtNetwork.QSsl.SslProtocol): ... def setSessionTicket(self, sessionTicket:PySide2.QtCore.QByteArray): ... def setSslOption(self, option:PySide2.QtNetwork.QSsl.SslOption, on:bool): ... @staticmethod def supportedCiphers() -> PySide2.QtNetwork.QSslCipher: ... def swap(self, other:PySide2.QtNetwork.QSslConfiguration): ... @staticmethod def systemCaCertificates() -> PySide2.QtNetwork.QSslCertificate: ... def testSslOption(self, option:PySide2.QtNetwork.QSsl.SslOption) -> bool: ... class QSslDiffieHellmanParameters(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QSslDiffieHellmanParameters): ... def __copy__(self): ... @staticmethod def defaultParameters() -> PySide2.QtNetwork.QSslDiffieHellmanParameters: ... def error(self) -> PySide2.QtNetwork.QSslDiffieHellmanParameters.Error: ... def errorString(self) -> str: ... @typing.overload @staticmethod def fromEncoded(device:PySide2.QtCore.QIODevice, format:PySide2.QtNetwork.QSsl.EncodingFormat=...) -> PySide2.QtNetwork.QSslDiffieHellmanParameters: ... @typing.overload @staticmethod def fromEncoded(encoded:PySide2.QtCore.QByteArray, format:PySide2.QtNetwork.QSsl.EncodingFormat=...) -> PySide2.QtNetwork.QSslDiffieHellmanParameters: ... def isEmpty(self) -> bool: ... def isValid(self) -> bool: ... def swap(self, other:PySide2.QtNetwork.QSslDiffieHellmanParameters): ... class QSslError(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, error:PySide2.QtNetwork.QSslError.SslError): ... @typing.overload def __init__(self, error:PySide2.QtNetwork.QSslError.SslError, certificate:PySide2.QtNetwork.QSslCertificate): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QSslError): ... def __copy__(self): ... def certificate(self) -> PySide2.QtNetwork.QSslCertificate: ... def error(self) -> PySide2.QtNetwork.QSslError.SslError: ... def errorString(self) -> str: ... def swap(self, other:PySide2.QtNetwork.QSslError): ... class QSslKey(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, device:PySide2.QtCore.QIODevice, algorithm:PySide2.QtNetwork.QSsl.KeyAlgorithm, format:PySide2.QtNetwork.QSsl.EncodingFormat=..., type:PySide2.QtNetwork.QSsl.KeyType=..., passPhrase:PySide2.QtCore.QByteArray=...): ... @typing.overload def __init__(self, encoded:PySide2.QtCore.QByteArray, algorithm:PySide2.QtNetwork.QSsl.KeyAlgorithm, format:PySide2.QtNetwork.QSsl.EncodingFormat=..., type:PySide2.QtNetwork.QSsl.KeyType=..., passPhrase:PySide2.QtCore.QByteArray=...): ... @typing.overload def __init__(self, handle:int, type:PySide2.QtNetwork.QSsl.KeyType=...): ... @typing.overload def __init__(self, other:PySide2.QtNetwork.QSslKey): ... def __copy__(self): ... def algorithm(self) -> PySide2.QtNetwork.QSsl.KeyAlgorithm: ... def clear(self): ... def handle(self) -> int: ... def isNull(self) -> bool: ... def length(self) -> int: ... def swap(self, other:PySide2.QtNetwork.QSslKey): ... def toDer(self, passPhrase:PySide2.QtCore.QByteArray=...) -> PySide2.QtCore.QByteArray: ... def toPem(self, passPhrase:PySide2.QtCore.QByteArray=...) -> PySide2.QtCore.QByteArray: ... def type(self) -> PySide2.QtNetwork.QSsl.KeyType: ... class QSslPreSharedKeyAuthenticator(Shiboken.Object): @typing.overload def __init__(self): ... @typing.overload def __init__(self, authenticator:PySide2.QtNetwork.QSslPreSharedKeyAuthenticator): ... def __copy__(self): ... def identity(self) -> PySide2.QtCore.QByteArray: ... def identityHint(self) -> PySide2.QtCore.QByteArray: ... def maximumIdentityLength(self) -> int: ... def maximumPreSharedKeyLength(self) -> int: ... def preSharedKey(self) -> PySide2.QtCore.QByteArray: ... def setIdentity(self, identity:PySide2.QtCore.QByteArray): ... def setPreSharedKey(self, preSharedKey:PySide2.QtCore.QByteArray): ... def swap(self, other:PySide2.QtNetwork.QSslPreSharedKeyAuthenticator): ... class QSslSocket(PySide2.QtNetwork.QTcpSocket): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def abort(self): ... def addCaCertificate(self, certificate:PySide2.QtNetwork.QSslCertificate): ... @typing.overload def addCaCertificates(self, certificates:list): ... @typing.overload def addCaCertificates(self, path:str, format:PySide2.QtNetwork.QSsl.EncodingFormat=..., syntax:PySide2.QtCore.QRegExp.PatternSyntax=...) -> bool: ... @staticmethod def addDefaultCaCertificate(certificate:PySide2.QtNetwork.QSslCertificate): ... @typing.overload @staticmethod def addDefaultCaCertificates(certificates:list): ... @typing.overload @staticmethod def addDefaultCaCertificates(path:str, format:PySide2.QtNetwork.QSsl.EncodingFormat=..., syntax:PySide2.QtCore.QRegExp.PatternSyntax=...) -> bool: ... def atEnd(self) -> bool: ... def bytesAvailable(self) -> int: ... def bytesToWrite(self) -> int: ... def caCertificates(self) -> PySide2.QtNetwork.QSslCertificate: ... def canReadLine(self) -> bool: ... def ciphers(self) -> PySide2.QtNetwork.QSslCipher: ... def close(self): ... @typing.overload def connectToHost(self, address:PySide2.QtNetwork.QHostAddress, port:int, mode:PySide2.QtCore.QIODevice.OpenMode=...): ... @typing.overload def connectToHost(self, hostName:str, port:int, openMode:PySide2.QtCore.QIODevice.OpenMode=..., protocol:PySide2.QtNetwork.QAbstractSocket.NetworkLayerProtocol=...): ... @typing.overload def connectToHostEncrypted(self, hostName:str, port:int, mode:PySide2.QtCore.QIODevice.OpenMode=..., protocol:PySide2.QtNetwork.QAbstractSocket.NetworkLayerProtocol=...): ... @typing.overload def connectToHostEncrypted(self, hostName:str, port:int, sslPeerName:str, mode:PySide2.QtCore.QIODevice.OpenMode=..., protocol:PySide2.QtNetwork.QAbstractSocket.NetworkLayerProtocol=...): ... @staticmethod def defaultCaCertificates() -> PySide2.QtNetwork.QSslCertificate: ... @staticmethod def defaultCiphers() -> PySide2.QtNetwork.QSslCipher: ... def disconnectFromHost(self): ... def encryptedBytesAvailable(self) -> int: ... def encryptedBytesToWrite(self) -> int: ... def flush(self) -> bool: ... @typing.overload def ignoreSslErrors(self): ... @typing.overload def ignoreSslErrors(self, errors:list): ... def isEncrypted(self) -> bool: ... def localCertificate(self) -> PySide2.QtNetwork.QSslCertificate: ... def localCertificateChain(self) -> PySide2.QtNetwork.QSslCertificate: ... def mode(self) -> PySide2.QtNetwork.QSslSocket.SslMode: ... def peerCertificate(self) -> PySide2.QtNetwork.QSslCertificate: ... def peerCertificateChain(self) -> PySide2.QtNetwork.QSslCertificate: ... def peerVerifyDepth(self) -> int: ... def peerVerifyMode(self) -> PySide2.QtNetwork.QSslSocket.PeerVerifyMode: ... def peerVerifyName(self) -> str: ... def privateKey(self) -> PySide2.QtNetwork.QSslKey: ... def protocol(self) -> PySide2.QtNetwork.QSsl.SslProtocol: ... def readData(self, data:str, maxlen:int) -> int: ... def resume(self): ... def sessionCipher(self) -> PySide2.QtNetwork.QSslCipher: ... def sessionProtocol(self) -> PySide2.QtNetwork.QSsl.SslProtocol: ... def setCaCertificates(self, certificates:list): ... @typing.overload def setCiphers(self, ciphers:list): ... @typing.overload def setCiphers(self, ciphers:str): ... @staticmethod def setDefaultCaCertificates(certificates:list): ... @staticmethod def setDefaultCiphers(ciphers:list): ... @typing.overload def setLocalCertificate(self, certificate:PySide2.QtNetwork.QSslCertificate): ... @typing.overload def setLocalCertificate(self, fileName:str, format:PySide2.QtNetwork.QSsl.EncodingFormat=...): ... def setLocalCertificateChain(self, localChain:list): ... def setPeerVerifyDepth(self, depth:int): ... def setPeerVerifyMode(self, mode:PySide2.QtNetwork.QSslSocket.PeerVerifyMode): ... def setPeerVerifyName(self, hostName:str): ... @typing.overload def setPrivateKey(self, fileName:str, algorithm:PySide2.QtNetwork.QSsl.KeyAlgorithm=..., format:PySide2.QtNetwork.QSsl.EncodingFormat=..., passPhrase:PySide2.QtCore.QByteArray=...): ... @typing.overload def setPrivateKey(self, key:PySide2.QtNetwork.QSslKey): ... def setProtocol(self, protocol:PySide2.QtNetwork.QSsl.SslProtocol): ... def setReadBufferSize(self, size:int): ... def setSocketDescriptor(self, socketDescriptor:int, state:PySide2.QtNetwork.QAbstractSocket.SocketState=..., openMode:PySide2.QtCore.QIODevice.OpenMode=...) -> bool: ... def setSocketOption(self, option:PySide2.QtNetwork.QAbstractSocket.SocketOption, value:typing.Any): ... def setSslConfiguration(self, config:PySide2.QtNetwork.QSslConfiguration): ... def socketOption(self, option:PySide2.QtNetwork.QAbstractSocket.SocketOption) -> typing.Any: ... def sslConfiguration(self) -> PySide2.QtNetwork.QSslConfiguration: ... def sslErrors(self) -> PySide2.QtNetwork.QSslError: ... @staticmethod def sslLibraryBuildVersionNumber() -> int: ... @staticmethod def sslLibraryBuildVersionString() -> str: ... @staticmethod def sslLibraryVersionNumber() -> int: ... @staticmethod def sslLibraryVersionString() -> str: ... def startClientEncryption(self): ... def startServerEncryption(self): ... @staticmethod def supportedCiphers() -> PySide2.QtNetwork.QSslCipher: ... @staticmethod def supportsSsl() -> bool: ... @staticmethod def systemCaCertificates() -> PySide2.QtNetwork.QSslCertificate: ... def waitForBytesWritten(self, msecs:int=...) -> bool: ... def waitForConnected(self, msecs:int=...) -> bool: ... def waitForDisconnected(self, msecs:int=...) -> bool: ... def waitForEncrypted(self, msecs:int=...) -> bool: ... def waitForReadyRead(self, msecs:int=...) -> bool: ... def writeData(self, data:str, len:int) -> int: ... class QTcpServer(PySide2.QtCore.QObject): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def addPendingConnection(self, socket:PySide2.QtNetwork.QTcpSocket): ... def close(self): ... def errorString(self) -> str: ... def hasPendingConnections(self) -> bool: ... def incomingConnection(self, handle:int): ... def isListening(self) -> bool: ... def listen(self, address:PySide2.QtNetwork.QHostAddress=..., port:int=...) -> bool: ... def maxPendingConnections(self) -> int: ... def nextPendingConnection(self) -> PySide2.QtNetwork.QTcpSocket: ... def pauseAccepting(self): ... def proxy(self) -> PySide2.QtNetwork.QNetworkProxy: ... def resumeAccepting(self): ... def serverAddress(self) -> PySide2.QtNetwork.QHostAddress: ... def serverError(self) -> PySide2.QtNetwork.QAbstractSocket.SocketError: ... def serverPort(self) -> int: ... def setMaxPendingConnections(self, numConnections:int): ... def setProxy(self, networkProxy:PySide2.QtNetwork.QNetworkProxy): ... def setSocketDescriptor(self, socketDescriptor:int) -> bool: ... def socketDescriptor(self) -> int: ... def waitForNewConnection(self, msec:int, timedOut:bool) -> bool: ... class QTcpSocket(PySide2.QtNetwork.QAbstractSocket): def __init__(self, parent:PySide2.QtCore.QObject=...): ... class QUdpSocket(PySide2.QtNetwork.QAbstractSocket): def __init__(self, parent:PySide2.QtCore.QObject=...): ... def hasPendingDatagrams(self) -> bool: ... @typing.overload def joinMulticastGroup(self, groupAddress:PySide2.QtNetwork.QHostAddress) -> bool: ... @typing.overload def joinMulticastGroup(self, groupAddress:PySide2.QtNetwork.QHostAddress, iface:PySide2.QtNetwork.QNetworkInterface) -> bool: ... @typing.overload def leaveMulticastGroup(self, groupAddress:PySide2.QtNetwork.QHostAddress) -> bool: ... @typing.overload def leaveMulticastGroup(self, groupAddress:PySide2.QtNetwork.QHostAddress, iface:PySide2.QtNetwork.QNetworkInterface) -> bool: ... def multicastInterface(self) -> PySide2.QtNetwork.QNetworkInterface: ... def pendingDatagramSize(self) -> int: ... def readDatagram(self, data:str, maxlen:int, host:PySide2.QtNetwork.QHostAddress, port:int) -> int: ... def receiveDatagram(self, maxSize:int=...) -> PySide2.QtNetwork.QNetworkDatagram: ... def setMulticastInterface(self, iface:PySide2.QtNetwork.QNetworkInterface): ... @typing.overload def writeDatagram(self, datagram:PySide2.QtCore.QByteArray, host:PySide2.QtNetwork.QHostAddress, port:int) -> int: ... @typing.overload def writeDatagram(self, datagram:PySide2.QtNetwork.QNetworkDatagram) -> int: ... # eof
[ "lxd91@126.com" ]
lxd91@126.com
29ef13af1092d8821332b8a1261f99655f0dec60
6b973e8c50b2b0d77edf2644b2031b8d048dd102
/hook/config.py
cfc7fc879d6b45b50c7a39b72000d55425626496
[ "Apache-2.0" ]
permissive
bitxer/deployhook
4fa470e8801ede7e12469c5ab2756a1188cb45a5
3203088fa963a85400c753fc6fb9f731316a12a1
refs/heads/master
2022-11-27T10:20:09.474076
2020-08-02T10:51:46
2020-08-02T10:51:46
266,549,053
2
0
null
null
null
null
UTF-8
Python
false
false
500
py
import os class Production: DEBUG = False TESTING = False JSON_AS_ASCII = False LOG_FOLDER = os.environ.get('LOG_FOLDER') or 'logs' LOG_MAX_SIZE = os.environ.get('LOG_MAX_SIZE') or 100000 LOG_BACKUP_COUNT = os.environ.get('LOG_BACKUP_COUNT') or 5 REPO_CONFIG_FILE = os.environ.get('REPO_CONFIG_FILE') class Development(Production): DEBUG = True REPO_CONFIG_FILE = os.environ.get('REPO_CONFIG_FILE') or 'dev.ini' class Testing(Production): TESTING = True
[ "24569832+bitxer@users.noreply.github.com" ]
24569832+bitxer@users.noreply.github.com
6db12a3b5e39bf46bd9d6e0b8f563b21fa3d3256
4798e150d4a1fec0ed5aafae2c653393065783fa
/Posts/migrations/0013_postmodel_p_com.py
92594411be5ba66c447bceb940e69190131a288e
[]
no_license
mhdroshan/X-media
166487bd89962fde7b70548994017db8739b7092
50127b29c107420e27683ccb683ffd3263746811
refs/heads/main
2023-06-19T11:10:41.053699
2021-07-13T20:27:14
2021-07-13T20:27:14
364,072,716
1
0
null
null
null
null
UTF-8
Python
false
false
398
py
# Generated by Django 3.2 on 2021-06-14 11:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Posts', '0012_remove_postmodel_p_score'), ] operations = [ migrations.AddField( model_name='postmodel', name='p_com', field=models.IntegerField(default=0, null=True), ), ]
[ "mhdroshan@users.noreply.github.com" ]
mhdroshan@users.noreply.github.com
612187c9243fd0fa63a7c38cff42d676c8161667
a3543845952c1e1a6c9c92baa53baa70020de964
/xdtools/style/color_stroke.py
7c9dd2df79c96a2b6ef6c7d8573724c66d78419b
[]
no_license
SamesOfAm/autocopy
b1eabf07622b5d8c0f920b709370a742dd665987
2f4abd8cb46ead1b9c7fe082890e89e53c34d776
refs/heads/master
2020-03-10T13:17:20.584300
2018-05-03T08:33:48
2018-05-03T08:33:48
129,396,539
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
""" Contains the definition of ColorStroke. """ from xdtools.utils import Color from .stroke import Stroke class ColorStroke(Stroke): """Represents a ColorStroke Style.""" def __init__(self, width, align, r, g, b): """Instantiates this ColorStroke.""" super(ColorStroke, self).__init__(width, align) self.color = Color(r, g, b) def __repr__(self): """Return a constructor-style representation of this ColorStroke.""" return str.format('ColorStroke(width={}, align={}, color={})', repr(self.width), repr(self.align), repr(self.color))
[ "fte@spreadshirt.net" ]
fte@spreadshirt.net
b9fdd686850d40081c6bda4c4aa7d75f6fc7014f
494be0602f251c383354ad94da4938c34bf0c1b7
/all_new_rascar/2nd_assignment_main.py
98f5e0723ba4e4832232b099014b2df6f87ae6d4
[]
no_license
lsh9034/Rasberry_communication
bea2ea62a1eaa35c302f63889ec792b376ddcb0d
99fac2059a391641757a02a83817a9e238f74bc0
refs/heads/master
2020-03-31T07:16:22.529591
2018-11-12T10:40:34
2018-11-12T10:40:34
152,014,958
0
0
null
null
null
null
UTF-8
Python
false
false
2,835
py
######################################################################### # Date: 2018/10/02 # file name: 2nd_assignment_main.py # Purpose: this code has been generated for the 4 wheel drive body # moving object to perform the project with line detector # this code is used for the student only ######################################################################### from car import Car import time class myCar(object): def __init__(self, car_name): self.car = Car(car_name) self.default_degree = 6 #기본적으로 꺽어야하는 기본 각도 self.weight = [-4,-2,0,2,4] #검은 색 선의 위치에 따라 곱해야할 배수 def drive_parking(self): self.car.drive_parking() # ======================================================================= # 2ND_ASSIGNMENT_CODE # Complete the code to perform Second Assignment # ======================================================================= def car_startup(self): # implement the assignment code here past_degree = 90 #처음은 정면 check_start = True #만약 센서가 검은색 선위에 없이 시작했을 경우에도 작동하기 위해 만든 변수 speed = self.car.FASTEST #가장 빠른 속도 self.car.accelerator.go_forward(speed) #전진 while (True): status = self.car.line_detector.read_digital() #5개의 센서값 받아옴 degree = 90 check = False #왼쪽에서 맨 처음 1을 만났을 때는 체크하기 위해 for i in range(len(status)): if status[i] == 1: #맨 처음 1을 만났을 때는 가중치를 곱해줌 if check == False: degree += self.weight[i] * self.default_degree check = True check_start=False elif check == True: #그 다음 1을 만났을 때는 기본 각도만큼 더해줌 degree += self.default_degree if degree != past_degree: #전에 꺽은 각도와 다른 경우에만 서보모터에 각도 적용 self.car.steering.turn(degree) print(status) print(degree) past_degree = degree if check==False and check_start==False: #센서 값이 모두 0일 경우 break self.car.accelerator.go_backward(10) #관성제어하기 위해 약간 후진하여 빨리 정지하게함. time.sleep(0.7) self.car.accelerator.stop() pass if __name__ == "__main__": try: myCar = myCar("CarName") myCar.car_startup() except KeyboardInterrupt: # when the Ctrl+C key has been pressed, # the moving object will be stopped myCar.drive_parking()
[ "lsh9034@kookmin.ac.kr" ]
lsh9034@kookmin.ac.kr
599705c8473e27b097e50850354d4ba5fba40869
c8df74712f433d982f11c2124741f29f0376abb2
/data_utils.py
25cd8327f61d2f3cbdd69b78f59b8ace76a90e55
[]
no_license
Slyne/tf_classification_sentiment
ef76acb7c8b3118638674b4c645bc50314707f5d
46ebf30e54295c571ee3c4d8e09ff74710fd516e
refs/heads/master
2021-01-22T05:37:42.091024
2017-05-26T07:18:19
2017-05-26T07:18:19
92,482,187
2
0
null
null
null
null
UTF-8
Python
false
false
6,206
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np UNK = "$UNK$" class ds(object): def __init__(self, filename, processing_word=None, processing_tag=None,max_iter=None): self.filename = filename self.processing_word = processing_word self.processing_tag = processing_tag self.max_iter = max_iter self.length = None def __iter__(self): with open(self.filename) as f: n_iter = 0 for line in f: line = line.decode("utf-8") sline = line.strip().split() label = sline[0:1] words = sline[1:] if self.processing_word is not None: words = [ self.processing_word(word) for word in words] if self.processing_tag is not None: label = [self.processing_tag(l) for l in label] yield words, label n_iter +=1 if self.max_iter is not None and n_iter > self.max_iter: break def __len__(self): if self.length is None: self.length = 0 for _ in self: self.length += 1 return self.length def get_vocabs(datasets): """ Args: datasets: a list of dataset objects Return: a set of all the words in the dataset """ print ("Building vocab...") vocab_words = set() vocab_tags = set() for dataset in datasets: for words, label in dataset: vocab_words.update(words) vocab_tags.update(label) print ("- done. {} tokens".format(len(vocab_words))) return vocab_words, vocab_tags def get_glove_vocab(filename): """ Args: filename: path to the glove vectors """ print ("Building vocab...") vocab = set() with open(filename) as f: for line in f: line = line.decode("utf-8") word = line.strip().split(' ')[0] vocab.add(word) print ("- done. {} tokens".format(len(vocab))) return vocab def write_vocab(vocab, filename): """ Writes a vocab to a file Args: vocab: iterable that yields word filename: path to vocab file Returns: write a word per line """ print("Writing vocab...") with open(filename, "w") as f: for i, word in enumerate(vocab): word = word.encode("utf-8") if i != len(vocab) - 1: f.write("{}\n".format(word)) else: f.write(word) print ("- done. {} tokens".format(len(vocab))) def load_vocab(filename): """ Args: filename: file with a word per line Returns: d: dict[word] = index """ d = dict() with open(filename) as f: for idx, word in enumerate(f): word = word.strip().decode("utf-8") d[word] = idx return d def export_trimmed_glove_vectors(vocab, glove_filename, trimmed_filename, dim): """ Saves glove vectors in numpy array Args: vocab: dictionary vocab[word] = index glove_filename: a path to a glove file trimmed_filename: a path where to store a matrix in npy dim: (int) dimension of embeddings """ embeddings = np.zeros([len(vocab), dim]) with open(glove_filename) as f: for line in f: line = line.decode("utf-8") line = line.strip().split() word = line[0] embedding = map(float, line[1:]) if word in vocab: word_idx = vocab[word] embeddings[word_idx] = np.asarray(list(embedding)) np.savez_compressed(trimmed_filename, embeddings=embeddings) def get_trimmed_glove_vectors(filename): """ Args: filename: path to the npz file Returns: matrix of embeddings (np array) """ print(filename) #with open(filename) as f: return np.load(filename)["embeddings"] def get_processing_word(vocab_words=None, lowercase=False): """ Args: vocab: dict[word] = idx Returns: f("cat") = ([12, 4, 32], 12345) = (list of char ids, word id) """ def f(word): # 1. preprocess word if lowercase: word = word.lower() # 2. get id of word if vocab_words is not None: if word in vocab_words: word = vocab_words[word] else: word = vocab_words[UNK] # 3. word id return word return f def _pad_sequences(sequences, pad_tok, max_length): """ Args: sequences: a generator of list or tuple pad_tok: the char to pad with Returns: a list of list where each sublist has same length """ sequence_padded, sequence_length = [], [] for seq in sequences: seq = list(seq) seq_ = seq[:max_length] + [pad_tok] * max(max_length - len(seq), 0) sequence_padded += [seq_] sequence_length += [min(len(seq), max_length)] return sequence_padded, sequence_length def pad_sequences(sequences, pad_tok, maximum=None): """ Args: sequences: a generator of list or tuple pad_tok: the char to pad with Returns: a list of list where each sublist has same length """ max_length = max(map(lambda x: len(x), sequences)) if maximum is not None: max_length = min(max_length,maximum) sequence_padded, sequence_length = _pad_sequences(sequences, pad_tok, max_length) return sequence_padded, sequence_length def minibatches(data, minibatch_size): """ Args: data: generator of (sentence, tags) tuples minibatch_size: (int) Returns: list of tuples """ x_batch, y_batch = [], [] for (x, y) in data: if len(x_batch) == minibatch_size: yield x_batch, y_batch x_batch, y_batch = [], [] x_batch += [x] y_batch += [y[0]] if len(x_batch) != 0: yield x_batch, y_batch
[ "dengyanlei" ]
dengyanlei
727d7dc05520ba5e5ecd1c40e2fdb6461fc4905f
cf7fed790b733b9a21ec6c65970e9346dba103f5
/opencv/hough_example.py
7bf61b7090ff5e9ab02f188dfd8f6d141614479c
[ "MIT" ]
permissive
CospanDesign/python
a582050993efc1e6267683e38dd4665952ec6d40
a3d81971621d8deed2f1fc738dce0e6eec0db3a7
refs/heads/master
2022-06-20T15:01:26.210331
2022-05-29T01:13:04
2022-05-29T01:13:04
43,620,126
6
3
null
null
null
null
UTF-8
Python
false
false
1,887
py
#! /usr/bin/env python # Copyright (c) 2017 Dave McCoy (dave.mccoy@cospandesign.com) # # NAME 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 of the License, or # any later version. # # NAME is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with NAME; If not, see <http://www.gnu.org/licenses/>. import cv2 import numpy as np import sys import os import argparse #sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))) NAME = os.path.basename(os.path.realpath(__file__)) DESCRIPTION = "\n" \ "\n" \ "usage: %s [options]\n" % NAME EPILOG = "\n" \ "\n" \ "Examples:\n" \ "\tSomething\n" \ "\n" def main(argv): #Parse out the commandline arguments parser = argparse.ArgumentParser( formatter_class=argparse.RawDescriptionHelpFormatter, description=DESCRIPTION, epilog=EPILOG ) parser.add_argument("-t", "--test", nargs=1, default=["something"]) parser.add_argument("-d", "--debug", action="store_true", help="Enable Debug Messages") args = parser.parse_args() print "Running Script: %s" % NAME if args.debug: print "test: %s" % str(args.test[0]) img = cv2.imread("checkerboard.png") sobelx = cv2.Sobel(img,cv2.CV_64F,1,0,ksize=5) sobely = cv2.Sobel(img,cv2.CV_64F,0,1,ksize=5) if __name__ == "__main__": main(sys.argv)
[ "cospan@gmail.com" ]
cospan@gmail.com
06e007ef657e14348bc2573fc7cf73ba9709b34d
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/semantic_segmentation/DeeplabV3_for_Pytorch/configs/sem_fpn/fpn_r101_512x1024_80k_cityscapes.py
ec8dfb88c00c3f708db61db387378d4dd1774e05
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
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
791
py
# Copyright 2021 Huawei # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # _base_ = './fpn_r50_512x1024_80k_cityscapes.py' model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
a8b8c6b4bf3e5449c638bd5469b66e3c6786d6da
d6f20f87f514ad778f7c5eab3f9a9600eb5be5a1
/ligh/users/forms.py
d6c555ff70ed88f5071692ea0174488bc74b2f80
[ "MIT" ]
permissive
madhavan-raja/ligh
76bd99e5254f4a25738c4202123c4a39a665d5a4
d97cf32975a0709cda1de1e1c8cd7478c62932a2
refs/heads/main
2023-07-03T16:02:11.812223
2021-08-15T18:13:11
2021-08-15T18:13:11
337,949,493
0
0
null
null
null
null
UTF-8
Python
false
false
2,731
py
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from flask_login import current_user from ligh.models import User class RegistrationForm(FlaskForm): username = StringField('Username', validators=[DataRequired(), Length(min=2, max=20)]) email = StringField('Email', validators=[DataRequired(), Email()]) password = PasswordField('Password', validators=[DataRequired()]) confirm_password = PasswordField('Confirm Password', validators=[DataRequired(), EqualTo('password')]) submit = SubmitField('Sign Up') def validate_username(self, username): if User.query.filter_by(username=username.data).first(): raise ValidationError('Username not available') def validate_email(self, email): if User.query.filter_by(email=email.data).first(): raise ValidationError('Email not available') class LoginForm(FlaskForm): email = StringField('Email', validators=[DataRequired(), Email()]) password = PasswordField('Password', validators=[DataRequired()]) remember = BooleanField('Remember Me') submit = SubmitField('Login') class UpdateAccountForm(FlaskForm): username = StringField('Username', validators=[DataRequired(), Length(min=2, max=20)]) email = StringField('Email', validators=[DataRequired(), Email()]) profile_picture = FileField('Update Profile Picture', validators=[FileAllowed(['jpg', 'jpeg', 'png'])]) use_default_profile_picture = BooleanField('Use Default Profile Picture') submit = SubmitField('Update') def validate_username(self, username): if username.data != current_user.username: if User.query.filter_by(username=username.data).first(): raise ValidationError('Username not available') def validate_email(self, email): if email.data != current_user.email: if User.query.filter_by(email=email.data).first(): raise ValidationError('Email not available') class RequestResetForm(FlaskForm): email = StringField('Email', validators=[DataRequired(), Email()]) submit = SubmitField('Request Password Reset') def validate_email(self, email): if not User.query.filter_by(email=email.data).first(): raise ValidationError('This Email does not exist') class ResetPasswordForm(FlaskForm): password = PasswordField('Password', validators=[DataRequired()]) confirm_password = PasswordField('Confirm Password', validators=[DataRequired(), EqualTo('password')]) submit = SubmitField('Reset Password')
[ "madhavanraja99@gmail.com" ]
madhavanraja99@gmail.com
8d44e6ccbd568c1791a469331ff71b3e193f7612
1f177b5e7bdaca49076c6ff806f5e2be9a86e834
/algorithm/190225_queue/contact.py
8eb0b2d8c4a7219eee839405aa12a2f56f342182
[]
no_license
silverlyjoo/TIL
9e19ba407a9dc82c231e66e352f1c7783e767782
98a139770a6d19598d787674bcf20d2fe744ced0
refs/heads/master
2021-08-17T02:10:35.101212
2019-08-26T08:21:32
2019-08-26T08:21:32
162,099,046
6
1
null
2021-06-10T21:20:36
2018-12-17T08:32:39
Jupyter Notebook
UTF-8
Python
false
false
788
py
import sys sys.stdin = open("contact.txt") def go(s): visited = [0]*101 queue = [s] result = [] while queue: # print(queue) i = queue.pop(0) for j in R[i]: if not visited[j]: queue.append(j) visited[j] = visited[i] + 1 return visited T = 10 for tc in range(1, T+1): l, s = map(int, input().split()) L = list(map(int, input().split())) R = [[] for _ in range((100)+1)] start = L[::2] end = L[1::2] result = [] for i in range(l//2): R[start[i]].append(end[i]) # print(R) # go(s) max_time = 0 max_idx = 0 for idx, val in enumerate(go(s)): if max_time <= val: max_time, max_idx = val, idx print(f'#{tc} {max_idx}')
[ "silverlyjoo@gmail.com" ]
silverlyjoo@gmail.com
e8ba407a20cc77436be5149fe041029cbd4dd5ca
5879fa01d2c926a7d5dca6907b04d463fd6988cb
/src_code/chap3/trees.py
f17c58cb88b3b1c854e666dc167b15c4b439a09a
[]
no_license
TechInTech/CodesAboutMachineLearning
572c22057fe2d0cbf89f6d4241079c74eb05b15c
b5128aaf7213be5921c11f3ed3789cc6716276f1
refs/heads/master
2020-05-03T12:31:55.405136
2019-03-31T01:48:12
2019-03-31T01:48:12
178,628,803
0
0
null
null
null
null
UTF-8
Python
false
false
3,704
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/11/25 20:46 # @Author : Despicable Me # @Site : # @File : trees.py # @Software: PyCharm # @Explain : from math import log # 计算给定数据集的香农熵 def calcShannonEnt(dataSet): numEntries = len(dataSet) labelCount = {} for feaVec in dataSet: # currentLabels = feaVec[-1] # if currentLabels not in labelCount.keys(): # 为所有可能分类创建字典 labelCount[currentLabels] = 0 # labelCount[currentLabels] += 1 # shannonEnt = 0.0 for key in labelCount.keys(): prob = float(labelCount[key])/numEntries shannonEnt -= prob * log(prob, 2) return shannonEnt # 按给定特征划分数据集 def splitDataSet(dataSet, axis, value): retDataSet = [] for featVec in dataSet: if featVec[axis] == value: reduceFeatVec = featVec[:axis] reduceFeatVec.extend(featVec[axis+1:]) retDataSet.append(reduceFeatVec) return retDataSet # 选择最好的数据集划分方式 def chooseBestFeatureToSplit(dataSet): numFeatures = len(dataSet[0]) - 1 baseEntropy = calcShannonEnt(dataSet) bestInfoGain = 0.0 bestFeature = -1 for i in range(numFeatures): featList = [example[i] for example in dataSet] uniqueVals = set(featList) newsEntropy = 0.0 for value in uniqueVals: subDataSet = splitDataSet(dataSet, i, value) prob = len(subDataSet) / float(len(dataSet)) newsEntropy += prob * calcShannonEnt(subDataSet) infoGain = baseEntropy - newsEntropy if (infoGain > bestInfoGain): bestInfoGain = infoGain bestFeature = i return bestFeature # 为叶子结点的分类投票 def majorityCnt(classList): classCount = {} for vote in classList: if vote not in classCount.keys(): classCount[vote] = 0 classCount[vote] += 1 sortedClassCount = sorted(classCount.items(), \ key = lambda item:item[1], reverse=True) return sortedClassCount[0][0] # 创建树的函数 def createTree(dataSet, labels): classList = [example[-1] for example in dataSet] if classList.count(classList[0]) == len(classList): return classList[0] if len(dataSet[0]) == 1: return majorityCnt(classList) bestFeat = chooseBestFeatureToSplit(dataSet) bestFeatLabel = labels[bestFeat] myTree = {bestFeatLabel:{}} del(labels[bestFeat]) featValues = [example[bestFeat] for example in dataSet] uniqueVals = set(featValues) for value in uniqueVals: subLabels = labels[:] myTree[bestFeatLabel][value] = createTree(splitDataSet \ (dataSet, bestFeat, value), subLabels) return myTree #使用决策树的分类函数 def classify(inputTree, featLabels, testVec): firstStr = list(inputTree.keys())[0] secondDict = inputTree[firstStr] featIndex = featLabels.index(firstStr) for key in secondDict.keys(): if testVec[featIndex] == key: if type(secondDict[key]).__name__ == 'dict': classLabel = classify(secondDict[key], featLabels, testVec) else: classLabel = secondDict[key] return classLabel # 使用pickle模块存储决策树 def storeTree(inputTree, filename): import pickle fw = open(filename, 'wb') pickle.dump(inputTree, fw) fw.close() def grabTree(filename): import pickle fr = open(filename, 'rb') return pickle.load(fr)
[ "wdw_bluesky@163.com" ]
wdw_bluesky@163.com
99e6b65cb970ee70a101898e1143ac34a29d1dde
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03416/s489426371.py
342af7a20233ed0b21d14286fef3a9ea3e5ecd65
[]
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
180
py
a,b = map(int,input().split()) cnt = 0 for i in range(a,b+1): lis_i = list(str(i)) lis_i.reverse() rev_i = int(''.join(lis_i)) if rev_i == i: cnt += 1 print(cnt)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e58fc4a89416dbd2ebed783b6a4f87c694d90ab6
b4982d67d47aba7af285c0111794d84868b2718a
/SESimulation.py
8dce78fee4348d23a81c022f7724bd4f85e3519d
[]
no_license
yashpatel5400/SESimulate
bee55bb03cea338f1c802cbb132fb4b57c563b08
189fec5e041b7e2b73626a89c03be77a09db781b
refs/heads/master
2021-01-18T13:55:16.981459
2015-07-30T20:14:53
2015-07-30T20:14:53
37,669,725
0
0
null
null
null
null
UTF-8
Python
false
false
11,955
py
##################################################################### # Name: Yash Patel # # File: SESimulation.py # # Description: Contains all the methods pertinent to producing the # # simulation for modelling the relation between SE and exercise # # levels in the form of an ABM (agent-based model) # ##################################################################### import sys import os import csv import random,itertools from copy import deepcopy import numpy as np from NetworkBase import NetworkBase from ERNetwork import ERNetwork from SWNetwork import SWNetwork from ASFNetwork import ASFNetwork from SensitivitySimulations import * import matplotlib.pyplot as plt from operator import itemgetter try: import networkx as nx except ImportError: raise ImportError("You must install NetworkX:\ (http://networkx.lanl.gov/) for SE simulation") class SEModel: ################################################################# # Given a network type (defaults to ASF network), the timespan # # in years, and sensitivity to the different update methods, # # produces an SE simulation object. The default values for the # # impact parameters are as follow: timeImpact = .005, # # coachImpact = .225, pastImpact = .025, socialImpact = .015 # ################################################################# def __init__(self, timeImpact=.005, coachImpact=.225, pastImpact=.025, socialImpact=.015, networkType='ASF', \ timeSpan=10, numAgents=10, numCoaches = 10): if not self.SEModel_verifySE(timeImpact, coachImpact, pastImpact, socialImpact, networkType, timeSpan, \ numAgents, numCoaches): return None self.timeImpact = timeImpact self.coachImpact = coachImpact self.pastImpact = pastImpact self.socialImpact = socialImpact self.networkType = networkType self.timeSpan = timeSpan self.numAgents = numAgents self.numCoaches = numCoaches self.SEModel_setNetwork() ################################################################# # Based on the specified value of the network type, generates # # and sets the network accordingly # ################################################################# def SEModel_setNetwork(self): if self.networkType == 'ER': self.network = ERNetwork(self.numAgents, self.numCoaches, \ 10.0/self.numAgents, ) elif self.networkType == 'SW': self.network = SWNetwork(self.numAgents, self.numCoaches, \ 10, 0.0) else: self.network = ASFNetwork(self.numAgents, self.numCoaches,\ 9, 7) ################################################################# # Given parameters for initializing the simulation, ensures they# # are legal # ################################################################# def SEModel_verifySE(self, timeImpact, coachImpact, pastImpact, socialImpact, networkType, timeSpan, \ numAgents, numCoaches): if not isinstance(networkType, str): sys.stderr.write("Network type must be of type string") return False if networkType != 'SW' and networkType != 'ASF'\ and networkType != 'ER': sys.stderr.write("Network type must either SW, ASF, or ER") return False if not isinstance(timeSpan, int): sys.stderr.write("Time span must be of type int") return False if not isinstance(numAgents, int): sys.stderr.write("Number of agents must be of type int") return False if not isinstance(numCoaches, int): sys.stderr.write("Number of coaches must be of type int") return False if not isinstance(timeImpact, float): sys.stderr.write("timeImpact must be of type float") return False if not isinstance(coachImpact, float): sys.stderr.write("coachImpact must be of type float") return False if not isinstance(pastImpact, float): sys.stderr.write("pastImpact must be of type float") return False if not isinstance(socialImpact, float): sys.stderr.write("socialImpact must be of type float") return False return True ################################################################# # Writes the header of the CSV file to be given as output in the# # specified file # ################################################################# def SEModel_writeSimulationHeader(self, resultsFile): if resultsFile is not None: columns = ['time', 'agent_id','has_coach', 'lowLevel', \ 'medLevel', 'highLevel', 'exercise_pts', 'SE'] with open(resultsFile, 'w') as f: writer = csv.writer(f) writer.writerow(columns) ################################################################# # Writes the current data/parameters corresponding to each agent# # in the network at the current time step, given the current # # time in the simulation and the file to be written to # ################################################################# def SEModel_writeSimulationData(self, time, resultsFile): if resultsFile is not None: with open(resultsFile, 'a') as f: writer = csv.writer(f) Agents = self.network.networkBase.Agents for agent in Agents: curAgent = Agents[agent] exLevels = curAgent.Agent_getExerciseLevels() row = [time, curAgent.agentID, \ curAgent.hasCoach, exLevels[0], \ exLevels[1], exLevels[2], \ curAgent.Agent_getExercisePts(), curAgent.SE] writer.writerow(row) ################################################################# # Creates a bar graph comparing two specified values (val1,val2)# # outputting result into file with fileName. Uses label, title # # for producing the graph # ################################################################# def SEModel_createBarResults(self, val1, val2, fileName, label, title): N = len(val1) ind = np.arange(N) # the x locations for the groups width = 0.25 # the width of the bars fig, ax = plt.subplots() rects1 = ax.bar(ind, val1, width, color='r') rects2 = ax.bar(ind+width, val2, width, color='b') # add some text for labels, title and axes ticks ax.set_ylabel("Agent ID") ax.set_ylabel(label) ax.set_title(title) ax.set_xticks(ind+width) labels = [] for i in range(0, N): curWord = str(i + 1) labels.append(curWord) ax.set_xticklabels(labels) ax.legend( (rects1[0], rects2[0]), ('Before', 'After') ) plt.savefig("Results\\TimeResults\\" + fileName + ".png") plt.close() ################################################################# # Runs simulation over the desired timespan and produces/outputs# # results in CSV file specified along with displaying graphics # ################################################################# def SEModel_runSimulation(self, resultsFile): self.SEModel_writeSimulationHeader(resultsFile) # Converts from years to "ticks" (represent 2 week span) numTicks = self.timeSpan * 26 pos = nx.random_layout(self.network.G) SEBefore = [] ExBefore = [] for curAgent in self.network.Agents: agent = self.network.networkBase.\ NetworkBase_getAgent(curAgent) SEBefore.append(agent.SE) ExBefore.append(agent.Agent_getExercisePts()) for i in range(0, numTicks): if i % 10 == 0: self.SEModel_writeSimulationData(i, resultsFile) print("Plotting time step " + str(i)) self.network.networkBase.\ NetworkBase_visualizeNetwork(False, i, pos) # Updates the agents in the network base and copies those # to the network self.network.networkBase.NetworkBase_updateAgents(i, \ self.timeImpact, self.coachImpact, self.pastImpact, \ self.socialImpact) self.network.Agents = self.network.networkBase.Agents SEAfter = [] ExAfter = [] for curAgent in self.network.Agents: agent = self.network.networkBase.\ NetworkBase_getAgent(curAgent) SEAfter.append(agent.SE) ExAfter.append(agent.Agent_getExercisePts()) # Creates bar graphs of change in SE, exercise for individuals self.SEModel_createBarResults(SEBefore, SEAfter, \ "BarSEResults", "SE", "SE Before/After") self.SEModel_createBarResults(ExBefore, ExAfter, \ "BarExResults", "Exercise Pts", "Exercise Pts Before/After") ################################################################# # Runs simulation over the desired timespan without producing # # visible output: used for sensitivity analysis # ################################################################# def SEModel_runStreamlineSimulation(self): numTicks = self.timeSpan * 26 for i in range(0, numTicks): # Updates the agents in the network base and copies those # to the network self.network.networkBase.NetworkBase_updateAgents(i, \ self.timeImpact, self.coachImpact, self.pastImpact, \ self.socialImpact) self.network.Agents = self.network.networkBase.Agents ##################################################################### # Given the paramters of the simulation (upon being prompted on) # # command line, runs simulation, outputting a CSV with each time # # step and a graphical display corresponding to the final iteration # ##################################################################### if __name__ == "__main__": # Get all input for initializing simulation # ER, SW, or ASF networkType = "SW" timeSpan = 15 numAgents = 25 numCoaches = 10 # Defaults for the impact values are as follow: # timeImpact = .005, coachImpact = .225, pastImpact = .025 # socialImpact = .015. Feel free to change as desired below # for sensitivity analysis (automated by displaySensitive below) timeImpact = 0.005 coachImpact = 0.225 pastImpact = 0.025 socialImpact = 0.015 displaySensitive = True resultsFile = "Results\\TimeResults\\results.csv" simulationModel = SEModel(timeImpact, coachImpact, pastImpact, \ socialImpact, networkType, timeSpan, numAgents, numCoaches) simulationModel.SEModel_runSimulation(resultsFile) # Runs alternative simulations for depicting effect of changing # parameters on overall results -- Done before actual simulation # due to bug in graphical display if displaySensitive: Sensitivity_sensitivitySimulation(networkType, timeSpan, \ numAgents, numCoaches, timeImpact, coachImpact, \ pastImpact, socialImpact) print("Terminating simulation...")
[ "ypatel@princeton.edu" ]
ypatel@princeton.edu
be607dbbcbd2027645970f9fda8a91b67ed59e58
8294210e610aa9fbd52b2db48ad80c9e29ce43d1
/source/MDclassic_games/resources/examples/farmers_app/kivymd/color_definitions.py
3df1ba0596e5322d061d7cc9918777e762280d37
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
osso73/classic_games
4d80362e0288adfe167c755a07f8dea650bc84b9
50e80b876b35078ec4f7ba960c6d2d66e185f24d
refs/heads/main
2023-07-14T16:56:23.128340
2021-08-16T18:00:06
2021-08-16T18:00:06
318,284,531
0
1
MIT
2020-12-08T12:05:52
2020-12-03T18:29:15
Python
UTF-8
Python
false
false
18,315
py
""" Color Definitions ===== Copyright (c) 2015 Andrés Rodríguez and KivyMD contributors - KivyMD library up to version 0.1.2 Copyright (c) 2019 Ivanov Yuri and KivyMD contributors - KivyMD library version 0.1.3 and higher For suggestions and questions: <kivydevelopment@gmail.com> This file is distributed under the terms of the same license, as the Kivy framework. `Material Design spec, The color system <https://material.io/design/color/the-color-system.html>`_ """ colors = { "Red": { "50": "FFEBEE", "100": "FFCDD2", "200": "EF9A9A", "300": "E57373", "400": "EF5350", "500": "F44336", "600": "E53935", "700": "D32F2F", "800": "C62828", "900": "B71C1C", "A100": "FF8A80", "A200": "FF5252", "A400": "FF1744", "A700": "D50000", }, "Pink": { "50": "FCE4EC", "100": "F8BBD0", "200": "F48FB1", "300": "F06292", "400": "EC407A", "500": "E91E63", "600": "D81B60", "700": "C2185B", "800": "AD1457", "900": "880E4F", "A100": "FF80AB", "A200": "FF4081", "A400": "F50057", "A700": "C51162", }, "Purple": { "50": "F3E5F5", "100": "E1BEE7", "200": "CE93D8", "300": "BA68C8", "400": "AB47BC", "500": "9C27B0", "600": "8E24AA", "700": "7B1FA2", "800": "6A1B9A", "900": "4A148C", "A100": "EA80FC", "A200": "E040FB", "A400": "D500F9FF", }, "DeepPurple": { "50": "EDE7F6", "100": "D1C4E9", "200": "B39DDB", "300": "9575CD", "400": "7E57C2", "500": "673AB7", "600": "5E35B1", "700": "512DA8", "800": "4527A0", "900": "311B92", "A100": "B388FF", "A200": "7C4DFF", "A400": "651FFF", "A700": "6200EA", }, "Indigo": { "50": "E8EAF6", "100": "C5CAE9", "200": "9FA8DA", "300": "7986CB", "400": "5C6BC0", "500": "3F51B5", "600": "3949AB", "700": "303F9F", "800": "283593", "900": "1A237E", "A100": "8C9EFF", "A200": "536DFE", "A400": "3D5AFE", "A700": "304FFE", }, "Blue": { "50": "E3F2FD", "100": "BBDEFB", "200": "90CAF9", "300": "64B5F6", "400": "42A5F5", "500": "2196F3", "600": "1E88E5", "700": "1976D2", "800": "1565C0", "900": "0D47A1", "A100": "82B1FF", "A200": "448AFF", "A400": "2979FF", "A700": "2962FF", }, "LightBlue": { "50": "E1F5FE", "100": "B3E5FC", "200": "81D4FA", "300": "4FC3F7", "400": "29B6F6", "500": "03A9F4", "600": "039BE5", "700": "0288D1", "800": "0277BD", "900": "01579B", "A100": "80D8FF", "A200": "40C4FF", "A400": "00B0FF", "A700": "0091EA", }, "Cyan": { "50": "E0F7FA", "100": "B2EBF2", "200": "80DEEA", "300": "4DD0E1", "400": "26C6DA", "500": "00BCD4", "600": "00ACC1", "700": "0097A7", "800": "00838F", "900": "006064", "A100": "84FFFF", "A200": "18FFFF", "A400": "00E5FF", "A700": "00B8D4", }, "Teal": { "50": "E0F2F1", "100": "B2DFDB", "200": "80CBC4", "300": "4DB6AC", "400": "26A69A", "500": "009688", "600": "00897B", "700": "00796B", "800": "00695C", "900": "004D40", "A100": "A7FFEB", "A200": "64FFDA", "A400": "1DE9B6", "A700": "00BFA5", }, "Green": { "50": "E8F5E9", "100": "C8E6C9", "200": "A5D6A7", "300": "81C784", "400": "66BB6A", "500": "4CAF50", "600": "43A047", "700": "388E3C", "800": "2E7D32", "900": "1B5E20", "A100": "B9F6CA", "A200": "69F0AE", "A400": "00E676", "A700": "00C853", }, "LightGreen": { "50": "F1F8E9", "100": "DCEDC8", "200": "C5E1A5", "300": "AED581", "400": "9CCC65", "500": "8BC34A", "600": "7CB342", "700": "689F38", "800": "558B2F", "900": "33691E", "A100": "CCFF90", "A200": "B2FF59", "A400": "76FF03", "A700": "64DD17", }, "Lime": { "50": "F9FBE7", "100": "F0F4C3", "200": "E6EE9C", "300": "DCE775", "400": "D4E157", "500": "CDDC39", "600": "C0CA33", "700": "AFB42B", "800": "9E9D24", "900": "827717", "A100": "F4FF81", "A200": "EEFF41", "A400": "C6FF00", "A700": "AEEA00", }, "Yellow": { "50": "FFFDE7", "100": "FFF9C4", "200": "FFF59D", "300": "FFF176", "400": "FFEE58", "500": "FFEB3B", "600": "FDD835", "700": "FBC02D", "800": "F9A825", "900": "F57F17", "A100": "FFFF8D", "A200": "FFFF00", "A400": "FFEA00", "A700": "FFD600", }, "Amber": { "50": "FFF8E1", "100": "FFECB3", "200": "FFE082", "300": "FFD54F", "400": "FFCA28", "500": "FFC107", "600": "FFB300", "700": "FFA000", "800": "FF8F00", "900": "FF6F00", "A100": "FFE57F", "A200": "FFD740", "A400": "FFC400", "A700": "FFAB00", }, "Orange": { "50": "FFF3E0", "100": "FFE0B2", "200": "FFCC80", "300": "FFB74D", "400": "FFA726", "500": "FF9800", "600": "FB8C00", "700": "F57C00", "800": "EF6C00", "900": "E65100", "A100": "FFD180", "A200": "FFAB40", "A400": "FF9100", "A700": "FF6D00", }, "DeepOrange": { "50": "FBE9E7", "100": "FFCCBC", "200": "FFAB91", "300": "FF8A65", "400": "FF7043", "500": "FF5722", "600": "F4511E", "700": "E64A19", "800": "D84315", "900": "BF360C", "A100": "FF9E80", "A200": "FF6E40", "A400": "FF3D00", "A700": "DD2C00", }, "Brown": { "50": "EFEBE9", "100": "D7CCC8", "200": "BCAAA4", "300": "A1887F", "400": "8D6E63", "500": "795548", "600": "6D4C41", "700": "5D4037", "800": "4E342E", "900": "3E2723", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "Gray": { "50": "FAFAFA", "100": "F5F5F5", "200": "EEEEEE", "300": "E0E0E0", "400": "BDBDBD", "500": "9E9E9E", "600": "757575", "700": "616161", "800": "424242", "900": "212121", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "BlueGray": { "50": "ECEFF1", "100": "CFD8DC", "200": "B0BEC5", "300": "90A4AE", "400": "78909C", "500": "607D8B", "600": "546E7A", "700": "455A64", "800": "37474F", "900": "263238", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "Light": { "StatusBar": "E0E0E0", "AppBar": "F5F5F5", "Background": "FAFAFA", "CardsDialogs": "FFFFFF", "FlatButtonDown": "cccccc", }, "Dark": { "StatusBar": "000000", "AppBar": "212121", "Background": "303030", "CardsDialogs": "424242", "FlatButtonDown": "999999", }, } palette = [ "Red", "Pink", "Purple", "DeepPurple", "Indigo", "Blue", "LightBlue", "Cyan", "Teal", "Green", "LightGreen", "Lime", "Yellow", "Amber", "Orange", "DeepOrange", "Brown", "Gray", "BlueGray", ] hue = [ "50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "A100", "A200", "A400", "A700", ] light_colors = { "Red": ["50", "100", "200", "300", "A100"], "Pink": ["50", "100", "200", "A100"], "Purple": ["50", "100", "200", "A100"], "DeepPurple": ["50", "100", "200", "A100"], "Indigo": ["50", "100", "200", "A100"], "Blue": ["50", "100", "200", "300", "400", "A100"], "LightBlue": [ "50", "100", "200", "300", "400", "500", "A100", "A200", "A400", ], "Cyan": [ "50", "100", "200", "300", "400", "500", "600", "A100", "A200", "A400", "A700", ], "Teal": ["50", "100", "200", "300", "400", "A100", "A200", "A400", "A700"], "Green": [ "50", "100", "200", "300", "400", "500", "A100", "A200", "A400", "A700", ], "LightGreen": [ "50", "100", "200", "300", "400", "500", "600", "A100", "A200", "A400", "A700", ], "Lime": [ "50", "100", "200", "300", "400", "500", "600", "700", "800", "A100", "A200", "A400", "A700", ], "Yellow": [ "50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "A100", "A200", "A400", "A700", ], "Amber": [ "50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "A100", "A200", "A400", "A700", ], "Orange": [ "50", "100", "200", "300", "400", "500", "600", "700", "A100", "A200", "A400", "A700", ], "DeepOrange": ["50", "100", "200", "300", "400", "A100", "A200"], "Brown": ["50", "100", "200"], "Gray": ["51", "100", "200", "300", "400", "500"], "BlueGray": ["50", "100", "200", "300"], "Dark": [], "Light": ["White", "MainBackground", "DialogBackground"], } """ # How to generate text_colors dict: text_colors = {} for p in palette: text_colors[p] = {} for h in hue: if h in light_colors[p]: text_colors[p][h] = '000000' else: text_colors[p][h] = 'FFFFFF' """ text_colors = { "Red": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "FFFFFF", "500": "FFFFFF", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "FFFFFF", "A400": "FFFFFF", "A700": "FFFFFF", }, "Pink": { "50": "000000", "100": "000000", "200": "000000", "300": "FFFFFF", "400": "FFFFFF", "500": "FFFFFF", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "FFFFFF", "A400": "FFFFFF", "A700": "FFFFFF", }, "Purple": { "50": "000000", "100": "000000", "200": "000000", "300": "FFFFFF", "400": "FFFFFF", "500": "FFFFFF", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "FFFFFF", "A400": "FFFFFF", "A700": "FFFFFF", }, "DeepPurple": { "50": "000000", "100": "000000", "200": "000000", "300": "FFFFFF", "400": "FFFFFF", "500": "FFFFFF", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "FFFFFF", "A400": "FFFFFF", "A700": "FFFFFF", }, "Indigo": { "50": "000000", "100": "000000", "200": "000000", "300": "FFFFFF", "400": "FFFFFF", "500": "FFFFFF", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "FFFFFF", "A400": "FFFFFF", "A700": "FFFFFF", }, "Blue": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "FFFFFF", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "FFFFFF", "A400": "FFFFFF", "A700": "FFFFFF", }, "LightBlue": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "000000", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "FFFFFF", }, "Cyan": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "000000", "600": "000000", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "Teal": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "FFFFFF", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "Green": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "000000", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "LightGreen": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "000000", "600": "000000", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "Lime": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "000000", "600": "000000", "700": "000000", "800": "000000", "900": "FFFFFF", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "Yellow": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "000000", "600": "000000", "700": "000000", "800": "000000", "900": "000000", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "Amber": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "000000", "600": "000000", "700": "000000", "800": "000000", "900": "000000", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "Orange": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "000000", "600": "000000", "700": "000000", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "000000", "A400": "000000", "A700": "000000", }, "DeepOrange": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "FFFFFF", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "000000", "A200": "000000", "A400": "FFFFFF", "A700": "FFFFFF", }, "Brown": { "50": "000000", "100": "000000", "200": "000000", "300": "FFFFFF", "400": "FFFFFF", "500": "FFFFFF", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "FFFFFF", "A200": "FFFFFF", "A400": "FFFFFF", "A700": "FFFFFF", }, "Gray": { "50": "FFFFFF", "100": "000000", "200": "000000", "300": "000000", "400": "000000", "500": "000000", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "FFFFFF", "A200": "FFFFFF", "A400": "FFFFFF", "A700": "FFFFFF", }, "BlueGray": { "50": "000000", "100": "000000", "200": "000000", "300": "000000", "400": "FFFFFF", "500": "FFFFFF", "600": "FFFFFF", "700": "FFFFFF", "800": "FFFFFF", "900": "FFFFFF", "A100": "FFFFFF", "A200": "FFFFFF", "A400": "FFFFFF", "A700": "FFFFFF", }, } theme_colors = [ "Primary", "Secondary", "Background", "Surface", "Error", "On_Primary", "On_Secondary", "On_Background", "On_Surface", "On_Error", ]
[ "osso@gmx.es" ]
osso@gmx.es
e0b9a8fdf585de67f8a74f15a354b876691512cb
b7a2023b2ebfc182f0d282e8421a6218c7dda33f
/code/re/re_compile.py
83c8de44f991f0949216f5ba0c93b5f2740db3f2
[]
no_license
ly838070494/py
c71d9437b2ef4bf5bf18e54da18b3b4b29c323be
44ab8d607b897c165ca143ddee2d00066135dc97
refs/heads/master
2020-03-09T10:16:37.624728
2018-05-17T05:57:39
2018-05-17T05:57:39
128,733,415
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
import re content= """hello 12345 world_this 123 fan """ pattern =re.compile("hello.*fan",re.S) #将正则表达式编译成正则表达式对象,方便复用该正则表达式 result = re.match(pattern,content) print(result) print(result.group())
[ "838070494@qq.com" ]
838070494@qq.com
428509923d84fff298c53ee4225a2ba5eb190637
560df0c3f859ae2d4c279f4669f9ab8758c486fb
/old/Euler132.py
293bf34b3691f20d9f35e50109a76da02f72fd03
[]
no_license
gronkyzog/Puzzles
0e7cdd7fa5ab8139d63a721cac5ee30e80728c7a
cdc145857f123a98f1323c95b5744d36ce50355f
refs/heads/master
2021-03-13T00:01:17.715403
2015-02-22T11:59:03
2015-02-22T11:59:03
17,100,928
0
0
null
null
null
null
UTF-8
Python
false
false
773
py
def primesieve(n): # return all primes <= n A = [0 for i in range(0,n+1)] for i in range(4,n+1,2): A[i]=1 for i in range(3,n+1,2): if A[i]==1: continue else: for j in range(2*i,n+1,i): A[j]=1 return [i for i in range(2,n+1) if A[i]==0] def cycle(q): x =1 k=1 while True: x = (10*x + 1) % q k+=1 if x ==0: return k P = [p for p in primesieve(10**6) if p > 5] counter = 0 total = 0 for p in P: x = cycle(p) if x > 0: if 10**9 % x ==0: counter +=1 total += p print counter,total,p,x if counter ==40: break else: print 'WTF %d' %p
[ "smcnicol@gmail.com" ]
smcnicol@gmail.com
4be465f992bf1d62c875bb644df075f40a8e9aee
7af6fb83a5635a013597ff5c8d415f6d170d4fe5
/django_alexa/internal/exceptions.py
33cca2a4286c5c69f0b7a94e316c439871afa1f5
[ "MIT" ]
permissive
pycontribs/django-alexa
cbc4677c64486b200e8d36390d9ffd0e3f84bd1f
459f4ce21ebaadfd86ec62d23e50cafb140c6406
refs/heads/master
2023-08-28T16:43:40.523752
2020-02-17T13:45:20
2020-02-17T13:45:20
46,812,607
57
62
MIT
2021-04-20T17:54:25
2015-11-24T19:08:26
Python
UTF-8
Python
false
false
41
py
class InternalError(Exception): pass
[ "krockman@underarmour.com" ]
krockman@underarmour.com
2220882eeaddd313ec536a31a5eca34d338afbf4
bae050d8a221b82e17f1bb4b584dc89500496e0a
/Arduino/Servo.py
936bf53cf7bb1ad47a2e8fc90fb9b195da0b728d
[]
no_license
miercat0424/AI
b2e2ee964c2f6fb9f08dd84bd03cb9614bc55f3a
fa8f0e6149413b64cefae157f9cb337c08949cbe
refs/heads/main
2023-07-14T21:13:44.704549
2021-08-21T14:42:27
2021-08-21T14:42:27
395,982,550
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
from pyfirmata import Arduino , SERVO , util , o import numpy as np import time board = Arduino("/dev/cu.usbmodem14401") iterator = util.Iterator(board) iterator.start() board.digital[9].mode = SERVO def rotate(pin , angle) : board.digital[pin].write(angle) result = [x for x in np.arange(10,180,2)] for i in result : print(f"{round(i,1)} : degree") rotate(9,i) time.sleep(0.2)
[ "noreply@github.com" ]
miercat0424.noreply@github.com
5dc9e4ff6222938971ed54e8334b540676ae9b2d
9231896ecef60d482feab715681fe406119742e8
/day5a.py
49fe8e8544ef19089f0375e056df3dc52ca64731
[]
no_license
alistairong/AdventOfCode2017
040a52ff9d44f48d2fc5a29bd8269699ce9be047
d702d7a54921f867ee535d1f2d1d9f246d3fb7fe
refs/heads/master
2021-09-02T04:29:14.336227
2017-12-30T09:47:45
2017-12-30T09:47:45
113,420,934
0
0
null
null
null
null
UTF-8
Python
false
false
5,020
py
myVar = """1 0 0 1 0 -3 -3 -6 0 -7 -9 0 -2 0 -8 -1 -15 -15 -4 -12 -19 -3 -12 -10 -3 -17 -17 -9 -18 -20 -1 -6 -29 -18 -5 -25 -13 -22 -33 2 -39 -40 -33 -33 -27 -7 -44 1 -20 -46 -41 0 -19 0 -10 -15 -21 -17 -52 -20 -45 -34 -30 -29 -40 -1 -18 -10 -19 -15 -64 -61 -53 -28 -45 -12 -73 -36 -36 -2 -30 -56 -63 -42 -8 -35 -32 -39 -22 -87 -45 -35 -74 1 -5 -45 -16 -19 -48 -25 -94 -85 -75 -15 -79 -37 -82 -13 -85 -20 -52 -50 -85 -13 -70 -16 -86 0 -68 -55 -15 -25 -31 -117 -91 -67 -114 -108 -50 -76 -116 -12 -27 -98 -115 -101 -124 -2 -4 -95 -41 -35 -110 -86 -4 -126 -67 -94 -81 -101 -93 -109 -71 -152 -110 -145 -28 -139 -106 -83 -58 -100 -1 -21 -112 -130 -102 -34 -80 -49 -11 -72 -82 -132 -36 -119 -127 -85 -66 -12 -43 -3 -86 -116 -125 -162 0 -185 -39 -27 -159 -23 -71 -50 -119 -183 -56 -48 -113 -197 -199 -6 -92 -7 -39 -63 -67 -22 -126 -170 -67 -59 -114 -207 -13 -15 -168 -167 -15 -143 -128 -136 -115 2 -113 -74 -104 -91 -157 -121 -126 -125 -112 -106 -194 -146 -165 -139 -97 -134 -133 -165 -237 -69 -10 -232 -100 -168 -53 -83 -149 -42 -71 -119 -185 -110 -92 -256 -19 -249 -147 -68 -205 -52 -212 -5 -167 -63 -264 -176 -180 -223 -15 -158 -2 -134 -268 -92 -193 -145 -141 -218 -99 -85 -213 -24 -82 -201 -109 0 -152 -14 -168 -103 -232 -7 -115 -141 -273 -117 -201 -165 -265 -81 -64 -243 -123 0 -24 -140 -235 -194 -11 -129 -128 -211 -59 -97 -40 -76 -104 -38 -312 -225 -93 -113 -108 -109 -22 -128 -250 -222 -262 -214 -34 -87 -176 -166 -33 -226 -198 -238 -159 -295 -245 -227 -211 -59 -237 -74 -92 -221 -118 -77 -160 -110 -260 -259 -25 -117 -120 -304 -273 -89 -354 -85 -339 -366 -46 -91 -280 -68 -62 -118 -178 -249 -281 -273 -360 -356 -150 -367 -47 -289 -51 -233 -158 -226 -372 -212 -139 -119 -238 -244 -39 -263 -239 -374 -257 -146 -347 -209 -350 2 -403 -149 -381 -55 -114 -294 -106 -118 -222 -24 -259 -301 -357 -13 -137 -281 -88 -7 -276 2 -7 -232 -337 -172 -181 -129 -51 -147 -310 -253 -396 -111 -386 -106 -240 -432 -94 -239 -334 -135 -196 -329 -228 -10 -438 -419 -86 -167 -56 -200 -69 -229 -90 -147 -160 -345 -7 -96 -251 -113 -53 -186 -426 -244 -185 -178 -267 -378 -368 -53 -424 -178 -179 -353 -242 -182 -423 -139 -49 -335 -225 -3 -13 -159 -245 -244 -359 -223 -380 -264 -383 -285 -322 -471 -7 -295 -84 -291 -92 -129 -175 -205 -49 -164 -262 -105 -364 -438 -283 -415 -323 -167 -501 -22 -428 -10 -156 -517 -385 -356 -396 -295 -372 -409 -311 -261 -262 -4 -41 -264 -436 -316 -22 -449 -444 -306 -324 -16 -431 -379 -476 -369 -198 -312 -393 -47 -277 -523 -402 -368 -312 -418 -21 -372 -86 -286 -475 -183 -405 -427 -404 -405 -446 -549 -296 -249 -243 -472 -450 -126 -260 -227 -25 -348 -122 -80 -330 -222 -389 -360 -250 -310 -544 -113 -556 -445 -457 -533 -447 -251 -373 -343 -391 -12 -567 -128 -332 -245 -252 -517 -101 -480 -401 -290 -394 -321 -533 -257 -102 -152 -251 -102 -507 -597 -175 -345 -442 -600 -306 -149 -151 -355 -71 -315 -35 -161 -404 -253 -526 -275 -339 -483 -315 -423 -116 -345 -507 -332 -27 -395 -634 -548 -205 -276 -213 -356 -413 -353 -89 -88 -649 -465 -580 -286 -607 -21 -35 -227 -415 -501 -343 -245 -94 -200 -376 -43 -585 -668 -623 -264 -574 -223 -628 -556 -100 -53 -88 -644 -285 -631 -418 -369 -477 -379 -199 -68 -323 -337 -318 -651 -255 -323 -38 -502 -356 -550 -555 -679 -170 -38 -516 -367 -687 -52 -23 -225 -451 -323 -637 -264 0 -535 -67 -254 -580 -173 -301 -374 -120 -8 -197 -154 -173 -597 -525 -341 -278 -721 -360 -728 -607 -346 -491 -247 2 -121 -505 -694 -706 -297 -4 -110 -187 -259 -414 -323 -637 -96 -157 -331 -521 -590 -390 -220 -100 -156 -302 -545 -322 -450 -236 -287 -605 -346 -467 -25 -382 -430 -682 2 -261 -605 -635 -633 -553 -491 -226 -622 -191 -48 -92 -218 -548 -651 -672 -631 -764 -367 -108 -507 -790 -573 -282 -334 -280 -285 -105 -797 -228 -85 -102 -623 -304 -52 -278 -243 -681 -133 -606 -345 -354 -402 -6 -353 -447 -69 -432 -54 -486 -78 -774 -241 -625 -806 -425 -790 -381 -507 -755 -304 -362 -606 -256 -25 -341 -451 -12 -606 -738 -484 -167 -663 1 -481 -788 -469 -388 -59 -105 -402 -523 -717 -234 -611 -543 -435 -383 -267 -217 -275 -610 -335 -411 -842 -131 -460 -527 -511 -761 -160 -660 -605 -817 -546 -286 -604 -204 -223 -558 -652 -542 -350 -527 -59 -782 -764 -529 -608 -688 -301 -715 -148 -492 -796 -285 -491 -702 -767 -191 -572 -712 -207 -589 -39 -278 -485 -273 -51 -560 -718 -790 0 -194 -319 -171 -552 -247 -810 -737 -677 -853 -806 -565 -923 -427 -442 -375 -215 -706 -139 -396 -126 -170 -281 -544 -101 -271 -728 -485 -677 -442 -137 -78 -414 -546 -669 -609 -284 -488 -181 -534 -946 -191 -255 -413 -614 -329 -932 -528 -689 -246 -272 -395 -211 -702 -786 -595 -835 -870 -822 -507 -533 -147 -141 -385 -623 -745 -575 -225 -79 -736 -887 -649 -133 -500 -422 -810 -491 -480 -462 -16 -848 -740 -809 -9 -399 -535 -274 -165 -119 -77 -340 -597 -755 -611 -929 -50 -745 -530 -392 -77 -760 -961 -28 -507 -21 -253 -846 -996 -308 -175 -684 -315 -859 -757 -418 -591 -946 -393 -25 -917 -208 -572""" myVar = myVar.split() myVar = list(map(int, myVar)) i = 0 currentNum = 0 stepCount = 0 while i < len(myVar) and i >= 0: currentNum = myVar[i] myVar[i] = myVar[i] + 1 i += currentNum stepCount += 1 print(stepCount)
[ "ongalistair@gmail.com" ]
ongalistair@gmail.com
31e367305ffae108012b7576f79357e3378ff782
8e5a5cb2e9130d3d13a4003110543aea46452254
/pages/basket_page.py
86b7f9f3e5a7efaf625951bc8184fb498fd9ea24
[]
no_license
MaksIhn/seleniumPageObject
1c7acd805a5f4de1eea9ba37c665800041404efe
3a081aca369b3fc4c7f11eefe1f81f675c55187c
refs/heads/main
2023-07-21T15:56:50.540826
2021-09-06T12:38:01
2021-09-06T12:38:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
from .base_page import BasePage from .locators import BasketPageLocators class BasketPage(BasePage): def is_basket_empty(self): assert self.is_not_element_present(*BasketPageLocators.BASKET_ITEMS),\ 'Basket is not empty, but should be!' def should_be_text_your_basket_is_empty(self): assert "Your basket is empty" in \ self.browser.find_element(*BasketPageLocators.BASKET_MESSAGE).text,\ 'Message that basket is empty is not finded!'
[ "m.ignatyuk@mycredit.ua" ]
m.ignatyuk@mycredit.ua
2e84b492e26ae1e2edbd1e26b00ceb9352d3bbe5
20a6bab33d3daec34c492353fc484cd4682e2612
/2_train.py
0cebeeaf80400997c8730f368080a17b9bc03388
[]
no_license
Thiagobc23/Object_Detection
32292a0fbbafa79e456c7d8ae6c353264871ae27
0573dac32a5b31cb5168dd9714f64635aefae61e
refs/heads/master
2020-04-26T16:29:22.590152
2019-04-17T02:15:01
2019-04-17T02:15:01
173,680,452
1
0
null
null
null
null
UTF-8
Python
false
false
7,584
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== r"""Training executable for detection models. This executable is used to train DetectionModels. There are two ways of configuring the training job: 1) A single pipeline_pb2.TrainEvalPipelineConfig configuration file can be specified by --pipeline_config_path. Example usage: ./train \ --logtostderr \ --train_dir=path/to/train_dir \ --pipeline_config_path=pipeline_config.pbtxt 2) Three configuration files can be provided: a model_pb2.DetectionModel configuration file to define what type of DetectionModel is being trained, an input_reader_pb2.InputReader file to specify what training data will be used and a train_pb2.TrainConfig file to configure training parameters. Example usage: ./train \ --logtostderr \ --train_dir=path/to/train_dir \ --model_config_path=model_config.pbtxt \ --train_config_path=train_config.pbtxt \ --input_config_path=train_input_config.pbtxt """ import functools import json import os import tensorflow as tf from google.protobuf import text_format from object_detection.builders import input_reader_builder from object_detection.builders import model_builder from object_detection.protos import input_reader_pb2 from object_detection.protos import model_pb2 from object_detection.protos import pipeline_pb2 from object_detection.protos import train_pb2 from object_detection.legacy import trainer tf.logging.set_verbosity(tf.logging.INFO) flags = tf.app.flags flags.DEFINE_string('master', '', 'BNS name of the TensorFlow master to use.') flags.DEFINE_integer('task', 0, 'task id') flags.DEFINE_integer('num_clones', 1, 'Number of clones to deploy per worker.') flags.DEFINE_boolean('clone_on_cpu', False, 'Force clones to be deployed on CPU. Note that even if ' 'set to False (allowing ops to run on gpu), some ops may ' 'still be run on the CPU if they have no GPU kernel.') flags.DEFINE_integer('worker_replicas', 1, 'Number of worker+trainer ' 'replicas.') flags.DEFINE_integer('ps_tasks', 0, 'Number of parameter server tasks. If None, does not use ' 'a parameter server.') flags.DEFINE_string('train_dir', 'C:/py/Whale_tail_Detection/train', 'Directory to save the checkpoints and training summaries.') flags.DEFINE_string('pipeline_config_path1', 'C:/py/Whale_tail_Detection/rcnn_inception_v2_coco.config', 'Path to a pipeline_pb2.TrainEvalPipelineConfig config ' 'file. If provided, other configs are ignored') flags.DEFINE_string('train_config_path', 'C:/py/Whale_tail_Detection/items_train.record', 'Path to a train_pb2.TrainConfig config file.') flags.DEFINE_string('input_config_path', 'C:/py/Whale_tail_Detection/items_val.record', 'Path to an input_reader_pb2.InputReader config file.') flags.DEFINE_string('model_config_path', 'C:/py/Whale_tail_Detection/rcnn_inception_v2_coco/model.ckpt', 'Path to a model_pb2.DetectionModel config file.') FLAGS = flags.FLAGS def get_configs_from_pipeline_file(): """Reads training configuration from a pipeline_pb2.TrainEvalPipelineConfig. Reads training config from file specified by pipeline_config_path flag. Returns: model_config: model_pb2.DetectionModel train_config: train_pb2.TrainConfig input_config: input_reader_pb2.InputReader """ pipeline_config = pipeline_pb2.TrainEvalPipelineConfig() with tf.gfile.GFile(FLAGS.pipeline_config_path1, 'r') as f: text_format.Merge(f.read(), pipeline_config) model_config = pipeline_config.model train_config = pipeline_config.train_config input_config = pipeline_config.train_input_reader return model_config, train_config, input_config def get_configs_from_multiple_files(): """Reads training configuration from multiple config files. Reads the training config from the following files: model_config: Read from --model_config_path train_config: Read from --train_config_path input_config: Read from --input_config_path Returns: model_config: model_pb2.DetectionModel train_config: train_pb2.TrainConfig input_config: input_reader_pb2.InputReader """ train_config = train_pb2.TrainConfig() with tf.gfile.GFile(FLAGS.train_config_path, 'r') as f: text_format.Merge(f.read(), train_config) model_config = model_pb2.DetectionModel() with tf.gfile.GFile(FLAGS.model_config_path, 'r') as f: text_format.Merge(f.read(), model_config) input_config = input_reader_pb2.InputReader() with tf.gfile.GFile(FLAGS.input_config_path, 'r') as f: text_format.Merge(f.read(), input_config) return model_config, train_config, input_config def main(_): assert FLAGS.train_dir, '`train_dir` is missing.' if FLAGS.pipeline_config_path1: model_config, train_config, input_config = get_configs_from_pipeline_file() else: model_config, train_config, input_config = get_configs_from_multiple_files() model_fn = functools.partial( model_builder.build, model_config=model_config, is_training=True) create_input_dict_fn = functools.partial( input_reader_builder.build, input_config) env = json.loads(os.environ.get('TF_CONFIG', '{}')) cluster_data = env.get('cluster', None) cluster = tf.train.ClusterSpec(cluster_data) if cluster_data else None task_data = env.get('task', None) or {'type': 'master', 'index': 0} task_info = type('TaskSpec', (object,), task_data) # Parameters for a single worker. ps_tasks = 0 worker_replicas = 1 worker_job_name = 'lonely_worker' task = 0 is_chief = True master = '' if cluster_data and 'worker' in cluster_data: # Number of total worker replicas include "worker"s and the "master". worker_replicas = len(cluster_data['worker']) + 1 if cluster_data and 'ps' in cluster_data: ps_tasks = len(cluster_data['ps']) if worker_replicas > 1 and ps_tasks < 1: raise ValueError('At least 1 ps task is needed for distributed training.') if worker_replicas >= 1 and ps_tasks > 0: # Set up distributed training. server = tf.train.Server(tf.train.ClusterSpec(cluster), protocol='grpc', job_name=task_info.type, task_index=task_info.index) if task_info.type == 'ps': server.join() return worker_job_name = '%s/task:%d' % (task_info.type, task_info.index) task = task_info.index is_chief = (task_info.type == 'master') master = server.target trainer.train(create_input_dict_fn, model_fn, train_config, master, task, FLAGS.num_clones, worker_replicas, FLAGS.clone_on_cpu, ps_tasks, worker_job_name, is_chief, FLAGS.train_dir) if __name__ == '__main__': tf.app.run()
[ "noreply@github.com" ]
Thiagobc23.noreply@github.com
f16426216b425d7e020cec62cc28db7667139050
6f0043258b0dba7f97ee26f771a807386935a2ad
/Old/xpdf_SG4.py
3661ad3b1a1034a08e1580fdb95f05ca3aedfd29
[]
no_license
KentaroTakagi-Eng/invoice
b061b4afe52c8b5bda9b334f0f7a7fa2fe11a069
b91e7da52b7f0e11c924c2fca0bb88cf7e36d091
refs/heads/main
2023-04-22T05:04:06.432853
2021-05-08T12:53:17
2021-05-08T12:53:17
328,054,067
0
0
null
null
null
null
UTF-8
Python
false
false
3,195
py
"""Python から Xpdf tools の pdftotext.exe を呼び出して抽出します。""" from pathlib import Path from subprocess import run, PIPE def main(): """メイン関数""" # (1/7) PDF ファイルを決める pdf_file = Path(r'C:\Users\kntrt\OneDrive\ドキュメント\Python Scripts\invoice\SG4.pdf') ##pdf_file = Path(r'C:\Users\kntrt\OneDrive\デスクトップ\Sample Invoice\TWN2.pdf') # (2/7) 実行ファイル pdftotext.exe のファイルパスを決める exe_file = Path(r'C:\Program Files (x86)\tools\xpdf-tools-win-4.03\bin64\pdftotext.exe') # (3/7) 日本語サポートパッケージの xpdfrc のファイルパスを決める xpdfrc_file = Path(r'C:\Program Files (x86)\tools\xpdf-tools-win-4.03\xpdfrc') # (4/7) コマンドラインの引数リストを作る(タプルでもOK) # 構文: pdftotext [options] [PDF-file [text-file]] # テキストを標準出力(stdout)に出すときは、 # [text-file] にハイフン '-' を指定するとのこと。 cmd = ( exe_file, '-cfg', xpdfrc_file, '-enc', 'UTF-8', # テキストを出力する時のエンコーディング # '-q', # メッセージやエラーを表示しない '-nopgbrk', # '-nopgbrk': テキストに改ページを表す文字列を付けない pdf_file, '-', # テキストを標準出力(stdout)に出す ) # (5/7) PDF からテキストを抽出する # cp は CompletedProcess の略です。 cp = run( cmd, stdout=PIPE, # 標準出力からテキスト受け取るために PIPE を指定 ) # (6/7) もし pdftotext.exe がエラーを返したときは知らせる if cp.returncode == 0: # 正常に終了した。 # ただし、壊れたPDFでも 0 が返る。その代わり、処理中に # Syntax Error (50): Illegal character <2f> in hex string # などのエラーメッセージが表示された。 # エラーメッセージは '-q' のオプションで非表示にできた。 print(f'ok - {cp.returncode} - {pdf_file.name}') else: # なんらかのエラー error を検出した。 # (例) PDFが開けなかった、テキストの出力ファイルが開けなかった、 # PDFのパーミッションに関するエラーでPDFが開けなかった、など。 print(f'error - {cp.returncode} - {pdf_file.name}') # (7/7) 抽出したテキストデータを受け取る & デコードする text = cp.stdout.decode('utf-8') text = text.strip() # 先頭と末尾の空白や改行を除去する text_list = text.split("\r\n") # (デバッグ情報) print(f'(デバッグ) exe_file: {exe_file}') print(f'(デバッグ) xpdfrc_file: {xpdfrc_file}') print(f'(デバッグ) pdf_file: {pdf_file}') print(f'(デバッグ) cp.returncode: {cp.returncode}') #print(f"(デバッグ) cp.stdout.decode('utf-8'):『\n{text_list}』") print((text_list[0]).split()[1:3]) print((text_list[-1]).split()[-2]) # (終了) print('end') return if __name__ == "__main__": main()
[ "76652592+KentaroTakagi-Eng@users.noreply.github.com" ]
76652592+KentaroTakagi-Eng@users.noreply.github.com
7d0cbe1095c6e0de093283336eb35e1c95995730
9eea1fa0d661266547d47ca37f0f4d78b0c7d78e
/Chapter04/nlp35.py
26c3895b835d02f1ace789de2f9d36af55d61eb3
[ "MIT" ]
permissive
nomissbowling/PythonNLP100
e8f8b302c12126b7b37b6d660993ec81db236d1a
c67148232fc942b1f8a72e69a2a5e7a3b76e99bd
refs/heads/master
2022-01-25T15:22:55.077197
2018-12-10T11:57:38
2018-12-10T11:57:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,142
py
import re def analyze(): lines = [] sentence = [] with open('neko.txt.mecab', 'r', encoding='utf8') as fin: for line in fin: words = re.split(r'\t|,|\n', line) if words[0] == 'EOS': if sentence: lines.append(sentence) sentence = [] continue sentence.append({ "surface": words[0], "base": words[7], "pos": words[1], "pos1": words[2], }) return lines def extractContinuousNouns(lines): for sentense in lines: noun = '' count = 0 for word in sentense: if word['pos'] == '名詞' and (noun != '' or word['pos1'] != '副詞可能'): noun += word['surface'] count += 1 else: if count > 1: yield noun noun = '' count = 0 def main(): article = analyze() nouns = [surface for surface in extractContinuousNouns(article)] print(nouns) if __name__ == '__main__': main()
[ "gushwell@gmail.com" ]
gushwell@gmail.com
21961203878995113d4e2ef984db6a54099a88ff
483db682e030cf8ed70a6ee96a251ce1552cc9ca
/feynman/urls.py
9a7d26d473d97d548d98384dd370132c560026cc
[]
no_license
valesark/feynman-old
461f05e3a21f62539c725b67a4aee4397f1a7bc8
b717cc419e7ec93b59e981cb1cc2f4e83738476a
refs/heads/master
2022-01-10T22:38:53.995674
2016-05-09T07:14:08
2016-05-09T07:14:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
779
py
# -*- Python -*- # -*- coding: utf-8 -*- # # alec aivazis # # this file describes the primary url router for feynman # django imports from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf.urls.static import static from django.conf import settings # import the feynmanapplications from .views import Home, RenderLatex # define the primary url patterns urlpatterns = patterns('', url(r'(?i)^admin/', include(admin.site.urls)), url(r'(?i)^latex/$', RenderLatex.as_view()), url(r'^$', Home.as_view()), # add the static urls ) # if the debug flag is on if settings.DEBUG: # add the local static url configuration urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) # end of file
[ "alec@aivazis.com" ]
alec@aivazis.com
1dd30b00ad8341f2eac2642b2d7f4572c37ca7a9
055bf8f84dce19f237173f70cf7fda73c32993d4
/api/models/skill.py
38eebae949c855d9c6ca6340e92f9c5796a5f8d7
[]
no_license
stevebrownlee/stevebrownlee
cd07bbbc8ae0cb5b890cabe97a81283253d196a2
6fa6904bb6cea5fe86428acb3a3677d5b6c863a8
refs/heads/master
2023-02-10T05:38:39.521896
2023-02-03T01:31:48
2023-02-03T01:31:48
100,879,319
0
1
null
2022-09-18T03:11:19
2017-08-20T17:58:53
Python
UTF-8
Python
false
false
453
py
""" Skill module """ from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator class Skill(models.Model): """ Individual, technical skills """ name = models.CharField(max_length=55) rank = models.PositiveSmallIntegerField(validators=[MinValueValidator(0), MaxValueValidator(5)]) class Meta: ordering = ('rank', 'name',)
[ "chortlehoort@gmail.com" ]
chortlehoort@gmail.com
19acf2b6877b10a684d8042b9fce42582f486a51
21691453eb79cd2faa4408ba36315f6c2ed4dca6
/django/study_server/model/migrations/0017_remove_plan_resume.py
f383c8e37dfe2cc0487df17e2bbcbcaf5a96a062
[]
no_license
jhoncbuendia/study
fd42a9a4639f5d370692acb9a6044599032de4bc
b9658504aebc26755da790a67a50f89f1b3594f2
refs/heads/master
2021-01-16T23:53:45.123257
2016-10-20T10:35:01
2016-10-20T10:35:01
58,153,950
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('model', '0016_auto_20160922_0310'), ] operations = [ migrations.RemoveField( model_name='plan', name='resume', ), ]
[ "jhoncbuendia@MacBook-Pro-de-MacBook.local" ]
jhoncbuendia@MacBook-Pro-de-MacBook.local
fc0a0793c4e15c722d379980b65d6033d6ba0cff
7fde085ee99e0172d66587e221bbc5c73a7bd45a
/default/bin/clean
4be4a221f11e813d0f0a38d2e36e78375afbdfd3
[ "MIT" ]
permissive
shakfu/start-vm
7e90d380f9b492b8172089173f9c54443d367349
3fe9dcd548f3b12a5e1a42f81b35fc7219b6837e
refs/heads/master
2023-08-24T15:16:46.273334
2023-08-13T20:38:45
2023-08-13T20:38:45
79,735,400
0
0
MIT
2021-04-02T02:51:25
2017-01-22T18:11:54
Lua
UTF-8
Python
false
false
8,923
#!/usr/bin/env python """ This script recursively scans a given path and applies a cleaning 'action' to matching files and folders. By default files and folders matching the specified (.endswith) patterns are deleted. Alternatively, _quoted_ glob patterns can used with the '-g' option. By design, the script lists targets and asks permission before applying cleaning actions. It should be easy to extend this script with further cleaning actions and more intelligent pattern matching techniques. The getch (single key confirmation) functionality comes courtesy of http://code.activestate.com/recipes/134892/ To use it, place the script in your path and call it something like 'clean': Usage: clean [options] patterns deletes files/folder patterns: clean .svn .pyc clean -p /tmp/folder .svn .csv .bzr .pyc clean -g "*.pyc" clean -ng "*.py" converts line endings from windows to unix: clean -e .py clean -e -p /tmp/folder .py Options: -h, --help show this help message and exit -p PATH, --path=PATH set path -n, --negated clean everything except specified patterns -e, --endings clean line endings -v, --verbose """ from __future__ import print_function import os, sys, shutil from fnmatch import fnmatch from optparse import OptionParser from os.path import join, isdir, isfile # to enable single-character confirmation of choices try: import sys, tty, termios def getch(txt): print(txt, end=' ') fd = sys.stdin.fileno() old_settings = termios.tcgetattr(fd) try: tty.setraw(sys.stdin.fileno()) ch = sys.stdin.read(1) finally: termios.tcsetattr(fd, termios.TCSADRAIN, old_settings) return ch except ImportError: import msvcrt def getch(txt): print(txt, end=' ') return msvcrt.getch() # ----------------------------------------------------- # main class class Cleaner(object): """recursively cleans patterns of files/directories """ def __init__(self, path, patterns): self.path = path self.patterns = patterns self.matchers = { # a matcher is a boolean function which takes a string and tries # to match it against any one of the specified patterns, # returning False otherwise 'endswith': lambda s: any(s.endswith(p) for p in patterns), 'glob': lambda s: any(fnmatch(s, p) for p in patterns), } self.actions = { # action: (path_operating_func, matcher) 'endswith_delete': (self.delete, 'endswith'), 'glob_delete': (self.delete, 'glob'), 'convert': (self.clean_endings, 'endswith'), } self.targets = [] self.cum_size = 0.0 def __repr__(self): return "<Cleaner: path:%s , patterns:%s>" % ( self.path, self.patterns) def _apply(self, func, confirm=False): """applies a function to each target path """ i = 0 desc = func.__doc__.strip() for target in self.targets: if confirm: question = "\n%s '%s' (y/n/q)? " % (desc, target) answer = getch(question) if answer in ['y', 'Y']: func(target) i += 1 elif answer in ['q']: #i.e. quit break else: continue else: func(target) i += 1 if i: self.log("Applied '%s' to %s items (%sK)" % ( desc, i, int(round(self.cum_size/1024.0, 0)))) else: self.log('No action taken') @staticmethod def _onerror(func, path, exc_info): """ Error handler for shutil.rmtree. If the error is due to an access error (read only file) it attempts to add write permission and then retries. If the error is for another reason it re-raises the error. Usage : ``shutil.rmtree(path, onerror=onerror)`` original code by Michael Foord bug fix suggested by Kun Zhang """ import stat if not os.access(path, os.W_OK): # Is the error an access error ? os.chmod(path, stat.S_IWUSR) func(path) else: raise def log(self, txt): print('\n' + txt) def do(self, action, negate=False): """finds pattern and approves action on results """ func, matcher = self.actions[action] if not negate: show = lambda p: p if self.matchers[matcher](p) else None else: show = lambda p: p if not self.matchers[matcher](p) else None results = self.walk(self.path, show) if results: question = "%s item(s) found. Apply '%s' to all (y/n/c)? " % ( len(results), func.__doc__.strip()) answer = getch(question) self.targets = results if answer in ['y','Y']: self._apply(func) elif answer in ['c', 'C']: self._apply(func, confirm=True) else: self.log("Action cancelled.") else: self.log("No results.") def walk(self, path, func, log=True): """walk path recursively collecting results of function application """ results = [] def visit(root, target, prefix): for i in target: item = join(root, i) obj = func(item) if obj: results.append(obj) self.cum_size += os.path.getsize(obj) if log: print(prefix, obj) for root, dirs, files in os.walk(path): visit(root, dirs, ' +-->') visit(root, files,' |-->') return results def delete(self, path): """delete path """ if isfile(path): os.remove(path) if isdir(path): shutil.rmtree(path, onerror=self._onerror) def clean_endings(self, path): """convert windows endings to unix endings """ with file(path) as old: lines = old.readlines() string = "".join(l.rstrip()+'\n' for l in lines) with file(path, 'w') as new: new.write(string) @classmethod def cmdline(cls): usage = """usage: %prog [options] patterns deletes files/folder patterns: %prog .svn .pyc %prog -p /tmp/folder .svn .csv .bzr .pyc %prog -g "*.pyc" %prog -gn "*.py" converts line endings from windows to unix: %prog -e .py %prog -e -p /tmp/folder .py""" parser = OptionParser(usage) parser.add_option("-p", "--path", dest="path", help="set path") parser.add_option("-n", "--negated", action="store_true", dest="negated", help="clean everything except specified patterns") parser.add_option("-e", "--endings", action="store_true", dest="endings", help="clean line endings") parser.add_option("-g", "--glob", action="store_true", dest="glob", help="clean with glob patterns") parser.add_option("-v", "--verbose", action="store_true", dest="verbose") (options, patterns) = parser.parse_args() if len(patterns) == 0: #parser.error("incorrect number of arguments") options.path = '.' patterns = ['.pyc', '.DS_Store', '__pycache__'] cleaner = cls(options.path, patterns) cleaner.do('endswith_delete') if not options.path: options.path = '.' if options.verbose: print('options:', options) print('finding patterns: %s in %s' % (patterns, options.path)) cleaner = cls(options.path, patterns) # convert line endings from windows to unix if options.endings and options.negated: cleaner.do('convert', negate=True) elif options.endings: cleaner.do('convert', negate=True) # glob delete elif options.negated and options.glob: cleaner.do('glob_delete', negate=True) elif options.glob: cleaner.do('glob_delete') # endswith delete (default) elif options.negated: cleaner.do('endswith_delete', negate=True) else: cleaner.do('endswith_delete') if __name__ == '__main__': Cleaner.cmdline()
[ "shakeeb.alireza@gmail.com" ]
shakeeb.alireza@gmail.com
1256fab60bda09aedee0d097445b2331f0e1bd2a
2bd068e2230bb9c154e3c4300054cf855d2a2865
/Q4/neighborhood.py
e10b301d778308072fb7072bc036dae156f2ccd6
[]
no_license
sven-wang/Netflix-Recommendation-System
c0d351a3410af399babf7bec8e427f0eaf1945fe
4ce3dc6cca5425ea0239675881d356cefa32f11c
refs/heads/master
2021-03-24T09:45:09.884866
2018-04-07T04:33:42
2018-04-07T04:33:42
80,990,006
0
3
null
null
null
null
UTF-8
Python
false
false
3,725
py
import numpy as np from numpy.linalg import pinv import pprint pp = pprint.PrettyPrinter(indent=4) R = np.matrix('5 0 5 4; 0 1 1 4; 4 1 2 4; 3 4 0 3; 1 5 3 0') # R = np.matrix('5 2 0 3; 3 5 1 0; 5 0 4 2; 0 3 2 5') # construct matrix A c = [] sum = 0 count = 0 A = [] for i in range(R.shape[0]): for j in range(R.shape[1]): if R.item(i,j) != 0: c.append(R.item(i,j)) sum += R.item(i,j) count += 1 newA = [0] * (R.shape[0]+R.shape[1]) newA[i] = 1 newA[R.shape[0]+j] = 1 A.append(newA) A = np.matrix(A) mean = sum / count c = np.array(c) c = c - mean print('c', c) print('mean: ', mean) inverse = pinv(A.transpose().dot(A)) b = inverse.dot(A.transpose()).dot(c) b = np.array(b).flatten() bu = b[:R.shape[0]] bi = b[R.shape[0]:] print(b) R_pred = [[0 for i in range(R.shape[1])] for j in range(R.shape[0])] for i in range(R.shape[0]): for j in range(R.shape[1]): R_pred[i][j] = mean + bu[i] + bi[j] # print(R_pred[i][j]) R_error = [[99 for i in range(R.shape[1])] for j in range(R.shape[0])] for i in range(R.shape[0]): for j in range(R.shape[1]): if(R.item(i,j)) != 0: R_error[i][j] = R.item(i,j) - R_pred[i][j] print('R_pred') pp.pprint(R_pred) print('R_error') pp.pprint(R_error) # similarity matrix D = [[0 for i in range(len(bi))] for j in range(len(bi))] for a in range(len(bi)): for b in range(a+1, len(bi)): ab = 0 sqsuma = 0 sqsumb = 0 for u in range(len(bu)): if R_error[u][a]!=99 and R_error[u][b]!=99: ab += R_error[u][a] * R_error[u][b] sqsuma += R_error[u][a]**2 sqsumb += R_error[u][b]**2 D[a][b] = ab / (sqsuma * sqsumb)**0.5 D[b][a] = ab / (sqsuma * sqsumb)**0.5 print('D') pp.pprint(D) R_npred = R.tolist() # print(R_npred) for i in range(R.shape[0]): for j in range(R.shape[1]): # if R_npred[i][j]==0: # find top 2 neighbors l = [abs(D[j][other]) for other in range(R.shape[1])] print(l) top1 = l.index(max(l)) l[top1] = 0 top2 = l.index(max(l)) print(top1, top2) # reset missing data to 0 missing1 = False missing2 = False if R_error[i][top1]==99: R_error[i][top1] = 0 missing1 = True if R_error[i][top2]==99: R_error[i][top2] = 0 missing2 = True if missing1 and missing2: R_npred[i][j] = R_pred[i][j] elif missing1: R_npred[i][j] = R_pred[i][j] + D[j][top2] * R_error[i][top2] / (abs(D[j][top2])) elif missing2: R_npred[i][j] = R_pred[i][j] + D[j][top1] * R_error[i][top1] / (abs(D[j][top1])) else: R_npred[i][j] = R_pred[i][j] \ + D[j][top1]*R_error[i][top1] / (abs(D[j][top1])+abs(D[j][top2])) \ + D[j][top2]*R_error[i][top2] / (abs(D[j][top1])+abs(D[j][top2])) # clipping if R_npred[i][j] > 5: R_npred[i][j] = 5 if R_npred[i][j] < 1: R_npred[i][j] = 1 R_npred[i][j] = int(round(R_npred[i][j], 2)*100)/ 100 pp.pprint(R_npred) # correct predictions # [ [3.73, 4.94, 4.97, 4.88], # [2.56, 1.0, 1.0, 3.26], # [4.0, 1.65, 1.24, 4.34], # [2.18, 3.56, 3.64, 3.45], # [1.51, 5.0, 3.64, 2.89]] # previous, wrong # [ [4.3, 4.94, 4.97, 4.88], # [2.56, 1.23, 1.0, 3.26], # [4.0, 1.65, 1.24, 4.34], # [2.35, 3.56, 3.64, 3.45], # [1.51, 4.25, 3.64, 2.89]]
[ "siyuanwang1123@gmail.com" ]
siyuanwang1123@gmail.com
7bdf69a7bba360bbe3ba12405b8abf738c905cfb
b68479043dadd407a7f584e17d4a07a8addfccc4
/cs125/labs/5/encode.py
4dea78431f51581fa54467182a6a4234737d48e7
[]
no_license
CarlStevenson/schoolwork
6d454a01185053e916d5cc44a84cc3c8c78d6290
bf4bfae0d3ca4c82253e36b95d03c773e5346631
refs/heads/master
2021-01-19T22:06:04.530989
2015-07-08T22:02:35
2015-07-08T22:02:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,344
py
#File : encode.py #Author : Carl Stevenson #Date : 9/27/2012 #Purpose: To encode a message using a simple cipher. def main(): #tell user what the program does and who wrote it print() print("This program will encode a message using") print("a Caesar cipher.") print("You will enter a key (number between 1 and 25).") print("Written by Carl Stevenson") print() #prompt and input the key key = eval(input("Enter a key (number between 1 and 25): ")) print() print() #prompt and input the plaintext line msg = input("Enter a sentence: ") print() print() #lowercase the line msg = msg.lower() #go through the text character by character #convert each letter to the encoded version #output the encoded version print("With a key of", key) print() print("Original line:", msg) print() print("Encoded line: ", end = "") for ch in msg: outChar = ch if ch >= "a": if ch <= "z": num = ord(ch) num = num + key outChar = chr(num) if outChar > "z": outChar = chr(num - 26) if outChar < 'a': outChar = chr(num + 26) print(outChar, end = "") print() print() main()
[ "carl.stevenson@wilkes.edu" ]
carl.stevenson@wilkes.edu
7ddf5f8023c64318c374fefd6b8c65936893ce58
9c092cb6efaf802f79072e0d4b45c9a3ed7d9b72
/shop/migrations/0002_alter_product_old_price.py
09e8a9db580a78ba9feb6b0ebc9e8702f3d5c991
[]
no_license
Blekrv/django_shop
793de8664be925e4dc0627f8ec27918572ef8b1b
c4a6e6c3f29613d6c9bf1d3a0ab33d91b7049dd1
refs/heads/main
2023-08-06T08:44:20.413296
2021-10-05T18:36:02
2021-10-05T18:36:02
412,112,613
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
# Generated by Django 3.2.7 on 2021-09-30 17:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0001_initial'), ] operations = [ migrations.AlterField( model_name='product', name='old_price', field=models.DecimalField(decimal_places=2, max_digits=10, null=True), ), ]
[ "blekkrv@gmail.com" ]
blekkrv@gmail.com
c082775555044a75f9f98446cdd06fa4a579d082
ab2815cc7f7f3bba055e8a1c6be02642e91d9fbb
/music.py
db7e053a9a20bb593a3a2789fe502915b867a738
[]
no_license
Dvshah13/Music-API-with-DB
de1f6ae0f97c1d3d51558eb78a4d5c25d7d3e259
138e0ee7f69d3a7229c7f3da50a105e57e210c5f
refs/heads/master
2021-01-23T02:14:54.832559
2017-03-23T16:49:48
2017-03-23T16:49:48
85,974,351
0
0
null
null
null
null
UTF-8
Python
false
false
5,809
py
import json import pycurl import StringIO import urllib import mysql.connector import sys dbUser="root" dbPass="" dbHost="127.0.0.1" dbName="music" #I am using this API: #http://www.theaudiodb.com/forum/viewtopic.php?t=7 def getAlbums(artistName): url = "http://www.theaudiodb.com/api/v1/json/1/searchalbum.php?s=%s"%urllib.quote_plus(artistName) print url response = StringIO.StringIO() c = pycurl.Curl() c.setopt(c.URL, url) c.setopt(c.WRITEFUNCTION, response.write) c.setopt(c.HTTPHEADER, ['Content-Type: application/json','Accept-Charset: UTF-8']) # c.setopt(c.HTTPHEADER, ['Content-Type: application/json']) c.setopt(c.POSTFIELDS, '@request.json') c.perform() c.close() albums = json.loads(response.getvalue()) # albums = _byteify(json.load(response.getvalue(), object_hook=_byteify),ignore_dicts=True) response.close() return albums def getTracks(idAlbum): url = "http://www.theaudiodb.com/api/v1/json/1/track.php?m=%s"%idAlbum response = StringIO.StringIO() c = pycurl.Curl() c.setopt(c.URL, url) c.setopt(c.WRITEFUNCTION, response.write) c.setopt(c.HTTPHEADER, ['Content-Type: application/json','Accept-Charset: UTF-8']) # c.setopt(c.HTTPHEADER, ['Content-Type: application/json']) c.setopt(c.POSTFIELDS, '@request.json') c.perform() c.close() tracks = json.loads(response.getvalue()) return tracks class Database(object): @staticmethod def getConnection(): return mysql.connector.connect(user=dbUser,password=dbPass,host=dbHost,database=dbName) @staticmethod def escape(value): return value.replace("'","''") @staticmethod def getResult(query,getOne=False): conn = Database.getConnection() cur = conn.cursor() cur.execute(query) if getOne: result_set = cur.fetchone() else: result_set = cur.fetchall() cur.close() conn.close() return result_set @staticmethod def doQuery(query): conn = Database.getConnection() cur = conn.cursor() cur.execute(query) conn.commit() lastId = cur.lastrowid cur.close() conn.close() return lastId class Artist(object): def __init__(self,id=0): self.name="" if(not type(id)==int): id=int(id) query = "SELECT id,name FROM artist where id=%d " % id result_set = Database.getResult(query,True) self.id=id if not result_set is None: self.id = result_set[0] self.content=result_set[1] return def save(self): if self.id>0: return self.update() else: return self.insert() def insert(self): query = "insert into artist (name) values ('%s')"%(Database.escape(self.name)) self.id=Database.doQuery(query) return self.id def update(self): query = "update artist set name='%s' where id=%d"%(Database.escape(self.name),self.id) # query = ("delete from page where id=%s" % id) return Database.doQuery(query) class Album(object): def __init__(self,id=0): self.name="" self.artist_id=0 if(not type(id)==int): id=int(id) query = "SELECT id,name,artist_id FROM album where id=%d " % id result_set = Database.getResult(query,True) self.id=id if not result_set is None: self.id = result_set[0] self.content=result_set[1] self.artist_id=result_set[2] return def save(self): if self.id>0: return self.update() else: return self.insert() def insert(self): query = "insert into album (name,artist_id) values ('%s',%d)"%(Database.escape(self.name),self.artist_id) self.id=Database.doQuery(query) return self.id def update(self): query = "update album set name='%s',artist_id=%d where id=%d"%(Database.escape(self.name),self.artist_id,self.id) # query = ("delete from page where id=%s" % id) return Database.doQuery(query) class Track(object): def __init__(self,id=0): self.name="" self.album_id=0 if(not type(id)==int): id=int(id) query = "SELECT id,name,album_id FROM track where id=%d " % id result_set = Database.getResult(query,True) self.id=id if not result_set is None: self.id = result_set[0] self.content=result_set[1] self.album_id=result_set[2] return def save(self): if self.id>0: return self.update() else: return self.insert() def insert(self): query = "insert into track (name,album_id) values ('%s',%d)"%(Database.escape(self.name),self.album_id) self.id=Database.doQuery(query) return self.id def update(self): query = "update track set name='%s',album_id=%d where id=%d"%(Database.escape(self.name),self.album_id,self.id) # query = ("delete from page where id=%s" % id) return Database.doQuery(query) artistName=sys.argv[1] albums = getAlbums(artistName) # print type(albums) # print albums.encode('utf8') artist = Artist() artist.name=artistName artist.save() for album in albums["album"]: # print type(album) # print album print album["strAlbum"] print album["intYearReleased"] print album["idAlbum"] a = Album() a.name=album["strAlbum"] a.artist_id=artist.id a.save() idAlbum = album["idAlbum"] tracks = getTracks(idAlbum) for track in tracks["track"]: print track["strTrack"] t = Track() t.name=track["strTrack"] t.album_id=a.id t.save()
[ "dvshah13@gmail.com" ]
dvshah13@gmail.com
dc7f21ef26b9ae1c46a758e64e69930bca51e9e7
56909dea7e1a2352998f0d7c5488b2b269c7e380
/20200605_段子+语音合成/spider.py
16d4507c4721ac9ad86fe62aad4197751132ff26
[]
no_license
Ding-736/Python_spider
26b88703675f07cccf3de80e91522f40309d2032
6a6759c4fbae184c2c511761ab2ee2e1e08d2110
refs/heads/master
2022-10-16T17:00:10.065222
2020-06-06T07:45:30
2020-06-06T07:45:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Author LQ6H import requests from baidu_api import baidu from lxml import etree headers = { 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36' } def parse(url): response = requests.get(url,headers=headers) response.encoding = 'utf-8' html = response.text root = etree.HTML(html) parse_html(root) def parse_html(root): article_list = root.xpath('/html/body/section/div/div/main/article') for article in article_list: title = article.xpath('./div[1]/h1/a/text()')[0] content = article.xpath('./div[2]/pre/code/text()')[0] baidu(title,content) def main(): base_url = 'https://duanziwang.com/page/{}/' for i in range(2,5): url = base_url.format(i) parse(url) if __name__=="__main__": main()
[ "noreply@github.com" ]
Ding-736.noreply@github.com
b105364161c270fd99b43a39f304ab9495368ea5
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_27537.py
d6d73e52df8fc3f79f301e9ddbe24e47518a2c7d
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
# OLS Breusch Pagan test in Python breushpagan
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal